text
stringlengths
0
1.05M
meta
dict
from foam.sfa.util.method import Method from foam.sfa.trust.credential import Credential from foam.sfa.util.parameter import Parameter class Update(Method): """ Update an object in the registry. Currently, this only updates the PLC information associated with the record. The SFA fields (name, type, G...
{ "repo_name": "dana-i2cat/felix", "path": "ofam/src/src/foam/sfa/methods/Update.py", "copies": "3", "size": "1322", "license": "apache-2.0", "hash": -5294919098851315000, "line_mean": 31.243902439, "line_max": 143, "alpha_frac": 0.6512859304, "autogenerated": false, "ratio": 3.820809248554913, ...
from foam.sfa.util.sfalogging import logger from foam.sfa.util.xml import XpathFilter from foam.sfa.util.xrn import Xrn from foam.sfa.rspecs.elements.element import Element from foam.sfa.rspecs.elements.node import Node from foam.sfa.rspecs.elements.sliver import Sliver from foam.sfa.rspecs.elements.location import Lo...
{ "repo_name": "ict-felix/stack", "path": "ofam/src/src/foam/sfa/rspecs/elements/versions/nitosv1Lease.py", "copies": "3", "size": "4424", "license": "apache-2.0", "hash": -4407758054690855400, "line_mean": 41.9514563107, "line_max": 164, "alpha_frac": 0.601039783, "autogenerated": false, "ratio":...
from foam.sfa.util.xrn import urn_to_hrn from foam.sfa.util.method import Method from foam.sfa.util.foam.sfa.ablesRuntime import run_foam.sfa.ables from foam.sfa.trust.credential import Credential from foam.sfa.util.parameter import Parameter, Mixed class GetTicket(Method): """ Retrieve a ticket. This operat...
{ "repo_name": "ict-felix/stack", "path": "ofam/src/src/foam/sfa/methods/GetTicket.py", "copies": "3", "size": "2287", "license": "apache-2.0", "hash": 596304858701821800, "line_mean": 39.1228070175, "line_max": 143, "alpha_frac": 0.6655006559, "autogenerated": false, "ratio": 3.7801652892561983, ...
from foam.sfa.util.xrn import urn_to_hrn from foam.sfa.util.method import Method from foam.sfa.trust.credential import Credential from foam.sfa.util.parameter import Parameter, Mixed class GetCredential(Method): """ Retrive a credential for an object If cred == None then the behavior reverts to GetSelfCr...
{ "repo_name": "ict-felix/stack", "path": "ofam/src/src/foam/sfa/methods/GetCredential.py", "copies": "3", "size": "1667", "license": "apache-2.0", "hash": -2468613239344310300, "line_mean": 33.7291666667, "line_max": 144, "alpha_frac": 0.649670066, "autogenerated": false, "ratio": 3.5926724137931...
from foam.sfa.util.xrn import Xrn from foam.sfa.rspecs.elements.element import Element from foam.sfa.rspecs.elements.link import Link from foam.sfa.rspecs.elements.interface import Interface from foam.sfa.rspecs.elements.property import Property class PGv2Link: @staticmethod def add_links(xml, links): ...
{ "repo_name": "dana-i2cat/felix", "path": "ofam/src/src/foam/sfa/rspecs/elements/versions/pgv2Link.py", "copies": "3", "size": "5284", "license": "apache-2.0", "hash": -7541183964658934000, "line_mean": 49.8076923077, "line_max": 112, "alpha_frac": 0.5607494322, "autogenerated": false, "ratio": 4...
from foam.sfa.util.xrn import Xrn from foam.sfa.util.method import Method from foam.sfa.trust.credential import Credential from foam.sfa.util.parameter import Parameter, Mixed class Remove(Method): """ Remove an object from the registry. If the object represents a PLC object, then the PLC records will al...
{ "repo_name": "ict-felix/stack", "path": "ofam/src/src/foam/sfa/methods/Remove.py", "copies": "3", "size": "1508", "license": "apache-2.0", "hash": -4687097972822503000, "line_mean": 33.2727272727, "line_max": 95, "alpha_frac": 0.6419098143, "autogenerated": false, "ratio": 3.6690997566909975, ...
from foam.sfa.util.xrn import Xrn from foam.sfa.util.xml import XmlElement from foam.sfa.rspecs.elements.element import Element from foam.sfa.rspecs.elements.sliver import Sliver from foam.sfa.rspecs.elements.versions.nitosv1PLTag import NITOSv1PLTag from sfa.planetlab.plxrn import PlXrn class NITOSv1Sliver: @s...
{ "repo_name": "dana-i2cat/felix", "path": "ofam/src/src/foam/sfa/rspecs/elements/versions/nitosv1Sliver.py", "copies": "3", "size": "2071", "license": "apache-2.0", "hash": 7859196751474327000, "line_mean": 35.3333333333, "line_max": 97, "alpha_frac": 0.5861902463, "autogenerated": false, "ratio"...
from foam.sfa.util.xrn import Xrn from foam.sfa.util.xml import XpathFilter from foam.sfa.rspecs.elements.node import Node from foam.sfa.rspecs.elements.sliver import Sliver from foam.sfa.rspecs.elements.location import Location from foam.sfa.rspecs.elements.hardware_type import HardwareType from foam.sfa.rspecs.eleme...
{ "repo_name": "ict-felix/stack", "path": "ofam/src/src/foam/sfa/rspecs/elements/versions/pgv2Node.py", "copies": "3", "size": "6632", "license": "apache-2.0", "hash": -2046615872932520000, "line_mean": 44.1156462585, "line_max": 108, "alpha_frac": 0.5793124246, "autogenerated": false, "ratio": 3....
from fobi.base import form_element_plugin_widget_registry from fobi.contrib.plugins.form_elements.fields.datetime.widgets import ( BaseDateTimePluginWidget ) from fobi.contrib.themes.bootstrap3 import UID __title__ = 'fobi.contrib.themes.bootstrap3.widgets.form_elements.' \ 'datetime_bootstrap3_widget....
{ "repo_name": "mansonul/events", "path": "events/contrib/themes/bootstrap3/widgets/form_elements/datetime_bootstrap3_widget/fobi_form_elements.py", "copies": "1", "size": "1072", "license": "mit", "hash": -5316315370071631000, "line_mean": 33.5806451613, "line_max": 72, "alpha_frac": 0.7164179104, ...
from fobi.base import form_element_plugin_widget_registry from fobi.contrib.plugins.form_elements.fields.date.widgets import ( BaseDatePluginWidget ) from fobi.contrib.themes.bootstrap3 import UID __title__ = 'fobi.contrib.themes.bootstrap3.widgets.form_elements.' \ 'date_bootstrap3_widget.fobi_form_el...
{ "repo_name": "mansonul/events", "path": "events/contrib/themes/bootstrap3/widgets/form_elements/date_bootstrap3_widget/fobi_form_elements.py", "copies": "1", "size": "1032", "license": "mit", "hash": -8588858634810909000, "line_mean": 32.2903225806, "line_max": 69, "alpha_frac": 0.7054263566, "aut...
from .focuser import AbstractFocuser import time import random class Focuser(AbstractFocuser): """ Simple focuser simulator """ def __init__(self, name='Simulated Focuser', port='/dev/ttyFAKE', *args, **kwargs): super().__init__(*args, name=...
{ "repo_name": "AstroHuntsman/POCS", "path": "pocs/focuser/simulator.py", "copies": "1", "size": "2301", "license": "mit", "hash": 4042803890131363000, "line_mean": 32.347826087, "line_max": 98, "alpha_frac": 0.5445458496, "autogenerated": false, "ratio": 4.416506717850288, "config_test": false,...
from focus.errors import HelpBanner from focus.version import __version__ from focus.environment.cli import FocusArgParser, CLI from focus_unittest import FocusTestCase, MockEnvironment class TestFocusArgParser(FocusTestCase): def setUp(self): super(TestFocusArgParser, self).setUp() self.parser = ...
{ "repo_name": "xtrementl/focus", "path": "tests/unit/environment/test_cli.py", "copies": "1", "size": "3915", "license": "mit", "hash": -5311099652075154000, "line_mean": 34.2702702703, "line_max": 79, "alpha_frac": 0.6117496807, "autogenerated": false, "ratio": 4.151643690349947, "config_test"...
from focus.plugin.base import Plugin from focus_unittest import FocusTestCase class TestPlugin(FocusTestCase): def setUp(self): super(TestPlugin, self).setUp() self.plugin = Plugin() def tearDown(self): self.plugin = None super(TestPlugin, self).tearDown() def testAllAttr...
{ "repo_name": "xtrementl/focus", "path": "tests/unit/plugin/test_base.py", "copies": "1", "size": "1144", "license": "mit", "hash": -9077881380348728000, "line_mean": 30.7777777778, "line_max": 73, "alpha_frac": 0.5611888112, "autogenerated": false, "ratio": 4.25278810408922, "config_test": tru...
from focus.plugin.modules import notify as plugins from focus_unittest import ( MockTask, FocusTestCase, IS_MACOSX, skipUnless, skipIf ) class NotifyCase(FocusTestCase): def setUp(self): super(NotifyCase, self).setUp() self.plugin = plugins.Notify() def tearDown(self): self.plugin...
{ "repo_name": "xtrementl/focus", "path": "tests/unit/plugin/modules/test_notify.py", "copies": "1", "size": "2374", "license": "mit", "hash": 8722550617479394000, "line_mean": 33.4057971014, "line_max": 73, "alpha_frac": 0.5661331087, "autogenerated": false, "ratio": 4.121527777777778, "config_...
from foialist.models import * from foialist.views import * from django.conf import settings import math def entities(): ''' builds a list of existing entites formatted as a javascript array for the autocomplete on the entry form. ''' entities = Entity.objects.all() entitylist = "[" ...
{ "repo_name": "a2civictech/a2docs-sources", "path": "foialist/helpers.py", "copies": "1", "size": "1535", "license": "bsd-3-clause", "hash": -4762926672141354000, "line_mean": 25.4827586207, "line_max": 52, "alpha_frac": 0.590228013, "autogenerated": false, "ratio": 3.6899038461538463, "config_...
from folder import Folder from article import Article import permissions from pyramid import security from bson.objectid import ObjectId import pyes from cms import dbutil from users import UserCollection, GroupCollection, User, generate_random_password from trash import Trash class Root(Folder): _object_ty...
{ "repo_name": "sbrauer/recms", "path": "cms/resources/root.py", "copies": "1", "size": "9167", "license": "mit", "hash": 7293186039316306000, "line_mean": 43.5, "line_max": 309, "alpha_frac": 0.6082687902, "autogenerated": false, "ratio": 3.956409149762624, "config_test": false, "has_no_keywo...
from folder import Folder import time from datetime import datetime import thread import subprocess import shutil import json import os import __init__ as ezex import util def xwrite(path,data): with open(path+'/ezex.json','w+') as f: json.dump(data,f) def xread(path): with open(path+'/ezex.json') as f: r...
{ "repo_name": "SimonRamstedt/ezex", "path": "ezex/experiment.py", "copies": "1", "size": "4203", "license": "mit", "hash": -5083574466846870000, "line_mean": 23.4418604651, "line_max": 76, "alpha_frac": 0.5745895789, "autogenerated": false, "ratio": 3.0859030837004404, "config_test": false, "...
from folder import Folder class Photofolder(): def __init__(self, folder): self.folder = folder pass photoextensions = ['.jpg', '.png'] def isint(self, str): try: int(str) return True except ValueError: return False def fileisphoto...
{ "repo_name": "MarkusAmshove/Photobox", "path": "photobox/photofolder.py", "copies": "1", "size": "1393", "license": "mit", "hash": -1935987460403258400, "line_mean": 29.2826086957, "line_max": 94, "alpha_frac": 0.6137832017, "autogenerated": false, "ratio": 3.8802228412256268, "config_test": f...
from folder import unindex_recursively from collection import Collection import zope.interface from interfaces import ITrash import permissions from bson.objectid import ObjectId from pyramid.security import authenticated_userid from cms.dateutil import utcnow from cms.exceptions import Veto class Trash(Collection): ...
{ "repo_name": "sbrauer/recms", "path": "cms/resources/trash.py", "copies": "1", "size": "5110", "license": "mit", "hash": -1472922596945845500, "line_mean": 42.3050847458, "line_max": 136, "alpha_frac": 0.6266144814, "autogenerated": false, "ratio": 4.001566170712608, "config_test": false, "h...
from .folder_loader import FolderLoaderPlaylist from .file_loader import FileLoaderPlaylist from kivy.properties import DictProperty from kivy.event import EventDispatcher from kivy.logger import Logger import global_vars as gvars from utils import logs import appworker from appworker import async_tasks import json imp...
{ "repo_name": "Bakterija/mmplayer", "path": "mmplayer/media_controller/playlist_loader/__init__.py", "copies": "1", "size": "5208", "license": "mit", "hash": -8659144698327863000, "line_mean": 34.9172413793, "line_max": 81, "alpha_frac": 0.5462749616, "autogenerated": false, "ratio": 4.5365853658...
from foldkin.base.model_factory import ModelFactory from foldkin.base.model import Model from foldkin.coop.coop_model import CoopModelFactory from copy import deepcopy def clone(ps): return deepcopy(ps) class CoopCollectionFactory(ModelFactory): """docstring for CoopCollectionFactory""" def __init__(self...
{ "repo_name": "grollins/foldkin", "path": "foldkin/coop/coop_collection.py", "copies": "1", "size": "2032", "license": "bsd-2-clause", "hash": -5876855280599904000, "line_mean": 34.0344827586, "line_max": 82, "alpha_frac": 0.6392716535, "autogenerated": false, "ratio": 4.138492871690428, "confi...
from foldkin.base.model_factory import ModelFactory from foldkin.base.model import Model from foldkin.zam_protein import create_zam_protein_from_pdb_id class ContactOrderModelFactory(ModelFactory): """docstring for ContactOrderModelFactory""" def __init__(self): super(ContactOrderModelFactory, self).__...
{ "repo_name": "grollins/foldkin", "path": "foldkin/kings/contact_order_model.py", "copies": "1", "size": "2148", "license": "bsd-2-clause", "hash": -4462443247395210000, "line_mean": 36.0344827586, "line_max": 80, "alpha_frac": 0.6513035382, "autogenerated": false, "ratio": 3.5328947368421053, ...
from foldkin.base.model_factory import ModelFactory from foldkin.kings.contact_order_model import ContactOrderModelFactory class ContactOrderCollectionFactory(ModelFactory): """docstring for ContactOrderCollectionFactory""" def __init__(self, pdb_id_list): super(ContactOrderCollectionFactory, self).__...
{ "repo_name": "grollins/foldkin", "path": "foldkin/kings/contact_order_collection.py", "copies": "1", "size": "1528", "license": "bsd-2-clause", "hash": -2185306959674432300, "line_mean": 32.9555555556, "line_max": 88, "alpha_frac": 0.664921466, "autogenerated": false, "ratio": 4.2444444444444445...
from foldkin.scipy_optimizer import ScipyOptimizer import foldkin.one_param_curve.curve_fit_one_feature_model as curve from foldkin.util import make_score_fcn import nose.tools from types import FloatType EPSILON = 1e-3 @nose.tools.istest class TestCurveFitOneFeatureFit(object): @nose.tools.istest def return_...
{ "repo_name": "grollins/foldkin", "path": "foldkin/test/test_curve_fit.py", "copies": "1", "size": "2306", "license": "bsd-2-clause", "hash": 4221378966934505000, "line_mean": 50.2444444444, "line_max": 80, "alpha_frac": 0.6248915872, "autogenerated": false, "ratio": 3.564142194744977, "config_...
from foldkin.scipy_optimizer import ScipyOptimizer import foldkin.simple.simple_model as simple_model import nose.tools from types import FloatType EPSILON = 1e-3 @nose.tools.istest class TestSimpleOptimization(object): def make_score_fcn(self, model_factory, parameter_set, judge, data_pre...
{ "repo_name": "grollins/foldkin", "path": "foldkin/test/test_simple_optimization.py", "copies": "1", "size": "3304", "license": "bsd-2-clause", "hash": 3976532150221296600, "line_mean": 46.884057971, "line_max": 87, "alpha_frac": 0.6156174334, "autogenerated": false, "ratio": 4.014580801944107, ...
from fol import * def remove_equivalences(statement): if isinstance(statement, Predicate): pass elif isinstance(statement, Equivalence): statement = remove_equivalences(statement.get_implications()) elif isinstance(statement, Quantifier): statement.statement = remove_equivalences(statement.statement)...
{ "repo_name": "m0hamed/fol-solver", "path": "clause_form.py", "copies": "1", "size": "5031", "license": "mit", "hash": 777663320791456300, "line_mean": 38, "line_max": 160, "alpha_frac": 0.7092029418, "autogenerated": false, "ratio": 3.6142241379310347, "config_test": false, "has_no_keywords"...
from fol import Predicate, Function, Variable, Nested, Atom class Substitution: def __init__(self, variable, replacement): self.variable = variable self.replacement = replacement def __str__(self): return str(self.replacement) + "/" + str(self.variable) def unify(formula1, formula2, mgu=[], trace=Fal...
{ "repo_name": "m0hamed/fol-solver", "path": "unification.py", "copies": "1", "size": "3123", "license": "mit", "hash": 8770336791081360000, "line_mean": 32.9456521739, "line_max": 111, "alpha_frac": 0.6436119116, "autogenerated": false, "ratio": 3.3012684989429175, "config_test": false, "has_...
from followthemoney import model from followthemoney.types import registry from aleph.model import Collection, Events from aleph.logic import resolver class Facet(object): def __init__(self, name, aggregations, parser): self.name = name self.parser = parser self.data = self.extract(aggreg...
{ "repo_name": "alephdata/aleph", "path": "aleph/search/facet.py", "copies": "1", "size": "3693", "license": "mit", "hash": 9179358044912402000, "line_mean": 31.9732142857, "line_max": 88, "alpha_frac": 0.5564581641, "autogenerated": false, "ratio": 4.044906900328587, "config_test": false, "ha...
from followthemoney import model from followthemoney.types import registry from aleph.model import Collection from aleph.logic import resolver class Facet(object): def __init__(self, name, aggregations, parser): self.name = name self.parser = parser self.data = self.extract(aggregations,...
{ "repo_name": "pudo/aleph", "path": "aleph/search/facet.py", "copies": "1", "size": "3166", "license": "mit", "hash": -8934566036977981000, "line_mean": 28.8679245283, "line_max": 75, "alpha_frac": 0.541692988, "autogenerated": false, "ratio": 4.171277997364954, "config_test": false, "has_no_...
from followthemoney import model from followthemoney.types import registry from ingestors.analysis import Analyzer from ingestors.analysis.patterns import EMAIL_REGEX, PHONE_REGEX from ingestors.analysis.patterns import IBAN_REGEX from .support import TestCase class TestAnalysis(TestCase): def _tagged_entity(se...
{ "repo_name": "alephdata/ingestors", "path": "tests/test_analysis.py", "copies": "1", "size": "3271", "license": "mit", "hash": 8631580901761049000, "line_mean": 33.4315789474, "line_max": 77, "alpha_frac": 0.5906450627, "autogenerated": false, "ratio": 3.5247844827586206, "config_test": true, ...
from followthemoney import model from normality import collapse_spaces ANALYZABLE = model.get("Analyzable") DOCUMENT = model.get("Document") TAG_PERSON = ANALYZABLE.get("peopleMentioned") TAG_COMPANY = ANALYZABLE.get("companiesMentioned") TAG_LANGUAGE = ANALYZABLE.get("detectedLanguage") TAG_COUNTRY = ANALYZABLE.get(...
{ "repo_name": "alephdata/ingestors", "path": "ingestors/analysis/util.py", "copies": "1", "size": "1104", "license": "mit", "hash": 4163704485776459000, "line_mean": 38.4285714286, "line_max": 66, "alpha_frac": 0.6992753623, "autogenerated": false, "ratio": 3.45, "config_test": false, "has_no...
from followthemoney import model from ingestors.ingestor import Ingestor from ingestors.support.encoding import EncodingSupport from ingestors.exc import ProcessingException class PlainTextIngestor(Ingestor, EncodingSupport): """Plan text file ingestor class. Extracts the text from the document and enforces...
{ "repo_name": "pudo/aleph", "path": "services/ingest-file/ingestors/documents/plain.py", "copies": "1", "size": "1356", "license": "mit", "hash": 9163377455881133000, "line_mean": 27.25, "line_max": 68, "alpha_frac": 0.5663716814, "autogenerated": false, "ratio": 3.3399014778325125, "config_tes...
from followthemoney import model from ingestors.ingestor import Ingestor from ingestors.support.pdf import PDFSupport from ingestors.support.ole import OLESupport class DocumentIngestor(Ingestor, OLESupport, PDFSupport): """Office/Word document ingestor class. Converts the document to PDF and extracts the t...
{ "repo_name": "pudo/aleph", "path": "services/ingest-file/ingestors/documents/office.py", "copies": "1", "size": "6814", "license": "mit", "hash": 815266494573957500, "line_mean": 38.6162790698, "line_max": 121, "alpha_frac": 0.5931904902, "autogenerated": false, "ratio": 3.3533464566929134, "c...
from followthemoney import model from ingestors.ingestor import Ingestor from ingestors.support.pdf import PDFSupport from ingestors.support.ooxml import OOXMLSupport class OfficeOpenXMLIngestor(Ingestor, OOXMLSupport, PDFSupport): """Office/Word document ingestor class. Converts the document to PDF and ext...
{ "repo_name": "pudo/aleph", "path": "services/ingest-file/ingestors/documents/ooxml.py", "copies": "1", "size": "1437", "license": "mit", "hash": 7298880375426226000, "line_mean": 32.4186046512, "line_max": 74, "alpha_frac": 0.6569241475, "autogenerated": false, "ratio": 3.6105527638190953, "co...
from followthemoney import model from ingestors.ingestor import Ingestor from ingestors.support.pdf import PDFSupport from ingestors.support.opendoc import OpenDocumentSupport class OpenDocumentIngestor(Ingestor, OpenDocumentSupport, PDFSupport): """Office/Word document ingestor class. Converts the document...
{ "repo_name": "pudo/aleph", "path": "services/ingest-file/ingestors/documents/opendoc.py", "copies": "1", "size": "1944", "license": "mit", "hash": -218819383437167840, "line_mean": 36.3846153846, "line_max": 70, "alpha_frac": 0.7011316872, "autogenerated": false, "ratio": 3.640449438202247, "c...
from followthemoney import model from ingestors.ingestor import Ingestor class DirectoryIngestor(Ingestor): """Traverse the entries in a directory.""" MIME_TYPE = "inode/directory" SKIP_ENTRIES = [ '.git', '.hg', '__MACOSX', '.gitignore' ] def ingest(self, file_p...
{ "repo_name": "pudo/aleph", "path": "services/ingest-file/ingestors/directory.py", "copies": "1", "size": "1588", "license": "mit", "hash": -5709671823624650000, "line_mean": 31.4081632653, "line_max": 66, "alpha_frac": 0.5415617128, "autogenerated": false, "ratio": 4.082262210796915, "config_t...
from followthemoney import model from ingestors.ingestor import Ingestor class DirectoryIngestor(Ingestor): """Traverse the entries in a directory.""" MIME_TYPE = "inode/directory" SKIP_ENTRIES = [".git", ".hg", "__MACOSX", ".gitignore"] def ingest(self, file_path, entity): """Ingestor imp...
{ "repo_name": "alephdata/ingestors", "path": "ingestors/directory.py", "copies": "1", "size": "1551", "license": "mit", "hash": 3079777888896278500, "line_mean": 33.4666666667, "line_max": 66, "alpha_frac": 0.55448098, "autogenerated": false, "ratio": 4.049608355091384, "config_test": false, ...
from fom.api import FluidApi from fom.tx import TxFluidDB from fom import errors from twisted.trial import unittest from twisted.internet import defer class TestTxFluidDB(unittest.TestCase): def setUp(self): self.db = TxFluidDB('http://sandbox.fluidinfo.com') @defer.inlineCallbacks def testReque...
{ "repo_name": "fluidinfo/fom", "path": "tests/test_tx.py", "copies": "1", "size": "1106", "license": "mit", "hash": -1460842600078825000, "line_mean": 29.7222222222, "line_max": 62, "alpha_frac": 0.6464737794, "autogenerated": false, "ratio": 3.567741935483871, "config_test": true, "has_no_ke...
from fom.session import Fluid from fom.mapping import Namespace, Tag from fom.mapping import Object, tag_value, readonly_tag_value import settings import time import calendar import article import json # Fluidinfo parser session = Fluid() class fi_article(Object): about = readonly_tag_value(u'fluiddb/about') doi =...
{ "repo_name": "elifesciences/elife-api-prototype", "path": "parseFI.py", "copies": "1", "size": "11309", "license": "mit", "hash": 4070911076872355300, "line_mean": 44.0597609562, "line_max": 121, "alpha_frac": 0.7285347953, "autogenerated": false, "ratio": 3.2357653791130185, "config_test": fa...
from fonction_py.tools import * from sklearn import linear_model import pandas as pd import numpy as np import matplotlib.pyplot as plt from sklearn import cross_validation from sklearn.linear_model import LogisticRegression from sklearn import tree from sklearn import svm from sklearn import decomposition from sklearn...
{ "repo_name": "LaRiffle/axa_challenge", "path": "fonction_py/train2.py", "copies": "1", "size": "9910", "license": "mit", "hash": -3229224324574464500, "line_mean": 55.9310344828, "line_max": 133, "alpha_frac": 0.6582534074, "autogenerated": false, "ratio": 3.2443498198493286, "config_test": fa...
from fonctions_basiques import * from objets import ObjetPyturbo class FrontiereChoro(ObjetPyturbo): """ classe qui permet l'analyse des fichiers chorochroniques Les coefficients choro sont stockes en tant que self.coeffs_a et self.coeffs_b shape = (nb_harmoniques, nb_var, dims_0, dims_1) dan...
{ "repo_name": "aurmarsan/pyturbo", "path": "convergence.py", "copies": "1", "size": "12224", "license": "mit", "hash": 8191293781585130000, "line_mean": 47.7011952191, "line_max": 127, "alpha_frac": 0.5022905759, "autogenerated": false, "ratio": 3.5721800116890705, "config_test": false, "has_...
from foneworx.utils import dict_to_xml, xml_to_dict, Dispatcher, tostring, api_response_to_dict, Element from twisted.internet.defer import Deferred, inlineCallbacks, returnValue from twisted.python import log from twisted.internet.protocol import ClientCreator from twisted.internet import reactor from xml.etree.Elem...
{ "repo_name": "smn/python-foneworx", "path": "foneworx/client.py", "copies": "1", "size": "10063", "license": "bsd-3-clause", "hash": 1364644427735807200, "line_mean": 31.5663430421, "line_max": 113, "alpha_frac": 0.5657358641, "autogenerated": false, "ratio": 4.363833477883781, "config_test": ...
from fontbakery.callable import check, condition from fontbakery.checkrunner import FAIL, PASS, WARN from fontbakery.message import Message # used to inform get_module_profile whether and how to create a profile from fontbakery.fonts_profile import profile_factory # NOQA pylint: disable=unused-import profile_imports ...
{ "repo_name": "moyogo/fontbakery", "path": "Lib/fontbakery/profiles/cff.py", "copies": "2", "size": "7932", "license": "apache-2.0", "hash": -854951948691031300, "line_mean": 35.0545454545, "line_max": 120, "alpha_frac": 0.5949319213, "autogenerated": false, "ratio": 3.672222222222222, "config_...
from fontbakery.callable import check, condition from fontbakery.checkrunner import PASS, WARN from fontbakery.message import Message # used to inform get_module_profile whether and how to create a profile from fontbakery.fonts_profile import profile_factory # NOQA pylint: disable=unused-import @condition def has_ke...
{ "repo_name": "graphicore/fontbakery", "path": "Lib/fontbakery/profiles/gpos.py", "copies": "1", "size": "1388", "license": "apache-2.0", "hash": -8512645826340312000, "line_mean": 34.5897435897, "line_max": 89, "alpha_frac": 0.6678674352, "autogenerated": false, "ratio": 3.8662952646239552, "c...
from fontbakery.callable import check, condition from fontbakery.status import FAIL, PASS, WARN from fontbakery.message import Message # used to inform get_module_profile whether and how to create a profile from fontbakery.fonts_profile import profile_factory # NOQA pylint: disable=unused-import profile_imports = [ ...
{ "repo_name": "googlefonts/fontbakery", "path": "Lib/fontbakery/profiles/cff.py", "copies": "1", "size": "8257", "license": "apache-2.0", "hash": 526201142057042800, "line_mean": 35.3744493392, "line_max": 469, "alpha_frac": 0.5934358726, "autogenerated": false, "ratio": 3.6697777777777776, "co...
from fontbakery.callable import check, condition from fontbakery.status import PASS, WARN from fontbakery.message import Message # used to inform get_module_profile whether and how to create a profile from fontbakery.fonts_profile import profile_factory # NOQA pylint: disable=unused-import @condition def has_kerning...
{ "repo_name": "googlefonts/fontbakery", "path": "Lib/fontbakery/profiles/gpos.py", "copies": "1", "size": "1509", "license": "apache-2.0", "hash": 8016954942950544000, "line_mean": 35.8048780488, "line_max": 89, "alpha_frac": 0.6732935719, "autogenerated": false, "ratio": 3.8692307692307693, "c...
from fontbakery.callable import check from fontbakery.checkrunner import ERROR, FAIL, PASS, WARN, INFO from fontbakery.message import Message from fontbakery.constants import (NameID, PlatformID, WindowsEncodingID, Win...
{ "repo_name": "graphicore/fontbakery", "path": "Lib/fontbakery/profiles/name.py", "copies": "1", "size": "18426", "license": "apache-2.0", "hash": 5650502475126499000, "line_mean": 41.5542725173, "line_max": 342, "alpha_frac": 0.5492239227, "autogenerated": false, "ratio": 4.127688172043011, "c...
from fontbakery.callable import check from fontbakery.checkrunner import FAIL, INFO, PASS, WARN from fontbakery.message import Message # used to inform get_module_profile whether and how to create a profile from fontbakery.fonts_profile import profile_factory # NOQA pylint: disable=unused-import @check( id = 'com....
{ "repo_name": "moyogo/fontbakery", "path": "Lib/fontbakery/profiles/kern.py", "copies": "1", "size": "3080", "license": "apache-2.0", "hash": -2702506947649630000, "line_mean": 51.2033898305, "line_max": 340, "alpha_frac": 0.6311688312, "autogenerated": false, "ratio": 4.301675977653631, "confi...
from fontbakery.callable import check from fontbakery.checkrunner import FAIL, PASS from fontbakery.message import Message # used to inform get_module_profile whether and how to create a profile from fontbakery.fonts_profile import profile_factory # NOQA pylint: disable=unused-import @check( id = 'com.google.font...
{ "repo_name": "moyogo/fontbakery", "path": "Lib/fontbakery/profiles/cmap.py", "copies": "2", "size": "2238", "license": "apache-2.0", "hash": 8217103135155320000, "line_mean": 36.9322033898, "line_max": 89, "alpha_frac": 0.6179624665, "autogenerated": false, "ratio": 4.175373134328358, "config_...
from fontbakery.callable import check from fontbakery.checkrunner import FAIL, PASS # used to inform get_module_profile whether and how to create a profile from fontbakery.fonts_profile import profile_factory # NOQA pylint: disable=unused-import profile_imports = [ ('.shared_conditions', ('is_ttf', )) ] @check( ...
{ "repo_name": "moyogo/fontbakery", "path": "Lib/fontbakery/profiles/post.py", "copies": "2", "size": "3264", "license": "apache-2.0", "hash": -580516306220090400, "line_mean": 37.4, "line_max": 245, "alpha_frac": 0.6446078431, "autogenerated": false, "ratio": 3.9043062200956937, "config_test": ...
from fontbakery.callable import check from fontbakery.checkrunner import FAIL, PASS, SKIP, WARN from fontbakery.message import Message # used to inform get_module_profile whether and how to create a profile from fontbakery.fonts_profile import profile_factory # NOQA pylint: disable=unused-import profile_imports = [ ...
{ "repo_name": "graphicore/fontbakery", "path": "Lib/fontbakery/profiles/hhea.py", "copies": "2", "size": "1852", "license": "apache-2.0", "hash": 694465002661436800, "line_mean": 36.7959183673, "line_max": 89, "alpha_frac": 0.620950324, "autogenerated": false, "ratio": 3.4232902033271717, "conf...
from fontbakery.callable import check from fontbakery.checkrunner import FAIL, PASS, WARN, INFO from fontbakery.message import Message # used to inform get_module_profile whether and how to create a profile from fontbakery.fonts_profile import profile_factory # NOQA pylint: disable=unused-import profile_imports = [ ...
{ "repo_name": "moyogo/fontbakery", "path": "Lib/fontbakery/profiles/os2.py", "copies": "2", "size": "11839", "license": "apache-2.0", "hash": -2867745990990617600, "line_mean": 38.4633333333, "line_max": 266, "alpha_frac": 0.5883942901, "autogenerated": false, "ratio": 3.96483590087073, "config...
from fontbakery.callable import check from fontbakery.checkrunner import FAIL, PASS, WARN from fontbakery.message import Message # used to inform get_module_profile whether and how to create a profile from fontbakery.fonts_profile import profile_factory # NOQA pylint: disable=unused-import profile_imports = [ ('.s...
{ "repo_name": "graphicore/fontbakery", "path": "Lib/fontbakery/profiles/fvar.py", "copies": "2", "size": "11057", "license": "apache-2.0", "hash": -5346988027309577000, "line_mean": 41.5269230769, "line_max": 285, "alpha_frac": 0.616261192, "autogenerated": false, "ratio": 3.737998647734956, "c...
from fontbakery.callable import check from fontbakery.checkrunner import FAIL, PASS, WARN, SKIP from fontbakery.message import Message # used to inform get_module_profile whether and how to create a profile from fontbakery.fonts_profile import profile_factory # NOQA pylint: disable=unused-import def _is_non_mark_cha...
{ "repo_name": "graphicore/fontbakery", "path": "Lib/fontbakery/profiles/gdef.py", "copies": "1", "size": "6860", "license": "apache-2.0", "hash": -7023560101261480000, "line_mean": 42.9743589744, "line_max": 157, "alpha_frac": 0.5683673469, "autogenerated": false, "ratio": 4.135021097046414, "c...
from fontbakery.callable import check from fontbakery.status import ERROR, FAIL, PASS, WARN, INFO from fontbakery.message import Message from fontbakery.constants import (NameID, PlatformID, WindowsEncodingID, WindowsL...
{ "repo_name": "googlefonts/fontbakery", "path": "Lib/fontbakery/profiles/name.py", "copies": "1", "size": "18726", "license": "apache-2.0", "hash": 1105248275282360400, "line_mean": 41.3665158371, "line_max": 342, "alpha_frac": 0.5499839795, "autogenerated": false, "ratio": 4.109282422646478, "...
from fontbakery.callable import check from fontbakery.status import FAIL, INFO, PASS, WARN from fontbakery.message import Message # used to inform get_module_profile whether and how to create a profile from fontbakery.fonts_profile import profile_factory # NOQA pylint: disable=unused-import @check( id = 'com.googl...
{ "repo_name": "googlefonts/fontbakery", "path": "Lib/fontbakery/profiles/kern.py", "copies": "1", "size": "3075", "license": "apache-2.0", "hash": 8378634742455424000, "line_mean": 51.1186440678, "line_max": 340, "alpha_frac": 0.6305691057, "autogenerated": false, "ratio": 4.300699300699301, "c...
from fontbakery.callable import check from fontbakery.status import FAIL, PASS from fontbakery.message import Message # used to inform get_module_profile whether and how to create a profile from fontbakery.fonts_profile import profile_factory # NOQA pylint: disable=unused-import @check( id = 'com.google.fonts/che...
{ "repo_name": "googlefonts/fontbakery", "path": "Lib/fontbakery/profiles/cmap.py", "copies": "1", "size": "2233", "license": "apache-2.0", "hash": 3617692398178430500, "line_mean": 36.8474576271, "line_max": 89, "alpha_frac": 0.6171070309, "autogenerated": false, "ratio": 4.173831775700934, "co...
from fontbakery.callable import check from fontbakery.status import FAIL, PASS, SKIP, WARN from fontbakery.message import Message # used to inform get_module_profile whether and how to create a profile from fontbakery.fonts_profile import profile_factory # NOQA pylint: disable=unused-import profile_imports = [ ('....
{ "repo_name": "googlefonts/fontbakery", "path": "Lib/fontbakery/profiles/hhea.py", "copies": "1", "size": "1847", "license": "apache-2.0", "hash": 5519955415518569000, "line_mean": 36.693877551, "line_max": 89, "alpha_frac": 0.6199242014, "autogenerated": false, "ratio": 3.4203703703703705, "co...
from fontbakery.callable import check from fontbakery.status import FAIL, PASS, WARN, INFO from fontbakery.message import Message # used to inform get_module_profile whether and how to create a profile from fontbakery.fonts_profile import profile_factory # NOQA pylint: disable=unused-import profile_imports = [ ('....
{ "repo_name": "googlefonts/fontbakery", "path": "Lib/fontbakery/profiles/os2.py", "copies": "1", "size": "12482", "license": "apache-2.0", "hash": 6095906120533072000, "line_mean": 38.251572327, "line_max": 266, "alpha_frac": 0.5799551354, "autogenerated": false, "ratio": 4.00834938985228, "con...
from fontbakery.callable import check from fontbakery.status import FAIL, PASS, WARN from fontbakery.message import Message # used to inform get_module_profile whether and how to create a profile from fontbakery.fonts_profile import profile_factory # NOQA pylint: disable=unused-import profile_imports = [ ('.shared...
{ "repo_name": "googlefonts/fontbakery", "path": "Lib/fontbakery/profiles/fvar.py", "copies": "1", "size": "11057", "license": "apache-2.0", "hash": 7585205092668191000, "line_mean": 41.5269230769, "line_max": 285, "alpha_frac": 0.616261192, "autogenerated": false, "ratio": 3.7392627663172133, "...
from fontbakery.callable import check from fontbakery.status import FAIL, PASS, WARN, SKIP from fontbakery.message import Message # used to inform get_module_profile whether and how to create a profile from fontbakery.fonts_profile import profile_factory # NOQA pylint: disable=unused-import def _is_non_spacing_mark_...
{ "repo_name": "googlefonts/fontbakery", "path": "Lib/fontbakery/profiles/gdef.py", "copies": "1", "size": "7117", "license": "apache-2.0", "hash": 3950665092659042300, "line_mean": 43.2049689441, "line_max": 157, "alpha_frac": 0.5710271182, "autogenerated": false, "ratio": 4.1377906976744185, "...
from fontbakery.callable import check from fontbakery.status import PASS, FAIL from fontbakery.message import Message from fontbakery.fonts_profile import profile_factory # NOQA pylint: disable=unused-import from opentypespec.tags import FEATURE_TAGS, SCRIPT_TAGS, LANGUAGE_TAGS def feature_tags(ttFont): in_this...
{ "repo_name": "googlefonts/fontbakery", "path": "Lib/fontbakery/profiles/layout.py", "copies": "1", "size": "4202", "license": "apache-2.0", "hash": -3288724009701863400, "line_mean": 36.185840708, "line_max": 226, "alpha_frac": 0.6320799619, "autogenerated": false, "ratio": 3.7618621307072515, ...
from fontbakery.checkrunner import FAIL from fontbakery.codetesting import (assert_PASS, assert_results_contain, CheckTester, TEST_FILE) from fontbakery.profiles import iso15008 as iso15008_profile def test_che...
{ "repo_name": "googlefonts/fontbakery", "path": "tests/profiles/iso15008_test.py", "copies": "1", "size": "4828", "license": "apache-2.0", "hash": 8523669189090395000, "line_mean": 40.9826086957, "line_max": 94, "alpha_frac": 0.5828500414, "autogenerated": false, "ratio": 3.7167051578137027, "c...
from fontbakery.checkrunner import Section from fontbakery.fonts_profile import profile_factory def check_filter(item_type, item_id, item): # Filter out external tool checks for testing purposes. if item_type == "check" and item_id in ( "com.google.fonts/check/ftxvalidator", "com.google.fonts/...
{ "repo_name": "moyogo/fontbakery", "path": "tests/profiles/external_profile_test.py", "copies": "2", "size": "7478", "license": "apache-2.0", "hash": -8639232076793543000, "line_mean": 35.8374384236, "line_max": 86, "alpha_frac": 0.6171436213, "autogenerated": false, "ratio": 3.954521417239556, ...
from fontbakery.commands.check_profile import get_module from fontbakery.reporters import FontbakeryReporter from fontbakery.reporters.html import HTMLReporter from fontbakery.reporters.ghmarkdown import GHMarkdownReporter from PyQt5.QtCore import QObject, pyqtSignal, pyqtSlot from fontbakery.checkrunner import ( g...
{ "repo_name": "googlefonts/fontbakery-ui", "path": "qfontbakery/fbinterface.py", "copies": "1", "size": "2224", "license": "apache-2.0", "hash": -6836607833945711000, "line_mean": 34.8709677419, "line_max": 80, "alpha_frac": 0.648381295, "autogenerated": false, "ratio": 4.073260073260073, "conf...
from fontbakery.errors import SetupError class Section: """ An ordered set of checks. Used to structure checks in a profile. A profile consists of one or more sections. """ def __init__(self, name, checks=None, order=None, description=None): self.name = name self.description = des...
{ "repo_name": "googlefonts/fontbakery", "path": "Lib/fontbakery/section.py", "copies": "1", "size": "5029", "license": "apache-2.0", "hash": -8798079821639177000, "line_mean": 35.4420289855, "line_max": 86, "alpha_frac": 0.5871942732, "autogenerated": false, "ratio": 4.197829716193656, "config_...
from fontbakery.fonts_profile import profile_factory # NOQA pylint: disable=unused-import from fontbakery.checkrunner import Section OPENTYPE_PROFILE_IMPORTS = ( ".", ( "cff", "cmap", "head", "os2", "post", "name", "loca", "hhea", "dsig",...
{ "repo_name": "graphicore/fontbakery", "path": "Lib/fontbakery/profiles/opentype.py", "copies": "1", "size": "3205", "license": "apache-2.0", "hash": -567360232447593300, "line_mean": 39.0625, "line_max": 90, "alpha_frac": 0.6920436817, "autogenerated": false, "ratio": 3.012218045112782, "confi...
from fontbakery.message import Message from fontbakery.callable import check from fontbakery.checkrunner import FAIL, PASS, WARN # used to inform get_module_profile whether and how to create a profile from fontbakery.fonts_profile import profile_factory # NOQA pylint: disable=unused-import import fontTools.ttLib @che...
{ "repo_name": "moyogo/fontbakery", "path": "Lib/fontbakery/profiles/glyf.py", "copies": "1", "size": "7203", "license": "apache-2.0", "hash": 6122703778527910000, "line_mean": 42.3915662651, "line_max": 228, "alpha_frac": 0.5658753297, "autogenerated": false, "ratio": 4.305439330543933, "config...
from fontbakery.message import Message from fontbakery.callable import check from fontbakery.status import FAIL, PASS, WARN # used to inform get_module_profile whether and how to create a profile from fontbakery.fonts_profile import profile_factory # NOQA pylint: disable=unused-import import fontTools.ttLib @check( ...
{ "repo_name": "googlefonts/fontbakery", "path": "Lib/fontbakery/profiles/glyf.py", "copies": "1", "size": "7200", "license": "apache-2.0", "hash": 7835126607458483000, "line_mean": 41.8571428571, "line_max": 228, "alpha_frac": 0.5654166667, "autogenerated": false, "ratio": 4.30622009569378, "co...
from fontbakery.profiles.universal import UNIVERSAL_PROFILE_CHECKS from fontbakery.section import Section from fontbakery.status import WARN, PASS #, INFO, ERROR, SKIP, FAIL from fontbakery.callable import check #, disable from fontbakery.message import Message from fontbakery.fonts_profile import profile_factory from ...
{ "repo_name": "googlefonts/fontbakery", "path": "Lib/fontbakery/profiles/notofonts.py", "copies": "1", "size": "6257", "license": "apache-2.0", "hash": 7293592882590449000, "line_mean": 50.2868852459, "line_max": 347, "alpha_frac": 0.6260188589, "autogenerated": false, "ratio": 3.8222357971899816...
from font import font class zschemaname( font ): """ Displays a header name for a Z Schema. It may contain text, images, equations, etc... but the width of it should be kept to a minimum so it isn't wider than the containing Z Schema box. See <a href="zschema.html">&lt;zschema&gt;</a> for proper usage. """ def...
{ "repo_name": "derekmd/opentag-presenter", "path": "tags/zschemaname.py", "copies": "1", "size": "2160", "license": "bsd-2-clause", "hash": -2531222877805202400, "line_mean": 22.2258064516, "line_max": 69, "alpha_frac": 0.6106481481, "autogenerated": false, "ratio": 3.4838709677419355, "config_...
from font import Font current_black_print = 0 current_white_print = 0 def sentence_within_word(sentence): return lambda arg: sentence[current_black_print % len(sentence)] def sentence_within_char(sentence, word, font): word_map = [font.character_map[c] for c in word] replace_word_map = [] sentence_...
{ "repo_name": "jacobcheatley/AsciiPrinter", "path": "advanced_character_printer.py", "copies": "1", "size": "3119", "license": "mit", "hash": -121393335203966260, "line_mean": 33.6666666667, "line_max": 121, "alpha_frac": 0.6014748317, "autogenerated": false, "ratio": 3.597462514417532, "config...
from font import font true = success = 1 false = failure = 0 class pre( font ): """ &lt;pre&gt; is used to preformat text, such as source code. Automatic text wrapping is disabled, and \n in the source will translate to a line break. <p> <b>Properties:</b> <br> See <a href="font.html">&lt;font&gt;</a> for pro...
{ "repo_name": "derekmd/opentag-presenter", "path": "tags/pre.py", "copies": "1", "size": "1120", "license": "bsd-2-clause", "hash": -3286338519338541000, "line_mean": 19.7407407407, "line_max": 63, "alpha_frac": 0.6232142857, "autogenerated": false, "ratio": 3.0853994490358128, "config_test": f...
from font import font true = success = 1 false = failure = 0 class subscript( font ): """ &lt;subscript&gt; makes text aligned to the bottom of the current line. <br> <br> For example: <pre> A&lt;subscript&gt;3,1&lt;/subscript&gt; </pre> ... would produce A<sub>3,1</sub> <p> <b>Properties:</b> <br> Se...
{ "repo_name": "derekmd/opentag-presenter", "path": "tags/subscript.py", "copies": "1", "size": "2489", "license": "bsd-2-clause", "hash": -6894447438412045000, "line_mean": 23.1650485437, "line_max": 72, "alpha_frac": 0.6347930896, "autogenerated": false, "ratio": 3.1347607052896724, "config_te...
from font import font true = success = 1 false = failure = 0 class superscript( font ): """ &lt;superscript&gt; makes text aligned to the top of the current line. It is most often used for exponents.<br> <br> For example: <pre> 8 &lt;superscript&gt; &lt;u&gt;3&lt;/u&gt; &lt;/superscript&gt; = 5...
{ "repo_name": "derekmd/opentag-presenter", "path": "tags/superscript.py", "copies": "1", "size": "2424", "license": "bsd-2-clause", "hash": -4118162794070049300, "line_mean": 22.5339805825, "line_max": 71, "alpha_frac": 0.6547029703, "autogenerated": false, "ratio": 3.0452261306532664, "config_...
from .font import getFont from reportlab.lib.rl_accel import escapePDF from reportlab.pdfbase import pdfmetrics class PDFText: def __init__(self, page, x=0, y=0): self.page = page self.write("BT\n") self.set_position(x, y) self.font_name = None self.font_size = None ...
{ "repo_name": "systori/bericht", "path": "bericht/pdf/text.py", "copies": "1", "size": "3119", "license": "bsd-3-clause", "hash": -2788084669134624300, "line_mean": 38.9871794872, "line_max": 98, "alpha_frac": 0.5190766271, "autogenerated": false, "ratio": 3.7175208581644816, "config_test": fal...
from fontMath.mathFunctions import factorAngle, _roundNumber __all__ = [ "_expandGuideline", "_compressGuideline", "_pairGuidelines", "_processMathOneGuidelines", "_processMathTwoGuidelines", "_roundGuidelines" ] def _expandGuideline(guideline): guideline = dict(guideline) x = guidelin...
{ "repo_name": "anthrotype/fontMath", "path": "Lib/fontMath/mathGuideline.py", "copies": "1", "size": "3731", "license": "mit", "hash": 1188208854885928000, "line_mean": 31.4434782609, "line_max": 101, "alpha_frac": 0.6161886894, "autogenerated": false, "ratio": 3.519811320754717, "config_test":...
from fontParts.base.base import BaseDict, dynamicProperty, reference from fontParts.base import normalizers from fontParts.base.deprecated import DeprecatedGroups, RemovedGroups class BaseGroups(BaseDict, DeprecatedGroups, RemovedGroups): """ A Groups object. This object normally created as part of a :cl...
{ "repo_name": "robofab-developers/fontParts", "path": "Lib/fontParts/base/groups.py", "copies": "1", "size": "11147", "license": "mit", "hash": 7354033429578311000, "line_mean": 31.0316091954, "line_max": 87, "alpha_frac": 0.5652641966, "autogenerated": false, "ratio": 4.364526233359436, "confi...
from fontParts.base.base import BaseDict, dynamicProperty, reference from fontParts.base import normalizers from fontParts.base.deprecated import DeprecatedLib, RemovedLib class BaseLib(BaseDict, DeprecatedLib, RemovedLib): """ A Lib object. This object normally created as part of a :class:`BaseFont`. An...
{ "repo_name": "robofab-developers/fontParts", "path": "Lib/fontParts/base/lib.py", "copies": "1", "size": "8671", "license": "mit", "hash": -270218474893853600, "line_mean": 30.190647482, "line_max": 86, "alpha_frac": 0.5450351747, "autogenerated": false, "ratio": 4.209223300970874, "config_tes...
from fontParts.base.base import BaseObject, dynamicProperty, reference from fontParts.base import normalizers from fontParts.base.deprecated import DeprecatedFeatures, RemovedFeatures class BaseFeatures(BaseObject, DeprecatedFeatures, RemovedFeatures): copyAttributes = ("text",) def _reprContents(self): ...
{ "repo_name": "robofab-developers/fontParts", "path": "Lib/fontParts/base/features.py", "copies": "1", "size": "2207", "license": "mit", "hash": 5402496910509630000, "line_mean": 25.9146341463, "line_max": 89, "alpha_frac": 0.5899410965, "autogenerated": false, "ratio": 4.335952848722986, "conf...
from fontParts.base.base import dynamicProperty # ---- # Base # ---- class BaseCompatibilityReporter(object): objectName = "Base" def __init__(self, obj1, obj2): self._object1 = obj1 self._object2 = obj2 # status fatal = False warning = False def _get_title(self): ...
{ "repo_name": "robofab-developers/fontParts", "path": "Lib/fontParts/base/compatibility.py", "copies": "1", "size": "22274", "license": "mit", "hash": 3124990156880493600, "line_mean": 33.6947040498, "line_max": 84, "alpha_frac": 0.5840890725, "autogenerated": false, "ratio": 4.363173359451518, ...
from fontParts.base.base import ( BaseDict, dynamicProperty, interpolate, reference ) from fontParts.base import normalizers from fontParts.base.deprecated import DeprecatedKerning, RemovedKerning class BaseKerning(BaseDict, DeprecatedKerning, RemovedKerning): """ A Kerning object. This objec...
{ "repo_name": "robofab-developers/fontParts", "path": "Lib/fontParts/base/kerning.py", "copies": "1", "size": "15208", "license": "mit", "hash": 1767238896258897400, "line_mean": 33.9609195402, "line_max": 90, "alpha_frac": 0.5466859548, "autogenerated": false, "ratio": 4.184920198128784, "conf...
from fontParts.base.base import ( BaseObject, dynamicProperty, interpolate, reference ) from fontParts.base import normalizers from fontParts.base.errors import FontPartsError from fontParts.base.deprecated import DeprecatedInfo, RemovedInfo class BaseInfo(BaseObject, DeprecatedInfo, RemovedInfo): ...
{ "repo_name": "robofab-developers/fontParts", "path": "Lib/fontParts/base/info.py", "copies": "1", "size": "10257", "license": "mit", "hash": -9099165899920838000, "line_mean": 33.0764119601, "line_max": 85, "alpha_frac": 0.5957882422, "autogenerated": false, "ratio": 4.4479618386816995, "confi...
from fontParts.base.base import ( BaseObject, InterpolationMixin, SelectionMixin, dynamicProperty, reference ) from fontParts.base import normalizers from fontParts.base.compatibility import LayerCompatibilityReporter from fontParts.base.color import Color from fontParts.base.deprecated import Depre...
{ "repo_name": "robofab-developers/fontParts", "path": "Lib/fontParts/base/layer.py", "copies": "1", "size": "23959", "license": "mit", "hash": -1683322198796777700, "line_mean": 29.7956298201, "line_max": 85, "alpha_frac": 0.5683876623, "autogenerated": false, "ratio": 4.602189781021898, "confi...
from fontParts.base.errors import FontPartsError from fontParts.base.base import ( BaseObject, TransformationMixin, InterpolationMixin, SelectionMixin, dynamicProperty, reference ) from fontParts.base import normalizers from fontParts.base.deprecated import DeprecatedSegment, RemovedSegment from...
{ "repo_name": "robofab-developers/fontParts", "path": "Lib/fontParts/base/segment.py", "copies": "1", "size": "9867", "license": "mit", "hash": 3677537587085465600, "line_mean": 26.4083333333, "line_max": 77, "alpha_frac": 0.5356237965, "autogenerated": false, "ratio": 4.654245283018868, "confi...
from fontParts.base.errors import FontPartsError from fontParts.base.base import ( BaseObject, TransformationMixin, InterpolationMixin, SelectionMixin, IdentifierMixin, dynamicProperty, reference ) from fontParts.base import normalizers from fontParts.base.compatibility import ContourCompati...
{ "repo_name": "robofab-developers/fontParts", "path": "Lib/fontParts/base/contour.py", "copies": "1", "size": "33847", "license": "mit", "hash": -323010208646112060, "line_mean": 29.6863100635, "line_max": 115, "alpha_frac": 0.5626791148, "autogenerated": false, "ratio": 4.547494289936854, "con...
from fontParts.world import _EnvironmentDispatcher def AskString(message, value='', title='FontParts'): """ An ask a string dialog, a `message` is required. Optionally a `value` and `title` can be provided. :: from fontParts.ui import AskString print(AskString("who are you?")) "...
{ "repo_name": "robofab-developers/fontParts", "path": "Lib/fontParts/ui.py", "copies": "1", "size": "5377", "license": "mit", "hash": 7642763138063346000, "line_mean": 26.1565656566, "line_max": 89, "alpha_frac": 0.6215361726, "autogenerated": false, "ratio": 4.257323832145685, "config_test": f...
from fontTools.feaLib.error import FeatureLibError, IncludedFeaNotFound from fontTools.feaLib.location import FeatureLibLocation import re import os class Lexer(object): NUMBER = "NUMBER" HEXADECIMAL = "HEXADECIMAL" OCTAL = "OCTAL" NUMBERS = (NUMBER, HEXADECIMAL, OCTAL) FLOAT = "FLOAT" STRING ...
{ "repo_name": "google/material-design-icons", "path": "update/venv/lib/python3.9/site-packages/fontTools/feaLib/lexer.py", "copies": "5", "size": "11139", "license": "apache-2.0", "hash": -843143872667458400, "line_mean": 38.0842105263, "line_max": 88, "alpha_frac": 0.5454708681, "autogenerated": f...
from fontTools.feaLib.error import FeatureLibError from fontTools.feaLib.lexer import Lexer, IncludingLexer, NonIncludingLexer from fontTools.misc.encodingTools import getEncoding from fontTools.misc.py23 import bytechr, tobytes, tostr import fontTools.feaLib.ast as ast import logging import os import re log = loggin...
{ "repo_name": "google/material-design-icons", "path": "update/venv/lib/python3.9/site-packages/fontTools/feaLib/parser.py", "copies": "3", "size": "92184", "license": "apache-2.0", "hash": -4052249581342377500, "line_mean": 40.5805142084, "line_max": 160, "alpha_frac": 0.5406361191, "autogenerated"...
from fontTools.feaLib import ast from fontTools.feaLib.parser import Parser from fontTools.feaLib.builder import Builder from fontTools.feaLib.lexer import IncludingLexer, Lexer from fontTools.feaLib.error import FeatureLibError from fontTools.feaLib.ast import asFea import StringIO, itertools def asFea(g): if has...
{ "repo_name": "moyogo/pysilfont", "path": "lib/silfont/feaplus.py", "copies": "1", "size": "24464", "license": "mit", "hash": 4379677378010336000, "line_mean": 43.7239488117, "line_max": 133, "alpha_frac": 0.565647482, "autogenerated": false, "ratio": 4.0296491517048265, "config_test": false, ...
from fontTools import ttLib from fontTools.ttLib.tables import otTables as ot # VariationStore def buildVarRegionAxis(axisSupport): self = ot.VarRegionAxis() self.StartCoord, self.PeakCoord, self.EndCoord = [float(v) for v in axisSupport] return self def buildVarRegion(support, axisTags): assert all(tag in axisT...
{ "repo_name": "google/material-design-icons", "path": "update/venv/lib/python3.9/site-packages/fontTools/varLib/builder.py", "copies": "4", "size": "3312", "license": "apache-2.0", "hash": -4239802829874663400, "line_mean": 28.0526315789, "line_max": 102, "alpha_frac": 0.746678744, "autogenerated":...
from fontTools.misc.arrayTools import pairwise from fontTools.pens.filterPen import ContourFilterPen __all__ = ["reversedContour", "ReverseContourPen"] class ReverseContourPen(ContourFilterPen): """Filter pen that passes outline data to another pen, but reversing the winding direction of all contours. Compo...
{ "repo_name": "google/material-design-icons", "path": "update/venv/lib/python3.9/site-packages/fontTools/pens/reverseContourPen.py", "copies": "5", "size": "3849", "license": "apache-2.0", "hash": -2068318858528209700, "line_mean": 39.5157894737, "line_max": 79, "alpha_frac": 0.6084697324, "autogen...
from fontTools.misc.arrayTools import updateBounds, pointInRect, unionRect from fontTools.misc.bezierTools import calcCubicBounds, calcQuadraticBounds from fontTools.pens.basePen import BasePen __all__ = ["BoundsPen", "ControlBoundsPen"] class ControlBoundsPen(BasePen): """Pen to calculate the "control bounds" of...
{ "repo_name": "google/material-design-icons", "path": "update/venv/lib/python3.9/site-packages/fontTools/pens/boundsPen.py", "copies": "5", "size": "2714", "license": "apache-2.0", "hash": 4611838374350142000, "line_mean": 27.2708333333, "line_max": 75, "alpha_frac": 0.7151805453, "autogenerated": ...
from fontTools.misc.fixedTools import ( fixedToFloat as fi2fl, floatToFixed as fl2fi, floatToFixedToStr as fl2str, strToFixedToFloat as str2fl, otRound, ) from fontTools.misc.textTools import safeEval import array from collections import Counter, defaultdict import io import logging import struct im...
{ "repo_name": "google/material-design-icons", "path": "update/venv/lib/python3.9/site-packages/fontTools/ttLib/tables/TupleVariation.py", "copies": "3", "size": "24095", "license": "apache-2.0", "hash": 4583951698497547300, "line_mean": 30.4146023468, "line_max": 104, "alpha_frac": 0.6764058933, "a...
from fontTools.misc import bezierTools from defcon.objects.base import BaseObject from defcon.tools import bezierMath class Contour(BaseObject): """ This object represents a contour and it contains a list of points. **This object posts the following notifications:** =============== ==== Name ...
{ "repo_name": "typemytype/defcon", "path": "Lib/defcon/objects/contour.py", "copies": "1", "size": "24339", "license": "mit", "hash": -3128776706674234400, "line_mean": 33.4257425743, "line_max": 301, "alpha_frac": 0.5789062821, "autogenerated": false, "ratio": 3.8596574690770695, "config_test"...
from fontTools.misc import psCharStrings from fontTools import ttLib from fontTools.pens.basePen import NullPen from fontTools.misc.roundTools import otRound from fontTools.varLib.varStore import VarStoreInstancer def _add_method(*clazzes): """Returns a decorator function that adds a new method to one or more classe...
{ "repo_name": "google/material-design-icons", "path": "update/venv/lib/python3.9/site-packages/fontTools/subset/cff.py", "copies": "5", "size": "19833", "license": "apache-2.0", "hash": -7980794738665431000, "line_mean": 30.4310618067, "line_max": 113, "alpha_frac": 0.6996420108, "autogenerated": f...
from fontTools.misc import sstruct from fontTools.misc.fixedTools import floatToFixedToStr from fontTools.misc.textTools import safeEval from . import DefaultTable from . import grUtils import struct Feat_hdr_format=''' > version: 16.16F ''' class table_F__e_a_t(DefaultTable.DefaultTable): def __init_...
{ "repo_name": "google/material-design-icons", "path": "update/venv/lib/python3.9/site-packages/fontTools/ttLib/tables/F__e_a_t.py", "copies": "5", "size": "4678", "license": "apache-2.0", "hash": 3039370187206589400, "line_mean": 40.3982300885, "line_max": 104, "alpha_frac": 0.5147498931, "autogene...
from fontTools.misc import sstruct from fontTools.misc.fixedTools import floatToFixedToStr from fontTools.misc.textTools import safeEval # from itertools import * from functools import partial from . import DefaultTable from . import grUtils import struct Glat_format_0 = """ > # big endian version: 16....
{ "repo_name": "google/material-design-icons", "path": "update/venv/lib/python3.9/site-packages/fontTools/ttLib/tables/G__l_a_t.py", "copies": "5", "size": "8400", "license": "apache-2.0", "hash": -4228511836011761000, "line_mean": 37.5321100917, "line_max": 93, "alpha_frac": 0.5422619048, "autogene...
from fontTools.misc import sstruct from fontTools.misc.fixedTools import floatToFixedToStr, strToFixedToFloat from fontTools.misc.textTools import safeEval, num2binary, binary2num from fontTools.misc.timeTools import timestampFromString, timestampToString, timestampNow from fontTools.misc.timeTools import epoch_diff as...
{ "repo_name": "google/material-design-icons", "path": "update/venv/lib/python3.9/site-packages/fontTools/ttLib/tables/_h_e_a_d.py", "copies": "5", "size": "3965", "license": "apache-2.0", "hash": 4532035536491309600, "line_mean": 32.8888888889, "line_max": 89, "alpha_frac": 0.6754098361, "autogener...
from fontTools.misc import sstruct from fontTools.misc.textTools import readHex, safeEval import struct sbixGlyphHeaderFormat = """ > originOffsetX: h # The x-value of the point in the glyph relative to its # lower-left corner which corresponds to the origin of # the glyph on the screen, that is the poi...
{ "repo_name": "google/material-design-icons", "path": "update/venv/lib/python3.9/site-packages/fontTools/ttLib/tables/sbixGlyph.py", "copies": "5", "size": "4426", "license": "apache-2.0", "hash": -5178636415555251000, "line_mean": 36.8290598291, "line_max": 150, "alpha_frac": 0.7202892002, "autoge...