diff stringlengths 12 9.3k | message stringlengths 8 199 | reasoning_trace null | repo stringlengths 6 68 | license stringclasses 3
values | language stringclasses 16
values |
|---|---|---|---|---|---|
@@ -17,7 +17,7 @@ import OpenFinRoute from './OpenFinRoute'
import { OpenFinControls, OpenFinHeader, OpenFinFooter, OpenFinLogo } from '../components'
export default class OpenFin implements Platform {
- readonly name = 'openfin-platform'
+ readonly name = 'openfin'
readonly type = 'desktop'
readonly allowTearOff = tru... | fix(client): use correct platform name for OpenFin adapter | null | adaptiveconsulting/reactivetradercloud | Apache License 2.0 | TypeScript |
@@ -31,7 +31,7 @@ void App::Load( Platform::String^ entryPoint )
}
Widget_Append( root, pack );
Widget_Unwrap( pack );
- btn = LCUIWidget_GetById( "btn-ok" );
+ btn = LCUIWidget_GetById( "btn" );
Widget_BindEvent( btn, "click", OnBtnClick, NULL, NULL );
}
| fix(demo): get widget by "btn-ok" will return NULL | null | lc-soft/lcui | MIT License | C++ |
@@ -38,15 +38,20 @@ function parseKeyCode(code: string) {
function parseEvent(e: KeyboardEvent | React.KeyboardEvent) {
const { altKey: alt, shiftKey: shift, metaKey: meta, ctrlKey: ctrl } = e
+ try {
const code = parseKeyCode(e.key)
const keys = { meta, ctrl, shift, alt, [code]: true }
const combination = parse(
Objec... | fix: capture keyboard event that has no key | null | enixcoda/gitako | MIT License | TypeScript |
@@ -245,7 +245,7 @@ export class AdminUiPlugin implements OnVendureBootstrap, OnVendureClose {
};
return {
adminApiPath: propOrDefault('adminApiPath', this.configService.apiOptions.adminApiPath),
- apiHost: propOrDefault('apiHost', AdminUiPlugin.options.apiHost || 'http://localhost'),
+ apiHost: propOrDefault('apiHost'... | fix(admin-ui-plugin): Correctly fall back to 'auto' apiHost option | null | vendure-ecommerce/vendure | MIT License | TypeScript |
@@ -1407,9 +1407,9 @@ namespace PepperDash.Essentials.Devices.Common.VideoCodec
arrayIndex += offset;
stringIndex += maxStrings;
- digitalIndex++;
+ digitalIndex += maxDigitals;
}
- while (digitalIndex < maxCalls)
+ while (digitalIndex < maxCalls * offset)
{
//digitals
tokenArray[digitalIndex] = new XSigDigitalToken(di... | fix: updated XSig methods in VideoCodecBase | null | pepperdash/essentials | MIT License | C# |
@@ -292,6 +292,9 @@ public final class OpenstackSwitchingHostProvider extends AbstractProvider imple
public boolean isRelevant(OpenstackNodeEvent event) {
// do not allow to proceed without mastership
Device device = deviceService.getDevice(event.subject().intgBridge());
+ if (device == null) {
+ return false;
+ }
retu... | fix: resolve NPE when inject non-existing compute node through SONA | null | opennetworkinglab/onos | Apache License 2.0 | Java |
@@ -436,6 +436,7 @@ public abstract class SnomedConstants {
// MRCM Attribute Range
public static final String ATTRIBUTE_TYPE_RANGE_CONSTRAINT = "723575003";
public static final String ATTRIBUTE_TYPE_ATTRIBUTE_RULE = "723576002";
+ public static final String ALL_PRECOORDINATED_CONTENT = "723594008";
// MRCM Module Scop... | fix(mrcm): Add constant for precoordinated SCT content type | null | b2ihealthcare/snow-owl | Apache License 2.0 | Java |
@@ -251,6 +251,7 @@ open class ExoPlayerPlayback(source: String, mimeType: String? = null, options:
trigger(Event.WILL_STOP)
player?.stop()
release()
+ currentState = State.IDLE
trigger(Event.DID_STOP)
return true
}
| fix(exoplayer): go to idle state when video is stopped | null | clappr/clappr-android | BSD 3-Clause New or Revised License | Kotlin |
@@ -101,7 +101,7 @@ const Dock = (): JSX.Element => {
<Grid item>
<Typography variant="subtitle1">Dock</Typography>
</Grid>
- <Grid container direction="row" alignItems="center" spacing={1} sx={{paddingTop: "8px", maxHeight: "4em"}}>
+ <Grid container direction="row" alignItems="center" spacing={1} sx={{paddingTop: "8p... | fix(ui): Fix dock controls on very small screens | null | hypfer/valetudo | Apache License 2.0 | TypeScript |
@@ -14,10 +14,13 @@ declare module 'vuetify/lib' {
}
const VAlert: Component
const VApp: Component
+ const VAppBar: Component
+ const VAppBarNavIcon: Component
const VAutocomplete: Component
const VAvatar: Component
const VBadge: Component
const VBanner: Component
+ const VBottomNav: Component
const VBottomNavigation: ... | fix(typescript): missing components in lib.d.ts | null | vuetifyjs/vuetify | MIT License | TypeScript |
@@ -8,7 +8,7 @@ import frappe
from frappe.model.base_document import get_controller
from frappe.modules import get_module_path, scrub_dt_dn
from frappe.query_builder import DocType
-from frappe.utils import get_datetime_str, now
+from frappe.utils import get_datetime, now
def caclulate_hash(path: str) -> str:
@@ -109,7... | fix: import doc / fixtures | null | frappe/frappe | MIT License | Python |
@@ -252,6 +252,6 @@ class Cache:
if not self.enabled:
return
- if not self.expire_hours.isnumeric():
- raise Exception('cache expire hours should be number')
+ if not self.expire_hours or self.expire_hours <= 0:
+ raise Exception('cache expire hours should be positive number')
return
| fix(prepare): validate expire hours when enable cache | null | goharbor/harbor | Apache License 2.0 | Python |
import javax.sip.*;
import net.java.sip.communicator.service.protocol.*;
+import net.java.sip.communicator.service.protocol.event.*;
import net.java.sip.communicator.util.osgi.*;
import org.jitsi.service.packetlogging.*;
import org.osgi.framework.*;
@@ -156,7 +157,13 @@ public void logDebug(String message)
{
try
{
- ((... | fix: Fixes register logic when detecting sip stack failures | null | jitsi/jitsi | Apache License 2.0 | Java |
@@ -628,7 +628,6 @@ import Foundation
/// - parameter requestOptions: Request-specific options.
/// - parameter completionHandler: Completion handler to be notified of the request's outcome.
/// - returns: A cancellable operation.
- /// + Warning: Deprecated, use deleteBy instead.
///
@objc
@discardableResult public fu... | fix(deleteBy): remove deprecated note for deleteBy | null | algolia/algoliasearch-client-swift | MIT License | Swift |
import XCTest
class RepeatingTimerTests: XCTestCase {
- func testRepeatingTimer() {
+ func testRepeatingTimer() async {
let timerFired = expectation(description: "timer fired")
timerFired.expectedFulfillmentCount = 4
timerFired.assertForOverFulfill = true
@@ -17,7 +17,7 @@ class RepeatingTimerTests: XCTestCase {
timerF... | fix(analytics): fix RepeatingTimerTests | null | aws-amplify/amplify-ios | Apache License 2.0 | Swift |
@@ -154,6 +154,9 @@ class DataManager(Module):
def baseDirTextChanged(self):
path = str(self.ui.baseDirText.text())
+ if path.strip() == '':
+ self.baseDirChanged()
+ return
if not os.path.isdir(path):
raise ValueError("Path %s does not exist" % path)
self.setBaseDir(path)
| fix: data manager complains when base dir text is blank and loses focus | null | acq4/acq4 | MIT License | Python |
@@ -27,7 +27,8 @@ function build() {
-DMGE_WITH_DISTRIBUTED=${DMGE_WITH_DISTRIBUTED} \
-DMGE_WITH_CUDA=${DMGE_WITH_CUDA} \
-DMGE_WITH_TEST=ON \
- -DCMAKE_BUILD_TYPE=RelWithDebInfo
+ -DCMAKE_BUILD_TYPE=RelWithDebInfo \
+ -DMGE_WITH_CUSTOM_OP=ON
make -j$(($(nproc) * 2)) -I ${build_dir}
make develop
popd >/dev/null
| fix(ci): add MGE_WITH_CUSTOM_OP in github ci | null | megengine/megengine | Apache License 2.0 | Shell |
@@ -7,7 +7,15 @@ import frappe
from frappe.model.document import Document
class EmailGroupMember(Document):
- pass
+ def after_delete(self):
+ print("*"*50, "delete")
+ email_group = frappe.get_doc('Email Group', self.email_group)
+ email_group.update_total_subscribers()
+
+ def after_insert(self):
+ print("*"*50, "add... | fix(email_group): show correct total_subscribers after inserting or deleting email group members | null | frappe/frappe | MIT License | Python |
@@ -75,7 +75,7 @@ impl Compactor for BlockCompactorNoSplit {
blocks.remove(size - 1);
} else {
let accumulated_rows_new = self.accumulated_rows + num_rows;
- let accumulated_bytes_new = self.accumulated_bytes + num_rows;
+ let accumulated_bytes_new = self.accumulated_bytes + num_bytes;
if self
.thresholds
| fix(compact): fix typo in compactor | null | datafuselabs/databend | Apache License 2.0 | Rust |
@@ -62,7 +62,7 @@ function mapModality(modality: string) {
modality = 'virtual';
}
- if (modality === 'virtual' && 'ontouchstart' in window) {
+ if (modality === 'virtual' && (typeof window !== 'undefined' && 'ontouchstart' in window)) {
modality = 'touch';
}
| fix(@react-aria/dnd): add support for SSR | null | adobe/react-spectrum | Apache License 2.0 | TypeScript |
@@ -15,6 +15,7 @@ export default UiModal.extend({
if (this.isOpen) {
$element.modal(this.defaultOptions).modal('show');
} else {
+ this.close();
$element.modal('hide');
}
}),
| fix: Team Page Empty email fields | null | fossasia/open-event-frontend | Apache License 2.0 | JavaScript |
@@ -60,8 +60,11 @@ impl Core {
if let Value::String(ref method) = msg["method"] {
handler.notification(&method, &msg["params"]);
} else if let Some(id) = msg["id"].as_u64() {
+ let callback = {
let mut state = rx_core_handle.state.lock().unwrap();
- if let Some(callback) = state.pending.remove(&id) {
+ state.pending.re... | fix(rpc): don't lock state for longer than we have to | null | cogitri/tau | MIT License | Rust |
@@ -44,6 +44,7 @@ import org.hisp.dhis.tracker.domain.Event;
import org.hisp.dhis.tracker.preheat.TrackerPreheat;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;
+import org.springframework.transaction.annotation.Transactional;
import java.util.List;
import ... | fix: Adding Transactional annotation in rule engine call | null | dhis2/dhis2-core | BSD 3-Clause New or Revised License | Java |
@@ -33,7 +33,7 @@ class LodestoneCharacterController extends AbstractController
if (empty(trim($request->get('name')))) {
throw new NotAcceptableHttpException('You must provide a name to search.');
}
- $rediskey = "lodestone_search_json_response_v6_" . preg_replace('/\s+/', '_', $request->get('name'));
+ $rediskey = "l... | fix(lodestone): fixed character search cache | null | xivapi/xivapi.com | MIT License | PHP |
@@ -502,7 +502,7 @@ class Engine:
for declaration in order_by.split(","):
if _order_by := declaration.strip():
parts = _order_by.split(" ")
- order_field, order_direction = parts[0], parts[1] if len(parts) > 1 else "asc"
+ order_field, order_direction = parts[0], parts[1] if len(parts) > 1 else "desc"
order_direction =... | fix: set default order_by direction to desc | null | frappe/frappe | MIT License | Python |
@@ -14,13 +14,12 @@ import 'package:get/get.dart' hide Response;
MessagesService ms(String chatGuid) => Get.isRegistered<MessagesService>(tag: chatGuid)
? Get.find<MessagesService>(tag: chatGuid) : Get.put(MessagesService(chatGuid), tag: chatGuid);
-String? lastReloadedChat() => Get.isRegistered<String>(tag: 'lastReloa... | fix: disappearing message issue | null | bluebubblesapp/bluebubbles-app | Apache License 2.0 | Dart |
@@ -998,7 +998,7 @@ func (manager *SCloudaccountManager) AutoSyncCloudaccountTask(ctx context.Contex
sqlchemy.LT(q.Field("error_count"), options.Options.MaxCloudAccountErrorCount),
),
)
- q = q.Equals("sync_status", CLOUD_PROVIDER_SYNC_STATUS_IDLE)
+ // q = q.Equals("sync_status", CLOUD_PROVIDER_SYNC_STATUS_IDLE)
accou... | fix: cloudaccount that is in stale syncing status should be auto-synced | null | yunionio/yunioncloud | Apache License 2.0 | Go |
@@ -24,6 +24,7 @@ import it.unibo.tuprolog.solve.toOperatorSet
import it.unibo.tuprolog.theory.MutableTheory
import it.unibo.tuprolog.theory.Theory
import it.unibo.tuprolog.utils.Cursor
+import it.unibo.tuprolog.utils.cached
import kotlin.collections.List as KtList
import kotlin.collections.Set as KtSet
@@ -81,12 +82,1... | fix: maka recursion quicker by lazily caching interesting variables | null | tuprolog/2p-kt | Apache License 2.0 | Kotlin |
@@ -258,6 +258,9 @@ func (session *Editor) ReadLine(ctx context.Context) (string, error) {
rc := f.Call(ctx, &this)
if rc != CONTINUE {
fmt.Fprint(Console, "\n")
+ if !cursorOnSwitch {
+ io.WriteString(Console, CURSOR_ON)
+ }
Console.Flush()
result := this.String()
if rc == ENTER {
| fix: the cursor blink was switched to off on the child process | null | zetamatta/nyagos | BSD 3-Clause New or Revised License | Go |
@@ -276,7 +276,7 @@ class AlexaClient(MediaPlayerDevice):
self._cluster_members = device['clusterMembers']
self._bluetooth_state = device['bluetooth_state']
self._locale = device['locale'] if 'locale' in device else 'en-US'
- self._dnd = device['dnd']
+ self._dnd = device['dnd'] if 'dnd' in device else None
if self._av... | fix(mediaplayer): fix dnd keyerror | null | custom-components/alexa_media_player | Apache License 2.0 | Python |
@@ -9,6 +9,7 @@ import com.simibubi.create.AllTileEntities;
import com.simibubi.create.content.contraptions.base.DirectionalAxisKineticBlock;
import com.simibubi.create.content.contraptions.fluids.FluidPropagator;
import com.simibubi.create.foundation.block.ITE;
+import com.simibubi.create.foundation.block.ProperWaterl... | fix: Fluid valve isn't waterloggable | null | creators-of-create/create | MIT License | Java |
@@ -681,6 +681,8 @@ defmodule Ash.Policy.Authorizer do
Ash.Error.Forbidden.Policy.exception(
facts: authorizer.facts,
policies: authorizer.policies,
+ resource: Map.get(authorizer, :resource),
+ action: Map.get(authorizer, :action),
scenarios: []
)}
end
| fix: add resource/action to policy error context | null | ash-project/ash | MIT License | Elixir |
@@ -144,6 +144,14 @@ class CSSLengthValue {
parentRenderStyle?.contentBoxLogicalHeight;
switch (propertyName) {
+ case FONT_SIZE:
+ // Relative to the parent font size.
+ if (renderStyle!.parent == null) {
+ _computedValue = value! * 16;
+ } else {
+ _computedValue = value! * renderStyle!.parent!.fontSize.computedValue... | fix: font-size with percentage | null | openkraken/kraken | Apache License 2.0 | Dart |
@@ -40,9 +40,7 @@ import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
-import org.cache2k.Cache;
import org.hisp.dhis.attribute.AttributeService;
-import org.hisp.dhis.cache.PaginationCacheManager;
import org.hisp.dhis.common.DhisApiVersion;
import org.hisp... | fix: Remove pagination cache in Abstract controllers | null | dhis2/dhis2-core | BSD 3-Clause New or Revised License | Java |
@@ -81,13 +81,17 @@ func fetchDSN(key string) error {
return nil
}
-func SwitchEnvironment(environment string) {
+func (m Monitor) SwitchEnvironment(environment string) {
if environment == "" {
panic("environment must not be empty")
}
+
+ m.WithFields(map[string]interface{}{"from": env, "to": environment}).CaptureMessa... | fix: track environment changes | null | caos/orbos | Apache License 2.0 | Go |
@@ -109,8 +109,9 @@ public class FluidFilterWidget extends ButtonWidget
if (isWithin(x, y)) {
if (!stack.isEmpty()) {
var fluidStorage = FluidStorage.ITEM.find(stack, ContainerItemContext.ofPlayerCursor(getHandled().getHandler().getPlayer(), getHandled().getHandler()));
+ var fluid = StorageUtil.findStoredResource(flui... | fix: FluidFilterWidget failing when held item is removed | null | mixinors/astromine | MIT License | Java |
@@ -20,7 +20,7 @@ function forceHydration() {
props.expanded = true;
// Force hydration
- doHydration(name, props, guElement);
+ void doHydration(name, props, guElement);
} catch (err) {
// Do nothing
}
| fix: 'void' on discussion doHydration call | null | guardian/dotcom-rendering | Apache License 2.0 | TypeScript |
@@ -39,4 +39,9 @@ public class SocketIoConfigurer {
return new SocketIoHandler(socketIoServer, objectMapper,
pushMessageHandler);
}
+
+ @Bean
+ public EngineIoCleanup engineIoCleanup(EngineIoHandler engineIoHandler) {
+ return new EngineIoCleanup(engineIoHandler);
+ }
}
| fix: Properly clean up socket.io on shutdown | null | vaadin/flow | Apache License 2.0 | Java |
@@ -363,7 +363,7 @@ class Select extends Field
{
$columns = $this->searchColumns;
- if ($this->getRelationship()) {
+ if ($this->hasRelationship()) {
$columns ??= [$this->getRelationshipTitleColumnName()];
}
@@ -663,7 +663,7 @@ class Select extends Field
public function getLabel(): string
{
- if ($this->label === null ... | fix: Dynamic select options | null | laravel-filament/filament | MIT License | PHP |
@@ -72,7 +72,7 @@ public class MultiTouchAction implements PerformsActions<MultiTouchAction> {
performsTouchActions.performMultiTouchAction(this);
} else {
//android doesn't like having multi-touch actions with only a single TouchAction...
- performsTouchActions.performTouchAction(actions.build().get(0));
+ performsTou... | fix: using the cached list | null | appium/java-client | Apache License 2.0 | Java |
@@ -127,11 +127,13 @@ func (self *SHuaweiGuestDriver) GetInstanceCapability() cloudprovider.SInstanceC
cloudprovider.StorageInfo{StorageType: api.STORAGE_HUAWEI_SSD, MaxSizeGb: 32768, MinSizeGb: 10, StepSizeGb: 1, Resizable: true},
cloudprovider.StorageInfo{StorageType: api.STORAGE_HUAWEI_SATA, MaxSizeGb: 32768, MinSiz... | fix(region): add huawei gpssd desc | null | yunionio/yunioncloud | Apache License 2.0 | Go |
@@ -12,6 +12,7 @@ const CarePlanTable = () => {
const { t } = useTranslation()
const { patient } = useSelector((state: RootState) => state.patient)
+ if (patient.carePlans !== undefined) {
return (
<Table
tableClassName="table table-hover"
@@ -41,5 +42,7 @@ const CarePlanTable = () => {
/>
)
}
+ return <></>
+}
export ... | fix(care plans): fix undefined care plans behavior | null | hospitalrun/hospitalrun-frontend | MIT License | TypeScript |
@@ -171,13 +171,13 @@ function createInstanceFromAst(moduleNode) {
}
function replEval(input) {
- const ast = _debug.parseWATFSpecTest(input);
- const [node] = ast.body;
-
if (isVerbose === true) {
console.log(input);
}
+ const ast = _debug.parseWATFSpecTest(input);
+ const [node] = ast.body;
+
// Empty input, skip thi... | fix(repl): log input first | null | xtuc/webassemblyjs | MIT License | JavaScript |
@@ -439,13 +439,19 @@ namespace acl
}
}
- context.has_scale = num_default_bone_scales != num_transforms;
+ const bool has_scale = num_default_bone_scales != num_transforms;
+ context.has_scale = has_scale;
#ifdef ACL_COMPRESSION_OPTIMIZED
- const bool has_scale = context.has_scale;
- if (!context.has_additive_base &&
-... | fix(compression): only apply error correction if we aren't lossless | null | nfrechette/acl | MIT License | C |
@@ -151,6 +151,13 @@ func decodePostDocumentRequest(ctx context.Context, r *http.Request) (*postDocum
return nil, err
}
+ if req.Document == nil {
+ return nil, &influxdb.Error{
+ Code: influxdb.EInvalid,
+ Msg: "missing document body",
+ }
+ }
+
params := httprouter.ParamsFromContext(ctx)
req.Namespace = params.ByName... | fix(http): add check for nil document in post document request | null | influxdata/influxdb | MIT License | Go |
@@ -46,7 +46,7 @@ export default function registerOcProjectGet(registrar: Registrar) {
Object.assign({}, defaultFlags, { viewTransformer })
)
- const aliases = ['project', 'projects', 'ns', 'namespace']
+ const aliases = ['project', 'projects', 'ns', 'namespace', 'namespaces']
aliases.forEach(ns => {
registrar.listen(
... | fix(plugins/plugin-kubectl): `oc get namespaces` doesn't produce a RadioTable | null | ibm/kui | Apache License 2.0 | TypeScript |
@@ -287,7 +287,7 @@ typedef struct ZydisInstructionEncodingInfo_
/* Decoder tree */
/* ---------------------------------------------------------------------------------------------- */
-const ZydisDecoderTreeNode zydis_decoder_tree_root;
+extern const ZydisDecoderTreeNode zydis_decoder_tree_root;
/**
* Returns the root... | fix: zydis_decoder_tree_root multiple definition | null | zyantific/zydis | MIT License | C |
@@ -318,7 +318,7 @@ namespace Shoko.Server.API.v3.Models.Shoko
var images = new Images();
AddAniDBPoster(ctx, images, animeID);
AddTvDBImages(ctx, images, animeID, includeDisabled);
- AddMovieDBImages(ctx, images, animeID, includeDisabled);
+ // AddMovieDBImages(ctx, images, animeID, includeDisabled);
return images;
}
| fix: disable tmdb images again | null | shokoanime/shokoserver | MIT License | C# |
@@ -261,7 +261,15 @@ impl<'help> App<'help> {
.any(|ar| ar.id == arg.id)
{
vec.push(&self.subcommands[idx]);
- vec.append(&mut self.subcommands[idx].get_subcommands_containing(arg));
+ // TODO rustc >= 1.46: change .get(dix).unwrap() to [idx]
+ // improved readability
+ vec.append(
+ &mut self
+ .subcommands
+ .get(idx... | fix: compatability with rustc 1.42.0 | null | clap-rs/clap | Apache License 2.0 | Rust |
@@ -615,7 +615,7 @@ impl SeriesStore for MemDB {
bucket_id: u32,
points: &[PointType],
) -> Result<(), StorageError> {
- self.write_points_with_series_ids(bucket_id, &points.to_vec())
+ self.write_points_with_series_ids(bucket_id, points)
}
fn read_i64_range(
| fix: Remove unnecessary allocation | null | influxdata/influxdb_iox | Apache License 2.0 | Rust |
@@ -2,6 +2,7 @@ package devpod
import (
"context"
+ "crypto/tls"
"fmt"
"io"
"net/http"
@@ -315,7 +316,11 @@ func tryOpen(ctx context.Context, url string, log logpkg.Logger) error {
return err
}
- resp, err := http.DefaultClient.Do(req)
+ client := &http.Client{Transport: &http.Transport{
+ TLSClientConfig: &tls.Config{... | fix: allow insecure https for dev.open | null | loft-sh/devspace | Apache License 2.0 | Go |
@@ -888,22 +888,19 @@ TensorPtr ChannelImpl::wait_tensor(TensorInfo* info, TensorProp prop) {
m_waitee_id = Profiler::next_id();
RECORD_EVENT(TensorWaitPropEvent, info->id, m_waitee_id, prop);
bool require_host = prop == TensorProp::HostValue;
- bool value_fetching = false;
- m_cv.wait(lock, [&]() {
- check_worker_exc_... | fix(interpreter): avoid deadlock in GetValue | null | megengine/megengine | Apache License 2.0 | C++ |
@@ -166,6 +166,13 @@ public class NPEFixMojo extends AbstractRepairMojo {
JSONObject jsonObject = result.toJSON(spoon);
jsonObject.put("endInit", initDate.getTime());
+ System.out.println(resultDirectory.getAbsolutePath());
+ System.out.println(jsonObject.getJSONArray("executions"));
+ for(Object ob : jsonObject.getJSO... | fix: output patch on console for NPEFix | null | eclipse/repairnator | MIT License | Java |
@@ -61,6 +61,7 @@ main() {
'permission_overwrites': [
{'allow': "0", 'deny': "122406567679", 'id': '0', 'type': 0}
],
+ 'type': 0,
'name': 'test'
};
expect(builder.build(), expectedResult);
| fix: Fixup build | null | nyxx-discord/nyxx | Apache License 2.0 | Dart |
@@ -22,8 +22,10 @@ class PyScript(Task):
super().__init__(**kwargs)
def execute_action(self, **params):
+
+ # Add dir of self.path to sys.path so importing from that dir works
root = str(Path(self.path).parent)
- sys.path.append(root)
+ sys.path.insert(0, root)
task_func = self.get_task_func()
output = task_func(**para... | fix: Now PyScript works with parameters | null | miksus/rocketry | MIT License | Python |
@@ -86,7 +86,7 @@ def test_scale_success(remote_flow_with_runtime: Flow, pod_params):
for r in ret1:
assert len(r.docs) == 10
# replicas are identified via their docker id
- for id in r.docs[:, 'tags__docker_id']:
+ for id in r.docs[:, 'tags__uid']:
replicas.add(id)
assert len(replicas) == num_replicas * shards
@@ -95,... | fix: fix scalable jinad test | null | jina-ai/jina | Apache License 2.0 | Python |
@@ -22,6 +22,7 @@ import org.camunda.bpm.integrationtest.functional.spin.dataformat.XmlSerializabl
import org.camunda.bpm.integrationtest.functional.spin.dataformat.XmlSerializableJsonSerializer;
import org.camunda.bpm.integrationtest.util.AbstractFoxPlatformIntegrationTest;
import org.camunda.bpm.integrationtest.util.... | fix(test): fix test for jboss/wildfly | null | camunda/camunda-bpm-platform | Apache License 2.0 | Java |
@@ -230,7 +230,7 @@ export class DeploymentManager {
}
};
- private getTableStatus = async (tableName: string, region: string): Promise<boolean> => {
+ private getTableStatus = async (tableName: string): Promise<boolean> => {
assert(tableName, 'table name should be passed');
const response = await this.ddbClient.descri... | fix(amplify-provider-awscloudformation): add slow down on index check | null | aws-amplify/amplify-cli | Apache License 2.0 | TypeScript |
-import { get, Resource } from '../services';
+import { get, Resource, route } from '../services';
import { resolve } from '../utils';
+import { HealthUri } from './HealthUri';
+@route(HealthUri.Health)
export class HealthResource implements Resource {
@get()
ok = (): Promise<string> => resolve('Endpoint is healthy');
| fix(HealthResource): added route to HealthResource.ts | null | thisisagile/easy | MIT License | TypeScript |
@@ -320,6 +320,20 @@ pub enum Error {
partition_key: Arc<str>,
sequencer_id: u32,
},
+
+ #[snafu(
+ display(
+ "Partition checkpoint for partition {}:{} and sequencer {} has non-empty unpersisted range but database checkpoint indicates empty replay range",
+ table_name,
+ partition_key,
+ sequencer_id,
+ )
+ )]
+ Parti... | fix: check empty replay ranges as well during replay plan construction | null | influxdata/influxdb_iox | Apache License 2.0 | Rust |
@@ -289,12 +289,12 @@ ACTOR Future<Void> reconfigureAfter(Database cx, double time) {
if(g_network->isSimulated()) {
TraceEvent(SevWarnAlways, "DisablingFearlessConfiguration");
g_simulator.usableRegions = 1;
- ConfigurationResult::Type _ = wait( changeConfig( cx, "usable_regions=1" ) );
+ ConfigurationResult::Type _ =... | fix: quiet database only needs to use repopulate_anti_quorum instead of reducing usable_regions | null | apple/foundationdb | Apache License 2.0 | C++ |
@@ -32,7 +32,7 @@ config :logflare,
|> filter_nil_kv_pairs.(),
secret_key_base: System.get_env("PHX_SECRET_KEY_BASE"),
check_origin:
- case System.get_env("PHX_CHECK_ORIGIN", "") do
+ case System.get_env("PHX_CHECK_ORIGIN") do
nil ->
nil
| fix: remove default value for check_origin | null | logflare/logflare | Apache License 2.0 | Elixir |
@@ -314,6 +314,13 @@ export class Injector {
libraryMap: undefined,
};
+ const { replaced, libraryMap } = this.addLibraryAddresses(
+ recompiled.deployedBytecode,
+ deployedBytecode
+ );
+ recompiled.deployedBytecode = replaced;
+ match.libraryMap = libraryMap;
+
match = this.checkIfMatch(
match,
(a, b) => a === b,
@@ ... | fix: do library addr replace before checkIfMatch | null | ethereum/sourcify | MIT License | TypeScript |
@@ -75,7 +75,7 @@ public class BundleConverter extends BaseResourceConverter<ResourceDocument, Bun
results.forEach(result -> {
final Resources resources = ResourceRequests.prepareSearch()
- .setLimit(100)
+ .setLimit(getLimit(expand().getOptions(Bundle.Expand.RESOURCES)))
.filterByBundleId(result.getId())
.buildAsync()... | fix: use limit from expand | null | b2ihealthcare/snow-owl | Apache License 2.0 | Java |
@@ -46,6 +46,9 @@ public class CurlRequest {
}
public String getType() {
+ if (type.contains(".")) {
+ return type.substring(type.indexOf(".") + 1);
+ }
return type;
}
| fix: curl method with full method name | null | smart-doc-group/smart-doc | Apache License 2.0 | Java |
@@ -436,7 +436,7 @@ export class GistActionButton extends React.Component<
}
// Add files for any custom editors created by the user.
- for (const mosaic in customMosaics) {
+ for (const mosaic of customMosaics) {
filesList[mosaic] = { content: values[mosaic] };
}
| fix: gistFilesList() for customMosaics | null | electron/fiddle | MIT License | TypeScript |
@@ -366,7 +366,9 @@ export class ProjectDetails extends React.Component<RouteComponentProps<{name: s
private async deleteJWTToken(params: DeleteJWTTokenParams, notifications: NotificationsApi) {
try {
await services.projects.deleteJWTToken(params);
- this.loader.setData(await services.projects.get(this.props.match.para... | fix: From UI create or delete JWTToken, error "'metadata' of undefined" | null | argoproj/argo-cd | Apache License 2.0 | TypeScript |
@@ -19,7 +19,7 @@ const (
)
// NewCommand creates `serve` command.
-func NewCommand(override *[]string, cfgFile *string, silent *bool) *cobra.Command { //nolint:funlen,gocognit
+func NewCommand(override *[]string, cfgFile *string, silent *bool) *cobra.Command { //nolint:funlen
return &cobra.Command{
Use: "serve",
Short... | fix: don't stop stopped container twice | null | spiral/roadrunner | MIT License | Go |
@@ -188,7 +188,7 @@ static int sticky_key_keycode_state_changed_listener(const struct zmk_event_head
if (strcmp(sticky_key->config->behavior.behavior_dev, "KEY_PRESS") == 0 &&
HID_USAGE_ID(sticky_key->param1) == ev->keycode &&
- HID_USAGE_PAGE(sticky_key->param1) == ev->usage_page &&
+ (HID_USAGE_PAGE(sticky_key->param... | fix(sticky keys): add 0xFF mask to usage_page | null | zmkfirmware/zmk | MIT License | C |
@@ -4,6 +4,7 @@ declare(strict_types=1);
namespace Slim\Routing;
+use FastRoute\DataGenerator\GroupCountBased;
use FastRoute\RouteCollector as FastRouteCollector;
use FastRoute\RouteParser\Std;
use Slim\Interfaces\DispatcherInterface;
@@ -50,6 +51,7 @@ class Dispatcher implements DispatcherInterface
if ($cacheFile) {
/... | fix: FastRoute dispatcher and data generator should match | null | slimphp/slim | MIT License | PHP |
@@ -95,7 +95,9 @@ class SharedPref(
fun getFilter(): BooleanArray {
val filterLength = sharedPreferences.getInt(preferenceFilterLength, 0)
if (filterLength == 0) {
- return getDefaultFilter()
+ val defaultFilter = getDefaultFilter()
+ setFilter(defaultFilter)
+ return defaultFilter
}
val returnArray = BooleanArray(filt... | fix(filter): set the filter before returning it | null | chesire/nekome | Apache License 2.0 | Kotlin |
@@ -262,7 +262,7 @@ type gotoEol struct{}
var GotoEol = gotoEol{}
-func (this *Cmd) InterpretContext(ctx_ context.Context, text string) (errorlevel int, err error) {
+func (this *Cmd) InterpretContext(ctx_ context.Context, text string) (errorlevel int, finalerr error) {
if DBG {
print("Interpret('", text, "')\n")
}
@@ ... | fix: `exit` could not shutdown nyagos | null | zetamatta/nyagos | BSD 3-Clause New or Revised License | Go |
@@ -374,6 +374,9 @@ export type Values = { [key: string]: any } | null | undefined
/**
* Encode parameter if not already encoded
+ *
+ * Note: this includes recognition of Date, DelimArray, and default objects for special handling
+ *
* @param value value of parameter
* @returns URI encoded value
*/
| fix: encodeParam doc tweak to republish | null | looker-open-source/sdk-codegen | MIT License | TypeScript |
@@ -445,7 +445,7 @@ mod test {
fn generate_boolean_field() {
let mut bfg = BooleanFieldGenerator::<ZeroRng>::new("bfg", TEST_SEED);
- assert_eq!(false, bfg.generate(1234).bool());
+ assert!(!bfg.generate(1234).bool());
}
#[test]
| fix: Don't assert_eq on a bool | null | influxdata/influxdb_iox | Apache License 2.0 | Rust |
@@ -158,7 +158,9 @@ acceptable_attributes = [
'step', 'style', 'summary', 'suppress', 'tabindex', 'target',
'template', 'title', 'toppadding', 'type', 'unselectable', 'usemap',
'urn', 'valign', 'value', 'variable', 'volume', 'vspace', 'vrml',
- 'width', 'wrap', 'xml:lang', 'data-row'
+ 'width', 'wrap', 'xml:lang', 'dat... | fix(Quill): Add all quill attributes that are required to render it | null | frappe/frappe | MIT License | Python |
@@ -97,7 +97,7 @@ export function updateExpectedPlayoutItemsOnRundown(cache: CacheForRundownPlayli
intermediaryItems.push(
...extractExpectedPlayoutItems(
part,
- actionsGrouped[unprotectString(part._id)].map<AdLibPiece>((action) => {
+ actionsGrouped[unprotectString(part._id)]?.map<AdLibPiece>((action) => {
let source... | fix: Check for undefined | null | nrkno/tv-automation-server-core | MIT License | TypeScript |
@@ -35,7 +35,7 @@ class KitsuLibrary @Inject constructor(
performRetrieveCall(userId, libraryService::retrieveAnimeAsync)
override suspend fun retrieveManga(userId: Int): Resource<List<LibraryEntity>> =
- performRetrieveCall(userId, libraryService::retrieveAnimeAsync)
+ performRetrieveCall(userId, libraryService::retri... | fix: incorrect method invoked in KitsuLibrary | null | chesire/nekome | Apache License 2.0 | Kotlin |
@@ -292,6 +292,7 @@ func (self *SDatastore) FetchFakeTempateVMById(id string, regex string) (*SVirtu
filter["summary.config.uuid"] = uuid
filter["datastore"] = mods.Reference()
filter["summary.runtime.powerState"] = types.VirtualMachinePowerStatePoweredOff
+ filter["config.template"] = false
movms, err := self.datacent... | fix(esxi): prevent fake template and real template from duplication | null | yunionio/yunioncloud | Apache License 2.0 | Go |
@@ -400,7 +400,12 @@ public class UninstrumentedCompatMV extends TaintAdapter {
int offset = 0;
for(int i = args.length - 1; i >= 0; i--) {
offset += args[i].getSize();
- Type onStack = TaintAdapter.getTypeForStackType(analyzer.stack.get(analyzer.stack.size() - offset));
+ Object onStackObj = analyzer.stack.get(analyze... | fix: UninstrumentedCompatMV should account for two-word primitives on the stack that need to be auto-boxed into their java.lang.Long/Double wrappers | null | gmu-swe/phosphor | MIT License | Java |
@@ -623,16 +623,17 @@ fn controlled_keyed_diffing_out_of_order() {
assert_eq!(
changes.edits,
[
+ Remove { root: 4 },
// move 4 to after 6
PushRoot { root: 1 },
InsertAfter { n: 1, root: 3 },
// remove 7
// create 9 and insert before 6
- CreateElement { root: 5, tag: "div" },
+ CreateElement { root: 4, tag: "div" },
In... | fix: tests should reflect removes | null | dioxuslabs/dioxus | Apache License 2.0 | Rust |
@@ -542,7 +542,7 @@ def get_form_data(doctype, docname=None, web_form_name=None):
# For Table fields, server-side processing for meta
for field in out.web_form.web_form_fields:
if field.fieldtype == "Table":
- field.fields = get_in_list_view_fields(field.options)
+ field.fields = frappe.get_meta(field.options).fields
o... | fix: web form child table issue | null | frappe/frappe | MIT License | Python |
@@ -459,8 +459,9 @@ export function replaceStoryItem (runningOrder: RunningOrder, segmentLineItem: S
return new Promise((resolve, reject) => {
const story = slCache.data.Body.filter(item => item.Type === 'storyItem' && item.Content.ID === segmentLineItem.mosId)[0].Content
const timeBase = story.TimeBase || 1
- story.Ed... | fix: write back TimeBase when changing EditorialStart/Duration | null | nrkno/tv-automation-server-core | MIT License | TypeScript |
#include <stdio.h>
#include <stdlib.h>
-#include <stdint.h>
+#include <inttypes.h>
#include <string.h>
#include <math.h> //for round()
#include <time.h>
@@ -169,7 +169,7 @@ orka_strtoull(char *str, size_t len, void *p_data)
int
orka_ulltostr(char *str, size_t len, void *p_data) {
- return snprintf(str, len, "%llu", *(u... | fix: change llu specifier to PRIu64 | null | cee-studio/orca | MIT License | C |
@@ -61,6 +61,11 @@ export class LinuxTargetHelper {
sources.push(icnsPath)
}
+ // if no explicit sources are defined, default to buildResources directory
+ if (sources.length < 1) {
+ sources.push('./')
+ }
+
// need to put here and not as default because need to resolve image size
const result = await packager.resolve... | fix(linux): Linux icon is not set if path is not explicitly defined in config | null | electron-userland/electron-builder | MIT License | TypeScript |
@@ -43,12 +43,10 @@ public class GUIConsole : MonoBehaviour
bool visible;
Vector2 scroll = Vector2.zero;
-#if !UNITY_EDITOR
void Awake()
{
Application.logMessageReceived += OnLog;
}
-#endif
// OnLog logs everything, even Debug.Log messages in release builds
// => this makes a lot of things easier. e.g. addon initializa... | fix: GUIConsole now shows logs in editor too. instead of only showing the empty console | null | vis2k/mirror | MIT License | C# |
@@ -76,7 +76,7 @@ func CreateLogin(config Config, authRepo *eventsourcing.EsRepository, localDevMo
login.router = CreateRouter(login, statikFS, csrf, cache, security, userAgentCookie)
login.renderer = CreateRenderer(prefix, statikFS, config.LanguageCookieName, config.DefaultLanguage)
login.parser = form.NewParser()
- r... | fix: login prefix for handler | null | caos/zitadel | Apache License 2.0 | Go |
@@ -238,7 +238,7 @@ class _PkgTarArchive extends TarArchive {
final builder = BytesBuilder();
await for (final chunk in reader.current.contents) {
builder.add(chunk);
- if (builder.length >= maxLength) break;
+ if (maxLength > 0 && builder.length >= maxLength) break;
}
String content = utf8.decode(builder.toBytes(), al... | fix: content maxLength in package:tar-based scanner | null | dart-lang/pub-dev | BSD 3-Clause New or Revised License | Dart |
@@ -247,9 +247,10 @@ impl QueryContextShared {
Some(query_runtime) => Ok(query_runtime.clone()),
None => {
let settings = self.get_settings();
+ // To avoid possible deadlock, we should keep at least two threads.
let max_threads = settings.get_max_threads()? as usize;
let runtime = Arc::new(Runtime::with_worker_threads... | fix(processor): fix sqllogic test server hang | null | datafuselabs/databend | Apache License 2.0 | Rust |
@@ -242,6 +242,7 @@ impl<'a> DFGBuilder {
// Break inmediatly
return None;
}
+ range.start += 1; // Do not include the last jmp
break;
}
_ => {
| fix: Exclude last jmp from BB gathering | null | bytecodealliance/wasm-tools | Apache License 2.0 | Rust |
@@ -333,15 +333,10 @@ func (b *Block) PutBlock(ctx context.Context, nodeAdder format.NodeAdder) error
// compute the root in order to collect the ipld.Nodes
tree.Root()
-
- // commit the batch to ipfs
- err = batchAdder.Batch().Commit()
- if err != nil {
- return err
- }
}
- return nil
+ // commit the batch to ipfs
+ r... | fix(types): commit batch only after all leaves are added | null | lazyledger/lazyledger-core | Apache License 2.0 | Go |
using System;
using System.ComponentModel;
+using System.Diagnostics.CodeAnalysis;
using AsmResolver.DotNet.Signatures.Types;
namespace AsmResolver.DotNet.Signatures
@@ -57,8 +58,12 @@ namespace AsmResolver.DotNet.Signatures
/// <summary>
/// Resolves a type parameter to a type argument, based on the current generic co... | fix: GenericContext | null | washi1337/asmresolver | MIT License | C# |
@@ -208,14 +208,16 @@ TEST_CASE("/fdbserver/Coordination/localGenerationReg/simple") {
return Void();
}
-ACTOR Future<Void> openDatabase(ClientData* db, Reference<AsyncVar<bool>> hasConnectedClients, OpenDatabaseCoordRequest req) {
+ACTOR Future<Void> openDatabase(ClientData* db, int* clientCount, Reference<AsyncVar<bo... | fix: The coordinators did not properly track hasConnectedClients | null | apple/foundationdb | Apache License 2.0 | C++ |
#!/bin/sh
-sed -i -e "s/DATAHUB_DB_NAME/${DATAHUB_DB_NAME}/g" /init.sql
-mysql -u $MYSQL_USERNAME -p"$MYSQL_PASSWORD" -h $MYSQL_HOST < /init.sql
\ No newline at end of file
+sed -e "s/DATAHUB_DB_NAME/${DATAHUB_DB_NAME}/g" /init.sql | tee -a /tmp/init-final.sql
+mysql -u $MYSQL_USERNAME -p"$MYSQL_PASSWORD" -h $MYSQL_HOS... | fix: Fix env variable setup for kafka, mysql-setup docker containers | null | linkedin/datahub | Apache License 2.0 | Shell |
@@ -918,7 +918,7 @@ impl ComposeTest {
"IPC_LOCK".into(),
"SYS_NICE".into(),
]),
- security_opt: Some(vec!["seccomp:unconfined".into()]),
+ security_opt: Some(vec!["seccomp=unconfined".into()]),
init: spec.init,
port_bindings: spec.port_map.clone(),
..Default::default()
| fix(composer): update separator for security options | null | openebs/mayastor | Apache License 2.0 | Rust |
@@ -3,9 +3,13 @@ package me.melijn.melijnbot.commands.moderation
import me.melijn.melijnbot.database.ban.Ban
import me.melijn.melijnbot.enums.LogChannelType
+import me.melijn.melijnbot.enums.SpecialPermission
import me.melijn.melijnbot.internals.command.AbstractCommand
import me.melijn.melijnbot.internals.command.Comma... | fix: better response, canInteract checks | null | toxicmushroom/melijn | MIT License | Kotlin |
@@ -390,10 +390,9 @@ class SpeakerDiarization(SpeakerDiarizationMixin, Pipeline):
)
chunks = segmentations.sliding_window
- support = Segment(chunks[0].start, chunks[num_chunks - 1].end)
-
reference = file["annotation"].discretize(
- support=support, resolution=self._frames,
+ support=Segment(chunks[0].start, chunks[nu... | fix: increase support to avoid rounding errors | null | pyannote/pyannote-audio | MIT License | Python |
@@ -113,7 +113,7 @@ function add_eip() {
# gw may lost, even if add_vpc_external_route add route successfully
exec_cmd "ip route replace default via $gateway dev net1"
ip route | grep "default via $gateway dev net1"
- exec_cmd "arping -c 3 -s $eip_without_prefix $gateway"
+ exec_cmd "arping -I net1 -c 3 -D $eip_without... | fix: failed to add eip | null | kubeovn/kube-ovn | Apache License 2.0 | Shell |
@@ -8,6 +8,7 @@ from .pea import BasePea
from .. import __ready_msg__
from ..helper import is_valid_local_config_source, kwargs2list, get_non_defaults_args
from ..logging import get_logger
+from ..logging.queue import clear_queues
class ContainerPea(BasePea):
@@ -103,3 +104,9 @@ class ContainerPea(BasePea):
'the contai... | fix: adapt close to ContainerPea | null | jina-ai/jina | Apache License 2.0 | Python |
@@ -85,11 +85,13 @@ namespace modules {
m_consumption_reader = make_unique<consumption_reader>([this,&path_battery] {
float consumption;
+ // if the rate we found was the current, calculate power (P = I*V)
if (m_frate == path_battery + "current_now") {
unsigned long current{std::strtoul(file_util::contents(m_frate).c_s... | fix(power): add comments to explain current/power_now | null | polybar/polybar | MIT License | C++ |
@@ -70,7 +70,11 @@ export const VImg = defineComponent({
...makeTransitionProps(),
},
- emits: ['loadstart', 'load', 'error'],
+ emits: {
+ loadstart: (event: string | undefined) => true,
+ load: (event: string | undefined) => true,
+ error: (event: string | undefined) => true,
+ },
setup (props, { emit, slots }) {
con... | fix(VImg): missing emit typings | null | vuetifyjs/vuetify | MIT License | TypeScript |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.