Last active
August 29, 2015 14:22
-
-
Save paulp/0afcb4977181a0d017b4 to your computer and use it in GitHub Desktop.
string literal redundancy in scala/scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% ack --no-filename --java --scala -o '".*?"' |stats |egrep -v '^\s*[1-4]\s+' | sort-by-length | |
4062 "" | |
5 "8" | |
6 "H" | |
6 "M" | |
6 "N" | |
6 "k" | |
6 "v" | |
7 "P" | |
7 "U" | |
7 "n" | |
7 "t" | |
8 "5" | |
8 "J" | |
8 "S" | |
8 "p" | |
10 "&" | |
10 "I" | |
10 "Z" | |
10 "h" | |
10 "m" | |
10 "z" | |
11 "e" | |
12 "O" | |
13 "X" | |
14 "G" | |
14 "L" | |
14 "R" | |
14 "|" | |
15 "%" | |
15 "E" | |
17 "^" | |
18 "4" | |
18 "=" | |
19 "<" | |
20 "`" | |
20 "{" | |
23 "F" | |
24 "3" | |
24 "g" | |
25 "@" | |
26 "y" | |
28 "+" | |
28 "d" | |
29 "!" | |
34 "*" | |
34 "?" | |
35 "0" | |
36 "T" | |
38 "#" | |
41 ";" | |
42 "s" | |
47 ">" | |
51 "'" | |
52 "D" | |
52 "}" | |
62 "_" | |
75 "-" | |
77 ":" | |
81 "$" | |
83 "[" | |
86 "f" | |
87 "\" | |
91 "1" | |
91 "B" | |
111 "/" | |
116 "2" | |
122 "A" | |
124 "C" | |
133 "c" | |
137 "x" | |
156 "]" | |
166 "." | |
190 "(" | |
208 "b" | |
362 "," | |
383 "a" | |
418 " " | |
451 ")" | |
5 "$$" | |
5 "%-" | |
5 "&&" | |
5 "''" | |
5 ",," | |
5 "10" | |
5 "<:" | |
5 "<=" | |
5 "A1" | |
5 "]]" | |
5 "__" | |
5 "aa" | |
5 "eq" | |
5 "in" | |
5 "is" | |
5 "m1" | |
5 "t3" | |
5 "x3" | |
5 "x=" | |
5 "y1" | |
5 "})" | |
6 "##" | |
6 "$0" | |
6 "$@" | |
6 "*/" | |
6 "-v" | |
6 "<>" | |
6 "x$" | |
7 "$x" | |
7 ")." | |
7 ">=" | |
7 ">>" | |
7 "[]" | |
7 "\\" | |
7 "if" | |
7 "q0" | |
7 "x2" | |
7 "{}" | |
8 "f2" | |
8 "id" | |
8 "}!" | |
9 "32" | |
9 "T1" | |
9 "a1" | |
9 "f4" | |
10 "$c" | |
10 ") " | |
10 "--" | |
10 "12" | |
10 "f3" | |
10 "no" | |
10 "to" | |
11 " {" | |
11 "->" | |
11 "ab" | |
11 "ls" | |
11 "on" | |
12 "KO" | |
12 "\t" | |
12 "f1" | |
13 "${" | |
13 ")}" | |
13 "; " | |
13 "==" | |
13 "ms" | |
13 "x1" | |
14 "B3" | |
14 "B4" | |
14 "B5" | |
14 "B6" | |
14 "a2" | |
15 "B2" | |
15 "t2" | |
16 "!=" | |
16 ".." | |
17 "B1" | |
18 "t1" | |
20 " }" | |
22 "OK" | |
23 "hi" | |
28 " (" | |
34 "-d" | |
42 "AP" | |
49 "US" | |
51 "42" | |
52 " " | |
57 "()" | |
137 "EU" | |
139 ": " | |
140 "ok" | |
326 "\n" | |
483 ", " | |
5 " [ " | |
5 "###" | |
5 "$sp" | |
5 "// " | |
5 "0.5" | |
5 "=> " | |
5 "A18" | |
5 "Inf" | |
5 "Tom" | |
5 "\\." | |
5 "\w+" | |
5 "bin" | |
5 "bye" | |
5 "div" | |
5 "for" | |
5 "ghi" | |
5 "how" | |
5 "}\n" | |
6 " * " | |
6 " | " | |
6 ")\n" | |
6 ">>>" | |
6 "A16" | |
6 "In " | |
6 "Set" | |
6 "cat" | |
6 "new" | |
6 "xxx" | |
6 "zip" | |
7 "): " | |
7 "1.0" | |
7 "1.7" | |
7 "Map" | |
7 "day" | |
7 "eis" | |
7 "var" | |
8 "()I" | |
8 "-- " | |
8 ":\n" | |
8 "Bar" | |
8 "DEF" | |
8 "HUP" | |
8 "JKL" | |
8 "MNO" | |
8 "TUV" | |
8 "\n}" | |
8 "bla" | |
8 "dog" | |
8 "fsc" | |
8 "key" | |
8 "qwe" | |
8 "red" | |
9 "123" | |
9 "GHI" | |
9 "add" | |
9 "any" | |
9 "bob" | |
9 "meh" | |
9 "val" | |
10 "Nil" | |
10 "aaa" | |
10 "all" | |
10 "dce" | |
10 "off" | |
10 "xyz" | |
11 "ABC" | |
11 "cmt" | |
11 "int" | |
12 " - " | |
12 " / " | |
12 " : " | |
12 "Any" | |
12 "\\n" | |
12 "get" | |
13 "jar" | |
13 "msg" | |
13 "seq" | |
14 "Bob" | |
14 "jvm" | |
14 "yes" | |
15 "FOO" | |
17 "map" | |
19 "()V" | |
19 "Foo" | |
19 "par" | |
23 " + " | |
23 "(1)" | |
23 "1.1" | |
27 "baz" | |
29 "..." | |
29 "lib" | |
32 "-cp" | |
37 "one" | |
38 "def" | |
38 "jsr" | |
39 "two" | |
42 " = " | |
51 "Int" | |
239 "abc" | |
326 "sub" | |
792 "foo" | |
881 "bar" | |
1730 "mix" | |
5 " of " | |
5 " vs " | |
5 "-Inf" | |
5 ".toB" | |
5 "Byte" | |
5 "NAME" | |
5 "None" | |
5 "TEST" | |
5 "Tree" | |
5 "body" | |
5 "data" | |
5 "done" | |
5 "fish" | |
5 "foo1" | |
5 "last" | |
5 "lazy" | |
5 "left" | |
5 "list" | |
5 "oops" | |
5 "plus" | |
5 "s1: " | |
5 "s2: " | |
5 "s3: " | |
5 "s4: " | |
5 "s5: " | |
5 "self" | |
5 "unix" | |
5 "void" | |
5 "y = " | |
6 " */" | |
6 "????" | |
6 "Char" | |
6 "INFO" | |
6 "Null" | |
6 "The " | |
6 "\n\t" | |
6 "_map" | |
6 "abcd" | |
6 "byte" | |
6 "cast" | |
6 "nope" | |
6 "read" | |
6 "tree" | |
7 " " | |
7 "];\n" | |
7 "_top" | |
7 "case" | |
7 "char" | |
7 "def " | |
7 "else" | |
7 "node" | |
7 "tail" | |
7 "x = " | |
7 "year" | |
7 "zero" | |
8 "-all" | |
8 "2.12" | |
8 "PQRS" | |
8 "WXYZ" | |
8 "args" | |
8 "cond" | |
8 "help" | |
8 "val " | |
9 " is " | |
9 "V2=7" | |
9 "\n\n" | |
9 "blah" | |
9 "none" | |
10 ".jar" | |
10 "stub" | |
11 "Unit" | |
11 "next" | |
12 " != " | |
12 " >: " | |
12 "John" | |
12 "\\s+" | |
13 " at " | |
13 "V2=2" | |
13 "file" | |
13 "head" | |
13 "long" | |
14 " == " | |
14 "*Api" | |
14 ".\\\" | |
14 "main" | |
15 "okay" | |
16 ") = " | |
16 "Long" | |
16 "good" | |
17 "V2=1" | |
18 " <: " | |
18 "path" | |
21 " => " | |
21 "V2=4" | |
22 "Test" | |
22 "V2=5" | |
22 "V2=6" | |
24 "fail" | |
24 "java" | |
25 "type" | |
26 "name" | |
26 "this" | |
27 "List" | |
30 " to " | |
32 "\n " | |
32 "true" | |
38 " -> " | |
39 "2.11" | |
43 "null" | |
49 " in " | |
90 "test" | |
5 " to: " | |
5 "AS IS" | |
5 "Class" | |
5 "Empty" | |
5 "Short" | |
5 "Test$" | |
5 "With " | |
5 "abbbc" | |
5 "dlkfj" | |
5 "fresh" | |
5 "macro" | |
5 "manif" | |
5 "onoes" | |
5 "stuff" | |
5 "test1" | |
5 "types" | |
6 "Foo_1" | |
6 "Lorax" | |
6 "dummy" | |
6 "float" | |
6 "month" | |
6 "outer" | |
6 "parse" | |
6 "print" | |
6 "test2" | |
6 "toInt" | |
6 "wider" | |
7 " at: " | |
7 "/**\n" | |
7 "Scala" | |
7 "clone" | |
7 "field" | |
7 "mixin" | |
7 "short" | |
7 "test " | |
8 "-help" | |
8 ".AtoZ" | |
8 "Bippy" | |
8 "Float" | |
8 "color" | |
8 "final" | |
8 "namer" | |
9 "Value" | |
9 "error" | |
9 "type " | |
10 ".html" | |
10 "Tuple" | |
10 "UTF-8" | |
10 "first" | |
11 "World" | |
11 "reify" | |
12 "false" | |
12 "icode" | |
12 "pi = " | |
13 ".type" | |
13 "empty" | |
13 "super" | |
13 "title" | |
13 "trait" | |
14 "apply" | |
15 "Array" | |
15 "world" | |
16 "2.9.0" | |
16 "bippy" | |
16 "three" | |
16 "typer" | |
18 "$anon" | |
19 " and " | |
21 "value" | |
22 "and: " | |
23 "$plus" | |
28 "2.8.0" | |
40 "Hello" | |
41 "class" | |
84 "scala" | |
88 "hello" | |
5 " error" | |
5 "$minus" | |
5 "2.11.3" | |
5 "</div>" | |
5 "<none>" | |
5 "A.java" | |
5 "Array(" | |
5 "Array[" | |
5 "Block " | |
5 "catdog" | |
5 "error!" | |
5 "fail: " | |
5 "import" | |
5 "params" | |
5 "plugin" | |
5 "screen" | |
6 " from " | |
6 "<null>" | |
6 "Object" | |
6 "_blank" | |
6 "extype" | |
6 "fiddle" | |
6 "lambda" | |
6 "medium" | |
6 "patmat" | |
6 "remove" | |
6 "result" | |
6 "scalap" | |
6 "script" | |
6 "size " | |
7 "_root_" | |
7 "hi mom" | |
7 "normal" | |
7 "string" | |
7 "target" | |
8 " ---> " | |
8 " else " | |
8 "(cond " | |
8 "@param" | |
8 "Predef" | |
8 "Use q\" | |
8 "br0ken" | |
8 "class " | |
8 "conv10" | |
8 "conv11" | |
8 "hello " | |
8 "layers" | |
8 "scala." | |
8 "symbol" | |
9 "$class" | |
9 "inline" | |
9 "value " | |
10 "Symbol" | |
10 "failed" | |
11 " found" | |
12 "AnyRef" | |
12 "parser" | |
12 "second" | |
13 "-Xlint" | |
13 ".scala" | |
13 "FAILED" | |
13 "double" | |
13 "flower" | |
13 "ignore" | |
13 "scalac" | |
15 "Double" | |
16 "Macros" | |
19 "2.11.2" | |
19 "String" | |
20 "2.10.1" | |
21 "from: " | |
22 "length" | |
25 "object" | |
30 "method" | |
31 ".class" | |
33 " with " | |
35 "<init>" | |
35 "V1=Nil" | |
66 "2.10.0" | |
77 "V3=Nil" | |
477 "2.11.0" | |
5 "(..$xs)" | |
5 "MODULE$" | |
5 "Scala 2" | |
5 "WARNING" | |
5 "bitmap$" | |
5 "class C" | |
5 "extdirs" | |
5 "extends" | |
5 "initial" | |
5 "isEmpty" | |
5 "missing" | |
5 "test1: " | |
5 "test2: " | |
5 "test3: " | |
5 "verbose" | |
5 "warning" | |
6 " + x + " | |
6 "*.scala" | |
6 "<error>" | |
6 "@throws" | |
6 "Product" | |
6 "T$class" | |
6 "Test OK" | |
6 "TypeRef" | |
6 "def foo" | |
6 "jvm-1.8" | |
6 "pickler" | |
6 "reflect" | |
6 "seqview" | |
6 "success" | |
6 "type at" | |
6 "windows" | |
7 "<empty>" | |
7 "SI_9124" | |
7 "cleanup" | |
7 "foreach" | |
7 "hashmap" | |
7 "inliner" | |
7 "lazy z1" | |
7 "options" | |
7 "uncurry" | |
7 "unknown" | |
8 "$SOURCE" | |
8 "</span>" | |
8 "Boolean" | |
8 "CREATOR" | |
8 "buffers" | |
8 "javacmd" | |
9 "@tparam" | |
9 "JAVACMD" | |
9 "Nothing" | |
9 "finally" | |
9 "reverse" | |
10 "object " | |
11 "OPTIONS" | |
11 "classes" | |
11 "flatten" | |
11 "private" | |
11 "runtime" | |
11 "version" | |
12 "factory" | |
13 "erasure" | |
16 "default" | |
18 "SI_9105" | |
22 "goodbye" | |
25 "package" | |
28 "V3=null" | |
41 "failed " | |
61 "println" | |
105 "V1=null" | |
5 ", found " | |
5 "-private" | |
5 ".package" | |
5 "?more.\n" | |
5 "MinusInf" | |
5 "SEE ALSO" | |
5 "SYNOPSIS" | |
5 "encoding" | |
5 "hashCode" | |
5 "modified" | |
6 "#options" | |
6 "1 + 1 = " | |
6 "<clinit>" | |
6 "Function" | |
6 "HashTrie" | |
6 "NoSymbol" | |
6 "lazyvals" | |
6 "memoed: " | |
6 "override" | |
6 "parset: " | |
6 "text/css" | |
7 "closelim" | |
7 "hashtrie" | |
7 "result: " | |
8 "ScalaSig" | |
8 "abstract" | |
8 "diagrams" | |
8 "implicit" | |
8 "terminal" | |
9 " instead" | |
9 "package " | |
9 "universe" | |
10 "-verbose" | |
10 "template" | |
11 "getClass" | |
15 "toString" | |
17 "expected" | |
18 "it works" | |
23 "println(" | |
34 "scaladoc" | |
5 " * }}}\n" | |
5 " language" | |
5 "-diagrams" | |
5 "123456789" | |
5 "JAVA_HOME" | |
5 "empty map" | |
5 "jquery.js" | |
5 "recovered" | |
6 "<unknown>" | |
6 "hai world" | |
6 "hashtable" | |
6 "metaClass" | |
7 "-optimise" | |
7 "<console>" | |
7 "fillcolor" | |
7 "protected" | |
7 "undefined" | |
8 "fontcolor" | |
8 "signature" | |
8 "tailcalls" | |
9 "CLASSPATH" | |
9 "implicits" | |
9 "test1.jar" | |
10 " extends " | |
10 "2.12.0-M2" | |
11 "classpath" | |
11 "operator " | |
12 "refchecks" | |
12 "unchecked" | |
16 "prefix = " | |
19 "scala.Int" | |
23 "something" | |
5 "SWITCH ..." | |
5 "delambdafy" | |
5 "deprecated" | |
5 "filtertype" | |
5 "in finally" | |
5 "isBlackbox" | |
5 "java.lang." | |
5 "scala.html" | |
5 "sourcepath" | |
5 "stylesheet" | |
6 "Expression" | |
6 "MethodType" | |
6 "abc\r\ndef" | |
6 "jhashtable" | |
6 "lambdalift" | |
6 "object Foo" | |
6 "specialize" | |
6 "testing..." | |
7 "-classpath" | |
7 "-implicits" | |
7 "index.html" | |
8 "val x: Int" | |
12 "op index: " | |
19 "-usejavacp" | |
5 ".contains(\" | |
5 "DESCRIPTION" | |
5 "EXIT STATUS" | |
5 "deprecation" | |
5 "outer class" | |
5 "partest.cwd" | |
5 "unsupported" | |
6 ".convertToZ" | |
6 "JAVA_OPTS=\" | |
6 "macroEngine" | |
6 "seq-hashmap" | |
6 "www.akka.io" | |
7 "@inheritdoc" | |
7 "boo:and:foo" | |
7 "constructor" | |
7 "scalac.html" | |
8 "test failed" | |
8 "} years ${s" | |
11 "hello world" | |
24 "partest.lib" | |
5 "<div style=\" | |
5 "getMetaClass" | |
5 "java.version" | |
5 "source files" | |
6 "SameBytecode" | |
6 "contentFrame" | |
6 "modifyThread" | |
7 "asInstanceOf" | |
7 "isInstanceOf" | |
9 "-deprecation" | |
9 "constructors" | |
10 "adapted-args" | |
17 "hello, world" | |
26 "evaluated = " | |
5 "Outer finally" | |
5 "bootclasspath" | |
5 "fatal error: " | |
5 "inner finally" | |
5 "scala-library" | |
8 "explicitouter" | |
11 "<span class=\" | |
36 "float: right;" | |
5 "import foo.bar" | |
5 "inlinehandlers" | |
5 "superaccessors" | |
5 "val x: Int = 1" | |
5 "values members" | |
6 "scala-compiler" | |
6 "type parameter" | |
7 "line.separator" | |
9 "partest.output" | |
22 "path.separator" | |
24 "org.scala-lang" | |
6 " was successful" | |
7 "buzz/booz.class" | |
9 "key not found: " | |
14 "text/javascript" | |
17 "convToEnrichedA" | |
19 "java.class.path" | |
36 "badge badge-red" | |
5 "unreachable code" | |
6 "hello.HelloWorld" | |
7 "java.lang.Object" | |
13 "java/lang/Object" | |
7 "A simple example." | |
19 "Suppress warnings" | |
23 "GroovyInterface$1" | |
5 " * @example {{{\n" | |
5 "non reachable code" | |
6 " raised exception " | |
6 "tail of empty list" | |
7 "SI_9105$$anonfun$4" | |
10 "Should not happen." | |
6 "Translation check: " | |
5 "NestedInValueClass$A" | |
6 "()Ljava/lang/String;" | |
15 "()Ljava/lang/Object;" | |
68 "multiple instances: " | |
5 "NestedInValueClass$A$" | |
41 "http://jonasboner.com" | |
5 "ImplClassesAreTopLevel" | |
5 "http://scala-lang.org/" | |
5 "next on empty iterator" | |
5 "org.scala-lang.modules" | |
7 "SI_9105$$anonfun$met$1" | |
27 "multi-threaded failed " | |
6 "Lgroovy/lang/MetaClass;" | |
8 "cell\tNW NE W E SW SE" | |
13 "Use quasiquotes instead" | |
6 "$sym is not a case class" | |
6 "this indicates a failure" | |
9 "(\d\d\d\d)-(\d\d)-(\d\d)" | |
12 "Should have been elided." | |
17 "Scripting is deprecated." | |
6 "-Ywarn-adapted-args:false" | |
6 "Will be removed after 1.1" | |
8 "()Lgroovy/lang/MetaClass;" | |
5 "scala.collection.immutable" | |
5 "Jump to non-existant block " | |
7 "This class will be removed." | |
15 "Removed from the public API" | |
7 "-Xlint:-missing-interpolator" | |
5 "Use `internal.defDef` instead" | |
5 ".format(name, body, trigger), " | |
5 "No compilation unit found for " | |
6 "Good for me, I was not elided." | |
5 "-Ybackend:GenBCode -Yopt:l:none" | |
5 "scala.collection.immutable.List" | |
5 "mailto:[email protected]" | |
9 "Console has reached end of input" | |
14 "Use the method in scala.io.StdIn" | |
14 "Use the method in `scala.io.StdIn`" | |
22 "V3=scala.collection.immutable.::[?]" | |
27 "Scala's Collection Library overview" | |
74 "V1=scala.collection.immutable.::[?]" | |
6 "could not match data structure type: " | |
6 "I don't like classes that contain integers" | |
23 "Tuples will be made final in a future version." | |
24 "Use `Annotation.tree` to inspect annotation arguments" | |
6 "Building HashSet of size $i failed. Key type $keyType." | |
5 "Compilation failed because of an internal compiler error;" | |
10 "For binary compatibility only. Release new partest and remove in M3." | |
18 "Proxying is deprecated due to lack of use and compiler-level support." | |
18 "Internal implementation does not admit sensible overriding of this method." | |
6 "Immutable sets should do nothing on toSet but return themselves cast as a Set." | |
6 "This forwards to the corresponding method in reporter -- override reporter instead" | |
19 "c.enclosingTree-style APIs are now deprecated; consult the scaladoc for more information" | |
5 "if some of them change (possibly, adding and/or removing magic symbols), we must update this test" | |
7 "Will be removed without replacement, doesn't make any sense to have in the face of `become` and `unbecome`" | |
5 "This notion doesn't have a corresponding concept in 2.10, because scala.reflect.runtime.universe.TypeTag can capture arbitrary types. Use type tags instead of manifests, and there will be no need in opt manifests." |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment