nebius/SWE-rebench-V2-PRs huggingface dataset:
Repository: wix/Detox
Pull request #2685 (2021-03-12 14:56:57)

Update testCommandArgs.js
- [x] This is a small change 

---

**Description:**
change `exists` => `exits`

Stumbled over it while reading 👍🏿


Patch:
diff --git a/docs/Introduction.iOS.md b/docs/Introduction.iOS.md
index d66c334fe..fbfb019d0 100644
--- a/docs/Introduction.iOS.md
+++ b/docs/Introduction.iOS.md
@@ -12,7 +12,7 @@ Whether you've selected to apply the configuration in a  `.detoxrc.json` or bund
 {
   "devices": {
     "simulator": {
-      "type": "ios.simulator"
+      "type": "ios.simulator",
       "device": {
         "type": "iPhone 12 Pro Max"
       }


Test patch:
diff --git a/detox/local-cli/utils/testCommandArgs.js b/detox/local-cli/utils/testCommandArgs.js
index 6d98e7abf..cb8dca8c9 100644
--- a/detox/local-cli/utils/testCommandArgs.js
+++ b/detox/local-cli/utils/testCommandArgs.js
@@ -41,7 +41,7 @@ module.exports = {
   u: {
     alias: 'cleanup',
     group: 'Execution:',
-    describe: 'Shutdown simulator when test is over, useful for CI scripts, to make sure detox exists cleanly with no residue',
+    describe: 'Shutdown simulator when test is over, useful for CI scripts, to make sure detox exits cleanly with no residue',
     boolean: true,
   },
   d: {
Repository: wix/Detox
Pull request #2723 (2021-04-13 11:14:52)

Run non-Spek Android unit tests
## Description

Apparently, non-Spek unit tests (Android) were not executed by gradle (e.g. in commands such as `./gradle testFullReleaseUnitTest`).

See https://github.com/spekframework/spek/issues/232#issuecomment-610732158



Patch:
diff --git a/detox/android/detox/build.gradle b/detox/android/detox/build.gradle
index c590d068c..16d237fb8 100644
--- a/detox/android/detox/build.gradle
+++ b/detox/android/detox/build.gradle
@@ -113,7 +113,11 @@ dependencies {
     // noinspection GradleDynamicVersion
     testImplementation 'com.facebook.react:react-native:+'
     testImplementation 'org.json:json:20140107'
-    testImplementation 'junit:junit:4.13'
+
+// https://github.com/spekframework/spek/issues/232#issuecomment-610732158
+//    testImplementation 'junit:junit:4.13.2'
+    testRuntimeOnly 'org.junit.vintage:junit-vintage-engine:5.6.0'
+
     testImplementation 'org.assertj:assertj-core:3.16.1'
     testImplementation "org.jetbrains.kotlin:kotlin-test:$_kotlinVersion"
     testImplementation 'org.apache.commons:commons-io:1.3.2'
@@ -131,7 +135,7 @@ if (rootProject.hasProperty('isOfficialDetoxLib') ||
             junitPlatform {
                 filters {
                     engines {
-                        include 'spek2'
+                        include 'spek2', 'junit-vintage'
                     }
                 }
             }
@@ -139,8 +143,8 @@ if (rootProject.hasProperty('isOfficialDetoxLib') ||
     }
 
     dependencies {
-        testImplementation 'org.spekframework.spek2:spek-dsl-jvm:2.0.12'
-        testImplementation 'org.spekframework.spek2:spek-runner-junit5:2.0.12'
+        testImplementation 'org.spekframework.spek2:spek-dsl-jvm:2.0.15'
+        testImplementation 'org.spekframework.spek2:spek-runner-junit5:2.0.15'
         testImplementation "org.jetbrains.kotlin:kotlin-reflect:$_kotlinVersion"
     }
 }


Test patch:
diff --git a/detox/android/detox/src/testFull/java/com/wix/detox/common/proxy/MethodsSpySpec.kt b/detox/android/detox/src/testFull/java/com/wix/detox/common/proxy/MethodsSpySpec.kt
index b9a82e2af..38df3e503 100644
--- a/detox/android/detox/src/testFull/java/com/wix/detox/common/proxy/MethodsSpySpec.kt
+++ b/detox/android/detox/src/testFull/java/com/wix/detox/common/proxy/MethodsSpySpec.kt
@@ -5,7 +5,7 @@ import org.spekframework.spek2.Spek
 import org.spekframework.spek2.style.specification.describe
 import java.util.*
 
-class MethodsSpySpec: Spek({
+object MethodsSpySpec: Spek({
     describe("Method-calls spy") {
 
         val defaultMethodName = "mockMethod"
Repository: railwayapp/nixpacks
Pull request #612 (2022-10-11 16:08:54)

provider(java): make mvnw executable
<!-- Thanks for sending a pull request! -->
<!-- Please add a useful description explaining what this PR does -->

This PR makes `mvnw` executable.

<!-- PR Checklist  -->
<!-- - [ ] Tests are added/updated if needed  -->
<!-- - [ ] Docs are updated if needed  -->



Patch:
diff --git a/src/providers/java.rs b/src/providers/java.rs
index 763eb03..e1ab232 100644
--- a/src/providers/java.rs
+++ b/src/providers/java.rs
@@ -62,7 +62,7 @@ impl JavaProvider {
     fn get_maven_exe(&self, app: &App) -> String {
         // App has a maven wrapper
         if app.includes_file("mvnw") && app.includes_file(".mvn/wrapper/maven-wrapper.properties") {
-            "./mvnw".to_string()
+            "chmod +x ./mvnw && ./mvnw".to_string()
         } else {
             "mvn".to_string()
         }


Test patch:
diff --git a/tests/snapshots/generate_plan_tests__java_maven_wrapper.snap b/tests/snapshots/generate_plan_tests__java_maven_wrapper.snap
index 99cc5ea..c323b5a 100644
--- a/tests/snapshots/generate_plan_tests__java_maven_wrapper.snap
+++ b/tests/snapshots/generate_plan_tests__java_maven_wrapper.snap
@@ -15,7 +15,7 @@ expression: plan
         "setup"
       ],
       "cmds": [
-        "./mvnw -DoutputFile=target/mvn-dependency-list.log -B -DskipTests clean dependency:list install"
+        "chmod +x ./mvnw && ./mvnw -DoutputFile=target/mvn-dependency-list.log -B -DskipTests clean dependency:list install"
       ],
       "cacheDirectories": [
         ".m2/repository"
Repository: railwayapp/nixpacks
Pull request #648 (2022-11-01 22:01:15)

use nix pkgs instead of apt for rust musl-tools and binutils
This PR switches to using Nix instead of Apt for all Rust provider packages (`binutils`, and `musl-tools`)



Patch:
diff --git a/src/providers/rust.rs b/src/providers/rust.rs
index d061637..6e04bbb 100644
--- a/src/providers/rust.rs
+++ b/src/providers/rust.rs
@@ -56,6 +56,7 @@ impl RustProvider {
         }
 
         let mut setup = Phase::setup(Some(vec![
+            Pkg::new("binutils"),
             Pkg::new("gcc"),
             rust_pkg.from_overlay(RUST_OVERLAY),
         ]));
@@ -71,11 +72,9 @@ impl RustProvider {
         }
 
         if RustProvider::should_use_musl(app, env)? {
-            setup.add_apt_pkgs(vec!["musl-tools".to_string()]);
+            setup.add_nix_pkgs(&[Pkg::new("musl"), Pkg::new("musl.dev")]);
         }
 
-        setup.add_apt_pkgs(vec!["binutils".to_string()]);
-
         Ok(setup)
     }
 


Test patch:
diff --git a/tests/snapshots/generate_plan_tests__rust_rocket_no_musl.snap b/tests/snapshots/generate_plan_tests__rust_rocket_no_musl.snap
index 39b8035..57997d9 100644
--- a/tests/snapshots/generate_plan_tests__rust_rocket_no_musl.snap
+++ b/tests/snapshots/generate_plan_tests__rust_rocket_no_musl.snap
@@ -30,16 +30,14 @@ expression: plan
     "setup": {
       "name": "setup",
       "nixPkgs": [
+        "binutils",
         "gcc",
         "rust-bin.stable.latest.default"
       ],
       "nixOverlays": [
         "https://github.com/oxalica/rust-overlay/archive/master.tar.gz"
       ],
-      "nixpkgsArchive": "[archive]",
-      "aptPkgs": [
-        "binutils"
-      ]
+      "nixpkgsArchive": "[archive]"
     }
   },
   "start": {
Repository: railwayapp/nixpacks
Pull request #713 (2022-12-14 00:05:34)

Install openssl from nixpkgs if prisma is detected
This PR will install the `openssl` package from nix if prisma is detected in the node provider. This is necessary for the upcoming switch to Ubuntu where the openssl is version 3. Prisma seems to be having an issue finding the correct shared library files. Installing openssl from Nix directly fixes the issue and also uses the latest openssl version.



Patch:
diff --git a/src/providers/node/mod.rs b/src/providers/node/mod.rs
index e608306..bbe7f9e 100644
--- a/src/providers/node/mod.rs
+++ b/src/providers/node/mod.rs
@@ -72,6 +72,10 @@ impl Provider for NodeProvider {
         // Setup
         let mut setup = Phase::setup(Some(NodeProvider::get_nix_packages(app, env)?));
 
+        if NodeProvider::uses_node_dependency(app, "prisma") {
+            setup.add_nix_pkgs(&[Pkg::new("openssl")]);
+        }
+
         if NodeProvider::uses_node_dependency(app, "puppeteer") {
             // https://gist.github.com/winuxue/cfef08e2f5fe9dfc16a1d67a4ad38a01
             setup.add_apt_pkgs(vec![


Test patch:
diff --git a/tests/snapshots/generate_plan_tests__node_prisma_postgres.snap b/tests/snapshots/generate_plan_tests__node_prisma_postgres.snap
index a960552..ab09bc4 100644
--- a/tests/snapshots/generate_plan_tests__node_prisma_postgres.snap
+++ b/tests/snapshots/generate_plan_tests__node_prisma_postgres.snap
@@ -43,7 +43,8 @@ expression: plan
       "name": "setup",
       "nixPkgs": [
         "nodejs-18_x",
-        "npm-6_x"
+        "npm-6_x",
+        "openssl"
       ],
       "nixOverlays": [
         "https://github.com/railwayapp/nix-npm-overlay/archive/main.tar.gz"
diff --git a/tests/snapshots/generate_plan_tests__node_turborepo.snap b/tests/snapshots/generate_plan_tests__node_turborepo.snap
index 6982031..e8d1676 100644
--- a/tests/snapshots/generate_plan_tests__node_turborepo.snap
+++ b/tests/snapshots/generate_plan_tests__node_turborepo.snap
@@ -56,4 +56,4 @@ expression: plan
   "start": {
     "cmd": "npx turbo run start"
   }
-}
\ No newline at end of file
+}
diff --git a/tests/snapshots/generate_plan_tests__node_yarn_prisma.snap b/tests/snapshots/generate_plan_tests__node_yarn_prisma.snap
index eb78262..5128132 100644
--- a/tests/snapshots/generate_plan_tests__node_yarn_prisma.snap
+++ b/tests/snapshots/generate_plan_tests__node_yarn_prisma.snap
@@ -43,7 +43,8 @@ expression: plan
       "name": "setup",
       "nixPkgs": [
         "nodejs-16_x",
-        "yarn-1_x"
+        "yarn-1_x",
+        "openssl"
       ],
       "nixOverlays": [
         "https://github.com/railwayapp/nix-npm-overlay/archive/main.tar.gz"