diff stringlengths 12 9.3k | message stringlengths 8 199 | reasoning_trace null | repo stringlengths 6 68 | license stringclasses 3
values | language stringclasses 16
values |
|---|---|---|---|---|---|
@@ -555,12 +555,6 @@ func (k *kubeConfigFactory) CreateOrUpdateConfig(ctx context.Context, i *Config,
return fmt.Errorf("fail to apply the secret: %w", err)
}
for key, obj := range i.OutputObjects {
- obj.SetOwnerReferences([]metav1.OwnerReference{{
- APIVersion: "v1",
- Kind: "Secret",
- Name: i.Secret.Name,
- UID: i.... | fix: remove the owner references | null | oam-dev/kubevela | Apache License 2.0 | Go |
@@ -897,7 +897,7 @@ class RenderBoxModel extends RenderBox
break;
}
- var parentRenderStyle = parentRenderBoxModel.renderStyle;
+ var parentRenderStyle = currentRenderBoxModel.renderStyle;
CSSDisplay? parentDisplay = parentRenderStyle.transformedDisplay;
// Set width of element according to parent display
if (parentDis... | fix: getContentWidth & getContentHeight | null | openkraken/kraken | Apache License 2.0 | Dart |
@@ -549,15 +549,15 @@ tcu::TestStatus testMemoryMapping (Context& context, const TestConfig config)
const tcu::ScopedLogSection section (log, "TestCaseInfo", "TestCaseInfo");
log << TestLog::Message << "Seed: " << config.seed << TestLog::EndMessage;
- log << TestLog::Message << "Allocation size: " << config.allocationS... | fix: Memory alignment | null | khronosgroup/vk-gl-cts | Apache License 2.0 | C++ |
@@ -152,10 +152,12 @@ namespace acl
#endif
#if defined(ACL_ALLOCATOR_SANITIZE_ALLOCATIONS)
+ if (ptr != nullptr)
std::memset(ptr, 0xCD, size);
#endif
#if defined(ACL_ALLOCATOR_TRACK_ALL_ALLOCATIONS)
+ if (ptr != nullptr)
m_debug_allocations.insert({ {ptr, AllocationEntry{ptr, size}} });
#endif
| fix(core): ensure pointer isn't null before using | null | nfrechette/acl | MIT License | C |
@@ -56,7 +56,7 @@ interface BaseWrapper {
visible (): boolean
attributes(): { [name: string]: string }
- classes(): Array<string> | void
+ classes(): Array<string>
props(): { [name: string]: any }
hasAttribute (attribute: string, value: string): boolean
| fix: type definition of classes method | null | vuejs/vue-test-utils | MIT License | TypeScript |
@@ -158,7 +158,7 @@ static void usage()
" This causes every single line emitted by falco to be flushed,\n"
" which generates higher CPU usage but is useful when piping those outputs\n"
" into another process or into a script.\n"
- " -u Parse events from userspace.\n"
+ " -u, --userspace Parse events from userspace.\n"
... | fix(userspace/falco): try to insert kernel module driver conditionally | null | falcosecurity/falco | Apache License 2.0 | C++ |
@@ -125,7 +125,7 @@ JSValueRef CustomEventInstance::initCustomEvent(JSContextRef ctx, JSObjectRef fu
}
CustomEventInstance::~CustomEventInstance() {
- nativeCustomEvent->detail->free();
+ if (nativeCustomEvent->detail != nullptr) nativeCustomEvent->detail->free();
delete nativeCustomEvent;
}
| fix: fix nullptr detail of customeventInstance | null | openkraken/kraken | Apache License 2.0 | C++ |
@@ -14387,6 +14387,8 @@ static void usage(void)
printf("-I Override the size of each slab page. Adjusts max item size\n"
" (default: 1mb, min: 1k, max: 128m)\n");
printf("-E <engine> Engine to load, must be given (for example, -E .libs/default_engine.so)\n");
+ printf("-e <config> Engine config to load, -e option has h... | fix: Add usage for -e option | null | naver/arcus-memcached | Apache License 2.0 | C |
@@ -1285,6 +1285,7 @@ internal static void ChangeOwner(NetworkIdentity identity, ChangeOwnerMessage me
// localPlayer may already be assigned to something else
// so only make it null if it's this identity.
localPlayer = null;
+ identity.OnStopLocalPlayer();
}
CheckForLocalPlayer(identity);
| fix: Call OnStopLocalPlayer from ChangeOwner | null | vis2k/mirror | MIT License | C# |
@@ -377,13 +377,13 @@ class PyanNet(Model):
if rnn is None:
rnn = {'pool': None}
- if rnn['pool'] is not None:
+ if rnn.get('pool', None) is not None:
return RESOLUTION_CHUNK
if sincnet is None:
sincnet = {'skip': False}
- if sincnet['skip']:
+ if sincnet.get('skip', False):
return RESOLUTION_FRAME
return SincNet.get_r... | fix: default "pool" to None and "skip" to False | null | pyannote/pyannote-audio | MIT License | Python |
@@ -43,7 +43,7 @@ ockam_error_t ockam_key_encrypt(
{
ockam_error_t error = OCKAM_ERROR_NONE;
- if (!p_key || !payload || !msg || !msg_size) {
+ if (!p_key || !payload || !msg || !msg_length) {
error = KEYAGREEMENT_ERROR_PARAMETER;
goto exit;
}
| fix(c): fix ockam_key_encrypt arguments check | null | ockam-network/ockam | Apache License 2.0 | C |
@@ -69,7 +69,8 @@ namespace DSharpPlus
private ConcurrentDictionary<int, DiscordClient> _shards = new ConcurrentDictionary<int, DiscordClient>();
private Lazy<IReadOnlyDictionary<string, DiscordVoiceRegion>> _voiceRegionsLazy;
- private bool _isStarted = false;
+ private bool _isStarted;
+ private bool _manuallyShardin... | fix: Ensure correct shard id when manually sharding | null | dsharpplus/dsharpplus | MIT License | C# |
@@ -259,10 +259,13 @@ type Column struct {
}
func (c Column) identifier() string {
- if c.table.alias == "" {
+ if c.table.alias != "" {
+ return c.table.alias + "." + c.name
+ }
+ if c.table.name != "" {
return c.table.name + "." + c.name
}
- return c.table.alias + "." + c.name
+ return c.name
}
func (c Column) setTab... | fix: identifier for columns w/o table name / alias | null | caos/zitadel | Apache License 2.0 | Go |
@@ -76,7 +76,7 @@ class ProxyEvaluator implements IEvaluator {
debug('rethrowing non-200 response', response)
// to trigger the catch just below
const err = new Error(response.body)
- err['code'] = response.statusCode
+ err['code'] = err['statusCode'] = response.statusCode
throw err
} else {
return response.body
@@ -85... | fix(plugins/plugin-proxy-executor): error handling fixes for proxy-executor | null | ibm/kui | Apache License 2.0 | TypeScript |
@@ -65,7 +65,7 @@ export default class CollapseItem extends PureComponent<CollapseItemProps, any>
}, () => {
this.animate();
if (onChange) {
- onChange(itemKey);
+ onChange(this.state.active);
}
if (onItemChange) {
onItemChange(itemKey);
| fix: collapseItem native.jsx TS | null | zhongantech/zarm | MIT License | TypeScript |
@@ -575,7 +575,7 @@ class Element extends Node
Element parentStackedElement =
findParent(this, (element) => element.renderStack != null);
if (parentStackedElement != null) {
- insertByZIndex(parentStackedElement.renderStack, this,
+ parent.insertByZIndex(parentStackedElement.renderStack, this,
CSSLength.toInt(style['zI... | fix: insert object error | null | openkraken/kraken | Apache License 2.0 | Dart |
@@ -16,7 +16,7 @@ namespace Cicada {
const static std::string FILTER_VALID_RECOVERY = "filter recovery";
const static std::string FILTER_OPTION = "options";
- const static std::string USEFEATURE_OPTION = "userFeature";
+ const static std::string USEFEATURE_OPTION = "useFeature";
const static std::string VIDEO_FPS_OPTIO... | fix(ivideofilter): correct mpf option key | null | alibaba/cicadaplayer | MIT License | C |
@@ -152,13 +152,7 @@ type Category struct {
ID int `json:"id" db:"id"`
ParentID int `json:"parent_id" db:"parent_id"`
CategoryName string `json:"category_name" db:"category_name"`
- ParentCategoryName string `json:"parent_category_name" db:"-"`
-}
-
-type CategorySimple struct {
- ID int `json:"id" db:"id"`
- ParentID ... | fix: use omitempty and remove redundant type | null | isucon/isucon9-qualify | MIT License | Go |
@@ -2315,6 +2315,8 @@ elif [ "${shortname}" == "stn" ]; then
fn_info_game_stn
elif [ "${shortname}" == "terraria" ]; then
fn_info_game_terraria
+elif [ "${shortname}" == "ts3" ]; then
+ fn_info_game_ts3
elif [ "${shortname}" == "tu" ]; then
fn_info_game_tu
elif [ "${shortname}" == "tw" ]; then
| fix(ts3): fix missing details | null | gameservermanagers/linuxgsm | MIT License | Shell |
@@ -20,8 +20,8 @@ import jinja2
from prompt_toolkit import (
prompt
)
-from prompt_toolkit.contrib.completers import WordCompleter
-from prompt_toolkit.shortcuts import print_tokens
+from prompt_toolkit.completion import WordCompleter
+from prompt_toolkit.shortcuts import print_formatted_text
from botocore import xform... | fix: small fixes to get scripts/scaffold.py working | null | spulec/moto | Apache License 2.0 | Python |
@@ -209,6 +209,13 @@ namespace MLAPI.Serialization
return instance;
}
+ Type nullableUnderlyingType = Nullable.GetUnderlyingType(type);
+
+ if (nullableUnderlyingType != null && SerializationManager.IsTypeSupported(nullableUnderlyingType))
+ {
+ return ReadObjectPacked(nullableUnderlyingType);
+ }
+
throw new ArgumentE... | fix: Fixes Nullable struct type reading | null | unity-technologies/com.unity.multiplayer.mlapi | MIT License | C# |
@@ -2,6 +2,7 @@ import 'dart:convert';
import 'dart:ffi';
import 'dart:typed_data';
import 'dart:ui';
+import 'dart:io';
import 'package:ffi/ffi.dart';
import 'package:flutter/painting.dart';
@@ -118,10 +119,11 @@ String invokeModule(String json, DartAsyncModuleCallback callback, Pointer<Void>
}).catchError((e) {
Strin... | fix: fix fetch unhandled exception | null | openkraken/kraken | Apache License 2.0 | Dart |
@@ -33,7 +33,7 @@ const SnackbarWrapper = styled.div<any>(
margin: space.default,
},
[mq(breakpoint.large)]: {
- maxWidth: '50vw',
+ maxWidth: '20vw',
width: 'fit-content',
left: 0,
transform: 'none',
| fix: snackbar desktop max-width | null | coingaming/moon-design | MIT License | TypeScript |
@@ -30,7 +30,7 @@ import anyconfig.backend.base
import anyconfig.parser as P
import anyconfig.utils
-from anyconfig.compat import configparser, iteritems
+from anyconfig.compat import configparser, iteritems, OrderedDict
from anyconfig.backend.base import mk_opt_args
@@ -95,6 +95,8 @@ def _load(stream, to_container=dic... | fix: pass dict_type=OrderedDict keyword argument if ac_ordered == True in ini backend | null | ssato/python-anyconfig | MIT License | Python |
@@ -7,7 +7,7 @@ parser.add_argument('--model', '-m', type=str, default='BPRMF', help='name of mo
parser.add_argument('--dataset', '-d', type=str, default='ml-100k', help='name of datasets')
parser.add_argument('--epochs', '-e', type=int, default=1, help='num of running epochs')
-args = parser.parse_args()
+args, _ = pa... | fix: bugs of args parse in main.py | null | rucaibox/recbole | MIT License | Python |
@@ -160,8 +160,10 @@ func (conf *Configuration) clear() {
conf.DisabledSchemeManagers = make(map[SchemeManagerIdentifier]*SchemeManagerError)
conf.kssPublicKeys = make(map[SchemeManagerIdentifier]map[int]*rsa.PublicKey)
conf.publicKeys = make(map[IssuerIdentifier]map[uint]*gabi.PublicKey)
- conf.PrivateKeys = make(map[... | fix: --privatekeys folder in IRMA server stops working after a scheme update | null | privacybydesign/irmago | Apache License 2.0 | Go |
@@ -157,6 +157,10 @@ func (m *MQTTConsumer) Start(acc telegraf.Accumulator) error {
m.acc = acc.WithTracking(m.MaxUndeliveredMessages)
m.sem = make(semaphore, m.MaxUndeliveredMessages)
m.ctx, m.cancel = context.WithCancel(context.Background())
+ return m.connect()
+}
+func (m *MQTTConsumer) connect() error {
+ m.state ... | fix(inputs.mqtt_consumer): rework connection and message tracking | null | influxdata/telegraf | MIT License | Go |
@@ -1845,6 +1845,9 @@ export abstract class MusicSheetCalculator {
for (let i: number = 1; i < tie.Notes.length; i++) {
startNote = startGse.findEndTieGraphicalNoteFromNote(tie.Notes[i - 1]);
endGse = this.graphicalMusicSheet.GetGraphicalFromSourceStaffEntry(tie.Notes[i].ParentStaffEntry);
+ if (!endGse) {
+ continue;
... | fix(ties): fix error in tie handling when no end note found | null | opensheetmusicdisplay/opensheetmusicdisplay | BSD 3-Clause New or Revised License | TypeScript |
@@ -21,7 +21,6 @@ import {
writeJsonFile,
} from '@nrwl/devkit';
import { sortObjectByKeys } from '@nrwl/tao/src/utils/object-sort';
-import { existsSync } from 'fs';
const PRETTIER_PATH = require.resolve('prettier/bin-prettier');
@@ -39,11 +38,14 @@ export async function format(
switch (command) {
case 'write':
- upda... | fix(misc): format command should handle workspace without workspace.json | null | nrwl/nx | MIT License | TypeScript |
@@ -271,38 +271,22 @@ ACTOR Future<Void> leaderRegister(LeaderElectionRegInterface interf, Key key) {
return Void();
} else {
Optional<LeaderInfo> nextNominee;
- if (availableLeaders.size() && availableCandidates.size()) {
- nextNominee = ( *availableLeaders.begin() < *availableCandidates.begin() ) ? *availableLeaders.... | fix: A minority of coordinators could continue choosing a candidate which was not the leader | null | apple/foundationdb | Apache License 2.0 | C++ |
@@ -32,6 +32,12 @@ type ansiUtils struct {
underline string
strikethrough string
bashFormat string
+ shellReservedKeywords []shellKeyWordReplacement
+}
+
+type shellKeyWordReplacement struct {
+ text string
+ replacement string
}
func (a *ansiUtils) init(shell string) {
@@ -59,6 +65,8 @@ func (a *ansiUtils) init(shell ... | fix: avoid variable expansion when using postfix in zsh | null | jandedobbeleer/oh-my-posh | MIT License | Go |
@@ -43,7 +43,7 @@ import { ExtensionScanner, ExtensionScannerInput } from 'vs/workbench/services/e
class Watcher extends DiskFileSystemProvider {
public readonly watches = new Map<number, IDisposable>();
- public dispose(): void {
+ public override dispose(): void {
this.watches.forEach((w) => w.dispose());
this.watche... | fix(lib/vscode): fix terminal channel | null | cdr/code-server | MIT License | TypeScript |
@@ -190,7 +190,10 @@ class TokensCoordinator: Coordinator {
}
private func addUefaTokenIfAny() {
- importToken.importToken(for: Constants.uefaMainnet, server: Constants.uefaRpcServer, onlyIfThereIsABalance: true)
+ let server = Constants.uefaRpcServer
+ //TODO maybe should make `importToken` fail gracefully when reques... | fix: crash when mainnet is not enabled | null | alphawallet/alpha-wallet-ios | MIT License | Swift |
@@ -7680,7 +7680,7 @@ void ClangImporter::Implementation::importAttributes(
// Ban CFRelease|CFRetain|CFAutorelease(CFTypeRef) as well as custom ones
// such as CGColorRelease(CGColorRef).
if (auto FD = dyn_cast<clang::FunctionDecl>(ClangDecl)) {
- if (FD->getNumParams() == 1 &&
+ if (FD->getNumParams() == 1 && FD->get... | fix: Access NamedDecl::getName() only if the name is an identifier | null | apple/swift | Apache License 2.0 | C++ |
package io.questdb.griffin;
-import java.io.IOException;
-
-import org.junit.After;
-import org.junit.Assert;
-import org.junit.Before;
-import org.junit.Rule;
-import org.junit.Test;
-import org.junit.rules.TemporaryFolder;
-
import io.questdb.MessageBus;
import io.questdb.MessageBusImpl;
-import io.questdb.cairo.Cair... | fix(griffin): backup test behaviour on windows os | null | questdb/questdb | Apache License 2.0 | Java |
@@ -309,22 +309,6 @@ void LCUIRect_CutFourRect(LCUI_Rect *rect1, LCUI_Rect *rect2,
rects[3].height = rect1->y - rect2->y;
}
-int LCUIRect_GetXDistance(LCUI_Rect *a, LCUI_Rect *b)
-{
- if (a->x <= b->x) {
- return a->x + a->width - b->x;
- }
- return b->x + b->width - a->x;
-}
-
-int LCUIRect_GetYDistance(LCUI_Rect *a, ... | fix(display): dirty rectangle calculation error | null | lc-soft/lcui | MIT License | C |
@@ -95,7 +95,8 @@ elif [[ "${BUILD_NAME}" = "integration" ]]; then
export DISTRO=ubuntu
export DISTRO_VERSION=18.04
RUN_INTEGRATION_TESTS="yes" # Integration tests were explicitly requested.
- GOOGLE_CLOUD_CPP_SPANNER_SLOW_INTEGRATION_TESTS="instance,backup"
+ # TODO(4306): Enable the backup tests once they don't timeo... | fix: disable spanner backup tests, which are too slow | null | googleapis/google-cloud-cpp | Apache License 2.0 | Shell |
@@ -44,6 +44,7 @@ public class TravelTimeComputer {
public void write (OutputStream os) throws IOException {
StreetMode accessMode = LegMode.getDominantStreetMode(request.accessModes);
StreetMode directMode = LegMode.getDominantStreetMode(request.directModes);
+ StreetMode egressMode = LegMode.getDominantStreetMode(req... | fix(linking): allow separate access and egress modes | null | conveyal/r5 | MIT License | Java |
@@ -47,7 +47,7 @@ export default class Suggestions {
this._suggestions.push({
command_type: "plugin command",
description: plugin.description,
- value: (JSON.stringify(plugin.usage) || "").replace(/\"/g, "").trim() || this.formatMatches(plugin.matches),
+ value: this.formatMatches((JSON.stringify(plugin.usage) || "").r... | fix(cockpit/suggestions): fix suggestions with slashes | null | embarklabs/embark | MIT License | TypeScript |
+from typing import Union, Optional
+
+CompressType = Optional[Union[str,bool]]
+ParallelType = Union[int,bool]
+CacheType = Union[bool,str]
+SecretsType = Optional[Union[str,dict]]
\ No newline at end of file
| fix: add types.py | null | seung-lab/cloud-volume | BSD 3-Clause New or Revised License | Python |
@@ -123,7 +123,7 @@ namespace acl
{
case compressed_tracks_version16::v02_00_00:
case compressed_tracks_version16::v02_01_99:
- return decompression_version_selector<compressed_tracks_version16::v02_00_00>::initialize<decompression_settings_type>(context, tracks, database);
+ return acl_impl::initialize_v0<decompressio... | fix(decompression): remove unnecessary indirection | null | nfrechette/acl | MIT License | C |
@@ -700,7 +700,7 @@ func newKeeper(ctx sdk.Context, confHeight int64) keeper.Keeper {
subspace := params.NewSubspace(cdc, sdk.NewKVStoreKey("subspace"), sdk.NewKVStoreKey("tsubspace"), "sub")
k := keeper.NewEthKeeper(cdc, sdk.NewKVStoreKey("testKey"), subspace)
k.SetParams(ctx, types.Params{Network: network, Confirmati... | fix(eth): correct indexing in randomized test | null | axelarnetwork/axelar-core | Apache License 2.0 | Go |
@@ -55,7 +55,8 @@ static double rtclock()
* If feasible then return the solution else returns NULL */
double* pluto_fusion_constraints_feasibility_solve(PlutoConstraints *cst, PlutoMatrix *obj)
{
- double* sol;
+ double* sol, tstart;
+ tstart = rtclock();
if (options->gurobi) {
#ifdef GUROBI
sol = pluto_fcg_constraints... | fix: constraint solving time for pluto-lp-dfp | null | bondhugula/pluto | MIT License | C |
@@ -207,6 +207,9 @@ export class PersistableGrapher implements GrapherConfigInterface, Persistable {
if (!obj) return
updatePersistables(this, obj)
+ // Regression fix: some legacies have this set to Null. Todo: clean DB.
+ if (obj.originUrl === null) this.originUrl = ""
+
if (obj.dimensions?.length)
this.dimensions = ... | fix: originUrl is saved in DB in some charts as null | null | owid/owid-grapher | MIT License | TypeScript |
@@ -173,6 +173,7 @@ export default class Auth {
if (!this.strategy.reset) {
this.setUser(false)
this.setToken(this.$state.strategy, false)
+ this.setRefreshToken(this.$state.strategy, false)
return Promise.resolve()
}
| fix(core): reset refresh token by default | null | nuxt-community/auth-module | MIT License | JavaScript |
@@ -1448,7 +1448,7 @@ where
for o in uo {
utxos_total_value += o.unblinded_output.value;
- error!(target: LOG_TARGET, "-- utxos_total_value = {:?}", utxos_total_value);
+ trace!(target: LOG_TARGET, "-- utxos_total_value = {:?}", utxos_total_value);
utxos.push(o);
// The assumption here is that the only output will be t... | fix: change wallet log target from error to trace (see issue | null | tari-project/tari | BSD 3-Clause New or Revised License | Rust |
@@ -165,19 +165,17 @@ const footerRowData = [
storiesOf("Table", module)
.addDecorator(withKnobs)
- .add("Table with data", () => <Table columns={columns} rows={rowData} />)
+ .add(" with data", () => <Table columns={columns} rows={rowData} />)
.add("without row hovers", () => <Table columns={columns} rows={rowData} ro... | fix: test out versioning with conventional commits | null | nulogy/design-system | MIT License | JavaScript |
@@ -3,8 +3,7 @@ use cid::{self, Cid};
use futures::future::ready;
use futures::stream::{self, FuturesOrdered, Stream, StreamExt, TryStreamExt};
use ipfs::ipld::{decode_ipld, Ipld};
-use ipfs::{Block, Error};
-use ipfs::{Ipfs, IpfsTypes};
+use ipfs::{Block, Ipfs, IpfsTypes};
use serde::{Deserialize, Serialize};
use std:... | fix: propagate dag errors to ipfs-http as well | null | rs-ipfs/rust-ipfs | Apache License 2.0 | Rust |
@@ -103,20 +103,21 @@ defmodule Ash.Actions.Read do
end
end
- defp add_aggregates(data_layer_query, query, aggregate_filters) do
+ defp add_aggregates(data_layer_query, query, _aggregate_filters) do
query.aggregates
- |> Enum.reduce({query.aggregates, aggregate_filters}, fn {name, aggregate},
- {aggregates, aggregate_f... | fix: comment out aggregate splitting code for now | null | ash-project/ash | MIT License | Elixir |
@@ -104,7 +104,7 @@ func (self *InstanceSnapshotResetTask) OnKvmDiskResetFailed(
func (self *InstanceSnapshotResetTask) OnInstanceSnapshotReset(ctx context.Context, isp *models.SInstanceSnapshot, data jsonutils.JSONObject) {
guest, _ := isp.GetGuest()
- if guest.Status == compute.VM_READY && jsonutils.QueryBoolean(self... | fix(region): start vm when 'auto_start' is true | null | yunionio/yunioncloud | Apache License 2.0 | Go |
@@ -185,6 +185,7 @@ namespace Uno.Material.Controls
container.ThumbnailTemplate = ThumbnailTemplate;
}
+ container.IsChecked = IsItemSelected(item);
container.CanRemove = CanRemove;
container.IsCheckedChanged += OnItemIsCheckedChanged;
@@ -196,6 +197,12 @@ namespace Uno.Material.Controls
}
}
+ private bool IsItemSelect... | fix: Set proper initial IsChecked value on chips (when available) and avoid discarding initial selection when ChipGroup is not ready | null | unoplatform/uno.themes | Apache License 2.0 | C# |
package org.activiti.cloud.services.core.utils;
-import org.activiti.engine.*;
+import org.activiti.engine.ManagementService;
+import org.activiti.engine.ProcessEngine;
+import org.activiti.engine.ProcessEngineConfiguration;
+import org.activiti.engine.RepositoryService;
+import org.activiti.engine.RuntimeService;
+imp... | fix: managementService bean to TestProcessEngineConfiguration | null | activiti/activiti-cloud | Apache License 2.0 | Java |
** This program is under the terms of the BSD License.
*/
+#include <vector>
+#include <boost/multiprecision/cpp_int/import_export.hpp>
#include <triton/pythonBindings.hpp>
#include <triton/pythonUtils.hpp>
#include <triton/exceptions.hpp>
@@ -163,7 +165,7 @@ namespace triton {
}
try {
- import_bits(tmp, v->ob_digit, v... | fix: ADL mistery + missing include | null | jonathansalwan/triton | Apache License 2.0 | C++ |
@@ -131,7 +131,7 @@ START_TEST(test_Api_GetBalance)
result_ptr.field_len = 128;
result_ptr.field_ptr = BoatMalloc(result_ptr.field_len);
ck_assert((wallet_balance_ptr = BoatEthWalletGetBalance(g_test_wallet_ptr, TEST_ETH_WALLET_ADDR_0)) != NULL);
- ck_assert((BoatEthPraseRpcResponseResultwallet_balance_ptr,"result",&re... | fix: Fix the position of parentheses in statements | null | aitos-io/boat-x-framework | Apache License 2.0 | C |
@@ -456,7 +456,7 @@ def get_site_base_path():
def get_site_path(*path):
- return get_path(base=get_site_base_path(), *path)
+ return get_path(*path, base=get_site_base_path())
def get_files_path(*path, **kwargs):
| fix: correctly order args and kwargs | null | frappe/frappe | MIT License | Python |
@@ -315,8 +315,8 @@ extension SendViewController: QRCodeReaderDelegate {
}
guard let result = QRCodeValueParser.from(string: result) else { return }
switch result {
- case .address:
- break
+ case .address(let recipient):
+ configureFor(contract: transferType.contract, recipient: .address(recipient), amount: "")
case .... | fix: scanning QR code with only an address (i.e. not EIP681 link) in the send ether/ERC20 screen does not fill address correctly | null | alphawallet/alpha-wallet-ios | MIT License | Swift |
@@ -145,7 +145,7 @@ export const ArtworkRailCard: React.FC<ArtworkRailCardProps> = ({
flexDirection="row"
justifyContent="space-between"
>
- <Flex>
+ <Flex flex={1}>
{!!lotLabel && (
<Text lineHeight="20" color="black60" numberOfLines={1}>
Lot {lotLabel}
| fix: Large artwork rail save icon layout | null | artsy/eigen | MIT License | TypeScript |
@@ -74,6 +74,7 @@ ProcessResult ChordComposer::ProcessFunctionKey(const KeyEvent& key_event) {
ProcessResult ChordComposer::ProcessChordingKey(const KeyEvent& key_event) {
bool chording = !chord_.empty();
if (key_event.shift() || key_event.ctrl() || key_event.alt()) {
+ raw_sequence_.clear();
ClearChord();
return chord... | fix(chord_composer): letters with modifier keys should not be committed by a following enter key | null | rime/librime | BSD 3-Clause New or Revised License | C++ |
#include "atom/browser/ui/views/submenu_button.h"
#include "atom/common/keyboard_util.h"
+#include "ui/aura/window.h"
#include "ui/base/models/menu_model.h"
#include "ui/views/background.h"
#include "ui/views/layout/box_layout.h"
@@ -174,6 +175,27 @@ bool MenuBar::AcceleratorPressed(const ui::Accelerator& accelerator) ... | fix: check the root window in MenuBar::SetPanelFocus | null | electron/electron | MIT License | C++ |
@@ -238,7 +238,7 @@ ValueRefList batch_norm_rule(const OpDef& op, Span<ValueRef> inputs) {
return imperative::apply(op, inputs);
}
-ValueRefList convolution3d_rule(const OpDef& op, Span<ValueRef> inputs) {
+ValueRefList naive_promote_rule(const OpDef& op, Span<ValueRef> inputs) {
SmallVector<DType> dtypes = get_value_d... | fix(imperative): add dtype promote support for concat | null | megengine/megengine | Apache License 2.0 | C++ |
@@ -19,7 +19,10 @@ module.exports = async (context, args) => {
await plugins.callHook('beforeBuild', { context, config })
await fs.remove(config.outDir)
+
+ if (fs.existsSync(config.staticDir)) {
await fs.copy(config.staticDir, config.targetDir)
+ }
const queue = await createRenderQueue(app)
| fix(build): check if static dir exists | null | gridsome/gridsome | MIT License | JavaScript |
@@ -18,7 +18,10 @@ export default class SearchBar extends React.Component<SearchBarProps, SearchBar
} else {
value = '';
}
- this.state = { value };
+ this.state = {
+ value,
+ focus: false,
+ };
}
componentWillReceiveProps(nextProps) {
@@ -51,6 +54,23 @@ export default class SearchBar extends React.Component<SearchBar... | fix(RN): SearchBar auto show cancel button. close | null | ant-design/ant-design-mobile | MIT License | TypeScript |
@@ -40,7 +40,8 @@ export class LWSService {
let checked = this.checkWallet(w.publicKey, conn);
return {
publicKey: w.publicKey,
- unlocked: checked.unlocked
+ unlocked: checked.unlocked,
+ profile: w.profile
};
});
conn.send(
@@ -84,12 +85,13 @@ export class LWSService {
return attr;
}
let docValue = await attr.loadDoc... | fix(lws): wallet profile and document attributes | null | selfkeyfoundation/identity-wallet | MIT License | JavaScript |
@@ -306,18 +306,26 @@ class KrakenRenderParagraph extends RenderBox
double firstLineOffset = _lineOffset[0];
ui.LineMetrics firstLineMetrics = _lineMetrics[0];
+ if((text as TextSpan).text == '') {
+ return 0.0;
+ } else {
// Use the baseline of the last line as paragraph baseline
return firstLineOffset + firstLineMetr... | fix: createTextNode empty string has height | null | openkraken/kraken | Apache License 2.0 | Dart |
@@ -286,8 +286,12 @@ protected function installRootPackage(IOInterface $io, Config $config, $packageN
}
$fs = new Filesystem();
- if (is_dir($directory) && !$fs->isDirEmpty($directory)) {
- throw new \InvalidArgumentException("Project directory $directory is not empty.");
+ if (file_exists($directory)) {
+ if (!is_dir(... | fix: Fail when install location is a file | null | composer/composer | MIT License | PHP |
@@ -7,7 +7,10 @@ import 'package:kraken/css.dart';
import 'package:kraken/dom.dart';
import 'package:kraken/rendering.dart';
-final RegExp _whiteSpaceReg = RegExp(r'\s+');
+//final RegExp _whiteSpaceReg = RegExp(r'[\s]+');
+final RegExp _whiteSpaceReg = RegExp(r'[\u0020\u0009\u000A]+');
+final RegExp _trimLeftReg = Reg... | fix: only trim or collapse document whitespace characters | null | openkraken/kraken | Apache License 2.0 | Dart |
@@ -61,7 +61,7 @@ public override void OnStopServer()
/// Called on server from OnServerAuthenticateInternal when a client needs to authenticate
/// </summary>
/// <param name="conn">Connection to client.</param>
- public override void OnServerAuthenticate(NetworkConnection conn)
+ public override void OnServerAuthenti... | fix: Chat Example Authenticator | null | vis2k/mirror | MIT License | C# |
@@ -47,26 +47,29 @@ class Multicall:
def __init__(self) -> None:
self.address = None
- self.block_number = None
+ self._block_number = defaultdict(lambda: None) # type: ignore
self._contract = None
- self._pending_calls: List[Call] = []
+ self._pending_calls: Dict[int, List[Call]] = defaultdict(list)
setattr(ContractCa... | fix: add per-thread pending call list + per-thread block number | null | eth-brownie/brownie | MIT License | Python |
@@ -76,6 +76,9 @@ class StaticFileLoader:
logger.debug('%d view classes discovered', len(view_classes))
for view_class in view_classes:
+ if not hasattr(view_class, 'STATIC_FILES'):
+ continue
+
yield view_class, iter(view_class.STATIC_FILES)
def _discover_static_files(self) -> list[StaticFile]:
| fix(static files): fix handling of HTTP pass through callbacks | null | lona-web-org/lona | MIT License | Python |
@@ -135,7 +135,9 @@ declare namespace Eris {
type ActivityType = BotActivityType | Constants["ActivityTypes"]["CUSTOM"];
type BotActivityType = Constants["ActivityTypes"][Exclude<keyof Constants["ActivityTypes"], "CUSTOM">];
type FriendSuggestionReasons = { name: string; platform_type: string; type: number }[];
- type ... | fix(typings): presence offline/invisible indicators | null | abalabahaha/eris | MIT License | TypeScript |
@@ -4,6 +4,7 @@ import au.com.dius.pact.core.model.ContentType.Companion.HTMLREGEXP
import au.com.dius.pact.core.model.ContentType.Companion.JSONREGEXP
import au.com.dius.pact.core.model.ContentType.Companion.XMLREGEXP
import au.com.dius.pact.core.model.ContentType.Companion.XMLREGEXP2
+import au.com.dius.pact.core.sup... | fix: V4 format body was writing JSON bodies in string form | null | pact-foundation/pact-jvm | Apache License 2.0 | Kotlin |
@@ -9,20 +9,24 @@ mixin ElementStyleMixin on RenderBox {
String width;
bool isParentWithWidth = false;
Element childNode = nodeMap[childId];
- Style parentStyle;
double cropWidth = 0;
while (!isParentWithWidth) {
Style style = childNode.style;
if (style.contains('width')) {
isParentWithWidth = true;
width = style['widt... | fix: box content width with padding | null | openkraken/kraken | Apache License 2.0 | Dart |
@@ -1681,20 +1681,20 @@ var Unit = IgeEntityBox2d.extend({
self.minimapUnit.translateTo(self._translate.x, self._translate.y, 0);
}
- if(Date.now() - self.dob > 3000) {
- var nextTransform = ige.nextSnapshot[1] && ige.nextSnapshot[1][this.id()] || self.lastDebugSnapshot;
- if(nextTransform) {
- self.isCulled = !self.is... | fix: disable culling for unit | null | moddio/taro | MIT License | JavaScript |
@@ -832,7 +832,7 @@ function requestPlugin(options, callback, retryCount) {
retryCount = retryCount || 0;
util.request(options, function(err, body, res) {
if (err && retryCount < 5) {
- return requestRules(options, callback, ++retryCount);
+ return requestPlugin(options, callback, ++retryCount);
}
if (res && res.status... | fix: Maximum call stack size exceeded | null | avwo/whistle | MIT License | JavaScript |
@@ -11,7 +11,6 @@ from tenacity import (
retry,
retry_if_exception_type,
stop_after_attempt,
- stop_after_delay,
wait_exponential,
)
@@ -103,7 +102,6 @@ class RedshiftStatementNotFinishedError(Exception):
@retry(
wait=wait_exponential(multiplier=1, max=30),
retry=retry_if_exception_type(RedshiftStatementNotFinishedErro... | fix: Fix Redshift bug that stops waiting on statements after 5 minutes | null | feast-dev/feast | Apache License 2.0 | Python |
@@ -1056,7 +1056,7 @@ public class DataHandler
if ( periodOffsetRow != null )
{
result.put( key, new DimensionItemObjectValue( dimensionalItemObject,
- ((Number) row.get( valueIndex )).doubleValue() ) );
+ ((Number) periodOffsetRow.get( valueIndex )).doubleValue() ) );
}
clone = SerializationUtils.clone( dimensionalIte... | fix: broken periodOffset function | null | dhis2/dhis2-core | BSD 3-Clause New or Revised License | Java |
@@ -15,7 +15,7 @@ use meilisearch_core::settings::{Settings, SettingsUpdate};
use meilisearch_schema::Schema;
use serde_json::Value;
-use criterion::{criterion_group, criterion_main, Criterion, BenchmarkId};
+use criterion::{black_box, criterion_group, criterion_main, Criterion, BenchmarkId};
fn prepare_database(path: ... | fix(core): fix benchmark in core with types | null | meilisearch/meilisearch | MIT License | Rust |
@@ -11,7 +11,7 @@ type Cloudprovider struct {
AccessUrl string `json:"access_url" gorm:"column:access_url"`
Provider string `json:"provider" gorm:"column:provider"`
CloudaccountId string `json:"cloudaccount_id" gorm:"column:cloudaccount_id"`
- ProjectId string `json:"tenant_id" gorm:"column:provider_id"`
+ ProjectId st... | fix: scheduler cloudprovider ProjectId typo | null | yunionio/yunioncloud | Apache License 2.0 | Go |
@@ -2327,6 +2327,9 @@ declare module 'mongoose' {
/** Appends a new $redact operator to this aggregate pipeline. */
redact(expression: any, thenExpr: string | any, elseExpr: string | any): this;
+ /** Appends a new $replaceRoot operator to this aggregate pipeline. */
+ replaceRoot(newRoot: object | string): this;
+
/**... | fix(index.d.ts): add `Aggregate#replaceRoot()` | null | automattic/mongoose | MIT License | TypeScript |
@@ -7571,7 +7571,7 @@ HttpSM::set_next_state()
t_state.dns_info.resolved_p = true; // seems dangerous - where's the IP address?
call_transact_and_set_next_state(nullptr);
break;
- } else if (t_state.dns_info.resolve_immediate()) {
+ } else if (t_state.parent_result.result == PARENT_UNDEFINED && t_state.dns_info.resolve... | fix: ensure DNS resolution for parent proxy | null | apache/trafficserver | Apache License 2.0 | C++ |
@@ -1815,7 +1815,7 @@ impl Runtime for Wry {
self
.event_loop
.run_return(|event, event_loop, control_flow| {
- *control_flow = ControlFlow::Poll;
+ *control_flow = ControlFlow::Wait;
if let Event::MainEventsCleared = &event {
*control_flow = ControlFlow::Exit;
}
| fix: use Wait instead of Poll | null | tauri-apps/tauri | Apache License 2.0 | Rust |
@@ -50,7 +50,7 @@ export interface IAWSProviderSettings extends IProviderSettings {
enableIMDSv2?: boolean;
defaultIMDSv2AppAgeLimit?: number;
enableCpuCredits?: boolean;
- recommendedSubnets?: string;
+ recommendedSubnets?: string[];
subnetWarning?: string;
};
useAmiBlockDeviceMappings?: boolean;
| fix(aws): Update type for recommended subnets | null | spinnaker/deck | Apache License 2.0 | TypeScript |
@@ -293,7 +293,7 @@ func (c *Client) ReportChunk(ctx context.Context, args *ReportChunkArgs) (err er
return err
}
request.ContentLength = int64(len(b))
- request.Header.Set(rpc.HeaderContentType, rpc.MIMEPOSTForm)
+ request.Header.Set(rpc.HeaderContentType, rpc.MIMEStream)
resp, err := c.Do(ctx, request)
if err != nil ... | fix(clusterMgr): fix chunk report 502 error | null | chubaofs/chubaofs | Apache License 2.0 | Go |
@@ -1635,6 +1635,10 @@ func (self *SNetwork) validateUpdateData(ctx context.Context, userCred mcclient.
if endIp.NetAddr(masklen) != netAddr {
return input, httperrors.NewInputParameterError("start, end ip must be in the same subnet")
}
+ } else {
+ startIp, _ = netutils.NewIPV4Addr(self.GuestIpStart)
+ endIp, _ = netu... | fix(region): fail to update network gateway | null | yunionio/yunioncloud | Apache License 2.0 | Go |
@@ -924,7 +924,8 @@ void setupSimulatedSystem( vector<Future<Void>> *systemActors, std::string baseF
if(simconfig.db.regions.size() == 2) {
g_simulator.primaryDcId = simconfig.db.regions[0].dcId;
g_simulator.remoteDcId = simconfig.db.regions[1].dcId;
- g_simulator.hasSatelliteReplication = simconfig.db.regions[0].satel... | fix: hasSatelliteReplication was set incorrectly | null | apple/foundationdb | Apache License 2.0 | C++ |
@@ -71,7 +71,7 @@ impl DesktopConfig {
self
}
- pub fn with_custom_protocol<F>(mut self, name: String, handler: F) -> Self
+ pub fn with_custom_protocol<F>(&mut self, name: String, handler: F) -> &mut Self
where
F: Fn(&HttpRequest) -> WryResult<HttpResponse> + 'static,
{
| fix: custom protocol receiver type | null | dioxuslabs/dioxus | Apache License 2.0 | Rust |
@@ -1482,12 +1482,14 @@ class Form extends ViewableData implements HasRequestHandler
// Regular array access. Note that dot-syntax not supported here
} elseif (is_array($data)) {
- // PHP turns the '.'s in POST vars into '_'s
- $name = str_replace('.', '_', $name);
if (array_key_exists($name, $data)) {
$exists = true;
... | fix: Make the ./_ substitution optional | null | silverstripe/silverstripe-framework | BSD 3-Clause New or Revised License | PHP |
@@ -93,19 +93,22 @@ class LoadingDialog<T> {
body: FutureBuilder<T>(
future: future,
builder: (BuildContext context, AsyncSnapshot<T> snapshot) {
- if (snapshot.hasData) {
- _popDialog(context, snapshot.data);
- return Container();
- } else if (snapshot.hasError) {
+ if (snapshot.connectionState == ConnectionState.done... | fix: - checking hasError instead of hasData in FutureBuilder | null | openfoodfacts/smooth-app | Apache License 2.0 | Dart |
@@ -235,7 +235,7 @@ class Session:
user.last_login = frappe.utils.now()
user.last_ip = frappe.local.request_ip
user.last_active = frappe.utils.now()
- user.save()
+ user.save(ignore_permissions=True)
frappe.db.commit()
| fix: ignore_permissions while updating user activity | null | frappe/frappe | MIT License | Python |
@@ -868,7 +868,7 @@ export class Engine extends IEngine {
if (!isUndefined(pairingTopic)) await this.isValidPairingTopic(pairingTopic);
// validate required namespaces only if they are defined
- if (isValidObject(requiredNamespaces) === 0) {
+ if (!isUndefined(requiredNamespaces) && isValidObject(requiredNamespaces) ==... | fix: checks for undefined | null | walletconnect/walletconnect-monorepo | Apache License 2.0 | TypeScript |
@@ -5,6 +5,7 @@ import org.fossasia.openevent.app.common.app.lifecycle.presenter.BasePresenter;
import org.fossasia.openevent.app.common.app.rx.Logger;
import org.fossasia.openevent.app.common.data.models.Copyright;
import org.fossasia.openevent.app.common.data.repository.contract.ICopyrightRepository;
+import org.foss... | fix: Nullify empty fields in Copyright Form | null | fossasia/open-event-organizer-android | Apache License 2.0 | Java |
@@ -61,9 +61,12 @@ class LetterHead(Document):
# To preserve the aspect ratio of the image, apply constraints only on
# the greater dimension and allow the other to scale accordingly
- dimension = "width" if width > height else "height"
+ dimension = "width" if self.get(width) > self.get(height) else "height"
dimension... | fix: Letter head image not working | null | frappe/frappe | MIT License | Python |
@@ -2380,9 +2380,11 @@ func (account *SCloudaccount) SubmitSyncAccountTask(ctx context.Context, userCre
defer cloudaccountPendingSyncsMutex.Unlock()
if _, ok := cloudaccountPendingSyncs[account.Id]; ok {
if waitChan != nil {
+ go func() {
// an active cloudaccount sync task is running, return with conflict error
log.Er... | fix: avoid account sync deadlock | null | yunionio/yunioncloud | Apache License 2.0 | Go |
@@ -441,7 +441,7 @@ static void draw_letter_subpx(lv_draw_ctx_t * draw_ctx, const lv_draw_label_dsc_
#endif
lv_draw_sw_blend_dsc_t blend_dsc;
- lv_memset_00(&blend_dsc, sizeof(&blend_dsc));
+ lv_memset_00(&blend_dsc, sizeof(blend_dsc));
blend_dsc.blend_area = &map_area;
blend_dsc.mask_area = &map_area;
blend_dsc.src_bu... | fix(draw_sw_letter): fix incorrect use of sizeof for a pointer | null | lvgl/lvgl | MIT License | C |
@@ -594,7 +594,6 @@ export default function (context, pluginCallButtons, plugins, lang, options, _re
* @private
*/
_setMenuPosition: function (element, menu) {
- menu.style.top = '-10000px';
menu.style.visibility = 'hidden';
menu.style.display = 'block';
menu.style.height = '';
@@ -613,7 +612,7 @@ export default functi... | fix: RTL menu position | null | jihong88/suneditor | MIT License | JavaScript |
// Rewrite it using generics so that it supports wrapping ANY type.
// I AM NOT DONE
-struct Wrapper<u32> {
+struct Wrapper {
value: u32
}
-impl<u32> Wrapper<u32> {
+impl Wrapper {
pub fn new(value: u32) -> Self {
Wrapper { value }
}
@@ -23,8 +23,6 @@ mod tests {
#[test]
fn store_str_in_wrapper() {
- // TODO: Delete th... | fix: update generics2 closes | null | rust-lang/rustlings | MIT License | Rust |
@@ -53,6 +53,7 @@ import java.util.concurrent.TimeUnit;
import static com.google.common.base.Preconditions.checkNotNull;
import static org.onlab.util.Tools.groupedThreads;
+import static org.onosproject.net.MastershipRole.NONE;
import static org.slf4j.LoggerFactory.getLogger;
/**
@@ -121,7 +122,12 @@ public class Ovsdb... | fix: invoke a fake role reply ack on role change event for ovsdb | null | opennetworkinglab/onos | Apache License 2.0 | Java |
@@ -173,7 +173,8 @@ final class DappBrowserCoordinator: NSObject, Coordinator {
}
func open(url: URL, animated: Bool = true) {
- if isMagicLink(url) {
+ //If users tap on the verified button in the import MagicLink UI, we don't want to treat it as a MagicLink to import and show the UI again. Just open in browser. This ... | fix: tapping verified in import UI does not load URL in browser correctly | null | alphawallet/alpha-wallet-ios | MIT License | Swift |
@@ -43,7 +43,6 @@ func getBuildParameterFromNodeContext(proj sdk.Project, w *sdk.Workflow, runCont
}
tmpProj = sdk.ParametersFromProjectKeys(proj)
- vars = make(map[string]string, len(tmpProj))
for k, v := range tmpProj {
vars[k] = v
}
| fix: do not erase vars slice | null | ovh/cds | BSD 3-Clause New or Revised License | Go |
@@ -222,11 +222,15 @@ impl LineHighlighter {
(?P<comment>(?:/\*[\s\S]*?\*/|//[^\n]*)) |
(?P<string>(?:"([^"\\]|\\.)*"|'([^'\\]|\\.)*'|`([^`\\]|\\.)*`)) |
(?P<regexp>/(?:(?:\\/|[^\n/]))*?/[gimsuy]*) |
- (?P<number>\d+(?:\.\d+)*(?:e[+-]?\d+)*n?) |
+ (?P<number>\b\d+(?:\.\d+)?(?:e[+-]?\d+)*n?\b) |
+ (?P<infinity>\b(?:Infi... | fix(cli/repl): Fixing syntax highlighting | null | denoland/deno | MIT License | Rust |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.