Skip to content

Commit 96a0b65

Browse files
#3746 fix pre-commit: trailing whitespace, missing newline, shebang chmod
Signed-off-by: Madhu Mohan Jaishankar <madhu.mohan.jaishankar@ibm.com>
1 parent 450103b commit 96a0b65

3 files changed

Lines changed: 21 additions & 22 deletions

File tree

.secrets.baseline

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"files": "package-lock.json|Cargo.lock|^.secrets.baseline$|scripts/sign_image.sh|scripts/zap|sonar-project.properties|^/Users/brian/dev/github.ibm.com/contextforge-org/sps-pipeline-config/.secrets.baseline$|^./.secrets.baseline$",
44
"lines": null
55
},
6-
"generated_at": "2026-03-27T11:29:30Z",
6+
"generated_at": "2026-03-27T14:21:44Z",
77
"plugins_used": [
88
{
99
"name": "AWSKeyDetector"
@@ -10142,87 +10142,87 @@
1014210142
"hashed_secret": "d63b39580934e062f89aae63426d2f2c77c3e258",
1014310143
"is_secret": false,
1014410144
"is_verified": false,
10145-
"line_number": 501,
10145+
"line_number": 502,
1014610146
"type": "Base64 High Entropy String",
1014710147
"verified_result": null
1014810148
},
1014910149
{
1015010150
"hashed_secret": "586a55a9b8b97f0cd88e24ce8279ebc955949688",
1015110151
"is_secret": false,
1015210152
"is_verified": false,
10153-
"line_number": 502,
10153+
"line_number": 503,
1015410154
"type": "Secret Keyword",
1015510155
"verified_result": null
1015610156
},
1015710157
{
1015810158
"hashed_secret": "00cafd126182e8a9e7c01bb2f0dfd00496be724f",
1015910159
"is_secret": false,
1016010160
"is_verified": false,
10161-
"line_number": 518,
10161+
"line_number": 519,
1016210162
"type": "Secret Keyword",
1016310163
"verified_result": null
1016410164
},
1016510165
{
1016610166
"hashed_secret": "7b1552c7c7ffb8bd70b5666e5997c8e017630aab",
1016710167
"is_secret": false,
1016810168
"is_verified": false,
10169-
"line_number": 1936,
10169+
"line_number": 1937,
1017010170
"type": "Base64 High Entropy String",
1017110171
"verified_result": null
1017210172
},
1017310173
{
1017410174
"hashed_secret": "9fb7fe1217aed442b04c0f5e43b5d5a7d3287097",
1017510175
"is_secret": false,
1017610176
"is_verified": false,
10177-
"line_number": 2704,
10177+
"line_number": 2705,
1017810178
"type": "Secret Keyword",
1017910179
"verified_result": null
1018010180
},
1018110181
{
1018210182
"hashed_secret": "72cb70dbbafe97e5ea13ad88acd65d08389439b0",
1018310183
"is_secret": false,
1018410184
"is_verified": false,
10185-
"line_number": 3332,
10185+
"line_number": 3333,
1018610186
"type": "Secret Keyword",
1018710187
"verified_result": null
1018810188
},
1018910189
{
1019010190
"hashed_secret": "ee977806d7286510da8b9a7492ba58e2484c0ecc",
1019110191
"is_secret": false,
1019210192
"is_verified": false,
10193-
"line_number": 5366,
10193+
"line_number": 5468,
1019410194
"type": "Secret Keyword",
1019510195
"verified_result": null
1019610196
},
1019710197
{
1019810198
"hashed_secret": "f2e7745f43b0ef0e2c2faf61d6c6a28be2965750",
1019910199
"is_secret": false,
1020010200
"is_verified": false,
10201-
"line_number": 5858,
10201+
"line_number": 5960,
1020210202
"type": "Secret Keyword",
1020310203
"verified_result": null
1020410204
},
1020510205
{
1020610206
"hashed_secret": "4a249743d4d2241bd2ae085b4fe654d089488295",
1020710207
"is_secret": false,
1020810208
"is_verified": false,
10209-
"line_number": 7025,
10209+
"line_number": 7127,
1021010210
"type": "Secret Keyword",
1021110211
"verified_result": null
1021210212
},
1021310213
{
1021410214
"hashed_secret": "0c8d051d3c7eada5d31b53d9936fce6bcc232ae2",
1021510215
"is_secret": false,
1021610216
"is_verified": false,
10217-
"line_number": 7163,
10217+
"line_number": 7265,
1021810218
"type": "Secret Keyword",
1021910219
"verified_result": null
1022010220
},
1022110221
{
1022210222
"hashed_secret": "f2b14f68eb995facb3a1c35287b778d5bd785511",
1022310223
"is_secret": false,
1022410224
"is_verified": false,
10225-
"line_number": 7492,
10225+
"line_number": 7594,
1022610226
"type": "Secret Keyword",
1022710227
"verified_result": null
1022810228
}

plugins_rust/retry_with_backoff/compare_performance.py

100644100755
Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ def run_load_scenario(
210210
warmup: int,
211211
) -> Optional[Dict[str, Any]]:
212212
"""Run load-based benchmark scenario.
213-
213+
214214
Returns:
215215
Dictionary with scenario results, or None if benchmark failed.
216216
"""
@@ -373,7 +373,7 @@ def run_sequential_scenario(
373373
warmup: int,
374374
) -> Optional[Dict[str, Any]]:
375375
"""Run sequential call pattern scenario.
376-
376+
377377
Returns:
378378
Dictionary with scenario results, or None if benchmark failed.
379379
"""
@@ -587,34 +587,34 @@ def main():
587587
if all_results:
588588
# Calculate overall statistics
589589
speedups = [r["speedup"] for r in all_results if r["speedup"] is not None]
590-
590+
591591
if speedups:
592592
avg_speedup = statistics.mean(speedups)
593593
min_speedup = min(speedups)
594594
max_speedup = max(speedups)
595-
595+
596596
print(f"\n🚀 Rust Speedup Overview:")
597597
print(f" Average: {avg_speedup:.2f}x faster")
598598
print(f" Min: {min_speedup:.2f}x faster")
599599
print(f" Max: {max_speedup:.2f}x faster")
600-
600+
601601
# Per-scenario breakdown
602602
print(f"\n📈 Scenario Breakdown:")
603603
print(f"{'Scenario':<45} {'Python (µs)':>14} {'Rust (µs)':>12} {'Speedup':>10}")
604604
print(f"{'-' * 45} {'-' * 14} {'-' * 12} {'-' * 10}")
605-
605+
606606
for result in all_results:
607607
name = result["name"][:44]
608608
py_time = result["python"]["mean"] if result["python"] else float('inf')
609609
rust_time = result["rust"]["mean"] if result["rust"] else float('inf')
610610
speedup = result["speedup"] if result["speedup"] else float('inf')
611-
611+
612612
py_str = f"{py_time:>14.3f}" if py_time != float('inf') else "N/A"
613613
rust_str = f"{rust_time:>12.3f}" if rust_time != float('inf') else "N/A"
614614
speedup_str = f"{speedup:>10.2f}x" if speedup != float('inf') else "N/A"
615-
615+
616616
print(f"{name:<45} {py_str:>14} {rust_str:>12} {speedup_str:>10}")
617-
617+
618618
# Overall recommendation
619619
print(f"\n💡 Recommendation:")
620620
if speedups:

plugins_rust/retry_with_backoff/python/retry_with_backoff_rust/__init__.pyi

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,3 @@ class RetryStateManager:
1919
def compute_delay(self, attempt: builtins.int) -> builtins.int: ...
2020
def check_failure(self, is_error: builtins.bool, status_code: typing.Optional[builtins.int]) -> builtins.bool: ...
2121
def check_and_update(self, tool: builtins.str, request_id: builtins.str, is_error: builtins.bool, status_code: typing.Optional[builtins.int]) -> tuple[builtins.bool, builtins.int]: ...
22-

0 commit comments

Comments
 (0)