index
int64
repo_name
string
branch_name
string
path
string
content
string
import_graph
string
50,830
ArtyZiff35/Android-Application-State-Graph-Model-Parser
refs/heads/master
/activityStateDetector.py
import re import sys import time import os import subprocess from com.dtmilano.android.viewclient import ViewClient, View, ViewClientOptions from com.dtmilano.android.adb import adbclient from com.dtmilano.android.common import debugArgsToDict from stateNode import stateNode import graphPlotter as gp from matplotlib.im...
{"/graphPlotter.py": ["/stateNode.py"]}
50,831
ArtyZiff35/Android-Application-State-Graph-Model-Parser
refs/heads/master
/customLanguageInterpreter/testClass.py
from com.dtmilano.android.viewclient import ViewClient, View, ViewClientOptions from com.dtmilano.android.adb import adbclient from com.dtmilano.android.common import debugArgsToDict from activityStateDetector import activityStateDetector import subprocess import re import time class testClass: # This class coin...
{"/graphPlotter.py": ["/stateNode.py"]}
50,832
ArtyZiff35/Android-Application-State-Graph-Model-Parser
refs/heads/master
/stateNode.py
import re import sys import time import os import subprocess from com.dtmilano.android.viewclient import ViewClient, View, ViewClientOptions import copy class stateNode: # Static variable keeping count of the number of states generated until now currentNumStates = 0 def __init__(self, roadMap = [], attri...
{"/graphPlotter.py": ["/stateNode.py"]}
50,833
ArtyZiff35/Android-Application-State-Graph-Model-Parser
refs/heads/master
/activityDumper.py
import re import sys import time import os import subprocess from com.dtmilano.android.viewclient import ViewClient, View, ViewClientOptions from com.dtmilano.android.adb import adbclient from com.dtmilano.android.common import debugArgsToDict from stateNode import stateNode import graphPlotter as gp from matplotlib.im...
{"/graphPlotter.py": ["/stateNode.py"]}
50,834
ArtyZiff35/Android-Application-State-Graph-Model-Parser
refs/heads/master
/customLanguageInterpreter/scriptingLanguageLexer.py
# Generated from scriptingLanguage.g4 by ANTLR 4.7.1 # encoding: utf-8 from __future__ import print_function from antlr4 import * from io import StringIO import sys def serializedATN(): with StringIO() as buf: buf.write(u"\3\u608b\ua72a\u8133\ub9ed\u417c\u3be7\u7786\u5964\2") buf.write(u"M\u02e1\b...
{"/graphPlotter.py": ["/stateNode.py"]}
50,835
ArtyZiff35/Android-Application-State-Graph-Model-Parser
refs/heads/master
/graphPlotter.py
import networkx as nx import matplotlib.pyplot as plt from stateNode import stateNode from graphviz import Digraph import re def drawCurrentlyExploredNodes(statesCompletelyExplored): # Instantiating the directional graph graph = nx.DiGraph() # Iterating over all states that are completely explored for...
{"/graphPlotter.py": ["/stateNode.py"]}
50,836
ArtyZiff35/Android-Application-State-Graph-Model-Parser
refs/heads/master
/customLanguageInterpreter/scriptingLanguageListener.py
# Generated from scriptingLanguage.g4 by ANTLR 4.7.1 from antlr4 import * from testClass import testClass # This class defines a complete listener for a parse tree produced by scriptingLanguageParser. class scriptingLanguageListener(ParseTreeListener): # This function the INITIALIZATION function called when the L...
{"/graphPlotter.py": ["/stateNode.py"]}
50,837
ArtyZiff35/Android-Application-State-Graph-Model-Parser
refs/heads/master
/customLanguageInterpreter/suiteClass.py
from testClass import testClass class suiteClass: # This class coincides with the concept of the test suite def __init__(self): # This is the list of test cases being initialized self.testCasesList = [] # This is the type of App APK for which this test suite is for self.targetA...
{"/graphPlotter.py": ["/stateNode.py"]}
50,838
ArtyZiff35/Android-Application-State-Graph-Model-Parser
refs/heads/master
/main.py
import re import sys import time import os import subprocess from com.dtmilano.android.viewclient import ViewClient, View, ViewClientOptions from com.dtmilano.android.adb import adbclient from com.dtmilano.android.common import debugArgsToDict from stateNode import stateNode import graphPlotter as gp import pickle ##...
{"/graphPlotter.py": ["/stateNode.py"]}
50,839
ArtyZiff35/Android-Application-State-Graph-Model-Parser
refs/heads/master
/customLanguageInterpreter/scriptingLanguageParser.py
# Generated from scriptingLanguage.g4 by ANTLR 4.7.1 # encoding: utf-8 from __future__ import print_function from antlr4 import * from io import StringIO import sys def serializedATN(): with StringIO() as buf: buf.write(u"\3\u608b\ua72a\u8133\ub9ed\u417c\u3be7\u7786\u5964\3") buf.write(u"M\u02fa\4\...
{"/graphPlotter.py": ["/stateNode.py"]}
50,841
Eksoss/analise_num
refs/heads/master
/src/filters.py
import numpy as np class KZAFilter: def __init__(self, X): self.X = X.copy() self.shape = self.X.shape self.window = self.X.shape[0] self.Z = X.copy() self.D = None self.dD = None self.fD = None def calculate_D(self, q): expanded = np.concate...
{"/examples.py": ["/src/integration.py", "/src/splines.py", "/src/interpolation.py"]}
50,842
Eksoss/analise_num
refs/heads/master
/src/splines.py
import numpy as np class ClampedCubicSpline: def __init__(self, x, y, **kwargs): self.x = np.array(x) self.y = np.array(y) self.n = self.x.size # [0, n] self.n1 = self.n - 1 # [0, n-1] self.coefs = np.zeros((self.n, 4), dtype=np.float64) self.coefs[:, 0] = self.y ...
{"/examples.py": ["/src/integration.py", "/src/splines.py", "/src/interpolation.py"]}
50,843
Eksoss/analise_num
refs/heads/master
/src/physical_object.py
# author Eksoss/chicoviana # from dataclasses import dataclass import numpy as np import matplotlib.pyplot as plt import matplotlib.animation as animation @dataclass class Physx: position: np.ndarray # (m, m, m) speed: np.ndarray # (m/s, m/s, m/s) mass: float # kg @property def en...
{"/examples.py": ["/src/integration.py", "/src/splines.py", "/src/interpolation.py"]}
50,844
Eksoss/analise_num
refs/heads/master
/src/linalg.py
import numpy as np class TridiagonalLinear: def __init__(self, A, b): self.A = A self.b = b self.n = self.b.size self.l = np.eye(self.n, dtype=np.float64) self.u = np.eye(self.n, dtype=np.float64) self.z = np.zeros(b.shape, dtype=np.float64) self.x = np.zeros...
{"/examples.py": ["/src/integration.py", "/src/splines.py", "/src/interpolation.py"]}
50,845
Eksoss/analise_num
refs/heads/master
/src/interpolation.py
import numpy as np class BaseLagrange: def __init__(self, x, y): self.x = np.array(x) self.left, self.right = self.x.min(), self.x.max() self.y = np.array(y) self.integrity = False self.base = [] self.check_integrity() self.create_base() def chec...
{"/examples.py": ["/src/integration.py", "/src/splines.py", "/src/interpolation.py"]}
50,846
Eksoss/analise_num
refs/heads/master
/examples.py
import numpy as np from src.integration import Integrate f = lambda x: 3 + 3*x + 4*x**2 F = Integrate(f) a, b = 0, 4 print('\n### Simpson integration') print(F(a, b, method='simpson')) print('\n### Midpoint integration') print(F(a, b, method='midpoint')) print('\n### Trapezoidal integration') print(F(a, b, method...
{"/examples.py": ["/src/integration.py", "/src/splines.py", "/src/interpolation.py"]}
50,847
Eksoss/analise_num
refs/heads/master
/src/integration.py
import numpy as np from scipy.special import roots_legendre, legendre class Integrate: def __init__(self, func): self.func = func self.a = None self.b = None self.n = None self.h = None self.X = None self.XI0 = None self.XI1 = None self.XI2 = ...
{"/examples.py": ["/src/integration.py", "/src/splines.py", "/src/interpolation.py"]}
50,850
wulfebw/automotive_behavior_inference
refs/heads/master
/abi/models/rnnvae.py
import collections import numpy as np import os import sys import tensorflow as tf from tensorflow.contrib.tensorboard.plugins import projector import abi.core.rnn_utils as rnn_utils import abi.misc.tf_utils as tf_utils import abi.misc.utils as utils class RNNVAE(object): def __init__( self, ...
{"/abi/models/rnnvae.py": ["/abi/core/rnn_utils.py", "/abi/misc/tf_utils.py", "/abi/misc/utils.py"], "/abi/misc/dataset.py": ["/abi/misc/utils.py"], "/tests/test_cnnrnnvae.py": ["/abi/misc/dataset.py", "/abi/models/cnnrnnvae.py"], "/tests/test_dataset.py": ["/abi/misc/dataset.py"], "/abi/models/cnnrnnvae.py": ["/abi/mo...
50,851
wulfebw/automotive_behavior_inference
refs/heads/master
/abi/core/rnn_utils.py
import abi.core.rnn_cells as rnn_cells def _build_recurrent_cell(hidden_dim, dropout_keep_prob): return rnn_cells.LayerNormLSTMCell( hidden_dim, use_recurrent_dropout=True, dropout_keep_prob=dropout_keep_prob )
{"/abi/models/rnnvae.py": ["/abi/core/rnn_utils.py", "/abi/misc/tf_utils.py", "/abi/misc/utils.py"], "/abi/misc/dataset.py": ["/abi/misc/utils.py"], "/tests/test_cnnrnnvae.py": ["/abi/misc/dataset.py", "/abi/models/cnnrnnvae.py"], "/tests/test_dataset.py": ["/abi/misc/dataset.py"], "/abi/models/cnnrnnvae.py": ["/abi/mo...
50,852
wulfebw/automotive_behavior_inference
refs/heads/master
/abi/misc/dataset.py
import numpy as np from abi.misc.utils import compute_n_batches, compute_batch_idxs class Dataset(object): def __init__( self, obs, act, lengths, batch_size=100, shuffle=True, metadata=None, meta_labels=None...
{"/abi/models/rnnvae.py": ["/abi/core/rnn_utils.py", "/abi/misc/tf_utils.py", "/abi/misc/utils.py"], "/abi/misc/dataset.py": ["/abi/misc/utils.py"], "/tests/test_cnnrnnvae.py": ["/abi/misc/dataset.py", "/abi/models/cnnrnnvae.py"], "/tests/test_dataset.py": ["/abi/misc/dataset.py"], "/abi/models/cnnrnnvae.py": ["/abi/mo...
50,853
wulfebw/automotive_behavior_inference
refs/heads/master
/abi/misc/utils.py
import csv import h5py import numpy as np def compute_n_batches(n_samples, batch_size): n_batches = n_samples // batch_size if n_samples % batch_size != 0: n_batches += 1 return n_batches def compute_batch_idxs(start, batch_size, size, fill='random'): if start >= size: return list(np....
{"/abi/models/rnnvae.py": ["/abi/core/rnn_utils.py", "/abi/misc/tf_utils.py", "/abi/misc/utils.py"], "/abi/misc/dataset.py": ["/abi/misc/utils.py"], "/tests/test_cnnrnnvae.py": ["/abi/misc/dataset.py", "/abi/models/cnnrnnvae.py"], "/tests/test_dataset.py": ["/abi/misc/dataset.py"], "/abi/models/cnnrnnvae.py": ["/abi/mo...
50,854
wulfebw/automotive_behavior_inference
refs/heads/master
/tests/test_cnnrnnvae.py
import numpy as np import tensorflow as tf import unittest from abi.misc.dataset import Dataset from abi.models.cnnrnnvae import CNNRNNVAE class TestCNNRNNVAE(unittest.TestCase): def setUp(self): # reset graph before each test case tf.reset_default_graph() def test_rnn_vae_simple(self): ...
{"/abi/models/rnnvae.py": ["/abi/core/rnn_utils.py", "/abi/misc/tf_utils.py", "/abi/misc/utils.py"], "/abi/misc/dataset.py": ["/abi/misc/utils.py"], "/tests/test_cnnrnnvae.py": ["/abi/misc/dataset.py", "/abi/models/cnnrnnvae.py"], "/tests/test_dataset.py": ["/abi/misc/dataset.py"], "/abi/models/cnnrnnvae.py": ["/abi/mo...
50,855
wulfebw/automotive_behavior_inference
refs/heads/master
/tests/test_dataset.py
import numpy as np import unittest from abi.misc.dataset import Dataset class TestDataset(unittest.TestCase): def test_batches(self): obs = np.arange(3*2*1).reshape((3,2,1)) act = np.arange(3*2*1).reshape((3,2,1)) lengths = np.arange(3) dataset = Dataset(obs, act, lengths, batch_...
{"/abi/models/rnnvae.py": ["/abi/core/rnn_utils.py", "/abi/misc/tf_utils.py", "/abi/misc/utils.py"], "/abi/misc/dataset.py": ["/abi/misc/utils.py"], "/tests/test_cnnrnnvae.py": ["/abi/misc/dataset.py", "/abi/models/cnnrnnvae.py"], "/tests/test_dataset.py": ["/abi/misc/dataset.py"], "/abi/models/cnnrnnvae.py": ["/abi/mo...
50,856
wulfebw/automotive_behavior_inference
refs/heads/master
/setup.py
from setuptools import setup setup(name='automotive_behavior_inference', version='0.1', description='inferring automotive driving behavior', author='Blake Wulfe', author_email='blake.w.wulfe@gmail.com', license='MIT', packages=['abi'], zip_safe=False, install_requires=[ ...
{"/abi/models/rnnvae.py": ["/abi/core/rnn_utils.py", "/abi/misc/tf_utils.py", "/abi/misc/utils.py"], "/abi/misc/dataset.py": ["/abi/misc/utils.py"], "/tests/test_cnnrnnvae.py": ["/abi/misc/dataset.py", "/abi/models/cnnrnnvae.py"], "/tests/test_dataset.py": ["/abi/misc/dataset.py"], "/abi/models/cnnrnnvae.py": ["/abi/mo...
50,857
wulfebw/automotive_behavior_inference
refs/heads/master
/abi/models/cnnrnnvae.py
import tensorflow as tf from abi.models.rnnvae import RNNVAE class CNNRNNVAE(RNNVAE): def __init__( self, max_len, obs_h, obs_w, obs_c, act_dim, batch_size, n_percept_layers=4, n_percept_filters=(32,64,128...
{"/abi/models/rnnvae.py": ["/abi/core/rnn_utils.py", "/abi/misc/tf_utils.py", "/abi/misc/utils.py"], "/abi/misc/dataset.py": ["/abi/misc/utils.py"], "/tests/test_cnnrnnvae.py": ["/abi/misc/dataset.py", "/abi/models/cnnrnnvae.py"], "/tests/test_dataset.py": ["/abi/misc/dataset.py"], "/abi/models/cnnrnnvae.py": ["/abi/mo...
50,858
wulfebw/automotive_behavior_inference
refs/heads/master
/tests/test_rnnvae.py
import numpy as np import tensorflow as tf import unittest from abi.misc.dataset import Dataset from abi.models.rnnvae import RNNVAE class TestRNNVAE(unittest.TestCase): def setUp(self): # reset graph before each test case tf.reset_default_graph() def test_rnn_vae_simple(self): # bu...
{"/abi/models/rnnvae.py": ["/abi/core/rnn_utils.py", "/abi/misc/tf_utils.py", "/abi/misc/utils.py"], "/abi/misc/dataset.py": ["/abi/misc/utils.py"], "/tests/test_cnnrnnvae.py": ["/abi/misc/dataset.py", "/abi/models/cnnrnnvae.py"], "/tests/test_dataset.py": ["/abi/misc/dataset.py"], "/abi/models/cnnrnnvae.py": ["/abi/mo...
50,859
wulfebw/automotive_behavior_inference
refs/heads/master
/scripts/ngsim/train_rnnvae_ngsim.py
import h5py import numpy as np import tensorflow as tf from abi.misc.dataset import Dataset from abi.misc.utils import load_data from abi.models.rnnvae import RNNVAE if __name__ == '__main__': obs_keys = [ 'relative_offset', 'relative_heading', 'velocity', 'length', 'width', 'lane_curvature', 'mar...
{"/abi/models/rnnvae.py": ["/abi/core/rnn_utils.py", "/abi/misc/tf_utils.py", "/abi/misc/utils.py"], "/abi/misc/dataset.py": ["/abi/misc/utils.py"], "/tests/test_cnnrnnvae.py": ["/abi/misc/dataset.py", "/abi/models/cnnrnnvae.py"], "/tests/test_dataset.py": ["/abi/misc/dataset.py"], "/abi/models/cnnrnnvae.py": ["/abi/mo...
50,860
wulfebw/automotive_behavior_inference
refs/heads/master
/abi/misc/tf_utils.py
import io import numpy as np import tensorflow as tf import sys import matplotlib backend = 'Agg' if sys.platform == 'linux' else 'TkAgg' matplotlib.use(backend) import matplotlib.pyplot as plt def scatter_encodings_summary(x, name): plt.scatter(x[:,0], x[:,1]) buf = io.BytesIO() plt.savefig(buf, format=...
{"/abi/models/rnnvae.py": ["/abi/core/rnn_utils.py", "/abi/misc/tf_utils.py", "/abi/misc/utils.py"], "/abi/misc/dataset.py": ["/abi/misc/utils.py"], "/tests/test_cnnrnnvae.py": ["/abi/misc/dataset.py", "/abi/models/cnnrnnvae.py"], "/tests/test_dataset.py": ["/abi/misc/dataset.py"], "/abi/models/cnnrnnvae.py": ["/abi/mo...
50,864
binhvq/nms
refs/heads/master
/apps/transaction/migrations/0003_auto_20160608_0242.py
# -*- coding: utf-8 -*- # Generated by Django 1.9.6 on 2016-06-08 02:42 from __future__ import unicode_literals import datetime from django.db import migrations, models from django.utils.timezone import utc class Migration(migrations.Migration): dependencies = [ ('transaction', '0002_auto_20160607_0949'...
{"/apps/landing/views.py": ["/apps/landing/models.py", "/apps/base/views.py"], "/apps/ip/views.py": ["/apps/ip/models.py", "/apps/base/views.py", "/apps/ip/utils.py"], "/apps/user/views.py": ["/apps/landing/models.py", "/apps/base/views.py"], "/apps/ip/models.py": ["/apps/user/models.py"], "/apps/ip/utils.py": ["/apps/...
50,865
binhvq/nms
refs/heads/master
/apps/user/models.py
from django.db import models from django.conf import settings from django.utils import timezone import uuid class UserProfile(models.Model): TRIAL_USER = 1 PREMIUM_USER = 2 USER_STATUS = ( (TRIAL_USER, 'Free User'), (PREMIUM_USER, 'Premium User'), ) user = models.OneToOneField(setti...
{"/apps/landing/views.py": ["/apps/landing/models.py", "/apps/base/views.py"], "/apps/ip/views.py": ["/apps/ip/models.py", "/apps/base/views.py", "/apps/ip/utils.py"], "/apps/user/views.py": ["/apps/landing/models.py", "/apps/base/views.py"], "/apps/ip/models.py": ["/apps/user/models.py"], "/apps/ip/utils.py": ["/apps/...
50,866
binhvq/nms
refs/heads/master
/apps/landing/views.py
from django.core.urlresolvers import reverse_lazy from django.http import HttpResponse from django.views.generic import CreateView from apps.landing.models import Landing from apps.base.views import (BaseView, LoginRequiredMixin) # Create your views here. class LandingView(BaseView, CreateView): """docstring for ...
{"/apps/landing/views.py": ["/apps/landing/models.py", "/apps/base/views.py"], "/apps/ip/views.py": ["/apps/ip/models.py", "/apps/base/views.py", "/apps/ip/utils.py"], "/apps/user/views.py": ["/apps/landing/models.py", "/apps/base/views.py"], "/apps/ip/models.py": ["/apps/user/models.py"], "/apps/ip/utils.py": ["/apps/...
50,867
binhvq/nms
refs/heads/master
/apps/ip/views.py
from django.db import IntegrityError from django.core.exceptions import PermissionDenied from django.core.urlresolvers import reverse_lazy from django.views.generic import (CreateView, ListView, DeleteView) from django.http import HttpResponse from django.core.validators import validate_email from django.core.exception...
{"/apps/landing/views.py": ["/apps/landing/models.py", "/apps/base/views.py"], "/apps/ip/views.py": ["/apps/ip/models.py", "/apps/base/views.py", "/apps/ip/utils.py"], "/apps/user/views.py": ["/apps/landing/models.py", "/apps/base/views.py"], "/apps/ip/models.py": ["/apps/user/models.py"], "/apps/ip/utils.py": ["/apps/...
50,868
binhvq/nms
refs/heads/master
/apps/core/core.py
#-------------------------------------------------- # @author: Tran Duc Loi # @email: loitranduc@gmail.com # @version: 1.0 # @project: NMS - Jetpjng.com # @community: Pythonvietnam #-------------------------------------------------- import pika import uuid import json import gevent from gevent import monkey, Greenlet...
{"/apps/landing/views.py": ["/apps/landing/models.py", "/apps/base/views.py"], "/apps/ip/views.py": ["/apps/ip/models.py", "/apps/base/views.py", "/apps/ip/utils.py"], "/apps/user/views.py": ["/apps/landing/models.py", "/apps/base/views.py"], "/apps/ip/models.py": ["/apps/user/models.py"], "/apps/ip/utils.py": ["/apps/...
50,869
binhvq/nms
refs/heads/master
/apps/core/mylog.py
#-------------------------------------------------- # @author: Tran Duc Loi # @email: loitranduc@gmail.com # @version: 1.0 # @project: NMS - Jetpjng.com # @community: Pythonvietnam #-------------------------------------------------- # mylog for nms # loitd import logging import os.path def initialize_logger(): out...
{"/apps/landing/views.py": ["/apps/landing/models.py", "/apps/base/views.py"], "/apps/ip/views.py": ["/apps/ip/models.py", "/apps/base/views.py", "/apps/ip/utils.py"], "/apps/user/views.py": ["/apps/landing/models.py", "/apps/base/views.py"], "/apps/ip/models.py": ["/apps/user/models.py"], "/apps/ip/utils.py": ["/apps/...
50,870
binhvq/nms
refs/heads/master
/apps/ip/migrations/0001_initial.py
# -*- coding: utf-8 -*- # Generated by Django 1.9.6 on 2016-06-02 08:10 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='IP', ...
{"/apps/landing/views.py": ["/apps/landing/models.py", "/apps/base/views.py"], "/apps/ip/views.py": ["/apps/ip/models.py", "/apps/base/views.py", "/apps/ip/utils.py"], "/apps/user/views.py": ["/apps/landing/models.py", "/apps/base/views.py"], "/apps/ip/models.py": ["/apps/user/models.py"], "/apps/ip/utils.py": ["/apps/...
50,871
binhvq/nms
refs/heads/master
/apps/landing/models.py
from django.db import models from apps.base.models import Timestampable # Create your models here. class Landing(Timestampable): email = models.EmailField(blank=False, max_length=255, unique=True) class Meta: db_table = 'landing' def __str__(self): return self.email
{"/apps/landing/views.py": ["/apps/landing/models.py", "/apps/base/views.py"], "/apps/ip/views.py": ["/apps/ip/models.py", "/apps/base/views.py", "/apps/ip/utils.py"], "/apps/user/views.py": ["/apps/landing/models.py", "/apps/base/views.py"], "/apps/ip/models.py": ["/apps/user/models.py"], "/apps/ip/utils.py": ["/apps/...
50,872
binhvq/nms
refs/heads/master
/apps/core/main.py
#-------------------------------------------------- # @author: Tran Duc Loi # @email: loitranduc@gmail.com # @version: 1.0 # @project: NMS - Jetpjng.com # @community: Pythonvietnam #-------------------------------------------------- import gevent from gevent import monkey, Greenlet from caller import Caller import co...
{"/apps/landing/views.py": ["/apps/landing/models.py", "/apps/base/views.py"], "/apps/ip/views.py": ["/apps/ip/models.py", "/apps/base/views.py", "/apps/ip/utils.py"], "/apps/user/views.py": ["/apps/landing/models.py", "/apps/base/views.py"], "/apps/ip/models.py": ["/apps/user/models.py"], "/apps/ip/utils.py": ["/apps/...
50,873
binhvq/nms
refs/heads/master
/apps/user/views.py
from django.core.urlresolvers import reverse_lazy from django.views.generic import TemplateView from django.http import HttpResponse, HttpResponseRedirect from django.contrib.auth import logout from apps.landing.models import Landing from apps.base.views import (BaseView, LoginRequiredMixin) class UserProfileView(Ba...
{"/apps/landing/views.py": ["/apps/landing/models.py", "/apps/base/views.py"], "/apps/ip/views.py": ["/apps/ip/models.py", "/apps/base/views.py", "/apps/ip/utils.py"], "/apps/user/views.py": ["/apps/landing/models.py", "/apps/base/views.py"], "/apps/ip/models.py": ["/apps/user/models.py"], "/apps/ip/utils.py": ["/apps/...
50,874
binhvq/nms
refs/heads/master
/apps/ip/models.py
from django.core.exceptions import ValidationError from django.db import models from apps.base.models import Timestampable from apps.user.models import UserProfile class IP(Timestampable): address = models.URLField(max_length=255) vhost = models.CharField(blank=True, max_length=255, default='default') use...
{"/apps/landing/views.py": ["/apps/landing/models.py", "/apps/base/views.py"], "/apps/ip/views.py": ["/apps/ip/models.py", "/apps/base/views.py", "/apps/ip/utils.py"], "/apps/user/views.py": ["/apps/landing/models.py", "/apps/base/views.py"], "/apps/ip/models.py": ["/apps/user/models.py"], "/apps/ip/utils.py": ["/apps/...
50,875
binhvq/nms
refs/heads/master
/apps/user/migrations/0001_initial.py
# -*- coding: utf-8 -*- # Generated by Django 1.9.6 on 2016-06-02 08:10 from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ('auth', ...
{"/apps/landing/views.py": ["/apps/landing/models.py", "/apps/base/views.py"], "/apps/ip/views.py": ["/apps/ip/models.py", "/apps/base/views.py", "/apps/ip/utils.py"], "/apps/user/views.py": ["/apps/landing/models.py", "/apps/base/views.py"], "/apps/ip/models.py": ["/apps/user/models.py"], "/apps/ip/utils.py": ["/apps/...
50,876
binhvq/nms
refs/heads/master
/apps/agent/pingit.py
#-------------------------------------------------- # @author: Tran Duc Loi # @email: loitranduc@gmail.com # @version: 1.0 # @project: NMS - Jetpjng.com # @community: Pythonvietnam #-------------------------------------------------- from threading import Thread from queue import Queue import subprocess import gevent...
{"/apps/landing/views.py": ["/apps/landing/models.py", "/apps/base/views.py"], "/apps/ip/views.py": ["/apps/ip/models.py", "/apps/base/views.py", "/apps/ip/utils.py"], "/apps/user/views.py": ["/apps/landing/models.py", "/apps/base/views.py"], "/apps/ip/models.py": ["/apps/user/models.py"], "/apps/ip/utils.py": ["/apps/...
50,877
binhvq/nms
refs/heads/master
/apps/base/__init__.py
default_app_config = 'apps.base.apps.UsersAppConfig'
{"/apps/landing/views.py": ["/apps/landing/models.py", "/apps/base/views.py"], "/apps/ip/views.py": ["/apps/ip/models.py", "/apps/base/views.py", "/apps/ip/utils.py"], "/apps/user/views.py": ["/apps/landing/models.py", "/apps/base/views.py"], "/apps/ip/models.py": ["/apps/user/models.py"], "/apps/ip/utils.py": ["/apps/...
50,878
binhvq/nms
refs/heads/master
/apps/ip/utils.py
from .models import IP class UtilsIP(object): def get_list_ip(self, vhost): obj_vhost = {} obj_vhost['default'] = [] if not vhost: list_ip = IP.objects.values_list('vhost', 'address').distinct() for ip in list_ip: key = ip[0] if key:...
{"/apps/landing/views.py": ["/apps/landing/models.py", "/apps/base/views.py"], "/apps/ip/views.py": ["/apps/ip/models.py", "/apps/base/views.py", "/apps/ip/utils.py"], "/apps/user/views.py": ["/apps/landing/models.py", "/apps/base/views.py"], "/apps/ip/models.py": ["/apps/user/models.py"], "/apps/ip/utils.py": ["/apps/...
50,879
binhvq/nms
refs/heads/master
/apps/base/signals.py
from django.dispatch import receiver from django.db.models.signals import post_delete, post_save from django.contrib.auth.signals import user_logged_in from django.conf import settings from django.apps import apps from string import digits from random import choice from apps.user.models import UserProfile @receiver...
{"/apps/landing/views.py": ["/apps/landing/models.py", "/apps/base/views.py"], "/apps/ip/views.py": ["/apps/ip/models.py", "/apps/base/views.py", "/apps/ip/utils.py"], "/apps/user/views.py": ["/apps/landing/models.py", "/apps/base/views.py"], "/apps/ip/models.py": ["/apps/user/models.py"], "/apps/ip/utils.py": ["/apps/...
50,880
binhvq/nms
refs/heads/master
/apps/core/coreconfig.py
#-------------------------------------------------- # @author: Tran Duc Loi # @email: loitranduc@gmail.com # @version: 1.0 # @project: NMS - Jetpjng.com # @community: Pythonvietnam #-------------------------------------------------- import logging logging.basicConfig(level=logging.INFO, format='%(asctime)s [%(threadN...
{"/apps/landing/views.py": ["/apps/landing/models.py", "/apps/base/views.py"], "/apps/ip/views.py": ["/apps/ip/models.py", "/apps/base/views.py", "/apps/ip/utils.py"], "/apps/user/views.py": ["/apps/landing/models.py", "/apps/base/views.py"], "/apps/ip/models.py": ["/apps/user/models.py"], "/apps/ip/utils.py": ["/apps/...
50,881
binhvq/nms
refs/heads/master
/apps/home/views.py
from django.core.urlresolvers import reverse_lazy from django.views.generic import TemplateView from django.http import HttpResponse, HttpResponseRedirect from django.contrib.auth import logout from apps.landing.models import Landing from apps.base.views import (BaseView, LoginRequiredMixin) # Create your views here...
{"/apps/landing/views.py": ["/apps/landing/models.py", "/apps/base/views.py"], "/apps/ip/views.py": ["/apps/ip/models.py", "/apps/base/views.py", "/apps/ip/utils.py"], "/apps/user/views.py": ["/apps/landing/models.py", "/apps/base/views.py"], "/apps/ip/models.py": ["/apps/user/models.py"], "/apps/ip/utils.py": ["/apps/...
50,882
binhvq/nms
refs/heads/master
/apps/pusher/main.py
import requests TOKEN = '228606601:AAGltjoUHRr-wsk4vtFefI58dqs8WXImHfk' BASE_URL = 'https://api.telegram.org/bot' + TOKEN def sendMsg(msg = "fuck"): data = {'chat_id': '-128786812', 'text': msg} url = BASE_URL + '/sendMessage' r = requests.post(url, data) print(r.text) def getMe(): url = BASE_URL...
{"/apps/landing/views.py": ["/apps/landing/models.py", "/apps/base/views.py"], "/apps/ip/views.py": ["/apps/ip/models.py", "/apps/base/views.py", "/apps/ip/utils.py"], "/apps/user/views.py": ["/apps/landing/models.py", "/apps/base/views.py"], "/apps/ip/models.py": ["/apps/user/models.py"], "/apps/ip/utils.py": ["/apps/...
50,883
binhvq/nms
refs/heads/master
/apps/agent/agent_vh1.py
#-------------------------------------------------- # @author: Tran Duc Loi # @email: loitranduc@gmail.com # @version: 1.0 # @project: NMS - Jetpjng.com # @community: Pythonvietnam #-------------------------------------------------- import pika import json import random from time import gmtime, strftime from pingit i...
{"/apps/landing/views.py": ["/apps/landing/models.py", "/apps/base/views.py"], "/apps/ip/views.py": ["/apps/ip/models.py", "/apps/base/views.py", "/apps/ip/utils.py"], "/apps/user/views.py": ["/apps/landing/models.py", "/apps/base/views.py"], "/apps/ip/models.py": ["/apps/user/models.py"], "/apps/ip/utils.py": ["/apps/...
50,884
binhvq/nms
refs/heads/master
/nms/urls.py
"""nms URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.9/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Class-based v...
{"/apps/landing/views.py": ["/apps/landing/models.py", "/apps/base/views.py"], "/apps/ip/views.py": ["/apps/ip/models.py", "/apps/base/views.py", "/apps/ip/utils.py"], "/apps/user/views.py": ["/apps/landing/models.py", "/apps/base/views.py"], "/apps/ip/models.py": ["/apps/user/models.py"], "/apps/ip/utils.py": ["/apps/...
50,885
binhvq/nms
refs/heads/master
/apps/ip/admin.py
from django.contrib import admin from .models import (IP) # Register your models here. admin.site.register(IP)
{"/apps/landing/views.py": ["/apps/landing/models.py", "/apps/base/views.py"], "/apps/ip/views.py": ["/apps/ip/models.py", "/apps/base/views.py", "/apps/ip/utils.py"], "/apps/user/views.py": ["/apps/landing/models.py", "/apps/base/views.py"], "/apps/ip/models.py": ["/apps/user/models.py"], "/apps/ip/utils.py": ["/apps/...
50,886
binhvq/nms
refs/heads/master
/apps/transaction/models.py
from django.db import models from apps.base.models import Timestampable class Transaction(Timestampable): address = models.CharField(max_length=255) vhost = models.CharField(max_length=255, default='default') agent_ping_time = models.DateTimeField(blank=True) time_avg = models.FloatField(default=999, ...
{"/apps/landing/views.py": ["/apps/landing/models.py", "/apps/base/views.py"], "/apps/ip/views.py": ["/apps/ip/models.py", "/apps/base/views.py", "/apps/ip/utils.py"], "/apps/user/views.py": ["/apps/landing/models.py", "/apps/base/views.py"], "/apps/ip/models.py": ["/apps/user/models.py"], "/apps/ip/utils.py": ["/apps/...
50,887
binhvq/nms
refs/heads/master
/apps/transaction/views.py
from django.shortcuts import render from django.core.exceptions import PermissionDenied from django.http import HttpResponse from django.views.decorators.csrf import csrf_exempt from django.utils.decorators import method_decorator from django.db.models import Avg, Count, Max, ExpressionWrapper, F, CharField import json...
{"/apps/landing/views.py": ["/apps/landing/models.py", "/apps/base/views.py"], "/apps/ip/views.py": ["/apps/ip/models.py", "/apps/base/views.py", "/apps/ip/utils.py"], "/apps/user/views.py": ["/apps/landing/models.py", "/apps/base/views.py"], "/apps/ip/models.py": ["/apps/user/models.py"], "/apps/ip/utils.py": ["/apps/...
50,888
binhvq/nms
refs/heads/master
/apps/base/views.py
from django.contrib.auth.decorators import login_required from django.utils.decorators import method_decorator from django.views.decorators.gzip import gzip_page from django.http import HttpResponse from django.views.generic import View import json class LoginRequiredMixin(View): """docstring for LoginRequiredMixi...
{"/apps/landing/views.py": ["/apps/landing/models.py", "/apps/base/views.py"], "/apps/ip/views.py": ["/apps/ip/models.py", "/apps/base/views.py", "/apps/ip/utils.py"], "/apps/user/views.py": ["/apps/landing/models.py", "/apps/base/views.py"], "/apps/ip/models.py": ["/apps/user/models.py"], "/apps/ip/utils.py": ["/apps/...
50,889
justin-ridge/music-data-api
refs/heads/master
/songs.py
import db import json import math PAGE_SIZE = 50 def get_songs(page): return get_songs_query('', page) def get_song(songid): query = db.query_db('SELECT * FROM songs WHERE songid=%s;' % songid) return json.dumps(query) def get_page_count(): count = int(get_count()) return str(math.ceil(count ...
{"/songs.py": ["/db.py"], "/test.py": ["/songs.py", "/datamanipulation.py"], "/app.py": ["/songs.py", "/compress.py", "/probability.py", "/datamanipulation.py"], "/datamanipulation.py": ["/data_container.py"]}
50,890
justin-ridge/music-data-api
refs/heads/master
/test.py
import unittest import songs import datamanipulation import os import json THIS_DIR = os.path.dirname(os.path.abspath(__file__)) class TestDataManipulation(unittest.TestCase): def test_random_forest(self): filename = os.path.join(THIS_DIR, 'sample_0.csv') data = '' with open(filename, en...
{"/songs.py": ["/db.py"], "/test.py": ["/songs.py", "/datamanipulation.py"], "/app.py": ["/songs.py", "/compress.py", "/probability.py", "/datamanipulation.py"], "/datamanipulation.py": ["/data_container.py"]}
50,891
justin-ridge/music-data-api
refs/heads/master
/compress.py
import gzip import shutil def compress_db(): with open('songs.db', 'rb') as f_in: with gzip.open('songs.db.gz', 'wb') as f_out: shutil.copyfileobj(f_in, f_out) def unzip_db(): with gzip.open('songs.db.gz', 'rb') as f_in: with open('songs.db', 'wb') as f_out: shutil.co...
{"/songs.py": ["/db.py"], "/test.py": ["/songs.py", "/datamanipulation.py"], "/app.py": ["/songs.py", "/compress.py", "/probability.py", "/datamanipulation.py"], "/datamanipulation.py": ["/data_container.py"]}
50,892
justin-ridge/music-data-api
refs/heads/master
/data_container.py
class DataContainer: def __init__(self, features, labels): self.features, self.labels = features, labels
{"/songs.py": ["/db.py"], "/test.py": ["/songs.py", "/datamanipulation.py"], "/app.py": ["/songs.py", "/compress.py", "/probability.py", "/datamanipulation.py"], "/datamanipulation.py": ["/data_container.py"]}
50,893
justin-ridge/music-data-api
refs/heads/master
/app.py
import flask as fl from flask import abort, escape from flask_cors import CORS import http import songs import compress import probability import pickle import datamanipulation app = fl.Flask(__name__) cors = CORS(app, resources={r"/api/*": {"origins": "*"}}) compress.unzip_db() model = pickle.load(open('naive_bayes....
{"/songs.py": ["/db.py"], "/test.py": ["/songs.py", "/datamanipulation.py"], "/app.py": ["/songs.py", "/compress.py", "/probability.py", "/datamanipulation.py"], "/datamanipulation.py": ["/data_container.py"]}
50,894
justin-ridge/music-data-api
refs/heads/master
/probability.py
import pandas as pd def get_genre(genre, name): compare = 'genre_' + genre if name == compare: return 1.0 return 0.0 def predict(model, data): d = pd.DataFrame(columns=('acousticness', 'danceability', 'duration_ms', 'energy', 'instrumentalness', 'liveness', 'lou...
{"/songs.py": ["/db.py"], "/test.py": ["/songs.py", "/datamanipulation.py"], "/app.py": ["/songs.py", "/compress.py", "/probability.py", "/datamanipulation.py"], "/datamanipulation.py": ["/data_container.py"]}
50,895
justin-ridge/music-data-api
refs/heads/master
/datamanipulation.py
from matplotlib import pyplot as plt import pandas as pd import zipfile import io import base64 from sklearn.preprocessing import MinMaxScaler from data_container import DataContainer from sklearn.model_selection import train_test_split from sklearn.naive_bayes import GaussianNB from sklearn.ensemble import RandomFores...
{"/songs.py": ["/db.py"], "/test.py": ["/songs.py", "/datamanipulation.py"], "/app.py": ["/songs.py", "/compress.py", "/probability.py", "/datamanipulation.py"], "/datamanipulation.py": ["/data_container.py"]}
50,896
justin-ridge/music-data-api
refs/heads/master
/analysis/kmeans.py
import pandas as pd import seaborn as sns import matplotlib.pyplot as plt from sklearn.decomposition import PCA from sklearn.cluster import KMeans from matplotlib import rcParams rcParams.update({'figure.autolayout': True}) def kmeans_cluster(features): clustering_kmeans = KMeans(n_clusters=5) features['clus...
{"/songs.py": ["/db.py"], "/test.py": ["/songs.py", "/datamanipulation.py"], "/app.py": ["/songs.py", "/compress.py", "/probability.py", "/datamanipulation.py"], "/datamanipulation.py": ["/data_container.py"]}
50,897
justin-ridge/music-data-api
refs/heads/master
/db.py
import sqlite3 from sqlite3 import Error DB_FILE = 'songs.db' def get_connection(): conn = None try: conn = sqlite3.connect(DB_FILE) except Error as e: print(e) return conn def query_db(query, args=(), one=False): cur = get_connection().cursor() cur.execute(query, args) ...
{"/songs.py": ["/db.py"], "/test.py": ["/songs.py", "/datamanipulation.py"], "/app.py": ["/songs.py", "/compress.py", "/probability.py", "/datamanipulation.py"], "/datamanipulation.py": ["/data_container.py"]}
50,899
colmassakian/ChessFen
refs/heads/master
/Interface.py
from ChessFEN import * from Tkinter import * import webbrowser def submit(): link = linkEntry.get() fen = getFEN(link) selection = "https://lichess.org/analysis/standard/" + fen + "_" + color.get() + "_KQkq_-_0_1" print(selection) resultLink.config(text = selection) resultLink.bind("<Button-1>", lambda event: w...
{"/Interface.py": ["/ChessFEN.py"]}
50,900
colmassakian/ChessFen
refs/heads/master
/ChessFEN.py
from selenium import webdriver class piece: def __init__(self, file, rank, pieceID): self.file = file self.rank = rank self.pieceID = pieceID # https://www.chess.com/puzzles/battle/2KDwKNvb8 def getFEN(link): activePieces = [] # TODO: Use chrome driver in headless form driver = webdriver.Firefox() drive...
{"/Interface.py": ["/ChessFEN.py"]}
50,902
Ebenezer319/data_pull
refs/heads/main
/data_pull/tests/test.py
# -*- coding: utf-8 -*- """ Created on Wed Jul 28 11:57:23 2021 @author: ebenezer.an """ import unittest from data_pull.main import DataPull import pandas as pd import string class TestBasic(unittest.TestCase): def test_input(self): lowercase_letters = list(string.ascii_lowercase) ...
{"/data_pull/tests/test.py": ["/data_pull/main.py"]}
50,903
Ebenezer319/data_pull
refs/heads/main
/setup.py
from setuptools import setup import pathlib def readme(): this_directory = pathlib.Path(__file__).parent.resolve() long_description = (this_directory / 'README.md').read_text(encoding='utf-8') return long_description setup(name='data_pull', version='1.0.0', description='Data Extract', ...
{"/data_pull/tests/test.py": ["/data_pull/main.py"]}
50,904
Ebenezer319/data_pull
refs/heads/main
/data_pull/main.py
# -*- coding: utf-8 -*- """ Created on Mon Jul 26 21:33:09 2021 @author: ebenezer.an """ import requests import pandas as pd import string import numpy as np import sys # In[Class for Pulling Data] class DataPull: def __init__(self): self.lowercase_letters = list(string.ascii_lo...
{"/data_pull/tests/test.py": ["/data_pull/main.py"]}
50,959
jac18281828/binance_power_toys
refs/heads/main
/cancel_order.py
from binance_order import binance_order import sys,time,json if __name__ == '__main__': if len(sys.argv) > 2: try: apikeyfile = sys.argv[1] orderId = sys.argv[2] with open(apikeyfile) as keyfile: apikey = json.load(keyfile) orderapi = bi...
{"/cancel_order.py": ["/binance_order.py"], "/listen_key.py": ["/binance_order.py"], "/order.py": ["/binance_order.py"], "/binance_order.py": ["/binance_request.py"]}
50,960
jac18281828/binance_power_toys
refs/heads/main
/listen_key.py
from binance_order import binance_order import json,sys if __name__ == '__main__': if len(sys.argv) > 1: try: apikeyfile = sys.argv[1] with open(apikeyfile) as keyfile: apikey = json.load(keyfile) orderapi = binance_order(apikey) li...
{"/cancel_order.py": ["/binance_order.py"], "/listen_key.py": ["/binance_order.py"], "/order.py": ["/binance_order.py"], "/binance_order.py": ["/binance_request.py"]}
50,961
jac18281828/binance_power_toys
refs/heads/main
/order.py
from binance_order import binance_order import json,sys if __name__ == '__main__': if len(sys.argv) > 1: try: apikeyfile = sys.argv[1] with open(apikeyfile) as keyfile: apikey = json.load(keyfile) orderapi = binance_order(apikey) or...
{"/cancel_order.py": ["/binance_order.py"], "/listen_key.py": ["/binance_order.py"], "/order.py": ["/binance_order.py"], "/binance_order.py": ["/binance_request.py"]}
50,962
jac18281828/binance_power_toys
refs/heads/main
/binance_request.py
import time, base64, hashlib, hmac, urllib.request, urllib.parse, json, ssl, certifi class binance_request: API_URL = 'https://testnet.binance.vision/api' def __init__(self, apikey): self.apikey = apikey def build(self, params): otp = self.apikey['passphrase'] if len(otp) > 0: ...
{"/cancel_order.py": ["/binance_order.py"], "/listen_key.py": ["/binance_order.py"], "/order.py": ["/binance_order.py"], "/binance_order.py": ["/binance_request.py"]}
50,963
jac18281828/binance_power_toys
refs/heads/main
/binance_order.py
from binance_request import binance_request import json class binance_order(binance_request): def test(self, order): result = self.post('/v3/order/test', order) return json.loads(result.decode()) def submit(self, order): result=self.post('/v3/order', order) return json.loa...
{"/cancel_order.py": ["/binance_order.py"], "/listen_key.py": ["/binance_order.py"], "/order.py": ["/binance_order.py"], "/binance_order.py": ["/binance_request.py"]}
50,964
jac18281828/binance_power_toys
refs/heads/main
/binance.py
import asyncio import urllib.request import websockets import json import sys import time import traceback import ssl import certifi class BinanceWss: API_URL = 'https://testnet.binance.vision/api' WS_URL = 'wss://testnet.binance.vision/ws' PRODUCT_ID='BTCUSDT' is_running = True def __init_...
{"/cancel_order.py": ["/binance_order.py"], "/listen_key.py": ["/binance_order.py"], "/order.py": ["/binance_order.py"], "/binance_order.py": ["/binance_request.py"]}
50,965
zhch602/ZhiHuSpider
refs/heads/master
/main.py
# -*- coding: utf-8 -*- from PyQt4.QtGui import * from PyQt4.QtCore import * from operate import * QTextCodec.setCodecForTr(QTextCodec.codecForName("utf8")) class MainDialog(QTabWidget): def __init__(self, parent=None): self.residence = 0 self.sex = 0 self.occupation = 0 self.edu...
{"/main.py": ["/operate.py"]}
50,966
zhch602/ZhiHuSpider
refs/heads/master
/operate.py
# -*- coding: utf-8 -*- from __future__ import division from zhihu import * from collections import Counter import operator class Analysisrespondent(): url = "" residence = [] occupation1 = 0 occupation2 = 0 occupation3 = 0 occupation4 = 0 occupation5 = 0 occupation6 = 0 occupatio...
{"/main.py": ["/operate.py"]}
50,972
KozhevnikovM/devman-the-event
refs/heads/master
/enrollment/models.py
from django.db import models class Application(models.Model): contact_phone = models.CharField(max_length=20) ticket_type = models.CharField(max_length=20, db_index=True, choices=( ('standard-access', 'Standard Access'), ('pro-access', 'Pro Access'), ('premium-access', 'Premium Access...
{"/enrollment/views.py": ["/enrollment/models.py"]}
50,973
KozhevnikovM/devman-the-event
refs/heads/master
/enrollment/views.py
from rest_framework.decorators import api_view from rest_framework.response import Response from .models import Application, Participant @api_view(['POST']) def enroll(request): if 'contact_phone' not in request.data: return Response(['Contact phone field is required.'], status=400) if 'ticket_type'...
{"/enrollment/views.py": ["/enrollment/models.py"]}
50,974
KozhevnikovM/devman-the-event
refs/heads/master
/enrollment/migrations/0001_initial.py
# Generated by Django 3.0.8 on 2020-07-13 15:54 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Application', fields=[ ...
{"/enrollment/views.py": ["/enrollment/models.py"]}
50,975
KozhevnikovM/devman-the-event
refs/heads/master
/enrollment/admin.py
from django.contrib import admin from . import models class ParticipantInline(admin.TabularInline): model = models.Participant @admin.register(models.Application) class ApplicationAdmin(admin.ModelAdmin): list_display = ['contact_phone', 'ticket_type', 'confirmed'] list_filter = [ 'ticket_type'...
{"/enrollment/views.py": ["/enrollment/models.py"]}
50,979
HeylonNHP/RIFE-Colab
refs/heads/main
/install_dependencies.py
import os import subprocess import sys import addInstalldirToPath from addInstalldirToPath import * from Globals.BuildConfig import BuildConfig REQUIRED_PACKAGES = ['numpy>=1.16', 'tqdm>=4.35.0', 'opencv-python>=4.1.2', 'pyqt5', 'requests'] def install(package): subprocess.check_call([sys.executable, "-m", "pip"...
{"/install_dependencies.py": ["/addInstalldirToPath.py", "/Globals/BuildConfig.py"], "/mainGuiUi.py": ["/pyqtHeaders/FileEdit.py"], "/QueuedFrames/SaveFramesList.py": ["/QueuedFrames/FrameFile.py"], "/runInterpolationIndividualSteps.py": ["/addInstalldirToPath.py", "/generalInterpolationProceedures.py"], "/generalInter...
50,980
HeylonNHP/RIFE-Colab
refs/heads/main
/mainGuiUi.py
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'C:\Users\Shiwo\PycharmProjects\RIFE-Colab\main_gui.ui' # # Created by: PyQt5 UI code generator 5.15.6 # # WARNING: Any manual changes made to this file will be lost when pyuic5 is # run again. Do not edit this file unless you know what you ...
{"/install_dependencies.py": ["/addInstalldirToPath.py", "/Globals/BuildConfig.py"], "/mainGuiUi.py": ["/pyqtHeaders/FileEdit.py"], "/QueuedFrames/SaveFramesList.py": ["/QueuedFrames/FrameFile.py"], "/runInterpolationIndividualSteps.py": ["/addInstalldirToPath.py", "/generalInterpolationProceedures.py"], "/generalInter...
50,981
HeylonNHP/RIFE-Colab
refs/heads/main
/QueuedFrames/SaveFramesList.py
from QueuedFrames.FrameFile import FrameFile class SaveFramesList: framesList:list = None startOutputFrame:str = None endOutputFrame:str = None def __init__(self, framesList,startOutputFrame,endOutputFrame): self.framesList = framesList self.startOutputFrame = startOutputFrame ...
{"/install_dependencies.py": ["/addInstalldirToPath.py", "/Globals/BuildConfig.py"], "/mainGuiUi.py": ["/pyqtHeaders/FileEdit.py"], "/QueuedFrames/SaveFramesList.py": ["/QueuedFrames/FrameFile.py"], "/runInterpolationIndividualSteps.py": ["/addInstalldirToPath.py", "/generalInterpolationProceedures.py"], "/generalInter...
50,982
HeylonNHP/RIFE-Colab
refs/heads/main
/QueuedFrames/InterpolationProgress.py
class InterpolationProgress: progressMessage: str = None completedFrames: int = None totalFrames: int = None def __init__(self): pass
{"/install_dependencies.py": ["/addInstalldirToPath.py", "/Globals/BuildConfig.py"], "/mainGuiUi.py": ["/pyqtHeaders/FileEdit.py"], "/QueuedFrames/SaveFramesList.py": ["/QueuedFrames/FrameFile.py"], "/runInterpolationIndividualSteps.py": ["/addInstalldirToPath.py", "/generalInterpolationProceedures.py"], "/generalInter...
50,983
HeylonNHP/RIFE-Colab
refs/heads/main
/runInterpolationIndividualSteps.py
from str2bool import * import argparse import os import sys import addInstalldirToPath # Why should we need to add the submodule to the path, just for the RIFE import to work # Thanks for being consistently terrible, python sys.path.insert(0, os.getcwd() + os.path.sep + 'arXiv2020RIFE') from generalInterpolationProce...
{"/install_dependencies.py": ["/addInstalldirToPath.py", "/Globals/BuildConfig.py"], "/mainGuiUi.py": ["/pyqtHeaders/FileEdit.py"], "/QueuedFrames/SaveFramesList.py": ["/QueuedFrames/FrameFile.py"], "/runInterpolationIndividualSteps.py": ["/addInstalldirToPath.py", "/generalInterpolationProceedures.py"], "/generalInter...
50,984
HeylonNHP/RIFE-Colab
refs/heads/main
/generalInterpolationProceedures.py
import gc import importlib import math import os import shutil import sys import traceback from queue import Queue import collections import threading import time from QueuedFrames.SaveFramesList import SaveFramesList from QueuedFrames.queuedFrameList import * from QueuedFrames.queuedFrame import * from QueuedFrames.F...
{"/install_dependencies.py": ["/addInstalldirToPath.py", "/Globals/BuildConfig.py"], "/mainGuiUi.py": ["/pyqtHeaders/FileEdit.py"], "/QueuedFrames/SaveFramesList.py": ["/QueuedFrames/FrameFile.py"], "/runInterpolationIndividualSteps.py": ["/addInstalldirToPath.py", "/generalInterpolationProceedures.py"], "/generalInter...
50,985
HeylonNHP/RIFE-Colab
refs/heads/main
/QueuedFrames/FrameFile.py
import cv2 import numpy import os class FrameFile: filePath: str = None imageData = None def __init__(self, filePath: str): self.filePath = filePath def __str__(self): return self.filePath def setImageData(self, imageData): self.imageData = imageData def getImageData...
{"/install_dependencies.py": ["/addInstalldirToPath.py", "/Globals/BuildConfig.py"], "/mainGuiUi.py": ["/pyqtHeaders/FileEdit.py"], "/QueuedFrames/SaveFramesList.py": ["/QueuedFrames/FrameFile.py"], "/runInterpolationIndividualSteps.py": ["/addInstalldirToPath.py", "/generalInterpolationProceedures.py"], "/generalInter...
50,986
HeylonNHP/RIFE-Colab
refs/heads/main
/runAndPrintOutput.py
from subprocess import Popen, PIPE, STDOUT, run def run_and_print_output(array_command: list): # result = run(arrayCommand, shell=False, universal_newlines=True, stderr=STDOUT, check=False).stdout p = Popen(array_command, shell=False, universal_newlines=True, stdin=PIPE, stdout=PIPE, stderr=STDOUT, ...
{"/install_dependencies.py": ["/addInstalldirToPath.py", "/Globals/BuildConfig.py"], "/mainGuiUi.py": ["/pyqtHeaders/FileEdit.py"], "/QueuedFrames/SaveFramesList.py": ["/QueuedFrames/FrameFile.py"], "/runInterpolationIndividualSteps.py": ["/addInstalldirToPath.py", "/generalInterpolationProceedures.py"], "/generalInter...
50,987
HeylonNHP/RIFE-Colab
refs/heads/main
/Globals/InterpolatorConfig.py
class InterpolatorConfig: _interpolators = ["RIFE"] _interpolator = "RIFE" _interpolationFactor = 2 _loopable = False _mode = 1 _clearPngs = True _nonLocalPngs = True _scenechangeSensitivity = 0.20 _mpdecimateSensitivity = "64*12,64*8,0.33" _enableMpdecimate = True _useAccura...
{"/install_dependencies.py": ["/addInstalldirToPath.py", "/Globals/BuildConfig.py"], "/mainGuiUi.py": ["/pyqtHeaders/FileEdit.py"], "/QueuedFrames/SaveFramesList.py": ["/QueuedFrames/FrameFile.py"], "/runInterpolationIndividualSteps.py": ["/addInstalldirToPath.py", "/generalInterpolationProceedures.py"], "/generalInter...
50,988
HeylonNHP/RIFE-Colab
refs/heads/main
/main_gui.py
# https://raevskymichail.medium.com/python-gui-building-a-simple-application-with-pyqt-and-qt-designer-e9f8cda76246 import glob import json # from PyQt5 import uic import os import sys # from PyQt5 import QtWidgets from PyQt5 import QtWidgets from PyQt5.QtCore import * from PyQt5.QtGui import * from PyQt5.QtWidgets im...
{"/install_dependencies.py": ["/addInstalldirToPath.py", "/Globals/BuildConfig.py"], "/mainGuiUi.py": ["/pyqtHeaders/FileEdit.py"], "/QueuedFrames/SaveFramesList.py": ["/QueuedFrames/FrameFile.py"], "/runInterpolationIndividualSteps.py": ["/addInstalldirToPath.py", "/generalInterpolationProceedures.py"], "/generalInter...
50,989
HeylonNHP/RIFE-Colab
refs/heads/main
/Globals/BuildConfig.py
class BuildConfig: def isPyInstallerBuild(self): # If compiling rife-colab-gui into a pyinstaller build, set this to True, then run install_dependencies.py return False
{"/install_dependencies.py": ["/addInstalldirToPath.py", "/Globals/BuildConfig.py"], "/mainGuiUi.py": ["/pyqtHeaders/FileEdit.py"], "/QueuedFrames/SaveFramesList.py": ["/QueuedFrames/FrameFile.py"], "/runInterpolationIndividualSteps.py": ["/addInstalldirToPath.py", "/generalInterpolationProceedures.py"], "/generalInter...
50,990
HeylonNHP/RIFE-Colab
refs/heads/main
/QueuedFrames/queuedFrame.py
class QueuedFrame: beginFrame:str = None endFrame:str = None middleFrame:str = None scenechangeSensitivity = None def __init__(self, beginFrame, endFrame, middleFrame, scenechangeSensitivity): self.beginFrame = beginFrame self.endFrame = endFrame self.middleFrame = middleFram...
{"/install_dependencies.py": ["/addInstalldirToPath.py", "/Globals/BuildConfig.py"], "/mainGuiUi.py": ["/pyqtHeaders/FileEdit.py"], "/QueuedFrames/SaveFramesList.py": ["/QueuedFrames/FrameFile.py"], "/runInterpolationIndividualSteps.py": ["/addInstalldirToPath.py", "/generalInterpolationProceedures.py"], "/generalInter...
50,991
HeylonNHP/RIFE-Colab
refs/heads/main
/FFmpegFunctions.py
import re import subprocess from Globals.GlobalValues import GlobalValues ffmpegLocation = GlobalValues().getFFmpegPath() ffprobeLocation = GlobalValues().getFFmpegPath(ffprobe=True) def set_ffmpeg_location(location): global ffmpegLocation ffmpegLocation = location def get_frame_count(input_path, mpdecimat...
{"/install_dependencies.py": ["/addInstalldirToPath.py", "/Globals/BuildConfig.py"], "/mainGuiUi.py": ["/pyqtHeaders/FileEdit.py"], "/QueuedFrames/SaveFramesList.py": ["/QueuedFrames/FrameFile.py"], "/runInterpolationIndividualSteps.py": ["/addInstalldirToPath.py", "/generalInterpolationProceedures.py"], "/generalInter...
50,992
HeylonNHP/RIFE-Colab
refs/heads/main
/runInterpolationAllSteps.py
from str2bool import * import argparse import os import sys import addInstalldirToPath from Globals.EncoderConfig import EncoderConfig # Why should we need to add the submodule to the path, just for the RIFE import to work # Thanks for being consistently terrible, python sys.path.insert(0, os.getcwd() + os.path.sep +...
{"/install_dependencies.py": ["/addInstalldirToPath.py", "/Globals/BuildConfig.py"], "/mainGuiUi.py": ["/pyqtHeaders/FileEdit.py"], "/QueuedFrames/SaveFramesList.py": ["/QueuedFrames/FrameFile.py"], "/runInterpolationIndividualSteps.py": ["/addInstalldirToPath.py", "/generalInterpolationProceedures.py"], "/generalInter...
50,993
HeylonNHP/RIFE-Colab
refs/heads/main
/rifeInterpolationFunctions.py
import os import threading import numpy as np # os.chdir('arXiv2020-RIFE/') import torch # from arXiv2020RIFE.model.RIFE_HDv2 import Model from arXiv2020RIFE.train_log.RIFE_HDv3 import Model from torch.nn import functional as F from QueuedFrames.FrameFile import FrameFile useHalfPrecision: bool = False setupRifeThr...
{"/install_dependencies.py": ["/addInstalldirToPath.py", "/Globals/BuildConfig.py"], "/mainGuiUi.py": ["/pyqtHeaders/FileEdit.py"], "/QueuedFrames/SaveFramesList.py": ["/QueuedFrames/FrameFile.py"], "/runInterpolationIndividualSteps.py": ["/addInstalldirToPath.py", "/generalInterpolationProceedures.py"], "/generalInter...
50,994
HeylonNHP/RIFE-Colab
refs/heads/main
/Globals/MachinePowerStatesHandler.py
import os import runAndPrintOutput class MachinePowerStatesHandler: def shutdownComputer(self): if os.name == 'nt': runAndPrintOutput.run_and_print_output(['shutdown', '/s', '/t', '1']) else: # Ubuntu runAndPrintOutput.run_and_print_output(['systemctl', 'poweroff...
{"/install_dependencies.py": ["/addInstalldirToPath.py", "/Globals/BuildConfig.py"], "/mainGuiUi.py": ["/pyqtHeaders/FileEdit.py"], "/QueuedFrames/SaveFramesList.py": ["/QueuedFrames/FrameFile.py"], "/runInterpolationIndividualSteps.py": ["/addInstalldirToPath.py", "/generalInterpolationProceedures.py"], "/generalInter...
50,995
HeylonNHP/RIFE-Colab
refs/heads/main
/pyqtHeaders/FileEdit.py
# !/usr/bin/env python # -*- coding:utf-8 -*- # Sourced from: https://www.reddit.com/r/learnpython/comments/97z5dq/pyqt5_drag_and_drop_file_option/ from PyQt5.QtWidgets import QMessageBox, QLineEdit from PyQt5.QtGui import QIcon import sys import os class FileEdit(QLineEdit): acceptedFiles = [".mp4",".webm",".m...
{"/install_dependencies.py": ["/addInstalldirToPath.py", "/Globals/BuildConfig.py"], "/mainGuiUi.py": ["/pyqtHeaders/FileEdit.py"], "/QueuedFrames/SaveFramesList.py": ["/QueuedFrames/FrameFile.py"], "/runInterpolationIndividualSteps.py": ["/addInstalldirToPath.py", "/generalInterpolationProceedures.py"], "/generalInter...
50,996
HeylonNHP/RIFE-Colab
refs/heads/main
/runInterpolationBatch.py
from str2bool import * import argparse import os import traceback import sys import addInstalldirToPath # Why should we need to add the submodule to the path, just for the RIFE import to work # Thanks for being consistently terrible, python sys.path.insert(0, os.getcwd() + os.path.sep + 'arXiv2020RIFE') from general...
{"/install_dependencies.py": ["/addInstalldirToPath.py", "/Globals/BuildConfig.py"], "/mainGuiUi.py": ["/pyqtHeaders/FileEdit.py"], "/QueuedFrames/SaveFramesList.py": ["/QueuedFrames/FrameFile.py"], "/runInterpolationIndividualSteps.py": ["/addInstalldirToPath.py", "/generalInterpolationProceedures.py"], "/generalInter...
50,997
HeylonNHP/RIFE-Colab
refs/heads/main
/autoEncoding.py
import math from frameChooser import choose_frames_list from runAndPrintOutput import * import os import time import threading from Globals.GlobalValues import GlobalValues from Globals.EncoderConfig import EncoderConfig ffmpegPath = GlobalValues().getFFmpegPath() from FFmpegFunctions import * def mode1AutoEncoding...
{"/install_dependencies.py": ["/addInstalldirToPath.py", "/Globals/BuildConfig.py"], "/mainGuiUi.py": ["/pyqtHeaders/FileEdit.py"], "/QueuedFrames/SaveFramesList.py": ["/QueuedFrames/FrameFile.py"], "/runInterpolationIndividualSteps.py": ["/addInstalldirToPath.py", "/generalInterpolationProceedures.py"], "/generalInter...
50,998
HeylonNHP/RIFE-Colab
refs/heads/main
/QueuedFrames/queuedFrameList.py
from QueuedFrames.InterpolationProgress import InterpolationProgress class QueuedFrameList: frameList:list = None startFrame:str = None startFrameDest:str = None endFrame:str = None endFrameDest:str = None interpolationProgress:InterpolationProgress = None def __init__(self, frameList, start...
{"/install_dependencies.py": ["/addInstalldirToPath.py", "/Globals/BuildConfig.py"], "/mainGuiUi.py": ["/pyqtHeaders/FileEdit.py"], "/QueuedFrames/SaveFramesList.py": ["/QueuedFrames/FrameFile.py"], "/runInterpolationIndividualSteps.py": ["/addInstalldirToPath.py", "/generalInterpolationProceedures.py"], "/generalInter...
50,999
HeylonNHP/RIFE-Colab
refs/heads/main
/addInstalldirToPath.py
import os import sys path = os.path.realpath(__file__) path = path[:path.rindex(os.path.sep)] print(path) sys.path.insert(0, path)
{"/install_dependencies.py": ["/addInstalldirToPath.py", "/Globals/BuildConfig.py"], "/mainGuiUi.py": ["/pyqtHeaders/FileEdit.py"], "/QueuedFrames/SaveFramesList.py": ["/QueuedFrames/FrameFile.py"], "/runInterpolationIndividualSteps.py": ["/addInstalldirToPath.py", "/generalInterpolationProceedures.py"], "/generalInter...