text
stringlengths
0
1.05M
meta
dict
from elemental_core import ( ForwardReference, Hook, ValueChangedHookData ) from elemental_core.util import process_uuid_value from ._mutable_resource import MutableResource class MutableTypeResource(MutableResource): label_value_id_changed = Hook() label_changed = Hook() doc_value_id_changed...
{ "repo_name": "artPlusPlus/elemental-backend", "path": "elemental_backend/resources/_mutable_type_resource.py", "copies": "1", "size": "2102", "license": "mpl-2.0", "hash": 2507827209380345300, "line_mean": 27.4054054054, "line_max": 72, "alpha_frac": 0.6484300666, "autogenerated": false, "ratio"...
from elemental_core import ( ForwardReference, Hook, ValueChangedHookData ) from elemental_core.util import process_uuid_value from ._mutable_type_resource import MutableTypeResource class MutableFieldTypeResource(MutableTypeResource): modifiers_data_id_changed = Hook() kind_id_data_id_changed = ...
{ "repo_name": "artPlusPlus/elemental-backend", "path": "elemental_backend/resources/_mutable_field_type_resource.py", "copies": "1", "size": "3838", "license": "mpl-2.0", "hash": -6552119883298533000, "line_mean": 30.2032520325, "line_max": 80, "alpha_frac": 0.6281917665, "autogenerated": false, ...
from elemental_core import ( ForwardReference, Hook, ValueChangedHookData ) from elemental_core.util import process_uuid_value from ._resource import Resource class MutableInstanceResource(Resource): resource_type_id_changed = Hook() @ForwardReference def resource_type(self): return ...
{ "repo_name": "artPlusPlus/elemental-backend", "path": "elemental_backend/resources/_mutable_instance_resource.py", "copies": "1", "size": "1130", "license": "mpl-2.0", "hash": -6069507899987498000, "line_mean": 25.2790697674, "line_max": 74, "alpha_frac": 0.6424778761, "autogenerated": false, "r...
from elemental_core import ( Hook, ValueChangedHookData, ForwardReference ) from elemental_core.util import process_uuids_value from ._immutable_instance_resource import ImmutableInstanceResource from ._resource_reference import ResourceReference class ImmutableObjectInstanceResource(ImmutableInstanceRes...
{ "repo_name": "artPlusPlus/elemental-backend", "path": "elemental_backend/resources/_immutable_object_instance_resource.py", "copies": "1", "size": "1433", "license": "mpl-2.0", "hash": -7504579297101238000, "line_mean": 28.8541666667, "line_max": 76, "alpha_frac": 0.6964410328, "autogenerated": fa...
from elemental_core import ( Hook, ValueChangedHookData ) from elemental_core.util import process_uuid_value from ._immutable_instance_resource import ImmutableInstanceResource from ._resource_reference import ResourceReference class ValueInstanceResource(ImmutableInstanceResource): start_fragment_change...
{ "repo_name": "artPlusPlus/elemental-backend", "path": "elemental_backend/resources/_value_instance_resource.py", "copies": "1", "size": "1161", "license": "mpl-2.0", "hash": 2503097026208816600, "line_mean": 24.8, "line_max": 75, "alpha_frac": 0.6881998277, "autogenerated": false, "ratio": 4.088...
from elemental_core import NO_VALUE from elemental_core.util import process_elemental_class_value import elemental_kinds # Not directly used, allows classes to be resolved later from ._resource_type import ResourceType from ._resource_reference import ResourceReference from ._property_changed_hook import PropertyChan...
{ "repo_name": "artPlusPlus/elemental-backend", "path": "elemental_backend/resources/_attribute_type.py", "copies": "1", "size": "3957", "license": "mpl-2.0", "hash": 7177659893830313000, "line_mean": 30.157480315, "line_max": 80, "alpha_frac": 0.6100581248, "autogenerated": false, "ratio": 4.3627...
from elemental_core import NO_VALUE from elemental_core.util import process_elemental_class_value from ._resource_type import ResourceType from ._property_changed_hook import PropertyChangedHook from ._resource_reference import ResourceReference class FieldType(ResourceType): @property def value_resolution_o...
{ "repo_name": "artPlusPlus/elemental-backend", "path": "elemental_backend/resources/_field_type.py", "copies": "1", "size": "6476", "license": "mpl-2.0", "hash": 970594292185947800, "line_mean": 29.1209302326, "line_max": 80, "alpha_frac": 0.6005250154, "autogenerated": false, "ratio": 4.41144414...
from elemental_core import NO_VALUE from ._resource_instance import ResourceInstance from ._field_dirtied_hook import FieldDirtiedHook class FieldInstance(ResourceInstance): @property def was_dirtied(self): return self._was_dirtied def __init__(self, id=None, type_id=None): super(FieldI...
{ "repo_name": "artPlusPlus/elemental-backend", "path": "elemental_backend/resources/_field_instance.py", "copies": "1", "size": "3265", "license": "mpl-2.0", "hash": 8338418407416983000, "line_mean": 34.8791208791, "line_max": 85, "alpha_frac": 0.6058192956, "autogenerated": false, "ratio": 3.933...
from elemental_core.util import process_uuids_value from ._resource_instance import ResourceInstance from ._resource_reference import ResourceReference from ._property_changed_hook import PropertyChangedHook class ContentInstance(ResourceInstance): """ Represents a unique collection of `AttributeInstances`. ...
{ "repo_name": "artPlusPlus/elemental-backend", "path": "elemental_backend/resources/_content_instance.py", "copies": "1", "size": "1836", "license": "mpl-2.0", "hash": -6188704692579855000, "line_mean": 31.2105263158, "line_max": 87, "alpha_frac": 0.6323529412, "autogenerated": false, "ratio": 4....
from elemental_core.util import process_uuids_value from ._resource_type import ResourceType from ._property_changed_hook import PropertyChangedHook from ._resource_reference import ResourceReference class ContentType(ResourceType): """ Represents a collection of `AttributeTypes`. A `ContentType` can in...
{ "repo_name": "artPlusPlus/elemental-backend", "path": "elemental_backend/resources/_content_type.py", "copies": "1", "size": "3658", "license": "mpl-2.0", "hash": -5393167568680163000, "line_mean": 31.3716814159, "line_max": 81, "alpha_frac": 0.6041552761, "autogenerated": false, "ratio": 4.3913...
from elemental_core.util import process_uuids_value from ._resource_type import ResourceType from ._resource_reference import ResourceReference from ._property_changed_hook import PropertyChangedHook class SorterType(ResourceType): """ Represents a collection of AttributeIds that should be sorted together. ...
{ "repo_name": "artPlusPlus/elemental-backend", "path": "elemental_backend/resources/_sorter_type.py", "copies": "1", "size": "1801", "license": "mpl-2.0", "hash": 6359546762884593000, "line_mean": 32.9811320755, "line_max": 79, "alpha_frac": 0.6646307607, "autogenerated": false, "ratio": 4.350241...
from elemental_core.util import process_uuid_value from ._resource import Resource from ._resource_reference import ResourceReference from ._property_changed_hook import PropertyChangedHook class ResourceInstance(Resource): @property def type_id(self): """ uuid: An Id resolving to an `Attribu...
{ "repo_name": "artPlusPlus/elemental-backend", "path": "elemental_backend/resources/_resource_instance.py", "copies": "1", "size": "1623", "license": "mpl-2.0", "hash": -8038646772517961000, "line_mean": 29.0555555556, "line_max": 80, "alpha_frac": 0.6142945163, "autogenerated": false, "ratio": 4...
from elemental_core.util import process_uuid_value, process_uuids_value from ._resource_instance import ResourceInstance from ._resource_reference import ResourceReference from ._property_changed_hook import PropertyChangedHook class ViewInstance(ResourceInstance): """ Represents a stack of `FilterInstances`...
{ "repo_name": "artPlusPlus/elemental-backend", "path": "elemental_backend/resources/_view_instance.py", "copies": "1", "size": "3206", "license": "mpl-2.0", "hash": -6665340126550597000, "line_mean": 29.2452830189, "line_max": 79, "alpha_frac": 0.6122894573, "autogenerated": false, "ratio": 4.037...
from element.cli import utils import jsonpickle import os import solidfire import collections # Check the tree generator: def test_check_tree_generator(): """ SDK1.6 Note: Removing this test as print_tree is not supported in 1.6, """ print("print_tree is not supported in SDK1.6") """ ...
{ "repo_name": "solidfire/Python-CLI", "path": "element/tests/utils_suite.py", "copies": "2", "size": "1254", "license": "apache-2.0", "hash": 1173003316752989700, "line_mean": 30.35, "line_max": 77, "alpha_frac": 0.6507177033, "autogenerated": false, "ratio": 3.645348837209302, "config_test": f...
from .elementfinder import ElementFinder class TableElementFinder(object): def __init__(self, element_finder=None): if not element_finder: element_finder = ElementFinder() self._element_finder = element_finder self._locator_suffixes = { ('css', 'default'): [''], ...
{ "repo_name": "vincentfretin/robotframework-selenium2library", "path": "src/Selenium2Library/locators/tableelementfinder.py", "copies": "1", "size": "3890", "license": "apache-2.0", "hash": 68590885179098010, "line_mean": 42.2222222222, "line_max": 88, "alpha_frac": 0.5503856041, "autogenerated": f...
from .elementfinder import ElementFinder class TableElementFinder(object): def __init__(self, element_finder=None): if not element_finder: element_finder = ElementFinder() self._element_finder = element_finder self._locator_suffixes = { ('css', 'default'): [''], ...
{ "repo_name": "Gaurang033/Selenium2Library", "path": "src/Selenium2Library/locators/tableelementfinder.py", "copies": "1", "size": "4564", "license": "apache-2.0", "hash": -7112888403523789000, "line_mean": 42.4666666667, "line_max": 123, "alpha_frac": 0.5352760736, "autogenerated": false, "ratio...
from element import BasePageElement from locators import HomePageLocators from locators import PageHeaderLocators from locators import PageFooterLocators from selenium.webdriver.common.action_chains import ActionChains class BasePage(object): def __init__(self, driver): self.driver = driver class Hom...
{ "repo_name": "technolotrix/tests", "path": "tests/selenium/test_homepage/page.py", "copies": "1", "size": "2802", "license": "apache-2.0", "hash": 3851082531115160000, "line_mean": 34.0375, "line_max": 83, "alpha_frac": 0.6859386153, "autogenerated": false, "ratio": 3.615483870967742, "config_...
from element import BasePageElement from locators import PageFooterLocators from selenium.webdriver.common.action_chains import ActionChains class BasePage(object): def __init__(self, driver): self.driver = driver class FooterPage(BasePage): def is_copyright_matches(self): return "Lauren...
{ "repo_name": "technolotrix/tests", "path": "tests/selenium/footer/page.py", "copies": "1", "size": "1389", "license": "apache-2.0", "hash": -8698555432515601000, "line_mean": 32.0952380952, "line_max": 83, "alpha_frac": 0.6990640749, "autogenerated": false, "ratio": 3.5615384615384613, "config...
from element import BasePageElement from locators import PageHeaderLocators from selenium.webdriver.common.action_chains import ActionChains class BasePage(object): def __init__(self, driver): self.driver = driver class HeaderPage(BasePage): def click_quote_button(self): element = self.d...
{ "repo_name": "technolotrix/tests", "path": "tests/selenium/header/page.py", "copies": "1", "size": "1506", "license": "apache-2.0", "hash": -8961749056670050000, "line_mean": 31.0638297872, "line_max": 81, "alpha_frac": 0.6799468792, "autogenerated": false, "ratio": 3.73697270471464, "config_t...
from .element import ContextElement class UpdateContext(object): def __init__(self, elements, action="UPDATE"): self.elements = elements self.action = action # UPDATE|APPEND def to_dict(self): return { "ContextElements": [e.to_dict() for e in self.elements], "...
{ "repo_name": "iotlabsltd/fiware", "path": "fiware/ngsi/ops.py", "copies": "1", "size": "2070", "license": "apache-2.0", "hash": 5999770729830786000, "line_mean": 29, "line_max": 86, "alpha_frac": 0.5289855072, "autogenerated": false, "ratio": 4.181818181818182, "config_test": false, "has_no_...
from .element import Element from .anchor import Anchor from .heading import Heading from .paragraph import Paragraph ITEMSEVS = { 'danger': 'list-group-item-danger', 'success': 'list-group-item-success', 'info': 'list-group-item-info', 'warning': 'list-group-item-warning', ...
{ "repo_name": "tryexceptpass/sofi", "path": "sofi/ui/listgroup.py", "copies": "2", "size": "2892", "license": "mit", "hash": 6668888331476665000, "line_mean": 28.5102040816, "line_max": 114, "alpha_frac": 0.5290456432, "autogenerated": false, "ratio": 3.9454297407912686, "config_test": false, ...
from .element import Element from .anchor import Anchor from .unorderedlist import UnorderedList from .navbaritem import NavbarItem class Navbar(Element): """Implements the navbar component""" def __init__(self, brand="Brand", inverse=False, fixed=None, static=False, cl=None, ident=None, style=None, attrs=Non...
{ "repo_name": "tryexceptpass/sofi", "path": "sofi/ui/navbar.py", "copies": "1", "size": "3553", "license": "mit", "hash": -4002701482575130600, "line_mean": 33.1634615385, "line_max": 160, "alpha_frac": 0.5823247959, "autogenerated": false, "ratio": 3.8494041170097506, "config_test": false, "...
from .element import Element from .anchor import Anchor class DropdownItem(Element): """Implements an item from a Dropdown list""" def __init__(self, text=None, disabled=False, header=False, divider=False, cl=None, ident=None, style=None, attrs=None): super().__init__(cl=cl, ident=ident, style=style, ...
{ "repo_name": "jigarmistry/sofi", "path": "sofi/ui/dropdownitem.py", "copies": "2", "size": "1715", "license": "mit", "hash": 8810611318738039000, "line_mean": 26.6612903226, "line_max": 144, "alpha_frac": 0.5189504373, "autogenerated": false, "ratio": 4.016393442622951, "config_test": false, ...
from .element import Element from .anchor import Anchor class NavbarItem(Element): """Implements an item for a Navbar""" def __init__(self, text='', href=None, cl=None, ident=None, style=None, attrs=None): super().__init__(cl=cl, ident=ident, style=style, attrs=attrs) self.text = text ...
{ "repo_name": "jigarmistry/sofi", "path": "sofi/ui/navbaritem.py", "copies": "2", "size": "1780", "license": "mit", "hash": -6076280487326199000, "line_mean": 24.7971014493, "line_max": 88, "alpha_frac": 0.4848314607, "autogenerated": false, "ratio": 4, "config_test": false, "has_no_keywords"...
from .element import Element from .button import Button from .buttongroup import ButtonGroup from .dropdownitem import DropdownItem from .unorderedlist import UnorderedList class ButtonDropdown(Element): """Implements a button dropdown <div class=\"btn-toolbar\">""" def __init__(self, text=None, split=False, ...
{ "repo_name": "tryexceptpass/sofi", "path": "sofi/ui/buttondropdown.py", "copies": "2", "size": "2119", "license": "mit", "hash": -2722732295980559400, "line_mean": 31.1060606061, "line_max": 161, "alpha_frac": 0.5870693723, "autogenerated": false, "ratio": 3.7974910394265233, "config_test": fa...
from .element import Element from .button import Button class ButtonGroup(Element): """Implements a button group <div class=\"btn-group\">""" def __init__(self, size=None, vertical=False, justified=False, cl=None, ident=None, style=None, attrs=None): super().__init__(cl=cl, ident=ident, style=style, a...
{ "repo_name": "tryexceptpass/sofi", "path": "sofi/ui/buttongroup.py", "copies": "2", "size": "2017", "license": "mit", "hash": 6282334689932287000, "line_mean": 29.1044776119, "line_max": 112, "alpha_frac": 0.5180961824, "autogenerated": false, "ratio": 4.001984126984127, "config_test": false, ...
from .element import Element from .column import Column class Row(Element): """Implements row layout with format <div class=\"row\">""" def __init__(self, cl=None, ident=None, style=None, attrs=None): super().__init__(cl=cl, ident=ident, style=style, attrs=attrs) def newcolumn(self, item, **kwarg...
{ "repo_name": "tryexceptpass/sofi", "path": "sofi/ui/row.py", "copies": "1", "size": "1244", "license": "mit", "hash": 996879664000115000, "line_mean": 22.9230769231, "line_max": 70, "alpha_frac": 0.5064308682, "autogenerated": false, "ratio": 3.961783439490446, "config_test": false, "has_no_...
from .element import Element from .constants import LABEL_CLASS_MARK, ALIGN_JUSTIFY class TextAtom(Element): def init(self): self.content = self._params.get('content', '') self.font_family = self._params.get('font-family') self.font_style = self._params.get('font-style') self.font_...
{ "repo_name": "eblade/pyroman2", "path": "pyroman/paragraph.py", "copies": "1", "size": "10106", "license": "mit", "hash": -6871941939225401000, "line_mean": 36.992481203, "line_max": 113, "alpha_frac": 0.5319612112, "autogenerated": false, "ratio": 3.7906976744186047, "config_test": false, "...
from Element import Element from lib.shapes.ShapeGroup import ShapeGroup from lib.shapes.Text import Text from lib.shapes.Coordinate import Coordinate from lib.shapes.Rectangle import Rectangle class Legend(Element): """A legend element.""" def __init__(self, entries=(), x=0.0, y=0.0, width=1.0, height=1.0, en...
{ "repo_name": "agold/svgchart", "path": "lib/elements/Legend.py", "copies": "1", "size": "3581", "license": "apache-2.0", "hash": 8794004948661990000, "line_mean": 33.7669902913, "line_max": 124, "alpha_frac": 0.696174253, "autogenerated": false, "ratio": 3.38468809073724, "config_test": false,...
from .element import Element from .listgroup import ListGroup from .table import Table class Panel(Element): """Implements a Bootstrap panel""" SEVERITIES = { 'danger': 'panel-danger', 'success': 'panel-success', 'info': 'panel-info', 'warning': 'pa...
{ "repo_name": "jigarmistry/sofi", "path": "sofi/ui/panel.py", "copies": "2", "size": "3589", "license": "mit", "hash": 5576585498220024000, "line_mean": 27.9435483871, "line_max": 124, "alpha_frac": 0.5218723879, "autogenerated": false, "ratio": 4.355582524271845, "config_test": false, "has_n...
from .element import Element from .listitem import ListItem from .button import Button from .div import Div from .anchor import Anchor from .span import CaretSpan from .unorderedlist import UnorderedList from collections import OrderedDict class Dropdown(Element): """Implements a Bootstrap dropdown tag""" de...
{ "repo_name": "jigarmistry/sofi", "path": "sofi/ui/dropdown.py", "copies": "2", "size": "2053", "license": "mit", "hash": 6745246132600498000, "line_mean": 28.3285714286, "line_max": 120, "alpha_frac": 0.572820263, "autogenerated": false, "ratio": 3.633628318584071, "config_test": false, "has...
from .. element import Element from .mpole import Multipole import copy class Quadrupole(Multipole): propertyNames = copy.deepcopy(Multipole.propertyNames) # propertyNames.update(['L_ANGLE', 'R_ANGLE']) def __init__(self, name, **param): # set type, defaults Multipole.__init__(self, name, DESIG...
{ "repo_name": "YueHao/PyLatte", "path": "elements/quadrupole.py", "copies": "1", "size": "6345", "license": "mit", "hash": 4076509572242430000, "line_mean": 42.4657534247, "line_max": 141, "alpha_frac": 0.5052797478, "autogenerated": false, "ratio": 3.275684047496128, "config_test": false, "h...
from .element import Element from .navbar import Navbar from .fontawesomeicon import FontAwesomeIcon class View(Element): """Main object representing a webpage""" def __init__(self, title=None, cl=None, style=None, bscss="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min...
{ "repo_name": "tryexceptpass/sofi", "path": "sofi/ui/view.py", "copies": "1", "size": "2397", "license": "mit", "hash": 5924617486622581000, "line_mean": 33.2428571429, "line_max": 144, "alpha_frac": 0.5373383396, "autogenerated": false, "ratio": 4.001669449081803, "config_test": false, "has_...
from .element import Element from .node import Node from io import StringIO import html class Text(Node): def __init__(self, parent, indent, rawtext, inline=True, escape=True): super().__init__(parent, indent) self.rawtext = rawtext self.inline = inline self.escape = escape @...
{ "repo_name": "minacle/yarh", "path": "yarh/text.py", "copies": "1", "size": "1716", "license": "bsd-2-clause", "hash": -87921863632248560, "line_mean": 32.6470588235, "line_max": 132, "alpha_frac": 0.5728438228, "autogenerated": false, "ratio": 4.279301745635911, "config_test": false, "has_n...
from .element import Element from .row import Row class Container(Element): """Implements a container tag of form <div class=\"container\"> or <div class=\"container-fluid\">""" def __init__(self, fluid=False, cl=None, ident=None, style=None, attrs=None): super().__init__(cl=cl, ident=ident, style...
{ "repo_name": "jigarmistry/sofi", "path": "sofi/ui/container.py", "copies": "1", "size": "1398", "license": "mit", "hash": -5329489688889047000, "line_mean": 23.9642857143, "line_max": 81, "alpha_frac": 0.5164520744, "autogenerated": false, "ratio": 3.960339943342776, "config_test": false, "h...
from .element import Element from .span import Span class Label(Element): """Implements a Bootstrap Label <span class="label"> tag""" SEVERITIES = { 'danger': 'label-danger', 'success': 'label-success', 'info': 'label-info', 'warning': 'label-warnin...
{ "repo_name": "jigarmistry/sofi", "path": "sofi/ui/label.py", "copies": "2", "size": "1145", "license": "mit", "hash": 3120153539774151700, "line_mean": 29.9459459459, "line_max": 94, "alpha_frac": 0.5344978166, "autogenerated": false, "ratio": 3.9347079037800685, "config_test": false, "has_n...
from .element import Element from .tablerow import TableRow from .tablecell import TableCell class TableBody(Element): """Implements the <tbody> tag""" def __init__(self, cl=None, ident=None, style=None, attrs=None): super().__init__(cl=cl, ident=ident, style=style, attrs=attrs) def addrow(self, ...
{ "repo_name": "tryexceptpass/sofi", "path": "sofi/ui/tablebody.py", "copies": "1", "size": "1389", "license": "mit", "hash": 2384135985124337000, "line_mean": 23.8035714286, "line_max": 70, "alpha_frac": 0.5125989921, "autogenerated": false, "ratio": 4.049562682215743, "config_test": false, "...
from .element import Element from .tablerow import TableRow from .tablecell import TableCell class TableHead(Element): """Implements the <thead> tag""" def __init__(self, cl=None, ident=None, style=None, attrs=None): super().__init__(cl=cl, ident=ident, style=style, attrs=attrs) def addrow(self, ...
{ "repo_name": "tryexceptpass/sofi", "path": "sofi/ui/tablehead.py", "copies": "1", "size": "1401", "license": "mit", "hash": -3583715347314455600, "line_mean": 23.5789473684, "line_max": 70, "alpha_frac": 0.5139186296, "autogenerated": false, "ratio": 4.037463976945245, "config_test": false, ...
from .. element import Element from .. track import pass_components import copy import numpy as np class Multipole(Element): SI_index_factor=0.175603595979828817023843904486 SI_index_4th=[SI_index_factor+0.5, 2*SI_index_factor+1, -SI_index_factor, -4*SI_index_factor-1, -SI_index_factor, 2*SI_...
{ "repo_name": "YueHao/PyLatte", "path": "elements/mpole.py", "copies": "1", "size": "6737", "license": "mit", "hash": -7728469075947829000, "line_mean": 42.1858974359, "line_max": 116, "alpha_frac": 0.527831379, "autogenerated": false, "ratio": 3.276750972762646, "config_test": false, "has_no...
from .. element import Element import copy import numpy as np class Tmap(Element): propertyNames = copy.deepcopy(Element.propertyNames) propertyNames.update([ 'D1', 'D2', 'D3', 'D4', 'D5', 'D6', 'R11', 'R12', 'R13', 'R14', 'R15', 'R16', 'R21', 'R22', 'R23', 'R24', 'R25', 'R26', ...
{ "repo_name": "YueHao/PyLatte", "path": "elements/tmap.py", "copies": "1", "size": "1411", "license": "mit", "hash": 7952677271776884000, "line_mean": 38.1944444444, "line_max": 115, "alpha_frac": 0.4826364281, "autogenerated": false, "ratio": 2.939583333333333, "config_test": false, "has_no_...
from .element import Element class Abbreviation(Element): """Implementation of the <abbr> tag""" def __init__(self, title="", text=None, initialism=False, cl=None, ident=None, style=None, attrs=None): super().__init__(cl=cl, ident=ident, style=style, attrs=attrs) self.title = title se...
{ "repo_name": "jigarmistry/sofi", "path": "sofi/ui/abbreviation.py", "copies": "2", "size": "1492", "license": "mit", "hash": 1307700512469545700, "line_mean": 27.6923076923, "line_max": 107, "alpha_frac": 0.5053619303, "autogenerated": false, "ratio": 4.043360433604336, "config_test": false, ...
from .element import Element class Address(Element): """Implements the <address> tag""" def __init__(self, text=None, cl=None, ident=None, style=None, attrs=None): super().__init__(cl=cl, ident=ident, style=style, attrs=attrs) if text: self._children.append(text) def __repr_...
{ "repo_name": "tryexceptpass/sofi", "path": "sofi/ui/address.py", "copies": "2", "size": "1109", "license": "mit", "hash": -4063076219310279000, "line_mean": 23.6444444444, "line_max": 79, "alpha_frac": 0.4977457169, "autogenerated": false, "ratio": 4.077205882352941, "config_test": false, "h...
from .element import Element class Alert(Element): """Implements the <div class="alert"> tag""" SEVERITIES = { 'danger': 'alert-danger', 'success': 'alert-success', 'info': 'alert-info', 'warning': 'alert-warning' } def __init_...
{ "repo_name": "tryexceptpass/sofi", "path": "sofi/ui/alert.py", "copies": "2", "size": "1996", "license": "mit", "hash": 9182341478842227000, "line_mean": 27.9275362319, "line_max": 110, "alpha_frac": 0.5140280561, "autogenerated": false, "ratio": 4.056910569105691, "config_test": false, "has...
from .element import Element class Anchor(Element): """Implements the <a> tag""" def __init__(self, text=None, href="#", cl=None, ident=None, style=None, attrs=None): super().__init__(cl=cl, ident=ident, style=style, attrs=attrs) self.href = href if text: self._children....
{ "repo_name": "jigarmistry/sofi", "path": "sofi/ui/anchor.py", "copies": "2", "size": "1243", "license": "mit", "hash": 5478526860486774000, "line_mean": 23.3725490196, "line_max": 89, "alpha_frac": 0.4891391794, "autogenerated": false, "ratio": 3.9585987261146496, "config_test": false, "has_...
from Element import Element class Axis(Element): """The base class for an axis element.""" def __init__(self, min=0.0, max=1.0, start=0.0, end=1.0, majorticks=5, minorticks=20, majorlength=10, minorlength=5, labelformat='%d', id=u'', classes=(), baseid=u'', baseclasses=(), labelidprefi...
{ "repo_name": "agold/svgchart", "path": "lib/elements/Axis.py", "copies": "1", "size": "4322", "license": "apache-2.0", "hash": -3227645719565133300, "line_mean": 30.7867647059, "line_max": 108, "alpha_frac": 0.7112447941, "autogenerated": false, "ratio": 3.4798711755233493, "config_test": fals...
from .element import Element class BasicBlock(Element): """Implements <pre> tag""" def __init__(self, text=None, cl=None, ident=None, style=None, attrs=None): super().__init__(cl=cl, ident=ident, style=style, attrs=attrs) if text: self._children.append(text) def __repr__(sel...
{ "repo_name": "tryexceptpass/sofi", "path": "sofi/ui/basicblock.py", "copies": "2", "size": "1097", "license": "mit", "hash": -2197021306725788200, "line_mean": 23.3777777778, "line_max": 79, "alpha_frac": 0.4949863263, "autogenerated": false, "ratio": 4.033088235294118, "config_test": false, ...
from .element import Element class Blockquote(Element): """Implements the <blockquote> tag""" def __init__(self, text=None, reverse=False, cl=None, ident=None, style=None, attrs=None): super().__init__(cl=cl, ident=ident, style=style, attrs=attrs) self.reverse = reverse if text: ...
{ "repo_name": "jigarmistry/sofi", "path": "sofi/ui/blockquote.py", "copies": "2", "size": "1395", "license": "mit", "hash": 3385057334991572000, "line_mean": 26.3529411765, "line_max": 94, "alpha_frac": 0.5025089606, "autogenerated": false, "ratio": 4.201807228915663, "config_test": false, "h...
from .element import Element class Bold(Element): """Implements the <strong> tag""" def __init__(self, text=None, cl=None, ident=None, style=None, attrs=None): super().__init__(cl=cl, ident=ident, style=style, attrs=attrs) if text: self._children.append(text) def __repr__(se...
{ "repo_name": "jigarmistry/sofi", "path": "sofi/ui/bold.py", "copies": "2", "size": "1098", "license": "mit", "hash": -3359983473244712000, "line_mean": 23.4, "line_max": 79, "alpha_frac": 0.4945355191, "autogenerated": false, "ratio": 4.036764705882353, "config_test": false, "has_no_keywords...
from .element import Element class Button(Element): """Implements the <button> tag""" SEVERITIES = { 'danger': 'btn-danger', 'success': 'btn-success', 'info': 'btn-info', 'warning': 'btn-warning', 'primary': 'btn-primary', ...
{ "repo_name": "jigarmistry/sofi", "path": "sofi/ui/button.py", "copies": "2", "size": "2076", "license": "mit", "hash": 398197424843211970, "line_mean": 29.0869565217, "line_max": 105, "alpha_frac": 0.4903660886, "autogenerated": false, "ratio": 4.031067961165048, "config_test": false, "has_n...
from .element import Element class ButtonToolbar(Element): """Implements a button toolbar <div class=\"btn-toolbar\">""" def __init__(self, cl=None, ident=None, style=None, attrs=None): super().__init__(cl=cl, ident=ident, style=style, attrs=attrs) def __repr__(self): return "<ButtonToolb...
{ "repo_name": "jigarmistry/sofi", "path": "sofi/ui/buttontoolbar.py", "copies": "2", "size": "1115", "license": "mit", "hash": -5750995335222899000, "line_mean": 24.3409090909, "line_max": 70, "alpha_frac": 0.5130044843, "autogenerated": false, "ratio": 4.054545454545455, "config_test": false, ...
from .element import Element class Cite(Element): """Implementation of the <cite> tag""" def __init__(self, text=None, cl=None, ident=None, style=None, attrs=None): super().__init__(cl=cl, ident=ident, style=style, attrs=attrs) if text: self._children.append(text) def __repr...
{ "repo_name": "jigarmistry/sofi", "path": "sofi/ui/cite.py", "copies": "2", "size": "1099", "license": "mit", "hash": -2222501710413463800, "line_mean": 23.4222222222, "line_max": 79, "alpha_frac": 0.4940855323, "autogenerated": false, "ratio": 4.010948905109489, "config_test": false, "has_no...
from .element import Element class Code(Element): """Implements <code> tag""" def __init__(self, text=None, cl=None, ident=None, style=None, attrs=None): super().__init__(cl=cl, ident=ident, style=style, attrs=attrs) if text: self._children.append(text) def __repr__(self): ...
{ "repo_name": "tryexceptpass/sofi", "path": "sofi/ui/code.py", "copies": "2", "size": "1088", "license": "mit", "hash": 238029202951147170, "line_mean": 23.1777777778, "line_max": 79, "alpha_frac": 0.4908088235, "autogenerated": false, "ratio": 4.029629629629629, "config_test": false, "has_no...
from .element import Element class Column(Element): """Implements the column layout <div class=\"col-\"> where size, count and offset attributes are used to create the class name, i.e.: col-md-4 or col-offset-md-4""" def __init__(self, size='md', count=4, offset=0, cl=None, ident=None, style=None, attrs=N...
{ "repo_name": "jigarmistry/sofi", "path": "sofi/ui/column.py", "copies": "2", "size": "1679", "license": "mit", "hash": -6085039376711284000, "line_mean": 27.9482758621, "line_max": 115, "alpha_frac": 0.5211435378, "autogenerated": false, "ratio": 3.8333333333333335, "config_test": false, "ha...
from element import Element class Country(): def __init__(self): self.area = None self.element = None def add_area(self, list_of_points): if not self._check_inline(list_of_points): self.area = Area(list_of_points, self) def is_adjacent(self, other): return self._intersects(other, False) def is_enemy(...
{ "repo_name": "Alberdi/ancientest", "path": "src/country.py", "copies": "1", "size": "3817", "license": "mit", "hash": -6412176367811113000, "line_mean": 30.0325203252, "line_max": 179, "alpha_frac": 0.6560125753, "autogenerated": false, "ratio": 2.6861365235749473, "config_test": false, "has...
from element import Element class Creature(): def __init__(self): self.element = None self.residence = None self.strength = 10 def add_residence(self, area): self.residence = area def remove_residence(self, area): self.residence = None def get_strength_to(self, country_element): if country_element...
{ "repo_name": "Alberdi/ancientest", "path": "src/creature.py", "copies": "1", "size": "1099", "license": "mit", "hash": 5798027715639156000, "line_mean": 24.5581395349, "line_max": 52, "alpha_frac": 0.7106460419, "autogenerated": false, "ratio": 3.019230769230769, "config_test": false, "has_n...
from .element import Element class Deleted(Element): """Implements <del> tag""" def __init__(self, text=None, cl=None, ident=None, style=None, attrs=None): super().__init__(cl=cl, ident=ident, style=style, attrs=attrs) if text: self._children.append(text) def __repr__(self):...
{ "repo_name": "tryexceptpass/sofi", "path": "sofi/ui/deleted.py", "copies": "2", "size": "1091", "license": "mit", "hash": -8226886833575437000, "line_mean": 23.2444444444, "line_max": 79, "alpha_frac": 0.4922089826, "autogenerated": false, "ratio": 4.025830258302583, "config_test": false, "h...
from .element import Element class DescriptionDefinition(Element): """Implements <dd> tag""" def __init__(self, text=None, cl=None, ident=None, style=None, attrs=None): super().__init__(cl=cl, ident=ident, style=style, attrs=attrs) if text: self._children.append(text) def __...
{ "repo_name": "jigarmistry/sofi", "path": "sofi/ui/descriptiondefinition.py", "copies": "2", "size": "1116", "license": "mit", "hash": 4135626286006082000, "line_mean": 23.8, "line_max": 79, "alpha_frac": 0.5035842294, "autogenerated": false, "ratio": 4.102941176470588, "config_test": false, ...
from .element import Element class Description(Element): """Implements <dl> tag""" def __init__(self, text=None, horizontal=False, cl=None, ident=None, style=None, attrs=None): super().__init__(cl=cl, ident=ident, style=style, attrs=attrs) self.horizontal = horizontal if text: ...
{ "repo_name": "jigarmistry/sofi", "path": "sofi/ui/description.py", "copies": "2", "size": "1381", "license": "mit", "hash": -5703340105284280000, "line_mean": 25.5576923077, "line_max": 97, "alpha_frac": 0.4989138306, "autogenerated": false, "ratio": 4.236196319018405, "config_test": false, ...
from .element import Element class DescriptionTerm(Element): """Implements <dt> tag""" def __init__(self, text=None, cl=None, ident=None, style=None, attrs=None): super().__init__(cl=cl, ident=ident, style=style, attrs=attrs) if text: self._children.append(text) def __repr__...
{ "repo_name": "tryexceptpass/sofi", "path": "sofi/ui/descriptionterm.py", "copies": "2", "size": "1104", "license": "mit", "hash": -3073266301596653600, "line_mean": 23.5333333333, "line_max": 79, "alpha_frac": 0.4981884058, "autogenerated": false, "ratio": 4.0588235294117645, "config_test": fa...
from .element import Element class Div(Element): """Implements <div> tag""" def __init__(self, text=None, cl=None, ident=None, style=None, attrs=None): super().__init__(cl=cl, ident=ident, style=style, attrs=attrs) if text: self._children.append(text) def __repr__(self): ...
{ "repo_name": "jigarmistry/sofi", "path": "sofi/ui/div.py", "copies": "2", "size": "1082", "license": "mit", "hash": -1270303851006176000, "line_mean": 23.5909090909, "line_max": 79, "alpha_frac": 0.488909427, "autogenerated": false, "ratio": 4.007407407407407, "config_test": false, "has_no_k...
from .element import Element class FontAwesomeIcon(Element): """Implements a Font Awesome Icons""" def __init__(self, name=None, size=None, fixed=False, animation=None, rotate=None, flip=None, border=False, pull=None, cl=None, ident=None, style=None, attrs=None): supe...
{ "repo_name": "jigarmistry/sofi", "path": "sofi/ui/fontawesomeicon.py", "copies": "2", "size": "2085", "license": "mit", "hash": -9168876548643083000, "line_mean": 24.4268292683, "line_max": 73, "alpha_frac": 0.5035971223, "autogenerated": false, "ratio": 4.009615384615385, "config_test": false...
from .element import Element class Footer(Element): """Implements <footer> tag""" def __init__(self, text=None, cl=None, ident=None, style=None, attrs=None): super().__init__(cl=cl, ident=ident, style=style, attrs=attrs) if text: self._children.append(text) def __repr__(self...
{ "repo_name": "tryexceptpass/sofi", "path": "sofi/ui/footer.py", "copies": "2", "size": "1098", "license": "mit", "hash": 4576321564093490700, "line_mean": 23.4, "line_max": 79, "alpha_frac": 0.4954462659, "autogenerated": false, "ratio": 4.036764705882353, "config_test": false, "has_no_keywo...
from .element import Element class Form(Element): """Implements the <form> tag""" def __init__(self, inline=False, horizontal=False, cl=None, ident=None, style=None, attrs=None): super().__init__(cl=cl, ident=ident, style=style, attrs=attrs) self.inline = inline self.horizontal = hori...
{ "repo_name": "tryexceptpass/sofi", "path": "sofi/ui/form.py", "copies": "2", "size": "1399", "license": "mit", "hash": 8720887631294217000, "line_mean": 24.9074074074, "line_max": 100, "alpha_frac": 0.5039313796, "autogenerated": false, "ratio": 4.066860465116279, "config_test": false, "has_...
from .element import Element class Heading(Element): """Implements heading tags using size attribute: <h1>, <h2>, etc.""" def __init__(self, size=1, text=None, cl=None, ident=None, style=None, attrs=None): super().__init__(cl=cl, ident=ident, style=style, attrs=attrs) self.size = size ...
{ "repo_name": "tryexceptpass/sofi", "path": "sofi/ui/heading.py", "copies": "2", "size": "1271", "license": "mit", "hash": -7072593296430304000, "line_mean": 25.4791666667, "line_max": 87, "alpha_frac": 0.5043273013, "autogenerated": false, "ratio": 3.8868501529051986, "config_test": false, "...
from .element import Element class Inserted(Element): """Implements <ins> tag""" def __init__(self, text=None, cl=None, ident=None, style=None, attrs=None): super().__init__(cl=cl, ident=ident, style=style, attrs=attrs) if text: self._children.append(text) def __repr__(self)...
{ "repo_name": "tryexceptpass/sofi", "path": "sofi/ui/inserted.py", "copies": "2", "size": "1093", "license": "mit", "hash": 5253981398346123000, "line_mean": 23.2888888889, "line_max": 79, "alpha_frac": 0.4931381519, "autogenerated": false, "ratio": 4.018382352941177, "config_test": false, "h...
from .element import Element class Italics(Element): """Implements <em> tag""" def __init__(self, text=None, cl=None, ident=None, style=None, attrs=None): super().__init__(cl=cl, ident=ident, style=style, attrs=attrs) if text: self._children.append(text) def __repr__(self): ...
{ "repo_name": "jigarmistry/sofi", "path": "sofi/ui/italics.py", "copies": "2", "size": "1088", "license": "mit", "hash": 5964804082945535000, "line_mean": 23.1777777778, "line_max": 79, "alpha_frac": 0.4908088235, "autogenerated": false, "ratio": 3.9708029197080292, "config_test": false, "has...
from .element import Element class Jumbotron(Element): """Implements the Bootstrap Jumbotron <div class="jumbotron">""" def __init__(self, text=None, cl=None, ident=None, style=None, attrs=None): super().__init__(cl=cl, ident=ident, style=style, attrs=attrs) if text: self._childre...
{ "repo_name": "tryexceptpass/sofi", "path": "sofi/ui/jumbotron.py", "copies": "2", "size": "1222", "license": "mit", "hash": 8135958568111860000, "line_mean": 23.9591836735, "line_max": 79, "alpha_frac": 0.5122749591, "autogenerated": false, "ratio": 3.9419354838709677, "config_test": false, ...
from .element import Element class ListItem(Element): """Implements <li> tag""" def __init__(self, text=None, cl=None, ident=None, style=None, attrs=None): super().__init__(cl=cl, ident=ident, style=style, attrs=attrs) self.text = text def __repr__(self): return "<ListItem>" ...
{ "repo_name": "tryexceptpass/sofi", "path": "sofi/ui/listitem.py", "copies": "2", "size": "1118", "license": "mit", "hash": 2442675071589678000, "line_mean": 22.7872340426, "line_max": 79, "alpha_frac": 0.4919499106, "autogenerated": false, "ratio": 4.007168458781362, "config_test": false, "h...
from .element import Element class Mark(Element): """Implements <mark> tag""" def __init__(self, text=None, cl=None, ident=None, style=None, attrs=None): super().__init__(cl=cl, ident=ident, style=style, attrs=attrs) if text: self._children.append(text) def __repr__(self): ...
{ "repo_name": "jigarmistry/sofi", "path": "sofi/ui/mark.py", "copies": "2", "size": "1088", "license": "mit", "hash": -6146650747922235000, "line_mean": 23.1777777778, "line_max": 79, "alpha_frac": 0.4908088235, "autogenerated": false, "ratio": 4.029629629629629, "config_test": false, "has_no...
from .element import Element class OrderedList(Element): """Implements <ol> tag""" def __init__(self, text=None, cl=None, ident=None, style=None, attrs=None): super().__init__(cl=cl, ident=ident, style=style, attrs=attrs) if text: self._children.append(text) def __repr__(sel...
{ "repo_name": "tryexceptpass/sofi", "path": "sofi/ui/orderedlist.py", "copies": "2", "size": "1096", "license": "mit", "hash": 7870973891307867000, "line_mean": 23.3555555556, "line_max": 79, "alpha_frac": 0.4945255474, "autogenerated": false, "ratio": 4.029411764705882, "config_test": false, ...
from .element import Element class Paragraph(Element): """Implements <p> tag""" def __init__(self, text=None, cl=None, ident=None, style=None, attrs=None): super().__init__(cl=cl, ident=ident, style=style, attrs=attrs) if text: self._children.append(text) def __repr__(self): ...
{ "repo_name": "tryexceptpass/sofi", "path": "sofi/ui/paragraph.py", "copies": "2", "size": "1088", "license": "mit", "hash": -4113120601417937000, "line_mean": 23.7272727273, "line_max": 79, "alpha_frac": 0.4917279412, "autogenerated": false, "ratio": 4.014760147601476, "config_test": false, ...
from .element import Element class Row(Element): """Implements row layout with format <div class=\"row\">""" def __init__(self, cl=None, ident=None, style=None, attrs=None): super().__init__(cl=cl, ident=ident, style=style, attrs=attrs) def __repr__(self): return "<Row>" def __str__(...
{ "repo_name": "jigarmistry/sofi", "path": "sofi/ui/row.py", "copies": "1", "size": "1074", "license": "mit", "hash": -3983989225560982500, "line_mean": 23.4090909091, "line_max": 70, "alpha_frac": 0.4953445065, "autogenerated": false, "ratio": 4.007462686567164, "config_test": false, "has_no_...
from .element import Element class Sample(Element): """Implements <samp> tag""" def __init__(self, text=None, cl=None, ident=None, style=None, attrs=None): super().__init__(cl=cl, ident=ident, style=style, attrs=attrs) if text: self._children.append(text) def __repr__(self):...
{ "repo_name": "tryexceptpass/sofi", "path": "sofi/ui/sample.py", "copies": "2", "size": "1092", "license": "mit", "hash": -6326684894179690000, "line_mean": 23.2666666667, "line_max": 79, "alpha_frac": 0.4926739927, "autogenerated": false, "ratio": 4.044444444444444, "config_test": false, "ha...
from .element import Element class Small(Element): """Implements <small> tag""" def __init__(self, text=None, cl=None, ident=None, style=None, attrs=None): super().__init__(cl=cl, ident=ident, style=style, attrs=attrs) if text: self._children.append(text) def __repr__(self): ...
{ "repo_name": "jigarmistry/sofi", "path": "sofi/ui/small.py", "copies": "2", "size": "1092", "license": "mit", "hash": -6763661281997044000, "line_mean": 23.8181818182, "line_max": 79, "alpha_frac": 0.4935897436, "autogenerated": false, "ratio": 4.044444444444444, "config_test": false, "has_n...
from .element import Element class Span(Element): """Implements <span> tag""" def __init__(self, text=None, cl=None, ident=None, style=None, attrs=None): super().__init__(cl=cl, ident=ident, style=style, attrs=attrs) if text: self._children.append(text) def __repr__(self): ...
{ "repo_name": "tryexceptpass/sofi", "path": "sofi/ui/span.py", "copies": "2", "size": "1454", "license": "mit", "hash": -1816765259215070000, "line_mean": 25.4363636364, "line_max": 104, "alpha_frac": 0.5158184319, "autogenerated": false, "ratio": 3.8981233243967828, "config_test": false, "ha...
from .element import Element class Strikethrough(Element): """Implements <s> tag""" def __init__(self, text=None, cl=None, ident=None, style=None, attrs=None): super().__init__(cl=cl, ident=ident, style=style, attrs=attrs) if text: self._children.append(text) def __repr__(sel...
{ "repo_name": "tryexceptpass/sofi", "path": "sofi/ui/strikethrough.py", "copies": "2", "size": "1096", "license": "mit", "hash": -8151070790352057000, "line_mean": 23.9090909091, "line_max": 79, "alpha_frac": 0.4954379562, "autogenerated": false, "ratio": 4, "config_test": false, "has_no_keyw...
from .element import Element class TableBody(Element): """Implements the <tbody> tag""" def __init__(self, cl=None, ident=None, style=None, attrs=None): super().__init__(cl=cl, ident=ident, style=style, attrs=attrs) def __repr__(self): return "<TableBody>" def __str__(self): ...
{ "repo_name": "jigarmistry/sofi", "path": "sofi/ui/tablebody.py", "copies": "1", "size": "1035", "license": "mit", "hash": -9160705087503402000, "line_mean": 24.243902439, "line_max": 70, "alpha_frac": 0.4966183575, "autogenerated": false, "ratio": 4.04296875, "config_test": false, "has_no_ke...
from .element import Element class TableCell(Element): """Implements <td> and <th> tag""" def __init__(self, text=None, head=False, cl=None, ident=None, style=None, attrs=None): super().__init__(cl=cl, ident=ident, style=style, attrs=attrs) if text: self._children.append(text) ...
{ "repo_name": "tryexceptpass/sofi", "path": "sofi/ui/tablecell.py", "copies": "1", "size": "1234", "license": "mit", "hash": -7937304708764080000, "line_mean": 23.68, "line_max": 91, "alpha_frac": 0.4846029173, "autogenerated": false, "ratio": 3.9551282051282053, "config_test": false, "has_no...
from .element import Element class TableCell(Element): """Implements <td> tag""" def __init__(self, text=None, cl=None, ident=None, style=None, attrs=None): super().__init__(cl=cl, ident=ident, style=style, attrs=attrs) if text: self._children.append(text) def __repr__(self)...
{ "repo_name": "jigarmistry/sofi", "path": "sofi/ui/tablecell.py", "copies": "1", "size": "1092", "license": "mit", "hash": -1771125924169091600, "line_mean": 23.2666666667, "line_max": 79, "alpha_frac": 0.4926739927, "autogenerated": false, "ratio": 4.014705882352941, "config_test": false, "h...
from .element import Element class Table(Element): """Implements the <table> tag""" def __init__(self, striped=False, bordered=False, hover=False, condensed=False, responsive=False, cl=None, ident=None, style=None, attrs=None): super().__init__(cl=cl, ident=ident, style=style, attrs=attrs) se...
{ "repo_name": "tryexceptpass/sofi", "path": "sofi/ui/table.py", "copies": "2", "size": "1955", "license": "mit", "hash": -2893471628190458000, "line_mean": 27.3333333333, "line_max": 203, "alpha_frac": 0.5248081841, "autogenerated": false, "ratio": 3.7741312741312742, "config_test": false, "h...
from .element import Element class TableFooter(Element): """Implements the <tfoot> tag""" def __init__(self, cl=None, ident=None, style=None, attrs=None): super().__init__(cl=cl, ident=ident, style=style, attrs=attrs) def __repr__(self): return "<TableFooter>" def __str__(self): ...
{ "repo_name": "jigarmistry/sofi", "path": "sofi/ui/tablefooter.py", "copies": "2", "size": "1039", "license": "mit", "hash": 7485919953986507000, "line_mean": 24.3414634146, "line_max": 70, "alpha_frac": 0.4985563041, "autogenerated": false, "ratio": 3.9808429118773945, "config_test": false, ...
from .element import Element class TableHead(Element): """Implements the <thead> tag""" def __init__(self, cl=None, ident=None, style=None, attrs=None): super().__init__(cl=cl, ident=ident, style=style, attrs=attrs) def __repr__(self): return "<TableHead>" def __str__(self): ...
{ "repo_name": "jigarmistry/sofi", "path": "sofi/ui/tablehead.py", "copies": "1", "size": "1035", "license": "mit", "hash": -7539302723209962000, "line_mean": 24.243902439, "line_max": 70, "alpha_frac": 0.4966183575, "autogenerated": false, "ratio": 4.04296875, "config_test": false, "has_no_ke...
from .element import Element class TableRow(Element): """Implements <tr> tag""" def __init__(self, text=None, cl=None, ident=None, style=None, attrs=None): super().__init__(cl=cl, ident=ident, style=style, attrs=attrs) if text: self._children.append(text) def __repr__(self):...
{ "repo_name": "tryexceptpass/sofi", "path": "sofi/ui/tablerow.py", "copies": "2", "size": "1090", "license": "mit", "hash": 1294236347137222700, "line_mean": 23.2222222222, "line_max": 79, "alpha_frac": 0.4917431193, "autogenerated": false, "ratio": 4.007352941176471, "config_test": false, "h...
from .element import Element class Underlined(Element): """Implements <u> tag""" def __init__(self, text=None, cl=None, ident=None, style=None, attrs=None): super().__init__(cl=cl, ident=ident, style=style, attrs=attrs) if text: self._children.append(text) def __repr__(self):...
{ "repo_name": "tryexceptpass/sofi", "path": "sofi/ui/underlined.py", "copies": "2", "size": "1090", "license": "mit", "hash": -8721455498203523000, "line_mean": 23.7727272727, "line_max": 79, "alpha_frac": 0.4926605505, "autogenerated": false, "ratio": 4.007352941176471, "config_test": false, ...
from .element import Element class UnorderedList(Element): """Implements <ul> tag""" def __init__(self, text=None, unstyled=False, inline=False, cl=None, ident=None, style=None, attrs=None): super().__init__(cl=cl, ident=ident, style=style, attrs=attrs) self.unstyled = unstyled self....
{ "repo_name": "jigarmistry/sofi", "path": "sofi/ui/unorderedlist.py", "copies": "2", "size": "1608", "license": "mit", "hash": 7163349292814277000, "line_mean": 27.2105263158, "line_max": 109, "alpha_frac": 0.4950248756, "autogenerated": false, "ratio": 4.0099750623441395, "config_test": false,...
from .element import Element class UserInput(Element): """Implements <kbd> tag""" def __init__(self, text=None, cl=None, ident=None, style=None, attrs=None): super().__init__(cl=cl, ident=ident, style=style, attrs=attrs) if text: self._children.append(text) def __repr__(self...
{ "repo_name": "jigarmistry/sofi", "path": "sofi/ui/userinput.py", "copies": "2", "size": "1095", "license": "mit", "hash": 4005553198866669000, "line_mean": 23.3333333333, "line_max": 79, "alpha_frac": 0.4940639269, "autogenerated": false, "ratio": 3.981818181818182, "config_test": false, "ha...
from .element import Element class Variable(Element): """Implements <var> tag""" def __init__(self, text=None, cl=None, ident=None, style=None, attrs=None): super().__init__(cl=cl, ident=ident, style=style, attrs=attrs) if text: self._children.append(text) def __repr__(self)...
{ "repo_name": "jigarmistry/sofi", "path": "sofi/ui/variable.py", "copies": "2", "size": "1093", "license": "mit", "hash": 7142411390400701000, "line_mean": 23.2888888889, "line_max": 79, "alpha_frac": 0.4931381519, "autogenerated": false, "ratio": 4.048148148148148, "config_test": false, "has...
from .element import Element from base64 import b64encode class Image(Element): """Implements the <img> tag""" VARIETIES = { 'rounded': 'img-rounded', 'circle': 'img-circle', 'thumbnail': 'img-thumbnail', } def __init__(self, src=No...
{ "repo_name": "jigarmistry/sofi", "path": "sofi/ui/image.py", "copies": "2", "size": "2811", "license": "mit", "hash": 14205983237326524, "line_mean": 26.0288461538, "line_max": 145, "alpha_frac": 0.4966204198, "autogenerated": false, "ratio": 4.097667638483965, "config_test": false, "has_no_...
from .element import Element class Box(Element): def init(self): self.word_wrap = self._params.get( 'word-wrap', self.parent.word_wrap) self.font_family = self._params.get( 'font-family', self.parent.font_family) self.font_style = self._params.get( 'font...
{ "repo_name": "eblade/pyroman2", "path": "pyroman/box.py", "copies": "1", "size": "2962", "license": "mit", "hash": -5245275692287697000, "line_mean": 37.4675324675, "line_max": 79, "alpha_frac": 0.5293720459, "autogenerated": false, "ratio": 3.965194109772423, "config_test": false, "has_no_k...
from .element import Element class Construct(Element): def init(self): self.word_wrap = self._params.get( 'word-wrap', self.parent.word_wrap) self.font_family = self._params.get( 'font-family', self.parent.font_family) self.font_style = self._params.get( ...
{ "repo_name": "eblade/pyroman2", "path": "pyroman/construct.py", "copies": "1", "size": "2522", "license": "mit", "hash": -2204119931923115300, "line_mean": 36.0882352941, "line_max": 81, "alpha_frac": 0.5634417129, "autogenerated": false, "ratio": 3.7811094452773615, "config_test": false, "h...
from .element import Element class Page(Element): def init(self): self.word_wrap = self._params.get('word-wrap', self.parent.word_wrap) self.font_family = self._params.get('font-family', self.parent.font_family) self.font_style = self._params.get...
{ "repo_name": "eblade/pyroman2", "path": "pyroman/page.py", "copies": "1", "size": "3056", "license": "mit", "hash": 5739412117681825000, "line_mean": 42.0422535211, "line_max": 77, "alpha_frac": 0.5346858639, "autogenerated": false, "ratio": 4.074666666666666, "config_test": false, "has_no_k...
from .element import Element class StaticElement(Element): def __init__(self, parent, locator): """ Creates a new instance of the StaticElement. :param parent: the parent context :param locator: the locator of this element (relative to parent context). ...
{ "repo_name": "KarlGong/easyium", "path": "easyium/static_element.py", "copies": "1", "size": "1819", "license": "apache-2.0", "hash": -406338434290018940, "line_mean": 36.8958333333, "line_max": 94, "alpha_frac": 0.5470038483, "autogenerated": false, "ratio": 4.15296803652968, "config_test": f...
from .element import Element from .span import Span class Input(Element): """Implements <input> tag""" _TYPES = [ "text", "password", "datetime", "datetime-local", "date", "month", "time", "week", "number", "email", "url", "search", "tel", "color" ] _SIZES = { "large": "input-lg", ...
{ "repo_name": "tryexceptpass/sofi", "path": "sofi/ui/input.py", "copies": "2", "size": "2455", "license": "mit", "hash": 4179485220741284000, "line_mean": 27.578313253, "line_max": 150, "alpha_frac": 0.5095723014, "autogenerated": false, "ratio": 4.00489396411093, "config_test": false, "has_n...
from .element import Element class Textarea(Element): """Implements <textarea> tag""" def __init__(self, text=None, rows=None, cl=None, ident=None, style=None, attrs=None): super().__init__(cl=cl, ident=ident, style=style, attrs=attrs) if text: self._children.append(tex...
{ "repo_name": "jigarmistry/sofi", "path": "sofi/ui/textarea.py", "copies": "2", "size": "1318", "license": "mit", "hash": 1851905948711019500, "line_mean": 23.3461538462, "line_max": 90, "alpha_frac": 0.4810318665, "autogenerated": false, "ratio": 4.184126984126984, "config_test": false, "has...
from element import Elem from item import Item #@UnusedImport, suppress Eclipse warning, used dynamically in convert_to_item() eval class OrganizemItemDataConversionException(Exception): pass class BaseItemConverter(object): @staticmethod def convert_to_item(item): pass class YamlItemConverter(...
{ "repo_name": "marksweiss/organize-m", "path": "lib/item_converter.py", "copies": "1", "size": "3756", "license": "mit", "hash": -4825872651329018000, "line_mean": 44.2530120482, "line_max": 138, "alpha_frac": 0.582800852, "autogenerated": false, "ratio": 3.896265560165975, "config_test": false...
from element import Elem class Action(object): ADD = 'add' ADD_EMPTY = 'add_empty' REMOVE = 'remove' FIND = 'find' SHOW_GROUPED = 'show_grouped' SHOW_ELEMENTS = 'show_elements' REBUILD_GROUPED = 'rebuild_grouped' BACKUP = 'backup' SETCONF_DATA_FILE = 'setconf_data_file' SETCONF...
{ "repo_name": "marksweiss/organize-m", "path": "lib/orgm_controller_base.py", "copies": "1", "size": "2151", "license": "mit", "hash": 8949255881822971000, "line_mean": 30.1739130435, "line_max": 103, "alpha_frac": 0.6290097629, "autogenerated": false, "ratio": 3.6395939086294415, "config_test"...
from .element import GraphElement from .broker import VertexBroker class Vertex(GraphElement): Broker = VertexBroker def outE(self, *edge_classes): g = self._graph return g.outE(self._id, *edge_classes) if g else None def inE(self, *edge_classes): g = self._graph return g....
{ "repo_name": "lebedov/pyorient", "path": "pyorient/ogm/vertex.py", "copies": "1", "size": "2008", "license": "apache-2.0", "hash": 1157629627511365600, "line_mean": 31.9180327869, "line_max": 76, "alpha_frac": 0.5876494024, "autogenerated": false, "ratio": 3.725417439703154, "config_test": fal...
from .element import GraphElement from .broker import VertexBroker class Vertex(GraphElement): Broker = VertexBroker # TODO # Edge information is carried in vertexes retrieved from database, # as OrientBinaryObject. Can likely optimise these traversals # when we know how to parse these. def ou...
{ "repo_name": "Ostico/pyorient", "path": "pyorient/ogm/vertex.py", "copies": "3", "size": "2195", "license": "apache-2.0", "hash": 7786283134360386000, "line_mean": 32.7692307692, "line_max": 76, "alpha_frac": 0.5995444191, "autogenerated": false, "ratio": 3.765008576329331, "config_test": fals...
from .element import * from . import mrow from .mtoken import MOperator import re ''' The general mfenced element shown above is equivalent to the following expanded form: <mrow> <mo fence="true"> opening-fence </mo> <mrow> arg#1 <mo separator="true"> sep#1 </mo> ... <mo separator="true"...
{ "repo_name": "ahjulstad/mathdom-python3", "path": "mathml/pmathml/mfenced.py", "copies": "1", "size": "1913", "license": "mit", "hash": 9032370824714071000, "line_mean": 24.8513513514, "line_max": 85, "alpha_frac": 0.6555148981, "autogenerated": false, "ratio": 3.2205387205387206, "config_test...
from .element import * from . import mtoken class MRow(Element): class Strategy: def layout(self, elements): """Set positions of elements in a row; Returns (width, height, axis) of row""" global_axis = 0 max_height_non_stretchy = 0 max_height_stretchy = 0 max_dep...
{ "repo_name": "ahjulstad/mathdom-python3", "path": "mathml/pmathml/mrow.py", "copies": "1", "size": "5197", "license": "mit", "hash": -5065235597556215000, "line_mean": 31.2795031056, "line_max": 86, "alpha_frac": 0.6434481432, "autogenerated": false, "ratio": 3.2080246913580246, "config_test":...