test_class.declarator: TEST_CONTENT =
              "encoding  utf-8\n" +
                  "survey dafung-down-west\n" +
                  "\n" +
                  "input dafung-down-west.th2\n" +
                  "input dafung-down-westEe.th2\n" +
                  "\n" +
                  "centreline" +
                  "\n" +
                  "data normal from to tape compass clino ignoreall\n" +
                  "  extend right\n" +
                  "1.4  8.0  0.0  0.0  0.0  \n" +
                  "#8.0  8.1  13.883  283.04  -5.5  \n" +
                  "#8.0  8.1  13.885  283.08  -5.5  \n" +
                  "#8.0  8.1  13.882  283.08  -5.61  \n" +
                  "8.0  8.1  13.883  283.06  -5.54  Calculated leg from 3 above\n" +
                  "8.1  -  1.566  106.33  82.08  \n" +
                  "endcentreline\n" +
                  "endsurvey"
test_class.modifier: final
test_class.original_string: final String TEST_CONTENT =
              "encoding  utf-8\n" +
                  "survey dafung-down-west\n" +
                  "\n" +
                  "input dafung-down-west.th2\n" +
                  "input dafung-down-westEe.th2\n" +
                  "\n" +
                  "centreline" +
                  "\n" +
                  "data normal from to tape compass clino ignoreall\n" +
                  "  extend right\n" +
                  "1.4  8.0  0.0  0.0  0.0  \n" +
                  "#8.0  8.1  13.883  283.04  -5.5  \n" +
                  "#8.0  8.1  13.885  283.08  -5.5  \n" +
                  "#8.0  8.1  13.882  283.08  -5.61  \n" +
                  "8.0  8.1  13.883  283.06  -5.54  Calculated leg from 3 above\n" +
                  "8.1  -  1.566  106.33  82.08  \n" +
                  "endcentreline\n" +
                  "endsurvey";
test_class.type: String
test_class.var_name: TEST_CONTENT
test_class.file: app/src/test/java/org/hwyl/sexytopo/control/io/thirdparty/therion/ThExporterTest.java
test_class.identifier: ThExporterTest
test_case.body: @Test
      public void testReplaceCentreline() {
  
  
          String updated = new ThExporter().replaceCentreline(TEST_CONTENT, "replacement");
          Assert.assertTrue(updated.contains("replacement"));
          Assert.assertFalse(updated.contains("Calculated"));
      }
test_case.class_method_signature: ThExporterTest.testReplaceCentreline()
test_case.full_signature: @Test public void testReplaceCentreline()
test_case.identifier: testReplaceCentreline
test_case.invocations: replaceCentreline assertTrue contains assertFalse contains
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testReplaceCentreline()
focal_class.declarator: COMMENT_CHAR = '#'
focal_class.modifier: public static final
focal_class.original_string: public static final char COMMENT_CHAR = '#';
focal_class.type: char
focal_class.var_name: COMMENT_CHAR
focal_class.declarator: DATE_PATTERN = "yyyy.MM.dd"
focal_class.modifier: public static final
focal_class.original_string: public static final String DATE_PATTERN = "yyyy.MM.dd";
focal_class.type: String
focal_class.var_name: DATE_PATTERN
focal_class.file: app/src/main/java/org/hwyl/sexytopo/control/io/thirdparty/therion/ThExporter.java
focal_class.identifier: ThExporter
focal_class.class_method_signature: ThExporter.getContent(Context context, Survey survey, List<String> th2Files)
focal_class.full_signature: public static String getContent(Context context, Survey survey, List<String> th2Files)
focal_class.identifier: getContent
focal_class.modifiers: public static
focal_class.parameters: (Context context, Survey survey, List<String> th2Files)
focal_class.return: String
focal_class.signature: String getContent(Context context, Survey survey, List<String> th2Files)
focal_class.class_method_signature: ThExporter.updateOriginalContent(
              Survey survey, String originalFileContent, List<String> th2Files)
focal_class.full_signature: public static String updateOriginalContent(
              Survey survey, String originalFileContent, List<String> th2Files)
focal_class.identifier: updateOriginalContent
focal_class.modifiers: public static
focal_class.parameters: (
              Survey survey, String originalFileContent, List<String> th2Files)
focal_class.return: String
focal_class.signature: String updateOriginalContent(
              Survey survey, String originalFileContent, List<String> th2Files)
