Skip to content

Commit d78b8f4

Browse files
Added repos and updated file handlers
1 parent 05dda64 commit d78b8f4

5 files changed

Lines changed: 22 additions & 5 deletions

File tree

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
11
brpc
2+
datasketches-cpp
23
incubator-pegasus
4+
kudu
5+
kvrocks
6+
mesos
7+
nifi-minifi-cpp
8+
pulsar-client-cpp
9+
singa
310
trafficserver
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
logging-log4j-kotlin
1+
logging-log4j-kotlin
2+
incubator-retired-amaterasu
Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,9 @@
11
airflow
2-
allura
2+
allura
3+
openserverless-operator
4+
iceberg-python
5+
airflow-client-python
6+
skywalking-python
7+
ignite-python-thin-client
8+
pulsar-client-python
9+
hunter

src/models/file_handlers/CPlusPlusFileHandler.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@ class CPlusPlusFileHandler:
55
file_extensions = [".cpp", ".cc", ".c++"]
66

77
def is_test_file(self, file: str) -> bool:
8-
return "test" in file
8+
return "test" in file or "Test" in file
99

1010
def get_implementation_file(self, test_file: str) -> str:
11-
return re.sub(r'(_test|test_)', '', test_file)
11+
remove_lowercase = re.sub(r'(_test|test_)', '', test_file)
12+
remove_uppercase = re.sub(r'(Tests|Test)', '', remove_lowercase)
13+
return remove_uppercase

src/models/file_handlers/PythonFileHandler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
class PythonFileHandler:
44
name = "Python"
5-
file_extensions = [".py"]
5+
file_extensions = [".py", ".ipy"]
66

77
def is_test_file(self, file: str) -> bool:
88
return "test" in file

0 commit comments

Comments
 (0)