text
stringlengths
0
1.05M
meta
dict
__author__ = 'Neil Butcher' from Error import ExcellImportExportError from Rota_System.StandardTimes import date_string, time_string, get_date, get_time import xlwt, xlrd from Rota_System.Roles import GlobalRoleList, role from Rota_System.Events import Event def _job(appointment): return appointment.role.descrip...
{ "repo_name": "ergoregion/Rota-Program", "path": "Rota_System/Saving/Excell/Duration.py", "copies": "1", "size": "10467", "license": "mit", "hash": -8645894093097828000, "line_mean": 41.3765182186, "line_max": 119, "alpha_frac": 0.5365434222, "autogenerated": false, "ratio": 3.9305294780322946, ...
__author__ = 'Neil Butcher' from HTMLDisplay import display class _HTMLObject(object): def __init__(self, *args): self.elements = [] for arg in args: self.add(arg) def add(self, value): self.elements.append(value) def display(self): display(self) def ext...
{ "repo_name": "ergoregion/Rota-Program", "path": "Rota_System/Reporting/HTMLObjects/HTMLObjects.py", "copies": "1", "size": "3265", "license": "mit", "hash": 2326386079064017400, "line_mean": 17.2402234637, "line_max": 83, "alpha_frac": 0.5215926493, "autogenerated": false, "ratio": 3.70181405895...
__author__ = 'Neil Butcher' from HTMLObjects import HTMLObjects from Abstract import AbstractMultiAppointmentReporter, person_name from Rota_System.StandardTimes import time_string, date_string class RoleReporter(AbstractMultiAppointmentReporter): ''' produces a html from a role and a list of events ''' ...
{ "repo_name": "ergoregion/Rota-Program", "path": "Rota_System/Reporting/Role.py", "copies": "1", "size": "1705", "license": "mit", "hash": -4636322813453689000, "line_mean": 35.2765957447, "line_max": 108, "alpha_frac": 0.6134897361, "autogenerated": false, "ratio": 3.797327394209354, "config_t...
__author__ = 'Neil Butcher' from HTMLObjects import HTMLObjects from datetime import datetime from Rota_System.StandardTimes import date_string, time_string from Abstract import AbstractMultiAppointmentReporter class PersonReporter(AbstractMultiAppointmentReporter): ''' produces a html from a person and a li...
{ "repo_name": "ergoregion/Rota-Program", "path": "Rota_System/Reporting/Person.py", "copies": "1", "size": "2442", "license": "mit", "hash": 5933468416969480000, "line_mean": 37.7619047619, "line_max": 120, "alpha_frac": 0.6748566749, "autogenerated": false, "ratio": 3.803738317757009, "config_...
__author__ = 'Neil Butcher' from HTMLObjects import HTMLObjects from Rota_System.StandardTimes import date_string, time_string class EventReporter(object): def event(self, event): self._event = event def report_about(self, an_object): self.event(an_object) return self.html().html_str...
{ "repo_name": "ergoregion/Rota-Program", "path": "Rota_System/Reporting/Event.py", "copies": "1", "size": "2369", "license": "mit", "hash": 7936742966918219000, "line_mean": 35.4461538462, "line_max": 111, "alpha_frac": 0.6428872942, "autogenerated": false, "ratio": 3.6278713629402755, "config_...
__author__ = 'Neil Butcher' from HTMLObjects import HTMLObjects def date(an_object): return an_object.date def time(an_object): return an_object.time def role(an_object): return an_object.role def person_name(an_object): if an_object.is_filled(): return an_object.person.name else: ...
{ "repo_name": "ergoregion/Rota-Program", "path": "Rota_System/Reporting/Abstract.py", "copies": "1", "size": "1082", "license": "mit", "hash": -5005902419567515000, "line_mean": 19.8076923077, "line_max": 61, "alpha_frac": 0.6136783734, "autogenerated": false, "ratio": 3.5359477124183005, "conf...
__author__ = 'Neil Butcher' from PyQt4 import QtCore from PyQt4.QtCore import pyqtSignal, QObject class UndefinedRoleError(Exception): def __init__(self, value): self.value = value def __str__(self): return 'This is an invalid role ', self.value def role(role_code_desc): if role_code_d...
{ "repo_name": "ergoregion/Rota-Program", "path": "Rota_System/Roles.py", "copies": "1", "size": "6765", "license": "mit", "hash": -8765130623210721000, "line_mean": 26.8436213992, "line_max": 90, "alpha_frac": 0.6096082779, "autogenerated": false, "ratio": 3.859098687963491, "config_test": fals...
__author__ = 'Neil Butcher' from PyQt4 import QtCore, QtGui from command_duration import CommandChangeDuration from command_durations import CommandAddDuration, CommandRemoveDuration from Rota_System.Duration import Duration class DurationsModel(QtCore.QAbstractListModel): commandIssued = QtCore.pyqtSignal(QtGui...
{ "repo_name": "ergoregion/Rota-Program", "path": "Rota_System/UI/Duration/model_durations.py", "copies": "1", "size": "2138", "license": "mit", "hash": -7899197414914262000, "line_mean": 29.1126760563, "line_max": 71, "alpha_frac": 0.6566884939, "autogenerated": false, "ratio": 4.033962264150944,...
__author__ = 'Neil Butcher' from PyQt4 import QtCore, QtGui from command_event_list import CommandAddEvent, CommandRemoveEvent from command_event import CommandChangeEvent from Rota_System.Events import Event class EventsModel(QtCore.QAbstractTableModel): commandIssued = QtCore.pyqtSignal(QtGui.QUndoCommand) ...
{ "repo_name": "ergoregion/Rota-Program", "path": "Rota_System/UI/Events/model_event_list.py", "copies": "1", "size": "3600", "license": "mit", "hash": -5923270735907558000, "line_mean": 32.6448598131, "line_max": 96, "alpha_frac": 0.6177777778, "autogenerated": false, "ratio": 4.058624577226607, ...
__author__ = 'Neil Butcher' from PyQt4 import QtCore, QtGui from command_event_list import CommandAddTemplate, CommandRemoveTemplate from Rota_System.Events import EventPrototype class EventsTemplatesModel(QtCore.QAbstractListModel): commandIssued = QtCore.pyqtSignal(QtGui.QUndoCommand) criticalCommandIssued ...
{ "repo_name": "ergoregion/Rota-Program", "path": "Rota_System/UI/Events/model_template_list.py", "copies": "1", "size": "1800", "license": "mit", "hash": -344676823920336600, "line_mean": 31.7272727273, "line_max": 72, "alpha_frac": 0.6755555556, "autogenerated": false, "ratio": 4.128440366972477...
__author__ = 'Neil Butcher' from PyQt4 import QtCore, QtGui from commands_population import CommandAddPerson class PopulationModel(QtCore.QAbstractListModel): commandIssued = QtCore.pyqtSignal(QtGui.QUndoCommand) criticalCommandIssued = QtCore.pyqtSignal() def __init__(self, parent): QtCore.QAbs...
{ "repo_name": "ergoregion/Rota-Program", "path": "Rota_System/UI/People/model_population.py", "copies": "1", "size": "1617", "license": "mit", "hash": -231488563984079330, "line_mean": 31.36, "line_max": 71, "alpha_frac": 0.6660482375, "autogenerated": false, "ratio": 3.9827586206896552, "confi...
__author__ = 'Neil Butcher' from PyQt4 import QtCore, QtGui from model_population_filter import PopulationSortFilterModel import Filters class CandidatesWidget(QtGui.QWidget): candidateSelected = QtCore.pyqtSignal(QtCore.QObject) def __init__(self, parent): QtGui.QWidget.__init__(self, parent) ...
{ "repo_name": "ergoregion/Rota-Program", "path": "Rota_System/UI/Candidating/widget_candidates.py", "copies": "1", "size": "4189", "license": "mit", "hash": -43052604842758730, "line_mean": 41.3232323232, "line_max": 108, "alpha_frac": 0.7051802339, "autogenerated": false, "ratio": 4.0908203125, ...
__author__ = 'Neil Butcher' from PyQt4 import QtCore, QtGui from model_population import PopulationModel from Rota_System.UI.widget_addDel_list import AddDelListWidget from widget_person import PersonWidget class PopulationWidget(QtGui.QWidget): commandIssued = QtCore.pyqtSignal(QtGui.QUndoCommand) criticalC...
{ "repo_name": "ergoregion/Rota-Program", "path": "Rota_System/UI/People/widget_population.py", "copies": "1", "size": "1876", "license": "mit", "hash": 4877304131031213000, "line_mean": 28.7777777778, "line_max": 82, "alpha_frac": 0.710021322, "autogenerated": false, "ratio": 3.68565815324165, ...
__author__ = 'Neil Butcher' from PyQt4 import QtCore, QtGui from model_undo import MasterUndoModel class UndoBarWidget(QtGui.QWidget): def __init__(self, parent): QtGui.QWidget.__init__(self, parent) self.model = MasterUndoModel(parent) self.layout = QtGui.QHBoxLayout(self) self...
{ "repo_name": "ergoregion/Rota-Program", "path": "Rota_System/UI/widget_undobar.py", "copies": "1", "size": "1250", "license": "mit", "hash": 1138192605379619800, "line_mean": 28.0697674419, "line_max": 74, "alpha_frac": 0.6784, "autogenerated": false, "ratio": 3.9184952978056424, "config_test"...
__author__ = 'Neil Butcher' from PyQt4 import QtCore, QtGui from PyQt4.QtCore import pyqtSignal from Rota_System.UI.Roles.commands_role_compatibility import CommandChangeCompatibilityRole class RoleCompatibilitiesSettingModel(QtCore.QAbstractTableModel): """ used to manipulate the relative compatibilities b...
{ "repo_name": "ergoregion/Rota-Program", "path": "Rota_System/UI/Roles/model_role_compatibility.py", "copies": "1", "size": "2531", "license": "mit", "hash": -3697282215865018400, "line_mean": 36.2205882353, "line_max": 99, "alpha_frac": 0.6835242987, "autogenerated": false, "ratio": 3.7551928783...
__author__ = 'Neil Butcher' from PyQt4 import QtCore, QtGui from PyQt4.QtCore import pyqtSignal from Rota_System.UI.Roles.commands_roles_all import CommandAddRole class AllRolesModel(QtCore.QAbstractListModel): """ used to manipulate The Complete global list of roles """ aboutToAddRole = pyqtSignal...
{ "repo_name": "ergoregion/Rota-Program", "path": "Rota_System/UI/Roles/model_roles_all.py", "copies": "1", "size": "1852", "license": "mit", "hash": 8805808081291785000, "line_mean": 27.953125, "line_max": 66, "alpha_frac": 0.659287257, "autogenerated": false, "ratio": 3.8744769874476988, "conf...
__author__ = 'Neil Butcher' from PyQt4 import QtCore, QtGui from Roles import GlobalRolesWidget from People import PopulationWidget from StandardTimes import StandardEventTimesWidget from Events import EventTemplateWidget class InstitutionCoreWidget(QtGui.QWidget): commandIssued = QtCore.pyqtSignal(QtGui.QUndoCo...
{ "repo_name": "ergoregion/Rota-Program", "path": "Rota_System/UI/widget_core.py", "copies": "1", "size": "2679", "license": "mit", "hash": 8821894430684648000, "line_mean": 31.2891566265, "line_max": 79, "alpha_frac": 0.7077267637, "autogenerated": false, "ratio": 3.5815508021390374, "config_te...
__author__ = 'Neil Butcher' from PyQt4 import QtCore, QtGui from Rota_System.Evaluation import CheckDuration class CheckingWidget(QtGui.QWidget): def __init__(self, parent): QtGui.QWidget.__init__(self, parent) self.layout = QtGui.QHBoxLayout(self) self._button = QtGui.QPushButton('Error...
{ "repo_name": "ergoregion/Rota-Program", "path": "Rota_System/UI/Checking/widget_checking.py", "copies": "1", "size": "1718", "license": "mit", "hash": 3750372796882934300, "line_mean": 28.1355932203, "line_max": 76, "alpha_frac": 0.6466821886, "autogenerated": false, "ratio": 3.6709401709401708,...
__author__ = 'Neil Butcher' from PyQt4 import QtCore, QtGui from Rota_System.Roles import GlobalRoleList from model_appointment_list import AppointmentsTableModel from Rota_System.UI.widget_addDel_table import AddDelTableWidget def description(role): return role.description class AppointmentsListWidget(QtGui.Q...
{ "repo_name": "ergoregion/Rota-Program", "path": "Rota_System/UI/Appointments/widget_appointment_list.py", "copies": "1", "size": "2431", "license": "mit", "hash": -6611750764831321000, "line_mean": 27.2790697674, "line_max": 81, "alpha_frac": 0.6972439325, "autogenerated": false, "ratio": 3.4928...
__author__ = 'Neil Butcher' from PyQt4 import QtCore, QtGui from Rota_System.StandardTimes import date_string def date(an_event): return an_event.date def name(a_person): return a_person.name class AvailabilityModel(QtCore.QAbstractTableModel): """This combines an event model and a population model t...
{ "repo_name": "ergoregion/Rota-Program", "path": "Rota_System/UI/Availability/model_availability.py", "copies": "1", "size": "2853", "license": "mit", "hash": 4961601275287918000, "line_mean": 33.3855421687, "line_max": 103, "alpha_frac": 0.6365229583, "autogenerated": false, "ratio": 3.940607734...
__author__ = 'Neil Butcher' from PyQt4 import QtCore, QtGui from Rota_System.StandardTimes import StandardEventTimes from commands_times import CommandAddStandardTime, CommandChangeStandardTime, CommandRemoveStandardTime from datetime import time class StandardEventTimesModel(QtCore.QAbstractTableModel): command...
{ "repo_name": "ergoregion/Rota-Program", "path": "Rota_System/UI/StandardTimes/model_times.py", "copies": "1", "size": "2766", "license": "mit", "hash": 2271657939002797800, "line_mean": 32.3373493976, "line_max": 103, "alpha_frac": 0.6315979754, "autogenerated": false, "ratio": 4.190909090909090...
__author__ = 'Neil Butcher' from PyQt4 import QtCore, QtGui from Rota_System.StandardTimes import time_string, date_string from Rota_System.Roles import GlobalRoleList from sets import Set def is_vacant(appointment): return (not appointment.is_filled()) and (not appointment.disabled) class _AppointmentsTreeRef...
{ "repo_name": "ergoregion/Rota-Program", "path": "Rota_System/UI/Appointments/widget_appointment_tree.py", "copies": "1", "size": "8541", "license": "mit", "hash": 5454712534334553000, "line_mean": 35.660944206, "line_max": 119, "alpha_frac": 0.6581196581, "autogenerated": false, "ratio": 3.90534...
__author__ = 'Neil Butcher' from PyQt4 import QtCore, QtGui from Rota_System.UI.Availability import AvailabilitySelectionWidget from Rota_System.UI.Vacancies import VacanciesWidget from Rota_System.UI.Events import EventWidget from Rota_System.UI.Reports import ReportWidget from Rota_System.UI.Checking import Checking...
{ "repo_name": "ergoregion/Rota-Program", "path": "Rota_System/UI/Duration/widget_duration.py", "copies": "1", "size": "3513", "license": "mit", "hash": -2635289355857878500, "line_mean": 33.4509803922, "line_max": 89, "alpha_frac": 0.7196128665, "autogenerated": false, "ratio": 3.6670146137787056...
__author__ = 'Neil Butcher' from PyQt4 import QtCore, QtGui from widget_duration import SingleDurationWidget from Rota_System.UI.widget_addDel_combo import AddDelComboWidget from model_durations import DurationsModel class DurationsWidget(QtGui.QWidget): commandIssued = QtCore.pyqtSignal(QtGui.QUndoCommand) ...
{ "repo_name": "ergoregion/Rota-Program", "path": "Rota_System/UI/Duration/widget_durations.py", "copies": "1", "size": "2495", "license": "mit", "hash": 6020673505846394000, "line_mean": 28.3647058824, "line_max": 86, "alpha_frac": 0.7138276553, "autogenerated": false, "ratio": 3.5796269727403156...
__author__ = 'Neil Butcher' from PyQt4 import QtCore, QtGui class AddDelListWidget(QtGui.QWidget): objectSelected = QtCore.pyqtSignal(QtCore.QObject) def __init__(self, parent=None): QtGui.QWidget.__init__(self, parent) self.layout = QtGui.QGridLayout(self) self.listView = QtGui.QLis...
{ "repo_name": "ergoregion/Rota-Program", "path": "Rota_System/UI/widget_addDel_list.py", "copies": "1", "size": "2125", "license": "mit", "hash": 5590547278603448000, "line_mean": 39.8653846154, "line_max": 114, "alpha_frac": 0.6432941176, "autogenerated": false, "ratio": 3.8496376811594204, "c...
__author__ = 'Neil Butcher' from PyQt4 import QtCore, QtGui class AddDelTableWidget(QtGui.QWidget): objectSelected = QtCore.pyqtSignal(QtCore.QObject) def __init__(self, parent=None): QtGui.QWidget.__init__(self, parent) self.layout = QtGui.QGridLayout(self) self.tableView = QtGui.QT...
{ "repo_name": "ergoregion/Rota-Program", "path": "Rota_System/UI/widget_addDel_table.py", "copies": "1", "size": "2165", "license": "mit", "hash": -6560814190330601000, "line_mean": 38.3636363636, "line_max": 114, "alpha_frac": 0.6424942263, "autogenerated": false, "ratio": 3.907942238267148, "...
__author__ = 'Neil Butcher' from PyQt4 import QtCore, QtGui class LoadSaveBarWidget(QtGui.QWidget): save = QtCore.pyqtSignal() load = QtCore.pyqtSignal() export_excell = QtCore.pyqtSignal() import_excell = QtCore.pyqtSignal() def __init__(self, parent): QtGui.QWidget.__init__(self, pare...
{ "repo_name": "ergoregion/Rota-Program", "path": "Rota_System/UI/widget_loadsavebar.py", "copies": "1", "size": "1386", "license": "mit", "hash": -8482851031280897000, "line_mean": 27.8958333333, "line_max": 72, "alpha_frac": 0.6652236652, "autogenerated": false, "ratio": 3.904225352112676, "co...
__author__ = 'Neil Butcher' from PyQt4 import QtCore, QtGui, uic from commands_appointment import CommandAppointmentDisable, CommandAppointmentNote, CommandAppointVacate from Rota_System.StandardTimes import date_string import os class SingleAppointmentWidget(QtGui.QWidget): commandIssued = QtCore.pyqtSignal(QtG...
{ "repo_name": "ergoregion/Rota-Program", "path": "Rota_System/UI/Appointments/widget_appointment.py", "copies": "1", "size": "3244", "license": "mit", "hash": -3297898065849130000, "line_mean": 32.4432989691, "line_max": 108, "alpha_frac": 0.639025894, "autogenerated": false, "ratio": 3.875746714...
__author__ = 'Neil Butcher' from PyQt4 import QtGui from Rota_System import Appointments class CommandAddAppointment(QtGui.QUndoCommand): def __init__(self, model, row, parent): QtGui.QUndoCommand.__init__(self, 'Added a new appointment') self.model = model self.event = self.model.event ...
{ "repo_name": "ergoregion/Rota-Program", "path": "Rota_System/UI/Appointments/commands_appointment_list.py", "copies": "1", "size": "1759", "license": "mit", "hash": 3502996233673668000, "line_mean": 34.8979591837, "line_max": 115, "alpha_frac": 0.6668561683, "autogenerated": false, "ratio": 3.64...
__author__ = 'Neil Butcher' from PyQt4 import QtGui class CommandAddDuration(QtGui.QUndoCommand): def __init__(self, model, row, parent): super(CommandAddDuration, self).__init__('Added a new duration') self.model = model self.row = row self.parent = parent self.duration = ...
{ "repo_name": "ergoregion/Rota-Program", "path": "Rota_System/UI/Duration/command_durations.py", "copies": "1", "size": "1641", "license": "mit", "hash": 3396544873563960000, "line_mean": 37.1860465116, "line_max": 77, "alpha_frac": 0.6758074345, "autogenerated": false, "ratio": 3.729545454545454...
__author__ = 'Neil Butcher' from PyQt4 import QtGui class CommandAddTemplate(QtGui.QUndoCommand): def __init__(self, model, row, parent): super(CommandAddTemplate, self).__init__('Added a new template') self.model = model self.row = row self.parent = parent self.template =...
{ "repo_name": "ergoregion/Rota-Program", "path": "Rota_System/UI/Events/command_event_list.py", "copies": "1", "size": "3133", "license": "mit", "hash": -8534061952298277000, "line_mean": 35.0229885057, "line_max": 77, "alpha_frac": 0.6632620492, "autogenerated": false, "ratio": 3.698937426210153...
__author__ = 'Neil Butcher' from PyQt4 import QtGui class CommandAppointVacate(QtGui.QUndoCommand): def __init__(self, appointment, person): if person: desc_string = 'Appointed ' + str(person) + ' to an appointment' else: desc_string = 'Vacated an appointment' QtGu...
{ "repo_name": "ergoregion/Rota-Program", "path": "Rota_System/UI/Appointments/commands_appointment.py", "copies": "1", "size": "1746", "license": "mit", "hash": -8759997131104730000, "line_mean": 30.1785714286, "line_max": 79, "alpha_frac": 0.6426116838, "autogenerated": false, "ratio": 3.7548387...
__author__ = 'Neil Butcher' from PyQt4 import QtGui class CommandChangeEvent(QtGui.QUndoCommand): def __init__(self, event, key, value): super(CommandChangeEvent, self).__init__('Changed the ' + key + ' of ' + event.name) self.event = event self.key = key self.value = value ...
{ "repo_name": "ergoregion/Rota-Program", "path": "Rota_System/UI/Events/command_event.py", "copies": "1", "size": "1771", "license": "mit", "hash": 4958220366851582000, "line_mean": 33.7450980392, "line_max": 92, "alpha_frac": 0.5522303783, "autogenerated": false, "ratio": 4.128205128205129, "c...
__author__ = 'Neil Butcher' from PyQt4 import QtGui class CommandChangePerson(QtGui.QUndoCommand): def __init__(self, person, key, value): super(CommandChangePerson, self).__init__('Changed the ' + key + ' of ' + person.name) self.person = person self.key = key self.value = value ...
{ "repo_name": "ergoregion/Rota-Program", "path": "Rota_System/UI/People/commands_person.py", "copies": "1", "size": "2041", "license": "mit", "hash": 5898852761139674000, "line_mean": 33.0333333333, "line_max": 95, "alpha_frac": 0.5825575698, "autogenerated": false, "ratio": 3.9941291585127203, ...
__author__ = 'Neil Butcher' from PyQt4 import QtGui class PopulationSortFilterModel(QtGui.QSortFilterProxyModel): def __init__(self, parent): QtGui.QAbstractProxyModel.__init__(self, parent) self.setDynamicSortFilter(True) self._filters = [] self._antifilters = [] self._so...
{ "repo_name": "ergoregion/Rota-Program", "path": "Rota_System/UI/Candidating/model_population_filter.py", "copies": "1", "size": "1650", "license": "mit", "hash": 8259574221613714000, "line_mean": 29.5555555556, "line_max": 63, "alpha_frac": 0.616969697, "autogenerated": false, "ratio": 3.9759036...
__author__ = 'Neil Butcher' from PyQt4 import QtGui, QtCore from command_availability import CommandChangePersonBlacklist from model_availability import AvailabilityModel from Rota_System.Person import Person class AvailabilitySelectionWidget(QtGui.QWidget): commandIssued = QtCore.pyqtSignal(QtGui.QUndoCommand)...
{ "repo_name": "ergoregion/Rota-Program", "path": "Rota_System/UI/Availability/widget_availability.py", "copies": "1", "size": "1544", "license": "mit", "hash": 1112251379352672400, "line_mean": 36.6829268293, "line_max": 75, "alpha_frac": 0.6910621762, "autogenerated": false, "ratio": 3.898989898...
__author__ = 'Neil Butcher' from PyQt4 import QtGui, QtCore from PyQt4.QtCore import pyqtSignal from model_roles_all import AllRolesModel from Rota_System.UI.Roles.commands_roles_sublist import CommandExcludeRole, CommandIncludeRole class SelectionOfRolesModel(AllRolesModel): """ used to manipulate a select...
{ "repo_name": "ergoregion/Rota-Program", "path": "Rota_System/UI/Roles/model_roles_sublist.py", "copies": "1", "size": "2073", "license": "mit", "hash": -4773719354363383000, "line_mean": 34.1525423729, "line_max": 102, "alpha_frac": 0.6295224313, "autogenerated": false, "ratio": 4.04093567251462...
__author__ = 'Neil Butcher' from PyQt4 import QtGui, QtCore from Rota_System.Roles import GlobalRoleList from commands_appointment import CommandAppointmentDisable, CommandAppointmentNote from commands_appointment_list import CommandAddAppointment, CommandRemoveAppointment class AppointmentsTableModel(QtCore.QAbstra...
{ "repo_name": "ergoregion/Rota-Program", "path": "Rota_System/UI/Appointments/model_appointment_list.py", "copies": "1", "size": "4126", "license": "mit", "hash": 849662012198253200, "line_mean": 32.5447154472, "line_max": 103, "alpha_frac": 0.6325739215, "autogenerated": false, "ratio": 4.138415...
__author__ = 'Neil Butcher' from PyQt4 import QtGui, QtCore from Rota_System.StandardTimes import StandardEventTimes class CommandAddStandardTime(QtGui.QUndoCommand): def __init__(self, model, row, item): QtGui.QUndoCommand.__init__(self, 'Added a new time with a name') self.model = model ...
{ "repo_name": "ergoregion/Rota-Program", "path": "Rota_System/UI/StandardTimes/commands_times.py", "copies": "1", "size": "1944", "license": "mit", "hash": 6182397454657586000, "line_mean": 33.1228070175, "line_max": 97, "alpha_frac": 0.6630658436, "autogenerated": false, "ratio": 3.6, "config_...
__author__ = 'Neil Butcher' from PyQt4 import QtGui, QtCore from Rota_System.UI.widget_addDel_table import AddDelTableWidget from model_times import StandardEventTimesModel from Rota_System.UI.delegates import TimeDelegate class StandardEventTimesWidget(QtGui.QWidget): commandIssued = QtCore.pyqtSignal(QtGui.QUn...
{ "repo_name": "ergoregion/Rota-Program", "path": "Rota_System/UI/StandardTimes/widget_times.py", "copies": "1", "size": "1587", "license": "mit", "hash": -5211774904707581000, "line_mean": 25.4666666667, "line_max": 72, "alpha_frac": 0.7063642092, "autogenerated": false, "ratio": 3.62328767123287...
__author__ = 'Neil Butcher' from PyQt4 import QtGui, QtCore from widget_core import InstitutionCoreWidget from widget_undobar import UndoBarWidget from widget_loadsavebar import LoadSaveBarWidget from Duration import DurationsWidget from Rota_System.Saving.Database import InstitutionSavingObject from Rota_System.Savin...
{ "repo_name": "ergoregion/Rota-Program", "path": "Rota_System/UI/widget_institution.py", "copies": "1", "size": "3959", "license": "mit", "hash": 9163720436085812000, "line_mean": 34.0353982301, "line_max": 104, "alpha_frac": 0.6731497853, "autogenerated": false, "ratio": 3.7668886774500474, "c...
__author__ = 'Neil Butcher' from PyQt4 import QtGui, QtCore import widget_core from Rota_System.UI.Appointments import AppointmentsListWidget class EventTemplateWidget(QtGui.QWidget): commandIssued = QtCore.pyqtSignal(QtGui.QUndoCommand) criticalCommandIssued = QtCore.pyqtSignal() def __init__(self, par...
{ "repo_name": "ergoregion/Rota-Program", "path": "Rota_System/UI/Events/widget_template.py", "copies": "1", "size": "1916", "license": "mit", "hash": 4932403053297764000, "line_mean": 28.953125, "line_max": 87, "alpha_frac": 0.7098121086, "autogenerated": false, "ratio": 3.502742230347349, "con...
__author__ = 'Neil Butcher' from PyQt4 import QtGui, QtCore import widget_core from Rota_System.UI.Appointments import AppointmentsListWidget class EventWidget(QtGui.QWidget): commandIssued = QtCore.pyqtSignal(QtGui.QUndoCommand) criticalCommandIssued = QtCore.pyqtSignal() def __init__(self, parent=None...
{ "repo_name": "ergoregion/Rota-Program", "path": "Rota_System/UI/Events/widget_event.py", "copies": "1", "size": "1963", "license": "mit", "hash": 1647967887468973300, "line_mean": 27.8823529412, "line_max": 87, "alpha_frac": 0.701986755, "autogenerated": false, "ratio": 3.4378283712784588, "co...
__author__ = "Neil Butcher" from PyQt4 import QtGui, QtCore import widget_event from model_event_list import EventsModel from Rota_System.UI.widget_addDel_table import AddDelTableWidget from Rota_System.UI.delegates import DateDelegate class EventWidget(QtGui.QWidget): commandIssued = QtCore.pyqtSignal(QtGui.QUn...
{ "repo_name": "ergoregion/Rota-Program", "path": "Rota_System/UI/Events/widget_event_list.py", "copies": "1", "size": "2342", "license": "mit", "hash": -8785586769598885000, "line_mean": 27.9259259259, "line_max": 81, "alpha_frac": 0.6989752348, "autogenerated": false, "ratio": 3.5059880239520957...
__author__ = 'Neil Butcher' from PyQt4 import QtGui, QtCore import widget_template from model_template_list import EventsTemplatesModel from Rota_System.UI.widget_addDel_table import AddDelTableWidget class EventTemplateWidget(QtGui.QWidget): commandIssued = QtCore.pyqtSignal(QtGui.QUndoCommand) criticalComm...
{ "repo_name": "ergoregion/Rota-Program", "path": "Rota_System/UI/Events/widget_template_list.py", "copies": "1", "size": "2290", "license": "mit", "hash": 3618443143436260000, "line_mean": 28.3717948718, "line_max": 81, "alpha_frac": 0.7034934498, "autogenerated": false, "ratio": 3.53941267387944...
__author__ = 'Neil Butcher' from PyQt4 import QtGui, QtCore def string(item): return str(item) class AddDelComboWidget(QtGui.QWidget): objectSelected = QtCore.pyqtSignal(QtCore.QObject) def __init__(self, parent=None): QtGui.QWidget.__init__(self, parent) self.layout = QtGui.QHBoxLayout(se...
{ "repo_name": "ergoregion/Rota-Program", "path": "Rota_System/UI/widget_addDel_combo.py", "copies": "1", "size": "3473", "license": "mit", "hash": 8964782356540650000, "line_mean": 36.3440860215, "line_max": 114, "alpha_frac": 0.641808235, "autogenerated": false, "ratio": 3.9465909090909093, "c...
__author__ = 'Neil Butcher' from PyQt4 import QtGui, QtCore, uic from command_event import CommandChangeEvent import os class AbstractEventWidget(QtGui.QWidget): commandIssued = QtCore.pyqtSignal(QtGui.QUndoCommand) criticalCommandIssued = QtCore.pyqtSignal() def __init__(self, parent=None): QtG...
{ "repo_name": "ergoregion/Rota-Program", "path": "Rota_System/UI/Events/widget_core.py", "copies": "1", "size": "3392", "license": "mit", "hash": 5467849924626925000, "line_mean": 31.9417475728, "line_max": 80, "alpha_frac": 0.6503537736, "autogenerated": false, "ratio": 3.81123595505618, "conf...
__author__ = 'Neil Butcher' from PyQt4.QtCore import pyqtSignal, QObject from datetime import time, date, datetime from Appointments import Appointment, AppointmentPrototype class EventAbstract(QObject): titleChanged = pyqtSignal(str) changed = pyqtSignal(QObject) timeChanged = pyqtSignal() appointme...
{ "repo_name": "ergoregion/Rota-Program", "path": "Rota_System/Events.py", "copies": "1", "size": "3822", "license": "mit", "hash": 7950657465018886000, "line_mean": 24.4866666667, "line_max": 70, "alpha_frac": 0.6140763998, "autogenerated": false, "ratio": 3.9854014598540144, "config_test": fal...
__author__ = 'Neil Butcher' from PyQt4.QtCore import pyqtSignal, QObject class AppointmentAbstract(QObject): changed = pyqtSignal() def __init__(self, parent, role): QObject.__init__(self, parent) self.role = role self._note = '' self._disabled = False @property def ...
{ "repo_name": "ergoregion/Rota-Program", "path": "Rota_System/Appointments.py", "copies": "1", "size": "2012", "license": "mit", "hash": -1125302406821039600, "line_mean": 20.1894736842, "line_max": 56, "alpha_frac": 0.5849900596, "autogenerated": false, "ratio": 4.122950819672131, "config_test...
__author__ = 'Neil Butcher' from PyQt4.QtCore import pyqtSignal, QObject class Person(QObject): dataChanged = pyqtSignal(QObject) nameChanged = pyqtSignal(QObject) def __init__(self, parent=None): super(Person, self).__init__(parent) self._blacklisted_dates = [] self._name = 'A ...
{ "repo_name": "ergoregion/Rota-Program", "path": "Rota_System/Person.py", "copies": "1", "size": "2042", "license": "mit", "hash": -6823736435921846000, "line_mean": 23.3214285714, "line_max": 52, "alpha_frac": 0.5861900098, "autogenerated": false, "ratio": 3.8895238095238094, "config_test": fa...
__author__ = 'Neil Butcher' from Rota_System.Reporting.HTMLObjects import HTMLObjects from Abstract import AbstractMultiAppointmentReporter, event_title, person_code from Rota_System.StandardTimes import time_string, date_string class RolesReporter(object): def events(self, events): self._reporter = Role...
{ "repo_name": "ergoregion/Rota-Program", "path": "Rota_System/Reporting/LinkedBulkReport/Role.py", "copies": "1", "size": "3799", "license": "mit", "hash": -18333422136379024, "line_mean": 37.7653061224, "line_max": 122, "alpha_frac": 0.615688339, "autogenerated": false, "ratio": 3.61465271170314...
__author__ = 'Neil Butcher' from Rota_System.Reporting.HTMLObjects import HTMLObjects from datetime import datetime from Rota_System.StandardTimes import date_string, time_string from Abstract import AbstractMultiAppointmentReporter, event_title, person_code class PopulationReporter(object): def events(self, eve...
{ "repo_name": "ergoregion/Rota-Program", "path": "Rota_System/Reporting/LinkedBulkReport/Person.py", "copies": "1", "size": "4120", "license": "mit", "hash": 7924196132908463000, "line_mean": 39.7920792079, "line_max": 123, "alpha_frac": 0.6524271845, "autogenerated": false, "ratio": 3.6720142602...
__author__ = 'Neil Butcher' from Rota_System.Reporting.HTMLObjects import HTMLObjects from Person import PopulationReporter from Role import RolesReporter from Event import EventsReporter from Rota_System.Roles import GlobalRoleList import os class DurationReporter(object): def write_reports_about(self, an_insti...
{ "repo_name": "ergoregion/Rota-Program", "path": "Rota_System/Reporting/LinkedBulkReport/Institution.py", "copies": "1", "size": "2131", "license": "mit", "hash": 7054051667443432000, "line_mean": 46.3555555556, "line_max": 100, "alpha_frac": 0.6766776161, "autogenerated": false, "ratio": 3.49917...
__author__ = 'Neil Butcher' from Rota_System.Reporting.HTMLObjects import HTMLObjects from Rota_System.StandardTimes import date_string, time_string def date(an_object): return an_object.date def time(an_object): return an_object.time def role(an_object): return an_object.role def event_title(even...
{ "repo_name": "ergoregion/Rota-Program", "path": "Rota_System/Reporting/LinkedBulkReport/Abstract.py", "copies": "1", "size": "1466", "license": "mit", "hash": -3221008213152621600, "line_mean": 20.8805970149, "line_max": 62, "alpha_frac": 0.6091405184, "autogenerated": false, "ratio": 3.54106280...
__author__ = 'Neil Butcher' from sets import Set from datetime import timedelta class PersonFilterNobody(object): def __init__(self, appointment): pass def transmit(self, person): return False def mask(self, person): return True class PersonFilterQualifiedForAppointment(object...
{ "repo_name": "ergoregion/Rota-Program", "path": "Rota_System/UI/Candidating/Filters.py", "copies": "1", "size": "4683", "license": "mit", "hash": 6044216768462109000, "line_mean": 34.2105263158, "line_max": 116, "alpha_frac": 0.6715780483, "autogenerated": false, "ratio": 4.125991189427313, "c...
__author__ = 'Neil Butcher' import CheckingAlgorithms def priority(a): return a.priority def CheckDuration(duration, population): events = duration.events appointments = duration.appointments() result = [] result.extend(CheckingAlgorithms.MissingPersonCheck(appointments, population)) resu...
{ "repo_name": "ergoregion/Rota-Program", "path": "Rota_System/Evaluation/Checking.py", "copies": "1", "size": "1316", "license": "mit", "hash": 1647620059476224800, "line_mean": 44.3793103448, "line_max": 102, "alpha_frac": 0.820668693, "autogenerated": false, "ratio": 4.0244648318042815, "conf...
__author__ = 'Neil Butcher' import os from PyQt4 import QtCore, QtGui, uic from Rota_System.Roles import GlobalRoleList from Rota_System import Reporting from Rota_System.StandardTimes import date_string from widget_webview import WebView from Rota_System.Reporting.LinkedBulkReport import DurationReporter class Repo...
{ "repo_name": "ergoregion/Rota-Program", "path": "Rota_System/UI/Reports/widget_reports.py", "copies": "1", "size": "6182", "license": "mit", "hash": 3253441898275409000, "line_mean": 37.397515528, "line_max": 94, "alpha_frac": 0.6408929149, "autogenerated": false, "ratio": 3.871008140262993, "...
__author__ = 'Neil Butcher' import os from PyQt4 import QtGui, QtCore, uic from PyQt4.QtCore import pyqtSignal from commands_person import CommandChangePerson, CommandChangePersonBlacklist from Rota_System.UI.Roles import RoleListWidget class PersonWidget(QtGui.QWidget): commandIssued = pyqtSignal(QtGui.QUndoCom...
{ "repo_name": "ergoregion/Rota-Program", "path": "Rota_System/UI/People/widget_person.py", "copies": "1", "size": "3864", "license": "mit", "hash": 134895300883888060, "line_mean": 32.0256410256, "line_max": 82, "alpha_frac": 0.6586438923, "autogenerated": false, "ratio": 3.6349952963311383, "c...
__author__ = 'Neil Butcher' import sqlite3 from Events import MultipleEventsSavingObject from Rota_System.Duration import Duration class DurationSavingObject(object): def __init__(self, durationList, filename): self._filename = filename self._durationList = durationList self._connection =...
{ "repo_name": "ergoregion/Rota-Program", "path": "Rota_System/Saving/Database/Duration.py", "copies": "1", "size": "1951", "license": "mit", "hash": 5495428178015553000, "line_mean": 32.0677966102, "line_max": 96, "alpha_frac": 0.5981547924, "autogenerated": false, "ratio": 4.142250530785563, "...
__author__ = 'Neil Butcher' import sqlite3 from Events import MultipleEventsSavingObject from Rota_System.Roles import GlobalRoleList, Role from Rota_System.StandardTimes import StandardEventTimes from Rota_System.Worker import Worker from Duration import DurationSavingObject from Error import DatabaseSaveLoadError im...
{ "repo_name": "ergoregion/Rota-Program", "path": "Rota_System/Saving/Database/Institution.py", "copies": "1", "size": "7703", "license": "mit", "hash": -4520332410537950000, "line_mean": 36.9458128079, "line_max": 113, "alpha_frac": 0.6266389718, "autogenerated": false, "ratio": 4.202400436442989...
__author__ = 'Neil Butcher' import sqlite3 from Rota_System.Appointments import Appointment, AppointmentPrototype from Rota_System.Events import Event, EventPrototype from datetime import datetime, date from Rota_System.Roles import role class MultipleEventsSavingObject(object): ''' classdocs ''' de...
{ "repo_name": "ergoregion/Rota-Program", "path": "Rota_System/Saving/Database/Events.py", "copies": "1", "size": "4648", "license": "mit", "hash": -6751439221433401000, "line_mean": 36.184, "line_max": 166, "alpha_frac": 0.5372203098, "autogenerated": false, "ratio": 4.452107279693487, "config_...
__author__ = 'Neil Butcher' import sys from PyQt4 import QtCore, QtGui from Rota_System.UI.Roles.commands_role import CommandChangeRole class SingleRoleWidget(QtGui.QWidget): commandIssued = QtCore.pyqtSignal(QtGui.QUndoCommand) def __init__(self, parent): QtGui.QWidget.__init__(self, parent) ...
{ "repo_name": "ergoregion/Rota-Program", "path": "Rota_System/UI/Roles/widget_role.py", "copies": "1", "size": "2190", "license": "mit", "hash": -201966647692224100, "line_mean": 31.2205882353, "line_max": 83, "alpha_frac": 0.6383561644, "autogenerated": false, "ratio": 3.8761061946902653, "con...
__author__ = 'Neil Butcher' import sys from PyQt4 import QtGui, QtCore from Rota_System.UI.Roles.model_roles_all import AllRolesModel from model_role_compatibility import RoleCompatibilitiesSettingModel from Rota_System.Roles import GlobalRoleList, Role from Rota_System.UI.widget_addDel_list import AddDelListWidget ...
{ "repo_name": "ergoregion/Rota-Program", "path": "Rota_System/UI/Roles/widget_roles_all.py", "copies": "1", "size": "2367", "license": "mit", "hash": -869485436125219100, "line_mean": 31.4246575342, "line_max": 74, "alpha_frac": 0.7089142374, "autogenerated": false, "ratio": 3.4911504424778763, ...
__author__ = 'Neil Butcher' import unittest from Rota_System import Appointments from Rota_System import Events from Rota_System import Roles from datetime import time class EventTest(unittest.TestCase): def setUp(self): Roles.GlobalRoleList.add_role(Roles.Role('Baker', 'B', 10)) Roles.GlobalRole...
{ "repo_name": "ergoregion/Rota-Program", "path": "Tests/test_Events.py", "copies": "1", "size": "2347", "license": "mit", "hash": 8510187860261341000, "line_mean": 34.5757575758, "line_max": 76, "alpha_frac": 0.6578610993, "autogenerated": false, "ratio": 3.524024024024024, "config_test": true,...
__author__ = 'Neil Butcher' import unittest from Rota_System.Institution import Institution from Rota_System.Duration import Duration from Rota_System.Events import Event, Appointment from Rota_System.Saving.Excell import PopulationSavingObject, DurationSavingObject, ExcellImportExportError from Rota_System.Roles impo...
{ "repo_name": "ergoregion/Rota-Program", "path": "Tests/test_Excell_Saving.py", "copies": "1", "size": "9655", "license": "mit", "hash": -5498777648517702000, "line_mean": 39.9152542373, "line_max": 107, "alpha_frac": 0.6558259969, "autogenerated": false, "ratio": 3.599925428784489, "config_tes...
__author__ = "Neil Loknath" __copyright__ = "Copyright (c) 2013, Neil Loknath" __license__ = "BSD" __maintainer__ = "Neil Loknath" __email__ = "nloko@nloko.ca" import re class Grammer: """ Defines the grammer of an if statement """ @classmethod def top(cls, tree): """ Returns a list of only the root nodes of...
{ "repo_name": "nloko/moxy", "path": "moxy/logical.py", "copies": "1", "size": "5458", "license": "bsd-3-clause", "hash": 6486015640277785000, "line_mean": 19.752851711, "line_max": 71, "alpha_frac": 0.6320996702, "autogenerated": false, "ratio": 2.8221302998965876, "config_test": false, "has_...
__author__ = "Neil Loknath" __copyright__ = "Copyright (c) 2013, Neil Loknath" __license__ = "BSD" __maintainer__ = "Neil Loknath" __email__ = "nloko@nloko.ca" import time from moxy.logical import * class DelayCondition(Condition): def __init__(self, expr_tree, delay): super(DelayCondition, self).__init__(expr_tre...
{ "repo_name": "nloko/moxy", "path": "moxy/http/strategies.py", "copies": "1", "size": "3383", "license": "bsd-3-clause", "hash": 3024832989678985700, "line_mean": 25.0230769231, "line_max": 72, "alpha_frac": 0.6769139817, "autogenerated": false, "ratio": 2.9442993907745865, "config_test": false...
__author__ = 'nekmo' class NekumoException(Exception): message = '' status = 'error' def __init__(self, message='', id_=None): self.message = message self.id_ = id_ def get_message(self): msg = self.__class__ if not self.message else self.message return 'Error: %s' % ...
{ "repo_name": "Nekmo/nekumo", "path": "nekumo/core/exceptions.py", "copies": "1", "size": "1086", "license": "mit", "hash": -1669074743396968200, "line_mean": 16.2380952381, "line_max": 66, "alpha_frac": 0.6298342541, "autogenerated": false, "ratio": 3.596026490066225, "config_test": false, "...
def largest_prime_factor(n: int) -> int: result = 0 temp_number = n #First prime number divisor = 2 # While we have a product inferior to the number while divisor * divisor <= n: if temp_number % divisor == 0: temp_number = temp_number / divisor result = divisor ...
{ "repo_name": "Nekyz/Euler", "path": "Python/3rd Challenge/LargestPrimeFactor.py", "copies": "1", "size": "1234", "license": "mit", "hash": -8730649680860225000, "line_mean": 28.380952381, "line_max": 80, "alpha_frac": 0.5680713128, "autogenerated": false, "ratio": 3.9935275080906147, "config_t...
__author__ = 'Ness' from numpy import * from pylab import * import wave import struct import pyaudio '''/////////////////////////////////// //////////////Utility functions///////''' def pcm2Float(sig, dtype=np.float64): """ Converts a PCM signal into a floating point signal with a range between -1 and 1 ...
{ "repo_name": "nessBautista/AudioLab", "path": "prototypes/AudioEffects/SchroederReverb.py", "copies": "1", "size": "4787", "license": "cc0-1.0", "hash": 8631597970461918000, "line_mean": 29.4904458599, "line_max": 99, "alpha_frac": 0.6321286818, "autogenerated": false, "ratio": 3.180730897009967...
__author__ = 'Ness' from pylab import figure, show from numpy import * import scipy.fftpack ''' Constants ''' freq=20; t = arange(0.0, 1.0, 1.0/44100.0) sineSig=sin(freq*2*pi*t) #Number of frequency points N=44100; #Period T=1.0/44100.0 fig = figure(1) ax1 = fig.add_subplot(221) ax1.plot(t, sineSig) ax1.grid(True...
{ "repo_name": "nessBautista/AudioLab", "path": "prototypes/SoundSynthesis/additiveSynthesis.py", "copies": "1", "size": "2776", "license": "cc0-1.0", "hash": -429601679275146050, "line_mean": 20.5271317829, "line_max": 63, "alpha_frac": 0.5601585014, "autogenerated": false, "ratio": 2.27727645611...
__author__ = 'Ness' #python 2.7.5 from numpy import * from pylab import * import wave import struct import pyaudio #Set the sample rate and fundamental frequency Fs=44100 f=220 #Loss factor rho=0.99 #Calculate the correspondant delay line length in samples N=int(round(Fs/f)) #N=401 #length of output vector M=800...
{ "repo_name": "nessBautista/AudioLab", "path": "prototypes/SoundSynthesis/KarplusStrong.py", "copies": "1", "size": "2323", "license": "cc0-1.0", "hash": 3443446268662580000, "line_mean": 23.9892473118, "line_max": 115, "alpha_frac": 0.6904864399, "autogenerated": false, "ratio": 2.61304836895388...
""" This module contains functions for working with the access point information capabilities of the HPE IMC WSM Module using the RESTful API """ # This section imports required libraries import json import requests from pyhpeimc.auth import HEADERS def get_ap_info_all(auth, url): """ function takes no in...
{ "repo_name": "netmanchris/PYHPEIMC", "path": "pyhpeimc/wsm/apinfo.py", "copies": "3", "size": "4365", "license": "apache-2.0", "hash": 7444082875549949000, "line_mean": 25.6158536585, "line_max": 98, "alpha_frac": 0.6348224513, "autogenerated": false, "ratio": 3.316869300911854, "config_test":...
__author__ = 'neuralconcept' import theano, theano.tensor as T import numpy as np import theano_lstm import random import sys import logging from theano_lstm import Embedding, LSTM, RNN, StackedCells, Layer, create_optimization_updates, masked_loss def softmax(x): """ Wrapper for softmax, helps with pickling,...
{ "repo_name": "neuralconcept/DrWhoAI", "path": "DeepLearning/LSTM/Brain_LSTM.py", "copies": "1", "size": "6924", "license": "apache-2.0", "hash": 8856867007487677000, "line_mean": 35.829787234, "line_max": 118, "alpha_frac": 0.6055748122, "autogenerated": false, "ratio": 3.9074492099322797, "co...
__author__ = 'neuralconcept' # ****** Read the two training sets and the test set # import pandas as pd import os from DeepLearning.Utils import get_dir, CACHE_DIR #join aLL FILES print os.path.dirname(__file__) fout=open(os.path.join(CACHE_DIR, "out_full.csv"),"w") # first file: for line in open(os.path.join(CACHE_...
{ "repo_name": "neuralconcept/DrWhoAI", "path": "DeepLearning/Utils/genTrainingData.py", "copies": "1", "size": "2194", "license": "apache-2.0", "hash": -4372896824807475700, "line_mean": 30.7971014493, "line_max": 124, "alpha_frac": 0.6353691887, "autogenerated": false, "ratio": 2.864229765013055...
__author__ = 'nevelina' from flask.ext.wtf import Form from app import app from wtforms.fields import TextField, SelectField, DecimalField from wtforms import validators # this would ideally be generated and updated by the users brand_choices = [ ('dorothy perkins', 'Dorothy Perkins'), ('quiz', 'Quiz'), ('...
{ "repo_name": "Nimphal/KnowFashion", "path": "app/form.py", "copies": "1", "size": "3014", "license": "bsd-3-clause", "hash": -5893243233198077000, "line_mean": 24.5508474576, "line_max": 66, "alpha_frac": 0.5072992701, "autogenerated": false, "ratio": 3.496519721577726, "config_test": false, ...
__author__ = 'nevelina' from flask import render_template, flash, redirect, request, url_for from flask import Flask, Response, request, abort, render_template_string, send_from_directory from PIL import Image from werkzeug.utils import secure_filename import os from app import app from form import SimpleForm, BrowseFo...
{ "repo_name": "Nimphal/KnowFashion", "path": "app/views.py", "copies": "1", "size": "3538", "license": "bsd-3-clause", "hash": -3956675557914585600, "line_mean": 36.2421052632, "line_max": 121, "alpha_frac": 0.5977953646, "autogenerated": false, "ratio": 3.743915343915344, "config_test": false,...
import os import sys import requests #import songdetails import unicodedata from bs4 import BeautifulSoup LUOO_URL = "http://www.luoo.net/music/{}" MP3_URL = "http://luoo-mp3.kssws.ks-cdn.com/low/luoo/radio{}/{}.mp3" TRACK_NAME = "{} -{}.mp3" proxies = {} reload(sys) sys.setdefaultencoding('utf-8') class bcolors...
{ "repo_name": "shuson/luooder", "path": "luooder.py", "copies": "1", "size": "2554", "license": "mit", "hash": 6982835579672251000, "line_mean": 27.6966292135, "line_max": 107, "alpha_frac": 0.592404072, "autogenerated": false, "ratio": 3.1569839307787393, "config_test": false, "has_no_keywor...
__author__ = 'New' import time import csv class Log(): def __init__(self, name, gamestate): self.persons_name = name self.time = time.time() self.mode = gamestate.mode self.count = 1 self.directory = "datos/" self.filename = name + str(self.count) + ".csv" ...
{ "repo_name": "mrnoodles/AI-Pygame", "path": "logger.py", "copies": "1", "size": "1592", "license": "cc0-1.0", "hash": 7464049051869117000, "line_mean": 31.4897959184, "line_max": 122, "alpha_frac": 0.5785175879, "autogenerated": false, "ratio": 3.685185185185185, "config_test": false, "has_n...
__author__ = 'New' import time import math import random ENEMY_CLASSES = [ "TANK", "SWARM", "NORMAL", "BOSS", "SCATTER", "SPEED", "GHOST", "MIMIC" ] WING_COLORS = [ "YELLOW", "PURPLE", "PINK", "ORANGE", "GREEN", "AQUA", "RED", "BLUE", "GREY" ] class Mastermind(): def __init__(self, game_type="FIXED", in...
{ "repo_name": "mrnoodles/AI-Pygame", "path": "models/mastermind.py", "copies": "1", "size": "3351", "license": "cc0-1.0", "hash": 6668020582022029000, "line_mean": 26.4672131148, "line_max": 94, "alpha_frac": 0.4494180842, "autogenerated": false, "ratio": 3.666301969365427, "config_test": false...
__author__ = 'new pc' import pygame class Block: def __init__(self, x, y): self.x = x self.y = y self.width = 32 self.height = 32 def render(self, window): pygame.draw.rect(window, (0, 0, 0), (self.x, self.y, self.width, self.height)) class building: def __init__(s...
{ "repo_name": "saintdragon2/python-3-lecture-2015", "path": "civil_mid_final/슈퍼그랑조/Crash The USW/block명섭0513.py", "copies": "1", "size": "1945", "license": "mit", "hash": -8387230614892441000, "line_mean": 25.6438356164, "line_max": 131, "alpha_frac": 0.5177377892, "autogenerated": false, "ratio"...
__author__ = 'new pc' import pygame class Player: def __init__(self, x, y): self.x = x self.y = y self.width = 69 self.height = 82 self.velocity = 0 self.falling = True self.onGround = False self.images=pygame.image.load('ken_stand.png') self....
{ "repo_name": "saintdragon2/python-3-lecture-2015", "path": "civil_mid_final/슈퍼그랑조/Crash The USW/player명섭0513.py", "copies": "1", "size": "1897", "license": "mit", "hash": 1061018186396677000, "line_mean": 29.126984127, "line_max": 131, "alpha_frac": 0.5176594623, "autogenerated": false, "ratio":...
__author__ = '' from FileParsers.Parser import Parser class DynamicParser(Parser): def __init__(self, file, tool): super(DynamicParser, self).__init__(file) self.tool = tool self.file_ending = "" @staticmethod def match_line(regex1, line): import re line_variables ...
{ "repo_name": "tazmanrising/ppa", "path": "genCSV/FileParsers/DynamicParser.py", "copies": "1", "size": "6179", "license": "mit", "hash": -2324321851829582300, "line_mean": 36.6829268293, "line_max": 125, "alpha_frac": 0.5207962453, "autogenerated": false, "ratio": 3.8331265508684864, "config_t...
__author__ = '' from gmusicapi import Mobileclient import fnmatch import os from mutagen.mp3 import MP3 from mutagen.mp4 import MP4 class Song: def __init__(self): self.title = "" self.artist = "" self.id = "" self.tags = [] def index(self): return self.artist + self.ti...
{ "repo_name": "ParisMi/sync-google-music", "path": "sync-playlist.py", "copies": "1", "size": "6151", "license": "apache-2.0", "hash": 7697546474068932000, "line_mean": 37.9367088608, "line_max": 167, "alpha_frac": 0.6036416843, "autogenerated": false, "ratio": 3.81812538795779, "config_test": ...
import os.path import subprocess from flask import current_app def mocp(*args): command = ['mocp'] + list(args) output = '' exit_code = 0 try: output = subprocess.check_output(command, shell=False, stderr=subprocess.STDOUT) except subprocess.CalledProcessError as e: exit_code = e.returncode retu...
{ "repo_name": "miendinh/pi-alarm", "path": "player/moc.py", "copies": "1", "size": "1721", "license": "mit", "hash": -6061925026157708000, "line_mean": 17.1157894737, "line_max": 84, "alpha_frac": 0.6072051133, "autogenerated": false, "ratio": 3.2656546489563567, "config_test": false, "has_no...
from datetime import datetime import optparse import requests MAPPING_MONTH = { 1: "January", 2: "February", 3: "March", 4: "April", 5: "May", 6: "June", 7: "July", 8: "August", 9: "September", 10: "October", 11: "November", 12: "December" } MESSAGE_RAISE = 'Input wrong !!!' def create_url(month_number, ...
{ "repo_name": "NguyenHoaiNam/search_mailling_list", "path": "searchs/search_what.py", "copies": "1", "size": "3465", "license": "mit", "hash": 5274982178982333000, "line_mean": 34, "line_max": 69, "alpha_frac": 0.5653679654, "autogenerated": false, "ratio": 3.682252922422954, "config_test": fal...
__author__ = 'nhaines' from PyQt4 import QtCore from PyQt4 import QtGui from PyQt4 import QtNetwork import network class BaseApp(QtGui.QApplication): def __init__(self, argv=[], organization="PyQtHelpers", name="Default"): super(BaseApp, self).__init__(argv) self.setOrganizationName(organization...
{ "repo_name": "nhaines/PyQtHelpers", "path": "PyQtHelpers/app.py", "copies": "1", "size": "1608", "license": "apache-2.0", "hash": 8122578001443727000, "line_mean": 31.16, "line_max": 111, "alpha_frac": 0.6691542289, "autogenerated": false, "ratio": 3.8840579710144927, "config_test": false, "...
__author__ = 'nhaines' from PyQt4 import QtCore from PyQt4 import QtGui from PyQt4.QtCore import Qt class ColorfulProgressDelegate(QtGui.QStyledItemDelegate): redraw = QtCore.pyqtSignal() def __init__(self, parent=None, progress_role=None, total_role=None, opacity=1.0, animate=True): super(ColorfulP...
{ "repo_name": "nhaines/PyQtHelpers", "path": "PyQtHelpers/delegates.py", "copies": "1", "size": "2341", "license": "apache-2.0", "hash": 5536205069961406000, "line_mean": 33.4264705882, "line_max": 100, "alpha_frac": 0.6330627937, "autogenerated": false, "ratio": 3.7396166134185305, "config_tes...
__author__ = 'nhaines' from PyQt4 import QtCore from PyQt4 import QtNetwork class HttpRequestSignals(QtCore.QObject): finished = QtCore.pyqtSignal(QtNetwork.QTcpSocket, QtCore.QByteArray) class HttpRequestHandler(QtCore.QRunnable): def __init__(self, socket): super(HttpRequestHandler, self).__init_...
{ "repo_name": "nhaines/PyQtHelpers", "path": "PyQtHelpers/network.py", "copies": "1", "size": "1665", "license": "apache-2.0", "hash": 4616418748346802000, "line_mean": 29.2909090909, "line_max": 73, "alpha_frac": 0.6570570571, "autogenerated": false, "ratio": 4.060975609756097, "config_test": ...
__author__ = 'nhaines' import sys import os sys.path.append(os.path.dirname(os.path.dirname(__file__))) from PyQtHelpers import app, delegates from PyQt4 import QtCore from PyQt4 import QtGui from PyQt4.QtCore import Qt class ProgressListModel(QtCore.QAbstractListModel): PROGRESS_ROLE = Qt.UserRole + 1 TOT...
{ "repo_name": "nhaines/PyQtHelpers", "path": "examples/progress.py", "copies": "1", "size": "1573", "license": "apache-2.0", "hash": -4647406810041815000, "line_mean": 25.2333333333, "line_max": 113, "alpha_frac": 0.5823267641, "autogenerated": false, "ratio": 3.845965770171149, "config_test": ...
__author__ = 'nhc' class Scenario(frozenset): """ A Scenario is essentially a frozendict, see http://stackoverflow.com/a/9997296/1095455 It is an immutable and hashable dict. TODO: Make into a collections.Mapping, see http://stackoverflow.com/questions/3387691/python-how-to-perfectly-override-a-di...
{ "repo_name": "mr-niels-christensen/pyrules", "path": "src/pyrules2/scenario.py", "copies": "1", "size": "2034", "license": "mit", "hash": -6717148403055218000, "line_mean": 34.6842105263, "line_max": 90, "alpha_frac": 0.6007866273, "autogenerated": false, "ratio": 4.051792828685259, "config_te...
__author__ = 'nherbaut' from flask import g from flask import render_template from flask import session from flask import abort from service.repo import get_repos_for_user from models import User from database import db_session from settings import git_microservice_url def get_db(): db = getattr(g, '_database',...
{ "repo_name": "nherbaut/openLatexFactory", "path": "frontend/service/registration.py", "copies": "1", "size": "1097", "license": "apache-2.0", "hash": -8053294965271033000, "line_mean": 27.8947368421, "line_max": 92, "alpha_frac": 0.6627164995, "autogenerated": false, "ratio": 3.294294294294294, ...
__author__ = "nhp09" __date__ = "Feb 22, 2016 12:11:58 PM" import jpype class AddFileToPST: def __init__(self,dataDir): self.dataDir = dataDir self.MailMessage = jpype.JClass("com.aspose.email.PersonalStorage") self.FileFormatVersion = jpype.JClass("com.aspose.email.FileFormatVers...
{ "repo_name": "kashifiqb/Aspose.Email-for-Java", "path": "Plugins/Aspose.Email Java for Python/ProgrammingOutlook/__init__.py", "copies": "4", "size": "26649", "license": "mit", "hash": 3378932038982742500, "line_mean": 41.845659164, "line_max": 155, "alpha_frac": 0.6686179594, "autogenerated": fal...
__author__ = 'niccolo' import struct class Container(object): def __init__(self, data_list): if len(data_list) != 7: print "input error" raise NameError('Input Error: list length must be 7, given ' + str(len(data_list))) self.measurement_time = data_list[0] self.sen...
{ "repo_name": "oceansystemslab/evologics_driver", "path": "src/usbl_packer.py", "copies": "1", "size": "1488", "license": "bsd-3-clause", "hash": -9080005049618987000, "line_mean": 34.4285714286, "line_max": 112, "alpha_frac": 0.5181451613, "autogenerated": false, "ratio": 4.415430267062314, "c...
__author__ = 'nicholasclarke' import os import sys from pdfminer.pdfinterp import PDFPageInterpreter, PDFResourceManager from pdfminer.pdfpage import PDFPage from pdfminer.converter import XMLConverter from pdfminer.layout import LAParams def parse_pdfs(pdf_filenames): # Set parameters pagenos = set() max...
{ "repo_name": "nicholasgodfreyclarke/Finance-Analysis", "path": "Parse_Pdf.py", "copies": "1", "size": "1947", "license": "mit", "hash": 2384076239363000000, "line_mean": 31.4666666667, "line_max": 106, "alpha_frac": 0.6183872625, "autogenerated": false, "ratio": 3.9096385542168677, "config_tes...
__author__ = 'nicholasclarke' # Requires Firefox to be installed. import sys from selenium import webdriver from selenium.webdriver.common.keys import Keys from selenium.webdriver.support.ui import Select import os import glob def download_estatements(account_details): #Read command line arguments. registra...
{ "repo_name": "nicholasgodfreyclarke/Finance-Analysis", "path": "Download_Estatements.py", "copies": "1", "size": "4997", "license": "mit", "hash": -6816206947545423000, "line_mean": 38.984, "line_max": 122, "alpha_frac": 0.5773464078, "autogenerated": false, "ratio": 4.231160033869602, "config...
__author__ = 'Nicholas C Pandolfi' import os import sys from .lrbuilder import cachebuild from .lrtools import ClosedError class copen(object): def __init__(self, file, overwrite = False): object.__init__(self) self.current = 1 self.filename = file self.lines, self.__cache = cacheb...
{ "repo_name": "nickpandolfi/linereader", "path": "previous/c_reader.py", "copies": "1", "size": "2050", "license": "mit", "hash": -4013033334097097000, "line_mean": 25.2820512821, "line_max": 91, "alpha_frac": 0.5556097561, "autogenerated": false, "ratio": 4.183673469387755, "config_test": fals...
__author__ = 'Nicholas C Pandolfi' import os import sys from .lrbuilder import construct, load, build from .lrtools import ClosedError, checkdate class dopen(object): def __init__(self, file): object.__init__(self) self.filename = file self.dirname = file[:file.index('.')] + '.lrdict' ...
{ "repo_name": "nickpandolfi/linereader", "path": "previous/d_reader.py", "copies": "1", "size": "2623", "license": "mit", "hash": 2085915804822375200, "line_mean": 26.914893617, "line_max": 91, "alpha_frac": 0.5566145635, "autogenerated": false, "ratio": 3.986322188449848, "config_test": false,...
__author__ = 'Nicholas C Pandolfi' import os import sys from .lrbuilder import objbuild from .lrtools import ClosedError class ropen(object): def __init__(self, file): object.__init__(self) self.filename = file self.file, self.__ref = objbuild(self.filename) self.file.seek(0) ...
{ "repo_name": "nickpandolfi/linereader", "path": "previous/r_reader.py", "copies": "1", "size": "2092", "license": "mit", "hash": 5027028661326923000, "line_mean": 24.2168674699, "line_max": 91, "alpha_frac": 0.5506692161, "autogenerated": false, "ratio": 3.924953095684803, "config_test": false...
__author__ = 'Nicholas C Pandolfi' import os import sys from .lrcompiler import cachebuild, BUFFERSIZE, cache from .lrtools import ClosedError from itertools import islice class copen(object): def __init__(self, file, overwrite = False): object.__init__(self) self.current = 1 self.filenam...
{ "repo_name": "nickpandolfi/linereader", "path": "build/lib/linereader/c_reader.py", "copies": "2", "size": "5031", "license": "mit", "hash": 4815403726657805000, "line_mean": 28.0809248555, "line_max": 91, "alpha_frac": 0.5146094216, "autogenerated": false, "ratio": 4.413157894736842, "config_...