index
int64
repo_name
string
branch_name
string
path
string
content
string
import_graph
string
94,800
shabd/business-time-api
refs/heads/main
/app/api/tests.py
from django.test import TestCase from .views import is_public_holiday, get_business_seconds import datetime class BusinessSeconds(TestCase): def test_is_public_holiday(self): """Tests that a given date is a public holiday""" self.assertEqual(is_public_holiday(2021-1-1), True) def test_get_bu...
{"/app/api/tests.py": ["/app/api/views.py"]}
94,801
debrouwere/posteriori
refs/heads/master
/utils.py
import functools import collections import numpy as np def vectorize(fn): """ Allows a method to accept one or more values, but internally deal only with a single item. """ @functools.wraps(fn) def vectorized_method(self, values, *vargs, **kwargs): scalar = not isinstance(values, col...
{"/benchmark.py": ["/posteriori.py"], "/posteriori.py": ["/utils.py"]}
94,802
debrouwere/posteriori
refs/heads/master
/benchmark.py
import pandas as pd import numpy as np from scipy.stats.distributions import expon, gamma, rayleigh, norm, t, uniform from posteriori import between def RMSE(predicted, expected): return np.linalg.norm(predicted - expected) / np.sqrt(len(predicted)) distributions = [ norm(), t(df=5), gamma(a=2), ...
{"/benchmark.py": ["/posteriori.py"], "/posteriori.py": ["/utils.py"]}
94,803
debrouwere/posteriori
refs/heads/master
/posteriori.py
# the first step in a probabilistic reasoning tool is figuring out # the most appropriate distribution given certain quantiles import numpy as np import scipy from scipy.stats import describe, distributions from scipy.stats import mstats from utils import proxy, vectorize, hpd N = 10000 def polygon(*quantiles, b...
{"/benchmark.py": ["/posteriori.py"], "/posteriori.py": ["/utils.py"]}
94,804
debrouwere/posteriori
refs/heads/master
/test.py
""" # TODO # 1. compare analytical and Monte Carlo estimates with `np.isclose` from posteriori import between a = between(5, 10) b = 2 * a print(a.cdf(7.5)) print(b.cdf(7.5)) print(a.ppf(0.5)) print(b.ppf(0.5)) print(a.isf(0.2)) print((1 * a).isf(0.2)) print(a.mean()) print(b.mean()) print(a.interval(0.9)) print...
{"/benchmark.py": ["/posteriori.py"], "/posteriori.py": ["/utils.py"]}
94,813
shaun95/arxiv_graph
refs/heads/main
/src/get_citations.py
import time import re import sys import os import gzip import math import json from pathlib import Path import config import src.blob_data_transfer as blob_pull from src.regex_arxiv import REGEX_ARXIV_FLEXIBLE, clean RE_FLEX = re.compile(REGEX_ARXIV_FLEXIBLE) RE_OLDNAME_SPLIT = re.compile(r"([a-z\-]+)(\d+)") def path...
{"/src/get_citations.py": ["/src/blob_data_transfer.py"], "/bin/create_txt_dataset.py": ["/src/blob_data_transfer.py", "/src/get_citations.py"], "/bin/create_img_dataset.py": ["/src/blob_data_transfer.py"]}
94,814
shaun95/arxiv_graph
refs/heads/main
/src/blob_data_transfer.py
import time import re import sys import glob import os import gzip import json import math from azure.storage.blob import BlobServiceClient, BlobClient, ContainerClient from pathlib import Path sys.path.append(os.path.abspath("/home/arxiv/doc_intel_etl")) import config CONTAINER = config.azure_blob['container'] # cre...
{"/src/get_citations.py": ["/src/blob_data_transfer.py"], "/bin/create_txt_dataset.py": ["/src/blob_data_transfer.py", "/src/get_citations.py"], "/bin/create_img_dataset.py": ["/src/blob_data_transfer.py"]}
94,815
shaun95/arxiv_graph
refs/heads/main
/bin/create_txt_dataset.py
''' File to convert raw arxiv data stored in azure blob into transformed data that can be uploaded to a graph and other downstream tasks for various learning tasks. This is the main file that will call multiple other functions. arxiv_dl pdf 1991 1992 1993 ... src 1991 ...
{"/src/get_citations.py": ["/src/blob_data_transfer.py"], "/bin/create_txt_dataset.py": ["/src/blob_data_transfer.py", "/src/get_citations.py"], "/bin/create_img_dataset.py": ["/src/blob_data_transfer.py"]}
94,816
shaun95/arxiv_graph
refs/heads/main
/src/get_metadata.py
import os import config from dataclasses import dataclass import gzip import glob import json import hashlib import requests import json import pandas as pd import xml.etree.ElementTree as ET import re import ray os.environ['PYTHONPATH'] = os.path.dirname(os.getcwd()) from src.authors import parse_authorline @dataclas...
{"/src/get_citations.py": ["/src/blob_data_transfer.py"], "/bin/create_txt_dataset.py": ["/src/blob_data_transfer.py", "/src/get_citations.py"], "/bin/create_img_dataset.py": ["/src/blob_data_transfer.py"]}
94,817
shaun95/arxiv_graph
refs/heads/main
/bin/create_img_dataset.py
''' File to convert raw arxiv data stored in azure blob into transformed data that can be uploaded to a graph and other downstream tasks for various learning tasks. This is the main file that will call multiple other functions. arxiv_dl pdf 1991 1992 1993 ... src 1991 ...
{"/src/get_citations.py": ["/src/blob_data_transfer.py"], "/bin/create_txt_dataset.py": ["/src/blob_data_transfer.py", "/src/get_citations.py"], "/bin/create_img_dataset.py": ["/src/blob_data_transfer.py"]}
94,818
shaun95/arxiv_graph
refs/heads/main
/models/text_embedding/app.py
from transformers import DistilBertTokenizer, DistilBertModel from flask import request, Flask, jsonify import json app = Flask(__name__) tokenizer = DistilBertTokenizer.from_pretrained('distilbert-base-uncased')#, output_hidden_states=True) model = DistilBertModel.from_pretrained('distilbert-base-uncased') model.eva...
{"/src/get_citations.py": ["/src/blob_data_transfer.py"], "/bin/create_txt_dataset.py": ["/src/blob_data_transfer.py", "/src/get_citations.py"], "/bin/create_img_dataset.py": ["/src/blob_data_transfer.py"]}
94,819
shaun95/arxiv_graph
refs/heads/main
/models/text_embedding/distilbert/distilbert_handler.py
from transformers import DistilBertTokenizer, DistilBertModel import torch from ts.torch_handler.base_handler import BaseHandler import json class MyHandler(BaseHandler): ''' Custom handler for pytorch serve. This handler supports single requests. ''' def __init__(self, *args, **kwargs): ...
{"/src/get_citations.py": ["/src/blob_data_transfer.py"], "/bin/create_txt_dataset.py": ["/src/blob_data_transfer.py", "/src/get_citations.py"], "/bin/create_img_dataset.py": ["/src/blob_data_transfer.py"]}
94,901
harshal1998/django_form
refs/heads/master
/form/app/views.py
from django.http import * from django.shortcuts import render from .form import * from .models import * # Create your views here. def vform(request): if request.method == "POST": temp = form(request.POST) if temp.is_valid(): temp.save() return HttpResponseRedirect('/') ...
{"/form/app/views.py": ["/form/app/form.py"]}
94,902
harshal1998/django_form
refs/heads/master
/form/app/form.py
from django import forms from .models import * class form(forms.ModelForm): name = forms.CharField(widget=forms.TextInput(), required=True, max_length=50) email = forms.EmailField(widget=forms.EmailInput(), required=True) city = forms.CharField(widget=forms.TextInput(), required=False, max_length=50) ...
{"/form/app/views.py": ["/form/app/form.py"]}
94,965
Sadaku1993/raycasting
refs/heads/master
/function.py
import numpy as np import math def is_collision(pose, ox, oy, robot_radius, obstacle_radius): flag = False for x,y in zip(ox, oy): distance = np.sqrt((x-pose[0])**2+(y-pose[1])**2) if distance<robot_radius+obstacle_radius: print("collision at x:%5.2f y:%5.2f d:%5.2f" % (x, y, distan...
{"/dumy_lidar.py": ["/function.py"]}
94,966
Sadaku1993/raycasting
refs/heads/master
/dumy_lidar.py
#coding:utf-8 import numpy as np import matplotlib.pyplot as plt import math from function import calc_angleid, atan_zero_to_twopi class lidarinfo: def __init__(self): self.px = 0.0 self.py = 0.0 self.d = 0.0 self.angle = 0.0 self.angleid = 0 self.init = False de...
{"/dumy_lidar.py": ["/function.py"]}
94,970
zhylcc/ihome
refs/heads/master
/ihome/__init__.py
# coding:utf-8 import logging from logging.handlers import RotatingFileHandler from flask import Flask from flask_sqlalchemy import SQLAlchemy from flask_session import Session from flask_wtf import CSRFProtect import redis from config import CONFIG_MAP from ihome.utils.commons import ReConverter db = SQLAlchemy() ...
{"/ihome/__init__.py": ["/config.py"], "/ihome/api_1_0/demo.py": ["/ihome/__init__.py"], "/ihome/api_1_0/vertify_code.py": ["/ihome/__init__.py", "/ihome/tasks/task_sms.py"], "/manage.py": ["/ihome/__init__.py"], "/ihome/api_1_0/passport.py": ["/ihome/__init__.py"]}
94,971
zhylcc/ihome
refs/heads/master
/ihome/api_1_0/demo.py
# coding:utf-8 from flask import current_app from ihome import db, models from . import api # /api/v1.0/index @api.route('/index') def index(): return 'index page'
{"/ihome/__init__.py": ["/config.py"], "/ihome/api_1_0/demo.py": ["/ihome/__init__.py"], "/ihome/api_1_0/vertify_code.py": ["/ihome/__init__.py", "/ihome/tasks/task_sms.py"], "/manage.py": ["/ihome/__init__.py"], "/ihome/api_1_0/passport.py": ["/ihome/__init__.py"]}
94,972
zhylcc/ihome
refs/heads/master
/ihome/tasks/task_sms.py
# coding:utf-8 from celery import Celery from ihome.libs.yuntongxun.sms import CCP # 定义Celery对象 celery_app = Celery("ihome", broker="redis://:redis@127.0.0.1:6379/1") @celery_app.task def send_sms(to, data, temp_id): """发送短信的异步任务""" ccp = CCP() ccp.send_template_sms(to, data, temp_id)
{"/ihome/__init__.py": ["/config.py"], "/ihome/api_1_0/demo.py": ["/ihome/__init__.py"], "/ihome/api_1_0/vertify_code.py": ["/ihome/__init__.py", "/ihome/tasks/task_sms.py"], "/manage.py": ["/ihome/__init__.py"], "/ihome/api_1_0/passport.py": ["/ihome/__init__.py"]}
94,973
zhylcc/ihome
refs/heads/master
/config.py
# coding:utf-8 import redis class Config(object): """配置类""" SECRET_KEY = 'dqghrey43y42[-f-qagvq3' # 数据库(mysqlclient,flask-sqlalchemy) SQLALCHEMY_DATABASE_URI = 'mysql://python:pythonmysql@127.0.0.1:3306/ihome' SQLALCHEMY_TRACK_MODIFICATIONS = True # 缓存(redis) REDIS_HOST = '127.0.0.1' ...
{"/ihome/__init__.py": ["/config.py"], "/ihome/api_1_0/demo.py": ["/ihome/__init__.py"], "/ihome/api_1_0/vertify_code.py": ["/ihome/__init__.py", "/ihome/tasks/task_sms.py"], "/manage.py": ["/ihome/__init__.py"], "/ihome/api_1_0/passport.py": ["/ihome/__init__.py"]}
94,974
zhylcc/ihome
refs/heads/master
/ihome/api_1_0/vertify_code.py
# coding:utf-8 import random from flask import current_app, jsonify, make_response, request from . import api from ihome.utils.captcha.captcha import captcha from ihome.utils.response_code import RET from ihome import redis_store, constants from ihome.models import User from ihome.tasks.task_sms import send_sms # G...
{"/ihome/__init__.py": ["/config.py"], "/ihome/api_1_0/demo.py": ["/ihome/__init__.py"], "/ihome/api_1_0/vertify_code.py": ["/ihome/__init__.py", "/ihome/tasks/task_sms.py"], "/manage.py": ["/ihome/__init__.py"], "/ihome/api_1_0/passport.py": ["/ihome/__init__.py"]}
94,975
zhylcc/ihome
refs/heads/master
/manage.py
# coding:utf-8 from ihome import create_app, db from flask_script import Manager from flask_migrate import Migrate, MigrateCommand if __name__ == '__main__': app = create_app("develop") # 创建Flask应用对象 Migrate(app, db) # 数据库迁移 manager = Manager(app) # flask-script扩展脚本 manager.add_command('db', Migr...
{"/ihome/__init__.py": ["/config.py"], "/ihome/api_1_0/demo.py": ["/ihome/__init__.py"], "/ihome/api_1_0/vertify_code.py": ["/ihome/__init__.py", "/ihome/tasks/task_sms.py"], "/manage.py": ["/ihome/__init__.py"], "/ihome/api_1_0/passport.py": ["/ihome/__init__.py"]}
94,976
zhylcc/ihome
refs/heads/master
/ihome/api_1_0/passport.py
# coding:utf-8 import re from flask import request, jsonify, current_app, session from sqlalchemy.exc import IntegrityError from . import api from ihome.utils.response_code import RET from ihome import redis_store, db, constants from ihome.models import User # POST /api/v1.0/users # 请求参数:{手机号、短信验证码、密码、重复密码},json @...
{"/ihome/__init__.py": ["/config.py"], "/ihome/api_1_0/demo.py": ["/ihome/__init__.py"], "/ihome/api_1_0/vertify_code.py": ["/ihome/__init__.py", "/ihome/tasks/task_sms.py"], "/manage.py": ["/ihome/__init__.py"], "/ihome/api_1_0/passport.py": ["/ihome/__init__.py"]}
94,977
zhylcc/ihome
refs/heads/master
/ihome/utils/fdfs/image_store.py
# coding:utf-8 from fdfs_client.client import Fdfs_client def storage(image_data): """上传图片接口,对接文件存储服务/系统,此处使用FastDFS :param image_data: 图片二进制数据 :return: fdfs生成的Remote file_id """ # 上传图片到fdfs client = Fdfs_client( '/home/python/.virtualenvs/ihome/ihome/ihome/utils/fdfs/client.conf') #...
{"/ihome/__init__.py": ["/config.py"], "/ihome/api_1_0/demo.py": ["/ihome/__init__.py"], "/ihome/api_1_0/vertify_code.py": ["/ihome/__init__.py", "/ihome/tasks/task_sms.py"], "/manage.py": ["/ihome/__init__.py"], "/ihome/api_1_0/passport.py": ["/ihome/__init__.py"]}
94,978
zhylcc/ihome
refs/heads/master
/ihome/constants.py
# coding:utf-8 IMAGE_CODE_REDIS_EXPIRES = 180 # 图片验证码有效期(秒) SMS_CODE_REDIS_EXPIRES = 300 # 短信验证码有效期(秒) SEND_SMS_CODE_INTERVAL = 60 # 发送短信验证码的间隔 LOGIN_ERROR_MAX_TIMES = 5 # 登录错误尝试次数 LOGIN_ERROR_FORBID_TIME = 600 # 登录错误限制的时间(秒) FDFS_URL_DOMAIN = 'http://127.0.0.1:8888/' # 存储系统/服务文件url域名,此处使用FDFS AREA_INFO_REDIS_C...
{"/ihome/__init__.py": ["/config.py"], "/ihome/api_1_0/demo.py": ["/ihome/__init__.py"], "/ihome/api_1_0/vertify_code.py": ["/ihome/__init__.py", "/ihome/tasks/task_sms.py"], "/manage.py": ["/ihome/__init__.py"], "/ihome/api_1_0/passport.py": ["/ihome/__init__.py"]}
94,979
zhylcc/ihome
refs/heads/master
/ihome/web_html.py
# coding:utf-8 from flask import Blueprint, current_app, make_response from flask_wtf import csrf # 提供静态文件的蓝图 html = Blueprint('web_html', __name__) # /html_filename @html.route("/<re(r'.*'):html_filename>") def get_html(html_filename): """提供静态html文件""" # 拼接资源uri if not html_filename: html_filen...
{"/ihome/__init__.py": ["/config.py"], "/ihome/api_1_0/demo.py": ["/ihome/__init__.py"], "/ihome/api_1_0/vertify_code.py": ["/ihome/__init__.py", "/ihome/tasks/task_sms.py"], "/manage.py": ["/ihome/__init__.py"], "/ihome/api_1_0/passport.py": ["/ihome/__init__.py"]}
94,991
goranLa/mplane
refs/heads/master
/anomaly_detection/protocol-ri/mplane/supervisor.py
# # vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4 ## # mPlane Protocol Reference Implementation # Simple mPlane Supervisor (JSON over HTTP) # # (c) 2013-2015 mPlane Consortium (http://www.ict-mplane.eu) # Author: Stefano Pentassuglia <stefano.pentassuglia@ssbprogetti.it> # # This program is free sof...
{"/anomaly_detection/protocol-ri/mplane/components/firelog/phantomprobe/diagnosis/localdiagnosis.py": ["/anomaly_detection/protocol-ri/mplane/components/firelog/phantomprobe/diagnosis/cusum.py"]}
94,992
goranLa/mplane
refs/heads/master
/anomaly_detection/protocol-ri/mplane/component.py
#!/usr/bin/env python3 # vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4 ## # mPlane Software Development Kit # Component framework # # (c) 2015 mPlane Consortium (http://www.ict-mplane.eu) # Author: Stefano Pentassuglia <stefano.pentassuglia@ssbprogetti.it> # Brian Trammell <brian@trammell.ch> # # ...
{"/anomaly_detection/protocol-ri/mplane/components/firelog/phantomprobe/diagnosis/localdiagnosis.py": ["/anomaly_detection/protocol-ri/mplane/components/firelog/phantomprobe/diagnosis/cusum.py"]}
94,993
goranLa/mplane
refs/heads/master
/anomaly_detection/protocol-ri/mplane/components/EZRepo/ezrepo.py
# mPlane Protocol Reference Implementation # based on example component code # # (c) 2013-2015 mPlane Consortium (http://www.ict-mplane.eu) # Author: Gábor Molnár # # (c) 2013-2015 mPlane Consortium (http://www.ict-mplane.eu) # Author: Stefano Pentassuglia # # This program is free software: ...
{"/anomaly_detection/protocol-ri/mplane/components/firelog/phantomprobe/diagnosis/localdiagnosis.py": ["/anomaly_detection/protocol-ri/mplane/components/firelog/phantomprobe/diagnosis/cusum.py"]}
94,994
goranLa/mplane
refs/heads/master
/anomaly_detection/protocol-ri/mplane/components/fastping/fastpingBash/fastping/ThreadSender.py
#!/usr/bin/env python import logging from PingManagerOPT import PingManagerOPT import threading,sys class ThreadSender (threading.Thread): #id, name, sharedVariable, lock def __init__(self, threadID, name,event, shared): threading.Thread.__init__(self) self.threadID = threadID self.na...
{"/anomaly_detection/protocol-ri/mplane/components/firelog/phantomprobe/diagnosis/localdiagnosis.py": ["/anomaly_detection/protocol-ri/mplane/components/firelog/phantomprobe/diagnosis/cusum.py"]}
94,995
goranLa/mplane
refs/heads/master
/anomaly_detection/protocol-ri/mplane/components/firelog/phantomprobe/diagnosis/localdiagnosis.py
#!/usr/bin/python # # mPlane QoE Probe # # (c) 2013-2014 mPlane Consortium (http://www.ict-mplane.eu) # Author: Marco Milanesio <milanesio.marco@gmail.com> # # This program is free software: you can redistribute it and/or modify it under # the terms of the GNU Lesser General Public License as published by...
{"/anomaly_detection/protocol-ri/mplane/components/firelog/phantomprobe/diagnosis/localdiagnosis.py": ["/anomaly_detection/protocol-ri/mplane/components/firelog/phantomprobe/diagnosis/cusum.py"]}
94,996
goranLa/mplane
refs/heads/master
/anomaly_detection/protocol-ri/mplane/components/fastping/fastpingBash/fastping/PingManagerOPT.py
#/usr/bin/env python # -*- coding: utf-8 -*- #------------------------------------------------------------------------ # IMPORTS + LOGGING + CONST DEFINITION #------------------------------------------------------------------------ import os, time, sys, logging, socket, csv, random, thread from datetime ...
{"/anomaly_detection/protocol-ri/mplane/components/firelog/phantomprobe/diagnosis/localdiagnosis.py": ["/anomaly_detection/protocol-ri/mplane/components/firelog/phantomprobe/diagnosis/cusum.py"]}
94,997
goranLa/mplane
refs/heads/master
/anomaly_detection/protocol-ri/mplane/components/blockmon-controller/blockmonController.py
# mPlane Protocol Reference Implementation # Blockmon controller code # # (c) 2013-2014 mPlane Consortium (http://www.ict-mplane.eu) # Author: Maurizio Dusi # # This program is free software: you can redistribute it and/or modify it under # the terms of the GNU Lesser General Public License as publ...
{"/anomaly_detection/protocol-ri/mplane/components/firelog/phantomprobe/diagnosis/localdiagnosis.py": ["/anomaly_detection/protocol-ri/mplane/components/firelog/phantomprobe/diagnosis/cusum.py"]}
94,998
goranLa/mplane
refs/heads/master
/anomaly_detection/protocol-ri/mplane/components/unported/youtube-probe/youtube.py
# mPlane Protocol Reference Implementation # YouTube Ping probe component code # # vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4 # # (c) 2013-2014 mPlane Consortium (http://www.ict-mplane.eu) # Author: Tivadar Szemethy <tivadat.szemethy@netvisor.hu> # Based on the ping.py code from: Brian Trammell ...
{"/anomaly_detection/protocol-ri/mplane/components/firelog/phantomprobe/diagnosis/localdiagnosis.py": ["/anomaly_detection/protocol-ri/mplane/components/firelog/phantomprobe/diagnosis/cusum.py"]}
94,999
goranLa/mplane
refs/heads/master
/anomaly_detection/protocol-ri/mplane/components/fastping/fastpingBash/fastping/PARAMETERS.py
class Parameters(): def __init__(self,deltaM=10,ping_freq=1,MAX_CYCLE=1,target="iplist.dat",lowerUpper=[0,-1],filepath="./fastPingBash/",saveRaw=True,saveCycleSummary=False,saveStat=False,saveQD=False,upload=False,queuingDelay=[0.0,2.0,0.01],ftp=["127.0.0.1","anonymous","",21,"up",False]): #---------------...
{"/anomaly_detection/protocol-ri/mplane/components/firelog/phantomprobe/diagnosis/localdiagnosis.py": ["/anomaly_detection/protocol-ri/mplane/components/firelog/phantomprobe/diagnosis/cusum.py"]}
95,000
goranLa/mplane
refs/heads/master
/anomaly_detection/protocol-ri/mplane/components/tstat/repository_importers/repository_rrd_importer.py
# (c) 2013-2014 mPlane Consortium (http://www.ict-mplane.eu) # Author: Ali Safari Khatouni # # This program is free software: you can redistribute it and/or modify it under # the terms of the GNU Lesser General Public License as published by the Free # Software Foundation, either version 3 of the License,...
{"/anomaly_detection/protocol-ri/mplane/components/firelog/phantomprobe/diagnosis/localdiagnosis.py": ["/anomaly_detection/protocol-ri/mplane/components/firelog/phantomprobe/diagnosis/cusum.py"]}
95,001
goranLa/mplane
refs/heads/master
/anomaly_detection/protocol-ri/mplane/components/fastping/fastpingBash/fastping/ThreadReceiver.py
#!/usr/bin/env python import logging from PingListener import PingListener import threading,time,sys class ThreadReceiver (threading.Thread): #id, name, sharedVariable, lock def __init__(self, threadID, name,event,shared): threading.Thread.__init__(self) self.threadID = threadID self.n...
{"/anomaly_detection/protocol-ri/mplane/components/firelog/phantomprobe/diagnosis/localdiagnosis.py": ["/anomaly_detection/protocol-ri/mplane/components/firelog/phantomprobe/diagnosis/cusum.py"]}
95,002
goranLa/mplane
refs/heads/master
/anomaly_detection/protocol-ri/mplane/components/ADTool/adtool.py
# mPlane Protocol Reference Implementation # tStat component code # # (c) 2015 mPlane Consortium (http://www.ict-mplane.eu) # Author: Goran Lazendic # # # This program is free software: you can redistribute it and/or modify it under # the terms of the GNU Lesser General Public License as pu...
{"/anomaly_detection/protocol-ri/mplane/components/firelog/phantomprobe/diagnosis/localdiagnosis.py": ["/anomaly_detection/protocol-ri/mplane/components/firelog/phantomprobe/diagnosis/cusum.py"]}
95,003
goranLa/mplane
refs/heads/master
/anomaly_detection/protocol-ri/mplane/components/fastping/fastpingBash/fastping/UploaderOPT.py
#/usr/bin/env python # -*- coding: utf-8 -*- #------------------------------------------------------------------------ # IMPORTS + LOGGING + CONST DEFINITION #------------------------------------------------------------------------ from __future__ import with_statement from os.path import join from threadi...
{"/anomaly_detection/protocol-ri/mplane/components/firelog/phantomprobe/diagnosis/localdiagnosis.py": ["/anomaly_detection/protocol-ri/mplane/components/firelog/phantomprobe/diagnosis/cusum.py"]}
95,004
goranLa/mplane
refs/heads/master
/anomaly_detection/protocol-ri/mplane/components/tstat/tstat_exporters/tstat_streaming_exporter.py
# (c) 2013-2014 mPlane Consortium (http://www.ict-mplane.eu) # Author: Stefano Traverso # # This program is free software: you can redistribute it and/or modify it under # the terms of the GNU Lesser General Public License as published by the Free # Software Foundation, either version 3 of the License, or...
{"/anomaly_detection/protocol-ri/mplane/components/firelog/phantomprobe/diagnosis/localdiagnosis.py": ["/anomaly_detection/protocol-ri/mplane/components/firelog/phantomprobe/diagnosis/cusum.py"]}
95,005
goranLa/mplane
refs/heads/master
/anomaly_detection/protocol-ri/mplane/tests.py
# # vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4 # # mPlane Protocol Reference Implementation # Information Model and Element Registry # # (c) 2015 mPlane Consortium (http://www.ict-mplane.eu) # Author: Ciro Meregalli # # This program is free software: you can redistribute it and/or modify it under # th...
{"/anomaly_detection/protocol-ri/mplane/components/firelog/phantomprobe/diagnosis/localdiagnosis.py": ["/anomaly_detection/protocol-ri/mplane/components/firelog/phantomprobe/diagnosis/cusum.py"]}
95,006
goranLa/mplane
refs/heads/master
/anomaly_detection/protocol-ri/mplane/components/ott-probe/ott.py
# # vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4 # # mPlane Protocol Reference Implementation # OTT probe component code for component-initiated workflow # Author: Janos Bartok-Nagy <janos.bartok-nagy@netvisor.hu> # # Based on: ICMP Ping probe component code # (c) 2013-2014 mPlane Consortium (http:...
{"/anomaly_detection/protocol-ri/mplane/components/firelog/phantomprobe/diagnosis/localdiagnosis.py": ["/anomaly_detection/protocol-ri/mplane/components/firelog/phantomprobe/diagnosis/cusum.py"]}
95,007
goranLa/mplane
refs/heads/master
/anomaly_detection/protocol-ri/mplane/azn.py
# # vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4 ## # mPlane Protocol Reference Implementation # Authorization context for mPlane components # # (c) 2014-2015 mPlane Consortium (http://www.ict-mplane.eu) # Author: Stefano Pentassuglia <stefano.pentassuglia@ssbprogetti.it> # # # This program is free software:...
{"/anomaly_detection/protocol-ri/mplane/components/firelog/phantomprobe/diagnosis/localdiagnosis.py": ["/anomaly_detection/protocol-ri/mplane/components/firelog/phantomprobe/diagnosis/cusum.py"]}
95,008
goranLa/mplane
refs/heads/master
/anomaly_detection/protocol-ri/mplane/components/tstat/tstat.py
# mPlane Protocol Reference Implementation # tStat component code # # (c) 2013-2014 mPlane Consortium (http://www.ict-mplane.eu) # Author: Stefano Pentassuglia # Author: Ali Safari Khatouni # Author: Stefano Traverso # # This program is free software: you can redistribute it an...
{"/anomaly_detection/protocol-ri/mplane/components/firelog/phantomprobe/diagnosis/localdiagnosis.py": ["/anomaly_detection/protocol-ri/mplane/components/firelog/phantomprobe/diagnosis/cusum.py"]}
95,009
goranLa/mplane
refs/heads/master
/anomaly_detection/protocol-ri/mplane/components/fastping/fastpingBash/fastping/PingCycleOPT.py
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Performs a round of ping towards all destinations """ #------------------------------------------------------------------------ # IMPORTS + LOGGING + CONST DEFINITION #------------------------------------------------------------------------ import time, logging, sys, ...
{"/anomaly_detection/protocol-ri/mplane/components/firelog/phantomprobe/diagnosis/localdiagnosis.py": ["/anomaly_detection/protocol-ri/mplane/components/firelog/phantomprobe/diagnosis/cusum.py"]}
95,010
goranLa/mplane
refs/heads/master
/anomaly_detection/protocol-ri/mplane/components/fastping/fastping.py
# # vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4 # # mPlane Protocol Reference Implementation # ICMP Ping probe component code # # (c) 2013-2014 mPlane Consortium (http://www.ict-mplane.eu) # Author: Danilo Cicalese # # This program is free software: you can redistribute it and/or modify it under ...
{"/anomaly_detection/protocol-ri/mplane/components/firelog/phantomprobe/diagnosis/localdiagnosis.py": ["/anomaly_detection/protocol-ri/mplane/components/firelog/phantomprobe/diagnosis/cusum.py"]}
95,011
goranLa/mplane
refs/heads/master
/anomaly_detection/protocol-ri/mplane/components/mSLAcert - Probe/mSLA_main.py
# mPlane Protocol Reference Implementation # tStat component code # # (c) 2013-2014 mPlane Consortium (http://www.ict-mplane.eu) # Author: Edion TEGO # mSLAcert-V-3.0.2 # # This program is free software: you can redistribute it and/or modify it under # the terms of the GNU Lesser General Public L...
{"/anomaly_detection/protocol-ri/mplane/components/firelog/phantomprobe/diagnosis/localdiagnosis.py": ["/anomaly_detection/protocol-ri/mplane/components/firelog/phantomprobe/diagnosis/cusum.py"]}
95,012
goranLa/mplane
refs/heads/master
/anomaly_detection/protocol-ri/mplane/components/fastping/fastpingBash/fastping/PercMarkers.py
import logging class PercMarkers(): def __init__(self,_P): self.p = _P self.q = [] self.n = [] self.n_des = [] self.dn = [] self.num = 0 self.p_size = 0 # CREATE MARKERS for p in self.p: self.q.append([-1,-1...
{"/anomaly_detection/protocol-ri/mplane/components/firelog/phantomprobe/diagnosis/localdiagnosis.py": ["/anomaly_detection/protocol-ri/mplane/components/firelog/phantomprobe/diagnosis/cusum.py"]}
95,013
goranLa/mplane
refs/heads/master
/anomaly_detection/protocol-ri/mplane/components/fastping/fastpingBash/FastpingBash.py
#!/usr/bin/env python import sys,argparse,os,urllib from datetime import datetime #sys.path.append(os.getcwd()+'/fastping/') from fastping.Fastping import Fastping def is_valid_file(parser, arg): if not os.path.exists(arg): raise argparse.ArgumentTypeError("The file %s does not exist!"%arg) else: ...
{"/anomaly_detection/protocol-ri/mplane/components/firelog/phantomprobe/diagnosis/localdiagnosis.py": ["/anomaly_detection/protocol-ri/mplane/components/firelog/phantomprobe/diagnosis/cusum.py"]}
95,014
goranLa/mplane
refs/heads/master
/anomaly_detection/protocol-ri/mplane/components/firelog/firelog.py
# mPlane Protocol Reference Implementation # Firelog component code # # (c) 2013-2014 mPlane Consortium (http://www.ict-mplane.eu) # Author: Marco Milanesio # # This program is free software: you can redistribute it and/or modify it under # the terms of the GNU Lesser General Public License as publ...
{"/anomaly_detection/protocol-ri/mplane/components/firelog/phantomprobe/diagnosis/localdiagnosis.py": ["/anomaly_detection/protocol-ri/mplane/components/firelog/phantomprobe/diagnosis/cusum.py"]}
95,015
goranLa/mplane
refs/heads/master
/anomaly_detection/protocol-ri/mplane/components/fastping/fastpingBash/fastping/DestList.py
#Target from ip list class DestList(): def __init__(self): self.full_list = [] self.type = [] self.size = 0 def insert(self,addr,is_valid=0): self.full_list.append(addr) self.size += 1 def remove_last(self): try: self.fu...
{"/anomaly_detection/protocol-ri/mplane/components/firelog/phantomprobe/diagnosis/localdiagnosis.py": ["/anomaly_detection/protocol-ri/mplane/components/firelog/phantomprobe/diagnosis/cusum.py"]}
95,016
goranLa/mplane
refs/heads/master
/anomaly_detection/protocol-ri/mplane/components/fastping/fastpingBash/fastping/Fastping.py
from ThreadSender import ThreadSender from ThreadReceiver import ThreadReceiver from ThreadUploader import ThreadUploader from SharedParameter import SharedParameter from PARAMETERS import Parameters import threading import time class Fastping(): def __init__(self,deltaM,ping_freq,MAX_CYCLE,target,lowerUpper...
{"/anomaly_detection/protocol-ri/mplane/components/firelog/phantomprobe/diagnosis/localdiagnosis.py": ["/anomaly_detection/protocol-ri/mplane/components/firelog/phantomprobe/diagnosis/cusum.py"]}
95,017
goranLa/mplane
refs/heads/master
/anomaly_detection/protocol-ri/mplane/components/unported/firelog/firelog.py
# mPlane Protocol Reference Implementation # Firelog probe component code # # (c) 2013-2014 mPlane Consortium (http://www.ict-mplane.eu) # Author: Marco Milanesio <marco.milanesio@eurecom.fr> # # This program is free software: you can redistribute it and/or modify it under # the terms of the GNU Lesser G...
{"/anomaly_detection/protocol-ri/mplane/components/firelog/phantomprobe/diagnosis/localdiagnosis.py": ["/anomaly_detection/protocol-ri/mplane/components/firelog/phantomprobe/diagnosis/cusum.py"]}
95,018
goranLa/mplane
refs/heads/master
/anomaly_detection/protocol-ri/mplane/components/tstat/repository_importers/rrd_file_grouping.py
# Quik and dirty code to transform rrd files name to some understandable name # Author: Ali Safari Khatouni # graphite_delimiter = "." profile_prefix = "profile" ip_prefix = "ip" bitrate_prefix = "bitrate" packet_len_prefix = "packet_length" protocol_prefix = "protocol" tcp_prefix = "tcp" port_destinati...
{"/anomaly_detection/protocol-ri/mplane/components/firelog/phantomprobe/diagnosis/localdiagnosis.py": ["/anomaly_detection/protocol-ri/mplane/components/firelog/phantomprobe/diagnosis/cusum.py"]}
95,019
goranLa/mplane
refs/heads/master
/anomaly_detection/protocol-ri/mplane/components/anycast/anycast.py
# (c) 2013-2014 mPlane Consortium (http://www.ict-mplane.eu) # Author: Danilo Cicalese # # This program is free software: you can redistribute it and/or modify it under # the terms of the GNU Lesser General Public License as published by the Free # Software Foundation, either version 3 of the License, or...
{"/anomaly_detection/protocol-ri/mplane/components/firelog/phantomprobe/diagnosis/localdiagnosis.py": ["/anomaly_detection/protocol-ri/mplane/components/firelog/phantomprobe/diagnosis/cusum.py"]}
95,020
goranLa/mplane
refs/heads/master
/anomaly_detection/protocol-ri/mplane/components/mongoDB-mobileProbe/mongo.py
# mPlane Protocol Reference Implementation # TID mplane mobile probe access # # (c) 2013-2014 mPlane Consortium (http://www.ict-mplane.eu) # Author: Ilias Leontiadis <ilias@tid.es> # # This program is free software: you can redistribute it and/or modify it under # the terms of the GNU Lesser General Publ...
{"/anomaly_detection/protocol-ri/mplane/components/firelog/phantomprobe/diagnosis/localdiagnosis.py": ["/anomaly_detection/protocol-ri/mplane/components/firelog/phantomprobe/diagnosis/cusum.py"]}
95,021
goranLa/mplane
refs/heads/master
/anomaly_detection/protocol-ri/mplane/components/fastping/fastpingBash/fastping/UploadOPT.py
#!/usr/bin/python # -*- coding: utf-8 -*- #from Config.TopHat import cfg #from tools import Tool import ftplib, os.path class UploadOPT(): def call(self, filenames,shared): self.shared=shared if not isinstance(filenames, list): filenames = [filenames] err = ...
{"/anomaly_detection/protocol-ri/mplane/components/firelog/phantomprobe/diagnosis/localdiagnosis.py": ["/anomaly_detection/protocol-ri/mplane/components/firelog/phantomprobe/diagnosis/cusum.py"]}
95,022
goranLa/mplane
refs/heads/master
/anomaly_detection/protocol-ri/mplane/components/anycast/anycast_mod/anycast.py
from collections import defaultdict import json class Anycast(): def __init__(self, file_input): self.anycast_dic=defaultdict(list) anycast_data=open(file_input,'r') for line in anycast_data.readlines(): if not line.startswith( '#' ): hostname,latitude,long...
{"/anomaly_detection/protocol-ri/mplane/components/firelog/phantomprobe/diagnosis/localdiagnosis.py": ["/anomaly_detection/protocol-ri/mplane/components/firelog/phantomprobe/diagnosis/cusum.py"]}
95,023
goranLa/mplane
refs/heads/master
/anomaly_detection/protocol-ri/mplane/components/mSLAcert - Probe/mSLA_Agent.py
# mPlane Protocol Reference Implementation # tStat component code # # (c) 2013-2014 mPlane Consortium (http://www.ict-mplane.eu) # Author: Edion TEGO # mSLAcert-Agent-V-1.0.0 # # This program is free software: you can redistribute it and/or modify it under # the terms of the GNU Lesser General Pub...
{"/anomaly_detection/protocol-ri/mplane/components/firelog/phantomprobe/diagnosis/localdiagnosis.py": ["/anomaly_detection/protocol-ri/mplane/components/firelog/phantomprobe/diagnosis/cusum.py"]}
95,024
goranLa/mplane
refs/heads/master
/anomaly_detection/protocol-ri/mplane/components/unported/youtube-probe/yp-test.py
# # vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4 # simple test script for the youtube evaluator # # usage: yp-test.py [<video-id>=riyXuGoqJlY] # import sys import logging from logging import StreamHandler, Formatter from yp.utils import MyLogFormatter from optparse import OptionParser from yp import YouTu...
{"/anomaly_detection/protocol-ri/mplane/components/firelog/phantomprobe/diagnosis/localdiagnosis.py": ["/anomaly_detection/protocol-ri/mplane/components/firelog/phantomprobe/diagnosis/cusum.py"]}
95,025
goranLa/mplane
refs/heads/master
/anomaly_detection/protocol-ri/mplane/components/fastping/fastpingBash/fastping/Stats.py
import time, logging from DestList import DestList from PercMarkers import PercMarkers class Stats(): def __init__(self,_list_ref,_size,_start,_cycle,parameter): self.dest_list = _list_ref self.size = _size self.startTime = _start self.cycle = _cy...
{"/anomaly_detection/protocol-ri/mplane/components/firelog/phantomprobe/diagnosis/localdiagnosis.py": ["/anomaly_detection/protocol-ri/mplane/components/firelog/phantomprobe/diagnosis/cusum.py"]}
95,026
goranLa/mplane
refs/heads/master
/anomaly_detection/protocol-ri/mplane/components/fastping/fastpingBash/fastping/ThreadUploader.py
#!/usr/bin/env python import logging from PingListener import PingListener import threading from UploaderOPT import UploaderOPT class ThreadUploader (threading.Thread): #id, name, sharedVariable, lock def __init__(self, threadID, name, event,shared): threading.Thread.__init__(self) self.threa...
{"/anomaly_detection/protocol-ri/mplane/components/firelog/phantomprobe/diagnosis/localdiagnosis.py": ["/anomaly_detection/protocol-ri/mplane/components/firelog/phantomprobe/diagnosis/cusum.py"]}
95,027
goranLa/mplane
refs/heads/master
/anomaly_detection/protocol-ri/mplane/components/firelog/phantomprobe/diagnosis/cusum.py
#!/usr/bin/python # # mPlane QoE Server # # (c) 2013-2014 mPlane Consortium (http://www.ict-mplane.eu) # Author: Marco Milanesio <milanesio.marco@gmail.com> # # This program is free software: you can redistribute it and/or modify it under # the terms of the GNU Lesser General Public License as published b...
{"/anomaly_detection/protocol-ri/mplane/components/firelog/phantomprobe/diagnosis/localdiagnosis.py": ["/anomaly_detection/protocol-ri/mplane/components/firelog/phantomprobe/diagnosis/cusum.py"]}
95,028
goranLa/mplane
refs/heads/master
/anomaly_detection/protocol-ri/mplane/components/unported/youtube-probe/yp/__init__.py
# # vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4 # # YouTubeClient for evaluating downloads # import logging import os import subprocess from threading import Timer import time import pycurl from flvlib.tags import FLV, VideoTag, AudioTag from flvlib.primitives import get_ui24,get_ui8 from yp.utils import See...
{"/anomaly_detection/protocol-ri/mplane/components/firelog/phantomprobe/diagnosis/localdiagnosis.py": ["/anomaly_detection/protocol-ri/mplane/components/firelog/phantomprobe/diagnosis/cusum.py"]}
95,029
goranLa/mplane
refs/heads/master
/anomaly_detection/protocol-ri/mplane/components/tstat/tstat_exporters/tstat_rrd_exporter.py
# (c) 2013-2014 mPlane Consortium (http://www.ict-mplane.eu) # Author: Ali Safari Khatouni # # This program is free software: you can redistribute it and/or modify it under # the terms of the GNU Lesser General Public License as published by the Free # Software Foundation, either version 3 of the License,...
{"/anomaly_detection/protocol-ri/mplane/components/firelog/phantomprobe/diagnosis/localdiagnosis.py": ["/anomaly_detection/protocol-ri/mplane/components/firelog/phantomprobe/diagnosis/cusum.py"]}
95,030
goranLa/mplane
refs/heads/master
/anomaly_detection/protocol-ri/mplane/components/tstat/repository_importers/repository_streaming_importer.py
# (c) 2013-2014 mPlane Consortium (http://www.ict-mplane.eu) # Author: Stefano Traverso # # This program is free software: you can redistribute it and/or modify it under # the terms of the GNU Lesser General Public License as published by the Free # Software Foundation, either version 3 of the License, or...
{"/anomaly_detection/protocol-ri/mplane/components/firelog/phantomprobe/diagnosis/localdiagnosis.py": ["/anomaly_detection/protocol-ri/mplane/components/firelog/phantomprobe/diagnosis/cusum.py"]}
95,031
goranLa/mplane
refs/heads/master
/anomaly_detection/protocol-ri/mplane/components/unported/youtube-probe/yp/utils.py
# # vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4 # import os import time from logging import Formatter class MyLogFormatter(Formatter): epoch = time.time() def format(self, record): return '[%s] %04.03f %s' % (record.levelname, time.time() - MyLogFormatter.epoch, record.getMessage()) cla...
{"/anomaly_detection/protocol-ri/mplane/components/firelog/phantomprobe/diagnosis/localdiagnosis.py": ["/anomaly_detection/protocol-ri/mplane/components/firelog/phantomprobe/diagnosis/cusum.py"]}
95,032
goranLa/mplane
refs/heads/master
/anomaly_detection/protocol-ri/mplane/components/unported/tid-mobile/mobileProbeRepository.py
# mPlane Protocol Reference Implementation # TID mplane mobile probe access # # (c) 2013-2014 mPlane Consortium (http://www.ict-mplane.eu) # Author: Ilias Leontiadis <ilias@tid.es> # # This program is free software: you can redistribute it and/or modify it under # the terms of the GNU Lesser General Publ...
{"/anomaly_detection/protocol-ri/mplane/components/firelog/phantomprobe/diagnosis/localdiagnosis.py": ["/anomaly_detection/protocol-ri/mplane/components/firelog/phantomprobe/diagnosis/cusum.py"]}
95,033
goranLa/mplane
refs/heads/master
/anomaly_detection/protocol-ri/mplane/components/fastping/fastpingBash/fastping/PingListener.py
#/usr/bin/env python # -*- coding: utf-8 -*- """ Manage parsing and uploading of output files """ #------------------------------------------------------------------------ # IMPORTS + LOGGING + CONST DEFINITION #------------------------------------------------------------------------ from threading import Co...
{"/anomaly_detection/protocol-ri/mplane/components/firelog/phantomprobe/diagnosis/localdiagnosis.py": ["/anomaly_detection/protocol-ri/mplane/components/firelog/phantomprobe/diagnosis/cusum.py"]}
95,034
goranLa/mplane
refs/heads/master
/anomaly_detection/protocol-ri/mplane/components/blockmon-probe/blockmon.py
# mPlane Protocol Reference Implementation # Blockmon component code # # (c) 2013-2014 mPlane Consortium (http://www.ict-mplane.eu) # Author: Maurizio Dusi # # This program is free software: you can redistribute it and/or modify it under # the terms of the GNU Lesser General Public License as publi...
{"/anomaly_detection/protocol-ri/mplane/components/firelog/phantomprobe/diagnosis/localdiagnosis.py": ["/anomaly_detection/protocol-ri/mplane/components/firelog/phantomprobe/diagnosis/cusum.py"]}
95,035
goranLa/mplane
refs/heads/master
/anomaly_detection/protocol-ri/mplane/components/tstat/tstatrepository.py
# mPlane Protocol Reference Implementation # repository component code # # (c) 2013-2014 mPlane Consortium (http://www.ict-mplane.eu) # Author: Stefano Pentassuglia # Author: Ali Safari Khatouni # Author: Stefano Traverso # # This program is free software: you can redistribute ...
{"/anomaly_detection/protocol-ri/mplane/components/firelog/phantomprobe/diagnosis/localdiagnosis.py": ["/anomaly_detection/protocol-ri/mplane/components/firelog/phantomprobe/diagnosis/cusum.py"]}
95,104
ranarag/ML-1-Regression
refs/heads/master
/main.py
#! /usr/bin/env python # -*- coding: utf-8 -*- # vim:fenc=utf-8 # # Copyright © 2019 Anurag Roy <anu15roy@gmail.com> # # Distributed under terms of the MIT license. """ Solution to part 1 of the assignment """ # Imports from utils.data_handler import * from utils.initializers import * from models.forward import * fr...
{"/utils/visualize.py": ["/models/forward.py"]}
95,105
ranarag/ML-1-Regression
refs/heads/master
/models/backward.py
#! /usr/bin/env python # -*- coding: utf-8 -*- # vim:fenc=utf-8 # # Copyright © 2019 Anurag Roy <anu15roy@gmail.com> # # Distributed under terms of the MIT license. """ script for the backward pass of the regression model """ from forward import phi # decorator function to update gradient during backward pass def ...
{"/utils/visualize.py": ["/models/forward.py"]}
95,106
ranarag/ML-1-Regression
refs/heads/master
/models/forward.py
#! /usr/bin/env python # -*- coding: utf-8 -*- # vim:fenc=utf-8 # # Copyright © 2019 Anurag Roy <anu15roy@gmail.com> # # Distributed under terms of the MIT license. """ script for the forward pass of the regression model """ import math def calc_mean(func): def inner(data, weights): if len(data) == 0: ...
{"/utils/visualize.py": ["/models/forward.py"]}
95,107
ranarag/ML-1-Regression
refs/heads/master
/utils/initializers.py
#! /usr/bin/env python # -*- coding: utf-8 -*- # vim:fenc=utf-8 # # Copyright © 2019 Anurag Roy <anu15roy@gmail.com> # # Distributed under terms of the MIT license. """ initilizer script you can try with different scales of the normal distribution """ import numpy as np def randomNormalInitializer(size): wts = ...
{"/utils/visualize.py": ["/models/forward.py"]}
95,108
ranarag/ML-1-Regression
refs/heads/master
/utils/visualize.py
#! /usr/bin/env python # -*- coding: utf-8 -*- # vim:fenc=utf-8 # # Copyright © 2019 Anurag Roy <anu15roy@gmail.com> # # Distributed under terms of the MIT license. """ plotting codes """ import matplotlib.pyplot as plt from models.forward import phi import numpy as np def createPlot(data, style, text): x = [v...
{"/utils/visualize.py": ["/models/forward.py"]}
95,109
ranarag/ML-1-Regression
refs/heads/master
/utils/data_handler.py
#! /usr/bin/env python # -*- coding: utf-8 -*- # vim:fenc=utf-8 # # Copyright © 2019 Anurag Roy <anu15roy@gmail.com> # # Distributed under terms of the MIT license. """ data handler script """ import numpy as np import random import math import pandas as pd def samplerFunction(x): return x + (x**2) + (x**4) + (x...
{"/utils/visualize.py": ["/models/forward.py"]}
95,129
ccenter/marine-integrations
refs/heads/master
/mi/instrument/sami/pco2w/cgsn/driver.py
""" @package mi.instrument.sami.pco2w.cgsn.driver @file marine-integrations/mi/instrument/sami/pco2w/cgsn/driver.py @author Chris Center @brief Driver for the cgsn Release notes: Initial release of the Sami PCO2 driver : = Instrument Status Word (Long) ? = Instrument Error Return Code (i.e. ?02) * = Record (ple...
{"/mi/instrument/seabird/sbe54tps/ooicore/test/test_driver.py": ["/mi/idk/unit_test.py"], "/mi/core/instrument/test/test_protocol_param_dict.py": ["/mi/core/instrument/protocol_param_dict.py"], "/mi/instrument/seabird/sbe26plus/test/test_driver.py": ["/mi/idk/unit_test.py"], "/mi/instrument/sami/pco2w/cgsn/test/test_dr...
95,130
ccenter/marine-integrations
refs/heads/master
/mi/instrument/seabird/sbe54tps/ooicore/test/test_driver.py
""" @package mi.instrument.seabird.sbe54tps.ooicore.test.test_driver @file /Users/unwin/OOI/Workspace/code/marine-integrations/mi/instrument/seabird/sbe54tps/ooicore/driver.py @author Roger Unwin @brief Test cases for ooicore driver USAGE: Make tests verbose and provide stdout * From the IDK $ bin/test_driv...
{"/mi/instrument/seabird/sbe54tps/ooicore/test/test_driver.py": ["/mi/idk/unit_test.py"], "/mi/core/instrument/test/test_protocol_param_dict.py": ["/mi/core/instrument/protocol_param_dict.py"], "/mi/instrument/seabird/sbe26plus/test/test_driver.py": ["/mi/idk/unit_test.py"], "/mi/instrument/sami/pco2w/cgsn/test/test_dr...
95,131
ccenter/marine-integrations
refs/heads/master
/mi/core/instrument/test/test_protocol_param_dict.py
#!/usr/bin/env python """ @package mi.core.instrument.test.test_protocol_param_dict @file mi/core/instrument/test/test_protocol_param_dict.py @author Steve Foley @brief Test cases for the base protocol parameter dictionary module """ __author__ = 'Steve Foley' __license__ = 'Apache 2.0' from ooi.logging import log f...
{"/mi/instrument/seabird/sbe54tps/ooicore/test/test_driver.py": ["/mi/idk/unit_test.py"], "/mi/core/instrument/test/test_protocol_param_dict.py": ["/mi/core/instrument/protocol_param_dict.py"], "/mi/instrument/seabird/sbe26plus/test/test_driver.py": ["/mi/idk/unit_test.py"], "/mi/instrument/sami/pco2w/cgsn/test/test_dr...
95,132
ccenter/marine-integrations
refs/heads/master
/mi/core/instrument/protocol_param_dict.py
#!/usr/bin/env python """ @package ion.services.mi.protocol_param_dict @file ion/services/mi/protocol_param_dict.py @author Edward Hunter @brief A dictionary class that manages, matches and formats device parameters. """ __author__ = 'Edward Hunter' __license__ = 'Apache 2.0' import re import logging from mi.core.co...
{"/mi/instrument/seabird/sbe54tps/ooicore/test/test_driver.py": ["/mi/idk/unit_test.py"], "/mi/core/instrument/test/test_protocol_param_dict.py": ["/mi/core/instrument/protocol_param_dict.py"], "/mi/instrument/seabird/sbe26plus/test/test_driver.py": ["/mi/idk/unit_test.py"], "/mi/instrument/sami/pco2w/cgsn/test/test_dr...
95,133
ccenter/marine-integrations
refs/heads/master
/mi/instrument/seabird/sbe26plus/test/test_driver.py
""" @package mi.instrument.seabird.sbe26plus.test.test_driver @file marine-integrations/mi/instrument/seabird/sbe26plus/driver.py @author Roger Unwin @brief Test cases for ooicore driver USAGE: Make tests verbose and provide stdout * From the IDK $ bin/test_driver $ bin/test_driver -u $ bin/te...
{"/mi/instrument/seabird/sbe54tps/ooicore/test/test_driver.py": ["/mi/idk/unit_test.py"], "/mi/core/instrument/test/test_protocol_param_dict.py": ["/mi/core/instrument/protocol_param_dict.py"], "/mi/instrument/seabird/sbe26plus/test/test_driver.py": ["/mi/idk/unit_test.py"], "/mi/instrument/sami/pco2w/cgsn/test/test_dr...
95,134
ccenter/marine-integrations
refs/heads/master
/mi/idk/unit_test.py
#! /usr/bin/env python """ @file coi-services/ion/idk/unit_test.py @author Bill French @brief Base classes for instrument driver tests. """ from mock import patch from pyon.core.bootstrap import CFG import re import os import unittest import socket from sets import Set # Set testing to false because the capabilit...
{"/mi/instrument/seabird/sbe54tps/ooicore/test/test_driver.py": ["/mi/idk/unit_test.py"], "/mi/core/instrument/test/test_protocol_param_dict.py": ["/mi/core/instrument/protocol_param_dict.py"], "/mi/instrument/seabird/sbe26plus/test/test_driver.py": ["/mi/idk/unit_test.py"], "/mi/instrument/sami/pco2w/cgsn/test/test_dr...
95,135
ccenter/marine-integrations
refs/heads/master
/mi/instrument/seabird/sbe26plus/test/sample_data.py
""" @package mi.instrument.seabird.sbe26plus.test.sample_data @file marine-integrations/mi/instrument/seabird/sbe26plus/test/sample_data.py @author Bill French @brief Sample data definitions for the SBE26 driver tests Generally this would be included inline with the driver module, but these samples are quite large. """...
{"/mi/instrument/seabird/sbe54tps/ooicore/test/test_driver.py": ["/mi/idk/unit_test.py"], "/mi/core/instrument/test/test_protocol_param_dict.py": ["/mi/core/instrument/protocol_param_dict.py"], "/mi/instrument/seabird/sbe26plus/test/test_driver.py": ["/mi/idk/unit_test.py"], "/mi/instrument/sami/pco2w/cgsn/test/test_dr...
95,136
ccenter/marine-integrations
refs/heads/master
/mi/instrument/seabird/sbe26plus/ooicore/driver.py
import mi.instrument.seabird.sbe26plus.driver from mi.instrument.seabird.sbe26plus.driver import DataParticle from mi.instrument.seabird.sbe26plus.driver import InstrumentDriver from mi.instrument.seabird.sbe26plus.driver import ProtocolState from mi.instrument.seabird.sbe26plus.driver import Parameter from mi.instrum...
{"/mi/instrument/seabird/sbe54tps/ooicore/test/test_driver.py": ["/mi/idk/unit_test.py"], "/mi/core/instrument/test/test_protocol_param_dict.py": ["/mi/core/instrument/protocol_param_dict.py"], "/mi/instrument/seabird/sbe26plus/test/test_driver.py": ["/mi/idk/unit_test.py"], "/mi/instrument/sami/pco2w/cgsn/test/test_dr...
95,137
ccenter/marine-integrations
refs/heads/master
/mi/instrument/sami/pco2w/cgsn/test/test_driver.py
""" @package mi.instrument.sami.w.cgsn.test.test_driver @file marine-integrations/mi/instrument/sami/w/cgsn/driver.py @author Chris Center @brief Test cases for cgsn driver USAGE: Make tests verbose and provide stdout4 * From the IDK $ bin/test_driver $ bin/test_driver -u [-t testname] $ bin/t...
{"/mi/instrument/seabird/sbe54tps/ooicore/test/test_driver.py": ["/mi/idk/unit_test.py"], "/mi/core/instrument/test/test_protocol_param_dict.py": ["/mi/core/instrument/protocol_param_dict.py"], "/mi/instrument/seabird/sbe26plus/test/test_driver.py": ["/mi/idk/unit_test.py"], "/mi/instrument/sami/pco2w/cgsn/test/test_dr...
95,138
ccenter/marine-integrations
refs/heads/master
/mi/instrument/seabird/driver.py
""" @package mi.instrument.seabird.driver @file mi/instrument/seabird/driver.py @author Roger Unwin @brief Base class for seabird instruments Release notes: None. """ __author__ = 'Roger Unwin' __license__ = 'Apache 2.0' from mi.core.log import get_logger ; log = get_logger() from mi.core.instrument.instrument_prot...
{"/mi/instrument/seabird/sbe54tps/ooicore/test/test_driver.py": ["/mi/idk/unit_test.py"], "/mi/core/instrument/test/test_protocol_param_dict.py": ["/mi/core/instrument/protocol_param_dict.py"], "/mi/instrument/seabird/sbe26plus/test/test_driver.py": ["/mi/idk/unit_test.py"], "/mi/instrument/sami/pco2w/cgsn/test/test_dr...
95,139
EparionaD/rpa
refs/heads/main
/apps/equipo/migrations/0003_auto_20210601_1733.py
# Generated by Django 3.2.3 on 2021-06-01 22:33 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('equipo', '0002_auto_20210601_1056'), ] operations = [ migrations.AlterModelOptions( name='equipo', options={'orderin...
{"/apps/catedra/admin.py": ["/apps/catedra/models.py"], "/apps/actualidades/admin.py": ["/apps/actualidades/models.py"], "/apps/publicaciones/models.py": ["/apps/author/models.py"], "/apps/actualidades/views.py": ["/apps/actualidades/models.py"], "/apps/inicio/admin.py": ["/apps/inicio/models.py"], "/apps/publicaciones...
95,140
EparionaD/rpa
refs/heads/main
/apps/publicaciones/migrations/0001_initial.py
# Generated by Django 3.2.3 on 2021-08-25 22:32 import ckeditor_uploader.fields from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ('author', '0002_alter_author_date_create'), ] operations = [ ...
{"/apps/catedra/admin.py": ["/apps/catedra/models.py"], "/apps/actualidades/admin.py": ["/apps/actualidades/models.py"], "/apps/publicaciones/models.py": ["/apps/author/models.py"], "/apps/actualidades/views.py": ["/apps/actualidades/models.py"], "/apps/inicio/admin.py": ["/apps/inicio/models.py"], "/apps/publicaciones...
95,141
EparionaD/rpa
refs/heads/main
/apps/catedra/migrations/0021_catedra_contact_number.py
# Generated by Django 3.2.3 on 2021-07-21 23:31 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('catedra', '0020_auto_20210721_1708'), ] operations = [ migrations.AddField( model_name='catedra', name='contact_numb...
{"/apps/catedra/admin.py": ["/apps/catedra/models.py"], "/apps/actualidades/admin.py": ["/apps/actualidades/models.py"], "/apps/publicaciones/models.py": ["/apps/author/models.py"], "/apps/actualidades/views.py": ["/apps/actualidades/models.py"], "/apps/inicio/admin.py": ["/apps/inicio/models.py"], "/apps/publicaciones...
95,142
EparionaD/rpa
refs/heads/main
/apps/catedra/migrations/0017_alter_catedra_date_create.py
# Generated by Django 3.2.3 on 2021-05-30 00:09 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('catedra', '0016_auto_20210529_1854'), ] operations = [ migrations.AlterField( model_name='catedra', name='date_creat...
{"/apps/catedra/admin.py": ["/apps/catedra/models.py"], "/apps/actualidades/admin.py": ["/apps/actualidades/models.py"], "/apps/publicaciones/models.py": ["/apps/author/models.py"], "/apps/actualidades/views.py": ["/apps/actualidades/models.py"], "/apps/inicio/admin.py": ["/apps/inicio/models.py"], "/apps/publicaciones...
95,143
EparionaD/rpa
refs/heads/main
/apps/catedra/admin.py
from django.contrib import admin from .models import Catedra, Categorias, Speaker from import_export import resources from import_export.admin import ImportExportModelAdmin class CategoriaResource(resources.ModelResource): class Meta: model = Categorias class CatedraResource(resources.ModelResource): ...
{"/apps/catedra/admin.py": ["/apps/catedra/models.py"], "/apps/actualidades/admin.py": ["/apps/actualidades/models.py"], "/apps/publicaciones/models.py": ["/apps/author/models.py"], "/apps/actualidades/views.py": ["/apps/actualidades/models.py"], "/apps/inicio/admin.py": ["/apps/inicio/models.py"], "/apps/publicaciones...
95,144
EparionaD/rpa
refs/heads/main
/apps/author/migrations/0002_alter_author_date_create.py
# Generated by Django 3.2.3 on 2021-05-31 02:24 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('author', '0001_initial'), ] operations = [ migrations.AlterField( model_name='author', name='date_create', ...
{"/apps/catedra/admin.py": ["/apps/catedra/models.py"], "/apps/actualidades/admin.py": ["/apps/actualidades/models.py"], "/apps/publicaciones/models.py": ["/apps/author/models.py"], "/apps/actualidades/views.py": ["/apps/actualidades/models.py"], "/apps/inicio/admin.py": ["/apps/inicio/models.py"], "/apps/publicaciones...
95,145
EparionaD/rpa
refs/heads/main
/apps/actualidades/admin.py
from django.contrib import admin from import_export import resources from import_export.admin import ImportExportModelAdmin from .models import Actualidades class ActualidadesResource(resources.ModelResource): class Meta: model = Actualidades class ActualidadesAdmin(ImportExportModelAdmin, admin.ModelAdm...
{"/apps/catedra/admin.py": ["/apps/catedra/models.py"], "/apps/actualidades/admin.py": ["/apps/actualidades/models.py"], "/apps/publicaciones/models.py": ["/apps/author/models.py"], "/apps/actualidades/views.py": ["/apps/actualidades/models.py"], "/apps/inicio/admin.py": ["/apps/inicio/models.py"], "/apps/publicaciones...
95,146
EparionaD/rpa
refs/heads/main
/apps/catedra/migrations/0001_initial.py
# Generated by Django 3.2.3 on 2021-05-29 01:58 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Categorias', fields=[ ...
{"/apps/catedra/admin.py": ["/apps/catedra/models.py"], "/apps/actualidades/admin.py": ["/apps/actualidades/models.py"], "/apps/publicaciones/models.py": ["/apps/author/models.py"], "/apps/actualidades/views.py": ["/apps/actualidades/models.py"], "/apps/inicio/admin.py": ["/apps/inicio/models.py"], "/apps/publicaciones...
95,147
EparionaD/rpa
refs/heads/main
/apps/inicio/migrations/0001_initial.py
# Generated by Django 3.2.3 on 2021-09-10 02:14 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Firma', fields=[ ('id', models.BigAutoField...
{"/apps/catedra/admin.py": ["/apps/catedra/models.py"], "/apps/actualidades/admin.py": ["/apps/actualidades/models.py"], "/apps/publicaciones/models.py": ["/apps/author/models.py"], "/apps/actualidades/views.py": ["/apps/actualidades/models.py"], "/apps/inicio/admin.py": ["/apps/inicio/models.py"], "/apps/publicaciones...
95,148
EparionaD/rpa
refs/heads/main
/apps/actualidades/migrations/0005_actualidades_links.py
# Generated by Django 3.2.3 on 2021-08-20 20:31 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('actualidades', '0004_alter_actualidades_summary'), ] operations = [ migrations.AddField( model_name='actualidades', ...
{"/apps/catedra/admin.py": ["/apps/catedra/models.py"], "/apps/actualidades/admin.py": ["/apps/actualidades/models.py"], "/apps/publicaciones/models.py": ["/apps/author/models.py"], "/apps/actualidades/views.py": ["/apps/actualidades/models.py"], "/apps/inicio/admin.py": ["/apps/inicio/models.py"], "/apps/publicaciones...
95,149
EparionaD/rpa
refs/heads/main
/apps/publicaciones/models.py
from django.db import models from django.utils.text import slugify from ckeditor.fields import RichTextField from ckeditor_uploader.fields import RichTextUploadingField from apps.author.models import Author class Categorias(models.Model): id = models.AutoField(primary_key=True) name = models.CharField('Categor...
{"/apps/catedra/admin.py": ["/apps/catedra/models.py"], "/apps/actualidades/admin.py": ["/apps/actualidades/models.py"], "/apps/publicaciones/models.py": ["/apps/author/models.py"], "/apps/actualidades/views.py": ["/apps/actualidades/models.py"], "/apps/inicio/admin.py": ["/apps/inicio/models.py"], "/apps/publicaciones...
95,150
EparionaD/rpa
refs/heads/main
/apps/catedra/migrations/0023_alter_catedra_contact_number.py
# Generated by Django 3.2.3 on 2021-07-21 23:49 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('catedra', '0022_catedra_speaker'), ] operations = [ migrations.AlterField( model_name='catedra', name='contact_numbe...
{"/apps/catedra/admin.py": ["/apps/catedra/models.py"], "/apps/actualidades/admin.py": ["/apps/actualidades/models.py"], "/apps/publicaciones/models.py": ["/apps/author/models.py"], "/apps/actualidades/views.py": ["/apps/actualidades/models.py"], "/apps/inicio/admin.py": ["/apps/inicio/models.py"], "/apps/publicaciones...
95,151
EparionaD/rpa
refs/heads/main
/apps/actualidades/views.py
from django.shortcuts import render from django.core.paginator import Paginator from django.views.generic import TemplateView, DetailView from .models import Actualidades class ActualidadesView(TemplateView): template_name = 'actualidades/actualidades.html' def get_context_data(self, **kwargs): contex...
{"/apps/catedra/admin.py": ["/apps/catedra/models.py"], "/apps/actualidades/admin.py": ["/apps/actualidades/models.py"], "/apps/publicaciones/models.py": ["/apps/author/models.py"], "/apps/actualidades/views.py": ["/apps/actualidades/models.py"], "/apps/inicio/admin.py": ["/apps/inicio/models.py"], "/apps/publicaciones...