GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — made phrase checking to lower case to ignore issues with case · RepGraph/RepGraph@16ee0dd

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • src/main/java/com/RepGraph
    • AbstractModel.java
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎src/main/java/com/RepGraph/AbstractModel.java‎

Copy file name to clipboardExpand all lines: src/main/java/com/RepGraph/AbstractModel.java
+5-5Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -481,11 +481,11 @@ public HashMap<String, Object> compareTwoGraphs(String graphID1, String graphID2
481481
String phrase2 = "";
482482

483483
for (Anchors a : n1.getAnchors()) {
484-
phrase1 += g1.getTokenInput(g1.getTokenSpan(a.getFrom(), a.getEnd()));
484+
phrase1 += g1.getTokenInput(g1.getTokenSpan(a.getFrom(), a.getEnd())).toLowerCase();
485485
}
486486

487487
for (Anchors a : n2.getAnchors()) {
488-
phrase2 += g2.getTokenInput(g2.getTokenSpan(a.getFrom(), a.getEnd()));
488+
phrase2 += g2.getTokenInput(g2.getTokenSpan(a.getFrom(), a.getEnd())).toLowerCase();
489489
}
490490

491491
if (n1.getLabel().equals(n2.getLabel()) && phrase1.equals(phrase2)) {
@@ -510,11 +510,11 @@ public HashMap<String, Object> compareTwoGraphs(String graphID1, String graphID2
510510
phrase2 = "";
511511

512512
for (Anchors a : nn1.getAnchors()) {
513-
phrase1 += g1.getTokenInput(g1.getTokenSpan(a.getFrom(), a.getEnd()));
513+
phrase1 += g1.getTokenInput(g1.getTokenSpan(a.getFrom(), a.getEnd())).toLowerCase();
514514
}
515515

516516
for (Anchors a : nn2.getAnchors()) {
517-
phrase2 += g2.getTokenInput(g2.getTokenSpan(a.getFrom(), a.getEnd()));
517+
phrase2 += g2.getTokenInput(g2.getTokenSpan(a.getFrom(), a.getEnd())).toLowerCase();
518518
}
519519
if (nn1.getLabel().equals(nn2.getLabel()) && e1.getLabel().equals(e2.getLabel()) && phrase1.equals(phrase2)) {
520520
if (((nn1.isSurface() && nn2.isSurface()) && noSurface == false) || (!nn1.isSurface() && !nn2.isSurface() && noAbstract == false) || (noAbstract == false && noSurface == false)) {
@@ -536,7 +536,7 @@ public HashMap<String, Object> compareTwoGraphs(String graphID1, String graphID2
536536
}
537537
}
538538

539-
//checks if their labels and spans are equal
539+
540540

541541

542542
}

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.