diff stringlengths 12 9.3k | message stringlengths 8 199 | reasoning_trace null | repo stringlengths 6 68 | license stringclasses 3
values | language stringclasses 16
values |
|---|---|---|---|---|---|
@@ -77,7 +77,12 @@ func checkOvsBindings() ([]string, error) {
}
result := make([]string, 0, len(strings.Split(string(output), "\n")))
for _, line := range strings.Split(string(output), "\n") {
- result = append(result, strings.TrimPrefix(line, "iface-id="))
+ for _, id := range strings.Split(line, " ") {
+ if strings.... | fix: ipv6 get portmap failed again | null | kubeovn/kube-ovn | Apache License 2.0 | Go |
@@ -30,7 +30,7 @@ const CommunityTemplateName: FC<Props> = ({
}) => {
let installButton
- if (onClickInstall) {
+ if (onClickInstall && resourceCount > 0) {
installButton = (
<Button
text="Install Template"
| fix: only show install button if there are > 0 selected resources | null | influxdata/influxdb | MIT License | TypeScript |
@@ -143,7 +143,7 @@ struct ImportMagicTokenViewControllerViewModel {
var match: String {
guard let tokenHolder = tokenHolder else { return "" }
if tokenHolder.values["section"] != nil {
- if let section = tokenHolder.values["section"] {
+ if let section = tokenHolder.values["section"]?.stringValue {
return "S\(section)... | fix: when displaying token in import MagicLink UI, the section attribute is displayed wrongly | null | alphawallet/alpha-wallet-ios | MIT License | Swift |
@@ -22,7 +22,11 @@ class GlobusProvider(OAuth2Provider):
account_class = GlobusAccount
def extract_uid(self, data):
- return str(data.get('create_time'))
+ if 'sub' not in data:
+ raise ProviderException(
+ 'Globus OAuth error', data
+ )
+ return str(data['sub'])
def extract_common_fields(self, data):
return dict(
| fix(globus): Fixed extract_uid | null | pennersr/django-allauth | MIT License | Python |
@@ -18,7 +18,6 @@ public class VRTK_ControllerAppearance_Example : MonoBehaviour
private float dimOpacity = 0.8f;
private float defaultOpacity = 1f;
private bool highlighted;
- private bool tooltipEnabled = false;
private void OnEnable()
{
| fix(Examples): remove unused variable to resolve warning | null | extendrealityltd/vrtk | MIT License | C# |
@@ -3,6 +3,7 @@ import { LSTMTimeStep } from '../../src/recurrent/lstm-time-step';
import { Equation } from '../../src/recurrent/matrix/equation';
import { Matrix } from '../../src/recurrent/matrix';
import { INumberObject } from '../../src/lookup';
+import { IRNNStatus } from '../../src/recurrent/rnn';
// TODO: break ... | fix: RNNTimeStep.fromJSON & toJSON tests | null | brainjs/brain.js | MIT License | TypeScript |
@@ -31,5 +31,6 @@ class Audit extends Model implements \OwenIt\Auditing\Contracts\Audit
protected $casts = [
'old_values' => 'json',
'new_values' => 'json',
+ 'auditable_id' => 'integer',
];
}
| fix(AuditableModel): cast auditable_id to integer | null | owen-it/laravel-auditing | MIT License | PHP |
@@ -385,7 +385,7 @@ fn get_cargo_toml_from_git_url(url: &str) -> CargoResult<String> {
{
use std::sync::Arc;
- let tls_connector = Arc::new(native_tls::TlsConnector::new().map_err(|e| e.to_string())?);
+ let tls_connector = Arc::new(native_tls::TlsConnector::new()?);
agent = agent.tls_connector(tls_connector.clone());
... | fix(fetch): fix a regression introduced in .. | null | killercup/cargo-edit | MIT License | Rust |
@@ -322,6 +322,7 @@ func (b *cmdTelegrafBuilder) readConfig(file string) (string, error) {
func (b *cmdTelegrafBuilder) newCmd(use string, runE func(*cobra.Command, []string) error) *cobra.Command {
cmd := b.genericCLIOpts.newCmd(use, runE, true)
b.genericCLIOpts.registerPrintOptions(cmd)
+ b.globalFlags.registerFlags(... | fix(influx): register global flags on telegraf cmds | null | influxdata/influxdb | MIT License | Go |
x-transition:leave-start="opacity-100 translate-y-0"
x-transition:leave-end="opacity-0 translate-y-2"
@class([
- 'absolute right-0 z-10 w-screen pl-12 mt-2 top-full transition rtl:right-auto rtl:left-0 rtl:pl-0 rtl:pr-12',
+ 'absolute right-0 z-10 w-screen pl-12 mt-4 top-full transition rtl:right-auto rtl:left-0 rtl:pl... | fix(tables/filters): add popover border; darken bg | null | laravel-filament/filament | MIT License | PHP |
@@ -127,7 +127,7 @@ declare module 'thinkjs' {
* send fail data
* @memberOf Context
*/
- fail(errno: any, errmsg?: object | string, data?: string): any;
+ fail(errno: any, errmsg?: object | string, data?: any): any;
/**
* set expires header
* @memberOf Context
| fix: fix type of ctx.fail() | null | thinkjs/thinkjs | MIT License | TypeScript |
@@ -216,7 +216,7 @@ public boolean isStaticServices() {
private Collection<String> associatedNodes = new ArrayList<>();
private Collection<String> deletedFilesAfterStop = new ArrayList<>();
- private ProcessConfiguration.Builder processConfiguration;
+ private ProcessConfiguration.Builder processConfiguration = Process... | fix(driver): Resolve npe in the ServiceTask.Builder due to the ProcessConfiguration.Builder | null | cloudnetservice/cloudnet-v3 | Apache License 2.0 | Java |
@@ -1113,7 +1113,7 @@ document.addEventListener('DOMContentLoaded', function(){
showSkills.innerHTML = 'Show Skills';
}else{
otherSkills.classList.add('show-skills');
- show_skills.innerHTML = 'Hide Skills';
+ showSkills.innerHTML = "Hide Skills";
}
});
}
| fix: :rotating_light: use variable instead of global id thing | null | skycryptwebsite/skycrypt | MIT License | JavaScript |
@@ -45,7 +45,7 @@ fn benchmark_catalog_persistence(c: &mut Criterion) {
let table_name = "cpu";
let chunk_id = 0;
assert!(db
- .table_summary(partition_key, table_name, chunk_id)
+ .table_summary(table_name, partition_key, chunk_id)
.is_some());
},
BatchSize::SmallInput,
@@ -70,23 +70,23 @@ async fn setup(object_store:... | fix: fix `server_benchmarks::benches::catalog_persistence` | null | influxdata/influxdb_iox | Apache License 2.0 | Rust |
@@ -27,27 +27,6 @@ async fn run_read_group_test_case<D>(
expected_results: Vec<&str>,
) where
D: DbSetup,
-{
- run_read_group_test_case_special(
- db_setup,
- predicate,
- agg,
- group_columns,
- expected_results,
- false,
- )
- .await
-}
-
-async fn run_read_group_test_case_special<D>(
- db_setup: D,
- predicate: Pred... | fix: make all test scenarios have data deleted after chunks are moved | null | influxdata/influxdb_iox | Apache License 2.0 | Rust |
@@ -111,8 +111,6 @@ public class GrpcInvoker<T> extends AbstractInvoker<T> {
Status status = statusException.getStatus();
if (status.getCode() == Status.Code.DEADLINE_EXCEEDED) {
return RpcException.TIMEOUT_EXCEPTION;
- } else if (status.getCode() == Status.Code.DEADLINE_EXCEEDED) {
- //
}
}
return RpcException.UNKNOWN... | fix: Duplicate condition in 'if' statement inspection | null | apache/dubbo | Apache License 2.0 | Java |
@@ -356,7 +356,8 @@ namespace Pistache::Tcp
else
{
#endif /* PISTACHE_USE_SSL */
- bytesWritten = ::send(fd, buffer, len, flags);
+ //MSG_NOSIGNAL is used to prevent SIGPIPE on client connection termination
+ bytesWritten = ::send(fd, buffer, len, flags | MSG_NOSIGNAL);
#ifdef PISTACHE_USE_SSL
}
#endif /* PISTACHE_USE_... | fix: prevent SIGPIPE on client connection termination | null | pistacheio/pistache | Apache License 2.0 | C++ |
@@ -279,7 +279,7 @@ public abstract class ProcessEngineConfiguration {
*
* <p>By default only alphanumeric values will be accepted.</p>
*/
- protected String resourceWhitelistPattern = "\\w+";
+ protected String resourceWhitelistPattern = "[\\w-]+";
/**
* If the value of this flag is set <code>true</code> then the proc... | fix(engine): adjust default whitelist regex | null | camunda/camunda-bpm-platform | Apache License 2.0 | Java |
@@ -613,8 +613,13 @@ class Task(RedBase, BaseModel):
except TaskLoggingError as exc:
# Logging failed
self._thread_error = exc
+ try:
self.log_failure()
- raise
+ except:
+ pass
+ # Note that we don't raise the error as there is nothing
+ # to catch it
+ return
finally:
event.set()
| fix: unnecessary thread warning | null | miksus/rocketry | MIT License | Python |
@@ -207,8 +207,7 @@ open class MediaControl(core: Core) : UICorePlugin(core) {
open fun show(timeout: Long) {
visibility = Visibility.VISIBLE
backgroundView.visibility = View.VISIBLE
- controlsPanel.visibility = View.VISIBLE
- foregroundControlsPanel.visibility = View.VISIBLE
+ showDefaultMediaControlPanels()
lastInter... | fix(media_control): only show Media Control default panel with Modal open | null | clappr/clappr-android | BSD 3-Clause New or Revised License | Kotlin |
@@ -239,7 +239,8 @@ bool _lv_area_is_in(const lv_area_t * ain_p, const lv_area_t * aholder_p, lv_coo
is_in = true;
}
- if(radius == 0) return is_in;
+ if (!is_in) return false;
+ if(radius == 0) return true;
/*Check if the corner points are inside the radius or not*/
lv_point_t p;
@@ -398,8 +399,8 @@ static bool lv_poi... | fix(area): minor improvements | null | lvgl/lvgl | MIT License | C |
@@ -295,11 +295,11 @@ public abstract class RequestHandler {
return errorObj.unknownOperation(urlPathInfo);
}
} else if (handlerName.equals("hits") || handlerName.equals("docs")) {
- if (request.getParameter("group") != null) {
+ if (!StringUtils.isBlank(request.getParameter("group"))) {
String viewgroup = request.getP... | fix: passing empty string for group parameter caused NPE | null | inl/blacklab | Apache License 2.0 | Java |
@@ -58,7 +58,7 @@ class LoginFragment : Fragment() {
smartAuthViewModel.buildCredential(activity, null)
if (loginViewModel.isLoggedIn())
- redirectToMain()
+ redirectToEvents()
rootView.loginButton.setOnClickListener {
loginViewModel.login(email.text.toString(), password.text.toString())
@@ -144,7 +144,7 @@ class Login... | fix: redirect to events after login | null | fossasia/open-event-attendee-android | Apache License 2.0 | Kotlin |
@@ -242,9 +242,9 @@ class PactConsumerTestExt : Extension, BeforeEachCallback, ParameterResolver, Af
}
override fun afterEach(context: ExtensionContext) {
+ if (!context.executionException.isPresent) {
val store = context.getStore(ExtensionContext.Namespace.create("pact-jvm"))
val providerInfo = store["providerInfo"] a... | fix: Only write the pact file if the JUnit 5 consumer test passes | null | pact-foundation/pact-jvm | Apache License 2.0 | Kotlin |
@@ -285,10 +285,17 @@ namespace MLAPI.Components
SpawnedObjects.Add(netObject.NetworkId, netObject);
SpawnedObjectsList.Add(netObject);
- if (playerObject && NetworkingManager.Singleton.IsServer) NetworkingManager.Singleton.ConnectedClients[ownerClientId].PlayerObject = netObject;
-
if (NetworkingManager.Singleton.IsSe... | fix(spawning): Add objects spawned with authority to the list of client owned objects | null | unity-technologies/com.unity.multiplayer.mlapi | MIT License | C# |
@@ -103,7 +103,7 @@ public class MrcmTypeRequest implements Request<BranchContext, SnomedReferenceSe
return new SnomedReferenceSetMembers(0, 0);
}
- String eclConstraint = "*";
+ final String eclConstraint;
switch (attributeType) {
case DATA: eclConstraint = String.format("<%s", CONCEPT_MODEL_DATA_ATTRIBUTE);
@@ -112,6... | fix(mrcm): Make variable final | null | b2ihealthcare/snow-owl | Apache License 2.0 | Java |
@@ -89,7 +89,7 @@ class ProfileFragment : Fragment() {
return true
}
R.id.orga_app -> {
- startOrgaApp("org.fossasia.eventyay")
+ startOrgaApp("com.eventyay.organizer")
return true
}
R.id.ticket_issues -> {
| fix: open organiser app from event app | null | fossasia/open-event-attendee-android | Apache License 2.0 | Kotlin |
@@ -83,6 +83,7 @@ def create(user, exists_ok = False, fields = None):
dprof.user = user
dprof.save(ignore_permissions = True)
except frappe.DuplicateEntryError:
+ frappe.clear_messages()
if not exists_ok:
frappe.throw(_('Chat Profile for User {0} exists.').format(user))
| fix: Clear duplicate entry message | null | frappe/frappe | MIT License | Python |
@@ -3,6 +3,7 @@ package tar
import (
"archive/tar"
+ "fmt"
"io"
"os"
@@ -30,18 +31,18 @@ func (a Archive) Close() error {
func (a Archive) Add(f config.File) error {
info, err := os.Lstat(f.Source) // #nosec
if err != nil {
- return err
+ return fmt.Errorf("%s: %w", f.Source, err)
}
var link string
if info.Mode()&os.Mo... | fix: improve tar error handling | null | goreleaser/goreleaser | MIT License | Go |
@@ -80,7 +80,7 @@ fn mock_server_failing_validation() {
fn duplicate_interactions() {
let _ = env_logger::init();
- {
+ for _ in 1..3 {
let mock_service = PactBuilder::new("consumer 1", "provider 1")
.interaction("tricky test", |interaction| {
interaction
| fix: repeat the test 3 times | null | pact-foundation/pact-reference | MIT License | Rust |
@@ -106,7 +106,7 @@ class CupertinoConversationListState extends OptimizedState<CupertinoConversatio
double spaceBetween = (colCount - 1) * 30;
double maxWidth = ((ns.width(context) - 50 - spaceBetween) / colCount).floorToDouble();
TextStyle style = context.theme.textTheme.bodyMedium!;
- double height = usedRowCount * ... | fix: reduced spacing between pinned and unpinned | null | bluebubblesapp/bluebubbles-app | Apache License 2.0 | Dart |
@@ -96,7 +96,7 @@ function create_ssr_pwa {
function add_spartacus_csr {
( cd ${INSTALLATION_DIR} && cd csr && ng add @spartacus/schematics@${SPARTACUS_VERSION} --overwriteAppComponent true --baseUrl ${BACKEND_URL} --occPrefix ${OCC_PREFIX}
if [ "$ADD_B2B_LIBS" = true ] ; then
- npm install @spartacus/setup && npm inst... | fix: missing version in the install script | null | sap/spartacus | Apache License 2.0 | Shell |
@@ -438,12 +438,13 @@ export class SimulatorComponent implements OnInit, OnDestroy {
})
);
}
+ return of(null)
}
));
})
);
}),
- map(actionIds => this.registry.createFromIds(actionIds)),
+ map(actionIds => this.registry.createFromIds(actionIds.filter(id => id !== null))),
first()
).subscribe(actions => {
this.actions$.... | fix(simulator): fixed special commands breaking macro import | null | ffxiv-teamcraft/ffxiv-teamcraft | MIT License | TypeScript |
@@ -616,7 +616,9 @@ class Row:
id_field = get_id_field(doctype)
id_value = doc.get(id_field.fieldname)
if id_value and frappe.db.exists(doctype, id_value):
- doc = frappe.get_doc(doctype, id_value)
+ existing_doc = frappe.get_doc(doctype, id_value)
+ existing_doc.update(doc)
+ doc = existing_doc
else:
# for table rows ... | fix: Update child values for existing rows | null | frappe/frappe | MIT License | Python |
@@ -53,7 +53,7 @@ fi
# Iterate over new coredumps and print a summary and stack for each
echo "Looking for new coredumps ..."
echo
-coredump_pids=$(coredumpctl list --quiet --no-legend --since="$since" | awk '{ print $5 }')
+coredump_pids=$(coredumpctl list --quiet --no-legend --since="$since" | grep -v "sshd$" | awk '... | fix: ignore coredumps from sshd | null | openebs/mayastor | Apache License 2.0 | Shell |
@@ -43,7 +43,7 @@ namespace Silk.Core.Commands.Moderation
}
else
{
- if (infractions.Length > 15)
+ if (infractions.Length < 15)
{
var sb = new StringBuilder();
for (var i = 0; i < infractions.Length; i++)
| fix: Cases not displaying cases | null | vtpdevelopment/silk | Apache License 2.0 | C# |
@@ -121,8 +121,8 @@ export default class TestCommand extends Command {
let outputDir = project.isAddon ? path.join('tmp', '-dummy') : 'dist';
process.on('exit', this.cleanExit.bind(this));
- process.on('SIGINT', this.cleanExit.bind(this));
- process.on('SIGTERM', this.cleanExit.bind(this));
+ process.on('SIGINT', this.... | fix: fix clean exits from test command | null | denali-js/core | Apache License 2.0 | TypeScript |
@@ -65,9 +65,7 @@ class Twitch extends OAuth2
{
$result = \json_decode($this->request(
'POST',
- $this->endpoint . 'token',
- [],
- \http_build_query([
+ $this->endpoint . 'token?'. \http_build_query([
"client_id" => $this->appID,
"client_secret" => $this->appSecret,
"code" => $code,
@@ -139,11 +137,15 @@ class Twitch ... | fix: twitch oauth issue | null | appwrite/appwrite | BSD 3-Clause New or Revised License | PHP |
@@ -86,7 +86,7 @@ class ClickGestureRecognizer extends OneSequenceGestureRecognizer {
} else {
if (event is PointerUpEvent) {
if (onClick != null)
- onClick(Event('click', EventInit()));
+ onClick(Event(EventType.click, EventInit()));
_reset();
} else if (event is PointerCancelEvent) {
_reset();
| fix: update EventType | null | openkraken/kraken | Apache License 2.0 | Dart |
@@ -236,7 +236,6 @@ class TestDocument(unittest.TestCase):
'name': 'Test Formatted',
'module': 'Custom',
'custom': 1,
- 'istable': 1,
'fields': [
{'label': 'Currency', 'fieldname': 'currency', 'reqd': 1, 'fieldtype': 'Currency'},
]
| fix: test_document test | null | frappe/frappe | MIT License | Python |
@@ -26,8 +26,8 @@ sudo chown -R ec2-user:docker /etc/docker
# Install systemd services
echo "Installing systemd services"
-sudo curl -Lfs -o /etc/systemd/system/docker.service https://raw.githubusercontent.com/moby/moby/master/contrib/init/systemd/docker.service
-sudo curl -Lfs -o /etc/systemd/system/docker.socket http... | fix: Pin docker systemd services to the same docker version | null | buildkite/elastic-ci-stack-for-aws | MIT License | Shell |
@@ -54,17 +54,25 @@ uint32_t waybar::modules::Wireplumber::getDefaultNodeId(waybar::modules::Wireplu
}
void waybar::modules::Wireplumber::updateNodeName(waybar::modules::Wireplumber* self) {
- auto proxy = static_cast<WpPipewireObject*>(wp_object_manager_lookup(
- self->om_, WP_TYPE_GLOBAL_PROXY, WP_CONSTRAINT_TYPE_PW_... | fix: wireplumber module when used with a bluetooth device | null | alexays/waybar | MIT License | C++ |
@@ -118,6 +118,7 @@ public class DialogNode extends GenericModel {
private Date updated;
private List<DialogNodeAction> actions;
private String title;
+ private Boolean disabled;
@SerializedName("type")
private String nodeType;
@SerializedName("event_name")
@@ -192,7 +193,7 @@ public class DialogNode extends GenericMod... | fix(Assistant v1): Add missing disabled field to DialogNode | null | watson-developer-cloud/java-sdk | Apache License 2.0 | Java |
@@ -50,6 +50,8 @@ class PageManagerState extends State<PageManager> {
@override
Widget build(BuildContext context) {
final AppLocalizations appLocalizations = AppLocalizations.of(context)!;
+ final ThemeData themeData = Theme.of(context);
+ final bool brightnessCheck = themeData.brightness == Brightness.light;
return W... | fix: Switched unselected item color according to theme | null | openfoodfacts/smooth-app | Apache License 2.0 | Dart |
@@ -33,7 +33,7 @@ func NewService(typeName string, repositoryDomain string, siteDomain string) *Se
case "github":
return &Service{
Name: repositoryDomain,
- PullRequestURL: fmt.Sprintf("https://%s%s", siteDomain, "/%s/%s/compare/%%s?expand=1"),
+ PullRequestURL: fmt.Sprintf("https://%s%s", siteDomain, "/%s/%s/compare/%... | fix: accidentally escaped %s | null | jesseduffield/lazygit | MIT License | Go |
+/* eslint camelcase: "off" */
+'use strict';
+
+exports.up = function(db, cb) {
+ return db.createTable(
+ 'settings',
+ {
+ name: {
+ type: 'string',
+ length: 255,
+ primaryKey: true,
+ notNull: true,
+ },
+ content: { type: 'json' },
+ },
+ cb
+ );
+};
+
+exports.down = function(db, cb) {
+ return db.dropTable('set... | fix: add settings column to postgres | null | unleash/unleash | Apache License 2.0 | JavaScript |
@@ -147,15 +147,17 @@ func CreateConfigFile(dir string, terraformCloudHost string, terraformCloudToken
path := os.Getenv("TF_CLI_CONFIG_FILE")
if !filepath.IsAbs(path) {
- path, err = filepath.Abs(filepath.Join(dir, os.Getenv("TF_CLI_CONFIG_FILE")))
+ path, err = filepath.Abs(filepath.Join(dir, path))
if err != nil {
-... | fix: warn on invalid TF_CLI_CONFIG_FILE instead of error | null | infracost/infracost | Apache License 2.0 | Go |
@@ -92,7 +92,7 @@ class HttpKernel extends LaravelHttpKernel
protected $middlewarePriority = [
\Illuminate\Session\Middleware\StartSession::class,
\Illuminate\View\Middleware\ShareErrorsFromSession::class,
- \App\Http\Middleware\Authenticate::class,
+ \App\Ship\Middlewares\Http\Authenticate::class,
\Illuminate\Routing\... | fix: fix priority authenticate middleware name | null | apiato/apiato | MIT License | PHP |
@@ -1798,7 +1798,7 @@ defmodule Ash.Query do
@doc "Return the underlying data layer query for an ash query"
def data_layer_query(ash_query, opts \\ [])
- def data_layer_query(%{errors: errors}, _opts) do
+ def data_layer_query(%{errors: errors}, _opts) when errors not in [[], nil] do
{:error, Ash.Error.to_error_class(e... | fix: only return errors when there actually are errors | null | ash-project/ash | MIT License | Elixir |
+#!/bin/sh
+
+lerna publish --ignore @youzan/zent
+
+# Ensure all packages are up-to-date before publishing this package.
+# Package files will be copied from node_modules
+lerna publish --force-publish=@youzan/zent
\ No newline at end of file
| fix: add publish script | null | youzan/zent | MIT License | Shell |
use crate::dir::{
- check_directory_supported, check_hamtshard_supported, ShardError, UnexpectedDirectoryProperties,
+ ShardError, UnexpectedDirectoryProperties,
};
use crate::file::visit::{Cache, FileVisit, IdleFileVisit};
use crate::file::{FileError, FileReadFailed};
-use crate::pb::{FlatUnixFs, PBLink, PBNode, Parsi... | fix: warnings on ipfs_unixfs::walk | null | rs-ipfs/rust-ipfs | Apache License 2.0 | Rust |
@@ -194,12 +194,12 @@ export const buildCallGraph = (
fn: Func<any>,
graph: DGraph<Func<any>> = new DGraph()
): DGraph<Func<any>> =>
- fn.deps
+ fn.deps && fn.deps.length
? fn.deps.reduce(
(graph, d) => buildCallGraph(d, graph.addDependency(fn, d)),
graph
)
- : graph;
+ : graph.addNode(fn);
export function sym<T extend... | fix(shader-ast): buildCallGraph zero-dep fn handling | null | thi-ng/umbrella | Apache License 2.0 | TypeScript |
@@ -62,13 +62,13 @@ module TrackableJob::SpecHelpers
end
def visit_current_path
- tries ||= 5
+ tries ||= 10
visit current_path
rescue Selenium::WebDriver::Error::UnknownError => e
tries -= 1
raise e if tries < 1
- sleep 0.1
+ sleep 0.2
retry
end
| fix(spec job): increase tries and wait time for job waiting in rspec | null | coursemology/coursemology2 | MIT License | Ruby |
@@ -422,7 +422,7 @@ void lv_obj_fade_in(lv_obj_t * obj, uint32_t time, uint32_t delay)
lv_anim_t a;
lv_anim_init(&a);
lv_anim_set_var(&a, obj);
- lv_anim_set_values(&a, LV_OPA_TRANSP, LV_OPA_COVER);
+ lv_anim_set_values(&a, LV_OPA_TRANSP, lv_obj_get_style_opa(obj, 0));
lv_anim_set_exec_cb(&a, fade_anim_cb);
lv_anim_set... | fix(obj): make lv_obj_fade_in/out use the current opa as start value | null | lvgl/lvgl | MIT License | C |
@@ -185,6 +185,14 @@ const Server = ({componentId, extra, launchType, launchError, theme}: ServerProp
return;
}
+ if (displayNameError) {
+ setDisplayNameError(undefined);
+ }
+
+ if (urlError) {
+ setUrlError(undefined);
+ }
+
const server = await queryServerByDisplayName(DatabaseManager.appDatabase!.database, display... | fix: Remove error of displayName, url error if present on handleConnect server screen | null | mattermost/mattermost-mobile | Apache License 2.0 | TypeScript |
@@ -107,11 +107,15 @@ namespace modules {
match = true;
m_log.info("%s: Found matching hook (%s)", name(), hook->payload);
- m_output.clear();
+ try {
auto command = command_util::make_command(hook->command);
command->exec(false);
command->tail([this](string line) { m_output = line; });
+ } catch (const exception& err)... | fix(ipc): Avoid clearing module content | null | polybar/polybar | MIT License | C++ |
@@ -38,6 +38,11 @@ def trace_property(fn: Callable) -> Any:
def wrapper(self: "TransactionReceipt") -> Any:
if self.status < 0:
return None
+ if not web3.supports_traces:
+ raise RPCRequestError(
+ f"`TransactionReceipt.{fn.__name__}` requires the `debug_traceTransaction` RPC"
+ " endpoint, but the node client does not... | fix: do not attempt to query traces when they are not supported | null | eth-brownie/brownie | MIT License | Python |
@@ -162,6 +162,13 @@ namespace acl
return memory_impl::safe_int_to_ptr_cast_impl<DestPtrType, SrcType>::cast(input);
}
+#if defined(ACL_COMPILER_GCC)
+ // GCC sometimes complains about comparisons being always true due to partial template
+ // evaluation. Disable that warning since we know it is safe.
+ #pragma GCC dia... | fix: ignore type-limits warning on GCC in safe_static_cast | null | nfrechette/acl | MIT License | C |
@@ -73,12 +73,6 @@ namespace Files.App.Views
ToggleCompactOverlayCommand = new RelayCommand(ToggleCompactOverlay);
SetCompactOverlayCommand = new RelayCommand<bool>(SetCompactOverlay);
- if (SystemInformation.Instance.TotalLaunchCount >= 15 & Package.Current.Id.Name == "49306atecsolution.FilesUWP" && !UserSettingsServi... | fix: Fixed issue where the prompt to review would crash the app | null | files-community/files | MIT License | C# |
@@ -20,6 +20,7 @@ import java.util.ArrayList;
import java.util.List;
import java.util.Optional;
+import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.vaadin.flow.component.Component;
@@ -102,10 +103,20 @@ public class MapSyncRpcHandler extends AbstractRpcInvocationHandler {
return enqueuePropertyUpdate(n... | fix: do not warn for unset disabled property change | null | vaadin/flow | Apache License 2.0 | Java |
@@ -147,9 +147,6 @@ public abstract class AbstractCommandExecutor {
// get process id
int pid = getProcessId(process);
- // task instance id
- int taskInstId = Integer.parseInt(taskAppId.split("_")[2]);
-
processDao.updatePidByTaskInstId(taskInstId, pid, "");
logger.info("process start, process id is: {}", pid);
| fix: The constructor has passed in an taskAppId, no need to get from taskAppId | null | apache/incubator-dolphinscheduler | Apache License 2.0 | Java |
@@ -111,6 +111,13 @@ class HasMany extends Field
$input = Arr::only($input, $this->column);
+ /** unset item that contains remove flag */
+ foreach ($input[$this->column] as $key => $value) {
+ if ($value[NestedForm::REMOVE_FLAG_NAME]) {
+ unset($input[$this->column][$key]);
+ }
+ }
+
$form = $this->buildNestedForm($th... | fix: validate unset item that contains remove flag | null | z-song/laravel-admin | MIT License | PHP |
@@ -20,7 +20,6 @@ struct ListBreeds {
async fn app_root(cx: Scope<'_>) -> Element {
let breed = use_state(&cx, || "deerhound".to_string());
-
let breeds = use_future(&cx, (), |_| async move {
reqwest::get("https://dog.ceo/api/breeds/list/all")
.await
@@ -35,14 +34,16 @@ async fn app_root(cx: Scope<'_>) -> Element {
h1 ... | fix: interpreter namespace | null | dioxuslabs/dioxus | Apache License 2.0 | Rust |
@@ -42,13 +42,15 @@ frappe.ui.form.NewTimeline = class {
};
if (has_communications()) {
- this.timeline_actions_wrapper.append(`
+ this.timeline_actions_wrapper
+ .append(`
<div class="custom-control custom-switch communication-switch">
<input type="checkbox" class="custom-control-input" id="only-communication-switch">... | fix: Add custom timeline content | null | frappe/frappe | MIT License | JavaScript |
@@ -287,6 +287,7 @@ class WebshipperFulfillmentService extends FulfillmentService {
fulfillmentItems
)
+ if (base64Invoice) {
invoice = await this.client_.documents
.create({
type: "documents",
@@ -300,6 +301,7 @@ class WebshipperFulfillmentService extends FulfillmentService {
.catch((err) => {
throw err
})
+ }
const c... | fix(webshipper): only add invoices if invoice generator produces a file | null | medusajs/medusa | MIT License | JavaScript |
@@ -579,11 +579,12 @@ class MessageCommand : AbstractCommand("command.message") {
override suspend fun execute(context: ICommandContext) {
val msgName = getStringFromArgsNMessage(context, 0, 1, 64) ?: return
val messages = context.daoManager.messageWrapper.getMessages(context.guildId)
- if (msgName.isInside(messages, t... | fix: msg command select allowed case inensitive name to be cached | null | toxicmushroom/melijn | MIT License | Kotlin |
@@ -434,7 +434,7 @@ class Element extends Node
}
}
- updateRenderBoxModel();
+ updateRenderBoxModel(shouldRepaintSelf: repaintSelf);
if (parentRenderObject is ContainerRenderObjectMixin) {
_parentElement.addChildRenderObject(this, after: previousSibling);
| fix: udpate should repaint self | null | openkraken/kraken | Apache License 2.0 | Dart |
@@ -102,6 +102,7 @@ func (scm *SServiceCatalogManager) ValidateCreateData(ctx context.Context, userC
if err != nil {
return nil, err
}
+ /*
gt := model.(*SGuestTemplate)
//scope := rbacutils.String2Scope(gt.PublicScope)
//if !gt.IsPublic || scope != rbacutils.ScopeSystem {
@@ -110,6 +111,7 @@ func (scm *SServiceCatalog... | fix(region): Cancel the check about project when creating service catlog | null | yunionio/yunioncloud | Apache License 2.0 | Go |
@@ -225,9 +225,9 @@ impl<'a> QuerySchemaBuilder<'a> {
field(
field_name,
args,
- OutputType::list(OutputType::opt(OutputType::object(
+ OutputType::list(OutputType::object(
self.object_type_builder.map_model_object_type(&model),
- ))),
+ )),
Some(SchemaQueryBuilder::ModelQueryBuilder(ModelQueryBuilder::new(
Arc::clone(... | fix: return type for findMany* should be non-nullable | null | prisma/prisma-engines | Apache License 2.0 | Rust |
@@ -17,6 +17,9 @@ namespace modules {
MODULE_NAME(const bar_settings, string) { \
throw application_error("No built-in support for '" + string{MODULE_TYPE} + "'"); \
} \
+ string name_raw() const { \
+ return ""; \
+ } \
string name() const { \
return ""; \
} \
| fix: add name_raw to unsupported modules | null | polybar/polybar | MIT License | C++ |
@@ -18,8 +18,8 @@ import (
"context"
"yunion.io/x/jsonutils"
+ "yunion.io/x/pkg/errors"
- "yunion.io/x/onecloud/pkg/httperrors"
"yunion.io/x/onecloud/pkg/mcclient"
"yunion.io/x/onecloud/pkg/mcclient/auth"
"yunion.io/x/onecloud/pkg/mcclient/modulebase"
@@ -43,19 +43,25 @@ func init() {
modules.Register(&Parameters)
}
-f... | fix: add widget-settings | null | yunionio/yunioncloud | Apache License 2.0 | Go |
# -l [label to apply to failed checks | Default: dependabot-checks-failed]
#
-set -e
-
# Default Variables
ORG="terraform-google-modules"
FILTER=".[].name"
@@ -72,20 +70,20 @@ for REPO in $REPOS; do
# Retrieve Pull Requests
PRS=`gh pr list -R $REPO -s open --json number -q '.[].number' --app dependabot`
- if [ -n $PRS ... | fix: minor fixes and updates for merge_dependabot_prs.sh | null | googlecloudplatform/cloud-foundation-toolkit | Apache License 2.0 | Shell |
-use hir::ModuleDef;
+use hir::{HasVisibility, ModuleDef, Visibility};
use ide_db::assists::{AssistId, AssistKind};
use stdx::to_lower_snake_case;
use syntax::{
- ast::{self, edit::IndentLevel, HasDocComments, HasName, HasVisibility},
+ ast::{self, edit::IndentLevel, HasDocComments, HasName},
AstNode,
};
@@ -43,7 +43,7... | fix: check correctly if function is exported | null | rust-lang/rust-analyzer | Apache License 2.0 | Rust |
@@ -799,7 +799,7 @@ const LAYERS = {
<li class='fnbutton' data-insert='$$\\sqrt[#?]{#0}$$'></li>
<li class='bigfnbutton' data-insert='$$#0 \\mod$$' data-latex='\\mod'></li>
<li class='bigfnbutton' data-insert='$$\\operatorname{round}(#?) $$' data-latex='\\operatorname{round}()'></li>
- <li class='bigfnbutton' data-inse... | fix: use \scriptstyle, not \tiny | null | arnog/mathlive | MIT License | TypeScript |
@@ -78,12 +78,19 @@ export class TargetManager extends EventEmitter {
// TODO(dgozman): targetId is deprecated, we should use sessionId.
this._detachedFromTarget(event.targetId!);
});
- await cdp.Target.setAutoAttach({autoAttach: true, waitForDebuggerOnStart: true, flatten: true});
+
+ const cleanupOnFailure = () => {
... | fix(init): cleanup session when target initialization fails | null | microsoft/vscode-js-debug | MIT License | TypeScript |
@@ -67,7 +67,7 @@ class GsInlineDiffCommand(WindowCommand, GitCommand):
inline_diff_views[view_key] = diff_view
- file_binary = util.file.get_file_contents_binary(self.repo_path, self.file_path)
+ file_binary = util.file.get_file_contents_binary(settings["git_savvy.repo_path"], settings["git_savvy.file_path"])
try:
fil... | fix: Show open inline diff if it already open form status dashboard | null | timbrel/gitsavvy | MIT License | Python |
@@ -283,10 +283,6 @@ func evalWorkloadWithContext(pCtx process.Context, wl *Workload, appName, compNa
if err != nil {
return nil, nil, errors.Wrapf(err, "evaluate trait=%s template for component=%s app=%s", assist.Name, compName, appName)
}
- if err != nil {
- return nil, nil, errors.Wrapf(err, "marshal trait=%s to byt... | fix: remove unreachable error judgement | null | oam-dev/kubevela | Apache License 2.0 | Go |
@@ -269,13 +269,13 @@ impl MetaConfig {
let has_remote = !self.endpoints.is_empty();
if has_embedded_dir && has_remote {
return Err(ErrorCode::InvalidConfig(
- "Cannot set both embedded dir and [address|endpoints] config".to_string(),
+ "Cannot set both embedded dir and endpoints in meta config".to_string(),
));
}
if !... | fix: refactor error msg | null | datafuselabs/databend | Apache License 2.0 | Rust |
@@ -96,13 +96,11 @@ export class MapFacadeService {
});
communicatorSubscribers.push(communicator.mapInstanceChanged.subscribe(this.mapInstanceChanged.bind(this)));
this.subscribers[id] = communicatorSubscribers;
- console.log(this.subscribers);
}
removeEmitters(id: string) {
this.subscribers[id].forEach((subscriber) =... | fix: rmv console logs | null | ansyn/ansyn | MIT License | TypeScript |
@@ -59,7 +59,7 @@ export class WorkflowsService {
requests
.get(this.getArtifactDownloadUrl(workflow, nodeId, container + '-logs', archived))
.then(resp => {
- resp.text.split('\n').forEach(line => observer.next(JSON.stringify(line)));
+ resp.text.split('\n').forEach(line => observer.next(line));
})
.catch(err => obser... | fix: Remove quotes from UI | null | argoproj/argo-workflows | Apache License 2.0 | TypeScript |
@@ -32,10 +32,10 @@ describe("Fetch", () => {
it(`${name}: passes '{credentials: include}' to all requests`, async () => {
const request = func("http://example.com/", {});
await expect(request).resolves.toMatchObject({ status: 200 });
- expect(fetchMock.lastCall()).toEqual([
- "http://example.com/",
- merge({}, CommonO... | fix(ui): refactor fetch tests | null | prymitive/karma | Apache License 2.0 | JavaScript |
@@ -49,31 +49,6 @@ class RedirectDetailsTests: XCTestCase {
XCTAssertNotNil(try? JSONEncoder().encode(details))
}
- func testPaResExtractionWithoutMDFromURL() {
- let url = URL(string: "url://?param1=abc&PaRes=some")!
- let details = RedirectDetails(returnURL: url)
-
- XCTAssertNil(details.extractKeyValuesFromURL())
-
... | fix: Update tests for return URL query string | null | adyen/adyen-ios | MIT License | Swift |
@@ -262,7 +262,8 @@ export default class CypressBuilder implements Builder<CypressBuilderOptions> {
this.computedCypressBaseUrl = url.format({
protocol: builderConfig.options.ssl ? 'https' : 'http',
hostname: builderConfig.options.host,
- port: builderConfig.options.port.toString()
+ port: builderConfig.options.port.to... | fix(builders): add servePath to computedCypressBaseUrl | null | nrwl/nx | MIT License | TypeScript |
@@ -50,7 +50,7 @@ pub fn command(options: Options) -> Result<()> {
);
}
- println!("\nEnvironment variabled used to sign:\n`TAURI_PRIVATE_KEY` Path or String of your private key\n`TAURI_KEY_PASSWORD` Your private key password (optional)\n\nATTENTION: If you lose your private key OR password, you'll not be able to sign ... | fix: Grammar in signer generate | null | tauri-apps/tauri | Apache License 2.0 | Rust |
@@ -38,6 +38,7 @@ import ToolbarContainer from './ToolbarContainer'
import Toolbar from './Toolbar'
import { BreadcrumbView } from '../../spi/Breadcrumb'
import BaseSidecar, { Props, State } from './BaseSidecarV2'
+import { MutabilityContext } from '../../Client/MutabilityContext'
import '../../../../web/css/static/Too... | fix(plugins/plugin-client-common): sidecar should not offer drilldown buttons in offline clients | null | ibm/kui | Apache License 2.0 | TypeScript |
@@ -23,7 +23,7 @@ export const OidcSignIn = ({ authDispatch }: Props): ReactElement => {
authDispatch({ type: ActionType.SIGNIN_SUCCESS, payload: user })
const url = typeof user.state === 'string' ? user.state : '/'
- history.push(url)
+ history.replace(url)
} catch (error) {
if (error.error === 'login_required') {
// ... | fix(react-auth): Use history.replace in oidc-signin callback page | null | island-is/island.is | MIT License | TypeScript |
@@ -205,15 +205,20 @@ class CanvasElement extends Element {
}
@override
- String? getAttribute(String key) {
+ getProperty(String key) {
switch (key) {
case 'width':
- return '$attrWidth';
+ return attrWidth;
case 'height':
- return '$attrHeight';
+ return attrHeight;
+ }
+
+ return super.getProperty(key);
}
- return s... | fix: canvas element get attribute | null | openkraken/kraken | Apache License 2.0 | Dart |
@@ -351,8 +351,9 @@ type ExternalListenerCallback<'bump, T> = BumpBox<'bump, dyn FnMut(T) + 'bump>;
/// }
///
/// ```
+#[derive(Default)]
pub struct EventHandler<'bump, T = ()> {
- pub callback: &'bump RefCell<Option<ExternalListenerCallback<'bump, T>>>,
+ pub callback: RefCell<Option<ExternalListenerCallback<'bump, T>... | fix: allow eventhandler to derive default | null | dioxuslabs/dioxus | Apache License 2.0 | Rust |
@@ -207,7 +207,7 @@ class DataStoreConnectionOptionalAssociations: SyncEngineIntegrationV2TestBase {
queriedComment.post = nil
// A mock GraphQL request is created to assert that the request variables contains the "postId"
// with the value `nil` which is sent to the API to persist the removal of the association.
- let... | fix(test): DS transformer V2 tests should be update mutation on existing model | null | aws-amplify/amplify-ios | Apache License 2.0 | Swift |
@@ -368,7 +368,7 @@ export class Range extends Ion implements AfterViewInit, ControlValueAccessor, O
// figure out which knob they started closer to
const ratio = clamp(0, (current.x - rect.left) / (rect.width), 1);
- this._activeB = (Math.abs(ratio - this._ratioA) > Math.abs(ratio - this._ratioB));
+ this._activeB = t... | fix(range): knob B can only be actived if range is dual | null | ionic-team/ionic-framework | MIT License | TypeScript |
@@ -219,8 +219,8 @@ static int x509_name_ex_i2d(const ASN1_VALUE **val, unsigned char **out,
if (ret < 0)
return ret;
ret = x509_name_canon(a);
- if (ret < 0)
- return ret;
+ if (!ret)
+ return -1;
}
ret = a->bytes->length;
if (out != NULL) {
| fix: invoking x509_name_cannon improperly | null | openssl/openssl | Apache License 2.0 | C |
@@ -173,7 +173,8 @@ module Onebox
end
def self.title_attr(meta)
- (meta && !blank?(meta[:title])) ? "title='#{meta[:title]}'" : ""
+ title = meta[:title].gsub("'", "'").gsub('"', """)
+ (meta && !blank?(title)) ? "title='#{title}'" : ""
end
def self.normalize_url_for_output(url)
| fix: remove unsafe chars from title attribute | null | discourse/onebox | MIT License | Ruby |
@@ -126,6 +126,7 @@ export const VListItem = genericComponent<new () => {
isActive: isActive.value,
select,
isSelected: isSelected.value,
+ isIndeterminate: isIndeterminate.value,
}))
useSelectLink(link, select)
| fix(VListItem): add isIndeterminate to slot props | null | vuetifyjs/vuetify | MIT License | TypeScript |
@@ -29,7 +29,8 @@ public static class EditorCoroutineManager
coroutineManager = CoroutineManager.Instance;
}
- if (coroutineManager.CoroutinesInProgress.Count <= 0)
+ if (coroutineManager == null
+ || coroutineManager.CoroutinesInProgress.Count <= 0)
{
// No coroutines
return;
| fix: NPE in Editor if no CoroutineManager in the scene | null | ultrastar-deluxe/play | MIT License | C# |
@@ -29,7 +29,7 @@ if (process.env.REACT_APP_TARGET === "hub") {
App = Dashboard
}
-if (process.env.NODE_ENV !== "production") {
+if (process.env.NODE_ENV === "production") {
Sentry.init({
dsn:
"https://085edd94ec3e479cb20f2c65f7b8cb82@o525420.ingest.sentry.io/5639443",
| fix: send errors to sentry only in live environment | null | jina-ai/dashboard | Apache License 2.0 | TypeScript |
@@ -685,7 +685,7 @@ func NewBee(addr string, publicKey *ecdsa.PublicKey, signer crypto.Signer, netwo
var pullerService *puller.Puller
if o.FullNodeMode {
- pullerService := puller.New(stateStore, kad, pullSyncProtocol, logger, puller.Options{}, warmupTime)
+ pullerService = puller.New(stateStore, kad, pullSyncProtocol,... | fix: puller metrics registration | null | ethersphere/bee | BSD 3-Clause New or Revised License | Go |
@@ -53,6 +53,7 @@ var Controller = [
$scope.loadingState = 'INITIAL';
$scope.alwaysShowUTWMetrics = configuration.getAlwaysShowUniqueTaskWorkerMetrics();
$scope.showTaskWorkerMetric = $scope.alwaysShowUTWMetrics;
+ $scope.metrics = {};
// sets loading state to error and updates error message
function setLoadingError(er... | fix(admin): fix TypeError in metrics | null | camunda/camunda-bpm-platform | Apache License 2.0 | JavaScript |
@@ -117,8 +117,8 @@ impl TomlParser {
let parser = RefCell::new(Self::default());
let input = State::new(s);
- parse_ws(&parser).with(
- choice((
+ parse_ws(&parser)
+ .with(choice((
eof(),
skip_many1(
choice((
@@ -128,8 +128,8 @@ impl TomlParser {
parse_newline(&parser),
)).skip(parse_ws(&parser)),
),
- ))
- ).parse(i... | fix(fmt): rustfmt | null | toml-rs/toml | Apache License 2.0 | Rust |
@@ -55,16 +55,15 @@ export default class NavLoginButton extends Component {
style
}
+ if (profile) {
const displayedName = profile.nickname || profile.name
-
const tooltip = (
<Tooltip id='user-tooltip'>
<b>{displayedName}</b> ({profile.email})
</Tooltip>
)
- return profile
- ? (
+ return (
<OverlayTrigger placement='l... | fix(NavLoginButton): Fix undef var when not logged in | null | opentripplanner/otp-react-redux | MIT License | JavaScript |
@@ -208,7 +208,7 @@ class CoreMiddlewareTest extends TestCase
$container = $this->getContainer();
$container->shouldReceive('get')->with(DemoController::class)->andReturn(new DemoController());
$middleware = new CoreMiddleware($container, 'http');
- $ref = new \ReflectionClass($middleware);
+ $ref = new ReflectionClass... | fix: Corrects style according to the PHP Coding Standards Fixer | null | hyperf/hyperf | MIT License | PHP |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.