diff stringlengths 12 9.3k | message stringlengths 8 199 | reasoning_trace null | repo stringlengths 6 68 | license stringclasses 3
values | language stringclasses 16
values |
|---|---|---|---|---|---|
-import * as h2m from 'h2m'
-import { htmlDecode } from 'js-htmlencode'
+import h2m from 'h2m'
import { decode } from 'he'
-import { parse, HTMLElement, TextNode } from 'node-html-parser'
+import { htmlDecode } from 'js-htmlencode'
+import { HTMLElement, parse, TextNode } from 'node-html-parser'
const noChildren = ['st... | fix: failing html parsing | null | kolplattformen/skolplattformen | Apache License 2.0 | TypeScript |
@@ -224,7 +224,7 @@ public abstract class TestBase {
}
protected boolean isBrokered(AddressSpace addressSpace) throws Exception{
- return TestUtils.getAddressSpaceType(getAddressSpace(addressSpace.getName())).equals("brokered");
+ return addressSpace.getType().equals(AddressSpaceType.BROKERED);
}
protected void assertC... | fix: simplified check if addrspace is brokered | null | enmasseproject/enmasse | Apache License 2.0 | Java |
@@ -106,7 +106,7 @@ public class Grid {
private static final double MAX_BOUNDING_BOX_AREA_SQ_KM = 250 000;
/** Maximum area allowed for features in a shapefile upload */
- double MAX_FEATURE_AREA_SQ_DEG = 0.01;
+ double MAX_FEATURE_AREA_SQ_DEG = 2;
/**
* @param zoom web mercator zoom level for the grid.
| fix(grids): increase MAX_FEATURE_AREA_SQ_DEG | null | conveyal/r5 | MIT License | Java |
@@ -209,6 +209,7 @@ export class DtTable<T> extends _DtTableBase<T> implements OnDestroy {
this._portalOutlet.attachTemplatePortal(template);
}
this._emptyState.first._visible = true;
+ this._changeDetectorRef.markForCheck();
} else {
// ned to unset the visibility to have every time the component will be attached a fa... | fix(table): Fixes an issue with the empty state not showing up without change detection | null | dynatrace-oss/barista | Apache License 2.0 | TypeScript |
@@ -67,7 +67,7 @@ export class SplashScreenContainer extends React.Component {
app.send({
type: MessageType.OpenExternalURL,
id: uuid.v4(),
- payload: 'https://meetalva.io/doc/docs/guides/start?guides-enabled=true'
+ payload: 'https://meetalva.io/doc/docs/start'
});
}}
onExampleClick={() => {
| fix(core): fix broken getting started link on splash screen | null | meetalva/alva | MIT License | TypeScript |
@@ -219,11 +219,13 @@ fn collect_checkpoints(
// calculate checkpoint
let mut checkpoint_builder = PersistCheckpointBuilder::new(partition_checkpoint);
- // collect checkpoints of all other partitions
- if let Ok(table) = catalog.table(table_name) {
- for partition in table.partitions() {
+ // collect checkpoints of al... | fix: collect checkpoint data from all tables | null | influxdata/influxdb_iox | Apache License 2.0 | Rust |
@@ -174,7 +174,18 @@ impl ObjectFile {
};
if let Some(ref debug_id) = object_id.debug_id {
- if parsed.debug_id() != *debug_id {
+ let parsed_id = parsed.debug_id();
+
+ // Microsoft symbol server sometimes stores updated files with a more recent
+ // (=higher) age, but resolves it for requests with lower ages as well.... | fix: More lenient debug_id validation | null | getsentry/symbolicator | MIT License | Rust |
@@ -439,7 +439,23 @@ impl<'a, 't> InternalPrinter<'a, 't> {
Value::Userdata(ref data) => arena.text(format!("{:?}", data)),
Value::Thread(thread) => arena.text(format!("{:?}", thread)),
Value::Byte(b) => arena.text(format!("{}", b)),
- Value::Int(i) => arena.text(format!("{}", i)),
+ Value::Int(i) => {
+ use base::type... | fix(repl): Print out Char as the "character" instead of code point integer in the repl | null | gluon-lang/gluon | MIT License | Rust |
@@ -41,7 +41,7 @@ class DetailsFragment : DaggerFragment() {
inflater: LayoutInflater,
container: ViewGroup?,
savedInstanceState: Bundle?
- ): View = inflater.inflate(R.layout.fragment_series_detail, container, false)
+ ): View = inflater.inflate(R.layout.fragment_details, container, false)
override fun onViewCreated(v... | fix: wrong layout being inflated for details | null | chesire/nekome | Apache License 2.0 | Kotlin |
@@ -113,7 +113,7 @@ ockam_vault_extern_error_t ockam_vault_secret_export(ockam_vault_t vault,
ockam_vault_secret_t secret,
uint8_t* output_buffer,
uint32_t output_buffer_size,
- size_t* output_buffer_length);
+ uint32_t& output_buffer_length);
/**
* @brief Retrieve the public key from an ockam vault secret.
@@ -128,7 +... | fix(rust): change `size_t` to `uint32_t` in C header file | null | ockam-network/ockam | Apache License 2.0 | C |
@@ -1388,7 +1388,7 @@ public:
}
if (!result.ec) {
- final_ec = {}; // success
+ final_ec = sys::error_code{}; // success
for (auto& job : jobs.running()) {
job.stop(yield);
}
| fix: initialize using error_code{} | null | equalitie/ouinet | MIT License | C++ |
@@ -188,7 +188,7 @@ public class RetireJsAnalyzerIT extends BaseDBTestCase {
assertEquals("version", version.getName());
assertEquals("1.3.0", version.getValue());
- assertEquals(3, dependency.getVulnerabilities().size());
+ assertTrue(dependency.getVulnerabilities().size() >= 3);
assertTrue(dependency.getVulnerabiliti... | fix: allow new vulns | null | jeremylong/dependencycheck | Apache License 2.0 | Java |
@@ -50,7 +50,10 @@ export default class Grid {
make() {
var me = this;
- let template = `<div>
+ let template = `<div class="form-group">
+ <div class="clearfix">
+ <label class="control-label" style="padding-right: 0px;">${__(this.df.label)}</label>
+ </div>
<div class="form-grid">
<div class="grid-heading-row"></div>... | fix: Show label for Table fields | null | frappe/frappe | MIT License | JavaScript |
@@ -28,8 +28,10 @@ class TestBuildCommand_PythonFunctions(BuildIntegBase):
@parameterized.expand([
("python2.7", False),
("python3.6", False),
+ ("python3.7", False),
("python2.7", "use_container"),
("python3.6", "use_container"),
+ ("python3.7", "use_container"),
])
def test_with_default_requirements(self, runtime, us... | fix: python3.7 build integration tests | null | aws/aws-sam-cli | Apache License 2.0 | Python |
+import 'package:auto_size_text/auto_size_text.dart';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:flutter_gen/gen_l10n/app_localizations.dart';
@@ -256,12 +257,15 @@ class _NutritionPageLoadedState extends State<NutritionPageLoaded> {
onChanged: (final bool value) =>
... | fix: overflow at update nutrition facts page | null | openfoodfacts/smooth-app | Apache License 2.0 | Dart |
@@ -51,7 +51,9 @@ function Sidebar(): JSX.Element {
const path = findPathToNode(navigationRoot, (node) => {
if (!node?.routing) return false;
const hashRegexp = new RegExp(
- (node.routing.appHash || '#/').replace(/{[^}]+}/g, '[^/]+'),
+ (node.routing.hash || '/')
+ .replace(/^#/, '')
+ .replace(/{[^}]+}/g, '[^/]+'),
)... | fix(container): sidebar routing | null | ovh/manager | BSD 3-Clause New or Revised License | TypeScript |
@@ -107,9 +107,7 @@ ACL_IMPL_FILE_PRAGMA_PUSH
{
class runtime_assert final : public std::runtime_error
{
- public:
- explicit runtime_assert(const std::string& message) : std::runtime_error(message.c_str()) {}
- explicit runtime_assert(const char* message) : std::runtime_error(message) {}
+ using std::runtime_error::ru... | fix(core): properly inherit constructors (sonarcloud) | null | nfrechette/acl | MIT License | C |
@@ -72,6 +72,9 @@ if (!gotTheLock && !isDarwin) {
y: store.get('y'),
width: 360,
height: 320,
+ resizable: false,
+ maximizable: false,
+ fullscreenable: false,
frame: false,
show: false,
backgroundColor: '#00c6fb',
| fix: set resizable: false | null | sprout2000/elephicon | MIT License | TypeScript |
@@ -122,7 +122,7 @@ export default class CodeControl extends React.Component {
getInitialLang = () => {
const { value, field } = this.props;
const lang =
- (this.valueIsMap() && value && value.get(this.keys.lang)) || field.get('defaultLanguage');
+ (this.valueIsMap() && value && value.get(this.keys.lang)) || field.get(... | fix(widget-code): use snake case for default language option | null | netlify/netlify-cms | MIT License | JavaScript |
@@ -345,39 +345,23 @@ bool NativeWindowViews::PreHandleMSG(UINT message,
return false;
}
case WM_GETMINMAXINFO: {
- // We need to handle GETMINMAXINFO ourselves because chromium tries to
- // get the scale factor of the window during it's version of this handler
- // based on the window position, which is invalid at th... | fix: incorrect size of windows on differently scaled monitors | null | electron/electron | MIT License | C++ |
@@ -76,30 +76,36 @@ public final class ItemNetworkType implements NetworkType<Storage<ItemVariant>>
for (var memberNode : instance.members) {
var member = (Network.Member) memberNode;
- var storage = find(new WorldPos(world, member.blockPos()), member.direction());
+ var storage = find(new WorldPos(world, member.getBlo... | fix: holo bridges for real this time | null | mixinors/astromine | MIT License | Java |
@@ -94,8 +94,10 @@ public final class ConflictingAttribute implements Serializable {
* @return
*/
public String toDisplayName() {
- if (Strings.isNullOrEmpty(getSourceValue())) {
+ if (Strings.isNullOrEmpty(getSourceValue()) && Strings.isNullOrEmpty(getTargetValue())) {
return property;
+ } else if (Strings.isNullOrEmp... | fix(merge): support empty source/target values | null | b2ihealthcare/snow-owl | Apache License 2.0 | Java |
@@ -75,12 +75,12 @@ extension Tracer {
var span: Span
func annotate(key: String, value: String) {
- print("[TrendingMovies] annotating span \(span.context.spanId.sentrySpanIdString), key \(key) and value \(value)")
- span.context.setTag(value: value, key: key)
+ print("[TrendingMovies] annotating span \(span.spanId.sen... | fix: remove reference to context property that was removed | null | getsentry/sentry-cocoa | MIT License | Swift |
@@ -212,20 +212,20 @@ class TripletLoss(object):
logging_callback = LoggingCallbackPytorch(log_dir=log_dir)
+ try:
batch_generator = SpeechTurnGenerator(
feature_extraction,
per_label=self.per_label, per_fold=self.per_fold,
duration=self.duration)
-
- try:
batches = batch_generator(protocol, subset=subset)
+ batch = ne... | fix: catch "Too many open files" OSError and use "slow" mod | null | pyannote/pyannote-audio | MIT License | Python |
@@ -21,8 +21,10 @@ import com.linkedin.metadata.Constants;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
+import lombok.extern.slf4j.Slf4j;
+@Slf4j
public class IngestionResolverUtils {
public static List<ExecutionRequest> mapExecutionRequests(final Collection<EntityResponse> requests)... | fix(ingestionSource): improve error experience when ingestion source is in an inconsistent state | null | linkedin/datahub | Apache License 2.0 | Java |
@@ -187,7 +187,7 @@ typedef struct {
/*------- receiving ---------------*/
buf_stailq_t recv_link_list; // now ready to/already hold data
buf_tailq_t recv_reg_list; // removed from the link list, registered but not used now
- buf_desc_t* recv_cur_ret;
+ volatile buf_desc_t* recv_cur_ret; // next desc to return, NULL if... | fix(sdio_slave): fix the intr_recv issue that trigger receiving too fast cause assertion failed | null | espressif/esp-idf | Apache License 2.0 | C |
@@ -215,14 +215,7 @@ class TfMultiCheckbox extends PolymerElement {
})
maxNamesToEnableByDefault: number = 40;
- @property({
- type: Object,
- })
- // Updating the regex can be slow, because it involves updating styles
- // on a large number of Polymer paper-checkboxes. We don't want to do
- // this while the user is t... | fix: run filter in the runs selector | null | tensorflow/tensorboard | Apache License 2.0 | TypeScript |
@@ -29,7 +29,7 @@ module Extensions::DuplicationTraceable::ActiveRecord::Base
# Sets the source id.
def source=(item)
- self.source_id = item.id
+ self.source_id = item&.id
end
end
end
| fix(duplication history): allow setting of source to nil | null | coursemology/coursemology2 | MIT License | Ruby |
@@ -67,6 +67,10 @@ class CSSLengthValue {
RenderStyle? renderStyle;
String? propertyName;
double? _computedValue;
+
+ // Note return value of double.infinity means the value is resolved as the initial value
+ // which can not be computed to a specific value, eg. percentage height is sometimes parsed
+ // to be auto due... | fix: percentage height should be resolved as auto if parent has no height specified | null | openkraken/kraken | Apache License 2.0 | Dart |
@@ -771,10 +771,11 @@ func (manager *SNetworkManager) GetOnPremiseNetworkOfIP(ipAddr string, serverTyp
}
q := manager.Query()
wires := WireManager.Query().SubQuery()
- vpcs := VpcManager.Query().SubQuery()
+ // vpcs := VpcManager.Query().SubQuery()
q = q.Join(wires, sqlchemy.Equals(q.Field("wire_id"), wires.Field("id")... | fix: GetOnPremiseNetworkOfIP should return underlay networks | null | yunionio/yunioncloud | Apache License 2.0 | Go |
@@ -330,9 +330,12 @@ export const KeyboardPreview = withTracker<IProps, IState, ITrackedProps>((props
let customLabel: string | undefined = undefined
let customSourceLayer: SourceLayerType | undefined = undefined
- if (this.props.customLabels[thisCombo]) {
- customLabel = this.props.customLabels[thisCombo].label
- cust... | fix: Case sensitivity in keyboard layout | null | nrkno/tv-automation-server-core | MIT License | TypeScript |
@@ -38,9 +38,8 @@ import { NgAisInstance } from "../instantsearch/instantsearch-instance";
(click)="handleSubmit($event)"
>
<svg
- [ngClass]="cx('magnifierIcon')"
+ [ngClass]="cx('submitIcon')"
xmlns="http://www.w3.org/2000/svg"
- id="sbx-icon-search-13"
viewBox="0 0 40 40"
width="40"
height="40"
@@ -54,6 +53,7 @@ impo... | fix(search-box): update markup to match instantsearch.css | null | algolia/angular-instantsearch | MIT License | TypeScript |
@@ -217,7 +217,7 @@ export function transformVueHtml(node: RootNode, pugMapper?: (code: string, html
const propName2 = prop.name;
const isClassOrStyleAttr = ['style', 'class'].includes(propName);
- if (isClassOrStyleAttr || forDuplicateClassOrStyleAttr) continue;
+ if (isClassOrStyleAttr !== forDuplicateClassOrStyleAtt... | fix: duplicate attributes filter condition incorrect | null | johnsoncodehk/volar | MIT License | TypeScript |
@@ -105,8 +105,11 @@ class DreameMapParser {
/**
* Contains saved map data such as virtual restrictions as well as segments
+ *
+ * ris 2 seems to represent that the rism data shall be applied to the map while ris 1 only appears
+ * after the robot complains about being unable to use the map
*/
- if (additionalData.ris... | fix(vendor.dreame): Segments from rism might not apply in some situations | null | hypfer/valetudo | Apache License 2.0 | JavaScript |
@@ -51,7 +51,17 @@ struct PXInitFeatures: Codable {
let cardsCustomTaxesCharges: Bool
let taxableCharges: Bool
- init(oneTap: Bool = true, split: Bool, odr: Bool = true, comboCard: Bool = false, hybridCard: Bool = false, validationPrograms: [String] = [], pix: Bool = true, customTaxesCharges: Bool = true, cardsCustomTa... | fix: Fixed combo, hybrid and validationPrograms feature flags | null | mercadopago/px-ios | MIT License | Swift |
@@ -67,12 +67,17 @@ public class Utils {
}
public static Drawable createRippleDrawable(int rippleColor, float radius) {
- ShapeDrawable rippleShape = radius != 0 ? createForegroundShape(radius) : null;
if (Build.VERSION.SDK_INT >= 22) {
+ ShapeDrawable rippleShape = radius != 0 ? createForegroundShape(radius) : null;
r... | fix(core): fix aandroid crash with ripple on < 22 | null | nativescript-community/ui-material-components | Apache License 2.0 | Java |
@@ -312,7 +312,11 @@ namespace Unity.Netcode.Editor.CodeGen
assemblies.Add(m_MainModule.Assembly);
foreach (var reference in m_MainModule.AssemblyReferences)
{
- assemblies.Add(m_AssemblyResolver.Resolve(reference));
+ var assembly = m_AssemblyResolver.Resolve(reference);
+ if (assembly != null)
+ {
+ assemblies.Add(as... | fix: (external) avoid NullReferenceException on ImportReferences call | null | unity-technologies/com.unity.multiplayer.mlapi | MIT License | C# |
@@ -23,7 +23,7 @@ class ApiAudienceRule(@Autowired rulesConfig: Config) {
private val extensionName = "x-audience"
private val path = "/info/$extensionName"
- @Check(severity = Severity.SHOULD)
+ @Check(severity = Severity.MUST)
fun validate(swagger: Swagger): Violation? {
val audience = swagger.info?.vendorExtensions?... | fix(server): set severity level to MUST | null | zalando/zally | MIT License | Kotlin |
@@ -123,7 +123,6 @@ void conv_compute_6x6_3x3(const float* input,
// begin compute
for (int ni = 0; ni < num; ++ni) {
// trans input to c4
-#pragma omp parallel for num_threads(threads)
for (int i = 0; i < ic_4; ++i) {
prepack_input_nxwc4_dw(input + ni * in_n_stride,
input_c4 + i * new_c_stride,
@@ -411,7 +410,6 @@ voi... | fix: fix conv_winograd multithreads bug | null | paddlepaddle/paddle-lite | Apache License 2.0 | C++ |
@@ -140,6 +140,7 @@ impl<'a> Client<'a> {
let mut resp_http = HttpClient::new()
.request(reqwest::Method::from_bytes(method.as_bytes())?, &url)
.header(reqwest::header::CONTENT_TYPE, "application/json")
+ .header(reqwest::header::USER_AGENT, "CDS/sdk")
.header(SESSION_TOKEN_HEADER, self.token)
.basic_auth(self.username... | fix(sdk): add user agent in rust sdk | null | ovh/cds | BSD 3-Clause New or Revised License | Rust |
@@ -83,6 +83,7 @@ def delete_doc(doctype=None, name=None, force=0, ignore_doctypes=None, for_reloa
doc.flags.in_delete = True
doc.run_method('on_change')
+ clear_timeline_references(doc.doctype, doc.name)
frappe.enqueue('frappe.model.delete_doc.delete_dynamic_links', doctype=doc.doctype, name=doc.name,
is_async=False i... | fix: link error while deleting linked doc | null | frappe/frappe | MIT License | Python |
@@ -74,14 +74,16 @@ def load_diff(args, extra_opts):
ac_schema=args.schema,
**extra_opts)
except api.UnknownProcessorTypeError:
- exit_with_output("Wrong input type '%s'" % args.itype, 1)
+ exit_with_output(f"Wrong input type '{args.itype}'", 1)
except api.UnknownFileTypeError:
- exit_with_output("No appropriate backen... | fix: pylint errors, consider-using-f-string | null | ssato/python-anyconfig | MIT License | Python |
@@ -368,14 +368,20 @@ func updateResource(c *Client, target *resource.Info, currentObj runtime.Object,
}
func (c *Client) watchUntilReady(timeout time.Duration, info *resource.Info) error {
+ kind := info.Mapping.GroupVersionKind.Kind
+ switch kind {
+ case "Job", "Pod":
+ default:
+ return nil
+ }
+
+ c.Log("Watching ... | fix(pkg/kube): only wait for events from Jobs and Pods | null | helm/helm | Apache License 2.0 | Go |
@@ -191,7 +191,7 @@ class Exporter:
[format_column_name(df) for df in self.fields if df.parent == child_table_doctype]
)
)
- data = frappe.db.get_list(
+ data = frappe.db.get_all(
child_table_doctype,
filters={
"parent": ("in", parent_names),
| fix: Use `get_all` instead of `get_list` for child doctype | null | frappe/frappe | MIT License | Python |
@@ -159,7 +159,7 @@ func (t *treeStore) flush() {
for k, v := range oldCache {
l, i := decodeTreeKey([]byte(k))
- if false && i < limits[l] {
+ if i < limits[l] {
wb.Set([]byte(k), v[:])
} else {
t.cache[k] = v
| fix(db/treestore): revert debug if condition | null | codenotary/immudb | Apache License 2.0 | Go |
@@ -1153,13 +1153,17 @@ static int arcus_check_server_mapping(zhandle_t *zh, const char *root)
snprintf(zpath, sizeof(zpath), "%s/%s/%s",
root, zk_map_dir, arcus_conf.mc_ipport);
rc = zoo_get_children(zh, zpath, ZK_NOWATCH, &strv);
- if (rc == ZNONODE) {
-
+ while (rc == ZNONODE) {
/* Second check: get children of "/ca... | fix: incorrect ip checking when it is proxy mode | null | naver/arcus-memcached | Apache License 2.0 | C |
@@ -111,7 +111,7 @@ class JoystickComponent extends HudMarginComponent with Draggable {
@override
bool onDragUpdate(DragUpdateInfo info) {
- _unscaledDelta.add(info.delta.global);
+ _unscaledDelta.add(info.delta.viewport);
return false;
}
| fix: JoystickComponent drags using the delta Viewport | null | flame-engine/flame | MIT License | Dart |
@@ -28,7 +28,7 @@ func queryParamsHandlerFn(cliCtx context.CLIContext) http.HandlerFunc {
return
}
- route := fmt.Sprintf("custom/%s/parameters", types.QuerierRoute)
+ route := fmt.Sprintf("custom/%s/%s", types.QuerierRoute, types.QueryGetParams)
res, height, err := cliCtx.QueryWithData(route, nil)
if err != nil {
| fix: use correct querier endpoint | null | kava-labs/kava | Apache License 2.0 | Go |
@@ -40,7 +40,7 @@ fi
webhook_secret_exists=false
if grep "${WEBHOOK_SECRET_NAME}" -w <cache_secret.txt; then
- webhook_config_exists=true
+ webhook_secret_exists=true
fi
if [ "$webhook_config_exists" == "true" ] && [ "$webhook_config_exists" == "true" ]; then
| fix(cache): Fix cache deployer not regenerating secrets when secret not present | null | kubeflow/pipelines | Apache License 2.0 | Shell |
@@ -54,7 +54,7 @@ class Predictor(state.HasState):
snake_name = 'sklearn_predictor'
model = traitlets.Any(default_value=None, allow_none=True, help='A scikit-learn estimator.').tag(**serialize_pickle)
features = traitlets.List(traitlets.Unicode(), help='List of features to use.')
- target = traitlets.Unicode(allow_none... | fix: allow target=None for estimators or other algorithms that do not strictly require it | null | vaexio/vaex | MIT License | Python |
@@ -96,7 +96,7 @@ public final class ResourcesLoader {
case MANIFEST:
case XML:
ICodeInfo content = jadxRef.getXmlParser().parse(inputStream);
- return ResContainer.textResource(rf.getOriginalName(), content);
+ return ResContainer.textResource(rf.getDeobfName(), content);
case ARSC:
return new ResTableParser(jadxRef.g... | fix(res): fixes deobfuscated resource text files saving (PR | null | skylot/jadx | Apache License 2.0 | Java |
@@ -100,7 +100,7 @@ pub fn create_help_usage(p: &Parser, incl_reqs: bool) -> String {
usage.push_str(" [--]");
}
let not_req_or_hidden =
- |p: &PosBuilder| !p.is_set(ArgSettings::Required) && !p.is_set(ArgSettings::Hidden);
+ |p: &PosBuilder| (!p.is_set(ArgSettings::Required) || p.is_set(ArgSettings::Last)) && !p.is_se... | fix: fixes a bug where args with last(true) and required(true) set were not being printed in the usage string | null | clap-rs/clap | Apache License 2.0 | Rust |
@@ -40,7 +40,7 @@ namespace Elders.Cronus
var loadedAssemblies = AppDomain.CurrentDomain.GetAssemblies()
.Where(x => x.IsDynamic == false)
- .Where(x => x.Location.Equals(lowerAssemblyFile, StringComparison.OrdinalIgnoreCase) || x.Location.Equals(lowerAssemblyFile, StringComparison.OrdinalIgnoreCase))
+ .Where(x => x.L... | fix: Fixes Linux paths. _!_0x M$ | null | elders/cronus | Apache License 2.0 | C# |
@@ -357,7 +357,6 @@ private:
EIO_STRUCT_STAT *statdata = (EIO_STRUCT_STAT *)r->ptr2;
if (!statdata) error("FStatBufferError", fd, r);
state int64_t size = statdata->st_size;
- free(statdata);
Void _ = wait( delay(0, taskID) );
return size;
}
| fix: we should not free statdata ourselves, it will be deleted by libeio itself | null | apple/foundationdb | Apache License 2.0 | C |
@@ -54,6 +54,6 @@ protected function handleException($passable, Throwable $e)
$response->withException($e);
}
- return $response;
+ return $this->handleCarry($response);
}
}
| fix: normalize route pipeline exception | null | laravel/framework | MIT License | PHP |
@@ -21,6 +21,7 @@ var debugCmd = &cobra.Command{
Run: func(cmd *cobra.Command, args []string) {
startTime := time.Now()
env := &environment.ShellEnvironment{
+ Version: cliVersion,
CmdFlags: &environment.Flags{
Config: config,
Debug: true,
| fix(debug): initialize `ShellEnvironment.Version` | null | jandedobbeleer/oh-my-posh | MIT License | Go |
@@ -24,7 +24,7 @@ replace_or_delete_in_index () {
fi
}
-if [ "${BASE_URL}" ]; then
+if [[ "${BASE_URL}" != "/" ]]; then
sed -i "s|location / {|location $BASE_URL {|g" $NGINX_CONF
fi
@@ -36,14 +36,20 @@ if [ "$SWAGGER_JSON_URL" ]; then
fi
if [[ -f "$SWAGGER_JSON" ]]; then
- cp -s "$SWAGGER_JSON" "$NGINX_ROOT"
REL_PATH="... | fix(Docker): case where SWAGGER_ROOT in conjunction with BASE_URL does not work | null | swagger-api/swagger-ui | Apache License 2.0 | Shell |
@@ -156,6 +156,8 @@ impl BitSet {
/// Sets a given bit
pub fn set(&mut self, idx: usize) {
+ assert!(idx <= self.len);
+
let byte_idx = idx >> 3;
let bit_idx = idx & 7;
self.buffer[byte_idx] |= 1 << bit_idx;
@@ -163,6 +165,8 @@ impl BitSet {
/// Returns if the given index is set
pub fn get(&self, idx: usize) -> bool {
... | fix: bounds check BitSet access | null | influxdata/influxdb_iox | Apache License 2.0 | Rust |
@@ -8,12 +8,20 @@ import json
import redis
from pygments.formatters import HtmlFormatter
+def do_not_record():
+ if hasattr(frappe.local, "_recorder"):
+ del frappe.local._recorder
+ frappe.db.sql = frappe.db._sql
+
+
def get_context(context):
+ do_not_record()
return {"highlight": HtmlFormatter().get_style_defs()}
@fr... | fix(recorder): Do not record requests caused by recorder | null | frappe/frappe | MIT License | Python |
@@ -42,6 +42,7 @@ import fr.free.nrw.commons.notification.NotificationController;
import fr.free.nrw.commons.quiz.QuizChecker;
import fr.free.nrw.commons.theme.NavigationBaseActivity;
import fr.free.nrw.commons.upload.UploadService;
+import fr.free.nrw.commons.utils.ViewUtil;
import io.reactivex.android.schedulers.Andr... | fix: Issue Bug: SoftKeyboard showing even after switching from nearby tab to contribution tab | null | commons-app/apps-android-commons | Apache License 2.0 | Java |
@@ -127,6 +127,9 @@ export class TransactionModel extends BaseModel<ITransaction> {
const mintOps = await this.getMintOps(params);
const spendOps = this.getSpendOps({ ...params, mintOps });
const txOps = await this.addTransactions({ ...params, mintOps });
+ const handleMempoolOpSafely = op => {
+ return this.toMempoolS... | fix(node): sanitizing mempool updates to avoid conflicting with block updates | null | bitpay/bitcore | MIT License | TypeScript |
@@ -4,8 +4,8 @@ module.exports = class extends Command {
constructor(...args) {
super(...args, {
- aliases: ['kittenfact'],
cooldown: 10,
+ requiredPermissions: ['EMBED_LINKS'],
description: (msg) => msg.language.get('COMMAND_SHIBE_DESCRIPTION'),
extendedHelp: (msg) => msg.language.get('COMMAND_SHIBE_EXTENDED')
});
| fix: Shibe command | null | skyra-project/skyra | Apache License 2.0 | JavaScript |
@@ -65,6 +65,8 @@ const ObjectSelect = (props: Props) => {
);
};
+const filterOption = (input, option) => (option?.label ?? '').toLowerCase().includes((input || '').toLowerCase());
+
export const Select = connect(
(props: Props) => {
const { objectValue, ...others } = props;
@@ -74,10 +76,7 @@ export const Select = con... | fix(select-component): remove filter sort | null | nocobase/nocobase | Apache License 2.0 | TypeScript |
@@ -45,7 +45,7 @@ module Discordrb
end
# @return [String] A message including the message and flattened errors.
- def full_message
+ def full_message(*)
error_list = @errors.collect { |err| "\t- #{err}" }
"#{@message}\n#{error_list.join("\n")}"
| fix: make CodeError#full_message compatible with IRB | null | shardlab/discordrb | MIT License | Ruby |
@@ -685,7 +685,21 @@ class Database(object):
modified_by = modified_by or frappe.session.user
to_update.update({"modified": modified, "modified_by": modified_by})
- if not is_single_doctype:
+ if is_single_doctype:
+ frappe.db.delete(
+ "Singles",
+ filters={"field": ("in", tuple(to_update)), "doctype": dt}, debug=debu... | fix: Cast values as str for all single doctypes | null | frappe/frappe | MIT License | Python |
@@ -261,7 +261,6 @@ class RemoteModelGRPC(RemoteModel):
super(RemoteModelGRPC, self).__init__(
remote, name, signature, labels, beam, lengths_key, inputs, version, return_labels
)
- import pdb; pdb.set_trace()
self.predictpb = import_user_module('baseline.tensorflow_serving.apis.predict_pb2')
self.servicepb = import_us... | fix: remove pdb debug statement | null | dpressel/mead-baseline | Apache License 2.0 | Python |
@@ -100,7 +100,7 @@ impl Context {
};
if is_tuple {
- fields.push(ty);
+ fields.push(quote!(pub #ty));
} else {
let field_name = util::safe_ident(&field.name().to_snake_case());
fields.push(quote! { pub #field_name: #ty });
| fix: add missing pub for tuple structs | null | gakonst/ethers-rs | Apache License 2.0 | Rust |
@@ -27,8 +27,9 @@ class Tooltip extends React.Component<TooltipProps, any> {
render() {
const { children, content, ...others } = this.props;
- return content ? (
+ return !(content === '' || content === null || content === undefined) ? (
<Popper
+ content={content}
{...others}
>
{children}
| fix: fix tooltip code bug | null | zhongantech/zarm | MIT License | TypeScript |
@@ -47,7 +47,7 @@ export class VendorsExtractor extends AbstractExtractor<Vendor[]> {
// Else, simply bind the obj property to the effective partial
itemPartial = itemPartial.obj;
}
- if (itemPartial !== undefined) {
+ if (itemPartial !== undefined && vendor.price === -1) {
// If we have an undefined price, this is not... | fix(vendors): fixed an issue with vendors extraction not being done properly in some cases | null | ffxiv-teamcraft/ffxiv-teamcraft | MIT License | TypeScript |
import * as PJAX from 'pjax'
import * as NProgress from 'nprogress'
+import { raiseError } from 'analytics'
NProgress.configure({ showSpinner: false })
@@ -58,8 +59,7 @@ function getBranches() {
}
function getCurrentBranch() {
- const selectedBranchButtonSelector =
- '.repository-content .file-navigation .branch-select... | fix: safe DOM manipulations | null | enixcoda/gitako | MIT License | TypeScript |
@@ -193,7 +193,9 @@ func (g *DeployPreApproveWorkflowStepGenerator) Generate(app *v1beta1.Applicatio
for _, step := range existingSteps {
if step.Type == "deploy" && !lastSuspend {
props := DeployWorkflowStepSpec{}
+ if step.Properties != nil {
_ = utils.StrictUnmarshal(step.Properties.Raw, &props)
+ }
if props.Auto !=... | fix: panic when properties empty | null | oam-dev/kubevela | Apache License 2.0 | Go |
@@ -1550,6 +1550,11 @@ func (b *SBaremetalInstance) StartBaremetalResetBMCTask(userCred mcclient.TokenC
}
func (b *SBaremetalInstance) StartBaremetalIpmiProbeTask(userCred mcclient.TokenCredential, taskId string, data jsonutils.JSONObject) error {
+ session := b.manager.GetClientSession()
+ data, _ = b.manager.fetchBar... | fix(region): sync baremetal desc before do ipmi probing | null | yunionio/yunioncloud | Apache License 2.0 | Go |
@@ -2424,14 +2424,6 @@ void WebContents::OpenDevTools(gin::Arguments* args) {
!owner_window()) {
state = "detach";
}
- bool activate = true;
- if (args && args->Length() == 1) {
- gin_helper::Dictionary options;
- if (args->GetNext(&options)) {
- options.Get("mode", &state);
- options.Get("activate", &activate);
- }
- ... | fix: allow docking DevTools with WCO | null | electron/electron | MIT License | C++ |
@@ -53,4 +53,11 @@ docker run --rm \
# upload code coverage
+# Only upload for one architecture. All architectures should produce identical report.
+
+# detect effective CPU architecture
+if $(arch | grep -q 86)
+then
bash <(curl -s https://codecov.io/bash)
+fi
+
| fix: codecov report upload | null | ambianic/ambianic-edge | Apache License 2.0 | Shell |
@@ -3,6 +3,9 @@ namespace VRTK
{
using UnityEngine;
using System.Collections.Generic;
+#if UNITY_5_5_OR_NEWER
+ using UnityEngine.AI;
+#endif
/// <summary>
/// The Base Pointer Renderer script is an abstract class that handles the set up and operation of how a pointer renderer works.
| fix(Pointer): ensure required include is used for unity 5.5 | null | extendrealityltd/vrtk | MIT License | C# |
@@ -1084,7 +1084,7 @@ const Editor = (props: EditorProps): JSX.Element => {
editorDidMount={editorDidMount}
editorWillMount={editorWillMount}
onChange={onChange}
- options={options}
+ options={{ ...options, folding: !hasEditableRegion() }}
theme={editorTheme}
/>
</span>
| fix: disable code folding when editable regions present | null | freecodecamp/freecodecamp | BSD 3-Clause New or Revised License | TypeScript |
@@ -153,6 +153,19 @@ export const Popper = styled.div`
padding: sm 0;
}
+ .react-datepicker__month-dropdown-container,
+ .react-datepicker__year-dropdown-container {
+ padding: sm;
+ background-color: light.100;
+ border: ${th.borderWidth('sm')} solid;
+ border-color: nude.200;
+ border-radius: sm;
+
+ &:active {
+ bor... | fix: add styles for year/month dropdowns in datepicker | null | wttj/welcome-ui | MIT License | JavaScript |
-import { Enum, isIn, List, text, toList } from '../types';
+import { Enum, isIn, List, Text, text, toList } from '../types';
import { Scope } from './Scope';
import { App } from './App';
| fix(easy): Add missing import for Text type | null | thisisagile/easy | MIT License | TypeScript |
@@ -194,6 +194,10 @@ func varsFromInput(inputVars []recipes.VariableConfig, assumeYes bool) (types.Re
if envValue == "" {
if assumeYes {
+ if envConfig.Default == "" {
+ return vars, fmt.Errorf("no default value for environment variable %s and none provided", envConfig.Name)
+ }
+
log.Debugf("required env var %s not fo... | fix(install): return error when default value is needed and not provided | null | newrelic/newrelic-cli | Apache License 2.0 | Go |
@@ -142,7 +142,7 @@ class Kraken extends StatelessWidget {
final KrakenNavigationDelegate? navigationDelegate;
// A method channel for receiving messaged from JavaScript code and sending message to JavaScript.
- final KrakenJavaScriptChannel? javaScriptChannel;
+ final KrakenMethodChannel? javaScriptChannel;
final Load... | fix: fix javascriptChannel types | null | openkraken/kraken | Apache License 2.0 | Dart |
@@ -1437,7 +1437,7 @@ class GlobalSmsGatewayListView(CRUDPaginatedViewMixin, BaseAdminSectionView):
supported_country_names = _('Multiple%s') % '*'
else:
supported_country_names = ', '.join(
- [_(country_name_from_code(int(c))) for c in backend.supported_countries])
+ [_(country_name_for_country_code(int(c))) for c in ... | fix: leftover rename | null | dimagi/commcare-hq | BSD 3-Clause New or Revised License | Python |
@@ -147,7 +147,7 @@ func (c *Controller) setGatewayBandwidth() error {
}
ingress, egress := node.Annotations[util.IngressRateAnnotation], node.Annotations[util.EgressRateAnnotation]
ifaceId := fmt.Sprintf("node-%s", c.config.NodeName)
- return ovs.SetInterfaceBandwidth(ifaceId, ingress, egress)
+ return ovs.SetInterfac... | fix: qos error | null | kubeovn/kube-ovn | Apache License 2.0 | Go |
@@ -226,11 +226,11 @@ public extension Oracle {
extension Oracle {
public struct FeeHistory {
- let timestamp = Date()
- let baseFeePerGas: [BigUInt]
- let gasUsedRatio: [Double]
- let oldestBlock: BigUInt
- let reward: [[BigUInt]]
+ public let timestamp = Date()
+ public let baseFeePerGas: [BigUInt]
+ public let gasUs... | fix: set public access modifier to FeeHistory struct members | null | skywinder/web3swift | Apache License 2.0 | Swift |
{{ $hasError ? 'text-negative-500' : 'text-secondary-400' }}">
@if ($icon)
<x-dynamic-component
- :component="WireUiComponent::resolve('label')"
+ :component="WireUiComponent::resolve('icon')"
:name="$icon"
class="h-5 w-5"
/>
| fix: change the component name to resolve | null | wireui/wireui | MIT License | PHP |
@@ -133,7 +133,7 @@ module.exports = class ActionsBuilder {
throw new TypeError('.dragAndDrop() "element" argument should be valid element or CSS selector');
}
- if (isInvalidElement(element)) {
+ if (isInvalidElement(dragTo)) {
throw new TypeError('.dragAndDrop() "dragTo" argument should be valid element or CSS select... | fix: Fixed not checking if dragTo is a valid element | null | gemini-testing/gemini | MIT License | JavaScript |
@@ -69,7 +69,9 @@ var _ = Describe("ClusterServiceVersion", func() {
Name: "test-namespace-1",
},
}
- Expect(ctx.Ctx().Client().Create(context.Background(), &ns)).To(Succeed())
+ Eventually(func() error {
+ return ctx.Ctx().Client().Create(context.Background(), &ns)
+ }).Should(Succeed())
og := v1.OperatorGroup{
Object... | fix: wrap csv e2e test create in Eventually statements in the BeforeEach block | null | operator-framework/operator-lifecycle-manager | Apache License 2.0 | Go |
-import React from 'react';
+import React, { useContext } from 'react';
import PropTypes from 'prop-types';
import UsersList from './UsersList';
import AdminMenu from '../admin-menu';
import PageContent from '../../../component/common/PageContent/PageContent';
+import AccessContext from '../../../contexts/AccessContext... | fix: require ADMIN role to manage users | null | unleash/unleash | Apache License 2.0 | JavaScript |
@@ -385,6 +385,7 @@ END_TEST
START_TEST(test_001CreateWallet_0014UnloadInexistentWallet)
{
BSINT32 rtnVal;
+ BoatIotSdkInit();
BoatPlatONWalletConfig wallet = get_platon_wallet_settings();
extern BoatIotSdkContext g_boat_iot_sdk_context;
wallet.prikeyCtx_config.prikey_genMode = BOAT_WALLET_PRIKEY_GENMODE_INTERNAL_GENER... | fix: delete BoatIotSdkDeInit(); in test_001CreateWallet_0014UnloadInexistentWallet | null | aitos-io/boat-x-framework | Apache License 2.0 | C |
@@ -26,7 +26,7 @@ export const ImageType = {
hotspotFields = hotspotFields.map((field) => ({...field, hidden: true}))
}
- const fields = (subTypeDef.fields || []).concat(ASSET_FIELD).concat(hotspotFields)
+ const fields = [ASSET_FIELD, ...hotspotFields, ...(subTypeDef.fields || [])]
const parsed = Object.assign(pick(IM... | fix(schema): add custom fields after asset + hotspot crop | null | sanity-io/sanity | MIT License | TypeScript |
@@ -61,7 +61,7 @@ func registerRoutes(storageDir string, domain string, cdnDomain string, cdnDomai
}
// serve embed/assest files
- if strings.HasPrefix(pathname, "/embed/assest/") {
+ if strings.HasPrefix(pathname, "/embed/assets/") {
data, err := embedFS.ReadFile(pathname[1:])
if err != nil {
return err
| fix: fix asset files serve | null | esm-dev/esm.sh | MIT License | Go |
@@ -51,12 +51,13 @@ trait HasRelated
->where('browser_name', $browser_name)
->map(function ($item) {
/** @var \A17\Twill\Models\Model $model */
- $model = $item->related;
-
+ if ($model = $item->related) {
$model->setRelation('pivot', $item);
-
return $model;
- });
+ }
+
+ return null;
+ })->filter();
}
/**
| fix: Ignore deleted records when loading related items | null | area17/twill | Apache License 2.0 | PHP |
@@ -5,6 +5,7 @@ import frappe
from frappe.website.page_controllers.base_template_page import BaseTemplatePage
from frappe.website.context import add_sidebar_and_breadcrumbs
from frappe.website.render import build_response
+from frappe.website.router import get_base_template
from frappe.website.utils import (extract_com... | fix: Set basepath and toc data to show sidebar | null | frappe/frappe | MIT License | Python |
@@ -37,7 +37,11 @@ abstract class EventTarget {
if (handlers != null) {
bool cancelled;
event.currentTarget = event.target = this;
- _dispatchEventToTarget(event.currentTarget, handlers, event);
+ while (event.currentTarget != null) {
+ cancelled = _dispatchEventToTarget(event.currentTarget, handlers, event);
+ if (!ev... | fix: bubbles in dart | null | openkraken/kraken | Apache License 2.0 | Dart |
@@ -74,6 +74,7 @@ public class WebAppConfig {
}
public static String fixWildcardPattern(String s) {
+ if(s == null) return "";
if (s.endsWith("*")) return s;
if (s.endsWith("/")) return s + "*";
return s + "/*";
| fix: Possible NPE in servlet mappings | null | decentralized-identity/universal-resolver | Apache License 2.0 | Java |
@@ -209,18 +209,6 @@ namespace acl
//////////////////////////////////////////////////////////////////////////
struct calculate_error_args
{
- //////////////////////////////////////////////////////////////////////////
- // The raw reference transform against which we measure the error.
- // In the type expected by the e... | fix: re-order members to avoid padding warning | null | nfrechette/acl | MIT License | C |
@@ -163,7 +163,7 @@ const SupportNew = () => {
if (x.name === 'project') {
const selectedProject = projects.find((project: any) => project.ref === x.value)
if (
- (selectedProject?.subscription_tier ?? 'Free') === 'Free' &&
+ (selectedProject?.subscription_tier ?? 'FREE') === 'FREE' &&
formState.severity.value === 'Cri... | fix: project.subscription_tier condition check | null | supabase/supabase | Apache License 2.0 | TypeScript |
@@ -54,6 +54,8 @@ public class Splash {
splashImage = new ImageView(c);
+ splashImage.setFitsSystemWindows(true);
+
// Hide status bar during splash screen.
Boolean splashFullScreen = Config.getBoolean(CONFIG_KEY_PREFIX + "splashFullScreen", DEFAULT_SPLASH_FULL_SCREEN);
if(splashFullScreen){
@@ -236,7 +238,7 @@ public ... | fix(android): maintain status bar color during splash | null | ionic-team/capacitor | MIT License | Java |
@@ -22,7 +22,7 @@ function FeatureCell(props) {
function CompanyLogo({ imageSrc, href, companyName }) {
return (
- <a href={href} class="tw-basis-1/2 sm:tw-basis-1/3 lg:tw-basis-1/6 tw-flex tw-items-center" target="_blank">
+ <a href={href} class="tw-basis-1/2 sm:tw-basis-1/3 lg:tw-basis-1/6 tw-flex tw-items-center tw-... | fix: align content | null | foalts/foal | MIT License | JavaScript |
import { Context, Composer } from 'vk-io';
-import { Middleware, NextMiddleware, skipMiddleware } from 'middleware-io';
+import {
+ Middleware,
+ MiddlewareReturn,
+ NextMiddleware,
+ skipMiddleware
+} from 'middleware-io';
import { HearConditions } from './types';
@@ -95,7 +100,7 @@ export class HearManager<C extends ... | fix(hear): use correct types for middleware | null | negezor/vk-io | MIT License | TypeScript |
@@ -387,7 +387,7 @@ bool prepare_clip(const std::string& clip_name, const acl::compressed_tracks& ra
bench->ArgNames({ "", "Dir", "Func" });
// Sometimes the numbers are slightly different from run to run, we'll run a few times
- bench->Repetitions(4);
+ bench->Repetitions(20);
bench->ComputeStatistics("min", [](const ... | fix(bench): increase the number of iterations | null | nfrechette/acl | MIT License | C++ |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.