PrimeIntellect/SWE-rebench-V2 huggingface dataset:
Repository: kestra-io/kestra (java)

Issue:
Ensure that timeout set on a Script task is propagated to a timeout of a Cloud container (AWS/Azure/Google Batch Script Runners)
### Feature description

When a user sets a timeout, we should ensure that the configured timeout will be _roughly_ respected. 

We say _roughly_ because there can be some significant latency for starting a container (on Fargate, even in a range of minutes), so _ideally_ the timeout should start once the container starts.  However, the main use case is matching kestra timeout with Cloud container service timeout (even if not 100% accurate) to avoid unexpected costs caused by not respecting timeout and having a zombie container running for weeks. 

```yaml
id: timeout
namespace: dev

tasks:
  - id: failed
    type: io.kestra.plugin.scripts.shell.Commands
    scriptRunner: ...
    timeout: PT2H
```

Pull request:
feat(core): pass task timeout to the task runner
Fixes #3461

Patch:
diff --git a/core/src/main/java/io/kestra/core/models/tasks/runners/TaskCommands.java b/core/src/main/java/io/kestra/core/models/tasks/runners/TaskCommands.java
index 2ad1632c5..076797940 100644
--- a/core/src/main/java/io/kestra/core/models/tasks/runners/TaskCommands.java
+++ b/core/src/main/java/io/kestra/core/models/tasks/runners/TaskCommands.java
@@ -1,6 +1,7 @@
 package io.kestra.core.models.tasks.runners;
 
 import java.nio.file.Path;
+import java.time.Duration;
 import java.util.List;
 import java.util.Map;
 
@@ -27,4 +28,6 @@ public interface TaskCommands {
     default boolean outputDirectoryEnabled() {
         return Boolean.TRUE.equals(this.getEnableOutputDirectory());
     }
+
+    Duration getTimeout();
 }


Test patch:
diff --git a/core/src/test/java/io/kestra/core/models/tasks/runners/TaskRunnerTest.java b/core/src/test/java/io/kestra/core/models/tasks/runners/TaskRunnerTest.java
index 4b0f92248..8be40850c 100644
--- a/core/src/test/java/io/kestra/core/models/tasks/runners/TaskRunnerTest.java
+++ b/core/src/test/java/io/kestra/core/models/tasks/runners/TaskRunnerTest.java
@@ -1,7 +1,6 @@
 package io.kestra.core.models.tasks.runners;
 
 import io.kestra.core.exceptions.IllegalVariableEvaluationException;
-import io.kestra.core.models.tasks.runners.*;
 import io.kestra.core.runners.RunContext;
 import io.micronaut.context.ApplicationContext;
 import io.micronaut.test.extensions.junit5.annotation.MicronautTest;
@@ -9,6 +8,7 @@ import jakarta.inject.Inject;
 import org.junit.jupiter.api.Test;
 
 import java.nio.file.Path;
+import java.time.Duration;
 import java.util.HashMap;
 import java.util.List;
 import java.util.Map;
@@ -180,5 +180,10 @@ public class TaskRunnerTest {
         public Boolean getEnableOutputDirectory() {
             return true;
         }
+
+        @Override
+        public Duration getTimeout() {
+            return null;
+        }
     }
 }
Repository: detekt/detekt (kotlin)

Issue:
UnusedUnaryOperator>aliases' is misspelled or does not exist
Version of detekt used: da8b164c5da3a2c8017452355c1754df7344c8a7

It seems that if a rule does not have the `@Alias` annotation (like `UnusedUnaryOperator`) then putting the `alias` property in the configuration file for it leads to an error:

```log
Property 'potential-bugs>UnusedUnaryOperator>aliases' is misspelled or does not exist. This error may also indicate a detekt plugin is necessary to handle the 'potential-bugs>UnusedUnaryOperator>aliases' key.
```

Pull request:
This issues was added with #7312. Well, in that issue we added the option to customize `aliases` but I forgot to allow that configuration in all the rules.

Fixes #7816

