diff stringlengths 12 9.3k | message stringlengths 8 199 | reasoning_trace null | repo stringlengths 6 68 | license stringclasses 3
values | language stringclasses 16
values |
|---|---|---|---|---|---|
@@ -38,6 +38,12 @@ const (
serviceName = "SwarmBeeSvc"
)
+// default values for network IDs
+const (
+ defaultMainNetworkID uint64 = 1
+ defaultTestNetworkID uint64 = 10
+)
+
//go:embed bee-welcome-message.txt
var beeWelcomeMessage string
@@ -106,14 +112,21 @@ func (c *command) initStartCmd() (err error) {
}
mainnet :=... | fix: programmatically set test network ID | null | ethersphere/bee | BSD 3-Clause New or Revised License | Go |
@@ -124,8 +124,6 @@ orka_config_cleanup(struct orka_config *config)
{
if (config->fcontents)
free(config->fcontents);
- if (config->tag)
- free(config->tag);
if (config->f_http_dump)
fclose(config->f_http_dump);
}
| fix: double free | null | cee-studio/orca | MIT License | C |
@@ -363,23 +363,18 @@ mod _collections {
#[pymethod(magic)]
fn repr(zelf: PyRef<Self>, vm: &VirtualMachine) -> PyResult<String> {
+ let deque = zelf.borrow_deque().clone();
let class = zelf.class();
let class_name = class.name();
+ let closing_part = zelf
+ .maxlen
+ .map(|maxlen| format!("], maxlen={}", maxlen))
+ .un... | fix: correct deque repr result and fix hanging problem | null | rustpython/rustpython | MIT License | Rust |
@@ -59,7 +59,7 @@ def validate_key_values(config_handle, section, key, default=None):
except DuplicateSectionError:
pass
- section_handle = config[section]
+ section_handle = config_handle[section]
try:
value = section_handle[key]
| fix: Use correct variable name | null | foremast/foremast | Apache License 2.0 | Python |
@@ -87,10 +87,7 @@ export default function compile(code: string, config: CompileConfig): Return {
sourceMap: config.sourceMap,
};
- console.log(babelConfig);
-
const transformed = Babel.transform(code, babelConfig);
- console.log("out", transformed);
compiled = transformed.code;
if (config.sourceMap) {
try {
@@ -115,7 ... | fix: remove unnecessary log | null | babel/website | MIT License | JavaScript |
@@ -103,8 +103,8 @@ public class SpatialDataset {
private static void verifyBaseNamesSame (List<FileItem> fileItems) {
String firstBaseName = null;
for (FileItem fileItem : fileItems) {
- // Ignore .shp.xml files
- if (FilenameUtils.getExtension(fileItem.getName()).equals(".xml")) continue;
+ // Ignore .shp.xml files, ... | fix(spatial): ignore correct extension | null | conveyal/r5 | MIT License | Java |
@@ -213,7 +213,7 @@ impl Context {
// Pack the payload into a TransportMessage
let payload = msg.encode().unwrap();
let mut data = TransportMessage::v1(route.clone(), payload);
- data.return_route.modify().append(self.address());
+ data.return_route.modify().append(sending_address);
// Pack transport message into relay... | fix(rust): fix return route while sending message | null | ockam-network/ockam | Apache License 2.0 | Rust |
@@ -43,4 +43,7 @@ var LatitudeAndLongitude = map[string]cloudprovider.SGeographicInfo{
"eu-north-1": {Latitude: 59.1946, Longitude: 18.47, City: api.CITY_STOCKHOLM, CountryCode: api.COUNTRY_CODE_SE},
"sa-east-1": {Latitude: -23.5505199, Longitude: -46.63330939999999, City: api.CITY_SAO_PAULO, CountryCode: api.COUNTRY_C... | fix: new aws region | null | yunionio/yunioncloud | Apache License 2.0 | Go |
@@ -6,6 +6,7 @@ use App\Traits\HasOwner;
use App\Traits\HasParent;
use Illuminate\Database\Eloquent\Builder;
use Illuminate\Database\Eloquent\Model;
+use Illuminate\Database\Eloquent\Relations\HasMany;
class Account extends Model
{
| fix: import class | null | nunomaduro/larastan | MIT License | PHP |
@@ -47,8 +47,8 @@ mixin ShapeHitbox on ShapeComponent implements Hitbox<ShapeHitbox> {
@override
bool renderShape = false;
- @protected
- late PositionComponent hitboxParent;
+ late PositionComponent _hitboxParent;
+ PositionComponent get hitboxParent => _hitboxParent;
void Function()? _parentSizeListener;
@protected
b... | fix: Expose hitboxParent from Hitbox | null | flame-engine/flame | MIT License | Dart |
@@ -3,6 +3,7 @@ const config = require('@/config');
const SocksProxyAgent = require('socks-proxy-agent');
const tunnel = require('tunnel');
const got = require('got');
+const queryString = require('query-string');
let agent = null;
if (config.proxy && config.proxy.protocol && config.proxy.host && config.proxy.port) {
@... | fix: compatible with axios data and params | null | diygod/rsshub | MIT License | JavaScript |
@@ -39,6 +39,10 @@ class ContractFunction extends Component {
return !this.isPureCall(method) && (method.type === 'event');
}
+ static isFallback(method) {
+ return method.type === 'fallback';
+ }
+
buttonTitle() {
const {method} = this.props;
if (method.name === 'constructor') {
@@ -140,24 +144,31 @@ class ContractFun... | fix(embark-ui): detect fallback functions in the contracts explorer | null | embarklabs/embark | MIT License | JavaScript |
@@ -294,7 +294,11 @@ export class GraphQLResourceManager {
}
return _.uniq(
diffs
- .filter(diff => diff.path.includes('KeySchema') || diff.path.includes('LocalSecondaryIndexes')) // filter diffs with changes that require replacement
+ // diff.path looks like [ "stacks", "ModelName.json", "Resources", "TableName", "Pro... | fix: update logic for identifying primary key changes | null | aws-amplify/amplify-cli | Apache License 2.0 | TypeScript |
@@ -480,7 +480,7 @@ namespace WalkingTec.Mvvm.Mvc
{
url = HttpUtility.UrlDecode(url);
var ctrlActDesc = this.ControllerContext.ActionDescriptor as ControllerActionDescriptor;
- string pagetitle = "";
+ string pagetitle = string.Empty;
var menu = Utils.FindMenu(url);
if (menu == null)
{
@@ -507,11 +507,10 @@ namespace W... | fix: fixed the bug of outside url | null | dotnetcore/wtm | MIT License | C# |
@@ -59,7 +59,7 @@ class FacebookOAuth2Adapter(OAuth2Adapter):
GRAPH_API_VERSION))
settings = app_settings.PROVIDERS.get(provider_id, {})
-
+ scope_delimiter = ','
authorize_url = settings.get('AUTHORIZE_URL', provider_default_auth_url)
access_token_url = GRAPH_API_URL + '/oauth/access_token'
expires_in_key = 'expires_i... | fix(facebook): Using comma delimeter to address social login failure with scopes | null | pennersr/django-allauth | MIT License | Python |
@@ -646,12 +646,12 @@ class CloudVolume(object):
def downscale(size, roundingfn):
smaller = Vec(*size, dtype=np.float32) / Vec(*factor)
- return list(roundingfn(smaller).astype(int))
+ return list(map(int, roundingfn(smaller)))
newscale = {
u"encoding": fullres['encoding'],
u"chunk_sizes": [ chunk_size ],
- u"resolutio... | fix: add_scale in Python3 rendered np.int64 | null | seung-lab/cloud-volume | BSD 3-Clause New or Revised License | Python |
@@ -106,7 +106,9 @@ class FrappeClient:
headers=self.headers,
)
- def get_list(self, doctype, fields='["name"]', filters=None, limit_start=0, limit_page_length=0):
+ def get_list(
+ self, doctype, fields='["name"]', filters=None, limit_start=0, limit_page_length=None
+ ):
"""Returns list of records of a particular type... | fix: allow zero page length in `get_list` to return complete list | null | frappe/frappe | MIT License | Python |
@@ -20,5 +20,9 @@ export class OkrTopicDescriptionFormComponent implements OnInit {
ngOnInit(): void {
this.users$ = this.userService.getAllUsers$();
+ if(this.descriptionForm.get('beginning').value !== undefined &&
+ this.minBeginn.getTime() > this.descriptionForm.get('beginning').value.getTime()){
+ this.minBeginn = ... | fix(okr-topic-description-form): fixed a bug where you couldn't change descriptions of topics/teams when the start Date was before today | null | burningokr/burningokr | Apache License 2.0 | TypeScript |
@@ -53,6 +53,10 @@ public class SpringLookupInitializer extends LookupInitializer {
void execute() throws ServletException;
}
+ private static class ApplicationContextWrapper {
+ private WebApplicationContext appContext;
+ }
+
private static class SpringLookup extends LookupImpl {
private final WebApplicationContext co... | fix: put and use app context as a servlet context attribute | null | vaadin/flow | Apache License 2.0 | Java |
@@ -56,7 +56,11 @@ static bool init_mysql_connection_entry(INTERNAL_FUNCTION_PARAMETERS, sql_connec
return false;
}
host_and_port = passwd = NULL;
+#if (PHP_MINOR_VERSION == 3)
+ user = php_get_current_user();
+#else
user = php_get_current_user(TSRMLS_C);
+#endif
}
else
{
| fix(php5): php5.3 compability | null | baidu/openrasp | Apache License 2.0 | C++ |
@@ -7,6 +7,7 @@ import {
DialogContentText,
DialogTitle,
} from "@material-ui/core";
+import { fetchNui } from "../utils/fetchNui";
interface ErrorCompState {
hasError: boolean;
@@ -24,6 +25,11 @@ export class TopLevelErrorBoundary extends Component<{}, ErrorCompState> {
this.handleReloadClick.bind(this);
}
+ component... | fix(menu/top-error): Focus inputs so players can reload | null | tabarra/txadmin | MIT License | TypeScript |
@@ -88,13 +88,20 @@ public class SecurityDialog
passwordEntry.sendKeys(Keys.RETURN);
String validationMessage = null;
+
+ // There are two cases here, validation is enabled and the field passwordEntry maybe there
+ // with validation failed, or maybe successfully hidden after setting the password
+ // So let's give it ... | fix: Tries to fix StaleElement error | null | jitsi/jitsi-meet-torture | Apache License 2.0 | Java |
@@ -16,7 +16,36 @@ type Tree struct {
type Common struct {
Kind string `json:"kind" yaml:"kind"`
- Version string `json:"apiVersion" yaml:"apiVersion"`
+ Version string `json:"version, omitempty" yaml:"version, omitempty"`
+ // Don't access X_ApiVersion, it is only exported for (de-)serialization
+ X_ApiVersion string ... | fix: make resource version and resource apiVersion compatible | null | caos/orbos | Apache License 2.0 | Go |
@@ -75,6 +75,12 @@ impl CreateCommand {
);
std::process::exit(-1);
}
+
+ // Save the config update
+ if let Err(e) = cfg.atomic_update().run() {
+ eprintln!("failed to update configuration: {}", e);
+ std::process::exit(-1);
+ }
}
embedded_node(setup, (command, cfg.clone()));
| fix(rust): add foreground node to the config | null | ockam-network/ockam | Apache License 2.0 | Rust |
@@ -54,7 +54,7 @@ function calculatePopupPosition(eventRect: Rect, layoutRect: Rect, popupRect: Re
}
function calculatePopupArrowPosition(eventRect: Rect, layoutRect: Rect, popupRect: Rect) {
- const top = eventRect.top + eventRect.height / 2;
+ const top = eventRect.top + eventRect.height / 2 + window.scrollY;
const p... | fix: detail popup arrow position after scroll | null | nhn/tui.calendar | MIT License | TypeScript |
@@ -376,27 +376,10 @@ private class PrivateXMLHandler {
if fields.isEmpty {
values = .init()
} else {
- if let cachedAttributes = getValuesFromCache(forTokenId: tokenId) {
- values = cachedAttributes
-
- //TODO get rid of the forced unwrap
- let callForAssetAttributeCoordinator = (XMLHandler.callForAssetAttributeCoordi... | fix: TokenScript client sometimes stop displaying attributes in web views. Requires restart to fix | null | alphawallet/alpha-wallet-ios | MIT License | Swift |
use druid::{
piet::{PietTextLayout, Text, TextAttribute, TextLayout, TextLayoutBuilder},
BoxConstraints, Command, Env, Event, EventCtx, FontWeight, LayoutCtx, LifeCycle,
- LifeCycleCtx, PaintCtx, Point, Rect, RenderContext, Size, Target, TextAlignment,
- UpdateCtx, Widget, WidgetId, WidgetPod,
+ LifeCycleCtx, MouseEven... | fix: add hover effect for alert window buttons | null | lapce/lapce | Apache License 2.0 | Rust |
@@ -49,6 +49,7 @@ limitations under the License.
#include <errno.h>
#include <netinet/tcp.h>
#if defined(__linux__)
+#include <sys/sysmacros.h>
#include <linux/netlink.h>
#include <linux/rtnetlink.h>
//#include <linux/sock_diag.h>
| fix: include makedev definitions | null | draios/sysdig | Apache License 2.0 | C |
@@ -314,7 +314,8 @@ pub(crate) fn find_matching_variants<T>(
let context = MatchingContext::new(DiffConfig::NoUnexpectedKeys, rules);
callback(&vec!["$"], value, &context)
}).map(|((index, _, generators), value)| {
- (*index, value.clone().clone(), generators.clone())
+ let value = *value;
+ (*index, value.clone(), gen... | fix(clippy): using `clone` on a double-reference; this will copy the reference instead of cloning the inner type | null | pact-foundation/pact-reference | MIT License | Rust |
@@ -33,10 +33,10 @@ frappe.ui.form.ControlSelect = frappe.ui.form.ControlData.extend({
}
// nothing changed
- if(options.toString() === this.last_options) {
+ if (JSON.stringify(options) === this.last_options) {
return;
}
- this.last_options = options.toString();
+ this.last_options = JSON.stringify(options);
if(this.$... | fix: Replace toString check with a JSON check | null | frappe/frappe | MIT License | JavaScript |
@@ -24,27 +24,27 @@ internal struct PaletteColorHistory
/// <summary>
/// The alpha component.
/// </summary>
- public int Alpha;
+ public ulong Alpha;
/// <summary>
/// The red component.
/// </summary>
- public int Red;
+ public ulong Red;
/// <summary>
/// The green component.
/// </summary>
- public int Green;
+ pu... | fix: value of '-xyz' is not valid for 'alpha' | null | jimbobsquarepants/imageprocessor | Apache License 2.0 | C# |
@@ -475,17 +475,16 @@ const ObjectPage = forwardRef((props: ObjectPagePropTypes, ref: RefObject<HTMLDi
[mode, setInternalSelectedSectionId, setSelectedSubSectionId, isProgrammaticallyScrolled, children]
);
const [scrolledHeaderExpanded, setScrolledHeaderExpanded] = useState(false);
- const onToggleHeaderContentVisibili... | fix(ObjectPage): consistently toggle header after scrolling | null | sap/ui5-webcomponents-react | Apache License 2.0 | TypeScript |
@@ -41,7 +41,7 @@ class CollectHierarchyInstance(pyblish.api.InstancePlugin):
data = {
"sequence": context.data['activeSequence'].name().replace(' ', '_'),
"track": clip.parent().name().replace(' ', '_'),
- "shot": asset
+ "clip": asset
}
self.log.debug("__ data: {}".format(data))
@@ -65,16 +65,18 @@ class CollectHiera... | fix(nukestudio): wrong shot asset name build | null | pypeclub/openpype | MIT License | Python |
#include <sstream>
#include <string>
-using namespace mgb;
-
#ifdef WIN32
#include <io.h>
#include <windows.h>
@@ -17,6 +15,8 @@ using namespace mgb;
#include <unistd.h>
#endif
+#if MGB_CUDA
+
namespace {
#ifndef PATH_MAX
@@ -51,11 +51,6 @@ void* dlerror() {
return const_cast<char*>(errmsg);
}
-void* dlsym(void* handle... | fix(build): remove ununsed functions when cuda disabled | null | megengine/megengine | Apache License 2.0 | C++ |
@@ -95,6 +95,7 @@ class UserAgent extends Base
'linux' => 'Linux',
'sonos' => 'Sonos',
'homepod_os' => 'HomepodOS',
+ 'tvos' => 'tvOS',
];
return $map[trim(strtolower($os_name))] ?? $os_name;
| fix: tvOS spelling | null | podlove/podlove-publisher | MIT License | PHP |
@@ -42,6 +42,7 @@ class KrakenScrollable
offset: position,
child: child,
scrollListener: scrollListener,
+ shouldClip: true,
);
_renderBox = child;
| fix: clip container when overflow is auto | null | openkraken/kraken | Apache License 2.0 | Dart |
@@ -288,6 +288,10 @@ void SystemNetworkContextManager::OnNetworkServiceCreated(
base::FeatureList::IsEnabled(features::kAsyncDns),
default_secure_dns_mode, doh_config, additional_dns_query_types_enabled);
+ // Initializes first party sets component
+ // CL: https://chromium-review.googlesource.com/c/chromium/src/+/3449... | fix: intialize FPS file in network service | null | electron/electron | MIT License | C++ |
@@ -858,6 +858,7 @@ class ClassificationModel:
torch.save(features, cached_features_file)
if args["sliding_window"] and evaluate:
+ features = [[feature_set] if not isinstance(feature_set, list) else feature_set for feature_set in features]
window_counts = [len(sample) for sample in features]
features = [feature for fe... | fix: 'object of type 'InputFeatures' has no len()' | null | thilinarajapakse/simpletransformers | Apache License 2.0 | Python |
/*
- * (C) Copyright IBM Corp. 2019.
+ * (C) Copyright IBM Corp. 2020.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
@@ -22,10 +22,10 @@ import com.ibm.cloud.sdk.core.service.model.GenericMod... | fix(Discovery v2): Ensure all required props are sent to prevent service errors | null | watson-developer-cloud/java-sdk | Apache License 2.0 | Java |
@@ -158,6 +158,7 @@ export const createClient = (
cache: cache || new InMemoryCache(),
connectToDevTools: true,
ssrMode,
+ ssrForceFetchDelay: 1000,
}
// TODO: Figure this out?
| fix: Delay refetch until after (most) SSR renders | null | openneuroorg/openneuro | MIT License | JavaScript |
@@ -13,6 +13,7 @@ func NewBuildCmd(f factory.Factory, globalFlags *flags.GlobalFlags, rawConfig *R
GlobalFlags: globalFlags,
Pipeline: "build",
ForceBuild: true,
+ SkipPushLocalKubernetes: true,
}
var pipeline *latest.Pipeline
| fix: skip push with local kubernetes with devspace build | null | loft-sh/devspace | Apache License 2.0 | Go |
@@ -24,8 +24,8 @@ class SmoothTheme {
fontFamily: 'PlusJakartaSans',
colorScheme: myColorScheme,
bottomNavigationBarTheme: BottomNavigationBarThemeData(
- showSelectedLabels: false,
- showUnselectedLabels: false,
+ showSelectedLabels: true,
+ showUnselectedLabels: true,
selectedItemColor: myColorScheme.primary,
),
elev... | fix: text below icons | null | openfoodfacts/smooth-app | Apache License 2.0 | Dart |
@@ -99,7 +99,7 @@ namespace Unity.Netcode
// TODO: Remove `m_IsRunningUnitTest` entirely after we switch to multi-process testing
// In MultiInstance tests, we cannot allow clients to load additional scenes as they're sharing the same scene space / Unity instance.
-#if UNITY_EDITOR || DEVELOPMENT_BUILD
+#if UNITY_INCLU... | fix: network scene manager UNITY_INCLUDE_TESTS | null | unity-technologies/com.unity.multiplayer.mlapi | MIT License | C# |
@@ -175,7 +175,7 @@ fn generate_abi_type(ty: &Type, serializer_type: &SerializerType) -> TokenStream
},
SerializerType::Borsh => quote! {
near_sdk::__private::AbiType::Borsh {
- type_schema: #ty::schema_container(),
+ type_schema: <#ty>::schema_container(),
}
},
}
| fix: wrap `$ty` in angle brackets for ABI macro | null | near/near-sdk-rs | Apache License 2.0 | Rust |
@@ -417,7 +417,7 @@ export default class RNN {
if (isNaN(error)) throw new Error('network error rate is unexpected NaN, check network configurations and try again');
if (log && (i % logPeriod == 0)) {
- log('iterations:', i, 'training error:', error);
+ log(`iterations: ${ i }, training error: ${ error }`);
}
if (callb... | fix: Rnn log | null | brainjs/brain.js | MIT License | JavaScript |
@@ -107,7 +107,7 @@ export default function cellRangeRenderer({
style,
};
- if (!cellCache[key]) {
+ if (!cellCache[key] || !isScrolling) {
// eslint-disable-next-line no-param-reassign
cellCache[key] = cellRenderer(cellRendererParams);
}
| fix(ui-kit/table/cell-range-renderer): render when not scrolling | null | commercetools/ui-kit | MIT License | JavaScript |
@@ -29,14 +29,25 @@ REPO_ROOT="$(git rev-parse --show-toplevel)"
declare -r REPO_ROOT
cd "${REPO_ROOT}"
+function git_remote_get_url() {
+ git remote get-url $1 2>/dev/null
+ if [ "$?" -ne "0" ]; then
+ git config remote.$1.url 2>/dev/null
+ fi
+ if [ "$?" -ne "0" ]; then
+ echo "git fail get remote url for $1"
+ exit ... | fix: make cherry_pick_pull.sh comptabile with older git not support | null | yunionio/yunioncloud | Apache License 2.0 | Shell |
@@ -274,7 +274,7 @@ pub fn lex_commented(
} else {
Spacing::Alone
};
- let span = Span::new(src.clone(), start, end, path.clone()).unwrap();
+ let span = Span::new(src.clone(), index, end, path.clone()).unwrap();
let punct = Punct {
kind: PunctKind::ForwardSlash,
spacing,
| fix: ForwardSlash span collection | null | fuellabs/sway | Apache License 2.0 | Rust |
import 'dart:async';
import 'package:bluebubbles/services/services.dart';
+import 'package:bluebubbles/utils/logger.dart';
import 'package:flutter/foundation.dart';
import 'package:get/get.dart';
import 'package:network_info_plus/network_info_plus.dart';
@@ -31,6 +32,7 @@ class NetworkTasks {
static Future<void> detect... | fix: adds support for https localhosts | null | bluebubblesapp/bluebubbles-app | Apache License 2.0 | Dart |
@@ -258,6 +258,9 @@ export function parseUseScriptSetupRanges(ts: typeof import('typescript/lib/tsse
else if (optionName === 'setup' && ts.isMethodDeclaration(option)) {
setupFunction = option;
}
+ else if (optionName === 'components') {
+ // ignore
+ }
else {
otherOptions.push(_getStartEnd(option));
}
| fix: don't keep components option | null | johnsoncodehk/volar | MIT License | TypeScript |
@@ -168,12 +168,9 @@ QDockWidget *RawDataViewer::getControl()
pLayout->addSpacerItem(endSpacer);
QScrollArea* wrappedScrollArea = new QScrollArea(pControlDock);
- wrappedScrollArea->setSizePolicy(QSizePolicy(QSizePolicy::Expanding,
+ wrappedScrollArea->setSizePolicy(QSizePolicy(QSizePolicy::Preferred,
QSizePolicy::Pref... | fix: fix signal controls horizontal scaling | null | mne-tools/mne-cpp | BSD 3-Clause New or Revised License | C++ |
@@ -118,22 +118,7 @@ public class ExecutionFlowsImportService {
}
if (executionToImport.getAuthenticatorConfig() != null) {
- AuthenticationExecutionInfoRepresentation storedExecutionFlow = executionFlowRepository.getExecutionFlow(
- realm.getRealm(), existingTopLevelFlow.getAlias(), executionToImport.getAuthenticator(... | fix: Authentication flows in non top level flows | null | adorsys/keycloak-config-cli | Apache License 2.0 | Java |
@@ -7,6 +7,8 @@ import (
"github.com/influxdata/platform"
)
+// TODO: rename to token.go
+
// TokenGenerator implements platform.TokenGenerator.
type TokenGenerator struct {
size int
| fix(rand): rename *_genator.go to *.go | null | influxdata/influxdb | MIT License | Go |
@@ -563,7 +563,7 @@ export interface LogEntry {
}
export interface LoggerEntryContent {
- readonly timestamp: Date;
+ readonly timestamp: string;
readonly message: string;
[key: string]: any;
}
| fix(microservices): Update LogEntry in external kafka interface | null | nestjs/nest | MIT License | TypeScript |
@@ -176,7 +176,7 @@ public class ServiceManager implements RecordListener<Service> {
} catch (Exception e) {
toBeUpdatedServicesQueue.poll();
toBeUpdatedServicesQueue.add(new ServiceKey(namespaceId, serviceName, serverIP, checksum));
- Loggers.SRV_LOG.error("[DOMAIN-STATUS] Failed to add service to be updatd to queue."... | fix: typo fix in `ServiceManager` | null | alibaba/nacos | Apache License 2.0 | Java |
@@ -689,8 +689,8 @@ public class BulkDataClient {
// e.g, Patient[1000,1000,200]:Observation[1000,1000,200],
// COMPLETED means no file exported.
String exitStatus = response.getExitStatus();
- log.fine(exitStatus);
- if (!"COMPLETED".equals(exitStatus) && !JobType.IMPORT.value().equals(response.getJobXMLName())) {
+ l... | fix: output not showing up for import and export jobs with bad url | null | ibm/fhir | Apache License 2.0 | Java |
# frozen_string_literal: true
module ActiveRecord::Associations::Preloader::ManualAssociationPreloader
- def initialize(klass, owners, reflection, records)
- super(klass, owners, reflection, nil)
+ def initialize(klass, owners, reflection, records, associate_by_default = true) # rubocop:disable Style/OptionalBooleanPar... | fix(manual association preloader): add associate_by_default to manual association preloader initialization | null | coursemology/coursemology2 | MIT License | Ruby |
@@ -76,8 +76,10 @@ const plugin = async (api): Promise<void> => {
const pattern = /^\/?((?!\.(js|css|map|json|png|jpg|jpeg|gif|svg|eot|woff2|ttf|ico)).)*$/;
app.get(pattern, async (req, res) => {
const htmlTemplate = fse.readFileSync(path.join(buildDir, 'index.html'), 'utf8')
+ const requirePath = path.join(serverDir, ... | fix: delete require cache of server bundle | null | alibaba/ice | MIT License | TypeScript |
@@ -88,12 +88,6 @@ pub enum Error {
))]
InternalNoColumnInIndex { column_name: String, column_id: DID },
- #[snafu(display("Error creating column from wal for column {}: {}", column, source))]
- CreatingFromWal {
- column: DID,
- source: crate::column::Error,
- },
-
#[snafu(display("Error evaluating column predicate fo... | fix: Remove error type not used anywhere | null | influxdata/influxdb_iox | Apache License 2.0 | Rust |
@@ -24,11 +24,9 @@ const StyledMenuList = styled(MenuListRoot)`
min-width: ${menu.width.min}px;
max-width: ${menu.width.max}px;
border-radius: ${menu.border.radius}px;
-
background-color: ${menu.backgroundColor.white};
- box-shadow: ${elevations.small}
+ box-shadow: ${elevations.small};
z-index: ${zIndex};
-
`;
}}
`;
| fix: menu list css bug fix | null | gympass/yoga | MIT License | JavaScript |
@@ -179,6 +179,8 @@ impl AccountHandle {
if conflict != ConflictReason::None {
log::debug!("[TRANSACTION] conflict: {conflict:?}");
+ // unlock outputs so they are available for a new transaction
+ self.unlock_inputs(signed_transaction_data.inputs_data).await?;
return Err(Error::TransactionSemantic(conflict).into());
}... | fix: unlock inputs from conflicting transactions | null | iotaledger/wallet.rs | Apache License 2.0 | Rust |
@@ -20,6 +20,7 @@ find ${WORKSPACE}/build/security/logs/tmp -depth 1 -iname '*-ig-*.jar' -delete |
find ${WORKSPACE}/build/security/logs/tmp -depth 1 -iname 'fhir-persistence-schema-*-cli.jar' -delete | true
find ${WORKSPACE}/build/security/logs/tmp -depth 1 -iname 'fhir-swagger-generator-*-cli.jar' -delete | true
find... | fix: remove the bulkdata client from the analysis | null | ibm/fhir | Apache License 2.0 | Shell |
@@ -90,8 +90,8 @@ class MapArea extends BaseFormWidget
public function loadAssets()
{
- $this->addJs('../../repeater/assets/vendor/sortablejs/js/Sortable.min.js', 'sortable-js');
- $this->addJs('../../repeater/assets/vendor/sortablejs/js/jquery-sortable.js', 'jquery-sortable-js');
+ $this->addJs('../../repeater/assets/... | fix: MapArea loads wrong JS assets | null | tastyigniter/tastyigniter | MIT License | PHP |
@@ -24,7 +24,6 @@ import (
"path/filepath"
"syscall"
- "github.com/dgraph-io/badger/v2"
"github.com/golang/protobuf/ptypes/empty"
"google.golang.org/grpc"
@@ -131,7 +130,7 @@ func (s *ImmuServer) GetBatch(ctx context.Context, kl *schema.KeyList) (*schema.
list := &schema.ItemList{}
for _, key := range kl.Keys {
item, e... | fix(pkg/server): correct error checking | null | codenotary/immudb | Apache License 2.0 | Go |
@@ -95,8 +95,8 @@ export default async function startServer(client: DgraphClient) {
uid
}}`);
- subscriptions.push(namespaceSub);
- await pollSubscriptions(subscriptions, dgraphClient, pollCallback);
+ serverStates.subscriptions.push(namespaceSub);
+ await pollSubscriptions(serverStates.subscriptions, dgraphClient, pol... | fix: subscriptions reference update | null | unigraph-dev/unigraph-dev | MIT License | TypeScript |
@@ -187,7 +187,7 @@ func ensureArtifacts(logger logging.Logger, secrets *operator.Secrets, orb *Orb,
Verbs: []string{"create"},
}},
}); err != nil {
- return nil
+ return err
}
if err := client.ApplyClusterRole(&rbac.ClusterRole{
@@ -260,7 +260,7 @@ func ensureArtifacts(logger logging.Logger, secrets *operator.Secrets,... | fix: handle apply errors | null | caos/orbos | Apache License 2.0 | Go |
@@ -52,7 +52,6 @@ def download_multi_pdf(doctype, name, format=None):
Returns:
PDF: A PDF generated by the concatenation of the mentioned input docs
"""
- make_access_log(doctype=doctype, method='PDF', file_type='PDF', document=name)
import json
output = PdfFileWriter()
| fix: Error while pritning mutiple docs | null | frappe/frappe | MIT License | Python |
@@ -38,15 +38,24 @@ namespace acl
namespace acl_impl
{
+#ifdef ACL_BIT_RATE_EXPANSION
+ // Bit rate 0 is reserved for tracks that are constant in a segment
+ constexpr uint8_t k_bit_rate_num_bits[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 32 };
+#else
// Bit rate 0 is re... | fix(core): add missing bit rate changes due to rebase | null | nfrechette/acl | MIT License | C |
@@ -305,7 +305,7 @@ export class TypeResolver {
if (type === undefined) {
throw new GenerateMetadataError(`Could not determine ${numberIndexType ? 'number' : 'string'} index on ${this.current.typeChecker.typeToString(objectType)}`, this.typeNode);
}
- return new TypeResolver(this.current.typeChecker.typeToTypeNode(type... | fix(cli): Don't truncate synthetic type nodes | null | lukeautry/tsoa | MIT License | TypeScript |
@@ -115,9 +115,10 @@ fn parse_tsm_field_key(value: &str) -> Result<String> {
const DELIM: &str = "#!~#";
if value.len() < 6 {
- return Err(Error::ParsingTSMFieldKey {
- description: "field key too short".into(),
- });
+ return ParsingTSMFieldKey {
+ description: "field key too short",
+ }
+ .fail();
}
let field_trim_le... | fix: cleanup error handling | null | influxdata/influxdb_iox | Apache License 2.0 | Rust |
@@ -28,6 +28,6 @@ class UrlResolver implements \OwenIt\Auditing\Contracts\UrlResolver
return 'console';
}
- return Request::fullUrlWithQuery();
+ return Request::fullUrlWithQuery([]);
}
}
| fix(UrlResolver): add missing argument to fullUrlWithQuery() method | null | owen-it/laravel-auditing | MIT License | PHP |
@@ -3,8 +3,8 @@ package guestdrivers
import (
"context"
"fmt"
- "regexp"
"strconv"
+ "strings"
"yunion.io/x/jsonutils"
"yunion.io/x/log"
@@ -43,10 +43,9 @@ func (self *SKVMGuestDriver) OnDeleteGuestFinalCleanup(ctx context.Context, gues
}
func findVNCPort(results string) int {
- reg := regexp.MustCompile(`(\d+\.\d+\.\d... | fix: kvm find vnc port index out of range | null | yunionio/yunioncloud | Apache License 2.0 | Go |
@@ -25,7 +25,6 @@ def update_document_title(doctype, docname, title_field=None, old_title=None, ne
return docname
-@frappe.whitelist()
def rename_doc(doctype, old, new, force=False, merge=False, ignore_permissions=False, ignore_if_exists=False, show_alert=True):
"""
Renames a doc(dt, old) to doc(dt, new) and
| fix: Remove unnecessary whitelisting of rename_doc method | null | frappe/frappe | MIT License | Python |
@@ -615,7 +615,7 @@ PyArray_Descr* _dtype_promotion(PyObject*const* args, size_t nargs) {
SmallVector<PyArray_Descr*> scalars;
bool is_tuple = false;
- PyObject* tuple;
+ PyObject* tuple = nullptr;
if (nargs == 1 && (PyTuple_Check(args[0]) || PyList_Check(args[0]))) {
if (PyList_Check(args[0])) {
tuple = PyList_AsTuple... | fix(imperative/tensor): fix Py_DECREF on uninitialized pointer | null | megengine/megengine | Apache License 2.0 | C++ |
@@ -2488,7 +2488,7 @@ func (self *SGuest) PerformChangeConfig(ctx context.Context, userCred mcclient.T
return nil, httperrors.NewInputParameterError("%v", err)
}
if !utils.IsInStringArray(self.Status, changeStatus) {
- return nil, httperrors.NewInvalidStatusError("Cannot change config in %s", self.Status)
+ return nil,... | fix: more detailed log for server hange_config | null | yunionio/yunioncloud | Apache License 2.0 | Go |
@@ -727,6 +727,11 @@ public class IFrameAPITest
@Test(dependsOnMethods = { "testFunctionIsAudioOrVideoMuted" })
public void testFunctionIsModerationOn()
{
+ if (!this.isModeratorSupported)
+ {
+ throw new SkipException("Moderation is required for this test.");
+ }
+
this.iFrameUrl = getIFrameUrl(null, null);
ensureOneP... | fix(av-moderation): Skip tests for env without moderators by default | null | jitsi/jitsi-meet-torture | Apache License 2.0 | Java |
@@ -65,20 +65,6 @@ const getHoverStateStyle = (style: 'shadow' | 'outlined') =>
!disabled && onClick && `0 0.2rem 0.4rem ${rgba(theme.table.shadowColor, 0.2)} `};
`;
-const getBorderStyle = (rowHoveredStyle: 'shadow' | 'outlined') =>
- rowHoveredStyle === 'outlined'
- ? css`
- border: 2px solid transparent;
- `
- : ``;... | fix: remove outlined hoveredStyle border and padding when not hovered | null | medly/medly-components | MIT License | TypeScript |
@@ -320,7 +320,7 @@ hotspot_calculator *info_collector::get_hotspot_calculator(const std::string &ap
return nullptr;
}
hotspot_calculator *calculator =
- new hotspot_calculator(app_name_pcount, partition_num, std::move(policy));
+ new hotspot_calculator(app_name, partition_num, std::move(policy));
_hotspot_calculator_s... | fix: change the construction parameters of hotspot calculator | null | apache/incubator-pegasus | Apache License 2.0 | C++ |
@@ -593,6 +593,12 @@ class SetupUtils(Crypto64):
return ports
def apply_fapolicyd_rules(self, rules):
+
+ if os.path.exists('/etc/fapolicyd/rules.d'):
+ fapolicyd_rules_fn = '/etc/fapolicyd/rules.d/15-gluu.rules'
+ if not os.path.exists(fapolicyd_rules_fn):
+ self.writeFile(fapolicyd_rules_fn, '', backup=False)
+ else:... | fix: fapolicyd rules file | null | gluufederation/community-edition-setup | MIT License | Python |
@@ -254,7 +254,7 @@ func getAllItemUnits(ctx context.Context, m *gorpmapper.Mapper, db gorp.SqlExecu
itemIDs := make([]string, len(verifiedItems))
for i := range verifiedItems {
itemUnits[i] = verifiedItems[i].CDNItemUnit
- itemIDs = append(itemIDs, itemUnits[i].ItemID)
+ itemIDs[i] = itemUnits[i].ItemID
}
items, err :... | fix(cdn): item.LoadByIDs with a lot of empty ids | null | ovh/cds | BSD 3-Clause New or Revised License | Go |
@@ -1120,10 +1120,6 @@ class RenderBoxModel extends RenderBox with
bool isHit = result.addWithPaintTransform(
transform: transform != null ? getEffectiveTransform() : Matrix4.identity(),
position: position,
- hitTest: (BoxHitTestResult result, Offset position) {
- return result.addWithPaintOffset(
- offset: Offset(-scr... | fix: hittest scroll | null | openkraken/kraken | Apache License 2.0 | Dart |
@@ -1133,7 +1133,7 @@ impl TryFrom<String> for Provider<HttpProvider> {
/// use ethers_core::utils::Ganache;
/// use std::convert::TryFrom;
///
-/// # #[tokio::main]
+/// # #[tokio::main(flavor = "current_thread")]
/// # async fn main() -> Result<(), Box<dyn std::error::Error>> {
/// let ganache = Ganache::new().spawn(... | fix(providers): doc test for dev_rpc | null | gakonst/ethers-rs | Apache License 2.0 | Rust |
@@ -334,8 +334,20 @@ class CSSPositionedLayout {
// Scrolling element has two repaint boundary box, the inner box has constraints of inifinity
// so it needs to find the upper box for querying content constraints
RenderBoxModel containerBox = parent.isScrollingContentBox ? parent.parent as RenderBoxModel : parent;
- Si... | fix: positioned element size calculation when no width/height is set | null | openkraken/kraken | Apache License 2.0 | Dart |
@@ -207,7 +207,7 @@ public static void applyServiceConfigurationDisplay(
@Suggestions("clusterNode")
public @NonNull List<String> suggestNode(@NonNull CommandContext<CommandSource> $, @NonNull String input) {
- return CloudNet.instance().config().clusterConfig().nodes()
+ return CloudNet.instance().clusterNodeProvider(... | fix(node): suggest the own node for task commands | null | cloudnetservice/cloudnet-v3 | Apache License 2.0 | Java |
@@ -137,7 +137,14 @@ extension AuthenticationProviderAdapter {
let navController = UINavigationController(rootViewController: UIViewController())
navController.isNavigationBarHidden = true
navController.modalPresentationStyle = .overCurrentContext
- window.rootViewController?.present(navController, animated: false, com... | fix(auth): Fix an issue that prevents signInWithWebUI to present over a presenting vc | null | aws-amplify/amplify-ios | Apache License 2.0 | Swift |
@@ -56,6 +56,7 @@ PFCandidate::PFCandidate() :
setPdgId( translateTypeToPdgId( X ) );
refsInfo_.reserve(3);
+ std::fill(hcalDepthEnergyFractions_.begin(), hcalDepthEnergyFractions_.end(), 0.f);
}
@@ -63,6 +64,7 @@ PFCandidate::PFCandidate( const PFCandidatePtr& sourcePtr ):
PFCandidate(*sourcePtr)
{
sourcePtr_ = source... | fix: propagate depth info in various PFCandidate constructors and assignments | null | cms-sw/cmssw | Apache License 2.0 | C++ |
@@ -22,10 +22,6 @@ import java.util.Map;
import javax.validation.Valid;
import javax.validation.constraints.NotNull;
-import com.fasterxml.jackson.databind.ObjectMapper;
-import com.introproventures.graphql.jpa.query.schema.GraphQLExecutor;
-import com.introproventures.graphql.jpa.query.schema.impl.GraphQLJpaExecutor;
... | fix: convert ExecutionResult to Specification Map | null | activiti/activiti-cloud | Apache License 2.0 | Java |
@@ -412,7 +412,7 @@ export class Subscriber extends ISubscriber {
}
private async restartToComplete() {
- if (this.restartInProgress) return;
+ if (!this.restartInProgress) return;
await new Promise<void>((resolve) => {
setInterval(() => {
| fix: adds `!` | null | walletconnect/walletconnect-monorepo | Apache License 2.0 | TypeScript |
@@ -95,7 +95,7 @@ export function unifyRow(row: Row, kind: string): Row {
getFromSelector(row.object, 'tier')
: ''
- extraAttrs.push({ key: 'Tier', value: tier })
+ extraAttrs.push({ key: 'Tier', value: tier, outerCSS: 'kui--hide-in-narrower-windows' })
const app = row.object
? getFromLabel(row.object, 'app') ||
@@ -10... | fix(plugins/plugin-kubectl): hide Tier and Application column in narrow windows | null | ibm/kui | Apache License 2.0 | TypeScript |
@@ -2,7 +2,6 @@ require 'uri'
module Bugsnag
class Cleaner
- ENCODING_OPTIONS = {:invalid => :replace, :undef => :replace}.freeze
FILTERED = '[FILTERED]'.freeze
RECURSION = '[RECURSION]'.freeze
OBJECT = '[OBJECT]'.freeze
@@ -60,9 +59,9 @@ module Bugsnag
def clean_string(str)
if defined?(str.encoding) && defined?(Encodi... | fix: Resolve Ruby deprecation warning (in Ruby 2.7)/error (in 3.0) | null | bugsnag/bugsnag-ruby | MIT License | Ruby |
@@ -54,16 +54,16 @@ class Processor(object):
.. note:: This class is not a singleton but its children may be so.
"""
- _id = None
+ _cid = None
_type = None
_priority = 0 # 0 (lowest priority) .. 99 (highest priority)
_extensions = []
@classmethod
- def id(cls):
+ def cid(cls):
"""Processors' ID
"""
- return repr(cls) ... | fix: do not use _id (member) and id (method) in .processors.Processor | null | ssato/python-anyconfig | MIT License | Python |
@@ -35,7 +35,7 @@ export default class LessonTocController extends Controller {
buildTocItems() {
this.headings().forEach((heading) => {
- this.tocTarget.insertAdjacentHTML('beforeend', this.tocItem(heading));
+ this.tocTarget.insertAdjacentHTML('beforeend', this.tocItem(heading.toLowerCase()));
});
}
| fix: Headings with Capital Letters | null | theodinproject/theodinproject | MIT License | JavaScript |
@@ -168,7 +168,7 @@ class AlexaClient(MediaPlayerDevice):
self._dnd = None
# Polling state
self._should_poll = True
- self._last_update = 0
+ self._last_update = util.utcnow()
async def init(self, device):
"""Initialize."""
| fix(media_player): set proper last_update on init | null | custom-components/alexa_media_player | Apache License 2.0 | Python |
@@ -126,6 +126,15 @@ func TestStore_URL(t *testing.T) {
})
assert.Equal(t, Get().Store.URL("/xxxxxx.png"), "http://xxxxx.com/xxxx/file/xxxxxx.png")
+
+ testSetCfg(Config{
+ Store: Store{
+ Prefix: "/file",
+ Path: "./uploads",
+ },
+ })
+
+ assert.Equal(t, Get().Store.URL("http://xxxxx.com/xxxx/file/xxxx.png"), "http:/... | fix(config): fixed config store file get full url API error | null | goadmingroup/go-admin | Apache License 2.0 | Go |
@@ -173,10 +173,11 @@ public class ManifestAttributes {
} else if (attr.getType() == MAttrType.FLAG) {
StringBuilder sb = new StringBuilder();
for (Map.Entry<Long, String> entry : attr.getValues().entrySet()) {
- if (value == entry.getKey()) {
+ long key = entry.getKey();
+ if (value == key) {
sb = new StringBuilder(en... | fix(res): fix XML attribute decoding (PR | null | skylot/jadx | Apache License 2.0 | Java |
@@ -50,7 +50,7 @@ func NewCmdReopen(f *cmdutils.Factory) *cobra.Command {
return err
}
- fmt.Fprintln(out, utils.GreenCheck(), "Issue #"+i2+" reopened")
+ fmt.Fprintf(out, "%s Reopened Issue #%s\n", utils.GreenCheck(), i2)
fmt.Fprintln(out, issueutils.DisplayIssue(issue))
}
return nil
| fix(commands/issue/reopen): formalize confirmation message | null | profclems/glab | MIT License | Go |
@@ -2,6 +2,7 @@ package boot
import (
"fmt"
+ "github.com/jenkins-x/jx/pkg/auth"
"github.com/jenkins-x/jx/pkg/boot"
"github.com/jenkins-x/jx/pkg/cmd/helper"
"github.com/jenkins-x/jx/pkg/cmd/opts"
@@ -395,10 +396,17 @@ func (o *BootUpgradeOptions) cloneDevEnv() error {
cloneDir, err := ioutil.TempDir("", "")
err = os.Mk... | fix: allow clone of private dev environmemt | null | jenkins-x/jx | Apache License 2.0 | Go |
@@ -141,6 +141,10 @@ func (this *RoleAssignmentManagerV3) GetProjectUsers(s *mcclient.ClientSession,
query.Add(jsonutils.JSONNull, "effective")
}
+ if jsonutils.QueryBoolean(params, "system", false) {
+ query.Add(jsonutils.JSONNull, "include_system")
+ }
+
resource, e := params.GetString("resource")
if e != nil {
retur... | fix: filter project role with system=true | null | yunionio/yunioncloud | Apache License 2.0 | Go |
@@ -157,7 +157,7 @@ class Element extends Node
late CSSStyleDeclaration style;
/// The default user-agent style.
- final Map<String, dynamic> defaultStyle;
+ final Map<String, dynamic> _defaultStyle;
/// The inline style is a map of style property name to style property value.
final Map<String, dynamic> inlineStyle = {... | fix: merge main branch | null | openkraken/kraken | Apache License 2.0 | Dart |
@@ -15,6 +15,7 @@ module.exports = {
print: { colors, info, table },
strings: { padEnd },
ignite,
+ runtime,
} = toolbox
// display helpers
@@ -75,6 +76,14 @@ module.exports = {
const ignitePath = which('ignite')
const igniteVersion = await run('ignite version', { trim: true })
const igniteJson = ignite.loadIgniteConfi... | fix(doctor): generators is empty in ignite doctor - fixes by | null | infinitered/ignite | MIT License | TypeScript |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.