message stringlengths 6 474 | diff stringlengths 8 5.22k |
|---|---|
infra/common.sh: add shard_should_run()
Detects whether test block should be run in the current test shard.
if shard_should_run; then
...
fi | @@ -71,3 +71,30 @@ setup_ccache() {
export PATH="/usr/lib/ccache:${PATH}"
fi
}
+
+#######################################
+# Detects whether test block should be run in the current test shard.
+# Globals:
+# TEST_TOTAL_SHARDS: Valid range: [1, N]. Defaults to 1.
+# TEST_SHARD_INDEX: Valid range: [0, TEST_TOTAL_SHARDS).... |
Cleanup API for compute_variance | #include <cassert>
/**
- * @brief Generate a prefix-sum array using Brent-Kung algorithm.
+ * @brief Generate a prefix-sum array using the Brent-Kung algorithm.
*
* This will take an input array of the form:
* v0, v1, v2, ...
@@ -106,34 +106,35 @@ static void brent_kung_prefix_sum(
* The routine computes both in a sing... |
volteer: Remove c10_gate_change
This is unneeded, now that the EC doesn't need to control power
sequencing.
TEST=make buildall
BRANCH=none | @@ -169,9 +169,6 @@ enum sensor_id {
SENSOR_COUNT,
};
-/* TODO: b/143375057 - Remove this code after power on. */
-void c10_gate_change(enum gpio_signal signal);
-
#endif /* !__ASSEMBLER__ */
#endif /* __CROS_EC_BOARD_H */
|
add_plugin: add support object library sources | @@ -49,9 +49,11 @@ function (add_plugintest testname)
restore_variable (${PLUGIN_NAME} ARG_LINK_ELEKTRA ALLOW_MATCH)
restore_variable (${PLUGIN_NAME} ARG_ADD_TEST)
restore_variable (${PLUGIN_NAME} ARG_INSTALL_TEST_DATA)
+ restore_variable (${PLUGIN_NAME} ARG_OBJECT_SOURCES)
set (TEST_SOURCES
$<TARGET_OBJECTS:cframework... |
Insert in logic for clearing PackageSparing Policy Injection Error | @@ -9662,8 +9662,14 @@ InjectError(
ReturnCode = EFI_DEVICE_ERROR;
continue;
}
- if (pDimms[Index]->SkuInformation.PackageSparingCapable &&
- pPayloadPackageSparingPolicy->Supported && pPayloadPackageSparingPolicy->Enable) {
+ /* If the package sparing policy has been enabled and executed,
+ Support Bit will be 0x00 bu... |
[bsp][imxrt1052] support auto update flash programming algorithm for wildfire board | @@ -46,3 +46,26 @@ objs = PrepareBuilding(env, RTT_ROOT, has_libcpu=False)
# make a building
DoBuilding(TARGET, objs)
+
+def Update_MDKFlashProgrammingAlgorithm(flash_dict):
+ import xml.etree.ElementTree as etree
+ from utils import xml_indent
+
+ project_tree = etree.parse('project.uvoptx')
+ root = project_tree.getr... |
Add auto-shebang functionality. | @@ -1080,12 +1080,14 @@ int main(int argc, const char **argv) {
(install-rule dest (dyn :binpath JANET_BINPATH))))))
(defn declare-binscript
- "Declare a janet file to be installed as an executable script. Creates
+ ``Declare a janet file to be installed as an executable script. Creates
a shim on windows. If hardcode i... |
Fix scanning text issues | @@ -104,10 +104,14 @@ const Balance = () => {
</Row>
<Row>
<Text fontSize={1} color="orange">
- {scanProgress.main} main wallet addresses scanned
- {scanProgress.change} change wallet addresses scanned
+ {scanProgress.main === null ? 0 : scanProgress.main} main
+ wallet addresses scanned
</Text>
</Row>
+ <Text fontSize... |
Doxygen for tsch-asn.h | /************ Types ***********/
-/* The ASN is an absolute slot number over 5 bytes. */
+/** \brief The ASN is an absolute slot number over 5 bytes. */
struct tsch_asn_t {
uint32_t ls4b; /* least significant 4 bytes */
uint8_t ms1b; /* most significant 1 byte */
};
-/* For quick modulo operation on ASN */
+/** \brief ... |
workflow: fix `if` syntax and edit release instead | @@ -10,7 +10,8 @@ on:
jobs:
build:
- runs-on: ubuntu-latest
+ #runs-on: ubuntu-latest
+ runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
@@ -34,13 +35,13 @@ jobs:
echo "##[set-output name=artifact-metadata;]${ARTIFACT_NAME}"
id: git-vars
- name: Build release package
- env:
- GITHUB_TOKEN: ${{ secrets.GITHUB_TO... |
mangoapp: fix broken fsr sharpness | @@ -141,6 +141,8 @@ void msg_read_thread(){
g_fsrUpscale = mangoapp_v1->fsrUpscale;
if (params->fsr_steam_sharpness < 0)
g_fsrSharpness = mangoapp_v1->fsrSharpness;
+ else
+ g_fsrSharpness = params->fsr_steam_sharpness - mangoapp_v1->fsrSharpness;
}
if (!HUDElements.params->enabled[OVERLAY_PARAM_ENABLED_mangoapp_steam]... |
chip/npcx/gpio-npcx5.c: Format with clang-format
BRANCH=none
TEST=none | @@ -68,16 +68,18 @@ static void __gpio_wk0efgh_interrupt(void)
return;
}
if (IS_ENABLED(CONFIG_HOST_INTERFACE_ESPI)) {
- if (IS_BIT_SET(NPCX_WKEN(MIWU_TABLE_0, MIWU_GROUP_5), 5)
- &&
- IS_BIT_SET(NPCX_WKPND(MIWU_TABLE_0, MIWU_GROUP_5), 5)) {
+ if (IS_BIT_SET(NPCX_WKEN(MIWU_TABLE_0, MIWU_GROUP_5),
+ 5) &&
+ IS_BIT_SET(N... |
Add ++rev for reversing bloq order.
This is different from ++swp in that it turns leading zeroes into
trailing zeroes correctly, rather than ignoring them. | ?~ b 0
(add (lsh a c (end a 1 i.b)) $(c +(c), b t.b))
::
+++ rev
+ :: reverses block order, accounting for leading zeroes
+ ::
+ :: boz: block size
+ :: len: size of dat, in boz
+ :: dat: data to flip
+ ~/ %rev
+ |= [boz=bloq len=@ud dat=@]
+ ^- @
+ =. dat (end boz len dat)
+ %^ lsh boz
+ (sub len (met boz dat))
+ (swp... |
add titles to next/prev links | {% if next or prev %}
<div class="rst-footer-buttons row" role="navigation" aria-label="footer navigation">
{% if next %}
- <a href="{{ next.link|e }}" class="btn btn-neutral float-right" title="{{ next.title|striptags|e }}" accesskey="n">Next <span class="fa fa-arrow-circle-right"></span></a>
+ <a href="{{ next.link|e... |
Write draw ids at the right time (fix flicker); | @@ -583,12 +583,14 @@ next:
if (req->vertexCount > 0 && (!req->instanced || !batch)) {
*(req->vertices) = lovrGraphicsMapBuffer(STREAM_VERTEX, req->vertexCount);
uint8_t* ids = lovrGraphicsMapBuffer(STREAM_DRAWID, req->vertexCount);
- memset(ids, batch ? batch->drawCount : 0, req->vertexCount * sizeof(uint8_t));
if (re... |
VERSION bump to version 2.2.35 | @@ -65,7 +65,7 @@ endif()
# micro version is changed with a set of small changes or bugfixes anywhere in the project.
set(SYSREPO_MAJOR_VERSION 2)
set(SYSREPO_MINOR_VERSION 2)
-set(SYSREPO_MICRO_VERSION 34)
+set(SYSREPO_MICRO_VERSION 35)
set(SYSREPO_VERSION ${SYSREPO_MAJOR_VERSION}.${SYSREPO_MINOR_VERSION}.${SYSREPO_MI... |
Note about regions added | @@ -71,6 +71,10 @@ esp_mem_region_t mem_regions[] = {
// On startup, user must call function to assign memory regions
esp_mem_assignmemory(mem_regions, ESP_ARRAYSIZE(mem_regions));
\endcode
+ *
+ * \note Even with multiple regions, maximal allocation size is length of biggest region.
+ * In case of example, we have <b>... |
board/zinger: Disable CONFIG_DEBUG_PRINTF
We're getting low on RO flash space, so disable CONFIG_DEBUG_PRINTF to
free up more space.
BRANCH=none
TEST=make buildall | #undef CONFIG_WATCHDOG_PERIOD_MS
#define CONFIG_WATCHDOG_PERIOD_MS 2300
-/* debug printf flash footprinf is about 1400 bytes */
-#define CONFIG_DEBUG_PRINTF
+/* debug printf flash footprint is about 1400 bytes */
+#undef CONFIG_DEBUG_PRINTF
#define UARTN CONFIG_UART_CONSOLE
#define UARTN_BASE STM32_USART_BASE(CONFIG_UA... |
out_stdout: use nanosecond API | #include <fluent-bit/flb_output.h>
#include <fluent-bit/flb_utils.h>
-
+#include <fluent-bit/flb_time.h>
#include <msgpack.h>
#include "stdout.h"
@@ -47,12 +47,16 @@ void cb_stdout_flush(void *data, size_t bytes,
(void) i_ins;
(void) out_context;
(void) config;
+ flb_time tmp;
+ msgpack_object *p;
msgpack_unpacked_init... |
Update: slight refinement in how to handle comparisons between set elements | @@ -283,25 +283,31 @@ static bool NAL_JunctionNotRightNested(Term *conclusionTerm)
return false;
}
-static bool EmptySetOp(Term *conclusionTerm) //to be refined, with atom appears twice restriction for now it's fine
+static bool EmptySetOp(Term *conclusionTerm, Truth conclusionTruth) //to be refined, with atom appears ... |
testing/fstest: Don't reuse the deleted name
to simplify the root cause analysis | @@ -200,7 +200,7 @@ static bool fstest_checkexist(FAR struct fstest_filedesc_s *file)
for (i = 0; i < CONFIG_TESTING_FSTEST_MAXOPEN; i++)
{
- if (!g_files[i].deleted && &g_files[i] != file &&
+ if (&g_files[i] != file && g_files[i].name &&
strcmp(g_files[i].name, file->name) == 0)
{
ret = true;
|
NNABLA: build as a module
NNABLA_RT should compile as a module to provide the necessary support
for the dnn test application | @@ -108,7 +108,7 @@ CSRCS += $(SRC)/runtime/runtime_internal.c
CFLAGS += -Wno-shadow -Wno-format
-BIN = libnnablart$(LIBEXT)
+MODULE = $(CONFIG_NNABLA_RT)
nnabla.zip:
$(Q) curl -L https://github.com/sony/nnabla-c-runtime/archive/refs/tags/v$(CONFIG_NNABLA_RT_VER).zip -o nnabla.zip
|
Fixed fw recovery case where there are 100% non-functional modules | @@ -203,7 +203,7 @@ Load(
/*Get the list of functional and non-functional dimms*/
ReturnCode = GetDimmList(pNvmDimmConfigProtocol, pCmd, DIMM_INFO_CATEGORY_NONE, &pFunctionalDimms, &FunctionalDimmCount);
- if (EFI_ERROR(ReturnCode)) {
+ if (EFI_ERROR(ReturnCode) && ReturnCode != EFI_NOT_FOUND) {
goto Finish;
}
|
Widen MT/s column in test runner report | @@ -132,7 +132,7 @@ def format_solo_result(image, result):
tCTime = "%.3f s" % result.cTime
tCMTS = "%.3f MT/s" % result.cRate
- return "%-32s | %8s | %9s | %9s | %10s" % \
+ return "%-32s | %8s | %9s | %9s | %11s" % \
(name, tPSNR, tTTime, tCTime, tCMTS)
@@ -159,7 +159,7 @@ def format_result(image, reference, result):... |
README.md: Use version 2.05.29 | @@ -34,11 +34,11 @@ https://github.com/dresden-elektronik/deconz-rest-plugin/wiki/Supported-Devices
### Install deCONZ
1. Download deCONZ package
- wget http://www.dresden-elektronik.de/rpi/deconz/beta/deconz-2.05.28-qt5.deb
+ wget http://www.dresden-elektronik.de/rpi/deconz/beta/deconz-2.05.29-qt5.deb
2. Install deCON... |
BugID:17922164: Fix ssc1667 keil compile error which is due to the debug dependence | @@ -10,7 +10,7 @@ SUPPORT_MBINS := no
HOST_MCU_NAME := SSCP131
ENABLE_VFP := 0
-$(NAME)_COMPONENTS += $(HOST_MCU_FAMILY) newlib_stub
+$(NAME)_COMPONENTS += $(HOST_MCU_FAMILY) osal_aos newlib_stub
$(NAME)_SOURCES += config/k_config.c \
startup/board.c \
|
Draw selection rectangle with line height rather than font height | @@ -189,7 +189,7 @@ void lv_draw_label(const lv_area_t * coords, const lv_area_t * mask, const lv_st
sel_coords.x1 = pos.x;
sel_coords.y1 = pos.y;
sel_coords.x2 = pos.x + letter_w + style->text.letter_space - 1;
- sel_coords.y2 = pos.y + lv_font_get_height(font) - 1;
+ sel_coords.y2 = pos.y + line_height - 1;
lv_draw_r... |
fuzz: don't modify shared state without write lock | @@ -434,7 +434,7 @@ bool input_postProcessFile(run_t* run) {
}
bool input_prepareDynamicFileForMinimization(run_t* run) {
- MX_SCOPED_RWLOCK_READ(&run->global->io.dynfileq_mutex);
+ MX_SCOPED_RWLOCK_WRITE(&run->global->io.dynfileq_mutex);
if (run->global->io.dynfileqCnt == 0) {
LOG_F("The dynamic file corpus is empty (... |
.travis.yml update for conda python3.5 | #!/bin/bash
set -e -x
-if [[ "$TRAVIS_PYTHON_VERSION" == "2.7" ]]; then
- wget http://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh;
-else
+# UnsatisfiableError: The following specifications were found to be in conflict:
+# - pyopenssl 17.0.0 py36_0 -> python 3.6*
+# - python 3.5*
+if [[ ... |
u3: refactors u3h_gut internals to more closely match u3h_git | @@ -614,7 +614,7 @@ _ch_buck_gut(u3h_buck* hab_u, u3_noun key)
for ( i_w = 0; i_w < hab_u->len_w; i_w++ ) {
u3_noun kev = u3h_slot_to_noun(hab_u->sot_w[i_w]);
if ( _(u3r_sung(key, u3h(kev))) ) {
- return u3k(u3t(kev));
+ return u3t(kev);
}
}
return u3_none;
@@ -643,7 +643,7 @@ _ch_node_gut(u3h_node* han_u, c3_w lef_w, ... |
Don't discard const. | @@ -128,7 +128,7 @@ int allow(uint32_t driver, uint32_t allow, void* ptr, size_t size) {
int allow_readonly(uint32_t driver, uint32_t allow, const void* ptr, size_t size) {
register uint32_t r0 asm ("r0") = driver;
register uint32_t r1 asm ("r1") = allow;
- register void* r2 asm ("r2") = ptr;
+ register const void* r2 ... |
add ip_user_files to delete command in core.tcl | @@ -7,7 +7,7 @@ set elements [split $core_name _]
set project_name [join [lrange $elements 0 end-2] _]
set version [string trimleft [join [lrange $elements end-1 end] .] v]
-file delete -force tmp/cores/$core_name tmp/cores/$project_name.cache tmp/cores/$project_name.hw tmp/cores/$project_name.xpr
+file delete -force t... |
Fix error message for s_server -psk option
Previously if -psk was given a bad key it would print "Not a hex
number 's_server'".
CLA: Trivial | @@ -1407,7 +1407,7 @@ int s_server_main(int argc, char *argv[])
for (p = psk_key = opt_arg(); *p; p++) {
if (isxdigit(_UC(*p)))
continue;
- BIO_printf(bio_err, "Not a hex number '%s'\n", *argv);
+ BIO_printf(bio_err, "Not a hex number '%s'\n", psk_key);
goto end;
}
break;
|
Fixed block info links for bitcoin family | @@ -100,15 +100,15 @@ namespace MiningCore.Api
{ CoinType.XMR, "https://xmrchain.net/block/{0}" },
{ CoinType.ETH, "https://etherscan.io/block/{0}" },
{ CoinType.ETC, "https://gastracker.io/block/{0}" },
- { CoinType.LTC, "http://explorer.litecoin.net/block/{0}" },
- { CoinType.BCC, "http://blockdozer.com/insight/block... |
Docker: Install yaml-cpp on Debian Sid | @@ -38,6 +38,7 @@ RUN apt-get update && apt-get -y install \
libuv1-dev \
libxerces-c-dev \
libyajl-dev \
+ libyaml-cpp-dev \
libzmq3-dev \
llvm \
maven \
|
no cuda for tensorflow test | @@ -154,9 +154,9 @@ Unit_Test_Tensorflow:
- apt-get update -qq && apt-get install -y -qq
- apt-get install -y nvidia-cuda-toolkit
- apt-get install -y wget
- - wget https://storage.googleapis.com/tensorflow/libtensorflow/libtensorflow-gpu-linux-x86_64-2.4.0.tar.gz
- - mkdir tensorflow && tar -C tensorflow -xvzf libtens... |
input_thread: temporary disable old threading mechanism | @@ -799,7 +799,7 @@ int flb_input_thread_collect(struct flb_input_instance *ins,
}
chunks_len = it->bufpos - remaining_bytes;
- flb_input_chunk_append_raw(ins, NULL, 0, it->buf, chunks_len);
+ //FIXMEflb_input_chunk_append_raw(ins, NULL, 0, it->buf, chunks_len);
memmove(it->buf, it->buf + chunks_len, remaining_bytes);
... |
config: allow log level 'warn' and 'warning' | @@ -390,7 +390,8 @@ static int set_log_level(struct flb_config *config, const char *v_str)
if (strcasecmp(v_str, "error") == 0) {
config->verbose = 1;
}
- else if (strcasecmp(v_str, "warning") == 0) {
+ else if (strcasecmp(v_str, "warn") == 0 ||
+ strcasecmp(v_str, "warning") == 0) {
config->verbose = 2;
}
else if (str... |
Add step by step instructions to Readme | @@ -10,7 +10,21 @@ Follow instructions on the Google Benchmark repository to build and install [Goo
3. `-DCMAKE_PREFIX_PATH="File/path/to/Google/Benchmark/"`
#### Example:
-`cmake . -Bbuild -GNinja -DCMAKE_EXE_LINKER_FLAGS="-lcrypto -lz" -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=1 -D... |
Add more info to publish message | @@ -96,7 +96,7 @@ prv_try_send(void) {
/* Now try to publish message */
if (lwesp_mqtt_client_is_connected(mqtt_client)) {
if ((res = lwesp_mqtt_client_publish(mqtt_client, topic, tx_data, LWESP_U16(strlen(tx_data)), LWESP_MQTT_QOS_AT_LEAST_ONCE, 0, NULL)) == lwespOK) {
- debug_printf("[MQTT Cayenne] Publishing\r\n");
... |
pyocf: extend error volume capabilities
Adding option to
1. inject error based on I/O number
2. arm/disarm error injection for easier testing | @@ -305,12 +305,7 @@ class Volume(Structure):
if size == 0:
size = int(self.size) - int(offset)
- print_buffer(
- self._storage,
- size,
- ignore=ignore,
- **kwargs
- )
+ print_buffer(self._storage, size, ignore=ignore, **kwargs)
def md5(self):
m = md5()
@@ -319,20 +314,62 @@ class Volume(Structure):
class ErrorDevice(... |
Docs: Clarify PBlockAddress value in SSDT-PLUG-ALT | * for Alder Lake CPUs and possibly others with CPU objects
* declared as Device instead of Processor.
*
- * Note, just like Rocket Lake CPUs, Alder Lake CPUs require
+ * Note 1: Just like Rocket Lake CPUs, Alder Lake CPUs require
* custom CPU profile via CPUFriend.
* REF: https://github.com/dortania/bugtracker/issues/1... |
Update options window with checkbox for enabling fixed graph scaling | @@ -1238,6 +1238,7 @@ typedef enum _PHP_OPTIONS_INDEX
PHP_OPTIONS_INDEX_ENABLE_UNDECORATE_SYMBOLS,
PHP_OPTIONS_INDEX_ENABLE_COLUMN_HEADER_TOTALS,
PHP_OPTIONS_INDEX_ENABLE_CYCLE_CPU_USAGE,
+ PHP_OPTIONS_INDEX_ENABLE_GRAPH_SCALING,
PHP_OPTIONS_INDEX_ENABLE_MINIINFO_WINDOW,
PHP_OPTIONS_INDEX_ENABLE_LASTTAB_SUPPORT,
PHP_OP... |
uses pkcs8 private keys for %eyre cert installation | ^+ this
~| %install-effect-fail
?> ?=(^ liv)
- :: XX use pkcs8
- =/ key=wain (ring:en:pem:pkcs1 key.u.liv)
+ =/ key=wain (ring:en:pem:pkcs8 key.u.liv)
(emit %rule /install %cert `[key `wain`cer.u.liv])
:: +get-authz: get next ACME service domain authorization object
::
'n5Z5MqkYhlMI3J1tPRTp1nEt9fyGspBOO05gi148Qasp+3N+s... |
Ruby: Disable warning about invalid suffix | @@ -68,6 +68,7 @@ else ()
set (SWIG_COMPILE_FLAGS "${SWIG_COMPILE_FLAGS} -Wno-delete-non-virtual-dtor")
set (SWIG_COMPILE_FLAGS "${SWIG_COMPILE_FLAGS} -Wno-deprecated-register")
+ set (SWIG_COMPILE_FLAGS "${SWIG_COMPILE_FLAGS} -Wno-reserved-user-defined-literal")
set (SWIG_COMPILE_FLAGS "${SWIG_COMPILE_FLAGS} -Wno-macr... |
Remove bad printf | @@ -60,7 +60,6 @@ void SurviveSensorActivations_register_runtime(SurviveSensorActivations *self, s
if (self->runtime_offset == 0)
self->runtime_offset = runtime_offset;
else {
- printf("%f\n", self->runtime_offset - runtime_offset);
self->runtime_offset = self->runtime_offset * .90 + .1 * runtime_offset;
}
}
|
OcAppleBootCompatLib: Do not truncate physical addresses | @@ -238,7 +238,7 @@ ShouldUseCustomSlideOffset (
BOOLEAN Supported;
UINTN StartAddr;
UINTN EndAddr;
- UINTN DescEndAddr;
+ EFI_PHYSICAL_ADDRESS DescEndAddr;
UINT64 AvailableSize;
MaxAvailableSize = 0;
@@ -303,8 +303,7 @@ ShouldUseCustomSlideOffset (
continue;
}
- ASSERT (LAST_DESCRIPTOR_ADDR (Desc) < MAX_UINTN);
- Desc... |
sanitizers: if no request for sanitizers was made, print logs to /dev/tty | /* If no sanitzer support was requested, simply make it use abort() on errors */
#define kSAN_REGULAR "abort_on_error=1:handle_segv=0:handle_sigbus=0:handle_abort=0:" \
"handle_sigill=0:handle_sigfpe=0:allocator_may_return_null=1:" \
- "symbolize=1:detect_leaks=0:disable_coredump=0"
+ "symbolize=1:detect_leaks=0:disabl... |
Fix locating ServiceDll for some services on Windows 8 | * service support functions
*
* Copyright (C) 2010-2012 wj32
- * Copyright (C) 2019 dmex
+ * Copyright (C) 2019-2021 dmex
*
* This file is part of Process Hacker.
*
@@ -616,6 +616,50 @@ NTSTATUS PhGetThreadServiceTag(
return status;
}
+NTSTATUS PhpGetServiceDllName(
+ _In_ PPH_STRING ServiceKeyName,
+ _Out_ PPH_STRING*... |
testing picoquic_probe_new_path_ex return code | @@ -409,8 +409,8 @@ int client_loop_cb(picoquic_quic_t* quic, picoquic_packet_loop_cb_enum cb_mode,
if (picoquic_get_cnx_state(cb_ctx->cnx_client) == picoquic_state_ready && cb_ctx->multipath_probe_done == 0) {
for (int i = 0; i < cb_ctx->nb_alt_paths; i++) {
- if (picoquic_probe_new_path_ex(cb_ctx->cnx_client, (struct... |
Organize uniforms better; | @@ -44,12 +44,6 @@ const char* lovrShaderVertexPrefix = ""
"in vec4 lovrBoneWeights; \n"
"out vec2 texCoord; \n"
"out vec4 vertexColor; \n"
-"#ifdef GL_AMD_vertex_shader_viewport_index \n"
-"#define lovrViewportIndex gl_ViewportIndex \n"
-"#else \n"
-"uniform int lovrViewportIndex; \n"
-"#endif \n"
-"uniform int lovrVi... |
[CI] Second dummy commit to trigger CI build | @@ -35,8 +35,6 @@ def copy_kernel_headers():
else:
shutil.copy(source_path.as_posix(), include_path.as_posix())
- programs_root = Path(__file__).parents[1] / "programs"
-
if __name__ == "__main__":
copy_kernel_headers()
|
[libc][keil] fix the bug of _sys_read and _sys_write | @@ -156,23 +156,27 @@ int _sys_read(FILEHANDLE fh, unsigned char *buf, unsigned len, int mode)
return 0; /* error, but keep going */
}
size = read(STDIN_FILENO, buf, len);
- return 0; /* success */
+ return len - size; /* success */
#else
return 0; /* error */
#endif /* RT_USING_POSIX_DEVIO */
}
else if (fh == STDOUT |... |
Fix: Add SMAPE to IsRegressionMetric. | @@ -153,6 +153,7 @@ bool IsRegressionObjective(const TStringBuf lossDescription) {
bool IsRegressionMetric(ELossFunction lossFunction) {
return (IsRegressionObjective(lossFunction) ||
+ lossFunction == ELossFunction::SMAPE ||
lossFunction == ELossFunction::R2 ||
lossFunction == ELossFunction::MSLE ||
lossFunction == EL... |
mqtt: replace nghttp with http_parser references | @@ -13,7 +13,7 @@ idf_component_get_property(esp_hw_support_dir esp_hw_support COMPONENT_DIR)
idf_component_get_property(esp_event_dir esp_event COMPONENT_DIR)
idf_component_get_property(log_dir log COMPONENT_DIR)
idf_component_get_property(freertos_dir freertos COMPONENT_DIR)
-idf_component_get_property(nghttp_dir ngh... |
Fix crash when there are no printers (Issue | @@ -355,6 +355,9 @@ serverFindPrinter(const char *resource) /* I - Resource path */
*match = NULL; /* Matching printer */
+ if (cupsArrayCount(Printers) == 0)
+ return (NULL);
+
_cupsRWLockRead(&PrintersRWLock);
if (cupsArrayCount(Printers) == 1 || !strcmp(resource, "/ipp/print"))
{
|
Add error handling to hash.c | #include <kdb.h>
#include <kdbease.h>
#include <kdbtypes.h>
+#include <kdberrors.h>
#include <string.h>
#include <stdio.h>
@@ -32,14 +33,24 @@ static void hash_to_string(char string[65], const uint8_t hash[32]);
* @retval true If the computation was successful.
*/
kdb_boolean_t calculateSpecificationToken (char * hash_... |
Getting started with metrics as events. | @@ -44,21 +44,21 @@ void
evtDestroy(evt_t** evt)
{
if (!evt || !*evt) return;
- evt_t* o = *evt;
+ evt_t *edestroy = *evt;
- evtEvents(o); // Try to send events. We're doing this in an
+ evtEvents(edestroy); // Try to send events. We're doing this in an
// attempt to empty the evbuf before the evbuf
// is destroyed. An... |
pybricks/util_pb: ignore hsv with low s | @@ -23,6 +23,16 @@ void color_map_rgb_to_hsv(const pbio_color_rgb_t *rgb, pbio_color_hsv_t *hsv) {
// Standard conversion
pbio_color_rgb_to_hsv(rgb, hsv);
+ // For very low values, saturation is not reliable
+ if (hsv->v <= 3) {
+ hsv->s = 0;
+ }
+
+ // For very low values, hue is not reliable
+ if (hsv->s <= 3) {
+ hs... |
Inky Frame: Return latched SR state in read() regardless of debounce. | @@ -31,6 +31,10 @@ class Button:
self._last_value = None
def read(self):
+ if self.startup_state:
+ self.startup_state = False
+ return True
+
value = self.raw()
if value != self._last_value and time.ticks_ms() - self._changed > self._debounce_time:
self._last_value = value
|
fcb2: Fix moving to next location when buffer was full
When FCB sector was fully filled with data and there was no
space for new entry, function fcb2_getnext_in_area() returned
FCB2_ERR_CRC instead of FCB2_ERR_NOVAR.
This resulted in fcb2_init() clearing everything. | @@ -25,18 +25,27 @@ int
fcb2_getnext_in_area(struct fcb2 *fcb, struct fcb2_entry *loc)
{
int rc = FCB2_ERR_CRC;
- int off;
int len;
+ int next_data_offset;
+ int next_entry_offset;
while (rc == FCB2_ERR_CRC) {
len = loc->fe_data_len;
- off = loc->fe_data_off;
+ /* Next data offset in sector */
+ next_data_offset = loc-... |
Adds delete for move ctor/assigment for service dependency classes | @@ -73,8 +73,8 @@ namespace celix { namespace dm {
BaseServiceDependency(const BaseServiceDependency&) = delete;
BaseServiceDependency& operator=(const BaseServiceDependency&) = delete;
- BaseServiceDependency(BaseServiceDependency&&) noexcept = default;
- BaseServiceDependency& operator=(BaseServiceDependency&&) noexc... |
cram: fixed patch nuking timing regexp | @@ -32,14 +32,14 @@ Testing multiple samples with --xml
<?xml version="1.0" encoding="UTF-8"?>
<!-- Tests compiled with Criterion v2.3.2 -->
<testsuites name="Criterion Tests" tests="8" failures="2" errors="0" disabled="0">
- <testsuite name="asserts" tests="8" failures="2" errors="0" disabled="0" skipped="0" time="0.0... |
build: fix building manylinux wheels | @@ -8,10 +8,12 @@ set -e -x
cd /pyuv
rm -rf wheeltmp
+VERSIONS="cp27-cp27mu cp33-cp33m cp34-cp34m cp35-cp35m cp36-cp36m"
+
# Build
-for PYBIN in /opt/python/*/bin; do
- "$PYBIN/python" setup.py build_ext
- "$PYBIN/pip" wheel . -w wheeltmp
+for version in $VERSIONS; do
+ /opt/python/${version}/bin/python setup.py build_... |
libcupsfilters: More PPD preset rules, especially for HP
Checking the PPD file for the HP LaserJet 4050 (PostScript) found more
option/choice names of options which influence print quality:
Smoothing
Halftone
ProRes(600/1200/2400)
Also analyse choice names for options which contain "Resolution" in
their names. | @@ -2355,6 +2355,7 @@ ppdCacheAssignPresets(ppd_file_t *ppd,
((p = strcasestr(o, "resolution")) &&
!strcasestr(p, "enhance")) ||
strcasecmp(o, "RET") == 0 ||
+ strcasecmp(o, "Smoothing") == 0 || /* HPLIP */
((p = strcasestr(o, "uni")) && strcasestr(p, "direction")))
{
if (strcasecmp(c, "True") == 0 ||
@@ -2399,9 +2400,... |
Use SSL_set_quic_early_data_context to find BoringSSL | @@ -210,7 +210,7 @@ have_boringssl=no
if test "x${request_boringssl}" != "xno"; then
save_LDFLAGS="$LDFLAGS"
LDFLAGS="$LDFLAGS $BORINGSSL_LIBS"
- AC_CHECK_LIB([ssl], [SSL_provide_quic_data],
+ AC_CHECK_LIB([ssl], [SSL_set_quic_early_data_context],
[have_boringssl=yes], [have_boringssl=no], [$BORINGSSL_LIBS])
LDFLAGS="$... |
docs/library/pyb.rst: Update pyb.usb_mode() to mention VCP+MSC+HID. | @@ -271,6 +271,7 @@ Miscellaneous functions
- ``'MSC'``: enable with MSC (mass storage device class) interface
- ``'VCP+MSC'``: enable with VCP and MSC
- ``'VCP+HID'``: enable with VCP and HID (human interface device)
+ - ``'VCP+MSC+HID'``: enabled with VCP, MSC and HID (only available on PYBD boards)
For backwards com... |
loraping: remove bootloader/mgmt dependencies
Some dependencies don't seem necessary for this sample app, and removing
them allows for use in constrained devices (eg, b-l072z-lrwan1 with 72K
slots). | @@ -25,19 +25,13 @@ pkg.homepage: "http://mynewt.apache.org/"
pkg.keywords:
pkg.deps:
- - "@mcuboot/boot/bootutil"
- - "@apache-mynewt-core/boot/split"
- "@apache-mynewt-core/kernel/os"
- - "@apache-mynewt-core/mgmt/imgmgr"
- - "@apache-mynewt-core/mgmt/smp"
- - "@apache-mynewt-core/mgmt/smp/transport/smp_shell"
- "@ap... |
fixed indentation of SDLActivity.java | @@ -315,9 +315,8 @@ private void CopyPak(){
String version = null;
String toast = null;
- try{
version = context.getPackageManager().getPackageInfo(context.getPackageName(),0).versionName; //get version number as string
- } catch (Exception e) { }
+
//Toast.makeText(context,context.getPackageName().toString(), Toast.LE... |
Add missing Python tests. | @@ -113,5 +113,39 @@ class TestInterpolation(unittest.TestCase):
+class TestVec(unittest.TestCase):
+
+ def testValuesVec2(self):
+ # Given
+ vec = Vec2(1, 2)
+
+ # When
+ values = vec.values
+
+ # Then
+ assertKnotsAlmostEqual([1, 2], values, self)
+
+ def testValuesVec3(self):
+ # Given
+ vec = Vec3(3, 2, 1)
+
+ # Wh... |
doc: supported KBL NUC added | @@ -14,7 +14,7 @@ Intel Apollo Lake NUC
* `Intel NUC Kit NUC6CAYH Reference
<https://www.intel.com/content/www/us/en/products/boards-kits/nuc/kits/nuc6cayh.html>`_
-* Intel |reg| Celeron |reg| Processor J3455
+ with Intel |reg| Celeron |reg| Processor J3455
* Tested NUC with 8GB of RAM and using an 128GB SSD
You can re... |
[mechanics] Add joint properties accessor functions. | @@ -69,6 +69,20 @@ public:
void setPoint(unsigned int index, SP::SiconosVector point)
{ _points[index] = point; }
+ /** Get a point for this joint.
+ *
+ * \param index The index of the point.
+ * \return The requested point.
+ */
+ SP::SiconosVector point(unsigned int index)
+ { return _points[index]; }
+
+ /** Get th... |
fix(draw_img): fix typos in API comments | @@ -331,11 +331,11 @@ LV_ATTRIBUTE_FAST_MEM static lv_res_t lv_img_draw_core(const lv_area_t * coords,
/**
* Draw a color map to the display (image)
- * @param cords_p coordinates the color map
- * @param mask_p the map will drawn only on this area (truncated to draw_buf area)
+ * @param map_area coordinates the color ... |
SidebarItem: respect calmengine settings | @@ -102,8 +102,10 @@ export function SidebarDmItem(props: {
}) {
const { ship, selected = false } = props;
const contact = useContact(ship);
- const title = contact?.nickname || (cite(ship) ?? ship);
- const hideAvatars = false;
+ const { hideAvatars, hideNicknames } = useSettingsState(s => s.calm);
+ const title = (!h... |
naive: l2 spawn proxy tests | =^ f state (n state %bat q:(gen-tx 0 marbud-mproxy %marbud-key-0))
management-proxy.own:(~(got by points.state) ~marbud)
::
-++ test-l2-spawn-proxy-deposit ^- tang
+++ test-l2-dopbud-spawn-proxy-deposit ^- tang
%+ expect-eq
!> %spawn
::
=^ f state (init-dopbud state)
dominion:(~(got by points.state) ~dopbud)
::
+++ tes... |
pkg: default test everything under /=base=/tests
Checks if args is empty and if so, sets the test path to /=base=/tests. | |= arg=vase
=/ m (strand ,vase)
^- form:m
+;< =bowl:strand bind:m get-bowl:strandio
=/ paz=(list path)
- :: promote path to ~[path] if needed
+ :: if no args, test everything under /=base=/tests
+ ::
+ ?~ q.arg
+ ~[/(scot %p our.bowl)/[q.byk.bowl]/(scot %da now.bowl)/tests]
+ :: else cast path to ~[path] if needed
::
?... |
validation BUGFIX avoid using invalid set
Refs sysrepo/sysrepo#2518 | @@ -217,12 +217,14 @@ lyd_validate_unres_when(struct lyd_node **tree, const struct lys_module *mod, st
}
/* remove from node types set, if present */
+ if (node_types) {
LYD_TREE_DFS_BEGIN(node, elem) {
if (ly_set_contains(node_types, elem, &idx)) {
LY_CHECK_GOTO(ret = ly_set_rm_index(node_types, idx, NULL), error);
}
... |
Add TestVec to Lua. | @@ -121,4 +121,43 @@ end
+TestVec = {}
+
+function TestVec:testValuesVec2()
+ -- Given
+ vec = ts.Vec2(1, 2)
+
+ -- When
+ values = vec.values
+
+ -- Then
+ lu.assertAlmostEquals({ 1, 2 }, values, ts.TS_KNOT_EPSILON)
+end
+
+function TestVec:testValuesVec3()
+ -- Given
+ vec = ts.Vec3(3, 2, 1)
+
+ -- When
+ values = ve... |
added missing help entries | @@ -981,12 +981,16 @@ printf("%s %s (C) %s ZeroBeat\n"
"-o <file> : output PSK file\n"
" default: stdout\n"
" output list must be sorted unique!\n"
+ "-h : show this help\n"
+ "-v : show version\n"
"\n"
"--netgear : include NETGEAR candidates\n"
"--weakpass: include weak password candidates\n"
"--eudate : include compl... |
get_ecdsa_sig_rs_bytes: free value of d2i_ECDSA_SIG() before return | @@ -218,7 +218,7 @@ static int get_ecdsa_sig_rs_bytes(const unsigned char *sig, size_t sig_len,
r1 = ECDSA_SIG_get0_r(sign);
s1 = ECDSA_SIG_get0_s(sign);
if (r1 == NULL || s1 == NULL)
- return 0;
+ goto err;
r1_len = BN_num_bytes(r1);
s1_len = BN_num_bytes(s1);
@@ -560,7 +560,7 @@ static int get_dsa_sig_rs_bytes(const ... |
Add Namron modelId to corresponding button map | "sunricherMap": {
"vendor": "Sunricher",
"doc": "Wireless switches from Sunricher, Namron, SLC and EcoDim",
- "modelids": ["ED-10010", "ED-10011", "ED-10012", "ED-10013", "ED-10014", "ED-10015", "ZG2833K8_EU05", "ZG2835", "4512700", "4512701", "4512702", "4512703", "4512705", "4512714", "4512719", "4512720", "4512721",... |
make flang map runnable | @@ -16,16 +16,27 @@ MODULE definitions_module
END MODULE definitions_module
SUBROUTINE start
use definitions_module
+ ALLOCATE(chunk%tiles (1))
+ ALLOCATE(chunk%tiles(1)%field%density0 (-1:962,-1:962))
+ ALLOCATE(chunk%tiles(1)%field%density1 (-1:962,-1:962))
+
+ print '(Z)', loc(chunk%tiles(1))
+ print '(Z)', loc(chun... |
use glib signal handler for gracefully exiting the main loop upon SIGINT
This allows a more sensible checking for memory leaks with valgrind, the
previous exit() left a lot of memory unreleased which shows up as false
positives in valgrind. | #include <pthread.h>
#include <signal.h>
#include <glib.h>
+#include <glib-unix.h>
#include <gio/gio.h>
#include <getopt.h>
#include <poll.h>
@@ -163,17 +164,16 @@ static int open_handlers(void)
return num_good;
}
-static void sighandler(int signal)
+static gboolean sighandler(gpointer user_data)
{
tcmulib_cleanup_all_... |
Awkward hotfix to tinycthread.h
Becuase of . Only needed on Android. Not needed in the glfw tinycthread because we don't use glfw on Android. | @@ -106,6 +106,10 @@ extern "C" {
#define TTHREAD_NORETURN
#endif
+/* HOTFIX: The TIME_UTC check below will spuriously succeed on Android NDK 18 or later, even on systems which lack timespec_get. */
+#ifdef __ANDROID__
+#undef TIME_UTC
+#endif
/* If TIME_UTC is missing, provide it and provide a wrapper for
timespec_get... |
Document the yara-python's "Match" structure. | @@ -240,11 +240,10 @@ The *matches* field indicates if the rule matches the data or not. The
(<offset>, <string identifier>, <string data>)
-The ``match`` method returns a list of instances of the class ``Match``.
+The ``match`` method returns a list of instances of the class :py:class:`yara.Match`.
Instances of this c... |
Document cJSON_free API | @@ -129,12 +129,12 @@ CJSON_PUBLIC(const char*) cJSON_Version(void);
/* Supply malloc, realloc and free functions to cJSON */
CJSON_PUBLIC(void) cJSON_InitHooks(cJSON_Hooks* hooks);
-
-/* Supply a block of JSON, and this returns a cJSON object you can interrogate. Call cJSON_Delete when finished. */
+/* Memory Manageme... |
odyssey: update documentation sections | @@ -68,15 +68,15 @@ cmake -DCMAKE_BUILD_TYPE=Release ..
make
```
-#### Configuration reference
+### Configuration reference
-**Service**
+##### Service
* [include](https://github.yandex-team.ru/pmwkaa/odyssey/blob/master/documentation/configuration.md#include-string)
* [daemonize](https://github.yandex-team.ru/pmwkaa/o... |
Number of problems | @@ -35,7 +35,7 @@ const char ** data_collection()
/* 4: Spheres #200 problems */
/* 5: Sphere1mm #41 problems */
/* 6: Chute* #182 problems */
- /* TOTAL #1092 problems */
+ /* TOTAL #1091 problems */
if (listprob[0]==1)
{
|
Fix test randstring, compare string and int is wrong.
This will cause the generated string containing "\".
Fixes a broken change in | @@ -12,9 +12,10 @@ proc randstring {min max {type binary}} {
set maxval 52
}
while {$len} {
- set rr [format "%c" [expr {$minval+int(rand()*($maxval-$minval+1))}]]
+ set num [expr {$minval+int(rand()*($maxval-$minval+1))}]
+ set rr [format "%c" $num]
if {$type eq {simplealpha} && ![string is alnum $rr]} {continue}
- if... |
hw/fsp: Remove stray va_end() in __fsp_fillmsg()
__fsp_fillmsg() is called from fsp_fillmsg() and fsp_mkmsg(). Both
callers wrap it in a va_start() / va_end() pair so using va_end()
inside the function is almost certainly wrong. | @@ -995,7 +995,6 @@ static void __fsp_fillmsg(struct fsp_msg *msg, u32 cmd_sub_mod,
for (i = 0; i < add_words; i++)
fsp_msg_set_data_word(msg, i, va_arg(list, unsigned int));
- va_end(list);
}
void fsp_fillmsg(struct fsp_msg *msg, u32 cmd_sub_mod, u32 add_words, ...)
|
That optimization was not necessary, better to not have it | @@ -143,11 +143,6 @@ typedef struct clap_host_params {
// Rescan the full list of parameters according to the flags.
// [main-thread]
void (*rescan)(clap_host *host, uint32_t flags);
-
- // Only rescan the given subset of parameters according to the flags.
- // CLAP_PARAM_RESCAN_ALL can't be used with this method.
- //... |
apps/speed.c: clean up SIGARM handling. | @@ -197,29 +197,29 @@ static const int lengths_list[] = {
};
static const int *lengths = lengths_list;
+#define START 0
+#define STOP 1
+
#ifdef SIGALRM
-# if defined(__STDC__) || defined(sgi) || defined(_AIX)
-# define SIGRETTYPE void
-# else
-# define SIGRETTYPE int
-# endif
-static SIGRETTYPE sig_done(int sig);
-sta... |
Refine ssl_get_kex_mode_str() for easy automatic generation | @@ -1667,6 +1667,21 @@ cleanup:
return( ret );
}
+char *ssl_get_kex_mode_str(int mode)
+{
+ switch( mode )
+ {
+ case MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK:
+ return "psk";
+ case MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL:
+ return "ephemeral";
+ case MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL:
+ return... |
upcall not cb | @@ -28,7 +28,7 @@ int main(void) {
uint32_t frequency = alarm_internal_frequency();
uint32_t interval = (500 / 1000) * frequency + (500 % 1000) * (frequency / 1000);
uint32_t now = alarm_read();
- alarm_internal_subscribe((subscribe_cb*) cb, NULL);
+ alarm_internal_subscribe((subscribe_upcall*) cb, NULL);
alarm_interna... |
m25p16: fix chip detect | @@ -110,7 +110,7 @@ void m25p16_get_bounds(data_flash_bounds_t *bounds) {
uint8_t raw_id[3];
m25p16_read_command(M25P16_READ_IDENTIFICATION, raw_id, 3);
- const uint32_t chip_id = (raw_id[0] << 16) | (raw_id[1] << 8) | raw_id[2] << 16;
+ const uint32_t chip_id = (raw_id[0] << 16) | (raw_id[1] << 8) | raw_id[2];
switch ... |
fix(keymap): add brackets around if statement body | @@ -94,7 +94,9 @@ int zmk_keymap_layer_deactivate(u8_t layer)
int zmk_keymap_layer_toggle(u8_t layer)
{
if (zmk_keymap_layer_active(layer))
+ {
return zmk_keymap_layer_deactivate(layer);
+ }
return zmk_keymap_layer_activate(layer);
};
|
Fixed buffer overflow caused by an excessive number of invalid requests with multiple logs. | @@ -551,7 +551,7 @@ count_invalid (GLog * glog, const char *line) {
LOG_INVALID (("%s", line));
}
- if (glog->items->errstr && glog->invalid < MAX_LOG_ERRORS) {
+ if (glog->items->errstr && glog->log_erridx < MAX_LOG_ERRORS) {
glog->errors[glog->log_erridx++] = xstrdup (glog->items->errstr);
}
}
|
adc: fix legacy oneshot driver clock gating issue on c3 and c2 | @@ -822,6 +822,7 @@ esp_err_t adc2_get_raw(adc2_channel_t channel, adc_bits_width_t width_bit, int *
periph_module_enable(PERIPH_SARADC_MODULE);
adc_power_acquire();
+ adc_ll_digi_clk_sel(0);
adc_arbiter_t config = ADC_ARBITER_CONFIG_DEFAULT();
adc_hal_arbiter_config(&config);
|
Update etag when storing a scene with transitiontime | @@ -2220,6 +2220,9 @@ int DeRestPluginPrivate::storeScene(const ApiRequest &req, ApiResponse &rsp)
return REQ_READY_SEND;
}
+ updateEtag(gwConfigEtag);
+ updateEtag(group->etag);
+
rspItemState["id"] = sid;
rspItem["success"] = rspItemState;
rsp.list.append(rspItem);
|
Fix zeroization at NULL pointer | @@ -5635,7 +5635,9 @@ static int tls_prf_generic( mbedtls_md_type_t md_type,
exit:
mbedtls_md_free( &md_ctx );
+ if ( tmp != NULL )
mbedtls_platform_zeroize( tmp, tmp_len );
+
mbedtls_platform_zeroize( h_i, sizeof( h_i ) );
mbedtls_free( tmp );
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.