text
stringlengths
0
1.05M
meta
dict
__author__ = 'mosquito' import smtplib from smtplib import SMTPConnectError, SMTPHeloError, SMTPServerDisconnected from email.mime.multipart import MIMEMultipart from email.mime.text import MIMEText from _config import get_var from flask import render_template import datetime import string class MailUtils(): """ ...
{ "repo_name": "internetmosquito/bloowatch_site", "path": "MailUtils.py", "copies": "1", "size": "5024", "license": "mit", "hash": -1856567989055305700, "line_mean": 39.192, "line_max": 113, "alpha_frac": 0.599522293, "autogenerated": false, "ratio": 4.47373107747106, "config_test": false, "ha...
__author__ = 'mosquito' import sqlite3 from project.views import db from project._config import DATABASE_PATH '''with sqlite3.connect(DATABASE_PATH) as connection: # get a cursor object used to execute SQL commands c = connection.cursor() # temporarily change the name of tasks table c.execute("""AL...
{ "repo_name": "internetmosquito/flask-scheduler", "path": "migrate_db.py", "copies": "1", "size": "1841", "license": "apache-2.0", "hash": -8602769314989147000, "line_mean": 31.3157894737, "line_max": 102, "alpha_frac": 0.649103748, "autogenerated": false, "ratio": 3.9170212765957446, "config_t...
__author__ = 'mosquito' class Menu(object): """ Represents the menu object to be displayed """ def __init__(self, menu=None): if menu is None: self.menu_list = [] else: if type(menu) is list: self.menu_list = menu self.menu_dict =...
{ "repo_name": "internetmosquito/amazon_product_searcher", "path": "view/menu.py", "copies": "1", "size": "1730", "license": "mit", "hash": -5103490068111618000, "line_mean": 31.6603773585, "line_max": 101, "alpha_frac": 0.5052023121, "autogenerated": false, "ratio": 4.765840220385675, "config_t...
__author__ = 'mosquito' ################# #### imports #### ################# from functools import wraps from flask import flash, redirect, render_template, \ request, session, url_for, Blueprint from sqlalchemy.exc import IntegrityError import datetime from time import localtime, strftime from project.appointm...
{ "repo_name": "internetmosquito/flask-scheduler", "path": "project/appointments/views.py", "copies": "1", "size": "3946", "license": "apache-2.0", "hash": -432974914157938240, "line_mean": 33.025862069, "line_max": 87, "alpha_frac": 0.6099847947, "autogenerated": false, "ratio": 3.930278884462151...
__author__ = 'mosquito' import unittest from model.model import User, Advert from main import Main class GeneralTests(unittest.TestCase): ############### #### tests #### ############### def test_user_creation(self): #Check if user with wrong email is created correctly self.assertRai...
{ "repo_name": "internetmosquito/amazon_product_searcher", "path": "test/tests.py", "copies": "1", "size": "3373", "license": "mit", "hash": 6683639488440982000, "line_mean": 36.8988764045, "line_max": 107, "alpha_frac": 0.6412689001, "autogenerated": false, "ratio": 3.6623235613463625, "config_...
import collections from collections import Counter from sys import argv script, filename = argv import re import numpy as np import subprocess import csv g = filename #caenorhabditis_elegans.PRJNA13758.WBPS9.canonical_geneset.gtf #python gtf_parse.py caenorhabditis_elegans.PRJNA13758.WBPS9.canonical_geneset.gtf > G...
{ "repo_name": "zamanianlab/50HGI", "path": "scripts/auxillary/gtf_parse.py", "copies": "1", "size": "1373", "license": "mit", "hash": -6046177736041274000, "line_mean": 30.2045454545, "line_max": 210, "alpha_frac": 0.6853605244, "autogenerated": false, "ratio": 2.5054744525547443, "config_test"...
# __author__ = 'mouton' # # from arithmeticExpressions import ALitteral, LinkedListLitteral, UndefinedLitteral, SelfLitteral # from triggerExpressions import Evaluation # from database import Variable, UNDEFINED_PARAMETER # from unittest import TestCase # from collections import deque # # # class TestLinkedLinkedListLi...
{ "repo_name": "mouton5000/DiscreteEventApplicationEditor", "path": "test/testsArithmeticExpressions/testLinkedListLitteral.py", "copies": "1", "size": "3390", "license": "mit", "hash": 152819015141281200, "line_mean": 49.6119402985, "line_max": 120, "alpha_frac": 0.6297935103, "autogenerated": fals...
# __author__ = 'mouton' # # from arithmeticExpressions import ALitteral, ListLitteral, UndefinedLitteral, \ # SelfLitteral, LinkedListLitteral, SetLitteral, GetItemExpression # from triggerExpressions import Evaluation # from database import Variable, UNDEFINED_PARAMETER # from unittest import TestCase # # # class ...
{ "repo_name": "mouton5000/DiscreteEventApplicationEditor", "path": "test/testsArithmeticExpressions/testGetItemExpression.py", "copies": "1", "size": "9960", "license": "mit", "hash": -3864915835687113700, "line_mean": 44.4840182648, "line_max": 100, "alpha_frac": 0.6227911647, "autogenerated": fal...
__author__ = 'mouton' from arithmeticExpressions import ALitteral from triggerExpressions import Evaluation from database import Variable from unittest import TestCase class TestALitteral(TestCase): @classmethod def setUpClass(cls): import grammar.grammars grammar.grammars.compileGrammars() ...
{ "repo_name": "mouton5000/DiscreteEventApplicationEditor", "path": "test/testsArithmeticExpressions/testALitteral.py", "copies": "1", "size": "2437", "license": "mit", "hash": 8292293066013991000, "line_mean": 33.338028169, "line_max": 68, "alpha_frac": 0.6146901929, "autogenerated": false, "rati...
__author__ = 'mouton' from arithmeticExpressions import ALitteral, UndefinedLitteral, Addition, Subtraction from math import pi, sqrt from database import Variable def getAdditionOf10And20(): a1 = ALitteral(10) a2 = ALitteral(20) return Addition(a1, a2) def getAdditionOfABCAndDEF(): a1 = ALitteral(...
{ "repo_name": "mouton5000/DiscreteEventApplicationEditor", "path": "test/testsArithmeticExpressions/buildArithmeticExpressionsForTests.py", "copies": "1", "size": "7812", "license": "mit", "hash": -4077117127862128000, "line_mean": 19.0848329049, "line_max": 85, "alpha_frac": 0.6633384537, "autogen...
__author__ = 'mouton' from arithmeticExpressions import ALitteral, UndefinedLitteral from unittest import TestCase from triggerExpressions import Evaluation, PropertyTriggerExpression from database import Variable, Property from test.testsTriggersExpressions import simpleTests from math import pi, sqrt class TestUnd...
{ "repo_name": "mouton5000/DiscreteEventApplicationEditor", "path": "test/testsTriggersExpressions/testPropertyUndefinedParameters.py", "copies": "1", "size": "13956", "license": "mit", "hash": 9180052797018414000, "line_mean": 47.2941176471, "line_max": 117, "alpha_frac": 0.6266122098, "autogenerat...
__author__ = 'mouton' from arithmeticExpressions import SelfLitteral from triggerExpressions import Evaluation from database import Variable from unittest import TestCase class TestSelfLitteral(TestCase): @classmethod def setUpClass(cls): import grammar.grammars grammar.grammars.compileGramm...
{ "repo_name": "mouton5000/DiscreteEventApplicationEditor", "path": "test/testsArithmeticExpressions/testSelfLitteral.py", "copies": "1", "size": "1194", "license": "mit", "hash": -6327249634814436000, "line_mean": 29.641025641, "line_max": 68, "alpha_frac": 0.6658291457, "autogenerated": false, "...
__author__ = 'mouton' from collections import defaultdict import pygame from pygame import Color from pygame.rect import Rect DEFAULT_WIDTH = 1 DEFAULT_COLOR = '000000' _ovalsList = defaultdict(list) _rectsToUpdate = [] def init(): reinit() def reinit(): _ovalsList.clear() del _rectsToUpdate[:] ...
{ "repo_name": "mouton5000/DiscreteEventApplicationEditor", "path": "game/Registeries/OvalRegistery.py", "copies": "1", "size": "2166", "license": "mit", "hash": -4734112820406147000, "line_mean": 24.7976190476, "line_max": 105, "alpha_frac": 0.5632502308, "autogenerated": false, "ratio": 3.067988...
__author__ = 'mouton' from collections import defaultdict import pygame from pygame import Color from pygame.rect import Rect DEFAULT_WIDTH = 1 DEFAULT_COLOR = '000000' _polygonsList = defaultdict(list) _rectsToUpdate = [] def init(): reinit() def reinit(): _polygonsList.clear() del _rectsToUpdat...
{ "repo_name": "mouton5000/DiscreteEventApplicationEditor", "path": "game/Registeries/PolygonRegistery.py", "copies": "1", "size": "2617", "license": "mit", "hash": 3006167657421783000, "line_mean": 27.7692307692, "line_max": 91, "alpha_frac": 0.592663355, "autogenerated": false, "ratio": 3.283563...
__author__ = 'mouton' from database import Property, Event, SpriteProperty, LineProperty, \ OvalProperty, RectProperty, TextProperty, PolygonProperty, Variable import stateMachine import game.Registeries.SoundRegistery as soundRegistery import game.gameWindow as gameWindow def _evalArg(arg, evaluation): retur...
{ "repo_name": "mouton5000/DiscreteEventApplicationEditor", "path": "grammar/consequenceExpressions.py", "copies": "1", "size": "15539", "license": "mit", "hash": -8339771211586400000, "line_mean": 31.8520084567, "line_max": 123, "alpha_frac": 0.6257159405, "autogenerated": false, "ratio": 4.00283...
__author__ = 'mouton' from PyQt4 import QtCore from PyQt4.QtGui import QGraphicsEllipseItem, QBrush from euclid import Vector2 from undoRedoActions import * from gui.LabelItems import NodeLabelItem from gui.EditorItem import NODE_GRID class NodeItem(QGraphicsEllipseItem): NodeWidth = 20 def __init__(self, x...
{ "repo_name": "mouton5000/DiscreteEventApplicationEditor", "path": "gui/NodeItems.py", "copies": "1", "size": "7551", "license": "mit", "hash": -1668942173913248500, "line_mean": 25.780141844, "line_max": 110, "alpha_frac": 0.5497285128, "autogenerated": false, "ratio": 3.6924205378973105, "con...
__author__ = 'mouton' from PyQt4.QtGui import QVBoxLayout, QAction, \ QFileDialog, QMainWindow, QWidget, QDesktopWidget, QUndoStack, QMessageBox, QHBoxLayout from euclid import Vector2 import json import os.path import game.gameWindow as gameWindow import stateMachine from stateMachine import Transition from itert...
{ "repo_name": "mouton5000/DiscreteEventApplicationEditor", "path": "gui/EditorWindow.py", "copies": "1", "size": "15166", "license": "mit", "hash": -2193877853092092200, "line_mean": 30.7945492662, "line_max": 116, "alpha_frac": 0.5780693657, "autogenerated": false, "ratio": 4.153930430019173, ...
__author__ = 'mouton' from PyQt4.QtGui import QVBoxLayout, QHBoxLayout, QLineEdit, QWidget, QTextEdit class SettingsWidget(QWidget): DEFAULT_FPS = 60 DEFAULT_MAX_TICK = 1000 DEFAULT_WIDTH = 800 DEFAULT_HEIGHT = 640 def __init__(self, parent=None, mainWindow=None): super(SettingsWidget, ...
{ "repo_name": "mouton5000/DiscreteEventApplicationEditor", "path": "gui/SettingsItems.py", "copies": "1", "size": "3273", "license": "mit", "hash": -2155585475924008400, "line_mean": 29.3148148148, "line_max": 79, "alpha_frac": 0.6339749465, "autogenerated": false, "ratio": 3.957678355501814, "...
__author__ = 'mouton' from triggerExpressions import Evaluation from unittest import TestCase from math import pi, sqrt, atanh from arithmeticExpressions import ALitteral, Func, UndefinedLitteral, SelfLitteral from database import Variable class TestAtanh(TestCase): @classmethod def setUpClass(cls): ...
{ "repo_name": "mouton5000/DiscreteEventApplicationEditor", "path": "test/testsArithmeticExpressions/MathFunctions/testATh.py", "copies": "1", "size": "3654", "license": "mit", "hash": -9020853309119043000, "line_mean": 31.9279279279, "line_max": 82, "alpha_frac": 0.6264367816, "autogenerated": fals...
__author__ = 'mouton' from triggerExpressions import Evaluation from unittest import TestCase from math import pi, sqrt, floor from arithmeticExpressions import ALitteral, Func, UndefinedLitteral, SelfLitteral from database import Variable class TestFloor(TestCase): @classmethod def setUpClass(cls): ...
{ "repo_name": "mouton5000/DiscreteEventApplicationEditor", "path": "test/testsArithmeticExpressions/MathFunctions/testFloor.py", "copies": "1", "size": "2894", "license": "mit", "hash": 1428529836705272300, "line_mean": 32.275862069, "line_max": 82, "alpha_frac": 0.6402902557, "autogenerated": fals...
__author__ = 'mouton' from triggerExpressions import Evaluation from unittest import TestCase from math import pi, sqrt from arithmeticExpressions import ALitteral, Addition, UndefinedLitteral, SelfLitteral from database import Variable class TestAddition(TestCase): @classmethod def setUpClass(cls): ...
{ "repo_name": "mouton5000/DiscreteEventApplicationEditor", "path": "test/testsArithmeticExpressions/testAddition.py", "copies": "1", "size": "17656", "license": "mit", "hash": 2844297489048153600, "line_mean": 34.3827655311, "line_max": 86, "alpha_frac": 0.6188830992, "autogenerated": false, "rat...
__author__ = 'mouton' from triggerExpressions import Evaluation from unittest import TestCase from math import pi, sqrt from arithmeticExpressions import ALitteral, EuclideanDivision, UndefinedLitteral, SelfLitteral from database import Variable class TestEuclideanDivision(TestCase): @classmethod def setUpC...
{ "repo_name": "mouton5000/DiscreteEventApplicationEditor", "path": "test/testsArithmeticExpressions/testEuclideanDivision.py", "copies": "1", "size": "20174", "license": "mit", "hash": 3189666078073057000, "line_mean": 36.0863970588, "line_max": 95, "alpha_frac": 0.6432041241, "autogenerated": fals...
__author__ = 'mouton' from triggerExpressions import Evaluation from unittest import TestCase from math import pi, sqrt from arithmeticExpressions import ALitteral, Power, UndefinedLitteral, SelfLitteral from database import Variable class TestPower(TestCase): @classmethod def setUpClass(cls): impor...
{ "repo_name": "mouton5000/DiscreteEventApplicationEditor", "path": "test/testsArithmeticExpressions/testPower.py", "copies": "1", "size": "17436", "license": "mit", "hash": 1956189253583410400, "line_mean": 32.8582524272, "line_max": 83, "alpha_frac": 0.6061596696, "autogenerated": false, "ratio"...
__author__ = 'mouton' from triggerExpressions import Evaluation from unittest import TestCase from math import pi, sqrt, tanh from arithmeticExpressions import ALitteral, Func, UndefinedLitteral, SelfLitteral from database import Variable class TestTanh(TestCase): @classmethod def setUpClass(cls): i...
{ "repo_name": "mouton5000/DiscreteEventApplicationEditor", "path": "test/testsArithmeticExpressions/MathFunctions/testTh.py", "copies": "1", "size": "2813", "license": "mit", "hash": 869390217483041500, "line_mean": 31.3448275862, "line_max": 82, "alpha_frac": 0.6299324565, "autogenerated": false, ...
__author__ = 'mouton' from unittest import TestCase from triggerExpressions import Evaluation, Is from database import Variable from test.testsTriggersExpressions import simpleTests from arithmeticExpressions import ALitteral class TestIs(TestCase): @classmethod def setUpClass(cls): import grammar....
{ "repo_name": "mouton5000/DiscreteEventApplicationEditor", "path": "test/testsTriggersExpressions/testIs.py", "copies": "1", "size": "3264", "license": "mit", "hash": -7278367164509739000, "line_mean": 34.8791208791, "line_max": 77, "alpha_frac": 0.6795343137, "autogenerated": false, "ratio": 3.4...
__author__ = 'mouton' from unittest import TestCase from triggerExpressions import Evaluation, LeqThan from arithmeticExpressions import ALitteral, UndefinedLitteral, Division from database import Variable from test.testsTriggersExpressions import simpleTests from math import pi, sqrt class TestLowerOrEqualsThan(Te...
{ "repo_name": "mouton5000/DiscreteEventApplicationEditor", "path": "test/testsTriggersExpressions/testLowerOrEqualsThan.py", "copies": "1", "size": "8542", "license": "mit", "hash": -74518687877534140, "line_mean": 37.6561085973, "line_max": 94, "alpha_frac": 0.6620229454, "autogenerated": false, ...
__author__ = 'mouton' from unittest import TestCase from triggerExpressions import Evaluation, LowerThan from arithmeticExpressions import ALitteral, UndefinedLitteral, Division from database import Variable from test.testsTriggersExpressions import simpleTests from math import pi, sqrt class TestLowerOrEqualsThan(...
{ "repo_name": "mouton5000/DiscreteEventApplicationEditor", "path": "test/testsTriggersExpressions/testLowerThan.py", "copies": "1", "size": "8183", "license": "mit", "hash": 4009046149580352000, "line_mean": 36.0316742081, "line_max": 94, "alpha_frac": 0.6561163388, "autogenerated": false, "ratio...
__author__ = 'mouton' from unittest import TestCase from triggerExpressions import Rand, Evaluation from database import Variable from test.testsTriggersExpressions import simpleTests from arithmeticExpressions import ALitteral class TestRand(TestCase): @classmethod def setUpClass(cls): import gramm...
{ "repo_name": "mouton5000/DiscreteEventApplicationEditor", "path": "test/testsTriggersExpressions/testRand.py", "copies": "1", "size": "3182", "license": "mit", "hash": 4963862533033187000, "line_mean": 35.5862068966, "line_max": 93, "alpha_frac": 0.6728472659, "autogenerated": false, "ratio": 3....
__author__ = 'mouton' import abc from game.Registeries import SpriteRegistery, \ LineRegistery, RectRegistery, OvalRegistery, PolygonRegistery, \ TextRegistery from collections import defaultdict from grammar.keywords import KEYWORD_ID, \ KEYWORD_X, KEYWORD_Y, KEYWORD_X_INT, KEYWORD_Y_INT,\ KEYWORD_H, ...
{ "repo_name": "mouton5000/DiscreteEventApplicationEditor", "path": "database.py", "copies": "1", "size": "21450", "license": "mit", "hash": -2106200544214771700, "line_mean": 29.7761836442, "line_max": 120, "alpha_frac": 0.606993007, "autogenerated": false, "ratio": 4.024390243902439, "config_t...
__author__ = 'mouton' import lrparsing from lrparsing import List, Prio, Opt, Token class TokenParametersParser(lrparsing.Grammar): class T(lrparsing.TokenRegistry): integer = Token(re='-?[0-9]+') float = Token(re='-?[0-9]+\.[0-9]+') string = Token(re='\'[A-Za-z_0-9]*\'') parameter =...
{ "repo_name": "mouton5000/DiscreteEventApplicationEditor", "path": "grammar/tokenGrammar.py", "copies": "1", "size": "2137", "license": "mit", "hash": 1166860038615798000, "line_mean": 32.40625, "line_max": 92, "alpha_frac": 0.6059897052, "autogenerated": false, "ratio": 4.109615384615385, "con...
__author__ = 'mouton' import os import stateMachine import shutil exportMainFileName = 'exportMain.py' def copyFiles(exportFolder, rootDir): if not os.path.exists(exportFolder): os.makedirs(exportFolder) for fileName in os.listdir(rootDir): if rootDir + '/' + fileName == exportFolder: ...
{ "repo_name": "mouton5000/DiscreteEventApplicationEditor", "path": "exporter/exporter.py", "copies": "1", "size": "6274", "license": "mit", "hash": -3337380458466370000, "line_mean": 38.465408805, "line_max": 118, "alpha_frac": 0.5350653491, "autogenerated": false, "ratio": 4.306108442004118, "...
__author__ = 'mouton' import pygame from database import Event import game.Registeries.SoundRegistery as soundReg import game.Registeries.SpriteRegistery as spriteReg import game.Registeries.TextRegistery as textReg import game.Registeries.LineRegistery as lineReg import game.Registeries.RectRegistery as rectReg impo...
{ "repo_name": "mouton5000/DiscreteEventApplicationEditor", "path": "game/gameWindow.py", "copies": "1", "size": "4829", "license": "mit", "hash": -8490239118479178000, "line_mean": 23.15, "line_max": 114, "alpha_frac": 0.6431973493, "autogenerated": false, "ratio": 3.247478143913921, "config_te...
__author__ = 'mouton' def compileGrammars(): print 'Compile grammar (0/3)' from grammar.triggerGrammar import TriggerParser from grammar.preCompiledBooleanExpressionGrammar import preCompiledBooleanExpressionGrammar newCompiledBooleanExpressionGrammar = \ TriggerParser.pre_compile_grammar(pre...
{ "repo_name": "mouton5000/DiscreteEventApplicationEditor", "path": "grammar/grammars.py", "copies": "1", "size": "1909", "license": "mit", "hash": 2222679759433203000, "line_mean": 46.75, "line_max": 96, "alpha_frac": 0.7223677318, "autogenerated": false, "ratio": 4.388505747126437, "config_tes...
__author__ = 'mouton' def _roundToBase(base): def _round(x): return int(base * round(float(x) / base)) return _round NODE_GRID = _roundToBase(5) # Round each coordinates to the closest multiple of 5. import itertools from gui.LabelItems import LabelItem from PyQt4 import QtCore from PyQt4.QtCore im...
{ "repo_name": "mouton5000/DiscreteEventApplicationEditor", "path": "gui/EditorItem.py", "copies": "1", "size": "25820", "license": "mit", "hash": -4527231247820455000, "line_mean": 35.062849162, "line_max": 120, "alpha_frac": 0.6424864446, "autogenerated": false, "ratio": 4.073840328179236, "co...
__author__ = 'moyiz' __doc__ = """ Oh My MPC is a MPD client module that simply wraps the MPD protocol. OMMPC can be used to control your MPD server with python, and can be used to implement your own MPD client. Basic Usage (Simple Playback Toggle): =================================== from ommpc import OMMPClient cl...
{ "repo_name": "moyiz/ommpc", "path": "src/ommpc.py", "copies": "1", "size": "13113", "license": "bsd-3-clause", "hash": 1893085150766226700, "line_mean": 33.0597402597, "line_max": 113, "alpha_frac": 0.4921833295, "autogenerated": false, "ratio": 4.486144372220322, "config_test": false, "has_...
import sys from ezdxf.lldxf.tags import ascii_tags_loader from ezdxf.lldxf.validator import dxf_info FORMAT = 'ACAD release: {0.release}\n'\ 'DXF Version: {0.version}\n'\ '$HANDSEED: {0.handseed}' def printhandles(handles, info): print(FORMAT.format(info)) print("%d handles found." % len(...
{ "repo_name": "mozman/ezdxf", "path": "tools/checkhandles.py", "copies": "1", "size": "1533", "license": "mit", "hash": -7031369421849668000, "line_mean": 24.131147541, "line_max": 66, "alpha_frac": 0.6020874103, "autogenerated": false, "ratio": 3.384105960264901, "config_test": false, "has_n...
""" The XFCell() object contains the data for one cell. WARNING: You don't call this class yourself. You access Cell objects via methods of the Sheet object(s) that you found in the Book object that was returned when you called xlrd.open_workbook("myfile.xls"). Cell objects have four attributes: `ctype` is a...
{ "repo_name": "GitHublong/hue", "path": "desktop/core/ext-py/tablib-0.10.0/tablib/packages/xlrd3/xfcell.py", "copies": "54", "size": "8607", "license": "apache-2.0", "hash": -8384052140850969000, "line_mean": 29.1847826087, "line_max": 77, "alpha_frac": 0.5497850587, "autogenerated": false, "rati...
# excelfileformat section 5.115.1 pg. 219 HOR_ALIGN_GENERAL = 0 HOR_ALIGN_LEFT = 1 HOR_ALIGN_CENTRED = 2 HOR_ALIGN_RIGHT = 3 HOR_ALIGN_FILLED = 4 HOR_ALIGN_JUSTIFIED = 5 HOR_ALIGN_CENTRED_ACROSS_SELECTION = 6 HOR_ALIGN_DISTRIBUTED = 7 # excelfileformat section 5.115.1 pg. 220 VERT_ALIGN_TOP = 0 VERT_ALIG...
{ "repo_name": "xiangel/hue", "path": "desktop/core/ext-py/tablib-0.10.0/tablib/packages/xlrd3/xfconst.py", "copies": "54", "size": "1657", "license": "apache-2.0", "hash": -4551905312407209000, "line_mean": 17.7261904762, "line_max": 69, "alpha_frac": 0.5775497888, "autogenerated": false, "ratio"...
__author__ = 'mpa' import logging from sm.so.service_orchestrator import LOG class FactoryServiceAdapter(object): @staticmethod def get_agent(module, cl, **kwargs): _package = "adapters" _module = module _class = cl LOG.debug("Instantiating %s from %s.%s"%(_class, _package,_...
{ "repo_name": "MobileCloudNetworking/maas", "path": "bundle/util/FactoryServiceAdapter.py", "copies": "1", "size": "1415", "license": "apache-2.0", "hash": 1495962999412023300, "line_mean": 36.2631578947, "line_max": 130, "alpha_frac": 0.5731448763, "autogenerated": false, "ratio": 4.054441260744...
__author__ = 'mpa' import os import httplib import logging PATH = os.path.abspath(os.path.join(os.path.dirname(os.path.realpath(__file__)), os.pardir)) HOST = 'localhost' if __name__ == '__main__': logging.basicConfig(format='%(asctime)s_%(process)d:%(pathname)s:%(lineno)d [%(levelname)s] %(message)s', ...
{ "repo_name": "MobileCloudNetworking/maas", "path": "bundle/test/test_deploy.py", "copies": "1", "size": "1228", "license": "apache-2.0", "hash": 7271848244438249000, "line_mean": 33.1388888889, "line_max": 112, "alpha_frac": 0.657980456, "autogenerated": false, "ratio": 3.5801749271137027, "co...
__author__ = 'mpa' import os import logging from sm.so.service_orchestrator import LOG class FactoryAgent(object): @staticmethod def get_agent(agent, **kwargs): defs = agent.split('.') if len(defs) == 3: _package, _module, _class = defs else: raise ImportErro...
{ "repo_name": "MobileCloudNetworking/maas", "path": "bundle/util/FactoryAgent.py", "copies": "1", "size": "1445", "license": "apache-2.0", "hash": 2872838024575787000, "line_mean": 35.15, "line_max": 130, "alpha_frac": 0.5619377163, "autogenerated": false, "ratio": 4.070422535211268, "config_te...
__author__ = 'mpechner' """ create VPC 10.0.0.0/16 - pub Create a subnet 10.0.0.0/24 - priv Add a internet Gateway Add an instance in the priv subnet Make sure the routing table is setup: 10.0.0.0/16 : local 0.0.0.0/0 : igw-id Region us-east-1a Security Groups: inbound 0.0.0.0/0 tcp 80 0.0.0.0/0 tcp 443 my IP or ...
{ "repo_name": "mpechner/boto", "path": "vpc/VPC_scenario1.py", "copies": "1", "size": "6932", "license": "mit", "hash": -3809264106042581000, "line_mean": 30.2252252252, "line_max": 112, "alpha_frac": 0.6332948644, "autogenerated": false, "ratio": 3.542156361778232, "config_test": false, "has...
from __future__ import print_function from slackclient import SlackClient from watson_developer_cloud import ConversationV1 import os import time # starterbot's ID as an environment variable BOT_ID = os.environ.get("BOT_ID") # constants AT_BOT = "<@" + BOT_ID + ">" # instantiate Slack clients slack_client = SlackCl...
{ "repo_name": "MPetersBE/mySlackboStarter", "path": "server.py", "copies": "1", "size": "2410", "license": "apache-2.0", "hash": -8500138053878007000, "line_mean": 30.7105263158, "line_max": 89, "alpha_frac": 0.6668049793, "autogenerated": false, "ratio": 3.8012618296529967, "config_test": fals...
__author__ = 'mpetyx' from pymodbus.client.sync import ModbusSerialClient as ModbusClient import pprint COMport='/dev/tty.usbserial-ftE2BL20' numRegisters=1 slaveUnit=1 def check_register(regIndex): client = ModbusClient(port=COMport,stopbits=1,bytesize=8,baudrate=9600, timeout=1, method='rtu') client.connect...
{ "repo_name": "mpetyx/smart-house-simulation-api", "path": "server/modbus_connector/sample_script.py", "copies": "1", "size": "1298", "license": "mit", "hash": -814945679479750300, "line_mean": 26.0625, "line_max": 100, "alpha_frac": 0.7149460709, "autogenerated": false, "ratio": 2.98390804597701...
__author__ = 'mpetyx' from collections import OrderedDict from HTMLParser import HTMLParser from htmlentitydefs import name2codepoint import markdown from Parser import Parser from pyapi.entities import APIRoot, APIResource, APIMethod from pyapi.libraries.pyhydra import Hypermedia class APIblueprintParser(Parser):...
{ "repo_name": "mpetyx/pyapi", "path": "pyapi/parsers/APIBlueprintParser.py", "copies": "1", "size": "6241", "license": "mit", "hash": 1522962203644217600, "line_mean": 31.5104166667, "line_max": 345, "alpha_frac": 0.6436468515, "autogenerated": false, "ratio": 3.6928994082840236, "config_test":...
__author__ = 'mpetyx' from collections import OrderedDict import json import requests from Parser import Parser from pyapi.entities import APIRoot, APIResource, APIMethod, APIQueryParameter class SwaggerParser(Parser): api = APIRoot(raml_version=str(0.8)) def parse(self, location): # self.api.g_ve...
{ "repo_name": "mpetyx/pyapi", "path": "pyapi/parsers/SwaggerParser.py", "copies": "1", "size": "4719", "license": "mit", "hash": 7936608646464763000, "line_mean": 34.2164179104, "line_max": 96, "alpha_frac": 0.5293494384, "autogenerated": false, "ratio": 4.728456913827655, "config_test": false,...
__author__ = 'mpetyx' from collections import OrderedDict from Parser import Parser from pyapi.entities import APIRoot, APIResource, APIMethod from pyapi.libraries.pyhydra import Hypermedia class HydraParser(Parser): def parse(self, location): hm = Hypermedia() hm.open(location) # if h...
{ "repo_name": "mpetyx/pyapi", "path": "pyapi/parsers/HydraParser.py", "copies": "1", "size": "2163", "license": "mit", "hash": -8978758154177424000, "line_mean": 31.7878787879, "line_max": 107, "alpha_frac": 0.5963938974, "autogenerated": false, "ratio": 4.0055555555555555, "config_test": false...
__author__ = 'mpetyx' from django.conf import settings import tweepy from .models import retrieve class twitter(): def __init__(self): #initializing variables consumer_key = settings.consumer_key consumer_secret = settings.consumer_secret key = settings.key secret = set...
{ "repo_name": "mpetyx/pychatbot", "path": "AIML/AliceTwitter/AliceOnHeroku/AliceOnHeroku/TwitterConnection.py", "copies": "1", "size": "1106", "license": "apache-2.0", "hash": -5598258466626896000, "line_mean": 20.7058823529, "line_max": 95, "alpha_frac": 0.622965642, "autogenerated": false, "rat...
__author__ = 'mpetyx' from django.contrib.auth.models import User from django.db import models class Value(models.Model): timestamp = models.DateField(auto_now_add=True) metric = models.TextField() class Buffer(models.Model): description = models.TextField() refresh_rate = models.FloatField() cre...
{ "repo_name": "mpetyx/smart-house-simulation-api", "path": "server/models.py", "copies": "1", "size": "1257", "license": "mit", "hash": -6466764617878897000, "line_mean": 27.5909090909, "line_max": 65, "alpha_frac": 0.7120127287, "autogenerated": false, "ratio": 3.5914285714285716, "config_test...
__author__ = 'mpetyx' from django.db import models import tweepy class TwitterInteraction(models.Model): user_name = models.TextField() post_id = models.TextField() created = models.DateTimeField(auto_now_add=True) updated = models.DateTimeField(auto_now=True) screen_name = models.TextField() ...
{ "repo_name": "mpetyx/pychatbot", "path": "AIML/AliceTwitter/AliceOnHeroku/AliceOnHeroku/models.py", "copies": "1", "size": "2784", "license": "apache-2.0", "hash": 3260443757437511700, "line_mean": 27.1212121212, "line_max": 137, "alpha_frac": 0.5858477011, "autogenerated": false, "ratio": 3.834...
__author__ = 'mpetyx' from django import http from django.shortcuts import render_to_response from django.template import RequestContext from questionnaire.models import * from questionnaire.page.models import Page def complete(request, page_to_render): try: p = Page.objects.get(slug=page_to_render, pub...
{ "repo_name": "mpetyx/psymbiosys-questionnaire", "path": "psy_questions/views.py", "copies": "1", "size": "1548", "license": "mit", "hash": -3895141701396264400, "line_mean": 27.6666666667, "line_max": 78, "alpha_frac": 0.5788113695, "autogenerated": false, "ratio": 4, "config_test": false, "...
__author__ = 'mpetyx' from .models import OpeniPhoto from OPENiapp.Providers.Facebook.connector import provider as FBprovider from OPENiapp.Providers.Twitter.connector import provider as TWprovider from allauth.socialaccount.models import SocialToken from OPENiapp.APIS.OpeniGenericResource import GenericResource fro...
{ "repo_name": "OPENi-ict/ntua_demo", "path": "openiPrototype/openiPrototype/APIS/Media/Photo/Resources.py", "copies": "1", "size": "2641", "license": "apache-2.0", "hash": -5337910398515587000, "line_mean": 38.4328358209, "line_max": 105, "alpha_frac": 0.642180992, "autogenerated": false, "ratio"...
__author__ = 'mpetyx' from parsers.RamlParser import RamlParser from parsers.HydraParser import HydraParser from parsers.SwaggerParser import SwaggerParser from serialisers import HydraSerialiser from serialisers.RamlSerialiser import RamlSerialiser from serialisers.SwaggerSerialiser import SwaggerSerialiser from ser...
{ "repo_name": "mpetyx/pyapi", "path": "pyapi/main.py", "copies": "1", "size": "2480", "license": "mit", "hash": -3483457256086909400, "line_mean": 34.9420289855, "line_max": 114, "alpha_frac": 0.6314516129, "autogenerated": false, "ratio": 3.668639053254438, "config_test": false, "has_no_keyw...
__author__ = 'mpetyx' from pyapi.libraries.pyraml_parser_master.pyraml.model import Model from pyapi.libraries.pyraml_parser_master.pyraml.fields import String, Reference, Map, List, Bool, Int, Float, Or class APIDocumentation(Model): content = String() title = String() class APISchema(Model): name = S...
{ "repo_name": "mpetyx/pyapi", "path": "pyapi/entities.py", "copies": "1", "size": "3276", "license": "mit", "hash": -7763889410492734000, "line_mean": 26.0826446281, "line_max": 113, "alpha_frac": 0.6385836386, "autogenerated": false, "ratio": 3.9517490952955368, "config_test": false, "has_no...
__author__ = 'mpetyx' from rdflib import Graph, ConjunctiveGraph # import rdflib.plugin # from django.conf import settings import datetime import os # register('SQLite', Store, 'rdflib.store.SQLite', 'SQLite') def random_file_generating(): basename = "deepGraphFile" suffix = datetime.datetime.now().strftime(...
{ "repo_name": "LinDA-tools/LindaWorkbench", "path": "linda/graphdb/dgraphdbstore.py", "copies": "1", "size": "1595", "license": "mit", "hash": 2463138769232025000, "line_mean": 25.5833333333, "line_max": 72, "alpha_frac": 0.602507837, "autogenerated": false, "ratio": 3.5054945054945055, "config...
__author__ = 'mpetyx' from rdflib import Graph, Namespace from rdflib.namespace import RDF, RDFS import requests """ This code is copied and reused from https://gist.github.com/pebbie/3a6b2b10c71ba796dca2 """ HYDRA = Namespace("http://www.w3.org/ns/hydra/core#") class HydraOperation: def __init__(self, sub...
{ "repo_name": "mpetyx/pyapi", "path": "pyapi/libraries/pyhydra.py", "copies": "1", "size": "7225", "license": "mit", "hash": 6336457737104710000, "line_mean": 33.5693779904, "line_max": 145, "alpha_frac": 0.5373010381, "autogenerated": false, "ratio": 3.7280701754385963, "config_test": false, ...
__author__ = 'mpetyx' from tastypie.resources import ModelResource from OPENiapp.APIS.OpeniGenericResource import GenericResource from OPENiapp.APIS.OPENiAuthorization import Authorization from OPENiapp.APIS.OPENiAuthentication import Authentication from allauth.socialaccount.models import SocialApp, SocialAccount, S...
{ "repo_name": "OPENi-ict/ntua_demo", "path": "openiPrototype/openiPrototype/APIS/Builder/Application/Resources.py", "copies": "1", "size": "1864", "license": "apache-2.0", "hash": -5500070859758479000, "line_mean": 35.568627451, "line_max": 78, "alpha_frac": 0.5944206009, "autogenerated": false, ...
__author__ = 'mpetyx' from tastypie.resources import ModelResource, Resource, ALL, ALL_WITH_RELATIONS from library import * from tastypie import fields from organizations.models import * from models import Dataset, DatasetGeoTempContext, DatasetScientificContext import models import lists from django.contrib.auth.mode...
{ "repo_name": "Suite5/DataColibri", "path": "engage/api_path/refine_api.py", "copies": "1", "size": "1189", "license": "mit", "hash": 6376605300235615000, "line_mean": 28.75, "line_max": 79, "alpha_frac": 0.7207737595, "autogenerated": false, "ratio": 4.4037037037037035, "config_test": false, ...
__author__ = 'mpetyx' from tastypie.resources import Resource from tastypie.authorization import Authorization from tastypie.bundle import Bundle from tastypie import fields from rdfConnector import rdfClient from RdfObject import RdfObject """ or this is also working https://gist.github.com/mhluongo/5789513...
{ "repo_name": "mpetyx/django-rdfGraph", "path": "graphBackend/graphBackend/api/rdfResource.py", "copies": "1", "size": "3651", "license": "mit", "hash": 3618065893409287000, "line_mean": 30.4827586207, "line_max": 122, "alpha_frac": 0.6209257738, "autogenerated": false, "ratio": 3.934267241379310...
__author__ = 'mpetyx' import datetime from haystack import indexes from linda_app.models import Vocabulary, VocabularyClass, VocabularyProperty # In haystack backend settings change default min_gram to 4-5 for optimal results class VocabularyIndex(indexes.SearchIndex, indexes.Indexable): text = indexes.NgramFiel...
{ "repo_name": "LinDA-tools/LindaWorkbench", "path": "linda/linda_app/search_indexes.py", "copies": "1", "size": "1100", "license": "mit", "hash": -629925537970047500, "line_mean": 33.375, "line_max": 87, "alpha_frac": 0.7618181818, "autogenerated": false, "ratio": 3.741496598639456, "config_tes...
__author__ = 'mpetyx' import httplib import urllib from urlparse import urlparse from xml.dom import pulldom import re import requests __version__ = "0.1" __author__ = "Michael Petychakis" try: import json except ImportError: import simplejson as json import struct USER_AGENT = "stardog-client/%s" % __ve...
{ "repo_name": "deepgraphs/dgraphdb", "path": "autohouse/client.py", "copies": "1", "size": "17966", "license": "mit", "hash": -2710905229454966300, "line_mean": 30.465849387, "line_max": 173, "alpha_frac": 0.5480351776, "autogenerated": false, "ratio": 3.8929577464788734, "config_test": false, ...
__author__ = 'mpetyx' import logging from django.views.decorators.csrf import csrf_exempt from django.http import HttpResponse from pyapi import API import requests @csrf_exempt def transform(request): if request.method == 'POST' or request.method == 'GET': # api = request.POST.get('api','') lo...
{ "repo_name": "mpetyx/pyapi-as-as-a-service", "path": "server/api.py", "copies": "1", "size": "3150", "license": "mit", "hash": 905134814453084800, "line_mean": 34, "line_max": 101, "alpha_frac": 0.6031746032, "autogenerated": false, "ratio": 3.7815126050420167, "config_test": false, "has_no_...
__author__ = 'mpetyx' import pickle b=open('simplebot.py') text=[] for line in b: for word in line.split(): text.append (word) b.close() textset=list(set(text)) follow={} # for l in range(len(textset)): # working=[] # check=textset[l] # for w in range(len(text)-1): # if check==text[w] a...
{ "repo_name": "mpetyx/pychatbot", "path": "simpleApproach/simpletrainer.py", "copies": "1", "size": "1063", "license": "apache-2.0", "hash": -2297037648664727300, "line_mean": 18.7037037037, "line_max": 60, "alpha_frac": 0.5634995296, "autogenerated": false, "ratio": 2.5926829268292684, "config...
__author__ = 'mpetyx' import pykemon # # print pykemon.get(pokemon='bulbasaur') # p = pykemon.get(pokemon_id=1) # print p.attack # print p.defense # # print pykemon.get(move_id=15) class Team: pokemons = [] attack = 0 defense = 0 def __init__(self, pokemon1, pokemon2, pokemon3, pokemon4, pokemon5, p...
{ "repo_name": "mpetyx/askpykemon", "path": "Team.py", "copies": "1", "size": "1072", "license": "mit", "hash": 8217090812948831000, "line_mean": 21.8085106383, "line_max": 84, "alpha_frac": 0.6333955224, "autogenerated": false, "ratio": 3.318885448916409, "config_test": false, "has_no_keyword...
__author__ = 'mpetyx' import rdflib from rdflib.plugins.sparql import prepareQuery from rdflib.namespace import FOAF from rdflib import RDF, BNode, Literal, ConjunctiveGraph class handler(object): database = 'SQLite' configString = "testdata.db" def __init__(self): # g = rdflib.Graph(self.databa...
{ "repo_name": "mpetyx/django-rdfGraph", "path": "graphBackend/graphBackend/api/rdfCRUD.py", "copies": "1", "size": "1654", "license": "mit", "hash": 1970030778254761500, "line_mean": 25.6935483871, "line_max": 74, "alpha_frac": 0.5792019347, "autogenerated": false, "ratio": 3.4103092783505153, ...
__author__ = 'mpetyx' import rdflib from RdfObject import RdfObject class rdfClient(object): # def __init__(self): def bucket(self,bucket_name=None): self._graph = rdflib.Graph() return self._graph def new(self): # inherit the schema from resource return 1 ...
{ "repo_name": "mpetyx/django-rdfGraph", "path": "graphBackend/graphBackend/api/rdfConnector.py", "copies": "1", "size": "1745", "license": "mit", "hash": -3072428802579562500, "line_mean": 22.9178082192, "line_max": 76, "alpha_frac": 0.5856733524, "autogenerated": false, "ratio": 3.75268817204301...
__author__ = 'mpetyx' import urllib from rdflib import Namespace, Literal from rdflib.namespace import RDF, RDFS, OWL from rdflib import Graph, BNode, URIRef class Serialiser: resources = None graph = Graph() nest_resources = [] document = {} blueprint = "" def __init__(self): self....
{ "repo_name": "mpetyx/pyapi", "path": "pyapi/serialisers/Serialiser.py", "copies": "1", "size": "8706", "license": "mit", "hash": -1158425956259970800, "line_mean": 53.4125, "line_max": 141, "alpha_frac": 0.5926946933, "autogenerated": false, "ratio": 4.453196930946292, "config_test": false, ...
__author__ = 'mpetyx' import xlrd import csv import json import unicodecsv def numeric(s): try: i = float(s) return True except ValueError, TypeError: return False def search_numeric_only(l): empty = [] for element in l: if numeric(element): empty.append(fl...
{ "repo_name": "Suite5/DataColibri", "path": "engage/jsonHandler/generatingJsonFormat.py", "copies": "1", "size": "6867", "license": "mit", "hash": -2762009648707163000, "line_mean": 24.3394833948, "line_max": 141, "alpha_frac": 0.5143439639, "autogenerated": false, "ratio": 3.948821161587119, "...
__author__ = 'mpetyx' import xlrd import csv import json def csv_from_excel(): wb = xlrd.open_workbook('SampleData.xls') names = wb.sheet_names() sh = wb.sheet_by_name(names[0]) your_csv_file = open('your_csv_file.csv', 'wb') wr = csv.writer(your_csv_file, quoting=csv.QUOTE_ALL) for rownum i...
{ "repo_name": "Suite5/DataColibri", "path": "engage/jsonHandler/ExceltoCsv.py", "copies": "1", "size": "1097", "license": "mit", "hash": -8726049020548223000, "line_mean": 23.3777777778, "line_max": 129, "alpha_frac": 0.6071103008, "autogenerated": false, "ratio": 3.2359882005899707, "config_te...
__author__ = 'mpetyx' import xml.dom.minidom from FuXi.Horn.RIFCore import RIFCoreParser class Rules: """ This class is a placeholder for all the rules """ def xml_parsing(document): rif_parser = RIFCoreParser(location=str(document),debug=True) rs = rif_parser.getRuleset() return rs def vali...
{ "repo_name": "mpetyx/pyrif", "path": "pyrif/parser.py", "copies": "1", "size": "1583", "license": "mit", "hash": -1428132445007556400, "line_mean": 29.4615384615, "line_max": 129, "alpha_frac": 0.6948831333, "autogenerated": false, "ratio": 3.0618955512572534, "config_test": false, "has_no_k...
__author__ = 'mpetyx' __author__ = 'mpetyx' import xlrd import csv import json import unicodecsv def numeric(s): try: i = float(s) return True except ValueError, TypeError: return False def meta(s): """ :rtype : json """ # s = s.replace("<QueryDict: {u'","") #...
{ "repo_name": "Suite5/DataColibri", "path": "engage/jsonHandler/generatingJsonFromSaved.py", "copies": "1", "size": "7756", "license": "mit", "hash": -7528461793034584000, "line_mean": 24.0193548387, "line_max": 141, "alpha_frac": 0.5091542032, "autogenerated": false, "ratio": 3.7963778756730298,...
__author__ = 'mpetyx' # # def query(): # # return 1 # # # import rdflib # # rdflib.plugin.register('sparql', rdflib.query.Processor, 'rdfextras.sparql.processor', 'Processor') # rdflib.plugin.register('sparql', rdflib.query.Result, 'rdfextras.sparql.query', 'SPARQLQueryResult') # # g = rdflib.Graph() # # # # query...
{ "repo_name": "mpetyx/pychatbot", "path": "AIML/CAML/semiotics/SparqlEndpoint.py", "copies": "1", "size": "2519", "license": "apache-2.0", "hash": 1009328289026908700, "line_mean": 26.0860215054, "line_max": 103, "alpha_frac": 0.6244541485, "autogenerated": false, "ratio": 2.685501066098081, "c...
__author__ = 'mpetyx' from linda.models import Vocabulary, User from graphdb import dgraphdbstore graphdb = dgraphdbstore.DeepGraphStore() graphdb.open('graphdb/deepGraphFile_321763af3ed32e1bb47233944ef6bc74_140512_191741') DETAILS_ABOUT_VOCABULARY = """ PREFIX rdf:<http://www.w3.org/1999/02/22-rdf-syntax-ns#> ...
{ "repo_name": "LinDA-tools/LindaWorkbench", "path": "linda/bulk_operations/create_vocabularies_in_db.py", "copies": "1", "size": "2048", "license": "mit", "hash": -1234231347991581400, "line_mean": 34.9298245614, "line_max": 238, "alpha_frac": 0.7421875, "autogenerated": false, "ratio": 3.1171993...
__author__ = 'mpetyx' from .models import OpeniBadge from OPENiapp.APIS.OpeniGenericResource import GenericResource from OPENiapp.APIS.OPENiAuthorization import Authorization from OPENiapp.APIS.OPENiAuthentication import Authentication class BadgeResource(GenericResource): class Meta: queryset = OpeniB...
{ "repo_name": "OPENi-ict/ntua_demo", "path": "openiPrototype/openiPrototype/APIS/Activity/Badge/Resources.py", "copies": "1", "size": "2092", "license": "apache-2.0", "hash": 7438472411344814000, "line_mean": 29.3333333333, "line_max": 70, "alpha_frac": 0.4072657744, "autogenerated": false, "rati...
__author__ = 'mpetyx' from .models import OpeniCheckin from OPENiapp.APIS.OpeniGenericResource import GenericResource from OPENiapp.APIS.OPENiAuthorization import Authorization from OPENiapp.APIS.OPENiAuthentication import Authentication class CheckinResource(GenericResource): class Meta: queryset = Op...
{ "repo_name": "OPENi-ict/ntua_demo", "path": "openiPrototype/openiPrototype/APIS/Activity/Checkin/Resources.py", "copies": "1", "size": "2100", "license": "apache-2.0", "hash": 8786882040852346000, "line_mean": 29.4492753623, "line_max": 70, "alpha_frac": 0.4095238095, "autogenerated": false, "ra...
__author__ = 'mpetyx' from rest_framework import routers, serializers, viewsets from .models import * # Serializers define the API representation. class UserSerializer(serializers.HyperlinkedModelSerializer): class Meta: model = User fields = ('url', 'username', 'email', 'is_staff') # ViewSets d...
{ "repo_name": "mpetyx/smart-house-simulation-api", "path": "server/api.py", "copies": "1", "size": "1491", "license": "mit", "hash": 7543869052440536000, "line_mean": 28.84, "line_max": 64, "alpha_frac": 0.7357478203, "autogenerated": false, "ratio": 4.385294117647059, "config_test": false, "...
__author__ = 'mpetyx' # from tastypie.authentication import BasicAuthentication # from tastypie.resources import ModelResource # from entries.models import Entry # # # class EntryResource(ModelResource): # class Meta: # queryset = Entry.objects.all() # authentication = BasicAuthentication() # http...
{ "repo_name": "mpetyx/django-rdfGraph", "path": "graphBackend/graphBackend/api/tests.py", "copies": "1", "size": "5629", "license": "mit", "hash": 7153019465012422000, "line_mean": 43.6825396825, "line_max": 147, "alpha_frac": 0.6599751288, "autogenerated": false, "ratio": 3.6363049095607236, "...
__author__ = 'mpetyx' from tastypie.authorization import DjangoAuthorization from .models import OpeniAccount from OPENiapp.APIS.OpeniGenericResource import GenericResource from OPENiapp.APIS.OPENiAuthorization import Authorization from OPENiapp.APIS.OPENiAuthentication import Authentication class AccountResource(G...
{ "repo_name": "OPENi-ict/ntua_demo", "path": "openiPrototype/openiPrototype/APIS/Profile/Account/Resources.py", "copies": "1", "size": "2154", "license": "apache-2.0", "hash": 3857879017666754600, "line_mean": 30.231884058, "line_max": 70, "alpha_frac": 0.4224698236, "autogenerated": false, "rati...
__author__ = 'mpetyx' from tastypie.authorization import DjangoAuthorization from .models import OpeniActivityEvent from OPENiapp.APIS.OpeniGenericResource import GenericResource from OPENiapp.APIS.OPENiAuthorization import Authorization from OPENiapp.APIS.OPENiAuthentication import Authentication class ActivityEv...
{ "repo_name": "OPENi-ict/ntua_demo", "path": "openiPrototype/openiPrototype/APIS/Activity/Event/Resources.py", "copies": "1", "size": "2179", "license": "apache-2.0", "hash": 8153098570536181000, "line_mean": 30.1428571429, "line_max": 70, "alpha_frac": 0.4286369894, "autogenerated": false, "rati...
__author__ = 'mpetyx' from tastypie.authorization import DjangoAuthorization from .models import OpeniApplication from OPENiapp.APIS.OpeniGenericResource import GenericResource from OPENiapp.APIS.OPENiAuthorization import Authorization from OPENiapp.APIS.OPENiAuthentication import Authentication class ApplicationRe...
{ "repo_name": "OPENi-ict/ntua_demo", "path": "openiPrototype/openiPrototype/APIS/Profile/Application/Resources.py", "copies": "1", "size": "2170", "license": "apache-2.0", "hash": 8903434720705530000, "line_mean": 30.4637681159, "line_max": 70, "alpha_frac": 0.4267281106, "autogenerated": false, ...
__author__ = 'mpetyx' from tastypie.authorization import DjangoAuthorization from .models import OpeniCard from OPENiapp.APIS.OpeniGenericResource import GenericResource from OPENiapp.APIS.OPENiAuthorization import Authorization from OPENiapp.APIS.OPENiAuthentication import Authentication class CardResource(Generic...
{ "repo_name": "OPENi-ict/ntua_demo", "path": "openiPrototype/openiPrototype/APIS/Products_and_Services/Card/Resources.py", "copies": "1", "size": "2142", "license": "apache-2.0", "hash": 5741095990471036000, "line_mean": 30.0579710145, "line_max": 70, "alpha_frac": 0.4192343604, "autogenerated": fa...
__author__ = 'mpetyx' from tastypie.authorization import DjangoAuthorization from .models import OpeniContact from OPENiapp.APIS.OpeniGenericResource import GenericResource from OPENiapp.APIS.OPENiAuthorization import Authorization from OPENiapp.APIS.OPENiAuthentication import Authentication class ContactResource(G...
{ "repo_name": "OPENi-ict/ntua_demo", "path": "openiPrototype/openiPrototype/APIS/Profile/Contact/Resources.py", "copies": "1", "size": "2154", "license": "apache-2.0", "hash": -1485706819672648200, "line_mean": 30.231884058, "line_max": 70, "alpha_frac": 0.4224698236, "autogenerated": false, "rat...
__author__ = 'mpetyx' from tastypie.authorization import DjangoAuthorization from .models import OpeniDevice from OPENiapp.APIS.OpeniGenericResource import GenericResource from OPENiapp.APIS.OPENiAuthorization import Authorization from OPENiapp.APIS.OPENiAuthentication import Authentication class DeviceResource(Gen...
{ "repo_name": "OPENi-ict/ntua_demo", "path": "openiPrototype/openiPrototype/APIS/Profile/Device/Resources.py", "copies": "1", "size": "2150", "license": "apache-2.0", "hash": -285897328497140800, "line_mean": 30.1739130435, "line_max": 70, "alpha_frac": 0.4213953488, "autogenerated": false, "rati...
__author__ = 'mpetyx' from tastypie.authorization import DjangoAuthorization from .models import OpeniEvent from OPENiapp.APIS.OpeniGenericResource import GenericResource from OPENiapp.APIS.OPENiAuthorization import Authorization from OPENiapp.APIS.OPENiAuthentication import Authentication class PlaceResource(Gener...
{ "repo_name": "OPENi-ict/ntua_demo", "path": "openiPrototype/openiPrototype/APIS/Location/Place/Resources.py", "copies": "1", "size": "2146", "license": "apache-2.0", "hash": 2672716727030804500, "line_mean": 30.115942029, "line_max": 70, "alpha_frac": 0.4203168686, "autogenerated": false, "ratio...
__author__ = 'mpetyx' from tastypie.authorization import DjangoAuthorization from .models import OpeniGame from OPENiapp.APIS.OpeniGenericResource import GenericResource from OPENiapp.APIS.OPENiAuthorization import Authorization from OPENiapp.APIS.OPENiAuthentication import Authentication class GameResource(Generi...
{ "repo_name": "OPENi-ict/ntua_demo", "path": "openiPrototype/openiPrototype/APIS/Activity/Game/Resources.py", "copies": "1", "size": "2143", "license": "apache-2.0", "hash": 5728392316575382000, "line_mean": 29.6285714286, "line_max": 70, "alpha_frac": 0.4190387308, "autogenerated": false, "ratio...
__author__ = 'mpetyx' from tastypie.authorization import DjangoAuthorization from .models import OpeniMeasurement from OPENiapp.APIS.OpeniGenericResource import GenericResource from OPENiapp.APIS.OPENiAuthorization import Authorization from OPENiapp.APIS.OPENiAuthentication import Authentication class MeasurementR...
{ "repo_name": "OPENi-ict/ntua_demo", "path": "openiPrototype/openiPrototype/APIS/Activity/Measurement/Resources.py", "copies": "1", "size": "2171", "license": "apache-2.0", "hash": 1014752125121901300, "line_mean": 30.0285714286, "line_max": 70, "alpha_frac": 0.4265315523, "autogenerated": false, ...
__author__ = 'mpetyx' from tastypie.authorization import DjangoAuthorization from .models import OpeniNote from OPENiapp.APIS.OpeniGenericResource import GenericResource from OPENiapp.APIS.OPENiAuthorization import Authorization from OPENiapp.APIS.OPENiAuthentication import Authentication class NoteResource(Generi...
{ "repo_name": "OPENi-ict/ntua_demo", "path": "openiPrototype/openiPrototype/APIS/Activity/Note/Resources.py", "copies": "1", "size": "2143", "license": "apache-2.0", "hash": -3930730819976353000, "line_mean": 29.6285714286, "line_max": 70, "alpha_frac": 0.4190387308, "autogenerated": false, "rati...
__author__ = 'mpetyx' from tastypie.authorization import DjangoAuthorization from .models import OpeniNutrition from OPENiapp.APIS.OpeniGenericResource import GenericResource from OPENiapp.APIS.OPENiAuthorization import Authorization from OPENiapp.APIS.OPENiAuthentication import Authentication class NutritionResour...
{ "repo_name": "OPENi-ict/ntua_demo", "path": "openiPrototype/openiPrototype/APIS/Activity/Nutrition/Resources.py", "copies": "1", "size": "2162", "license": "apache-2.0", "hash": -7953213570874019000, "line_mean": 30.347826087, "line_max": 70, "alpha_frac": 0.4246068455, "autogenerated": false, "...
__author__ = 'mpetyx' from tastypie.authorization import DjangoAuthorization from .models import OpeniOrder from OPENiapp.APIS.OpeniGenericResource import GenericResource from OPENiapp.APIS.OPENiAuthorization import Authorization from OPENiapp.APIS.OPENiAuthentication import Authentication class OrderResource(Gener...
{ "repo_name": "OPENi-ict/ntua_demo", "path": "openiPrototype/openiPrototype/APIS/Products_and_Services/Order/Resources.py", "copies": "1", "size": "2146", "license": "apache-2.0", "hash": -1275776850442311200, "line_mean": 30.115942029, "line_max": 70, "alpha_frac": 0.4203168686, "autogenerated": f...
__author__ = 'mpetyx' from tastypie.authorization import DjangoAuthorization from .models import OpeniProduct from OPENiapp.APIS.OpeniGenericResource import GenericResource from OPENiapp.APIS.OPENiAuthorization import Authorization from OPENiapp.APIS.OPENiAuthentication import Authentication class ProductResource(G...
{ "repo_name": "OPENi-ict/ntua_demo", "path": "openiPrototype/openiPrototype/APIS/Products_and_Services/Product/Resources.py", "copies": "1", "size": "2154", "license": "apache-2.0", "hash": -5813633954615608000, "line_mean": 30.231884058, "line_max": 70, "alpha_frac": 0.4224698236, "autogenerated":...
__author__ = 'mpetyx' from tastypie.authorization import DjangoAuthorization from .models import OpeniQuestion from OPENiapp.APIS.OpeniGenericResource import GenericResource from OPENiapp.APIS.OPENiAuthorization import Authorization from OPENiapp.APIS.OPENiAuthentication import Authentication class QuestionResource...
{ "repo_name": "OPENi-ict/ntua_demo", "path": "openiPrototype/openiPrototype/APIS/Activity/Question/Resources.py", "copies": "1", "size": "2158", "license": "apache-2.0", "hash": -3829697507689862000, "line_mean": 30.2898550725, "line_max": 70, "alpha_frac": 0.4235403151, "autogenerated": false, "...
__author__ = 'mpetyx' from tastypie.authorization import DjangoAuthorization from .models import OpeniService from OPENiapp.APIS.OpeniGenericResource import GenericResource from OPENiapp.APIS.OPENiAuthorization import Authorization from OPENiapp.APIS.OPENiAuthentication import Authentication class ServiceResource(G...
{ "repo_name": "OPENi-ict/ntua_demo", "path": "openiPrototype/openiPrototype/APIS/Products_and_Services/Service/Resources.py", "copies": "1", "size": "2154", "license": "apache-2.0", "hash": -6866733572278876000, "line_mean": 30.231884058, "line_max": 70, "alpha_frac": 0.4224698236, "autogenerated":...
__author__ = 'mpetyx' from tastypie.authorization import DjangoAuthorization from .models import OpeniShop from OPENiapp.APIS.OpeniGenericResource import GenericResource from OPENiapp.APIS.OPENiAuthorization import Authorization from OPENiapp.APIS.OPENiAuthentication import Authentication class ShopResource(Generic...
{ "repo_name": "OPENi-ict/ntua_demo", "path": "openiPrototype/openiPrototype/APIS/Products_and_Services/Shop/Resources.py", "copies": "1", "size": "2142", "license": "apache-2.0", "hash": 8766323350540086000, "line_mean": 30.0579710145, "line_max": 70, "alpha_frac": 0.4192343604, "autogenerated": fa...
__author__ = 'mpetyx' from tastypie.authorization import DjangoAuthorization from .models import OpeniSleep from OPENiapp.APIS.OpeniGenericResource import GenericResource from OPENiapp.APIS.OPENiAuthorization import Authorization from OPENiapp.APIS.OPENiAuthentication import Authentication class SleepResource(Gener...
{ "repo_name": "OPENi-ict/ntua_demo", "path": "openiPrototype/openiPrototype/APIS/Activity/Sleep/Resources.py", "copies": "1", "size": "2146", "license": "apache-2.0", "hash": 8047352030450755000, "line_mean": 30.115942029, "line_max": 70, "alpha_frac": 0.4203168686, "autogenerated": false, "ratio...
__author__ = 'mpetyx' from tastypie.authorization import DjangoAuthorization from .models import OpeniStatus from OPENiapp.APIS.OpeniGenericResource import GenericResource from OPENiapp.APIS.OPENiAuthorization import Authorization from OPENiapp.APIS.OPENiAuthentication import Authentication class StatusResource(Gen...
{ "repo_name": "OPENi-ict/ntua_demo", "path": "openiPrototype/openiPrototype/APIS/Activity/Status/Resources.py", "copies": "1", "size": "2150", "license": "apache-2.0", "hash": -7836052288731524000, "line_mean": 30.1739130435, "line_max": 70, "alpha_frac": 0.4213953488, "autogenerated": false, "ra...
__author__ = 'mpetyx' from tastypie.authorization import DjangoAuthorization # from .models import OpeniUser from django.contrib.auth.models import User as OpeniUser from OPENiapp.APIS.OpeniGenericResource import GenericResource from OPENiapp.APIS.OPENiAuthorization import Authorization from OPENiapp.APIS.OPENiAuth...
{ "repo_name": "OPENi-ict/ntua_demo", "path": "openiPrototype/openiPrototype/APIS/Profile/User/Resources.py", "copies": "1", "size": "2202", "license": "apache-2.0", "hash": 1918790119008109300, "line_mean": 30.0281690141, "line_max": 70, "alpha_frac": 0.429609446, "autogenerated": false, "ratio":...
__author__ = 'mpetyx' from tastypie.authorization import DjangoAuthorization from .models import OpeniWorkout from OPENiapp.APIS.OpeniGenericResource import GenericResource from OPENiapp.APIS.OPENiAuthorization import Authorization from OPENiapp.APIS.OPENiAuthentication import Authentication class WorkoutResource(G...
{ "repo_name": "OPENi-ict/ntua_demo", "path": "openiPrototype/openiPrototype/APIS/Activity/Workout/Resources.py", "copies": "1", "size": "2154", "license": "apache-2.0", "hash": -9201597561553137000, "line_mean": 30.231884058, "line_max": 70, "alpha_frac": 0.4224698236, "autogenerated": false, "ra...
__author__ = 'mpetyx' from tastypie.resources import ModelResource, Resource, ALL, ALL_WITH_RELATIONS from library import * from tastypie import fields from organizations.models import * from models import Dataset, DatasetGeoTempContext, DatasetScientificContext, Application import models import lists from django.con...
{ "repo_name": "Suite5/DataColibri", "path": "engage/api_public_v1.py", "copies": "1", "size": "15669", "license": "mit", "hash": -6012583812993906000, "line_mean": 37.5960591133, "line_max": 181, "alpha_frac": 0.5978045823, "autogenerated": false, "ratio": 4.326062948647157, "config_test": fals...
__author__ = "mpetyx" # import pickle,random # a=open("lexicon-luke","rb") # successorlist=pickle.load(a) # a.close() # def nextword(a): # if a in successorlist: # return random.choice(successorlist[a]) # else: # return "the" # speech="" # while speech!="quit": # speech=raw_input(">") # ...
{ "repo_name": "mpetyx/pychatbot", "path": "simpleApproach/simplebot.py", "copies": "1", "size": "1111", "license": "apache-2.0", "hash": 7416881318982817000, "line_mean": 19.5925925926, "line_max": 48, "alpha_frac": 0.5373537354, "autogenerated": false, "ratio": 3.112044817927171, "config_test"...
__author__ = 'mpetyx' """ { "meta": { "rowCount": 55, "locationFields": [], "filter": {}, "vis": {}, "attributes": [ { { { } ], "id":33, "name":"crime-rates.xlsx", "description":"Test case, automatically add...
{ "repo_name": "Suite5/DataColibri", "path": "engage/jsonHandler/JsonCreator.py", "copies": "1", "size": "2510", "license": "mit", "hash": 2141311446754192000, "line_mean": 27.5340909091, "line_max": 256, "alpha_frac": 0.6541832669, "autogenerated": false, "ratio": 3.5704125177809387, "config_te...