Printf Inventory

List of all printf(), sprintf(), etc. formats strings mentioned in the code..

ValueCountFile:Line
'%- 70s %- 40s'
1
  • /library/Exakat/Reports/BeautyCanon.php
'has("' $property '", null)'
1
  • /library/Exakat/Query/DSL/Is.php
"has(\"$property\").filter{ x = ***[$index]; x != null; }.filter{ it.get().value(\"$property\") > x}"
1
  • /library/Exakat/Query/DSL/IsMoreHash.php
<<<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
  • /library/Exakat/Query/DSL/GoToAllTraits.php
"is(lt($g1))"
1
  • /library/Exakat/Query/DSL/IsLess.php
"where( __$in.hasLabel(within(***)))"
1
  • /library/Exakat/Query/DSL/HasParent.php
'in("DEFINITION").hasLabel("Function", "Method", "Magicmethod", "Closure")'
1
  • /library/Exakat/Query/DSL/FunctionDefinition.php
<<<'GREMLIN'
 where( __.out("DEFAULT").hasLabel("Void", "Null").not(__.in("RIGHT") ))
GREMLIN
1
  • /library/Exakat/Query/DSL/IsMissingOrNull.php
'not(hasLabel(within(***)))'
1
  • /library/Exakat/Query/DSL/AtomIsNot.php
'hasLabel(within(***))'
1
  • /library/Exakat/Query/DSL/AtomIs.php
'where( __.out(' $this->SorA($diff) . ') )'
1
  • /library/Exakat/Query/DSL/HasOut.php
'not( has("code", within(***) ) )'
1
  • /library/Exakat/Query/DSL/RegexIsNot.php
'out( )'
1
  • /library/Exakat/Query/DSL/OutIs.php
