• Facebook
  • Twitter
  • Reddit
  • StumbleUpon
  • Digg
  • email

All Samples(71660)  |  Call(66834)  |  Derive(4820)  |  Import(6)
dict() -> new empty dictionary
dict(mapping) -> new dictionary initialized from a mapping object's
    (key, value) pairs
dict(iterable) -> new dictionary initialized as if via:
    d = {}
    for k, v in iterable:
        d[k] = v
dict(**kwargs) -> new dictionary initialized with the name=value pairs
    in the keyword argument list.  For example:  dict(one=1, two=2)

src/b/l/blueplanet-HEAD/Versions/Version 273/blueplanet/GA/Gcodeop.py   blueplanet(Download)
rrot.__name__= 'rrot'
 
operations= dict(
invert= Gcodeoperator(lambda a: ~int(a) , 1, '~', 12, '=> ~i\n\tbitwise invert\nsame as !i'),
invert2= Gcodeoperator(lambda a: ~int(a) , 1, '!', 12, '=> !i\n\tbitwise invert\nsame as ~i'),
neg= Gcodeoperator(lambda a: -a , 1, '--', 12, '=> 0 - x \n\tnegate'),
 
_boolxor= Gcodeoperator(lambda a, b: a and not b or b and not a , 2, '^^', -1, '=> a xor b\n\tlogic exclusive or\n\ta and b will be executed'),
ret= Gcodeoperator(lambda a, b: a or b , 2, '\\', -1.e2000, '=> a \ b\n\ta will be executed and b will be executed\n\t=> b'),
)
operators= dict([(v.name, v) for v in operations.values()]) # sign : function
 
for k, v in operations.items():
    if k.startswith('_'):

src/b/l/blueplanet-HEAD/Versions/Version 252 (Beta)/blueplanet/GA/Gcodeop.py   blueplanet(Download)
rrot.__name__= 'rrot'
 
operations= dict(
invert= Gcodeoperator(lambda a: ~int(a) , 1, '~', 12, '=> ~i\n\tbitwise invert\nsame as !i'),
invert2= Gcodeoperator(lambda a: ~int(a) , 1, '!', 12, '=> !i\n\tbitwise invert\nsame as ~i'),
neg= Gcodeoperator(lambda a: -a , 1, '--', 12, '=> 0 - x \n\tnegate'),
 
_boolxor= Gcodeoperator(lambda a, b: a and not b or b and not a , 2, '^^', -1, '=> a xor b\n\tlogic exclusive or\n\ta and b will be executed'),
ret= Gcodeoperator(lambda a, b: a or b , 2, '\\', -1.e2000, '=> a \ b\n\ta will be executed and b will be executed\n\t=> b'),
)
operators= dict([(v.name, v) for v in operations.values()]) # sign : function
 
for k, v in operations.items():
    if k.startswith('_'):

src/b/l/blueplanet-HEAD/Versions/Version 248 (JUFO Release)/blueplanet/GA/Gcodeop.py   blueplanet(Download)
rrot.__name__= 'rrot'
 
operations= dict(
invert= Gcodeoperator(lambda a: ~int(a) , 1, '~', 12, '=> ~i\n\tbitwise invert\nsame as !i'),
invert2= Gcodeoperator(lambda a: ~int(a) , 1, '!', 12, '=> !i\n\tbitwise invert\nsame as ~i'),
neg= Gcodeoperator(lambda a: -a , 1, '--', 12, '=> 0 - x \n\tnegate'),
 
_boolxor= Gcodeoperator(lambda a, b: a and not b or b and not a , 2, '^^', -1, '=> a xor b\n\tlogic exclusive or\n\ta and b will be executed'),
ret= Gcodeoperator(lambda a, b: a or b , 2, '\\', -1.e2000, '=> a \ b\n\ta will be executed and b will be executed\n\t=> b'),
)
operators= dict([(v.name, v) for v in operations.values()]) # sign : function
 
for k, v in operations.items():
    if k.startswith('_'):

src/b/l/blueplanet-HEAD/Versions/Server 274/blueplanet/GA/Gcodeop.py   blueplanet(Download)
rrot.__name__= 'rrot'
 
operations= dict(
invert= Gcodeoperator(lambda a: ~int(a) , 1, '~', 12, '=> ~i\n\tbitwise invert\nsame as !i'),
invert2= Gcodeoperator(lambda a: ~int(a) , 1, '!', 12, '=> !i\n\tbitwise invert\nsame as ~i'),
neg= Gcodeoperator(lambda a: -a , 1, '--', 12, '=> 0 - x \n\tnegate'),
 
_boolxor= Gcodeoperator(lambda a, b: a and not b or b and not a , 2, '^^', -1, '=> a xor b\n\tlogic exclusive or\n\ta and b will be executed'),
ret= Gcodeoperator(lambda a, b: a or b , 2, '\\', -1.e2000, '=> a \ b\n\ta will be executed and b will be executed\n\t=> b'),
)
operators= dict([(v.name, v) for v in operations.values()]) # sign : function
 
for k, v in operations.items():
    if k.startswith('_'):

