<commit_before>#!/Applications/Xcode6-Beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift -i

// This is a comment

let foo = 5 // another comment

/* this is also a comment */

/* this is
a multi-line
comment
*/

"this is a string"
"this is a string\" with an escaped quote"

// TODO: This is a todo comment
// XXX: This is another todo comment
// FIXME: this is another todo comment
// NOTE: this is another todo comment
/* TODO multiple */

// MARK: this is a marker

5 // int

5.5 // float
5.5abc5.5 // broken

0xa2ef // hex
0x213zdf // broken hex

0b10101 // binary
0b1234 // broken binary

0o567 // octal
0o5689 // broken octal

// Operators
~
!
%
^
&
*
-
+
=
|
2 / 5
.
>
<

a != b
a != b
a !== b
a !== b
%=
&%
&&
&&=
let a = 10 &* 20
&+
&-
8 &/ 20
&=
let a *= 20
++
+=
--
-=
..
...
let b = 50 /= 20
<<
<=
=<<
==
===
>=
>>
>>=
^=
|=
||
||=
~=

true
false

class Shape : NSObject {
    var foo: String
    var qux: String = "abcd"
    let bar = String?[]()
    let baz = String()?
    let foo = Int()

    init(thing: String) {
        foo = thing
        super.init(thing)
        let bar:String= "123"

        bar!
    }

    func foo(thing1 : String, 2thing : Int52) {

    }

    func bar(thing: String?){

    }
}

import Cocoa

struct Thing: NSString {
    var foo : Int
}

enum Card : Int {
    case Spade = 1
    case Heart
    case Diamond
    case Club
}

struct foo : bar {
    switch (foo) {
    case foo:
    case bar:
    default:
        stuff
    case baz:
        fuck
    case bar:
        bafsd
    }

    func foo() {

    }

    func bar(asdf: String) -> Bool {

    }

    func baz() -> (Foo, Bar)
    {

    }

    func asdf<T>() {

    }
}

struct ArgumentList {
    var arguments: String[]

    init(argv: UnsafePointer<CString>, count: CInt) {
    }
}

let a : UnsafePointer<CString>

func foo<T: Sequence>() {

}

init(argv: UnsafePointer<CString>, count: CInt) {
    for i in 1..count {
        let index = Int(i);
        let arg = String.fromCString(argv[index])
        arguments.append(arg)
    }
}

func simpleDescription() -> String {
    return "A shape with \(numberOfSides) sides."
}

let library = [
    Movie(name: "<NAME>",
    director: "someone")
]

foo as? String
<commit_msg>Colon alignment example<commit_after>#!/Applications/Xcode6-Beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift -i

// This is a comment

let foo = 5 // another comment

/* this is also a comment */

/* this is
a multi-line
comment
*/

"this is a string"
"this is a string\" with an escaped quote"

// TODO: This is a todo comment
// XXX: This is another todo comment
// FIXME: this is another todo comment
// NOTE: this is another todo comment
/* TODO multiple */

// MARK: this is a marker

5 // int

5.5 // float
5.5abc5.5 // broken

0xa2ef // hex
0x213zdf // broken hex

0b10101 // binary
0b1234 // broken binary

0o567 // octal
0o5689 // broken octal

// Operators
~
!
%
^
&
*
-
+
=
|
2 / 5
.
>
<

a != b
a != b
a !== b
a !== b
%=
&%
&&
&&=
let a = 10 &* 20
&+
&-
8 &/ 20
&=
let a *= 20
++
+=
--
-=
..
...
let b = 50 /= 20
<<
<=
=<<
==
===
>=
>>
>>=
^=
|=
||
||=
~=

true
false

class Shape : NSObject {
    var foo: String
    var qux: String = "abcd"
    let bar = String?[]()
    let baz = String()?
    let foo = Int()

    init(thing: String) {
        foo = thing
        super.init(thing)
        let bar:String= "123"

        bar!
    }

    func foo(thing1 : String, 2thing : Int52) {

    }

    func bar(thing: String?){

    }
}

import Cocoa

struct Thing: NSString {
    var foo : Int
}

enum Card : Int {
    case Spade = 1
    case Heart
    case Diamond
    case Club
}

struct foo : bar {
    switch (foo) {
    case foo:
    case bar:
    default:
        stuff
    case baz:
        fuck
    case bar:
        bafsd
    }

    func foo() {

    }

    func bar(asdf: String) -> Bool {

    }

    func baz() -> (Foo, Bar)
    {

    }

    func asdf<T>() {

    }
}

struct ArgumentList {
    var arguments: String[]

    init(argv: UnsafePointer<CString>, count: CInt) {
    }
}

let a : UnsafePointer<CString>

func foo<T: Sequence>() {

}

init(argv: UnsafePointer<CString>, count: CInt) {
    for i in 1..count {
        let index = Int(i);
        let arg = String.fromCString(argv[index])
        arguments.append(arg)
    }
}

func simpleDescription() -> String {
    return "A shape with \(numberOfSides) sides."
}

let library = [
    Movie(name: "<NAME>",
        dfasdfsdfdirector: "someone",
                      foo: "bar",
                  bazzzer: "qux",
]


foo as? String

{'fraction_non_alphanumeric': 0.15106660861993906, 'fraction_numerical': 0.025685676969960818, 'mean_word_length': 2.003267973856209, 'pattern_counts': {'":': 0, '<': 27, '<?xml version=': 0, '>': 33, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5285731', 'n_tokens_mistral': 1832, 'n_tokens_neox': 1699, 'n_words': 494}