<<<GREMLIN
has("$property")
.filter{ !(it.get().value("
$property") =~ "$regex" ).asBoolean() }
GREMLIN
1
  • /library/Exakat/Query/DSL/RegexIsNot.php
'out(' $this->SorA($diff) . ')'
1
  • /library/Exakat/Query/DSL/OutIs.php
'sideEffect{sibling = it.get().value("rank");}.in("' $link '").out("' $link '").filter{sibling + 1 <= it.get().value("rank") }'
1
  • /library/Exakat/Query/DSL/NextSiblings.php
'filter{ it.get().vertices(IN, "ARGUMENT").next().value("count") == it.get().value("rank") + 1}'
1
  • /library/Exakat/Query/DSL/Is.php
<<<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
  • /library/Exakat/Query/DSL/GoToAllTraits.php
"groupCount('m').by('$column')"
1
  • /library/Exakat/Query/DSL/GroupCount.php
'not(where(__.out("ARGUMENT").has("variadic", true)))'
1
  • /library/Exakat/Query/DSL/HasNoVariadicArgument.php
'where( __.out("RETURNTYPE", "TYPEHINT").filter{it.get().value("fullnspath") == ' $variable '} )'
1
  • /library/Exakat/Query/DSL/SameTypehintAs.php
<<<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
  • /library/Exakat/Query/DSL/GoToAllParents.php
<<<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
  • /library/Exakat/Query/DSL/IsVisible.php
'where( 
__.sideEffect{ ' 
$variable ' = []; }
  .out("METHOD", "MAGICMETHOD")
  .out("NAME")
  .sideEffect{ ' 
$variable '.add(it.get().value("lccode")) ; }
  .fold() 
)
'
1
  • /library/Exakat/Query/DSL/CollectMethods.php
<<<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
  • /library/Exakat/Query/DSL/IsVisible.php
'sideEffect{ ' $name ' = ' $value ' }'
1
  • /library/Exakat/Query/DSL/InitVariable.php
'filter{ it.get().vertices(IN, "ARGUMENT").next().value("count") == it.get().value("rank") + 2}'
1
  • /library/Exakat/Query/DSL/Is.php
'sideEffect{ ' implode(PHP_EOL$gremlin) . ' }'
1
  • /library/Exakat/Query/DSL/InitVariable.php
'has("' $property '", ' $value ')'
1
  • /library/Exakat/Query/DSL/Is.php
'has("' $property '", false)'
1
  • /library/Exakat/Query/DSL/Is.php
'has("' $property '", true)'
1
  • /library/Exakat/Query/DSL/Is.php
'filter{ if ( it.get().properties("' $property '").any()) { ' $value ' == it.get().value("' $property '")} else {' $value ' == false; }; }'
1
  • /library/Exakat/Query/DSL/Is.php
'has("rank", ' . (int) $value ')'
1
  • /library/Exakat/Query/DSL/Is.php
'filter{it.get().value("fullcode").length() ' $length '}'
1
  • /library/Exakat/Query/DSL/FullcodeLength.php
"values(\"$property\")"
1
  • /library/Exakat/Query/DSL/Values.php
'filter{ it.get().value("lccode") == ' $name '}'
1
  • /library/Exakat/Query/DSL/SamePropertyAs.php
'filter{it.get().value("' $property '") == it.get().value("' $property '").toString().toLowerCase() || it.get().value("' $property '") == it.get().value("' $property '").toString().toUpperCase()}'
1
  • /library/Exakat/Query/DSL/IsNotMixedcase.php
"filter{ it.get() != $name }"
1
  • /library/Exakat/Query/DSL/NotSamePropertyAs.php
"filter{ it.get().id() != $name }"
1
  • /library/Exakat/Query/DSL/NotSamePropertyAs.php
"filter{ it.get().label() != $name }"
1
  • /library/Exakat/Query/DSL/NotSamePropertyAs.php
<<<GREMLIN
sideEffect{
    if (
$variable.contains("\\\\") ) {
        
$variable = $variable.tokenize("\\\\\\\\").last(); 
    }
    if (
$variable.contains("(") ) {
        
$variable = $variable.tokenize("(").first(); 
    }
}
GREMLIN
1
  • /library/Exakat/Query/DSL/GetNameInFNP.php
'not( where(__.in("DEFINITION").hasLabel("Trait") ) )'
1
  • /library/Exakat/Query/DSL/NoTraitDefinition.php
'coalesce(__.in("DEFINITION").in("NAME").out("VALUE"), 
                                     __.in("DEFINITION").out("VALUE"), 
                                        __.filter{ true; })'
1
  • /library/Exakat/Query/DSL/GoToLiteralValue.php
'emit( ).repeat( __.in("OVERWRITE").not(__.in("PPP").has("visibility", "private")) ).times(' self::$MAX_LOOPING ')'
1
  • /library/Exakat/Query/DSL/GoToAllDefinitions.php
'where(__.in("DEFINITION").hasLabel("Interface") )'
1
  • /library/Exakat/Query/DSL/HasInterfaceDefinition.php
'not( where( __.hasLabel("Arrayliteral").has("count", 0)))'
1
  • /library/Exakat/Query/DSL/IsNotEmptyArray.php
'not( where( __.out(' $this->SorA($diff) . ')) )'
1
  • /library/Exakat/Query/DSL/OutIsNot.php
<<<'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
  • /library/Exakat/Query/DSL/HasNoDefinition.php
'unique()'
1
  • /library/Exakat/Query/DSL/Unique.php
'sideEffect{ ' $variable ' = 0; }
.repeat( __.in("VARIABLE", "APPEND").hasLabel("Array", "Arrayappend").sideEffect{ l = l + 1;}).emit()'
1
  • /library/Exakat/Query/DSL/CountArrayDimension.php
<<<GREMLIN
where(
    __.sideEffect{ 
$variable = []; }
      .repeat( __.out(
$LINKS_DOWN)).emit()
      .hasLabel(
$CONTAINERS)
      .sideEffect{ 
          
$variable.add(it.get().value("code")); 
      }
      .fold()
)

GREMLIN
1
  • /library/Exakat/Query/DSL/CollectContainers.php
'filter{ if (it.get().properties("reference").any()) { ' $name ' != it.get().value("reference");} else { ' $name ' != false; }}'
1
  • /library/Exakat/Query/DSL/NotSamePropertyAs.php
'not( where( __.out(' $this->SorA($diff) . ') ) )'
1
  • /library/Exakat/Query/DSL/HasNoOut.php
<<<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
  • /library/Exakat/Query/DSL/CollectImplements.php
"select(\"$name\")"
1
  • /library/Exakat/Query/DSL/Back.php
'where( __.in("DEFINITION").hasLabel("Function", "Method", "Closure") )'
1
  • /library/Exakat/Query/DSL/HasFunctionDefinition.php
'where(__.out("ARGUMENT").has("variadic", true))'
1
  • /library/Exakat/Query/DSL/HasVariadicArgument.php
"filter{ {$g1} < {$g2};}"
1
  • /library/Exakat/Query/DSL/IsLess.php
'where( __.out(' $this->SorA($diff) . ').has("rank", ***).not(hasLabel("Void")) )'
1
  • /library/Exakat/Query/DSL/HasChildWithRank.php
<<<GREMLIN
 as("gotoallchildren")
.repeat( __.out("DEFINITION")
           .in("EXTENDS", "IMPLEMENTS")
           .simplePath().from("gotoallchildren")
          )
          .emit( )
          .times(
$MAX_LOOPING)
GREMLIN
1
  • /library/Exakat/Query/DSL/GoToAllChildren.php
<<<GREMLIN
 as("gotoallchildren")
.emit( )
.repeat( __.out("DEFINITION")
           .in("EXTENDS", "IMPLEMENTS")
           .simplePath().from("gotoallchildren")
          )
          .times(
$MAX_LOOPING)
GREMLIN
1
  • /library/Exakat/Query/DSL/GoToAllChildren.php
<<<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
  • /library/Exakat/Query/DSL/SaveNullableAs.php
'not( where(__.in("DEFINITION").hasLabel("Interface") ) )'
1
  • /library/Exakat/Query/DSL/NoInterfaceDefinition.php
'as("' implode('").as("'$name) . '")'
1
  • /library/Exakat/Query/DSL/_As.php
"as(\"$name\")"
1
  • /library/Exakat/Query/DSL/_As.php
'not(has("ignored_dir", true))'
1
  • /library/Exakat/Query/DSL/IsNotIgnored.php
"has(\"$property\").filter{ it.get().value(\"$property\")$caseSensitive != $name$caseSensitive}"
1
  • /library/Exakat/Query/DSL/NotSamePropertyAs.php
"has(\"$property\").filter{ it.get().value(\"$property\") != $name}"
1
  • /library/Exakat/Query/DSL/NotSamePropertyAs.php
'filter{ if ( it.get().properties("' $property '").any()) { ' $name ' != it.get().value("' $property '")} else {' $name ' != false; }; }'
1
  • /library/Exakat/Query/DSL/NotSamePropertyAs.php
<<<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
  • /library/Exakat/Query/DSL/GoToAllParents.php
'filter{ it.get().value("code") == ' $name '}'
1
  • /library/Exakat/Query/DSL/SamePropertyAs.php
'where( __.in("DEFINITION").where( __.in("NAME")))'
1
  • /library/Exakat/Query/DSL/IsArgument.php
<<<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
  • /library/Exakat/Query/DSL/AnalyzerInsideMoreThan.php
<<<'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
  • /library/Exakat/Query/DSL/GetStringLength.php
<<<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
  • /library/Exakat/Query/DSL/IsNotLocalClass.php
'not( where( __.emit( ).repeat( out(' self::$linksDown ') ).times(' self::$MAX_LOOPING ').filter{ it.get().value("fullcode") == ' $fullcode '}) )'
1
  • /library/Exakat/Query/DSL/NoFullcodeInside.php
<<<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
  • /library/Exakat/Query/DSL/AtomInsideMoreThan.php
<<<GREMLIN
sideEffect{ 
    x = it.get().value("fullnspath").tokenize("::"); 
    
$name = x[1]; 
}

GREMLIN
1
  • /library/Exakat/Query/DSL/SaveMethodNameAs.php
'__.' implode(".\n"$commands)
1
  • /library/Exakat/Query/Query.php
'not( where( __.emit( ).repeat( out(' self::$linksDown ') ).times(' self::$MAX_LOOPING ').hasLabel("Functioncall").has("fullnspath", within(***))) )'
1
  • /library/Exakat/Query/DSL/NoFunctionInside.php
<<<GREMLIN
emit().repeat(
            __.coalesce( __.hasLabel(within(***)).out(),
                         __.hasLabel("Parenthesis").out("CODE"),
                         __.hasLabel("Assignation").out("RIGHT")
                       )
              )
      .times(
$MAX_LOOPING)
      .hasLabel(within(***))
GREMLIN
1
  • /library/Exakat/Query/DSL/AtomInsideExpression.php
<<<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
  • /library/Exakat/Query/DSL/IsNotExtendingComposer.php
<<<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
  • /library/Exakat/Query/DSL/NoAtomWithoutPropertyInside.php
'emit( ).repeat( __.out(' self::$linksDown ').not(hasLabel("Closure", "Classanonymous")) ).times(' self::$MAX_LOOPING ').hasLabel(within(***))'
1
  • /library/Exakat/Query/DSL/AtomInsideNoAnonymous.php
<<<'GREMLIN'
not(
    where( 
        __.out("EXPRESSION")
          .not(hasLabel("Void", "Global", "Static"))
          .not(
            where( 
                __.hasLabel("Return")
                  .out("RETURN")
                  .hasLabel("Void", "Null")
                )
            )
        )
)
GREMLIN
1
  • /library/Exakat/Query/DSL/IsNotEmptyBody.php
<<<GREMLIN
groupCount("gf").$by.cap("gf").sideEffect{ s = it.get().values().sum(); }.next().findAll{ it.value < s * $percentage; }.keySet()
GREMLIN
1
  • /library/Exakat/Query/DSL/GroupFilter.php
<<<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
  • /library/Exakat/Query/DSL/AtomInsideWithCall.php
<<<GREMLIN
where(
    __.out("DEFINITION").hasLabel("Variable", "Variableobject", "Variablearray", "Parameter", "String").count().is(eq(
$times))
     )
GREMLIN
1
  • /library/Exakat/Query/DSL/IsUsed.php
<<<GREMLIN
not(
    where(
        __.repeat( __.in()).until(hasLabel("Function")).out("ARGUMENT").filter{it.get().value("code") == 
$variable}.has("reference", true)
    )
)

GREMLIN
1
  • /library/Exakat/Query/DSL/IsReferencedArgument.php
'select(' makeList($select) . ')'
1
  • /library/Exakat/Query/DSL/Select.php
' % 4s  %s '
1
  • /library/Exakat/Reports/Perfile.php
'            %- 30s => true,'
1
  • /library/Exakat/Reports/Phpcsfixer.php
<<<GREMLIN
repeat( __.in($linksDown) ).until(hasLabel(within(***)) )
GREMLIN
1
  • /library/Exakat/Query/DSL/GoToFunction.php
<<<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
  • /library/Exakat/Query/DSL/CountBy.php
<<<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
  • /library/Exakat/Query/DSL/IsComplexExpression.php
'select(' makeList($select) . ').' implode('.'$by)
1
  • /library/Exakat/Query/DSL/Select.php
<<<GREMLIN
repeat( __.out("ELSE")).emit().times($MAX_LOOPING).hasLabel("Ifthen")
GREMLIN
1
  • /library/Exakat/Query/DSL/GoToAllElse.php
<<<'GREMLIN'
not( 
    where( __.out("OVERWRITE")
             .not( where( __.has("abstract", true) ) ) 
             .not( where( __.has("visibility", "private") ) ) 
             .not( where( __.in("METHOD", "MAGICMETHOD").hasLabel("Interface") ) ) 
    )
)
GREMLIN
1
  • /library/Exakat/Query/DSL/IsNotInheritedMethod.php
'emit().repeat( out(' self::$linksDown ') ).times(' self::$MAX_LOOPING ').hasLabel(within(***))'
1
  • /library/Exakat/Query/DSL/AtomInside.php
<<<GREMLIN
not(
    where( __.repeat( __.out(
$linksDown).not(hasLabel("Closure", "Arrowfunction", "Class", "Function", "Classanonymous")) ).emit( )
                     .times(
$MAX_LOOPING)
                     .hasLabel(within(***)) 
          )
)
GREMLIN
1
  • /library/Exakat/Query/DSL/NoAtomInside.php
<<<'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
  • /library/Exakat/Query/DSL/AtomIsNot.php
<<<GREMLIN
not( 
    where( 
        __.repeat(__.in(
{$linksDown}))
          .emit().until(hasLabel("File"))
          .hasLabel("Function", "Method", "Closure", "Magicmethod") 
          ) 
    )
GREMLIN
1
  • /library/Exakat/Query/DSL/IsGlobalCode.php
'emit( ).repeat( out(' self::$linksDown ') ).times(' self::$MAX_LOOPING ').filter{ it.get().value("fullcode") == ' $fullcode '}'
1
  • /library/Exakat/Query/DSL/FullcodeInside.php
<<<GREMLIN
not(
    where( 
        __.repeat( __.out(
$linksDown) ).emit(hasLabel("Variable", "Array", "Member", "Staticproperty")).times($MAX_LOOPING)
                     .filter{ it.get().value("fullcode") == 
$name}
         )
)
GREMLIN
1
  • /library/Exakat/Query/DSL/IsReassigned.php
<<<GREMLIN
not(
    where( __.emit( ).repeat( __.out(
$linksDown).not(hasLabel("Closure", "Classanonymous")) )
                     .times(
$MAX_LOOPING).hasLabel(within(***))
                     .has("
$property")
                     .has("
$property", within(***))
          ) 
    )
GREMLIN
1
  • /library/Exakat/Query/DSL/NoAtomPropertyInside.php
'emit( ).repeat( __.out(' self::$linksDown ').not(hasLabel("Closure", "Classanonymous", "Function", "Class", "Trait")) ).times(' self::$MAX_LOOPING ').hasLabel("Functioncall").has("fullnspath", within(***))'
1
  • /library/Exakat/Query/DSL/FunctionInside.php
'filter{ it.get().value("' $property '")' $caseSensitive ' == ' $name $caseSensitive '}'
1
  • /library/Exakat/Query/DSL/SamePropertyAs.php
'filter{ it.get().label() == ' $name '}'
1
  • /library/Exakat/Query/DSL/SamePropertyAs.php
"filter{ {$g1} > {$g2};}"
1
  • /library/Exakat/Query/DSL/IsMore.php
<<<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
  • /library/Exakat/Query/DSL/FollowValue.php
'filter{it.get().value("' $property '")' $caseSensitive ' == ' $code '}'
1
  • /library/Exakat/Query/DSL/PropertyIs.php
'filter{it.get().value("' $property '")' $caseSensitive ' == ' $code[0] . '}'
1
  • /library/Exakat/Query/DSL/PropertyIs.php
"is(gt($g1))"
1
  • /library/Exakat/Query/DSL/IsMore.php
'filter{ it.get().id() == ' $name '}'
1
  • /library/Exakat/Query/DSL/SamePropertyAs.php
'filter{it.get().value("' $property '")' $caseSensitive ' == ***}'
1
  • /library/Exakat/Query/DSL/PropertyIs.php
"is(eq($g1))"
1
  • /library/Exakat/Query/DSL/IsEqual.php
'filter{ it.get().value("' $property '")' $caseSensitive ' in ***; }'
1
  • /library/Exakat/Query/DSL/PropertyIs.php
'filter{ if (it.get().properties("' $property '").any()) { ' $name ' == it.get().value("' $property '");} else { ' $name ' == false; }}'
1
  • /library/Exakat/Query/DSL/SamePropertyAs.php
'has("intval").filter{ it.get().value("intval") == ' $name '}'
1
  • /library/Exakat/Query/DSL/SamePropertyAs.php
'filter{ if ( it.get().properties("' $property '").any()) { ' $name ' == it.get().value("' $property '")} else {' $name ' == false; }; }'
1
  • /library/Exakat/Query/DSL/SamePropertyAs.php
'filter{ it.get() == ' $name '}'
1
  • /library/Exakat/Query/DSL/SamePropertyAs.php
'filter{ it.get().value("' $property '") == ' $name '}'
1
  • /library/Exakat/Query/DSL/SamePropertyAs.php
<<<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
  • /library/Exakat/Query/DSL/NextCalls.php
"filter{ {$g1} == {$g2};}"
1
  • /library/Exakat/Query/DSL/IsEqual.php
<<<GREMLIN
sideEffect{ 
    s = [];
    it.get().vertices(OUT, "
$out")$sortStep.each{ 
        s.push(it.value('code'));
    };
    
$name = s.join(', ');
    true;
}

GREMLIN
1
  • /library/Exakat/Query/DSL/SaveOutAs.php
<<<'GREMLIN'
not( 
    where( 
        __.repeat( __.inE().not(hasLabel("DEFINITION", "ANALYZED")).outV()).until(hasLabel("File"))
          .hasLabel(within(***))
          .has("code", ***)
          ) 
    )
GREMLIN
1
  • /library/Exakat/Query/DSL/HasNoNamedInstruction.php
<<<GREMLIN
emit( ).repeat( __.out($linksDown)
                  .not(hasLabel("Closure", "Classanonymous", "Function", "Class", "Trait", "Interface")) 
            )
            .times(
$MAX_LOOPING)
            .hasLabel(within(***))
GREMLIN
1
  • /library/Exakat/Query/DSL/AtomInsideNoDefinition.php
'emit().repeat( out(' self::$linksDown ') ).times(' self::$MAX_LOOPING ').where( __.in("ANALYZED").has("analyzer", within(***)))'
1
  • /library/Exakat/Query/DSL/AnalyzerInside.php
<<<GREMLIN
not( 
    where( 
         __.emit( ).repeat(__.in(
{$linksDown}))
                   .until(hasLabel(within(***)))
                   .hasLabel(within(***))
         ) 
    )
GREMLIN
1
  • /library/Exakat/Query/DSL/HasNoInstruction.php
<<<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
  • /library/Exakat/Query/DSL/NoAnalyzerInsideWithProperty.php
<<<GREMLIN
not(
    __.where( 
        __.repeat( __.out(
{$linksDown})).emit().times($MAX_LOOPING)
          .hasLabel(
$atomFilter)
          .filter{ it.get().value("code") in 
$values; }
    )
)

GREMLIN
1
  • /library/Exakat/Query/DSL/NoCodeInside.php
'emit( ).repeat( __.out(' self::$linksDown ').not(hasLabel("Sequence")) ).times(' self::$MAX_LOOPING ').hasLabel(within(***))'
1
  • /library/Exakat/Query/DSL/AtomInsideNoBlock.php
<<<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
  • /library/Exakat/Query/DSL/CheckTypeWithAtom.php
'has("' $property '", within(***))'
1
  • /library/Exakat/Query/DSL/Is.php
"where( __.emit( ).repeat( out($linksDown) ).times($MAX_LOOPING).hasLabel(within(***)) )"
1
  • /library/Exakat/Query/DSL/HasAtomInside.php
<<<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
  • /library/Exakat/Query/DSL/IsLocalClass.php
<<<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
  • /library/Exakat/Query/DSL/VariableIsAssigned.php
<<<GREMLIN
not( 
    where( __.emit( ).repeat( __.out(
{$linksDown}) ).times($MAX_LOOPING)
             .hasLabel(within(***))
             .where( __.in("ANALYZED").has("analyzer", within(***)))
          )     
)
GREMLIN
1
  • /library/Exakat/Query/DSL/NoAnalyzerInside.php
<<<GREMLIN
repeat( __.in({$linksDown})).until(hasLabel(within(***)) )
          .hasLabel(within(***))
GREMLIN
1
  • /library/Exakat/Query/DSL/GoToInstruction.php
'has("' $property '", ***)'
1
  • /library/Exakat/Query/DSL/Is.php
<<<GREMLIN
not(
    where( __.emit().repeat( __.out("EXTENDS").in("DEFINITION")).times(
$MAX_LOOPING)
                    .out("EXTENDS").has("fullnspath", within(***)) ) 
)
GREMLIN
1
  • /library/Exakat/Query/DSL/NotExtending.php
<<<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
  • /library/Exakat/Query/DSL/ProcessDereferencing.php
'until( __.not(outE(' $this->SorA($diff) . ')) ).repeat(out(' $this->SorA($diff) . '))'
1
  • /library/Exakat/Query/DSL/OutIsIE.php
'out("' $link '").has("rank", eq(' abs((int) $rank) . '))'
1
  • /library/Exakat/Query/DSL/OutWithRank.php
"addE(\"$edgeName\").to(\"$from\")"
1
  • /library/Exakat/Query/DSL/AddETo.php
<<<GREMLIN
emit().repeat(
    __.out("DEFINITION").in("DEFAULT").hasLabel("Variabledefinition")
).times(
$loopings)
GREMLIN
1
  • /library/Exakat/Query/DSL/FollowAlias.php
'where(__.in("DEFINITION").hasLabel("Trait") )'
1
  • /library/Exakat/Query/DSL/HasTraitDefinition.php
'filter{it.get().value("' $property '")' $caseSensitive ' != ***}'
1
  • /library/Exakat/Query/DSL/PropertyIsNot.php
"filter{it.get().value(\"fullcode\") == $variable; }"
1
  • /library/Exakat/Query/DSL/FullcodeVariableIs.php
'as("sibling' self::$sibling '").in("' $link '").out("' $link '").where(neq("sibling' self::$sibling '"))'
1
  • /library/Exakat/Query/DSL/OtherSiblings.php
'in("' $link '").out("' $link '")'
1
  • /library/Exakat/Query/DSL/OtherSiblings.php
"sideEffect{ it.get().property(\"$property\", false); }"
1
  • /library/Exakat/Query/DSL/SetProperty.php
"sideEffect{ it.get().property(\"$property\", $value); }"
1
  • /library/Exakat/Query/DSL/SetProperty.php
<<<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
  • /library/Exakat/Query/DSL/FollowParAs.php
"sideEffect{ it.get().property(\"$property\", true); }"
1
  • /library/Exakat/Query/DSL/SetProperty.php
'out("' $link '").has("rank", eq(0))'
1
  • /library/Exakat/Query/DSL/OutWithRank.php
'out("' $link '").filter{ it.get().value("rank") == ' $rank '; }'
1
  • /library/Exakat/Query/DSL/OutWithRank.php
'map( __.out("' $link '").order().by("rank").tail(1) )'
1
  • /library/Exakat/Query/DSL/OutWithRank.php
<<<GREMLIN
filter{
    if (
$code instanceof java.util.List) {
        !(it.get().value("
$property")$caseSensitive in $code);
    } else {
        it.get().value("
$property")$caseSensitive != $code;
    }
}
GREMLIN
1
  • /library/Exakat/Query/DSL/PropertyIsNot.php
'map( __.out("' $link '").order().by("rank").tail(2) )'
1
  • /library/Exakat/Query/DSL/OutWithRank.php
'filter{ it.get() in ' $name '}'
1
  • /library/Exakat/Query/DSL/SamePropertyAsArray.php
'filter{ it.get().id() in ' $name '}'
1
  • /library/Exakat/Query/DSL/SamePropertyAsArray.php
'filter{ it.get().value("lccode") in ' $name '}'
1
  • /library/Exakat/Query/DSL/SamePropertyAsArray.php
'filter{ it.get().value("code") in ' $name '}'
1
  • /library/Exakat/Query/DSL/SamePropertyAsArray.php
'filter{ it.get().value("' $property '")' $caseSensitive ' in ' $name $caseSensitive '}'
1
  • /library/Exakat/Query/DSL/SamePropertyAsArray.php
'filter{ it.get().value("' $property '") in ' $name '}'
1
  • /library/Exakat/Query/DSL/SamePropertyAsArray.php
<<<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
  • /library/Exakat/Query/DSL/PreviousCalls.php
'%08b'
1
  • /library/Exakat/Graph/Helpers/Websocket.php
"has(\"$property\").not(has(\"$property\", within(***)))"
1
  • /library/Exakat/Query/DSL/IsNot.php
'filter{ it.get().label() in ' $name '}'
1
  • /library/Exakat/Query/DSL/SamePropertyAsArray.php
'not( where( __.in("DEFINITION").where( __.in("NAME"))) )'
1
  • /library/Exakat/Query/DSL/IsNotArgument.php
'sideEffect{ it.get().property("' $property '", ' . ($value === true 'true' 'false') . '); }'
1
  • /library/Exakat/Query/DSL/Property.php
'%08b%08b'
1
  • /library/Exakat/Graph/Helpers/Websocket.php
'filter{it.get().value("' $property '")' $caseSensitive ' != ' $code[0] . '}'
1
  • /library/Exakat/Query/DSL/PropertyIsNot.php
'filter{ !(it.get().value("' $property '")' $caseSensitive ' in ***); }'
1
  • /library/Exakat/Query/DSL/PropertyIsNot.php
'filter{it.get().value("rank") > 0}.sideEffect{sibling = it.get().value("rank");}.in("' $link '").out("' $link '").filter{sibling + 1 <= it.get().value("rank") }'
1
  • /library/Exakat/Query/DSL/PreviousSiblings.php
'has(***)'
1
  • /library/Exakat/Query/DSL/Has.php
'map{ [' implode(',' PHP_EOL$gremlin) . '] }'
1
  • /library/Exakat/Query/DSL/GetVariable.php
'map{ [' $name ':' $variable ']; }'
1
  • /library/Exakat/Query/DSL/GetVariable.php
<<<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
  • /library/Exakat/Query/DSL/ProcessIndentingAverage.php
<<<'GREMLIN'
not( 
    __.hasLabel("Integer", "Boolean", "Null", "Magicconstant", "Float", "String", "Heredoc", "Closure", "Arrayliteral")
      .has("constant", true) 
)

GREMLIN
1
  • /library/Exakat/Query/DSL/IsNotLiteral.php
"where( __$out.hasLabel(within(***)) )"
1
  • /library/Exakat/Query/DSL/HasChildren.php
'out("IMPLEMENTS").in("DEFINITION")'
1
  • /library/Exakat/Query/DSL/GoToImplements.php
<<<GREMLIN
sideEffect{ $variable = []; }.where(
    __.repeat( __.out(
$LINKS_DOWN)).emit()
      .hasLabel(
$CONTAINERS)
      .sideEffect{ 
          
$variable.add(it.get().value("$type")); 
      }
      .fold()
)

GREMLIN
1
  • /library/Exakat/Query/DSL/CollectVariables.php
'or(__.where( __.out("RETURNTYPE", "TYPEHINT").hasLabel("Null") ),
                               __.where( __.out("DEFAULT").hasLabel("Null").not(__.in("LEFT"))) 
                                )'
1
  • /library/Exakat/Query/DSL/IsNullable.php
'not( where( __.sideEffect{sibling = it.get().value("rank");}.in("' $link '").out("' $link '").filter{sibling + 1 == it.get().value("rank")}) )'
1
  • /library/Exakat/Query/DSL/HasNoNextSibling.php
'sideEffect{sibling = it.get().value("rank");}.in("' $link '").out("' $link '").filter{sibling + 1 == it.get().value("rank")}'
1
  • /library/Exakat/Query/DSL/NextSibling.php
'not( where( __.in("DEFINITION").hasLabel("Function", "Method", "Magicmethod", "Closure", "Arrowfunction") ) )'
1
  • /library/Exakat/Query/DSL/HasNoFunctionDefinition.php
<<<GREMLIN
not(
    where( __.emit().repeat( __.out("IMPLEMENTS", "EXTENDS").in("DEFINITION")).times(
{$MAX_LOOPING})
                               .out("IMPLEMENTS").has("fullnspath", within(***)) ) 
)
GREMLIN
1
  • /library/Exakat/Query/DSL/NotImplementing.php
"has(\"$property\").filter{ it.get().value(\"$property\") < ***[$index]; }"
1
  • /library/Exakat/Query/DSL/IsLessHash.php
'where( __.sideEffect{sibling = it.get().value("rank");}.in("' $link '").out("' $link '").filter{sibling + 1 == it.get().value("rank")})'
1
  • /library/Exakat/Query/DSL/HasNextSibling.php
'where( __.in("DEFINITION").hasLabel("Propertydefinition"))'
1
  • /library/Exakat/Query/DSL/IsPropertyDefined.php
'until(__.not(__.inE(' $this->SorA($diff) . '))).repeat(__.in(' $this->SorA($diff) . '))'
1
  • /library/Exakat/Query/DSL/InIsIE.php
<<<GREMLIN
where( 
 __.sideEffect{ c = 0; }
   .emit( ).repeat(__.in(
$linksDown)) )
   .until(hasLabel(within(***)))
   .hasLabel(within(***))
   .sideEffect{ c = c + 1; }.fold()
).filter{ c < 
$count}
GREMLIN
1
  • /library/Exakat/Query/DSL/HasNoCountedInstruction.php
'not( where( __.out(' $this->SorA($links) . ').has("rank", ***) ) )'
1
  • /library/Exakat/Query/DSL/NoChildWithRank.php
'not( where( __.out(' $this->SorA($links) . ').filter{it.get().value("rank") == ' $rank '; } ) )'
1
  • /library/Exakat/Query/DSL/NoChildWithRank.php
'filter{it.get().value("' $property '") == it.get().value("' $property '").toUpperCase()}'
1
  • /library/Exakat/Query/DSL/IsUppercase.php
<<<'GREMLIN'
hasLabel("Integer", "Boolean", "Null", "Magicconstant", "Float", "String", "Heredoc", "Closure", "Arrayliteral").has("constant", true)

GREMLIN
1
  • /library/Exakat/Query/DSL/IsLiteral.php
"not( where( __$in.hasLabel(within(***)) ) )"
1
  • /library/Exakat/Query/DSL/HasNoParent.php
'where( __.in(' $this->SorA($diff) . ') )'
1
  • /library/Exakat/Query/DSL/HasIn.php
'has("code", within(***) )'
1
  • /library/Exakat/Query/DSL/RegexIs.php
<<<GREMLIN
has("$property")
.filter{ (it.get().value("
$property") =~ "$regex").asBoolean(); }
GREMLIN
1
  • /library/Exakat/Query/DSL/RegexIs.php
'where(__.in("DEFINITION").hasLabel(within(***)) )'
1
  • /library/Exakat/Query/DSL/HasClassDefinition.php
<<<GREMLIN
where( 
__.sideEffect{ 
$variable = []; }
  .out("ARGUMENT")
  .order().by("rank")
  .coalesce(__.out("NAME"), filter{ true; })
  .sideEffect{ 
$variable.add(it.get().value("code")) ; }
  .fold() 
)
GREMLIN
1
  • /library/Exakat/Query/DSL/CollectArguments.php
'where( __.in("DEFINITION").hasLabel("Virtualproperty").not( __.out("OVERWRITE").hasLabel("Propertydefinition")))'
1
  • /library/Exakat/Query/DSL/IsNotPropertyDefined.php
<<<GREMLIN
until( __.in($linksDown).not(hasLabel(within(***))) ).repeat( __.in($linksDown) )

GREMLIN
1
  • /library/Exakat/Query/DSL/GoToFirstExpression.php
"has(\"$property\").or( __.not(has(\"$property\")), __.not(has(\"$property\", null)))"
1
  • /library/Exakat/Query/DSL/IsNot.php
'filter{ if ( it.get().properties("' $property '").any()) { ' $value ' != it.get().value("' $property '")} else {' $value ' != false; }; }'
1
  • /library/Exakat/Query/DSL/IsNot.php
"has(\"$property\", false)"
1
  • /library/Exakat/Query/DSL/IsNot.php
'sideEffect{ if (it.get().properties("' $property '").any()) { ' $name ' = it.get().value("' $property '");} else { ' $name ' = false; }}'
1
  • /library/Exakat/Query/DSL/SavePropertyAs.php
<<<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
  • /library/Exakat/Query/DSL/CollectExtends.php
<<<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
  • /library/Exakat/Query/DSL/FollowCalls.php
'filter{it.get().value("' $property '") == it.get().value("' $property '").toLowerCase()}'
1
  • /library/Exakat/Query/DSL/IsLowercase.php
<<<GREMLIN
where( __.emit().repeat( __.out("IMPLEMENTS", "EXTENDS").in("DEFINITION")).times({$MAX_LOOPING})
                        .out("IMPLEMENTS", "EXTENDS").has("fullnspath", within(***)) ) 
GREMLIN
1
  • /library/Exakat/Query/DSL/Implementing.php
'filter{it.get().value("' $property '") != it.get().value("' $property '").toUpperCase()}'
1
  • /library/Exakat/Query/DSL/IsNotUppercase.php
'filter{it.get().value("code") != it.get().value("lccode").toUpperCase()}'
1
  • /library/Exakat/Query/DSL/IsNotUppercase.php
<<<'GREMLIN'
not(
    where(                  
        __.out("DEFINITION").not(hasLabel("Usenamespace"))
    ) 
)
GREMLIN
1
  • /library/Exakat/Query/DSL/HasNoUsage.php
'in( )'
1
  • /library/Exakat/Query/DSL/InIs.php
<<<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
  • /library/Exakat/Query/DSL/ToResults.php
'in(' $this->SorA($diff) . ')'
1
  • /library/Exakat/Query/DSL/InIs.php
'not(where( __.in("DEFINITION") ) )'
1
  • /library/Exakat/Query/DSL/HasNoConstantDefinition.php
'has("' $property '").sideEffect{ ' $name ' = it.get().value("' $property '"); }'
1
  • /library/Exakat/Query/DSL/SavePropertyAs.php
<<<'GREMLIN'
 not( __.where( __.out("RETURNTYPE", "TYPEHINT").hasLabel("Null")))
.not( __.where( __.out("DEFAULT").hasLabel("Null").not(__.in("LEFT")) ))
GREMLIN
1
  • /library/Exakat/Query/DSL/IsNotNullable.php
'sideEffect{ if ( it.get().properties("' $property '").any()) { ' $name ' = it.get().value("' $property '")} else {' $name ' = false; }; }'
1
  • /library/Exakat/Query/DSL/SavePropertyAs.php
"has(\"$property\", true)"
1
  • /library/Exakat/Query/DSL/IsNot.php
'sideEffect{' $variable '.replaceFirst("^[' $chars ']?(.*?)[' $chars ']?\$", "\$1"); }'
1
  • /library/Exakat/Query/DSL/Trim.php
"sideEffect{ $variable = \"\\$\" + $variable; }"
1
  • /library/Exakat/Query/DSL/MakeVariableName.php
'where( __.in("DEFINITION"))'
1
  • /library/Exakat/Query/DSL/HasConstantDefinition.php
<<<'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
  • /library/Exakat/Query/DSL/IsThis.php
'sideEffect{ ' $name ' = it.get().id(); }'
1
  • /library/Exakat/Query/DSL/SavePropertyAs.php
'%04b'
1
  • /library/Exakat/Graph/Helpers/Websocket.php
'sideEffect{ ' $name ' = it.get().label(); }'
1
  • /library/Exakat/Query/DSL/SavePropertyAs.php
'not( where( __.in("ANALYZED").has("analyzer", within(***))) )'
1
  • /library/Exakat/Query/DSL/AnalyzerIsNot.php
'filter{ if( it.code.isInteger()) { it.code > 0; } else { true; }}'
1
  • /library/Exakat/Query/DSL/CodeIsPositiveInteger.php
'where( __.in("ANALYZED").has("analyzer", within(***)))'
1
  • /library/Exakat/Query/DSL/AnalyzerIs.php
<<<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
  • /library/Exakat/Query/DSL/ProcessLevels.php
<<<GREMLIN
where( 
__.repeat( __.in(
{$linksDown}) ).until(hasLabel("File")).emit( ).hasLabel(within(***))
    )
GREMLIN
1
  • /library/Exakat/Query/DSL/HasInstruction.php
'sideEffect{sibling = it.get().value("rank");}.in("' $link '").out("' $link '").filter{sibling - 1 == it.get().value("rank")}'
1
  • /library/Exakat/Query/DSL/PreviousSibling.php
'not( where( __.inE(' $this->SorA($diff) . ')) )'
1
  • /library/Exakat/Query/DSL/InIsNot.php
'where( __.emit( ).repeat( out(' self::$linksDown ') ).times(' self::$MAX_LOOPING ').has("' $property '", within(***)) )'
1
  • /library/Exakat/Query/DSL/HasPropertyInside.php
"has(\"$property\").filter{ x = ***[$index]; x != null; }.filter{ [it.get().value(\"$property\")].intersect(x) != []}"
1
  • /library/Exakat/Query/DSL/IsHash.php
"has(\"$property\").filter{ x = ***[$index]; x != null; }.filter{ [it.get().value(\"$property\").toLowerCase()].intersect(x) != []; }"
1
  • /library/Exakat/Query/DSL/IsHash.php
'%07b'
1
  • /library/Exakat/Graph/Helpers/Websocket.php
"has(\"$property\").filter{ x = ***[$index].collect{ it.toLowerCase() }; [it.get().value(\"$property\").toLowerCase()].intersect(x) == []; }"
1
  • /library/Exakat/Query/DSL/IsNotHash.php
"has(\"$property\").filter{ [it.get().value(\"$property\")].intersect(***[$index]) == []}"
1
  • /library/Exakat/Query/DSL/IsNotHash.php
'where( 
__.sideEffect{ ' 
$variable ' = []; }
  .out("USE")
  .out("USE")
  .sideEffect{ ' 
$variable '.add(it.get().value("fullnspath")) ; }
  .fold() 
)
'
1
  • /library/Exakat/Query/DSL/CollectTraits.php
'not(where(__.in("DEFINITION").hasLabel(within(***)) ) )'
1
  • /library/Exakat/Query/DSL/NoClassDefinition.php
'filter{it.get().value("' $property '") != it.get().value("' $property '").toLowerCase()}'
1
  • /library/Exakat/Query/DSL/IsNotLowercase.php
'has("token", within(***))'
1
  • /library/Exakat/Query/DSL/TokenIs.php
'filter{it.get().value("code") != it.get().value("lccode")}'
1
  • /library/Exakat/Query/DSL/IsNotLowercase.php
'emit( ).repeat( __.in("VARIABLE", "INDEX")).until( where(__.in("VARIABLE", "INDEX").hasLabel("Array").count().is(eq(0)) ) )'
1
  • /library/Exakat/Query/DSL/GoToArray.php
<<<GREMLIN
emit( ).repeat( 
    __.coalesce(__.out("THEN", "ELSE", "CODE"), 
                __.filter{true})
      .out(
{$linksDown}
      )
.times(
$MAX_LOOPING
GREMLIN
1
  • /library/Exakat/Query/DSL/FollowExpression.php
'not( where( __.in(' $this->SorA($diff) . ') ) )'
1
  • /library/Exakat/Query/DSL/HasNoIn.php
'not(has(***))'
1
  • /library/Exakat/Query/DSL/HasNo.php
'not( has("token", within(***)) )'
1
  • /library/Exakat/Query/DSL/TokenIsNot.php
<<<GREMLIN
coalesce( __.where( __.in("EXPRESSION")), 
          __.repeat( __.in(
{$linksDown})).emit( ).until( where(__.in("EXPRESSION") ) ).where( __.in("EXPRESSION") )
        )
GREMLIN
1
  • /library/Exakat/Query/DSL/GoToExpression.php
<<<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
  • /library/Exakat/Query/DSL/GoToAllImplements.php
<<<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
  • /library/Exakat/Query/DSL/GoToAllImplements.php
"dedup().by('$by')"
1
  • /library/Exakat/Query/DSL/Dedup.php
"addE(\"$edgeName\").from(\"$from\")"
1
  • /library/Exakat/Query/DSL/AddEFrom.php
"not( where( __$out.hasLabel(within(***)) ) )"
1
  • /library/Exakat/Query/DSL/HasNoChildren.php
'range(' . (int) $min ', ' . (int) $max ')'
1
  • /library/Exakat/Query/DSL/Range.php
'not( where(__.out("DEFINITION").in("USE").hasLabel("Use")) )'
1
  • /library/Exakat/Query/DSL/NoUseDefinition.php
'sideEffect{dernier = it.get().value("count") - 1;}.out("EXPRESSION").filter{ it.get().value("rank") < dernier}'
1
  • /library/Exakat/Query/DSL/OutWithoutLastRank.php
<<<GREMLIN
where( __.emit().repeat( __.out("EXTENDS").in("DEFINITION")).times($MAX_LOOPING)
                .out("EXTENDS").has("fullnspath", within(***)) ) 
GREMLIN
1
  • /library/Exakat/Query/DSL/Extending.php
<<<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
  • /library/Exakat/Query/DSL/GoToAllParentsTraits.php
<<<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
  • /library/Exakat/Query/DSL/GoToAllParentsTraits.php
'not(where( __.out("RETURNTYPE", "TYPEHINT").filter{it.get().value("fullnspath") == ' $variable '} ) )'
1
  • /library/Exakat/Query/DSL/NotSameTypehintAs.php
'%064b'
1
  • /library/Exakat/Graph/Helpers/Websocket.php
'dedup()'
1
  • /library/Exakat/Query/DSL/Dedup.php
'dedup(' makeList($by) . ')'
1
  • /library/Exakat/Query/DSL/Dedup.php
<<<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
  • /library/Exakat/Query/DSL/AtomIs.php
  • /library/Exakat/Query/DSL/AtomIs.php
'%016b'
2
  • /library/Exakat/Graph/Helpers/Websocket.php
  • /library/Exakat/Graph/Helpers/Websocket.php
' % 4s |  % 18s | %s'
2
  • /library/Exakat/Reports/Typehint4all.php
  • /library/Exakat/Reports/Typehint4all.php
<<<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
  • /library/Exakat/Query/DSL/AtomIs.php
  • /library/Exakat/Query/DSL/AtomIs.php
"has(\"$property\").not(has(\"$property\", ***))"
2
  • /library/Exakat/Query/DSL/IsNot.php
  • /library/Exakat/Query/DSL/IsNot.php
'has("noDelimiter")'
2
  • /library/Exakat/Query/DSL/NoDelimiterIsNot.php
  • /library/Exakat/Query/DSL/NoDelimiterIs.php
'out("EXTENDS").in("DEFINITION")'
2
  • /library/Exakat/Query/DSL/GoToParent.php
  • /library/Exakat/Query/DSL/GoToExtends.php
'has("fullcode")'
2
  • /library/Exakat/Query/DSL/FullcodeIsNot.php
  • /library/Exakat/Query/DSL/FullcodeIs.php
'in("DEFINITION")'
2
  • /library/Exakat/Query/DSL/InterfaceDefinition.php
  • /library/Exakat/Query/DSL/ClassDefinition.php
"has(\"$property\").not(has(\"$property\", ''))"
2
  • /library/Exakat/Query/DSL/IsNot.php
  • /library/Exakat/Query/DSL/IsNot.php
'sideEffect{ it.get().property("' $property '", ' $value '); }'
2
  • /library/Exakat/Query/DSL/Property.php
  • /library/Exakat/Query/DSL/Property.php
"not(has(\"$col\", within(***)))"
2
  • /library/Exakat/Query/DSL/CodeIsNot.php
  • /library/Exakat/Query/DSL/CodeIsNot.php
"has(\"$col\", within(***))"
2
  • /library/Exakat/Query/DSL/CodeIs.php
  • /library/Exakat/Query/DSL/CodeIs.php
'count()'
2
  • /library/Exakat/Query/DSL/ReturnCount.php
  • /library/Exakat/Query/DSL/Count.php
'sideEffect{ ' $name ' = it.get(); }'
2
  • /library/Exakat/Query/DSL/SavePropertyAs.php
  • /library/Exakat/Query/DSL/SavePropertyAs.php
"+ %-4s %10s %12s\n"
2
  • /library/Exakat/Tasks/Baseline.php
  • /library/Exakat/Tasks/Baseline.php
"+ %-20s %8s %5s\n"
4
  • /library/Exakat/Tasks/Extension.php
  • /library/Exakat/Tasks/Extension.php
  • /library/Exakat/Tasks/Extension.php
  • /library/Exakat/Tasks/Extension.php
'filter{ false; }'
27
  • /library/Exakat/Query/Query.php
  • /library/Exakat/Query/Query.php
  • /library/Exakat/Query/Query.php
  • /library/Exakat/Query/Query.php
  • /library/Exakat/Query/Query.php
  • /library/Exakat/Query/Query.php
  • /library/Exakat/Query/Query.php
  • /library/Exakat/Query/Query.php
  • /library/Exakat/Query/Query.php
  • /library/Exakat/Query/Query.php
  • /library/Exakat/Query/Query.php
  • /library/Exakat/Query/Query.php
  • /library/Exakat/Query/Query.php
  • /library/Exakat/Query/Query.php
  • /library/Exakat/Query/Query.php
  • /library/Exakat/Query/Query.php
  • /library/Exakat/Query/Query.php
  • /library/Exakat/Query/Query.php
  • /library/Exakat/Query/Query.php
  • /library/Exakat/Query/Query.php
  • /library/Exakat/Query/Query.php
  • /library/Exakat/Query/Query.php
  • /library/Exakat/Query/Query.php
  • /library/Exakat/Query/Query.php
  • /library/Exakat/Query/Query.php
  • /library/Exakat/Query/Query.php
  • /library/Exakat/Query/Query.php
'filter{ true;  }'
28
  • /library/Exakat/Query/Query.php
  • /library/Exakat/Query/Query.php
  • /library/Exakat/Query/Query.php
  • /library/Exakat/Query/Query.php
  • /library/Exakat/Query/Query.php
  • /library/Exakat/Query/Query.php
  • /library/Exakat/Query/Query.php
  • /library/Exakat/Query/Query.php
  • /library/Exakat/Query/Query.php
  • /library/Exakat/Query/Query.php
  • /library/Exakat/Query/Query.php
  • /library/Exakat/Query/Query.php
  • /library/Exakat/Query/Query.php
  • /library/Exakat/Query/Query.php
  • /library/Exakat/Query/Query.php
  • /library/Exakat/Query/Query.php
  • /library/Exakat/Query/Query.php
  • /library/Exakat/Query/Query.php
  • /library/Exakat/Query/Query.php
  • /library/Exakat/Query/Query.php
  • /library/Exakat/Query/Query.php
  • /library/Exakat/Query/Query.php
  • /library/Exakat/Query/Query.php
  • /library/Exakat/Query/Query.php
  • /library/Exakat/Query/Query.php
  • /library/Exakat/Query/Query.php
  • /library/Exakat/Query/Query.php
  • /library/Exakat/Query/Query.php