diff stringlengths 12 9.3k | message stringlengths 8 199 | reasoning_trace null | repo stringlengths 6 68 | license stringclasses 3
values | language stringclasses 16
values |
|---|---|---|---|---|---|
@@ -75,6 +75,9 @@ namespace acl
#if defined(RTM_COMPILER_CLANG)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
+#elif defined(RTM_COMPILER_GCC)
+ #pragma GCC diagnostic push
+ #pragma GCC diagnostic ignored "-Wdeprecated-declarations"
#endif
//////////////////////////////////... | fix(core): suppress gcc deprecation warning | null | nfrechette/acl | MIT License | C |
@@ -120,10 +120,11 @@ func NewLua() (Lua, error) {
L.SetField(nyagosTable, "option", optionTable)
ioTable := L.GetGlobal("io")
+ ioLinesPtr := L.NewFunction(ioLines)
+ L.SetField(ioTable, "lines", ioLinesPtr)
+ L.SetField(nyagosTable, "lines", ioLinesPtr)
L.SetField(nyagosTable, "open", L.GetField(ioTable, "open"))
- L... | fix: nyagos.lines() did not read from redirected stdin | null | zetamatta/nyagos | BSD 3-Clause New or Revised License | Go |
@@ -868,7 +868,8 @@ defmodule Ash.Actions.SideLoad do
Map.fetch(rel, :source_field_on_join_table) ==
Map.fetch(destination_rel, :destination_field_on_join_table) &&
Map.fetch(rel, :destination_field_on_join_table) ==
- Map.fetch(destination_rel, :source_field_on_join_table)
+ Map.fetch(destination_rel, :source_field_on... | fix: don't consider contextual relationships as reverse relationships | null | ash-project/ash | MIT License | Elixir |
@@ -513,6 +513,7 @@ class ParallelTestRunner():
self.setup_test_site()
self.ci_instance_id = ci_instance_id or frappe.generate_hash(length=10)
frappe.flags.in_test = True
+ self.run_before_test_hooks()
self.start_test()
def setup_test_site(self):
@@ -524,7 +525,8 @@ class ParallelTestRunner():
frappe.utils.scheduler.di... | fix: Run before test hooks | null | frappe/frappe | MIT License | Python |
@@ -830,14 +830,17 @@ namespace PepperDash.Essentials.Devices.Common.VideoCodec.Cisco
if (conference.Presentation.LocalInstance.Count > 0)
{
if (!string.IsNullOrEmpty(conference.Presentation.LocalInstance[0].ghost))
+ {
_presentationSource = 0;
+ _presentationLocalOnly = false;
+ _presentationLocalRemote = false;
+ }
e... | fix(essentials): fixes exception when parsing presentation local instance ghosted response | null | pepperdash/essentials | MIT License | C# |
@@ -1266,6 +1266,7 @@ void NormalizedIntensityCrossCorrelation::WriteDataSets(const char *p, const cha
string _prefix = Prefix(p);
const char *prefix = _prefix.c_str();
+ if (_Target->Transformation() || all) {
if (_T) {
snprintf(fname, sz, "%starget_mean%s", prefix, suffix);
_T->Write(fname);
@@ -1274,6 +1275,8 @@ voi... | fix: NCC debug output files [Registration] | null | biomedia/mirtk | Apache License 2.0 | C++ |
@@ -508,3 +508,36 @@ osx.import;
* }}
*/
osx.import.FileWrapper;
+
+
+/**
+ * Namespace.
+ * @type {Object}
+ */
+osx.feature;
+
+
+/**
+ * @typedef {{
+ * radius: number,
+ * units: string
+ * }}
+ */
+osx.feature.RingDefinition;
+
+
+/**
+ * @typedef {{
+ * enabled: boolean,
+ * type: string,
+ * interval: number,
+ ... | fix(merge): merge conflict resolution | null | ngageoint/opensphere | Apache License 2.0 | JavaScript |
@@ -21,7 +21,7 @@ pandoc -N --toc --smart --latex-engine=xelatex \
--listings \
-V title="TiDB Documentation" \
-V author="PingCAP Inc." \
- -V date="v1.0.0\$\sim\$${_version_tag}" \
+ -V date="${_version_tag}" \
-V CJKmainfont="${MAINFONT}" \
-V fontsize=12pt \
-V geometry:margin=1in \
| fix: remove hardcode 'v.1.0.0~' for pdf version | null | pingcap/docs | Apache License 2.0 | Shell |
@@ -57,6 +57,10 @@ class NativeLibItemView(context: Context) : AViewGroup(context) {
chip = Chip(ContextThemeWrapper(context, R.style.App_LibChip)).apply {
isClickable = false
layoutParams = LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT, 48.dp)
+ addView(this)
+ }
+ }
+ chip!!.apply {
text = libChip.name
setChipIcon... | fix: Messing up label chips in detail page | null | libchecker/libchecker | Apache License 2.0 | Kotlin |
// Libraries
import React, {PureComponent} from 'react'
-import _ from 'lodash'
+import {get, orderBy} from 'lodash'
// Components
import {DapperScrollbars} from '@influxdata/clockface'
@@ -23,16 +23,18 @@ class TemplateBrowser extends PureComponent<Props> {
autoSize={false}
noScrollX={true}
>
- {templates.map(t => (
+... | fix(component/TemplateBrowserList): sort list of templates alphabetically | null | influxdata/influxdb | MIT License | TypeScript |
@@ -151,7 +151,7 @@ function MediaPane(props) {
)
);
- throw createError('ValidError', mediaPickerEl.title, message);
+ throw createError('ValidError', resource.title, message);
}
// WordPress media picker event, sizes.medium.url is the smallest image
insertMediaElement(
| fix: use the resource title instead of the media element | null | google/web-stories-wp | Apache License 2.0 | JavaScript |
@@ -209,7 +209,7 @@ impl TestServer {
.expect("starting of local server process");
(cmd, None)
} else {
- let ci_image = "quay.io/influxdb/rust:bf4ea222";
+ let ci_image = "quay.io/influxdb/rust:ci";
let container_name = format!("influxdb2_{}", http_port);
Command::new("docker")
| fix: Use the rust ci docker image rather than a fixed image version | null | influxdata/influxdb_iox | Apache License 2.0 | Rust |
@@ -371,7 +371,7 @@ func (s *Server) SubscribeServerSentEvents(w http.ResponseWriter, r *http.Reques
return server.LogError(errors.New("Server sent events disabled"))
}
session, err := s.sessions.get(token)
- defer func() { err = updateAndUnlock(session, err) }()
+ err = updateAndUnlock(session, err)
if err != nil {
if... | fix: make sure to unlock directly where channels are used | null | privacybydesign/irmago | Apache License 2.0 | Go |
@@ -409,8 +409,7 @@ async def setup_alexa(hass, config_entry, login_obj):
This will add new devices and services when discovered. By default this
runs every SCAN_INTERVAL seconds unless another method calls it. if
- websockets is connected, it will return immediately unless
- 'new_devices' has been set to True.
+ webso... | fix: enable detection of offline devices | null | custom-components/alexa_media_player | Apache License 2.0 | Python |
@@ -26,7 +26,9 @@ namespace modules {
{TAG_BAR_PROGRESS, TAG_TOGGLE, TAG_TOGGLE_STOP, TAG_LABEL_SONG, TAG_LABEL_TIME, TAG_ICON_RANDOM,
TAG_ICON_REPEAT, TAG_ICON_REPEAT_ONE, TAG_ICON_SINGLE, TAG_ICON_PREV, TAG_ICON_STOP, TAG_ICON_PLAY, TAG_ICON_PAUSE,
TAG_ICON_NEXT, TAG_ICON_SEEKB, TAG_ICON_SEEKF, TAG_ICON_CONSUME});
+
... | fix(mpd): Get format-online-{prefix,suffix} explicitly | null | polybar/polybar | MIT License | C++ |
@@ -41,15 +41,11 @@ namespace TodoApp
protected void SetFilter( Filter filter )
{
this.filter = filter;
-
- StateHasChanged();
}
protected void OnCheckAll( bool isChecked )
{
todos.ForEach( x => x.Completed = isChecked );
-
- StateHasChanged();
}
protected void OnAddTodo()
@@ -60,8 +56,6 @@ namespace TodoApp
descriptio... | fix: cleaned TodoApp of unnecessary StateHasChanged calls | null | stsrki/blazorise | MIT License | C# |
@@ -75,6 +75,42 @@ fn is_prot_allowed(prot: c_int) -> bool {
prot == PROT_READ || prot == (PROT_READ | PROT_WRITE) || prot == (PROT_READ | PROT_EXEC)
}
+fn flags_from_libc(prot: c_int) -> Flags {
+ let mut flags = Flags::empty();
+
+ if prot & PROT_READ != 0 {
+ flags |= Flags::READ;
+ }
+
+ if prot & PROT_WRITE != 0 {... | fix(shim-sgx): sane type conversion | null | enarx/enarx | Apache License 2.0 | Rust |
@@ -204,7 +204,7 @@ void SMPMessageControllerListener::ProcessPrepareMsg()
mPlayer.mDataSource->enableCache(mPlayer.mSet->url, false);
}
} else {
- if (mPlayer.mDemuxerService->isPlayList() || videoStreamCount > 1) {
+ if (mPlayer.mDemuxerService->isPlayList() && videoStreamCount > 1) {
if (mPlayer.mDataSource) {
mPlay... | fix(SMP): multi bitrate stream can not be cache | null | alibaba/cicadaplayer | MIT License | C++ |
@@ -2044,16 +2044,17 @@ void replica_stub::open_replica(
if (rep == nullptr) {
// NOTICE: if dir a.b.pegasus does not exist, or .app-info does not exist, but the ballot >
// 0, or the last_committed_decree > 0, start replica will fail
- if ((req2 != nullptr) && (req2->info.is_stateful)) {
- dassert_f(req2->config.ballo... | fix(dup_enhancement#23): update code after rebase master | null | apache/incubator-pegasus | Apache License 2.0 | C++ |
@@ -12,7 +12,7 @@ class TrackingView extends Component {
}
overrideTrackingBaseCfg({overridePropName, configOverridesObject = {}}) {
- if (window) {
+ if (typeof window !== 'undefined') {
window[overridePropName] = {
...window[overridePropName],
...configOverridesObject
| fix(tracking/view): window check done with typeof | null | sui-components/sui-components | MIT License | JavaScript |
@@ -36,15 +36,15 @@ class MariaDBExceptionUtil:
@staticmethod
def is_deadlocked(e: mariadb.Error) -> bool:
- return e.errno == ER.LOCK_DEADLOCK
+ return getattr(e, "errno", None) == ER.LOCK_DEADLOCK
@staticmethod
def is_timedout(e: mariadb.Error) -> bool:
- return e.errno == ER.LOCK_WAIT_TIMEOUT
+ return getattr(e, "er... | fix: Allow non-blocking checks via MariaDBExceptionUtils | null | frappe/frappe | MIT License | Python |
@@ -193,6 +193,10 @@ class Install(setuptools.command.install.install):
tree("build")
print("--- copying includes ------------------------------------------")
+ # Python 3.8 can use dirs_exist_ok=True instead.
+ include_dir = os.path.join(outerdir, "awkward", "include")
+ if os.path.exists(include_dir):
+ shutil.rmtree... | fix: building twice was broken | null | scikit-hep/awkward-1.0 | BSD 3-Clause New or Revised License | Python |
package org.hisp.dhis.visualization;
import static com.google.common.base.Preconditions.checkNotNull;
+import static java.util.Collections.emptyList;
+import static org.apache.commons.lang3.ObjectUtils.defaultIfNull;
import static org.hisp.dhis.common.DimensionalObject.DIMENSION_SEP;
import java.awt.*;
@@ -432,7 +434,7... | fix: Workaround to avoid NPE during chart gen | null | dhis2/dhis2-core | BSD 3-Clause New or Revised License | Java |
@@ -59,7 +59,7 @@ namespace Elders.Cronus.Projections.Versioning
bool foundVersion = state.Versions.Contains(version);
if (foundVersion == false) return;
- if (version.Status == ProjectionStatus.Rebuilding || version.Status == ProjectionStatus.Replaying)
+ if (version.Status == ProjectionStatus.Rebuilding || version.St... | fix: Fix version not being able to be canceled or timedout | null | elders/cronus | Apache License 2.0 | C# |
@@ -240,12 +240,20 @@ class SystemHelper extends EnvHelper
if (self::shIsAvailable()) {
// try stty if available
$stty = [];
+ if (exec('stty -a 2>&1', $stty)) {
+ $sttyText = implode(' ', $stty);
+ // linux: speed 38400 baud; rows 97; columns 362; line = 0;
+ $pattern = '/rows\s+(\d+);\s*columns\s+(\d+);/mi';
+
+ // m... | fix: get terminal screen size error on mac | null | swoft-cloud/swoft-component | Apache License 2.0 | PHP |
@@ -63,7 +63,7 @@ pin_message(client *client, const uint64_t channel_id, const uint64_t message_id
NULL,
NULL,
HTTP_PUT,
- "channels/%llu/pins/%llu", channel_id, message_id);
+ "/channels/%llu/pins/%llu", channel_id, message_id);
}
void
@@ -83,7 +83,7 @@ unpin_message(client *client, const uint64_t channel_id, const ui... | fix: endpoint of pin_message() and unpin_message() | null | cee-studio/orca | MIT License | C++ |
@@ -88,13 +88,9 @@ public class KnownExploitedDataSource implements CachedWebDataSource {
//all dates in the db are now stored in seconds as opposed to previously milliseconds.
dbProperties.save(DatabaseProperties.KEV_LAST_CHECKED, Long.toString(System.currentTimeMillis() / 1000));
}
- } catch (MalformedURLException ex... | fix: combine catch blocks | null | jeremylong/dependencycheck | Apache License 2.0 | Java |
@@ -122,6 +122,15 @@ class ConfigHelper {
private Map<Integer, String> criteriaLanguageMap = new HashMap<Integer, String>();
private String sortingOrder;
private String questionType;
+ private Boolean ignoreDraws;
+
+ public Boolean getIgnoreDraws() {
+ return ignoreDraws;
+ }
+
+ public void setIgnoreDraws(Boolean ign... | fix(sdk): Game contributions can have fairGame configured | null | codingame/codingame-game-engine | MIT License | Java |
@@ -171,15 +171,13 @@ fn no_color() {
assert_eq!("noColor false", util::strip_ansi_codes(stdout_str));
}
-// TODO re-enable. This hangs on macOS
-// https://github.com/denoland/deno/issues/4262
#[cfg(unix)]
#[test]
-#[ignore]
pub fn test_raw_tty() {
use std::io::{Read, Write};
use util::pty::fork::*;
-
+ let deno_exe =... | fix: re-enable test_raw_tty | null | denoland/deno | MIT License | Rust |
@@ -36,6 +36,8 @@ export class Ability {
rulesFor(action: string, subject: any, field?: string): Rule[]
throwUnlessCan(action: string, subject: any, field?: string): void
+
+ on(event: string, listen: Function): Function
}
export class RuleBuilder {
| fix(ability): adds `on` method into typescript defs | null | stalniy/casl | MIT License | TypeScript |
@@ -215,7 +215,6 @@ def get_chart_config(chart, filters, timespan, timegrain, from_date, to_date):
group_by="_unit",
order_by="_unit asc",
as_list=True,
- ignore_ifnull=True,
)
result = get_result(data, timegrain, from_date, to_date, chart.chart_type)
| fix: Chart filter not working if not operator is used | null | frappe/frappe | MIT License | Python |
@@ -264,7 +264,7 @@ import { convertToBoolProperty, emptyStatusWarning } from '../helpers';
<label class="toggle-label">
<input type="checkbox"
class="native-input visually-hidden"
- role="switcher"
+ role="switch"
[attr.aria-checked]="checked"
[disabled]="disabled"
[checked]="checked"
| fix(toggle): set correct ARIA role | null | akveo/nebular | MIT License | TypeScript |
@@ -99,6 +99,7 @@ def get_docinfo(doc=None, doctype=None, name=None):
"permissions": get_doc_permissions(doc),
"shared": frappe.share.get_users(doc.doctype, doc.name),
"share_logs": get_comments(doc.doctype, doc.name, 'share'),
+ "like_logs": get_comments(doc.doctype, doc.name, 'Like'),
"views": get_view_logs(doc.docty... | fix: Add like log | null | frappe/frappe | MIT License | Python |
@@ -218,7 +218,7 @@ export class SidebarNavComponent implements OnInit, OnDestroy {
private underPad() {
if (window.innerWidth < 992 && !this.settings.layout.collapsed) {
- this.settings.setLayout('collapsed', true);
+ setTimeout(() => this.settings.setLayout('collapsed', true));
}
}
| fix(abc:sidebar-nav): fix ExpressionChangedAfterItHasBeenCheckedError in under pad, close | null | ng-alain/delon | MIT License | TypeScript |
@@ -81,12 +81,11 @@ func (c *client) RequestSSEGet(ctx context.Context, path string, evCh chan<- SSE
var currEvent *SSEvent
var EOF bool
- go func(stop *bool) {
- <-ctx.Done()
- *stop = true
- }(&EOF)
-
for !EOF {
+ if ctx.Err() != nil {
+ return ctx.Err()
+ }
+
bs, err := br.ReadBytes('\n')
if err != nil && err != io.... | fix(sdk): http sse ctx error | null | ovh/cds | BSD 3-Clause New or Revised License | Go |
@@ -423,28 +423,32 @@ namespace acl
}
}
- template<typename desc_type>
- inline desc_type& track::get_description()
- {
- ACL_ASSERT(desc_type::category == m_category, "Unexpected track category");
- switch (desc_type::category)
+ template<>
+ inline track_desc_scalarf& track::get_description()
{
- default:
- case trac... | fix(compression): add template specialization to avoid breaking aliasing | null | nfrechette/acl | MIT License | C |
@@ -31,19 +31,19 @@ kind: Secret
metadata:
name: ${name}
labels:
- belongsto: github.com-deis-empty-testbed
- commit: ${commit}
heritage: acid
+ belongsto: ${project_id}
+ build: ${uuid}
+ commit: ${commit}
jobname: ${name}
- managedBy: acid
- role: build
- status: triggered
+ component: build
type: Opaque
data:
commit... | fix(tests): add new labels to functional test script | null | brigadecore/brigade | Apache License 2.0 | Shell |
@@ -9,6 +9,13 @@ export default class Paging extends Component {
};
this.onPrevOrNext = this.onPrevOrNext.bind(this);
}
+ componentWillReceiveProps(nextProps) {
+ if (nextProps.activePage !== this.props.activePage) {
+ this.setState({
+ activePage: nextProps.activePage,
+ });
+ }
+ }
onPrevOrNext(ty) {
const { total, p... | fix(Paging): fix activePage props is not update | null | uiwjs/uiw | MIT License | JavaScript |
@@ -794,7 +794,7 @@ void AlgoChooser<megdnn::ConvBias>::ExeContext::
param.opr_param.format =
megdnn::ConvBias::Param::Format::NCHW44_WINOGRAD;
} else if (param.opr_param.format ==
- megdnn::ConvBias::Param::Format::NCHW) {
+ megdnn::ConvBias::Param::Format::NCHW88) {
param.opr_param.format =
megdnn::ConvBias::Param::F... | fix(dnn): fix nchw88 winograd weight preprocess | null | megengine/megengine | Apache License 2.0 | C++ |
@@ -501,12 +501,30 @@ def get_modules_from_app(app):
except ImportError:
return []
+ # Only newly formatted modules that have a category to be shown on desk
+ modules = [m for m in modules if m.get("category")]
+
+ active_domains = frappe.get_active_domains()
+
if isinstance(modules, dict):
- modules_list = []
+ allowe... | fix(domains): Active domains | null | frappe/frappe | MIT License | Python |
@@ -64,6 +64,10 @@ func newSquareSampler(squareWidth uint32, expectedSamples int) *squareSampler {
}
func (ss *squareSampler) sample(num int) {
+ if uint32(num) > ss.squareWidth*ss.squareWidth {
+ panic("number of samples must be less than squared width of square")
+ }
+
done := 0
for done < num {
s := Sample{
| fix(ipld): add panic for invalid sampling case | null | lazyledger/lazyledger-core | Apache License 2.0 | Go |
@@ -80,6 +80,7 @@ func init() {
}
func TestFluxEndToEnd(t *testing.T) {
+ t.Skip("Skipping per https://github.com/influxdata/influxdb/issues/19299")
runEndToEnd(t, stdlib.FluxTestPackages)
}
func BenchmarkFluxEndToEnd(b *testing.B) {
| fix(flux): Skip failing tests to facilitate merge to master | null | influxdata/influxdb | MIT License | Go |
@@ -125,13 +125,14 @@ export class DynamicPageComponent implements AfterContentInit, AfterViewInit, On
/**@hidden */
ngAfterViewInit(): void {
- this._setContainerPositions();
this._sizeChangeHandle();
this._removeShadowWhenTabComponent();
this._listenOnResize();
if (this._pageSubheaderComponent?.collapsible) {
this._a... | fix: (Core) Dynamic page init content resize | null | sap/fundamental-ngx | Apache License 2.0 | TypeScript |
@@ -66,6 +66,8 @@ function extractNiftiFile(file, callback) {
}
function browserNiftiTest(file, callback) {
+ const bytesRead = 1024
+ const blob = file.slice(0, bytesRead)
if (file.size == 0) {
callback({ error: new Issue({ code: 44, file: file }) })
return
@@ -77,7 +79,7 @@ function browserNiftiTest(file, callback) {... | fix: Restore file.slice for nifti headers (instead of the entire file) | null | bids-standard/bids-validator | MIT License | JavaScript |
@@ -116,21 +116,31 @@ class _Session:
def _set_run_id(df):
# Set run_id for run actions
+ if df.empty:
+ df["run_id"] = None
+ return df
+
+ df = df.sort_values(["asctime"])
df_runs = df[df["action"] == "run"]
- df = df.sort_values("asctime")
df.loc[df_runs.index, "run_id"] = pd.RangeIndex(len(df_runs.index))
- df = df... | fix: session.get_task_run_info | null | miksus/rocketry | MIT License | Python |
@@ -162,7 +162,13 @@ def sanitize_html(html, linkify=False):
+ mathml_elements
+ ["html", "head", "meta", "link", "body", "style", "o:p"]
)
- attributes = {"*": acceptable_attributes, "svg": svg_attributes}
+
+ def attributes_filter(tag, name, value):
+ if name.startswith("data-"):
+ return True
+ return name in accept... | fix(sanitize-html): allow all data-* attrs | null | frappe/frappe | MIT License | Python |
@@ -44,9 +44,9 @@ import io.ebeaninternal.server.deploy.meta.DeployBeanPropertyAssoc;
import io.ebeaninternal.server.deploy.meta.DeployBeanPropertyAssocMany;
import io.ebeaninternal.server.deploy.meta.DeployBeanPropertyAssocOne;
import io.ebeaninternal.server.deploy.meta.DeployBeanTable;
+import io.ebeaninternal.server... | fix: not working when referencing the parent of a inheritance structure | null | ebean-orm/ebean | Apache License 2.0 | Java |
@@ -100,15 +100,20 @@ const getCell = (state: any) => {
}
const ScriptTypeItems = ['Lock Script', 'Type Script', 'Data']
-const getCellState = (state: any, item: string) => {
- let cellState: CellState = CellState.NONE
+const cellStateWithItem = (item: string) => {
if (item === ScriptTypeItems[0]) {
- cellState = CellS... | fix: fix script operation button css | null | nervosnetwork/ckb-explorer-frontend | MIT License | TypeScript |
@@ -95,7 +95,7 @@ class TrimePay extends AbstractPayment
$data['appId'] = Config::get('trimepay_appid');
$data['payType'] = $type;
$data['merchantTradeNo'] = $pl->tradeno;
- $data['totalFee'] = (int)$price * 100;
+ $data['totalFee'] = (float)$price * 100;
$data['notifyUrl'] = Config::get("baseUrl")."/payment/notify";
$... | fix: type error | null | chensee/ss-panel-v3-mod_uim-alipay-wxpay | MIT License | PHP |
@@ -15,12 +15,8 @@ npx sort-package-json &&
npx standard-version &&
# Publish the current branch origin
-if [ "$BRANCH" = "master" ]; then
- if [ "$1" = "--no-tags" ]; then # disable tags
- git push origin $BRANCH
- elif [ "$RELEASE" = "true" ]; then
- git push origin $BRANCH --follow-tags # only releases
- fi;
+if [ "... | fix: releases | null | millsp/ts-toolbelt | Apache License 2.0 | Shell |
@@ -16,6 +16,7 @@ use std::net::SocketAddr;
use std::sync::Arc;
use std::{env, fmt, str};
+use bytes::BytesMut;
use csv::Writer;
use failure::_core::time::Duration;
use futures::{self, StreamExt};
@@ -71,7 +72,7 @@ async fn write(req: Request<Body>, app: Arc<App>) -> Result<Body, ApplicationErr
let mut payload = req.in... | fix: Use BytesMut directly rather than through actix | null | influxdata/influxdb_iox | Apache License 2.0 | Rust |
@@ -289,11 +289,13 @@ public class JCloudsAppStorageService
// -----------------------------------------------------------------
// Check for namespace and if it's already taken by another app
+ // Allow install if namespace was taken by another version of this app
// ---------------------------------------------------... | fix: allow app install if namespace is reserved by previous version | null | dhis2/dhis2-core | BSD 3-Clause New or Revised License | Java |
@@ -72,7 +72,7 @@ class SpellCheck {
if (similar < distanceBest) {
best = feature;
distanceBest = similar;
- } else if (similar === distanceBest) {
+ } else if (similar === distanceBest && best) {
if (
Math.abs(best.length - token.length) >
Math.abs(feature.length - token.length)
| fix: remove non needed function parameters | null | axa-group/nlp.js | MIT License | JavaScript |
#define TEST_GAS_LIMIT "0x6691B7"
#define TEST_GAS_PRICE "0x4A817C800"
#define TEST_EIP155_COMPATIBILITY BOAT_FALSE
-#define TEST_ETHEREUM_CHAIN_ID 300
+#define TEST_ETHEREUM_CHAIN_ID 5777
-#define TEST_RECIPIENT_ADDRESS "0x3e3bd84cf33796cb55cc713d5134597eb809fcc3"
+#define TEST_CONTRACT_ADDRESS "0x50D0501A86332245c9B4... | fix: Fix issues that cause test cases to fail | null | aitos-io/boat-x-framework | Apache License 2.0 | C |
@@ -1217,14 +1217,20 @@ discord_gateway_init(struct discord_gateway *gw, struct logconf *config, struct
}
ASSERT_S(NULL != token->start, "Missing bot token");
- gw->id = malloc(sizeof *gw->id);
- discord_gateway_identify_init(gw->id);
- asprintf(&gw->id->token, "%.*s", (int)token->size, token->start);
-
- gw->id->prope... | fix(discord-gateway): make it work with latest specs-code xxx_init() changes | null | cee-studio/orca | MIT License | C |
@@ -57,6 +57,7 @@ int main (int argc, char ** argv)
curl_global_init(CURL_GLOBAL_ALL);
struct orka_config config;
+ memset(&config, 0, sizeof(config));
orka_config_init(&config, "GIT HTTP", config_file);
char *username = orka_config_get_field(&config, "github.username");
char *token = orka_config_get_field(&config, "gi... | fix: uninitialized variable | null | cee-studio/orca | MIT License | C++ |
@@ -302,10 +302,8 @@ _discord_bucket_populate(struct discord_adapter *adapter,
b->reset_tstamp = now + (1000 * strtod(reset.start, NULL) - offset);
}
- logconf_debug(
- &adapter->conf,
- "[%.4s] Remaining = %ld | Reset = %" PRIu64 " (%" PRId64 " ms)", b->hash,
- b->remaining, b->reset_tstamp, (int64_t)(b->reset_tstamp ... | fix(discord-adapter-ratelimit.c): no need to log wait time unless actually being timed-out | null | cee-studio/orca | MIT License | C |
@@ -12,9 +12,13 @@ import (
"github.com/rockbears/log"
"github.com/ovh/cds/sdk"
+ cdslog "github.com/ovh/cds/sdk/log"
)
func (s *Service) processPush(ctx context.Context, op *sdk.Operation) (globalErr error) {
+ ctx = context.WithValue(ctx, cdslog.Operation, op.UUID)
+ ctx = context.WithValue(ctx, cdslog.Repository, op... | fix(repositories): error management when push fails | null | ovh/cds | BSD 3-Clause New or Revised License | Go |
@@ -297,8 +297,10 @@ public class Job extends JobInfo {
job = reload();
}
if (job.getStatus() != null && job.getStatus().getError() != null) {
- throw new JobException(
- getJobId(), ImmutableList.copyOf(job.getStatus().getExecutionErrors()));
+ throw new BigQueryException(
+ job.getStatus().getExecutionErrors() == nul... | fix: nullpointer exception when executionerror is null | null | googleapis/java-bigquery | Apache License 2.0 | Java |
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+#include <assert.h>
+#include <libdiscord.h>
+
+
+using namespace discord;
+
+uint64_t
+select_guild(client *client)
+{
+ // get guilds bot is a part of
+ guild::dati **guilds = NULL;
+ guilds = user::me::get_guilds(client);
+ ASSERT_S(NULL != guilds, "Coul... | fix: include missing file bot-fetch-messages.cpp | null | cee-studio/orca | MIT License | C++ |
@@ -1482,7 +1482,7 @@ namespace Discord.WebSocket
var cacheable = new Cacheable<IUserMessage, ulong>(cachedMsg, data.MessageId, isCached, async () => await channel.GetMessageAsync(data.MessageId).ConfigureAwait(false) as IUserMessage);
var emote = data.Emoji.ToIEmote();
- cachedMsg?.RemoveAllReactionsForEmoteAsync(emot... | fix: Cached message emoji cleanup at MESSAGE_REACTION_REMOVE_EMOJI | null | discord-net/discord.net | MIT License | C# |
@@ -26,7 +26,7 @@ class RepeatedGame:
self.N = stage_game.N
self.nums_actions = stage_game.nums_actions
- def AS(self, tol=1e-12, max_iter=500, u=np.zeros(2)):
+ def AS(self, tol=1e-12, max_iter=500, u_init=np.zeros(2)):
"""
Using AS algorithm to compute the set of payoff pairs of all
pure-strategy subgame-perfect equi... | fix: solve the bug of cached keyword `u` | null | quantecon/quantecon.py | BSD 3-Clause New or Revised License | Python |
@@ -364,6 +364,11 @@ func (o *StepHelmApplyOptions) Run() error {
ValueFiles: valueFiles,
Dir: dir,
}
+ if o.Boot {
+ helmOptions.VersionsGitURL = requirements.VersionStream.URL
+ helmOptions.VersionsGitRef = requirements.VersionStream.Ref
+ }
+
if o.Wait {
helmOptions.Wait = true
err = o.InstallChartWithOptionsAndTime... | fix: helm apply should use requirements version stream | null | jenkins-x/jx | Apache License 2.0 | Go |
/**
-* (C) Copyright IBM Corp. 2018, 2020.
+* (C) Copyright IBM Corp. 2021.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -25,8 +25,8 @@ namespace IBM.Watson.Assistant.v1.Model
public class WorkspaceSystemSettingsDisambiguation
... | fix(formatting): update comments and formatting changes | null | watson-developer-cloud/dotnet-standard-sdk | Apache License 2.0 | C# |
@@ -101,10 +101,10 @@ class Result extends BaseResult implements ResultInterface
*/
public function freeResult()
{
- if (is_object($this->resultID))
+ if (is_resource($this->resultID))
{
oci_free_statement($this->resultID);
- $this->resultID = null;
+ $this->resultID = false;
}
}
| fix: Fixed typing errors | null | codeigniter4/codeigniter4 | MIT License | PHP |
+package com.netflix.spinnaker.keel.titus.verification
+
+import com.netflix.spinnaker.keel.api.TaskStatus
+import com.netflix.spinnaker.keel.orca.ExecutionDetailResponse
+import org.junit.jupiter.api.Test
+import strikt.api.expectThat
+import strikt.assertions.isEqualTo
+import java.time.Instant
+
+internal class Orca... | fix(pr): add unit test | null | spinnaker/keel | Apache License 2.0 | Kotlin |
@@ -27,6 +27,25 @@ type Omit<T, K extends keyof T> = Pick<
{ [P in K]: never } & { [x: string]: never; [x: number]: never })[keyof T]
>
+function getFiberType(component) {
+ if (component.type) {
+ // React.memo
+ return getFiberType(component.type)
+ }
+ // React.forwardRef
+ return component.render || component
+}
+
... | fix(react): fix display name in devtools for react | null | cerebral/overmind | MIT License | TypeScript |
@@ -130,7 +130,7 @@ class LambdaDebugSettings:
},
),
Runtime.python36.value: lambda: DebugSettings(
- entry + ["/var/lang/bin/python3.6"] + debug_args_list + ["/var/runtime/awslambda/bootstrap.py"],
+ entry + ["/var/lang/bin/python3.6"] + debug_args_list + ["/var/runtime/bootstrap.py"],
container_env_vars=_container_en... | fix: Updated Python3.6 Debug Bootstrap Path | null | aws/aws-sam-cli | Apache License 2.0 | Python |
@@ -349,7 +349,7 @@ impl VirtualDom {
/// If you have multiple events, you can call this method multiple times before calling "render_with_deadline"
pub fn handle_event(
&mut self,
- mut name: &str,
+ name: &str,
data: Rc<dyn Any>,
element: ElementId,
bubbles: bool,
@@ -385,7 +385,6 @@ impl VirtualDom {
};
// Remove th... | fix: trim start matches for events | null | dioxuslabs/dioxus | Apache License 2.0 | Rust |
@@ -96,6 +96,7 @@ public class AttendeeCheckInFragment extends BottomSheetDialogFragment implement
@Override
public void showResult(Attendee attendee) {
binding.setCheckinAttendee(attendee);
+ binding.executePendingBindings();
}
@Override
| fix: added missing execute pending binding call | null | fossasia/open-event-organizer-android | Apache License 2.0 | Java |
@@ -226,7 +226,7 @@ export class ZoomBar extends Component {
);
} else if (
newInitialZoomDomain === null &&
- oldInitialZoomDomain != null
+ oldInitialZoomDomain !== null
) {
// if newInitialZoomDomain is set to null (when oldInitialZoomDomain is not null)
// save initialZoomDomain and reset zoom domain to default dom... | fix(core): set zoom domain if old initial zoom domain is undefined | null | carbon-design-system/carbon-charts | Apache License 2.0 | TypeScript |
@@ -42,8 +42,10 @@ final class BuilderLocalMacros implements PipeContract
/** @var ObjectType $modelType */
$modelType = $classReflection->getActiveTemplateTypeMap()->getType('TModelClass');
+ if ($modelType instanceof ObjectType) {
$classReflection = $passable->getBroker()->getClass($modelType->getClassName());
}
+ }
... | fix: make sure its ObjectType | null | nunomaduro/larastan | MIT License | PHP |
@@ -672,7 +672,7 @@ START_TEST(test_002InitWallet_0006SetNodeUrlFailureNullParam)
/* 2-2. verify the global variables that be affected */
ck_assert(wallet_ptr->network_info.node_url_ptr == NULL);
- BoatIotSdkDeInit();
+ BoatFree(wallet_ptr);
}
END_TEST
| fix: replace BoatIotSdkDeInit(); with BoatFree(); in test_002InitWallet_0006SetNodeUrlFailureNullParam | null | aitos-io/boat-x-framework | Apache License 2.0 | C |
@@ -823,6 +823,8 @@ def run_tests(
def run_parallel_tests(
context, app, build_number, total_builds, with_coverage=False, use_orchestrator=False
):
+ from traceback_with_variables import activate_by_import
+
with CodeCoverage(with_coverage, app):
site = get_site(context)
if use_orchestrator:
| fix(run-tests): Throw traceback with ctx variables | null | frappe/frappe | MIT License | Python |
@@ -40,6 +40,8 @@ func DisplayMultiplePipelines(p []*gitlab.PipelineInfo, projectID string) string
pipelinePrint += fmt.Sprintf("%s\t%s\t%s\n", pipeState, pipeline.Ref, utils.Magenta("("+duration+")"))
}
+
+ return pipelinePrint
}
return "No Pipelines available on " + projectID
| fix: glab pipeline list always says "No pipelines..." | null | profclems/glab | MIT License | Go |
@@ -817,7 +817,14 @@ impl CatalogChunk {
/// Start lifecycle action that should result in the chunk being dropped from memory and (if persisted) from object store.
pub fn set_dropping(&mut self, registration: &TaskRegistration) -> Result<()> {
- self.set_lifecycle_action(ChunkLifecycleAction::Dropping, registration)
+ ... | fix: account for memory size in drop lifecycle action | null | influxdata/influxdb_iox | Apache License 2.0 | Rust |
@@ -41,15 +41,12 @@ void runApp({
}
if (afterConnected != null) _connectedCallback = afterConnected;
- connect(showPerformanceOverlay);
-
if (shouldInitializeBinding) {
/// Bootstrap binding
ElementsFlutterBinding.ensureInitialized().scheduleWarmUpFrame();
}
-
-
+ connect(showPerformanceOverlay);
initScreenMetricsChang... | fix: connect order | null | openkraken/kraken | Apache License 2.0 | Dart |
@@ -175,7 +175,7 @@ class DatabaseQuery(object):
if (field.strip().startswith(("`", "*")) or "(" in field):
fields.append(field)
elif "as" in field.lower().split(" "):
- col, _, new = field.split()
+ col, _, new = field.split()[-3:]
fields.append("`{0}` as {1}".format(col, new))
else:
fields.append("`{0}`".format(field... | fix: Select only last 3 args | null | frappe/frappe | MIT License | Python |
@@ -2581,10 +2581,9 @@ JitsiConference.prototype._updateProperties = function(properties = {}) {
];
analyticsKeys.forEach(key => {
- if (this.properties[key]
- && this.properties[key].value !== undefined) {
+ if (properties[key] !== undefined) {
Statistics.analytics.addPermanentProperties({
- [key.replace('-', '_')]: p... | fix: Fixes adding permanent properties | null | jitsi/lib-jitsi-meet | Apache License 2.0 | JavaScript |
@@ -378,28 +378,23 @@ if __name__ == "__main__":
for condition in model_status["status"]["conditions"]:
if condition['type'] == 'Ready':
if condition['status'] == 'True':
- print('Model is ready')
+ print('Model is ready\n')
break
else:
print('Model is timed out, please check the inferenceservice events for more detail... | fix(components): Fix kfserving component url parsing | null | kubeflow/pipelines | Apache License 2.0 | Python |
@@ -1114,9 +1114,7 @@ LABEL start
} else {
accessIp := b.GetAccessIp()
accessNet, _ := b.findAccessNetwork(accessIp)
- accessMac := b.GetAccessMac()
if accessNet != nil {
- mac = accessMac
addr = accessIp
mask = netutils.Masklen2Mask(int8(accessNet.GuestIpMask)).String()
gateway = accessNet.GuestGateway
| fix(baremetal): inject mac when admin nic found | null | yunionio/yunioncloud | Apache License 2.0 | Go |
@@ -28,7 +28,7 @@ _NUMERICAL_DISTRIBUTIONS = (
)
-def crossover(
+def try_crossover(
crossover_name: str,
study: Study,
parent_population: Sequence[FrozenTrial],
@@ -36,20 +36,11 @@ def crossover(
rng: np.random.RandomState,
swapping_prob: float,
dominates: Callable[[FrozenTrial, FrozenTrial, Sequence[StudyDirection]],... | fix: doc & crossover | null | optuna/optuna | MIT License | Python |
@@ -42,7 +42,7 @@ class DataTransferServiceSmokeTest extends GeneratedTest
}
$dataTransferServiceClient = new DataTransferServiceClient();
- $formattedParent = $dataTransferServiceClient->locationName($projectId, 'us-central1');
+ $formattedParent = $dataTransferServiceClient->projectName($projectId, 'us-central1');
$d... | fix: Fix BigQueryDataTransfer smoke test | null | googleapis/google-cloud-php | Apache License 2.0 | PHP |
@@ -10,6 +10,9 @@ func DefaultValues(imageTags map[string]string, image string) *Values {
adminAnnotations := map[string]string{"app.kubernetes.io/use": "admin-service"}
return &Values{
+ Env: map[string]string{
+ "POLL_EVERY_SECS": "0",
+ },
NodeSelector: map[string]string{},
FullnameOverride: "ambassador",
AdminServi... | fix: ambassador shouldn't try anymore to get openapi docs on each endpoint | null | caos/orbos | Apache License 2.0 | Go |
@@ -20,8 +20,8 @@ class ProtocolError(Exception):
class Chunk:
- def __init__(self, id, length, version, csdata, ele_width=6):
- self.id = id
+ def __init__(self, id_, length, version, csdata, ele_width=6):
+ self.id = id_
self.length = length
self.version = version
self.ele_width = ele_width
@@ -212,13 +212,13 @@ clas... | fix: shadows built-in | null | douban/dpark | BSD 3-Clause New or Revised License | Python |
@@ -142,7 +142,10 @@ async function verifyContract(contractAddress, contractName) {
},
};
const params = new URLSearchParams();
- params.append('apikey', process.env.ETHERSCAN_API_KEY);
+
+ const apiKey = process.env.ETHERSCAN_API_KEY;
+
+ params.append('apikey', apiKey);
params.append('module', 'contract');
params.app... | fix: small fix for testnets | null | defisaver/defisaver-v3-contracts | MIT License | JavaScript |
@@ -177,7 +177,8 @@ public class OpportunityDatasetController implements HttpController {
private void updateAndStoreDatasets (SpatialDatasetSource source,
OpportunityDatasetUploadStatus status,
List<? extends PointSet> pointSets) {
-
+ status.status = Status.UPLOADING;
+ status.totalGrids = pointSets.size();
// Create... | fix(spatial): reimplement legacy upload status updates | null | conveyal/r5 | MIT License | Java |
@@ -40,6 +40,9 @@ async fn test_graceful_shutdown() -> Result<()> {
assert_success(shutdown_daemon(&settings.shared).await?);
wait_for_shutdown(child.id().try_into()?)?;
+ // Sleep for 500ms and give the daemon time to shut down
+ sleep_ms(500);
+
let result = child.try_wait();
assert!(matches!(result, Ok(Some(_))));
l... | fix: Longer test wait for potato CI | null | nukesor/pueue | MIT License | Rust |
@@ -515,85 +515,73 @@ See $ engine config command for more details.
switch a {
case "api":
if conf.API == nil {
- fmt.Printf("Error: missing configuration for service '%s'\n", a)
- os.Exit(1)
+ conf.API = &api.Configuration{}
}
services = append(services, serviceConf{arg: a, service: api.New(), cfg: *conf.API})
names =... | fix(engine): take care of env conf | null | ovh/cds | BSD 3-Clause New or Revised License | Go |
@@ -443,7 +443,7 @@ export class FormUtils {
return null;
}
- setInitialValues(controls: Array<NovoControlConfig>, values, keepClean = false, keyOverride?: string) {
+ setInitialValues(controls: Array<NovoControlConfig>, values: any, keepClean?: boolean, keyOverride?: string) {
for (let i = 0; i < controls.length; i++)... | fix(FormUtils): Don't set a default value for keepClean | null | bullhorn/novo-elements | MIT License | TypeScript |
@@ -120,7 +120,7 @@ public class FollowMeTest
WebDriver secondParticipant = ConferenceFixture.getSecondParticipant();
- TestUtils.waitForNotDisplayedElementByXPath(
+ TestUtils.waitForElementNotPresentByXPath(
secondParticipant, followMeCheckboxXPath, 5);
}
| fix(follow-me): check follow me checkbox not present | null | jitsi/jitsi-meet-torture | Apache License 2.0 | Java |
@@ -85,6 +85,6 @@ frappe.ui.form.ControlDatetime = class ControlDatetime extends frappe.ui.form.Co
if (!value && !this.doc) {
value = this.last_value;
}
- return frappe.datetime.get_datetime_as_string(value);
+ return !value ? "" : frappe.datetime.get_datetime_as_string(value);
}
};
| fix: Datetime field not getting saved if use NOW button | null | frappe/frappe | MIT License | JavaScript |
@@ -110,6 +110,19 @@ export default Component.extend(FormMixin, EventWizardMixin, {
return this.data.event.tickets.toArray().filter(ticket => ticket.type === 'paid' || ticket.type === 'donation').length > 0;
}),
+ timezoneObserver: observer('data.event.timezone', function() {
+ const { event } = this.data;
+ const { ol... | fix: Change event times according to timezone change | null | fossasia/open-event-frontend | Apache License 2.0 | JavaScript |
@@ -18,6 +18,12 @@ export function generateTypescriptErrorClass(name: string) {
super("${name}" + (message ? ": " + message : ""));
this.message = message || "";
}
+ public toJSON() {
+ return {
+ type: this.type,
+ message: this.message
+ };
+ }
}\n`;
}
| fix: implements toJSON func to generateTypescriptErrorClass from Client TypeScript | null | sdkgen/sdkgen | MIT License | TypeScript |
@@ -69,15 +69,17 @@ const EventPatchDescriptors: PropertyDescriptorMap = {
return outerMostElement;
}
const eventContext = eventToContextMap.get(this);
- // Executing event listener on component, target is always currentTarget
+
+ // Retarget to currentTarget if the listener was added to a custom element.
if (eventCont... | fix(engine): bail retargeting if target is detached | null | salesforce/lwc | MIT License | TypeScript |
package org.cloudfoundry.credhub.exceptions
+import org.hamcrest.MatcherAssert.assertThat
import org.hamcrest.Matchers.array
import org.hamcrest.core.IsEqual.equalTo
import org.hamcrest.core.IsInstanceOf.instanceOf
-import org.hamcrest.MatcherAssert.assertThat
import org.junit.Test
import org.junit.runner.RunWith
impor... | fix: Kotlin lint error | null | cloudfoundry-incubator/credhub | Apache License 2.0 | Kotlin |
@@ -1557,6 +1557,12 @@ sysdig_init_res sysdig_init(int argc, char **argv)
}
}
+ init_plugins(inspector);
+ if(g_plugin_input)
+ {
+ enable_source_plugin(inspector);
+ }
+
#ifdef HAS_CAPTURE
if(!cri_socket_path.empty())
{
@@ -1583,7 +1589,7 @@ sysdig_init_res sysdig_init(int argc, char **argv)
// If we are dumping event... | fix(userspace/sysdig): call init_plugins() as soon as possible | null | draios/sysdig | Apache License 2.0 | C++ |
@@ -124,7 +124,15 @@ public class FoxJobRetryCmd extends JobRetryCmd {
protected String getFailedJobRetryTimeCycle(JobEntity job, ActivityImpl activity) {
Expression expression = activity.getProperties().get(FoxFailedJobParseListener.FOX_FAILED_JOB_CONFIGURATION);
- Object value = expression.getValue(fetchExecutionEnti... | fix(engine): fix failing test case | null | camunda/camunda-bpm-platform | Apache License 2.0 | Java |
@@ -79,7 +79,8 @@ impl Account {
pub async fn get_display_name(&self) -> Result<Option<String>> {
let user_id = self.client.user_id().ok_or(Error::AuthenticationRequired)?;
let request = get_display_name::v3::Request::new(user_id);
- let response = self.client.send(request, None).await?;
+ let request_config = self.cli... | fix(sdk): Always send an access token for `get_display_name` | null | matrix-org/matrix-rust-sdk | Apache License 2.0 | Rust |
@@ -82,6 +82,15 @@ void lv_group_del(lv_group_t * group)
if((*obj)->spec_attr)(*obj)->spec_attr->group_p = NULL;
}
+ /*Remove the group from any indev devices */
+ lv_indev_t * indev = lv_indev_get_next(NULL);
+ while(indev) {
+ if(indev->group == group) {
+ lv_indev_set_group(indev, NULL);
+ }
+ indev = lv_indev_get_n... | fix(group): in lv_group_del() remove group from indev (lvgl#2963) | null | lvgl/lvgl | MIT License | C |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.