Patch:
diff --git a/detekt-core/src/main/kotlin/io/gitlab/arturbosch/detekt/core/config/validation/ConfigValidation.kt b/detekt-core/src/main/kotlin/io/gitlab/arturbosch/detekt/core/config/validation/ConfigValidation.kt
index fe8058287b82..6f78e570259e 100644
--- a/detekt-core/src/main/kotlin/io/gitlab/arturbosch/detekt/core/config/validation/ConfigValidation.kt
+++ b/detekt-core/src/main/kotlin/io/gitlab/arturbosch/detekt/core/config/validation/ConfigValidation.kt
@@ -28,6 +28,7 @@ internal val DEFAULT_PROPERTY_EXCLUDES = setOf(
     ".*>.*>active",
     ".*>.*>autoCorrect",
     ".*>severity",
+    ".*>.*>aliases",
     ".*>.*>severity",
     ".*>.*>ignoreAnnotated",
     ".*>.*>ignoreFunction",


Test patch:
diff --git a/detekt-core/src/test/resources/common_known_sections.yml b/detekt-core/src/test/resources/common_known_sections.yml
index b8cb3aeea60b..27ab64d2a498 100644
--- a/detekt-core/src/test/resources/common_known_sections.yml
+++ b/detekt-core/src/test/resources/common_known_sections.yml
@@ -11,3 +11,7 @@ console-reports:
   active: true
   exclude:
     - 'FileBasedFindingsReport'
+
+potential-bugs:
+  UnusedUnaryOperator:
+    aliases: ['an-alias']
Repository: fika-lang/fika (elixir)

Issue:
Support pattern matching "record" types
To do this, add "record" type to the "pattern" parser.

Pull request:
Allow record patterns in case expression
Closes #68 

Patch:
diff --git a/lib/fika/compiler/parser/pattern.ex b/lib/fika/compiler/parser/pattern.ex
index 16c2191..b3096bd 100644
--- a/lib/fika/compiler/parser/pattern.ex
+++ b/lib/fika/compiler/parser/pattern.ex
@@ -40,13 +40,37 @@ defmodule Fika.Compiler.Parser.Pattern do
     |> ignore(string("}"))
     |> Helper.to_ast(:tuple)
 
+  key_value =
+    allow_space
+    |> concat(identifier)
+    |> concat(allow_space)
+    |> ignore(string(":"))
+    |> concat(allow_space)
+    |> parsec(:pattern)
+    |> Helper.to_ast(:key_value)
+
+  record =
+    wrap(optional(string("Foo")))
+    |> ignore(string("{"))
+    |> concat(key_value)
+    |> repeat(
+      allow_space
+      |> ignore(string(","))
+      |> concat(allow_space)
+      |> concat(key_value)
+    )
+    |> optional(ignore(string(",")))
+    |> ignore(string("}"))
+    |> Helper.to_ast(:record)
+
   pattern =
     choice([
       atom_literal,
       string_literal,
       integer_literal,
       identifier,
-      tuple
+      tuple,
+      record
     ])
 
   defcombinator :pattern, pattern


Test patch:
diff --git a/test/fika/compiler/parser/pattern_test.exs b/test/fika/compiler/parser/pattern_test.exs
index 1ac00c0..b92f36e 100644
--- a/test/fika/compiler/parser/pattern_test.exs
+++ b/test/fika/compiler/parser/pattern_test.exs
@@ -36,4 +36,12 @@ defmodule Fika.Compiler.Parser.PatternTest do
              ]
            } == TestParser.pattern!(str)
   end
+
+  test "record pattern" do
+    str = "{foo: \"bar\"}"
+
+    assert {:record, {1, 0, 12}, nil,
+            [{{:identifier, {1, 0, 4}, :foo}, {:string, {1, 0, 11}, ["bar"]}}]} ==
+             TestParser.pattern!(str)
+  end
 end
diff --git a/test/fika/compiler/type_checker/match_test.exs b/test/fika/compiler/type_checker/match_test.exs
index 475f071..b53bb69 100644
--- a/test/fika/compiler/type_checker/match_test.exs
+++ b/test/fika/compiler/type_checker/match_test.exs
@@ -194,11 +194,6 @@ defmodule Fika.Compiler.TypeChecker.Types.MatchTest do
   test "match_case for record with a union inside" do
     str = "{name: String, id: Int, x: :a | :b | :c}"
     {:type, _, rhs} = TestParser.type_str!(str)
-    # env = %{scope: %{}}
-    # pattern = TestParser.expression!("{name: x}")
-    # assert {:ok, env, unmatched} = Match.match_case(env, pattern, rhs)
-    # assert unmatched == []
-    # assert env.scope[:x] == :String
 
     pattern = TestParser.expression!("{x: :a}")
     assert {:ok, env, unmatched} = Match.match_case(%{}, pattern, rhs)