Skip to content

Commit 13058d1

Browse files
committed
Add license to Python scripts
1 parent 2927650 commit 13058d1

File tree

5 files changed

+67
-1
lines changed

5 files changed

+67
-1
lines changed

Utils/benchmark-generators/generateDiceNotation.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
##===----------------------------------------------------------------------===##
2+
##
3+
## This source file is part of the Swift.org open source project
4+
##
5+
## Copyright (c) 2021-2022 Apple Inc. and the Swift project authors
6+
## Licensed under Apache License v2.0 with Runtime Library Exception
7+
##
8+
## See https://swift.org/LICENSE.txt for license information
9+
##
10+
##===----------------------------------------------------------------------===##
11+
112
import string
213
import random
314

Utils/benchmark-generators/generateEmails.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
##===----------------------------------------------------------------------===##
2+
##
3+
## This source file is part of the Swift.org open source project
4+
##
5+
## Copyright (c) 2021-2022 Apple Inc. and the Swift project authors
6+
## Licensed under Apache License v2.0 with Runtime Library Exception
7+
##
8+
## See https://swift.org/LICENSE.txt for license information
9+
##
10+
##===----------------------------------------------------------------------===##
11+
112
# python3 generateEmails.py > output.txt
213

314
import string

Utils/benchmark-generators/generateNetworkingData.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
##===----------------------------------------------------------------------===##
2+
##
3+
## This source file is part of the Swift.org open source project
4+
##
5+
## Copyright (c) 2021-2022 Apple Inc. and the Swift project authors
6+
## Licensed under Apache License v2.0 with Runtime Library Exception
7+
##
8+
## See https://swift.org/LICENSE.txt for license information
9+
##
10+
##===----------------------------------------------------------------------===##
11+
112
import string
213
import random
314

Utils/benchmark-generators/generateTaggedUnicode.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
##===----------------------------------------------------------------------===##
2+
##
3+
## This source file is part of the Swift.org open source project
4+
##
5+
## Copyright (c) 2021-2022 Apple Inc. and the Swift project authors
6+
## Licensed under Apache License v2.0 with Runtime Library Exception
7+
##
8+
## See https://swift.org/LICENSE.txt for license information
9+
##
10+
##===----------------------------------------------------------------------===##
11+
112
# Generates lines of junk unicode wrapped in html tags
213
import random
314

Utils/createBenchmark.py

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,32 @@
1+
##===----------------------------------------------------------------------===##
2+
##
3+
## This source file is part of the Swift.org open source project
4+
##
5+
## Copyright (c) 2021-2022 Apple Inc. and the Swift project authors
6+
## Licensed under Apache License v2.0 with Runtime Library Exception
7+
##
8+
## See https://swift.org/LICENSE.txt for license information
9+
##
10+
##===----------------------------------------------------------------------===##
11+
112
# python3 createBenchmark.py MyRegexBenchmark
213
# reference: https://github.com/apple/swift/blob/main/benchmark/scripts/create_benchmark.py
314

415
import argparse
516
import os
617

7-
template = """import _StringProcessing
18+
template = """//===----------------------------------------------------------------------===//
19+
//
20+
// This source file is part of the Swift.org open source project
21+
//
22+
// Copyright (c) 2021-2022 Apple Inc. and the Swift project authors
23+
// Licensed under Apache License v2.0 with Runtime Library Exception
24+
//
25+
// See https://swift.org/LICENSE.txt for license information
26+
//
27+
//===----------------------------------------------------------------------===//
28+
29+
import _StringProcessing
830
931
extension BenchmarkRunner {{
1032
mutating func add{name}() {{

0 commit comments

Comments
 (0)