This file has been truncated, but you can view the full file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import tarfile | |
import io | |
from io import BytesIO | |
def convert_to_binary(): | |
# Raw histogram data as (size, count) pairs | |
histogram = [ | |
(1, 47584838861), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Subject: [PATCH] Exclude `incomin&g` from lint-spelling | |
Before: | |
% test/lint/lint-spelling.py | |
src/qt/forms/optionsdialog.ui:345: incomin ==> incoming | |
After: | |
% test/lint/lint-spelling.py | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Subject: [PATCH] TODO | |
--- | |
Index: src/test/util_tests.cpp | |
IDEA additional info: | |
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP | |
<+>UTF-8 | |
=================================================================== | |
diff --git a/src/test/util_tests.cpp b/src/test/util_tests.cpp | |
--- a/src/test/util_tests.cpp (revision 8b13872aa2960e66e0bf8542fcb5b8dda68c5d8c) | |
+++ b/src/test/util_tests.cpp (date 1724237518191) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
See related discussions: | |
* https://github.com/bitcoin/bitcoin/pull/28280#discussion_r1676800505 | |
* https://github.com/bitcoin/bitcoin/pull/28280#discussion_r1676801434 | |
* https://github.com/bitcoin/bitcoin/pull/17487#discussion_r402037193 | |
```diff | |
--- | |
diff --git a/src/test/coins_tests.cpp b/src/test/coins_tests.cpp | |
--- a/src/test/coins_tests.cpp (revision 9f3bf64d29c497fb90406974548a717ba5918b25) | |
+++ b/src/test/coins_tests.cpp (date 1723646168861) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Copyright (c) 2011-2022 The Bitcoin Core developers | |
// Distributed under the MIT software license, see the accompanying | |
// file COPYING or http://www.opensource.org/licenses/mit-license.php. | |
#include <test/data/base58_encode_decode.json.h> | |
#include <base58.h> | |
#include <test/util/json.h> | |
#include <test/util/random.h> | |
#include <test/util/setup_common.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Copyright (c) 2024 The Bitcoin Core developers | |
// Distributed under the MIT software license, see the accompanying | |
// file COPYING or https://www.opensource.org/licenses/mit-license.php. | |
#include <bench/bench.h> | |
#include <chainparams.h> | |
#include <wallet/coincontrol.h> | |
#include <consensus/merkle.h> | |
#include <kernel/chain.h> | |
#include <node/context.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@BenchmarkMode(Mode.Throughput) | |
@State(Scope.Benchmark) | |
@Fork(value = 1) | |
@Measurement(iterations = 3, time = 1) | |
@Warmup(iterations = 3, time = 1) | |
public class LongNumberParsing { | |
static final String DIGITS = "1234567890"; | |
static final int REPETITIONS = 100; | |
static final String LONG_INT = join("", nCopies(REPETITIONS, DIGITS)); | |
static final String LONG_FP = DIGITS + "." + join("", nCopies(REPETITIONS - 1, DIGITS)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:collection/collection.dart'; | |
import 'package:flutter/material.dart'; | |
void main() => runApp(const SticksApp()); | |
class SticksApp extends StatelessWidget { | |
const SticksApp({super.key}); | |
@override | |
Widget build(BuildContext context) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/material.dart'; | |
void main() => runApp(const MyApp()); | |
class MyApp extends StatelessWidget { | |
const MyApp({Key? key}) : super(key: key); | |
@override | |
Widget build(BuildContext context) => const MaterialApp(home: Scaffold(body: MyStatelessWidget())); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.crossover.trial; | |
import java.time.LocalDateTime; | |
import java.util.Arrays; | |
import java.util.regex.Matcher; | |
import java.util.regex.Pattern; | |
import static org.junit.Assert.assertEquals; | |
public class Solution { |
NewerOlder