Skip to content

Commit 18c1929

Browse files
committed
Fix remaining conflicts, remove FASTA generator
1 parent 048fa64 commit 18c1929

File tree

4 files changed

+15
-130
lines changed

4 files changed

+15
-130
lines changed

Sources/RegexBenchmark/Inputs/DnaFASTA.swift

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
//===----------------------------------------------------------------------===//
2+
//
3+
// This source file is part of the Swift.org open source project
4+
//
5+
// Copyright (c) 2025 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+
12+
// Generated using one of the "fasta" programs in
13+
// the Computer Language Benchmarks Game:
14+
// https://benchmarksgame-team.pages.debian.net/benchmarksgame/description/fasta.html#fasta
15+
116
extension Inputs {
217
static let dnaFASTA = """
318
>ONE Homo sapiens alu

Utils/benchmark-generators/generateEmails.py

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,3 @@
1-
<<<<<<< HEAD
2-
# python3 generateEmails.py > output.txt
3-
4-
import string
5-
import random
6-
=======
71
##===----------------------------------------------------------------------===##
82
##
93
## This source file is part of the Swift.org open source project
@@ -21,7 +15,6 @@
2115
import string
2216

2317
random.seed(0)
24-
>>>>>>> main
2518

2619
domain_charset = string.ascii_letters + string.digits + ".-"
2720
locale_charset = domain_charset + "_%+"
@@ -31,19 +24,6 @@
3124
# for the most part this will generate mostly valid emails
3225
# there are some edge cases with double hyphens and double periods that cause
3326
# issues but otherwise this should work
34-
<<<<<<< HEAD
35-
36-
for _ in range(n):
37-
domain_len = random.randint(2,64)
38-
locale_len = random.randint(2,64)
39-
tld_len = random.randint(2,10)
40-
41-
domain = "".join(random.sample(domain_charset, domain_len))
42-
locale = "".join(random.sample(locale_charset, locale_len))
43-
tld = "".join(random.sample(string.ascii_lowercase, tld_len))
44-
email = locale + "@" + domain + "." + tld
45-
print(email.lower())
46-
=======
4727
emails = []
4828
for _ in range(n):
4929
domain_len = random.randint(2, 64)
@@ -69,4 +49,3 @@
6949
email_text = "\n ".join(emails)
7050
email_list_formatted = "[" + ",\n ".join(["\"" + x + "\"" for x in emails]) + "]"
7151
print(res.format(email_text, email_list_formatted))
72-
>>>>>>> main

Utils/benchmark-generators/generateFasta.py

Lines changed: 0 additions & 99 deletions
This file was deleted.

Utils/benchmark-generators/generateTaggedUnicode.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
<<<<<<< HEAD
2-
=======
31
##===----------------------------------------------------------------------===##
42
##
53
## This source file is part of the Swift.org open source project
@@ -11,7 +9,6 @@
119
##
1210
##===----------------------------------------------------------------------===##
1311

14-
>>>>>>> main
1512
# Generates lines of junk unicode wrapped in html tags
1613
import random
1714

@@ -30,12 +27,6 @@
3027
minLine = 10
3128
maxLine = 100
3229

33-
<<<<<<< HEAD
34-
def get_random(i):
35-
return "".join([chr(random.randint(low, high)) for _ in range(i)])
36-
37-
lines = [start + get_random(random.randint(minLine, maxLine)) + end for _ in range(numLines)]
38-
=======
3930

4031
def get_random(i):
4132
return "".join([chr(random.randint(low, high)) for _ in range(i)])
@@ -45,6 +36,5 @@ def get_random(i):
4536
start + get_random(random.randint(minLine, maxLine)) + end
4637
for _ in range(numLines)
4738
]
48-
>>>>>>> main
4939

5040
print("\n".join(lines))

0 commit comments

Comments
 (0)