Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(532)  |  Call(532)  |  Derive(0)  |  Import(0)

src/t/e/TEES-HEAD/ExampleBuilders/FeatureBuilders/FeatureBuilder.py   TEES(Download)
                if eType != None and not eType in annTypes and not eType in self.filterAnnTypes:
                    if self.entity1 == None and self.entity2 == None:
                        annTypes.add(eType)
                    else:
                        if self.maximum:
                            annTypes.add(eType)
                                return [eType]
                            else:
                                annTypes.add("e1_"+eType)
                        elif self.entity2 == entity:
                            if not self.maximum:
                                return [eType]
                            else:
                                annTypes.add("e2_"+eType)
                        else:
                            annTypes.add(eType)

src/t/e/TEES-HEAD/ExampleBuilders/EntityExampleBuilder.py   TEES(Download)
                continue
            if self.styles["epi_merge_negated"]:
                types.add(Utils.InteractionXML.ResolveEPITriggerTypes.getEPIBaseType(entity.get("type")))
                entityIds.add(entity.get("id"))
            else:
                types.add(entity.get("type"))

src/p/y/python-shotgunorm-HEAD/documentation/examples/entities/SgVersion.py   python-shotgunorm(Download)
      sgFields = self.connection().defaultEntityQueryFields('Version')
 
      sgFields.add('code')
 
      sgFields = list(sgFields)
    else:
      sgFields = set(sgFields)
 
      sgFields.add('code')
      sgFields = self.connection().defaultEntityQueryFields('Version')
 
      sgFields.add('code')
 
      sgFields = list(sgFields)
    else:
      sgFields = set(sgFields)
 
      sgFields.add('code')
      sgFields = self.connection().defaultEntityQueryFields('Version')
 
      sgFields.add('code')
 
      sgFields = list(sgFields)

src/t/e/TEES-HEAD/ExampleBuilders/EdgeExampleBuilder.py   TEES(Download)
            intEdges = intEdges + sentenceGraph.interactionGraph.getEdges(t2, t1)
        for intEdge in intEdges:
            types.add(intEdge[2].get("type"))
        types = list(types)
        types.sort()
        types = set()
        for interaction in interactions:
            types.add(interaction[2].get("type"))
        types = list(types)
        types.sort()

src/f/e/featureserver-HEAD/doc/examples/Simplify.py   featureserver(Download)
 
        if max_dist <= tolerance: # use line segment
            keep.add(anchor)
            keep.add(floater)
        else:

src/t/e/TEES-HEAD/ExampleBuilders/FeatureBuilders/TriggerFeatureBuilder.py   TEES(Download)
        types = set()
        for entity in entities:
            types.add(entity.get("type"))
        types = list(types)
        types.sort()

src/s/i/SimpleGUICS2Pygame-01.04.00/SimpleGUICS2Pygame/example/Stress_Balls/Stress_Balls_results.py   SimpleGUICS2Pygame(Download)
 
    for nb in nb_balls_b:
        alls_nb.add(nb)
        results[nb] = int(round((data_a[nb] + data_b[nb])/2))
 

src/t/e/TEES-HEAD/ExampleWriters/EntityExampleWriter.py   TEES(Download)
        types = set()
        for entity in entities:
            types.add(entity.get("type"))
        types = list(types)
        types.sort()

src/t/e/TEES-HEAD/ExampleBuilders/ModifierExampleBuilder.py   TEES(Download)
        types = set()
        for entity in entities:
            types.add(entity.get("type"))
        types = list(types)
        types.sort()

src/t/e/TEES-HEAD/Core/ExampleUtils.py   TEES(Download)
def makeExampleDivision(examples, fraction=0.5):
    documentIds = set()
    for example in examples:
        documentIds.add(example[0].rsplit(".",2)[0])
    documentIds = list(documentIds)
def makeExampleFolds(examples, folds=10):
    documentIds = set()
    for example in examples:
        documentIds.add(example[0].rsplit(".",2)[0])
    documentIds = list(documentIds)

  1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9  Next