repository_name
stringlengths
7
55
func_path_in_repository
stringlengths
4
223
func_name
stringlengths
1
134
whole_func_string
stringlengths
75
104k
language
stringclasses
1 value
func_code_string
stringlengths
75
104k
func_code_tokens
listlengths
19
28.4k
func_documentation_string
stringlengths
1
46.9k
func_documentation_tokens
listlengths
1
1.97k
split_name
stringclasses
1 value
func_code_url
stringlengths
87
315
cltrudeau/wrench
wrench/utils.py
ExtendedEnum.choices
def choices(cls): """Returns a "choices" list of tuples. Each member of the list is one of the possible items in the ``Enum``, with the first item in the pair being the value and the second the name. This is compatible with django's choices attribute in fields. :returns: ...
python
def choices(cls): """Returns a "choices" list of tuples. Each member of the list is one of the possible items in the ``Enum``, with the first item in the pair being the value and the second the name. This is compatible with django's choices attribute in fields. :returns: ...
[ "def", "choices", "(", "cls", ")", ":", "result", "=", "[", "]", "for", "name", ",", "member", "in", "cls", ".", "__members__", ".", "items", "(", ")", ":", "result", ".", "append", "(", "(", "member", ".", "value", ",", "name", ")", ")", "return...
Returns a "choices" list of tuples. Each member of the list is one of the possible items in the ``Enum``, with the first item in the pair being the value and the second the name. This is compatible with django's choices attribute in fields. :returns: List of tuples
[ "Returns", "a", "choices", "list", "of", "tuples", ".", "Each", "member", "of", "the", "list", "is", "one", "of", "the", "possible", "items", "in", "the", "Enum", "with", "the", "first", "item", "in", "the", "pair", "being", "the", "value", "and", "the...
train
https://github.com/cltrudeau/wrench/blob/bc231dd085050a63a87ff3eb8f0a863928f65a41/wrench/utils.py#L26-L39
mdomke/signaling
signaling/signal.py
Signal.emit
def emit(self, **kwargs): """Emit signal by calling all connected slots. The arguments supplied have to match the signal definition. Args: kwargs: Keyword arguments to be passed to connected slots. Raises: :exc:`InvalidEmit`: If arguments don't match signal spe...
python
def emit(self, **kwargs): """Emit signal by calling all connected slots. The arguments supplied have to match the signal definition. Args: kwargs: Keyword arguments to be passed to connected slots. Raises: :exc:`InvalidEmit`: If arguments don't match signal spe...
[ "def", "emit", "(", "self", ",", "*", "*", "kwargs", ")", ":", "self", ".", "_ensure_emit_kwargs", "(", "kwargs", ")", "for", "slot", "in", "self", ".", "slots", ":", "slot", "(", "*", "*", "kwargs", ")" ]
Emit signal by calling all connected slots. The arguments supplied have to match the signal definition. Args: kwargs: Keyword arguments to be passed to connected slots. Raises: :exc:`InvalidEmit`: If arguments don't match signal specification.
[ "Emit", "signal", "by", "calling", "all", "connected", "slots", "." ]
train
https://github.com/mdomke/signaling/blob/c51d769d78b787fea5364027d7fd00b5d268ef2c/signaling/signal.py#L14-L27
mdomke/signaling
signaling/signal.py
Signal.connect
def connect(self, slot): """Connect ``slot`` to this singal. Args: slot (callable): Callable object wich accepts keyword arguments. Raises: InvalidSlot: If ``slot`` doesn't accept keyword arguments. """ self._ensure_slot_args(slot) if not self.is...
python
def connect(self, slot): """Connect ``slot`` to this singal. Args: slot (callable): Callable object wich accepts keyword arguments. Raises: InvalidSlot: If ``slot`` doesn't accept keyword arguments. """ self._ensure_slot_args(slot) if not self.is...
[ "def", "connect", "(", "self", ",", "slot", ")", ":", "self", ".", "_ensure_slot_args", "(", "slot", ")", "if", "not", "self", ".", "is_connected", "(", "slot", ")", ":", "self", ".", "slots", ".", "append", "(", "slot", ")" ]
Connect ``slot`` to this singal. Args: slot (callable): Callable object wich accepts keyword arguments. Raises: InvalidSlot: If ``slot`` doesn't accept keyword arguments.
[ "Connect", "slot", "to", "this", "singal", "." ]
train
https://github.com/mdomke/signaling/blob/c51d769d78b787fea5364027d7fd00b5d268ef2c/signaling/signal.py#L39-L50
mdomke/signaling
signaling/signal.py
Signal.disconnect
def disconnect(self, slot): """Disconnect ``slot`` from this signal.""" if self.is_connected(slot): self.slots.remove(slot)
python
def disconnect(self, slot): """Disconnect ``slot`` from this signal.""" if self.is_connected(slot): self.slots.remove(slot)
[ "def", "disconnect", "(", "self", ",", "slot", ")", ":", "if", "self", ".", "is_connected", "(", "slot", ")", ":", "self", ".", "slots", ".", "remove", "(", "slot", ")" ]
Disconnect ``slot`` from this signal.
[ "Disconnect", "slot", "from", "this", "signal", "." ]
train
https://github.com/mdomke/signaling/blob/c51d769d78b787fea5364027d7fd00b5d268ef2c/signaling/signal.py#L63-L66
bwesterb/sarah
src/runtime.py
get_by_path
def get_by_path(path, _globals=None): """ Returns an object by <path>, importing modules if necessary """ if _globals is None: _globals = list() return _get_by_path(path.split('.'), _globals)
python
def get_by_path(path, _globals=None): """ Returns an object by <path>, importing modules if necessary """ if _globals is None: _globals = list() return _get_by_path(path.split('.'), _globals)
[ "def", "get_by_path", "(", "path", ",", "_globals", "=", "None", ")", ":", "if", "_globals", "is", "None", ":", "_globals", "=", "list", "(", ")", "return", "_get_by_path", "(", "path", ".", "split", "(", "'.'", ")", ",", "_globals", ")" ]
Returns an object by <path>, importing modules if necessary
[ "Returns", "an", "object", "by", "<path", ">", "importing", "modules", "if", "necessary" ]
train
https://github.com/bwesterb/sarah/blob/a9e46e875dfff1dc11255d714bb736e5eb697809/src/runtime.py#L84-L88
JukeboxPipeline/jukebox-core
src/jukeboxcore/gui/reftrackitemdata.py
reftrack_type_data
def reftrack_type_data(rt, role): """Return the data for the type (e.g. Asset, Alembic, Camera etc) :param rt: the :class:`jukeboxcore.reftrack.Reftrack` holds the data :type rt: :class:`jukeboxcore.reftrack.Reftrack` :param role: item data role :type role: QtCore.Qt.ItemDataRole :returns: data...
python
def reftrack_type_data(rt, role): """Return the data for the type (e.g. Asset, Alembic, Camera etc) :param rt: the :class:`jukeboxcore.reftrack.Reftrack` holds the data :type rt: :class:`jukeboxcore.reftrack.Reftrack` :param role: item data role :type role: QtCore.Qt.ItemDataRole :returns: data...
[ "def", "reftrack_type_data", "(", "rt", ",", "role", ")", ":", "if", "role", "==", "QtCore", ".", "Qt", ".", "DisplayRole", "or", "role", "==", "QtCore", ".", "Qt", ".", "EditRole", ":", "return", "rt", ".", "get_typ", "(", ")", "elif", "role", "==",...
Return the data for the type (e.g. Asset, Alembic, Camera etc) :param rt: the :class:`jukeboxcore.reftrack.Reftrack` holds the data :type rt: :class:`jukeboxcore.reftrack.Reftrack` :param role: item data role :type role: QtCore.Qt.ItemDataRole :returns: data for the type :rtype: depending on ro...
[ "Return", "the", "data", "for", "the", "type", "(", "e", ".", "g", ".", "Asset", "Alembic", "Camera", "etc", ")" ]
train
https://github.com/JukeboxPipeline/jukebox-core/blob/bac2280ca49940355270e4b69400ce9976ab2e6f/src/jukeboxcore/gui/reftrackitemdata.py#L22-L36
JukeboxPipeline/jukebox-core
src/jukeboxcore/gui/reftrackitemdata.py
reftrack_elementgrp_data
def reftrack_elementgrp_data(rt, role): """Return the data for the elementgrp (e.g. the Assettype or Sequence) :param rt: the :class:`jukeboxcore.reftrack.Reftrack` holds the data :type rt: :class:`jukeboxcore.reftrack.Reftrack` :param role: item data role :type role: QtCore.Qt.ItemDataRole :re...
python
def reftrack_elementgrp_data(rt, role): """Return the data for the elementgrp (e.g. the Assettype or Sequence) :param rt: the :class:`jukeboxcore.reftrack.Reftrack` holds the data :type rt: :class:`jukeboxcore.reftrack.Reftrack` :param role: item data role :type role: QtCore.Qt.ItemDataRole :re...
[ "def", "reftrack_elementgrp_data", "(", "rt", ",", "role", ")", ":", "element", "=", "rt", ".", "get_element", "(", ")", "if", "isinstance", "(", "element", ",", "djadapter", ".", "models", ".", "Shot", ")", ":", "egrp", "=", "element", ".", "sequence", ...
Return the data for the elementgrp (e.g. the Assettype or Sequence) :param rt: the :class:`jukeboxcore.reftrack.Reftrack` holds the data :type rt: :class:`jukeboxcore.reftrack.Reftrack` :param role: item data role :type role: QtCore.Qt.ItemDataRole :returns: data for the elementgrp :rtype: depe...
[ "Return", "the", "data", "for", "the", "elementgrp", "(", "e", ".", "g", ".", "the", "Assettype", "or", "Sequence", ")" ]
train
https://github.com/JukeboxPipeline/jukebox-core/blob/bac2280ca49940355270e4b69400ce9976ab2e6f/src/jukeboxcore/gui/reftrackitemdata.py#L39-L60
JukeboxPipeline/jukebox-core
src/jukeboxcore/gui/reftrackitemdata.py
reftrack_element_data
def reftrack_element_data(rt, role): """Return the data for the element (e.g. the Asset or Shot) :param rt: the :class:`jukeboxcore.reftrack.Reftrack` holds the data :type rt: :class:`jukeboxcore.reftrack.Reftrack` :param role: item data role :type role: QtCore.Qt.ItemDataRole :returns: data fo...
python
def reftrack_element_data(rt, role): """Return the data for the element (e.g. the Asset or Shot) :param rt: the :class:`jukeboxcore.reftrack.Reftrack` holds the data :type rt: :class:`jukeboxcore.reftrack.Reftrack` :param role: item data role :type role: QtCore.Qt.ItemDataRole :returns: data fo...
[ "def", "reftrack_element_data", "(", "rt", ",", "role", ")", ":", "element", "=", "rt", ".", "get_element", "(", ")", "if", "element", "is", "None", ":", "return", "if", "role", "==", "QtCore", ".", "Qt", ".", "DisplayRole", "or", "role", "==", "QtCore...
Return the data for the element (e.g. the Asset or Shot) :param rt: the :class:`jukeboxcore.reftrack.Reftrack` holds the data :type rt: :class:`jukeboxcore.reftrack.Reftrack` :param role: item data role :type role: QtCore.Qt.ItemDataRole :returns: data for the element :rtype: depending on role ...
[ "Return", "the", "data", "for", "the", "element", "(", "e", ".", "g", ".", "the", "Asset", "or", "Shot", ")" ]
train
https://github.com/JukeboxPipeline/jukebox-core/blob/bac2280ca49940355270e4b69400ce9976ab2e6f/src/jukeboxcore/gui/reftrackitemdata.py#L63-L78
JukeboxPipeline/jukebox-core
src/jukeboxcore/gui/reftrackitemdata.py
reftrack_task_data
def reftrack_task_data(rt, role): """Return the data for the task that is loaded by the reftrack :param rt: the :class:`jukeboxcore.reftrack.Reftrack` holds the data :type rt: :class:`jukeboxcore.reftrack.Reftrack` :param role: item data role :type role: QtCore.Qt.ItemDataRole :returns: data fo...
python
def reftrack_task_data(rt, role): """Return the data for the task that is loaded by the reftrack :param rt: the :class:`jukeboxcore.reftrack.Reftrack` holds the data :type rt: :class:`jukeboxcore.reftrack.Reftrack` :param role: item data role :type role: QtCore.Qt.ItemDataRole :returns: data fo...
[ "def", "reftrack_task_data", "(", "rt", ",", "role", ")", ":", "tfi", "=", "rt", ".", "get_taskfileinfo", "(", ")", "if", "not", "tfi", ":", "return", "return", "filesysitemdata", ".", "taskfileinfo_task_data", "(", "tfi", ",", "role", ")" ]
Return the data for the task that is loaded by the reftrack :param rt: the :class:`jukeboxcore.reftrack.Reftrack` holds the data :type rt: :class:`jukeboxcore.reftrack.Reftrack` :param role: item data role :type role: QtCore.Qt.ItemDataRole :returns: data for the task :rtype: depending on role ...
[ "Return", "the", "data", "for", "the", "task", "that", "is", "loaded", "by", "the", "reftrack" ]
train
https://github.com/JukeboxPipeline/jukebox-core/blob/bac2280ca49940355270e4b69400ce9976ab2e6f/src/jukeboxcore/gui/reftrackitemdata.py#L81-L95
JukeboxPipeline/jukebox-core
src/jukeboxcore/gui/reftrackitemdata.py
reftrack_rtype_data
def reftrack_rtype_data(rt, role): """Return the data for the releasetype that is loaded by the reftrack :param rt: the :class:`jukeboxcore.reftrack.Reftrack` holds the data :type rt: :class:`jukeboxcore.reftrack.Reftrack` :param role: item data role :type role: QtCore.Qt.ItemDataRole :returns:...
python
def reftrack_rtype_data(rt, role): """Return the data for the releasetype that is loaded by the reftrack :param rt: the :class:`jukeboxcore.reftrack.Reftrack` holds the data :type rt: :class:`jukeboxcore.reftrack.Reftrack` :param role: item data role :type role: QtCore.Qt.ItemDataRole :returns:...
[ "def", "reftrack_rtype_data", "(", "rt", ",", "role", ")", ":", "tfi", "=", "rt", ".", "get_taskfileinfo", "(", ")", "if", "not", "tfi", ":", "return", "return", "filesysitemdata", ".", "taskfileinfo_rtype_data", "(", "tfi", ",", "role", ")" ]
Return the data for the releasetype that is loaded by the reftrack :param rt: the :class:`jukeboxcore.reftrack.Reftrack` holds the data :type rt: :class:`jukeboxcore.reftrack.Reftrack` :param role: item data role :type role: QtCore.Qt.ItemDataRole :returns: data for the releasetype :rtype: depe...
[ "Return", "the", "data", "for", "the", "releasetype", "that", "is", "loaded", "by", "the", "reftrack" ]
train
https://github.com/JukeboxPipeline/jukebox-core/blob/bac2280ca49940355270e4b69400ce9976ab2e6f/src/jukeboxcore/gui/reftrackitemdata.py#L98-L112
JukeboxPipeline/jukebox-core
src/jukeboxcore/gui/reftrackitemdata.py
reftrack_descriptor_data
def reftrack_descriptor_data(rt, role): """Return the data for the descriptor that is loaded by the reftrack :param rt: the :class:`jukeboxcore.reftrack.Reftrack` holds the data :type rt: :class:`jukeboxcore.reftrack.Reftrack` :param role: item data role :type role: QtCore.Qt.ItemDataRole :retu...
python
def reftrack_descriptor_data(rt, role): """Return the data for the descriptor that is loaded by the reftrack :param rt: the :class:`jukeboxcore.reftrack.Reftrack` holds the data :type rt: :class:`jukeboxcore.reftrack.Reftrack` :param role: item data role :type role: QtCore.Qt.ItemDataRole :retu...
[ "def", "reftrack_descriptor_data", "(", "rt", ",", "role", ")", ":", "tfi", "=", "rt", ".", "get_taskfileinfo", "(", ")", "if", "not", "tfi", ":", "return", "return", "filesysitemdata", ".", "taskfileinfo_descriptor_data", "(", "tfi", ",", "role", ")" ]
Return the data for the descriptor that is loaded by the reftrack :param rt: the :class:`jukeboxcore.reftrack.Reftrack` holds the data :type rt: :class:`jukeboxcore.reftrack.Reftrack` :param role: item data role :type role: QtCore.Qt.ItemDataRole :returns: data for the descriptor :rtype: depend...
[ "Return", "the", "data", "for", "the", "descriptor", "that", "is", "loaded", "by", "the", "reftrack" ]
train
https://github.com/JukeboxPipeline/jukebox-core/blob/bac2280ca49940355270e4b69400ce9976ab2e6f/src/jukeboxcore/gui/reftrackitemdata.py#L115-L129
JukeboxPipeline/jukebox-core
src/jukeboxcore/gui/reftrackitemdata.py
reftrack_version_data
def reftrack_version_data(rt, role): """Return the data for the version that is loaded by the reftrack :param rt: the :class:`jukeboxcore.reftrack.Reftrack` holds the data :type rt: :class:`jukeboxcore.reftrack.Reftrack` :param role: item data role :type role: QtCore.Qt.ItemDataRole :returns: d...
python
def reftrack_version_data(rt, role): """Return the data for the version that is loaded by the reftrack :param rt: the :class:`jukeboxcore.reftrack.Reftrack` holds the data :type rt: :class:`jukeboxcore.reftrack.Reftrack` :param role: item data role :type role: QtCore.Qt.ItemDataRole :returns: d...
[ "def", "reftrack_version_data", "(", "rt", ",", "role", ")", ":", "tfi", "=", "rt", ".", "get_taskfileinfo", "(", ")", "if", "not", "tfi", ":", "return", "return", "filesysitemdata", ".", "taskfileinfo_version_data", "(", "tfi", ",", "role", ")" ]
Return the data for the version that is loaded by the reftrack :param rt: the :class:`jukeboxcore.reftrack.Reftrack` holds the data :type rt: :class:`jukeboxcore.reftrack.Reftrack` :param role: item data role :type role: QtCore.Qt.ItemDataRole :returns: data for the version :rtype: depending on...
[ "Return", "the", "data", "for", "the", "version", "that", "is", "loaded", "by", "the", "reftrack" ]
train
https://github.com/JukeboxPipeline/jukebox-core/blob/bac2280ca49940355270e4b69400ce9976ab2e6f/src/jukeboxcore/gui/reftrackitemdata.py#L132-L146
JukeboxPipeline/jukebox-core
src/jukeboxcore/gui/reftrackitemdata.py
reftrack_status_data
def reftrack_status_data(rt, role): """Return the data for the status :param rt: the :class:`jukeboxcore.reftrack.Reftrack` holds the data :type rt: :class:`jukeboxcore.reftrack.Reftrack` :param role: item data role :type role: QtCore.Qt.ItemDataRole :returns: data for the status :rtype: de...
python
def reftrack_status_data(rt, role): """Return the data for the status :param rt: the :class:`jukeboxcore.reftrack.Reftrack` holds the data :type rt: :class:`jukeboxcore.reftrack.Reftrack` :param role: item data role :type role: QtCore.Qt.ItemDataRole :returns: data for the status :rtype: de...
[ "def", "reftrack_status_data", "(", "rt", ",", "role", ")", ":", "status", "=", "rt", ".", "status", "(", ")", "if", "role", "==", "QtCore", ".", "Qt", ".", "DisplayRole", "or", "role", "==", "QtCore", ".", "Qt", ".", "EditRole", ":", "if", "status",...
Return the data for the status :param rt: the :class:`jukeboxcore.reftrack.Reftrack` holds the data :type rt: :class:`jukeboxcore.reftrack.Reftrack` :param role: item data role :type role: QtCore.Qt.ItemDataRole :returns: data for the status :rtype: depending on role :raises: None
[ "Return", "the", "data", "for", "the", "status" ]
train
https://github.com/JukeboxPipeline/jukebox-core/blob/bac2280ca49940355270e4b69400ce9976ab2e6f/src/jukeboxcore/gui/reftrackitemdata.py#L149-L165
JukeboxPipeline/jukebox-core
src/jukeboxcore/gui/reftrackitemdata.py
reftrack_uptodate_data
def reftrack_uptodate_data(rt, role): """Return the data for the uptodate status :param rt: the :class:`jukeboxcore.reftrack.Reftrack` holds the data :type rt: :class:`jukeboxcore.reftrack.Reftrack` :param role: item data role :type role: QtCore.Qt.ItemDataRole :returns: data for the uptodate s...
python
def reftrack_uptodate_data(rt, role): """Return the data for the uptodate status :param rt: the :class:`jukeboxcore.reftrack.Reftrack` holds the data :type rt: :class:`jukeboxcore.reftrack.Reftrack` :param role: item data role :type role: QtCore.Qt.ItemDataRole :returns: data for the uptodate s...
[ "def", "reftrack_uptodate_data", "(", "rt", ",", "role", ")", ":", "uptodate", "=", "rt", ".", "uptodate", "(", ")", "if", "role", "==", "QtCore", ".", "Qt", ".", "DisplayRole", "or", "role", "==", "QtCore", ".", "Qt", ".", "EditRole", ":", "if", "up...
Return the data for the uptodate status :param rt: the :class:`jukeboxcore.reftrack.Reftrack` holds the data :type rt: :class:`jukeboxcore.reftrack.Reftrack` :param role: item data role :type role: QtCore.Qt.ItemDataRole :returns: data for the uptodate status :rtype: depending on role :rais...
[ "Return", "the", "data", "for", "the", "uptodate", "status" ]
train
https://github.com/JukeboxPipeline/jukebox-core/blob/bac2280ca49940355270e4b69400ce9976ab2e6f/src/jukeboxcore/gui/reftrackitemdata.py#L168-L189
JukeboxPipeline/jukebox-core
src/jukeboxcore/gui/reftrackitemdata.py
reftrack_alien_data
def reftrack_alien_data(rt, role): """Return the data for the alien status :param rt: the :class:`jukeboxcore.reftrack.Reftrack` holds the data :type rt: :class:`jukeboxcore.reftrack.Reftrack` :param role: item data role :type role: QtCore.Qt.ItemDataRole :returns: data for the alien status ...
python
def reftrack_alien_data(rt, role): """Return the data for the alien status :param rt: the :class:`jukeboxcore.reftrack.Reftrack` holds the data :type rt: :class:`jukeboxcore.reftrack.Reftrack` :param role: item data role :type role: QtCore.Qt.ItemDataRole :returns: data for the alien status ...
[ "def", "reftrack_alien_data", "(", "rt", ",", "role", ")", ":", "alien", "=", "rt", ".", "alien", "(", ")", "if", "role", "==", "QtCore", ".", "Qt", ".", "DisplayRole", "or", "role", "==", "QtCore", ".", "Qt", ".", "EditRole", ":", "if", "alien", "...
Return the data for the alien status :param rt: the :class:`jukeboxcore.reftrack.Reftrack` holds the data :type rt: :class:`jukeboxcore.reftrack.Reftrack` :param role: item data role :type role: QtCore.Qt.ItemDataRole :returns: data for the alien status :rtype: depending on role :raises: No...
[ "Return", "the", "data", "for", "the", "alien", "status" ]
train
https://github.com/JukeboxPipeline/jukebox-core/blob/bac2280ca49940355270e4b69400ce9976ab2e6f/src/jukeboxcore/gui/reftrackitemdata.py#L192-L208
JukeboxPipeline/jukebox-core
src/jukeboxcore/gui/reftrackitemdata.py
reftrack_path_data
def reftrack_path_data(rt, role): """Return the data for the path that is loaded by the reftrack :param rt: the :class:`jukeboxcore.reftrack.Reftrack` holds the data :type rt: :class:`jukeboxcore.reftrack.Reftrack` :param role: item data role :type role: QtCore.Qt.ItemDataRole :returns: data fo...
python
def reftrack_path_data(rt, role): """Return the data for the path that is loaded by the reftrack :param rt: the :class:`jukeboxcore.reftrack.Reftrack` holds the data :type rt: :class:`jukeboxcore.reftrack.Reftrack` :param role: item data role :type role: QtCore.Qt.ItemDataRole :returns: data fo...
[ "def", "reftrack_path_data", "(", "rt", ",", "role", ")", ":", "tfi", "=", "rt", ".", "get_taskfileinfo", "(", ")", "if", "not", "tfi", ":", "return", "return", "filesysitemdata", ".", "taskfileinfo_path_data", "(", "tfi", ",", "role", ")" ]
Return the data for the path that is loaded by the reftrack :param rt: the :class:`jukeboxcore.reftrack.Reftrack` holds the data :type rt: :class:`jukeboxcore.reftrack.Reftrack` :param role: item data role :type role: QtCore.Qt.ItemDataRole :returns: data for the path :rtype: depending on role ...
[ "Return", "the", "data", "for", "the", "path", "that", "is", "loaded", "by", "the", "reftrack" ]
train
https://github.com/JukeboxPipeline/jukebox-core/blob/bac2280ca49940355270e4b69400ce9976ab2e6f/src/jukeboxcore/gui/reftrackitemdata.py#L211-L225
JukeboxPipeline/jukebox-core
src/jukeboxcore/gui/reftrackitemdata.py
reftrack_restricted_data
def reftrack_restricted_data(rt, role, attr): """Return the data for restriction of the given attr of the given reftrack :param rt: the :class:`jukeboxcore.reftrack.Reftrack` holds the data :type rt: :class:`jukeboxcore.reftrack.Reftrack` :param role: item data role :type role: QtCore.Qt.ItemDataRo...
python
def reftrack_restricted_data(rt, role, attr): """Return the data for restriction of the given attr of the given reftrack :param rt: the :class:`jukeboxcore.reftrack.Reftrack` holds the data :type rt: :class:`jukeboxcore.reftrack.Reftrack` :param role: item data role :type role: QtCore.Qt.ItemDataRo...
[ "def", "reftrack_restricted_data", "(", "rt", ",", "role", ",", "attr", ")", ":", "if", "role", "==", "QtCore", ".", "Qt", ".", "DisplayRole", ":", "if", "rt", ".", "is_restricted", "(", "getattr", "(", "rt", ",", "attr", ",", "None", ")", ")", ":", ...
Return the data for restriction of the given attr of the given reftrack :param rt: the :class:`jukeboxcore.reftrack.Reftrack` holds the data :type rt: :class:`jukeboxcore.reftrack.Reftrack` :param role: item data role :type role: QtCore.Qt.ItemDataRole :returns: data for the restriction :rtype:...
[ "Return", "the", "data", "for", "restriction", "of", "the", "given", "attr", "of", "the", "given", "reftrack" ]
train
https://github.com/JukeboxPipeline/jukebox-core/blob/bac2280ca49940355270e4b69400ce9976ab2e6f/src/jukeboxcore/gui/reftrackitemdata.py#L228-L243
JukeboxPipeline/jukebox-core
src/jukeboxcore/gui/reftrackitemdata.py
reftrack_object_data
def reftrack_object_data(rt, role): """Return the reftrack for REFTRACK_OBJECT_ROLE :param rt: the :class:`jukeboxcore.reftrack.Reftrack` holds the data :type rt: :class:`jukeboxcore.reftrack.Reftrack` :param role: item data role :type role: QtCore.Qt.ItemDataRole :returns: data for the id ...
python
def reftrack_object_data(rt, role): """Return the reftrack for REFTRACK_OBJECT_ROLE :param rt: the :class:`jukeboxcore.reftrack.Reftrack` holds the data :type rt: :class:`jukeboxcore.reftrack.Reftrack` :param role: item data role :type role: QtCore.Qt.ItemDataRole :returns: data for the id ...
[ "def", "reftrack_object_data", "(", "rt", ",", "role", ")", ":", "if", "role", "==", "QtCore", ".", "Qt", ".", "DisplayRole", ":", "return", "str", "(", "rt", ")", "if", "role", "==", "REFTRACK_OBJECT_ROLE", ":", "return", "rt" ]
Return the reftrack for REFTRACK_OBJECT_ROLE :param rt: the :class:`jukeboxcore.reftrack.Reftrack` holds the data :type rt: :class:`jukeboxcore.reftrack.Reftrack` :param role: item data role :type role: QtCore.Qt.ItemDataRole :returns: data for the id :rtype: depending on the role :raises: ...
[ "Return", "the", "reftrack", "for", "REFTRACK_OBJECT_ROLE" ]
train
https://github.com/JukeboxPipeline/jukebox-core/blob/bac2280ca49940355270e4b69400ce9976ab2e6f/src/jukeboxcore/gui/reftrackitemdata.py#L261-L275
JukeboxPipeline/jukebox-core
src/jukeboxcore/gui/reftrackitemdata.py
ReftrackItemData.data
def data(self, column, role): """Return the data for the specified column and role The column addresses one attribute of the data. :param column: the data column :type column: int :param role: the data role :type role: QtCore.Qt.ItemDataRole :returns: data depen...
python
def data(self, column, role): """Return the data for the specified column and role The column addresses one attribute of the data. :param column: the data column :type column: int :param role: the data role :type role: QtCore.Qt.ItemDataRole :returns: data depen...
[ "def", "data", "(", "self", ",", "column", ",", "role", ")", ":", "return", "self", ".", "columns", "[", "column", "]", "(", "self", ".", "_reftrack", ",", "role", ")" ]
Return the data for the specified column and role The column addresses one attribute of the data. :param column: the data column :type column: int :param role: the data role :type role: QtCore.Qt.ItemDataRole :returns: data depending on the role :rtype: ...
[ "Return", "the", "data", "for", "the", "specified", "column", "and", "role" ]
train
https://github.com/JukeboxPipeline/jukebox-core/blob/bac2280ca49940355270e4b69400ce9976ab2e6f/src/jukeboxcore/gui/reftrackitemdata.py#L321-L334
JukeboxPipeline/jukebox-core
src/jukeboxcore/gui/reftrackitemdata.py
ReftrackItemData.flags
def flags(self, column): """Return the item flags for the item Default is QtCore.Qt.ItemIsEnabled | QtCore.Qt.ItemIsSelectable :param column: the column to query :type column: int :returns: the item flags :rtype: QtCore.Qt.ItemFlags :raises: None """ ...
python
def flags(self, column): """Return the item flags for the item Default is QtCore.Qt.ItemIsEnabled | QtCore.Qt.ItemIsSelectable :param column: the column to query :type column: int :returns: the item flags :rtype: QtCore.Qt.ItemFlags :raises: None """ ...
[ "def", "flags", "(", "self", ",", "column", ")", ":", "return", "QtCore", ".", "Qt", ".", "ItemIsEnabled", "|", "QtCore", ".", "Qt", ".", "ItemIsSelectable", "|", "QtCore", ".", "Qt", ".", "ItemIsEditable" ]
Return the item flags for the item Default is QtCore.Qt.ItemIsEnabled | QtCore.Qt.ItemIsSelectable :param column: the column to query :type column: int :returns: the item flags :rtype: QtCore.Qt.ItemFlags :raises: None
[ "Return", "the", "item", "flags", "for", "the", "item" ]
train
https://github.com/JukeboxPipeline/jukebox-core/blob/bac2280ca49940355270e4b69400ce9976ab2e6f/src/jukeboxcore/gui/reftrackitemdata.py#L345-L356
JukeboxPipeline/jukebox-core
src/jukeboxcore/gui/reftrackitemdata.py
ReftrackSortFilterModel.filterAcceptsRow
def filterAcceptsRow(self, row, parentindex): """Return True, if the filter accepts the given row of the parent :param row: the row to filter :type row: :class:`int` :param parentindex: the parent index :type parentindex: :class:`QtCore.QModelIndex` :returns: True, if th...
python
def filterAcceptsRow(self, row, parentindex): """Return True, if the filter accepts the given row of the parent :param row: the row to filter :type row: :class:`int` :param parentindex: the parent index :type parentindex: :class:`QtCore.QModelIndex` :returns: True, if th...
[ "def", "filterAcceptsRow", "(", "self", ",", "row", ",", "parentindex", ")", ":", "if", "not", "super", "(", "ReftrackSortFilterModel", ",", "self", ")", ".", "filterAcceptsRow", "(", "row", ",", "parentindex", ")", ":", "return", "False", "if", "parentindex...
Return True, if the filter accepts the given row of the parent :param row: the row to filter :type row: :class:`int` :param parentindex: the parent index :type parentindex: :class:`QtCore.QModelIndex` :returns: True, if the filter accepts the row :rtype: :class:`bool` ...
[ "Return", "True", "if", "the", "filter", "accepts", "the", "given", "row", "of", "the", "parent" ]
train
https://github.com/JukeboxPipeline/jukebox-core/blob/bac2280ca49940355270e4b69400ce9976ab2e6f/src/jukeboxcore/gui/reftrackitemdata.py#L378-L401
JukeboxPipeline/jukebox-core
src/jukeboxcore/gui/reftrackitemdata.py
ReftrackSortFilterModel.filter_accept_reftrack
def filter_accept_reftrack(self, reftrack): """Return True, if the filter accepts the given reftrack :param reftrack: the reftrack to filter :type reftrack: :class:`jukeboxcore.reftrack.Reftrack` :returns: True, if the filter accepts the reftrack :rtype: :class:`bool` :r...
python
def filter_accept_reftrack(self, reftrack): """Return True, if the filter accepts the given reftrack :param reftrack: the reftrack to filter :type reftrack: :class:`jukeboxcore.reftrack.Reftrack` :returns: True, if the filter accepts the reftrack :rtype: :class:`bool` :r...
[ "def", "filter_accept_reftrack", "(", "self", ",", "reftrack", ")", ":", "if", "reftrack", ".", "status", "(", ")", "in", "self", ".", "_forbidden_status", ":", "return", "False", "if", "reftrack", ".", "get_typ", "(", ")", "in", "self", ".", "_forbidden_t...
Return True, if the filter accepts the given reftrack :param reftrack: the reftrack to filter :type reftrack: :class:`jukeboxcore.reftrack.Reftrack` :returns: True, if the filter accepts the reftrack :rtype: :class:`bool` :raises: None
[ "Return", "True", "if", "the", "filter", "accepts", "the", "given", "reftrack" ]
train
https://github.com/JukeboxPipeline/jukebox-core/blob/bac2280ca49940355270e4b69400ce9976ab2e6f/src/jukeboxcore/gui/reftrackitemdata.py#L403-L420
JukeboxPipeline/jukebox-core
src/jukeboxcore/gui/reftrackitemdata.py
ReftrackSortFilterModel.set_forbidden_statuses
def set_forbidden_statuses(self, statuses): """Set all forbidden status values :param statuses: a list with forbidden status values :type statuses: list :returns: None :rtype: None :raises: None """ if self._forbidden_status == statuses: retur...
python
def set_forbidden_statuses(self, statuses): """Set all forbidden status values :param statuses: a list with forbidden status values :type statuses: list :returns: None :rtype: None :raises: None """ if self._forbidden_status == statuses: retur...
[ "def", "set_forbidden_statuses", "(", "self", ",", "statuses", ")", ":", "if", "self", ".", "_forbidden_status", "==", "statuses", ":", "return", "self", ".", "_forbidden_status", "=", "statuses", "self", ".", "invalidateFilter", "(", ")" ]
Set all forbidden status values :param statuses: a list with forbidden status values :type statuses: list :returns: None :rtype: None :raises: None
[ "Set", "all", "forbidden", "status", "values" ]
train
https://github.com/JukeboxPipeline/jukebox-core/blob/bac2280ca49940355270e4b69400ce9976ab2e6f/src/jukeboxcore/gui/reftrackitemdata.py#L422-L434
JukeboxPipeline/jukebox-core
src/jukeboxcore/gui/reftrackitemdata.py
ReftrackSortFilterModel.set_forbidden_types
def set_forbidden_types(self, types): """Set all forbidden type values :param typees: a list with forbidden type values :type typees: list :returns: None :rtype: None :raises: None """ if self._forbidden_types == types: return self._fo...
python
def set_forbidden_types(self, types): """Set all forbidden type values :param typees: a list with forbidden type values :type typees: list :returns: None :rtype: None :raises: None """ if self._forbidden_types == types: return self._fo...
[ "def", "set_forbidden_types", "(", "self", ",", "types", ")", ":", "if", "self", ".", "_forbidden_types", "==", "types", ":", "return", "self", ".", "_forbidden_types", "=", "types", "self", ".", "invalidateFilter", "(", ")" ]
Set all forbidden type values :param typees: a list with forbidden type values :type typees: list :returns: None :rtype: None :raises: None
[ "Set", "all", "forbidden", "type", "values" ]
train
https://github.com/JukeboxPipeline/jukebox-core/blob/bac2280ca49940355270e4b69400ce9976ab2e6f/src/jukeboxcore/gui/reftrackitemdata.py#L445-L457
JukeboxPipeline/jukebox-core
src/jukeboxcore/gui/reftrackitemdata.py
ReftrackSortFilterModel.set_forbidden_uptodate
def set_forbidden_uptodate(self, uptodate): """Set all forbidden uptodate values :param uptodatees: a list with forbidden uptodate values :uptodate uptodatees: list :returns: None :ruptodate: None :raises: None """ if self._forbidden_uptodate == uptodate:...
python
def set_forbidden_uptodate(self, uptodate): """Set all forbidden uptodate values :param uptodatees: a list with forbidden uptodate values :uptodate uptodatees: list :returns: None :ruptodate: None :raises: None """ if self._forbidden_uptodate == uptodate:...
[ "def", "set_forbidden_uptodate", "(", "self", ",", "uptodate", ")", ":", "if", "self", ".", "_forbidden_uptodate", "==", "uptodate", ":", "return", "self", ".", "_forbidden_uptodate", "=", "uptodate", "self", ".", "invalidateFilter", "(", ")" ]
Set all forbidden uptodate values :param uptodatees: a list with forbidden uptodate values :uptodate uptodatees: list :returns: None :ruptodate: None :raises: None
[ "Set", "all", "forbidden", "uptodate", "values" ]
train
https://github.com/JukeboxPipeline/jukebox-core/blob/bac2280ca49940355270e4b69400ce9976ab2e6f/src/jukeboxcore/gui/reftrackitemdata.py#L468-L480
JukeboxPipeline/jukebox-core
src/jukeboxcore/gui/reftrackitemdata.py
ReftrackSortFilterModel.set_forbidden_alien
def set_forbidden_alien(self, alien): """Set all forbidden alien values :param alienes: a list with forbidden alien values :alien alienes: list :returns: None :ralien: None :raises: None """ if self._forbidden_alien == alien: return se...
python
def set_forbidden_alien(self, alien): """Set all forbidden alien values :param alienes: a list with forbidden alien values :alien alienes: list :returns: None :ralien: None :raises: None """ if self._forbidden_alien == alien: return se...
[ "def", "set_forbidden_alien", "(", "self", ",", "alien", ")", ":", "if", "self", ".", "_forbidden_alien", "==", "alien", ":", "return", "self", ".", "_forbidden_alien", "=", "alien", "self", ".", "invalidateFilter", "(", ")" ]
Set all forbidden alien values :param alienes: a list with forbidden alien values :alien alienes: list :returns: None :ralien: None :raises: None
[ "Set", "all", "forbidden", "alien", "values" ]
train
https://github.com/JukeboxPipeline/jukebox-core/blob/bac2280ca49940355270e4b69400ce9976ab2e6f/src/jukeboxcore/gui/reftrackitemdata.py#L491-L503
sloria/read_env
read_env.py
read_env
def read_env(path=None, environ=None, recurse=True): """Reads a .env file into ``environ`` (which defaults to ``os.environ``). If .env is not found in the directory from which this function is called, recurse up the directory tree until a .env file is found. """ environ = environ if environ is not N...
python
def read_env(path=None, environ=None, recurse=True): """Reads a .env file into ``environ`` (which defaults to ``os.environ``). If .env is not found in the directory from which this function is called, recurse up the directory tree until a .env file is found. """ environ = environ if environ is not N...
[ "def", "read_env", "(", "path", "=", "None", ",", "environ", "=", "None", ",", "recurse", "=", "True", ")", ":", "environ", "=", "environ", "if", "environ", "is", "not", "None", "else", "os", ".", "environ", "# By default, start search from the same file this ...
Reads a .env file into ``environ`` (which defaults to ``os.environ``). If .env is not found in the directory from which this function is called, recurse up the directory tree until a .env file is found.
[ "Reads", "a", ".", "env", "file", "into", "environ", "(", "which", "defaults", "to", "os", ".", "environ", ")", ".", "If", ".", "env", "is", "not", "found", "in", "the", "directory", "from", "which", "this", "function", "is", "called", "recurse", "up",...
train
https://github.com/sloria/read_env/blob/90c5a7b38d70f06cd96b5d9a7e68e422bb5bd605/read_env.py#L16-L46
sloria/read_env
read_env.py
parse_env
def parse_env(content): """Parse the content of a .env file (a line-delimited KEY=value format) into a dictionary mapping keys to values. """ values = {} for line in content.splitlines(): lexer = shlex.shlex(line, posix=True) tokens = list(lexer) # parses the assignment stat...
python
def parse_env(content): """Parse the content of a .env file (a line-delimited KEY=value format) into a dictionary mapping keys to values. """ values = {} for line in content.splitlines(): lexer = shlex.shlex(line, posix=True) tokens = list(lexer) # parses the assignment stat...
[ "def", "parse_env", "(", "content", ")", ":", "values", "=", "{", "}", "for", "line", "in", "content", ".", "splitlines", "(", ")", ":", "lexer", "=", "shlex", ".", "shlex", "(", "line", ",", "posix", "=", "True", ")", "tokens", "=", "list", "(", ...
Parse the content of a .env file (a line-delimited KEY=value format) into a dictionary mapping keys to values.
[ "Parse", "the", "content", "of", "a", ".", "env", "file", "(", "a", "line", "-", "delimited", "KEY", "=", "value", "format", ")", "into", "a", "dictionary", "mapping", "keys", "to", "values", "." ]
train
https://github.com/sloria/read_env/blob/90c5a7b38d70f06cd96b5d9a7e68e422bb5bd605/read_env.py#L51-L75
cnobile2012/pololu-motors
pololu/motors/qik2s9v1.py
Qik2s9v1.getError
def getError(self, device=DEFAULT_DEVICE_ID, message=True): """ Get the error message or value stored in the Qik 2s9v1 hardware. :Keywords: device : `int` The device is the integer number of the hardware devices ID and is only used with the Pololu Protocol. Def...
python
def getError(self, device=DEFAULT_DEVICE_ID, message=True): """ Get the error message or value stored in the Qik 2s9v1 hardware. :Keywords: device : `int` The device is the integer number of the hardware devices ID and is only used with the Pololu Protocol. Def...
[ "def", "getError", "(", "self", ",", "device", "=", "DEFAULT_DEVICE_ID", ",", "message", "=", "True", ")", ":", "return", "self", ".", "_getError", "(", "device", ",", "message", ")" ]
Get the error message or value stored in the Qik 2s9v1 hardware. :Keywords: device : `int` The device is the integer number of the hardware devices ID and is only used with the Pololu Protocol. Defaults to the hardware's default value. message : `bool` ...
[ "Get", "the", "error", "message", "or", "value", "stored", "in", "the", "Qik", "2s9v1", "hardware", "." ]
train
https://github.com/cnobile2012/pololu-motors/blob/453d2283a63cfe15cda96cad6dffa73372d52a7c/pololu/motors/qik2s9v1.py#L106-L123
cnobile2012/pololu-motors
pololu/motors/qik2s9v1.py
Qik2s9v1.getPWMFrequency
def getPWMFrequency(self, device=DEFAULT_DEVICE_ID, message=True): """ Get the motor shutdown on error status stored on the hardware device. :Keywords: device : `int` The device is the integer number of the hardware devices ID and is only used with the Pololu P...
python
def getPWMFrequency(self, device=DEFAULT_DEVICE_ID, message=True): """ Get the motor shutdown on error status stored on the hardware device. :Keywords: device : `int` The device is the integer number of the hardware devices ID and is only used with the Pololu P...
[ "def", "getPWMFrequency", "(", "self", ",", "device", "=", "DEFAULT_DEVICE_ID", ",", "message", "=", "True", ")", ":", "return", "self", ".", "_getPWMFrequency", "(", "device", ",", "message", ")" ]
Get the motor shutdown on error status stored on the hardware device. :Keywords: device : `int` The device is the integer number of the hardware devices ID and is only used with the Pololu Protocol. Defaults to the hardware's default value. message : `boo...
[ "Get", "the", "motor", "shutdown", "on", "error", "status", "stored", "on", "the", "hardware", "device", "." ]
train
https://github.com/cnobile2012/pololu-motors/blob/453d2283a63cfe15cda96cad6dffa73372d52a7c/pololu/motors/qik2s9v1.py#L140-L156
cnobile2012/pololu-motors
pololu/motors/qik2s9v1.py
Qik2s9v1.setDeviceID
def setDeviceID(self, value, device=DEFAULT_DEVICE_ID, message=True): """ Set the hardware device number. This is only needed if more that one device is on the same serial buss. :Parameters: value : `int` The device ID to set in the range of 0 - 127. :Keyw...
python
def setDeviceID(self, value, device=DEFAULT_DEVICE_ID, message=True): """ Set the hardware device number. This is only needed if more that one device is on the same serial buss. :Parameters: value : `int` The device ID to set in the range of 0 - 127. :Keyw...
[ "def", "setDeviceID", "(", "self", ",", "value", ",", "device", "=", "DEFAULT_DEVICE_ID", ",", "message", "=", "True", ")", ":", "return", "self", ".", "_setDeviceID", "(", "value", ",", "device", ",", "message", ")" ]
Set the hardware device number. This is only needed if more that one device is on the same serial buss. :Parameters: value : `int` The device ID to set in the range of 0 - 127. :Keywords: device : `int` The device is the integer number of the hardwar...
[ "Set", "the", "hardware", "device", "number", ".", "This", "is", "only", "needed", "if", "more", "that", "one", "device", "is", "on", "the", "same", "serial", "buss", "." ]
train
https://github.com/cnobile2012/pololu-motors/blob/453d2283a63cfe15cda96cad6dffa73372d52a7c/pololu/motors/qik2s9v1.py#L194-L222
cnobile2012/pololu-motors
pololu/motors/qik2s9v1.py
Qik2s9v1.setPWMFrequency
def setPWMFrequency(self, pwm, device=DEFAULT_DEVICE_ID, message=True): """ Set the PWM frequency. :Parameters: pwm : `int` The PWN frequency to set in hertz. :Keywords: device : `int` The device is the integer number of the hardware devices ...
python
def setPWMFrequency(self, pwm, device=DEFAULT_DEVICE_ID, message=True): """ Set the PWM frequency. :Parameters: pwm : `int` The PWN frequency to set in hertz. :Keywords: device : `int` The device is the integer number of the hardware devices ...
[ "def", "setPWMFrequency", "(", "self", ",", "pwm", ",", "device", "=", "DEFAULT_DEVICE_ID", ",", "message", "=", "True", ")", ":", "return", "self", ".", "_setPWMFrequency", "(", "pwm", ",", "device", ",", "message", ")" ]
Set the PWM frequency. :Parameters: pwm : `int` The PWN frequency to set in hertz. :Keywords: device : `int` The device is the integer number of the hardware devices ID and is only used with the Pololu Protocol. Defaults to the hardware's ...
[ "Set", "the", "PWM", "frequency", "." ]
train
https://github.com/cnobile2012/pololu-motors/blob/453d2283a63cfe15cda96cad6dffa73372d52a7c/pololu/motors/qik2s9v1.py#L224-L249
cnobile2012/pololu-motors
pololu/motors/qik2s9v1.py
Qik2s9v1.setMotorShutdown
def setMotorShutdown(self, value, device=DEFAULT_DEVICE_ID, message=True): """ Set the motor shutdown on error status stored on the hardware device. :Parameters: value : `int` An integer indicating the effect on the motors when an error occurs. A `1` will cause...
python
def setMotorShutdown(self, value, device=DEFAULT_DEVICE_ID, message=True): """ Set the motor shutdown on error status stored on the hardware device. :Parameters: value : `int` An integer indicating the effect on the motors when an error occurs. A `1` will cause...
[ "def", "setMotorShutdown", "(", "self", ",", "value", ",", "device", "=", "DEFAULT_DEVICE_ID", ",", "message", "=", "True", ")", ":", "return", "self", ".", "_setMotorShutdown", "(", "value", ",", "device", ",", "message", ")" ]
Set the motor shutdown on error status stored on the hardware device. :Parameters: value : `int` An integer indicating the effect on the motors when an error occurs. A `1` will cause the cause the motors to stop on an error and a `0` will ignore errors keeping the ...
[ "Set", "the", "motor", "shutdown", "on", "error", "status", "stored", "on", "the", "hardware", "device", "." ]
train
https://github.com/cnobile2012/pololu-motors/blob/453d2283a63cfe15cda96cad6dffa73372d52a7c/pololu/motors/qik2s9v1.py#L251-L279
cnobile2012/pololu-motors
pololu/motors/qik2s9v1.py
Qik2s9v1.setSerialTimeout
def setSerialTimeout(self, timeout, device=DEFAULT_DEVICE_ID, message=True): """ Set the serial timeout on the hardware device. Setting the serial timeout to anything other than zero will cause an error if the serial line is inactive for the time set. This may not be a good thin...
python
def setSerialTimeout(self, timeout, device=DEFAULT_DEVICE_ID, message=True): """ Set the serial timeout on the hardware device. Setting the serial timeout to anything other than zero will cause an error if the serial line is inactive for the time set. This may not be a good thin...
[ "def", "setSerialTimeout", "(", "self", ",", "timeout", ",", "device", "=", "DEFAULT_DEVICE_ID", ",", "message", "=", "True", ")", ":", "return", "self", ".", "_setSerialTimeout", "(", "timeout", ",", "device", ",", "message", ")" ]
Set the serial timeout on the hardware device. Setting the serial timeout to anything other than zero will cause an error if the serial line is inactive for the time set. This may not be a good thing as leaving the Qik idle may be a required event. Why would you want the Qik to report a...
[ "Set", "the", "serial", "timeout", "on", "the", "hardware", "device", "." ]
train
https://github.com/cnobile2012/pololu-motors/blob/453d2283a63cfe15cda96cad6dffa73372d52a7c/pololu/motors/qik2s9v1.py#L281-L331
cnobile2012/pololu-motors
pololu/motors/qik2s9v1.py
Qik2s9v1.setM0Coast
def setM0Coast(self, device=DEFAULT_DEVICE_ID): """ Set motor 0 to coast. :Keywords: device : `int` The device is the integer number of the hardware devices ID and is only used with the Pololu Protocol. Defaults to the hardware's default value. ...
python
def setM0Coast(self, device=DEFAULT_DEVICE_ID): """ Set motor 0 to coast. :Keywords: device : `int` The device is the integer number of the hardware devices ID and is only used with the Pololu Protocol. Defaults to the hardware's default value. ...
[ "def", "setM0Coast", "(", "self", ",", "device", "=", "DEFAULT_DEVICE_ID", ")", ":", "cmd", "=", "self", ".", "_COMMAND", ".", "get", "(", "'m0-coast'", ")", "self", ".", "_writeData", "(", "cmd", ",", "device", ")" ]
Set motor 0 to coast. :Keywords: device : `int` The device is the integer number of the hardware devices ID and is only used with the Pololu Protocol. Defaults to the hardware's default value. :Exceptions: * `SerialTimeoutException` I...
[ "Set", "motor", "0", "to", "coast", "." ]
train
https://github.com/cnobile2012/pololu-motors/blob/453d2283a63cfe15cda96cad6dffa73372d52a7c/pololu/motors/qik2s9v1.py#L333-L350
cnobile2012/pololu-motors
pololu/motors/qik2s9v1.py
Qik2s9v1.setM1Coast
def setM1Coast(self, device=DEFAULT_DEVICE_ID): """ Set motor 1 to coast. :Keywords: device : `int` The device is the integer number of the hardware devices ID and is only used with the Pololu Protocol. Defaults to the hardware's default value. ...
python
def setM1Coast(self, device=DEFAULT_DEVICE_ID): """ Set motor 1 to coast. :Keywords: device : `int` The device is the integer number of the hardware devices ID and is only used with the Pololu Protocol. Defaults to the hardware's default value. ...
[ "def", "setM1Coast", "(", "self", ",", "device", "=", "DEFAULT_DEVICE_ID", ")", ":", "cmd", "=", "self", ".", "_COMMAND", ".", "get", "(", "'m1-coast'", ")", "self", ".", "_writeData", "(", "cmd", ",", "device", ")" ]
Set motor 1 to coast. :Keywords: device : `int` The device is the integer number of the hardware devices ID and is only used with the Pololu Protocol. Defaults to the hardware's default value. :Exceptions: * `SerialTimeoutException` I...
[ "Set", "motor", "1", "to", "coast", "." ]
train
https://github.com/cnobile2012/pololu-motors/blob/453d2283a63cfe15cda96cad6dffa73372d52a7c/pololu/motors/qik2s9v1.py#L352-L369
JukeboxPipeline/jukebox-core
src/jukeboxcore/gui/actionreport.py
create_action_model
def create_action_model(actioncollection): """Create and return a new model for the given actioncollection :param actioncollection: the action collection that should get a model :type actioncollection: :class:`jukeboxcore.action.ActionCollection` :returns: the created model :rtype: :class:`TreeMode...
python
def create_action_model(actioncollection): """Create and return a new model for the given actioncollection :param actioncollection: the action collection that should get a model :type actioncollection: :class:`jukeboxcore.action.ActionCollection` :returns: the created model :rtype: :class:`TreeMode...
[ "def", "create_action_model", "(", "actioncollection", ")", ":", "rootdata", "=", "ListItemData", "(", "[", "\"Name\"", ",", "\"Description\"", ",", "\"Status\"", ",", "\"Message\"", ",", "\"Traceback\"", "]", ")", "root", "=", "TreeItem", "(", "rootdata", ")", ...
Create and return a new model for the given actioncollection :param actioncollection: the action collection that should get a model :type actioncollection: :class:`jukeboxcore.action.ActionCollection` :returns: the created model :rtype: :class:`TreeModel` :raises: None
[ "Create", "and", "return", "a", "new", "model", "for", "the", "given", "actioncollection" ]
train
https://github.com/JukeboxPipeline/jukebox-core/blob/bac2280ca49940355270e4b69400ce9976ab2e6f/src/jukeboxcore/gui/actionreport.py#L96-L110
JukeboxPipeline/jukebox-core
src/jukeboxcore/gui/actionreport.py
ActionItemData.data
def data(self, column, role): """Return the data for the specified column and role Column 0: The name of the action Column 1: The description of the action Column 2: The status value Column 3: The status message Column 4: The traceback :param column: the data co...
python
def data(self, column, role): """Return the data for the specified column and role Column 0: The name of the action Column 1: The description of the action Column 2: The status value Column 3: The status message Column 4: The traceback :param column: the data co...
[ "def", "data", "(", "self", ",", "column", ",", "role", ")", ":", "if", "role", "==", "QtCore", ".", "Qt", ".", "DisplayRole", ":", "if", "column", "==", "0", ":", "return", "self", ".", "_au", ".", "name", "if", "column", "==", "1", ":", "return...
Return the data for the specified column and role Column 0: The name of the action Column 1: The description of the action Column 2: The status value Column 3: The status message Column 4: The traceback :param column: the data column :type column: int :p...
[ "Return", "the", "data", "for", "the", "specified", "column", "and", "role" ]
train
https://github.com/JukeboxPipeline/jukebox-core/blob/bac2280ca49940355270e4b69400ce9976ab2e6f/src/jukeboxcore/gui/actionreport.py#L27-L58
JukeboxPipeline/jukebox-core
src/jukeboxcore/gui/actionreport.py
ActionItemData.flags
def flags(self, column): """Return the item flags for the item Default is QtCore.Qt.ItemIsEnabled | QtCore.Qt.ItemIsSelectable Column 4 is also editable. :param column: the column to query :type column: int :returns: the item flags. :rtype: QtCore.Qt.ItemFlags ...
python
def flags(self, column): """Return the item flags for the item Default is QtCore.Qt.ItemIsEnabled | QtCore.Qt.ItemIsSelectable Column 4 is also editable. :param column: the column to query :type column: int :returns: the item flags. :rtype: QtCore.Qt.ItemFlags ...
[ "def", "flags", "(", "self", ",", "column", ")", ":", "flags", "=", "super", "(", "ActionItemData", ",", "self", ")", ".", "flags", "(", "column", ")", "if", "(", "column", "==", "3", "and", "self", ".", "_au", ".", "status", ".", "message", ")", ...
Return the item flags for the item Default is QtCore.Qt.ItemIsEnabled | QtCore.Qt.ItemIsSelectable Column 4 is also editable. :param column: the column to query :type column: int :returns: the item flags. :rtype: QtCore.Qt.ItemFlags :raises: None
[ "Return", "the", "item", "flags", "for", "the", "item" ]
train
https://github.com/JukeboxPipeline/jukebox-core/blob/bac2280ca49940355270e4b69400ce9976ab2e6f/src/jukeboxcore/gui/actionreport.py#L78-L93
ericflo/hurricane
hurricane/handlers/base.py
BaseHandler.auto_subscribe
def auto_subscribe(self, app_manager): """Called to subscribe the handlers on init.""" for handler in app_manager.handler_classes: app_manager.subscribe(handler.channel(), self)
python
def auto_subscribe(self, app_manager): """Called to subscribe the handlers on init.""" for handler in app_manager.handler_classes: app_manager.subscribe(handler.channel(), self)
[ "def", "auto_subscribe", "(", "self", ",", "app_manager", ")", ":", "for", "handler", "in", "app_manager", ".", "handler_classes", ":", "app_manager", ".", "subscribe", "(", "handler", ".", "channel", "(", ")", ",", "self", ")" ]
Called to subscribe the handlers on init.
[ "Called", "to", "subscribe", "the", "handlers", "on", "init", "." ]
train
https://github.com/ericflo/hurricane/blob/c192b711b2b1c06a386d1a1a47f538b13a659cde/hurricane/handlers/base.py#L23-L26
GearPlug/paymentsos-python
paymentsos/payments.py
Payment.create_payment
def create_payment(self, *, amount, currency, order=None, customer_id=None, billing_address=None, shipping_address=None, additional_details=None, statement_soft_descriptor=None): """ Creates a payment object, which provides a single reference to all the transactions that make up a...
python
def create_payment(self, *, amount, currency, order=None, customer_id=None, billing_address=None, shipping_address=None, additional_details=None, statement_soft_descriptor=None): """ Creates a payment object, which provides a single reference to all the transactions that make up a...
[ "def", "create_payment", "(", "self", ",", "*", ",", "amount", ",", "currency", ",", "order", "=", "None", ",", "customer_id", "=", "None", ",", "billing_address", "=", "None", ",", "shipping_address", "=", "None", ",", "additional_details", "=", "None", "...
Creates a payment object, which provides a single reference to all the transactions that make up a payment. This is the first step for all financial transactions. Args: amount: Amount must be greater than 0. The amount is formatted in Minor Units format. currency: The three char...
[ "Creates", "a", "payment", "object", "which", "provides", "a", "single", "reference", "to", "all", "the", "transactions", "that", "make", "up", "a", "payment", ".", "This", "is", "the", "first", "step", "for", "all", "financial", "transactions", "." ]
train
https://github.com/GearPlug/paymentsos-python/blob/2f32ba83ae890c96799b71d49fc6740bc1081f89/paymentsos/payments.py#L6-L45
zmiller91/aws-lambda-api-builder
api_builder/zlab.py
get_module_parser
def get_module_parser(mod, modname, parents=[], add_help=True): """ Returns an argument parser for the sub-command's CLI. :param mod: the sub-command's python module :param modnam: the string name of the python module :return: ArgumentParser """ return argparse.ArgumentParser( us...
python
def get_module_parser(mod, modname, parents=[], add_help=True): """ Returns an argument parser for the sub-command's CLI. :param mod: the sub-command's python module :param modnam: the string name of the python module :return: ArgumentParser """ return argparse.ArgumentParser( us...
[ "def", "get_module_parser", "(", "mod", ",", "modname", ",", "parents", "=", "[", "]", ",", "add_help", "=", "True", ")", ":", "return", "argparse", ".", "ArgumentParser", "(", "usage", "=", "configuration", ".", "EXECUTABLE_NAME", "+", "' '", "+", "modnam...
Returns an argument parser for the sub-command's CLI. :param mod: the sub-command's python module :param modnam: the string name of the python module :return: ArgumentParser
[ "Returns", "an", "argument", "parser", "for", "the", "sub", "-", "command", "s", "CLI", "." ]
train
https://github.com/zmiller91/aws-lambda-api-builder/blob/86026b5c134faa33eaa1e1268e0206cb074e3285/api_builder/zlab.py#L8-L19
zmiller91/aws-lambda-api-builder
api_builder/zlab.py
get_application_parser
def get_application_parser(commands): """ Builds an argument parser for the application's CLI. :param commands: :return: ArgumentParser """ parser = argparse.ArgumentParser( description=configuration.APPLICATION_DESCRIPTION, usage =configuration.EXECUTABLE_NAME + ' [sub-command...
python
def get_application_parser(commands): """ Builds an argument parser for the application's CLI. :param commands: :return: ArgumentParser """ parser = argparse.ArgumentParser( description=configuration.APPLICATION_DESCRIPTION, usage =configuration.EXECUTABLE_NAME + ' [sub-command...
[ "def", "get_application_parser", "(", "commands", ")", ":", "parser", "=", "argparse", ".", "ArgumentParser", "(", "description", "=", "configuration", ".", "APPLICATION_DESCRIPTION", ",", "usage", "=", "configuration", ".", "EXECUTABLE_NAME", "+", "' [sub-command] [o...
Builds an argument parser for the application's CLI. :param commands: :return: ArgumentParser
[ "Builds", "an", "argument", "parser", "for", "the", "application", "s", "CLI", "." ]
train
https://github.com/zmiller91/aws-lambda-api-builder/blob/86026b5c134faa33eaa1e1268e0206cb074e3285/api_builder/zlab.py#L22-L41
botswana-harvard/edc-registration
edc_registration/model_mixins/updates_or_creates_registered_subject_model_mixin.py
UpdatesOrCreatesRegistrationModelMixin.registration_update_or_create
def registration_update_or_create(self): """Creates or Updates the registration model with attributes from this instance. Called from the signal """ if not getattr(self, self.registration_unique_field): raise UpdatesOrCreatesRegistrationModelError( f'...
python
def registration_update_or_create(self): """Creates or Updates the registration model with attributes from this instance. Called from the signal """ if not getattr(self, self.registration_unique_field): raise UpdatesOrCreatesRegistrationModelError( f'...
[ "def", "registration_update_or_create", "(", "self", ")", ":", "if", "not", "getattr", "(", "self", ",", "self", ".", "registration_unique_field", ")", ":", "raise", "UpdatesOrCreatesRegistrationModelError", "(", "f'Cannot update or create RegisteredSubject. '", "f'Field va...
Creates or Updates the registration model with attributes from this instance. Called from the signal
[ "Creates", "or", "Updates", "the", "registration", "model", "with", "attributes", "from", "this", "instance", "." ]
train
https://github.com/botswana-harvard/edc-registration/blob/3daca624a496945fd4536488f6f80790bbecc081/edc_registration/model_mixins/updates_or_creates_registered_subject_model_mixin.py#L22-L46
botswana-harvard/edc-registration
edc_registration/model_mixins/updates_or_creates_registered_subject_model_mixin.py
UpdatesOrCreatesRegistrationModelMixin.registration_options
def registration_options(self): """Gathers values for common attributes between the registration model and this instance. """ registration_options = {} rs = self.registration_model() for k, v in self.__dict__.items(): if k not in DEFAULT_BASE_FIELDS + ['_state...
python
def registration_options(self): """Gathers values for common attributes between the registration model and this instance. """ registration_options = {} rs = self.registration_model() for k, v in self.__dict__.items(): if k not in DEFAULT_BASE_FIELDS + ['_state...
[ "def", "registration_options", "(", "self", ")", ":", "registration_options", "=", "{", "}", "rs", "=", "self", ".", "registration_model", "(", ")", "for", "k", ",", "v", "in", "self", ".", "__dict__", ".", "items", "(", ")", ":", "if", "k", "not", "...
Gathers values for common attributes between the registration model and this instance.
[ "Gathers", "values", "for", "common", "attributes", "between", "the", "registration", "model", "and", "this", "instance", "." ]
train
https://github.com/botswana-harvard/edc-registration/blob/3daca624a496945fd4536488f6f80790bbecc081/edc_registration/model_mixins/updates_or_creates_registered_subject_model_mixin.py#L82-L100
lbusoni/pysilico
pysilico/gui/image_show_widget/image_show_basic_widget.py
ImageShowBasicWidget.setImage
def setImage(self, img, autoRange=True, useAutoLevels=None, levels=None, axes=None, pos=None, scale=None, transform=None, ): """ Set the image to be di...
python
def setImage(self, img, autoRange=True, useAutoLevels=None, levels=None, axes=None, pos=None, scale=None, transform=None, ): """ Set the image to be di...
[ "def", "setImage", "(", "self", ",", "img", ",", "autoRange", "=", "True", ",", "useAutoLevels", "=", "None", ",", "levels", "=", "None", ",", "axes", "=", "None", ",", "pos", "=", "None", ",", "scale", "=", "None", ",", "transform", "=", "None", "...
Set the image to be displayed in the widget. ================== =========================================================================== **Arguments:** img (numpy array) the image to be displayed. See :func:`ImageItem.setImage` and *notes* below. ...
[ "Set", "the", "image", "to", "be", "displayed", "in", "the", "widget", "." ]
train
https://github.com/lbusoni/pysilico/blob/44872c8c202bedc8af5d7ac0cd2971912a59a365/pysilico/gui/image_show_widget/image_show_basic_widget.py#L362-L475
lbusoni/pysilico
pysilico/gui/image_show_widget/image_show_basic_widget.py
ImageShowBasicWidget._getProcessedImage
def _getProcessedImage(self): """Returns the image data after it has been processed by any normalization options in use. This method also sets the attributes self.levelMin and self.levelMax to indicate the range of data in the image.""" if self.imageDisp is None: self.imageD...
python
def _getProcessedImage(self): """Returns the image data after it has been processed by any normalization options in use. This method also sets the attributes self.levelMin and self.levelMax to indicate the range of data in the image.""" if self.imageDisp is None: self.imageD...
[ "def", "_getProcessedImage", "(", "self", ")", ":", "if", "self", ".", "imageDisp", "is", "None", ":", "self", ".", "imageDisp", "=", "self", ".", "image", "self", ".", "levelMin", ",", "self", ".", "levelMax", "=", "self", ".", "_quickLevels", "(", "s...
Returns the image data after it has been processed by any normalization options in use. This method also sets the attributes self.levelMin and self.levelMax to indicate the range of data in the image.
[ "Returns", "the", "image", "data", "after", "it", "has", "been", "processed", "by", "any", "normalization", "options", "in", "use", ".", "This", "method", "also", "sets", "the", "attributes", "self", ".", "levelMin", "and", "self", ".", "levelMax", "to", "...
train
https://github.com/lbusoni/pysilico/blob/44872c8c202bedc8af5d7ac0cd2971912a59a365/pysilico/gui/image_show_widget/image_show_basic_widget.py#L504-L513
lbusoni/pysilico
pysilico/gui/image_show_widget/image_show_basic_widget.py
ImageShowBasicWidget._quickLevels
def _quickLevels(self, data): """ Estimate the min/max values of *data* by subsampling. """ while data.size > 1e6: ax = np.argmax(data.shape) sl = [slice(None)] * data.ndim sl[ax] = slice(None, None, 2) data = data[sl] return self._...
python
def _quickLevels(self, data): """ Estimate the min/max values of *data* by subsampling. """ while data.size > 1e6: ax = np.argmax(data.shape) sl = [slice(None)] * data.ndim sl[ax] = slice(None, None, 2) data = data[sl] return self._...
[ "def", "_quickLevels", "(", "self", ",", "data", ")", ":", "while", "data", ".", "size", ">", "1e6", ":", "ax", "=", "np", ".", "argmax", "(", "data", ".", "shape", ")", "sl", "=", "[", "slice", "(", "None", ")", "]", "*", "data", ".", "ndim", ...
Estimate the min/max values of *data* by subsampling.
[ "Estimate", "the", "min", "/", "max", "values", "of", "*", "data", "*", "by", "subsampling", "." ]
train
https://github.com/lbusoni/pysilico/blob/44872c8c202bedc8af5d7ac0cd2971912a59a365/pysilico/gui/image_show_widget/image_show_basic_widget.py#L516-L525
lbusoni/pysilico
pysilico/gui/image_show_widget/image_show_basic_widget.py
ImageShowBasicWidget.close
def close(self): """Closes the widget nicely, making sure to clear the graphics scene and release memory.""" self.ui.graphicsView.close() self.scene.clear() del self.image del self.imageDisp super(ImageShowBasicWidget, self).close() self.setParent(None)
python
def close(self): """Closes the widget nicely, making sure to clear the graphics scene and release memory.""" self.ui.graphicsView.close() self.scene.clear() del self.image del self.imageDisp super(ImageShowBasicWidget, self).close() self.setParent(None)
[ "def", "close", "(", "self", ")", ":", "self", ".", "ui", ".", "graphicsView", ".", "close", "(", ")", "self", ".", "scene", ".", "clear", "(", ")", "del", "self", ".", "image", "del", "self", ".", "imageDisp", "super", "(", "ImageShowBasicWidget", "...
Closes the widget nicely, making sure to clear the graphics scene and release memory.
[ "Closes", "the", "widget", "nicely", "making", "sure", "to", "clear", "the", "graphics", "scene", "and", "release", "memory", "." ]
train
https://github.com/lbusoni/pysilico/blob/44872c8c202bedc8af5d7ac0cd2971912a59a365/pysilico/gui/image_show_widget/image_show_basic_widget.py#L555-L562
6809/dragonlib
dragonlib/utils/logging_utils.py
setup_logging
def setup_logging(level, logger_name=None, handler=None, log_formatter=None): """ levels: 1 - hardcode DEBUG ;) 10 - DEBUG 20 - INFO 30 - WARNING 40 - ERROR 50 - CRITICAL/FATAL 99 - nearly off 100 - complete off """ root_logger = logging.ge...
python
def setup_logging(level, logger_name=None, handler=None, log_formatter=None): """ levels: 1 - hardcode DEBUG ;) 10 - DEBUG 20 - INFO 30 - WARNING 40 - ERROR 50 - CRITICAL/FATAL 99 - nearly off 100 - complete off """ root_logger = logging.ge...
[ "def", "setup_logging", "(", "level", ",", "logger_name", "=", "None", ",", "handler", "=", "None", ",", "log_formatter", "=", "None", ")", ":", "root_logger", "=", "logging", ".", "getLogger", "(", ")", "if", "logger_name", "is", "None", ":", "logger", ...
levels: 1 - hardcode DEBUG ;) 10 - DEBUG 20 - INFO 30 - WARNING 40 - ERROR 50 - CRITICAL/FATAL 99 - nearly off 100 - complete off
[ "levels", ":", "1", "-", "hardcode", "DEBUG", ";", ")", "10", "-", "DEBUG", "20", "-", "INFO", "30", "-", "WARNING", "40", "-", "ERROR", "50", "-", "CRITICAL", "/", "FATAL", "99", "-", "nearly", "off", "100", "-", "complete", "off" ]
train
https://github.com/6809/dragonlib/blob/faa4011e76c5857db96efdb4199e2fd49711e999/dragonlib/utils/logging_utils.py#L55-L100
JukeboxPipeline/jukebox-core
src/jukeboxcore/addons/guerilla/guerillamgmt.py
ProjectCreatorDialog.create_prj
def create_prj(self, ): """Create a project and store it in the self.project :returns: None :rtype: None :raises: None """ name = self.name_le.text() short = self.short_le.text() path = self.path_le.text() semester = self.semester_le.text() ...
python
def create_prj(self, ): """Create a project and store it in the self.project :returns: None :rtype: None :raises: None """ name = self.name_le.text() short = self.short_le.text() path = self.path_le.text() semester = self.semester_le.text() ...
[ "def", "create_prj", "(", "self", ",", ")", ":", "name", "=", "self", ".", "name_le", ".", "text", "(", ")", "short", "=", "self", ".", "short_le", ".", "text", "(", ")", "path", "=", "self", ".", "path_le", ".", "text", "(", ")", "semester", "="...
Create a project and store it in the self.project :returns: None :rtype: None :raises: None
[ "Create", "a", "project", "and", "store", "it", "in", "the", "self", ".", "project" ]
train
https://github.com/JukeboxPipeline/jukebox-core/blob/bac2280ca49940355270e4b69400ce9976ab2e6f/src/jukeboxcore/addons/guerilla/guerillamgmt.py#L46-L63
JukeboxPipeline/jukebox-core
src/jukeboxcore/addons/guerilla/guerillamgmt.py
ProjectAdderDialog.add_project
def add_project(self, ): """Add a project and store it in the self.projects :returns: None :rtype: None :raises: None """ i = self.prj_tablev.currentIndex() item = i.internalPointer() if item: project = item.internal_data() if self...
python
def add_project(self, ): """Add a project and store it in the self.projects :returns: None :rtype: None :raises: None """ i = self.prj_tablev.currentIndex() item = i.internalPointer() if item: project = item.internal_data() if self...
[ "def", "add_project", "(", "self", ",", ")", ":", "i", "=", "self", ".", "prj_tablev", ".", "currentIndex", "(", ")", "item", "=", "i", ".", "internalPointer", "(", ")", "if", "item", ":", "project", "=", "item", ".", "internal_data", "(", ")", "if",...
Add a project and store it in the self.projects :returns: None :rtype: None :raises: None
[ "Add", "a", "project", "and", "store", "it", "in", "the", "self", ".", "projects" ]
train
https://github.com/JukeboxPipeline/jukebox-core/blob/bac2280ca49940355270e4b69400ce9976ab2e6f/src/jukeboxcore/addons/guerilla/guerillamgmt.py#L108-L126
JukeboxPipeline/jukebox-core
src/jukeboxcore/addons/guerilla/guerillamgmt.py
SequenceCreatorDialog.create_seq
def create_seq(self, ): """Create a sequence and store it in the self.sequence :returns: None :rtype: None :raises: None """ name = self.name_le.text() desc = self.desc_pte.toPlainText() try: seq = djadapter.models.Sequence(name=name, project=...
python
def create_seq(self, ): """Create a sequence and store it in the self.sequence :returns: None :rtype: None :raises: None """ name = self.name_le.text() desc = self.desc_pte.toPlainText() try: seq = djadapter.models.Sequence(name=name, project=...
[ "def", "create_seq", "(", "self", ",", ")", ":", "name", "=", "self", ".", "name_le", ".", "text", "(", ")", "desc", "=", "self", ".", "desc_pte", ".", "toPlainText", "(", ")", "try", ":", "seq", "=", "djadapter", ".", "models", ".", "Sequence", "(...
Create a sequence and store it in the self.sequence :returns: None :rtype: None :raises: None
[ "Create", "a", "sequence", "and", "store", "it", "in", "the", "self", ".", "sequence" ]
train
https://github.com/JukeboxPipeline/jukebox-core/blob/bac2280ca49940355270e4b69400ce9976ab2e6f/src/jukeboxcore/addons/guerilla/guerillamgmt.py#L150-L165
JukeboxPipeline/jukebox-core
src/jukeboxcore/addons/guerilla/guerillamgmt.py
AtypeCreatorDialog.create_atype
def create_atype(self, ): """Create a atype and store it in the self.atype :returns: None :rtype: None :raises: None """ name = self.name_le.text() desc = self.desc_pte.toPlainText() try: atype = djadapter.models.Atype(name=name, description=d...
python
def create_atype(self, ): """Create a atype and store it in the self.atype :returns: None :rtype: None :raises: None """ name = self.name_le.text() desc = self.desc_pte.toPlainText() try: atype = djadapter.models.Atype(name=name, description=d...
[ "def", "create_atype", "(", "self", ",", ")", ":", "name", "=", "self", ".", "name_le", ".", "text", "(", ")", "desc", "=", "self", ".", "desc_pte", ".", "toPlainText", "(", ")", "try", ":", "atype", "=", "djadapter", ".", "models", ".", "Atype", "...
Create a atype and store it in the self.atype :returns: None :rtype: None :raises: None
[ "Create", "a", "atype", "and", "store", "it", "in", "the", "self", ".", "atype" ]
train
https://github.com/JukeboxPipeline/jukebox-core/blob/bac2280ca49940355270e4b69400ce9976ab2e6f/src/jukeboxcore/addons/guerilla/guerillamgmt.py#L187-L204
JukeboxPipeline/jukebox-core
src/jukeboxcore/addons/guerilla/guerillamgmt.py
AtypeAdderDialog.add_atype
def add_atype(self, ): """Add a atype and store it in the self.atypes :returns: None :rtype: None :raises: None """ i = self.atype_tablev.currentIndex() item = i.internalPointer() if item: atype = item.internal_data() atype.project...
python
def add_atype(self, ): """Add a atype and store it in the self.atypes :returns: None :rtype: None :raises: None """ i = self.atype_tablev.currentIndex() item = i.internalPointer() if item: atype = item.internal_data() atype.project...
[ "def", "add_atype", "(", "self", ",", ")", ":", "i", "=", "self", ".", "atype_tablev", ".", "currentIndex", "(", ")", "item", "=", "i", ".", "internalPointer", "(", ")", "if", "item", ":", "atype", "=", "item", ".", "internal_data", "(", ")", "atype"...
Add a atype and store it in the self.atypes :returns: None :rtype: None :raises: None
[ "Add", "a", "atype", "and", "store", "it", "in", "the", "self", ".", "atypes" ]
train
https://github.com/JukeboxPipeline/jukebox-core/blob/bac2280ca49940355270e4b69400ce9976ab2e6f/src/jukeboxcore/addons/guerilla/guerillamgmt.py#L237-L250
JukeboxPipeline/jukebox-core
src/jukeboxcore/addons/guerilla/guerillamgmt.py
DepCreatorDialog.create_dep
def create_dep(self, ): """Create a dep and store it in the self.dep :returns: None :rtype: None :raises: None """ name = self.name_le.text() short = self.short_le.text() assetflag = self.asset_rb.isChecked() ordervalue = self.ordervalue_sb.value(...
python
def create_dep(self, ): """Create a dep and store it in the self.dep :returns: None :rtype: None :raises: None """ name = self.name_le.text() short = self.short_le.text() assetflag = self.asset_rb.isChecked() ordervalue = self.ordervalue_sb.value(...
[ "def", "create_dep", "(", "self", ",", ")", ":", "name", "=", "self", ".", "name_le", ".", "text", "(", ")", "short", "=", "self", ".", "short_le", ".", "text", "(", ")", "assetflag", "=", "self", ".", "asset_rb", ".", "isChecked", "(", ")", "order...
Create a dep and store it in the self.dep :returns: None :rtype: None :raises: None
[ "Create", "a", "dep", "and", "store", "it", "in", "the", "self", ".", "dep" ]
train
https://github.com/JukeboxPipeline/jukebox-core/blob/bac2280ca49940355270e4b69400ce9976ab2e6f/src/jukeboxcore/addons/guerilla/guerillamgmt.py#L272-L292
JukeboxPipeline/jukebox-core
src/jukeboxcore/addons/guerilla/guerillamgmt.py
DepAdderDialog.add_dep
def add_dep(self, ): """Add a dep and store it in the self.deps :returns: None :rtype: None :raises: None """ i = self.dep_tablev.currentIndex() item = i.internalPointer() if item: dep = item.internal_data() dep.projects.add(self._...
python
def add_dep(self, ): """Add a dep and store it in the self.deps :returns: None :rtype: None :raises: None """ i = self.dep_tablev.currentIndex() item = i.internalPointer() if item: dep = item.internal_data() dep.projects.add(self._...
[ "def", "add_dep", "(", "self", ",", ")", ":", "i", "=", "self", ".", "dep_tablev", ".", "currentIndex", "(", ")", "item", "=", "i", ".", "internalPointer", "(", ")", "if", "item", ":", "dep", "=", "item", ".", "internal_data", "(", ")", "dep", ".",...
Add a dep and store it in the self.deps :returns: None :rtype: None :raises: None
[ "Add", "a", "dep", "and", "store", "it", "in", "the", "self", ".", "deps" ]
train
https://github.com/JukeboxPipeline/jukebox-core/blob/bac2280ca49940355270e4b69400ce9976ab2e6f/src/jukeboxcore/addons/guerilla/guerillamgmt.py#L325-L338
JukeboxPipeline/jukebox-core
src/jukeboxcore/addons/guerilla/guerillamgmt.py
UserCreatorDialog.create_user
def create_user(self, ): """Create a user and store it in the self.user :returns: None :rtype: None :raises: None """ name = self.username_le.text() if not name: self.username_le.setPlaceholderText("Please provide a username.") return ...
python
def create_user(self, ): """Create a user and store it in the self.user :returns: None :rtype: None :raises: None """ name = self.username_le.text() if not name: self.username_le.setPlaceholderText("Please provide a username.") return ...
[ "def", "create_user", "(", "self", ",", ")", ":", "name", "=", "self", ".", "username_le", ".", "text", "(", ")", "if", "not", "name", ":", "self", ".", "username_le", ".", "setPlaceholderText", "(", "\"Please provide a username.\"", ")", "return", "first", ...
Create a user and store it in the self.user :returns: None :rtype: None :raises: None
[ "Create", "a", "user", "and", "store", "it", "in", "the", "self", ".", "user" ]
train
https://github.com/JukeboxPipeline/jukebox-core/blob/bac2280ca49940355270e4b69400ce9976ab2e6f/src/jukeboxcore/addons/guerilla/guerillamgmt.py#L365-L389
JukeboxPipeline/jukebox-core
src/jukeboxcore/addons/guerilla/guerillamgmt.py
UserAdderDialog.add_user
def add_user(self, ): """Add a user and store it in the self.users :returns: None :rtype: None :raises: None """ i = self.user_tablev.currentIndex() item = i.internalPointer() if item: user = item.internal_data() if self._project: ...
python
def add_user(self, ): """Add a user and store it in the self.users :returns: None :rtype: None :raises: None """ i = self.user_tablev.currentIndex() item = i.internalPointer() if item: user = item.internal_data() if self._project: ...
[ "def", "add_user", "(", "self", ",", ")", ":", "i", "=", "self", ".", "user_tablev", ".", "currentIndex", "(", ")", "item", "=", "i", ".", "internalPointer", "(", ")", "if", "item", ":", "user", "=", "item", ".", "internal_data", "(", ")", "if", "s...
Add a user and store it in the self.users :returns: None :rtype: None :raises: None
[ "Add", "a", "user", "and", "store", "it", "in", "the", "self", ".", "users" ]
train
https://github.com/JukeboxPipeline/jukebox-core/blob/bac2280ca49940355270e4b69400ce9976ab2e6f/src/jukeboxcore/addons/guerilla/guerillamgmt.py#L428-L444
JukeboxPipeline/jukebox-core
src/jukeboxcore/addons/guerilla/guerillamgmt.py
ShotCreatorDialog.create_shot
def create_shot(self, ): """Create a shot and store it in the self.shot :returns: None :rtype: None :raises: None """ name = self.name_le.text() if not name: self.name_le.setPlaceholderText("Please enter a name!") return desc = sel...
python
def create_shot(self, ): """Create a shot and store it in the self.shot :returns: None :rtype: None :raises: None """ name = self.name_le.text() if not name: self.name_le.setPlaceholderText("Please enter a name!") return desc = sel...
[ "def", "create_shot", "(", "self", ",", ")", ":", "name", "=", "self", ".", "name_le", ".", "text", "(", ")", "if", "not", "name", ":", "self", ".", "name_le", ".", "setPlaceholderText", "(", "\"Please enter a name!\"", ")", "return", "desc", "=", "self"...
Create a shot and store it in the self.shot :returns: None :rtype: None :raises: None
[ "Create", "a", "shot", "and", "store", "it", "in", "the", "self", ".", "shot" ]
train
https://github.com/JukeboxPipeline/jukebox-core/blob/bac2280ca49940355270e4b69400ce9976ab2e6f/src/jukeboxcore/addons/guerilla/guerillamgmt.py#L468-L486
JukeboxPipeline/jukebox-core
src/jukeboxcore/addons/guerilla/guerillamgmt.py
AssetCreatorDialog.create_asset
def create_asset(self, ): """Create a asset and store it in the self.asset :returns: None :rtype: None :raises: None """ name = self.name_le.text() if not name: self.name_le.setPlaceholderText("Please enter a name!") return desc = ...
python
def create_asset(self, ): """Create a asset and store it in the self.asset :returns: None :rtype: None :raises: None """ name = self.name_le.text() if not name: self.name_le.setPlaceholderText("Please enter a name!") return desc = ...
[ "def", "create_asset", "(", "self", ",", ")", ":", "name", "=", "self", ".", "name_le", ".", "text", "(", ")", "if", "not", "name", ":", "self", ".", "name_le", ".", "setPlaceholderText", "(", "\"Please enter a name!\"", ")", "return", "desc", "=", "self...
Create a asset and store it in the self.asset :returns: None :rtype: None :raises: None
[ "Create", "a", "asset", "and", "store", "it", "in", "the", "self", ".", "asset" ]
train
https://github.com/JukeboxPipeline/jukebox-core/blob/bac2280ca49940355270e4b69400ce9976ab2e6f/src/jukeboxcore/addons/guerilla/guerillamgmt.py#L524-L546
JukeboxPipeline/jukebox-core
src/jukeboxcore/addons/guerilla/guerillamgmt.py
AssetAdderDialog.add_asset
def add_asset(self, ): """Add a asset and store it in the self.assets :returns: None :rtype: None :raises: None """ i = self.asset_treev.currentIndex() item = i.internalPointer() if item: asset = item.internal_data() if not isinsta...
python
def add_asset(self, ): """Add a asset and store it in the self.assets :returns: None :rtype: None :raises: None """ i = self.asset_treev.currentIndex() item = i.internalPointer() if item: asset = item.internal_data() if not isinsta...
[ "def", "add_asset", "(", "self", ",", ")", ":", "i", "=", "self", ".", "asset_treev", ".", "currentIndex", "(", ")", "item", "=", "i", ".", "internalPointer", "(", ")", "if", "item", ":", "asset", "=", "item", ".", "internal_data", "(", ")", "if", ...
Add a asset and store it in the self.assets :returns: None :rtype: None :raises: None
[ "Add", "a", "asset", "and", "store", "it", "in", "the", "self", ".", "assets" ]
train
https://github.com/JukeboxPipeline/jukebox-core/blob/bac2280ca49940355270e4b69400ce9976ab2e6f/src/jukeboxcore/addons/guerilla/guerillamgmt.py#L592-L610
JukeboxPipeline/jukebox-core
src/jukeboxcore/addons/guerilla/guerillamgmt.py
TaskCreatorDialog.create_task
def create_task(self, ): """Create a task and store it in the self.task :returns: None :rtype: None :raises: None """ depi = self.dep_cb.currentIndex() assert depi >= 0 dep = self.deps[depi] deadline = self.deadline_de.dateTime().toPython() ...
python
def create_task(self, ): """Create a task and store it in the self.task :returns: None :rtype: None :raises: None """ depi = self.dep_cb.currentIndex() assert depi >= 0 dep = self.deps[depi] deadline = self.deadline_de.dateTime().toPython() ...
[ "def", "create_task", "(", "self", ",", ")", ":", "depi", "=", "self", ".", "dep_cb", ".", "currentIndex", "(", ")", "assert", "depi", ">=", "0", "dep", "=", "self", ".", "deps", "[", "depi", "]", "deadline", "=", "self", ".", "deadline_de", ".", "...
Create a task and store it in the self.task :returns: None :rtype: None :raises: None
[ "Create", "a", "task", "and", "store", "it", "in", "the", "self", ".", "task" ]
train
https://github.com/JukeboxPipeline/jukebox-core/blob/bac2280ca49940355270e4b69400ce9976ab2e6f/src/jukeboxcore/addons/guerilla/guerillamgmt.py#L646-L663
JukeboxPipeline/jukebox-core
src/jukeboxcore/addons/guerilla/guerillamgmt.py
GuerillaMGMTWin.setup_ui
def setup_ui(self, ): """Create all necessary ui elements for the tool :returns: None :rtype: None :raises: None """ log.debug("Setting up the ui") self.setup_prjs_page() self.setup_prj_page() self.setup_seq_page() self.setup_shot_page() ...
python
def setup_ui(self, ): """Create all necessary ui elements for the tool :returns: None :rtype: None :raises: None """ log.debug("Setting up the ui") self.setup_prjs_page() self.setup_prj_page() self.setup_seq_page() self.setup_shot_page() ...
[ "def", "setup_ui", "(", "self", ",", ")", ":", "log", ".", "debug", "(", "\"Setting up the ui\"", ")", "self", ".", "setup_prjs_page", "(", ")", "self", ".", "setup_prj_page", "(", ")", "self", ".", "setup_seq_page", "(", ")", "self", ".", "setup_shot_page...
Create all necessary ui elements for the tool :returns: None :rtype: None :raises: None
[ "Create", "all", "necessary", "ui", "elements", "for", "the", "tool" ]
train
https://github.com/JukeboxPipeline/jukebox-core/blob/bac2280ca49940355270e4b69400ce9976ab2e6f/src/jukeboxcore/addons/guerilla/guerillamgmt.py#L696-L713
JukeboxPipeline/jukebox-core
src/jukeboxcore/addons/guerilla/guerillamgmt.py
GuerillaMGMTWin.setup_prjs_page
def setup_prjs_page(self, ): """Create and set the model on the projects page :returns: None :rtype: None :raises: None """ self.prjs_tablev.horizontalHeader().setResizeMode(QtGui.QHeaderView.ResizeToContents) log.debug("Loading projects for projects page.") ...
python
def setup_prjs_page(self, ): """Create and set the model on the projects page :returns: None :rtype: None :raises: None """ self.prjs_tablev.horizontalHeader().setResizeMode(QtGui.QHeaderView.ResizeToContents) log.debug("Loading projects for projects page.") ...
[ "def", "setup_prjs_page", "(", "self", ",", ")", ":", "self", ".", "prjs_tablev", ".", "horizontalHeader", "(", ")", ".", "setResizeMode", "(", "QtGui", ".", "QHeaderView", ".", "ResizeToContents", ")", "log", ".", "debug", "(", "\"Loading projects for projects ...
Create and set the model on the projects page :returns: None :rtype: None :raises: None
[ "Create", "and", "set", "the", "model", "on", "the", "projects", "page" ]
train
https://github.com/JukeboxPipeline/jukebox-core/blob/bac2280ca49940355270e4b69400ce9976ab2e6f/src/jukeboxcore/addons/guerilla/guerillamgmt.py#L715-L731
JukeboxPipeline/jukebox-core
src/jukeboxcore/addons/guerilla/guerillamgmt.py
GuerillaMGMTWin.setup_prj_page
def setup_prj_page(self, ): """Create and set the model on the project page :returns: None :rtype: None :raises: None """ self.prj_seq_tablev.horizontalHeader().setResizeMode(QtGui.QHeaderView.ResizeToContents) self.prj_atype_tablev.horizontalHeader().setResizeMo...
python
def setup_prj_page(self, ): """Create and set the model on the project page :returns: None :rtype: None :raises: None """ self.prj_seq_tablev.horizontalHeader().setResizeMode(QtGui.QHeaderView.ResizeToContents) self.prj_atype_tablev.horizontalHeader().setResizeMo...
[ "def", "setup_prj_page", "(", "self", ",", ")", ":", "self", ".", "prj_seq_tablev", ".", "horizontalHeader", "(", ")", ".", "setResizeMode", "(", "QtGui", ".", "QHeaderView", ".", "ResizeToContents", ")", "self", ".", "prj_atype_tablev", ".", "horizontalHeader",...
Create and set the model on the project page :returns: None :rtype: None :raises: None
[ "Create", "and", "set", "the", "model", "on", "the", "project", "page" ]
train
https://github.com/JukeboxPipeline/jukebox-core/blob/bac2280ca49940355270e4b69400ce9976ab2e6f/src/jukeboxcore/addons/guerilla/guerillamgmt.py#L733-L743
JukeboxPipeline/jukebox-core
src/jukeboxcore/addons/guerilla/guerillamgmt.py
GuerillaMGMTWin.setup_shot_page
def setup_shot_page(self, ): """Create and set the model on the shot page :returns: None :rtype: None :raises: None """ self.shot_asset_treev.header().setResizeMode(QtGui.QHeaderView.ResizeToContents) self.shot_task_tablev.horizontalHeader().setResizeMode(QtGui.Q...
python
def setup_shot_page(self, ): """Create and set the model on the shot page :returns: None :rtype: None :raises: None """ self.shot_asset_treev.header().setResizeMode(QtGui.QHeaderView.ResizeToContents) self.shot_task_tablev.horizontalHeader().setResizeMode(QtGui.Q...
[ "def", "setup_shot_page", "(", "self", ",", ")", ":", "self", ".", "shot_asset_treev", ".", "header", "(", ")", ".", "setResizeMode", "(", "QtGui", ".", "QHeaderView", ".", "ResizeToContents", ")", "self", ".", "shot_task_tablev", ".", "horizontalHeader", "(",...
Create and set the model on the shot page :returns: None :rtype: None :raises: None
[ "Create", "and", "set", "the", "model", "on", "the", "shot", "page" ]
train
https://github.com/JukeboxPipeline/jukebox-core/blob/bac2280ca49940355270e4b69400ce9976ab2e6f/src/jukeboxcore/addons/guerilla/guerillamgmt.py#L754-L762
JukeboxPipeline/jukebox-core
src/jukeboxcore/addons/guerilla/guerillamgmt.py
GuerillaMGMTWin.setup_asset_page
def setup_asset_page(self, ): """Create and set the model on the asset page :returns: None :rtype: None :raises: None """ self.asset_asset_treev.header().setResizeMode(QtGui.QHeaderView.ResizeToContents) self.asset_task_tablev.horizontalHeader().setResizeMode(QtG...
python
def setup_asset_page(self, ): """Create and set the model on the asset page :returns: None :rtype: None :raises: None """ self.asset_asset_treev.header().setResizeMode(QtGui.QHeaderView.ResizeToContents) self.asset_task_tablev.horizontalHeader().setResizeMode(QtG...
[ "def", "setup_asset_page", "(", "self", ",", ")", ":", "self", ".", "asset_asset_treev", ".", "header", "(", ")", ".", "setResizeMode", "(", "QtGui", ".", "QHeaderView", ".", "ResizeToContents", ")", "self", ".", "asset_task_tablev", ".", "horizontalHeader", "...
Create and set the model on the asset page :returns: None :rtype: None :raises: None
[ "Create", "and", "set", "the", "model", "on", "the", "asset", "page" ]
train
https://github.com/JukeboxPipeline/jukebox-core/blob/bac2280ca49940355270e4b69400ce9976ab2e6f/src/jukeboxcore/addons/guerilla/guerillamgmt.py#L773-L781
JukeboxPipeline/jukebox-core
src/jukeboxcore/addons/guerilla/guerillamgmt.py
GuerillaMGMTWin.setup_users_page
def setup_users_page(self, ): """Create and set the model on the users page :returns: None :rtype: None :raises: None """ self.users_tablev.horizontalHeader().setResizeMode(QtGui.QHeaderView.ResizeToContents) log.debug("Loading users for users page.") roo...
python
def setup_users_page(self, ): """Create and set the model on the users page :returns: None :rtype: None :raises: None """ self.users_tablev.horizontalHeader().setResizeMode(QtGui.QHeaderView.ResizeToContents) log.debug("Loading users for users page.") roo...
[ "def", "setup_users_page", "(", "self", ",", ")", ":", "self", ".", "users_tablev", ".", "horizontalHeader", "(", ")", ".", "setResizeMode", "(", "QtGui", ".", "QHeaderView", ".", "ResizeToContents", ")", "log", ".", "debug", "(", "\"Loading users for users page...
Create and set the model on the users page :returns: None :rtype: None :raises: None
[ "Create", "and", "set", "the", "model", "on", "the", "users", "page" ]
train
https://github.com/JukeboxPipeline/jukebox-core/blob/bac2280ca49940355270e4b69400ce9976ab2e6f/src/jukeboxcore/addons/guerilla/guerillamgmt.py#L801-L817
JukeboxPipeline/jukebox-core
src/jukeboxcore/addons/guerilla/guerillamgmt.py
GuerillaMGMTWin.setup_user_page
def setup_user_page(self, ): """Create and set the model on the user page :returns: None :rtype: None :raises: None """ self.user_prj_tablev.horizontalHeader().setResizeMode(QtGui.QHeaderView.ResizeToContents) self.user_task_treev.header().setResizeMode(QtGui.QHe...
python
def setup_user_page(self, ): """Create and set the model on the user page :returns: None :rtype: None :raises: None """ self.user_prj_tablev.horizontalHeader().setResizeMode(QtGui.QHeaderView.ResizeToContents) self.user_task_treev.header().setResizeMode(QtGui.QHe...
[ "def", "setup_user_page", "(", "self", ",", ")", ":", "self", ".", "user_prj_tablev", ".", "horizontalHeader", "(", ")", ".", "setResizeMode", "(", "QtGui", ".", "QHeaderView", ".", "ResizeToContents", ")", "self", ".", "user_task_treev", ".", "header", "(", ...
Create and set the model on the user page :returns: None :rtype: None :raises: None
[ "Create", "and", "set", "the", "model", "on", "the", "user", "page" ]
train
https://github.com/JukeboxPipeline/jukebox-core/blob/bac2280ca49940355270e4b69400ce9976ab2e6f/src/jukeboxcore/addons/guerilla/guerillamgmt.py#L819-L827
JukeboxPipeline/jukebox-core
src/jukeboxcore/addons/guerilla/guerillamgmt.py
GuerillaMGMTWin.setup_signals
def setup_signals(self, ): """Connect the signals with the slots to make the ui functional :returns: None :rtype: None :raises: None """ log.debug("Setting up signals.") self.setup_prjs_signals() self.setup_prj_signals() self.setup_seq_signals() ...
python
def setup_signals(self, ): """Connect the signals with the slots to make the ui functional :returns: None :rtype: None :raises: None """ log.debug("Setting up signals.") self.setup_prjs_signals() self.setup_prj_signals() self.setup_seq_signals() ...
[ "def", "setup_signals", "(", "self", ",", ")", ":", "log", ".", "debug", "(", "\"Setting up signals.\"", ")", "self", ".", "setup_prjs_signals", "(", ")", "self", ".", "setup_prj_signals", "(", ")", "self", ".", "setup_seq_signals", "(", ")", "self", ".", ...
Connect the signals with the slots to make the ui functional :returns: None :rtype: None :raises: None
[ "Connect", "the", "signals", "with", "the", "slots", "to", "make", "the", "ui", "functional" ]
train
https://github.com/JukeboxPipeline/jukebox-core/blob/bac2280ca49940355270e4b69400ce9976ab2e6f/src/jukeboxcore/addons/guerilla/guerillamgmt.py#L829-L847
JukeboxPipeline/jukebox-core
src/jukeboxcore/addons/guerilla/guerillamgmt.py
GuerillaMGMTWin.setup_prjs_signals
def setup_prjs_signals(self, ): """Setup the signals for the projects page :returns: None :rtype: None :raises: None """ log.debug("Setting up projects page signals.") self.prjs_prj_view_pb.clicked.connect(self.prjs_view_prj) self.prjs_prj_create_pb.click...
python
def setup_prjs_signals(self, ): """Setup the signals for the projects page :returns: None :rtype: None :raises: None """ log.debug("Setting up projects page signals.") self.prjs_prj_view_pb.clicked.connect(self.prjs_view_prj) self.prjs_prj_create_pb.click...
[ "def", "setup_prjs_signals", "(", "self", ",", ")", ":", "log", ".", "debug", "(", "\"Setting up projects page signals.\"", ")", "self", ".", "prjs_prj_view_pb", ".", "clicked", ".", "connect", "(", "self", ".", "prjs_view_prj", ")", "self", ".", "prjs_prj_creat...
Setup the signals for the projects page :returns: None :rtype: None :raises: None
[ "Setup", "the", "signals", "for", "the", "projects", "page" ]
train
https://github.com/JukeboxPipeline/jukebox-core/blob/bac2280ca49940355270e4b69400ce9976ab2e6f/src/jukeboxcore/addons/guerilla/guerillamgmt.py#L849-L858
JukeboxPipeline/jukebox-core
src/jukeboxcore/addons/guerilla/guerillamgmt.py
GuerillaMGMTWin.setup_prj_signals
def setup_prj_signals(self, ): """Setup the signals for the project page :returns: None :rtype: None :raises: None """ log.debug("Setting up project page signals.") self.prj_seq_view_pb.clicked.connect(self.prj_view_seq) self.prj_seq_create_pb.clicked.con...
python
def setup_prj_signals(self, ): """Setup the signals for the project page :returns: None :rtype: None :raises: None """ log.debug("Setting up project page signals.") self.prj_seq_view_pb.clicked.connect(self.prj_view_seq) self.prj_seq_create_pb.clicked.con...
[ "def", "setup_prj_signals", "(", "self", ",", ")", ":", "log", ".", "debug", "(", "\"Setting up project page signals.\"", ")", "self", ".", "prj_seq_view_pb", ".", "clicked", ".", "connect", "(", "self", ".", "prj_view_seq", ")", "self", ".", "prj_seq_create_pb"...
Setup the signals for the project page :returns: None :rtype: None :raises: None
[ "Setup", "the", "signals", "for", "the", "project", "page" ]
train
https://github.com/JukeboxPipeline/jukebox-core/blob/bac2280ca49940355270e4b69400ce9976ab2e6f/src/jukeboxcore/addons/guerilla/guerillamgmt.py#L860-L886
JukeboxPipeline/jukebox-core
src/jukeboxcore/addons/guerilla/guerillamgmt.py
GuerillaMGMTWin.setup_seq_signals
def setup_seq_signals(self, ): """Setup the signals for the sequence page :returns: None :rtype: None :raises: None """ log.debug("Setting up sequence page signals.") self.seq_prj_view_pb.clicked.connect(self.seq_view_prj) self.seq_shot_view_pb.clicked.co...
python
def setup_seq_signals(self, ): """Setup the signals for the sequence page :returns: None :rtype: None :raises: None """ log.debug("Setting up sequence page signals.") self.seq_prj_view_pb.clicked.connect(self.seq_view_prj) self.seq_shot_view_pb.clicked.co...
[ "def", "setup_seq_signals", "(", "self", ",", ")", ":", "log", ".", "debug", "(", "\"Setting up sequence page signals.\"", ")", "self", ".", "seq_prj_view_pb", ".", "clicked", ".", "connect", "(", "self", ".", "seq_view_prj", ")", "self", ".", "seq_shot_view_pb"...
Setup the signals for the sequence page :returns: None :rtype: None :raises: None
[ "Setup", "the", "signals", "for", "the", "sequence", "page" ]
train
https://github.com/JukeboxPipeline/jukebox-core/blob/bac2280ca49940355270e4b69400ce9976ab2e6f/src/jukeboxcore/addons/guerilla/guerillamgmt.py#L888-L899
JukeboxPipeline/jukebox-core
src/jukeboxcore/addons/guerilla/guerillamgmt.py
GuerillaMGMTWin.setup_shot_signals
def setup_shot_signals(self, ): """Setup the signals for the shot page :returns: None :rtype: None :raises: None """ log.debug("Setting up shot page signals.") self.shot_prj_view_pb.clicked.connect(self.shot_view_prj) self.shot_seq_view_pb.clicked.connect...
python
def setup_shot_signals(self, ): """Setup the signals for the shot page :returns: None :rtype: None :raises: None """ log.debug("Setting up shot page signals.") self.shot_prj_view_pb.clicked.connect(self.shot_view_prj) self.shot_seq_view_pb.clicked.connect...
[ "def", "setup_shot_signals", "(", "self", ",", ")", ":", "log", ".", "debug", "(", "\"Setting up shot page signals.\"", ")", "self", ".", "shot_prj_view_pb", ".", "clicked", ".", "connect", "(", "self", ".", "shot_view_prj", ")", "self", ".", "shot_seq_view_pb",...
Setup the signals for the shot page :returns: None :rtype: None :raises: None
[ "Setup", "the", "signals", "for", "the", "shot", "page" ]
train
https://github.com/JukeboxPipeline/jukebox-core/blob/bac2280ca49940355270e4b69400ce9976ab2e6f/src/jukeboxcore/addons/guerilla/guerillamgmt.py#L901-L920
JukeboxPipeline/jukebox-core
src/jukeboxcore/addons/guerilla/guerillamgmt.py
GuerillaMGMTWin.setup_atype_signals
def setup_atype_signals(self, ): """Setup the signals for the assettype page :returns: None :rtype: None :raises: None """ log.debug("Setting up atype page signals.") self.asset_prj_view_pb.clicked.connect(self.asset_view_prj) self.asset_atype_view_pb.cli...
python
def setup_atype_signals(self, ): """Setup the signals for the assettype page :returns: None :rtype: None :raises: None """ log.debug("Setting up atype page signals.") self.asset_prj_view_pb.clicked.connect(self.asset_view_prj) self.asset_atype_view_pb.cli...
[ "def", "setup_atype_signals", "(", "self", ",", ")", ":", "log", ".", "debug", "(", "\"Setting up atype page signals.\"", ")", "self", ".", "asset_prj_view_pb", ".", "clicked", ".", "connect", "(", "self", ".", "asset_view_prj", ")", "self", ".", "asset_atype_vi...
Setup the signals for the assettype page :returns: None :rtype: None :raises: None
[ "Setup", "the", "signals", "for", "the", "assettype", "page" ]
train
https://github.com/JukeboxPipeline/jukebox-core/blob/bac2280ca49940355270e4b69400ce9976ab2e6f/src/jukeboxcore/addons/guerilla/guerillamgmt.py#L922-L934
JukeboxPipeline/jukebox-core
src/jukeboxcore/addons/guerilla/guerillamgmt.py
GuerillaMGMTWin.setup_asset_signals
def setup_asset_signals(self, ): """Setup the signals for the asset page :returns: None :rtype: None :raises: None """ log.debug("Setting up asset signals.") self.asset_asset_view_pb.clicked.connect(self.asset_view_asset) self.asset_asset_create_pb.clicke...
python
def setup_asset_signals(self, ): """Setup the signals for the asset page :returns: None :rtype: None :raises: None """ log.debug("Setting up asset signals.") self.asset_asset_view_pb.clicked.connect(self.asset_view_asset) self.asset_asset_create_pb.clicke...
[ "def", "setup_asset_signals", "(", "self", ",", ")", ":", "log", ".", "debug", "(", "\"Setting up asset signals.\"", ")", "self", ".", "asset_asset_view_pb", ".", "clicked", ".", "connect", "(", "self", ".", "asset_view_asset", ")", "self", ".", "asset_asset_cre...
Setup the signals for the asset page :returns: None :rtype: None :raises: None
[ "Setup", "the", "signals", "for", "the", "asset", "page" ]
train
https://github.com/JukeboxPipeline/jukebox-core/blob/bac2280ca49940355270e4b69400ce9976ab2e6f/src/jukeboxcore/addons/guerilla/guerillamgmt.py#L936-L950
JukeboxPipeline/jukebox-core
src/jukeboxcore/addons/guerilla/guerillamgmt.py
GuerillaMGMTWin.setup_dep_signals
def setup_dep_signals(self, ): """Setup the signals for the department page :returns: None :rtype: None :raises: None """ log.debug("Setting up department page signals.") self.dep_prj_view_pb.clicked.connect(self.dep_view_prj) self.dep_prj_add_pb.clicked....
python
def setup_dep_signals(self, ): """Setup the signals for the department page :returns: None :rtype: None :raises: None """ log.debug("Setting up department page signals.") self.dep_prj_view_pb.clicked.connect(self.dep_view_prj) self.dep_prj_add_pb.clicked....
[ "def", "setup_dep_signals", "(", "self", ",", ")", ":", "log", ".", "debug", "(", "\"Setting up department page signals.\"", ")", "self", ".", "dep_prj_view_pb", ".", "clicked", ".", "connect", "(", "self", ".", "dep_view_prj", ")", "self", ".", "dep_prj_add_pb"...
Setup the signals for the department page :returns: None :rtype: None :raises: None
[ "Setup", "the", "signals", "for", "the", "department", "page" ]
train
https://github.com/JukeboxPipeline/jukebox-core/blob/bac2280ca49940355270e4b69400ce9976ab2e6f/src/jukeboxcore/addons/guerilla/guerillamgmt.py#L952-L964
JukeboxPipeline/jukebox-core
src/jukeboxcore/addons/guerilla/guerillamgmt.py
GuerillaMGMTWin.setup_task_signals
def setup_task_signals(self, ): """Setup the signals for the task page :returns: None :rtype: None :raises: None """ log.debug("Setting up task page signals.") self.task_user_view_pb.clicked.connect(self.task_view_user) self.task_user_add_pb.clicked.conne...
python
def setup_task_signals(self, ): """Setup the signals for the task page :returns: None :rtype: None :raises: None """ log.debug("Setting up task page signals.") self.task_user_view_pb.clicked.connect(self.task_view_user) self.task_user_add_pb.clicked.conne...
[ "def", "setup_task_signals", "(", "self", ",", ")", ":", "log", ".", "debug", "(", "\"Setting up task page signals.\"", ")", "self", ".", "task_user_view_pb", ".", "clicked", ".", "connect", "(", "self", ".", "task_view_user", ")", "self", ".", "task_user_add_pb...
Setup the signals for the task page :returns: None :rtype: None :raises: None
[ "Setup", "the", "signals", "for", "the", "task", "page" ]
train
https://github.com/JukeboxPipeline/jukebox-core/blob/bac2280ca49940355270e4b69400ce9976ab2e6f/src/jukeboxcore/addons/guerilla/guerillamgmt.py#L966-L980
JukeboxPipeline/jukebox-core
src/jukeboxcore/addons/guerilla/guerillamgmt.py
GuerillaMGMTWin.setup_users_signals
def setup_users_signals(self, ): """Setup the signals for the users page :returns: None :rtype: None :raises: None """ log.debug("Setting up users page signals.") self.users_user_view_pb.clicked.connect(self.users_view_user) self.users_user_create_pb.clic...
python
def setup_users_signals(self, ): """Setup the signals for the users page :returns: None :rtype: None :raises: None """ log.debug("Setting up users page signals.") self.users_user_view_pb.clicked.connect(self.users_view_user) self.users_user_create_pb.clic...
[ "def", "setup_users_signals", "(", "self", ",", ")", ":", "log", ".", "debug", "(", "\"Setting up users page signals.\"", ")", "self", ".", "users_user_view_pb", ".", "clicked", ".", "connect", "(", "self", ".", "users_view_user", ")", "self", ".", "users_user_c...
Setup the signals for the users page :returns: None :rtype: None :raises: None
[ "Setup", "the", "signals", "for", "the", "users", "page" ]
train
https://github.com/JukeboxPipeline/jukebox-core/blob/bac2280ca49940355270e4b69400ce9976ab2e6f/src/jukeboxcore/addons/guerilla/guerillamgmt.py#L982-L991
JukeboxPipeline/jukebox-core
src/jukeboxcore/addons/guerilla/guerillamgmt.py
GuerillaMGMTWin.setup_user_signals
def setup_user_signals(self, ): """Setup the signals for the user page :returns: None :rtype: None :raises: None """ log.debug("Setting up user page signals.") self.user_task_view_pb.clicked.connect(self.user_view_task) self.user_prj_view_pb.clicked.conne...
python
def setup_user_signals(self, ): """Setup the signals for the user page :returns: None :rtype: None :raises: None """ log.debug("Setting up user page signals.") self.user_task_view_pb.clicked.connect(self.user_view_task) self.user_prj_view_pb.clicked.conne...
[ "def", "setup_user_signals", "(", "self", ",", ")", ":", "log", ".", "debug", "(", "\"Setting up user page signals.\"", ")", "self", ".", "user_task_view_pb", ".", "clicked", ".", "connect", "(", "self", ".", "user_view_task", ")", "self", ".", "user_prj_view_pb...
Setup the signals for the user page :returns: None :rtype: None :raises: None
[ "Setup", "the", "signals", "for", "the", "user", "page" ]
train
https://github.com/JukeboxPipeline/jukebox-core/blob/bac2280ca49940355270e4b69400ce9976ab2e6f/src/jukeboxcore/addons/guerilla/guerillamgmt.py#L993-L1008
JukeboxPipeline/jukebox-core
src/jukeboxcore/addons/guerilla/guerillamgmt.py
GuerillaMGMTWin.prjs_view_prj
def prjs_view_prj(self, *args, **kwargs): """View the, in the projects table view selected, project. :returns: None :rtype: None :raises: None """ i = self.prjs_tablev.currentIndex() item = i.internalPointer() if item: prj = item.internal_data...
python
def prjs_view_prj(self, *args, **kwargs): """View the, in the projects table view selected, project. :returns: None :rtype: None :raises: None """ i = self.prjs_tablev.currentIndex() item = i.internalPointer() if item: prj = item.internal_data...
[ "def", "prjs_view_prj", "(", "self", ",", "*", "args", ",", "*", "*", "kwargs", ")", ":", "i", "=", "self", ".", "prjs_tablev", ".", "currentIndex", "(", ")", "item", "=", "i", ".", "internalPointer", "(", ")", "if", "item", ":", "prj", "=", "item"...
View the, in the projects table view selected, project. :returns: None :rtype: None :raises: None
[ "View", "the", "in", "the", "projects", "table", "view", "selected", "project", "." ]
train
https://github.com/JukeboxPipeline/jukebox-core/blob/bac2280ca49940355270e4b69400ce9976ab2e6f/src/jukeboxcore/addons/guerilla/guerillamgmt.py#L1010-L1021
JukeboxPipeline/jukebox-core
src/jukeboxcore/addons/guerilla/guerillamgmt.py
GuerillaMGMTWin.view_prj
def view_prj(self, prj): """View the given project on the project page :param prj: the project to view :type prj: :class:`jukeboxcore.djadapter.models.Project` :returns: None :rtype: None :raises: None """ log.debug('Viewing project %s', prj.name) ...
python
def view_prj(self, prj): """View the given project on the project page :param prj: the project to view :type prj: :class:`jukeboxcore.djadapter.models.Project` :returns: None :rtype: None :raises: None """ log.debug('Viewing project %s', prj.name) ...
[ "def", "view_prj", "(", "self", ",", "prj", ")", ":", "log", ".", "debug", "(", "'Viewing project %s'", ",", "prj", ".", "name", ")", "self", ".", "cur_prj", "=", "None", "self", ".", "pages_tabw", ".", "setCurrentIndex", "(", "1", ")", "self", ".", ...
View the given project on the project page :param prj: the project to view :type prj: :class:`jukeboxcore.djadapter.models.Project` :returns: None :rtype: None :raises: None
[ "View", "the", "given", "project", "on", "the", "project", "page" ]
train
https://github.com/JukeboxPipeline/jukebox-core/blob/bac2280ca49940355270e4b69400ce9976ab2e6f/src/jukeboxcore/addons/guerilla/guerillamgmt.py#L1032-L1090
JukeboxPipeline/jukebox-core
src/jukeboxcore/addons/guerilla/guerillamgmt.py
GuerillaMGMTWin.create_prj
def create_prj(self, atypes=None, deps=None): """Create and return a new project :param atypes: add the given atypes to the project :type atypes: list | None :param deps: add the given departmetns to the project :type deps: list | None :returns: The created project or No...
python
def create_prj(self, atypes=None, deps=None): """Create and return a new project :param atypes: add the given atypes to the project :type atypes: list | None :param deps: add the given departmetns to the project :type deps: list | None :returns: The created project or No...
[ "def", "create_prj", "(", "self", ",", "atypes", "=", "None", ",", "deps", "=", "None", ")", ":", "dialog", "=", "ProjectCreatorDialog", "(", "parent", "=", "self", ")", "dialog", ".", "exec_", "(", ")", "prj", "=", "dialog", ".", "project", "if", "p...
Create and return a new project :param atypes: add the given atypes to the project :type atypes: list | None :param deps: add the given departmetns to the project :type deps: list | None :returns: The created project or None :rtype: None | :class:`jukeboxcore.djadapter.m...
[ "Create", "and", "return", "a", "new", "project" ]
train
https://github.com/JukeboxPipeline/jukebox-core/blob/bac2280ca49940355270e4b69400ce9976ab2e6f/src/jukeboxcore/addons/guerilla/guerillamgmt.py#L1092-L1117
JukeboxPipeline/jukebox-core
src/jukeboxcore/addons/guerilla/guerillamgmt.py
GuerillaMGMTWin.prj_view_seq
def prj_view_seq(self, *args, **kwargs): """View the, in the prj_seq_tablev selected, sequence. :returns: None :rtype: None :raises: None """ if not self.cur_prj: return i = self.prj_seq_tablev.currentIndex() item = i.internalPointer() ...
python
def prj_view_seq(self, *args, **kwargs): """View the, in the prj_seq_tablev selected, sequence. :returns: None :rtype: None :raises: None """ if not self.cur_prj: return i = self.prj_seq_tablev.currentIndex() item = i.internalPointer() ...
[ "def", "prj_view_seq", "(", "self", ",", "*", "args", ",", "*", "*", "kwargs", ")", ":", "if", "not", "self", ".", "cur_prj", ":", "return", "i", "=", "self", ".", "prj_seq_tablev", ".", "currentIndex", "(", ")", "item", "=", "i", ".", "internalPoint...
View the, in the prj_seq_tablev selected, sequence. :returns: None :rtype: None :raises: None
[ "View", "the", "in", "the", "prj_seq_tablev", "selected", "sequence", "." ]
train
https://github.com/JukeboxPipeline/jukebox-core/blob/bac2280ca49940355270e4b69400ce9976ab2e6f/src/jukeboxcore/addons/guerilla/guerillamgmt.py#L1119-L1132
JukeboxPipeline/jukebox-core
src/jukeboxcore/addons/guerilla/guerillamgmt.py
GuerillaMGMTWin.prj_create_seq
def prj_create_seq(self, *args, **kwargs): """Create a new Sequence for the current project :returns: None :rtype: None :raises: None """ if not self.cur_prj: return seq = self.create_seq(project=self.cur_prj) if seq: seqdata = dji...
python
def prj_create_seq(self, *args, **kwargs): """Create a new Sequence for the current project :returns: None :rtype: None :raises: None """ if not self.cur_prj: return seq = self.create_seq(project=self.cur_prj) if seq: seqdata = dji...
[ "def", "prj_create_seq", "(", "self", ",", "*", "args", ",", "*", "*", "kwargs", ")", ":", "if", "not", "self", ".", "cur_prj", ":", "return", "seq", "=", "self", ".", "create_seq", "(", "project", "=", "self", ".", "cur_prj", ")", "if", "seq", ":"...
Create a new Sequence for the current project :returns: None :rtype: None :raises: None
[ "Create", "a", "new", "Sequence", "for", "the", "current", "project" ]
train
https://github.com/JukeboxPipeline/jukebox-core/blob/bac2280ca49940355270e4b69400ce9976ab2e6f/src/jukeboxcore/addons/guerilla/guerillamgmt.py#L1134-L1146
JukeboxPipeline/jukebox-core
src/jukeboxcore/addons/guerilla/guerillamgmt.py
GuerillaMGMTWin.view_seq
def view_seq(self, seq): """View the given sequence on the sequence page :param seq: the sequence to view :type seq: :class:`jukeboxcore.djadapter.models.Sequence` :returns: None :rtype: None :raises: None """ log.debug('Viewing sequence %s', seq.name) ...
python
def view_seq(self, seq): """View the given sequence on the sequence page :param seq: the sequence to view :type seq: :class:`jukeboxcore.djadapter.models.Sequence` :returns: None :rtype: None :raises: None """ log.debug('Viewing sequence %s', seq.name) ...
[ "def", "view_seq", "(", "self", ",", "seq", ")", ":", "log", ".", "debug", "(", "'Viewing sequence %s'", ",", "seq", ".", "name", ")", "self", ".", "cur_seq", "=", "None", "self", ".", "pages_tabw", ".", "setCurrentIndex", "(", "2", ")", "self", ".", ...
View the given sequence on the sequence page :param seq: the sequence to view :type seq: :class:`jukeboxcore.djadapter.models.Sequence` :returns: None :rtype: None :raises: None
[ "View", "the", "given", "sequence", "on", "the", "sequence", "page" ]
train
https://github.com/JukeboxPipeline/jukebox-core/blob/bac2280ca49940355270e4b69400ce9976ab2e6f/src/jukeboxcore/addons/guerilla/guerillamgmt.py#L1148-L1171
JukeboxPipeline/jukebox-core
src/jukeboxcore/addons/guerilla/guerillamgmt.py
GuerillaMGMTWin.create_seq
def create_seq(self, project): """Create and return a new sequence :param project: the project for the sequence :type deps: :class:`jukeboxcore.djadapter.models.Project` :returns: The created sequence or None :rtype: None | :class:`jukeboxcore.djadapter.models.Sequence` ...
python
def create_seq(self, project): """Create and return a new sequence :param project: the project for the sequence :type deps: :class:`jukeboxcore.djadapter.models.Project` :returns: The created sequence or None :rtype: None | :class:`jukeboxcore.djadapter.models.Sequence` ...
[ "def", "create_seq", "(", "self", ",", "project", ")", ":", "dialog", "=", "SequenceCreatorDialog", "(", "project", "=", "project", ",", "parent", "=", "self", ")", "dialog", ".", "exec_", "(", ")", "seq", "=", "dialog", ".", "sequence", "return", "seq" ...
Create and return a new sequence :param project: the project for the sequence :type deps: :class:`jukeboxcore.djadapter.models.Project` :returns: The created sequence or None :rtype: None | :class:`jukeboxcore.djadapter.models.Sequence` :raises: None
[ "Create", "and", "return", "a", "new", "sequence" ]
train
https://github.com/JukeboxPipeline/jukebox-core/blob/bac2280ca49940355270e4b69400ce9976ab2e6f/src/jukeboxcore/addons/guerilla/guerillamgmt.py#L1173-L1185
JukeboxPipeline/jukebox-core
src/jukeboxcore/addons/guerilla/guerillamgmt.py
GuerillaMGMTWin.prj_view_atype
def prj_view_atype(self, *args, **kwargs): """View the, in the atype table view selected, assettype. :returns: None :rtype: None :raises: None """ if not self.cur_prj: return i = self.prj_atype_tablev.currentIndex() item = i.internalPointer() ...
python
def prj_view_atype(self, *args, **kwargs): """View the, in the atype table view selected, assettype. :returns: None :rtype: None :raises: None """ if not self.cur_prj: return i = self.prj_atype_tablev.currentIndex() item = i.internalPointer() ...
[ "def", "prj_view_atype", "(", "self", ",", "*", "args", ",", "*", "*", "kwargs", ")", ":", "if", "not", "self", ".", "cur_prj", ":", "return", "i", "=", "self", ".", "prj_atype_tablev", ".", "currentIndex", "(", ")", "item", "=", "i", ".", "internalP...
View the, in the atype table view selected, assettype. :returns: None :rtype: None :raises: None
[ "View", "the", "in", "the", "atype", "table", "view", "selected", "assettype", "." ]
train
https://github.com/JukeboxPipeline/jukebox-core/blob/bac2280ca49940355270e4b69400ce9976ab2e6f/src/jukeboxcore/addons/guerilla/guerillamgmt.py#L1187-L1200
JukeboxPipeline/jukebox-core
src/jukeboxcore/addons/guerilla/guerillamgmt.py
GuerillaMGMTWin.prj_add_atype
def prj_add_atype(self, *args, **kwargs): """Add more assettypes to the project. :returns: None :rtype: None :raises: None """ if not self.cur_prj: return dialog = AtypeAdderDialog(project=self.cur_prj) dialog.exec_() atypes = dialog.a...
python
def prj_add_atype(self, *args, **kwargs): """Add more assettypes to the project. :returns: None :rtype: None :raises: None """ if not self.cur_prj: return dialog = AtypeAdderDialog(project=self.cur_prj) dialog.exec_() atypes = dialog.a...
[ "def", "prj_add_atype", "(", "self", ",", "*", "args", ",", "*", "*", "kwargs", ")", ":", "if", "not", "self", ".", "cur_prj", ":", "return", "dialog", "=", "AtypeAdderDialog", "(", "project", "=", "self", ".", "cur_prj", ")", "dialog", ".", "exec_", ...
Add more assettypes to the project. :returns: None :rtype: None :raises: None
[ "Add", "more", "assettypes", "to", "the", "project", "." ]
train
https://github.com/JukeboxPipeline/jukebox-core/blob/bac2280ca49940355270e4b69400ce9976ab2e6f/src/jukeboxcore/addons/guerilla/guerillamgmt.py#L1202-L1216
JukeboxPipeline/jukebox-core
src/jukeboxcore/addons/guerilla/guerillamgmt.py
GuerillaMGMTWin.prj_create_atype
def prj_create_atype(self, *args, **kwargs): """Create a new project :returns: None :rtype: None :raises: None """ if not self.cur_prj: return atype = self.create_atype(projects=[self.cur_prj]) if atype: atypedata = djitemdata.Atyp...
python
def prj_create_atype(self, *args, **kwargs): """Create a new project :returns: None :rtype: None :raises: None """ if not self.cur_prj: return atype = self.create_atype(projects=[self.cur_prj]) if atype: atypedata = djitemdata.Atyp...
[ "def", "prj_create_atype", "(", "self", ",", "*", "args", ",", "*", "*", "kwargs", ")", ":", "if", "not", "self", ".", "cur_prj", ":", "return", "atype", "=", "self", ".", "create_atype", "(", "projects", "=", "[", "self", ".", "cur_prj", "]", ")", ...
Create a new project :returns: None :rtype: None :raises: None
[ "Create", "a", "new", "project" ]
train
https://github.com/JukeboxPipeline/jukebox-core/blob/bac2280ca49940355270e4b69400ce9976ab2e6f/src/jukeboxcore/addons/guerilla/guerillamgmt.py#L1218-L1230
JukeboxPipeline/jukebox-core
src/jukeboxcore/addons/guerilla/guerillamgmt.py
GuerillaMGMTWin.create_atype
def create_atype(self, projects): """Create and return a new atype :param projects: the projects for the atype :type projects: :class:`jukeboxcore.djadapter.models.Project` :returns: The created atype or None :rtype: None | :class:`jukeboxcore.djadapter.models.Atype` :ra...
python
def create_atype(self, projects): """Create and return a new atype :param projects: the projects for the atype :type projects: :class:`jukeboxcore.djadapter.models.Project` :returns: The created atype or None :rtype: None | :class:`jukeboxcore.djadapter.models.Atype` :ra...
[ "def", "create_atype", "(", "self", ",", "projects", ")", ":", "dialog", "=", "AtypeCreatorDialog", "(", "projects", "=", "projects", ",", "parent", "=", "self", ")", "dialog", ".", "exec_", "(", ")", "atype", "=", "dialog", ".", "atype", "return", "atyp...
Create and return a new atype :param projects: the projects for the atype :type projects: :class:`jukeboxcore.djadapter.models.Project` :returns: The created atype or None :rtype: None | :class:`jukeboxcore.djadapter.models.Atype` :raises: None
[ "Create", "and", "return", "a", "new", "atype" ]
train
https://github.com/JukeboxPipeline/jukebox-core/blob/bac2280ca49940355270e4b69400ce9976ab2e6f/src/jukeboxcore/addons/guerilla/guerillamgmt.py#L1232-L1244
JukeboxPipeline/jukebox-core
src/jukeboxcore/addons/guerilla/guerillamgmt.py
GuerillaMGMTWin.view_atype
def view_atype(self, atype): """View the given atype on the atype page :param atype: the atype to view :type atype: :class:`jukeboxcore.djadapter.models.Atype` :returns: None :rtype: None :raises: None """ if not self.cur_prj: return l...
python
def view_atype(self, atype): """View the given atype on the atype page :param atype: the atype to view :type atype: :class:`jukeboxcore.djadapter.models.Atype` :returns: None :rtype: None :raises: None """ if not self.cur_prj: return l...
[ "def", "view_atype", "(", "self", ",", "atype", ")", ":", "if", "not", "self", ".", "cur_prj", ":", "return", "log", ".", "debug", "(", "'Viewing atype %s'", ",", "atype", ".", "name", ")", "self", ".", "cur_atype", "=", "None", "self", ".", "pages_tab...
View the given atype on the atype page :param atype: the atype to view :type atype: :class:`jukeboxcore.djadapter.models.Atype` :returns: None :rtype: None :raises: None
[ "View", "the", "given", "atype", "on", "the", "atype", "page" ]
train
https://github.com/JukeboxPipeline/jukebox-core/blob/bac2280ca49940355270e4b69400ce9976ab2e6f/src/jukeboxcore/addons/guerilla/guerillamgmt.py#L1246-L1272
JukeboxPipeline/jukebox-core
src/jukeboxcore/addons/guerilla/guerillamgmt.py
GuerillaMGMTWin.prj_view_dep
def prj_view_dep(self, *args, **kwargs): """View the, in the dep table view selected, department. :returns: None :rtype: None :raises: None """ if not self.cur_prj: return i = self.prj_dep_tablev.currentIndex() item = i.internalPointer() ...
python
def prj_view_dep(self, *args, **kwargs): """View the, in the dep table view selected, department. :returns: None :rtype: None :raises: None """ if not self.cur_prj: return i = self.prj_dep_tablev.currentIndex() item = i.internalPointer() ...
[ "def", "prj_view_dep", "(", "self", ",", "*", "args", ",", "*", "*", "kwargs", ")", ":", "if", "not", "self", ".", "cur_prj", ":", "return", "i", "=", "self", ".", "prj_dep_tablev", ".", "currentIndex", "(", ")", "item", "=", "i", ".", "internalPoint...
View the, in the dep table view selected, department. :returns: None :rtype: None :raises: None
[ "View", "the", "in", "the", "dep", "table", "view", "selected", "department", "." ]
train
https://github.com/JukeboxPipeline/jukebox-core/blob/bac2280ca49940355270e4b69400ce9976ab2e6f/src/jukeboxcore/addons/guerilla/guerillamgmt.py#L1274-L1287
JukeboxPipeline/jukebox-core
src/jukeboxcore/addons/guerilla/guerillamgmt.py
GuerillaMGMTWin.prj_add_dep
def prj_add_dep(self, *args, **kwargs): """Add more departments to the project. :returns: None :rtype: None :raises: None """ if not self.cur_prj: return dialog = DepAdderDialog(project=self.cur_prj) dialog.exec_() deps = dialog.deps ...
python
def prj_add_dep(self, *args, **kwargs): """Add more departments to the project. :returns: None :rtype: None :raises: None """ if not self.cur_prj: return dialog = DepAdderDialog(project=self.cur_prj) dialog.exec_() deps = dialog.deps ...
[ "def", "prj_add_dep", "(", "self", ",", "*", "args", ",", "*", "*", "kwargs", ")", ":", "if", "not", "self", ".", "cur_prj", ":", "return", "dialog", "=", "DepAdderDialog", "(", "project", "=", "self", ".", "cur_prj", ")", "dialog", ".", "exec_", "("...
Add more departments to the project. :returns: None :rtype: None :raises: None
[ "Add", "more", "departments", "to", "the", "project", "." ]
train
https://github.com/JukeboxPipeline/jukebox-core/blob/bac2280ca49940355270e4b69400ce9976ab2e6f/src/jukeboxcore/addons/guerilla/guerillamgmt.py#L1289-L1303
JukeboxPipeline/jukebox-core
src/jukeboxcore/addons/guerilla/guerillamgmt.py
GuerillaMGMTWin.prj_create_dep
def prj_create_dep(self, *args, **kwargs): """Create a new project :returns: None :rtype: None :raises: None """ if not self.cur_prj: return dep = self.create_dep(projects=[self.cur_prj]) if dep: depdata = djitemdata.DepartmentItem...
python
def prj_create_dep(self, *args, **kwargs): """Create a new project :returns: None :rtype: None :raises: None """ if not self.cur_prj: return dep = self.create_dep(projects=[self.cur_prj]) if dep: depdata = djitemdata.DepartmentItem...
[ "def", "prj_create_dep", "(", "self", ",", "*", "args", ",", "*", "*", "kwargs", ")", ":", "if", "not", "self", ".", "cur_prj", ":", "return", "dep", "=", "self", ".", "create_dep", "(", "projects", "=", "[", "self", ".", "cur_prj", "]", ")", "if",...
Create a new project :returns: None :rtype: None :raises: None
[ "Create", "a", "new", "project" ]
train
https://github.com/JukeboxPipeline/jukebox-core/blob/bac2280ca49940355270e4b69400ce9976ab2e6f/src/jukeboxcore/addons/guerilla/guerillamgmt.py#L1305-L1317
JukeboxPipeline/jukebox-core
src/jukeboxcore/addons/guerilla/guerillamgmt.py
GuerillaMGMTWin.create_dep
def create_dep(self, projects): """Create and return a new dep :param projects: the projects for the dep :type projects: :class:`jukeboxcore.djadapter.models.Project` :returns: The created dep or None :rtype: None | :class:`jukeboxcore.djadapter.models.Dep` :raises: None...
python
def create_dep(self, projects): """Create and return a new dep :param projects: the projects for the dep :type projects: :class:`jukeboxcore.djadapter.models.Project` :returns: The created dep or None :rtype: None | :class:`jukeboxcore.djadapter.models.Dep` :raises: None...
[ "def", "create_dep", "(", "self", ",", "projects", ")", ":", "dialog", "=", "DepCreatorDialog", "(", "projects", "=", "projects", ",", "parent", "=", "self", ")", "dialog", ".", "exec_", "(", ")", "dep", "=", "dialog", ".", "dep", "return", "dep" ]
Create and return a new dep :param projects: the projects for the dep :type projects: :class:`jukeboxcore.djadapter.models.Project` :returns: The created dep or None :rtype: None | :class:`jukeboxcore.djadapter.models.Dep` :raises: None
[ "Create", "and", "return", "a", "new", "dep" ]
train
https://github.com/JukeboxPipeline/jukebox-core/blob/bac2280ca49940355270e4b69400ce9976ab2e6f/src/jukeboxcore/addons/guerilla/guerillamgmt.py#L1319-L1331
JukeboxPipeline/jukebox-core
src/jukeboxcore/addons/guerilla/guerillamgmt.py
GuerillaMGMTWin.view_dep
def view_dep(self, dep): """View the given department on the department page :param dep: the dep to view :type dep: :class:`jukeboxcore.djadapter.models.Department` :returns: None :rtype: None :raises: None """ log.debug('Viewing department %s', dep.name)...
python
def view_dep(self, dep): """View the given department on the department page :param dep: the dep to view :type dep: :class:`jukeboxcore.djadapter.models.Department` :returns: None :rtype: None :raises: None """ log.debug('Viewing department %s', dep.name)...
[ "def", "view_dep", "(", "self", ",", "dep", ")", ":", "log", ".", "debug", "(", "'Viewing department %s'", ",", "dep", ".", "name", ")", "self", ".", "cur_dep", "=", "None", "self", ".", "pages_tabw", ".", "setCurrentIndex", "(", "6", ")", "self", ".",...
View the given department on the department page :param dep: the dep to view :type dep: :class:`jukeboxcore.djadapter.models.Department` :returns: None :rtype: None :raises: None
[ "View", "the", "given", "department", "on", "the", "department", "page" ]
train
https://github.com/JukeboxPipeline/jukebox-core/blob/bac2280ca49940355270e4b69400ce9976ab2e6f/src/jukeboxcore/addons/guerilla/guerillamgmt.py#L1333-L1361
JukeboxPipeline/jukebox-core
src/jukeboxcore/addons/guerilla/guerillamgmt.py
GuerillaMGMTWin.prj_view_user
def prj_view_user(self, *args, **kwargs): """View the, in the user table view selected, user. :returns: None :rtype: None :raises: None """ if not self.cur_prj: return i = self.prj_user_tablev.currentIndex() item = i.internalPointer() ...
python
def prj_view_user(self, *args, **kwargs): """View the, in the user table view selected, user. :returns: None :rtype: None :raises: None """ if not self.cur_prj: return i = self.prj_user_tablev.currentIndex() item = i.internalPointer() ...
[ "def", "prj_view_user", "(", "self", ",", "*", "args", ",", "*", "*", "kwargs", ")", ":", "if", "not", "self", ".", "cur_prj", ":", "return", "i", "=", "self", ".", "prj_user_tablev", ".", "currentIndex", "(", ")", "item", "=", "i", ".", "internalPoi...
View the, in the user table view selected, user. :returns: None :rtype: None :raises: None
[ "View", "the", "in", "the", "user", "table", "view", "selected", "user", "." ]
train
https://github.com/JukeboxPipeline/jukebox-core/blob/bac2280ca49940355270e4b69400ce9976ab2e6f/src/jukeboxcore/addons/guerilla/guerillamgmt.py#L1363-L1376
JukeboxPipeline/jukebox-core
src/jukeboxcore/addons/guerilla/guerillamgmt.py
GuerillaMGMTWin.prj_add_user
def prj_add_user(self, *args, **kwargs): """Add more users to the project. :returns: None :rtype: None :raises: None """ if not self.cur_prj: return dialog = UserAdderDialog(project=self.cur_prj) dialog.exec_() users = dialog.users ...
python
def prj_add_user(self, *args, **kwargs): """Add more users to the project. :returns: None :rtype: None :raises: None """ if not self.cur_prj: return dialog = UserAdderDialog(project=self.cur_prj) dialog.exec_() users = dialog.users ...
[ "def", "prj_add_user", "(", "self", ",", "*", "args", ",", "*", "*", "kwargs", ")", ":", "if", "not", "self", ".", "cur_prj", ":", "return", "dialog", "=", "UserAdderDialog", "(", "project", "=", "self", ".", "cur_prj", ")", "dialog", ".", "exec_", "...
Add more users to the project. :returns: None :rtype: None :raises: None
[ "Add", "more", "users", "to", "the", "project", "." ]
train
https://github.com/JukeboxPipeline/jukebox-core/blob/bac2280ca49940355270e4b69400ce9976ab2e6f/src/jukeboxcore/addons/guerilla/guerillamgmt.py#L1378-L1393