List of all printf(), sprintf(), etc. formats strings mentioned in the code..
Value | Count | File:Line |
---|---|---|
'%- 70s %- 40s' | 1 |
|
'has("' . $property . '", null)' | 1 |
|
"has(\"$property\").filter{ x = ***[$index]; x != null; }.filter{ it.get().value(\"$property\") > x}" | 1 |
|
<<<GREMLIN as("gotoalltraits") .repeat( __.out("USE") .hasLabel("Usetrait") .out("USE") .in("DEFINITION") //.hasLabel("Trait") .simplePath().from("gotoalltraits") ).emit( ) .times($MAX_LOOPING) .hasLabel("Trait") GREMLIN | 1 |
|
"is(lt($g1))" | 1 |
|
"where( __$in.hasLabel(within(***)))" | 1 |
|
'in("DEFINITION").hasLabel("Function", "Method", "Magicmethod", "Closure")' | 1 |
|
<<<'GREMLIN' where( __.out("DEFAULT").hasLabel("Void", "Null").not(__.in("RIGHT") )) GREMLIN | 1 |
|
'not(hasLabel(within(***)))' | 1 |
|
'hasLabel(within(***))' | 1 |
|
'where( __.out(' . $this->SorA($diff) . ') )' | 1 |
|
'not( has("code", within(***) ) )' | 1 |
|
'out( )' | 1 |
|
<<<GREMLIN has("$property") .filter{ !(it.get().value("$property") =~ "$regex" ).asBoolean() } GREMLIN | 1 |
|
'out(' . $this->SorA($diff) . ')' | 1 |
|
'sideEffect{sibling = it.get().value("rank");}.in("' . $link . '").out("' . $link . '").filter{sibling + 1 <= it.get().value("rank") }' | 1 |
|
'filter{ it.get().vertices(IN, "ARGUMENT").next().value("count") == it.get().value("rank") + 1}' | 1 |
|
<<<GREMLIN as("gotoalltraits") .emit( ) .repeat( __.out("USE") .hasLabel("Usetrait") .out("USE") .in("DEFINITION") .hasLabel("Trait") .simplePath().from("gotoalltraits") ) .times($MAX_LOOPING) .hasLabel("Trait") GREMLIN | 1 |
|
"groupCount('m').by('$column')" | 1 |
|
'not(where(__.out("ARGUMENT").has("variadic", true)))' | 1 |
|
'where( __.out("RETURNTYPE", "TYPEHINT").filter{it.get().value("fullnspath") == ' . $variable . '} )' | 1 |
|
<<<GREMLIN as("gotoallparents").repeat( __.out("EXTENDS", "IMPLEMENTS") .in("DEFINITION") .hasLabel("Class", "Classanonymous", "Interface", "Trait") .simplePath().from("gotoallparents") ).emit( ) .times($MAX_LOOPING) .hasLabel("Class", "Classanonymous", "Interface", "Trait") GREMLIN | 1 |
|
<<<GREMLIN filter{ if (it.get().properties("visibility").any()) { if ($variable == "private") { it.get().value("visibility") in ["private"]; } else if ($variable == "protected") { it.get().value("visibility") in ["private", "protected"]; } else if ($variable == "public") { it.get().value("visibility") in ["private", "protected", "public", "none"]; } else if ($variable == "none") { it.get().value("visibility") in ["private", "protected", "public", "none"]; } else { false; } } else { false; } } GREMLIN | 1 |
|
'where( __.sideEffect{ ' . $variable . ' = []; } .out("METHOD", "MAGICMETHOD") .out("NAME") .sideEffect{ ' . $variable . '.add(it.get().value("lccode")) ; } .fold() ) ' | 1 |
|
<<<GREMLIN filter{ if (it.get().properties("visibility").any()) { if ($variable == "private") { it.get().value("visibility") in ["private", "protected", "public", "none"]; } else if ($variable == "protected") { it.get().value("visibility") in ["protected", "public", "none"]; } else if ($variable == "public") { it.get().value("visibility") in ["public", "none"]; } else if ($variable == "none") { it.get().value("visibility") in ["public", "none"]; } else { false; } } else { false; } } GREMLIN | 1 |
|
'sideEffect{ ' . $name . ' = ' . $value . ' }' | 1 |
|
'filter{ it.get().vertices(IN, "ARGUMENT").next().value("count") == it.get().value("rank") + 2}' | 1 |
|
'sideEffect{ ' . implode(PHP_EOL, $gremlin) . ' }' | 1 |
|
'has("' . $property . '", ' . $value . ')' | 1 |
|
'has("' . $property . '", false)' | 1 |
|
'has("' . $property . '", true)' | 1 |
|
'filter{ if ( it.get().properties("' . $property . '").any()) { ' . $value . ' == it.get().value("' . $property . '")} else {' . $value . ' == false; }; }' | 1 |
|
'has("rank", ' . (int) $value . ')' | 1 |
|
'filter{it.get().value("fullcode").length() ' . $length . '}' | 1 |
|
"values(\"$property\")" | 1 |
|
'filter{ it.get().value("lccode") == ' . $name . '}' | 1 |
|
'filter{it.get().value("' . $property . '") == it.get().value("' . $property . '").toString().toLowerCase() || it.get().value("' . $property . '") == it.get().value("' . $property . '").toString().toUpperCase()}' | 1 |
|
"filter{ it.get() != $name }" | 1 |
|
"filter{ it.get().id() != $name }" | 1 |
|
"filter{ it.get().label() != $name }" | 1 |
|
<<<GREMLIN sideEffect{ if ($variable.contains("\\\\") ) { $variable = $variable.tokenize("\\\\\\\\").last(); } if ($variable.contains("(") ) { $variable = $variable.tokenize("(").first(); } } GREMLIN | 1 |
|
'not( where(__.in("DEFINITION").hasLabel("Trait") ) )' | 1 |
|
'coalesce(__.in("DEFINITION").in("NAME").out("VALUE"), __.in("DEFINITION").out("VALUE"), __.filter{ true; })' | 1 |
|
'emit( ).repeat( __.in("OVERWRITE").not(__.in("PPP").has("visibility", "private")) ).times(' . self::$MAX_LOOPING . ')' | 1 |
|
'where(__.in("DEFINITION").hasLabel("Interface") )' | 1 |
|
'not( where( __.hasLabel("Arrayliteral").has("count", 0)))' | 1 |
|
'not( where( __.out(' . $this->SorA($diff) . ')) )' | 1 |
|
<<<'GREMLIN' not( where( // Not a use expression __.out("DEFINITION").not( where(__.coalesce( __.in("NAME").in("USE"), __.in("USE"), __.in("USE")).hasLabel("Usenamespace") ) ) // Not a recursive expression .where( __.repeat( __.inE().not(hasLabel("DEFINITION")).outV()).until(hasLabel("File", "Function")).where(neq("first")) ) // Not a recursive level 2 expression /* .where( __.repeat( __.inE().not(hasLabel("DEFINITION")).outV()).until(hasLabel("File", "Function")).where(neq("first")).as('second') .out("DEFINITION").repeat( __.inE().not(hasLabel("DEFINITION")).outV()).until(hasLabel("File", "Function")) ) */ ) ) GREMLIN | 1 |
|
'unique()' | 1 |
|
'sideEffect{ ' . $variable . ' = 0; } .repeat( __.in("VARIABLE", "APPEND").hasLabel("Array", "Arrayappend").sideEffect{ l = l + 1;}).emit()' | 1 |
|
<<<GREMLIN where( __.sideEffect{ $variable = []; } .repeat( __.out($LINKS_DOWN)).emit() .hasLabel($CONTAINERS) .sideEffect{ $variable.add(it.get().value("code")); } .fold() ) GREMLIN | 1 |
|
'filter{ if (it.get().properties("reference").any()) { ' . $name . ' != it.get().value("reference");} else { ' . $name . ' != false; }}' | 1 |
|
'not( where( __.out(' . $this->SorA($diff) . ') ) )' | 1 |
|
<<<GREMLIN where( __.sideEffect{ {$variable} = []; } .as("collectimplements") .emit( ) .repeat( __.out("EXTENDS", "IMPLEMENTS") .in("DEFINITION") .hasLabel("Class", "Classanonymous", "Interface") .simplePath().from("collectimplements") ) .times($MAX_LOOPING) .hasLabel("Class", "Classanonymous", "Interface") .out("EXTENDS", "IMPLEMENTS") .sideEffect{ {$variable}.add(it.get().value("fullnspath")) ; } .fold() ) GREMLIN | 1 |
|
"select(\"$name\")" | 1 |
|
'where( __.in("DEFINITION").hasLabel("Function", "Method", "Closure") )' | 1 |
|
'where(__.out("ARGUMENT").has("variadic", true))' | 1 |
|
"filter{ {$g1} < {$g2};}" | 1 |
|
'where( __.out(' . $this->SorA($diff) . ').has("rank", ***).not(hasLabel("Void")) )' | 1 |
|
<<<GREMLIN as("gotoallchildren") .repeat( __.out("DEFINITION") .in("EXTENDS", "IMPLEMENTS") .simplePath().from("gotoallchildren") ) .emit( ) .times($MAX_LOOPING) GREMLIN | 1 |
|
<<<GREMLIN as("gotoallchildren") .emit( ) .repeat( __.out("DEFINITION") .in("EXTENDS", "IMPLEMENTS") .simplePath().from("gotoallchildren") ) .times($MAX_LOOPING) GREMLIN | 1 |
|
<<<GREMLIN choose(__.or(__.where( __.out("RETURNTYPE", "TYPEHINT").hasLabel("Null") ), __.where( __.out("DEFAULT").hasLabel("Null").not(__.in("LEFT"))) ), __.sideEffect{ {$variable} = true;}, __.sideEffect{ {$variable} = false;} ) GREMLIN | 1 |
|
'not( where(__.in("DEFINITION").hasLabel("Interface") ) )' | 1 |
|
'as("' . implode('").as("', $name) . '")' | 1 |
|
"as(\"$name\")" | 1 |
|
'not(has("ignored_dir", true))' | 1 |
|
"has(\"$property\").filter{ it.get().value(\"$property\")$caseSensitive != $name$caseSensitive}" | 1 |
|
"has(\"$property\").filter{ it.get().value(\"$property\") != $name}" | 1 |
|
'filter{ if ( it.get().properties("' . $property . '").any()) { ' . $name . ' != it.get().value("' . $property . '")} else {' . $name . ' != false; }; }' | 1 |
|
<<<GREMLIN as("gotoallparents").emit( ) .repeat( __.out("EXTENDS", "IMPLEMENTS") .in("DEFINITION") .hasLabel("Class", "Classanonymous", "Interface", "Trait") .simplePath().from("gotoallparents") ) .times($MAX_LOOPING) .hasLabel("Class", "Classanonymous", "Interface", "Trait") GREMLIN | 1 |
|
'filter{ it.get().value("code") == ' . $name . '}' | 1 |
|
'where( __.in("DEFINITION").where( __.in("NAME")))' | 1 |
|
<<<GREMLIN where( __.emit( ).repeat( __.out({$linksDown}).not(hasLabel("Closure", "Classanonymous", "Function", "Class", "Trait", "Interface")) ).times($MAX_LOOPING) .hasLabel(within(***)) .where( __.in("ANALYZED").has("analyzer", within(***))) .count().is(gt($times)) ) GREMLIN | 1 |
|
<<<'GREMLIN' sideEffect{ s = it.get().value("PROPERTY"); // Replace all special chars by a single char s = s.replaceAll(/\\"/, "A"); s = s.replaceAll(/\\[\\aefnRrt]/, "A"); s = s.replaceAll(/\\[012]\d\d/, "A"); s = s.replaceAll(/\\0/, "A"); s = s.replaceAll(/\\u\{[^\}]+\}/, "A"); s = s.replaceAll(/\\[pP]\{^?[A-Z][a-z]?\}/, "A"); s = s.replaceAll(/\\[pP][A-Z]/, "A"); s = s.replaceAll(/\\X[A-Z][a-z]/, "A"); s = s.replaceAll(/\\x[a-fA-F0-9]{2}/, "A"); VARIABLE = s.length(); } GREMLIN | 1 |
|
<<<GREMLIN sideEffect{ inside = it.get().value("fullnspath"); } .where( __.repeat( __.in({$linksDown}) ).until( hasLabel("Class") ).filter{ it.get().value("fullnspath") == inside; }.count().is(eq(0)) ) GREMLIN | 1 |
|
'not( where( __.emit( ).repeat( out(' . self::$linksDown . ') ).times(' . self::$MAX_LOOPING . ').filter{ it.get().value("fullcode") == ' . $fullcode . '}) )' | 1 |
|
<<<GREMLIN where( __.emit( ).repeat( __.out({$linksDown}).not(hasLabel("Closure", "Classanonymous", "Function", "Class", "Trait", "Interface")) ).times($MAX_LOOPING) .hasLabel(within(***)) .count().is(gt($times)) ) GREMLIN | 1 |
|
<<<GREMLIN sideEffect{ x = it.get().value("fullnspath").tokenize("::"); $name = x[1]; } GREMLIN | 1 |
|
'__.' . implode(".\n", $commands) | 1 |
|
'not( where( __.emit( ).repeat( out(' . self::$linksDown . ') ).times(' . self::$MAX_LOOPING . ').hasLabel("Functioncall").has("fullnspath", within(***))) )' | 1 |
|
<<<GREMLIN emit().repeat( __.coalesce( __.hasLabel(within(***)).out(), __.hasLabel("Parenthesis").out("CODE"), __.hasLabel("Assignation").out("RIGHT") ) ) .times($MAX_LOOPING) .hasLabel(within(***)) GREMLIN | 1 |
|
<<<GREMLIN not( where( __.out("EXTENDS") .repeat( __.coalesce(__.in("DEFINITION"), __.filter{true}).out("EXTENDS") ).emit().times($MAX_LOOPING) .where( __.in("ANALYZED").has("analyzer", "Composer/IsComposerNsname") ) ) ) GREMLIN | 1 |
|
<<<GREMLIN not( where( __.emit( ).repeat( __.out($linksDown).not(hasLabel("Closure", "Classanonymous", "Closure", "Function", "Trait", "Interface")) ) .times($MAX_LOOPING) .hasLabel(within(***)) .has("$property") .has("$property", without(***)) ) ) GREMLIN | 1 |
|
'emit( ).repeat( __.out(' . self::$linksDown . ').not(hasLabel("Closure", "Classanonymous")) ).times(' . self::$MAX_LOOPING . ').hasLabel(within(***))' | 1 |
|
<<<'GREMLIN' not( where( __.out("EXPRESSION") .not(hasLabel("Void", "Global", "Static")) .not( where( __.hasLabel("Return") .out("RETURN") .hasLabel("Void", "Null") ) ) ) ) GREMLIN | 1 |
|
<<<GREMLIN groupCount("gf").$by.cap("gf").sideEffect{ s = it.get().values().sum(); }.next().findAll{ it.value < s * $percentage; }.keySet() GREMLIN | 1 |
|
<<<GREMLIN emit( ).repeat( __.out($linksDown) .coalesce( __.hasLabel("Functioncall").in("DEFINITION").out("BLOCK").out("EXPRESSION"), __.filter{true}) .not(hasLabel("Closure", "Classanonymous", "Function", "Class", "Trait", "Interface")) ) .times($MAX_LOOPING) .hasLabel(within(***)) GREMLIN | 1 |
|
<<<GREMLIN where( __.out("DEFINITION").hasLabel("Variable", "Variableobject", "Variablearray", "Parameter", "String").count().is(eq($times)) ) GREMLIN | 1 |
|
<<<GREMLIN not( where( __.repeat( __.in()).until(hasLabel("Function")).out("ARGUMENT").filter{it.get().value("code") == $variable}.has("reference", true) ) ) GREMLIN | 1 |
|
'select(' . makeList($select) . ')' | 1 |
|
' % 4s %s ' | 1 |
|
' %- 30s => true,' | 1 |
|
<<<GREMLIN repeat( __.in($linksDown) ).until(hasLabel(within(***)) ) GREMLIN | 1 |
|
<<<GREMLIN where( __.sideEffect{ {$variable} = [:]; } .out("$link") .sideEffect{ s = it.get().value("$property"); if ({$variable}[s] != null) { {$variable}[s]++; } else { {$variable}[s] = 1; } }.fold() ) GREMLIN | 1 |
|
<<<GREMLIN not( where( __.has("constant", true ) ) ) .where( __.emit().repeat( __.not(hasLabel("Closure", "Classanonymous") ).out({$linksDown})).times($MAX_LOOPING) .not(hasLabel("Closure", "Classanonymous") ) .count().is(gt({$threshold})) ) GREMLIN | 1 |
|
'select(' . makeList($select) . ').' . implode('.', $by) | 1 |
|
<<<GREMLIN repeat( __.out("ELSE")).emit().times($MAX_LOOPING).hasLabel("Ifthen") GREMLIN | 1 |
|
<<<'GREMLIN' not( where( __.out("OVERWRITE") .not( where( __.has("abstract", true) ) ) .not( where( __.has("visibility", "private") ) ) .not( where( __.in("METHOD", "MAGICMETHOD").hasLabel("Interface") ) ) ) ) GREMLIN | 1 |
|
'emit().repeat( out(' . self::$linksDown . ') ).times(' . self::$MAX_LOOPING . ').hasLabel(within(***))' | 1 |
|
<<<GREMLIN not( where( __.repeat( __.out($linksDown).not(hasLabel("Closure", "Arrowfunction", "Class", "Function", "Classanonymous")) ).emit( ) .times($MAX_LOOPING) .hasLabel(within(***)) ) ) GREMLIN | 1 |
|
<<<'GREMLIN' coalesce( __.hasLabel(within(["Identifier", "Nsname", "Staticconstant"])).in("DEFINITION").out("VALUE"), // Local constant __.hasLabel(within(["Variable"])).in("DEFINITION").out("DEFAULT"), // local variable __.hasLabel(within(["Variable"])).in("DEFINITION").hasLabel('Variabledefinition', 'Staticdefinition').out("DEFAULT"), // literal value, passed as an argument (Method, closure, function) __.hasLabel(within(["Variable"])).in("DEFINITION").in("NAME").hasLabel('Parameter').sideEffect{ rank = it.get().value('rank');}.in("ARGUMENT").out("DEFINITION").optional(__.out("METHOD")).out("ARGUMENT").filter{ rank == it.get().value('rank');}, // literal value, passed as an argument __.hasLabel(within(["Ternary"])).out("THEN", "ELSE").not(hasLabel('Void')), __.hasLabel(within(["Coalesce"])).out("LEFT", "RIGHT"), // default case, will be filtered by hasLabel() __.filter{true}) .not(hasLabel(within(***))) GREMLIN | 1 |
|
<<<GREMLIN not( where( __.repeat(__.in({$linksDown})) .emit().until(hasLabel("File")) .hasLabel("Function", "Method", "Closure", "Magicmethod") ) ) GREMLIN | 1 |
|
'emit( ).repeat( out(' . self::$linksDown . ') ).times(' . self::$MAX_LOOPING . ').filter{ it.get().value("fullcode") == ' . $fullcode . '}' | 1 |
|
<<<GREMLIN not( where( __.repeat( __.out($linksDown) ).emit(hasLabel("Variable", "Array", "Member", "Staticproperty")).times($MAX_LOOPING) .filter{ it.get().value("fullcode") == $name} ) ) GREMLIN | 1 |
|
<<<GREMLIN not( where( __.emit( ).repeat( __.out($linksDown).not(hasLabel("Closure", "Classanonymous")) ) .times($MAX_LOOPING).hasLabel(within(***)) .has("$property") .has("$property", within(***)) ) ) GREMLIN | 1 |
|
'emit( ).repeat( __.out(' . self::$linksDown . ').not(hasLabel("Closure", "Classanonymous", "Function", "Class", "Trait")) ).times(' . self::$MAX_LOOPING . ').hasLabel("Functioncall").has("fullnspath", within(***))' | 1 |
|
'filter{ it.get().value("' . $property . '")' . $caseSensitive . ' == ' . $name . $caseSensitive . '}' | 1 |
|
'filter{ it.get().label() == ' . $name . '}' | 1 |
|
"filter{ {$g1} > {$g2};}" | 1 |
|
<<<GREMLIN repeat( __.timeLimit($TIME_LIMIT).union( // \$b = \$a; => \$b __.in("DEFAULT").out("DEFINITION"), // foo(\$a) => function (\$c) __.as('a').in("ARGUMENT").in("DEFINITION").out("ARGUMENT").as("b").where("a", eq("b") ).by("rank").out("NAME").out("DEFINITION"), // foo(bar(\$a)) => function foo(\$c) __.in("RETURNED").out("DEFINITION"), // global __.hasLabel("Variable").in('DEFINITION').as('c').in('DEFINITION').hasLabel('Virtualglobal').out('DEFINITION').out('DEFINITION'), // property, static or not __.hasLabel("Property", "Staticproperty").in('DEFINITION').hasLabel('Propertydefinition').out('DEFINITION') ) ).emit().times($loopings) GREMLIN | 1 |
|
'filter{it.get().value("' . $property . '")' . $caseSensitive . ' == ' . $code . '}' | 1 |
|
'filter{it.get().value("' . $property . '")' . $caseSensitive . ' == ' . $code[0] . '}' | 1 |
|
"is(gt($g1))" | 1 |
|
'filter{ it.get().id() == ' . $name . '}' | 1 |
|
'filter{it.get().value("' . $property . '")' . $caseSensitive . ' == ***}' | 1 |
|
"is(eq($g1))" | 1 |
|
'filter{ it.get().value("' . $property . '")' . $caseSensitive . ' in ***; }' | 1 |
|
'filter{ if (it.get().properties("' . $property . '").any()) { ' . $name . ' == it.get().value("' . $property . '");} else { ' . $name . ' == false; }}' | 1 |
|
'has("intval").filter{ it.get().value("intval") == ' . $name . '}' | 1 |
|
'filter{ if ( it.get().properties("' . $property . '").any()) { ' . $name . ' == it.get().value("' . $property . '")} else {' . $name . ' == false; }; }' | 1 |
|
'filter{ it.get() == ' . $name . '}' | 1 |
|
'filter{ it.get().value("' . $property . '") == ' . $name . '}' | 1 |
|
<<<GREMLIN emit().repeat( __ .out("NAME") .out("DEFINITION") .has("rank") // .as("ranked") .sideEffect{ ranked = it.get().value('rank');} .in("ARGUMENT") .in("DEFINITION") .out("ARGUMENT") .filter{ it.get().value('rank') == ranked;} // .where("rank", is(eq("ranked")).by("rank")) ).times($times) GREMLIN | 1 |
|
"filter{ {$g1} == {$g2};}" | 1 |
|
<<<GREMLIN sideEffect{ s = []; it.get().vertices(OUT, "$out")$sortStep.each{ s.push(it.value('code')); }; $name = s.join(', '); true; } GREMLIN | 1 |
|
<<<'GREMLIN' not( where( __.repeat( __.inE().not(hasLabel("DEFINITION", "ANALYZED")).outV()).until(hasLabel("File")) .hasLabel(within(***)) .has("code", ***) ) ) GREMLIN | 1 |
|
<<<GREMLIN emit( ).repeat( __.out($linksDown) .not(hasLabel("Closure", "Classanonymous", "Function", "Class", "Trait", "Interface")) ) .times($MAX_LOOPING) .hasLabel(within(***)) GREMLIN | 1 |
|
'emit().repeat( out(' . self::$linksDown . ') ).times(' . self::$MAX_LOOPING . ').where( __.in("ANALYZED").has("analyzer", within(***)))' | 1 |
|
<<<GREMLIN not( where( __.emit( ).repeat(__.in({$linksDown})) .until(hasLabel(within(***))) .hasLabel(within(***)) ) ) GREMLIN | 1 |
|
<<<GREMLIN not( where( __.emit( ).repeat( __.out({$linksDown}) ).times($MAX_LOOPING) .hasLabel(within(***)) .filter{ it.get().value("$property") == $value} .where( __.in("ANALYZED").has("analyzer", within(***))) ) ) GREMLIN | 1 |
|
<<<GREMLIN not( __.where( __.repeat( __.out({$linksDown})).emit().times($MAX_LOOPING) .hasLabel($atomFilter) .filter{ it.get().value("code") in $values; } ) ) GREMLIN | 1 |
|
'emit( ).repeat( __.out(' . self::$linksDown . ').not(hasLabel("Sequence")) ).times(' . self::$MAX_LOOPING . ').hasLabel(within(***))' | 1 |
|
<<<GREMLIN filter{ if ($var == "\\\\int") { !((it.get().label() in ["Integer", "Addition", "Multiplication", "Bitshift", "Power"]) || (it.get().label() == "Cast" && it.get().value("token") == "T_INT_CAST")); } else if ($var == "\\\\string") { !((it.get().label() in ["String", "Heredoc", "Concatenation"]) || (it.get().label() == "Cast" && it.get().value("token") == "T_STRING_CAST")); } else if ($var == "\\\\array") { !((it.get().label() in ["Arrayliteral"]) || (it.get().label() == "Cast" && it.get().value("token") == "T_ARRAY_CAST")); } else if ($var == "\\\\float") { !((it.get().label() in ["Float", "Integer"]) || (it.get().label() == "Cast" && it.get().value("token") in ["T_DOUBLE_CAST", "T_INT_CAST"])); } else if ($var == "\\\\bool") { !((it.get().label() in ["Boolean", "Comparison"]) || (it.get().label() == "Cast" && it.get().value("token") == "T_BOOL_CAST")); } else if ($var == "\\\\object") { !((it.get().label() in ["Variable", "New", "Clone"]) || (it.get().label() == "Cast" && it.get().value("token") == "T_OBJECT_CAST")); } else if ($var == "\\\\void") { !(it.get().label() in ["Void"]); } else if ($var == "\\\\callable") { !(it.get().label() in ["Closure", "Arrowfunction"]); } else if ($var == "\\\\iterable") { if (it.get().label() in ["Arrayliteral"]) { false; } else if("fullnspath" in it.get().properties() && it.get().value("fullnspath") in ["\\\\arrayobject", "\\\\iterator"]) { false; } else { true; } } else { true; } } GREMLIN | 1 |
|
'has("' . $property . '", within(***))' | 1 |
|
"where( __.emit( ).repeat( out($linksDown) ).times($MAX_LOOPING).hasLabel(within(***)) )" | 1 |
|
<<<GREMLIN sideEffect{ inside = it.get().value("fullnspath"); } .where( __.repeat( __.in({$linksDown}) ).until( hasLabel("Class") ).filter{ it.get().value("fullnspath") == inside; }.count().is(eq(1)) ) GREMLIN | 1 |
|
<<<GREMLIN where( __.out("DEFINITION").in("LEFT") .hasLabel("Assignation").has("token", "T_EQUAL") .not(where(__.in("EXPRESSION").in("INIT"))) .out("RIGHT").hasLabel("Integer", "String", "Float", "Null", "Boolean") .count().is(gte($times)) ) GREMLIN | 1 |
|
<<<GREMLIN not( where( __.emit( ).repeat( __.out({$linksDown}) ).times($MAX_LOOPING) .hasLabel(within(***)) .where( __.in("ANALYZED").has("analyzer", within(***))) ) ) GREMLIN | 1 |
|
<<<GREMLIN repeat( __.in({$linksDown})).until(hasLabel(within(***)) ) .hasLabel(within(***)) GREMLIN | 1 |
|
'has("' . $property . '", ***)' | 1 |
|
<<<GREMLIN not( where( __.emit().repeat( __.out("EXTENDS").in("DEFINITION")).times($MAX_LOOPING) .out("EXTENDS").has("fullnspath", within(***)) ) ) GREMLIN | 1 |
|
<<<GREMLIN where( __.sideEffect{levels=0;} .repeat( __.sideEffect{levels += ["Array", "Arrayappend", "Member", "Methodcall", "Staticmethodcall"].contains( it.get().label() ) ? 1 : 0; } .out("CLASS", "OBJECT", "VARIABLE", "APPEND", "CODE", "RIGHT")) .until(__.not(hasLabel("Array", "Arrayappend", "Member", "Staticproperty", "Methodcall", "Staticmethodcall", "Staticconstant", "Assignation", "Parenthesis"))) .filter{ levels > $tooManyDereferencing} ) GREMLIN | 1 |
|
'until( __.not(outE(' . $this->SorA($diff) . ')) ).repeat(out(' . $this->SorA($diff) . '))' | 1 |
|
'out("' . $link . '").has("rank", eq(' . abs((int) $rank) . '))' | 1 |
|
"addE(\"$edgeName\").to(\"$from\")" | 1 |
|
<<<GREMLIN emit().repeat( __.out("DEFINITION").in("DEFAULT").hasLabel("Variabledefinition") ).times($loopings) GREMLIN | 1 |
|
'where(__.in("DEFINITION").hasLabel("Trait") )' | 1 |
|
'filter{it.get().value("' . $property . '")' . $caseSensitive . ' != ***}' | 1 |
|
"filter{it.get().value(\"fullcode\") == $variable; }" | 1 |
|
'as("sibling' . self::$sibling . '").in("' . $link . '").out("' . $link . '").where(neq("sibling' . self::$sibling . '"))' | 1 |
|
'in("' . $link . '").out("' . $link . '")' | 1 |
|
"sideEffect{ it.get().property(\"$property\", false); }" | 1 |
|
"sideEffect{ it.get().property(\"$property\", $value); }" | 1 |
|
<<<GREMLIN {$out}emit().repeat( __.timeLimit(10000) .coalesce(__.hasLabel("Parenthesis").out("CODE"), __.hasLabel("Assignation").out("RIGHT"), __.hasLabel("Ternary").where(__.out("THEN").not(hasLabel("Void"))).out("THEN", "ELSE"), __.hasLabel("Ternary").where(__.out("THEN"). hasLabel("Void" )).out("CONDITION", "ELSE"), __.hasLabel("Coalesce").out("RIGHT", "LEFT") ) ).until(__.not(hasLabel("Parenthesis", "Assignation", "Ternary", "Coalesce"))) .not(hasLabel("Parenthesis", "Assignation", "Ternary", "Coalesce")) GREMLIN | 1 |
|
"sideEffect{ it.get().property(\"$property\", true); }" | 1 |
|
'out("' . $link . '").has("rank", eq(0))' | 1 |
|
'out("' . $link . '").filter{ it.get().value("rank") == ' . $rank . '; }' | 1 |
|
'map( __.out("' . $link . '").order().by("rank").tail(1) )' | 1 |
|
<<<GREMLIN filter{ if ($code instanceof java.util.List) { !(it.get().value("$property")$caseSensitive in $code); } else { it.get().value("$property")$caseSensitive != $code; } } GREMLIN | 1 |
|
'map( __.out("' . $link . '").order().by("rank").tail(2) )' | 1 |
|
'filter{ it.get() in ' . $name . '}' | 1 |
|
'filter{ it.get().id() in ' . $name . '}' | 1 |
|
'filter{ it.get().value("lccode") in ' . $name . '}' | 1 |
|
'filter{ it.get().value("code") in ' . $name . '}' | 1 |
|
'filter{ it.get().value("' . $property . '")' . $caseSensitive . ' in ' . $name . $caseSensitive . '}' | 1 |
|
'filter{ it.get().value("' . $property . '") in ' . $name . '}' | 1 |
|
<<<GREMLIN emit().repeat( __ .timeLimit($TIME_LIMIT) .sideEffect{ ranked = it.get().value('rank');} .in('ARGUMENT') .out('DEFINITION') .out('ARGUMENT') .filter{ it.get().value('rank') == ranked;} .in('DEFINITION') .in("NAME") ).times($times) GREMLIN | 1 |
|
'%08b' | 1 |
|
"has(\"$property\").not(has(\"$property\", within(***)))" | 1 |
|
'filter{ it.get().label() in ' . $name . '}' | 1 |
|
'not( where( __.in("DEFINITION").where( __.in("NAME"))) )' | 1 |
|
'sideEffect{ it.get().property("' . $property . '", ' . ($value === true ? 'true' : 'false') . '); }' | 1 |
|
'%08b%08b' | 1 |
|
'filter{it.get().value("' . $property . '")' . $caseSensitive . ' != ' . $code[0] . '}' | 1 |
|
'filter{ !(it.get().value("' . $property . '")' . $caseSensitive . ' in ***); }' | 1 |
|
'filter{it.get().value("rank") > 0}.sideEffect{sibling = it.get().value("rank");}.in("' . $link . '").out("' . $link . '").filter{sibling + 1 <= it.get().value("rank") }' | 1 |
|
'has(***)' | 1 |
|
'map{ [' . implode(',' . PHP_EOL, $gremlin) . '] }' | 1 |
|
'map{ [' . $name . ':' . $variable . ']; }' | 1 |
|
<<<GREMLIN where( __.sideEffect{ levels = []; } .repeat( __.out("BLOCK", "EXPRESSION", "THEN", "ELSE", "CASES")).emit().times($MAX_LOOPING) .not(hasLabel("Sequence", "Block", "Void")) .path() .sideEffect{ levels.add(Math.round((it.get().size() - 1 ) / 2 - 1)); } .fold() .filter{ levels != [];} ).filter{ levels.size() >= $minimumSize && levels.sum() / levels.size() >= $indentationThreshold} GREMLIN | 1 |
|
<<<'GREMLIN' not( __.hasLabel("Integer", "Boolean", "Null", "Magicconstant", "Float", "String", "Heredoc", "Closure", "Arrayliteral") .has("constant", true) ) GREMLIN | 1 |
|
"where( __$out.hasLabel(within(***)) )" | 1 |
|
'out("IMPLEMENTS").in("DEFINITION")' | 1 |
|
<<<GREMLIN sideEffect{ $variable = []; }.where( __.repeat( __.out($LINKS_DOWN)).emit() .hasLabel($CONTAINERS) .sideEffect{ $variable.add(it.get().value("$type")); } .fold() ) GREMLIN | 1 |
|
'or(__.where( __.out("RETURNTYPE", "TYPEHINT").hasLabel("Null") ), __.where( __.out("DEFAULT").hasLabel("Null").not(__.in("LEFT"))) )' | 1 |
|
'not( where( __.sideEffect{sibling = it.get().value("rank");}.in("' . $link . '").out("' . $link . '").filter{sibling + 1 == it.get().value("rank")}) )' | 1 |
|
'sideEffect{sibling = it.get().value("rank");}.in("' . $link . '").out("' . $link . '").filter{sibling + 1 == it.get().value("rank")}' | 1 |
|
'not( where( __.in("DEFINITION").hasLabel("Function", "Method", "Magicmethod", "Closure", "Arrowfunction") ) )' | 1 |
|
<<<GREMLIN not( where( __.emit().repeat( __.out("IMPLEMENTS", "EXTENDS").in("DEFINITION")).times({$MAX_LOOPING}) .out("IMPLEMENTS").has("fullnspath", within(***)) ) ) GREMLIN | 1 |
|
"has(\"$property\").filter{ it.get().value(\"$property\") < ***[$index]; }" | 1 |
|
'where( __.sideEffect{sibling = it.get().value("rank");}.in("' . $link . '").out("' . $link . '").filter{sibling + 1 == it.get().value("rank")})' | 1 |
|
'where( __.in("DEFINITION").hasLabel("Propertydefinition"))' | 1 |
|
'until(__.not(__.inE(' . $this->SorA($diff) . '))).repeat(__.in(' . $this->SorA($diff) . '))' | 1 |
|
<<<GREMLIN where( __.sideEffect{ c = 0; } .emit( ).repeat(__.in($linksDown)) ) .until(hasLabel(within(***))) .hasLabel(within(***)) .sideEffect{ c = c + 1; }.fold() ).filter{ c < $count} GREMLIN | 1 |
|
'not( where( __.out(' . $this->SorA($links) . ').has("rank", ***) ) )' | 1 |
|
'not( where( __.out(' . $this->SorA($links) . ').filter{it.get().value("rank") == ' . $rank . '; } ) )' | 1 |
|
'filter{it.get().value("' . $property . '") == it.get().value("' . $property . '").toUpperCase()}' | 1 |
|
<<<'GREMLIN' hasLabel("Integer", "Boolean", "Null", "Magicconstant", "Float", "String", "Heredoc", "Closure", "Arrayliteral").has("constant", true) GREMLIN | 1 |
|
"not( where( __$in.hasLabel(within(***)) ) )" | 1 |
|
'where( __.in(' . $this->SorA($diff) . ') )' | 1 |
|
'has("code", within(***) )' | 1 |
|
<<<GREMLIN has("$property") .filter{ (it.get().value("$property") =~ "$regex").asBoolean(); } GREMLIN | 1 |
|
'where(__.in("DEFINITION").hasLabel(within(***)) )' | 1 |
|
<<<GREMLIN where( __.sideEffect{ $variable = []; } .out("ARGUMENT") .order().by("rank") .coalesce(__.out("NAME"), filter{ true; }) .sideEffect{ $variable.add(it.get().value("code")) ; } .fold() ) GREMLIN | 1 |
|
'where( __.in("DEFINITION").hasLabel("Virtualproperty").not( __.out("OVERWRITE").hasLabel("Propertydefinition")))' | 1 |
|
<<<GREMLIN until( __.in($linksDown).not(hasLabel(within(***))) ).repeat( __.in($linksDown) ) GREMLIN | 1 |
|
"has(\"$property\").or( __.not(has(\"$property\")), __.not(has(\"$property\", null)))" | 1 |
|
'filter{ if ( it.get().properties("' . $property . '").any()) { ' . $value . ' != it.get().value("' . $property . '")} else {' . $value . ' != false; }; }' | 1 |
|
"has(\"$property\", false)" | 1 |
|
'sideEffect{ if (it.get().properties("' . $property . '").any()) { ' . $name . ' = it.get().value("' . $property . '");} else { ' . $name . ' = false; }}' | 1 |
|
<<<GREMLIN where( __.sideEffect{ $variable = []; } .repeat( __.out("IMPLEMENTS", "EXTENDS").in("DEFINITION") ).emit().times($MAX_LOOPING) .hasLabel("Class") .sideEffect{ $variable.add(it.get().value("fullnspath")) ; } .fold() ) GREMLIN | 1 |
|
<<<GREMLIN emit().repeat( __.timeLimit($TIME_LIMIT).out("NAME").out("DEFINITION") .union(__.identity(), // local assignation to variable __.emit().repeat( __.in("DEFAULT").hasLabel("Variabledefinition").out("DEFINITION") ).times(4) ) .as("a").in("ARGUMENT").in("DEFINITION").out("ARGUMENT").as("b") .where("a", eq("b") ).by("rank") ).times($loopings) GREMLIN | 1 |
|
'filter{it.get().value("' . $property . '") == it.get().value("' . $property . '").toLowerCase()}' | 1 |
|
<<<GREMLIN where( __.emit().repeat( __.out("IMPLEMENTS", "EXTENDS").in("DEFINITION")).times({$MAX_LOOPING}) .out("IMPLEMENTS", "EXTENDS").has("fullnspath", within(***)) ) GREMLIN | 1 |
|
'filter{it.get().value("' . $property . '") != it.get().value("' . $property . '").toUpperCase()}' | 1 |
|
'filter{it.get().value("code") != it.get().value("lccode").toUpperCase()}' | 1 |
|
<<<'GREMLIN' not( where( __.out("DEFINITION").not(hasLabel("Usenamespace")) ) ) GREMLIN | 1 |
|
'in( )' | 1 |
|
<<<GREMLIN sideEffect{ line = it.get().value("line"); fullcode = it.get().value("fullcode"); file = "None"; theFunction = ""; theClass = ""; theNamespace = ""; } .where( __.until( hasLabel("Project") ).repeat( __.in({$linksDown}) .sideEffect{ if (theFunction == "" && it.get().label() in ["Function", "Closure", "Arrayfunction", "Magicmethod", "Method"]) { theFunction = it.get().value("fullcode")} } .sideEffect{ if (theClass == "" && it.get().label() in ["Class", "Trait", "Interface", "Classanonymous"] ) { theClass = it.get().value("fullcode") } } .sideEffect{ if (it.get().label() == "File") { file = it.get().value("fullcode")} } ).fold() ) .map{ ["fullcode":fullcode, "file":file, "line":line, "namespace":theNamespace, "class":theClass, "function":theFunction, "analyzer":"xxxx"];} GREMLIN | 1 |
|
'in(' . $this->SorA($diff) . ')' | 1 |
|
'not(where( __.in("DEFINITION") ) )' | 1 |
|
'has("' . $property . '").sideEffect{ ' . $name . ' = it.get().value("' . $property . '"); }' | 1 |
|
<<<'GREMLIN' not( __.where( __.out("RETURNTYPE", "TYPEHINT").hasLabel("Null"))) .not( __.where( __.out("DEFAULT").hasLabel("Null").not(__.in("LEFT")) )) GREMLIN | 1 |
|
'sideEffect{ if ( it.get().properties("' . $property . '").any()) { ' . $name . ' = it.get().value("' . $property . '")} else {' . $name . ' = false; }; }' | 1 |
|
"has(\"$property\", true)" | 1 |
|
'sideEffect{' . $variable . '.replaceFirst("^[' . $chars . ']?(.*?)[' . $chars . ']?\$", "\$1"); }' | 1 |
|
"sideEffect{ $variable = \"\\$\" + $variable; }" | 1 |
|
'where( __.in("DEFINITION"))' | 1 |
|
<<<'GREMLIN' or( __.hasLabel("This"), // Typehinted variable __.hasLabel("Variableobject", "Variable").in("DEFINITION").in("NAME").as("definition").out("TYPEHINT").in("DEFINITION").as("typehint").select("definition").in("ARGUMENT").in("METHOD", "MAGICMETHOD").as("classe").where("typehint", eq("classe") ), // Typehinted property __.hasLabel("Member").in("DEFINITION").in("PPP").as("definition").out("TYPEHINT").in("DEFINITION").as("typehint").select("definition").in("PPP").as("classe").where("typehint", eq("classe") ) ) GREMLIN | 1 |
|
'sideEffect{ ' . $name . ' = it.get().id(); }' | 1 |
|
'%04b' | 1 |
|
'sideEffect{ ' . $name . ' = it.get().label(); }' | 1 |
|
'not( where( __.in("ANALYZED").has("analyzer", within(***))) )' | 1 |
|
'filter{ if( it.code.isInteger()) { it.code > 0; } else { true; }}' | 1 |
|
'where( __.in("ANALYZED").has("analyzer", within(***)))' | 1 |
|
<<<GREMLIN where( __.sideEffect{ levels = []; } .repeat( __.out('BLOCK', 'EXPRESSION', 'THEN', 'ELSE', 'CASES')).emit().times($MAX_LOOPING) .not(hasLabel('Sequence', 'Block')) .path() .sideEffect{ levels.add(Math.round((it.get().size() - 1 ) / 2 - 1));} .count() )$filter GREMLIN | 1 |
|
<<<GREMLIN where( __.repeat( __.in({$linksDown}) ).until(hasLabel("File")).emit( ).hasLabel(within(***)) ) GREMLIN | 1 |
|
'sideEffect{sibling = it.get().value("rank");}.in("' . $link . '").out("' . $link . '").filter{sibling - 1 == it.get().value("rank")}' | 1 |
|
'not( where( __.inE(' . $this->SorA($diff) . ')) )' | 1 |
|
'where( __.emit( ).repeat( out(' . self::$linksDown . ') ).times(' . self::$MAX_LOOPING . ').has("' . $property . '", within(***)) )' | 1 |
|
"has(\"$property\").filter{ x = ***[$index]; x != null; }.filter{ [it.get().value(\"$property\")].intersect(x) != []}" | 1 |
|
"has(\"$property\").filter{ x = ***[$index]; x != null; }.filter{ [it.get().value(\"$property\").toLowerCase()].intersect(x) != []; }" | 1 |
|
'%07b' | 1 |
|
"has(\"$property\").filter{ x = ***[$index].collect{ it.toLowerCase() }; [it.get().value(\"$property\").toLowerCase()].intersect(x) == []; }" | 1 |
|
"has(\"$property\").filter{ [it.get().value(\"$property\")].intersect(***[$index]) == []}" | 1 |
|
'where( __.sideEffect{ ' . $variable . ' = []; } .out("USE") .out("USE") .sideEffect{ ' . $variable . '.add(it.get().value("fullnspath")) ; } .fold() ) ' | 1 |
|
'not(where(__.in("DEFINITION").hasLabel(within(***)) ) )' | 1 |
|
'filter{it.get().value("' . $property . '") != it.get().value("' . $property . '").toLowerCase()}' | 1 |
|
'has("token", within(***))' | 1 |
|
'filter{it.get().value("code") != it.get().value("lccode")}' | 1 |
|
'emit( ).repeat( __.in("VARIABLE", "INDEX")).until( where(__.in("VARIABLE", "INDEX").hasLabel("Array").count().is(eq(0)) ) )' | 1 |
|
<<<GREMLIN emit( ).repeat( __.coalesce(__.out("THEN", "ELSE", "CODE"), __.filter{true}) .out({$linksDown}) ) .times($MAX_LOOPING) GREMLIN | 1 |
|
'not( where( __.in(' . $this->SorA($diff) . ') ) )' | 1 |
|
'not(has(***))' | 1 |
|
'not( has("token", within(***)) )' | 1 |
|
<<<GREMLIN coalesce( __.where( __.in("EXPRESSION")), __.repeat( __.in({$linksDown})).emit( ).until( where(__.in("EXPRESSION") ) ).where( __.in("EXPRESSION") ) ) GREMLIN | 1 |
|
<<<GREMLIN as("gotoallimplements") .emit( ) .repeat( __.out("EXTENDS", "IMPLEMENTS") .in("DEFINITION") .hasLabel("Class", "Classanonymous", "Interface") .simplePath().from("gotoallimplements") ) .times($MAX_LOOPING) .hasLabel("Class", "Classanonymous", "Interface") GREMLIN | 1 |
|
<<<GREMLIN as("gotoallimplements") .repeat( __.out("EXTENDS", "IMPLEMENTS") .in("DEFINITION") .hasLabel("Class", "Classanonymous", "Interface") .simplePath().from("gotoallimplements") ).emit( ) .times($MAX_LOOPING).hasLabel("Class", "Classanonymous", "Interface") GREMLIN | 1 |
|
"dedup().by('$by')" | 1 |
|
"addE(\"$edgeName\").from(\"$from\")" | 1 |
|
"not( where( __$out.hasLabel(within(***)) ) )" | 1 |
|
'range(' . (int) $min . ', ' . (int) $max . ')' | 1 |
|
'not( where(__.out("DEFINITION").in("USE").hasLabel("Use")) )' | 1 |
|
'sideEffect{dernier = it.get().value("count") - 1;}.out("EXPRESSION").filter{ it.get().value("rank") < dernier}' | 1 |
|
<<<GREMLIN where( __.emit().repeat( __.out("EXTENDS").in("DEFINITION")).times($MAX_LOOPING) .out("EXTENDS").has("fullnspath", within(***)) ) GREMLIN | 1 |
|
<<<GREMLIN union( __.as("gotoallparentstraits").repeat( __.union( __.out("USE").out("USE"), __.out("EXTENDS")) .in("DEFINITION") .hasLabel("Class", "Classanonymous", "Trait") .simplePath().from("gotoallparentstraits") ) .emit( ) .times($MAX_LOOPING) .hasLabel("Class", "Classanonymous", "Trait"), identity() ) GREMLIN | 1 |
|
<<<GREMLIN as("gotoallparentstraits").repeat( __.union( __.out("USE").out("USE"), __.out("EXTENDS")) .in("DEFINITION") .hasLabel("Class", "Classanonymous", "Trait") .simplePath().from("gotoallparentstraits") ) .emit( ) .times($MAX_LOOPING) .hasLabel("Class", "Classanonymous", "Trait") GREMLIN | 1 |
|
'not(where( __.out("RETURNTYPE", "TYPEHINT").filter{it.get().value("fullnspath") == ' . $variable . '} ) )' | 1 |
|
'%064b' | 1 |
|
'dedup()' | 1 |
|
'dedup(' . makeList($by) . ')' | 1 |
|
<<<GREMLIN union( __.identity(), __.repeat( __.timeLimit($TIME_LIMIT).hasLabel(within(["Variable", "Phpvariable", "Ternary", "Coalesce", "Parenthesis"])) .union( // literal local value __.hasLabel(within(["Variable", "Phpvariable"])).in("DEFINITION").hasLabel("Variabledefinition").out("DEFAULT"), // literal value, passed as an argument (Method, closure, function) __.hasLabel(within(["Variable", "Phpvariable"])).in("DEFINITION").in("NAME").hasLabel('Parameter').as("p1").in("ARGUMENT").out("DEFINITION").optional(__.out("METHOD", "NEW")).out("ARGUMENT").as("p2").where("p1", eq("p2")).by("rank"), // literal value, passed as an argument __.hasLabel(within(["Ternary"])).out("THEN", "ELSE").not(hasLabel('Void')), // \$a ?? 'b' __.hasLabel(within(["Coalesce"])).out("LEFT", "RIGHT"), // (\$a) __.hasLabel(within(["Parenthesis"])).out("CODE") ) ).times($MAX_LOOPING).emit() ) .hasLabel(within(***)) GREMLIN | 2 |
|
'%016b' | 2 |
|
' % 4s | % 18s | %s' | 2 |
|
<<<GREMLIN union( __.identity(), __.repeat( __.timeLimit($TIME_LIMIT).hasLabel(within(["Identifier", "Nsname", "Staticconstant", "Variable" , "Ternary", "Coalesce", "Parenthesis", "Functioncall", "Methodcall", "Staticmethodcall"])) .union( __.hasLabel(within(["Identifier", "Nsname", "Staticconstant"])).in("DEFINITION").out("VALUE"), // local variable __.hasLabel(within(["Variable"])).in("DEFINITION").hasLabel('Variabledefinition', 'Staticdefinition').out("DEFAULT"), // literal value, passed as an argument (Method, closure, function) __.hasLabel(within(["Variable"])).in("DEFINITION").in("NAME").hasLabel("Parameter", "Ppp").out("DEFAULT"), __.hasLabel(within(["Variable"])).in("DEFINITION").in("NAME").hasLabel("Parameter", "Ppp").as("p1").timeLimit($TIME_LIMIT).in("ARGUMENT").out("DEFINITION").optional(__.out("METHOD", "NEW")).out("ARGUMENT").as("p2").where("p1", eq("p2")).by("rank"), // literal value, passed as an argument __.hasLabel(within(["Ternary"])).out("THEN", "ELSE").not(hasLabel('Void')), __.hasLabel(within(["Coalesce"])).out("LEFT", "RIGHT"), __.hasLabel(within(["Parenthesis"])).out("CODE"), __.hasLabel(within(["Functioncall", "Methodcall", "Staticmethodcall"])).in('DEFINITION').out('RETURNED') ) ).times($MAX_LOOPING).emit() ) .hasLabel(within(***)) GREMLIN | 2 |
|
"has(\"$property\").not(has(\"$property\", ***))" | 2 |
|
'has("noDelimiter")' | 2 |
|
'out("EXTENDS").in("DEFINITION")' | 2 |
|
'has("fullcode")' | 2 |
|
'in("DEFINITION")' | 2 |
|
"has(\"$property\").not(has(\"$property\", ''))" | 2 |
|
'sideEffect{ it.get().property("' . $property . '", ' . $value . '); }' | 2 |
|
"not(has(\"$col\", within(***)))" | 2 |
|
"has(\"$col\", within(***))" | 2 |
|
'count()' | 2 |
|
'sideEffect{ ' . $name . ' = it.get(); }' | 2 |
|
"+ %-4s %10s %12s\n" | 2 |
|
"+ %-20s %8s %5s\n" | 4 |
|
'filter{ false; }' | 27 |
|
'filter{ true; }' | 28 |
|