focal_class.class_method_signature: ThExporter.replaceCentreline(String original, String replacementText)
focal_class.full_signature: public static String replaceCentreline(String original, String replacementText)
focal_class.identifier: replaceCentreline
focal_class.modifiers: public static
focal_class.parameters: (String original, String replacementText)
focal_class.return: String
focal_class.signature: String replaceCentreline(String original, String replacementText)
focal_class.class_method_signature: ThExporter.replaceInputsText(String original, String replacementText)
focal_class.full_signature: public static String replaceInputsText(String original, String replacementText)
focal_class.identifier: replaceInputsText
focal_class.modifiers: public static
focal_class.parameters: (String original, String replacementText)
focal_class.return: String
focal_class.signature: String replaceInputsText(String original, String replacementText)
focal_class.class_method_signature: ThExporter.getSurveyText(Context context, Survey survey, List<String> th2Files)
focal_class.full_signature: private static String getSurveyText(Context context, Survey survey, List<String> th2Files)
focal_class.identifier: getSurveyText
focal_class.modifiers: private static
focal_class.parameters: (Context context, Survey survey, List<String> th2Files)
focal_class.return: String
focal_class.signature: String getSurveyText(Context context, Survey survey, List<String> th2Files)
focal_class.class_method_signature: ThExporter.getInputText(List<String> th2Files)
focal_class.full_signature: private static String getInputText(List<String> th2Files)
focal_class.identifier: getInputText
focal_class.modifiers: private static
focal_class.parameters: (List<String> th2Files)
focal_class.return: String
focal_class.signature: String getInputText(List<String> th2Files)
focal_class.class_method_signature: ThExporter.getCentrelineText(Survey survey)
focal_class.full_signature: private static String getCentrelineText(Survey survey)
focal_class.identifier: getCentrelineText
focal_class.modifiers: private static
focal_class.parameters: (Survey survey)
focal_class.return: String
focal_class.signature: String getCentrelineText(Survey survey)
focal_class.class_method_signature: ThExporter.indent(String text)
focal_class.full_signature: public static String indent(String text)
focal_class.identifier: indent
focal_class.modifiers: public static
focal_class.parameters: (String text)
focal_class.return: String
focal_class.signature: String indent(String text)
focal_class.class_method_signature: ThExporter.getCentreline(Survey survey)
focal_class.full_signature: private static String getCentreline(Survey survey)
focal_class.identifier: getCentreline
focal_class.modifiers: private static
focal_class.parameters: (Survey survey)
focal_class.return: String
focal_class.signature: String getCentreline(Survey survey)
focal_class.class_method_signature: ThExporter.formatTrip(Trip trip)
focal_class.full_signature: private static String formatTrip(Trip trip)
focal_class.identifier: formatTrip
focal_class.modifiers: private static
focal_class.parameters: (Trip trip)
focal_class.return: String
focal_class.signature: String formatTrip(Trip trip)
focal_class.class_method_signature: ThExporter.formatMember(Trip.TeamEntry member)
focal_class.full_signature: private static String formatMember(Trip.TeamEntry member)
focal_class.identifier: formatMember
focal_class.modifiers: private static
focal_class.parameters: (Trip.TeamEntry member)
focal_class.return: String
focal_class.signature: String formatMember(Trip.TeamEntry member)
focal_class.class_method_signature: ThExporter.getRoleDescription(Trip.Role role)
focal_class.full_signature: private static String getRoleDescription(Trip.Role role)
focal_class.identifier: getRoleDescription
focal_class.modifiers: private static
focal_class.parameters: (Trip.Role role)
focal_class.return: String
focal_class.signature: String getRoleDescription(Trip.Role role)
focal_class.class_method_signature: ThExporter.commentMultiline(String raw)
focal_class.full_signature: private static String commentMultiline(String raw)
focal_class.identifier: commentMultiline
focal_class.modifiers: private static
focal_class.parameters: (String raw)
focal_class.return: String
focal_class.signature: String commentMultiline(String raw)
focal_class.class_method_signature: ThExporter.formatDate(Date date)
focal_class.full_signature: private static String formatDate(Date date)
focal_class.identifier: formatDate
focal_class.modifiers: private static
focal_class.parameters: (Date date)
focal_class.return: String
focal_class.signature: String formatDate(Date date)
focal_class.class_method_signature: ThExporter.getExtendedElevationExtensions(Survey survey)
focal_class.full_signature: private static String getExtendedElevationExtensions(Survey survey)
focal_class.identifier: getExtendedElevationExtensions
focal_class.modifiers: private static
focal_class.parameters: (Survey survey)
focal_class.return: String
focal_class.signature: String getExtendedElevationExtensions(Survey survey)
focal_class.class_method_signature: ThExporter.generateExtendCommandsFromStation(
              StringBuilder builder, Station station, Direction lastDirection)
focal_class.full_signature: private static void generateExtendCommandsFromStation(
              StringBuilder builder, Station station, Direction lastDirection)
focal_class.identifier: generateExtendCommandsFromStation
focal_class.modifiers: private static
focal_class.parameters: (
              StringBuilder builder, Station station, Direction lastDirection)
focal_class.return: void
focal_class.signature: void generateExtendCommandsFromStation(
              StringBuilder builder, Station station, Direction lastDirection)
focal_class.class_method_signature: ThExporter.getExtendCommand(Station station, String direction)
focal_class.full_signature: private static String getExtendCommand(Station station, String direction)
focal_class.identifier: getExtendCommand
focal_class.modifiers: private static
focal_class.parameters: (Station station, String direction)
focal_class.return: String
focal_class.signature: String getExtendCommand(Station station, String direction)
focal_method.body: public static String replaceCentreline(String original, String replacementText) {
          String newContent = original.replaceFirst(
                  "(?s)(\\s*?(centreline|centerline)(.*)(endcentreline|endcenterline)\\s*)",
                  replacementText);
          return newContent;
      }
focal_method.class_method_signature: ThExporter.replaceCentreline(String original, String replacementText)
focal_method.full_signature: public static String replaceCentreline(String original, String replacementText)
focal_method.identifier: replaceCentreline
focal_method.invocations: replaceFirst
focal_method.modifiers: public static
focal_method.parameters: (String original, String replacementText)
focal_method.return: String
focal_method.signature: String replaceCentreline(String original, String replacementText)