src/b/c/bcbb-HEAD/biosql_ontologies/genbank_to_ontology.py   bcbb(Download)
    rdfs_ontology = OntologyGroup('http://www.w3.org/2000/01/rdf-schema#',
            rdfs_terms)
    me_ft_map = dict(
            rep_origin = 'origin_of_replication',
            unsure = 'sequence_uncertainty',
            conflict = 'sequence_conflict',
            GC_signal = 'GC_rich_promoter_region',
            V_segment = 'V_gene'
            )
    me_ft_dc_map = dict(
            old_sequence = 'replaces')
    me_hd_map = {'ACCESSION': 'databank_entry'}
    me_hd_dc_map = {'DEFINITION' : 'description',
                    'VERSION' : 'hasVersion',
                    'PID' : 'relation',
                    'PROJECT' : 'relation'}
    me_ql_map = dict(
            bio_material = 'biomaterial_region',
            bound_moiety = 'bound_by_factor',
            codon_start = 'coding_start',
            direction = 'direction_attribute',
            translation = 'polypeptide',
            )
    me_ql_dc_map = dict(
            citation = 'bibliographicCitation',
            gene_synonym = 'alternative',
            identified_by = 'creator',
            label = 'alternative',
            function = 'description',
            )
    me_ql_rdfs_map = dict(
            note = 'comment',
            )
    ql_make_no_sense_list = ['number']
    so_ontology.add_map('header', 'Brad', me_hd_map)

src/e/w/ewa-0.62.8/src/ewa/config.py   ewa(Download)
 
Config=_config()
 
DEFAULTS=dict(loglevel='critical',
              logfile=None,
              logrotate=None,
              daemonize=True,

src/m/a/matplotlib-HEAD/matplotlib/examples/pylab_examples/fancyarrow_demo.py   matplotlib(Download)
                #xycoords="figure fraction", textcoords="figure fraction",
                ha="right", va="center",
                size=fontsize,
                arrowprops=dict(arrowstyle=stylename,
                                patchB=p,
                                shrinkA=5,
                                shrinkB=5,
                                fc="w", ec="k",
                                connectionstyle="arc3,rad=-0.05",
                                ),
                bbox=dict(boxstyle="square", fc="w"))

src/e/u/Euphorie-2.0rc2/euphorie/client/survey.py   Euphorie(Download)
        survey=aq_inner(self.context)
        my_path=utils.RelativePath(self.request.client, survey)
        account=getSecurityManager().getUser()
        return [dict(id=session.id,
                     title=session.title,
                     modified=session.modified)
                 for session in account.sessions
            dbsession=SessionManager.session
            filename = _("filename_identification_report",
                         default=u"Identification ${title}.doc",
                         mapping=dict(title=dbsession.title))
            filename=translate(filename, context=self.request)
            self.request.response.setHeader("Content-Disposition",
                                u"attachment; filename=\"%s\"" % filename)
class CompanyForm(formapi.Form):
    """A single action plan item."""
 
    fields = dict(title=unicode,
                  address_visit_address=unicode,
                  address_visit_postal=unicode,
                  address_visit_city=unicode,
 
        self.errors={}
        if self.request.environ["REQUEST_METHOD"]=="POST":
            reply=dict([(key,value) for (key,value) in self.request.form.items()
                        if value and value.strip()])
            company=session.company
            form=CompanyForm(params=reply)
    def update(self):
        ActionPlanReportView.update(self)
 
        filename=_("filename_actionplan_report",
                   default=u"Action plan ${title}.doc",
                   mapping=dict(title=self.session.title))
        filename=translate(filename, context=self.request)
    def getStatus(self):
        # Note: Optional modules with a yes-answer are not distinguishable
        # from non-optional modules, and ignored.
        query=self.query % dict(sessionid=SessionManager.id)
        session=Session()
        result=session.execute(query).fetchall()
 
        modules={}
        base_url="%s/identification" % self.request.survey.absolute_url()
        for row in result:
            module=modules.setdefault(row.module, dict())
            module["path"]=row.module
            if row.status!="ignore":
                module["total"]=module.get("total", 0) + row.count
            module[row.status]=dict(count=row.count)
 
        titles=dict(session.query(model.Module.path, model.Module.title)\
                .filter(model.Module.path.in_(modules.keys())))
    """
    adapts(ISurvey, IClientSkinLayer)
 
    phases=dict(identification=IIdentificationPhaseSkinLayer,
                evaluation=IEvaluationPhaseSkinLayer,
                actionplan=IActionPlanPhaseSkinLayer,
                report=IReportPhaseSkinLayer)

src/m/a/matplotlib-HEAD/matplotlib/doc/users/plotting/examples/connectionstyle_demo.py   matplotlib(Download)
def add_at(ax, t, loc=2):
    fp = dict(size=8)
    _at = AnchoredText(t, loc=loc, prop=fp)
    ax.add_artist(_at)
    return _at
 
 
    ax.annotate("",
                xy=(x1, y1), xycoords='data',
                xytext=(x2, y2), textcoords='data',
                arrowprops=dict(arrowstyle="->", #linestyle="dashed",
                                color="0.5",
                                shrinkA=5, shrinkB=5,
                                patchA=None,

src/m/a/matplotlib-HEAD/examples/pylab_examples/fancyarrow_demo.py   matplotlib(Download)
                #xycoords="figure fraction", textcoords="figure fraction",
                ha="right", va="center",
                size=fontsize,
                arrowprops=dict(arrowstyle=stylename,
                                patchB=p,
                                shrinkA=5,
                                shrinkB=5,
                                fc="w", ec="k",
                                connectionstyle="arc3,rad=-0.05",
                                ),
                bbox=dict(boxstyle="square", fc="w"))

Previous  5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13  Next