diff
stringlengths
12
9.3k
message
stringlengths
8
199
reasoning_trace
null
repo
stringlengths
6
68
license
stringclasses
3 values
language
stringclasses
16 values
@@ -104,7 +104,7 @@ def get_user_energy_and_review_points(user=None): @frappe.whitelist() def review(doc, points, to_user, reason, review_type='Appreciation'): current_review_points = get_energy_points(frappe.session.user).review_points - doc = frappe._dict(json.loads(doc)) + doc = doc.as_dict() if hasattr(doc, 'as_dic...
fix: Use as_dict of doc if exist
null
frappe/frappe
MIT License
Python
@@ -726,7 +726,7 @@ namespace NiL.JS.Core if (value is ConstructorProxy && typeof(Type).IsAssignableFrom(targetType)) return (value as ConstructorProxy)._staticProxy._hostedType; - if (targetType == typeof(object[]) && value is ArrayBuffer) + if ((targetType == typeof(object[]) || targetType == typeof(byte[])) && value...
fix: short circute for byte array and aaraybuffer
null
nilproject/nil.js
BSD 3-Clause New or Revised License
C#
@@ -25,21 +25,12 @@ class HubManager public function initialize() { $this->cachePrefix = 'hub_'; - $this->cacheTtl = now()->addDay(); + $this->cacheTtl = now()->addHours(3); } public function listItems($filter = []) { - $cacheKey = $this->getCacheKey('items', $filter); - - if (!$items = Cache::get($cacheKey)) { - $item...
fix: remove caching of marketplace items and cache updates for 3 hours instead
null
tastyigniter/tastyigniter
MIT License
PHP
import React from 'react'; import PropTypes from 'prop-types'; -import List from '@carbon/icons-react/lib/list/32'; -import Grid from '@carbon/icons-react/lib/grid/32'; import { ContentSwitcher, Switch } from '../../index';
fix(ViewSwitcher): remove icons not being used now
null
carbon-design-system/carbon-addons-iot-react
Apache License 2.0
JavaScript
@@ -94,7 +94,7 @@ public class AuthorizationRestServiceImpl extends AbstractAuthorizedRestResource if(userId != null && !userId.equals(currentUserId)) { boolean isCurrentUserAuthorized = authorizationService.isUserAuthorized(currentUserId, currentAuthentication.getGroupIds(), Permissions.READ, Resources.AUTHORIZATION);...
fix(rest): fix current user authorization check in check endpoint
null
camunda/camunda-bpm-platform
Apache License 2.0
Java
@@ -327,6 +327,7 @@ namespace PepperDash.Essentials.Devices.Common.VideoCodec.Cisco public SpeakerTrack() { Status = new Status2(); + Availability = new Availability(); } }
fix: Instantiate Availability class when
null
pepperdash/essentials
MIT License
C#
@@ -90,7 +90,7 @@ std::string waybar::ALabel::getIcon(uint16_t percentage, const std::string& alt) { auto format_icons = config_["format-icons"]; if (format_icons.isObject()) { - if (!alt.empty() && format_icons[alt].isArray()) { + if (!alt.empty() && (format_icons[alt].isString() || format_icons[alt].isArray())) { for...
fix(ALabel): Better fix for getIcon
null
alexays/waybar
MIT License
C++
@@ -151,7 +151,6 @@ public class HibernateTrackedEntityAttributeStore } Query<String> query = getTypedQuery( hql ); - query.setMaxResults( 1 ); Iterator<String> it = query.iterate();
fix: Remove limit in the query for checking unique attribute values
null
dhis2/dhis2-core
BSD 3-Clause New or Revised License
Java
@@ -112,53 +112,55 @@ func (p *antreaOctantPlugin) actionHandler(request *service.ActionRequest) error switch actionName { case addTfAction: + // TODO Octant v0.13.1 does not support alerts, sending alerts is supported with Octant no earlier than v0.16.0. + // TODO After upgrading Octant, send alerts when one of the sa...
fix: temporarily ignore sanity checks when creating traceflow via UI
null
vmware-tanzu/antrea
Apache License 2.0
Go
@@ -44,7 +44,7 @@ namespace Discord IconUrl = embed.Author?.IconUrl, Url = embed.Author?.Url }, - Color = embed.Color ?? Color.Default, + Color = embed.Color, Description = embed.Description, Footer = new EmbedFooterBuilder {
fix: Remove null coalescing on ToEmbedBuilder Color
null
discord-net/discord.net
MIT License
C#
@@ -7,9 +7,14 @@ mkdir -p tmp/angular mkdir -p tmp/nx if [ -n "$1" ]; then - jest --maxWorkers=1 ./build/e2e/$1.test.js + TEST_FILE="./build/e2e/$1.test.js" + COMMAND_FILE="./build/e2e/commands/$1.test.js" + + if [ -f "$TEST_FILE" ]; then + jest --maxWorkers=1 $TEST_FILE + else + jest --maxWorkers=1 $COMMAND_FILE + fi ...
fix(repo): fix `yarn e2e create-playground`
null
nrwl/nx
MIT License
Shell
@@ -185,7 +185,7 @@ where max.map(|b| b.to_raw_bound()), order, ) - .flat_map(move |kv| (de_fn)(store, &pk_name, kv).map(|(k, _)| Ok(k))); + .map(move |kv| (de_fn)(store, &pk_name, kv).map(|(k, _)| k)); Box::new(mapped) } }
fix: Prefix::keys doesn't eat errors anymore
null
cosmwasm/cw-plus
Apache License 2.0
Rust
@@ -63,6 +63,8 @@ static uint8_t active_profile; #define DEVICE_NAME CONFIG_BT_DEVICE_NAME #define DEVICE_NAME_LEN (sizeof(DEVICE_NAME) - 1) +BUILD_ASSERT(DEVICE_NAME_LEN <= 16, "ERROR: BLE device name is too long. Max length: 16"); + #define IS_HOST_PERIPHERAL \ (!IS_ENABLED(CONFIG_ZMK_SPLIT) || IS_ENABLED(CONFIG_ZMK_...
fix(core): Assert BLE device name is correct length
null
zmkfirmware/zmk
MIT License
C
@@ -24,6 +24,11 @@ JSObjectRef JSObjectElement::instanceConstructor(JSContextRef ctx, JSObjectRef c JSObjectElement::ObjectElementInstance::ObjectElementInstance(JSObjectElement *jsAnchorElement) : ElementInstance(jsAnchorElement, "object", false), nativeObjectElement(new NativeObjectElement(nativeElement)) { + std::st...
fix: fix object element and works
null
openkraken/kraken
Apache License 2.0
C++
@@ -8,7 +8,7 @@ set -e [ -x "$(command -v kind)" ] && [[ "$(kubectl config current-context)" =~ ^kind-? ]] && KIND=1 NO_MINIKUBE=1 if [ -z "$NO_MINIKUBE" ]; then - pgrep -f "[m]inikube" >/dev/null || minikube start --kubernetes-version="v1.16.4" --extra-config=apiserver.v=4 || { echo 'Cannot start minikube.'; exit 1; }...
fix: remove hardcoded minikube version from build_local.sh to support minikube users locally
null
operator-framework/operator-lifecycle-manager
Apache License 2.0
Shell
@@ -94,6 +94,24 @@ class Test < ChartTest assert_equal('ix-storage-class-common-test', pvc["spec"]["storageClassName"]) end + it 'can override storageClass when isSCALE' do + values = { + global: { + isSCALE: true + }, + persistence: { + config: { + enabled: true, + storageClass: "test" + } + } + } + chart.value values...
fix(tests): adapt tests to prevent future issues with mistakes in the storageClassName generator
null
truecharts/apps
BSD 3-Clause New or Revised License
Ruby
@@ -21,7 +21,7 @@ void test_ast() { printf("Testing AST functions...\n"); printf("Parsing to AST\n"); - struct flux_ast_pkg_t *ast_pkg_foo = flux_parse("package foo\nx = 1 + 1"); + struct flux_ast_pkg_t *ast_pkg_foo = flux_parse("test", "package foo\nx = 1 + 1"); assert(ast_pkg_foo != NULL); printf("Marshaling to JSON\...
fix: fix valgrind test code
null
influxdata/flux
MIT License
C
@@ -69,7 +69,7 @@ void V8LogAgentImpl::EntryAdded(const std::string& text, std::string verbosityLe auto nano = std::chrono::time_point_cast<std::chrono::milliseconds>(std::chrono::system_clock::now()); double timestamp = nano.time_since_epoch().count(); - auto textString16 = String16(tns::Util::ConvertFromUtf8ToProtoco...
fix(new console): print messages in utf-8 encoding
null
nativescript/android-runtime
Apache License 2.0
C++
@@ -18,8 +18,8 @@ public static int LargestAbsoluteComponentIndex(Vector4 value, out float largest // convert to abs Vector4 abs = new Vector4(Mathf.Abs(value.x), Mathf.Abs(value.y), Mathf.Abs(value.z), Mathf.Abs(value.w)); - // set largest to first value (x) - largest = value.x; + // set largest to first abs (x) + lar...
fix: - Quaternion Compression LargestAbsoluteComponentIndex largest absolute was accidentally initialized with largest, instead of largest absolute
null
vis2k/mirror
MIT License
C#
@@ -87,7 +87,7 @@ def generate_ingress(containers, outputdir): global DEFAULT_DOMAIN_NAME print("Generating uni-resolver-ingress.yaml") fout = open(outputdir + '/uni-resolver-ingress.yaml', "wt") - fout.write('apiVersion: extensions/v1beta1\n') + fout.write('apiVersion: networking.k8s.io/v1\n') fout.write('kind: Ingres...
fix: update apiVersion
null
decentralized-identity/universal-resolver
Apache License 2.0
Python
@@ -293,7 +293,7 @@ void Fwd::exec(_megdnn_tensor_in data, _megdnn_tensor_in rois, float trans_std = param.trans_std, scale = param.spatial_scale; size_t nr_bbox = rois.layout[0]; - size_t nr_cls = no_trans ? 1 : trans.layout[0]; + size_t nr_cls = no_trans ? 1 : trans.layout[1] / 2; size_t IC = data.layout[1], IH = dat...
fix(dnn/native): also fix native logic
null
megengine/megengine
Apache License 2.0
C++
@@ -24,6 +24,7 @@ cd .. git clone -b branch-20.03 --depth=1 https://github.com/ovn-org/ovn.git cd ovn curl https://github.com/alauda/ovn/commit/19e802b80c866089af8f7a21512f68decc75a874.patch | git apply +curl https://github.com/oilbeater/ovn/commit/7e49a662d9a9d23d673958564048eee71dc941f0.patch | git apply curl https:/...
fix: patch ovn to lower src-ip route priority to work with ovn-ic
null
kubeovn/kube-ovn
Apache License 2.0
Shell
@@ -42,6 +42,7 @@ func processNodeJobRunRequirements(db gorp.SqlExecutor, j sdk.Job, run *sdk.Work errm.Append(sdk.ErrInvalidJobRequirementDuplicateModel) break } + value = strings.Split(value, " ")[0] model = value }
fix(api): handle complexe worker model name
null
ovh/cds
BSD 3-Clause New or Revised License
Go
@@ -56,7 +56,7 @@ class Create extends React.Component { image: "", cid: "", error: "", - ipfsUploadError: null, + imageError: null, isSaving: false, tip001: true, tip002: false, @@ -92,9 +92,9 @@ class Create extends React.Component { try { // only use the first file if multiple are dropped let cid = await this.addFil...
fix: improved image handling in collectibles
null
tari-project/tari
BSD 3-Clause New or Revised License
JavaScript
@@ -116,7 +116,7 @@ class ExtractThumbnail(pype.api.Extractor): write_node["raw"].setValue(1) write_node.setInput(0, previous_node) temporary_nodes.append(write_node) - tags = ["thumbnail"] + tags = ["thumbnail", "publish_on_farm"] # retime for first_frame = int(last_frame) / 2
fix(nuke): thumbnail to publish on farm
null
pypeclub/openpype
MIT License
Python
@@ -258,7 +258,7 @@ class ReviewListView(ListView): opinions_template = get_template('review/includes/review_opinions_list.html') opinions_html = opinions_template.render({'opinions': review.opinions.select_related('author').all()}) review_data['opinions']['answers'].append(opinions_html) - review_data['score']['answer...
fix: TypeError: 'str' object is not callable
null
hyphaapp/hypha
BSD 3-Clause New or Revised License
Python
@@ -43,15 +43,13 @@ abstract class KrakenBundle { static Future<KrakenBundle> getBundle(String path, {String contentOverride}) async { KrakenBundle bundle; + Uri uri = Uri.parse(path); if (contentOverride != null && contentOverride.isNotEmpty) { - bundle = RawBundle(contentOverride, null); + bundle = RawBundle(contentO...
fix: fix bundle path when running with bundleContent params
null
openkraken/kraken
Apache License 2.0
Dart
@@ -36,7 +36,7 @@ defmodule Ash.Schema do field(:__metadata__, :map, virtual: true, default: %{}, redact: true) for aggregate <- Ash.Resource.Info.aggregates(__MODULE__) do - {:ok, type} = Aggregate.kind_to_type(aggregate.kind, :string) + {:ok, type} = Aggregate.kind_to_type(aggregate.kind, Ash.Type.String) Ash.Schema....
fix: don't call `type()` on `:string`
null
ash-project/ash
MIT License
Elixir
@@ -106,8 +106,7 @@ func getLatestValue(listCall *monitoring.ProjectsTimeSeriesListCall, filter stri return 0, err } - ps := res.TimeSeries[0].Points - valuePtr := ps[len(ps)-1].Value + valuePtr := res.TimeSeries[0].Points[0].Value var value float64 if valuePtr.Int64Value != nil {
fix: get latest value
null
mackerelio/mackerel-agent-plugins
Apache License 2.0
Go
@@ -676,11 +676,11 @@ func run(cmd *cobra.Command, _ []string) { isSTS = isSTS || awsCreator.IsSTS r.Reporter.Warnf("In a future release STS will be the default mode.") - if cmd.Flags().Changed("sts") && r.Reporter.IsTerminal() { + if (isSTS || cmd.Flags().Changed("sts")) && r.Reporter.IsTerminal() { r.Reporter.Warnf("...
fix: message non sts
null
openshift/rosa
Apache License 2.0
Go
@@ -26,6 +26,10 @@ namespace Unity.Netcode #endif try { + // NetworkObject references can become null, when hidden or despawned. Once NUll, there is no point + // trying to process them, even if they were previously marked as dirty. + m_DirtyNetworkObjects.RemoveWhere((sobj) => sobj == null); + if (networkManager.IsSer...
fix: Removing objects that got deleted from list of Dirty NetworkObjects
null
unity-technologies/com.unity.multiplayer.mlapi
MIT License
C#
@@ -1388,14 +1388,12 @@ ACTOR Future<Void> forceRecovery (Reference<ClusterConnectionFile> clusterFile) state Reference<AsyncVar<Optional<ClusterInterface>>> clusterInterface(new AsyncVar<Optional<ClusterInterface>>); state Future<Void> leaderMon = monitorLeader<ClusterInterface>(clusterFile, clusterInterface); - loop{...
fix: forced recovery is not safe to send multiple times
null
apple/foundationdb
Apache License 2.0
C++
@@ -101,6 +101,21 @@ class EditableTextField extends EditableFormField return parent::getCMSFields(); } + /** + * @return ValidationResult + */ + public function validate() + { + $result = parent::validate(); + + if ($this->MinLength > $this->MaxLength) { + $result->addError("Minimum length should be less than the Maxi...
fix: Fixes added validation for minimum and maximum length
null
silverstripe/silverstripe-userforms
BSD 3-Clause New or Revised License
PHP
@@ -12,9 +12,7 @@ fn test_memory_leak() { fn app(cx: Scope) -> Element { let val = cx.generation(); - cx.spawn(async { - tokio::time::sleep(std::time::Duration::from_millis(100000)).await; - }); + cx.spawn(async {}); if val == 2 || val == 4 { return cx.render(rsx!(()));
fix: spawn task
null
dioxuslabs/dioxus
Apache License 2.0
Rust
@@ -43,6 +43,7 @@ import android.support.v7.widget.LinearLayoutManager; import android.support.v7.widget.RecyclerView; import android.support.v7.widget.SearchView; import android.text.Editable; +import android.text.Html; import android.text.InputType; import android.text.TextUtils; import android.text.TextWatcher; @@ -...
fix: Add filter for html escape sequences
null
fossasia/susi_android
Apache License 2.0
Java
@@ -182,7 +182,7 @@ export class Server * event subscribers. */ await this.watcher.watch() - this.watcher.instance.on('change', path => { + this.watcher.instance?.on('change', path => { this.middleware?.hot?.publish({ action: 'reload', message: `Detected file change: ${path}. Reloading window.`,
fix(server): type error: watcher undefined
null
roots/bud
MIT License
TypeScript
@@ -278,7 +278,7 @@ func TestValidateStore(t *testing.T) { err: fmt.Errorf("fingerprint.name cannot be empty"), }, { - store: makeSecretStore(vaultOCID, region, withSecretAuth(userOCID, tenant), withPrivateKey(secretName, secretKey, nil), withFingerprint(secretName, secretKey, nil)), + store: makeSecretStore(vaultOCID,...
fix: fixed failing unit test
null
external-secrets/external-secrets
Apache License 2.0
Go
@@ -1122,7 +1122,7 @@ namespace acl const bool is_scale_variable = segment_context_has_scale(segment) && is_vector_format_variable(scale_format); const uint32_t num_bones = segment.num_bones; - for (uint32_t bone_index = 0; bone_index < segment.num_bones; ++bone_index) + for (uint32_t bone_index = 0; bone_index < num_b...
fix(compression): use local variable
null
nfrechette/acl
MIT License
C
@@ -131,7 +131,6 @@ func Install(p *platform.Platform) error { if p.Thanos.Mode != ThanosClientMode && p.Thanos.Mode != ThanosObservabilityMode { return fmt.Errorf("invalid thanos mode '%s', valid options are 'client' or 'observability'", p.Thanos.Mode) } - p.Warnf("if not already done, update thanos karina spec to inc...
fix: removes warning for thanos.autoCreateBucket
null
flanksource/karina
Apache License 2.0
Go
@@ -8,6 +8,7 @@ import ( "io/ioutil" "os" "os/exec" + "reflect" "syscall" "github.com/ghodss/yaml" @@ -24,9 +25,8 @@ import ( "k8s.io/client-go/tools/clientcmd" "github.com/argoproj/argo-cd/common" - "github.com/argoproj/argo-cd/util" - "github.com/argoproj/argo-cd/errors" + "github.com/argoproj/argo-cd/util" "github.c...
fix: update argocd-util import was not working properly
null
argoproj/argo-cd
Apache License 2.0
Go
@@ -29,7 +29,7 @@ const previous = app => { let next = false for (const node of aside.reverse()) { if (next) return node - if (node.__slug === app.slug) next = true + if (node?.__slug && node.__slug === app.slug) next = true } } @@ -39,7 +39,7 @@ const previous = app => { let next = false for (const node of up.reverse(...
fix(shared): More PrevNext more robust
null
freesewing/freesewing
MIT License
JavaScript
@@ -565,13 +565,13 @@ func (o *PreviewOptions) Run() error { } } if url != "" { - // Wait for a 200 to make sure that the DNS has propagated + // Wait for a 200 or 401 to make sure that the DNS has propagated f := func() error { resp, err := http.Get(url) if err != nil { return errors.Errorf("preview application %s not...
fix: updated logic to correct scenario when status code is not successful
null
jenkins-x/jx
Apache License 2.0
Go
# See the License for the specific language governing permissions and # limitations under the License. -{ +success() { + echo "=========================================" + echo "The Google Cloud setup is completed." + echo "Please proceed with the Tutorial steps" + echo "=========================================" + exi...
fix: remove user setup environment error
null
googlecloudplatform/python-docs-samples
Apache License 2.0
Shell
@@ -164,11 +164,13 @@ class IsarHelper { } Future<List<GalleryImageTask>> findImageTaskAllByGid(int gid) async { - return await isar.galleryImageTasks.where().findAll(); + return await isar.galleryImageTasks.where().gidEqualTo(gid).findAll(); } - Future<void> putImageTask(GalleryImageTask imageTask, - {bool replaceOnCo...
fix: isar find or delete all image task
null
honjow/fehviewer
Apache License 2.0
Dart
@@ -215,7 +215,8 @@ public boolean matches(RawPacket pkt) } int seqNum = pkt.getSequenceNumber(); - return seqNum >= minSeen && seqNum <= maxSeen; + return RTPUtils.sequenceNumberDiff(seqNum, minSeen) >= 0 + && RTPUtils.sequenceNumberDiff(seqNum, maxSeen) <= 0; }
fix: Takes wrapping into account
null
jitsi/libjitsi
Apache License 2.0
Java
@@ -264,9 +264,8 @@ func (router *Router) ServeHTTP(rw http.ResponseWriter, httpRequest *http.Reques chain := &FilterChain{ Filters: make([]Filter, 0, len(router.filters)+1), } - copy(chain.Filters, router.filters) - chain.Filters = append(chain.Filters, lastFilter(func(ctx context.Context, r *Request, rw http.Response...
fix: coping router filters to chain filter doesn't work
null
i-love-flamingo/flamingo
MIT License
Go
@@ -343,9 +343,10 @@ bool bsg_ksmachsuspendAllThreadsExcept(thread_t *exceptThreads, if (thread != thisThread && !isThreadInList(thread, exceptThreads, exceptThreadsCount)) { if ((kr = thread_suspend(thread)) != KERN_SUCCESS) { - BSG_KSLOG_ERROR("thread_suspend (%08x): %s", thread, - mach_error_string(kr)); + // The th...
fix: Reduce severity of thread suspend/resume failure log
null
bugsnag/bugsnag-cocoa
MIT License
C
@@ -1034,22 +1034,9 @@ class RTCUtils extends Listenable { new Error('Desktop sharing is not supported!')); } - const { - desktopSharingExtensionExternalInstallation, - desktopSharingFrameRate, - desktopSharingSources - } = options; - return new Promise((resolve, reject) => { screenObtainer.obtainStream( - { - ...deskt...
fix(screenshare): do not limit resolution for fake screenshare
null
jitsi/lib-jitsi-meet
Apache License 2.0
JavaScript
@@ -358,7 +358,11 @@ func jsonMergePatch(base cue.Value, patch cue.Value) (string, error) { if err != nil { return "", errors.Wrapf(err, "failed to merge base value and patch value by JsonMergePatch") } - return string(merged), nil + output, err := OpenBaiscLit(string(merged)) + if err != nil { + return "", errors.Wrap...
fix: json-patch & json-merge-patch open result
null
oam-dev/kubevela
Apache License 2.0
Go
@@ -29,7 +29,7 @@ import ( "github.com/cosmos/cosmos-sdk/snapshots" snapshottypes "github.com/cosmos/cosmos-sdk/snapshots/types" "github.com/cosmos/cosmos-sdk/store" - simutil "github.com/cosmos/cosmos-sdk/testutil/sims" + simtestutil "github.com/cosmos/cosmos-sdk/testutil/sims" sdk "github.com/cosmos/cosmos-sdk/types"...
fix: stop creating empty `data` dir
null
cosmos/cosmos-sdk
Apache License 2.0
Go
+defmodule Realtime.RLS.Repo.Migrations.UpdateRealtimeSubscriptionCheckFiltersFunctionSecurity do + use Ecto.Migration + + def change do + execute "create or replace function realtime.subscription_check_filters() + returns trigger + language plpgsql + as $$ + /* + Validates that the user defined filters for a subscript...
fix: update subscription_check_filters function for better security
null
supabase/realtime
Apache License 2.0
Elixir
@@ -24,7 +24,7 @@ limitations under the License. */ #include <unordered_map> inline bool is_aligned(void const *p, const size_t n) { - return 0 == (reinterpret_cast<uintptr_t>(p) % n); + return 0 == (reinterpret_cast<uintptr_t>(p) & 0x3); } size_t align(size_t size, paddle::platform::CPUPlace place) { @@ -34,8 +34,6 @@...
fix: alignment metric
null
paddlepaddle/paddle
Apache License 2.0
C++
@@ -521,10 +521,8 @@ namespace Files.Uwp.ViewModels // get the item that immediately follows matching item to be removed // if the matching item is the last item, try to get the previous item; otherwise, null // case must be ignored since $Recycle.Bin != $RECYCLE.BIN - var nextOfMatchingItem = filesAndFolders - .SkipWh...
fix: file list randomly scrolling to top
null
files-community/files
MIT License
C#
@@ -391,8 +391,9 @@ public HeaderExtension addExtension(byte id, int len) extensionBytes++; // This is where the data of the extension that we add begins. We just - // skip 'len' bytes, and let the caller fill them in. - int extensionDataOffset = newHeaderLength; + // skip 'len' bytes, and let the caller fill them in. ...
fix: Fixes an off-by-one bug
null
jitsi/libjitsi
Apache License 2.0
Java
@@ -1090,6 +1090,9 @@ def layer_norm( eps_mode ) + if amp._enabled: + inp, weight, bias = cast_tensors(inp, weight, bias, promote=True) + _device = inp.device _dtype = inp.dtype _dim = len(inp.shape) - len(normalized_shape)
fix(mge): fix layer norm amp bug
null
megengine/megengine
Apache License 2.0
Python
@@ -27,6 +27,7 @@ import numpy as np import six from six.moves import zip # pylint: disable=redefined-builtin +from six.moves import xrange # pylint: disable=redefined-builtin from tensor2tensor.data_generators import problem_hparams from tensor2tensor.data_generators.problem import preprocess_examples_common
fix: missing xrange import
null
tensorflow/tensor2tensor
Apache License 2.0
Python
@@ -107,7 +107,7 @@ public class Python extends Bash implements RunnableTask<Bash.Output> { String args = getArgs() == null ? "" : " " + runContext.render(String.join(" ", getArgs()), additionalVars); renderer.addAll(Arrays.asList( - pythonPath + " -m virtualenv " + workingDirectory + " > /dev/null", + pythonPath + " -...
fix(tasks): force python venv interpreter
null
kestra-io/kestra
Apache License 2.0
Java
@@ -35,7 +35,7 @@ func (p *Parser) ValidateCUESchematicAppfile(a *Appfile) error { } pCtx, err := newValidationProcessContext(wl, a.Name, a.AppRevisionName, a.Namespace) if err != nil { - return errors.WithMessage(err, "cannot create validationg process context") + return errors.WithMessagef(err, "cannot create the val...
fix: add context parameters into the error message
null
oam-dev/kubevela
Apache License 2.0
Go
@@ -625,6 +625,8 @@ namespace PepperDash.Essentials /// Single point call for setting the feedbacks on the activity buttons /// </summary> void SetActivityFooterFeedbacks() + { + if (CurrentRoom != null) { var startMode = CurrentMode == UiDisplayMode.Start; var presentationMode = CurrentMode == UiDisplayMode.Presentati...
fix(Essentials): moves code inside null check for CurrentRoom
null
pepperdash/essentials
MIT License
C#
@@ -21,20 +21,6 @@ const PLUGIN = 'LegacyBrowserWebpackPlugin'; const asArrayLiteral = arr => `[${arr.map(e => `'${e}'`).join(',')}]`; -// URL is required by webcomponents polyfill -// We can use URLSearchParams as a watermark for URL support -const urlPolyfill = ` - if (!('URLSearchParams' in window)) { - polyfills.pu...
fix(building-webpack): allow to provide a publicPath
null
open-wc/open-wc
MIT License
JavaScript
@@ -137,7 +137,10 @@ const BurnTab: React.FC = () => { ) throw new Error(t('staking.actions.burn.action.error.insufficient')); - if (toBigNumber(quoteAmount).isGreaterThan(ethBalance)) { + if ( + burnType === BurnActionType.CLEAR && + toBigNumber(quoteAmount).isGreaterThan(ethBalance) + ) { throw new Error(t('staking.a...
fix: only throw insufficient ETH if clearing debt
null
synthetixio/staking
MIT License
TypeScript
@@ -127,14 +127,20 @@ describe('Page', function () { const { page, server } = getTestState(); const handler = sinon.spy(); - page.on('response', handler); + const onResponse = (response) => { + // Ignore default favicon requests. + if (!response.url().endsWith('favicon.ico')) { + handler(); + } + }; + page.on('response...
fix: ignore favicon requests in page.spec event handler tests
null
puppeteer/puppeteer
Apache License 2.0
TypeScript
@@ -112,6 +112,8 @@ class Create extends AbstractStep if (!is_array($page->getVariable($plural))) { $page->setVariable($plural, [$page->getVariable($plural)]); } + // removes duplicate terms + $page->setVariable($plural, array_unique($page->getVariable($plural))); // adds each term to the vocabulary collection... forea...
fix: remove duplicated vocabulary terms
null
cecilapp/cecil
MIT License
PHP
@@ -5,8 +5,7 @@ import static org.camunda.bpm.spring.boot.starter.property.CamundaBpmProperties. public class WebappProperty { private boolean indexRedirectEnabled = true; - // TODO: META-INF/resources/webjars/camunda}") - private String webjarClasspath = "/META-INF/resources"; + private String webjarClasspath = "/META...
fix(starter): fix disabling of redirection to index.html
null
camunda/camunda-bpm-platform
Apache License 2.0
Java
@@ -118,7 +118,10 @@ impl AuthMgr { let tenant = session.get_current_tenant(); // take `sub` field in the claims as user name - let user_name = claims.sub.clone().unwrap(); + let user_name = claims + .sub + .clone() + .ok_or_else(|| ErrorCode::AuthenticateFailure("sub not found in claims"))?; // set user auth_role if c...
fix: raise error on sub not found in claims
null
datafuselabs/databend
Apache License 2.0
Rust
@@ -55,7 +55,7 @@ class ImageElement extends Element { bool _isInLazyLoading = false; // https://html.spec.whatwg.org/multipage/embedded-content.html#dom-img-complete-dev // A boolean value which indicates whether or not the image has completely loaded. - bool complete = false; + bool _complete = false; // The attribut...
fix: img load more than once
null
openkraken/kraken
Apache License 2.0
Dart
@@ -31,14 +31,21 @@ class SystemLogs extends \Admin\Classes\AdminController 'href' => 'request_logs', ]); - LogViewer::setFile(storage_path('logs/system.log')); + $logFile = storage_path('logs/system.log'); - $this->vars['logs'] = LogViewer::all() ?? []; + $logs = []; + if (File::exists($logFile)) { + LogViewer::setFil...
fix: error on system logs page when system.log does not exists
null
tastyigniter/tastyigniter
MIT License
PHP
@@ -109,13 +109,12 @@ static void draw_bg(lv_draw_ctx_t * draw_ctx, const lv_draw_rect_dsc_t * dsc, co if(bg_color.full == dsc->bg_grad.stops[1].color.full) grad_dir = LV_GRAD_DIR_NONE; bool mask_any = lv_draw_mask_is_any(&bg_coords); + lv_draw_sw_blend_dsc_t blend_dsc = {0}; + blend_dsc.blend_mode = dsc->blend_mode; +...
fix(draw): missed bg_color renaming in the draw function
null
lvgl/lvgl
MIT License
C
@@ -92,6 +92,9 @@ void lv_group_del(lv_group_t * group) indev = lv_indev_get_next(indev); } + /*If the group is the default group, set the default group as NULL*/ + if(group == lv_group_get_default()) lv_group_set_default(NULL); + _lv_ll_clear(&(group->obj_ll)); _lv_ll_remove(&LV_GC_ROOT(_lv_group_ll), group); lv_free(...
fix(group): be sure the default group pointer points to a proper place
null
lvgl/lvgl
MIT License
C
$('#datadirbtn').click(function(){ - $('#response').html("<font color='yellow'><b>Loading response...</b></font>"); + $('#response').html("<font color='yellow'><b>Creating data directory...</b></font>"); - $.post({ - url: './mkdirajax.php', - data: $(this).serialize(), - success: function(data){ - // alert("Directory C...
fix: Ajax NULL response
null
monitorr/monitorr
MIT License
PHP
@@ -111,7 +111,7 @@ export default function getRouteData( { ...filteredSections[0], components: - filteredComponents && targetIndex + filteredComponents && typeof targetIndex === 'number' ? [filterComponentExamples(filteredComponents[0], targetIndex)] : [], },
fix: Show examples with targetIndex = 0
null
styleguidist/react-styleguidist
MIT License
TypeScript
@@ -87,7 +87,7 @@ public virtual void EmitExited(SurfaceData data) /// </summary> public virtual void EmitHoverDeactivated() { - Facade.HoverActivated?.Invoke(); + Facade.HoverDeactivated?.Invoke(); } /// <summary>
fix(Locomotion): call correct event on location hover deactivation
null
extendrealityltd/vrtk
MIT License
C#
@@ -536,7 +536,7 @@ export function doCommentModToggleBlock(channelUri: string, unblock: boolean = f }; const commentAction = unblock ? Comments.moderation_unblock : Comments.moderation_block; - + // $FlowFixMe return Promise.allSettled( channelSignatures.map((signatureData) => commentAction({ @@ -600,7 +600,7 @@ expor...
fix: ignore flow linter promise allsettled
null
lbryio/lbry-desktop
MIT License
JavaScript
@@ -47,6 +47,10 @@ var ( func init() { viper.SetEnvPrefix("IFQLD") + ifqlCmd.PersistentFlags().BoolP("verbose", "v", false, "Whether the server should be verbose.") + viper.BindEnv("VERBOSE") + viper.BindPFlag("verbose", ifqlCmd.PersistentFlags().Lookup("verbose")) + ifqlCmd.PersistentFlags().StringVar(&bindAddr, "bind...
fix(cmd/ifqld): Expose verbose flag via CLI/ENV config
null
influxdata/influxdb
MIT License
Go
@@ -76,6 +76,7 @@ impl KafkaBufferProducer { cfg.set("message.timeout.ms", "5000"); cfg.set("message.max.bytes", "10000000"); cfg.set("queue.buffering.max.kbytes", "10485760"); + cfg.set("request.required.acks", "all"); let producer: FutureProducer = cfg.create()?;
fix: Set acks=all for kafka writes
null
influxdata/influxdb_iox
Apache License 2.0
Rust
@@ -81,7 +81,7 @@ TEST(TestOprIORemote, IdentityMultiThread) { TEST(TestOprIORemote, IdentityWithGopt) { auto cns = load_multiple_xpus(2); HostTensorGenerator<> gen; - auto host_x = gen({2, 3}, cns[0]); + auto host_x = gen({2, 3}, cns[1]); HostTensorND host_x_get; auto client = std::make_shared<test::MockGroupClient>()...
fix(mgb/opr-mm): fix device id in TestOprIORemote.IdentityWithGopt
null
megengine/megengine
Apache License 2.0
C++
@@ -375,9 +375,6 @@ public class SpeechToText extends WatsonService { Validator.notNull(createJobOptions, "createJobOptions cannot be null"); RequestBuilder builder = RequestBuilder.post("/v1/recognitions"); builder.header("Content-Type", createJobOptions.contentType()); - if (createJobOptions.transferEncoding() != nul...
fix(speech-to-text): Remove unwanted transferEncoding parameter in createJob()
null
watson-developer-cloud/java-sdk
Apache License 2.0
Java
@@ -867,7 +867,7 @@ defmodule Timex do @doc """ Returns a boolean indicating whether the first `Timex.Comparable` occurs before the second """ - @spec before?(Time, Time) :: boolean + @spec before?(Time.t(), Time.t()) :: boolean @spec before?(Comparable.comparable(), Comparable.comparable()) :: boolean def before?(a, b...
fix: incorrect specs in after/before/between, closes
null
bitwalker/timex
MIT License
Elixir
@@ -604,7 +604,7 @@ impl EditView { .get_pango_context() .expect(&gettext("Failed to get Pango context")); let linecount_layout = - self.create_layout_for_linecount(&pango_ctx, &main_state, i, padding); + self.create_layout_for_linecount(&pango_ctx, &main_state, i + 1, padding); update_layout(cr, &linecount_layout); sh...
fix(edit_view): don't start counting lines from zero
null
cogitri/tau
MIT License
Rust
@@ -87,7 +87,12 @@ class SequenceLabeling(PeriodicFeaturesMixin, FileBasedBatchGenerator): @property def dimension(self): if isinstance(self.model, nn.Module): + if hasattr(self.model, 'n_classes'): return self.model.n_classes + elif hasattr(self.model, 'output_dim'): + return self.model.output_dim + else: + raise Valu...
fix: fix "dimension" property in case of embedding pytorch model
null
pyannote/pyannote-audio
MIT License
Python
@@ -1433,13 +1433,16 @@ impl JsRuntime { if shared_queue_size > 0 || overflown_responses_size > 0 { js_recv_cb.call(tc_scope, global, args.as_slice()); + } + + match tc_scope.exception() { + None => { // The other side should have shifted off all the messages. let shared_queue_size = state_rc.borrow().shared.size(); as...
fix(core): shared queue assertion failure in case of js error
null
denoland/deno
MIT License
Rust
@@ -790,6 +790,9 @@ static void try_algorithm(const Options& options, IAllocator& allocator, const t #if defined(SJSON_CPP_WRITER) if (logging != StatLogging::None) { + // Disable floating point exceptions since decompression assumes it + scope_disable_fp_exceptions fp_off; + const track_error error = calculate_compres...
fix(stats): disable floating point exceptions when measuring stats for tracks
null
nfrechette/acl
MIT License
C++
@@ -446,7 +446,7 @@ func (s3Client *s3Client) touch(ctx context.Context, key string) error { Bucket: &s3Client.bucket, CopySource: &copySource, Key: &key, - Metadata: map[string]string{"updated_at": time.Now().String()}, + Metadata: map[string]string{"updated-at": time.Now().String()}, MetadataDirective: "REPLACE", }
fix: updated_at -> updated-at
null
moby/buildkit
Apache License 2.0
Go
@@ -422,6 +422,7 @@ static void lv_btnmatrix_event(const lv_obj_class_t * class_p, lv_event_t * e) lv_indev_get_point(param, &p); btn_pr = get_button_from_point(obj, &p); /*Handle the case where there is no button there*/ + btnm->btn_id_sel = LV_BTNMATRIX_BTN_NONE; if(btn_pr != LV_BTNMATRIX_BTN_NONE) { if(button_is_ina...
fix(btnmatrix): tapping just outside a button in a button matrix can cause the last tapped button to repeat
null
lvgl/lvgl
MIT License
C
@@ -560,6 +560,7 @@ class EventDetailsFragment : Fragment() { override fun onDestroyView() { super.onDestroyView() + Picasso.get().cancelRequest(rootView.eventImage) speakersAdapter.onSpeakerClick = null sponsorsAdapter.onSponsorClick = null sessionsAdapter.onSessionClick = null @@ -655,9 +656,4 @@ class EventDetailsFr...
fix: app crashes on screen rotation in TicketsFragment
null
fossasia/open-event-attendee-android
Apache License 2.0
Kotlin
@@ -984,7 +984,7 @@ class Document(BaseDocument): if (self.doctype, self.name) in frappe.flags.currently_saving: frappe.flags.currently_saving.remove((self.doctype, self.name)) - self.notify_consumers() + self.notify_consumers(doc_before_save) self.latest = None def clear_cache(self): @@ -1009,7 +1009,7 @@ class Docume...
fix(minor): document.py:notify_consumers
null
frappe/frappe
MIT License
Python
@@ -1217,6 +1217,12 @@ done: void Widget_AutoSize(LCUI_Widget w) { float width = 0, height = 0; + if (!Widget_CheckStyleType(w, key_width, scale)) { + width = ComputeXMetric(w, key_width); + } + if (!Widget_CheckStyleType(w, key_height, scale)) { + height = ComputeYMetric(w, key_height); + } Widget_ComputeContentSize(w...
fix(gui): Widget_AutoSize() should not change the static width or height
null
lc-soft/lcui
MIT License
C
@@ -122,7 +122,7 @@ public static Task<IDocument> OpenAsync(this IBrowsingContext context, Url url, /// <param name="request">Callback with the response to setup.</param> /// <param name="cancel">The cancellation token.</param> /// <returns>The task that creates the document.</returns> - public static async Task<IDocum...
fix: missing default argument
null
anglesharp/anglesharp
MIT License
C#
@@ -469,9 +469,12 @@ class _SageMakerContainer(object): volumes.append(_Volume(model_dir, "/opt/ml/model")) - # Mount the metadata directory on the notebook instance, - # this is used by some DeepEngine libraries - volumes.append(_Volume("/opt/ml/metadata", "/opt/ml/metadata")) + # Mount the metadata directory if prese...
fix: Mount metadata dir only if it exists
null
aws/sagemaker-python-sdk
Apache License 2.0
Python
@@ -116,12 +116,14 @@ class Parsedown extends \ParsedownToC } unset($link['element']['attributes']['embed']); } - if (!$embed) { - return $link; - } // video or audio? $extension = pathinfo($link['element']['attributes']['href'], PATHINFO_EXTENSION); if (in_array($extension, $this->builder->getConfig()->get('body.links...
fix: minor fix on convertor
null
cecilapp/cecil
MIT License
PHP
@@ -133,15 +133,15 @@ impl MatchingRule { Some(max) => Some(MatchingRule::MaxType(max)), None => None }, - "timestamp" => match m.get(&val) { + "timestamp" => match m.get("format") { Some(s) => Some(MatchingRule::Timestamp(json_to_string(s))), None => None }, - "date" => match m.get(&val) { + "date" => match m.get("for...
fix: FFI datetime matcher was using incorrect field
null
pact-foundation/pact-reference
MIT License
Rust
@@ -131,7 +131,7 @@ def make_parser(defaults=None): mt_help = "Select strategy to merge multiple configs from " + \ mts_s + " [%(merge)s]" % defaults - parser = argparse.ArgumentParser(USAGE) + parser = argparse.ArgumentParser(usage=USAGE) parser.set_defaults(**defaults) parser.add_argument("inputs", type=str, nargs='*...
fix: [cli] initialize argparse.ArgumentParser() with usage text correctly
null
ssato/python-anyconfig
MIT License
Python
@@ -66,28 +66,13 @@ export function useBentoBoxApproveCallback({ }, [isBentoBoxApproved, signature, isLoading]) const approveBentoBox = useCallback(async (): Promise<void> => { - if (!address) { - console.error('no account connected') - return - } - - if (!chain) { - console.error('no active chain') - return - } - - if...
fix(packages/wagmi): remove error log
null
sushiswap/sushiswap
MIT License
TypeScript
@@ -398,7 +398,7 @@ const std::string Camera::getPersistentSubnet () uint32_t ip; if (sendReadMemory(Register::PERSISTANT_SUBNETMASK_REGISTER, 4, &ip)) { - return int2ip(ntohl(ip)); + return int2ip(ip); } else {
fix: correct byteorder for getPersistentSubnet
null
theimagingsource/tiscamera
Apache License 2.0
C++
@@ -194,7 +194,7 @@ public class ListCommandsTest extends JedisCommandTestBase { } @Test - public void lindex() { + public void lset() { jedis.lpush("foo", "1"); jedis.lpush("foo", "2"); jedis.lpush("foo", "3"); @@ -226,7 +226,7 @@ public class ListCommandsTest extends JedisCommandTestBase { } @Test - public void lset(...
fix: wrong list commands test case name
null
xetorthio/jedis
MIT License
Java
@@ -270,8 +270,7 @@ def create_mallet_model(path_to_mallet='mallet', path_to_binary=None, input_mode else: shell = False - if not os.path.exists(os.path.dirname(folder_for_output)): - os.makedirs(os.path.dirname(folder_for_output)) + os.makedirs(folder_for_output, exist_ok=True) param = [path_to_mallet, 'train-topics']...
fix: create_mallet fails when folder_for_output is a bare folder name
null
dariah-de/topicsexplorer
Apache License 2.0
Python
@@ -54,7 +54,7 @@ namespace PlaywrightSharp public IDictionary<string, string> Headers => _headers; /// <inheritdoc /> - public bool Ok => Status == HttpStatusCode.OK; + public bool Ok => Status == 0 || ((int)Status >= 200 && (int)Status <= 299); /// <inheritdoc /> public IRequest Request => _initializer.Request.Object...
fix(network): fix Reponse.Ok
null
microsoft/playwright-dotnet
MIT License
C#
@@ -158,7 +158,7 @@ class Chef if new_resource.group_name && (current_resource.group_name != new_resource.group_name) dscl_create_group end - if new_resource.gid && (current_resource.gid != new_resource.gid) + if new_resource.gid && (current_resource.gid != new_resource.gid.to_s) set_gid end if new_resource.members || ...
fix(resource/group): group id comparison
null
chef/chef
Apache License 2.0
Ruby
@@ -203,7 +203,8 @@ def get_website_settings(context=None): context["hide_login"] = settings.hide_login - context["splash_image"] = settings.splash_image or context["splash_image"] + if splash_image := settings.splash_image or context.get("splash_image"): + context["splash_image"] = splash_image return context
fix: Add splash_image to context if exists
null
frappe/frappe
MIT License
Python
@@ -154,7 +154,9 @@ public class RuleTables { case TermLink.COMPOUND: switch (bLink.type) { case TermLink.COMPOUND: + if(taskTerm instanceof CompoundTerm && beliefTerm instanceof CompoundTerm) { compoundAndCompound((CompoundTerm) taskTerm, (CompoundTerm) beliefTerm, tIndex, bIndex, nal); + } break; case TermLink.COMPOU...
fix: RuleTables: Support the atomic statement case as it is cheap to allow although a NARS doesn't necessarily have to support it. (fixes issue 311)
null
opennars/opennars
MIT License
Java