diff stringlengths 12 9.3k | message stringlengths 8 199 | reasoning_trace null | repo stringlengths 6 68 | license stringclasses 3
values | language stringclasses 16
values |
|---|---|---|---|---|---|
+const chalk = require('chalk')
const { createHTMLRenderer } = require('../../utils/html')
const { createBundleRenderer } = require('vue-server-renderer')
@@ -18,23 +19,29 @@ module.exports = function createRenderFn ({
return async function render (url, data = {}) {
const context = { url, pageQuery: { data }}
+ let app... | fix(build): better error if render fails | null | gridsome/gridsome | MIT License | JavaScript |
import type { PropsWithChildren, ReactNode } from 'https://esm.sh/react'
-import { Children, Fragment, isValidElement, useContext, useEffect, useMemo } from 'https://esm.sh/react'
+import { Children, createElement, Fragment, isValidElement, useContext, useEffect, useMemo } from 'https://esm.sh/react'
import util from '... | fix(fw/react): fix the `Head` component | null | alephjs/aleph.js | MIT License | TypeScript |
@@ -4,16 +4,14 @@ import * as BufferLayout from '@solana/buffer-layout';
/**
* Layout for a public key
*/
-export const publicKey = (
- property: string = 'publicKey',
-): BufferLayout.Layout => {
+export const publicKey = (property: string = 'publicKey') => {
return BufferLayout.blob(32, property);
};
/**
* Layout for... | fix: add TypeScript buffer type to layout.ts | null | solana-labs/solana-web3.js | MIT License | TypeScript |
# include <lv_port_indev.h>
#endif
-#if LV_USE_LOG && LV_LOG_PRINTF
+#if LV_USE_LOG
static void lv_rt_log(const char *buf)
{
LOG_I(buf);
@@ -32,7 +32,7 @@ static void lv_rt_log(const char *buf)
static int lv_port_init(void)
{
-#if LV_USE_LOG && LV_LOG_PRINTF
+#if LV_USE_LOG
lv_log_register_print_cb(lv_rt_log);
#endif
| fix(rt-thread): fix a bug of log | null | lvgl/lvgl | MIT License | C |
@@ -564,7 +564,8 @@ export const Block: React.FC<BlockProps> = (props) => {
blockId
)}
>
- <Text value={block.properties.title} block={block} />
+ <div><Text value={block.properties.title} block={block} /></div>
+ {children}
</blockquote>
)
}
| fix: missing sub-blocks in blockquote | null | notionx/react-notion-x | MIT License | TypeScript |
@@ -1001,7 +1001,7 @@ ws_main_loop(dati *ws)
ASSERT_S(CURLM_OK == mcode, curl_multi_strerror(mcode));
//wait for activity or timeout
- mcode = curl_multi_wait(ws->mhandle, NULL, 0, 1000, &numfds);
+ mcode = curl_multi_wait(ws->mhandle, NULL, 0, 5, &numfds);
ASSERT_S(CURLM_OK == mcode, curl_multi_strerror(mcode));
if (w... | fix: change 1000ms wait for socket activity to 5ms | null | cee-studio/orca | MIT License | C++ |
@@ -102,7 +102,7 @@ export class Heap<T>
pushPop(val: T, vals = this.values) {
const head = vals[0];
- if (vals.length > 0 && this.compare(head, val) < 0) {
+ if (vals.length > 0 && this.compare(head, val) <= 0) {
vals[0] = val;
val = head;
this.percolateDown(0, vals);
| fix(heaps): update pushPop() comparison | null | thi-ng/umbrella | Apache License 2.0 | TypeScript |
@@ -29,6 +29,7 @@ import com.absinthe.libchecker.utils.Toasty
import com.absinthe.libraries.me.Absinthe
import com.absinthe.libraries.utils.utils.UiUtils
import com.drakeet.about.*
+import com.google.android.material.appbar.AppBarLayout
import com.microsoft.appcenter.analytics.Analytics
import com.microsoft.appcenter.a... | fix: Minor fixing | null | libchecker/libchecker | Apache License 2.0 | Kotlin |
@@ -35,7 +35,6 @@ extensions = ['sphinx.ext.todo',
'sphinx.ext.viewcode',
'sphinx.ext.autodoc',
'sphinx.ext.napoleon',
- 'sphinx_copybutton',
]
# Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates']
| fix: bugs in doc | null | rucaibox/textbox | MIT License | Python |
@@ -44,7 +44,7 @@ class K8sPod(BasePod, ExitFIFO):
image_name = (
'jinaai/jina:test-pip'
if test_pip
- else f'jinaai/jina:{self.version}-py38-perf'
+ else f'jinaai/jina:{self.version}-py38-standard'
)
kubernetes_deployment.deploy_service(
self.dns_name,
| fix: gateway uvicorn needed | null | jina-ai/jina | Apache License 2.0 | Python |
@@ -143,14 +143,16 @@ open class MediaControl(core: Core) : UICorePlugin(core) {
open fun setupPlugins() {
controlPlugins.clear()
- var filteredList = core.plugins.filterIsInstance(MediaControl.Plugin::class.java)
+ with(core.plugins.filterIsInstance(MediaControl.Plugin::class.java)) {
core.options[ClapprOption.MEDIA_C... | fix(plugins_order): created function to ordered plugins | null | clappr/clappr-android | BSD 3-Clause New or Revised License | Kotlin |
@@ -173,7 +173,7 @@ public struct Constants {
static let ensContractOnMainnet = AlphaWallet.Address.ethereumAddress(eip55String: "0x57f1887a8BF19b14fC0dF6Fd9B2acc9Af147eA85")
- static let defaultEnabledServers: [RPCServer] = [.arbitrum]//[.main, .xDai, .polygon]
+ static let defaultEnabledServers: [RPCServer] = [.main,... | fix: default chains must include Ethereum mainnet | null | alphawallet/alpha-wallet-ios | MIT License | Swift |
@@ -341,7 +341,7 @@ impl<'a> SysConfig<'a> {
}
pub fn default_auto_exec() -> bool {
- error!("Use the default autoEXEC.");
+ info!("Use the default autoEXEC.");
false
}
}
| fix: should not use error message in default auto exec | null | citahub/cita | Apache License 2.0 | Rust |
-import { AppRecord, BackendContext } from '@vue-devtools/app-backend-api'
+import { AppRecord, BackendContext, DevtoolsApi } from '@vue-devtools/app-backend-api'
import { classify } from '@vue-devtools/shared-utils'
import { ComponentTreeNode } from '@vue/devtools-api'
import { getInstanceOrVnodeRect } from './el'
@@ ... | fix: Call `api.visitComponentTree` in Vue2's backend api | null | vuejs/vue-devtools | MIT License | TypeScript |
@@ -207,7 +207,7 @@ orka_timestamp_ms()
struct timespec t;
clock_gettime(CLOCK_REALTIME, &t);
- return t.tv_sec*1000 + t.tv_nsec/1000000;
+ return (uint64_t)t.tv_sec*1000 + (uint64_t)t.tv_nsec/1000000;
}
void
| fix: orka_timestamp_ms is truncated in 32-bit | null | cee-studio/orca | MIT License | C |
@@ -106,6 +106,10 @@ export const AccordionItem = forwardRef<HTMLButtonElement, AccordionItemProps>(
}
}
+ useEffect(() => {
+ setHeight(expanded ? 'auto' : 0)
+ }, [expanded])
+
useEffect(
() => {
if (startExpanded && expandedProp == null) {
| fix(web): Make category accordion items expanded when hash exists in url | null | island-is/island.is | MIT License | TypeScript |
# See license.txt
from __future__ import unicode_literals
+
+import os
import frappe
import unittest
@@ -9,6 +11,9 @@ test_records = frappe.get_test_records('Website Theme')
class TestWebsiteTheme(unittest.TestCase):
def test_website_theme(self):
+ if os.environ.get('CI'):
+ # no node-sass on travis (?)
+ return
frappe... | fix(test): Theme tests does not run on Travis | null | frappe/frappe | MIT License | Python |
@@ -113,6 +113,7 @@ function listFilesAbsolute(folderPath, recursive = true) {
function loadEnv(fileName = '.env') {
const absolutePath = getAbsolutePath(fileName);
+ if (fs.existsSync(absolutePath)) {
const content = fs.readFileSync(absolutePath, 'utf8');
const lines = content.split(/\n|\r|\r\n/);
for (let i = 0; i < ... | fix: do not load env if file does not exists | null | axa-group/nlp.js | MIT License | JavaScript |
@@ -376,20 +376,16 @@ class Rules
// as $fields is the lis
$requiredFields = [];
- foreach ($fields as $field)
- {
- if (array_key_exists($field, $data))
- {
+ foreach ($fields as $field) {
+ if (
+ (strpos($field, '.') !== false &&
+ !empty(dot_array_search($field, $data))) ||
+ (array_key_exists($field, $data) && !em... | fix: make required_with and required_without validation rule work with arrays | null | codeigniter4/codeigniter4 | MIT License | PHP |
@@ -216,7 +216,7 @@ func (v *TokenVerifier) Validate(ctx context.Context, token string) ([]string, b
}
idToken, err = v.oauthVerifier.Verify(ctx, token)
if err != nil {
- return []string{}, true, token, fmt.Errorf("invalid token derived from refresh - manual authorization is required")
+ return []string{}, true, token,... | fix: Do not mask error | null | aporeto-inc/trireme-lib | Apache License 2.0 | Go |
@@ -39,7 +39,7 @@ func start(host string, port int, handler http.Handler, run func(svr *http.Serve
}
waitForCalled := proc.AddWrapUpListener(func() {
- if e := server.Shutdown(context.Background()); err != nil {
+ if e := server.Shutdown(context.Background()); e != nil {
logx.Error(e)
}
})
| fix: `\u003cnil\u003e` log output when http server shutdown | null | zeromicro/go-zero | MIT License | Go |
@@ -1160,9 +1160,7 @@ class App extends React.Component<ExcalidrawProps, AppState> {
if (!this.state.showStats) {
trackEvent("dialog", "stats");
}
- this.setState({
- showStats: !this.state.showStats,
- });
+ this.actionManager.executeAction(actionToggleStats);
};
setScrollToCenter = (remoteElements: readonly Excalidra... | fix(app.tsx): show correct state of Nerd stats in context menu when nerd stats dialog closed | null | excalidraw/excalidraw | MIT License | TypeScript |
@@ -16,6 +16,21 @@ func KeyFuncIncSearch(this *Buffer) Result {
lastDrawWidth := 0
lastFoundPos := this.History.Len() - 1
Backspace(this.Cursor - this.ViewStart)
+
+ update := func() {
+ for i := this.History.Len() - 1; ; i-- {
+ if i < 0 {
+ foundStr = ""
+ break
+ }
+ line := this.History.At(i)
+ if strings.Contains(... | fix: readline: isearch: BACKSPACE-KEY did not redraw a found commandline | null | zetamatta/nyagos | BSD 3-Clause New or Revised License | Go |
@@ -50,7 +50,8 @@ export const promise = async ({
&& fieldAffectsData(field)
&& (typeof siblingDoc[field.name] === 'object' && siblingDoc[field.name] !== null)
&& field.localized
- && req.locale !== 'all';
+ && req.locale !== 'all'
+ && req.payload.config.localization;
if (shouldHoistLocalizedValue) {
// replace actual... | fix: only hoists localized values if localization is enabled | null | payloadcms/payload | MIT License | TypeScript |
@@ -171,16 +171,19 @@ class DeckGLMap extends React.Component<DeckGLPropType, DeckGLStateType> {
(mapWaterNeedFilter && waterNeed !== mapWaterNeedFilter) ||
!rainDataExists;
+ if (id === "_2100157b5d") {
+ debugger
+ }
if (colorShallBeTransparent) return colors.transparent;
if (mapViewFilter === 'watered') {
- return c... | fix(#379): Fix the bug that ageless watered or adopted trees aren't shown | null | technologiestiftung/giessdenkiez-de | MIT License | TypeScript |
@@ -49,6 +49,18 @@ pub enum Error {
actual_column_type: String,
},
+ #[snafu(display(
+ "Expected column {} to be a tag but received it as a string field",
+ column
+ ))]
+ ExpectedTag { column: String },
+
+ #[snafu(display(
+ "Expected column {} to be a string field but received it as a tag",
+ column
+ ))]
+ Expecte... | fix: Make error types more granular; cover field-to-tag and tag-to-field mismatch | null | influxdata/influxdb_iox | Apache License 2.0 | Rust |
@@ -33,9 +33,7 @@ module ApplicationMultitenancyConcern
# Deduces the current host. We strip any leading www from the host.
# @return [String] The host, with www removed.
def deduce_tenant_host
- if Rails.env.development?
- 'coursemology.org'
- elsif request.host.downcase.start_with?('www.')
+ if request.host.downcase.... | fix(tenant): remove dev tenant host check | null | coursemology/coursemology2 | MIT License | Ruby |
@@ -20,7 +20,7 @@ module Dpl
opt '--update_cli'
opt '--create'
opt '--promote', default: true
- opt '--env_names VAR_NAMES', type: :array
+ opt '--env_names VARS', type: :array
opt '--env VARS', type: :array
opt '--env_file FILE'
opt '--description STR'
| fix(convox): typo fix VAR_NAMES->VARS | null | travis-ci/dpl | MIT License | Ruby |
@@ -30,4 +30,4 @@ curl -X GET \
-o "${filenamelocal}" \
"https://storage.googleapis.com/storage/v1/b/${bucket}/o/$(urlencode ${env}/${timestamp}/${filenamebucket})?alt=media"
-/cockroach/cockroach.sh sql --certs-dir=${certs} --host=cockroachdb-public:26257 --database=defaultdb < ${filenamelocal}
+/cockroach/cockroach.s... | fix(zitadel): added db to restore script for data insert | null | caos/orbos | Apache License 2.0 | Shell |
@@ -139,6 +139,8 @@ build_para_wasm_runtimes() {
set_keys() {
t3rn1_phrase="$(grep -oP '(?<=phrase:)[^\n]+' ./specs/t3rn1.key | xargs)"
t3rn2_phrase="$(grep -oP '(?<=phrase:)[^\n]+' ./specs/t3rn2.key | xargs)"
+ t3rn1_adrs="$(grep -oP '(?<=\(SS58\):\s)[^\n]+' ./specs/t3rn1.key)"
+ t3rn2_adrs="$(grep -oP '(?<=\(SS58\):\... | fix: provide t3rn adrs for setkeys | null | t3rn/t3rn | Apache License 2.0 | Shell |
@@ -490,7 +490,11 @@ ACTOR Future<Void> repairDeadDatacenter(Database cx, Reference<AsyncVar<ServerDB
bool primaryDead = g_simulator.datacenterDead(g_simulator.primaryDcId);
bool remoteDead = g_simulator.datacenterDead(g_simulator.remoteDcId);
- ASSERT(!primaryDead || !remoteDead);
+ //FIXME: the primary and remote can... | fix: some exclude workloads would cause both the primary and remote datacenter to be considered dead | null | apple/foundationdb | Apache License 2.0 | C++ |
@@ -463,6 +463,11 @@ class ParserUDF(UDF):
# Pull the image from a child img node, if one exists
imgs = [child for child in node if child.tag == "img"]
+ # In case the image from the child img node doesn't exist
+ if len(imgs) == 0:
+ logger.warning("No image found in Figure.")
+ return state
+
if len(imgs) > 1:
logger... | fix: no image in child image node | null | hazyresearch/fonduer | MIT License | Python |
@@ -17,7 +17,8 @@ class DebugButton extends React.Component {
this.props.contracts &&
this.props.contracts.find(contract => {
const address = this.props.transaction.to || this.props.transaction.address;
- return contract.deployedAddress &&
+ return !contract.silent &&
+ contract.deployedAddress &&
address &&
(contract.... | fix(embark-ui): don't show debug button for txs of silent contracts | null | embarklabs/embark | MIT License | JavaScript |
@@ -193,7 +193,7 @@ protected:
void writeCoercedAsciiNumber(const char *s, int len) {
VString &val = jsonText.back();
- val.reserve(arena, len + 3);
+ val.reserve(arena, val.size() + len + 3);
int written = coerceAsciiNumberToJSON(s, len, val.end());
if(written > 0) {
val.extendUnsafeNoReallocNoInit(written);
| fix: reserve was not called correctly | null | apple/foundationdb | Apache License 2.0 | C |
@@ -694,7 +694,6 @@ void AnnotationSettingsView::detectTriggerCalculations(const QString &sChannelNa
for(int i = 0; i < m_pFiffInfo->chs.size(); ++i) {
if(m_pFiffInfo->chs[i].ch_name == sChannelName) {
iCurrentTriggerChIndex = i;
- QApplication::processEvents();
break;
}
}
@@ -717,8 +716,6 @@ void AnnotationSettingsVie... | fix: remove uneeded call to process events | null | mne-tools/mne-cpp | BSD 3-Clause New or Revised License | C++ |
@@ -182,7 +182,7 @@ interface MapOrSet<T> {
function loadDependencies(filename: string, ignored: MapOrSet<string>) {
const dependencies = new Set<string>()
function loadModule({ filename, children }: NodeModule) {
- if (ignored.has(filename) || dependencies.has(filename)) return
+ if (ignored.has(filename) || dependenc... | fix(cli): do not reload node modules | null | koishijs/koishi | MIT License | TypeScript |
@@ -50,7 +50,7 @@ togglbutton.render('.MyTasksTaskRow:not(.toggl)', { observe: true },
return;
}
const container = elem.querySelector('.ItemRowTwoColumnStructure-left');
- const description = elem.querySelector('.TaskName textarea').textContent;
+ const descriptionSelector = () => elem.querySelector('.TaskName textarea... | fix(asana): Get task description when button is clicked | null | toggl/track-extension | Apache License 2.0 | JavaScript |
@@ -221,6 +221,13 @@ class Forge extends \CodeIgniter\Database\Forge
return;
+ case 'BOOLEAN':
+ $attributes['TYPE'] = 'NUMBER';
+ $attributes['CONSTRAINT'] = 1;
+ $attributes['UNSIGNED'] = true;
+ $attributes['NULL'] = false;
+ return;
+
case 'DOUBLE':
$attributes['TYPE'] = 'FLOAT';
$attributes['CONSTRAINT'] = $attrib... | fix: BOOLEAN is now cast to NUMBER | null | codeigniter4/codeigniter4 | MIT License | PHP |
@@ -203,7 +203,7 @@ func (l *configLoader) ensureRequires(ctx context.Context, config *latest.Config
return nil
}
- var aggregatedErrors := []error{}
+ var aggregatedErrors []error
if config.Require.DevSpace != "" {
parsedConstraint, err := constraint.NewConstraint(config.Require.DevSpace)
| fix: fix variable assignment | null | loft-sh/devspace | Apache License 2.0 | Go |
@@ -723,7 +723,7 @@ def dt_strftime(x, date_format):
2 2015-11
"""
import pandas as pd
- return pd.Series(_pandas_dt_fix(x)).dt.strftime(date_format).values
+ return pd.Series(_pandas_dt_fix(x)).dt.strftime(date_format).values.astype(str)
@register_function(scope='dt')
def dt_floor(x, freq, *args):
| fix(core): cast dt_strftime to string type | null | vaexio/vaex | MIT License | Python |
@@ -69,7 +69,7 @@ func (region *SRegion) GetUsage(resourceType string) ([]SUsage, error) {
func (region *SRegion) GetICloudQuotas() ([]cloudprovider.ICloudQuota, error) {
ret := []cloudprovider.ICloudQuota{}
- for _, resourceType := range []string{"Microsoft.Network", "Microsoft.Storage", "Microsoft.Compute", "Microsof... | fix(region): azure quota sync | null | yunionio/yunioncloud | Apache License 2.0 | Go |
@@ -7,21 +7,21 @@ import {Length} from '../List/Length'
import {Cast} from '../Any/Cast'
import {List} from '../List/List'
import {Extends} from '../Any/Extends'
-import {Depth} from './_Internal'
+import {Depth, MergeStyle} from './_Internal'
/**
@hidden
*/
-type __Assign<O extends object, Os extends List<object>, dep... | fix(assign): add merging style option | null | millsp/ts-toolbelt | Apache License 2.0 | TypeScript |
@@ -1345,7 +1345,7 @@ defmodule Ash.Actions.ManagedRelationships do
source_record
|> Ash.Changeset.for_update(action_name, %{})
- |> Ash.Changeset.force_change_attribute(relationship.destination_field, nil)
+ |> Ash.Changeset.force_change_attribute(relationship.source_field, nil)
|> Ash.Changeset.set_context(relationsh... | fix: set `source_field` when replacing `belongs_to` relationship | null | ash-project/ash | MIT License | Elixir |
@@ -67,7 +67,12 @@ const init = dispatch => async () => {
}
})
}
- getTreeData.then(treeData => dispatch({ treeData })).catch(err => dispatch(handleError, err))
+ getTreeData.then(treeData => {
+ if (treeData) {
+ // in an unknown rare case this NOT happen
+ dispatch({ treeData })
+ }
+ }).catch(err => dispatch(handleE... | fix: handle a unknown rare case | null | enixcoda/gitako | MIT License | JavaScript |
@@ -3,12 +3,14 @@ package k8s
import (
"context"
"fmt"
- "github.com/asynkron/protoactor-go/cluster/identitylookup/disthash"
"net"
+ "os"
"strconv"
"testing"
"time"
+ "github.com/asynkron/protoactor-go/cluster/identitylookup/disthash"
+
"github.com/asynkron/protoactor-go/actor"
"github.com/asynkron/protoactor-go/cluste... | fix: skip k8s testcases in non-k8s environments | null | asynkronit/protoactor-go | Apache License 2.0 | Go |
@@ -3266,41 +3266,12 @@ static const KeyRangeRef persistChangeFeedKeys =
KeyRangeRef(LiteralStringRef(PERSIST_PREFIX "RF/"), LiteralStringRef(PERSIST_PREFIX "RF0"));
// data keys are unmangled (but never start with PERSIST_PREFIX because they are always in allKeys)
-ACTOR Future<Void> fetchChangeFeed(StorageServer* dat... | fix: handle the case where a fetch happens at an earlier read version than the commit version of the change feed registration | null | apple/foundationdb | Apache License 2.0 | C++ |
@@ -177,7 +177,7 @@ module.exports.describe = function({testRunner, expect, headless, playwright, FF
await page.goto(server.EMPTY_PAGE);
await page.setContent('<a target=_blank rel=noopener href="/one-style.html">yo</a>');
const [popup] = await Promise.all([
- page.waitForEvent('popup').then(popup => { popup.waitForLoa... | fix: await the popup nav to make the test pass | null | microsoft/playwright | Apache License 2.0 | JavaScript |
@@ -26,7 +26,7 @@ done
PRNS=("$PRN")
-for INDEX in $(python -m json.tool $pulldata | grep "\"title\":" | cut -d '"' -f 4 | grep -nr "Automated cherry pick of #${PRN}:" | awk 'BEGIN{FS=":"}{print $2}')
+for INDEX in $(python -m json.tool $pulldata | grep "\"title\":" | cut -d '"' -f 4 | grep -n "Automated cherry pick of... | fix: approve_all fail to pull all cherry-pick PRs | null | yunionio/yunioncloud | Apache License 2.0 | Shell |
@@ -1134,6 +1134,8 @@ class Flow(PostMixin, JAMLCompatible, ExitStack, metaclass=FlowType):
# kick off ip getter thread
addr_table = []
+ t_ip = None
+ if self.args.infrastructure != InfrastructureType.K8S:
t_ip = threading.Thread(
target=self._get_address_table, args=(addr_table,), daemon=True
)
@@ -1141,6 +1143,7 @@ ... | fix: fix get address table k8s | null | jina-ai/jina | Apache License 2.0 | Python |
@@ -15,13 +15,11 @@ from deeppavlov.models.embedders.w2v_embedder import Word2VecEmbedder
from deeppavlov.models.embedders.fasttext_embedder import FasttextEmbedder
from deeppavlov.models.embedders.dict_embedder import DictEmbedder
from deeppavlov.models.encoders.bow import BoW_encoder
-from deeppavlov.models.lstms.hcn... | fix: remove broken imports | null | deeppavlov/deeppavlov | Apache License 2.0 | Python |
@@ -77,8 +77,8 @@ class WebTorrent extends EventEmitter {
this.maxConns = Number(opts.maxConns) || 55
this.utp = WebTorrent.UTP_SUPPORT && opts.utp !== false
- this._downloadLimit = Math.max(Number(opts.downloadLimit) || -1, -1)
- this._uploadLimit = Math.max(Number(opts.uploadLimit) || -1, -1)
+ this._downloadLimit = ... | fix: speed limit for zero | null | webtorrent/webtorrent | MIT License | JavaScript |
@@ -610,6 +610,12 @@ void bar::handle(const evt::leave_notify&) {
* Used to change the cursor depending on the module
*/
void bar::handle(const evt::motion_notify& evt) {
+ if (!m_mutex.try_lock()) {
+ return;
+ }
+
+ std::lock_guard<std::mutex> guard(m_mutex, std::adopt_lock);
+
m_log.trace("bar: Detected motion: %i a... | fix(cursor): add lock to motion handler | null | polybar/polybar | MIT License | C++ |
@@ -272,7 +272,7 @@ class Rpc(metaclass=_Singleton):
self._snapshot_id = None
self._internal_id = None
self._reset_id = self._revert(self._reset_id)
- return "Block height reset to 0"
+ return f"Block height reset to {web3.eth.blockNumber}"
# objects that will update whenever the RPC is reset or reverted must register
| fix: show actual block number on rpc.reset | null | eth-brownie/brownie | MIT License | Python |
@@ -168,7 +168,7 @@ def get_events(start, end, user=None, for_reminder=False, filters=None):
`tabEvent`.friday,
`tabEvent`.saturday,
`tabEvent`.sunday
- FROM `tabEvent`
+ FROM `tabEvent`, `tabEvent Participants`
WHERE (
(
(date(`tabEvent`.starts_on) BETWEEN date(%(start)s) AND date(%(end)s))
| fix(event): Include Event Participants in query | null | frappe/frappe | MIT License | Python |
* copy parameter value.
* @param name the name of the parameter to copy.
*/
- public static void copyParamAttr( SourcePacketExtension dst,
+ private static void copyParamAttr( SourcePacketExtension dst,
SourcePacketExtension src,
String name)
{
@@ -90,7 +90,7 @@ public static void deleteSSRCParams(MediaSSRCMap ssrcMap)... | fix(SSRCSignalling): merge simulcast video SSRCs | null | jitsi/jicofo | Apache License 2.0 | Java |
@@ -156,6 +156,7 @@ class DirectConv : public KernelLite<TARGET(kARM), Ptype> {
auto x_dims = param.x->dims();
auto w_dims = param.filter->dims();
auto o_dims = param.output->dims();
+ last_shape_ = x_dims;
int ic = x_dims[1];
int oc = o_dims[1];
| fix: fix conv_direct && test=develop | null | paddlepaddle/paddle-lite | Apache License 2.0 | C |
@@ -762,9 +762,15 @@ impl<T: Trait> Module<T> {
/// Remove a chain id from chains
fn remove_blockchain_from_chain(position: u32) -> Result<(), DispatchError> {
// swap the element with the last element in the mapping
- let head_index = match <Chains>::iter().nth(0) {
- Some(head) => head.0,
- None => return Err(Error::... | fix: select head element on chain index for deletion | null | interlay/interbtc | Apache License 2.0 | Rust |
@@ -8,6 +8,7 @@ import (
"path/filepath"
"strings"
+ "github.com/cenkalti/backoff"
"github.com/jenkins-x/jx/pkg/cloud/amazon"
"github.com/pkg/errors"
@@ -687,7 +688,10 @@ func (o *ImportOptions) CreateNewRemoteRepository() error {
if err != nil {
return err
}
+
// Get all invitations for the pipeline user
+ // Wrapped ... | fix: wrap invitation methods in retry to ensure quickstart creation does not fail because of flaky APIs or multiple requests | null | jenkins-x/jx | Apache License 2.0 | Go |
@@ -293,6 +293,11 @@ class Editor extends Component {
});
}
});
+ // Overrides Intellisense suggestion box
+ editor.addCommand(
+ monaco.KeyMod.CtrlCmd | monaco.KeyCode.Space,
+ function () {}
+ );
editor.onDidFocusEditorWidget(() => this.props.setEditorFocusability(true));
// This is to persist changes caused by the a... | fix(curriculum): intellisense suggenstion box should not be visible | null | freecodecamp/freecodecamp | BSD 3-Clause New or Revised License | JavaScript |
@@ -26,7 +26,6 @@ function generateDependencies(dependencies) {
module.exports = async function appLoader(content) {
const loaderOptions = getOptions(this);
const { entryPath, outputPath, platform, mode, disableCopyNpm, turnOffSourceMap } = loaderOptions;
- console.log("appLoader -> outputPath", outputPath)
const rawCo... | fix(jsx2mp): remove console | null | raxjs/rax-app | MIT License | JavaScript |
@@ -201,7 +201,7 @@ func (s *githubHook) isAllowedPullRequest(e *github.PullRequestEvent) bool {
return false
}
switch e.GetAction() {
- case "opened", "synchronize", "reopened", "labeled", "unlabeled":
+ case "opened", "synchronize", "reopened", "labeled", "unlabeled", "closed":
return true
}
log.Println("unsupported ... | fix(github-gw): Add 'closed' as allowed pull_request event | null | brigadecore/brigade | Apache License 2.0 | Go |
@@ -8,6 +8,7 @@ class CollectProjectData(pyblish.api.ContextPlugin):
label = "Collect Project Data"
order = pyblish.api.CollectorOrder - 0.1
+ hosts = ["nukestudio"]
def process(self, context):
# get project data from avalon db
| fix(global): adding hosts filtering | null | pypeclub/openpype | MIT License | Python |
@@ -42,12 +42,8 @@ const Container: React.FC<Props> = ({
style,
children,
}) => {
- const {
- flexDirection,
- justifyContent,
- alignItems,
- ...styleProp
- } = StyleSheet.flatten(style);
+ const { flexDirection, justifyContent, alignItems, ...styleProp } =
+ StyleSheet.flatten(style) || {};
const containerStyle: Styl... | fix(container): fix bug when missing style object | null | draftbit/react-native-jigsaw | MIT License | TypeScript |
@@ -120,19 +120,10 @@ class NegSampleEvalDataLoader(NegSampleDataLoader):
self._set_neg_sample_args(config, self.dataset, InputType.POINTWISE, config['eval_neg_sample_args'])
super().update_config(config)
- @property
- def pr_end(self):
- if self.neg_sample_args['distribution'] != 'none' and self.neg_sample_args['sampl... | fix: conflicts with original branch | null | rucaibox/recbole | MIT License | Python |
@@ -69,6 +69,8 @@ public class LoginFragment extends BaseFragment<ILoginPresenter> implements ILog
if (!validator.validate())
return;
+ ViewUtils.hideKeyboard(view);
+
String url = binding.url.baseUrl.getText().toString().trim();
getPresenter().setBaseUrl(url, binding.url.overrideUrl.isChecked());
getPresenter().login(... | fix: Hide keyboard on action | null | fossasia/open-event-organizer-android | Apache License 2.0 | Java |
@@ -67,6 +67,7 @@ public class TelemetryConnectPluginTest extends AbstractFoxPlatformIntegrationTe
ProcessEngine engineConnect;
ProcessEngineConfigurationImpl configuration;
WireMockServer wireMockServer;
+ TelemetryReporter telemetryReporter;
@Before
public void setEngines() {
@@ -76,14 +77,19 @@ public class Telemetr... | fix(qa): fix tear down in telemetry IT | null | camunda/camunda-bpm-platform | Apache License 2.0 | Java |
@@ -5754,7 +5754,7 @@ static unsigned preProcessScanlines(unsigned char** out, size_t* outsize, const
adam7 = (unsigned char*)lodepng_malloc(passstart[7]);
if(!adam7 && passstart[7]) error = 83; /*alloc fail*/
- if(!error) {
+ if(!error && adam7) {
unsigned i;
Adam7_interlace(adam7, in, w, h, bpp);
| fix(lodepng): fix NULL pointer access | null | lvgl/lvgl | MIT License | C |
@@ -60,7 +60,7 @@ class TFModel(NNModel, metaclass=TfModelMeta):
path = str(self.save_path.resolve())
print('[saving model to {}]'.format(path), file=sys.stderr)
saver = tf.train.Saver()
- saver.restore(self.sess, path)
+ saver.save(self.sess, path)
@abstractmethod
def __call__(self, x_batch):
| fix: Save bug fixed | null | deeppavlov/deeppavlov | Apache License 2.0 | Python |
@@ -50,13 +50,9 @@ final class PinViewController: UIViewController {
keyPadView.handler = { [weak self] number in
self?.updatePinView(for: number)
+ self?.checkPin(string: number)
- if authenticationViewModel.isMatchingPin(number) {
- self?.authenticationViewModel?.didAuthenticate()
- self?.didAuthenticate?()
- }
-
- r... | fix: remove invalid pin input after .5 seconds | null | ln-zap/zap-ios | MIT License | Swift |
@@ -403,7 +403,7 @@ export default function makeServiceMutations() {
const isIdMethodPending = state[`isId${uppercaseMethod}Pending`] as ServiceState['isIdCreatePending']
// if `id` is an array, ensure it doesn't have duplicates
const ids = Array.isArray(id) ? [...new Set(id)] : [id]
- ids.forEach(id => isIdMethodPendi... | fix: only set IDs pending if they are number or string | null | feathersjs-ecosystem/feathers-vuex | MIT License | TypeScript |
@@ -2773,8 +2773,6 @@ int sys_dup_exit_tail(void *ctx)
return 0;
}
- if (!data.task_info->syscall_traced)
- return -1;
syscall_data_t *sys = &data.task_info->syscall_data;
if (sys->ret < 0) {
| fix: dup exit tail calls not called | null | aquasecurity/tracee | Apache License 2.0 | C |
@@ -12,6 +12,7 @@ import io.fabric8.kubernetes.client.KubernetesClient;
import io.fabric8.kubernetes.client.dsl.NonNamespaceOperation;
import io.fabric8.kubernetes.client.dsl.Resource;
import io.javaoperatorsdk.operator.api.config.informer.InformerConfiguration;
+import io.javaoperatorsdk.operator.api.reconciler.Consta... | fix: same as controller config for KubernetesDependentResource standalone | null | java-operator-sdk/java-operator-sdk | Apache License 2.0 | Java |
@@ -10,4 +10,4 @@ echo "LATEST_VERSION=$LATEST_VERSION" >> $GITHUB_ENV
echo "PREVIOUS_VERSION=$PREVIOUS_VERSION" >> $GITHUB_ENV
sed -i "s/$PREVIOUS_VERSION/$LATEST_VERSION/g" supported_cli_versions.json
-sed -i "s/$PREVIOUS_VERSION/$LATEST_VERSION/g" extensions/ql-vscode/src/vscode-tests/ensureCli.ts
+sed -i "s/$PREVIO... | fix: src dir to test dir | null | github/vscode-codeql | MIT License | Shell |
@@ -149,6 +149,10 @@ export function useMapResource<
},
}), { key });
+ if (key === null) {
+ keyRef.loadedKey = null;
+ }
+
const refObj = useObservableRef(() => ({
loading: false,
prevData: undefined as CachedMapResourceLoader<
| fix(core-blocks): reset useMapResource correctly | null | dbeaver/cloudbeaver | Apache License 2.0 | TypeScript |
@@ -19,6 +19,10 @@ import (
func NewProviderConfig(configuration schema.SessionConfiguration, certPool *x509.CertPool) ProviderConfig {
config := session.NewDefaultConfig()
+ config.SessionIDGeneratorFunc = func() []byte {
+ return []byte(utils.RandomString(30, utils.AlphaNumericCharacters))
+ }
+
// Override the cooki... | fix(session): session id generator situational panic | null | authelia/authelia | Apache License 2.0 | Go |
@@ -133,7 +133,7 @@ where
}
let result = self.compile_root_package();
- self.check_build_journal();
+ self.check_build_journal()?;
// Print warnings
for warning in &self.warnings {
| fix: change errors after call check_build_journal | null | gleam-lang/gleam | Apache License 2.0 | Rust |
@@ -190,13 +190,7 @@ public abstract class AbstractHibernateListener
continue;
}
- if ( property != null && property.isEmbeddedObject() )
- {
- handleEmbeddedObject( property, value, objectMap );
- continue;
- }
-
- if ( shouldInitializeProxy( value ) )
+ if ( shouldInitializeProxy( value ) || ( property != null && pro... | fix: handleEmbeddedObject for audit | null | dhis2/dhis2-core | BSD 3-Clause New or Revised License | Java |
@@ -48,11 +48,9 @@ def get_safe_globals():
# make available limited methods of frappe
json=json,
dict=dict,
- frappe=frappe._dict(
- _=frappe._,
_dict=frappe._dict,
+ frappe=frappe._dict(
flags=frappe.flags,
-
format=frappe.format_value,
format_value=frappe.format_value,
date_format=date_format,
| fix: Remove _ & _dict from frappe because add_module_properties ignores it | null | frappe/frappe | MIT License | Python |
@@ -52,7 +52,7 @@ export const renderStatus = async (command: string, resource: IResource, finalSt
const final = command === 'kubectl' ? `--final-state ${finalState.toString()}` : ''
// kubectl status => k8s status
- const commandForRepl = command === 'kubectl' ? 'k' : command
+ const commandForRepl = command === 'kube... | fix(plugins/plugin-k8s): k status tab versus webpack+proxy | null | ibm/kui | Apache License 2.0 | TypeScript |
@@ -55,7 +55,7 @@ public final class SpeechToTextWebSocketListener extends WebSocketListener {
private static final String RESULTS = "results";
private static final String SPEAKER_LABELS = "speaker_labels";
private static final String CUSTOMIZATION_ID = "customization_id";
- private static final String LANGUAGE_CUSTOMI... | fix(Speech to Text): Fix value of language customization ID property in WebSocket listener | null | watson-developer-cloud/java-sdk | Apache License 2.0 | Java |
@@ -400,11 +400,11 @@ export class Table extends React.Component<TableProps, TableState> {
data: !async ? data : [],
schema: !async ? schema : [],
page: props.page,
- sortingList: props.sortingList || [],
- filterList: props.filterList || {},
+ sortingList: props.sortingList,
+ filterList: props.filterList,
totalRecord... | fix(Table): fixes state refresh on error/loading prop toggle | null | innovaccer/design-system | MIT License | TypeScript |
@@ -455,7 +455,7 @@ class SkillDetailsFragment : Fragment(), ISkillDetailsView {
tvPostFeedbackDesc.visibility = View.VISIBLE
layoutPostFeedback.visibility = View.VISIBLE
buttonPost.setOnClickListener {
- if (etFeedback.text.toString().isNotEmpty()) {
+ if (etFeedback.text.trim().toString().isNotEmpty()) {
val queryObj... | fix: Trim feedback before empty check | null | fossasia/susi_android | Apache License 2.0 | Kotlin |
@@ -7,10 +7,10 @@ export default class {
this.$timeout = $timeout;
this.$translate = $translate;
this.DedicatedCloud = DedicatedCloud;
- this.serviceName = this.productId;
}
$onInit() {
+ this.serviceName = this.productId;
this.deletionTaskId = null;
this.kmsDeletionTask = {
name: null,
| fix(dedicated-cloud): retrieve servicename in kms deletion | null | ovh/manager | BSD 3-Clause New or Revised License | JavaScript |
@@ -206,6 +206,7 @@ struct ProxyCommitData {
std::map<Tag, Version> tag_popped;
Deque<std::pair<Version, Version>> txsPopVersions;
Version lastTxsPop;
+ bool popRemoteTxs;
//The tag related to a storage server rarely change, so we keep a vector of tags for each key range to be slightly more CPU efficient.
//When a tag ... | fix: do not track txsPopVersions unless there are remote logs to pop from | null | apple/foundationdb | Apache License 2.0 | C++ |
@@ -23,7 +23,7 @@ function VaccinatorsRegistry() {
return (
<div>
- {keycloak.hasResourceRole(CONSTANTS.FACILITY_ADMIN_ROLE, CONSTANTS.PORTAL_CLIENT) && <UploadCSV fileUploadAPI={fileUploadAPI} onUploadComplete={fetchVaccinators}/>}
+ {keycloak.hasResourceRole(CONSTANTS.ADMIN_ROLE, CONSTANTS.PORTAL_CLIENT) && <UploadCS... | fix: Role check for upload button - chaning it to admin | null | egovernments/divoc | MIT License | JavaScript |
@@ -383,6 +383,7 @@ func applyRepositoryManifest(fs Filesystem, repoConfig repositoryConfig) (reposi
}
return repoConfig, err
}
+ defer file.Close()
decoder := yaml.NewDecoder(file)
return repoConfig, decoder.Decode(&repoConfig)
}
@@ -400,6 +401,7 @@ func applyRuntimeManifest(fs Filesystem, runtimeName string, repoConf... | fix: missing close of manifests | null | knative/func | Apache License 2.0 | Go |
@@ -36,11 +36,19 @@ class BranchProtector(object):
and "merge_access_level"
and "unprotect_access_level"
) in configuration["branches"][branch]:
+ try:
branch_access_levels = self.gitlab.get_branch_access_levels(project_and_group, branch)
levels = ["push_access_levels", "merge_access_levels", "unprotect_access_levels"]... | fix: fixes all but one test in the v2 branch | null | gdubicki/gitlabform | MIT License | Python |
@@ -84,14 +84,26 @@ pub(crate) fn fill_match_arms(acc: &mut Assists, ctx: &AssistContext) -> Option<
};
missing_pats.peekable()
} else if let Some(enum_defs) = resolve_tuple_of_enum_def(&ctx.sema, &expr) {
+ let mut n_arms = 1;
+ let variants_of_enums: Vec<Vec<ExtendedVariant>> = enum_defs
+ .into_iter()
+ .map(|enum_d... | fix: `fill_match_arms` hangs on a tuple of large enums | null | rust-lang/rust-analyzer | Apache License 2.0 | Rust |
@@ -22,7 +22,7 @@ else
exit 1
fi
-for x in curl cut tar gzip sudo grep sed awk; do
+for x in curl cut tar gzip sudo; do
which $x > /dev/null || (echo "Unable to continue. Please install $x before proceeding."; exit 1)
done
| fix(install): remove commit | null | newrelic/newrelic-cli | Apache License 2.0 | Shell |
-import { App, Assets, Logger, Time } from 'koishi'
+import { App, Assets, Context, Logger, Time } from 'koishi'
import createEnvironment from './environment'
import { install } from '@sinonjs/fake-timers'
import * as teach from '@koishijs/plugin-teach'
@@ -44,11 +44,11 @@ describe('Teach Plugin - Miscellaneous', () =>... | fix(teach): enhance context checker | null | koishijs/koishi | MIT License | TypeScript |
@@ -626,13 +626,12 @@ public class FrontendUtils {
Stats statistics = context.getAttribute(Stats.class);
if (statistics == null || modified.isAfter(statistics
.getLastModified().orElse(LocalDateTime.MIN))) {
- statistics = new Stats(
- streamToString(connection.getInputStream()),
- lastModified);
+ byte[] buffer = IOUt... | fix: Use byte[] instead of String to store stats.json | null | vaadin/flow | Apache License 2.0 | Java |
import React from 'react'
import PropTypes from 'prop-types'
-import UploaderContext from '../../../uploader/uploader-context.js'
+import UploaderContext from '../../uploader/uploader-context.js'
import Tooltip from '../../../common/partials/tooltip.jsx'
const UpdateFile = ({
| fix: Use redesign upload context for UpdateFile | null | openneuroorg/openneuro | MIT License | JavaScript |
@@ -206,14 +206,20 @@ class StoreInterceptorsTests: QuickSpec {
let interceptor: StoreInterceptor = { context in
return { next in
- return { sideEffect in
- if dispatchedSideEffect == nil {
- dispatchedSideEffect = sideEffect as? SideEffectWithBlock
+ return { dispatchable in
+
+ if let dispatched = dispatchable as? Si... | fix: expect in test | null | bendingspoons/katana-swift | MIT License | Swift |
@@ -600,8 +600,8 @@ export default class ChartWidget extends Widget {
if (this.chart_doc.document_type) {
let doctype_meta = frappe.get_meta(this.chart_doc.document_type);
let field = doctype_meta.fields.find(x => x.fieldname == this.chart_doc.value_based_on);
- fieldtype = field.fieldtype;
- options = field.options;
+... | fix: Dashboard charts not loading | null | frappe/frappe | MIT License | JavaScript |
@@ -366,26 +366,12 @@ namespace PepperDash.Essentials.Devices.Common.VideoCodec.ZoomRoom
public void SelectCamera(string key)
{
- if (Cameras == null)
- {
- return;
- }
-
- var camera = Cameras.FirstOrDefault(c => c.Key.IndexOf(key, StringComparison.OrdinalIgnoreCase) > -1);
- if (camera != null)
- {
- Debug.Console(1,... | fix(essentials): -Send command to select camera by ID | null | pepperdash/essentials | MIT License | C# |
@@ -61,7 +61,6 @@ public class ProjectPageController extends HangarComponent {
return ResponseEntity.ok(this.markdownService.render(content.getContent()));
}
- @Unlocked
@RateLimit(overdraft = 10, refillTokens = 3, refillSeconds = 5)
@ResponseBody
@PostMapping(path = "/convert-bbcode", consumes = MediaType.APPLICATION_... | fix(backend): allow public access to bbcode editor | null | papermc/hangar | MIT License | Java |
@@ -45,4 +45,4 @@ def reset_callback_modules(module_names: Optional[List[str]] = None):
"""Clean the issue records of every callback-based module."""
modules = ModuleLoader().get_detection_modules(EntryPoint.CALLBACK, module_names)
for module in modules:
- module.detector.reset_module()
+ module.reset_module()
| fix: do not access detector | null | consensys/mythril | MIT License | Python |
@@ -121,6 +121,14 @@ func buildGoplusTools() {
}
buildFlags := getGopBuildFlags()
+ goBinPath := detectGoBinPath()
+
+ // If same name file exists, backup it.
+ cmdBinPath := filepath.Join(goBinPath, "cmd")
+ cmdBackupBinPath := filepath.Join(goBinPath, "cmd-backup-gop")
+ if checkPathExist(cmdBinPath) {
+ os.Rename(cm... | fix: remove unwanted `cmd` binary file that auto generated when building the gop | null | goplus/gop | Apache License 2.0 | Go |
@@ -41,7 +41,12 @@ static int kscan_composite_enable_callback(const struct device *dev) {
for (int i = 0; i < ARRAY_SIZE(kscan_composite_children); i++) {
const struct kscan_composite_child_config *cfg = &kscan_composite_children[i];
- kscan_enable_callback(device_get_binding(cfg->label));
+ const struct device *dev = ... | fix(kscan): Allow composite driver to handle missing children | null | zmkfirmware/zmk | MIT License | C |
@@ -316,7 +316,9 @@ func isNodeInVMSSVMCache(nodeName string, vmssVMCache *azcache.TimedCache) bool
for _, entry := range vmssVMCache.Store.List() {
if entry != nil {
- data := entry.(*azcache.AzureCacheEntry).Data
+ e := entry.(*azcache.AzureCacheEntry)
+ e.Lock.Lock()
+ data := e.Data
if data != nil {
data.(*sync.Map... | fix: lock the entry when reading data | null | kubernetes-sigs/cloud-provider-azure | Apache License 2.0 | Go |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.