nebius/SWE-rebench-V2-PRs huggingface dataset:
Repository: mattgodbolt/compiler-explorer
Pull request #1435 (2019-06-10 12:21:57)

rename pascal-support to demangler-pascal
<!-- THIS COMMENT IS INVISIBLE IN THE FINAL PR, BUT FEEL FREE TO REMOVE IT
Thanks for taking the time to improve CE. We really appreciate it.
  Before opening the PR, please make sure that the tests & linter pass their checks,
  by running `make check`.
  In the best case scenario, you are also adding tests to back up your changes,
  but don't sweat it if you don't. We can discuss them at a later date.
Feel free to append your name to the CONTRIBUTORS.md file
Thanks again, we really appreciate this!
-->



Patch:
diff --git a/etc/config/pascal.defaults.properties b/etc/config/pascal.defaults.properties
index e716c401c..f55b620a2 100644
--- a/etc/config/pascal.defaults.properties
+++ b/etc/config/pascal.defaults.properties
@@ -8,7 +8,7 @@ options=
 versionFlag=-h | grep "Compiler version" 
 supportsBinary=true
 compilerType=pascal
-demanglerClassFile=../pascal-support
+demanglerClassFile=../demangler-pascal
 
 #################################
 #################################
diff --git a/lib/compilers/pascal.js b/lib/compilers/pascal.js
index 5a7e82eae..7a8eebcee 100644
--- a/lib/compilers/pascal.js
+++ b/lib/compilers/pascal.js
@@ -35,7 +35,7 @@ class FPCCompiler extends BaseCompiler {
         super(info, env);
 
         let demanglerClassFile = this.compiler.demanglerClassFile;
-        if (!demanglerClassFile) demanglerClassFile = "../pascal-support";
+        if (!demanglerClassFile) demanglerClassFile = "../demangler-pascal";
         const demanglerClass = require(demanglerClassFile).Demangler;
 
         this.demangler = new demanglerClass(null, null, this);
diff --git a/lib/pascal-support.js b/lib/demangler-pascal.js
similarity index 98%
rename from lib/pascal-support.js
rename to lib/demangler-pascal.js
index e1062a932..c5bda8acc 100644
--- a/lib/pascal-support.js
+++ b/lib/demangler-pascal.js
@@ -26,7 +26,7 @@
 const SymbolStore = require("./symbol-store").SymbolStore;
 const Demangler = require("./demangler").Demangler;
 
-class PascalDemangler extends Demangler {
+class DemanglerPascal extends Demangler {
     constructor(demanglerExe, symbolstore) {
         super(demanglerExe, symbolstore);
 
@@ -202,4 +202,4 @@ class PascalDemangler extends Demangler {
     }
 }
 
-exports.Demangler = PascalDemangler;
+exports.Demangler = DemanglerPascal;


Test patch:
diff --git a/test/pascal-tests.js b/test/pascal-tests.js
index 72ee1d0e2..d4ad20146 100644
--- a/test/pascal-tests.js
+++ b/test/pascal-tests.js
@@ -24,7 +24,7 @@
 
 const chai = require('chai');
 const chaiAsPromised = require("chai-as-promised");
-const PascalDemangler = require('../lib/pascal-support').Demangler;
+const PascalDemangler = require('../lib/demangler-pascal').Demangler;
 const PascalCompiler = require('../lib/compilers/pascal');
 const CompilationEnvironment = require('../lib/compilation-env');
 const fs = require('fs-extra');