diff stringlengths 12 9.3k | message stringlengths 8 199 | reasoning_trace null | repo stringlengths 6 68 | license stringclasses 3
values | language stringclasses 16
values |
|---|---|---|---|---|---|
@@ -360,7 +360,7 @@ int main(int argc, char** argv) {
printf("%sCustom extension loaded: %s\n", info, custom_ex_library_msg);
}
- if (custom_plugin_cfg_msg && (device_name == "GPU" || device_name == "MYRIAD" || device_name == "HDDL")) {
+ if (custom_plugin_cfg_msg && (strcmp(device_name, "GPU") == 0 || strcmp(device_na... | fix: string comparing in object_detection_sample_ssd_c | null | openvinotoolkit/openvino | Apache License 2.0 | C |
@@ -1144,6 +1144,10 @@ internal void Reset()
// THEN reset isLocalPlayer AFTERWARDS
if (isLocalPlayer)
{
+ // only clear NetworkClient.localPlayer IF IT POINTS TO US!
+ // see OnDestroy() comments. it does the same.
+ // (https://github.com/vis2k/Mirror/issues/2635)
+ if (NetworkClient.localPlayer == this)
NetworkClien... | fix: - Reset also checks if local player before clearing it (see previous commit) | null | vis2k/mirror | MIT License | C# |
@@ -173,7 +173,7 @@ namespace acl
ACL_ASSERT(segment_data_size + simd_padding + sizeof(database_chunk_segment_header) <= max_chunk_size, "Segment is larger than our max chunk size");
const uint32_t new_chunk_size = chunk_size + segment_data_size + simd_padding + sizeof(database_chunk_segment_header);
- if (new_chunk_si... | fix(compression): properly test for chunk max size | null | nfrechette/acl | MIT License | C |
@@ -52,7 +52,7 @@ export const IFramePage: React.FC<{ visible: boolean }> = ({ visible }) => {
mb={10}
display={visible ? "initial" : "none"}
>
- <iframe src={trueFrameSource} className={classes.iframe} />
+ {visible && <iframe src={trueFrameSource} className={classes.iframe} />}
</Box>
);
};
| fix(menu/iframe): fixed sidebar disappearing and background running | null | tabarra/txadmin | MIT License | TypeScript |
@@ -39,7 +39,7 @@ export const Instructions = observer(function Instructions() {
<GroupItem>
<h4>
Our team suggests not to downgrade to ensure that the version transition process will not affect the program's functionality.<br />
- The following instructions are only relevant for Mac and Linux systems.
+ The following ... | fix(core-version): change instruction text | null | dbeaver/cloudbeaver | Apache License 2.0 | TypeScript |
@@ -33,10 +33,8 @@ const STYLES_LIST = css`
display: inline-flex;
flex-wrap: wrap;
margin: 0;
- padding: 10px 10px 2px;
width: 100%;
border-radius: 4px;
- box-shadow: 0 0 0 1px ${Constants.system.gray30} inset;
li {
&:last-child {
@@ -75,9 +73,10 @@ const STYLES_INPUT = css`
${INPUT_STYLES};
width: 100%;
- padding: 8px... | fix: tag input style | null | filecoin-project/slate | MIT License | JavaScript |
@@ -23,5 +23,7 @@ CMD_PREPARE="yarn prepare"
CMD_PUBLISH_PACKAGES="lerna publish --exact --force-publish=* --registry https://npm.lwcjs.org --yes --skip-git ${CANARY} --repo-version ${PACKAGE_VERSION} --npm-client npm"
# Run
+echo $CMD_PREPARE;
+$CMD_PREPARE;
echo $CMD_PUBLISH_PACKAGES;
$CMD_PUBLISH_PACKAGES;
| fix(ci): run prepare before release | null | salesforce/lwc | MIT License | Shell |
@@ -28,10 +28,6 @@ const common = [
source: './assets/',
destination: './assets/',
}),
- assets({
- source: './rootFiles',
- destination: './',
- }),
assets({
source: '../dist',
destination: './examples/media',
| fix(dev:docs): dont watch `/docgen/rootFiles` | null | algolia/instantsearch.js | MIT License | JavaScript |
@@ -1064,6 +1064,25 @@ const config = {
rect_padding: 10,
line_height: 20,
},
+ gitGraph: {
+ diagramPadding: 8,
+ nodeSpacing: 150,
+ nodeFillColor: 'yellow',
+ nodeStrokeWidth: 2,
+ nodeStrokeColor: 'grey',
+ lineStrokeWidth: 4,
+ branchOffset: 50,
+ lineColor: 'grey',
+ leftMargin: 50,
+ branchColors: ['#442f74', '#... | fix: adding gitgraph to default config | null | mermaid-js/mermaid | MIT License | JavaScript |
@@ -210,7 +210,7 @@ const ManageSlideOver: React.FC<
{hasPermission(Permission.ADMIN) &&
(data.mediaInfo?.serviceUrl ||
data.mediaInfo?.tautulliUrl ||
- watchData?.data?.playCount) && (
+ !!watchData?.data?.playCount) && (
<div>
<h3 className="mb-2 text-xl font-bold">
{intl.formatMessage(messages.manageModalMedia)}
@@ ... | fix(ui): don't show 0 playcount in slideover | null | sct/overseerr | MIT License | TypeScript |
@@ -209,6 +209,9 @@ func (p *PostHandlerImpl) handlePost(post *reddit.Link, filterGuild int64) error
SourceID: idStr,
UseWebhook: true,
WebhookUsername: webhookUsername,
+ AllowedMentions: discordgo.AllowedMentions{
+ Parse: []discordgo.AllowedMentionType{},
+ },
}
if item.UseEmbeds {
| fix(reddit): disallow all mentions | null | jonas747/yagpdb | MIT License | Go |
@@ -58,7 +58,7 @@ module Onebox
<<-HTML
<a href='#{escaped_url}' target='_blank' rel='noopener' class="onebox">
- <img src='#{og.get_secure_image}' #{og.title_attr} alt='Imgur' height='#{og.image_height}' width='#{og.image_width}'>
+ <img src='#{og.get_secure_image.chomp("?fb")}' #{og.title_attr} alt='Imgur'>
</a>
HTML... | fix: show original imgur image (not cropped one) | null | discourse/onebox | MIT License | Ruby |
@@ -21,7 +21,7 @@ import (
const (
//zitadelImage can be found in github.com/caos/zitadel repo
- zitadelImage = "ghcr.io/caos/zitadel:0.100.0"
+ zitadelImage = "ghcr.io/caos/zitadel:0.100.3"
)
func AdaptFunc(
| fix: update zitadel to 0.100.3 | null | caos/orbos | Apache License 2.0 | Go |
@@ -135,6 +135,7 @@ pub fn builtins() -> Builtins<'static> {
?bucketID: string,
?org: string,
?orgID: string,
+ ?host: string,
?token: string,
?timeColumn: string,
?measurementColumn: string,
| fix(builtins): add missing parameter to type of "to()" | null | influxdata/flux | MIT License | Rust |
@@ -371,6 +371,7 @@ func (r *SReceiver) MarkContactTypeVerified(contactType string) error {
}
if sc, ok := r.subContactCache[contactType]; ok {
sc.Verified = tristate.True
+ sc.VerifiedNote = ""
} else {
subContact := &SSubContact{
Type: contactType,
| fix(notify): clean verifiedNote when marking verified | null | yunionio/yunioncloud | Apache License 2.0 | Go |
@@ -91,13 +91,15 @@ module.exports = function(app, store) {
})
.then(resp => {
let privateKey = keythereum.recover(args.password, keystoreObject);
- app.win.webContents.send(RPC_METHOD, actionId, actionName, null, {
+ const newWallet = {
id: resp.id,
isSetupFinished: resp.isSetupFinished,
publicKey: keystoreObject.addr... | fix: new wallet NaN price issue | null | selfkeyfoundation/identity-wallet | MIT License | JavaScript |
@@ -37,9 +37,9 @@ const FlexIndicatorWrapper = styled.div<{ shrink: boolean }>`
grid-template-columns: 1fr 2fr 3fr 2fr;
grid-template-rows: 1fr 2fr;
grid-column-gap: ${(props) => (props.shrink ? '8px' : 'inherit')};
- height: ${(props) => (props.shrink ? '40px' : '80px')};
+ height: ${(props) => (props.shrink ? '40px' ... | fix(flex-indicator): adjust size to match other layout changes | null | opentripplanner/otp-react-redux | MIT License | TypeScript |
@@ -42,6 +42,7 @@ class ImageElement extends Element {
int _frameCount = 0;
bool _isInLazyLoading = false;
+ bool _imageLoaded = false;
bool get _shouldLazyLoading => properties['loading'] == 'lazy';
ImageStreamCompleterHandle? _completerHandle;
@@ -344,12 +345,15 @@ class ImageElement extends Element {
_replaceImage(i... | fix: fix image load event trigger multiple times | null | openkraken/kraken | Apache License 2.0 | Dart |
@@ -55,7 +55,7 @@ function TabBar(props) {
if (tabBarRefNode && typeof tabBarRefNode.querySelector === 'function') {
const activeChild = tabBarRefNode.querySelector('[aria-selected=true]');
if (activeChild) {
- activeChild.focus();
+ activeChild.focus({ preventScroll: true });
needsRefocus.current = false;
}
}
| fix(components): scrolling with TabBar in drawer | null | talend/ui | Apache License 2.0 | JavaScript |
@@ -237,7 +237,6 @@ open class AVFoundationPlayback: Playback {
player?.allowsExternalPlayback = true
selectDefaultAudioIfNeeded()
- selectDefaultSubtitleIfNeeded()
playerLayer = AVPlayerLayer(player: player)
layer.addSublayer(playerLayer!)
@@ -453,6 +452,7 @@ open class AVFoundationPlayback: Playback {
fileprivate fun... | fix: set audio after player constructor and sub after readyToPlay | null | clappr/clappr-ios | BSD 3-Clause New or Revised License | Swift |
package org.vitrivr.cineast.core.db;
import java.io.File;
-import java.util.ArrayList;
-import java.util.List;
-import java.util.Map;
+import java.util.*;
import java.util.stream.Collectors;
import org.vitrivr.cineast.core.config.Config;
import org.vitrivr.cineast.core.config.QueryConfig;
@@ -58,11 +56,32 @@ public boo... | fix: Batched version of getNearestNeighbours() should now be more efficient | null | vitrivr/cineast | MIT License | Java |
@@ -5,8 +5,8 @@ use parser::{
graph_triples::{Pairs, Relation},
Parser, ParserTrait,
};
-use std::path::Path;
use std::sync::Arc;
+use std::{collections::BTreeMap, path::Path};
// Re-exports for convenience elsewhere
pub use parser::ParseOptions;
@@ -24,7 +24,7 @@ static PARSERS: Lazy<Arc<Parsers>> = Lazy::new(|| Arc::... | fix(Parsers): Get parser by label | null | stencila/stencila | Apache License 2.0 | Rust |
@@ -171,7 +171,7 @@ namespace modules {
void xworkspaces_module::rebuild_urgent_hints() {
m_urgent_desktops.assign(m_desktop_names.size(), false);
for (auto&& client : ewmh_util::get_client_list()) {
- auto desk = ewmh_util::get_desktop_from_window(client);
+ uint32_t desk = ewmh_util::get_desktop_from_window(client);
... | fix(xworkspaces): Crash if number of desktops too small | null | polybar/polybar | MIT License | C++ |
package io.ebeaninternal.dbmigration.ddlgeneration.platform;
-import java.util.Collection;
-
import io.ebean.config.DatabaseConfig;
+import io.ebean.config.DbConstraintNaming;
import io.ebeaninternal.dbmigration.ddlgeneration.DdlAlterTable;
import io.ebeaninternal.dbmigration.ddlgeneration.DdlBuffer;
import io.ebeanint... | fix: DB2-History table must be an exact copy | null | ebean-orm/ebean | Apache License 2.0 | Java |
@@ -809,10 +809,18 @@ public class JdbcEventStore
eventDataValuesWhereSql += " and ";
}
+ if ( QueryOperator.LIKE.getValue().equalsIgnoreCase( filter.getSqlOperator() ) )
+ {
+ eventDataValuesWhereSql += " " + queryCol + " " + filter.getSqlOperator() + " "
+ + StringUtils.lowerCase( filter.getSqlFilter( encodedFilter )... | fix: fix event data values 'like' filters when using numeric comparisons (2.35) | null | dhis2/dhis2-core | BSD 3-Clause New or Revised License | Java |
@@ -627,8 +627,8 @@ export default class ImageManipulator extends Component {
if (initialZoom !== 1) {
resultSize = [width, height, x, y].map(prop => prop * initialZoom);
- this.CamanInstanceZoomed.crop(width, height, x, y); //TODO: check
- this.CamanInstanceOriginal.crop(width, height, x, y);
+ this.CamanInstanceZoome... | fix: calculating final size when zooming was applied on download | null | scaleflex/filerobot-image-editor | MIT License | JavaScript |
@@ -141,8 +141,12 @@ fn filter_parquet_files_inner(
ln_estimated_file_bytes + current_ln_plus_1_estimated_file_bytes.iter().sum::<u64>();
// Over limit of num files
- if files_to_return.len() + 1 /* LN file */ + overlaps.len() > max_num_files {
- if files_to_return.is_empty() {
+ // At this stage files_to_return only i... | fix: a silly bug that did not capture file limit if a lot of L0 files and very few or non overlapped L1 | null | influxdata/influxdb_iox | Apache License 2.0 | Rust |
@@ -40,7 +40,7 @@ namespace Discord.WebSocket
/// <inheritdoc />
public UserStatus Status => Presence.Status;
/// <inheritdoc />
- public IImmutableSet<ClientType> ActiveClients => Presence.ActiveClients;
+ public IImmutableSet<ClientType> ActiveClients => Presence.ActiveClients ?? ImmutableHashSet<ClientType>.Empty;
/... | fix: (in a better way) Return empty set when ActiveClients is null | null | discord-net/discord.net | MIT License | C# |
@@ -634,6 +634,13 @@ class BaseRegistry(ABC):
registry_dict["requestFeatureViews"].append(
self._message_to_sorted_dict(request_feature_view.to_proto())
)
+ for stream_feature_view in sorted(
+ self.list_stream_feature_views(project=project),
+ key=lambda stream_feature_view: stream_feature_view.name,
+ ):
+ registry_d... | fix: Stream feature view not shown in the UI | null | feast-dev/feast | Apache License 2.0 | Python |
@@ -200,7 +200,12 @@ impl I2S {
self.i2s
.config
.swidth
- .write(|w| unsafe { w.swidth().bits(width.into()) });
+ .write(|w| {
+ #[cfg(not(feature = "5340-app"))]
+ unsafe { w.swidth().bits(width.into()) }
+ #[cfg(feature = "5340-app")]
+ w.swidth().bits(width.into())
+ });
self
}
| fix: fix warning for 5340-app feature | null | nrf-rs/nrf-hal | Apache License 2.0 | Rust |
@@ -28,8 +28,8 @@ import { MetricsTableTitle } from '../metrics-table-title';
import css from './bundle-packages.module.css';
const PackagePopoverContent = ({ name, fullName, path, duplicate, CustomComponentLink }) => {
- const normalizedPackagePath =
- path || `node_modules/${fullName.split(PACKAGES_SEPARATOR).join('/... | fix(ui): Packages - add trailing slash to package path | null | relative-ci/bundle-stats | MIT License | JavaScript |
@@ -399,11 +399,26 @@ double renderer::block_x(alignment a) const {
if ((min_pos = block_w(alignment::LEFT))) {
min_pos += BLOCK_GAP;
}
- if (m_rect.x > 0) {
- base_pos -= (m_bar.size.w - m_rect.width) / 2.0;
- } else {
+
base_pos += (m_bar.size.w - m_rect.width) / 2.0;
+
+ int border_left = m_bar.borders.at(edge::LEFT... | fix(renderer): Correct center module position | null | polybar/polybar | MIT License | C++ |
@@ -10,6 +10,7 @@ import (
"github.com/prymitive/unsee/internal/alertmanager"
"github.com/prymitive/unsee/internal/config"
+ "github.com/prymitive/unsee/internal/filters"
"github.com/prymitive/unsee/internal/models"
"github.com/prymitive/unsee/internal/slices"
"github.com/prymitive/unsee/internal/transform"
@@ -51,6 +5... | fix(style): move some code out of alerts() to reduce complexity and make the linter happy | null | prymitive/karma | Apache License 2.0 | Go |
@@ -401,6 +401,10 @@ pub struct PinDocument {
impl PinDocument {
fn update(&mut self, add: bool, kind: PinKind<&'_ Cid>) -> Result<bool, PinUpdateError> {
+ // these update rules are a bit complex and there are cases we don't need to handle.
+ // Updating on upon `PinKind` forces the caller to inspect what the current ... | fix: find solution for the corner rule cases | null | rs-ipfs/rust-ipfs | Apache License 2.0 | Rust |
@@ -260,7 +260,20 @@ class Task:
return cond
def filter_params(self, params):
- return params
+ "By default, filter keyword arguments required by self.execute_action"
+ sig = inspect.signature(self.execute_action)
+ kw_args = [
+ val.name
+ for name, val in sig.parameters.items()
+ if val.kind in (
+ inspect.Parameter.... | fix: Now by default Task.filter_params filters the | null | miksus/rocketry | MIT License | Python |
@@ -109,7 +109,6 @@ pub fn load(event_sink: ExtEventSink, path: Option<String>) -> Self {
#[cfg(target_os = "windows")]
let workspace_type =
if !env::var("WSL_DISTRO_NAME").unwrap_or_default().is_empty()
- || !env::var("WSLENV").unwrap_or_default().is_empty()
|| !env::var("WSL_INTEROP").unwrap_or_default().is_empty()
{... | fix: remove check for WSLENV envvar | null | lapce/lapce | Apache License 2.0 | Rust |
@@ -499,6 +499,11 @@ const _titleBarTemplateFactory = intl => [
label: intl.formatMessage(menuItems.services),
submenu: [],
},
+ {
+ label: intl.formatMessage(menuItems.workspaces),
+ submenu: [],
+ visible: workspaceStore.isFeatureEnabled,
+ },
{
label: intl.formatMessage(menuItems.window),
submenu: [
| fix(Windows): Add Workspaces menu & fix Window menu | null | meetfranz/franz | Apache License 2.0 | JavaScript |
@@ -21,30 +21,25 @@ pub(super) fn desktop_handler(request: &Request) -> Result<Response> {
.mimetype("text/javascript")
.body(dioxus_interpreter_js::INTERPRETER_JS.as_bytes().to_vec())
} else {
- // the path of the asset specified without any relative paths
- let path_buf = Path::new(trimmed).canonicalize()?;
+ let ass... | fix: protocol works on in both cargo and bundle | null | dioxuslabs/dioxus | Apache License 2.0 | Rust |
#define _CLIENT(p_gw) (struct discord*)((int8_t*)(p_gw) - offsetof(struct discord, gw))
// shorten event callback for maintainability purposes
-#define _ON(event, ...) \
- (*gw->user_cmd->cbs.on_ ## event)(_CLIENT(gw), &gw->bot, ## __VA_ARGS__)
+#define _ON(event, ...) (*gw->user_cmd->cbs.on_ ## event)(_CLIENT(gw), &gw... | fix(discord-gateway): duplicate on_channel_create callback triggering | null | cee-studio/orca | MIT License | C |
@@ -1804,6 +1804,19 @@ void WebContents::SendInputEvent(v8::Isolate* isolate,
mouse_wheel_event);
#endif
} else {
+ // Chromium expects phase info in wheel events (and applies a
+ // DCHECK to verify it). See: https://crbug.com/756524.
+ mouse_wheel_event.phase = blink::WebMouseWheelEvent::kPhaseBegan;
+ mouse_wheel_ev... | fix: populate phase of WebMouseWheelEvents generated in webContents.sendInputEvent | null | electron/electron | MIT License | C++ |
@@ -779,6 +779,11 @@ inline bool get_app_partition_stat(shell_context *sc,
update_app_pegasus_perf_counter(row, counter_name, m.value);
}
} else if (parse_app_perf_counter_name(m.name, app_name, counter_name)) {
+ // if the app_name from perf-counter isn't existed(maybe the app was dropped), it
+ // will be ignored.
+ ... | fix(collector): no validate the app_name after parse_app_perf_counter_name | null | apache/incubator-pegasus | Apache License 2.0 | C |
@@ -19,7 +19,7 @@ fillWordpressDb() {
if [ -f "${DATA_FOLDER}/live_wordpress.sql.gz" ]; then
echo "Importing Wordress database (live_wordpress)"
_mysql -e "DROP DATABASE IF EXISTS $WORDPRESS_DB_NAME;CREATE DATABASE $WORDPRESS_DB_NAME;"
- cat $DATA_FOLDER/live_wordpress.sql.gz | gunzip | $MYSQL $WORDPRESS_DB_NAME
+ cat ... | fix: mysql error in make refresh.wp | null | owid/owid-grapher | MIT License | Shell |
@@ -86,6 +86,9 @@ const RequestCard: React.FC<RequestCardProps> = ({ request }) => {
{requestData.media.status === MediaStatus.AVAILABLE && (
<Badge badgeType="success">Available</Badge>
)}
+ {requestData.media.status === MediaStatus.PARTIALLY_AVAILABLE && (
+ <Badge badgeType="success">Partially Available</Badge>
+ )}... | fix(frontend): show a badge on requestcard for partially available status | null | sct/overseerr | MIT License | TypeScript |
@@ -203,6 +203,10 @@ void run(client *client, const uint64_t guild_id, params *params, channel::dati
D_PUTS("Missing channel name (params.name)");
return;
}
+ if (!orka_str_below_threshold(params->topic, 1024)) {
+ D_PUTS("Missing channel name (params.name)");
+ return;
+ }
#if 0
void *A[10] = {0}; // pointer availabil... | fix: discord::guild::create_channel() now checks for params->topic size | null | cee-studio/orca | MIT License | C++ |
@@ -74,8 +74,8 @@ namespace Files.App.Helpers
if (zipFile is null)
return;
//zipFile.IsStreamOwner = true;
- List<ArchiveFileInfo> directoryEntries = new List<ArchiveFileInfo>();
- List<ArchiveFileInfo> fileEntries = new List<ArchiveFileInfo>();
+ var directoryEntries = new List<ArchiveFileInfo>();
+ var fileEntries = ... | fix: Fixed issue where 7z archives were not extracted correctly | null | files-community/files | MIT License | C# |
* monorepo dependencies in each package's package.json.
*/
-import { resolve, join, relative } from "path";
+import { resolve, join, relative, sep } from "path";
import glob from "glob";
import { readFileSync, existsSync, writeFileSync } from "fs-extra";
@@ -89,7 +89,7 @@ function updateConfig(config: PackageInfo) {
//... | fix: ensure path sep is always / in link-ts-references.ts | null | trufflesuite/ganache-core | MIT License | TypeScript |
defmodule Moon.MixProject do
use Mix.Project
- def project do
- version = version()
+ @version (case File.read("VERSION") do
+ {:ok, version} -> String.trim(version)
+ {:error, _} -> "0.0.0-development"
+ end)
+ def project do
[
app: :moon,
- version: version,
+ version: @version,
elixir: "~> 1.11",
elixirc_paths: elix... | fix: read VERSION in compile time | null | coingaming/moon | MIT License | Elixir |
@@ -1348,22 +1348,24 @@ fn run_edit_command(
let show_completion = match cmd {
EditCommand::DeleteBackward | EditCommand::DeleteForward => {
let start = match &deltas[0].0.els[0] {
- xi_rope::DeltaElement::Copy(_, end) => Some(end),
- _ => None,
+ xi_rope::DeltaElement::Copy(_, start) => start,
+ _ => &0,
};
let end = ... | fix: make clippy and fmt happy | null | lapce/lapce | Apache License 2.0 | Rust |
@@ -11,5 +11,5 @@ export const writePidFile = async (
) => {
const pidFile = getProcessIDFile(config, name);
await fs.ensureDir(nodePath.dirname(pidFile));
- await fs.writeFile(pidFile, proc.pid);
+ await fs.writeFile(pidFile, `${proc.pid}`);
};
| fix(cli): fix writePidFile | null | neo-one-suite/neo-one | MIT License | TypeScript |
@@ -54,6 +54,7 @@ import io.fabric8.kubernetes.api.model.PodAffinity;
import io.fabric8.kubernetes.api.model.PodAffinityTerm;
import io.fabric8.kubernetes.api.model.PodAntiAffinity;
import io.fabric8.kubernetes.api.model.PodCondition;
+import io.fabric8.kubernetes.api.model.PodIP;
import io.fabric8.kubernetes.api.model... | fix: add missing PodIP class into kryo register | null | opennetworkinglab/onos | Apache License 2.0 | Java |
@@ -100,12 +100,11 @@ class AnimationTimeline {
List<Animation> _getActiveAnimations() {
List<Animation> activeAnimations = [];
+
for (Animation animation in _animations) {
AnimationPlayState playState = animation.playState;
if (playState != AnimationPlayState.finished && playState != AnimationPlayState.idle) {
activeA... | fix: should not add item to list in forEach | null | openkraken/kraken | Apache License 2.0 | Dart |
@@ -23,7 +23,7 @@ class LastTransactions:
tmp = self._data.tx_metadata[::-1]
tmp.append(tm)
del self._data.tx_metadata[:]
- self._data.tx_metadata.extend(tmp[:20][::-1])
+ self._data.tx_metadata.extend(tmp[-20:][::-1])
def serialize(self) -> str:
return self._data.SerializeToString()
| fix: Storing last 20 transactions | null | theqrl/qrl | MIT License | Python |
@@ -5,7 +5,6 @@ use crate::lib::error::DfxResult;
use ic_http_agent::{Agent, AgentConfig};
use lazy_init::Lazy;
use semver::Version;
-use std::fs::read_to_string;
use std::path::{Path, PathBuf};
use std::rc::Rc;
@@ -122,11 +121,7 @@ impl Environment for EnvironmentImpl {
if let Some(config) = self.config.as_ref() {
let... | fix: use the dfx.json for the port to the proxy | null | dfinity/sdk | Apache License 2.0 | Rust |
@@ -22,8 +22,8 @@ else
exit 1
fi
-for x in curl cut tar gzip; do
- which $x > /dev/null || (echo "Unable to continue. Please install $x before proceed."; exit 1)
+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
# GitHub's URL f... | fix(install): reduce sudo requirement of install.sh | null | newrelic/newrelic-cli | Apache License 2.0 | Shell |
@@ -63,17 +63,40 @@ defmodule Ash.Type.Decimal do
end
end
+ @impl true
+ def cast_input(value, _) when is_binary(value) do
+ case Decimal.parse(value) do
+ {decimal, ""} ->
+ {:ok, decimal}
+
+ _ ->
+ :error
+ end
+ end
+
@impl true
def cast_input(value, _) do
Ecto.Type.cast(:decimal, value)
end
+ @impl true
+ def cast... | fix: Decimal casting issues on ash_postgres | null | ash-project/ash | MIT License | Elixir |
@@ -55,7 +55,6 @@ import org.hisp.dhis.period.PeriodType;
import org.hisp.dhis.test.integration.IntegrationTestBase;
import org.hisp.dhis.user.User;
import org.hisp.dhis.user.UserService;
-import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autow... | fix: Enable DataValueSetServiceTest | null | dhis2/dhis2-core | BSD 3-Clause New or Revised License | Java |
@@ -185,7 +185,7 @@ def bulk_workflow_approval(docnames, doctype, action):
from collections import defaultdict
# dictionaries for logging
- errored_transactions = defaultdict(list)
+ failed_transactions = defaultdict(list)
successful_transactions = defaultdict(list)
# WARN: message log is cleared
@@ -206,7 +206,7 @@ de... | fix: Change 'Errored' to 'Failed' Transactions in Bulk Workflow Status prompt | null | frappe/frappe | MIT License | Python |
@@ -16,7 +16,7 @@ describe('Conditional', () => {
/>
);
const textInput = renderer.getRenderOutput();
- expect(textInput.type.displayName).to.eq('TextInput');
+ expect(textInput.type.displayName).to.eq('InputTextInput');
expect(textInput.props.value).to.eq('foo');
});
| fix: fix conditional spec to expect the InputHOC | null | wikieducationfoundation/wikiedudashboard | MIT License | JavaScript |
@@ -684,9 +684,7 @@ class AlexaMediaFlowHandler(config_entries.ConfigFlow):
"message": f" \n>{login.status.get('message','')} \n",
},
)
- if login.status and (
- login.status.get("login_failed") or login.status.get("ap_error_href")
- ):
+ if login.status and (login.status.get("login_failed")):
_LOGGER.debug("Login fail... | fix: fix detection of action required page | null | custom-components/alexa_media_player | Apache License 2.0 | Python |
@@ -67,8 +67,7 @@ def generate_report_result(report, filters=None, user=None, custom_columns=None)
# Reordered columns
columns = json.loads(report.custom_columns)
- if report.report_type == 'Query Report':
- result = reorder_data_for_custom_columns(columns, query_columns, result)
+ result = reorder_data_for_custom_colu... | fix: reorder result according to custom columns for script reports | null | frappe/frappe | MIT License | Python |
@@ -48,8 +48,14 @@ static int on_keymap_binding_pressed(struct zmk_behavior_binding *binding,
return -ENOTSUP;
}
+static int on_keymap_binding_released(struct zmk_behavior_binding *binding,
+ struct zmk_behavior_binding_event event) {
+ return 0;
+}
+
static const struct behavior_driver_api behavior_rgb_underglow_drive... | fix(underglow): Fix error on release of rgb_ug | null | zmkfirmware/zmk | MIT License | C |
@@ -21,7 +21,7 @@ router.get('/', async (_req, res) => {
router.post('/', async (req, res, next) => {
try {
- const settings = getSettings().notifications.agents.email;
+ const settings = getSettings();
const body = req.body;
const userRepository = getRepository(User);
@@ -29,7 +29,7 @@ router.post('/', async (req, res... | fix(permissions): use default user permissions when creating a local user | null | sct/overseerr | MIT License | TypeScript |
-import { Answerable, Question } from '@serenity-js/core';
+import { Answerable, List, Question } from '@serenity-js/core';
import { formatted } from '@serenity-js/core/lib/io';
import { By, PageElement, PageElements } from '../models';
@@ -99,15 +99,15 @@ export class Selected {
* @param {Answerable<PageElement>} page... | fix(web): corrected return types of question about Selected page elements | null | serenity-js/serenity-js | Apache License 2.0 | TypeScript |
@@ -31,7 +31,7 @@ use frame_system::{pallet_prelude::OriginFor, EventRecord, Phase};
use pallet_grandpa_finality_verifier::mock::brute_seed_block_1;
use serde_json::Value;
use sp_io::TestExternalities;
-use sp_runtime::{AccountId32, DispatchErrorWithPostInfo};
+use sp_runtime::{AccountId32, DispatchError, DispatchError... | fix: testing return type | null | t3rn/t3rn | Apache License 2.0 | Rust |
@@ -267,6 +267,13 @@ impl CheckpointVerifier {
if height == block::Height(pending_height.0 + 1) {
pending_height = height;
} else {
+ let gap = height.0 - pending_height.0;
+ // Try to log a useful message when checkpointing has issues
+ tracing::trace!(contiguous_height = ?pending_height,
+ next_height = ?height,
+ ?g... | fix: Improve checkpoint diagnostics | null | zcashfoundation/zebra | Apache License 2.0 | Rust |
@@ -557,11 +557,7 @@ export class PluginLedgerConnectorBesu
keychainPlugin,
`${fnTag} keychain for ID:"${req.keychainId}"`,
);
- if (!keychainPlugin.has(req.contractName)) {
- throw new Error(
- `${fnTag} Cannot create an instance of the contract because the contractName and the contractName on the keychain does not ma... | fix(connector-besu): removed repeated check | null | hyperledger/cactus | Apache License 2.0 | TypeScript |
@@ -33,7 +33,7 @@ class RangeSelector extends Component {
componentWillUnmount() {
window.removeEventListener('mousemove', this.mouseMove);
- window.removeEventListener('mouseup', this.mouseMove);
+ window.removeEventListener('mouseup', this.mouseUp);
}
valueForMouseCoord = event => {
@@ -126,7 +126,7 @@ class RangeSel... | fix(RangeSelector): fixes mouseup event handler cleanup | null | grommet/grommet | Apache License 2.0 | JavaScript |
@@ -18,6 +18,7 @@ pub trait RngExt : Deref<Target=rng::RegisterBlock> + Sized {
impl RngExt for RNG {
fn constrain(self) -> Rng {
+ self.config.write(|w| w.dercen().enabled());
Rng(self)
}
}
| fix: enable RNG bias correction | null | nrf-rs/nrf-hal | Apache License 2.0 | Rust |
@@ -65,11 +65,8 @@ String? getDisplayTitle(final Attribute attribute) {
return _getNovaDisplayTitle(attribute);
}
-String? _getNovaDisplayTitle(final Attribute attribute) {
- // Note: This method is temporary, this field will come from Backend and it will be internationalized.
- return _attributeMatchComparison(attribu... | fix: - display localized description for nova score | null | openfoodfacts/smooth-app | Apache License 2.0 | Dart |
@@ -1191,16 +1191,22 @@ class Element extends Node
// Universal style property change callback.
@mustCallSuper
void setStyle(String key, dynamic value) {
+ // @HACK: delay transition property at next frame to make sure transition trigger after all style had been set.
+ // https://github.com/WebKit/webkit/blob/master/So... | fix: delay transition to next frame to make sure all style has set | null | openkraken/kraken | Apache License 2.0 | Dart |
@@ -52,7 +52,6 @@ import org.hisp.dhis.user.UserStore;
import org.springframework.http.HttpStatus;
import org.springframework.stereotype.Service;
-import com.google.common.collect.ImmutableSet;
import com.google.gson.JsonElement;
import com.google.gson.JsonObject;
import com.google.gson.JsonParser;
@@ -206,21 +205,21 @... | fix: System update messages are not sent to all group recipients | null | dhis2/dhis2-core | BSD 3-Clause New or Revised License | Java |
@@ -210,7 +210,7 @@ mod tests {
let metrics = Arc::new(metric::Registry::default());
let catalog = Arc::new(MemCatalog::new(metrics));
let mut repos = catalog.repositories().await;
- let topic = repos.topics().create_or_get("iox_-shared").await.unwrap();
+ let topic = repos.topics().create_or_get("iox-shared").await.un... | fix: Update service_grpc_catalog/src/lib.rs | null | influxdata/influxdb_iox | Apache License 2.0 | Rust |
@@ -135,6 +135,11 @@ private void memberPresenceChanged(@NotNull ChatRoomMember member)
}
if (isRequestingTranscriber(presence) && !active)
{
+ if (jigasiDetector == null)
+ {
+ logger.warn("Transcription requested, but jigasiDetector is not configured.");
+ return;
+ }
executorService.execute(() -> this.startTranscrib... | fix: Log a warning (instead of NPE) when jigasiDetector is null | null | jitsi/jicofo | Apache License 2.0 | Java |
@@ -168,6 +168,7 @@ const processTransaction = ({
'status',
receipt.status ? (isCancelTransaction(record, safeAddress) ? 'cancelled' : 'success') : 'failed',
)
+ .updateIn(['ownersWithPendingActions', 'reject'], (prev) => prev.clear())
})
: mockedTx.set('status', 'awaiting_confirmations')
@@ -194,14 +195,21 @@ const pr... | fix: avoid accessing `txHash` if it's not defined | null | gnosis/safe-react | MIT License | TypeScript |
@@ -63,8 +63,7 @@ function StateMeta({stateCode, data, timeseries}) {
const deathPercent = getStatistic(data[stateCode], 'total', 'cfr');
const growthRate =
- (((lastConfirmed - prevWeekConfirmed) / prevWeekConfirmed) * 100) /
- diffDays;
+ (Math.pow(lastConfirmed / prevWeekConfirmed, 1 / diffDays) - 1) * 100;
return (... | fix: Correct daily growth rate formula | null | covid19india/covid19india-react | MIT License | JavaScript |
@@ -19,6 +19,10 @@ class Course::StatisticsController < Course::ComponentController
end
def my_students
+ unless current_course_user&.my_students&.any?
+ redirect_to course_statistics_all_students_path(current_course) and return
+ end
+
my_students = current_course_user.my_students.ordered_by_experience_points.with_vid... | fix: redirect users from my_students to all_students if they don't have students | null | coursemology/coursemology2 | MIT License | Ruby |
@@ -88,6 +88,7 @@ class Classifier(nn.Module):
# apply final linear layer
output = self.final_layer_(output)
+ output = self.tanh_(output)
output = self.logsoftmax_(output)
return output
| fix: add tanh activation after final layer | null | pyannote/pyannote-audio | MIT License | Python |
use crate::{cli::init::Command as InitCommand, ops::forc_init::init};
-use anyhow::{bail, Result};
+use anyhow::{anyhow, bail, Result};
use clap::Parser;
-use std::path::Path;
+use forc_util::validate_name;
+use std::path::{Path, PathBuf};
/// Create a new Forc project at `<path>`.
#[derive(Debug, Parser)]
@@ -43,6 +44... | fix: reserved keywords are checked before creating dir with forc new | null | fuellabs/sway | Apache License 2.0 | Rust |
@@ -59,6 +59,7 @@ restoreNB(){
echo "restore db file, operate in pod ${podNameArray[0]}"
kubectl exec -it -n $KUBE_OVN_NS ${podNameArray[0]} -- mv /etc/ovn/ovnnb_db_standalone.db /etc/ovn/ovnnb_db.db
kubectl scale deployment -n $KUBE_OVN_NS ovn-central --replicas=$replicas
+ kubectl -n kube-system delete pod -l app=ovs... | fix: update check script for restart ovs-ovn after rebuild ovsdb | null | kubeovn/kube-ovn | Apache License 2.0 | Shell |
@@ -83,7 +83,7 @@ class SettingsTest extends SettingsTestCase {
$options = $settings->get();
$testcase->assertEmpty( $options['ownerID'] );
- if ( isset( self::VALID_TEST_IDS[ $key ] ) ) {
+ if ( array_key_exists( $key, self::VALID_TEST_IDS ) ) {
$options[ $key ] = self::VALID_TEST_IDS[ $key ];
} else {
$options[ $key ... | fix: Cannot use isset() on the result of an expression | null | google/site-kit-wp | Apache License 2.0 | PHP |
use crate::Incompatible;
-pub const VER: u64 = 2;
+pub const VER: u64 = 3;
pub const MIN_COMPATIBLE_VER: u64 = 1;
pub fn check_ver(msg_ver: u64, msg_min_compatible: u64) -> Result<(), Incompatible> {
| fix: increase the VER to 3 | null | datafuselabs/databend | Apache License 2.0 | Rust |
@@ -19,6 +19,7 @@ import (
"fmt"
"path/filepath"
"strings"
+ "regexp"
)
type BazelJSONBuilder struct {
@@ -32,13 +33,24 @@ const (
var _defaultKinds = []string{"go_library", "go_test", "go_binary"}
+var externalRe = regexp.MustCompile(".*\\/external\\/([^\\/]+)(\\/(.*))?\\/([^\\/]+.go)")
+
func (b *BazelJSONBuilder) fi... | fix(packagesdrv): resolve `external/` go packages | null | bazelbuild/rules_go | Apache License 2.0 | Go |
@@ -39,8 +39,26 @@ export class FieldActionConfig {
serviceObject: any = new Object();
/**
- * Return true if the action's source/target types and collection types matches the respective source/target field properties
- * for source transformations, or matches the respective target field properties only if for a target... | fix: Correct an issue in the transformation model where the first element was a padding field | null | atlasmap/atlasmap | Apache License 2.0 | TypeScript |
@@ -36,6 +36,7 @@ import java.util.HashMap;
import java.util.Map;
import org.camunda.bpm.engine.ManagementService;
+import org.camunda.bpm.engine.ProcessEngineConfiguration;
import org.camunda.bpm.engine.RuntimeService;
import org.camunda.bpm.engine.TaskService;
import org.camunda.bpm.engine.impl.cfg.ProcessEngineConfi... | fix(test): ensure database schema creation before test | null | camunda/camunda-bpm-platform | Apache License 2.0 | Java |
@@ -659,7 +659,7 @@ var _ = Describe("{SecretsVaultFunctional}", func() {
})
dash.VerifyFatal(err, nil, "validate get daemon sets list")
dash.VerifyFatal(len(daemonSets) > 0, true, "validate daemon sets list")
- dash.VerifyFatal(daemonSets[0].Spec.Template.Spec.Containers, "", "validate daemon set container is not empt... | fix: fixing SecretsVaultFunctional test failure | null | portworx/torpedo | Apache License 2.0 | Go |
@@ -139,6 +139,7 @@ class MainActivity : AppCompatActivity() {
loadFragment(EventsFragment())
navigation.selectedItemId = navigation_events
}
+ is EventsFragment -> finish()
else -> super.onBackPressed()
}
}
| fix: Exit explicitly on back press in EventsFragment | null | fossasia/open-event-attendee-android | Apache License 2.0 | Kotlin |
@@ -126,7 +126,7 @@ public class AssignValueImplementer
}
else
{
- issues.add( new ProgramRuleIssue( actionRule.getRuleUid(), TrackerErrorCode.E1310,
+ issues.add( new ProgramRuleIssue( actionRule.getRuleUid(), TrackerErrorCode.E1309,
Lists.newArrayList( actionRule.getField(), actionRule.getEnrollment() ), IssueType.ER... | fix: Fix error message for error assigning attribute | null | dhis2/dhis2-core | BSD 3-Clause New or Revised License | Java |
@@ -81,7 +81,7 @@ public class IsoArchiveContainerIdentifier extends ArchiveContentIdentifier {
*/
public void identify(final URI uri, final IdentificationRequest request) throws CommandExecutionException {
- final String newPath = makeContainerURI("zip", request.getFileName());
+ final String newPath = makeContainerUR... | fix: iso prefix in CLI when expanding ISO archives | null | digital-preservation/droid | BSD 3-Clause New or Revised License | Java |
-import { List } from 'immutable';
+import { List, Set } from 'immutable';
import { get, escapeRegExp } from 'lodash';
import consoleError from '../lib/consoleError';
import { CONFIG_SUCCESS } from '../actions/config';
@@ -179,7 +179,7 @@ export const selectMediaFolders = (state: State, collection: Collection, entry:
f... | fix(editor-media-lib): handle duplicate media folders | null | netlify/netlify-cms | MIT License | TypeScript |
@@ -182,8 +182,6 @@ SCRIPTDIR=$(cd $(dirname "$0") && pwd)
(cd "$BUILDDIR/${CLIENT_NAME}-win32-x64" && touch kubectl-kui.ps1 && chmod +x kubectl-kui.ps1 \
&& echo '$Env:KUI_POPUP_WINDOW_RESIZE="true"
$ScriptDir = Split-Path $script:MyInvocation.MyCommand.Path
-Write-Host "Current script directory is $ScriptDir"
-Write-... | fix(packages/builder): remove leftover debugging output from kubectl powershell script | null | ibm/kui | Apache License 2.0 | Shell |
import { Auth } from './auth'
-import { logger } from '@island.is/logging'
+import fetch from 'isomorphic-fetch'
// These types are copied from our OpenAPI generated api clients.
type FetchAPI = WindowOrWorkerGlobalScope['fetch']
@@ -78,12 +78,6 @@ export class AuthMiddleware implements Middleware {
const options = thi... | fix(auth-public-api): Use isomorphic fetch | null | island-is/island.is | MIT License | TypeScript |
@@ -2720,13 +2720,12 @@ static inline void BINARY_INCR(unsigned char *v, const int length)
{
assert(length > 0);
int i;
- for (i = (length-1); i >= 0; ) {
+ for (i = (length-1); i >= 0; i--) {
if (v[i] < 0xFF) {
v[i] += 1;
break;
- } else {
- v[i] = 0x00;
}
+ v[i] = 0x00;
}
assert(i >= 0);
}
@@ -2736,13 +2735,12 @@ sta... | fix: BINARY_INCR/DECR operation | null | naver/arcus-memcached | Apache License 2.0 | C |
@@ -21,10 +21,11 @@ from fastapi.staticfiles import StaticFiles
from loguru import logger
from lnbits.core.crud import get_installed_extensions
+from lnbits.core.helpers import migrate_extension_database
from lnbits.core.tasks import register_task_listeners
from lnbits.settings import get_wallet_class, set_wallet_class... | fix: order of migrations | null | lnbits/lnbits | MIT License | Python |
@@ -82,6 +82,10 @@ static inline TSClock clock_after(TSClock base, TSDuration duration) {
TSClock result = base;
result.tv_sec += duration / 1000000;
result.tv_nsec += (duration % 1000000) * 1000;
+ if (result.tv_nsec >= 1000000000) {
+ result.tv_nsec -= 1000000000;
+ ++(result.tv_sec);
+ }
return result;
}
| fix: possible rollover of nanoseconds in clock.h | null | tree-sitter/tree-sitter | MIT License | C |
@@ -19,11 +19,16 @@ def rename_field(doctype, old_fieldname, new_fieldname):
print("rename_field: " + (new_fieldname) + " not found in " + doctype)
return
+ if not frappe.db.has_column(doctype, old_fieldname):
+ # never had the field?
+ return
+
if new_field.fieldtype in table_fields:
# change parentfield of table ment... | fix(rename_field): skip if old fieldname does not exist | null | frappe/frappe | MIT License | Python |
@@ -185,6 +185,7 @@ v8::Local<v8::Promise> Debugger::SendCommand(gin::Arguments* args) {
void Debugger::ClearPendingRequests() {
for (auto& it : pending_requests_)
it.second.RejectWithErrorMessage("target closed while handling command");
+ pending_requests_.clear();
}
// static
| fix: actually clear pending requests in devtoolsagenthost | null | electron/electron | MIT License | C++ |
@@ -112,5 +112,4 @@ def generate_theme_files_if_not_exist():
doc.generate_theme_if_not_exist()
doc.save()
except Exception:
- frappe.log_error(frappe.get_traceback(), _("Theme File Generation Failed"))
- pass
+ frappe.log_error(frappe.get_traceback(), "Theme File Generation Failed")
| fix: Remove translation method and pass statement | null | frappe/frappe | MIT License | Python |
@@ -325,7 +325,7 @@ final class GistBuilder
if ( !query.isInverse() )
{
return String.format(
- "select %s from %s o left join o.%s as e where o.uid = :OwnerId and (%s) and (%s) order by %s",
+ "select %s from %s o inner join o.%s as e where o.uid = :OwnerId and (%s) and (%s) order by %s",
fields, ownerTable, collectio... | fix: Gist API use inner join for object collection property listings | null | dhis2/dhis2-core | BSD 3-Clause New or Revised License | Java |
@@ -60,7 +60,7 @@ class User extends React.Component {
};
handleGetToken = () => {
- dataFetch('/api/user/token', { credentials: 'same-origin' }, (data) => {
+ dataFetch('/api/token', { credentials: 'same-origin' }, (data) => {
exportToJsonFile(data, "auth.json");
}, (error) => ({
error,
| fix: Change get token url in meshery ui | null | layer5io/meshery | Apache License 2.0 | JavaScript |
@@ -140,8 +140,12 @@ func convertInfluxdbUrl(ctx context.Context, pUrl string, endpointId string) (po
if err != nil {
return 0, nil, errors.Wrap(err, "failed to list forward")
}
+ var forwardId string
+ var lastSeen string
if len(lr.Data) > 0 {
port, _ = lr.Data[0].Int("bind_port")
+ forwardId, _ = lr.Data[0].GetString... | fix(devtool): wait for the remote forward to run normally | null | yunionio/yunioncloud | 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.