text
stringlengths
0
1.05M
meta
dict
__author__ = 'pjkearns' import serial import struct import time import datetime from datetime import datetime from itertools import islice import ctypes import os import os, re, sys, time, socket from settings import camaddr from settings import camport from decimal import * # Data variables from mindflex length =...
{ "repo_name": "pjkearns/NeuroSky_Edison", "path": "mind_control_cam.py", "copies": "3", "size": "9351", "license": "mit", "hash": -4214458580039345000, "line_mean": 31.1340206186, "line_max": 120, "alpha_frac": 0.4533205005, "autogenerated": false, "ratio": 4.252387448840382, "config_test": fal...
__author__ = 'pjuluri' import config_dash from adaptation import calculate_rate_index def basic_dash(segment_number, bitrates, average_dwn_time, segment_download_time, curr_rate): """ Module to predict the next_bitrate using the basic_dash algorithm :param segment_number: Current segment n...
{ "repo_name": "pari685/AStream", "path": "dist/client/adaptation/basic_dash.py", "copies": "1", "size": "2597", "license": "mit", "hash": 8752466138425830000, "line_mean": 46.2181818182, "line_max": 119, "alpha_frac": 0.5852907201, "autogenerated": false, "ratio": 4.122222222222222, "config_tes...
__author__ = 'pjuluri' import config_dash def basic_dash2(segment_number, bitrates, average_dwn_time, recent_download_sizes, previous_segment_times, current_bitrate): """ Module to predict the next_bitrate using the basic_dash algorithm. Selects the bitrate that is one lower than the curr...
{ "repo_name": "pari685/AStream", "path": "dist/client/adaptation/basic_dash2.py", "copies": "1", "size": "2991", "license": "mit", "hash": 5450081626005666000, "line_mean": 48.8666666667, "line_max": 119, "alpha_frac": 0.6242059512, "autogenerated": false, "ratio": 4.183216783216783, "config_te...
__author__ = 'pkaura' import os import requests from peewee import * ''' Steps: - Run a loop on the url : - Get the data - Save username,name, phunt_id, votes_count, posts_count, maker_of_count, followers_count, followings_count, created_at to SQLite - Give queries for highest number of upvotes ''' db = SqliteDatabas...
{ "repo_name": "puneetkaura/utils", "path": "pdhunt_data.py", "copies": "1", "size": "1841", "license": "mit", "hash": -4363255172866312000, "line_mean": 25.3, "line_max": 149, "alpha_frac": 0.6458446496, "autogenerated": false, "ratio": 3.1578044596912522, "config_test": false, "has_no_keywor...
__author__ = 'pkim' import csv import json import os def main(): zip_dict = dict() with open('US.txt', 'r') as f: reader = csv.reader(f, delimiter='\t') for row in reader: if row[9] and row[10]: this_dict = dict() this_dict['zipCode'] = row[1] ...
{ "repo_name": "gingerwizard/examples", "path": "Exploring Public Datasets/usfec/scripts/usfec_process_data.py", "copies": "7", "size": "10960", "license": "apache-2.0", "hash": 6395678178241079000, "line_mean": 42.6653386454, "line_max": 105, "alpha_frac": 0.5049270073, "autogenerated": false, "r...
__author__ = 'pknox-kennedy' import json def to_json(python_object): if isinstance(python_object,sound): return {"__class__":'sound', 'filename': python_object.filename} def from_json(json_object): if '__class__' in json_object: if json_object['__class__'] == 'sound': ...
{ "repo_name": "PDKK/ShowStopper", "path": "model.py", "copies": "1", "size": "1048", "license": "bsd-3-clause", "hash": -4677083771982978000, "line_mean": 23.9523809524, "line_max": 60, "alpha_frac": 0.5667938931, "autogenerated": false, "ratio": 3.3915857605177995, "config_test": false, "has...
__author__ = 'pknox-kennedy' #!/usr/bin/env python import os from gi.repository import Gtk from gi.repository import GObject from gi.repository.GdkPixbuf import Pixbuf, InterpType import player glade_file = os.path.join(os.path.dirname(__file__), "glade/item.glade") led_file = os.path.join(os.path.dirname(__file__),...
{ "repo_name": "PDKK/ShowStopper", "path": "item.py", "copies": "1", "size": "2297", "license": "bsd-3-clause", "hash": 4539998380046624300, "line_mean": 34.3384615385, "line_max": 89, "alpha_frac": 0.624727906, "autogenerated": false, "ratio": 3.3779411764705882, "config_test": false, "has_no...
__author__ = 'pkorus' from swtk.processors import * # TODO This plugin needs a major improvement! class BuriedVerbProcessor(Plugin): run_priority = 75 counter = 0 help = 'Finds sentences with potentially buried verbs (far away from the subject).' distance_threshold = 3 def __init__(self): ...
{ "repo_name": "pkorus/swtk", "path": "plugins/buried_verbs.py", "copies": "1", "size": "2429", "license": "mit", "hash": 2219552488290128000, "line_mean": 46.6274509804, "line_max": 117, "alpha_frac": 0.583367641, "autogenerated": false, "ratio": 3.9624796084828713, "config_test": false, "has...
__author__ = 'pkorus' import os import imp import logging ignore_tags = ['e'] ignore_tokens = ['.', ',', ';', '[', ']', '(', ')', '-', '$', '!', '?'] def dump_as_list(data): if hasattr(data, '__iter__'): details = ['<ul>'] for statistic in data: details.append('<li>{}</li>'.format(st...
{ "repo_name": "pkorus/swtk", "path": "swtk/processors.py", "copies": "1", "size": "4498", "license": "mit", "hash": 6877328832721955000, "line_mean": 31.3597122302, "line_max": 105, "alpha_frac": 0.5733659404, "autogenerated": false, "ratio": 4.041329739442947, "config_test": false, "has_no_k...
__author__ = 'pkorus' import os, sys, argparse, re, logging from swtk import paper from swtk import processors # Parse command line arguments parser = argparse.ArgumentParser(description='Scientific Writing Toolbox') parser.add_argument('filename', type=str, help='input file (LaTeX, markdown, plaintext)') parser.add_...
{ "repo_name": "pkorus/swtk", "path": "swtk-analyzer.py", "copies": "1", "size": "3686", "license": "mit", "hash": 6466321354788717000, "line_mean": 38.6451612903, "line_max": 118, "alpha_frac": 0.7086272382, "autogenerated": false, "ratio": 3.500474833808167, "config_test": false, "has_no_key...
__author__ = 'Plinio H. Vargas' __date__ = '2015 18, 2:42 PM' import sys import copy matrix = [ [0, 0.268188, 1.0861600, 0.284266, 2.1870300, 2.90507, 1.06443, 0.641625, 0.191624, 3.44142], [0.1609330, 0, 0.6911510, 0.464564, 1.4049800, 1.96431, 0.168696, 0.6...
{ "repo_name": "phvargas/TSP-python", "path": "TSP.py", "copies": "1", "size": "2642", "license": "mit", "hash": -8513546765100938000, "line_mean": 32.8717948718, "line_max": 124, "alpha_frac": 0.4894019682, "autogenerated": false, "ratio": 2.3195785776997364, "config_test": false, "has_no_key...
__author__ = 'pmontgom' import flask import tempfile import re import sqlite3 import threading import os import sys from flask import Flask, render_template, request, g from boto.s3.connection import S3Connection app = Flask(__name__) DB_INIT_STATEMENTS = ["CREATE TABLE CACHED (path STRING primary key, local_path S...
{ "repo_name": "pgm/localcache", "path": "cache.py", "copies": "1", "size": "3677", "license": "mit", "hash": -905691351349084200, "line_mean": 28.6532258065, "line_max": 124, "alpha_frac": 0.609736198, "autogenerated": false, "ratio": 3.601371204701273, "config_test": true, "has_no_keywords":...
__author__ = 'pnp' #=============================================================================== # This program: # 1. Identifies situations where there are three consecutive lines like this: # * # * # * # and it removes two of the three lines # # The program takes one argument: # - The name of the file to be up...
{ "repo_name": "pnp-software/fwprofile", "path": "scripts/RemoveTripleBlankCommentLines.py", "copies": "1", "size": "1781", "license": "mpl-2.0", "hash": 9127192416165422000, "line_mean": 24.8115942029, "line_max": 80, "alpha_frac": 0.4800673779, "autogenerated": false, "ratio": 4.2404761904761905...
__author__ = 'polera' __email__ = 'james@uncryptic.com' __since__ = '2011-10-17' from random import choice class Srambler(object): ALPHAS = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ" NUMS = "0123456789" BOOLS = [True, False] NON_ALPHAS = [' ', ',', '.', '$', '-'] TYPE_...
{ "repo_name": "polera/srambler", "path": "srambler.py", "copies": "1", "size": "1164", "license": "mit", "hash": 1803909137512986000, "line_mean": 27.1, "line_max": 67, "alpha_frac": 0.5042955326, "autogenerated": false, "ratio": 3.8415841584158414, "config_test": false, "has_no_keywords": fa...
__author__ = 'Pontus' from glob import iglob from logging import getLogger from os import path, walk from taca.utils.misc import hashfile logger = getLogger(__name__) class FileNotFoundException(Exception): pass class PatternNotMatchedException(Exception): pass def gather_files(patterns, no_checksum=Fal...
{ "repo_name": "vezzi/taca-ngi-pipeline", "path": "taca_ngi_pipeline/utils/filesystem.py", "copies": "3", "size": "4216", "license": "mit", "hash": -3674483151199426000, "line_mean": 40.3333333333, "line_max": 117, "alpha_frac": 0.5507590133, "autogenerated": false, "ratio": 4.823798627002288, "...
__author__ = 'Pontus' from glob import iglob from logging import getLogger from os import path, walk, sep as os_sep from taca.utils.misc import hashfile logger = getLogger(__name__) class FileNotFoundException(Exception): pass class PatternNotMatchedException(Exception): pass def gather_files(patterns, ...
{ "repo_name": "SciLifeLab/taca-ngi-pipeline", "path": "taca_ngi_pipeline/utils/filesystem.py", "copies": "1", "size": "5689", "license": "mit", "hash": -6910158630727534000, "line_mean": 41.4552238806, "line_max": 117, "alpha_frac": 0.5559852347, "autogenerated": false, "ratio": 4.434138737334372...
__author__ = 'popka' from PageClass.Page import Page from Utils import utils import urllib import urlparse from selenium.webdriver.support.ui import WebDriverWait import time class XssChecker(object): xss_urls = set([]) small_xss_list = ['<SCRIPT SRC=http://ha.ckers.org/xss.js></SCRIPT>'] other_big_xss...
{ "repo_name": "MyBeautyTeam/xss-checker", "path": "XssChecker.py", "copies": "1", "size": "7715", "license": "mit", "hash": -8679937720906853000, "line_mean": 50.0927152318, "line_max": 435, "alpha_frac": 0.6128321452, "autogenerated": false, "ratio": 2.9212419538053767, "config_test": false, ...
__author__ = 'popka' from selenium.common.exceptions import WebDriverException, TimeoutException from selenium.webdriver.support.ui import WebDriverWait def get_fill_all_input_script(text): script = 'var inputs = document.querySelectorAll(\"input\"); for (var i=0; i<inputs.length; i++) { inputs[i].value = \'' +...
{ "repo_name": "MyBeautyTeam/xss-checker", "path": "Utils/utils.py", "copies": "1", "size": "1909", "license": "mit", "hash": 4586321748811877400, "line_mean": 29.3015873016, "line_max": 145, "alpha_frac": 0.6202200105, "autogenerated": false, "ratio": 3.5286506469500925, "config_test": false, ...
__author__ = 'popov.sn' from fixture.new_member import MemberHelper class UpdateHelper (): def update_user(self): wd.find_element_by_css_selector("img[alt=\"Edit\"]").click() wd.find_element_by_name("firstname").click() wd.find_element_by_name("firstname").clear() wd.find_element_...
{ "repo_name": "popovsn777/new_training", "path": "fixture/fxt_update_member.py", "copies": "1", "size": "1354", "license": "apache-2.0", "hash": -8562250066350190000, "line_mean": 51.0769230769, "line_max": 107, "alpha_frac": 0.6137370753, "autogenerated": false, "ratio": 3.0983981693363845, "c...
__author__ = 'popov.sn' class ContactHelper: def __init__(self, app): self.app = app def add_new_contact(self, contact): wd = self.app.wd self.go_to_new_contact_page() self.fill_contact_form(contact) wd.find_element_by_xpath("//div[@id='content']/form/input[21]").click...
{ "repo_name": "popovsn777/python_training_2", "path": "fixture/contact.py", "copies": "1", "size": "2167", "license": "apache-2.0", "hash": 3122058806500460500, "line_mean": 31.8484848485, "line_max": 92, "alpha_frac": 0.592524227, "autogenerated": false, "ratio": 3.370139968895801, "config_tes...
__author__ = 'popov.sn' from model.group import Group import random import string import os.path import getopt import sys import time import clr clr.AddReference('Microsoft.Office.Interop.Excel, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c') from Microsoft.Office.Interop import Excel try: ...
{ "repo_name": "popovsn777/ironpython_training", "path": "generator/group.py", "copies": "1", "size": "1217", "license": "apache-2.0", "hash": -3468529425485316600, "line_mean": 20.3684210526, "line_max": 118, "alpha_frac": 0.6705012325, "autogenerated": false, "ratio": 2.975550122249389, "confi...
__author__ = 'popov.sn' from model.group import Group class GroupHelper: def __init__(self, app): self.app = app def return_to_groups_page(self): # return to group page wd = self.app.wd wd.find_element_by_link_text("group page").click() def create(self, group): ...
{ "repo_name": "popovsn777/python_training_2", "path": "fixture/group.py", "copies": "1", "size": "2708", "license": "apache-2.0", "hash": -5183107927333305000, "line_mean": 28.4347826087, "line_max": 101, "alpha_frac": 0.5875184638, "autogenerated": false, "ratio": 3.5077720207253886, "config_t...
__author__ = 'popov.sn' class SessionHelper: def __init__(self, app): self.app = app def login(self, username, password): # login wd = self.app.wd self.app.open_home_page() wd.find_element_by_name("user").click() wd.find_element_by_name("user").clear() ...
{ "repo_name": "popovsn777/python_training_2", "path": "fixture/session.py", "copies": "1", "size": "1374", "license": "apache-2.0", "hash": -6051896841239460000, "line_mean": 27.6458333333, "line_max": 87, "alpha_frac": 0.5545851528, "autogenerated": false, "ratio": 3.4094292803970223, "config_...
__author__ = 'popov.sn' import pytest import jsonpickle import json import os.path from fixture.application import Application from fixture.dp import DbFixture fixture = None target = None def load_config(file): global target if target is None: config_file = os.path.join(os.path.dirname(os.path.abs...
{ "repo_name": "popovsn777/new_training", "path": "conftest.py", "copies": "1", "size": "1433", "license": "apache-2.0", "hash": 4545497086037068300, "line_mean": 24.6071428571, "line_max": 84, "alpha_frac": 0.6748080949, "autogenerated": false, "ratio": 3.8213333333333335, "config_test": false,...
__author__ = 'porky-chu' import cPickle import theano import numpy as np from theano import tensor as TT class NodeVectorModel(object): def __init__(self, n_from, n_to, de, seed=1692, init_params=None): """ n_from :: number of from embeddings in the vocabulary n_to :: number of to embedd...
{ "repo_name": "allentran/graph2vec", "path": "graph2vec/node_vectors.py", "copies": "1", "size": "3014", "license": "apache-2.0", "hash": -4190918194807165400, "line_mean": 39.7432432432, "line_max": 142, "alpha_frac": 0.5865958859, "autogenerated": false, "ratio": 3.261904761904762, "config_te...
__author__ = 'porky-chu' import random import os import logging import numpy as np from node_vectors import NodeVectorModel import parser class Graph2Vec(object): def __init__(self, vector_dimensions, output_dir='data'): self.output_dir = output_dir self.model = None self.from_nodes =...
{ "repo_name": "allentran/graph2vec", "path": "graph2vec/trainer.py", "copies": "1", "size": "3027", "license": "apache-2.0", "hash": 5871041903118388000, "line_mean": 32.2637362637, "line_max": 110, "alpha_frac": 0.5576478361, "autogenerated": false, "ratio": 3.5569917743830786, "config_test": ...
__author__ = 'Poseidon' # Import the AW SDK Information from ctypes import * aw = CDLL("aw") AWEVENT = CFUNCTYPE(None) AWCALLBACK = CFUNCTYPE(None) # A generic console message function. Call this inside of other functions as necessary def py_console(session, message): target_session = session aw.aw_int_set(3...
{ "repo_name": "PoseidonAW/Py_RPG", "path": "genericMessaging.py", "copies": "1", "size": "1377", "license": "apache-2.0", "hash": -7017612562115884000, "line_mean": 34.3076923077, "line_max": 86, "alpha_frac": 0.6681190995, "autogenerated": false, "ratio": 2.7106299212598426, "config_test": fal...
__author__ = 'Poseidon' # Import the AW SDK Information from ctypes import * aw = CDLL("aw") AWEVENT = CFUNCTYPE(None) AWCALLBACK = CFUNCTYPE(None) import sqlite3 import genericMessaging db = sqlite3.connect('awrpg.db') cursor = db.cursor() from random import randint session_dict = {} def player_check(player_s...
{ "repo_name": "PoseidonAW/Py_RPG", "path": "playerdata.py", "copies": "1", "size": "4639", "license": "apache-2.0", "hash": -8881013809509482000, "line_mean": 31.9007092199, "line_max": 120, "alpha_frac": 0.5981892649, "autogenerated": false, "ratio": 3.9480851063829787, "config_test": false, ...
"""This module generates the class hierarchy for any given Python modules. This can be used (among other things) to generate the traitified VTK classes in the correct order. """ import __builtin__ class TreeNode: """Represents a node in the class tree. Stores information on the sub and super classes of a...
{ "repo_name": "liulion/mayavi", "path": "tvtk/class_tree.py", "copies": "2", "size": "8011", "license": "bsd-3-clause", "hash": -6767481128215299000, "line_mean": 28.8917910448, "line_max": 75, "alpha_frac": 0.5752090875, "autogenerated": false, "ratio": 4.4137741046831955, "config_test": false...
"""This module generates the class hierarchy for any given Python modules. This can be used (among other things) to generate the traitified VTK classes in the correct order. """ import sys if sys.version_info[0] > 2: import builtins else: import __builtin__ as builtins class TreeNode: """Represents a...
{ "repo_name": "dmsurti/mayavi", "path": "tvtk/class_tree.py", "copies": "2", "size": "8192", "license": "bsd-3-clause", "hash": -7330766994865953000, "line_mean": 28.7890909091, "line_max": 75, "alpha_frac": 0.5756835938, "autogenerated": false, "ratio": 4.432900432900433, "config_test": false,...
import numpy as np import scipy from traits.api import HasTraits, Range, Instance, \ on_trait_change, Array, Tuple, Str from traitsui.api import View, Item, HSplit, Group from mayavi import mlab from mayavi.core.ui.api import MayaviScene, MlabSceneModel, \ SceneEditor ###################################...
{ "repo_name": "HPCGISLab/STDataViz", "path": "WorkingVersion/LibTry/MayaviGUI/Lorenz ui example.py", "copies": "1", "size": "4745", "license": "bsd-3-clause", "hash": -8552583538135326000, "line_mean": 35.2290076336, "line_max": 82, "alpha_frac": 0.5001053741, "autogenerated": false, "ratio": 3.7...
from traits.etsconfig.api import ETSConfig from pyface.api import GUI, ApplicationWindow from traits.api import HasTraits, Button, Any from traitsui.api import View, Group, Item from pyface.util import guisupport # Globals. # The GUI instance. _gui = None # The stop show instance. _stop_show = None def is_ui_runnin...
{ "repo_name": "dmsurti/mayavi", "path": "mayavi/tools/show.py", "copies": "3", "size": "4517", "license": "bsd-3-clause", "hash": 7148057888732891000, "line_mean": 28.522875817, "line_max": 79, "alpha_frac": 0.5193712641, "autogenerated": false, "ratio": 4.285578747628083, "config_test": true, ...
# Enthought library imports. from traits.api import Instance, List, Str, Bool from traitsui.api import View, Group, Item from tvtk.api import tvtk from tvtk.common import is_old_pipeline # Local imports. from mayavi.core.pipeline_info import PipelineInfo from mayavi.core.filter import Filter from mayavi.core.trait_de...
{ "repo_name": "liulion/mayavi", "path": "mayavi/filters/set_active_attribute.py", "copies": "3", "size": "8920", "license": "bsd-3-clause", "hash": -2080060266483651800, "line_mean": 38.4690265487, "line_max": 80, "alpha_frac": 0.5290358744, "autogenerated": false, "ratio": 4.305019305019305, "...
# Enthought library imports. from traits.api import Instance from tvtk.api import tvtk # Local imports from mayavi.filters.filter_base import FilterBase from mayavi.core.pipeline_info import PipelineInfo ###################################################################### # `CellDerivatives` class. ##############...
{ "repo_name": "alexandreleroux/mayavi", "path": "mayavi/filters/cell_derivatives.py", "copies": "5", "size": "1598", "license": "bsd-3-clause", "hash": 501581959914890430, "line_mean": 33, "line_max": 71, "alpha_frac": 0.5738423029, "autogenerated": false, "ratio": 4.618497109826589, "config_te...
# Enthought library imports. from tvtk.tools.tvtk_doc import TVTKFilterChooser, TVTK_FILTERS # Local imports. from mayavi.filters.filter_base import FilterBase from mayavi.core.common import handle_children_state, error from mayavi.core.pipeline_info import PipelineInfo #############################################...
{ "repo_name": "alexandreleroux/mayavi", "path": "mayavi/filters/user_defined.py", "copies": "5", "size": "3082", "license": "bsd-3-clause", "hash": 3619076701884128000, "line_mean": 36.1325301205, "line_max": 80, "alpha_frac": 0.4746917586, "autogenerated": false, "ratio": 4.853543307086614, "c...
# Standard library imports. from os.path import abspath from io import BytesIO import copy # Local imports. from common import TestCase, get_example_data class TestSetActiveAttribute(TestCase): def check(self): """Check if the visualization is OK. Note that this is not an image based check, whi...
{ "repo_name": "dmsurti/mayavi", "path": "integrationtests/mayavi/test_set_active_attribute.py", "copies": "1", "size": "3609", "license": "bsd-3-clause", "hash": 6756919893386439000, "line_mean": 30.1120689655, "line_max": 74, "alpha_frac": 0.5710723192, "autogenerated": false, "ratio": 3.7790575...
# Standard library imports. import numpy # Enthought library imports. from traits.api import Instance, Bool, Array, Button, Str from traitsui.api import View, Group, Item from tvtk.api import tvtk import tvtk.common as tvtk_common # Local imports. from mayavi.core.filter import Filter from mayavi.core.pipeline_info ...
{ "repo_name": "liulion/mayavi", "path": "mayavi/filters/image_data_probe.py", "copies": "3", "size": "8924", "license": "bsd-3-clause", "hash": 5690084246042218000, "line_mean": 33.859375, "line_max": 80, "alpha_frac": 0.4928283281, "autogenerated": false, "ratio": 4.179859484777517, "config_te...
# Standard library imports. # Enthought library imports. from traits.api import Instance from traitsui.api import View, Group, Item # Local imports. from mayavi.core.pipeline_info import PipelineInfo from mayavi.filters.optional import Optional from mayavi.filters.collection import Collection from mayavi.filters.cel...
{ "repo_name": "dmsurti/mayavi", "path": "mayavi/filters/vorticity.py", "copies": "5", "size": "3383", "license": "bsd-3-clause", "hash": -3369293235040232000, "line_mean": 38.8, "line_max": 80, "alpha_frac": 0.4906887378, "autogenerated": false, "ratio": 5.041728763040238, "config_test": false,...
# Standard library imports. # Enthought library imports. from traits.api import Int, Instance, Str, TraitError from traitsui.api import View, Group, Item from tvtk.api import tvtk from apptools.persistence import state_pickler # Local imports. from mayavi.core.common import error from mayavi.core.pipeline_base impor...
{ "repo_name": "dmsurti/mayavi", "path": "mayavi/modules/labels.py", "copies": "3", "size": "7916", "license": "bsd-3-clause", "hash": 625594688267160200, "line_mean": 33.4173913043, "line_max": 80, "alpha_frac": 0.5010106114, "autogenerated": false, "ratio": 4.552041403105233, "config_test": fa...
# Enthought library imports. from traits.api import HasTraits, List, Str, Instance from apptools.preferences.api import PreferencesHelper ############################################################################### # `PreferencesMirror` class. ######################################################################...
{ "repo_name": "dmsurti/mayavi", "path": "mayavi/tools/preferences_mirror.py", "copies": "3", "size": "2098", "license": "bsd-3-clause", "hash": -597563667909873700, "line_mean": 37.1454545455, "line_max": 79, "alpha_frac": 0.4890371783, "autogenerated": false, "ratio": 5.043269230769231, "confi...
# Enthought library imports. from traits.api import Instance # Local imports. from mayavi.components.contour import Contour as ContourComponent from mayavi.core.pipeline_info import PipelineInfo from mayavi.filters.wrapper import Wrapper ###############################################################################...
{ "repo_name": "alexandreleroux/mayavi", "path": "mayavi/filters/contour.py", "copies": "5", "size": "1197", "license": "bsd-3-clause", "hash": -7271487985747709000, "line_mean": 35.2727272727, "line_max": 80, "alpha_frac": 0.5472013367, "autogenerated": false, "ratio": 4.807228915662651, "confi...
# Local imports. from mayavi.components.cutter import Cutter from mayavi.components.implicit_plane import ImplicitPlane from mayavi.filters.collection import Collection from mayavi.core.pipeline_info import PipelineInfo ################################################################################ # `CutPlane` clas...
{ "repo_name": "dmsurti/mayavi", "path": "mayavi/filters/cut_plane.py", "copies": "5", "size": "1500", "license": "bsd-3-clause", "hash": -1403735179625022700, "line_mean": 38.4736842105, "line_max": 80, "alpha_frac": 0.4926666667, "autogenerated": false, "ratio": 5.033557046979865, "config_test...
# Enthought library imports. from traits.api import Instance from tvtk.api import tvtk # Local imports from mayavi.filters.cell_to_point_data import CellToPointData from mayavi.core.pipeline_info import PipelineInfo ###################################################################### # `PointToCellData` class. ##...
{ "repo_name": "alexandreleroux/mayavi", "path": "mayavi/filters/point_to_cell_data.py", "copies": "5", "size": "1170", "license": "bsd-3-clause", "hash": 1046971498716537900, "line_mean": 34.4545454545, "line_max": 70, "alpha_frac": 0.5299145299, "autogenerated": false, "ratio": 4.68, "config_t...
# Enthought library imports. from traits.api import Instance from tvtk.api import tvtk # Local imports from mayavi.filters.filter_base import FilterBase from mayavi.core.pipeline_info import PipelineInfo ###################################################################### # `CellToPointData` class. ###############...
{ "repo_name": "dmsurti/mayavi", "path": "mayavi/filters/cell_to_point_data.py", "copies": "3", "size": "2300", "license": "bsd-3-clause", "hash": -3114458861626586600, "line_mean": 36.0967741935, "line_max": 70, "alpha_frac": 0.5495652174, "autogenerated": false, "ratio": 4.572564612326044, "co...
# Enthought library imports. from traits.api import Instance from tvtk.api import tvtk # Local imports from mayavi.filters.poly_data_filter_base import \ PolyDataFilterBase from mayavi.core.pipeline_info import PipelineInfo ###################################################################### # `PolyDataNo...
{ "repo_name": "dmsurti/mayavi", "path": "mayavi/filters/poly_data_normals.py", "copies": "5", "size": "1250", "license": "bsd-3-clause", "hash": -3498913077131830000, "line_mean": 32.7837837838, "line_max": 83, "alpha_frac": 0.568, "autogenerated": false, "ratio": 4.512635379061372, "config_tes...
# Enthought library imports. from traits.api import Instance from tvtk.api import tvtk # Local imports from mayavi.filters.poly_data_normals import PolyDataNormals from mayavi.core.pipeline_info import PipelineInfo ###################################################################### # `WarpScalar` class. ########...
{ "repo_name": "dmsurti/mayavi", "path": "mayavi/filters/warp_scalar.py", "copies": "5", "size": "1273", "license": "bsd-3-clause", "hash": 7797414586241699000, "line_mean": 33.4054054054, "line_max": 78, "alpha_frac": 0.5742340927, "autogenerated": false, "ratio": 4.579136690647482, "config_tes...
# Enthought library imports. from traits.api import Instance from tvtk.api import tvtk # Local imports from mayavi.filters.filter_base import FilterBase from mayavi.core.pipeline_info import PipelineInfo ###################################################################### # `ExtractTensorComponents` class. ######...
{ "repo_name": "dmsurti/mayavi", "path": "mayavi/filters/extract_tensor_components.py", "copies": "5", "size": "1392", "license": "bsd-3-clause", "hash": -4821739474805988000, "line_mean": 35.6315789474, "line_max": 79, "alpha_frac": 0.5416666667, "autogenerated": false, "ratio": 4.88421052631579,...
# Modified for VisTrails by the VisTrails team. """This module parses the VTK methods, obtains the argument and return type information, and organizes them. """ pkgs = [ "titan.Antiword", "titan.Common", "titan.DataAnalysis", "titan.GMeans", "titan.HDF5", "titan.MPIDataAnalysis", "titan.MPITextAnalysis", "ti...
{ "repo_name": "VisTrails/vistrails-contrib-legacy", "path": "titan/vtk_parser.py", "copies": "6", "size": "19721", "license": "bsd-3-clause", "hash": 3927080960848543, "line_mean": 35.3863636364, "line_max": 122, "alpha_frac": 0.5159474672, "autogenerated": false, "ratio": 4.404958677685951, "c...
# Modified for VisTrails by the VisTrails team. """This module parses the VTK methods, obtains the argument and return type information, and organizes them. """ import re import vtksnl import class_tree import core.debug log = core.debug.log warning = core.debug.warning critical = core.debug.c...
{ "repo_name": "VisTrails/vistrails-contrib-legacy", "path": "vtksnl/vtk_parser.py", "copies": "6", "size": "19321", "license": "bsd-3-clause", "hash": 1971360243677033200, "line_mean": 35.5894941634, "line_max": 122, "alpha_frac": 0.5136380105, "autogenerated": false, "ratio": 4.465218396117402, ...
"""This module generates the class hierarchy for any given Python modules. This can be used (among other things) to generate the traitified VTK classes in the correct order. """ import __builtin__ class TreeNode(object): """Represents a node in the class tree. Stores information on the sub a...
{ "repo_name": "minesense/VisTrails", "path": "contrib/titan/class_tree.py", "copies": "6", "size": "8330", "license": "bsd-3-clause", "hash": -3264635301964518400, "line_mean": 29.0895522388, "line_max": 75, "alpha_frac": 0.5541416567, "autogenerated": false, "ratio": 4.544462629569012, "config...
import pickle from pprint import pprint from time import time import sys from collections import defaultdict class Business: def __init__(self, business_id, stars, name, categories): self.id = business_id self.stars = stars self.name = name self.categories = categories self.cleanReviews = [] #List of list o...
{ "repo_name": "njetty/Yelp-Review-Analysis", "path": "Task1/selectBusinessinTopCategories.py", "copies": "1", "size": "1186", "license": "mit", "hash": 6854205289707163000, "line_mean": 28.65, "line_max": 69, "alpha_frac": 0.7563237774, "autogenerated": false, "ratio": 3.3982808022922635, "conf...
__author__ = 'pradhanta' from sfdc_client import MavensMateClient from mm import util import os def query(): wsdlFile = '../wsdl/tooling.xml' util.set_endpoints() mmClient = MavensMateClient( credentials = { 'username' : 'development.metadata@mailinator.com', 'password' : 'nepal123' + 'jK9JX55e0W...
{ "repo_name": "pradhanta/drunken-robot", "path": "tools/profilegen/metadataapi.py", "copies": "1", "size": "1443", "license": "apache-2.0", "hash": 8558068750429250000, "line_mean": 29.7021276596, "line_max": 173, "alpha_frac": 0.6555786556, "autogenerated": false, "ratio": 3.199556541019956, "...
__author__ = 'pradyumnad' from socket import * import re import os import urllib PORT = 12345 proxy = "https://www.google.com/" proxy_enabled = 1 def getrequestdata(data): string = bytes.decode(data) requestdata = {} list = string.split(' ') request_method = list[0] requestdata["Method"] = requ...
{ "repo_name": "pradyumnad/Webserver", "path": "myserver/server.py", "copies": "1", "size": "2185", "license": "apache-2.0", "hash": -7685460987497373000, "line_mean": 25.987654321, "line_max": 76, "alpha_frac": 0.5107551487, "autogenerated": false, "ratio": 4.009174311926605, "config_test": fal...
__author__ = 'pradyumnad' from socket import * import sys from thread import * import os HOST = '' # Symbolic name meaning all available interfaces PORT = 5556 # Arbitrary non-privileged port s = socket(AF_INET, SOCK_STREAM) print 'Socket created' # Bind socket to local host and port try: s.bind((HOST, PORT))...
{ "repo_name": "pradyumnad/Webserver", "path": "myserver/mserver.py", "copies": "1", "size": "1280", "license": "apache-2.0", "hash": 3835695957022633500, "line_mean": 21.4736842105, "line_max": 75, "alpha_frac": 0.5953125, "autogenerated": false, "ratio": 3.5261707988980717, "config_test": fals...
__author__ = "Prahlad Yeri" __version__ = 1.0 import zipfile import os, uuid, re import string import sys,subprocess,os #,SimpleHTTPServer,SocketServer class Foo: pass ## # @author: Prahlad Yeri # @brief: Common functions to interface with linux cli class Command(object): arguments = Foo() arguments...
{ "repo_name": "prahladyeri/CBIDS", "path": "bundle.py", "copies": "1", "size": "5663", "license": "mit", "hash": -8550812984411730000, "line_mean": 26.7563451777, "line_max": 190, "alpha_frac": 0.6482429808, "autogenerated": false, "ratio": 3.133923630326508, "config_test": false, "has_no_key...
_author__ = "Pramit Choudhary" import os from itertools import izip from scipy.sparse import coo_matrix from sklearn.feature_extraction.text import TfidfVectorizer from collections import defaultdict abs_path = os.path.dirname(os.path.abspath(__file__)) path = os.path.join(abs_path, 'data') def sort_coo(m): tuple...
{ "repo_name": "pramitchoudhary/Experiments", "path": "python/documentSimilarity.py", "copies": "1", "size": "1587", "license": "unlicense", "hash": -616299202108409900, "line_mean": 32.7659574468, "line_max": 82, "alpha_frac": 0.6483931947, "autogenerated": false, "ratio": 3.348101265822785, "c...
#!/usr/bin/python # -*- coding : utf-8 -*- import random def appliance_switching(): NUMBER_OF_RANDOMS = 5 # Number of random numbers for each appliance list_of_appliances = ['ac', 'tv', 'light' , 'fan'] # Finite List of appliances dict_of_appliances = {} # The dictionary...
{ "repo_name": "jainpranav/nilmtk_test", "path": "appliance_switch.py", "copies": "1", "size": "1891", "license": "apache-2.0", "hash": 737728529570416000, "line_mean": 24.2133333333, "line_max": 109, "alpha_frac": 0.5943945003, "autogenerated": false, "ratio": 3.7445544554455448, "config_test":...
__author__ = 'Pratish' import codecs import re from collections import Counter from nltk.tokenize import word_tokenize import sys from nltk.corpus import stopwords import matplotlib.pyplot as plt from os import path from wordcloud import WordCloud reload(sys) sys.setdefaultencoding('utf-8') inFile = codecs.open("C...
{ "repo_name": "akshaykamath/ReviewPredictionYelp", "path": "PosNegWords.py", "copies": "1", "size": "5494", "license": "mit", "hash": -5830882683794276000, "line_mean": 28.3796791444, "line_max": 150, "alpha_frac": 0.6436112122, "autogenerated": false, "ratio": 3.2016317016317015, "config_test"...
__author__ = 'Pratish' # Predict a sentence score out of 5 based on sentiments in a sentence # This requires a file of sentences as input import codecs import re from collections import Counter from nltk.tokenize import word_tokenize import sys from nltk.corpus import stopwords import matplotlib.pyplot as plt from os...
{ "repo_name": "akshaykamath/ReviewPredictionYelp", "path": "SentenceScore.py", "copies": "1", "size": "3107", "license": "mit", "hash": -8394534107280010000, "line_mean": 25.3305084746, "line_max": 143, "alpha_frac": 0.6404892179, "autogenerated": false, "ratio": 3.3265524625267666, "config_tes...
__author__ = 'Preetam' from . import api from functools import wraps from flask import request, Response @api.after_request def after_request(response): response.headers.add('Access-Control-Allow-Origin', '*') response.headers.add('Access-Control-Allow-Headers', 'Content-Type,Authorization') response.hea...
{ "repo_name": "usc-isi-i2/dig-crowd-sourcing", "path": "adnota/adnota/api/v1_0/decorators.py", "copies": "1", "size": "1137", "license": "apache-2.0", "hash": 2908838853491809300, "line_mean": 30.6111111111, "line_max": 86, "alpha_frac": 0.6877748461, "autogenerated": false, "ratio": 4.0319148936...
__author__ = 'Preetam' ''' import boto.mturk.connection import boto.mturk.question sandbox_host = 'mechanicalturk.sandbox.amazonaws.com' real_host = 'mechanicalturk.amazonaws.com' mturk = boto.mturk.connection.MTurkConnection( aws_access_key_id = 'XXX', aws_secret_access_key = 'XXX', host = sandbox_host, ...
{ "repo_name": "usc-isi-i2/dig-crowd-sourcing", "path": "adnota/test.py", "copies": "1", "size": "1678", "license": "apache-2.0", "hash": -4361690435547581400, "line_mean": 27.9482758621, "line_max": 89, "alpha_frac": 0.6793802145, "autogenerated": false, "ratio": 3.1074074074074076, "config_tes...
__author__ = 'prempal' import serial import csv import matplotlib.pyplot as plt import matplotlib.animation as animation import math SERIAL_PORT = '/dev/ttyUSB0' BAUD_RATE = 9600 FILE_NAME = "CANSAT2015_TLM_<TEAM_ID>.csv" HEADER_ROW = ['TEAM_ID','MISSION_TIME','ALT_SENSOR','OUTSIDE_TEMP','INSIDE_TEMP', 'VOLTAGE','FSW...
{ "repo_name": "prempalsingh/cansat-xbee", "path": "cansat.py", "copies": "1", "size": "2004", "license": "mit", "hash": -8103414173301771000, "line_mean": 26.0945945946, "line_max": 82, "alpha_frac": 0.5883233533, "autogenerated": false, "ratio": 2.779472954230236, "config_test": false, "has_...
__author__ = 'pricem' import re import sys TIMESTAMP_REGEX=".* ([0-9]{1,12}\.[0-9]{6}):.*" CAUSE_REGEX=".*action=([^\]]+)" def parse_timestamp(input): return int(float(input) * 1000000) * 1000 def parse_runtime(input): return int(input) if len(sys.argv) == 1: print "usage: " + sys.argv[0] + " <input_f...
{ "repo_name": "epickrram/perf-workshop", "path": "src/main/python/perf_softirq_duration.py", "copies": "1", "size": "1646", "license": "apache-2.0", "hash": 8853970621276476000, "line_mean": 30.0754716981, "line_max": 100, "alpha_frac": 0.6123936817, "autogenerated": false, "ratio": 3.00364963503...
__author__ = 'pricem' import re import sys TIMESTAMP_REGEX=".* ([0-9]{1,12}\.[0-9]{6}):.*" RUNTIME_REGEX=".* runtime=([0-9]+) " def parse_timestamp(input): return int(float(input) * 1000000) * 1000 def parse_runtime(input): return int(input) if len(sys.argv) == 1: print "usage: " + sys.argv[0] + " <pid...
{ "repo_name": "epickrram/perf-workshop", "path": "src/main/python/perf_sched_stat_runtime.py", "copies": "1", "size": "1031", "license": "apache-2.0", "hash": 646861587216053100, "line_mean": 30.2727272727, "line_max": 83, "alpha_frac": 0.629485936, "autogenerated": false, "ratio": 3.114803625377...
__author__ = "Prikly Grayp" __license__ = "MIT" __version__ = "1.0.0" __email__ = "priklygrayp@gmail.com" __status__ = "Development" '''A module for dealing with BMP bitmap image files.''' def write_grayscale(filename, pixels): '''Creates and writes a grayscale BMP file. Args: filename: The name of t...
{ "repo_name": "PriklyGrayp/Noitacude.PY", "path": "Python - Fundamentals/bmp.py", "copies": "1", "size": "3824", "license": "mit", "hash": 987167054142665100, "line_mean": 33.4594594595, "line_max": 144, "alpha_frac": 0.5896966527, "autogenerated": false, "ratio": 3.276778063410454, "config_tes...
__author__ = "Prikly Grayp" __license__ = "MIT" __version__ = "1.0.0" __email__ = "priklygrayp@gmail.com" __status__ = "Development" '''Classes''' students = [] class Student: # Parent Class school_name = 'Springfield Elementary' # Static var or Class attribute def __init__(self, name, student_id=332): ...
{ "repo_name": "PriklyGrayp/Noitacude.PY", "path": "Python - Getting Started/Object_Oriented_Programing.py", "copies": "1", "size": "1043", "license": "mit", "hash": 8793791228578674000, "line_mean": 22.7272727273, "line_max": 74, "alpha_frac": 0.6433365292, "autogenerated": false, "ratio": 3.4196...
__author__ = "Prikly Grayp" __license__ = "MIT" __version__ = "1.0.0" __email__ = "priklygrayp@gmail.com" __status__ = "Development" '''Computing Mandelbrot sets.''' import math def mandel(real, imag): '''Compute a point in the Mandelbrot. The logarithm of number of iterations needed to determine whether a c...
{ "repo_name": "PriklyGrayp/Noitacude.PY", "path": "Python - Fundamentals/fractal.py", "copies": "1", "size": "1248", "license": "mit", "hash": 2879402783816325000, "line_mean": 23.0192307692, "line_max": 111, "alpha_frac": 0.5600961538, "autogenerated": false, "ratio": 3.0439024390243903, "conf...
__author__ = "Prikly Grayp" __license__ = "MIT" __version__ = "1.0.0" __email__ = "priklygrayp@gmail.com" __status__ = "Development" import os import unittest def analyze_text(filename): """Calculate the nuimber of lines and characters in a file. Args: IOError: If ``filename`` does not exist or can't...
{ "repo_name": "PriklyGrayp/Noitacude.PY", "path": "Python - Fundamentals/text_analyzer.py", "copies": "1", "size": "2179", "license": "mit", "hash": 8395653028161044000, "line_mean": 30.5942028986, "line_max": 131, "alpha_frac": 0.6011932079, "autogenerated": false, "ratio": 3.9690346083788706, ...
__author__ = "Prikly Grayp" __license__ = "MIT" __version__ = "1.0.0" __email__ = "priklygrayp@gmail.com" __status__ = "Development" import springfield_schools SS = springfield_schools.Student() class main(): ''' main.main() ''' def __init__(self): '''Asking the user like to enter a student na...
{ "repo_name": "PriklyGrayp/Noitacude.PY", "path": "Python - Getting Started/PyStudentManager/main.py", "copies": "1", "size": "3882", "license": "mit", "hash": 538748849489842500, "line_mean": 34.3, "line_max": 110, "alpha_frac": 0.4976816074, "autogenerated": false, "ratio": 4.503480278422273, ...
__author__ = "Prikly Grayp" __license__ = "MIT" __version__ = "1.0.0" __email__ = "priklygrayp@gmail.com" __status__ = "Development" ''' Numbers ''' ''' Integers ''' num = 45 ''' Floats ''' pie = 3.14159 ''' Converting ''' float(num) == 45.0 int(pie) == 3 ''' Strings ''' name = 'hi' or "hi" or'''hi'''...
{ "repo_name": "PriklyGrayp/Noitacude.PY", "path": "Python - Getting Started/Types_Statements_and_other_goodies.py", "copies": "1", "size": "3871", "license": "mit", "hash": 8049296822461601000, "line_mean": 18.7551020408, "line_max": 102, "alpha_frac": 0.6321363989, "autogenerated": false, "ratio...
__author__ = "Prikly Grayp" __license__ = "MIT" __version__ = "1.0.0" __email__ = "priklygrayp@gmail.com" __status__ = "Development" students = [] class Student(): def get_students_titlecase(self): students_titlecase = [] for student in students: students_titlecase.append(student['name'].title()) return s...
{ "repo_name": "PriklyGrayp/Noitacude.PY", "path": "Python - Getting Started/PyStudentManager/springfield_schools.py", "copies": "1", "size": "1126", "license": "mit", "hash": -4994057437354170000, "line_mean": 21.0980392157, "line_max": 53, "alpha_frac": 0.6305506217, "autogenerated": false, "rat...
__author__ = "Prikly Grayp" __license__ = "MIT" __version__ = "1.0.0" __email__ = "priklygrayp@gmail.com" __status__ = "Development" #!/usr/bin/env python3 '''Retrieve and print words from a URL. Usage: python3 words.py <URL> ''' import sys from urllib.request import urlopen def fetch_words(url): '''Fetch...
{ "repo_name": "PriklyGrayp/Noitacude.PY", "path": "Python - Fundamentals/words.py", "copies": "1", "size": "1160", "license": "mit", "hash": -8986309772462887000, "line_mean": 19.0172413793, "line_max": 59, "alpha_frac": 0.5853448276, "autogenerated": false, "ratio": 3.4730538922155687, "config...
__author__ = 'PrimankaDEN"' from ConfigParser import * from SpaceObjects.SpaceObjectsController import * from SpaceObjects.SpaceObject import * class Config: system = "SYSTEM" type = "TYPE" x = "X" y = "Y" vx = "VX" vy = "VY" mass = "MASS" color = "COLOR" size = "SIZE" is_posi...
{ "repo_name": "PrimankaDEN/N-bodyProblemSimulator", "path": "Configs/Config.py", "copies": "1", "size": "1629", "license": "mit", "hash": 1380700077194147600, "line_mean": 33.6595744681, "line_max": 90, "alpha_frac": 0.6022099448, "autogenerated": false, "ratio": 3.906474820143885, "config_test...
__author__ = 'PrimankaDEN' from pygame import * from Utils.Properties import * from Utils.Vector2 import Vector2 class SpaceObject: _name = "Name" _type = "Planet" _mass = 0 _speed = Vector2(0.0, 0.0) _coord = Vector2(0.0, 0.0) _accel = Vector2(0.0, 0.0) _color = "#FFFFFF" _size = 10...
{ "repo_name": "PrimankaDEN/N-bodyProblemSimulator", "path": "SpaceObjects/SpaceObject.py", "copies": "1", "size": "3124", "license": "mit", "hash": 7052539179342137000, "line_mean": 28.2056074766, "line_max": 109, "alpha_frac": 0.5797055058, "autogenerated": false, "ratio": 3.502242152466368, "...
__author__ = 'PrimankaDEN' from Utils.Vector2 import * from Utils.Properties import * RUNGE_KUTTA_4="Methods.RUNGE_KUTTA_4" RUNGE_KUTTA_7="Methods.RUNGE_KUTTA_7" EULER_METHOD ="Methods.EULER_METHOD" class Methods: _coords=Vector2(0,0) _speed=Vector2(0,0) _accel=Vector2(0,0) def __init__(self, meth...
{ "repo_name": "PrimankaDEN/N-bodyProblemSimulator", "path": "Utils/Methods.py", "copies": "1", "size": "1030", "license": "mit", "hash": 7753364148276213000, "line_mean": 21.3913043478, "line_max": 53, "alpha_frac": 0.6019417476, "autogenerated": false, "ratio": 3.0294117647058822, "config_test...
__author__ = 'PrimankaDEN' import pygame from pygame import * from Configs.Config import * from math import * from SpaceObjects.SpaceObject import * from SpaceObjects.SpaceObjectsController import * # rMax = 0.0 #rMin = 1000000.0 #rPrev = 0.0 #rPrevPrev = 0.0 #i = 0 #done = False #while not done: # timer.tick(5...
{ "repo_name": "PrimankaDEN/N-bodyProblemSimulator", "path": "game.py", "copies": "1", "size": "3308", "license": "mit", "hash": -7545398837105156000, "line_mean": 25.2619047619, "line_max": 124, "alpha_frac": 0.5731559855, "autogenerated": false, "ratio": 3.482105263157895, "config_test": false...
__author__ = 'privat' from PyQt4.QtCore import Qt, QEvent, pyqtSlot from PyQt4.QtGui import QAction, QColor, QFont, QKeySequence, QWidget from PyQt4.Qsci import QsciScintilla, QsciLexerPython, QsciAPIs import roslab_ide.helper.globals as g from roslab_ide.helper.Workspace import Controller class PyEditor(QsciScinti...
{ "repo_name": "sem23/roslab_ide", "path": "src/roslab_ide/backends/PyEditor.py", "copies": "1", "size": "2476", "license": "mit", "hash": 7128175680415218000, "line_mean": 30.3544303797, "line_max": 114, "alpha_frac": 0.6518578352, "autogenerated": false, "ratio": 3.8209876543209877, "config_te...
__author__ = 'privat' from roslab_ide.generators.Generator import Generator class CMakeListsTxtGenerator(Generator): def __init__(self, project, include_dirs=None, libraries=None, catkin_depends=None, depends=None, python_scripts=None, python_setup=False): Generator.__init__(self) ...
{ "repo_name": "sem23/roslab_ide", "path": "src/roslab_ide/generators/CMakeListsTxtGenerator.py", "copies": "1", "size": "3566", "license": "mit", "hash": 6608296618954196000, "line_mean": 33.9607843137, "line_max": 102, "alpha_frac": 0.5675827257, "autogenerated": false, "ratio": 4.20518867924528...
__author__ = 'privat' from roslab_ide.generators.Generator import Generator class CppClass(object): def __init__(self): prv_methods = [] prv_vars = [] pub_methods = [] pub_vars = [] ctor = [] dtor = [] class ROSLabLibrary(object): def __init__(self, name): ...
{ "repo_name": "sem23/roslab_ide", "path": "src/roslab_ide/backends/CppBackend.py", "copies": "1", "size": "4061", "license": "mit", "hash": -777315053575771100, "line_mean": 28.6423357664, "line_max": 112, "alpha_frac": 0.4747599114, "autogenerated": false, "ratio": 4.097880928355197, "config_t...
__author__ = 'privat' import os import re import stat import yaml import time import pygraphviz import platform import rospkg rp = rospkg.RosPack() # pyqt imports from PyQt4.QtCore import pyqtSlot, QSettings from PyQt4.QtGui import QAction, QMenu, QTreeWidgetItem, QIcon, QLineEdit from PyQt4.QtGui import QDialog, QI...
{ "repo_name": "sem23/roslab_ide", "path": "src/roslab_ide/helper/Workspace.py", "copies": "1", "size": "96359", "license": "mit", "hash": -5237072693672406000, "line_mean": 39.3348681457, "line_max": 124, "alpha_frac": 0.5896698803, "autogenerated": false, "ratio": 3.946713086217489, "config_te...
# __author__ = 'privat' # # import os # import stat # # from python_qt_binding.QtGui import QInputDialog # # from roslab_ide.helper.Workspace import Workspace # from roslab_ide.helper.TreeHelper import TreeHelper, TreeItem # from roslab_ide.helper.globals import author, email, place, main_widget, ROS_PKGS # from roslab...
{ "repo_name": "sem23/roslab_ide", "path": "src/roslab_ide/helper/ROSLabPackage.py", "copies": "1", "size": "4932", "license": "mit", "hash": -6448569588827740000, "line_mean": 41.525862069, "line_max": 118, "alpha_frac": 0.603406326, "autogenerated": false, "ratio": 3.425, "config_test": false,...
__author__ = 'privat' import os import yaml import stat import rosmsg import rospkg rp = rospkg.RosPack() from catkin.find_in_workspaces import find_in_workspaces # pyqt imports from PyQt4.QtGui import QProgressDialog, QTreeWidgetItem, QMessageBox, QColor from PyQt4.QtCore import Qt, QSettings # settings name = 'Cha...
{ "repo_name": "sem23/roslab_ide", "path": "src/roslab_ide/helper/globals.py", "copies": "1", "size": "8544", "license": "mit", "hash": 6230847803244697000, "line_mean": 31.2452830189, "line_max": 120, "alpha_frac": 0.6828183521, "autogenerated": false, "ratio": 3.347962382445141, "config_test":...
# __author__ = 'privat' # # import roslab_ide.helper.globals as g # # from python_qt_binding.QtGui import QDialog, QInputDialog # # from roslab_ide.helper.Workspace import Workspace # from roslab_ide.helper.TreeHelper import TreeHelper, TreeItem # # from roslab_ide.dialogs.ArgumentDialog import ArgumentDialog # from ro...
{ "repo_name": "sem23/roslab_ide", "path": "src/roslab_ide/helper/Library.py", "copies": "1", "size": "6749", "license": "mit", "hash": -1549582518210827800, "line_mean": 30.6901408451, "line_max": 109, "alpha_frac": 0.5963846496, "autogenerated": false, "ratio": 3.5372117400419287, "config_test...
__author__ = 'privat' import rosnode import rosgraph from PyQt4.QtCore import Qt from roslab_ide.widgets.ExternalProcessWidget import ExternalProcessWidget import roslab_ide.helper.globals as g class ROSCommand(): def __init__(self): pass @staticmethod def roscore(): # check if rosco...
{ "repo_name": "sem23/roslab_ide", "path": "src/roslab_ide/helper/ROSCommand.py", "copies": "1", "size": "3772", "license": "mit", "hash": -115234680734657820, "line_mean": 27.7938931298, "line_max": 103, "alpha_frac": 0.5901378579, "autogenerated": false, "ratio": 4.131434830230011, "config_tes...
__author__ = 'privat' import xml.etree.ElementTree as ET import xml.dom.minidom as dom class PackageXmlGenerator(object): def __init__(self, name, version='0.0.0', description="TODO", maintainer=('TODO', 'todo@todo.com'), license='TODO', build_depends=None, run_depends=None): self._roo...
{ "repo_name": "sem23/roslab_ide", "path": "src/roslab_ide/generators/PackageXmlGenerator.py", "copies": "1", "size": "1919", "license": "mit", "hash": 9008555566808383000, "line_mean": 38.9791666667, "line_max": 119, "alpha_frac": 0.6268890047, "autogenerated": false, "ratio": 4.074309978768578, ...
__author__ = 'privat' import xml.etree.ElementTree as ET import xml.dom.minidom as dom class RosLaunchFileGenerator(object): def __init__(self, data): # vars self._data = data def generate(self): root_element = ET.Element('launch') if 'args' in self._data: ...
{ "repo_name": "sem23/roslab_ide", "path": "src/roslab_ide/generators/RosLaunchFileGenerator.py", "copies": "1", "size": "3442", "license": "mit", "hash": -9183603986422948000, "line_mean": 40.4819277108, "line_max": 103, "alpha_frac": 0.498837885, "autogenerated": false, "ratio": 4.48761408083442...
__author__ = 'privat' class FiniteStateMachine: def __init__(self): self.handlers = {} self.start_state = None self.end_states = [] def add_state(self, name, handler=None): """ Add new state to machine. If handler is None state will be set to an end_state ...
{ "repo_name": "sem23/roslab_ide", "path": "src/roslab_ide/fsm.py", "copies": "1", "size": "1653", "license": "mit", "hash": -4536858028762319000, "line_mean": 29.0727272727, "line_max": 112, "alpha_frac": 0.5601935874, "autogenerated": false, "ratio": 4.384615384615385, "config_test": false, ...
__author__ = 'privat' # std imports import io import os import sys import yaml # pyqt imports from python_qt_binding import loadUi from PyQt4.QtCore import pyqtSlot from PyQt4.QtGui import QDialog # ROS imports import rosmsg import rospkg rp = rospkg.RosPack() # roslab from roslab_ide.helper.globals import ROS_MS...
{ "repo_name": "sem23/roslab_ide", "path": "src/roslab_ide/dialogs/CommunicationDialog.py", "copies": "1", "size": "3707", "license": "mit", "hash": 2025541369531469300, "line_mean": 32.0982142857, "line_max": 106, "alpha_frac": 0.5794442946, "autogenerated": false, "ratio": 3.9817400644468313, ...
__author__ = 'privat' # std imports import os import rospkg rp = rospkg.RosPack() # pyqt imports from python_qt_binding import loadUi from PyQt4.QtGui import QDialog, QDialogButtonBox, QColorDialog from PyQt4.QtCore import QSettings, pyqtSlot import roslab_ide.helper.globals as g class SettingsDialog(QDialog): ...
{ "repo_name": "sem23/roslab_ide", "path": "src/roslab_ide/dialogs/SettingsDialog.py", "copies": "1", "size": "2046", "license": "mit", "hash": 520841579015459650, "line_mean": 29.5373134328, "line_max": 101, "alpha_frac": 0.6182795699, "autogenerated": false, "ratio": 3.5397923875432524, "confi...
__author__ = 'privat' # std imports import io import os import sys import subprocess import rospkg rp = rospkg.RosPack() # pyqt imports from python_qt_binding import loadUi from PyQt4.QtGui import QDockWidget from PyQt4.QtCore import QTimer, QProcess, QSettings, pyqtSlot # FIXME: If one widget is closed other opened...
{ "repo_name": "sem23/roslab_ide", "path": "src/roslab_ide/widgets/ExternalProcessWidget.py", "copies": "1", "size": "2716", "license": "mit", "hash": -6233345932433463000, "line_mean": 28.2150537634, "line_max": 108, "alpha_frac": 0.5960972018, "autogenerated": false, "ratio": 4.270440251572327, ...
__author__ = 'privat' # std imports import io import os import sys import yaml import rospkg rp = rospkg.RosPack() # pyqt imports from python_qt_binding import loadUi from PyQt4.QtGui import QDialog class ParameterDialog(QDialog): def __init__(self, data=None, parent=None): QDialog.__init__(self, paren...
{ "repo_name": "sem23/roslab_ide", "path": "src/roslab_ide/dialogs/ParameterDialog.py", "copies": "1", "size": "1387", "license": "mit", "hash": -2601557577464308000, "line_mean": 29.1739130435, "line_max": 102, "alpha_frac": 0.5839942322, "autogenerated": false, "ratio": 3.6986666666666665, "co...
__author__ = 'privat' # std imports import os import rospkg rp = rospkg.RosPack() # pyqt imports from python_qt_binding import loadUi from PyQt4.QtCore import pyqtSlot from PyQt4.QtGui import QDialog import roslab_ide.helper.globals as g class RosLaunchNodeDialog(QDialog): def __init__(self, data, parent=None)...
{ "repo_name": "sem23/roslab_ide", "path": "src/roslab_ide/dialogs/RosLaunchNodeDialog.py", "copies": "1", "size": "1426", "license": "mit", "hash": 3722256582223779300, "line_mean": 26.9803921569, "line_max": 106, "alpha_frac": 0.6269284712, "autogenerated": false, "ratio": 3.6564102564102563, ...
__author__ = "Priyabrata Biswal" ################################################################################# # tool = LOD Checker # # author = "Priyabrata Biswal" # # last_updated = "2019_01_27 # # # # doc = "see_below" # # Checks lower lod's...
{ "repo_name": "PBTools/MaxScript", "path": "src/python/pb_lod_vertex_checker.py", "copies": "1", "size": "5321", "license": "mit", "hash": 2963105123451022000, "line_mean": 33.1153846154, "line_max": 184, "alpha_frac": 0.670738583, "autogenerated": false, "ratio": 2.9910061832490165, "config_te...
__author__ = 'priyanka' import sys import pandas as pd if __name__ == '__main__': reload(sys) sys.setdefaultencoding("utf-8") cat = raw_input("Category?") op_csv = 'data/input/yelp_academic_dataset_review_' + cat + '.csv' business_data = pd.read_csv('data/input/yelp_academic_dataset_business.csv'...
{ "repo_name": "abhirevan/Yelp-Rate-my-Review", "path": "src/extract_per_category.py", "copies": "1", "size": "1083", "license": "mit", "hash": 5223599948585276000, "line_mean": 42.32, "line_max": 108, "alpha_frac": 0.6731301939, "autogenerated": false, "ratio": 3.2425149700598803, "config_test"...
__author__ = 'prog-RAM-zing' ''' An Sqlite3 Databse manager for the Tweet Streamer nly. ''' import sqlite3,subprocess,shlex,re,unidecode,datetime from time import sleep from sys import exit class DBManager(object): def __init__(self,conn): self.conn = conn self.cursor = self.conn.cursor() de...
{ "repo_name": "prog-RAM-zing/Twitter-lytics", "path": "db_class.py", "copies": "1", "size": "10223", "license": "mit", "hash": -7591678874118058000, "line_mean": 40.7265306122, "line_max": 179, "alpha_frac": 0.5209820992, "autogenerated": false, "ratio": 3.85919214798037, "config_test": false, ...
__author__ = 'prog-RAM-zing' #!/usr/bin/env python ''' A General Twitter Streamer script using Python's Tweepy module (pip install tweepy) ''' import tweepy,threading,datetime,unidecode,time,sys import re,subprocess,shlex import db_class,sqlite3 from Queue import Queue #Enter credentials from Twitter App consumer_k...
{ "repo_name": "prog-RAM-zing/Twitter-lytics", "path": "general_scrapper.py", "copies": "1", "size": "6541", "license": "mit", "hash": -4025493055472843300, "line_mean": 39.1288343558, "line_max": 334, "alpha_frac": 0.6011313255, "autogenerated": false, "ratio": 3.3526396719630958, "config_test"...
__author__ = 'proposed by Jean Pierre Queau , jeanpierre.queau"sbmoffshore.com' from scipy import array from pybrain.optimization.optimizer import BlackBoxOptimizer from pybrain.optimization.populationbased.ga import GA from pybrain.tools.nondominated import const_non_dominated_front, const_crowding_distance, const_...
{ "repo_name": "abhishekgahlot/pybrain", "path": "pybrain/optimization/populationbased/multiobjective/constnsga2.py", "copies": "2", "size": "4003", "license": "bsd-3-clause", "hash": -8742886282059042000, "line_mean": 43.9775280899, "line_max": 115, "alpha_frac": 0.6007994004, "autogenerated": fals...
__author__ = 'prossi' import skyscape class lazy_property(object): def __init__(self, fget): self.fget = fget self.func_name = fget.__name__ def __get__(self, obj, cls): if obj is None: return None value = self.fget(obj) setattr(obj, self.func_name, value) ...
{ "repo_name": "skyscape-cloud-services/skyscape_python", "path": "skyscape/skyscape_catalog.py", "copies": "1", "size": "1495", "license": "apache-2.0", "hash": -4806944890938968000, "line_mean": 28.3333333333, "line_max": 94, "alpha_frac": 0.5652173913, "autogenerated": false, "ratio": 3.5851318...
__author__ = 'prossi' import skyscape class lazy_property(object): def __init__(self, fget): self.fget = fget self.func_name = fget.__name__ def __get__(self, obj, cls): if obj is None: return None value = self.fget(obj) setattr(obj, self.func_name, value) ...
{ "repo_name": "skyscape-cloud-services/skyscape_python", "path": "skyscape/skyscape_orgvdc.py", "copies": "1", "size": "3092", "license": "apache-2.0", "hash": -6115344679648023000, "line_mean": 31.8936170213, "line_max": 182, "alpha_frac": 0.5711513583, "autogenerated": false, "ratio": 3.5745664...
__author__ = 'prossi' import skyscape class Vcloud_Method(): def __init__(self, linkref, connection): self.rel = linkref.attrib['rel'] self.href = linkref.attrib['href'] if linkref.get('type') is not None: self.type = linkref.attrib['type'] else: self.type =...
{ "repo_name": "skyscape-cloud-services/skyscape_python", "path": "skyscape/skyscape_vcloud_methods.py", "copies": "1", "size": "1379", "license": "apache-2.0", "hash": 5754193064604543000, "line_mean": 32.6585365854, "line_max": 82, "alpha_frac": 0.5511240029, "autogenerated": false, "ratio": 3.9...