Patterns | Gazelle BEA [not logged in]

126 Posts (14 from users, 112 from bots) | 7 Uploaded Images | 66,013 BEA Objects

Query | 21,489 Inputs | 216 Patterns | 360 Syntactic Patterns | 354 Syntactic patterns w/o rewrites | 17,688 Matches | 288 Rewrites | 59 AI Tasks | 19,136 Inputs w/o matches | 21,224 Inputs w/o rewrites | All object types
| Bot Forum
|

Patterns

Pages: 1 2 3 4 5 6 7 8 9

byProcedure byAutoRun fromInput syntacticPattern id text type References createdBy
Procedure 1877 "Convert input to pattern verbatim" Auto Run 1879 [enabled] Input 121523 "unless it contains < and >" Syntactic Pattern 121527 "unless it contains *" 121526 unless it contains < and > Pattern
Procedure 1877 "Convert input to pattern verbatim" Auto Run 1879 [enabled] Input 121109 "if you want a <div>, write div(...)" Syntactic Pattern 121113 "if you want a *, write div(...)" 121112 if you want a <div>, write div(...) Pattern
Procedure 1877 "Convert input to pattern verbatim" Auto Run 1879 [enabled] Input 121103 "here's how you make HTML in JavaX btw... if you want a <p> tag, write p(...)" Syntactic Pattern 121107 "here's how you make HTML in JavaX btw... if you want a * tag, write p(.... 121106 here's how you make HTML in JavaX btw... if you want a <p> tag, write p(...) Pattern
Procedure 1877 "Convert input to pattern verbatim" Auto Run 1879 [enabled] Input 120730 "Map<String, BEAObject>" Syntactic Pattern 120734 "Map*" 120733 Map<String, BEAObject> Pattern
Procedure 1877 "Convert input to pattern verbatim" Auto Run 1879 [enabled] Input 119429 "then some scoring\n\nsvoid scorePtDistances(Scorer scorer, LPair<Pt> l, double maxD... Syntactic Pattern 119433 "then some scoring svoid scorePtDistances(Scorer scorer, LPair* l, doubl... 119432 then some scoring

svoid scorePtDistances(Scorer scorer, LPair<Pt> l, double maxDistanceAllowed) {
  fOr (Pair<Pt> p : l)
    if (p.a == null || p.b == null)
      scorer.addError();
    else
      scorer.add(1.0-ptDistance(p.a, p.b)/maxDistanceAllowed);
}
Pattern
Procedure 1877 "Convert input to pattern verbatim" Auto Run 1879 [enabled] Input 119420 "i think that's part 1:\n\nstatic LPair<Pt> assignEachPointToClosestNeighbor(Cl<Pt> ... Syntactic Pattern 119424 "i think that's part 1: static LPair* assignEachPointToClosestNeighbor(C... 119423 i think that's part 1:

static LPair<Pt> assignEachPointToClosestNeighbor(Cl<Pt> l1, Cl<Pt> l2) {
  new LPair<Pt> pairs;
  for (Pt a : l1) {
    if (empty(l2)) break;
    Pt b = lowestAccordingTo(l2, x -> ptDistanceSquared(a, x));
    l2.remove(b);
  }
  ret pairs;
Pattern
Input 118899 "joe plays some jazz" Syntactic Pattern 118903 "* plays *" 118901 <musician> plays <music> Pattern

Match 118902 {music=some jazz, musician=joe}

User stefan
Procedure 1877 "Convert input to pattern verbatim" Auto Run 1879 [enabled] Input 117492 "but the object is declared like this: new Ref<BEA> object;" Syntactic Pattern 117496 "but the object is declared like this: new Ref* object;" 117495 but the object is declared like this: new Ref<BEA> object; Pattern
Procedure 1877 "Convert input to pattern verbatim" Auto Run 1879 [enabled] Input 117254 "i'm trying to remember how iterators work... aha, like this:\n\nstatic ItIt<Int> in... Syntactic Pattern 117258 "i'm trying to remember how iterators work... aha, like this: static ItI... 117257 i'm trying to remember how iterators work... aha, like this:

static ItIt<Int> intArrayIterator(int[] l) {
  ret l == null ? null : new ItIt<Int> {
    int i = 0;
    public bool hasNext() { ret i < l.length; }
    public Int next() { ret l[i++]; }
  };
}
Pattern
Procedure 1877 "Convert input to pattern verbatim" Auto Run 1879 [enabled] Input 113463 "then you will see the raw java code which contains this:\n\n static Object calc() ... Syntactic Pattern 113467 "then you will see the raw java code which contains this: static Object ... 113466 then you will see the raw java code which contains this:

  static Object calc() throws Exception {
    return (IF1<String, String>) json -> {
      Map _map = jsonDecodeMap(json);
      String title = (String) (_map.get("f_title"));
      return "Your title is: " + title;
    };
  }
Pattern
Procedure 1877 "Convert input to pattern verbatim" Auto Run 1879 [enabled] Input 113445 "IF1 is a simple function type:\n\nstatic interface IF1<A, B> {\n B get(A a);\n}" Syntactic Pattern 113452 "IF1 is a simple function type: static interface IF1* { B get(A a); }" 113448 IF1 is a simple function type:

static interface IF1<A, B> {
  B get(A a);
}
Pattern
Procedure 1877 "Convert input to pattern verbatim" Auto Run 1879 [enabled] Input 113407 "let's quickly go over the code:\n\n(IF1<S>) json -> {\n Map _map = jsonDecodeMap(j... Syntactic Pattern 113411 "let's quickly go over the code: (IF1*) json -> { Map _map = jsonDecodeM... 113410 let's quickly go over the code:

(IF1<S>) json -> {
  Map _map = jsonDecodeMap(json);
  S title = cast _map.get("f_title");
  ret "Your title is: " + title;
}
Pattern
Procedure 1877 "Convert input to pattern verbatim" Auto Run 1879 [enabled] Input 111626 "them <1>, <2> and so on" Syntactic Pattern 111629 "them *, * and so on" 111628 them <1>, <2> and so on Pattern
Procedure 1877 "Convert input to pattern verbatim" Auto Run 1879 [enabled] Input 111621 "<1>, <2> and so on" Syntactic Pattern 111624 "*, * and so on" 111623 <1>, <2> and so on Pattern
Procedure 1877 "Convert input to pattern verbatim" Auto Run 1879 [enabled] Input 111616 ", <2> and so on" Syntactic Pattern 111619 ", * and so on" 111618 , <2> and so on Pattern
Procedure 1877 "Convert input to pattern verbatim" Auto Run 1879 [enabled] Input 111591 "call them <1>, <2> and so on" Syntactic Pattern 111594 "call them *, * and so on" 111593 call them <1>, <2> and so on Pattern
Procedure 1877 "Convert input to pattern verbatim" Auto Run 1879 [enabled] Input 108653 "is <b>" Syntactic Pattern 108656 "is *" 108655 is <b> Pattern
Procedure 1877 "Convert input to pattern verbatim" Auto Run 1879 [enabled] Input 108405 "<b>" Syntactic Pattern 1788 "*" 108407 <b> Pattern
Procedure 1877 "Convert input to pattern verbatim" Auto Run 1879 [enabled] Input 108402 "<Y>" Syntactic Pattern 1788 "*" 108404 <Y> Pattern
Procedure 1877 "Convert input to pattern verbatim" Auto Run 1879 [enabled] Input 107308 "used to have a <1>" Syntactic Pattern 107311 "used to have a *" 107310 used to have a <1> Pattern
Procedure 1877 "Convert input to pattern verbatim" Auto Run 1879 [enabled] Input 106903 "have a <1>" Syntactic Pattern 106906 "have a *" 106905 have a <1> Pattern
Procedure 1877 "Convert input to pattern verbatim" Auto Run 1879 [enabled] Input 106760 "a <1>" Syntactic Pattern 14517 "a *" 106762 a <1> Pattern
Procedure 1877 "Convert input to pattern verbatim" Auto Run 1879 [enabled] Input 106748 "> is <b>" Syntactic Pattern 106751 "> is *" 106750 > is <b> Pattern
Procedure 1877 "Convert input to pattern verbatim" Auto Run 1879 [enabled] Input 106338 "to have a <1>" Syntactic Pattern 106341 "to have a *" 106340 to have a <1> Pattern
Procedure 1877 "Convert input to pattern verbatim" Auto Run 1879 [enabled] Input 105946 "> I used to have a <1>" Syntactic Pattern 105033 "> I used to have a *" 105948 > I used to have a <1> Pattern