diff stringlengths 12 9.3k | message stringlengths 8 199 | reasoning_trace null | repo stringlengths 6 68 | license stringclasses 3
values | language stringclasses 16
values |
|---|---|---|---|---|---|
@@ -283,7 +283,7 @@ class SelfRoleCommand : AbstractCommand("command.selfrole") {
}
- val channel = if (context.args.size > 2) {
+ val channel = if (context.args.size > 1) {
getTextChannelByArgsNMessage(context, 1) ?: return
} else context.textChannel
| fix: wrong index check | null | toxicmushroom/melijn | MIT License | Kotlin |
@@ -125,7 +125,7 @@ class AttendeeViewModel(private val attendeeService: AttendeeService, private va
.subscribeOn(Schedulers.io())
.observeOn(AndroidSchedulers.mainThread())
.subscribe({
- tickets.value?.addAll(it)
+ tickets.value = it as MutableList<Ticket>?
}, {
Timber.e(it, "Error Loading tickets!")
}))
| fix: show ticket details in attendee fragment | null | fossasia/open-event-attendee-android | Apache License 2.0 | Kotlin |
@@ -1846,10 +1846,13 @@ impl Perform for Grid {
}
}
} else if c == 'E' {
+ // Moves cursor to beginning of the line n (default 1) lines down.
let count = next_param_or(1);
let pad_character = EMPTY_TERMINAL_CHARACTER;
self.move_cursor_down_until_edge_of_screen(count, pad_character);
+ self.move_cursor_to_beginning_of_l... | fix(compatibility): CSI cursor next line fix | null | zellij-org/zellij | MIT License | Rust |
@@ -54,7 +54,7 @@ const getGitRemoteWithGit = (): IRepositoryId | null => {
// we may live multiple levels in git repo
const originBuffer = execSync(
`git config --local --get remote.origin.url`,
- { timeout: 1000, stdio: `pipe` }
+ { timeout: 1000, stdio: `pipe`, windowsHide: true }
)
const repo = String(originBuffer)... | fix(gatsby-telemetry): use windowsHide to not show windows command prompt windows | null | gatsbyjs/gatsby | MIT License | TypeScript |
@@ -1740,13 +1740,16 @@ export class Page extends EventEmitter {
options.encoding === 'base64'
? result.data
: Buffer.from(result.data, 'base64');
- if (!isNode && options.path) {
+
+ if (options.path) {
+ if (!isNode) {
throw new Error(
'Screenshots can only be written to a file path in a Node environment.'
);
}
const... | fix: make screenshots work in puppeteer-web | null | puppeteer/puppeteer | Apache License 2.0 | TypeScript |
import { flatten } from '../common/core.helpers';
import { AnyDeclaration } from '../common/core.types';
-import { NgModuleWithProviders } from '../common/func.is-ng-module-def-with-providers';
+import { NgModuleWithProviders, NgModuleWithProvidersA15 } from '../common/func.is-ng-module-def-with-providers';
import { is... | fix(a15): supporting env provides | null | ike18t/ng-mocks | MIT License | TypeScript |
@@ -113,7 +113,9 @@ def rename_atomic_files(folder, old_name, new_name):
base, suf = os.path.splitext(f)
if not old_name in base:
continue
- assert suf in {".inter", ".user", ".item"}
+ if suf not in {".inter", ".user", ".item"}:
+ logger = getLogger()
+ logger.warning(f'Moving downloaded file with suffix [{suf}].')
os... | fix: bugs on the suffix of dataset downloading | null | rucaibox/recbole | MIT License | Python |
@@ -348,6 +348,7 @@ public:
NotifiedVersion oldestVersion; // See also storageVersion()
NotifiedVersion durableVersion; // At least this version will be readable from storage after a power failure
+ Deque<std::pair<Version,Version>> recoveryVersionSkips;
int64_t versionLag; // An estimate for how many versions it takes... | fix: the storage server must always keep MAX_READ_TRANSACTION_LIFE_VERSIONS of history in memory, because forced recovery could roll back an epoch end | null | apple/foundationdb | Apache License 2.0 | C++ |
@@ -15,6 +15,7 @@ NPM_CHANNEL=$1
if [ "$NPM_CHANNEL" = "dev" ]; then
echo "Not switching branch because we are on NPM_CHANNEL dev."
+ echo "::set-output name=branch::master"
elif [ "$NPM_CHANNEL" = "promote_patch-dev" ]; then
PATCH_BRANCH=$(node scripts/setup_branch.js "patch-dev")
git checkout stable
| fix: add missing GH action output for Prisma CLI dev | null | prisma/language-tools | Apache License 2.0 | Shell |
@@ -212,7 +212,7 @@ export default function () {
.indexOf(enumId) > -1
? enumId
: snakeCase(`ovh_contact_edit_${enumId}`), enumValue].join('_')),
- enumValue,
+ value: enumValue,
});
});
} else if (angular.isObject(models[value.fullType].properties)) {
| fix: value is now correctly settled | null | ovh/manager | BSD 3-Clause New or Revised License | JavaScript |
@@ -1082,8 +1082,7 @@ impl<'help, 'app> Parser<'help, 'app> {
return self.parse_opt(&val, opt, matcher);
}
debug!("Parser::parse_long_arg: Found a flag");
- self.check_for_help_and_version_str(&arg)?;
- return if let Some(rest) = val {
+ if let Some(rest) = val {
debug!(
"Parser::parse_long_arg: Got invalid literal `{:... | fix(parser): run `check_for_help_and_version_str` only if no literal is found with flag | null | clap-rs/clap | Apache License 2.0 | Rust |
@@ -7,7 +7,7 @@ module.exports = async (argv, globalOpts) => {
const res = await prompts({
type: 'confirm',
name: 'addHook',
- message: `This will modify your app.json. Is that ok?`,
+ message,
initial: true
}, { onCancel })
if (res.addHook) {
@@ -16,3 +16,5 @@ module.exports = async (argv, globalOpts) => {
if (msg) co... | fix(expo-cli): Add API hook command should say what it's going to do | null | bugsnag/bugsnag-js | MIT License | JavaScript |
@@ -110,8 +110,11 @@ def _table_ref_to_urn(ref: BigQueryTableRef, env: str) -> str:
)
-def _job_name_ref(project: str, jobId: str) -> str:
+def _job_name_ref(project: str, jobId: str) -> Optional[str]:
+ if project and jobId:
return f"projects/{project}/jobs/{jobId}"
+ else:
+ return None
@dataclass
@@ -145,6 +148,7 @@... | fix(bigquery_usage): gracefully fail while parsing GCP log events | null | linkedin/datahub | Apache License 2.0 | Python |
@@ -138,7 +138,11 @@ impl CentralPanel {
let mut panel_ui = Ui::new(ctx.clone(), layer_id, id, panel_rect, clip_rect);
let frame = Frame::background(&ctx.style());
- let r = frame.show(&mut panel_ui, |ui| add_contents(ui));
+ let r = frame.show(&mut panel_ui, |ui| {
+ let r = add_contents(ui);
+ ui.expand_to_include_re... | fix: The background of CentralPanel will now cover unused space too | null | emilk/egui | Apache License 2.0 | Rust |
public static class WizardPipelinesConfig
{
public const string Contents = @"<configuration>
+ <pipelines>
+ <download8 title=""Downloading Sitecore"">
+ <processor type=""SIM.Tool.Windows.Pipelines.Download8.Download8Processor, SIM.Tool.Windows""
+ title=""Downloading packages"" />
+ </download8>
+ </pipelines>
<wizar... | fix: Download Sitecore Wizard does not download Sitecore files (closes | null | sitecore/sitecore-instance-manager | MIT License | C# |
@@ -30,7 +30,7 @@ public class VersionRestSearch extends ObjectRestSearch {
@Parameter(description="The corresponding resource identifier(s) to match")
private List<String> resource;
- @Parameter(description = "The types of resources to get the versions for", in = ParameterIn.QUERY)
+ @Parameter(description = "The type... | fix: remove in parameter | null | b2ihealthcare/snow-owl | Apache License 2.0 | Java |
@@ -100,6 +100,7 @@ func handleOIDCAuth(ctx context.Context, w http.ResponseWriter, req *http.Reques
qs.Set("code", jsonutils.NewString(code))
qs.Set("state", jsonutils.NewString(auth.State))
redirUrl := addQuery(auth.RedirectUri, qs)
+ appsrv.DisableClientCache(w)
appsrv.SendRedirect(w, redirUrl)
}
| fix: disable cache for oidc auth callback | null | yunionio/yunioncloud | Apache License 2.0 | Go |
@@ -38,7 +38,7 @@ const AccordionPanelTriggerComponent: React.SFC<MergedProps> = ({
<Button
id={`${name}-trigger`}
className={buttonClassNames}
- aria-expanded={!!expanded}
+ aria-expanded={!!isExpanded}
aria-controls={`${name}-content`}
onClick={handleClick}
theme={theme}
| fix: change area-expanded value | null | kufu/smarthr-ui | MIT License | TypeScript |
@@ -43,8 +43,8 @@ class GeReposScreen extends StatelessWidget {
starCount: v.stargazersCount,
forkCount: v.forksCount,
note: 'Updated ${timeago.format(v.updatedAt)}',
- url: '/gitea/${v.namespace.path}/${v.path}',
- avatarLink: '/gitea/${v.namespace.path}',
+ url: '/gitee/${v.namespace.path}/${v.path}',
+ avatarLink: '... | fix: gitee typo | null | git-touch/git-touch | Apache License 2.0 | Dart |
@@ -31,10 +31,14 @@ abstract class AbstractUserPreferences {
String getTitleString();
/// Title of the header, always visible.
+ ///
+ /// With [Flexible] for overflow management.
@protected
- Widget getTitle() => Text(
+ Widget getTitle() => Flexible(
+ child: Text(
getTitleString(),
style: themeData.textTheme.headlin... | fix: - overflow management for preference titles | null | openfoodfacts/smooth-app | Apache License 2.0 | Dart |
@@ -73,7 +73,7 @@ class RenderTextBox extends RenderBoxModel with RenderObjectWithChildMixin<Rende
Node hostTextNode = elementManager.getEventTargetByTargetId<EventTarget>(targetId);
Element parentElement = hostTextNode.parent;
final double contentWidth = parentElement.getRenderBoxModel().getContentWidth();
- if (_rend... | fix: fix renderParagraph error with no contentWidth | null | openkraken/kraken | Apache License 2.0 | Dart |
// Unauthorized copying of this file, via any medium is strictly prohibited.
// Proprietary and confidential.
////////////////////////////////////////////////////////////////////////////////
+#pragma once
#include "CacheMgr.h"
| fix(cache): add pragma once in header | null | milvus-io/milvus | Apache License 2.0 | C |
@@ -67,7 +67,7 @@ export class Table extends React.PureComponent {
render() {
return (
<div className={styles.container}>
- <AutoSizer disableHeight={true}>
+ <AutoSizer disableHeight={!this.props.shouldFillRemainingVerticalSpace}>
{/*
NOTE: because `AutoSizer` implements `PureComponent`, if we pass
a reference to a fu... | fix(table): Make table height dynamic again | null | commercetools/ui-kit | MIT License | JavaScript |
@@ -57,6 +57,7 @@ limitations under the License.
#endif
static bool g_terminate = false;
+static bool g_terminating = false;
static bool g_plugin_input = false;
#ifdef HAS_CHISELS
vector<sinsp_chisel*> g_chisels;
@@ -72,11 +73,11 @@ static void signal_callback(int signal)
if(g_plugin_input)
{
//
- // Input plugins can ... | fix: when using a source plugin, force an exit only if the plugin is actually stuck on a next(), not if its working on the close() | null | draios/sysdig | Apache License 2.0 | C++ |
use borsh::{BorshDeserialize, BorshSerialize};
use serde::{de, Deserialize, Serialize};
+use std::convert::TryFrom;
use std::fmt;
-use std::{convert::TryFrom, str::FromStr};
+use std::str::FromStr;
use crate::env::is_valid_account_id;
use crate::AccountId;
@@ -73,7 +74,7 @@ impl TryFrom<String> for ValidAccountId {
typ... | fix: addr comments | null | near/near-sdk-rs | Apache License 2.0 | Rust |
@@ -128,7 +128,11 @@ function ColumnControlComponent(props: RenderComponentProps) {
updateFocus,
updateOption,
} = props;
+
const [visibility, setVisibility] = useState(item.isVisible);
+ useEffect(() => {
+ setVisibility(item.isVisible);
+ }, [item.isVisible]);
const debouncedUpdate = _.debounce(updateOption, 1000);
c... | fix: table column visibility | null | appsmithorg/appsmith | Apache License 2.0 | TypeScript |
@@ -34,13 +34,14 @@ struct SnpKeepPersonality {
}
impl KeepPersonality for SnpKeepPersonality {
- fn map(vm_fd: &mut VmFd, region: &Region) -> std::io::Result<()> {
+ fn map(vm_fd: &mut VmFd, region: &Region) -> io::Result<()> {
let memory_region = kvm_enc_region {
addr: region.backing().as_ptr() as _,
size: region.bac... | fix(sev): return proper io::Error for `register_enc_memory_region()` | null | enarx/enarx | Apache License 2.0 | Rust |
@@ -1025,12 +1025,12 @@ class Element extends Node
void _styleOpacityChangedListener(String property, String original, String present) {
// Update opacity.
- updateRenderOpacity(present, parentRenderObject: renderElementBoundary);
+ updateRenderOpacity(present, parentRenderObject: renderIntersectionObserver);
}
void _s... | fix: opacity render error | null | openkraken/kraken | Apache License 2.0 | Dart |
@@ -158,6 +158,7 @@ module Course::Assessment::AssessmentAbility
{ question_assessments: { assessment: { tab: { category: { course: course } } } } }
[
+ Course::Assessment::Question::ForumPostResponse,
Course::Assessment::Question::MultipleResponse,
Course::Assessment::Question::TextResponse,
Course::Assessment::Questi... | fix: add missing cancancan permission for forum post response | null | coursemology/coursemology2 | MIT License | Ruby |
@@ -99,14 +99,3 @@ gulp.task( 'phpunit', function() {
gulp.src( '' )
.pipe( phpunit( './vendor/bin/phpunit' ) );
} );
-
-/**
- * Gulp task to run the default tests.
- */
-gulp.task( 'test', () => {
- runSequence(
- 'jest',
- 'phpunit'
- );
-} );
-
| fix: Remove gulp task | null | google/site-kit-wp | Apache License 2.0 | JavaScript |
@@ -294,7 +294,8 @@ async fn run_compactor(compactor: Arc<Compactor>, shutdown: CancellationToken) {
debug!("no compaction candidates found");
// sleep for a second to avoid a hot busy loop when the
// catalog is polled
- tokio::time::sleep(PAUSE_BETWEEN_NO_WORK).await
+ tokio::time::sleep(PAUSE_BETWEEN_NO_WORK).await;... | fix: do not attempt to poll future lists in compactor | null | influxdata/influxdb_iox | Apache License 2.0 | Rust |
@@ -84,7 +84,7 @@ export class NgaTabsetComponent implements AfterContentInit {
}
selectTab(selectedTab: NgaTabComponent) {
- this.tabs.forEach(tab => tab.active = tab == selectedTab);
+ this.tabs.forEach(tab => tab.active = tab === selectedTab);
this.changeTab.emit(selectedTab);
}
}
| fix(tabs): fix linter error | null | akveo/nebular | MIT License | TypeScript |
@@ -256,8 +256,8 @@ public class SimpleItemStorage implements Storage<ItemVariant>, Inventory {
public ItemStack removeStack(int slot, int amount) {
var existingStack = stacks.get(slot);
- var removedStack = new ItemStack(existingStack.getItem(), Math.min(existingStack.getCount(), amount));
- removedStack.setNbt(existi... | fix: removeStack crashing with no NBT | null | mixinors/astromine | MIT License | Java |
@@ -65,7 +65,7 @@ JSContext::JSContext(int32_t contextId, const JSExceptionHandler& handler, void*
JS_DefinePropertyGetSet(m_ctx, globalObject, windowKey, windowGetter, JS_UNDEFINED, JS_PROP_HAS_GET | JS_PROP_ENUMERABLE);
JS_FreeAtom(m_ctx, windowKey);
JS_SetContextOpaque(m_ctx, this);
- JS_SetHostPromiseRejectionTrack... | fix: fix crash when reportError | null | openkraken/kraken | Apache License 2.0 | C++ |
@@ -30,7 +30,7 @@ void set_role(client *client, const uint64_t guild_id, const uint64_t channel_id
if (role->id) {
char text[150];
- snprintf(text, sizeof(text), "Succesfully created <@!%lu> role", role->id);
+ snprintf(text, sizeof(text), "Succesfully created <@!%" PRIu64 "> role", role->id);
channel::message::create:... | fix: change %lu to PRIu64 | null | cee-studio/orca | MIT License | C++ |
@@ -538,7 +538,9 @@ export class MediaRequest {
const tvdbId = series.external_ids.tvdb_id ?? media.tvdbId;
if (!tvdbId) {
- this.handleRemoveParentUpdate();
+ const requestRepository = getRepository(MediaRequest);
+ await mediaRepository.remove(media);
+ await requestRepository.remove(this);
throw new Error('Series wa... | fix(requests): correctly handle when tvdbid is missing | null | sct/overseerr | MIT License | TypeScript |
@@ -670,7 +670,6 @@ class TransactionsTests: XCTestCase {
func testGenerateDummyKeystore() throws {
let keystore = try! EthereumKeystoreV3.init(password: "web3swift")
let dump = try! keystore!.serialize()
- let jsonString = String.init(data: dump!, encoding: .ascii)
-
+ XCTAssertNotNil(String(data: dump!, encoding: .as... | fix: added XCTAssert to testGenerateDummyKeystore | null | skywinder/web3swift | Apache License 2.0 | Swift |
@@ -758,7 +758,7 @@ void SimulationConfig::generateNormalConfig(int minimumReplication) {
if(datacenters == 2 && g_random->random01() < 0.5) {
db.primaryDcId = LiteralStringRef("0");
db.remoteDcId = LiteralStringRef("1");
- machine_count = g_random->randomInt( std::max( 2+datacenters, datacenters*db.minMachinesRequired... | fix: make sure there are enough machines in each dc to support triple replication for the configure workload | null | apple/foundationdb | Apache License 2.0 | C++ |
@@ -51,6 +51,7 @@ const (
OidcPrivateKeySecretArnFlag = "oidc-private-key-secret-arn"
prefixForPrivateKeySecret = "rosa-private-key-"
+ secretsManagerService = "secretsmanager"
)
var args struct {
@@ -111,6 +112,32 @@ func run(cmd *cobra.Command, argv []string) {
}
}
+ oidcPrivateKeySecretArn := args.oidcPrivateKeySecr... | fix: add question for private key secret arn | null | openshift/rosa | Apache License 2.0 | Go |
@@ -425,10 +425,9 @@ App::get('/v1/storage/files/:fileId/view')
->label('sdk.response.type', '*/*')
->label('sdk.methodType', 'location')
->param('fileId', '', new UID(), 'File unique ID.')
- ->param('as', '', new WhiteList(['pdf', /*'html',*/ 'text'], true), 'Choose a file format to convert your file to. Currently you... | fix: deprecate option | null | appwrite/appwrite | BSD 3-Clause New or Revised License | PHP |
@@ -20,6 +20,7 @@ ENTERPRISE_DOCS_ROOT=os.path.join(ENTERPRISE_ROOT, 'content')
PUBLIC_DOCS_ROOT=os.path.join(CWD, 'public', 'content')
EXTENSIONS_TO_COPY=('.md','.jpg','.png', '.css', '.js', '.gif')
KEYWORD_DELIMITER = '@@'
+IS_LOCAL_REPO=False
def pretty_path(path):
short = path.replace(CWD, '')
@@ -48,6 +49,8 @@ def... | fix(docs): don't remove enterprise repo when it is local | null | eclipse/steady | Apache License 2.0 | Python |
@@ -207,7 +207,7 @@ class CSSStyleDeclaration {
animation.onfinish = (AnimationPlaybackEvent event) {
_setTransitionEndProperty(propertyName, end);
- _propertyRunningTransition[propertyName] = null;
+ _propertyRunningTransition.remove(propertyName);
CSSTransition.dispatchTransitionEvent(target, CSSTransitionEvent.end);... | fix: css transition bug | null | openkraken/kraken | Apache License 2.0 | Dart |
@@ -112,7 +112,14 @@ async fn execute(
handle: Option<JoinHandle<()>>,
) -> Result<WithContentType<Body>> {
let format_typ = format.typ.clone();
- let mut data_stream = interpreter.execute(ctx.clone()).await?;
+ let mut data_stream = ctx
+ .try_spawn({
+ let ctx = ctx.clone();
+ async move { interpreter.execute(ctx.clo... | fix: use context's runtime in clickhouse handler while executing interpreter | null | datafuselabs/databend | Apache License 2.0 | Rust |
@@ -21,7 +21,13 @@ class RESTGatewayPea(GatewayPea):
from fastapi.middleware.cors import CORSMiddleware
app = FastAPI(title=self.__class__.__name__)
- app.add_middleware(CORSMiddleware, allow_origins=['*'])
+ app.add_middleware(
+ CORSMiddleware,
+ allow_origins=['*'],
+ allow_credentials=True,
+ allow_methods=['*'],
+... | fix: fixes CORS behavior for REST API | null | jina-ai/jina | Apache License 2.0 | Python |
-import { Schema, useFieldSchema } from '@formily/react';
+import { Field } from '@formily/core';
+import { Schema, useField, useFieldSchema } from '@formily/react';
import { Spin } from 'antd';
-import React, { createContext, useContext } from 'react';
+import React, { createContext, useContext, useEffect } from 'reac... | fix: skip field validation when fields are hidden | null | nocobase/nocobase | Apache License 2.0 | TypeScript |
@@ -31,7 +31,7 @@ class SearchViewModel(
val params = SearchParams()
fun searchForSeries(type: ItemType) {
- if (params.searchText.isBlank() && type == ItemType.Unknown) {
+ if (params.searchText.isBlank() || type == ItemType.Unknown) {
Timber.w("No text entered or type was unknown")
return
}
| fix(search): search was able to perform with an empty string | null | chesire/nekome | Apache License 2.0 | Kotlin |
@@ -1018,23 +1018,12 @@ func closestPeerFunc(closest *swarm.Address, addr swarm.Address, spf sanctionedP
}
}
-func isIn(a swarm.Address, addresses []p2p.Peer) bool {
- for _, v := range addresses {
- if v.Address.Equal(a) {
- return true
- }
- }
- return false
-}
-
// ClosestPeer returns the closest peer to a given add... | fix: removed kademlia and libp2p discrepancy kludge | null | ethersphere/bee | BSD 3-Clause New or Revised License | Go |
@@ -632,6 +632,7 @@ func (manager *SVpcManager) newFromCloudVpc(ctx context.Context, userCred mcclie
vpc.ExternalId = extVPC.GetGlobalId()
vpc.IsDefault = extVPC.GetIsDefault()
vpc.CidrBlock = extVPC.GetCidrBlock()
+ vpc.ExternalAccessMode = extVPC.GetExternalAccessMode()
vpc.CloudregionId = region.Id
vpc.ManagerId = p... | fix(region): vpc sync external access mode fix | null | yunionio/yunioncloud | Apache License 2.0 | Go |
@@ -306,9 +306,12 @@ export class HttpRouteDetailComponent implements OnChanges {
try {
const start = performance.now();
let body: any = undefined;
- const headers: Record<any, any> = {};
- Object.assign(headers, routeState.headers);
+ const headers: Record<any, any> = {}
+ for (const { name, value } of routeState.head... | fix(api-console): fix request headers | null | deepkit/deepkit-framework | MIT License | TypeScript |
@@ -17,6 +17,7 @@ use crt0stack::{self, Builder, Entry};
use goblin::elf::header::header64::Header;
use goblin::elf::header::ELFMAG;
use goblin::elf::program_header::program_header64::*;
+use lset::Line;
use nbytes::bytes;
use spinning::{Lazy, RwLock};
use x86_64::structures::paging::{Page, PageTableFlags, Size4KiB};
@... | fix(shim-kvm): correctly handle `brk()` unmap | null | enarx/enarx | Apache License 2.0 | Rust |
@@ -24,8 +24,10 @@ impl Config {
if let Ok(path) = env::var("TREE_SITTER_DIR") {
let mut path = PathBuf::from(path);
path.push("config.json");
+ if path.is_file() {
return Ok(Some(path));
}
+ }
let xdg_path = Self::xdg_config_file()?;
if xdg_path.is_file() {
| fix(cli): Avoid ENOENT if config.json is not in TREE_SITTER_DIR | null | tree-sitter/tree-sitter | MIT License | Rust |
@@ -32,6 +32,7 @@ class BaseTemplatePage(WebPage):
# to be able to inspect the context dict
# Use the macro "inspect" from macros.html
self.context._context_dict = self.context
+ self.context.canonical = frappe.utils.get_url(frappe.utils.escape_html(self.path))
# context sends us a new template path
if self.context.tem... | fix: Add canonical link | null | frappe/frappe | MIT License | Python |
@@ -31,11 +31,17 @@ const multiply = (content, attribute) => Number.parseFloat(content) * Number.par
const newlineToBr = content => content.replace(/\n/g, '<br>')
const plus = (content, attribute) => Number.parseFloat(content) + Number.parseFloat(attribute)
const prepend = (content, attribute) => attribute + content
-c... | fix: replace the replaceAll function | null | maizzle/framework | MIT License | JavaScript |
@@ -309,7 +309,7 @@ public class PlayModeTests {
public IEnumerator PlayMode_EntityOBJShapeUpdate() {
var sceneController = InitializeSceneController(true);
- yield return new WaitForSeconds(0.01f);
+ yield return new WaitForSeconds(1f);
var sceneData = new LoadParcelScenesMessage.UnityParcelScene();
var scene = sceneC... | fix: updated OBJ loading unit tests timing to hopefully fix its problem when running in unity cloud build | null | decentraland/explorer | Apache License 2.0 | C# |
@@ -8,6 +8,7 @@ import Dropdown from './Dropdown';
import Fieldset from './Fieldset';
import Hyperlink from './Hyperlink';
import Icon from './Icon';
+import Input from './Input';
import InputSelect from './InputSelect';
import InputText from './InputText';
import ListBox from './ListBox';
@@ -50,6 +51,7 @@ export {
Fi... | fix: export input component | null | openedx/paragon | Apache License 2.0 | JavaScript |
@@ -975,8 +975,6 @@ class Element extends Node
if (CSSLength.isPercentage(present)) return;
double presentValue = CSSLength.toDisplayPortValue(present, viewportSize);
- if (presentValue == null) return;
-
renderBoxModel.renderStyle.updateSizing(property, presentValue);
}
| fix: fix size set to auto | null | openkraken/kraken | Apache License 2.0 | Dart |
@@ -19,7 +19,11 @@ impl VirtualDom {
/// queue
pub(crate) fn handle_task_wakeup(&mut self, id: TaskId) {
let mut tasks = self.scheduler.tasks.borrow_mut();
- let task = &tasks[id.0];
+
+ let task = match tasks.get(id.0) {
+ Some(task) => task,
+ None => return,
+ };
let waker = task.waker();
let mut cx = Context::from_... | fix: dont handle wakeups from finished tasks | null | dioxuslabs/dioxus | Apache License 2.0 | Rust |
@@ -2848,7 +2848,7 @@ namespace Discord.WebSocket
await _gatewayLogger.DebugAsync("Received Dispatch (WEBHOOKS_UPDATE)").ConfigureAwait(false);
var guild = State.GetGuild(data.GuildId);
- var channel = State.GetChannel(data.ChanelId);
+ var channel = State.GetChannel(data.ChannelId);
await TimedInvokeAsync(_webhooksUpd... | fix: Webhookupdated data naming | null | discord-net/discord.net | MIT License | C# |
@@ -18,6 +18,8 @@ package org.mybatis.spring.boot.autoconfigure;
import java.io.IOException;
import java.io.UncheckedIOException;
import java.net.URL;
+import java.net.URLDecoder;
+import java.nio.charset.Charset;
import java.util.List;
import java.util.stream.Collectors;
import java.util.stream.Stream;
@@ -48,6 +50,7 ... | fix: fix StringIndexOutOfBoundsException on issue | null | mybatis/spring-boot-starter | Apache License 2.0 | Java |
@@ -22,7 +22,6 @@ defmodule Ockam.Services.Provider.SecureChannel do
def child_spec(:identity_secure_channel, args) do
options = service_options(:identity_secure_channel, args)
- {extra_services, options} = Keyword.pop(options, :extra_services)
## TODO: make this more standard approach
id =
@@ -35,10 +34,7 @@ defmodule... | fix(elixir): remove unused extra_services | null | ockam-network/ockam | Apache License 2.0 | Elixir |
@@ -62,9 +62,8 @@ class UserProfile {
}
setup_user_search() {
- var me = this;
- this.$user_search_button = this.page.set_secondary_action('Change User', function() {
- me.show_user_search_dialog();
+ this.$user_search_button = this.page.set_secondary_action('Change User', () => {
+ this.show_user_search_dialog();
});
... | fix: use arrow function | null | frappe/frappe | MIT License | JavaScript |
@@ -24,7 +24,7 @@ func NewEKSNodeGroup(d *schema.ResourceData, u *schema.ResourceData) *schema.Res
scalingConfig := d.Get("scaling_config").Array()[0]
desiredSize := scalingConfig.Get("desired_size").Int()
instanceType := "t3.medium"
- if d.Get("instance_types").Exists() {
+ if len(d.Get("instance_types").Array()) > 0 ... | fix(eks_node_group): fix bug with empty array | null | infracost/infracost | Apache License 2.0 | Go |
@@ -663,15 +663,17 @@ class TextureResourceHandler
void releaseTextureID(unsigned int texName, unsigned int texUnit)
{
#if MRPT_HAS_OPENGL_GLUT
+ MRPT_START
auto lck = mrpt::lockHelper(m_texturesMtx);
if (MRPT_OPENGL_VERBOSE)
std::cout << "[mrpt releaseTextureID] textureName: " << texName
<< " unit: " << texUnit << std... | fix: destroy opengl textures from same thread | null | mrpt/mrpt | BSD 3-Clause New or Revised License | C++ |
@@ -49,6 +49,8 @@ namespace Bunit
{
if (renderedComponent is null)
throw new ArgumentNullException(nameof(renderedComponent));
+ if (parameters is null)
+ throw new ArgumentNullException(nameof(parameters));
SetParametersAndRender(renderedComponent, ToParameterView(parameters));
}
@@ -77,7 +79,7 @@ namespace Bunit
if (... | fix: build warnings/errors from net6 compiler/sdk | null | bunit-dev/bunit | MIT License | C# |
@@ -25,7 +25,7 @@ defmodule Ash.Schema do
field(attribute.name, Ash.Type.ecto_type(attribute.type),
primary_key: attribute.primary_key?,
read_after_writes: read_after_writes?,
- redacted: attribute.sensitive?
+ redact: attribute.sensitive?
)
end
@@ -81,7 +81,7 @@ defmodule Ash.Schema do
field(attribute.name, Ash.Type.e... | fix: redact fields in the resource struct as well | null | ash-project/ash | MIT License | Elixir |
@@ -1188,8 +1188,7 @@ pub(crate) fn fetch_and_handle_events<'a>(
let mut pdus = vec![];
for id in events {
// a. Look at auth cache
- let pdu =
- match auth_cache.get(id) {
+ let pdu = match auth_cache.get(id) {
Some(pdu) => {
debug!("Found {} in cache", id);
// We already have the auth chain for events in cache
@@ -12... | fix: bug when fetching events over federation | null | timokoesters/conduit | Apache License 2.0 | Rust |
@@ -52,7 +52,9 @@ togglbutton.render(
let project = '';
const projectId = rootEl.getAttribute('data-item-id');
- if (document.getElementById(`item_${projectId}`)) {
+ if (document.querySelector('.project_view h1 span.simple_content')) {
+ project = document.querySelector('.project_view h1 span.simple_content').textCont... | fix(todoist): Fix todoist project population | null | toggl/track-extension | Apache License 2.0 | JavaScript |
@@ -222,10 +222,27 @@ public abstract class EntityService {
public abstract ListResult<RecordTemplate> listLatestAspects(@Nonnull final String entityName,
@Nonnull final String aspectName, final int start, int count);
+
+ @Nonnull
+ private UpdateAspectResult wrappedIngestAspectToLocalDB(@Nonnull final Urn urn, @Nonnul... | fix(platform): prevent invalid urns during ingestion | null | linkedin/datahub | Apache License 2.0 | Java |
-//! `Tab`s holds multiple panes. It tracks their coordinates (x/y) and size, as well as how they should be resized
+//! `Tab`s holds multiple panes. It tracks their coordinates (x/y) and size,
+//! as well as how they should be resized
use crate::common::{AppInstruction, SenderWithContext};
use crate::panes::{PaneId, ... | fix(clippy): unneccessary `>= y + 1` or `x - 1 >=` | null | zellij-org/zellij | MIT License | Rust |
@@ -157,7 +157,6 @@ class ScrollPositionWithSingleContext extends ScrollPosition implements ScrollAc
if (userScrollDirection == value)
return;
_userScrollDirection = value;
- // didUpdateScrollDirection(value);
}
@override
@@ -208,9 +207,7 @@ class ScrollPositionWithSingleContext extends ScrollPosition implements Scrol... | fix: delete unuselse code and add notifyListeners | null | openkraken/kraken | Apache License 2.0 | Dart |
@@ -987,7 +987,6 @@ public class HistoryCleanupTest {
@Test
public void testHistoryCleanupHelper() throws ParseException {
processEngineConfiguration.setHistoryCleanupBatchWindowStartTime("22:00+0100");
- processEngineConfiguration.setHistoryCleanupBatchWindowEndTime("01:00+0200");
processEngineConfiguration.initHistor... | fix(history-cleanup): small fix | null | camunda/camunda-bpm-platform | Apache License 2.0 | Java |
@@ -134,7 +134,7 @@ const ViewEditMultisigCosigners = () => {
const exportCosigner = () => {
setIsShareModalVisible(false);
- fs.writeFileAndExport(exportFilename, exportString);
+ setTimeout(() => fs.writeFileAndExport(exportFilename, exportString), 1000);
};
const onSave = async () => {
| fix: share panel bug when sharing multisig cosigner | null | bluewallet/bluewallet | MIT License | JavaScript |
@@ -235,6 +235,23 @@ class TemplatesPlugin {
)
}
+ const typeTemplates = templates.byTypeName.get(typeName)
+ const collection = collections[typeName]
+ const nodes = collection.data()
+
+ // remove automatic templates from collections
+ // without a route where no nodes has a path
+ for (const [index, tmpl] of typeTem... | fix(templates): skip auto template if no node paths | null | gridsome/gridsome | MIT License | JavaScript |
@@ -35,7 +35,7 @@ function openGraphHelper(options = {}) {
const keywords = page.keywords || (page.tags && page.tags.length ? page.tags : undefined) || config.keywords;
const title = options.title || page.title || config.title;
const type = options.type || (this.is_post() ? 'article' : 'website');
- const url = options... | fix(open_graph): remove index.html from url | null | hexojs/hexo | MIT License | JavaScript |
@@ -101,7 +101,12 @@ impl Cache {
let reader = std::io::BufReader::new(std::fs::File::open(path).ok()?);
if let Ok(inner) = serde_json::from_reader::<_, CacheEnvelope<T>>(reader) {
// If this does not return None then we have passed the expiry
- if SystemTime::now().checked_sub(Duration::from_secs(inner.expiry)).is_som... | fix: correctly check cache expiry | null | gakonst/ethers-rs | Apache License 2.0 | Rust |
@@ -1254,7 +1254,7 @@ func (s *CLISuite) TestSynchronizationWfLevelMutex() {
RunCli([]string{"get", "synchronization-wf-level-mutex"}, func(t *testing.T, output string, err error) {
assert.Contains(t, output, "Pending")
}).
- WaitForWorkflow().
+ WaitForWorkflow(fixtures.ToBeCompleted, 120*time.Second).
Then().
ExpectW... | fix(test): Fixed Flaky e2e tests TestSynchronizationWfLevelMutex and TestResourceTemplateStopAndTerminate/ResourceTemplateStop | null | argoproj/argo-workflows | Apache License 2.0 | Go |
@@ -13,6 +13,8 @@ func GetFuncMap(m map[string]interface{}) map[string]interface{} {
for k, v := range exprpkg.GetExprEnvFunctionMap() {
env[k] = v
}
+ delete(env, "env")
+ delete(env, "expandenv")
env["toJson"] = toJson
env["sprig"] = sprig.GenericFuncMap()
return env
| fix(controller): Remove un-safe Sprig funcs. Fixes | null | argoproj/argo-workflows | Apache License 2.0 | Go |
@@ -15,7 +15,7 @@ rm /exporter/**/*.?ar 2> /dev/null
rm /exporter/client-components/*.?ar 2> /dev/null
VULAS_JAVA_BACKEND_COMPONENTS="frontend-apps frontend-bugs patch-lib-analyzer rest-backend rest-lib-utils"
-VULAS_JAVA_CLIENT_COMPONENTS="patch-analyzer cli-scanner plugin-maven plugin-gradle"
+VULAS_JAVA_CLIENT_COMPO... | fix(docker): remove plugin-gradle from exporter | null | eclipse/steady | Apache License 2.0 | Shell |
@@ -55,8 +55,8 @@ module.exports = async (ctx) => {
title = $('title').text();
items = await Promise.all(
- $('.post-card')
- .find('.fancy-link')
+ $('.card-list__items')
+ .find('a')
.slice(0, ctx.query.limit ? parseInt(ctx.query.limit) : 25)
.toArray()
.map((item) => {
| fix(route): kemono.party parse failure | null | diygod/rsshub | MIT License | JavaScript |
@@ -111,6 +111,7 @@ class DbPopulatorReal(
project.name = projectName
project.userOwner = userAccount
en = createLanguage("en", project)
+ project.baseLanguage = en
de = createLanguage("de", project)
permissionService.grantFullAccessToProject(userAccount, project)
projectRepository.saveAndFlush(project)
| fix: Set base language input to default value | null | tolgee/tolgee-platform | Apache License 2.0 | Kotlin |
@@ -8,7 +8,7 @@ import { FrameWithRecentlyViewed } from "v2/Components/FrameWithRecentlyViewed"
import { RelatedCollectionsRailFragmentContainer as RelatedCollectionsRail } from "v2/Components/RelatedCollectionsRail/RelatedCollectionsRail"
import { BreadCrumbList } from "v2/Components/Seo"
import React from "react"
-im... | fix: use MetaTags for collection pages | null | artsy/force | MIT License | TypeScript |
@@ -2,7 +2,7 @@ const resolve = require('rollup-plugin-node-resolve');
const commonjs = require('rollup-plugin-commonjs');
const babel = require('rollup-plugin-babel');
const replace = require('rollup-plugin-replace');
-const uglify = require('rollup-plugin-uglify');
+const { uglify } = require('rollup-plugin-uglify');... | fix: rollup uglify plugin | null | tdeekens/flopflip | MIT License | JavaScript |
@@ -3,6 +3,8 @@ import { ActivatedRoute } from '@angular/router';
import { BehaviorSubject, combineLatest, Observable } from 'rxjs';
import { map, scan, shareReplay } from 'rxjs/operators';
+import { Permission } from '../../../common/generated-types';
+
import { ActionBarItem, NavMenuItem, NavMenuSection, RouterLinkDe... | fix(admin-ui): Assign NavMenuSection default permission if not specified | null | vendure-ecommerce/vendure | MIT License | TypeScript |
@@ -232,8 +232,8 @@ namespace Cicada {
err = av_read_frame(mCtx, pkt);
if (err < 0) {
- if (err != AVERROR(EAGAIN) && mCtx->pb->error != AVERROR_EXIT) {
- if (mCtx->pb) {
+ if (err != AVERROR(EAGAIN)) {
+ if (mCtx->pb && mCtx->pb->error != AVERROR_EXIT) {
av_log(NULL, AV_LOG_WARNING, "%s:%d: %s, ctx->pb->error=%d\n", _... | fix(demuxer): avoid access null mCtx->pb | null | alibaba/cicadaplayer | MIT License | C++ |
@@ -324,8 +324,10 @@ class Video extends React.Component {
updateAnalyticsData = () => {
const analyticsObject = { name: 'video tracking', details: this.props.videoTitle }
analyticsObject.action = this.state.videoIsPlaying ? 'play' : 'pause'
+ if (this.state.percentageWatched !== 'watched 100%') {
this.props.analyticsT... | fix(core-video): preventing action override on vid complete analytics | null | telus/tds-core | MIT License | JavaScript |
# frozen_string_literal: true
# Represents an email address belonging to a user.
class User::Email < ApplicationRecord
+ before_validation(on: :create) do
+ remove_existing_unconfirmed_secondary_email
+ end
after_destroy :set_new_user_primary_email, if: :primary?
validates :primary, inclusion: [true, false]
@@ -15,6 +1... | fix(secondary email): fix unconfirmed secondary emails cant be claimed by other user | null | coursemology/coursemology2 | MIT License | Ruby |
@@ -13,6 +13,7 @@ export function Slice(props) {
sliceName: props.alias,
}
delete internalProps.alias
+ delete internalProps.__renderedByLocation
const slicesContext = useContext(SlicesContext)
| fix: drop `__renderedByLocation` prop when calculating slice props hashes and don't expose it to slice component | null | gatsbyjs/gatsby | MIT License | JavaScript |
@@ -36,8 +36,7 @@ const prepareInitialFile = async (file: File) => {
return await file.content;
}
- let to = file.path.includes(fs.dappPath(".embark")) ? file.path : fs.dappPath(".embark", file.path);
- to = path.normalize(to);
+ const to = file.path.includes(fs.dappPath(".embark")) ? path.normalize(file.path) : fs.dap... | fix(@embark/solidity): handle absolute paths correctly | null | embarklabs/embark | MIT License | TypeScript |
@@ -408,7 +408,7 @@ export default class Input extends InputProvider {
this.setState({ prompt: c })
if (this.props.isFocused && document.activeElement !== c) {
- c.focus()
+ setTimeout(() => c.focus(), 300)
}
} else if (c && this.props.isFocused && isInViewport(c)) {
c.focus()
| fix(plugins/plugin-client-common): initial prompt not focused test | null | ibm/kui | Apache License 2.0 | TypeScript |
@@ -17,7 +17,7 @@ for PACKAGEJSON in */package.json ; do
HAS_PKG_BUMP=$(git diff HEAD^ -- "${PACKAGEJSON}" | grep -c '"version"')
if [ "$HAS_PKG_BUMP" -ne 0 ] ; then
echo "Deck package publisher ---> Version bump detected in $PACKAGEJSON"
- TAG=$(jq -r '.name + "@" + .version' < package.json)
+ TAG=$(jq -r '.name + "@"... | fix(publishing): Get publish git-tag from ${package}/package.json | null | spinnaker/deck | Apache License 2.0 | Shell |
@@ -46,9 +46,9 @@ abstract class RoomDB : RoomDatabase() {
/**
* Builds the database for usage.
*/
- fun build(context: Context): RoomDB {
+ fun build(context: Context, databaseName: String = "nekome_database.db"): RoomDB {
return Room
- .databaseBuilder(context, RoomDB::class.java, "malime_database.db")
+ .databaseBui... | fix: database name was still using malime | null | chesire/nekome | Apache License 2.0 | Kotlin |
@@ -20,10 +20,12 @@ chmod -R 755 ./$PIPELINE_ID
# mv logo_white.svg ./$PIPELINE_ID/static/images/logo.svg
# mv favicon.ico ./$PIPELINE_ID/static/images/favicon.ico
+find ./$PIPELINE_ID -type f -name '*.html' -exec sed -i -e 's/ARA Records Ansible/KubeInit job report/g' {} \;
+find ./$PIPELINE_ID -type f -name '*.html' ... | fix: update links order | null | kubeinit/kubeinit | Apache License 2.0 | Shell |
@@ -320,8 +320,8 @@ export class JSDOMScheduler implements IScheduler {
this.flush = [
createMicrotaskFlushRequestor(wnd, microTaskTaskQueue.flush.bind(microTaskTaskQueue)),
createRequestAnimationFrameFlushRequestor(wnd, renderTaskQueue.flush.bind(renderTaskQueue)),
- createPostRequestAnimationFrameFlushRequestor(wnd, ... | fix(scheduler): correct setTimeout requestor index | null | aurelia/aurelia | MIT License | TypeScript |
@@ -163,7 +163,6 @@ class TextFormControlElement extends Element implements TextInputClient, TickerP
final ValueNotifier<bool> _cursorVisibilityNotifier = ValueNotifier<bool>(false);
AnimationController? _cursorBlinkOpacityController;
int _obscureShowCharTicksPending = 0;
- bool _autoFocus = false;
late KrakenScrollabl... | fix: auto focus | null | openkraken/kraken | Apache License 2.0 | Dart |
@ModuleTask(order = 127, event = ModuleLifeCycle.STARTED)
public void loadConfiguration() {
- var corsPolicy = this.readConfig().getString("corsPolicy", "strict-origin-when-cross-origin");
+ var corsPolicy = this.readConfig().getString("corsPolicy", "*");
var accessControlMaxAge = this.readConfig().getInt("accessContro... | fix(rest): set default cors policy to '*' | null | cloudnetservice/cloudnet-v3 | Apache License 2.0 | Java |
@@ -89,8 +89,8 @@ where
{
match *expr {
Expr::Call(f, args) => {
- let new_f = walk_expr_alloc(visitor, f);
- let new_args = merge_iter(args, |expr| walk_expr(visitor, expr), Expr::clone)
+ let new_f = visitor.visit_expr(f);
+ let new_args = merge_iter(args, |expr| visitor.visit_expr(expr).cloned(), Expr::clone)
.map(|... | fix: Correctly visit all core expressions when walking the tree | null | gluon-lang/gluon | MIT License | Rust |
@@ -433,9 +433,9 @@ function nic_mtu() {
// inject devices
if input.QemuArch == qemu.Arch_aarch64 {
input.Devices = append(input.Devices,
- "qemu-xhci,p2=8,p3=8,id=usb",
- "usb-tablet,id=input0,bus=usb.0,port=1",
- "usb-kbd,id=input1,bus=usb.0,port=2",
+ "qemu-xhci,p2=8,p3=8,id=usb1",
+ "usb-tablet,id=input0,bus=usb1.0... | fix(host): aarch64 vm usb id duplicated | null | yunionio/yunioncloud | Apache License 2.0 | Go |
@@ -252,7 +252,7 @@ class ClopiNet(nn.Module):
if self.pooling == 'sum':
output = output.sum(dim=0)
elif self.pooling == 'max':
- output = output.max(dim=0)
+ output, _ = output.max(dim=0)
# batch_size, dimension
| fix: fix ClopiNet "max" pooling | null | pyannote/pyannote-audio | MIT License | Python |
@@ -226,7 +226,7 @@ if (process.env.NODE_ENV == "local") {
// url: 'http://localhost:6001'
// };
// conf.market.url = 'https://m.k.tarsyun.com';
- // conf.market.url = 'http://localhost:4000';
+ conf.market.url = 'http://localhost:4001';
conf.webConf.alter = false;
// conf.webConf.alter = true;
conf.k8s.namespace = 'ta... | fix: install from cloud lost title bug | null | tarscloud/tarsweb | BSD 3-Clause New or Revised License | JavaScript |
@@ -104,7 +104,7 @@ const ContextForm: React.FC<IContextForm> = ({
label="Context name"
value={contextName}
disabled={mode === 'Edit'}
- onChange={e => setContextName(e.target.value)}
+ onChange={e => setContextName(trim(e.target.value))}
error={Boolean(errors.name)}
errorText={errors.name}
onFocus={() => clearErrors()... | fix: trim context field name | null | unleash/unleash | Apache License 2.0 | TypeScript |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.