Skip to content

Commit 3c48cd0

Browse files
committed
fix indentation issues
1 parent 7eea77b commit 3c48cd0

File tree

3 files changed

+205
-206
lines changed

3 files changed

+205
-206
lines changed

example/CodeFuse/CommentCodePairsJava.gdl

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -95,19 +95,19 @@ pub fn filterByAnnotation(f: string) -> bool {
9595
pub fn getAutoGeneratedFiles(n: string) -> bool {
9696
let (db = default_db()) {
9797
for (f in File(db)) {
98-
if (n = f.getRelativePath()) {
99-
if (filterByFolderNames(f)) {
100-
if (filterByAnnotation(n)) {
101-
return true
102-
}
103-
if (filterByKeyWords(n)) {
104-
return true
98+
if (n = f.getRelativePath()) {
99+
if (filterByFolderNames(f)) {
100+
if (filterByAnnotation(n)) {
101+
return true
102+
}
103+
if (filterByKeyWords(n)) {
104+
return true
105+
}
105106
}
106107
}
107108
}
108109
}
109110
}
110-
}
111111

112112
schema PublicVisitedElement extends Callable {
113113

@@ -121,7 +121,7 @@ impl PublicVisitedElement {
121121
pub fn __all__(db: JavaDB) -> *PublicVisitedElement {
122122
for (tmp in Callable(db)) {
123123
yield PublicVisitedElement {
124-
id : tmp.id
124+
id: tmp.id
125125
}
126126
}
127127
}
@@ -204,7 +204,7 @@ pub fn getPublicElementLocInfo(e: PublicVisitedElement, i: int, j: int) -> bool
204204
pub fn getJavadocCommentLocInfo(e: JavadocComment, i: int, j: int) -> bool {
205205
let (db = default_db()) {
206206
for (n in int::__undetermined_all__()) {
207-
if (i = e.getLocation().getFile().element_hash_id) {
207+
if (i = e.getLocation().getFile().element_hash_id) {
208208
if (n = e.getLocation().getStartLineNumber()) {
209209
if (j = n - 1) {
210210
return true
@@ -225,27 +225,27 @@ pub fn connectDoc(j: JavadocComment, e: PublicVisitedElement) -> bool {
225225
let (db = default_db()) {
226226
for (i in int::__undetermined_all__(),
227227
m in int::__undetermined_all__()) {
228-
if (getJavadocCommentLocInfo(j, i, m)) {
229-
if (getPublicElementLocInfo(e, i, m)) {
230-
return true
231-
}
228+
if (getJavadocCommentLocInfo(j, i, m)) {
229+
if (getPublicElementLocInfo(e, i, m)) {
230+
return true
232231
}
233232
}
233+
}
234234
}
235235
}
236236

237237
pub fn hasComment(e: PublicVisitedElement, tmp_j: int) -> bool {
238238
let (db = default_db()) {
239239
for (j in JavadocComment(db)) {
240240
if (j.element_hash_id = tmp_j) {
241-
if (e.key_eq(j.getDocumentableElement())) {
242-
return true
243-
}
244-
if (connectDoc(j, e)) {
245-
return true
241+
if (e.key_eq(j.getDocumentableElement())) {
242+
return true
243+
}
244+
if (connectDoc(j, e)) {
245+
return true
246+
}
246247
}
247248
}
248-
}
249249
for (j in Comment(db)) {
250250
if (j = e.getPossibleAboveComment() &&
251251
j.element_hash_id = tmp_j) {

example/CodeFuse/CommentCodePairsPython.gdl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ impl PublicVisitedElement {
1919
for (c in Function(db)) {
2020
if (tmp.key_eq(c)) {
2121
yield PublicVisitedElement {
22-
id : tmp.id
22+
id: tmp.id
2323
}
2424
}
2525
}

0 commit comments

Comments
 (0)