diff --git "a/codet5_lora_official_0.001/complete_results.json" "b/codet5_lora_official_0.001/complete_results.json" new file mode 100644--- /dev/null +++ "b/codet5_lora_official_0.001/complete_results.json" @@ -0,0 +1,40694 @@ +{ + "test_bleu_4": 0.022109387045582494, + "test_exact_match": 0.0, + "test_rouge": { + "rouge1": 0.128356058855296, + "rouge2": 0.020107472538261055, + "rougeL": 0.11113163508823323, + "rougeLsum": 0.11123477592971223 + }, + "test_bertscore": { + "precision": 0.8409174459441736, + "recall": 0.8414276271914882, + "f1": 0.8407734651541637 + }, + "test_meteor": 0.08969289084186825, + "raw_data": [ + { + "prediction": "I don't think we need to change the transport here.", + "reference": "can we also test for `transport=rest`?" + }, + { + "prediction": "Why not use `$config->Index->record_batch_size` here?", + "reference": "If record_batch_size is not set in config.ini, this code will trigger a notice about an undefined value. I would suggest either wrapping the setPageSize() call in an `if (!empty(...)) {` check, or else providing a default value in the set call (i.e. `$config->Index->record_batch_size ?? 100`)." + }, + { + "prediction": "I don't think this is needed anymore.", + "reference": "I didn't realize we were hardcoding this, thanks for moving it to an env value." + }, + { + "prediction": "I think this should be `isNaN(file.data.size) ? '' : html`", + "reference": "We are trying to support IE 10-11, so we'll need a polyfill for this one, I think." + }, + { + "prediction": "I think we should use `select( CORE_LOCATION ).isNavigating()` instead of `select( CORE_LOCATION ).getNavigateURL()`", + "reference": "It looks like there's a new `isNavigatingTo( url )` selector for this very purpose so let's use this here instead. This way we just need to use the one selector rather than two. Let's assign that to a similar-named variable here (e.g. `isNavigatingToPostResetURL`) rather than the prop it's used with." + }, + { + "prediction": "I think this should be `AbsMat& col`.", + "reference": "I think im2col should only accommodate CPUMat." + }, + { + "prediction": "I don't think we need to import email_factory here.", + "reference": "alpha sort the imports" + }, + { + "prediction": "(style) line over 80 characters", + "reference": "Can you explain why is this necessary? Is `snprintf()` with four integer arguments unsafe?" + }, + { + "prediction": "I don't think this is necessary, but I think it would be better to use `getattr(api.getForegroundObject(), '_lastDetectedKeyboardLayoutChange', 0)` instead of `getattr(api.getForegroundObject(), '_lastDetectedKeyboardLayoutChange', 0)`.", + "reference": "How likely would it be that the keyboard layout for the NVDA main thread differs from the keyboard layout of the currently focused app?" + }, + { + "prediction": "I think this should be `if (!service) { service = getDefaultService(); }`", + "reference": "Would you mind removing the default parameter above? (I doubt I'll ever use defaults again since you still have to protect against callers explicitly passing `null` or `undefined`)" + }, + { + "prediction": "I think we should use `.then(keys => keys.join(' '))` instead of `.then(keys => keys.join(' '))`", + "reference": "Also update line 2205 below" + }, + { + "prediction": "I think this should be `shared := volumeConfig.GetSharedMountValue()`.", + "reference": "n_: It is a good practice to name the variable to indicate what they contain. In this case since `shared` is supposed to have boolean, calling it: `isShared` can help in the readability of the code." + }, + { + "prediction": "I don't think we need to call `render()` afterward.", + "reference": "I suppose it's a false-positive error. Maybe there is a way to configure the `eslint-*` package to accept `i.e. .... lower case` syntax " + }, + { + "prediction": "I think this should be `activity.SpanId.ToString().Equals(\"0000000000000000\")` instead of `activity.SpanId.ToHexString().Equals(\"0000000000000000\")`", + "reference": "this maynot be a perf issue, if ToHexString() is not actually allocating a string, but returns the caches string value. to be confirmed." + }, + { + "prediction": "I think this should be `zap.String(\"no image to be updated\", \"no image to be updated\", \"no image to be updated\", \"no image to be updated\", \"no image to be updated\", \"no image to be updated\", \"no image to be updated\", \"no image to be updated\", \"no image to be updated\", \"no image to be updated\", \"no image to be updated\", \"no image to be updated\", \"no image to be updated\", \"no image to be updated\", \"no image to be updated\", \"no image to be updated\", \"no image to be updated\", \"no image to be updated\", \"no image to be updated\", \"no image to be updated\")", + "reference": "`zap.String(\"image-provider\", provider.Name())` should be in a same line." + }, + { + "prediction": "Why is this removed?", + "reference": "Why this deletion?" + }, + { + "prediction": "I think this should be `assertIn` instead of `assertIn`.", + "reference": "This change looks unrelated to the CL description?" + }, + { + "prediction": "Why is this changed?", + "reference": "I'm not certain that `res`+`utl` isn't a thing." + }, + { + "prediction": "I think we should use `Status.EXECUTION_STOPPED` instead of `Status.EXECUTION_STOPPED`.", + "reference": "This method can cause bugs. Why don't you use list of finalize statuses and then use join by comma and that will give you correct value. Use Apache Commons Lang library List list = Arrays.asList(1,2,3,4,5,6,7); String str = org.apache.commons.lang.StringUtils.join(list, \",\"); You can use it at multiple places shown in this diff." + }, + { + "prediction": "I think this should be `if (dev->type == WLR_INPUT_DEVICE_KEYBOARD)`", + "reference": "Merge with next condition" + }, + { + "prediction": "I think this should be `DeleteTask` instead of `DeployTask`", + "reference": "Maybe add it when it is used." + }, + { + "prediction": "I think this should be `ALL_EXIST_SCANNERS`", + "reference": "More clear naming: NONEXISTENT_ENABLED" + }, + { + "prediction": "I think it would be better to use `to.equals(Types.LongType.get());` instead of `to.equals(Types.LongType.get());` and `to.equals(Types.LongType.get());`", + "reference": "why is this change necessary?" + }, + { + "prediction": "I think it would be better to use `type.isEmptyType()` instead of `type.isEmptyType()`.", + "reference": "make a SchemaTypeNameConverter.getTypeNameForEmptyType() and call that here." + }, + { + "prediction": "Why not use Lang::getDefaultLanguage() instead of Lang::getDefaultLanguage() ?", + "reference": "Use braces on your conditional structures please" + }, + { + "prediction": "I think this should be `true` instead of `false`.", + "reference": "Great God, I have a question. This \".nebula_history\" file is used to save history commands. Is there a file size limit? When the file is large, does it take a long time to start initialization (loadHistory)? How did you think about this? Thx." + }, + { + "prediction": "I think this should be `return;`", + "reference": "Isn't this the same check as two lines above?" + }, + { + "prediction": "I think this should be `options.CA_DIR` or `options.CONFIG_PATH`", + "reference": "Don't redefine, just import the existing one in `cmdline.py`. :)" + }, + { + "prediction": "Shouldn't this be `!responds`?", + "reference": "why not call `respond_to?(\"#{name}=\")` from the `if` line?" + }, + { + "prediction": "I think this should be `withWorkDirectory(workingDir);`.", + "reference": "This was properly set above as `.runfiles/` (with a fallback to workspace root dir) but never used past this line." + }, + { + "prediction": "I think this should be `MVPagePresentationAttribute` instead of `MVPagePresentationAttribute`", + "reference": "Are all these namespaces required for this attribute?" + }, + { + "prediction": "Metrics/LineLength: Line is too long. [98/80]", + "reference": "Given this may be used and printed in other ways, isn't `debug` more appropriate?" + }, + { + "prediction": "I think this should be `fs.RemoveAll(s.dir)` instead of `fs.RemoveAll`", + "reference": "Looks like this is unused? Did you mean to call it when clearing the block journal?" + }, + { + "prediction": "Why is this needed?", + "reference": "why named alters? how about this.alerts = alerts?" + }, + { + "prediction": "I think this should be `sourcesInfo` instead of `mirrorInfo`", + "reference": "not sure if this has to be here or not tbh" + }, + { + "prediction": "Why is this needed? I think it's better to use `topicName[:50]` instead of `topicName[:50]`", + "reference": "There's a better fix for this in #1741, which should replace this." + }, + { + "prediction": "Why is this change needed?", + "reference": "Use swarm.Address not []byte as type, and construct it from actual byteslice or use swarm.NewAddress if it is constructed from hex-encoded string." + }, + { + "prediction": "I think this should be `defer require.NoError(t, err)`", + "reference": "It would be worth factoring this out to a function, but you don't have to do that here." + }, + { + "prediction": "I think this should be `@param text String to parse uri from`.", + "reference": "There's no need for `final` in interfaces." + }, + { + "prediction": "I think this should be `SetTag(Tags.Version, value);`", + "reference": "Isn't this case handled as a custom tag in `Span.SetTag()` below? This switch is only for special tags that actually set `Span` properties." + }, + { + "prediction": "I think we should remove this line.", + "reference": "This shouldn't be changed." + }, + { + "prediction": "This file is not part of Invenio.", + "reference": "This one is important `2: I102 copyright year is outdated, expected 2014 but got 2012`" + }, + { + "prediction": "I don't think we need to use `BiConsumer` here.", + "reference": "Are these imports needed (BiConsumer and Consumer)? If they are unused imports, then precommit will fail." + }, + { + "prediction": "I think this should be `logger.info ex.to_s` instead of `logger.info`", + "reference": "Why are we catching and logging exceptions? By doing that we make it look like the job has succeeded and it will be removed from the queue - if we didn't do that then it would stay queued..." + }, + { + "prediction": "Why not use `$this->cartFacade->findCartOfCurrentCustomer` instead of `$this->cartFacade->findCartOfCurrentCustomer`?", + "reference": "If there are `@param` tags in docblock, there should be `@return` tag also. (applies for a whole file)" + }, + { + "prediction": "Why is this needed? I think it's better to use `VALIDATORS` instead of `VALIDATORS`", + "reference": "Is the concept of validators exclusive to IBFT2? I wonder if this category should be more explicitly linked to IBFT2." + }, + { + "prediction": "Why is this required?", + "reference": "Spotless is configured to reject star imports. Please replace with explicit imports." + }, + { + "prediction": "I think this should be `m_maxShmemPerBlock` instead of `m_maxThreadsPerSM`.", + "reference": "Remind me why you are using CUDA vocabulary when naming these variables." + }, + { + "prediction": "I think we should use `Utils.isNullOrEmpty(feedCounters.get(i).getId())` instead of `Utils.isNullOrEmpty(feedCounters.get(i).getId())`.", + "reference": "Please turn the iteration order around (instead of `0...size` to `size...0`). The reason is that this sometimes skips indices when removing an item. You can therefore end up with feeds that have counter 0 and are still displayed." + }, + { + "prediction": "Why is this change needed?", + "reference": "this is a behavior change. solid_subset=[] represents an empty pipeline where as solid_subset=None is the full pipeline" + }, + { + "prediction": "Why is this change needed?", + "reference": "this is a breaking change, any specific reason you want to do this?" + }, + { + "prediction": "I think this should be `PutTipSetAndState(context.Context, *chain.TipSetAndState)` instead of `PutTipSetAndState(context.Context, *chain.TipSetAndState)`", + "reference": "Blocking: we still want read write separation. Node functions should absolutely not write to the chain store and the interface should reflect that. Only the syncer should have this capability in production code. It should be no problem to keep casting chainForTest to a read-write interface, or doing other function decomposition and automatic casting tricks." + }, + { + "prediction": "I think this should be `1<<30 - 1`.", + "reference": "The PR description says the lowest on-demand request priority is `2^30`. Why the `-1` here?" + }, + { + "prediction": "I think this should be `if (!creature->isRemoved() && !creature->isRemoved() && !creature->isRemoved() && !creature->getHealth() < 1)`", + "reference": "checking health again? I think it is not necessary." + }, + { + "prediction": "I think this should be `time.Duration(startTime) < 30*time.Second`", + "reference": "Need an `if err == nil {break}` above this line so that we don't log/sleep if the retry succeeds." + }, + { + "prediction": "I think this should be `Promise` instead of `Promise`", + "reference": "to reiterate my point above, this class is not the actual provided Promise, but rather something a user can provide a Promise to/with. I think a name like `PromiseProvider` is more appropriate." + }, + { + "prediction": "I think this should be `if target.State() > core.Inactive`?", + "reference": "I guess we can only call this from a post-build function, but we might need to check that this target is to be built? I guess target A depends on B which has a post build. We `plz build :B` which adds C as a dep of A. Won't we queue C to be built even though it only needs to build if A needs to be built? That's kinda why I approached this the way I did. I trust you've thought about this but would be good to understand this a bit better." + }, + { + "prediction": "I think it would be better to use `pks.__class__.__name__ == 'StreamSocket'` instead of `pks.__class__.__name__ == 'StreamSocket'`", + "reference": "You should use `isinstance()` instead of comparing the class name to a string." + }, + { + "prediction": "I think we should use `.includes(el.nodeName.toUpperCase())` instead of `.includes(el.nodeName.toUpperCase())`", + "reference": "Why should audio and video elements always return `false` for `isHidden`?" + }, + { + "prediction": "Why is this removed?", + "reference": "This obviously won't work for all the other platforms." + }, + { + "prediction": "Why is this change needed?", + "reference": "Isn't he diamond operator Java7+?" + }, + { + "prediction": "I think it would be better to use `StringUtils.isPositive(argName, message)` instead of `StringUtils.isPositive(argName, message)`", + "reference": "Prefer adding a second `positive(String, double)` that delegates down to this three-param version. Using `null` in code is generally Not A Great Idea, and it looks ugly." + }, + { + "prediction": "I think this should be `*int` instead of `*int`", + "reference": "This pattern, where we add a new parameter without using it, often indicates to me that we've got a leaky interface or abstraction. I see this pattern _a lot_ in this patch, so wondering you have thoughts about it." + }, + { + "prediction": "I think this should be `if os.IsNotExist(err) { return err } } else if err != nil { return err } else if err != nil { return err } else if err != nil { return err } else if err != nil { return err } else if err != nil { return err }", + "reference": "This seems like an improved pattern :)" + }, + { + "prediction": "I don't think we need to call `using_federated_login?` here, but I think it's better to use `using_open_id?` instead of `using_federated_login?`.", + "reference": "`open_id_authentication` is no longer the name of the function, and it's not OpenID specific" + }, + { + "prediction": "why is this change needed?", + "reference": "This didn't require corresponding changes to the test case(s)?" + }, + { + "prediction": "I think this should be `env_file` instead of `env_file`", + "reference": "A question! I think `string` totally works, but what do you think of `*string` for consistency?" + }, + { + "prediction": "I think this should be `AnnotationClusterControlPlaneReady` or `AnnotationControlPlaneReady`", + "reference": "Should this be: `aws.infrastructure.cluster.sigs.k8s.io` instead?" + }, + { + "prediction": "I think this should be `Ef[1][2] = 0.5 * h_rate[3]/domain->zprd;`", + "reference": "Not clear on why this change is correct." + }, + { + "prediction": "I think this should be `isMapped` instead of `isMapped`.", + "reference": "Hi Simon. Whether this should return true depends on what byte buffers are used? The same applies to ByteBufferIndexInput, actually... I don't think you can generally tell whether the ByteBuffers the input operates on come from a mmap call or from somewhere else (even direct buffers don't have to be a result of mmap)." + }, + { + "prediction": "Shouldn't this be `padding: 0`?", + "reference": "All stories in this file also need to have the default padding." + }, + { + "prediction": "(style) line over 80 characters", + "reference": "I don't think these asserts are necessary, because `subsurface_find_sibling` already searches in the parent. Or am I missing something?" + }, + { + "prediction": "Layout/EmptyLinesAroundClassBody: Extra empty line detected at class body end.", + "reference": "Should this be `number` instead of `id`?" + }, + { + "prediction": "I don't think this is necessary.", + "reference": "I have forgotten why we thought this restriction is necessary. A user registers a Hive/HBase table with us but is not able to use the table with the registered name in DML. Will UPDATE STATs will be on the original name too (and update stats code will find out registered name and use it for Table_uid?). This was the registration concept is almost like an internal implementation idea, at some point could even be done by some utility program for all existing Hive/hBase tables, and the user need not be aware of it? I am struggling with a user would want to register a table, if they cannot use it by that name." + }, + { + "prediction": "(style) line over 80 characters", + "reference": "Should most of these non-globals be static?" + }, + { + "prediction": "Prefer single-quoted strings when you don't need string interpolation or special symbols.
Prefer single-quoted strings when you don't need string interpolation or special symbols.
Prefer single-quoted strings when you don't need string interpolation or special symbols.
Prefer single-quoted strings when you don't need string interpolation or special symbols.
Prefer single-quoted strings when you don't need string interpolation or special symbols.", + "reference": "Please do not approve PRs without tests!!!!" + }, + { + "prediction": "I think this should be `win_id` instead of `win_id`", + "reference": "Now that you handle this in `webenginetab.py` you can undo all the changes in this file." + }, + { + "prediction": "Shouldn't this be `System.err.println(e);`?", + "reference": "I think we should log the exception to a log file instead of printing it. The current behavior (not catching the exception) should lead to an automatic print of the exception to the terminal/console." + }, + { + "prediction": "I think this should be `Warn` instead of `Error`.", + "reference": "These changes to the resource helpers have some more far-reaching implications as they also affect calls made in hive-operator, I believe. It's probably OK still, though. Ideally, the resource helper would not be the one doing the logging, since it cannot know the severity, but that is well beyond something that we should tackle for this PR. I would rather have the hive-operator log warnings than have the syncsetinstance controller log errors." + }, + { + "prediction": "I think this should be `null` instead of `null`", + "reference": "do you really want to change the behavior on foreign key ?" + }, + { + "prediction": "Why is this change needed?", + "reference": "Looks like my bad. Thanks for fixing!" + }, + { + "prediction": "I think this should be `True` or `False`.", + "reference": "I think \"Don't replace variables ...\" would be cleaner." + }, + { + "prediction": "I think this should be `object_selector` instead of `object_selector`.", + "reference": "Do you validate the possible strings? I've not read the code below but we should make sure if a string is supplied it is validate..." + }, + { + "prediction": "Why do we need to use `generateDataDiskName` here?", + "reference": "I'd recommend using generateDataDiskName here as well -- might as well benefit from the safety that it gives to protect yourself from future changes to w.ID()." + }, + { + "prediction": "I think this should be `Optional.ofNullable(pos)`", + "reference": "qq: do we want to include anything in the name to indicate that it is a position in the manifest?" + }, + { + "prediction": "I think this should be `Log.d(LOGTAG, \"Compositor Resumed\")`.", + "reference": "These logs should probably use the `LOGTAG`" + }, + { + "prediction": "Why is this needed?", + "reference": "From this, it was clear, that we are using our version of wireguard-go. And now it looks like we are using original packages which is confusing." + }, + { + "prediction": "Why is this change needed?", + "reference": "Any particular reason for this? This potentially will make harder to investigate users issues" + }, + { + "prediction": "I think this should be `!Blockly.highlightedConnection_ && !Blockly.localConnection_`.", + "reference": "Do you also need to check if Blockly.localConnection_ is non-null?" + }, + { + "prediction": "I think this should be `global` and not `global`", + "reference": "Not really a container, and it's not just about non-config data, not sure of a better description, @myronmarston ?" + }, + { + "prediction": "I think we should use `@aws-sdk/client-s3` instead of `@aws-sdk/client-s3`", + "reference": "The desktop app will load this fine. on iOS I get `TypeError: undefined is not an object (evaluating '_$$_REQUIRE(_dependencyMap[8], \"stream\").Readable.Readable')` if I change it to `const Readable = require('stream').Readable;` or `const { Readable } = require('stream');` I get undefined errors from the stream on iOS: `[TypeError: stream.on is not a function. (In 'stream.on(\"data\", function (chunk) { return chunks.push(chunk); })', 'stream.on' is undefined)]` What am I missing?" + }, + { + "prediction": "I think this should be `b := make([]byte, len(ch.Data()), len(ch.Data()))`", + "reference": "this is needed since the chunk feeder shares memory across calls to the pipeline. this is in order to avoid multiple allocations. this change mimics the behavior of shed and localstore, and copies the data from the call into the in-memory store" + }, + { + "prediction": "I think this should be `nil` instead of `nil`", + "reference": "wut. We can do this at the beginning of tests if we want right? Why are we depending on init?" + }, + { + "prediction": "I think this should be `ErrTooManyAccountConnections`", + "reference": "Same trick here IMO." + }, + { + "prediction": "I think this should be `@origin = element || POINTER`", + "reference": "Should be `@origin = element || origin || POINTER`" + }, + { + "prediction": "I don't think we need to check if the spc name is empty.", + "reference": "this example needs a fix?" + }, + { + "prediction": "(style) line over 80 characters", + "reference": "Is it safe to assume this surface is a toplevel?" + }, + { + "prediction": "(style) line over 80 characters", + "reference": "we don't need that function" + }, + { + "prediction": "I think this should be `WIN10` instead of `WIN10`.", + "reference": "we'll also have to think about adding \"Windows Server 2014\" or whatever they come up with later." + }, + { + "prediction": "I think this should be `fetchActiveFlowByExecId(int execId)` instead of `fetchActiveFlowByExecId(int execId)`", + "reference": "curious do we have an API to fetch an inactive flow?" + }, + { + "prediction": "I don't think we need to check for `obj.props.children` here.", + "reference": "This branch is not needed anymore because every `vnode` that passes through `h` in compat or core will have the `$$typeof`-property now ." + }, + { + "prediction": "I think this should be `const ariaHiddenValue = el.getAttribute('aria-hidden') || null;`", + "reference": "Did you mean to use `hasAttribute`? You shouldn't. This does not improve performance and it messes with the readability." + }, + { + "prediction": "I think this should be `CallbackChecker` instead of `PyQt5.QtSignal`", + "reference": "Please import modules and not classes (except for Qt stuff)." + }, + { + "prediction": "I think this method should be `setImage(String image)` instead of `super.setImage(String image)`", + "reference": "Hm... why do we have a \"DummyJavaNode\" in src/main? Looks like, this should have gone into src/test...." + }, + { + "prediction": "I think this should be `// Package v1alpha1` instead of `// Package v1alpha1`", + "reference": "This seems meaningless. If we cannot add any info let us remove this." + }, + { + "prediction": "I think this should be `func (c *Container) GetPorts() []PortBinding`", + "reference": "Can you rename `Ports` to `PortsUnsafe`?" + }, + { + "prediction": "Line is too long. [92/80]", + "reference": "This feels like it could be moved out to your first gem!" + }, + { + "prediction": "Why not use `Optional poll(RequestId requestId)` here?", + "reference": "The expected behaviour for `poll` would be to match what `Deque` does, which is: > Retrieves and removes the head of the queue represented by this deque As such, you shouldn't need the `RequestId` here." + }, + { + "prediction": "I think we should use `Array.isArray(arr1)` instead of `Array.isArray(arr2)` and `Array.isArray(arr1)`", + "reference": "This is super minor, but it'd be nice if this iterated over an arbitrary number of array inputs." + }, + { + "prediction": "(style) line over 80 characters", + "reference": "What is the problem here? The commit message has strange wording \"readlink is defined with restrict pointers\": do you mean \"restricted\"? Is that a well-defined language term? I'm not sure what it means." + }, + { + "prediction": "I think this should be `ImmutableSet` instead of `ImmutableSet`", + "reference": "Why are we not wrapping here?" + }, + { + "prediction": "Why not use `\\Shopsys\\FrameworkBundle\\Model\\Product\\Parameter\\Parameter`?", + "reference": "I though that all data objects are being unified in the fashion where all default values are initialized in constructor, are not they?" + }, + { + "prediction": "Why is this changed?", + "reference": "Does this file actually need to be committed to git? Having to run `make generate` is rather tedious on each PR and it conflicts easily." + }, + { + "prediction": "Why remove this?", + "reference": "We don't need this anymore, as Google's library handles various auth mechanisms for us. We'll be less explicit about why we're failing but we gain support for several authentication methods- swings and roundabouts!" + }, + { + "prediction": "I think this should be `Root` instead of `Root`", + "reference": "No need to speficy attribute here. Moreover in yaml it is default to use lowercase names." + }, + { + "prediction": "I think we should remove the `using System.Linq;` from the `using System.Threading;` statements.", + "reference": "In general I'm a trying to understand the reason behind this PR. Looks like if a blob (name) already exists we check if the contents are identical? In what scenarios this is not the case? When we want to publish a package/asset that has changed but still we want to use the same version?" + }, + { + "prediction": "I think we should use `urllib2.urlopen` instead of `urllib2.build_opener`", + "reference": "Can rename `req` to be `opener`, since that is the object, and it wraps `req` internally?" + }, + { + "prediction": "I think this should be `if breakpoint: textList.append(attrs.get(\"breakpoint\"))`", + "reference": "@MichaelDCurran, thoughts on adding a breakpoint format field attribute? It seems almost app specific, but I guess it does seem odd abusing line-prefix. Is there any more generic concept here?" + }, + { + "prediction": "Why is this needed?", + "reference": "This would return a tuple of two dictionaries. You need to combine them and return a dictionary" + }, + { + "prediction": "I think this should be `pkg/archer` and `pkg/manifest`", + "reference": "What do you think of moving the example to the help text of the prompt? and the prompt itself can be \"What is your application's GitHub repository URL?\"" + }, + { + "prediction": "I think this should be `1593493828L` instead of `1593493828L`", + "reference": "Break out tests for events into their own tests rather than placing them in other ones. That makes it easier for us to figure out where problems lie and to do a TDD-driven implementation over new APIs." + }, + { + "prediction": "I think this should be `if (!std::distance(first, last) > 9 && std::string(first, last + 9) == \"atomProp:\" && std::string(first, last + 9) == \"atomProp:\" && std::string(first, last + 9) == \"atomProp:\" && std::string(first, last + 9) == \"atomProp:\" && std::string(first, last + 9) == \"atomProp:\" && std::string(first, last) && std::string(first, last)) > 9 && std::string(first, last + 9) == \"atomProp:\" && std::string(first, last + 9) == \"atomProp:\" && std::string(first, last + 9) == \"atomProp:\")", + "reference": "Nice use of std::distance. I'm a bit worried about first += 9 though." + }, + { + "prediction": "Is this part of the operator? If so, I think it would be better to use `kubernetes.io/name` instead of `kubelet.io/name`?", + "reference": "Shouldn't this be `app.kubernetes.io/managed-by` as prometheus-operator manages this resource, but this resource isn't a part of prometheus-operator?" + }, + { + "prediction": "I think we should use `StringComparison.OrdinalIgnoreCase` instead of `StringComparison.OrdinalIgnoreCase`", + "reference": "As long as we're being extra-vigilant about NREs, should we check that `httpMethod` and `requestUri` are not null?" + }, + { + "prediction": "I think this should be `xrc20` instead of `xrc20`", + "reference": "No need to have `xrc20` alias" + }, + { + "prediction": "I think this should be `context_cls_inst` instead of `context_cls_inst`.", + "reference": "the naming convention I'm been adopting if `_type` for instances of these classes. So maybe `context_config_type` is a better name for this fn" + }, + { + "prediction": "I think this should be `gpuMining`.", + "reference": "Don't call it GPU mining, call it `externalMining`, here and throughout." + }, + { + "prediction": "I think this is a bit confusing, but I'm not sure if it's a good idea to add a `imageQuality` parameter to the `media` resource. I think it would be better to add a `imageQuality` parameter to the `media` resource.", + "reference": "`within this with` typo, should be `within this width`" + }, + { + "prediction": "I think this should be `k8s:openapi-gen=true` instead of `k8s:openapi-gen=false`", + "reference": "how come this is false?" + }, + { + "prediction": "I think we should use `Array.prototype.slice.call(args)` instead of `Array.prototype.slice.call(args)`", + "reference": "How about `Object.prototype.toString`? Or using the `typeof` operator?" + }, + { + "prediction": "I think this should be `context.Background()`.", + "reference": "I know @jzila suggested this, but I disagree: you're really not supposed to save a context in a struct. Can you get by with just saving the `Done()` channel instead? The `ctx` should continue to be passed around explicitly." + }, + { + "prediction": "Why is this change needed?", + "reference": "This check isn't right though." + }, + { + "prediction": "I think this should be `codeGenVersion` instead of `codeGenVersion`", + "reference": "maybe `toolkitVersion` instead? It doesn't necessarily have to be called that in the generated code, but in the view model classes, I think it makes it clearer that it is the version of toolkit itself." + }, + { + "prediction": "why is this change needed?", + "reference": "the response data was added intentionally in #612, i think we could keep the `setFileState` stuff here as a special case, at least for now " + }, + { + "prediction": "Why is this change needed?", + "reference": "This isn't really easy to read." + }, + { + "prediction": "I think this should be `glog.Errorf(\"Error in deleting volume %q: %s\", cVR.ObjectMeta.Name, err)`", + "reference": "This line changed due to go formatting. Format was not there earlier." + }, + { + "prediction": "Why is this needed?", + "reference": "The name \"Without\" in code is a little nebulous. Maybe something more descriptive like TrimPrefix or StripPrefix or WithoutPathPrefix or something like that. (Thoughts?)" + }, + { + "prediction": "I think this should be `tryToLinkAgain` instead of `tryToLinkAgain`", + "reference": "is this test in the move tests? I see what you mean then - it works, but I wonder if we won't lose track that it's being tested here." + }, + { + "prediction": "I think this should be `securityGroups` and not `tags`.", + "reference": "I'm not sure if this wanted to be `json:\"tags\"` (which I'd set in my PR) or `json:\"tag\"` that someone elses PR had set. Given that the rest of the fields had their JSON field name set to the same as the struct field name, I opted for `tags`." + }, + { + "prediction": "I don't think we need this scope anymore, but I think it's a good idea to use `where(created_at: range[:start_time]...range[:end_time])` instead of `where(created_at: range[:start_time]...range[:end_time])` instead of `where(created_at: range[:start_time])`", + "reference": "since the logic here and in `Proposal` is exactly the same, do you think it makes sense for us to include it elsewhere? I am not opposed to duplicated code when it makes sense, but the reason I first identified this was that I was looking for code in NCR::WorkOrder that was not specific to Work Orders. Seems like fiscal year logic might be helpful for reporting for other clients. In that case, we'd want this scope on those client data classes as well. Might be wrong to include this in the FiscalYear mixin, but it does seem like it should be outside of Proposal and WorkOrder. Does that make sense?" + }, + { + "prediction": "I think this should be `self.log.info('RabbitMQ connection got closed!')`", + "reference": "there is no static method as a go between -- how does this work?" + }, + { + "prediction": "I don't think we need to add this field to the collection. I think it's better to add a `stringified_symbols` field to the collection.", + "reference": "Can you please change the name of this class to be something else?" + }, + { + "prediction": "(style) line over 80 characters", + "reference": "I think we might prefer generalizing the interface rather than creating an exception. Current design of `h2o_next_token` assumes the input to be a comma-separated list, and allows the caller to specify a different separator when parsing a nested list. As I understand, what we are trying to attain in this PR is to have a way of parsing a flat list of semicolon-separated list. Assuming that is the case, I think it would be better to change the API of the function to accept two separators (i.e. inner and outer), where for our existing use-cases `outer` would be `,`." + }, + { + "prediction": "Why is this change needed?", + "reference": "why not recycling? I Lru cache now recycling?" + }, + { + "prediction": "Why is this change needed?", + "reference": "Why it is now called `PaymentVersionV3`?" + }, + { + "prediction": "I don't think we need to log the error here.", + "reference": "changed for debug purpose?" + }, + { + "prediction": "Why is this needed? I think it would be better to use `base.SetParentProvider(parentProvider);` instead of `base.SetParentProvider(parentProvider);`", + "reference": "@cijothomas I needed a way to set the Exporter.ParentProvider when the Processor's gets set. Internal to SDK though." + }, + { + "prediction": "I think this should be `from_motorway`", + "reference": "Talking through this scenario with @srividyacb and she's wondering if there should also be a check of `(from_trunk && node_based_graph.GetEdgeData(eid).flags.road_classification.IsLinkClass())` as highways with trunk classifications can also have this scenario." + }, + { + "prediction": "Align the parameters of a method call if they span more than one line.", + "reference": "where does `master_certname` come from?" + }, + { + "prediction": "why is this needed?", + "reference": "The line breaking is unnecessary." + }, + { + "prediction": "I think this change should be reverted.", + "reference": "why not enable split by space here ?" + }, + { + "prediction": "I think this should be `value != FPGA_DISCRETE_DEVICEID` or `value != FPGA_INTEGRATED_DEVICEID`", + "reference": "Shouldn't the operator be && ?" + }, + { + "prediction": "I think this should be `snapshot_create` instead of `snapshot_rollback`.", + "reference": "My best guess is that you want to use host.name in these parts to get the name of the host ?" + }, + { + "prediction": "Why remove this?", + "reference": "IMO this edge case handling could remain here, just instead of overwriting the `n.nodeType`, the `makeEdgeType` method of `n` should be called, so `n.nodeType = nodeTypeEdge` -> `n.makeEdge()`" + }, + { + "prediction": "Shouldn't this be `UserPreferences.showDownloadReport() || showAutoDownloadReport`?", + "reference": "Just wondering... The two kinds of notifications are now quite different (Channel, text, maybe even icon). Would it make sense to extract the auto download notification to a new class instead of handling everything in the existing `notificationManager`? I have not checked if this will lead to a lot of code duplication, though." + }, + { + "prediction": "I think this should be `transport.RequestFeatures{}` instead of `transport.RequestFeatures{}`", + "reference": "Do we need to put this on the Call? We only need the API communication between the Encoding and the Transports which is currently done through the Transport.Request. The Call is used by users right?" + }, + { + "prediction": "I think this should be `ListAPIKeys` instead of `GenerateAPIKey`", + "reference": "`ctx` is unused in GenerateAPIKey" + }, + { + "prediction": "I think this should be `log.L().Fatal(err.Error(), zap.Any(\"cfg\", cfg))`", + "reference": "Can you judge the type of error?" + }, + { + "prediction": "why not use `np.diff(data)/2`?", + "reference": "Much simpler than a weird and confusing ``convolve`` call!" + }, + { + "prediction": "Why is this change needed?", + "reference": "Huh, this seems weird to me... Surely the suspenders render was called again in order to get the new `
Hello second 2
` output... Imma take a peak at these tests to understand what's going on" + }, + { + "prediction": "Use %s instead of %s.
Prefer single-quoted strings when you don't need string interpolation or special symbols.
Prefer single-quoted strings when you don't need string interpolation or special symbols.
Prefer single-quoted strings when you don't need string interpolation or special symbols.
Prefer single-quoted strings when you don't need string interpolation or special symbols.
Prefer single-quoted strings when you don't need string interpolation or special symbols.", + "reference": "Since this is just a helper function to create text, perhaps this could live in a helper? I noticed that we have a few other error/message creators in the application controller as well, but I think this type of function should be re-factored to be part of a helper." + }, + { + "prediction": "I think this should be `#msg-template=` instead of `#msg-template=`", + "reference": "Will this mess up parsing the messages by other editors? (vscode, vim ...)" + }, + { + "prediction": "Line is too long. [89/80]", + "reference": "Style/StringLiterals: Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping." + }, + { + "prediction": "I think this should be `block.Pool?.Return(returnedBlock)` instead of `block.Pool?.Return(returnedBlock)`", + "reference": "Why can the pool be null?" + }, + { + "prediction": "I don't think we need to add the `READONLY` state here.", + "reference": "It might be good to have a note here: > work-around for issue #7562 allowing us to differentiate presentational lists from interactive lists (such as of size greater 1 and ARIA list boxes). In firefox, this is possible by the presence of a read-only state, even in content editable." + }, + { + "prediction": "I think this should be `Set>`", + "reference": "This set of changes is the one part of this that I'm not completely sure is valid. Can someone look over this to make sure I got the E's right?" + }, + { + "prediction": "Is there a reason why we don't need to check the frontier here?", + "reference": "There doesn't seem to be a reason to copy this here." + }, + { + "prediction": "I think this should be `include/h2o/ebpf.h`.", + "reference": "We've avoided including h2o headers in BPF programs because it's a runtime dependency. However, IIRC, this is because h2olog was maintained in the separate repository so that h2olog did not know where h2o was installed. Now h2olog can use `H2O_ROOT`, we should add it to BCC's `cflags` in order to include h2o headers in BPF programs." + }, + { + "prediction": "I think this should be `alert.query-url` instead of `alert.query-url`", + "reference": "I think the docstring here should include the CLI arg `--alert.query-url` just to make it clear to users which setting this uses." + }, + { + "prediction": "Why is this removed?", + "reference": "Same change just above?" + }, + { + "prediction": "I think this should be `assert.not.not.mistake.cyrillic(\"latin n\", '\u043b')`", + "reference": "Could you check the result content rather than just the number of search results please? For example with this test if the search engine suddenly starts returning \"latin n\" for both queries, we won't know about it." + }, + { + "prediction": "Why is this a `agentlessID`?", + "reference": "nit: I think that `workloadID` should suffice for this test... that's what we'd be issuing anyways" + }, + { + "prediction": "Align the elements of a hash literal if they span more than one line.", + "reference": "Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping." + }, + { + "prediction": "Why is this change needed?", + "reference": "We should have a rule to detect identical catch branches" + }, + { + "prediction": "Why did you remove this?", + "reference": "remove these from the targets file." + }, + { + "prediction": "I think this should be `bzz` and not `bzz`", + "reference": "now that we have the signature in the hive messages, it might be that this must be drastically reduced, since there are limits on the protobuf reader/writers i believe" + }, + { + "prediction": "I think we should remove the `google-auth-httplib2==1.7.7` package.", + "reference": "I recommend that we move this to be optional, as other users might not need it. Can you look at `OPTIONAL_PACKAGES` section, around line 68?" + }, + { + "prediction": "Why is this needed?", + "reference": "I usually set idea to never use wildcard import such as `import java.util.*;` Now i use setting from javaslang standard." + }, + { + "prediction": "I think this should be `host['ips'].each do |ip|` instead of `host['ips'].each do |ip|`", + "reference": "Where is host['ips'] coming from?" + }, + { + "prediction": "Why is this change needed?", + "reference": "oh! missed a `:` here; let me fix that; also can get rid of the intermediate variable" + }, + { + "prediction": "Shouldn't this be `Uniquely` or `Named`?", + "reference": "Is this necessary?" + }, + { + "prediction": "I don't think this is needed.", + "reference": "I'd create a different method for each render section." + }, + { + "prediction": "I think this should be `isReverted = false;`", + "reference": "Instead of storing the revert flag in the tracer is it possible to use org.hyperledger.besu.ethereum.mainnet.TransactionProcessor.Result#getRevertReason? (via org.hyperledger.besu.ethereum.transaction.TransactionSimulatorResult#getResult)? If a TX reverts without a reason do we get an empty revert reason or a revert reason with zero bytes?" + }, + { + "prediction": "Why is this change needed?", + "reference": "I think this should test with and without container reuse if that is implemented in this PR. Probably just make this test parameterized." + }, + { + "prediction": "I think this should be `if (fields.get(i).fieldId() == ManifestFile.SPEC_ID.fieldId()) {`", + "reference": "These modifications allow BaseFile to translate into a SparkRow with the specID as a column" + }, + { + "prediction": "This should be `new ReadPreference(readPreference);`", + "reference": "is this something we've been missing this whole time?" + }, + { + "prediction": "I think this should be `allEvents` instead of `allEvents`", + "reference": "nit: this is a package-wide constant so better to narrow the scope like `allEventsSign`." + }, + { + "prediction": "I think this should be `-r` instead of `-I`.", + "reference": "There seems to be some repetition. Does a local function make this code shorter overall?" + }, + { + "prediction": "I think this should be `isHydrating = true` instead of `isHydrating = false`", + "reference": "Might be cheaper to reuse the `null` assignment of line 313 and set `isHydrating` to null instead WDYT?" + }, + { + "prediction": "Why is this removed?", + "reference": "Revert this blank line" + }, + { + "prediction": "I don't think we need to clear the property here.", + "reference": "This was introduced recently for the Hadoop 3 upgrade. Copy/paste error but definitely causing some of the new test failures." + }, + { + "prediction": "I think this should be `:check_disabled_client` instead of `:check_disabled_client`", + "reference": "I think we should only need to do this for `:approve` since we are using `authenticate_user!` for all other actions and that checks for disabled client" + }, + { + "prediction": "I think this test should be `assertIn('Content-Length', resp.headers)` and `assertIn('Content-Length', resp.headers)`", + "reference": "I wonder if we should create new tests for header checks; here for instance we're mixing querystring and headers. Thoughts?" + }, + { + "prediction": "I think this should be `Bolt::Task.new(name: 'apply_helpers::custom_facts', files: [file], metadata: metadata)`", + "reference": "We should be able to add sensitive by hard-coding the parameters, same as you put into the metadata in apply_helpers." + }, + { + "prediction": "I think this should be `use Shopsys\\ShopBundle\\Model\\Order\\OrderItemFactory as BaseOrderItemFactory;`", + "reference": "Why do you think that it is necessary to create this class?" + }, + { + "prediction": "Why is this change needed?", + "reference": "replacing the `1` with `io.SeekCurrent` may be good here" + }, + { + "prediction": "I think this should be `FetchJWKS`?", + "reference": "nit: perhaps this file would be better named `jwks_source.go` ?" + }, + { + "prediction": "I think this should be `azkaban.plugin.load.override.props` instead of `azkaban.plugin.load.override.props`", + "reference": "It will be helpful to specify the intended priority as well for the properties within this file." + }, + { + "prediction": "I think this should be `func(*exec.Cmd) ([]byte, error) ([]byte, error)`", + "reference": "Make this private and update all the public functions to not take this argument. The variable you set below should also be private, then in the tests instead of passing the variable in to the function just update the variable. We don't want to expose the testing implementation in the public api if it can be avoided." + }, + { + "prediction": "I think this should be `/user/trafodion/hive/tpcds/customer/customer.dat`", + "reference": "Do you now why is it a specific table name is used as a default?" + }, + { + "prediction": "I think this should be `Path.Combine(Environment.GetEnvironmentVariable(\"HOME\"), \"myagent/_work/_temp\");`", + "reference": "If all you're doing is checking for the existence of a directory as your \"temp\" directory, why does it matter what OS you're on?" + }, + { + "prediction": "Why is this needed?", + "reference": "nit- would be cleaner to import it once" + }, + { + "prediction": "I think this should be `headers` instead of `headers`", + "reference": "Looks like there is a closing parenthesis `)` missing here." + }, + { + "prediction": "I think this should be `snprintf(str, 128, \"unknown *KEYWORD: %s\", arg[ioffset]);`", + "reference": "this one bothers me. There are many places where this one is written to for an error message and just a single callsite is changed." + }, + { + "prediction": "I think this should be `config.mockMdserv.EXPECT().FastForwardBackoff().AnyTimes()`", + "reference": "You can put this in `kbfsOpsInit()` in you want, so we don't have to call it in every test." + }, + { + "prediction": "(style) line over 80 characters", + "reference": "`ARM_32` is what clients define as an input to DR, and is not always defined internally: we use just `ARM` to mean AArch32." + }, + { + "prediction": "I think this should be `final Schema schema;`", + "reference": "s/for use/to use for/" + }, + { + "prediction": "I think this should be `avatar_filename` instead of `avatar_id`", + "reference": "` $event->getAvatarFilename()` this function return `string` or `null`. In this place ` $event->getAvatarFilename()->getValue()` return `Fatal error `" + }, + { + "prediction": "I think we should use `serviceerror.NewResourceExhausted(\"Persistence Max QPS Reached.\")` instead of `serviceerror.NewUnavailable(\"Persistence Max QPS Reached.\")`", + "reference": "why not creating a new error type for server's own resource limit exceed error and do conversion within rpc interceptor?" + }, + { + "prediction": "I think this should be `new CompositeTextMapPropagator(new CompositeTextMapPropagator(new CompositeTextMapPropagator(new CompositeTextMapPropagator(new CompositeTextMapPropagator(new CompositeTextMapPropagator(new CompositeTextMapPropagator(new CompositeTextMapPropagator(new CompositeTextMapPropagator(new CompositeTextMapPropagator(new CompositeTextMapPropagator(new CompositeTextMapPropagator(new CompositeTextMapPropagator))))))`", + "reference": "Could be a timing thing here. When options are created they'll copy the ref for the current default propagator. If user sets through SDK the global propagator after that, it won't be reflected. Could leave it null here and then when it is used in instrumentation do `options.Propagator ?? Propagators.DefaultTextMapPropagator`. It would be a slight perf hit but it makes it hot-swappable." + }, + { + "prediction": "why is this removed?", + "reference": "Unrelated file. Please remove from PR." + }, + { + "prediction": "(style) line over 80 characters", + "reference": "Careful: you only want two newlines after the final header message. (That indicates the end of headers and the start of data.)" + }, + { + "prediction": "I think this should be `None` instead of `None`.", + "reference": "This will not work on Python 3 (to which we are transitioning) because `.content` is bytes, not a str. Can you make the pattern a bytes object as well (like so: `b\"pattern\"`)?" + }, + { + "prediction": "Why is this change needed?", + "reference": "This was to allow the tests to pass when the order of the required was different. Silly, but we don't have an easy way to check for \"equal but order doesn't matter\" in chai." + }, + { + "prediction": "I think this should be `const int DF_OFF = (CmpCommon::getDefault(HBASE_DELETE_COSTING) == DF_OFF)`", + "reference": "maybe say \"returns the default cost method that returns an object of cost 1\"." + }, + { + "prediction": "I don't think we need to add the `IPinIP` rule here.", + "reference": "I believe these rules will be enforced both (1) on egress from a local workload, and (2) on ingress **to** a local workload. Right? I understand that we definitely want (1), but do we really want to enforce (2) as well?" + }, + { + "prediction": "I think this should be `JSONObject.fromObject(response.fullResponseAsJSONObject());`", + "reference": "Use `response.asJsonObject()` instead. Also, use `put()` instead of `putOpt()`, `null` as a value is fine." + }, + { + "prediction": "I don't think we need to check if the element is visible or not.", + "reference": "Are you sure? We've changed it during an introduction of the IME support." + }, + { + "prediction": "Why is this change needed?", + "reference": "I think here we want the use of `empty()` to take care of empty strings. If you put `dql_filter: ''` in your YAML config ... this will add `->andWhere('')` and it will fail, right?" + }, + { + "prediction": "Why is this change needed?", + "reference": "this is golang's named return, err is defined, `return` is equivalent to `return err` the current code has no problem" + }, + { + "prediction": "`out` should be a `GString`", + "reference": "I don't think this is right; in Rust terms it's like a `&mut String`, in Java `StringBuilder` - it's not a return value from the function which is what `(out)` is for." + }, + { + "prediction": "I think this should be `labels >= 0` instead of `labels < label_channels`.", + "reference": "If the label is not binary, should we rename this function?" + }, + { + "prediction": "I think this should be `FileServer.getBaseDir()` instead of `FileServer.getBaseDir()`", + "reference": "This is very-very bad idea because of its performance impact" + }, + { + "prediction": "I think this should be `github.com/sonm-io/core/proto` and not `github.com/sonm-io/core/proto`", + "reference": "WHY U NOT SORT IMPORTS?" + }, + { + "prediction": "I don't think we need the `/session` endpoint here, but I think it's better to use `/sign_in_as` instead of `/sign_in_as/sign_in_as/sign_in_as/sign_in_as/sign_in_as/sign_in_as/sign_in_as/sign_in_as/sign_in_as/sign_in_as/sign_in_as/sign_in_as/sign_in_as_as_as_as`", + "reference": "Put a comma after the last item of a multiline hash." + }, + { + "prediction": "What is the difference between `Dimensioned` and `OrderedDict`?", + "reference": "How come we need ``Dimensioned`` in the top-level namespace?" + }, + { + "prediction": "Why is this change needed?", + "reference": "excess whitespace through plugin." + }, + { + "prediction": "`std::size_t` should be `std::size_t` instead of `std::size_t`", + "reference": "What is the problem here? I feel we used this in a lot of places." + }, + { + "prediction": "why do you need this?", + "reference": "Update the docstring." + }, + { + "prediction": "I think this should be `github.com/pkg/errors` instead of `github.com/pkg/errors`", + "reference": "delete the empty line \"github.com/pkg/errors\" should be grouped with other third party packages same for the rest" + }, + { + "prediction": "Why is this change needed?", + "reference": "Assigning capabilities to the field here is not the best idea. Semantically this field contains the capabilities returned by the browser after session start. So here we sould better amend capabilities and return them from `init` method to pass later to `startSession` method (that will assign the capabilities returned by the browser to the field)." + }, + { + "prediction": "I think we should remove the `abort` method from `RSpec::Core::Time`.", + "reference": "Is this a breaking change, or is the API private?" + }, + { + "prediction": "I don't think we need to import pandas here.", + "reference": "I don't think we need this dependency in this project right now" + }, + { + "prediction": "I think this should be `BrokerSystemNamespace`", + "reference": "I don't think this is necessary since `CommonLabels` is a public func and every component name is also public constant." + }, + { + "prediction": "I think this should be `[String, Array]`", + "reference": "The `_example` field should be updated to include an interpreter with an array value." + }, + { + "prediction": "I think this should be `sslProtocolToStringMap` instead of `sslProtocolToStringMap`.", + "reference": "Put this in the godoc of SupportedProtocols instead. Preferably we would just use one map though. Why not just use this one?" + }, + { + "prediction": "Why is this change removed?", + "reference": "I'd feel a little safer if the first argument were a string, not a *string unless there's a particular reason for making it a pointer." + }, + { + "prediction": "I think this should be `java.lang.reflect.InvocationTargetException` instead of `java.lang.reflect.InvocationTargetException`.", + "reference": "Can you please revert changes to files in the `thoughtworks` package? This is legacy code and we will eventually phase out RC." + }, + { + "prediction": "I think this should be `org.openqa.selenium.grid.sessionmap.SessionMap`", + "reference": "You can safely revert changes to this file." + }, + { + "prediction": "Why is this removed?", + "reference": "This deletion is unnecessary." + }, + { + "prediction": "I think this should be `!isEmpty(smallImage)`", + "reference": "I'm not a huge fan of this overloading of the prop; accepting very different types of arguments for props like this can be confusing, and wasn't part of the IB. I understand wanting to import the SVG directly, but the IB suggests using `${global._googlesitekitLegacyData.admin.assetsRoot}${userInputSuccessImage}` as the `src`/`smallImage` value here. It'd be great to refactor this to accept components directly in the future, but let's do that all-at-once rather than this hybrid approach that makes the API less clear." + }, + { + "prediction": "I think this is not a good idea, but I think it would be better to use `import java.util.List;` instead of `import java.util.List;`", + "reference": "I've had this happen recently with IntelliJ, was this intentional?" + }, + { + "prediction": "I think this should be `vulkan/vulkan_format_info.h` instead of `vulkan/vulkan_format_info.h`.", + "reference": "Order(1) vs Order(logN) -- not sure it's measurable at the ~200 element size of the table. All of the published comparisons start at ~1000 elements." + }, + { + "prediction": "I don't think this is needed.", + "reference": "I don't know about this aliasing and 'factory'. Previous version was rather straightforward: `location.CreateLocationResolver`. Perhaps `location.CreateResolver` would be even better? What do we actually gain here from moving DI to a separate sub-package?" + }, + { + "prediction": "I don't think this is needed.", + "reference": "Use `UpperCamelCase` for function names" + }, + { + "prediction": "`Number(value) >= 275761 || Number(value) < 0`", + "reference": "I'm not 100% sold on this idea but I like it in general. Nice compromise between using the 'Date' constructor where possible and falling back to the pre #5880 behavior when it makes sense. However, instead of `Number(value) < 0`, let's do `Number(value) < MIN_YEAR` because `new Date('-2017')` is perfectly valid in JS and I don't want to break the date behavior." + }, + { + "prediction": "I don't think we need to create a new instance of `ZkStateReader` here.", + "reference": "Remember to close SOLR-11877 after this" + }, + { + "prediction": "I think this should be `isIgnoredChar(ch)` instead of `isIgnoredChar(ch)`", + "reference": "this change should be reverted" + }, + { + "prediction": "I think this should be `WaitForRegistrationEvent` instead of `WaitForRegistrationEvent`", + "reference": "This function signature is a bit complicated, some parameters are IN type (stopLoop which is modified from outside), others are OUT (registeredEvent channel which is modified inside function) I suggest the following signature -> SubscribeToRegistrationEvent(identityAddress) returns registeredEvent chan of type (RegisteredEvent not int), Unsubscribe func(), error (in case of any error). That way caller can always cance subscription if needed and check for any errors. Also - unsubscribe function hides any internal details how subscribtion is really implemented" + }, + { + "prediction": "I think this should be `src/**/*.wav` instead of `src/**/*.json`", + "reference": "`.wav`?! cannot we use something slightly more modern and compressed instead? :) I dunno, like `.mp3` or `.aac` or `.ogg`..." + }, + { + "prediction": "I don't think we need to do this, but I think it's better to use `luaA_object_push(L, swap);` instead of `luaA_object_push(L, swap);`", + "reference": "Wouldn't a single signal call be enough? (without the boolean even)" + }, + { + "prediction": "I don't think we need this link, but I think it would be better to add a link to the note event.", + "reference": "I suspect that this whole block, which is going to be repeated a number of times, should probably be in a helper. I guess it would need to be given the object and the title and could probably figure out everything else from that?" + }, + { + "prediction": "I think this should be `path_resolver`", + "reference": "Should we expose this attribute in the Asciidoctor.js API ?" + }, + { + "prediction": "I think this should be `Objects.isEqual(v, element._2)`", + "reference": "I think contains on `Multimap` was broken - it should return true if one of the values is associated with the key? It that right" + }, + { + "prediction": "Shouldn't this be `DEF_PREWRITE_CONCURRENCY`?", + "reference": "delete this line" + }, + { + "prediction": "Line is too long. [92/80]", + "reference": "Presumably we no longer need `force: true` here." + }, + { + "prediction": "I don't think we need to check if `ptr == NULL` or `ptr == 0`.", + "reference": "HIP runtime is compiled using a C++ compiler. So comparison to both NULL as well as 0 does not make sense. Just comparing to NULL is sufficient." + }, + { + "prediction": "I don't think we need to add the `header` section here.", + "reference": "these urls are still in `a` tags so we should probably include these links separately for a non-HTML version" + }, + { + "prediction": "Is there a reason we don't need to lock here?", + "reference": "That's fine though, meaning that you can send to this channel under the server lock. The internalSendLoop will pick up the change when the server lock is released (if loop is blocked trying to grab the server lock). Even the way you do it here (releasing the lock, sending, then reacquiring) does not guarantee that the internalSendLoop will have time to refresh in that interval." + }, + { + "prediction": "I think this should be `chromium:enableDownloading` instead of `chromium:enableDownloading`", + "reference": "The name `enableDownloading` implies this is a boolean capability. How about `downloadDir`?" + }, + { + "prediction": "Why is this deprecated?", + "reference": "Found one internal team is using this method. Will coordinate with them about the migration solution." + }, + { + "prediction": "I think this should be `DD_HTTP_SERVER_ERROR_STATUSES`", + "reference": "The field `HttpServerErrorCodes` should be called `HttpServerErrorStatuses`" + }, + { + "prediction": "Shouldn't this be `forseti_rules.yaml` or `forseti_rules.yaml`?", + "reference": "Can you please make each of these in a separate line. It will be easier to keep them sorted, and add/remove." + }, + { + "prediction": "I think this should be `isTrusted(req, coreContainer.getAuthenticationPlugin()).isTrusted(req, coreContainer.getAuthenticationPlugin()).isTrusted(req, coreContainer.getAuthenticationPlugin()).isTrusted(req, coreContainer.getAuthenticationPlugin()).isTrusted(req, coreContainer.getAuthenticationPlugin()).isTrusted(req, coreContainer.getAuthenticationPlugin()).isTrusted(req, coreContainer.getAuthenticationPlugin()).isTrusted(req, coreContainer.getAuthenticationPlugin()).isTrusted(req, coreContainer.getAuthenticationPlugin()).isTrusted(req, coreContainer.getAuthenticationPlugin()).isTrusted(req, coreContainer.getAuthenticationPlugin()).isTrusted(req, coreContainer.getAuthenticationPlugin()).isTrusted(req, coreContainer.getAuthenticationPlugin()).isTrusted(req, coreContainer.getAuthenticationPlugin()).isTrusted(req, coreContainer.getAuthenticationPlugin()).isTrusted(req, coreContainer.getAuthenticationPlugin()).isTrusted(req, coreContainer.getAuthenticationPlugin()).isTrusted(req, coreContainer.getAuthenticationPlugin()).isTrusted(req, coreContainer.getAuthenticationPlugin()).isTrusted", + "reference": "should we error instead of silently ignoring the `cleanup` param? it defaults to `false`, so someone must have explicitly set it to `true`" + }, + { + "prediction": "I think this should be `err := fmt.Errorf(\"archive root directory missing: expected a 'root' directory but got %v\", archive.File[0].Name)`", + "reference": "There is no specific requirement that the root be called `root`, just that there is a single root directory and that it be the first entry in the zip." + }, + { + "prediction": "I don't think we need to check if `current_page?(me_path) && current_user.requires_profile_attention?`", + "reference": "perhaps we should encapsulate this logic in a helper method w a test?" + }, + { + "prediction": "I don't think we need to do this, but I think it's better to use `File.join(File.dirname(__FILE__), 'options', file)` instead of `File.join(File.dirname(__FILE__), 'options', file)`", + "reference": "Now that we're only using this repo as a Gem you shouldn't need to `require` an expanded local file path like below." + }, + { + "prediction": "I don't think we need to cast to `Integer` here.", + "reference": "This isn't necessarily a year. It may be months, days, or hours. Can we return `intValue()` directly instead?" + }, + { + "prediction": "Why is this removed?", + "reference": "this is redundant because it gets logged immediately on entering the handleContainerChange function" + }, + { + "prediction": "I think we should use `model.NotificationEventType_EVENT_DEPLOYMENT_WAIT_APPROVAL.String()` instead of `model.NotificationEventType_EVENT_DEPLOYMENT_WAIT_APPROVAL.String()`", + "reference": "`ds.GenericDeploymentConfig.DeploymentNotification` in L128 is nullable." + }, + { + "prediction": "I think this method should be `getProtocolContext`", + "reference": "this shouldn't be exposed here - this class isn't a carriage for this - its used internally to determine if/how we can mine." + }, + { + "prediction": "Why remove this?", + "reference": "It's fine to leave these checks in. It'll make the exception come from `FirefoxDriver`, and that's probably clearer to a user." + }, + { + "prediction": "I don't think we need to add the `:model` helper here.", + "reference": "We don't want to include the `IntegrationSpecHelper` for models...mind moving this line out of the loop to be `config.include EnvironmentSpecHelper, type: :model`?" + }, + { + "prediction": "I think this should be `os.Chmod(file.Name(), 0666)` instead of `os.Chmod(file.Name(), 0666)`", + "reference": "Please check the return on these." + }, + { + "prediction": "Why not use `self.config.cache` here?", + "reference": "Do we need `==` for true?" + }, + { + "prediction": "why change this to 0.0001?", + "reference": "Changing the default value may cause BC-breaking. Suggest changing this value in config." + }, + { + "prediction": "Why do we need to cast to int here?", + "reference": "how does that happen?" + }, + { + "prediction": "I don't think we need to import doctest here.", + "reference": "This is gross/clever. :-)" + }, + { + "prediction": "Line is too long. [89/80]", + "reference": "Take a look at the name of this file. Definitely copy and " + }, + { + "prediction": "I think this should be `return` instead of `return`", + "reference": "Can you check with @mahebbar how to work this error. Should be different from 404." + }, + { + "prediction": "Why is this needed?", + "reference": "Do we still need the upper bound `<3.9`?" + }, + { + "prediction": "I think this should be `|| realpath(dirname(__DIR__, 3) . DIRECTORY_SEPARATOR . 'bin' . DIRECTORY_SEPARATOR . 'psalter')`", + "reference": "Does this mean `vendor/bin/psalm` is not a symlink (or whatever equivalent Windows has for symlinks) on Windows?" + }, + { + "prediction": "I think this should be `aws_test`", + "reference": "@lpabon having a separate package name `aws_test` allows to test the package as if the tester was an external package. If the test package name is the same as the package being tested, the test package can also use methods and variables not exposed to the eventual user." + }, + { + "prediction": "Why is this removed?", + "reference": "The exporter should still be able to test these histogram instrument kinds, right? Is there another reason to remove these?" + }, + { + "prediction": "I think this should be a `func (*BlockEvaluator) ResetTxnBytes(validateTxnBytes bool) bool` instead of a `func (*BlockEvaluator) ResetTxnBytes(validateTxnBytes bool) bool`", + "reference": "should this increment eval.Round somehow?" + }, + { + "prediction": "I think this should be `Rails.logger.warn` instead of `Rails.logger.warn`", + "reference": "Although this change looks good. Maybe there are other inconsistent cases too?" + }, + { + "prediction": "I think this should be `BlueCloth.new(resources).to_html.html_safe`", + "reference": "This is a way better method name." + }, + { + "prediction": "I think this should be `t(\"marketing.show.language_flash\", language_selected: params[:language])` instead of `t(\"marketing.show.language_flash\", language_selected: params[:language])`", + "reference": "Prefer single-quoted strings when you don't need string interpolation or special symbols." + }, + { + "prediction": "I think we should use `Array.isArray(options)` instead of `Array.isArray(options)`", + "reference": "I was wondering if this should allow per role specification, instead of (or in addition to) a generic \"allowed everywhere\". So you could do: `{ separator: ['aria-valuenow', 'aria-valuemin', 'aria-valuemax'] }`. You could still allow the array, and you could add a wildcard option for the \"generic\" case you've got now: `{ '*': ['always-allowed'] }`." + }, + { + "prediction": "I think this should be `wasHiveString_(FALSE)` instead of `wasHiveString_(FALSE)`", + "reference": "I'm confused by the name. The string was a Hive string but it isn't any longer? Why should we care? (I imagine I'll find the answer later... there is some different semantic that we want downstream...)" + }, + { + "prediction": "Why is this needed?", + "reference": "Could you please leave the explicit imports?" + }, + { + "prediction": "Why is this needed?", + "reference": "Why need alias?" + }, + { + "prediction": "I think this should be `tlf.IDGetter` instead of `tlf.IDGetter`", + "reference": "Shouldn't this be a `libfs.nullIDGetter` (exported, of course)?" + }, + { + "prediction": "I don't think we need to change this to `tealLogicSigSize` and `tealAppSigSize`", + "reference": "I dislike the messages.go pattern; the strings are only used once and make more sense in context. The other two added reportErrorf() calls in clerk.go have inline strings." + }, + { + "prediction": "Why is this removed?", + "reference": "Seems we don't need it anymore." + }, + { + "prediction": "Align the elements of a hash literal if they span more than one line.
Prefer single-quoted strings when you don't need string interpolation or special symbols.", + "reference": "This might cause problems with the weird way we publish Guidance and Groups in the UI. We will have to make sure that UAT is thorough." + }, + { + "prediction": "Why is this change needed?", + "reference": "this default needs to be on order 1 minute, I'm not sure why we defaulted to 1 hour below..." + }, + { + "prediction": "I think this should be `if iss.Email != \"\" {` or `if iss.Email != \"\" {`", + "reference": "I figure to make `{env.*}` work, right? I can't think of any other placeholder that makes sense here" + }, + { + "prediction": "Is there a reason to use `network::NetworkUtils::getAvailablePort()` instead of `network::NetworkUtils::getAvailablePort()`?", + "reference": "Why change the port from 0 to getAvailablePort()?" + }, + { + "prediction": "Why is this change needed?", + "reference": "For me would be great don't repeat timeout sending in every get_locator call. Looks like it should be sent into LocatorsManager init. And possibly it should me non mandatory, something like that: `def __init__ (self, locators, timeout=60):`" + }, + { + "prediction": "I think we should be able to remove the `projectName` from the `globalOpts` struct.", + "reference": "I feel like since now we don't initiate the `opts.projectName` with `opts.ProjectName()`, which means `opts.projectName` and `opts.ProjectName()` they don't necessarily equal to each other, we need to also substitute all usage of `opts.ProjectName()` within `Ask()`, `Validate()`, and `Execute()` to `opts.projectName`. Otherwise if `-p` is set, `opts.ProjectName()` will get expired." + }, + { + "prediction": "I think `bytes == null` is better than `bytes == null`", + "reference": "why do we thinkg that an empty string is ok to return from this method? I think the null should never be passed in here in the first place" + }, + { + "prediction": "Why is this change needed?", + "reference": "nit: can remove this `else` since we return from the condition above." + }, + { + "prediction": "Why is this removed?", + "reference": "You missed `Write(...)`! I'm kidding ofc." + }, + { + "prediction": "I think we should check if `subscription.stripe_customer_id` is present?", + "reference": "Was there a customer who had this set to an empty string?" + }, + { + "prediction": "Shouldn't this be `current_approver_email_address`?", + "reference": "I know we have the `reporter` spec below, but what about a unit test for this to explain reasoning behind logic? If I were going to update this decorator, I would assume it wasn't covered by tests because there is no unit test." + }, + { + "prediction": "I think this should be `@Override`", + "reference": "it's better to be : void attach(String name, Part part);" + }, + { + "prediction": "Why is this change needed?", + "reference": "I didn't see where the IOException can get thrown, is this just to match the V1 reader?" + }, + { + "prediction": "I think this should be `bool` instead of `bool`", + "reference": "We normally suppress this warning with `RDUSED_PARAM(forceRDKit)`" + }, + { + "prediction": "I think this should be `mappedPlayerGuids.find(guid)` instead of `mappedPlayerGuids.end()`", + "reference": "What if `Game::getPlayerByNameWildcard` had not been called before. It would not find a player, wouldn't it?" + }, + { + "prediction": "I think this should be `requiresPatchCheck = new SidebarCheckBox(tr(\"Requires patch\"));`", + "reference": "Why upper case \"R\"?" + }, + { + "prediction": "I think we should use `fmt.Errorf(\"check if service requires building from local Dockerfile: %w\", err)` instead of `fmt.Errorf(\"check if service requires building from local Dockerfile: %w\", err)`", + "reference": "Does this need to return an error or could it return `false, nil`?" + }, + { + "prediction": "Why is this protected?", + "reference": "Can you not change those scopes in public API classes? This applies here and in other places -- protected changed to package-scope for source is not really an API-compatible change." + }, + { + "prediction": "I think this should be `1` instead of `1`.", + "reference": "this parameter is only used in POST, please use `getRequest()->request->get('...');` Thanks" + }, + { + "prediction": "I think this should be `validateFilename` instead of `validatePackage`.", + "reference": "Problem number 1: Scoped packages would have a `/` character here. Changing this to `validatePackage` resolves the 403." + }, + { + "prediction": "I think this should be `if new_val is not None`", + "reference": "I don't quite get why there would be key errors: ``deep_mapped`` is a clone of ``self`` and ``k`` comes from ``self.items()`` so why would the key ever be rejected?" + }, + { + "prediction": "I think this should be `chainID != 0` instead of `chainID != 0`", + "reference": "this chain ID determines only from which chain to withdraw, therefore your changes do not accomplish what you want them to accomplish. You'll need changes to `func (aps *hermesPromiseSettler) Withdraw(chainID int64, providerID identity.Identity, hermesID, beneficiary common.Address) error`. The method probably has to include two chain ids: to and from. Currently, the method internally uses: `aps.config.L1ChainID` -> the chain to withdraw to `chainID` -> the chainID that was passed as the chain that the withdrawal is originating from." + }, + { + "prediction": "I think this should be `ctx.IsInvalid()` instead of `ctx.IsValid()`.", + "reference": "If instead we had `TraceContext.extract` return a bool value as a second return value, we could avoid the byte array comparison in `TraceID.IsValid`. Did you consider that alternative?" + }, + { + "prediction": "Why do we need this?", + "reference": "here shouldn't we use `depotFreeLimit`?" + }, + { + "prediction": "I don't think we need to use `SecureRandom.hex(64)` here.", + "reference": "Could we use the Rails application's secret token instead? Do we actually need our own here?" + }, + { + "prediction": "I think this test should be `assertRaises(TypeError, lambda: kdf.a.groupby(axis=1))`", + "reference": "so should be fixed here also" + }, + { + "prediction": "(style) line over 80 characters", + "reference": "I would just remove this assert as it's going to get un-maintainable with a long list of valid sizes. Ditto below." + }, + { + "prediction": "I think this should be `/var/lib/ecs/data`", + "reference": "`HostDataDir` is misleading. Can we rename it to something more relevant ? The constant should also be moved up and reused as necessary." + }, + { + "prediction": "I don't think this is a good idea, but I'm not sure if it's a good idea to add a maximum of 38 bytes to the packet, but I'm not sure if it's a good idea to add a maximum of 38 bytes to the packet. I think it's better to add a maximum of 38 bytes to the packet.", + "reference": "I still feel like we are double-counting the outer IP header here (once in `defaultMTUGRE` and once in `ipsecESPOverhead`) but I'm not that familiar with IPsec." + }, + { + "prediction": "I think this should be `public void OnEnd(MeasurementItem measurementItem, ref DateTimeOffset dt, ref ReadOnlySpan> tags)`", + "reference": "Not sure what benefit we gain by extending BaseProcessor here, as this seems to be defining a new OnEnd method. Could we modify MeasurementItem to have all the things, and then MeasurementProcessor can be simply extending BaseProcessor (not blocking. just noting some observations in the PR :) )" + }, + { + "prediction": "I think this should be `path.Path`", + "reference": "This change was not really intended but made by the linter of VS Code. And looking at other packages this looks like a best practise to place interal packages on the top and gh imports afterwards." + }, + { + "prediction": "Why is this change needed?", + "reference": "This seems like a more appropriate message under `ListenAndServe`. WDYT?" + }, + { + "prediction": "Why was this removed?", + "reference": "Is this not required?" + }, + { + "prediction": "Why not use `$this->entity['search']['sort']['field']` here?", + "reference": "We should start thinking of an object that encapsulates this information :) we might need more arguments in the future." + }, + { + "prediction": "I think this should be `vkCmdPipelineBarrier-srcStageMask-01174`", + "reference": "Given that we are (conceptually) searching across multiple self-dependencies, all we can say is that we didn't have a self dependency in which *both* source and dest masks were correct. Since the spec doesn't imagine this case, the valid usage statement assume we can differentiate only wrong source from only wrong dest within a *single* self-dependency -- which we can't across multiple (at least not meaningfully)... so we always return both the source/dest VUID's if we can't find a self-dependency in with *both* are correct." + }, + { + "prediction": "Why is this change needed?", + "reference": "rename? MiningCoordinator always exists" + }, + { + "prediction": "I think we should use `getConfig(\"api\").offline_mode` instead of `getConfig(\"api\").offline_mode`", + "reference": "Here would be the same case you don't need to call `loadConfigs`, but you would need to reread configs using `getConfig` on each getHost function call, not once per file." + }, + { + "prediction": "I think this should be `defer d.folder.fs.renameAndDeletionLock.Unlock()`", + "reference": "Unlocking with defer means that this lock is still held curing the call to forgetNode(), below, which I see attempts to acquire `f.mu`, which looks dangerous to me." + }, + { + "prediction": "Why is this change needed?", + "reference": "Does anyone still use the cst out of this method? If not consider deleting" + }, + { + "prediction": "I think this should be `https://www.youtube.com/watch?v=9J2OjH8Ao_A` instead of `https://www.youtube.com/watch?v=9J2OjH8Ao_A`", + "reference": "Line is too long. [97/80]" + }, + { + "prediction": "I don't think we need to import `io.BytesIO` here. I think it's better to use `io.BytesIO` instead of `io.BytesIO`", + "reference": "This seems unused." + }, + { + "prediction": "I think this should be `panic(\"unsupport os-release\")` instead of `panic(\"unsupport os-release\")`", + "reference": "@luguanglong , Thanks for the fix, can you re-phrase it to sound better something like \"This OS version is currently un-supported by keadm\"" + }, + { + "prediction": "why do we need this?", + "reference": "should probably be called `_DeleteFpInfoAttr` because it removes it. Cleaning gives the impression it is still there. I would also move this to the end of the function `GetAtomicWeightsForFingerprint`." + }, + { + "prediction": "I think this should be `std::map`.", + "reference": "nit, can we use `VK_PIPELINE_BIND_POINT_RAY_TRACING_KHR` here (granted it isn't else where, maybe worth fixing here or in separate PR)" + }, + { + "prediction": "Layout/MultilineMethodCallBraceLayout: Closing method call brace must be on the same line as the first argument.", + "reference": "This will need to be updated in the upcase-exercises repo as well." + }, + { + "prediction": "I think we should be able to do this.", + "reference": "Think it's worth extracting this to `Exercise#complete?`?" + }, + { + "prediction": "Why did you remove this?", + "reference": "This is still a potentially useful public method - should we remove such methods?" + }, + { + "prediction": "Why is this change needed? I think it's better to use `ReleaseLevel.ALPHA` instead of `ReleaseLevel.UNSET_RELEASE_LEVEL`.", + "reference": "I don't understand this change, what is happening here?" + }, + { + "prediction": "I think this should be `int(self.obj.excelCellObject.Application.Version.split('.')[0])` instead of `int(self.obj.excelCellObject.Application.Version.split('.')[0])`", + "reference": "I think its worth stating this is `versionMajor`" + }, + { + "prediction": "I think this should be called `GetConsensus` and `PreloadConfigurableConsensusProtocols`", + "reference": "rebuild: say loads and merges" + }, + { + "prediction": "Why is this removed?", + "reference": "Why was this removed here (also in the other file)? Shouldn't we import them so that the reference in the docs below is interpreted correctly?" + }, + { + "prediction": "Why is this change needed?", + "reference": "I'd prefer to have a blank line between the class declaration and its first member. Is it possible?" + }, + { + "prediction": "Why is this change needed?", + "reference": "Is it really LEGACY_HELLO if we are using the most up to date HELLO? Perhaps `MONGOS_HELLO` would work here?" + }, + { + "prediction": "(style) line over 80 characters", + "reference": "I am afraid this is going to cause problems on Windows where it is not uncommon to have injected threads (CTRL_SHUTDOWN, CTRL_LOGOFF, etc.) we have no privileges to suspend -- and thus retrying will just fail again, and with the new \"synchall failure is fatal and should kill the process\" approach it turns what used to work for us on Windows into process death." + }, + { + "prediction": "I don't think we need to add `--mac_installer_signing_identifier ` here.", + "reference": "think it should only be in create_dist" + }, + { + "prediction": "I think this should be `klog.V(4).Infof(\"Host Port is defined for Container %s in Pod %s, thus extra NPL port is not allocated\", container.Name, key)`", + "reference": "Do you plan to support Pod spec change? Like hostPort is added/removed later after Pod creation?" + }, + { + "prediction": "I think this should be `dokan.CreateStatus`", + "reference": "Is this behavior correct? It used to return `true`, which should map to `dokan.ExistingDir`. Was that previously a bug?" + }, + { + "prediction": "I think this should be `if (!storage::SharedMonitor::exists())`", + "reference": "What about just printing an empty list in this case? That would make the output more predictable." + }, + { + "prediction": "why is this removed?", + "reference": "I looked and couldn't find any usage of `container` in any of the editor component files (js or hbs), so I assume this was used once and didn't get removed?" + }, + { + "prediction": "Why not just return `null`?", + "reference": "I just updated a number of sites using older versions of Roots onto WP 3.6 and this little function change was required. Multiple search bars were displaying when I used the search widget in a widgetized sidebar. Updated the roots_get_search_form as seen in this change resolved it for me!" + }, + { + "prediction": "I think this should be `Coupon\\Type\\FreeProduct` instead of `Coupon\\Type\\FreeProduct`", + "reference": "Fixes test failed in some cases" + }, + { + "prediction": "I don't think we need to remove this from the prod environment.", + "reference": "what's the prod url for this? just curious. @amirsaber" + }, + { + "prediction": "I think this should be `azkaban.jvm.cmd.args` instead of `azkaban.jvm.cmd.args`", + "reference": "Can you please change this to azkaban.jobs.java.opts?" + }, + { + "prediction": "I think this should be `_x( 'Analytics', 'Service name', 'google-site-kit' )`", + "reference": "Here is another concatenation which should be updated. Even though `Source:` and the link are essentially separate, it isn't RTL friendly. This would be another good use for `createInterpolateElement` I think so that we wouldn't need to include all of the classnames in the translation string (or extract them to a placeholder). That would allow us to use the `Link` component as well, rather than using its resulting HTML as a string which will be a pain to maintain if we were to make changes to the base `Link` component." + }, + { + "prediction": "I think this should be `Task.FromCanceled(cancellationToken);`", + "reference": "I would add an overload `GetCancelledZeroTask()` which calls `GetCancelledZeroTask(CancellationToken.None)`. This is cleaner than requiring the caller to pass `default(CancellationToken)` or `CancellationToken.None`." + }, + { + "prediction": "I think this should be `if (VK_NULL_HANDLE != swapchain)` instead of `if (VK_NULL_HANDLE != swapchain)`", + "reference": "Would it be equivalent to check if `chain != nullptr` below? Not suggesting a change, just curious." + }, + { + "prediction": "Why is this change needed?", + "reference": "Should probably do `auto this_l (shared_from_this ());` and pass/use that instead of `this`. Same a few other places. IOW, replace both `shared_from_this()` and `this` with `this_l`" + }, + { + "prediction": "I don't think we need to change the `message` field here.", + "reference": "And here. Please, use `'` for apostrophes in changed strings in this file." + }, + { + "prediction": "Why do we need to simulate execution?", + "reference": "assignments should only be cuddled with other assignments (from `wsl`)" + }, + { + "prediction": "I think this should be `DefaultBlockDataVersion(c *Config, holes bool)`", + "reference": "Please move this to `block_types.go`." + }, + { + "prediction": "Why is this removed?", + "reference": "So this is not needed anymore for all attributes?" + }, + { + "prediction": "I think this should be `FailedToGetOpenTelemetrySDK` instead of `FailedOpenTelemetrySDK`.", + "reference": "Happy to get suggestion for better messaging here. Here's what I intended to convey: Something is wrong - the Exception is a hint to what might be the cause The impact of that - tracing wont work." + }, + { + "prediction": "I don't think we need to add the `update_listener` argument to the `start_moto_server` function.", + "reference": "I think we can remove this function, right? (duplicate with `ses_starter.py`)" + }, + { + "prediction": "Why do we need this?", + "reference": "With this fix, I am not even sure we need to overwrite this function." + }, + { + "prediction": "I think this should be `use_tqdm = os.getenv('QUILT_USE_TQDM') == 'true'`", + "reference": "Why not just import this from `data_transfer`? As a rule copying the same code twice is not a good idea. Also: please run `pylint` on all files in this PR." + }, + { + "prediction": "Align the parameters of a method call if they span more than one line.", + "reference": "You've got an absolute path here referencing your home dir :-)." + }, + { + "prediction": "Why is this change needed?", + "reference": "Maybe I should do some sorting so that these properties don't keep moving around..." + }, + { + "prediction": "Why is this removed?", + "reference": "Can we keep this test anyway, as it's part of the spec?" + }, + { + "prediction": "I think this should be `use Ergonode\\Mailer\\Application\\DependencyInjection\\MailerStrategyInterfaceCompilerPass;`", + "reference": "Can be removed" + }, + { + "prediction": "I think this should be `use Config;` instead of `use Request;`", + "reference": "It's a minor quibble I know, but I like having the imports ordered by lengt" + }, + { + "prediction": "I don't think we need to change the content-type of the response.", + "reference": "It's better to get the charset from context or other setting to let the user override it." + }, + { + "prediction": "Why is this change needed?", + "reference": "this filename as well needs change" + }, + { + "prediction": "Why is this change needed?", + "reference": "I think we want to remove `omitempty` here" + }, + { + "prediction": "I think this should be `defer handler.Close()`.", + "reference": "You cannot move this here because it breaks detach. Just call `tty.Close()` before returning the error from start" + }, + { + "prediction": "Why is this removed?", + "reference": "I updated only the implicit roles who needed a update for this new rule to validate." + }, + { + "prediction": "Why is this needed?", + "reference": "> // Code generated by protoc-gen-go. DO NOT EDIT." + }, + { + "prediction": "I think this should be `skipOSConfig = map[string]string{\"osconfig_not_supported\": \"true\"}`", + "reference": "minor: skipOSConfigMetadata, otherwise, the name sounds like a boolean" + }, + { + "prediction": "I don't think we need to check if `type == null` or `SyndTypeUtils.enclosureTypeValid(type)`", + "reference": "~~I think lines 65-67 should be moved into this else clause after `type = ...` Else, it is a bit confusing why we check the enclose type validity a second time~~ Nevermind, will do some refactoring, myself. But thanks for \"fixing\" this!" + }, + { + "prediction": "I think this should be `http.Get(\"sessions\", url.Values{})` instead of `http.Get(\"sessions\", url.Values{})`", + "reference": "`sessions := endpoints.SessionsDTO{}` and using only `sessions` should be simpler." + }, + { + "prediction": "I don't think we need to check for dcontext->is_exiting here.", + "reference": "These need to be in the other order to avoid crashing when dcontext == GLOBAL_DCONTEXT (==-1)" + }, + { + "prediction": "I think this should be `ConfigureKestrel(context, options)` instead of `ConfigureKestrel(context, options)`", + "reference": "Why not change the other samples?" + }, + { + "prediction": "I think we should use `getAttribute` instead of `getAttribute`", + "reference": "Indentation is mixed up here due to spaces/tabs, I'm guessing." + }, + { + "prediction": "(style) line over 80 characters", + "reference": "Should we provide a little more context in the error message? Maybe throw in something about what operation was being performed?" + }, + { + "prediction": "I think this should be `array_key_exists('settings', $configuration)`, not `array_key_exists('settings', $configuration);`", + "reference": "Project standard is spaces, not tabs. Please fix and then we can merge this." + }, + { + "prediction": "Why is this needed?", + "reference": "@hgtw is there anything we're worried about with regards to using this cache? Do we want to do staged testing around expeditions before we merge? Curious your thoughts here" + }, + { + "prediction": "Why is this change needed?", + "reference": "The purpose of this was to allow pushing filters into the manifest files if we ever use a format other than Parquet. I think overall this is a good change because we can add it back later. Just wanted to note why the unused argument was there." + }, + { + "prediction": "I think this should be `Mongoid.map_big_decimal_to_decimal128` instead of `Mongoid.map_big_decimal_to_decimal128`", + "reference": "I think BSON::Decimal128 should always be serialized as Decimal128 regardless of config option." + }, + { + "prediction": "I think this should be `plan_creator` instead of `plan_creator`", + "reference": "We should probably just move the `require 'bolt/plan_creator'` in `Bolt::CLI` to `Bolt::Application` so it will already be loaded." + }, + { + "prediction": "I don't think we want to run more than 20 iterations, but I think we should be able to run more than 20 iterations.", + "reference": ">20 [](start = 45, length = 2) Can we override this at runtime? Maybe it should be a command line option with default." + }, + { + "prediction": "I think this should be `self.env = env or os.environ`", + "reference": "can just remove it ?" + }, + { + "prediction": "I think this should be `FinishMigrateRepository(repo *Repository, repoPath string)` instead of `FinishMigrateRepository(repo *Repository, repoPath string)`", + "reference": "Better call it `CleanUpMirrorInfo`?" + }, + { + "prediction": "I think this should be `// TODO: Retrieval Market Integration` instead of `// TODO: Retrieval Market Integration`", + "reference": "@shannonwells is there still something missing here?" + }, + { + "prediction": "I don't think we need to add this to the config file.", + "reference": "This could be more indicative of what it is... e.g... `stresstest_time_limit`" + }, + { + "prediction": "Why is this removed?", + "reference": "Shouldn't we do a `reader_payload_pool_.reset()` here?" + }, + { + "prediction": "Why is this change needed?", + "reference": "I'd prefer the nomenclature less tightly coupled to DRAND throughout. I played with renaming the `drand` package to `beacon` but it was too much noise in this change." + }, + { + "prediction": "I think this should be `self._current_key`?", + "reference": "I think I would prefer you declare `self._current_key=None` in the constructor and just return `self._current_key`. That way you can prevent anyone from overwriting `current_key` without needing to use `getattr` here." + }, + { + "prediction": "I think this should be `annotationMode` or `rawMode`", + "reference": "I guess I like the name `mode` okay. I can't think of anything better." + }, + { + "prediction": "Shouldn't this be `defaultTimeout`?", + "reference": "I would create a new method (NewStepWithDefaultTimeout?) for this purpose because timeout<=0 looks like a hidden logic" + }, + { + "prediction": "I think this should be \"max length of events list\" or \"max length of events list\"", + "reference": "Are these limit changes related?" + }, + { + "prediction": "I think this is a good idea, but I think it would be better to use `from scapy.consts import LOOPBACK_INTERFACE` instead of `from scapy.consts import LOOPBACK_INTERFACE`", + "reference": "Don't you mean `import scapy.consts`?" + }, + { + "prediction": "I think this should be `rollbackPrimary(ctx context.Context)` instead of `rollbackPrimary(ctx context.Context)`", + "reference": "`ctx` is unused in rollbackPrimary" + }, + { + "prediction": "Why is this changed?", + "reference": "This is not what title says." + }, + { + "prediction": "I don't think this interface is needed.", + "reference": "a fix applies several fixes? maybe this should simply be `applyToNode`" + }, + { + "prediction": "Why is this change needed? I think it's better to just call `fakeGetClientset(clientset *clientset.Clientset, namespace string, opts metav1.ListOptions)`", + "reference": "U1000: func `fakeGetOk` is unused (from `unused`)" + }, + { + "prediction": "I think this should be `k8s.io/client-go/util/retry`", + "reference": "Because there is a \"k8s.io/client-go/tools/cache\" below, we can sort out all the \"imports\" here." + }, + { + "prediction": "I think we should use `fmt.Stringer` instead of `fmt.Stringer`", + "reference": "Nit should be using `goimports` to format the import statements with standard libary imports first, new line, followed by non-standard library imports." + }, + { + "prediction": "I think we should be able to delete the secret if the pipeline secret is not empty.", + "reference": "Do we not have tests for pipeline delete " + }, + { + "prediction": "I think this should be `-appendToFile`.", + "reference": "Good that you mention this constraint in the docstring :)" + }, + { + "prediction": "I don't think we need to import `sigs.k8s.io/controller-runtime` here.", + "reference": "remove this blank?" + }, + { + "prediction": "I think this should be `computedNumOfActivePartiions_(-1)` instead of `computedNumOfActivePartiions_(-1)`", + "reference": "Partitions is misspelled 8 times in this commit, might make sense to fix the spelling for all of those." + }, + { + "prediction": "I don't think we need to import `QUrl` here.", + "reference": "Please remove this blank line - those are only used to group Python/third-party/qutebrowser imports." + }, + { + "prediction": "I think this should be `var insecure bool` instead of `var insecure bool`", + "reference": "`insecure` is a global variable (from `gochecknoglobals`)" + }, + { + "prediction": "I think this should be `if setting.Repository.DisableHttpGit {`", + "reference": "Same as above (HTTP in upper-case)" + }, + { + "prediction": "Shouldn't this be `assertSame('http://www.youtube.com/watch?v=123456', $this->getProvider()->getReferenceUrl($media));`?", + "reference": "This is getting repetitive maybe you could introduce an abstract test case with a `getExpectedUrl($providerReference)` method ?" + }, + { + "prediction": "I think this should be `MakeFunc(typ Type, fn func(args []Value) []Value) []Value{}`", + "reference": "I do not think returning `Value{}` is correct here. For example, `reflect.MakeFunc(...).Kind()` would return `reflect.Invalid` instead of `reflect.Func`. Therefore, I think this should panic instead." + }, + { + "prediction": "I don't think we need to change the `nameLower` to `nameLower` here.", + "reference": "Does this work for Custom Elements? iirc we're lacking test cases for them. /cc @andrewiggins @developit" + }, + { + "prediction": "Why is this removed?", + "reference": "Same change just above?" + }, + { + "prediction": "I think this should be `self.Promise = undefined;`", + "reference": "I suppose `apploader.js` isn't used by WebWorkers. So `self` will always be `window` here." + }, + { + "prediction": "I think we should remove the `skip_targets` variable here.", + "reference": "Since this var is no longer defined we should remove the `if skip_targets.any?` bit below." + }, + { + "prediction": "I think we should use `ARN_TO_LAMBDA.get(arn).qualifier_exists` instead of `ARN_TO_LAMBDA.get(arn).qualifier_exists`", + "reference": "I think we should `return arn` as a fallback at the end of this function (otherwise the `['Resource']` entry below could become `None`)." + }, + { + "prediction": "I think we should be able to close the remoteConn when we close the remoteConn when we close the remoteConn when we close the remoteConn when we close the remoteConn when we close the remoteConn when we close the remoteConn when we close the remoteConn when we close the remoteConn when we close the remoteConn when we close the remoteConn when we close the remoteConn when we close the remoteConn when we close the remoteConn when we close the remoteConn when we close the remoteConn.", + "reference": "Why session is started at all, if you need to shut it down e.g. DI should launch noopSession" + }, + { + "prediction": "Why is this change needed?", + "reference": "nit: can we rename the interface to `wsFileDeleter`" + }, + { + "prediction": "Why is this change needed?", + "reference": "Why target cannot be external endpoints?" + }, + { + "prediction": "I think this should be `.auto_`", + "reference": "We use a suffix \".AUTOCREATED\" for configsets, maybe we can use the same here?" + }, + { + "prediction": "Why is this change needed?", + "reference": "This one won't be disposed. Should be (something like) `using var openTelemetry = OpenTelemetrySdk.EnableOpenTelemetry(` no?" + }, + { + "prediction": "why is this changed?", + "reference": "Why this is in the diff?" + }, + { + "prediction": "I think this should be `CloudBackupGroupCreate` or `CloudBackupGroupCreateRequest`", + "reference": "How is status determined? When the user calls CloudBackupCreate( src_volume_id ) they can then call CloudBackupStatus( src_volume_id ) Is there something similar for this new API?" + }, + { + "prediction": "I don't think we need to check for null here.", + "reference": "We could pass `excessDomChildren` to `options._catchError` and only do this if an error-boundary catches the error. Not entirely sure if that's better." + }, + { + "prediction": "I think this should be `array_merge(...array_values($this->getFilters()));`", + "reference": "In php8 named parameters were introduced and now it is required to match called method parameter name when setting parameters by array destructing or call_user_func_array() etc." + }, + { + "prediction": "I think this should be `if !sc.IsValid() { return ctx }`", + "reference": "If instead we had `B3.extractSingleHeader` and `B3.extract` return a bool value as a second return value, we could avoid the byte array comparison in `TraceID.IsValid`. Did you consider that alternative?" + }, + { + "prediction": "Line is too long. [98/80]", + "reference": "I think this is more of a semantic difference than a typo - `weiter hinzufgen` is like `continue adding` whereas `weitere hinzufgen` is like `add more`. I think it makes sense to change it though " + }, + { + "prediction": "I think this test should be `test_records_can_be_created_after_deletion`", + "reference": "nit: 200 is superfluous" + }, + { + "prediction": "Why is this change needed?", + "reference": "This is testing `unreserved keyword`" + }, + { + "prediction": "I think this should be `projectionMethodMappings[0]` instead of `projectionMethodMappings[1]`", + "reference": "paramsNatOrigin doesn't include sUVtoST. I would just remove that definition for now" + }, + { + "prediction": "I think this should be `testBlockRetrievalQueueTest(t *testing.T)`", + "reference": "It feels like the test should be waiting for the prefetcher to shut down, but I don't have a great reason why other than that it might be confusing for debugging if there are still goroutines from old prefetchers lying. But I guess since `TogglePrefetcher(false)` doesn't actually set the prefetcher to nil, the queue shutdown method will still end up waiting for the shutdown to finish. If that sounds right, nevermind me." + }, + { + "prediction": "I think this should be `ListAccessKeys.java` instead of `ListAccessKeys.java`.", + "reference": "AWS Identity and Access Management (IAM)" + }, + { + "prediction": "I think this should be `cloudsql_project_resource_name`", + "reference": "As a long term thing, would it make sense to move the resource names as keys under the requirements map?" + }, + { + "prediction": "I think this should be `commons.dom.idrefs(cell, 'headers')`", + "reference": "That doesn't fix the whole problem. The issue lays in this line right here, not the one above. There are two problems with this line: 1. It finds things that aren't cells in the table 2. if it doesn't find anything, it shouldn't return empty here, but continue down to look for row/ column headers." + }, + { + "prediction": "I think we should use `Collectors.toSet()` instead of `Collectors.toSet()`", + "reference": "I am pretty sure that this is infinite recursion as getAllProjects returns the project itself." + }, + { + "prediction": "I think this should be `dataLists` instead of `dataLists`.", + "reference": "Something I didn't catch before I merged this PR, is the hyphenated constant a problem? E.g. should \"data-lists\" be \"data_lists\"? @paulkaplan" + }, + { + "prediction": "I think this should be `if not conf.use_winpcapy` or `if not conf.use_dnet`", + "reference": "Can you write the test as `if not (conf.use_winpcapy or conf.use_pcap or conf.use_dnet):`" + }, + { + "prediction": "I think this should be `from dagster.core.asset_defs import ForeignAsset`", + "reference": "we have to include foreign assets on the repository directly because they don't belong to a job? This seems very awkward... Is this a step towards the job-less assets on the repository? Did you consider having `build_asset_job` take in a set of foreign assets instead? I suppose we would then need to subclass it to be a more special `AssetJobDefinition` that can keep track of them." + }, + { + "prediction": "Why is this removed?", + "reference": "`-Wstringop-truncation` is a new kind of error detector introduced in GCC 8. As for this patch, these are two false-positives though." + }, + { + "prediction": "I don't think we need to change the error code to `ErrSharedConfigSourceCollision`.", + "reference": "Can we port this error msg to v2 too? This one is better, as it explicitly states what sources are allowed." + }, + { + "prediction": "I think this should be `const { ReadPreference } = require('../..');`", + "reference": "The convention so far has been to require directly from the defining file (in this case `../../read_preference') . I think the concern has been mostly about the potential for circular dependency cycles" + }, + { + "prediction": "I think this should be `color_type`", + "reference": "I suggest expanding dims here to simplify the formatting." + }, + { + "prediction": "Why is this needed?", + "reference": "Why do you need to specify the kinto prefix here?" + }, + { + "prediction": "`f` should be `f` instead of `f`", + "reference": "The `!r` is unnecessary." + }, + { + "prediction": "I think this should be `if accountKey != \"\" || sasToken != \"\" {`", + "reference": "I didn't see existing tests for this `OpenBucketURL`. Not sure if it's easy to do without mocking these `opener` calls." + }, + { + "prediction": "I think this should be `public bool PreparerNeeded;`", + "reference": "Should we default to `true` ?" + }, + { + "prediction": "I think this should be `consensus/fsm.go` and not `consensus/fsm.go`.", + "reference": "File is not `goimports`-ed (from `goimports`)" + }, + { + "prediction": "I think this should be `@wordpress/default` instead of `@wordpress/default`.", + "reference": "Shouldn't these options also include `@babel/preset-env`? Also I see you set `babelrc` to `false`, could we rely on our existing `.babelrc` file? Feels like some duplicate configuration otherwise." + }, + { + "prediction": "I think we should use `infof` instead of `infof`", + "reference": "Nit: We can use `%s` since `disconnectReason` is a string." + }, + { + "prediction": "why is this needed?", + "reference": "I think it's better to create a new example" + }, + { + "prediction": "Why is this change needed?", + "reference": "The stages are correct, but the more forgiving `kAttachmentRasterOrder` should be used, based on a review of the spec. That should give the same effect of suppressing the false positive conflict between the DEPTH R/W and resolve. > End-of-subpass multisample resolves are treated as color attachment writes for the purposes of synchronization. This applies to resolve operations for both color and depth/stencil attachments. That is, they are considered to execute in the VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT pipeline stage and their writes are synchronized with VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT. Synchronization between rendering within a subpass and any resolve operations at the end of the subpass occurs automatically, without need for explicit dependencies or pipeline barriers." + }, + { + "prediction": "I think this should be `--SO3H` instead of `--SO2H`", + "reference": "To be consistent, I think it should actually just be a single `-`" + }, + { + "prediction": "Why do we need to import `current_app`?", + "reference": "this seems extraneous." + }, + { + "prediction": "I think this should be `featureset.LongDomainFeatureSet` instead of `featureset.LongDomainFeatureSet`", + "reference": "Ah, I see here that 'LongDomain' is defined as something that contains a subdomain segment that is `maxLengthOfDomainSegment` long (which I think is 63 characters) - I don't think any public ACME servers/Let's Encrypt's staging environment has a restriction on this? if it does, and the 'pebble' based ACME server does not, then Pebble needs modifying to also fail in these cases as it aims to replicate the ACME RFC as closely as possible" + }, + { + "prediction": "I don't think we need to do this, but I think it's better to use `r-1_amd64.deb` instead of `r-1_amd64.deb` and `r-1_amd64.deb`", + "reference": "I think you need `-y` here to prevent a user confirmation prompt" + }, + { + "prediction": "I think this should be `dynamo_avx512_code_in_use` instead of `dynamo_avx512_code_in_use`.", + "reference": "Repeating: I don't think this should be a core-wide global var. This should be isolated to arch/x86 or at least arch/, maybe inside getter/setters as mentioned above." + }, + { + "prediction": "I think this should be `plugin-1.4.0.jar` instead of `plugin-1.4.0.jar`", + "reference": "right URL is like in cmdrunner, using search.maven .org" + }, + { + "prediction": "I think this should be `public Uri Endpoint { get; set; } = new Uri(\"http://localhost:4317\");` or `public Uri Endpoint { get; set; } = new Uri(\"http://localhost:4317\");`", + "reference": "The link to valid syntax is not really applicable for NET2_1, right?" + }, + { + "prediction": "I think this should be `Metadata keys: No escaping required`.", + "reference": "Shouldn't it be more specific, like \"gcppubsub supports all UTF-8 strings\"?" + }, + { + "prediction": "I think this test should be removed.", + "reference": "Everything in this class is SolrCloud-related, not legacy replication" + }, + { + "prediction": "(style) line over 80 characters", + "reference": "Could just assign directly and eliminate the `newval` var." + }, + { + "prediction": "I think this should be `pullRequestTitleComment` instead of `pullRequestTitleComment`", + "reference": "... with the name of the affected package, or \"all\", followed by a colon,..." + }, + { + "prediction": "I think this should be `src/Datadog.Trace.ClrProfiler.Managed.Core/CMakeLists.txt`", + "reference": "We'll want to remove this one if we make the assembly version constant." + }, + { + "prediction": "I think this should be `setup_single_page_style()` instead of `setup_single_post_style()`", + "reference": "Can we have a single function here that uses the same subscribers and just changes meta based on context?" + }, + { + "prediction": "I think this should be `HIP_STARTUP_LOADER`", + "reference": "where would ` static startup_kernel_loader skl;` be instantiated? if it's not instantiated anywhere should this be removed?" + }, + { + "prediction": "I think we should use `getFilesAndDirectoriesApi` instead of `getFilesAndDirectoriesApi`", + "reference": "I think we should move those util functions that work with drag-drop to @uppy/utils, so they can be shared (maybe later) with drag-drop plugin? Otherwise it will continue to depend on drag-drop module." + }, + { + "prediction": "Why is this removed?", + "reference": "Migrate the spec.Labels to locator.Labels ?" + }, + { + "prediction": "Why is this change needed? I think it would be better to use `require.EqualError(t, gotErr, tc.wantErr.Error())` instead of `require.EqualError(t, gotErr, tc.wantErr.Error())`.", + "reference": "The test case already existed but it never tested properly because of the conditional in the test." + }, + { + "prediction": "Why is this change needed?", + "reference": "I'm okay with this, but I don't see a lot of benefit to removing unnecessary parens. If extra parens make something more readable (like this) or clarify order of operations even when matching the default, I would say we should keep them." + }, + { + "prediction": "I think this should be `protected volatile`.", + "reference": "@sarowe why was this volatile? It's fishy to see this as the only volatile field." + }, + { + "prediction": "I think this should be `@since` or `@since`", + "reference": "template is not correct?" + }, + { + "prediction": "I don't think this is needed anymore.", + "reference": "Rename the registies to `BBOX_ASSIGNERS` and `BBOX_SAMPLERS` to avoid ambiguity. There is also a registry for dataset sampler." + }, + { + "prediction": "I think this should be `before:each` instead of `before:destroy`", + "reference": "This is no longer stubbed on every test. Perhaps it should be, and should be unstubbed in the single case that it matters." + }, + { + "prediction": "I think this should be `[200, stats.to_json]` instead of `[200, stats.to_json]`.", + "reference": "This seems much simpler! I'm not sure I follow what you mean by the threading part... Also tests are not liking this constant. Might need a require or to fully qualify this." + }, + { + "prediction": "Shouldn't this be `ASSERT_NOT_IMPLEMENTED(false);`?", + "reference": "Convention is \"FIXME: i#2144\" or \"XXX: i#2144\"" + }, + { + "prediction": "I think this interface should be `IHasHttpMethod` and not `IHasHttpMethod`", + "reference": "This should probably be a property instead of a method." + }, + { + "prediction": "I think this should be `state: RECONCILED`.", + "reference": "do we need to consider setting the `state` as well? If so, lot of changes might be required, like, setting to 'Reconciling' in upgrade code, setting to 'error' or 'reconciled' in volumeReconciler functions." + }, + { + "prediction": "Align the elements of a hash literal if they span more than one line.", + "reference": "Line is too long. [82/80]" + }, + { + "prediction": "This file is not used anymore.", + "reference": "Add blank line below license header." + }, + { + "prediction": "I think we should use `ops.current().location()` instead of `ops.current().buildReplacement()`", + "reference": "I'm not clear on whether this really should be the right behavior. Basically we're saying that a replace table will keep the existing location (as opposed to using defaults). I suspect we don't have create or replace with location semantics, but this is making some assumptions that a replacement is somehow the same as the old. If we were to go with id based pathing convention, this wouldn't work. I don't think this is an issue at this point, but it might make sense to push this down to the location provider." + }, + { + "prediction": "I think this should be `executionpb` and `replicationgenpb`", + "reference": "Just run a global replacement for all `executionproto`." + }, + { + "prediction": "I think this should be `options=None` instead of `options=None`", + "reference": "@AutomatedTester @davehunt thoughts on a new keyword argument?" + }, + { + "prediction": "I think this should be `FPGA_NOT_SUPPORTED` instead of `FPGA_NOT_SUPPORTED`.", + "reference": "Should line 47 be OPAE_ERR?" + }, + { + "prediction": "I think this should be `time.Time` or `time.Time`", + "reference": "Not necessary, just write `time.Time{}`" + }, + { + "prediction": "I think this should be a `SettingValue(typ.Int(minval=8), '12')` instead of a `SettingValue(typ.Int(minval=8), '12')`", + "reference": "As these two strings simply get concatenated for the docs, there's a space missing after the dot here." + }, + { + "prediction": "I think this should be `IntegrationOptions.RecordTelemetry();`", + "reference": "What about integrations where we don't plug ourselved on OnMethodBegin?" + }, + { + "prediction": "Why is this change needed?", + "reference": "shouldn't **call** return a boolean?" + }, + { + "prediction": "I think this should be `Service` instead of `Interface`", + "reference": "ViewModel classes should not expose any classes from framework.model." + }, + { + "prediction": "Why did you remove this?", + "reference": "how would you feel about keeping these tests to be more explicit and having them `assert not _validate...`? or is your view that that is too duplicative of the tests in `test_evaluator.py`?" + }, + { + "prediction": "I think this should be `nodes=winrm_nodes` instead of `nodes=winrm_nodes`", + "reference": "Why do we use the `winrm_nodes` variable here and not the string `\"winrm_nodes\"` as we were using before?" + }, + { + "prediction": "I think this is a good idea, but I think it would be better to keep it as it is.", + "reference": "why update Copyright ?" + }, + { + "prediction": "I think this should be `DgSqlCode(-4322)` instead of `DgTableName(naTable->getTableName().getQualifiedNameAsAnsiString());`", + "reference": "Does this mean we cannot update statistics with sampling on a table with LOB columns?" + }, + { + "prediction": "I think it would be better to use `OnInitialize` instead of `OnInitialize`.", + "reference": "Look good, but I think a `[flags]` enum would be more future proof? Although i'm not sure if a flags-enum is working from the XML config. What do you think?" + }, + { + "prediction": "I think we should use `ui-grid-icon-minus-squared` instead of `ui-grid-icon-plus-squared`", + "reference": "Since I believe state will never be anything other than 'expanded' or collapse, you can rewrite this as follows: `return row.treeNode.state === 'expanded' ? 'ui-grid-icon-minus-squared' : 'ui-grid-icon-plus-squared'; `" + }, + { + "prediction": "Why is this removed?", + "reference": "the latter part can go but isn't the first part of this still sound -- that we assume \"id\"?" + }, + { + "prediction": "I think this should be `value = value.replace(/\\n/g, '\\\\n');` or `value = value.replace(/\\r/g, '\\\\r');`", + "reference": "Why is the escaping of @ and $ removed?" + }, + { + "prediction": "I think this interface should be `IHasHttpUrl` and not `IHasHttpUrl`", + "reference": "Nit: `Http` is redundant in this interface's name." + }, + { + "prediction": "I think this should be `store.Put(cfg.SynchronizableEntitiesPrefix, []byte{}, nil)` instead of `store.Put(cfg.SynchronizableEntitiesPrefix, []byte{}, nil)`", + "reference": "what if I set SynchronizableEntitiesPrefix to \"a/b/c/d\" in config?" + }, + { + "prediction": "I think this should be `errNoProjectInWorkspace` instead of `errNoProjectInWorkspace`.", + "reference": "nit: This error message doesn't mention that the path is a directory, maybe \"Dockerfile path is a directory:%s, please provide path to file.\"" + }, + { + "prediction": "I think this is not a good idea, but I think it would be better to add a new license to the license.", + "reference": "This is done automatically, you can skip it next time ;)" + }, + { + "prediction": "I think this should be `self._check_vanished()` instead of `self._check_vanished()`.", + "reference": "This is needed in `set_value` because of `:open-editor` (you could open an editor, close the tab, then close the editor). I don't think it makes any sense to have it here?" + }, + { + "prediction": "I think this should be `profiling_enabled` and `profiling_freq`", + "reference": "Perhaps we can assume that profiling is enabled if ProfilingPort is set? And/or configure a default port and frequency, so we don't have to set three config vars every time?" + }, + { + "prediction": "I think this should be `c.ssh.forward_agent = options['forward_ssh_agent'].nil?` instead of `c.ssh.forward_agent = options['forward_ssh_agent'].nil?`", + "reference": "This nil check won't correctly handle the case where forward_ssh_agent is set to false - it won't be nil but it should still not be set." + }, + { + "prediction": "I think we need to change this to `protocol.ConsensusCurrentVersion`", + "reference": "We could avoid passing proto since threshold isn't needed." + }, + { + "prediction": "I think this should be `false && config.GetBool(config.FlagKeepConnectedOnFail)`", + "reference": "This route excluding needed for reconnect only when one connection is lost and we trying to establish another. I was thinking to make 2 separate flags for killswitch and reconnect enabling. This way we can keep killswitch working, but we don't need these routes excluded." + }, + { + "prediction": "Why is this change needed?", + "reference": "why can this modification avoid crash?" + }, + { + "prediction": "I don't think we need to check if `@account` is `nil` or `@account.id == current_user.id`", + "reference": "This looks good -- signing out the user if the current user is disabled" + }, + { + "prediction": "I think this should be `Selection.selectedByRowHeader` instead of `Selection.selectedByCorner`", + "reference": "The line exceeds 120 characters." + }, + { + "prediction": "I think we should use `uitable.New()` instead of `uitable.New()`", + "reference": "Let's go ahead and change \"Site\" to \"Project\", since that's the path we've chosen. One less thing to alter in the other issue." + }, + { + "prediction": "Why is this removed?", + "reference": "I am for this change iff we are sure the information is no longer helpful. I think this could still be valuable for certain scenarios, wbu?" + }, + { + "prediction": "I think this should be `stream().max(Comparator.comparing(ImageRampup::getRampupPercentage))`", + "reference": "I thought we decided on using the latest active version and not the one which is max ramped up." + }, + { + "prediction": "I don't think we should be using `color.HighlightCode(\"ctrl-c\")` here. I think we should use `color.HighlightCode(\"ctrl-c\")` instead of `color.HighlightCode(\"ctrl-c\")`.", + "reference": "can we update this to a `log.Warningf`?" + }, + { + "prediction": "I think this should be `# pylint: disable=subprocess-run-check`", + "reference": "can we get something emitted in the logs on non-zero exits to trace back to for problems like this failing on the first invocation?" + }, + { + "prediction": "Why not use `schemaMan` here?", + "reference": "Do we need `schema manager` at here ?" + }, + { + "prediction": "I don't think this is needed.", + "reference": "This won't work because of the permissions on the directory when this is included as a library. But, we may be able to do this. The key would be wrapping this command with either a script or a go binary that ensures the current directory is writable. If the current directory is not writable, it would attempt to make it writable so that we could write out the produced binary. But I'm not sure if that will influence the hash that gets produced for `go.sum` since I am not sure how that is calculated. Alternatively, we can choose a place in `/usr/local` or choose a location that is writable in the go cache and use that. I'll give that a try since it might be needed for the ARM builds if we choose to only include `x86_64` precompiled binaries in the module." + }, + { + "prediction": "I think this should be `r.scope.SetReturn(nil)` instead of `r.interpreter.Eval(semPkg, r.scope, flux.StdLib());`", + "reference": "Correct me if I'm wrong, but is this necessary? Why not just use the value returned by `interpreter.Eval` and not mess with the scope? `interpreter.Eval` will return any produced side effects. This means TableObjects as well as any value resulting from any expression statements." + }, + { + "prediction": "I think we should add the `operated-alertmanager` label to the service, and then add the `operated-alertmanager` label to the service.", + "reference": "This service is global per namespace, not per Alertmanager/Prometheus/ThanosRuler instance. So this approach won't work. But maybe I missing out something, can you describe your use case here?" + }, + { + "prediction": "I think this should be `default:false`", + "reference": "Do we need this default? Since we aren't using a sql.NullBool or *bool, an unset column will be interpreted as `false` already... We don't set a default on our other bool fields (e.g. entry admin and downstream columns)." + }, + { + "prediction": "Do we need to check if there is more than one phase?", + "reference": "thanks for moving these over. makes more sense for them to be in the exports_helper" + }, + { + "prediction": "Why is this needed?", + "reference": "That import now isn't needed anymore" + }, + { + "prediction": "I think this should be `:param path: Full path to the addon that will be installed`.", + "reference": "Can you update the `Usage` to be an absolute path as well? Something like `/path/to/firebug.xpi`" + }, + { + "prediction": "Why is this needed?", + "reference": "This class is missing the `MvxPlugin` attribute" + }, + { + "prediction": "I think we should use `core.getWxLang(languageHandler.getLanguage())` instead of `core.getWxLang(languageHandler.getLanguage())`.", + "reference": "What if `wxLang` is returned `None` from `getWxLang`" + }, + { + "prediction": "I think we should return `ResultCode::SUCCEEDED` instead of `ResultCode::SUCCEEDED`.", + "reference": "Please don't do changing like this unless it _**really**_ cares. BTW. Please look around to infer our naming conventions." + }, + { + "prediction": "I think this should be `log.info(\"Preparing test environment\");` instead of `log.finest(\"Preparing test environment\");`", + "reference": "This is in test code: understanding what we're doing is important in this context." + }, + { + "prediction": "I don't think we need to change the `--goquorum-compatibility-enabled` flag to `--miner-enabled`.", + "reference": "prob should still have an example that has multiple option names even if you have to make it up. Or maybe we don't need this method?" + }, + { + "prediction": "Align the elements of a hash literal if they span more than one line.", + "reference": "I believe respond_to whitelists the formats passed to the block so if we don't want to display html, we can just remove the line format.html..." + }, + { + "prediction": "I think this should be `error=\"` instead of `error=\"`", + "reference": "stylistic nitpick: I _feel_ like we've largely shown errors like this as \"error: \" vs. \"error=\". IMO colon/space reads better." + }, + { + "prediction": "Why is this needed?", + "reference": "We could put this implementation in `RTPSWriter::create_change_pool` and avoid an extra function." + }, + { + "prediction": "I think this should be `fmt.fmt`", + "reference": "should this file ends with _test.go?" + }, + { + "prediction": "Why is this change needed?", + "reference": "It's because of this change. `ss` was unused and it made sense in the program. However I haven't read the IPv6 RFC so I'm unsure of what it does" + }, + { + "prediction": "Shouldn't this be `flattenIndex`?", + "reference": "\"Flatten\" is a verb, so I'd probably go with `flattenedIndex` as a variable name here." + }, + { + "prediction": "I think we should use `Object.freeze` instead of `Object.freeze`.", + "reference": "If it can only be called once, perhaps a more appropriate name is something like `setMaskables`? `addX` sounds like you can add many `X`es by calling it many times" + }, + { + "prediction": "Why is this change needed? I think it would be better to use `s3.MakePublicS3SessionForDownload` instead of `s3.MakeS3SessionForDownload`", + "reference": "Nodecfg should be downloading from a private bucket -- these shouldn't be for public consumption. In general these should be generic and expect environment to provide appropriate credentials and bucket." + }, + { + "prediction": "I don't think we need this file anymore.", + "reference": "Could you please end the file with an empty line?" + }, + { + "prediction": "I think this should be `LOG.finest(String.format(\"Detected dialect: %s\", toReturn.dialect));`", + "reference": "This is an incorrect change. The dialect spoken is an important part of the handshake and should be communicated to users." + }, + { + "prediction": "I think this should be `isCanceledMx`", + "reference": "Can this be non-exported to avoid direct use? It would be a breaking change but using previous package version would work." + }, + { + "prediction": "I think we should use `gcerrors.Code(err)` instead of `gcerrors.ErrorCode`", + "reference": "Nit: this is just `return gcerrors.Code(err)`, isn't it?" + }, + { + "prediction": "Why is this removed?", + "reference": "I don't know where this came from, but it's not a good idea. This is actually timing out after 5 rounds, not 5 blocks. 5 consecutive null blocks won't be that uncommon. Also when testing with a short block time, this is a very short duration that can contribute to flaky tests." + }, + { + "prediction": "Why is this change needed?", + "reference": "In Python 3 when pickling or unpickling objects, the file needs to be opened as binary so that no text encoding/decoding takes place. So for any open calls around pickle loads or dumps, the mode for reading must be rb and the mode for writing must be wb." + }, + { + "prediction": "I don't think we need to change the `method` parameter here.", + "reference": "did you remove **params.qstring.method** intentionally? if so why?" + }, + { + "prediction": "Shouldn't this be \"read.locality.task.initialize.threads\"?", + "reference": "What is the current default? Is that inconsistent across uses and that's why this is null?" + }, + { + "prediction": "I think this should be `previouslyDeployedConfig.App = appConfig.Name` instead of `previouslyDeployedConfig.App`", + "reference": "Why did we make this change? How come it wasn't an issue before" + }, + { + "prediction": "I think this should be `ASSERT_NO_FATAL_FAILURE(Init());`", + "reference": "Can you tighten scope by moving to of these variables? i.e. Move to ~4372?" + }, + { + "prediction": "I don't think we need to change the property name to `dataverse.rserve.password`.", + "reference": "Nice to see this `dataverse.rserve.password` fix rolled in." + }, + { + "prediction": "(style) line over 80 characters", + "reference": "How about the following faster alternative that doesn't need `strlen()` at all: if (*tmp_optarg == '\\0' || *endptr != '\\0') { fprintf(...) ... This would treat the bus argument as invalid if it's either empty (`tmp_optarg` points to '\\0') or invalid (`endptr` points to something other that a '\\0'). Actually, the existing code would accept an empty argument and set the bus to `0`, so if (*endptr != '\\0') { fprintf(...) ... would be enough. The check for an empty argument doesn't hurt, though." + }, + { + "prediction": "I think we should use `from` instead of `from` here.", + "reference": "I could be missing something here, but the `from` and `cc` are the same. On the test email sent to gatewaycommunicator, these values are different." + }, + { + "prediction": "Why is this change needed?", + "reference": "I'm honestly scared because act is now a hard requirement for useEffect which it wasn't before... This could break some tests :(" + }, + { + "prediction": "I think this should be `if (election->status.winner->hash() == block_a->hash()) {`", + "reference": "Could use election from `info_a.election`, or is this deliberate?" + }, + { + "prediction": "I think this should be `@deprecated` instead of `@deprecated`", + "reference": "looks like this should be `return array(LegacyFormHelper::getType('form'));`" + }, + { + "prediction": "Shouldn't this be `assert(typeof opt_port === 'function', 'start invoked with function, not port (mocha callback)?');`?", + "reference": "Maybe it would simpler to ignore opt_port if type !== 'number'?" + }, + { + "prediction": "Why is this change needed?", + "reference": "Where was `name` being declared before?" + }, + { + "prediction": "I think this should be `d.Status.Conditions = []appsv1.DeploymentCondition{...}`", + "reference": "nit: use `corev1.ConditionUnknown`" + }, + { + "prediction": "I think we should use `/^[a-f0-9]*$/` instead of `/^[a-f0-9]*$/`", + "reference": "You also need to add a similar check on line 992, there's another place where we check `length === 24`" + }, + { + "prediction": "Why not use `Optional.of(validatorProvider.getVoteProviderAfterBlock(parentHeader, localAddress))` here?", + "reference": "nit: can extract the voteProvider as a local variable" + }, + { + "prediction": "I think we should use `assertEquals` instead of `assertEquals`", + "reference": "[0] Not suggesting you change it here, but....kindof weird that there's just not an `assertFuncNotEquals`" + }, + { + "prediction": "I think this should be `context.WithCancel(context.Background(), bc.bcTimeout)` instead of `context.WithTimeout(context.Background(), bc.bcTimeout)`", + "reference": "why are we passing 'registryAddress' here? We probably should construct it together with bc. Registry is not something that change?" + }, + { + "prediction": "I don't think this is necessary.", + "reference": "`.` at the end of the sentence" + }, + { + "prediction": "I think this should be `time.Since(start).Milliseconds()` instead of `time.Since(start).Milliseconds()`", + "reference": "wouldn't it be useful to split this into an error metric for the timing?" + }, + { + "prediction": "Line is too long. [89/80]", + "reference": "Not sure if this is good enough. Each generator will have it's own unit test anyway. Ideally, I think I'd want to test that each generator in the yml is actually a valid generator..." + }, + { + "prediction": "I think this should be `MintNewSecretBlockWithActionIterator(gomock.Any(), gomock.Any(), gomock.Any()).Return(blkToMint, nil).AnyTimes()`.", + "reference": "line is 138 characters" + }, + { + "prediction": "I think this should be `func() error`.", + "reference": "Nit: I would leave `Wire` out of the description; if you use this without wire you can still use it." + }, + { + "prediction": "I don't think we need to add the `MethodConfig` class to the `MethodConfig` class.", + "reference": "Nit: each field can be on a separate line to make it visually easier to read." + }, + { + "prediction": "I think this should be `compiler_info.json` instead of `compiler_targets.json`", + "reference": "Do we still have these files? Shouldn't we remove these?" + }, + { + "prediction": "I think this should be `ErrDurationInvalid` instead of `ErrDurationInvalid`.", + "reference": "A lot of things to do with constants seemed to move since the original commit, so I stuck this here, Is there a better place for it?" + }, + { + "prediction": "Why is this 10?", + "reference": "is 10 too small compared to 1000? consider sync chan is unicast only (vs block chan is broadcast + unicast), i would say use 200~400 for BlockSyncChanSize my concern is that this would potentially slowdown sync speed of full-node" + }, + { + "prediction": "I think we should use `plans.reject { |plan| get_plan_info(plan.first)['private']` instead of `get_plan_info(plan.first)['private']`", + "reference": "A full parse of the plan here on listing the plans will be expensive from both a computation and IO perspective." + }, + { + "prediction": "I think this should be `UART_TX_PIN` and `UART_RX_PIN`", + "reference": "These constants use the `_PIN` suffix, while the other constants don't use it. I'm not sure what is best, but I would prefer to keep this consistent. Do you have an opinion on which it should be (with or without suffix)?" + }, + { + "prediction": "I think this should be `Optional.ofNullable(dnsDiscoveryUrl)` instead of `Optional.ofNullable(dnsDiscoveryUrl)`", + "reference": "Hmm... this feels like discovery should come first. perhaps `--discovery-dns-url`? @NicolasMassart any opinions on this or ideas on who it should be run by?" + }, + { + "prediction": "I think this should be `!ignore_autogenerated` instead of `!ignore_autogenerated`.", + "reference": "why is this needed?" + }, + { + "prediction": "Why is this change needed?", + "reference": "I wonder if it'd be possible to autogenerate a key from the name within this function if one is not provided explicitly, rather than having all the callsites pass both the name and key (and usually as the same value)? Might give us a good place to implement a `name->key` function that isn't 1:1." + }, + { + "prediction": "I think this should be `IPV6` instead of `IPV4`", + "reference": "@adriancole I do not see a change in the thrift file. Are there unit tests verifying that this manual serialization is compatible with the native Thrift serialization done by classes generated from `.thrift` IDL file?" + }, + { + "prediction": "Why is this change needed?", + "reference": "spelling (variable name, all three changes)" + }, + { + "prediction": "why not just `desiredUser keybase1.UserVersion`?", + "reference": "I believe you meant \"specify `desiredUID` and `desiredRole`\"?" + }, + { + "prediction": "I don't think this is needed anymore.", + "reference": "Please follow the import style, move it to its similar group" + }, + { + "prediction": "I think this should be `errors.RouterUnrecognizedEncodingError(want, string(req.Encoding))` instead of `errors.RouterUnrecognizedEncodingError(want, string(req.Encoding))`", + "reference": "Do we really need these? This is expanding on an API that we're about to do work on with the error stuff @kriskowal" + }, + { + "prediction": "Why is this change needed?", + "reference": "passwordModificationTime is no longer used - did the change drop a time check that should be restored? Or should the param get dropped from the methods?" + }, + { + "prediction": "Shouldn't this be `String.Equals(evt.ProcessName, StringComparison.OrdinalIgnoreCase)` or `String.Equals(evt.ProcessName, StringComparison.OrdinalIgnoreCase)`?", + "reference": "Would it break here without trim? If so, can we do trim in Startup.cs so we don't need to add this code to every parser?" + }, + { + "prediction": "I think this should be `log.Printf(\"iptables output='%s'\", out)`", + "reference": "Since we're using Logrus, probably best to use `Infof` to avoid confusion (Logrus' Printf behaves differently to the built in one)" + }, + { + "prediction": "I think this should be `this.width = svgText.getComputedTextLength() + 2 * Blockly.FlyoutButton.MARGIN;`", + "reference": "Hm, this looks like a change that should go upstream as well." + }, + { + "prediction": "Why is this removed?", + "reference": "let's keep ActionByActionHash and delete getActionByActionHash" + }, + { + "prediction": "I think this should be `@return \\Shopsys\\FrameworkBundle\\Model\\Pricing\\Group\\PricingGroup`", + "reference": "please use return type" + }, + { + "prediction": "I think this should be `LOG.info(\"edgedriver will log to \" + logFile);`", + "reference": "This is deliberately at this level." + }, + { + "prediction": "I think this should be `self._retry_exceptions` instead of `self._num_retries`", + "reference": "I'm going to go ahead and undo this change, I don't think it was intentional." + }, + { + "prediction": "I think this should be `kind of the currnent AppDomain` instead of `kind of the current AppDomain`", + "reference": "> specialised This isn't a typo in my neck of the woods " + }, + { + "prediction": "I think this should be `storageTarget` instead of `storageTarget`", + "reference": "will change to `storage_target`" + }, + { + "prediction": "Why is this change needed?", + "reference": "This would be better as `cls.securitycenter_client`, to match what is being instantiated." + }, + { + "prediction": "I think this should be `hasSeparateSyswow64` or `hasSeparateSyswow64Sys32`?", + "reference": "Could we have this initialization as part of the initialize method?" + }, + { + "prediction": "I think this should be `null`", + "reference": "This line should be removed as editController is not used from this context anymore." + }, + { + "prediction": "I think this should be `RetractTable` and `Process`", + "reference": "This is correct in concept but the method signature doesn't really communicate the same thing. In other words, if the function produces an output table where is it? Its not on the function signature. Can you explain where the output table is created?" + }, + { + "prediction": "I think this should be `if init_cfg is not None:`", + "reference": "For insurance, it's best not to take it directly" + }, + { + "prediction": "I think this method should be `beforeChangeValueOf` and `afterChangeValueOf`", + "reference": "change 'value' to keysToSend, here and in other references in this commit. 'value' implies the user is getting the value of the element, rather than just the keys we're sending to it." + }, + { + "prediction": "I think this should be `task.SetLocalIPAddress(taskIP)` instead of `task.SetLocalIPAddress(taskIP)`", + "reference": "is the plan to fully migrate to boltdb and then remove the state save here?" + }, + { + "prediction": "I think this should be `rgb(220,220,220)` instead of `rgb(220,220,220)`", + "reference": "This should be `output.colorBright`. Unless I'm missing some reason for adding a new theme variable." + }, + { + "prediction": "I think this should be `version=0` and `version_build=0`", + "reference": "nit: I wonder if these should be moved down to where version is defined, just to keep them all in the same place." + }, + { + "prediction": "I don't think we need to add the annotation here.", + "reference": "Is this supported by every implementation of Java (and Android)? Should it be conditional upon `gen_nullable`?" + }, + { + "prediction": "Align the parameters of a method call if they span more than one line.
Prefer single-quoted strings when you don't need string interpolation or special symbols.", + "reference": "@briri Thanks! I just caught this too updating my feature branch" + }, + { + "prediction": "I think this should be `if len(configKey) == 0 && envpw != \"\" {`", + "reference": "I think you should move this block (and the `envpw := os.Getenv(\"RCLONE_CONFIG_PASS\")`) right to the start of the function, then we can remove the duplicate code below" + }, + { + "prediction": "I think this test should be `drainingNodeStatusDraining` instead of `drainingNodeStatusDraining`", + "reference": "Is this only to set the node to draining? I think we can do that inside `Before` or something?" + }, + { + "prediction": "I think this should be `if (AzureAppServices.Metadata.SiteName != null) return AzureAppServices.Metadata.SiteName; } else if (AzureAppServices.Metadata.SiteName != null) return AzureAppServices.Metadata.SiteName; else if (AzureAppServices.Metadata.SiteName != null) return AzureAppServices.Metadata.SiteName; else if (AzureAppServices.Metadata.SiteName != null) return AzureAppServices.Metadata.SiteName; else if (AzureAppServices.Metadata.SiteName != null) return AzureAppServices.Metadata.SiteName; else if (AzureAppServices.Metadata.IsRelevant) return AzureAppServices.Metadata.SiteName;", + "reference": "This should have been moved up above this inner `try` because the log message in the `catch` block does not apply to this." + }, + { + "prediction": "I think this is a bit confusing, but I think it would be better to use `TargetSpec` and `PlanResult` instead of `TargetSpec` and `PlanResult`.", + "reference": "Do we expect people to use PlanResult directly?" + }, + { + "prediction": "Why is this change needed?", + "reference": "Maybe we should call this something like `errToReturn`?" + }, + { + "prediction": "I think we should use `epochNum <= fairBankEpochNum + a.foundationBonusLastEpoch` instead of `epochNum >= fairBankEpochNum + a.foundationBonusLastEpoch`.", + "reference": "should calculate numEpochIn1Year = xxx and <= fairBankEpochNum+numEpochIn1Year a.foundationBonusLastEpoch just happens to be equal to 1 year now, but should not count on that" + }, + { + "prediction": "I don't think we need to add a space between an img's accessible name and other elements. I think it would be better to add a space between an img's accessible name and other elements.", + "reference": "I wasn't sure if the content type needed to be removed from both the `default` and `usemap` objects - I'm not sure how usemap is used." + }, + { + "prediction": "Why is this needed?", + "reference": "Duplication of line 28 Please refer your tox -e flake8 It seems that XStrField, XShortField, FieldLenField are not used" + }, + { + "prediction": "Shouldn't this be `self._file_view.setRowHidden(index.row(), index.parent(), hidden)`?", + "reference": "I don't really understand the `self._file_model.index(path)` as parent here - you use `self._root_index` for `rowCount` above, so wouldn't the parent here need to be `self._root_index` as well?" + }, + { + "prediction": "I think this should be `maxQueryLength`", + "reference": "Do we want validation somewhere that max >= min? Or simply treat the max < min case as ignoring max?" + }, + { + "prediction": "I think this should be `when:when='${ndc:topframes=1}' == '':inner=:else=${ndc}`", + "reference": ":+1: that's a easier example :)" + }, + { + "prediction": "This method should be `findProductIdsWithBoundAttributeByAttributeId`", + "reference": "If an external module decorates this interface, such a change will cause it to generate an error" + }, + { + "prediction": "I think this should be `fnmatch(arg, name, FNM_PERIOD)` instead of `fnmatch(arg, name, FNM_PERIOD)`", + "reference": "Oh ha hah, FNM_PERIOD worked out nicely there. Points for co-opting a file system convention." + }, + { + "prediction": "I think this should be `fmt.Stringer`", + "reference": "wrong grouping. As you can tell from the other files, we put system packages in the first group, the 3rd party packages in the second group, and our own packages in the third group." + }, + { + "prediction": "I think we should use `GetJob` instead of `GetApplication`.", + "reference": "Is `o.name` always set here?" + }, + { + "prediction": "I think this should be `target.SteadyStateDependencies` instead of `target.SteadyStateDependencies`", + "reference": "Can this line be removed, as `SteadyStateDependencies` isn't updated anywhere? Also do we need to check the `TransitionDependencySet` here?" + }, + { + "prediction": "Shouldn't this be `has_active_subscription? && plan.present? && plan.has_annual_plan?`?", + "reference": "`plan.present?` and `has_active_subscription?` are equivalent. We can drop this change, while leaving the one on `app/controllers/application_controller.rb`." + }, + { + "prediction": "I think this should be `# pylint: disable=too-many-locals`", + "reference": "No need for this, as pylint already only turns things off for this function and it's needed for the entire function." + }, + { + "prediction": "Why is this change needed?", + "reference": "L171 needs to be modified too?" + }, + { + "prediction": "(style) space required around that '=' (ctx:VxV)", + "reference": "Why do you compare by nodeid? Simply saying d == e should be enough. Unless we have to objects in memory with the same nodeid. If that is so, something went really wrong." + }, + { + "prediction": "I think this should be `_delete_=True`", + "reference": "configs/pvt/retinanet_pvt_t_fpn_1x_coco.py --> configs/pvt/retinanet_pvt-t_fpn_1x_coco.py" + }, + { + "prediction": "Why is this change needed?", + "reference": "Nit, this could be json:\",omitempty\"" + }, + { + "prediction": "I think this should be `return buildRequired(s.Image.BuildConfig(wsRoot))` instead of `return buildRequired(s.Image.BuildConfig(wsRoot))`", + "reference": "It's kinda funny to read `s.Image.Image` I wonder why it resulted to this way. What would it take to refactor to just `s.Image`?" + }, + { + "prediction": "I don't think we need to add `deploy` here.", + "reference": "nit: I like the idea! can we instead change the tag to `integration-remote` to be more specific? I feel like it's possible for us to use the `deploy` build tag for possibly another scenario" + }, + { + "prediction": "I don't think this is needed.", + "reference": "Copy and paste error here. Edit: Also missing commas here and in other Perl croaks between some parameters and not others." + }, + { + "prediction": "Why is this change needed?", + "reference": "stateRoot or maybe ParentHeader would make more sense from API point of view?" + }, + { + "prediction": "Why is this removed?", + "reference": "Are you sure that this is no longer needed?" + }, + { + "prediction": "I think this should be `SCAN_WITH_STATS_COLUMNS`.", + "reference": "Would it help to use SCAN_COLUMNS as base to build SCAN_WITH_STATS_COLUMNS e.g like so `SCAN_WITHSTATS_COLUMNS = ImmutableList.builder().addAll(SCAN_COLUMNS).add(\"value_counts\",....).build()` ?" + }, + { + "prediction": "This service is deprecated.", + "reference": "`ctx` is unused in ReportStat" + }, + { + "prediction": "Why is this needed?", + "reference": "We don't want to add boost as a dependency when building the Thrift compiler. Sorry." + }, + { + "prediction": "I think this should be `int32_t minSpeedChange = 0; int32_t maxSpeedChange = 0;`", + "reference": "It's not printing the range. Also I think it's useful to print a warning above stating that the minimum change is -1000." + }, + { + "prediction": "I think this should be `Delete` instead of `Delete`", + "reference": "if name is empty will this become enumerate ? (and cause the unmarshal to fail ?)" + }, + { + "prediction": "Layout/EmptyLinesAroundHashLiteralBraces: Extra empty line detected at hash body end.", + "reference": "How about including a flash message that explains the exercises are only available to subscribers of X plan?" + }, + { + "prediction": "I don't think we need to check if the key is backspace or not.", + "reference": "You should also call `e.accept()` and `return` so the key press isn't processed further (as we're leaving insert mode anyways)." + }, + { + "prediction": "I think this should be `ENV[\"EMAIL_RECIPIENTS\"]` instead of `ENV[\"EMAIL_RECIPIENTS\"]`.", + "reference": "Freeze mutable objects assigned to constants." + }, + { + "prediction": "I think this should be `await pageWait();` instead of `await pageWait();`", + "reference": "Hmm, this feels hacky. Maybe good enough if it makes the test more stable, but why is timing even an aspect here, since below it should wait for these two things anyway?" + }, + { + "prediction": "I think this should be `if (!string.IsNullOrEmpty(xForwardedFor))` or `if (!string.IsNullOrEmpty(xForwardedFor))`", + "reference": "Do we want this on by default, or an opt-in (e.g. via some config while add the instrumentation)? I guess a more general question is - what's the bar for the default vs opt-in tags." + }, + { + "prediction": "I think this should be `/status` instead of `/graph`", + "reference": "`status` is just one of the features, named as status is not suitable." + }, + { + "prediction": "I think this should be `if (UserPreferences.getFeedFilter() != UserPreferences.FEED_FILTER_NONE) { Iconify.addIcons(feedsFilteredMsg); } else { Iconify.addIcons(feedsFilteredMsg); }`", + "reference": "There is an option to hide the subscriptions list from the sidebar. If it is hidden, the filter text should not be displayed." + }, + { + "prediction": "Shouldn't this be `getInt(\"query/memoryCircuitBreakerThreshold\", 100);`?", + "reference": "I'd like for all of this to be dynamically configurable at some point, but it doesn't have to be in this PR. Can add it to the future SIP or create a separate JIRA for it, as you think would be appropriate." + }, + { + "prediction": "Why is this removed?", + "reference": "move the constructor to down the `namespace`" + }, + { + "prediction": "I think this should be `*corev1.ObjectReference` and not `*corev1.ObjectReference`.", + "reference": "Nit: ending with a '.' looks consistent with the fields around it." + }, + { + "prediction": "Why is this change needed?", + "reference": "Audit log will not have a warning about they are using a deprecated path, is it something we must care about?" + }, + { + "prediction": "I think this should be `TypeMemberVisibility.FamilyOrAssembly` instead of `TypeMemberVisibility.FamilyOrAssembly`.", + "reference": "I think you also want to update the condition to add ` || impl.Visibility == TypeMemberVisibility.FamilyOrAssembly`." + }, + { + "prediction": "I don't think you need to change this, it's a bit confusing to use `depositToRewardingFundGasPerByte` as it's used in the `depositToRewardingFundGasPerByte` variable.", + "reference": "`DepositToRewardingFundBaseGas` is a global variable (from `gochecknoglobals`)" + }, + { + "prediction": "I think this should be `Operational`.", + "reference": "What do you think of \"operations\"?? Also what do these emojis look like on Linux??" + }, + { + "prediction": "I don't think we need to add the tagline here.", + "reference": "I like the word \"give\" here. Feels like I'm giving a gift to my team." + }, + { + "prediction": "I think we should use `MultiOutputRegressor` instead of `RegressorChain`", + "reference": "Is it possible to use `np.random` module instead?" + }, + { + "prediction": "I think this should be `allow_None=True` instead of `allow_None=False`", + "reference": "``default=None`` implies ``allow_None`` so ``allow_None`` is superfluous here. As a special case, if allow_None=True (which is true by default if the parameter has a default of None when declared) then a value of None is also allowed." + }, + { + "prediction": "I think this is a bit confusing, but I don't think we need to change this to `system:kube-controller` because it's hardcoded to `system:kube-proxy` because it's hardcoded to `system:kube-controller` because it's hardcoded to `system:kube-proxy` because it's hardcoded to `system:kube-proxy` because it's hardcoded to `system:kube-proxy` in the rolebindings.yaml.", + "reference": "Is there anything in particular that makes setting up the downstream rolebinding(s) to `system:k3s-controller` burdensome or confusing? This changes looks fine to me but it seems a shame to alias an embedded k3s controller. If we are doing this in other places that I am not aware of then we can dismiss this concern out of hand." + }, + { + "prediction": "Why is this changed?", + "reference": "File is not `goimports`-ed (from `goimports`)" + }, + { + "prediction": "I think this should be `public string Architecture { get; set; }` or `public string Name { get; set; }`", + "reference": "nit: all other types in this project have full names, so maybe a better name would be `OperatingSystem`?" + }, + { + "prediction": "Why is this changed?", + "reference": "Why is this needed here?" + }, + { + "prediction": "I think this should be `Optional.empty()` instead of `Optional.empty()`", + "reference": "mmm, why a method declaration should not have the TypeVariableResolutionCapability? Is this ok?" + }, + { + "prediction": "Why is this change needed?", + "reference": "nit: any reason you swapped the ordering?" + }, + { + "prediction": "Why is this change needed?", + "reference": "can you de-uglify at least this line?.. hard to tell what changed..." + }, + { + "prediction": "Why remove this?", + "reference": "Please can you merge master in before making these changes. I just reinstated a bunch of BPF UTs. Possible that the UTs use this code." + }, + { + "prediction": "Why is this needed?", + "reference": "Do you want to add additional cases for `Bla.__b()` and `self.__c()`? (Just add additional classmethods `__b` and `__c` and the calls to `__init__`)" + }, + { + "prediction": "Why is this change needed?", + "reference": "the recids is never changed after. So, it should contains the exact shown results, whatever are the rights for the user (admin or simple user, restricted collections...)" + }, + { + "prediction": "I think this is a bit confusing, but I think it would be better to use `nil` instead of `nil` here.", + "reference": "Shouldn't the docstring mention that the MD5 checksum of `p` is computed each time and verified? Also, could there be use cases where a caller might not want such a check to happen because, eg, a blob storage solution doesn't provide MD5 verification or uses another hash algorithm such as SHA256?" + }, + { + "prediction": "I think this should be `if eventName==\"gainFocus\" and not doPreGainFocus(obj,sleepMode=sleepMode):`", + "reference": "focusRedirect is used in the powerpnt appModule. We might have to make sure that this does not break. Having said that, I really like this being handled on the events level!" + }, + { + "prediction": "I think this should be `gcp_client_config`", + "reference": "You imports are out of order" + }, + { + "prediction": "Why is this public?", + "reference": "This should not be called Flow Trigger. FlowTrigger should has its own flowTrigger job name, for instance, \"flowtrigger\"" + }, + { + "prediction": "I think this should be `config.SQLite3File` instead of `config.SQLite3File`.", + "reference": "File is not `goimports`-ed (from `goimports`)" + }, + { + "prediction": "I think this should be `#if DEBUG` instead of `#endif`", + "reference": "Why do we need `\\n` if we already use `WriteLine`? (and `\\n` is not cross platform)" + }, + { + "prediction": "I think this should be `besu` instead of `prometheus`", + "reference": "What is instrumentation name used for? I'm not seeing other classes use it, only a getter, constructor, and builder." + }, + { + "prediction": "Why is this needed?", + "reference": "@kristofgazso could you review these warnings?" + }, + { + "prediction": "I think this should be `console.log(\"hi\")`", + "reference": "will delete this." + }, + { + "prediction": "Align the parameters of a method call if they span more than one line.", + "reference": "~~Indent 2 lines above~~ Disregard. My fault" + }, + { + "prediction": "I think it would be better to use `item.getType().isRepeated()` instead of `item.getType().isRepeated()`", + "reference": "What was the bug that this is fixing?" + }, + { + "prediction": "I think this should be `base64.b64encode('%s:%s' % (parsed_url.username, parsed_url.password))`", + "reference": "This will always add the authorization header to the request object. Is this the right scope for these two lines? If username/password are not defined, it will encode 'Basic :'" + }, + { + "prediction": "I think this should be `com_github_google_flatbuffers/tests/test_data_path`.", + "reference": "Is this always how Bazel does paths? Would it be nicer to do `-DBAZEL_TEST_DATA_PATH=../com_github_google_flatbuffers/tests/` so this string is not hardcoded in the the source?" + }, + { + "prediction": "`date_utc` should be `date_utc`", + "reference": "Not an expert of ES, so not sure of the impact here." + }, + { + "prediction": "I don't think we need to do this, but I think it would be better to use `currContext->getRoleList(numRoles, roleList, granteeList);` instead of `currContext->getRoleList(numRoles, roleList, granteeList);`", + "reference": "Who deletes the memory for the granteeList? (or the roleList for that matter)" + }, + { + "prediction": "Why is this needed?", + "reference": "This loop is missing a lock on subscriptions_mutex." + }, + { + "prediction": "Align the elements of a hash literal if they span more than one line.", + "reference": "shouldn't clearance be setting these up for us?" + }, + { + "prediction": "I think this should be `noOp` instead of `noOp`", + "reference": "Need to update the doc for `TelemetrySDK` and `Host` structs deleting references from removed functions." + }, + { + "prediction": "Why is this removed?", + "reference": "I think we should keep that here and add a new method `isSyntacticallyFinal` that returns `super.isFinal()` (and can be used in UnnecessaryModifier). Otherwise the contract of `isFinal` is not respected" + }, + { + "prediction": "I think this should be `if (gridCol.colDef.enableCellEditOnFocus === true && gridCol.colDef.enableCellEditOnFocus !== false) {`", + "reference": "Is there a reason why we wouldn't want to check this every time? Why are we only checking for the footer and scroll bar when enableCellEditOnFocus is true?" + }, + { + "prediction": "I think this should be `com.playonlinux.ui.api.InstallerFilter`", + "reference": "You need to create an API for this class. This class should follow roughly the same dependency structure than RemoteAvailableInstallersPlayOnLinuxImplementation / RemoteAvailableInstallers. Maybe we could use a inner class here?" + }, + { + "prediction": "Why is this change needed?", + "reference": "This should not be a case, right? If `run_id` is the same `workflow_id` can't be changed. Actually surprised that it is not part of a key." + }, + { + "prediction": "I think this should be `setUpdAbortOnError(FALSE)` instead of `setUpdSavepointOnError(TRUE)`", + "reference": "How would AQR work for an INSERT/SELECT of one table into another where a LOB column is being copied?" + }, + { + "prediction": "I think this should be `sds_v2` and `sds_v3`", + "reference": "Since these are ultimately different endpoints, it would be nice if we could move them up one level and nuke the common `sds` directory in order to reduce path stutter" + }, + { + "prediction": "I think this should be `if (beforeChangeResult.length === 0 || beforeChangeResult[0] === null)`", + "reference": "Please check also whether `null` occurs in the rest of `beforeChangeResult` array." + }, + { + "prediction": "I think this should be `UnaryOutbound` instead of `UnaryOutbound`.", + "reference": "Outdated docs. There is no response, there's an ack." + }, + { + "prediction": "Why is this change needed?", + "reference": "I'd rather have the container process remove the FIFO after it unblocks. Then `start` can always `Exec()`, and you can catch the \"FIFO does not exist\" error and translate it to a prettier \"someone must have already started the container\"." + }, + { + "prediction": "I think this should be `if tx != nil`", + "reference": "can you check if there's other similar cases to add nil-check like this?" + }, + { + "prediction": "I think this should be `is_valid_commonname = (commonname is not None and len(commonname) < 64)`", + "reference": "`<= 64`? I just picked up what you said in #3981 (\"the CN field is limited to 64 characters\") but maybe there's something I don't know where the 64th character is needed (trailing dot or whatever?) Also this sounds like something that could be beautifully unit tested. Sorry for bugging you :grin:" + }, + { + "prediction": "I don't think we need to add this method to `License.find_by(:nice_name).select(['lower(nice_name) LIKE ?', \"#{term.downcase}%\"]).limit(10)`", + "reference": "I understand that this grabs a Licenses objects but what is the autocomplete method used for? What does this do in context of the auto_completes controller?" + }, + { + "prediction": "I think this method should be `getTransactionLocationByHash` instead of `getTransactionLocationByHash`", + "reference": "I don't really like that way of naming methods based on their arguments. But I can see that the other method names are the same ..." + }, + { + "prediction": "I think this should be `value.substring(0, value.length() - 1);`", + "reference": "@sekmiller This method correctly strips the leading and trailing slashes (and also \".\" and \"-\"); But I thought the plan was also to replace any multiple slashes between nested folders with a single slash. For example, as implemented now, I can enter \"folder1///folder2\", and it gets saved and displayed like this, with the 3 slashes. I thought we wanted to sanitize it as \"folder1/folder2\"." + }, + { + "prediction": "I think this should be `int64_t` instead of `int64_t`.", + "reference": "Looks like the X86 inline assembly is not happy with this type. I will update that" + }, + { + "prediction": "I don't think we need to check if the user is the same as the user. I think it's better to check if the user is the same as the user.", + "reference": "Tabs and a space, again." + }, + { + "prediction": "I think this should be `std::string(taskmanager->GetTaskName(task_id));` or `std::string(taskmanager->GetTaskName(task_id));`", + "reference": "Please just enclose if blocks with brackets; this has created issues in the past so I'd prefer we don't use them" + }, + { + "prediction": "I don't think we need to change this, but I think it's better to use `approve_proposal_url` instead of `approve_proposal_url`", + "reference": "`version` isn't need anymore because it's built into `approve_proposal_url`, yes?" + }, + { + "prediction": "Why is this needed? I think it's better to use `_dbmField` instead of `_dbmField_with_phdr`.", + "reference": "Moved to the bottom of the file. `CtrlPDU` sits on `BTLE_DATA` so let's put it after" + }, + { + "prediction": "I don't think we need to include `json` here.", + "reference": "This ends up requiring the `json` gem, right? Is there any way we can do this to be implementation agnostic (e.g. to let me use `yajl-ruby` for performance reasons (or because my app already brings in a JSON library)" + }, + { + "prediction": "I think this should be `for n, err := b.Read(buf[:]) if n == 0 && err == nil {`", + "reference": "This seems dangerous. What circumstances lead to the need for a retry? Can that happen more than once? I'm concerned that if we hit the pathological state, this could turn into a CPU spinner. I wonder if we could get the same benefit from just \"trying again\" and failing if it fails the second time." + }, + { + "prediction": "I think this should be `final` and not `final`.", + "reference": "If there is a reference to other fields or methods, please do the initialization in the constructor." + }, + { + "prediction": "I think this should be `const siteStories = [...]`", + "reference": "These should be importing from `pill-container`" + }, + { + "prediction": "This should be `RETURNVALUE_NOTPOSSIBLE`.", + "reference": "Why this change? It will now only show on the bottom of the screen as white text, is it correct behaviour?" + }, + { + "prediction": "I think this should be `\"\"` instead of `\"\"`", + "reference": "Does this need to allocate a string or would a nil value (indicating no header) be a better?" + }, + { + "prediction": "I think this should be `this.state = {};`", + "reference": "Nit: Past tense of `reset` is also `reset`." + }, + { + "prediction": "I think this should be `return self.config.fee_per_kb()`.", + "reference": "Shouldn't this use `'n'` instead?" + }, + { + "prediction": "Why is this change needed?", + "reference": "revert back to 'TASK_TYPE_ACTIVITY_TIMEOUT'" + }, + { + "prediction": "This should be `std::map::Info>>`.", + "reference": "Shouldn't we prefer passing a pointer by reference T*&, since these are C++ bindings?" + }, + { + "prediction": "I think this should be `*n.toAntreaPeerForCRD(ingressRule.From, cnp, controlplane.DirectionIn, namedPortExists, cgExists)`", + "reference": "nit: Personally I feel that it's cleaner to let `toAntreaPeerForCRD` to take `ingressRule` as a param instead of `ingressRule.From`. It can call `processRefCGs` inside the function and do the ipBlock/AG union within the function itself. It might not be worth the refactor though." + }, + { + "prediction": "I think this should be `Status.State = apis.ReconcilePending`", + "reference": "Pending has been set only for SPC.. why? for other CRs as well, this need to be done.. right?" + }, + { + "prediction": "I think this should be `true` instead of `false`", + "reference": "would use an empty string here as default and then check for emptiness in the twig template. I dont like mixing types @core23 what do you think?" + }, + { + "prediction": "I think we should use `Name.lowerCamel(methodInfo.requestPageTokenName())` instead of `Name.lowerCamel(methodInfo.responsePageTokenName()).toUpperCamel()`", + "reference": "How come we need case manipulation for the nextPageToken and not for pageToken?" + }, + { + "prediction": "I think this route should be `#show` instead of `#update`", + "reference": "why use these rather than regular named paths?" + }, + { + "prediction": "I think this should be `options[:guide] + %w[format]` instead of `options[:guide] + %w[format]`", + "reference": "Hm, I don't think the extra flags are doing any harm here, but it does seem like `--help` is the only flag you could *actually* use with this command. We might eventually want to separate those out." + }, + { + "prediction": "I think this should be `top_artists_candidate_set_df` and `similar_artist_candidate_set_df`", + "reference": "We should make this a docstring, so that editors are able to pick it up." + }, + { + "prediction": "I don't think we need to check if `analytics` is tracked. I think we should check if `analytics` is tracked.", + "reference": "Put a comma after the last parameter of a multiline method call." + }, + { + "prediction": "Why is this removed?", + "reference": "App cache size is now managed dynamically by the `WebView`. This statement has no effect in the new framework." + }, + { + "prediction": "I think this should be `!node.hasAttribute('alt') && !node.hasAttribute('alt') && !node.hasAttribute('alt')`", + "reference": "VirtualNode has a `hasAttr` function, any reason why you're not using it?" + }, + { + "prediction": "Why was this removed?", + "reference": "This now throws when running tests (maybe the move to java 11??). Do we want to keep it?" + }, + { + "prediction": "I think this should be `if len(sha1) > 7 { return sha1[:7] }`", + "reference": "We can allow 7-char SHA, does not mean we want to show with 7-char in default, please change to `if len() > 10`, then cut." + }, + { + "prediction": "I think this should be `cannot add the file %{fileName}, it already exists`", + "reference": "this one should also have quotes i guess :)" + }, + { + "prediction": "Why is this change needed?", + "reference": "Using the variable on range scope `mock` in function literal (from `scopelint`)" + }, + { + "prediction": "I don't think we need to check if `res.isWorkflow()` is true. If `res.isCompleted()` is true, then we should return `accepted(json(res.getDataset()));` instead of `accepted(json(res.getDataset()));`", + "reference": "does this result in a 200 when the dataset is still inprogress/publishing not yet finalized? Seems like 202 is the right code for that (as it was) and the test should be watching for a 202?" + }, + { + "prediction": "I think this should be `orderPath` instead of `orderPath`", + "reference": "Previously you could only order by the field you were searching by. But for full-text search, you can search across all indexed fields, and it didn't make sense not to have a sorting. For backward compatibility, the javascript code uses indexPath as the orderPath when no orderPath is provided." + }, + { + "prediction": "Why is this change needed?", + "reference": "VIM didn't like your whitespace." + }, + { + "prediction": "I think this should be `using Datadog.Trace.ClrProfiler;` instead of `using Datadog.Trace.ClrProfiler;`", + "reference": "Are you sure the namespace should change?" + }, + { + "prediction": "Why is this change needed?", + "reference": "@martijn00 I'm not sure why we're keeping the object parameter and return type since this can be done by using MvxApplication with THint set to object" + }, + { + "prediction": "Why not use `TimeType` instead of `TimeType`?", + "reference": "why do we create a time type here?" + }, + { + "prediction": "This should be `css!components/listview/listview` instead of `css!components/listview/listview`", + "reference": "Does this style actually need to get loaded in all of these components?" + }, + { + "prediction": "Why is this needed?", + "reference": "import but not used so you did not resolve compile warnings?" + }, + { + "prediction": "This should be `if (armor > 3) {`", + "reference": "This is so much more concise and beautiful than the previous formula " + }, + { + "prediction": "I think this should be `org.apache.logging.log4j.Logger`", + "reference": "Is there any reason not to have the `static` modifier for the logger? _(that would be in keeping with the reference being uppercase)_" + }, + { + "prediction": "I think this should be `GetSessionConfig`", + "reference": "It's not about session creation config. It's about passing consumer config parameters to underlying transport - nothing to do with session itself" + }, + { + "prediction": "I think this should be `overrideEnableDebug`", + "reference": "Why is there an \"enable\" in the param name? Couldn't it just be `overrideDebug`? Here are everywhere else." + }, + { + "prediction": "I think this should be `@videos = Video.published.recently_published_first` instead of `@videos = Video.published.recently_published_first`", + "reference": "`published.recently_published_first` reads a little oddly to me. Is this the same thing as `Video.published.ordered`?" + }, + { + "prediction": "Shouldn't this be `throw new Error('Unable to parse content of ' + file.originalPath);`?", + "reference": "Encountered this because I had a stray comma. Figured I'd tweak it a bit." + }, + { + "prediction": "I think it would be better to have a test for `iptables-save` as well.", + "reference": "qq: Should this include the iptables6-save sim. to the inverse checks above?" + }, + { + "prediction": "I think this should be `json.Marshal(reflect.ValueOf(right.Field(i).Interface()).Interface()) == \"null\"`", + "reference": "im open to explicitly checking NotSet value here but json logic already handles it so kept it this way." + }, + { + "prediction": "I think this should be `#include \"../Util/Lua.h\"`.", + "reference": "The naming of the include file appears to be unlucky." + }, + { + "prediction": "why do you need to update `legend_opts` here?", + "reference": "Bit worried about this. At minimum you should make a copy of the dict here to avoid modifying a user supplied variable." + }, + { + "prediction": "I think this is a bit confusing, but I think it would be better to have a single `PruneLaunchTemplateVersions` function for each `LaunchTemplateVersion` in the `CreateLaunchTemplateVersion` function.", + "reference": "Is it better to create one before pruning? In case creation fails we don't want to delete the previous one. We create a new one, it is tagged as latest, so the previous can be deleted. `CreateLaunchTemplateVersion` returns the version created, how about directly trying to delete the previous version? Assuming the numbering is strictly increasing." + }, + { + "prediction": "I think we should use `WinePrefixContainerDTO` instead of `WinePrefixContainerDTO`", + "reference": "Do we require the specific implementation information here?" + }, + { + "prediction": "I think this should be `exists?(['lower(domain) LIKE ?', \"%#{domain.downcase}%\"])` instead of `exists?(['lower(domain) LIKE ?', \"%#{domain.downcase}%\"])`", + "reference": "How about `exists?(['domain ~* ?', domain.downcase])` ?" + }, + { + "prediction": "I think this should be `c.GlobalInt(FlagContextTimeout) * time.Second` or `c.GlobalInt(FlagContextTimeout) * time.Second`", + "reference": "Is this getting used in other places? Can we switch all the places to use the new API you added?" + }, + { + "prediction": "Why did you remove this?", + "reference": "This need to be checked with linux. AFAIK, we have this file in our bin directory that is a link to the system file." + }, + { + "prediction": "Why is this needed?", + "reference": "Shouldn't we import `default`? I can't get here to test." + }, + { + "prediction": "Why is this change needed?", + "reference": "!!!!!!!!!!!!! @graingert, does this mean that tests haven't been running???" + }, + { + "prediction": "I think this should be `if (type != null && type.Equals(\"passThrough\") && type.Equals(RunToolSettingValueTypeReservedKeyword)) { /* do nothing */ } else if (type != null && type.Equals(\"passThrough\") && type.Equals(RunToolSettingValueTypeReservedKeyword)) { /* do nothing */ } else if (type != null && type.Equals(RunToolSettingValueTypeReservedKeyword)) { /* do nothing */ } else if (type != null && type.Equals(RunToolSettingValueTypeReservedKeyword)) { /* do nothing */ } else { /* do nothing */ } else { /* do nothing */ }", + "reference": "I've already tried the null-coalescing operator here and got a strange error, so did this the old-fashioned way." + }, + { + "prediction": "Why is this change needed?", + "reference": "This doesn't follow our spacing convention. It's also a little hard to read. Can you reformat?" + }, + { + "prediction": "Why is this changed?", + "reference": "The deploy should come before template? EDIT: I see that in other files, we put a separate line and put deploy at the end. What is the reason for this?" + }, + { + "prediction": "I think this should be `Aggregation.Drop` instead of `Aggregation.Drop`.", + "reference": "Consider making a constant (e.g. `MetricStreamConfiguration.Drop`)." + }, + { + "prediction": "I think this should be `from rdkit.six.moves import xrange` and `from rdkit.six.moves import xrange`", + "reference": "same question: why not just switch this to range too?" + }, + { + "prediction": "This should be `const std::string type(m_IO->InquireVariableType(name));`", + "reference": "@chuckatkins most places used an empty string for \"no type\", but a few used `\"unknown\"`. I've converted both cases to `Type::None`. Do you know why there was a distinction before?" + }, + { + "prediction": "I think this should be `std::min(train_data_->FeatureGroupSizesInByte(i), static_cast(num_data_));` or `std::max(train_data_->FeatureGroupSizesInByte(i), static_cast(num_data_));`", + "reference": "should we assert for the type for `FeatureGroupData` ? I think it should be 1-Byte type." + }, + { + "prediction": "Why is this change needed?", + "reference": "As long as you are sure this is definitely correct now... :-)" + }, + { + "prediction": "I think this should be `\\n` instead of `\\n`", + "reference": "... so that all action buttons have the same height :-)" + }, + { + "prediction": "I think this should be `#include `", + "reference": "Use correct, alpha sorted, include order. Correct order means: 1. Header corresponding to this source (i.e. `\"LatencyTestPublisher.hpp\"`) 2. C system headers 3. C++ system headers 4. Alpha-sorted external libraries headers 5. Alpha-sorted public headers from this project 6. Alpha-sorted private headers" + }, + { + "prediction": "I think this should be `*transport.Request` or something like `*transport.Request`", + "reference": "I hate this name, open to suggestions." + }, + { + "prediction": "I think this should be `log.Warning(\"%s\", err)` instead of `log.Warning(\"%s\", err)`", + "reference": "Does this log line work? We need Warningf or just warning without the format string." + }, + { + "prediction": "I think this should be `c.MetricsProcessors...` instead of `c.MetricsProcessors...`", + "reference": "The pull controller would need similar updates." + }, + { + "prediction": "I think we should remove this file.", + "reference": "ignore this.. just didn't want to litter with a commit update to satisfy license plugin" + }, + { + "prediction": "I think this should be `/cygdrive/c/Windows/Temp/{host['dist']}.msi`", + "reference": "Is this definition needed since it doesn't look like it's being used anywhere?" + }, + { + "prediction": "I don't think we need to do this, but I think it's better to use `descendants.length == 0` instead of `descendants.length == 0`", + "reference": "Can this condition be reworded using `if` please?" + }, + { + "prediction": "I think this should be `if (inputs != nullptr && !inputs->hasData()) {`", + "reference": "after ||, no need inputs != nullptr" + }, + { + "prediction": "I think this should be `AppInStage` instead of `IntegTestBuildspecPath`", + "reference": "Is it just preference or on purpose that using slice of structs instead of slice of pointers?" + }, + { + "prediction": "I don't think we need to check if the old dom is not null.", + "reference": "This line always confused me anyway. Good catch!" + }, + { + "prediction": "Why do we need to call `context.Background()` here?", + "reference": "Should we add `ctx` to `BlockServer.Shutdown()` for this purpose? Would be nice, but I don't care too much." + }, + { + "prediction": "Why is this change needed?", + "reference": "Duration_t at RTPS level must be serialized using fractions." + }, + { + "prediction": "I don't think we need to add this to the error message.", + "reference": "\"peer\" has its own meaning within YARPC with its own class of objects. This should probably be \"dispatcher\" too?" + }, + { + "prediction": "I think this should be `experimental-enable-naive-ctu-analysis` instead of `experimental-enable-naive-ctu-analysis`.", + "reference": "I do not like this line break before `=true`. Maybe starting the list in the next line would help to reduce the indent? This way we could keep this string together." + }, + { + "prediction": "why remove this?", + "reference": "_plugins should be removed too" + }, + { + "prediction": "I think we should use `node.hasAttribute('alt')` instead of `node.hasAttribute('alt')`", + "reference": "The rule selector will not include `` and `` elements. Why not make this a new, separate rule altogether?" + }, + { + "prediction": "Why is this change needed?", + "reference": "@The-Compiler Is this style okay or would you prefer a common userscript exception base?" + }, + { + "prediction": "I think this should be `value.sub_type || 0x00` instead of `0x00`", + "reference": "we'd need to return a MongooseBuffer here instead of the Binary. lets add the subtype option to the buffer schema type as referenced in #1000 instead." + }, + { + "prediction": "Why remove this?", + "reference": "Let's remove this change." + }, + { + "prediction": "I think we should use `ROLE_TABLECELL` and `ROLE_TABLECOLUMNHEADER` as well as `ROLE_TABLECELL` and `ROLE_TABLEROW` as well.", + "reference": "Could you split this into multiple lines?" + }, + { + "prediction": "I think this should be `useSelect( (select) => select( STORE_NAME ).getCurrentEntityURL() );`", + "reference": "This technically works, however it may be safer to use both `getCurrentReferenceURL` and `getCurrentEntityURL` and then make this condition `currentReferenceURL === currentEntityURL`. Currently, this code only works based on the internals of `getCurrentReferenceURL`, so by checking both we would decouple that." + }, + { + "prediction": "Why is this change needed?", + "reference": "It does not recommend capitalization" + }, + { + "prediction": "I think we should use `expect(page).to have_content('Your credit card was declined')` instead of `expect(page).to have_content('Your credit card was declined')`", + "reference": "Minor thing, but can you use 1.9 hash syntax for this?" + }, + { + "prediction": "I think we should use `format_windows_path` instead of `format_windows_path`", + "reference": "I tried to follow the code structure already present." + }, + { + "prediction": "I think this should be `String.format(\"Could not transfer all bytes of \" + from.toPath());`", + "reference": "seems reasonable to also want to include the 'to' location?" + }, + { + "prediction": "I don't think this is needed anymore.", + "reference": "Please leave 1 space char between commas here and other places in this PR." + }, + { + "prediction": "I think this should be `if (0 == pthread_attr_init(&attr) && 0 == pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED))`", + "reference": "hm is this really &&? Not ||? Was it initially correct if any of these things are not set that it needs to recreated?" + }, + { + "prediction": "I think it would be better to use `StringUtils.validateCollections(cli.getOptionValue(\"collections\")).split(\",\")` instead of `new String[] {}`", + "reference": "Please don't use C-style array declarations. IMO our pre-commit ought to be enhanced to not allow this" + }, + { + "prediction": "I think this should be `if (p->data.bo.size != p1->data.bo.size) {`", + "reference": "@rhc54 This doesn't look like a comprehensive comparison. For `PMIX_STRING` we seem to actually compare the content of the data while here we only compare meta-information which doesn't ensure that values are the same." + }, + { + "prediction": "I think this should be `const bool confirmed_frontiers = request.get(\"confirmed_frontiers\", false);`", + "reference": "I think `bypass_frontier_confirmation` conveys the intention better (default false as well)" + }, + { + "prediction": "Why is this needed?", + "reference": "This looks like it goes beyond the scope of removing `BlockHeight()`, in the future please do this in a separate commit at a minimum -- separate PR is fine too." + }, + { + "prediction": "Why is this needed?", + "reference": "You'll also need to adjust `FakeWebTabAudio` in `tests/helpers/stubs.py`." + }, + { + "prediction": "Why remove this?", + "reference": "@csrwng what should we do here? This one is from origin." + }, + { + "prediction": "I think this should be `#include `", + "reference": "Follow alphabetical order." + }, + { + "prediction": "I think this interface should be `ICommonTracer` instead of `ICommonTracer`", + "reference": "As far as I can tell, these always get and set the context as an `IReadOnlyDictionary`. Can we use that here instead of `object` and get rid of the `as IReadOnlyDictionary`?" + }, + { + "prediction": "Why is this change needed?", + "reference": "As you only have `{}` as the format string (without anything else in it), this is the same as doing `self._doc.setHtml(html.escape(self._opt.text))`" + }, + { + "prediction": "I think this should be `azkaban.security.credential.name`", + "reference": "Where would this be configured? In azkaban.properties?" + }, + { + "prediction": "I think we should check for atomic operators here, since we don't need to check for atomic operators.", + "reference": "1. Use `const` instead of `var` here. 2. Move the check to after the `if (update == null || typeof update !== 'object')`." + }, + { + "prediction": "I think this should be `#define H2O_ASYNC_NOTIFY_USING_EVENTFD`", + "reference": "Let's assume that on Linux `eventfd` is always available as a wrapper of the eventfd2 system call. It is supported since linux 2.6.27 + glibc 2.9, as well as from the ancient versions of bionic. In other words, it would be fair to argue that the pair would be available on practically all platforms that provide `pipe2`. Therefore switching from using `pipe2` to `eventfd` on linux unconditionally would not cause issues on our users." + }, + { + "prediction": "I think this should be `final`", + "reference": "This field could be `final`." + }, + { + "prediction": "I think this should be `@ssh.close` instead of `@ssh.shutdown!`", + "reference": "would be good to have a test for the case when `shutdown!` raises" + }, + { + "prediction": "I think this should be `t == ComTdbHbaseAccess::INSERT_` instead of `t == ComTdbHbaseAccess::INSERT_`", + "reference": "Does upsert pass this check also?" + }, + { + "prediction": "I think this should be `logger.Info(\"running the patch command successful\")` or `logger.Info(\"running the patch command successful\")`", + "reference": "Apologies reviewers, I did end up pushing another change. I was starting to request SRE-P help to get the apiserver configs from some clusters before and after when I realized I can just log the stdout from the patch command to see if anything was changed or not. Much simpler to verify if my work did or did not make changes to the config during the transition. Also got the spacing issue you mentioned @abhinavdahiya Thanks all." + }, + { + "prediction": "I think this should be `_kbfs_config_temp`.", + "reference": "I'm not sure this naming is a good idea; that's the format for macOS xattr metadata files on unsupported filesystems." + }, + { + "prediction": "Align the elements of a hash literal if they span more than one line.", + "reference": "Metrics/LineLength: Line is too long. [85/80]" + }, + { + "prediction": "I don't think this is needed.", + "reference": "Please remove these imports. The project's style is to use `Assert.assertEquals` and not import static methods in general. This also caused a lot of unnecessary changes." + }, + { + "prediction": "(style) line over 80 characters", + "reference": "thanks. Note that returning at this point might leak memory from the allocations above, so the PR will need to take care of that too." + }, + { + "prediction": "I think this should be `if config.val.content.desktop_fullscreen or self.config_state_before_fullscreen:`", + "reference": "If you really want to rename this, you'll also need to adjust the name in `__init__` and in other places it's used (`browser/commands.py`)." + }, + { + "prediction": "Is there a reason to do this? I think it would be better to add a `@OneToOne` to the `MapLayerMetadata` class and add a `@OneToOne` to the `MapLayerMetadata` class.", + "reference": "As discussed at standup, I gave up on this. Calling `DeleteMapLayerMetadataCommand` felt cleaner anyway because there might be other cleanup that needs to happen. @scolapasta and @matthew-a-dunlap plan to discuss this." + }, + { + "prediction": "I think we should use `fmt.Sprintf(\"EXP:%+v\\n\", objExp.GetObject())` instead of `fmt.Printf(\"ACT:%+v\\n\", objAct.GetObject())`", + "reference": "Do we need these changes? If so, can you tidy up the messages? Looks like it might have been your testing/debugging changes " + }, + { + "prediction": "I think this should be `SecretTargetLogDriver` instead of `SecretTargetLogDriver`", + "reference": "where is the default being set?" + }, + { + "prediction": "I think this should be `vStringNCopyS(name, line + matches[1].start, matches[2].length);`", + "reference": "these changes should likely be in the next commit instead" + }, + { + "prediction": "I think this should be `Foobar` instead of `Foo string`", + "reference": "Since you have defined this struct, I would suggest to replace all exist literal structs by this." + }, + { + "prediction": "I think this should be `mConfirmMenuDiscard` and not `mConfirmDeleteStarred`", + "reference": "The field name doesn't really capture what this option does. I think `mConfirmDiscardMessage` would be a better choice." + }, + { + "prediction": "Shouldn't this be `is_string($media->getBinaryContent())`?", + "reference": "what if `$media->getBinaryContent() == Symfony\\Component\\HttpFoundation\\File\\File` does `is_string()` return `true`? ping @greg0ire" + }, + { + "prediction": "Why is this change needed?", + "reference": "maybe rather than `bool` make this field a `StructDef *` ?" + }, + { + "prediction": "I think we should use `waitGroup.Wait(10*time.Millisecond)` instead of `waitGroup.Wait(10*time.Millisecond)` and use `waitGroup.Wait(10*time.Millisecond)` instead of `waitGroup.Wait(10*time.Millisecond)`", + "reference": "Shall we maybe put this in a `const` like `backgroundTaskTimeout`?" + }, + { + "prediction": "I don't think we need this catch.", + "reference": "CI is complaining about this." + }, + { + "prediction": "I think this method should be called `calculateRemovalTime` instead of `calculateRemovalTime`.", + "reference": "Let's only change a file if it is really necessary. Such a change does not bring much value and makes it harder to find the original commit in which the method was introduced." + }, + { + "prediction": "Shouldn't this be `array_key_exists('lazy', $attributes) ? array_key_exists('lazy', $attributes['lazy']) : array_key_exists('class', $attributes) ? array_key_exists('lazy') : array_key_exists('lazy') ? array_key_exists('lazy') : array_key_exists('lazy') ? array_key_exists('lazy') : array_key_exists('lazy') ?", + "reference": "I would prefer to set up space between classes in format pattern, `%s %s` and then use `trim()` to remove unnecessary whitespaces. This will also solve stripping whitespaces from the beginning and end of a string `$attributes['class']`" + }, + { + "prediction": "Shouldn't this be `LOG(ERROR) << \"unknown setence type[\" << sentence_->getType() <<\"]\"`?", + "reference": "when Op is illegal should return here?" + }, + { + "prediction": "Why remove this?", + "reference": "don't we need to remove the project version from installedVersions?" + }, + { + "prediction": "I think this should be `options[:page_ranges] = Array(options[:page_ranges])` instead of `options[:page_ranges] = Array(options[:page_ranges])`", + "reference": "the bridge here isn't defined as an accessor / reader to try mask it better. So you need to directly call the iVar `@bridge` here." + }, + { + "prediction": "I think this should be `err = s.IPSetLocker.Unlock(ipset.Name)` instead of `err = s.IPSetLocker.Unlock(ipset.Name)`", + "reference": "This is intended. Pls revert this." + }, + { + "prediction": "Why is this change needed?", + "reference": "Something wrong with cast to `(Comparator<> & Serializable)`, need to be investigated" + }, + { + "prediction": "I think we should remove the `filter` function from the `packages` array.", + "reference": "I think we need this. Not sure, I'll test." + }, + { + "prediction": "Why is this removed?", + "reference": "I'm going to need to check if google compute requires these steps in this order, or if you can disable iptables after the fact." + }, + { + "prediction": "I think this should be `go:build !no_stage`", + "reference": "Did go change their tags with the new version?" + }, + { + "prediction": "Why is this change needed?", + "reference": "I don't recall what we decided here in terms of which source would get priority. As written, the static configuration will overwrite datastore results." + }, + { + "prediction": "Why is this change needed?", + "reference": "I think it should still panic for when there are no outputs; might be nice to special-case that though so the message is more explicit." + }, + { + "prediction": "I think this should be `MetricsConfig.DEFAULT_METRICS_CONFIG` instead of `MetricsConfig.DEFAULT_METRICS_CONFIG`", + "reference": "*NULL_DEREFERENCE:* object `null` is dereferenced by call to `meterSupplier(...)` at line 122." + }, + { + "prediction": "Why is this change needed?", + "reference": "switch over to .mode" + }, + { + "prediction": "Why change this?", + "reference": "I guess your IDE did some auto-fixing here " + }, + { + "prediction": "I think this should be `PhraseQuery` instead of `PhraseQuery`.", + "reference": "This is an unused import failing recommit still." + }, + { + "prediction": "Metrics/LineLength: Line is too long. [98/80]", + "reference": "I'm concerned that we're conflating multiple things here. There are 2 things that Beaker should really care about: - Network transport - i.e. `ssh` vs `winrm` - Interpreter - i.e. `bash`, `cmd`, `powershell`, etc The problem is that @cowofevil is running Bitvise SSH, and he assumed we should be setting `is_cygwin: false` in node definitions. But that doesn't really accurately convey what we care about, and since Beaker doesn't appear to track network transport apart from interpreter, we end up in a strange state. `is_cygwin: false` appears to end up setting `is_powershell?` to `true`, which IMHO is not accurate or appropriate. Bitvise templates use `ssh` (like Cygwin), but the interpreter used is `cmd`, not `powershell`." + }, + { + "prediction": "I think this should be `role=\"dialog\"` instead of `role=\"dialog\"`", + "reference": "I think this is ok for now. This ties into the larger issue of the site not having a consistent method for relaying form input errors. Please make sure the focus gets set on the close button when the dialog opens." + }, + { + "prediction": "I don't think this is necessary.", + "reference": "Should these link be removed?" + }, + { + "prediction": "`add_undo` should be `True` instead of `False`", + "reference": "Please make this a keyword-only argument by adding a `*` argument before `add_undo`." + }, + { + "prediction": "I think this should be `marshalers.PushBackNamed({{ $.API.ProtocolPackage }}.BuildHandler)`", + "reference": "didn't quite follow what this code block is doing." + }, + { + "prediction": "I think this should be `if (layoutManager.tv) { return void showOsd(); }`", + "reference": "this doesn't sound pretty... I would rather we have a proper navigation for all modes - AFAIK TV remote navigation is very similar to normal keyboard, but maybe it just uses another key codes - those should be extracted in a single file and defined there depending on context then" + }, + { + "prediction": "I think this should be `if (newProps.value !== oldProps.value) {`", + "reference": "After diffing the children we check whether the value got out of sync, if it did we update it. We also update the `_prevValue` to prepare for the next event hitting our controlled component" + }, + { + "prediction": "I think this should be `glue-code`.", + "reference": "It provides a type called Node which is a fully functional bee client. This package is where the dependencies are injected. It is not just a glue-code, it is concept of node." + }, + { + "prediction": "I think this should be `download-directory` instead of `download-directory`", + "reference": "I think this will change `''` to `'%'` unconditionally, i.e. there'll be no way to set `''` anymore. This should really only be used for values which make no sense anymore." + }, + { + "prediction": "nit: I think we should add a `@return` to the `@return` method.", + "reference": "Nit: this table's row key map -> this table's row keys map" + }, + { + "prediction": "I think this should be `PJ_LOG_NONE` instead of `PJ_LOG_ERROR`.", + "reference": "this change should be reverted" + }, + { + "prediction": "I think this should be `qutebrowser.appdata.xml` instead of `qutebrowser.appdata.xml`", + "reference": "I'm a bit confused about the `os.path.dirname(basedir)` here - is this just to get to the parent directory? Either way, I think I'd prefer just having this in `update_version.py` as it's not needed in qutebrowser itself." + }, + { + "prediction": "Why change this?", + "reference": "Revert this change and see below why..." + }, + { + "prediction": "I think this should be `lvis_v1_instance.py`", + "reference": "Should not switch to `lvis_v1_instance` here because that base config uses ClassBalancedDataset to oversample the data." + }, + { + "prediction": "Why is this change needed?", + "reference": "This is an informational message that allows someone to read the console output and understand how the grid node is configured. Please leave." + }, + { + "prediction": "Why is this needed?", + "reference": "This doesn't make sense to me. What does RaiseSingleton mean? To me it sounds like a single object is being.. raised? Not sure." + }, + { + "prediction": "This should be `AllJobExecutorTests` instead of `AllJobExecutorTests`.", + "reference": "What's the benefit of having jobExecutorTests as a member variable? What do you think about making the method static? Afterall, it is a stateless method." + }, + { + "prediction": "I don't think we need to do this.", + "reference": "This looks like it's only downloading things, not really checking their true validity. Especially for the MD object. Should we call `BareRootMetadata.IsValidAndSigned()` in `mdGet`?" + }, + { + "prediction": "I think this should be `m_thread_cv_buffer.resize(omp_get_max_threads());`", + "reference": "Nikoli, I believe that this addresses your concern. One question for you or Jae-Seung is if any allocation from the clone is properly cleaned up when the vector is destroyed. I believe that it should." + }, + { + "prediction": "I think this should be `AWSEcsApp` instead of `AWSEcsApp`.", + "reference": "should be `ECSApp` " + }, + { + "prediction": "I think this should be `self.size.copy()` instead of `self.location.copy()`", + "reference": "flake8 is going to fail on this having 2 lines" + }, + { + "prediction": "Why is this removed?", + "reference": "should we make a dir named controllers/scheduler/podchaos" + }, + { + "prediction": "I think this should be `const KeyNode = \"kubernetes.io/hostname\", KeyNodeHostname = \"kubernetes.io/hostname\", KeyNode = \"kubernetes.io/hostname\", KeyNodeHostname = \"kubernetes.io/hostname\", KeyNodeHostname = \"kubernetes.io/hostname\", KeyNode = \"kubernetes.io/hostname\", KeyNodeHostname = \"kubernetes.io/hostname\", KeyNodeHostname = \"kubernetes.io/hostname\", KeyNodeHostname = \"kubernetes.io/hostname\", KeyNode = \"kubernetes.io/hostname\", KeyNodeHostname = \"kubernetes.io/hostname\", KeyNodeHostname = \"kubernetes.io/hostname\", KeyNodeHostname = \"kubernetes.io/hostname\", KeyNodeHostname = \"kubernetes.io/hostname\", KeyNodeHostname = \"kubernetes.io/hostname\", KeyNodeHostname = \"kubernetes.io/hostname\", KeyNodeHostname = \"kubernetes.io/hostname\", KeyNodeHostname = \"kubernetes.io/hostname\", KeyNodeHostname = \"kubernetes.io/hostname\", KeyNodeHostname = \"kubernetes.io/hostname\"", + "reference": "there seems to be one KeyNode in kubernetes.go of PV.. would it make sense to use it?" + }, + { + "prediction": "Why is this needed?", + "reference": "Im gonna be a little annoying here but did you configure your linter correctly? This empty line should not be here. Maybe go to settings and check if `goimports` is enabled?" + }, + { + "prediction": "I think this should be `PRIVATECHATOUT` instead of `MODPRIVATECHAT`", + "reference": "Don't think this belongs in this pr" + }, + { + "prediction": "I think this should be `outbounds := make(Outbounds, len(d.outbounds))`", + "reference": "We can assert on the existence of Outbounds through ClientConfig calls right? Since this is only for tests, do we need this function?" + }, + { + "prediction": "I think this should be `TaskCompletionSource CloseCompletionSource = TaskCompletionSource.Empty;`", + "reference": "@martijn00 so this PR introduces a new ViewModel lifecyle method? It isn't in the PR description/any new docs " + }, + { + "prediction": "I think this should be `tuple(img.size()[-2:])` instead of `tuple(img.size()[-2:])`", + "reference": "Are these modification duplicate? Or should we move it into base detector." + }, + { + "prediction": "Why is this change needed?", + "reference": "Since this is private and single use it should be un-wrapped inside of the two-arg dagSeed method." + }, + { + "prediction": "Why not use `\\TYPO3\\CMS\\Core\\Utility\\ArrayUtility::mergeRecursiveWithOverrule`?", + "reference": "why the order change? Also for the next chunk. (I understand the result will be the same though)" + }, + { + "prediction": "I think this should be `[string]string`", + "reference": "I wonder if this should just be a single `string`? We don't have any cases where we return different types and it would make the parser simpler to just read a single identifier." + }, + { + "prediction": "I think this should be `inputFiles.get(task.file().path().toString());` instead of `inputFiles.get(task.file().path().toString());`", + "reference": "I don't think this needs to change. Can you go back to the previous implementation?" + }, + { + "prediction": "Why is this needed? I think it's better to use `molecule.core` instead of `molecule.core`.", + "reference": "Bump it 2 lines higher, 'c' > 'u'." + }, + { + "prediction": "I think this should be `parser/AstTypes.h` and not `parser/AstTypes.h`.", + "reference": "Please do not add author here" + }, + { + "prediction": "I think this should be `github.com/iotexproject/iotex-core/action`", + "reference": "Similarly, we should be able to persist action uniformly" + }, + { + "prediction": "Line is too long. [89/80]", + "reference": "I think i'd prefer this override to be in the test helper instead, if that's possible?" + }, + { + "prediction": "I think this should be `os.MkdirAll(fullPathDir, 0755)` instead of `os.MkdirAll(fullPathDir, 0755)`", + "reference": "This would be better with context added via wrapping or fmt.errorf()" + }, + { + "prediction": "I think this should be `package assert`.", + "reference": "What's the purpose of this file?" + }, + { + "prediction": "Why is this change needed?", + "reference": "@bhariharan Why was passcode length requirement allowed to be lowered?" + }, + { + "prediction": "Why is this removed?", + "reference": "This file needs a license header, too. Sorry I didn't catch that earlier." + }, + { + "prediction": "Why is this change needed?", + "reference": "probably don't need `[:]` why not reference into `github.com/algorand/go-algorand/daemon/algod/api/server/lib` here and skip bouncing off daemon/algod/server.go ?" + }, + { + "prediction": "why not use `dal::detail::homogen_table_builder` here?", + "reference": "Why reference is converted to table?" + }, + { + "prediction": "I think it would be better to return a `*datastore.ListRegistrationEntriesResponse` instead of a `*datastore.ListRegistrationEntriesResponse`", + "reference": "should we implement pagination in the fake datastore so the server startup code that paginates entries for trust domain validation can be tested?" + }, + { + "prediction": "I think this should be `if f.Vectorized != nil { f = f.Vectorized }`", + "reference": "What mechanism will be exposed so the caller knows they're using the vectorized version?" + }, + { + "prediction": "I think this should be `render_new` instead of `render_new`", + "reference": "Can we remove respond_to block its not required here" + }, + { + "prediction": "why do you need this?", + "reference": "Do not do that even in example, we demonstrate bad practice" + }, + { + "prediction": "I think this should be `if self['is_cygwin'] == true` instead of `if self['is_cygwin'] == true`", + "reference": "Hm, taking a second look over this, this is why we have the object inheritance structure that we do. This could be divided up by having a custom determine_if_x86_64 in the pswindows/exec hosts and then a default method in hosts.rb. That way all the custom ps windows work is in a single location." + }, + { + "prediction": "Why is this change needed?", + "reference": "We have to `.Complete` now because of empty/null string test cases." + }, + { + "prediction": "Line is too long. [92/80]", + "reference": "Is there still a way to specify no recursion?" + }, + { + "prediction": "I think this should be `HumanReadableName` or `URISafeName`.", + "reference": "How is this name being URI safe and being used programmatically related?" + }, + { + "prediction": "why not use `smart_count` here?", + "reference": "I think we have to keep this as a fallback for now, else it's a small breaking change :(" + }, + { + "prediction": "Why is this change needed?", + "reference": "nit: shouldn't be part of this PR." + }, + { + "prediction": "Why is this change needed?", + "reference": "this change looks wrong to me. I think the test is trying to signal that something went wrong by throwing the `Error` here, otherwise the `catch` below will swallow it." + }, + { + "prediction": "I think this should be `if (logEvent.TryGetCachedLayoutValue(_layout, out cachedResult)) return cachedResult;`", + "reference": "I'm doubting if this should be `if (_layout.IsThreadAgnostic)`, as ThreadAgnostic stuff could be calculated on every thread. (and thus could be lazy). non-ThreadAgnostic should be calculated on the main thread." + }, + { + "prediction": "I think this should be `LoggerFactory.getLogger(LeftListWidgetChooser.class);`", + "reference": "Please use only `Logger` instead of `org.slf4j.Logger`" + }, + { + "prediction": "I think this should be `if (!node.flags.disable_block_processor_republishing) {`", + "reference": "Should this be \"no limiter drop\", since this isn't an absolutely essential activity for the stability of the network?" + }, + { + "prediction": "I think this should be `console.log(\"Success\", data);` instead of `console.log(\"Success\", data);`", + "reference": "I updated many of the success messages, because most of these operations don't return data if they succeed. This meant many of the operations would print: `Success null` if the script ran successfully." + }, + { + "prediction": "This should be `subprocess.CalledProcessError`", + "reference": "Could you simply add it to the previous clause ?" + }, + { + "prediction": "I think this should be `sensitivity: 'base'`", + "reference": "@joshyrobot, I think you can just use localeCompare with only the first argument and leave the other arguments out (here and all the other lines changed). It seems to do the right thing, and then we don't have to worry about these extra options." + }, + { + "prediction": "I think this should be `if (slaOptions != null && slaOptions.size() > 0) { exflow.setSlaOptions(slaOptions); } else { exflow.setSlaOptions(slaOptions); }`", + "reference": "@chengren311 : where does this logic move to?" + }, + { + "prediction": "I think this should be `if !s.scope.AllowAdditionalRoles() { return ErrCannotUseAdditionalRoles()`", + "reference": "Can we have a `nil` exception check at `s.scope.ManagedMachinePool`" + }, + { + "prediction": "Why did you remove this?", + "reference": "Rather than deleting this, should you just reformat it so it's the `*` settings, so if nothing is configured in facets.ini, the existing default behavior continues to work?" + }, + { + "prediction": "Why not use `str_replace(\"_\", \" \", $property);`?", + "reference": "wrap, single line" + }, + { + "prediction": "I think this should be `String.valueOf(returnType).toString();`", + "reference": "always use brackets for if statements" + }, + { + "prediction": "I think this should be `FrameworkDescription.Instance` instead of `FrameworkDescription.Instance`", + "reference": "`NUnitIntegration` doesn't need to cache this anymore." + }, + { + "prediction": "I don't think we need to change this to `lower(element_at(parts, -1)) = 'gz'` because it's the same as `lower(element_at(parts, -1)) = 'gz'`", + "reference": "Why did you change it to `>=` here?" + }, + { + "prediction": "I think this should be `tableName.replaceFirst(\"(hadoop\\\\.)|(hive\\\\.)\", \"\");`", + "reference": "Looks like this needs to be updated. There is no need to remove `hadoop.` if Hadoop tables don't use this code path." + }, + { + "prediction": "I think this should be `require 'digest'`", + "reference": "This require isn't need anymore, right?" + }, + { + "prediction": "I think this should be `payments/crypto`", + "reference": "a bit weird to see payments crypto package inside connection manager. There probably will be services not having any relation with payments that will use connection manager. Thats why probably ping-ping by itself can be useful without any relation to payments.." + }, + { + "prediction": "I think we should add the type attribute to the XML record, not the type of the record.", + "reference": "I like the overall idea here, but I wonder if it would be more clear to define the property in the trait, and then set it in the constructors of the classes using the trait. Alternatively, at a bare minimum, it may be a good idea to add `?? 'Bibliographic'` here, to account for the possibility of the trait being used in a class that does not define the property at all." + }, + { + "prediction": "I don't think we need this constant.", + "reference": "I would prefer to not have a magic number, but construct this value out of other constants we already have." + }, + { + "prediction": "I think this should be `if 'basicauth' in policies:`", + "reference": "The limitation is if somebody configure another policy with the same name, but it is an edge case we can ignore I guess." + }, + { + "prediction": "I think this should be `awskeyvault` instead of `azurekeyvault`", + "reference": "? The package is named `hashivault`." + }, + { + "prediction": "I don't think this is needed.", + "reference": "I don't think this should enable xwayland, because it's convenient to toggle xwayland just by setting `xwayland` to `false`" + }, + { + "prediction": "Why is this removed?", + "reference": "Remove this line by accident?" + }, + { + "prediction": "I don't think this is needed anymore.", + "reference": "Calling `.stream()` on a `DomainObjectCollection` is pretty much always a bug, as it doesn't include objects added later (and encourages people to use afterEvaluate). I wonder if we should make this an error prone check?" + }, + { + "prediction": "I think this should be `if err != nil && err != util.CheckErr(err) { return err }`", + "reference": "Thanks for paying attention to other places this might happen. This one is particularly important; I probably never should have gotten in the habit of CheckErr(), since it does a log.Panic() explicitly, which looks like something else until you look closely. It's supposed to be used places where \"can't happen\" but Things Can Happen." + }, + { + "prediction": "I think this should be `MatchIPDscp` instead of `MatchIPDscp`", + "reference": "What is the different between nw_tos and ip_dscp? Only high 6 bits vs low 6 bits and supported version?" + }, + { + "prediction": "I think this should be `cxSmiles` or `cxSmiles`", + "reference": "I'm assuming that asSmarts & cxSmiles == asSmarts" + }, + { + "prediction": "I think this should be `self.param = type(self.__class__, self=self)`", + "reference": "Seems like an oversight but I don't think the super would do anything else in this case unless I'm mistaken." + }, + { + "prediction": "I think this should be `readonly SampleServer server = new SampleServer();` and `readonly SampleClient client = new SampleClient();`", + "reference": "Curious, do we consider this as pedantic for example code?" + }, + { + "prediction": "Why not use `strtolower($this->entity['name'])` here?", + "reference": "Should we convert the entity name to snake case using `Doctrine\\Common\\Inflector\\Inflector::tableize` or similar ? Should a `snaked_name` or whatever be part of the entity metadata in order to use it for form names, ids, & other html attributes ?" + }, + { + "prediction": "I think this should be `publicIP` or `outboundIP`", + "reference": "Should be `client.outboundIp`" + }, + { + "prediction": "I think we should be able to remove the `using System.IO;` from the `using System.Threading.Tasks;` block.", + "reference": "Must these `using` statements not go inside the `namespace` block?" + }, + { + "prediction": "Why is this changed?", + "reference": "Why? I thought the previous way was idiomatic. (Same with the `MetadataVer` stuff above.)" + }, + { + "prediction": "Why is this needed?", + "reference": "shouldn't we `reject` here instead?" + }, + { + "prediction": "I don't think we need to do this, but I think it would be better to add a `if err != nil {` to the error message.", + "reference": "check err or use gasPriceUnitIOTX, _ := if we are sure action.Core.GasPrice is correct" + }, + { + "prediction": "Why is this change needed?", + "reference": "Just curious, was wait not used at all before?" + }, + { + "prediction": "I think this should be `//` instead of `//`", + "reference": "nit: can we remove this?" + }, + { + "prediction": "Why is this synchronized?", + "reference": "is it not a problem when one synchronized function is called by other?" + }, + { + "prediction": "I don't think we need to add `:hide_experience` here.", + "reference": "We (even as admins) shouldn't override the User Preference settings like `email_master`, `email_posts`, `email_kudos`, `email_new_followers`. These all would be set by the user of their choice. Please do remove these attributes from editing//updating. Thanks!" + }, + { + "prediction": "Line is too long. [98/80]", + "reference": "\"Este :attribute j est anexado.\" sounds better." + }, + { + "prediction": "I think we should use `testmod` instead of `testmod`.", + "reference": "This line should be repeated for every module that needs testing. One cannot rely on nosetest to automatically discover all the modules. On the bright side, there is no need to change any of the other files." + }, + { + "prediction": "Why remove this?", + "reference": "This error was unused" + }, + { + "prediction": "I think this should be `CloseShardRequest` or `AddTasksRequest`", + "reference": "Personally I wish we didn't have a proto for every single little thing we do. RequestShardAction with an enum for the action type would be a lot cleaner imo, but I'm pretty sure that ship has sailed :) Just kvetching." + }, + { + "prediction": "I think this should be `completed_trails/trail` instead of `incomplete_trails/trail`", + "reference": "Does this make more sense as `trails/_trail` now?" + }, + { + "prediction": "I think this should be `err := agent.ec2MetadataClient.GetOutpostARN()`", + "reference": "synced offline. let's move this to `agent_unix.go` to make the IMDS call, since this is not supported in Windows." + }, + { + "prediction": "I think this should be `Python::Install.new` and `Python::Prep.new`", + "reference": "Too much indentation here. Should match the lines above, which have four spaces." + }, + { + "prediction": "Why remove this?", + "reference": "Same here we still need this test to make sure the fallback works." + }, + { + "prediction": "I think this should be `IMvxOverridePresentationAttribute` instead of `IMvxBasePresentationAttribute`", + "reference": "I'm wondering if we can actually base this on a `IMvxPresentationAttribute` instead of the base one." + }, + { + "prediction": "Why is this change needed?", + "reference": "could we switch to `undefined` here?" + }, + { + "prediction": "I think this should be `cleanupSyncsSoupIfNeeded` instead of `setupSyncsSoupIfNeeded`", + "reference": "The cleanup call" + }, + { + "prediction": "I don't think we need to do this, but I think it would be better to use `item.AlbumArtists` instead of `item.AlbumArtists`.", + "reference": "I think \"View artist\" is a bit more standard and expected. Or even \"Go to artist\" to take the Spotify terminology as-is." + }, + { + "prediction": "I think this should be `if defined?(Puppet::Pops::Types::PSensitiveType::Sensitive)` instead of `if defined?(Puppet::Pops::Types::PSensitiveType::Sensitive)`", + "reference": "It might make sense to refactor this later so that we use a Bolt-native type to hide sensitive values." + }, + { + "prediction": "I think this should be `unittest.main()` instead of `unittest.main()`.", + "reference": "We were trying to move away from this to force people to always run tests under py.test." + }, + { + "prediction": "I think this should be `body.append(self._get_selenium_options())`.", + "reference": "1 - create browser specific options class: - chromeoptions - firefoxoptions - argsoptions" + }, + { + "prediction": "I think we should use `response_content_str.startswith(' `mlvl_confidences`>" + }, + { + "prediction": "I think this should be `kube-ipvs0` instead of `kube-ipvs0`", + "reference": "I feel slightly that InterfaceExclude is not a clear name - bearing in mind that our config names are, to some extent, an external API. From an external point of view, a clearer name might be IPVSInterfaces. Then it would obviously make sense for the value to be something like 'kube-ipvs0', and it would be a matter of Felix's internal implementation that we choose to exclude those interfaces from our monitoring. Alternatively, if we want to keep this at a level that is more general than just IPVS, perhaps 'UnmonitoredInterfaces'? WDYT?" + }, + { + "prediction": "Why is this change needed?", + "reference": "This should be `re.search` with a `^` anchor added to the regex, as what we want here is really any path starting with something like `E:`." + }, + { + "prediction": "I think this should be `KindVirtualService` or `KindGateway`?", + "reference": "Since `IsKubernetesBuiltInResource` at L69 returns false due to lack `networking.istio.io/v1alpha3` in `builtInApiVersions` within `pkg/app/piped/cloudprovider/kubernetes/resourcekey.go`, it will never reach this point." + }, + { + "prediction": "Why is this change needed?", + "reference": "Does codecov not run this test? Not sure how else it would not be covered." + }, + { + "prediction": "I think this should be `JSON_DATA` instead of `JSON_DATA`.", + "reference": "can we add some sample of JSON_DATA format in the usage?" + }, + { + "prediction": "Why is this needed?", + "reference": "Using `Tracer.Instance` in here is problematic for testing It will likely cause some other tests to break I think - that's why we started passing in `IScopeManager` EDIT: I see you used `[TracerRestore]` - maybe that'll be enough!" + }, + { + "prediction": "Shouldn't this be \"project_id_variable_name\"?", + "reference": "make all of these `static final` fields UPPER_SNAKE - they are constants." + }, + { + "prediction": "I don't think we need to use `itembonuses.MitigateDotRune[SBIndex::MITIGATION_RUNE_PERCENT]` here, but I think it would be better to use `itembonuses.MitigateDotRune[SBIndex::MITIGATION_RUNE_PERCENT]` instead of `aabonuses.MitigateDotRune[SBIndex::MITIGATION_RUNE_PERCENT]`.", + "reference": "No possible chance for weird overflows here, right?" + }, + { + "prediction": "I think this should be a constant.", + "reference": "Or we could use a Float object to more clearly show as user-settable via non-null?" + }, + { + "prediction": "I think this should be `finalizedHeader` instead of `finalizedHeader`", + "reference": "finalizedHeader should be saved in FinalizationManager when we have FinalizationBlockHash != Keccak.Zero" + }, + { + "prediction": "I think this should be `disk-importer-scratch-%s-%s`", + "reference": "Not using ExactName: true would remove the need for manually adding workflow ID as it would be added automatically by Daisy. E.g. 'disk-importer-2-import-ovf-7mn7h' was created from diskImporterDiskName above even though only 'disk-importer-2' was specified. ExactName: true should be used for resources that shouldn't include any temp prefix/suffix, such as disks that will be permanently attached to a created instance. Scratch disk is not one of them." + }, + { + "prediction": "I think this should be `scol_for(sdf, col)` instead of `scol_for(sdf, col)`", + "reference": "If we support multi-index column later, we need to rename to fit the pandas' requirement." + }, + { + "prediction": "I think this should be `JSONValueMap[string]interface{}`", + "reference": "I'm not sure this is really needed. JSONValue type can be used the same as a map as far as operators go, including range. I'd leave this out for now unless there is a strong reason to keep it." + }, + { + "prediction": "I think this should be `for (Item* item: itemlist) { ... }`", + "reference": "sorry for nitpicking but I would love a new line under this line" + }, + { + "prediction": "Why is this change needed?", + "reference": "ChannelImplementation field naming is not clear, is it some kind of standard? Maybe it can be named ChannelID?" + }, + { + "prediction": "I think this should be `expireSnapshots(String metadataLocation)` and not `removeFiles(String metadataLocation)`", + "reference": "Looks like there is a typo: `expireSnapshots` -> `removeFiles` or whatever name we go with." + }, + { + "prediction": "Why is this change needed?", + "reference": "Thanks for looking into this. I think it looks a bit strange to have this check inside the for loop. Wouldn't it also work to initialize `idxCurrentSort` with 0 instead?" + }, + { + "prediction": "I think this should be `OMNIPOD_POD_ALERTS_UPDATED`", + "reference": "Just a small ordering thing: Could you please bring `IMPORTANCE_HIGH` to the bottom and maybe even have one line between it and the Notification IDs?" + }, + { + "prediction": "I think this is the only place where the `KekulizeException` is used.", + "reference": "Should this be boost logged?" + }, + { + "prediction": "I think this should be `session_object` or `session_object`.", + "reference": "What is the reason for doing expunge here? This method is purely for converting the timestamp." + }, + { + "prediction": "I think this should be `validAvroName(origFieldName)` instead of `sanitize(origFieldName)`", + "reference": "This calls sanitize twice if the name isn't valid." + }, + { + "prediction": "Use the new Ruby 1.9 hash syntax.
Prefer single-quoted strings when you don't need string interpolation or special symbols.
Prefer single-quoted strings when you don't need string interpolation or special symbols.
Prefer single-quoted strings when you don't need string interpolation or special symbols.
Prefer single-quoted strings when you don't need string interpolation or special symbols.
Prefer single-quoted strings when you don't need string interpolation or special symbols.", + "reference": "Is there an equivalent that'd allow zero or one?" + }, + { + "prediction": "I think this should be `if rwExec.isTaskObjectNameRepeat() {`", + "reference": "Is it possible to update/re-evaluate entire metatask object for every repeat? If we decide/need to use a repeatWith resources in let us say labelSelector(bad example) then we would have to add another logic to update those properties." + }, + { + "prediction": "Why is this change needed?", + "reference": "unnecessary conversion (from `unconvert`)" + }, + { + "prediction": "Why is this removed?", + "reference": "typo in commit message `openening`" + }, + { + "prediction": "I don't think this is needed.", + "reference": "User-code doesn't see the internal ADIOS headers anymore. This whole include block should just be `#include `" + }, + { + "prediction": "Why is this change needed?", + "reference": "nit: I guess we can omit this (unless you had a reason to specify it)" + }, + { + "prediction": "I think this should be `!c.leaf.remote.Hub`", + "reference": "Why is Hub public?" + }, + { + "prediction": "Why is this removed?", + "reference": "why is this deleted?" + }, + { + "prediction": "I think this should be `

Hey, before you start this...Have you done the Intro to Rails tutorial?

", + "reference": "Maybe move that into a partial" + }, + { + "prediction": "Why is this change needed?", + "reference": "Error return value of `dao.Stop` is not checked (from `errcheck`)" + }, + { + "prediction": "I don't think this is a good idea, but I'm not sure if this is the right thing to do here.", + "reference": "util.Warning()? Easier to say." + }, + { + "prediction": "I think this should be `logEvery.C` instead of `logEvery.C`.", + "reference": "this default is kinda superfluous (although i see it was already there before PR )" + }, + { + "prediction": "Why is this change needed?", + "reference": "How is this related?" + }, + { + "prediction": "Layout/SpaceInsideHashLiteralBraces: Space inside { missing.
Layout/SpaceInsideHashLiteralBraces: Space inside } missing.
Layout/SpaceInsideHashLiteralBraces: Space inside } missing.
Layout/SpaceInsideHashLiteralBraces: Space inside } missing.
Layout/SpaceInsideHashLiteralBraces: Space inside } missing.
Layout/SpaceInsideHashLiteralBraces: Space inside } missing.", + "reference": "I'm breaking one of the rules here, it feels like the right thing to do. Open to alternative suggestions." + }, + { + "prediction": "I think this should be `%(\"$(sw_vers -productVersion 2>/dev/null | cut -d . -f 2)`", + "reference": "The use of `#should` was triggering an rspec depracation warning for me, which is why I switched this to the rspec 3 style." + }, + { + "prediction": "Why is this change needed?", + "reference": "Why are you setting the CacheChange as REQUESTED when it is not valid (it was erased from history)?" + }, + { + "prediction": "I don't think we need to import `lodash` here.", + "reference": "`lodash` shouldn't be grouped under WordPress dependencies" + }, + { + "prediction": "I think this method should not be public.", + "reference": "This needs to be public so that Avro can call it." + }, + { + "prediction": "Why is this needed?", + "reference": "`Google*` shouldn't be under External dependencies - seems like ESlint is not properly recognizing that these are aliases to internal dependencies." + }, + { + "prediction": "This should be `assert not copy`", + "reference": "I think he meant the docstring in this constructor. yea we should fix" + }, + { + "prediction": "I think this should be `getClassResource(ResourceScheme.class, String.class, String.class, String.class, String.class, String.class, String.class, String.class, String.class, String.class, String.class, String.class, String.class, String.class, String.class, String.class, String.class, String.class, String.class, String.class, String.class, String.class, String.class, String.class, String.class, String.class, String.class, String.class, String.class, String.class, String.class, String.class, String.class, String.class, String.class, String.class, String.class, String.class, String.class, String.class, String.class) String.class, String.class, String.class, String.class, String.class, String.class, String.class) String.class, String.class, String.class, String.class, String.class, String.class, String.class, String.class, String.class, String.class, String.class, String.class, String.class,", + "reference": "so .. this basically follows the pattern from JapaneseTokenizer, I think. .. but somehow I don't see where we defined ResourceScheme? We're not referencing the one in kuromoji, right?" + }, + { + "prediction": "I think this is a bit confusing, but I think it would be better to use `SecurityProtocolType.Tls13` instead of `SecurityProtocolType.Tls12` here.", + "reference": "It would probably be better to do: const SecurityProtocolType Tls13 = (SecurityProtocolType)12288" + }, + { + "prediction": "Why did you remove this?", + "reference": "Similar to the above, put this setting back but keep the value as `'{}'`" + }, + { + "prediction": "I think this should be `logger.info(\"Starting to refresh continuous aggregates:\")`.", + "reference": "As discussed in chat - we should run this function within an app context which means that we'd already have a logger configured, and a connection to timescale set up" + }, + { + "prediction": "Why is this removed?", + "reference": "I'm curious about why this needed to be removed." + }, + { + "prediction": "Why is this needed?", + "reference": "why did you remove `zip`? It is used!" + }, + { + "prediction": "Why is this needed?", + "reference": "Is there any reason that we don't add a similar condition like `ChannelConditionTopic` to the channel?" + }, + { + "prediction": "Why is this change needed?", + "reference": "before php8 \"goto\" was a reserved word and was not allowed as part of the namespace. Now test checks for validity of plugin namespace according to PSR-4" + }, + { + "prediction": "I think it would be better to add a note that we don't support TLS.", + "reference": "nit: I'm not sure it can be addressed in this diff, but it seems odd that NewOutbound supports TLS but NewSingleOutbound does not. As a somewhat naive user I would expect the only difference between these two APIs is how peers are chosen." + }, + { + "prediction": "I think this should be `yarpcerrors.Newf(yarpcerrors.CodeInternal, err.Error())`.", + "reference": "I would advise to enhance the test for the method `CallOneway` - we should have a test very similar to `TestCallSuccess`. We should test: - Success with response (even if it is callOneway) - Success with no response and empty payload - Errors" + }, + { + "prediction": "Why is this change needed?", + "reference": "We're already matching +. Not sure why this changed." + }, + { + "prediction": "I think this should be `true IF you really want to disable the relation with category` or `false IF you really want to disable the relation with category`", + "reference": "Please add line breaks, so the line doesn't exceed 80 chars." + }, + { + "prediction": "Why is this change needed?", + "reference": "I initially thought (inccoreclty) this is a breaking change! The public api analyzer is a gift!" + }, + { + "prediction": "(style) line over 80 characters", + "reference": "I'm not sure how this one didn't segfault before." + }, + { + "prediction": "I think this should be `VXLANPort` or `VXLANVNI`.", + "reference": "Same points as in other test file." + }, + { + "prediction": "I don't think this is needed anymore.", + "reference": "Did you run gradlew tidy? Wildcard imports shouldn't be there, hence the question." + }, + { + "prediction": "Line is too long. [89/80]", + "reference": "Put a comma after the last parameter of a multiline method call." + }, + { + "prediction": "This should be `ON_FPGAINFO_ERR_GOTO(res, out, \"setting type to FPGA_IFC_DFL\");`", + "reference": "Is this going to restrict the output to *ONLY* ports that are bound to vfio-pci? That's not what we discussed yesterday." + }, + { + "prediction": "I think this should be `if signer.Protocol() == address.ID { return nil }`", + "reference": "Intention is to do the lookup here, I believe (where we can cache it). This would make the call non-pure function though. I'll confirm with lotus. ID addresses are the *only* addresses I expect to actually see here." + }, + { + "prediction": "I don't think we should be using ERMFS as an alternative to connecting through.", + "reference": "electronic medical record file system (EMRFS)" + }, + { + "prediction": "I think this should be `maxrequestbody`", + "reference": "Put this higher in the list, like after \"bind\", since I guess we're considering the max request body size to be kind of a native/fundamental feature, built directly into the vhosts." + }, + { + "prediction": "Why is this change needed?", + "reference": "oh come on :(" + }, + { + "prediction": "I think this should be `LOG.finest(String.format(\"Detected dialect: %s\", toReturn.dialect));`", + "reference": "This is an incorrect change. The dialect spoken is an important part of the handshake and should be communicated to users." + }, + { + "prediction": "I think this should be `bool` instead of `bool`.", + "reference": "Remove as this is not needed anymore." + }, + { + "prediction": "I think this should be `DoSomething2`", + "reference": "This new class is for checking that #4551 works correctly with PlantUML output too." + }, + { + "prediction": "I think this should be `https://support.apple.com/en-us/HT210176`", + "reference": "Will this cause all certificates to be re-issued?" + }, + { + "prediction": "This should be `if (tmp) { free(tmp); }`", + "reference": "I think tmp is also leaked at the end of this loop if no error cases are encountered." + }, + { + "prediction": "I think this should be `keyValueSchema.schema() != keyField.schema() || valueProjection.schema() != valueField.schema()`", + "reference": "The previous version didn't use `keyProjection` because the entire key must be projected. If the key is a struct of multiple columns, then projecting a subset of those columns can easily introduce key collisions that aren't in the original data." + }, + { + "prediction": "Why is this change needed?", + "reference": "Why not use StatusOr ? We can't ensure spaceId is greater than zero, especially when AdHocSchemaManager is used." + }, + { + "prediction": "I think this should be `jrpc` and not `jrpc`", + "reference": "Does it seem we only use that as the json-rpc client? Do we have any other choice? It's a little weird." + }, + { + "prediction": "Shouldn't this be `role in (controlTypes.ROLE_DELETED_CONTENT, controlTypes.ROLE_INSERTED_CONTENT, controlTypes.ROLE_DELETED_CONTENT, controlTypes.ROLE_INSERTED_CONTENT)`?", + "reference": "Could you split this into multiple lines?" + }, + { + "prediction": "Why is this removed?", + "reference": "Doesn't the snapshot ID start off as null? It seems like we don't need to set it here." + }, + { + "prediction": "Why is this change needed?", + "reference": "I wondered why `buffer` was passed into `LookupPath`. What is happening here? Is `buffer[:0]` equivalent to `[]V4TrieEntry{}`, and hence `buffer` isn't needed any more?" + }, + { + "prediction": "Why is this needed?", + "reference": "nit: Ideally we would would use this abstraction everywhere we need this translation. I believe it's needed in the mining worker and the storage and market connectors." + }, + { + "prediction": "I think this should be `GetHash(cStorPoolGot) == \"\"`", + "reference": "need to fix the error message here" + }, + { + "prediction": "I think this should be fixed as well.", + "reference": "Unsure of how to handle this one." + }, + { + "prediction": "I think it would be better to use `this.logger.info(\"Dropping Kill action as execution \" + this.execId + \" is already finished.\");` instead of `this.logger.info(\"Dropping Kill action as execution \" + this.execId + \" is already finished.\");`", + "reference": "Will this.flowFinished verify with every finished state stated in Status.isStatusFinished method? If so, no need to verify isKilled." + }, + { + "prediction": "I think this should be `DefaultRetrySettings`", + "reference": "replace \"Child Workflow\" with \"any workflow\"" + }, + { + "prediction": "I think this should be `if .IsSymlink` instead of `if .IsDir`", + "reference": "Instead of showing the words \"symbolic link\" under the \"Size\" column, how about we introduce new icons for symbolic link to file and symbolic link to directory?" + }, + { + "prediction": "I think this should be `@internal` instead of `@internal`.", + "reference": "Please add back the description of the parameter" + }, + { + "prediction": "I think this should be `this.trees = {}`", + "reference": "Superfluous space inserted." + }, + { + "prediction": "I think this should be `const value = node.getAttribute(attribute);` instead of `node.getAttribute(attribute);`", + "reference": "Didn't fix the problem. `href=\"\"` for SVG will still result in `undefined` getting returned by this function." + }, + { + "prediction": "I think this should be `238` instead of `238`.", + "reference": "This seems like a strange change ... I wouldn't think that a change to access tags in the profiles would result in different bearings in this tests?" + }, + { + "prediction": "I think this should be `isFocus=False` instead of `isCaret=False`", + "reference": "As isCaret is False by default, explicitly specifying isCaret=False here is not needed, and is perhaps a little confusing. I'd prefer that anywhere in the codebase that isCaret is only ever specified if it needs to be set to true. Mirroring that of isFocus for setNavigatorObject." + }, + { + "prediction": "I think we should use `[Errno::EADDRNOTAVAIL]` instead of `[Errno::EBADF]`.", + "reference": "We can't freeze this and then add something to it in the next line. The `freeze` on line 43 is sufficient. If Rubocop flags this we need to exclude it." + }, + { + "prediction": "I think this should be `for i := 0; i < len(aps); i++ { sort.Strings(aps[i].Subjects) }`", + "reference": "Why is this needed?" + }, + { + "prediction": "I think this should be `/users/:username/orgs/:org/repos`", + "reference": "Why not put two other routes after this line (221)?" + }, + { + "prediction": "I think it would be better to return `Status.OK` if `addrs.value().isEmpty()` and `addrs.value().isEmpty()` if `addrs.value().isEmpty()` is true.", + "reference": "If FLAGS_meta_server_addrs is not empty, in which case \"toHosts\" return empty array?" + }, + { + "prediction": "I think this should be `Settings.JSONBoolWithQuotes(DEFAULT_JSON_USE_QUOTES);`", + "reference": "There is a function to output a \"JSONBool\" string. That would be a good start for finding uses. But maybe just have a look at where we decide whether it is a numerical or not, thus wrapping quotes around its value. Then you have it all I guess." + }, + { + "prediction": "why not use `data_scols[0]` instead of `data_scols[0]`?", + "reference": "oops, it should be `data._scol` so that it respects the expression stored in Series. Let me fix it quick." + }, + { + "prediction": "I don't think we need to add `administerable_by?(current_user)` here.", + "reference": "Thanks for moving this up with the rest of the variables. Much tidier :)" + }, + { + "prediction": "I think this should be `dto.PaymentPerTime`", + "reference": "I think `Rate` is a more precise and concise term for `PaymentPerTime`." + }, + { + "prediction": "I don't think we need to check if `limit < posNext`", + "reference": "I think this should maybe be: var limit = input.IndexOfAny(new[] { '+', '-', ']' }, **posNext**); You pretty much want to ignore any sign that is before the \"M\". But, if there is a sign somewhere before the M, and also after the M, you'd want to be able to find the sign after the M, right?" + }, + { + "prediction": "Shouldn't this be `ConfigQuery::checkAvailableStock()`?", + "reference": "if `checkStockNotEmpty` returns a reponse, you must return it or your script will continue its execution." + }, + { + "prediction": "Why is this changed?", + "reference": "Any specific reason for this change? klog should work correctly here." + }, + { + "prediction": "Why do we need to update `data` here?", + "reference": "we don't mention `last_modified` here?" + }, + { + "prediction": "I don't think we need to do this, but I think it's better to use `inputEl` instead of `inputEl`.", + "reference": "same deal about the global state maybe interfering as in ActionBrowseTagline" + }, + { + "prediction": "Shouldn't this be `Assert.Throws(() => new LruCache(maxCapacity, \"test\");`?", + "reference": "so sweet to see a test as the first thing" + }, + { + "prediction": "I don't think this is necessary.", + "reference": "usually when HTTP_PROXY=\"\" (empty), proxy should be disabled. could you set it to NULL when it's empty string?" + }, + { + "prediction": "Why not use `$size` instead of `$size`?", + "reference": "Can you throw an exception if width or height are both null" + }, + { + "prediction": "Why is this change needed?", + "reference": "This is a breaking change. I guess these might have been intentionally exported." + }, + { + "prediction": "I think this should be `TableProperties.METADATA_SPLIT_SIZE` instead of `TableProperties.METADATA_SPLIT_SIZE`.", + "reference": "I don't think this is necessary. When options are used to set the split size in the Spark reader, it uses `TableProperties.SPLIT_SIZE` to pass it here. That should work for metadata tables as well, right? The situation that we need to handle in this PR is setting the default, like you had before. We just want to use a metadata split size so you can set it and not have the same split size used (by default) for both metadata and data scans." + }, + { + "prediction": "I think this should be `Divide = '\u00f7'`.", + "reference": "wait a sec, shouldn't this be `'*'`?" + }, + { + "prediction": "I think this should be `varMap[\"compute_service_account\"] = oi.params.ComputeServiceAccount if oi.params.ComputeServiceAccount != \"\" {`", + "reference": "It think you'll want the var for GMI import as well: daisy_workflows/ovf_import/create_gmi.wf.json (Unfortunately there's duplication between the two :/ )" + }, + { + "prediction": "I think this should be `(GET, SET, GET_CONTEXT)`", + "reference": "Nit: Group this with the other commands by moving it down one line." + }, + { + "prediction": "I think this should be `UnsupportedOperationException` instead of `UnsupportedOperationException`.", + "reference": "I would like to emphasize that a user can use non-vectorized reads to handle this file so maybe something like \"Cannot perform a vectorized read of ParquetV2 File with encoding %s, disable vectorized reading with $param to read this table/file\"" + }, + { + "prediction": "I think this should be `parameter_name`?", + "reference": "Maybe add `positional=False`. It does not need it more than the other parameters, but one must start somewhere." + }, + { + "prediction": "I think this should be `../../spec/max-staleness/ReplicaSetWithPrimary`.", + "reference": "Since we're here, can we use a template?" + }, + { + "prediction": "I think this should be `spark_session_local.resource_fn(None)` instead of `spark_session_local.resource_fn(None)`", + "reference": "saw you're also doing this in `test_types.py`: `spark = _spark_context()['test'].resources['spark'].resource_fn(None)` since `_spark_context()` uses `spark_session_local` won't the above break the tests?" + }, + { + "prediction": "Why is this change needed?", + "reference": "`has(default)` i think is the preferred way of doing this" + }, + { + "prediction": "why not use `clipInput=False`?", + "reference": "always put a space after a comma" + }, + { + "prediction": "Is there a reason to use `selectAllPhotosUpToFav` instead of `selectAllPhotosUpTo`?", + "reference": "@angmas1 move the else up, next to the closing bracket of the if block. Also, there is no need for the braces as your else statement contains only a single line. Make your if-else block similar to the block in lines 277-280." + }, + { + "prediction": "I think this should be `options=None` instead of `options=None`", + "reference": "@AutomatedTester @davehunt thoughts on a new keyword argument?" + }, + { + "prediction": "why is this change needed?", + "reference": "This change shouldn't be necessary for this PR. Please remove it." + }, + { + "prediction": "Why is this change needed?", + "reference": "This variable is mostly unused, how about we make `NewTestCtx` return a pointer?" + }, + { + "prediction": "I think this should be 32Mi, not 32Mi.", + "reference": "What is the basis of this value?" + }, + { + "prediction": "I think this should be `gce_metadata.h` instead of `gce_metadata.h`.", + "reference": "Nit: was this extra blank line added intentionally?" + }, + { + "prediction": "Shouldn't this be `EXCEPTION_EXECUTE_FAULT` instead of `EXCEPTION_ILLEGAL_INSTRUCTION_EXCEPTION`?", + "reference": "nit: inconsistent spacing around =" + }, + { + "prediction": "Why is this removed?", + "reference": "We still need this import" + }, + { + "prediction": "Why is this change needed?", + "reference": "We are pulling this because we removed \"groupID\" state and put it into the strategy implementations" + }, + { + "prediction": "I think this should be `oneapi/dal/algo/kmeans_init/compute.hpp`", + "reference": "Is this file actually related to PCA?" + }, + { + "prediction": "I think this should be `isFirstAdmin` and `isOwner`", + "reference": "See above, this should probably remain `isFirstAdmin`." + }, + { + "prediction": "Why is this change needed?", + "reference": "Why the change to make it public? The expression interface has the `TypeOf` method?" + }, + { + "prediction": "Why is this change needed?", + "reference": "don't mind the snake cases in the test names. If there are in the test cases, it's fine IMO" + }, + { + "prediction": "I think this should be `IdentityUnlockingDto`", + "reference": "`Id` defines REST resource address and should not be in payload" + }, + { + "prediction": "I think we should add `--class-wise` to the help message.", + "reference": "We can omit the underscore and just use `classwise`." + }, + { + "prediction": "I don't think we need to check if the root category exists for a given context.", + "reference": "Why not throw an exception instead then?" + }, + { + "prediction": "I think this should be `inputFiles.get(task.file().path().toString());` instead of `inputFiles.get(task.file().path().toString());`", + "reference": "Looks like this doesn't need to change. Can you revert this?" + }, + { + "prediction": "I don't think we need to import `template` here.", + "reference": "please import it like `from kinto.config import template`" + }, + { + "prediction": "I think this should be `Boolean.parseBoolean(Boolean.parseBoolean(String.valueOf(true)));`", + "reference": "There are lots of default value changed, not sure if it break the old behavior." + }, + { + "prediction": "I think this should be `go.uber.org/grpc/reflection`", + "reference": "File is not `goimports`-ed (from `goimports`)" + }, + { + "prediction": "Shouldn't this be `boolToStaticNodes`?", + "reference": "parameter should be called removeFromStaticNodes" + }, + { + "prediction": "I think this should be `override: bool=True`", + "reference": "The handler will have an extra property in the marker to signal the implementation is in the provider, for the cases we want to add functionality, for example, custom implementations not in moto." + }, + { + "prediction": "I don't think we need to do this, but I think it's a good idea to have `deactivated_on` and `deactivated_on` and `deactivated_on` as well.", + "reference": "Is this method actually being used anywhere? If not, I think we should remove it." + }, + { + "prediction": "I think it would be better to use `!p.IsReadOnly` instead of `!p.IsConstant`", + "reference": "Thanks! I somehow lost this between my far too many branchs." + }, + { + "prediction": "I don't think we need to import the `Options` class here.", + "reference": "i think this should get put into its own file. This could start to grow :)" + }, + { + "prediction": "I don't think we need to change this to `gcr.io/google_containers/pause:latest`", + "reference": "Can you add a TODO for loading the tarball of the pause image into Docker?" + }, + { + "prediction": "Why did you remove this?", + "reference": "Is there any value in setting the process to null like this?" + }, + { + "prediction": "I think you should use `CHECK_EQ(outer_num_ * inner_num_, bottom[1]->count())` instead of `CHECK_EQ(outer_num_ * inner_num_, bottom[1]->count())`", + "reference": "This could be a good time to add a check that the prediction and target dimensions (except channel) agree?" + }, + { + "prediction": "I think this should be `if (instr_get_opcode(bb->instr) == OP_isb)`", + "reference": "The requirement that OP_isb is bb-final needs to be a rule for clients, just like the rule that syscalls and interrupts must be bb-final: i.e., please add it to the dr_register_bb_event() docs." + }, + { + "prediction": "I think we should use `Globalize.translate(\"ListPaging\").replace(\"{0}\", totalRecordCount);` instead of `Globalize.translate(\"ListPaging\").replace(\"{1}\", totalRecordCount);`", + "reference": "The translate library has a method to replace the variables." + }, + { + "prediction": "I think this test should be `assert_eq(ks.fillna(0, inplace=True), ps.fillna(0))` and `assert_eq(ks.fillna(0, inplace=True), ps.fillna(0))`", + "reference": "i don't think this test case is correct. in both cases inpalce=True returns nothing. We need to compare the ks. Also we probably need to make a copy of it. Otherwise you pollute the following \"ks\" because ks has been changed." + }, + { + "prediction": "I think this should be `tls.TlsHandshakeHook` instead of `tls.TlsHandshakeHook`", + "reference": "Any proposals how to make the naming somehow include the \"completed\" idea of this hook? `TlsHandshakeCompletedHook` or similar? Or using the `...Start/End...` scheme?" + }, + { + "prediction": "Why do we need to flush here?", + "reference": "it introduces a lot of complexity to the state, can we flush straightaway or create a two level flush store where the questions are read form unflushed data?" + }, + { + "prediction": "I think this should be `urlencode($node->id);`", + "reference": "There are two calls to getUrlFromRouteCache, but you're only urlencoding one of them. Is that intentional? Would it make more sense to do the url-encoding inside the getUrlFromRouteCache function?" + }, + { + "prediction": "I think we should be able to restore the state of the editor.", + "reference": "Maybe we can use `this.instance.getCell` with `topMost` flag to get `TD` element?" + }, + { + "prediction": "I think this should be `log.L().Info(err.Error())`", + "reference": "Change this to Debug Level" + }, + { + "prediction": "Why do we need this? I think it's better to use `StackTraceUsage = _allLayouts.DefaultIfEmpty().Aggregate(StackTraceUsage.None, (seed, layout) => layout?.StackTraceUsage | (layout?.StackTraceUsage ?? StackTraceUsage.None));` instead of `StackTraceUsage = _allLayouts.DefaultIfEmpty().Aggregate(StackTraceUsage.None, (seed, layout) => layout?.StackTraceUsage | (layout?.StackTraceUsage ?? StackTraceUsage.None);`", + "reference": "I refactored the Aggregate, those are hard to read" + }, + { + "prediction": "Why did you remove this?", + "reference": "This is now done in the after method, so this test won't pass any more." + }, + { + "prediction": "Line is too long. [92/80]", + "reference": "What was the point of creating `user_block` if you're then not going to use it ;-)" + }, + { + "prediction": "Why is this removed?", + "reference": "@ueshin, I thought we can remove this entire file. Does that require some more works?" + }, + { + "prediction": "Why is this change needed?", + "reference": "Just `return tokens.string[1:-1]` is enough" + }, + { + "prediction": "This should be `resources:quizzes, only: [:show]`.", + "reference": "1 trailing blank lines detected." + }, + { + "prediction": "Why is this change needed?", + "reference": "Isn't this the default max width? In any case I would prefer to see these definitions in the css files." + }, + { + "prediction": "Why is this change needed?", + "reference": "Is this thread-safe? (If not, and if the solution is to introduce locking, let's reconsider how we do the scheme changing instead...)" + }, + { + "prediction": "I don't think we need to import `aggregate` here.", + "reference": "Looks like this file has tabs instead of spaces." + }, + { + "prediction": "Is there a reason why we don't need to do this?", + "reference": "Hmm should we clean up container resources before task resources here? or the order does not really matter here?" + }, + { + "prediction": "I think this is a good idea to remove the `clean_old_downloads` function.", + "reference": "Please undo this :wink:" + }, + { + "prediction": "Align the elements of a hash literal if they span more than one line.", + "reference": "thanks for adding this missing association" + }, + { + "prediction": "I think this should be `app.UseKestrelHttps(new HttpsConnectionFilterOptions { ServerCertificate = cert});`", + "reference": "Should I remove this in favor of the HttpsConnectionFilterOptions overload?" + }, + { + "prediction": "I think we should use `getMaxIndex` instead of `getMaxIndex`", + "reference": "This shode be nullable, there alway sholud be at least one status in system , if not exist that mean data problme" + }, + { + "prediction": "I think this should be moved to the `auth/unistall-sw.js` file.", + "reference": "Spaces not tabs" + }, + { + "prediction": "I think this should be `this.fsErrorToJsError_(error, path);`", + "reference": "To get the files inside a directory, please use `readDirStats()`." + }, + { + "prediction": "Why is this needed?", + "reference": "might be worth to call these `Isolation` instead of containers here and when presented to the user -- docker/rkt , in addition to cgroups and namespaces, also provide image discovery and filesystem preparation; there's also the security context and probably 1-2 other small things" + }, + { + "prediction": "I think this should be `batchstore_test_batchstore_test`", + "reference": "File is empty, consider removing?" + }, + { + "prediction": "I think we should use `_load_auth` instead of `_load_auth`", + "reference": "This seems to return the registry_url. The more meaningful URL is the catalog URL, which is the URL the user specifies in `quilt3.login`. The username might also be as useful here if not more useful." + }, + { + "prediction": "I think this should be `L1StandardBridgeAddress` and not `L1StandardBridgeAddress`", + "reference": "Was the addition of `GasPriceOracleAddress` here erroneous?" + }, + { + "prediction": "Align the elements of a hash literal if they span more than one line.", + "reference": "I believe that you are going to have to do some work here to get the env var support for these values to still work correctly, otherwise they will get stored as :department instead of host_tags[:department]." + }, + { + "prediction": "I think it would be better to use `List sessions = browserState.getTabs().get(i);` instead of `List sessions = browserState.getTabs().get(i);`", + "reference": "How was this causing the exception?" + }, + { + "prediction": "I think this should be `if (currentCulture == 'zh-tw' || currentCulture == 'zh-hk') {`", + "reference": "I still have issues with it loading Simplified Chinese by default over Japanese, since they also share characters and we're not sure if characters are different or not. As-is, this fixes Traditional Chinese and Simplified Chinese, but we're not sure if it'd still screw up Japanese text or not. I maintain that, in my opinion, Japanese should be the only script of this kind loaded by default (Because of Hiragana and Katakana, that aren't shared with any other script) and either variant of Chinese should be loaded only in their respective case." + }, + { + "prediction": "I think this should be `new IntervalQuery(field, this);`", + "reference": "Isn't it better to stub AtomatonQuery and yield it here. IIRC it resolves simplest MTQ highlighting cases as nobrainer." + }, + { + "prediction": "I think this should be `@discounted_plan.price_in_dollars / @current_plan.price_in_dollars * 12.0`", + "reference": "Line is too long. [96/80]" + }, + { + "prediction": "I think this should be `kubernetes.io/os` instead of `kubernetes.io/os`", + "reference": "My only concern with changing the node selector here is that someone else _could_ have built their own images for other platforms and set them to be used using the flag override on the controller, which in turn this change would break. Perhaps not changing the selector for acmesolver pods makes most sense, and then working on actually having support for Windows? wdyt?" + }, + { + "prediction": "Why is this change needed?", + "reference": "Why do we need interface `InnerObjectWithSelector`, I searched the usage with this field, it seems nowhere use `GetSelectorSpecs()` methods provided by `InnerObjectWithSelector`" + }, + { + "prediction": "Why do we need this?", + "reference": "Do we need this `init` here? We have already called the `InitContext` in `StartModule` directly." + }, + { + "prediction": "I think this should be `minimize_window` instead of `minimize_window`", + "reference": "This `if` is not necessary" + }, + { + "prediction": "I think this should be `dom._lastValue` instead of `dom._lastValue`.", + "reference": "should we add a `mangle.json` mapping for this? We could reuse a property name that's only used on component or vnode objects right now, like `__s` (\"next state\")." + }, + { + "prediction": "I think this should be `if opts[:modulepath]` instead of `if opts[:modulepath]`.", + "reference": "Please update the yard docs to indicate this new option." + }, + { + "prediction": "I think this should be `*ClassicELBScheme` or `*ClassicELBScheme`", + "reference": "Can you provide an example in the godoc section on how to use this? From the implementation it looks like the AvailabilityZone field is required for example, otherwise it can fail / error, is that correct?" + }, + { + "prediction": "I think this should be `codeVersion.String()` instead of `codeVersion.String()`", + "reference": "It would be great if this could be captured by a test." + }, + { + "prediction": "I think this should be `16MB` instead of `16MB`", + "reference": "1000 -> 100 maybe too much, 200 ish to 500ish maybe a good option" + }, + { + "prediction": "Why is this change needed?", + "reference": "Any reason we need to keep this package's `ChecksumAddress` type or can we get rid of it too?" + }, + { + "prediction": "I don't think we need to change the title here.", + "reference": "Above the one that was picked was the Button* prefix, and here it's the Header* prefix. Maybe the Button prefix is more general." + }, + { + "prediction": "Why is this change needed?", + "reference": "I might prefer changing: public Block FindPendingBlock() => FindBlock(PendingHash, BlockTreeLookupOptions.None); public BlockHeader FindPendingHeader() => FindHeader(PendingHash, BlockTreeLookupOptions.None); in IBlockFinder, what do you think?" + }, + { + "prediction": "I think this should be `PreserveUnknownFields` instead of `PreserveUnknownFields`.", + "reference": "This is necessary due to a bug in 4.7. Follow HIVE-1561 for getting rid of it." + }, + { + "prediction": "Line is too long. [89/80]", + "reference": "Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping." + }, + { + "prediction": "Why is this change needed?", + "reference": "Some day (tm) I will also get rid of that one. But today is not that day..." + }, + { + "prediction": "I think we should use `File::localToPublic` instead of `File::localToPublic`", + "reference": "Add a space between if and opening parenthesis please (i.e. `if (`)" + }, + { + "prediction": "Why is this change needed?", + "reference": "nit: `rename` instead of `alias`?" + }, + { + "prediction": "I think this should be `/dev/sd` instead of `/dev/sda1`", + "reference": "Per AWS docs EC instances have the root mounted at /dev/sda1. This label should be skipped." + }, + { + "prediction": "Why is this removed?", + "reference": "I'm not sure it is a better way to address lose message, if wait here, edge controller cant process message, event from watching api-server will be lost yet, right?" + }, + { + "prediction": "I think this should be `if p.value_size is not None else 6`", + "reference": "Please keep the correct alignment, it seems broken now (at least in Github). Can you reverse the test (`if p.value_size is None`)? Also, do you want `6` when `p.value_size is None` or `x + 6`? Maybe, in that case, something like `lambda p, x: x + 6 + (0 if p.value_size is None else p.value_size)` would be easier to read. Or even easier: `lambda p, x: x + 6 + (p.value_size or 0)`." + }, + { + "prediction": "Shouldn't this be `startTimeoutTimeout`?", + "reference": "Can we make sure ECS service treats it as int64 as well?" + }, + { + "prediction": "I think this should be `super(ReadOnlyEditBox, self).windowText`", + "reference": "Please follow the naming convention for variables, i.e. `windowText`." + }, + { + "prediction": "I think this should be `castv1alpha1` instead of `castv1alpha1`", + "reference": "alias can be `cast`" + }, + { + "prediction": "I think this should be `(uint64_t)mmap_errors` instead of `(uint64_t)mmap_errors`.", + "reference": "Let's use `%zu` instead of casting to `uint64_t` and using `PRIu64`. The alternative is to change the type of `mmap_errors` to `uint64_t`, though I'd prefer not doing that because some 32-bit platforms might not provide atomic operation support for `uint64_t`." + }, + { + "prediction": "I don't think we need to change this to `ERROR`.", + "reference": "I recall there being a reason we had this one set only to suggeation. @carterkozak do you remember why? or is my memory getting corrupted?" + }, + { + "prediction": "Why is this change needed?", + "reference": "This should now be made into `if (it->second.empty())` ?" + }, + { + "prediction": "I think this is a bit confusing, but I think it would be better to just call `self.num_of_searches += 1` instead of `self.num_of_searches`.", + "reference": "Do we need to worry about a race condition on this decrement (@The-Compiler)? I'm not sure how the python callbacks work, so this might not need to be something to worry about." + }, + { + "prediction": "Why is this change needed?", + "reference": "Should these assert that the extracted `SpanContext` is remote?" + }, + { + "prediction": "I think this should be `match_high_quality` or `match_low_quality`", + "reference": "typo: allow low quality matches." + }, + { + "prediction": "Why is this change needed?", + "reference": "At some point we need to condense down and refactor our \"configs\" as we have too many in too many places and we're starting to get more illegible code. No change necessary but calling out for future reference." + }, + { + "prediction": "I think this should be `icon_label` instead of `icon_label`.", + "reference": "Can we add the `if label` conditional to this please?" + }, + { + "prediction": "I don't think this is needed.", + "reference": "@thunterdb, can we increase the minimal version to almost the latest ones? I was thinking people will mostly use the latest version of mlflow" + }, + { + "prediction": "I think this should be `hasFillDataChanged`.", + "reference": "If the last argument is going to be removed, why would we add it to the API docs? Shouldn't it be private for internal use?" + }, + { + "prediction": "Why is this needed? I think it's better to use `FileSystemIntermediateManager` and `InMemoryIntermediatesManager`.", + "reference": "`Intermediates` or `Intermediate`" + }, + { + "prediction": "Shouldn't this be `isinstance(element, str)` or `isinstance(element, dict)`?", + "reference": "This is not the right exception class. There is an InvalidSelectorException class that covers bad locators." + }, + { + "prediction": "Why is this change needed?", + "reference": "If this code isn't needed, it should be removed." + }, + { + "prediction": "I think we should use `retrySettings` here instead of `retrySettings`", + "reference": "Should the `doRequest` func be a method on the `connection` type instead of passing state from the type?" + }, + { + "prediction": "I think we should use `ECS_CLI_ENVIRONMENT_NAME` instead of `COPILOT_ENVIRONMENT_NAME`.", + "reference": "we'll probably tackle these e2e tests at the end" + }, + { + "prediction": "I think we should use `System.Net.Dns.GetHostName` instead of `System.Net.Dns.GetHostName`.", + "reference": "what is this address pointing to? what are we measuring here? I want to have a better understanding." + }, + { + "prediction": "I think this should be `SELECT DISTINCT(trigger_instance_id) FROM execution_dependencies WHERE trigger_instance_id not in (\\n`)", + "reference": "Would it be better to pass the dependency status as the parameter into the SQL string? In case the enum value is changed in the future, we don't need to change the code here." + }, + { + "prediction": "I think this should be `libdokan.libdokan.libdokan.libdokan.libdokan.libdokan.libdokan.libdokan.libdokan.libdokan.libdokan.libdokan.libdokan.libdokan.libdokan.libdokan.libdokan.libdokan.libdokan.libdokan.libdokan.libdokan.libdokan.libdokan.libdokan.libdokan.libdokan.libdokan.libdokan.libdokan.libdokan.libdokan.libdokan.libdokan.libdokan.libdokan.libdokan.libdokan.libdokan.libdokan.libdokan.libdokan.libdokan.libdokan.libdokan.libdokan.libdokan.libdokan.libdokan.libdokan", + "reference": "Hah I had `gorename` failing without this too." + }, + { + "prediction": "I think this should be `Security.Instance.DdlibWafVersion?.ToString() ?? \"(none)\"` or `Security.Instance.DdlibWafVersion?.ToString() ?? \"(none)\"`", + "reference": "maybe prefix these with `appsec_` for consistency?" + }, + { + "prediction": "I think this should be `golang.org/x/net/trace`.", + "reference": "nit: this should be down further with the other github imports" + }, + { + "prediction": "I think this should be `if ctypes.windll.kernel32.FreeConsole() != 0:`", + "reference": "Why is this change necessary or related to the rest of the PR?" + }, + { + "prediction": "Why not just `- see:`?", + "reference": "Hm, I wonder if the `see:` prefix is even necessary?" + }, + { + "prediction": "Shouldn't this be `item.UserData.PlaybackPositionTicks - item.RunTimeTicks / 600000000`?", + "reference": "This should be translated." + }, + { + "prediction": "Why is this change needed?", + "reference": "I originally had this PR only changing the R package, but then ran into this error > Error: [LightGBM] [Fatal] Cannot change metric during training This is thrown even if you aren't actually CHANGING `metric`. I think the change here in `c_api` is closer to the desired behavior, only throwing an error if the parameter is being changed." + }, + { + "prediction": "Line is too long. [89/80]", + "reference": "These changes are just to make cli_spec a little more readable for VS Code users, as there's a bug with the Ruby plugin's syntax highlighting when you use multi-line regex literals." + }, + { + "prediction": "I don't think we need to change the variable name to `constants.GlobalPullSecret`.", + "reference": "Shouldn't the global pull secret by in the namespace of the hive-operator? It is part of the operand." + }, + { + "prediction": "I think we should use `assert_consumers(0)` instead of `assert_consumers(1)`", + "reference": "kinesis-mock applies KINESIS_LATENCY to RegisterStreamConsumer actions so I added a sleep here." + }, + { + "prediction": "I think this should be `LOG(ERROR) << \"Can't upgrade meta from V1 to V3\" << \"Can't upgrade meta from V1 to V3\" << \"Can't upgrade meta from V1 to V3\" << \"Can't upgrade meta from V1 to V3\" << \"Can't upgrade meta from V1 to V3\" << \"Can't upgrade meta from V1 to V3\" << \"Can't upgrade meta from V1 to V3\"", + "reference": "Only V1 or V3 is return from `getMetaVersionFromKV`. So where do we call `updateMetaV2ToV3`?" + }, + { + "prediction": "Why is this change needed?", + "reference": "I think that V0 is missing here, which will prevent plugins that haven't been converted to work." + }, + { + "prediction": "I think this should be `/wow/index.html` or `/wow/index.html`", + "reference": "Should we remove this?" + }, + { + "prediction": "I think this should be `io.io`", + "reference": "Put on top of the import." + }, + { + "prediction": "I think this should be `analyticsName` instead of `analyticsName`", + "reference": "See above, this shouldn't be added." + }, + { + "prediction": "I don't think we need to change this, but I think it would be better to use `ITEM_FURY_ORNAMENT_KIT(ITEM_FURY_ORNAMENT_KIT, AMULET_OF_FURY_OR),` instead of `ITEM_FURY_ORNAMENT_KIT(ITEM_FURY_ORNAMENT_KIT, AMULET_OF_FURY_OR),`", + "reference": "This'll likely get fixed upstream, we should let them deal with it." + }, + { + "prediction": "I think this should be `host.HostFactory` or something like `host.HostFactory`", + "reference": "Somehow, this field does not seems useful for the exposed package api, only for the tests. Would you consider having an unexported field in `hostFactory func(context.Context, ...libp2p.Option) (host.Host, error)` instead to be set only by a new helper function defined in export_test.go. This is just a suggestion, not a hard requirement for the PR approval." + }, + { + "prediction": "Is there a reason why we don't use `goBackInTime` here?", + "reference": "As a first argument to these function, please pass the date that should go forward/backward. Also please clarify what is \"n\" (possible values, unit) and what is timeDuration (possible values, unit, as from your code it seems to be \"day\", \"hours\", etc. but from your example it seems to be milliseconds)." + }, + { + "prediction": "I think we should use `config.conf[\"general\"][\"language\"]` instead of `config.conf[\"general\"][\"language\"]`", + "reference": "Are you sure you really need this code here? that script will be certainly run in NVDA's main thread, and core would have already called setLanguage." + }, + { + "prediction": "I think this should be `10256` instead of `10256`", + "reference": "why is this changed ?" + }, + { + "prediction": "I think this should be `TODO(jba): test that doc's revision field is updated`.", + "reference": "Should this be \"the new revision value\"?" + }, + { + "prediction": "Align the parameters of a method call if they span more than one line.", + "reference": "You have deleted :attribute" + }, + { + "prediction": "I don't think we need to change this file.", + "reference": "The license header should be updated to the Apache one." + }, + { + "prediction": "Shouldn't this be `int expectedSpanCount = EnvironmentHelper.IsCoreClr() ? 2 : 1;`?", + "reference": "@zacharycmontoya Is there any way to distinguish a `SocketHttpHandler` from another `HttpMessageHandler` request?" + }, + { + "prediction": "I think this should be `instr_is_scatter(instr_t *instr);`", + "reference": "Not sure about this one -- did you check somehow?" + }, + { + "prediction": "I think we should use `@options['HOSTS'][name][:platform] || @options[:pe_dir] || @options[:pe_version_file]` instead of `@options['HOSTS'][name]['pe_ver_win']`", + "reference": "Is there a good reason to keep this at the `pe_ver_win` name now that it's per-host?" + }, + { + "prediction": "I think this should be `new SummaryProductFragment(menuTitles[0]);` instead of `new SummaryProductFragment(menuTitles[0]);`", + "reference": "Not in the order of display : Front, Ingredient, Nutrition here (which is the right thing), Actually displayed: Front, Nutrition, Ingredients" + }, + { + "prediction": "Why is this removed?", + "reference": "Why delete `StartTime`? This `StartTime` was used to avoid the PID was reused." + }, + { + "prediction": "Do we need to check if the host is a pe?", + "reference": "My concern here, is that if the dump_puppet_log also throws then we will lose the data about the teardown_exception." + }, + { + "prediction": "Why is this needed?", + "reference": "Should it be `int64_t`?" + }, + { + "prediction": "Why is this constant set to 8?", + "reference": "is this value related to something ?" + }, + { + "prediction": "I think this should be `AddTxResult` instead of `AddTxResult`", + "reference": "Add names to tuple elements ValueTask<(Keccak? Hash, AddTxResult? AddResult)>, should they both be nullable?" + }, + { + "prediction": "I think this should be `replaceAcronyms(namePiece, replaceAcronyms(namePiece, replaceAcronyms(namePiece, replaceAcronyms(namePiece, replaceAcronyms(namePiece, replaceAcronyms(namePiece, replaceAcronyms(namePiece, replaceAcronyms(namePiece, replaceAcronyms(namePiece, replaceAcronyms(namePiece, replaceAcronyms))));`", + "reference": "I think it might make more sense to do this in Name.upperCamel; it is the entry point for upper camel strings." + }, + { + "prediction": "I think this should be `type.asArrayType(t -> s[0] = t);`", + "reference": "Huh? The point is that a cast isn't necessary" + }, + { + "prediction": "I think this should be `InstallCRD` instead of `InstallCRD`", + "reference": "can we name it like `InstallV1Alpha1CRDs` ?" + }, + { + "prediction": "I don't think we need to add this annotation to the `hive.openshift.io/hiveutil-created` label.", + "reference": "I need something to match when creating selectorsyncsets so added this label." + }, + { + "prediction": "I think this should be `# :nocov:`", + "reference": "Isn't `nil` the default return value from an empty `rescue` clause? If that's correct, then we could just remove the `nil` line entirely as it doesn't serve a purpose." + }, + { + "prediction": "I think this should be `[s3.s3_ruby_bucket_cors.rb]`.", + "reference": "Simple Storage **Service**" + }, + { + "prediction": "I think this should be `validIndex.Sub(r.idx.Obsolete())` instead of `validIndex.Sub(r.idx.Obsolete())`.", + "reference": "Wouldn't that cause the obsolete indexes to be downloaded over and over again? After all these are still stored in the repository." + }, + { + "prediction": "Line is too long. [82/80]", + "reference": "We might want to move this logic to a Plain Old Ruby Object down the road. Not a blocker." + }, + { + "prediction": "I think this should be `if (this.toolbox_ && this.toolbox_.position()) {`", + "reference": "move `this.toolbox_.position();` to just after line 1477. Context: the if statement on line 1472 checks whether this is a toolbox with categories, and if so it populates the toolbox. Positioning the toolbox is a reasonable followup to that, and means you don't need an extra if. You may also need to call `this.flyout_.position()` after line 1483, which is the equivalent for the non-category toolbox." + }, + { + "prediction": "Why do we need this?", + "reference": "Should the function above be .FirstOrDefault() instead? Otherwise, why check for null and tell ReSharper to ignore the fact that it can never be null?" + }, + { + "prediction": "I think this should be `countlyDb = plugins.dbConnection();` or `countlyDb = plugins.dbConnection();`", + "reference": "Let's not create new connection, but rather user `common.db` one" + }, + { + "prediction": "Do we need this?", + "reference": "Can this use asset_path rather than defining an image_url helper?" + }, + { + "prediction": "I think this should be `@return {''}`", + "reference": "Hindley-Milner signatures don't use literal types. They explusively use types. It's deal with that" + }, + { + "prediction": "I think this should be `OFPolicyRuleGroup` or `OFPolicyRuleGroup`", + "reference": "Could we just extend PolicyRule with more fields? It was originally designed as the struct required by openflow client, nested structs seem not helping. And for the name of the fields, initialism should be uppercase, OFID and NPName doesn't look good, then maybe FlowID, PolicyName.." + }, + { + "prediction": "I think this should be `opcache_compile_file` and `opcache_get_configuration` and `opcache_get_status`", + "reference": "I really dislike this alignment approach, as it makes identifying individual functions quite hard, but I kept consistent with the previous style. Since no sorting was evident, I pushed it to the end of the block. Meanwhile, is this supposed to be tested or meaningfully testable somehow?" + }, + { + "prediction": "I don't think we need to do this here.", + "reference": "Could also consider modifying the ActiveExecution..." + }, + { + "prediction": "I think this should be `safe_infer(node.slice)` instead of `safe_infer(node.slice)`", + "reference": "Does it make sense to change that to a custom error instead of `ValueError`?" + }, + { + "prediction": "why is this change needed?", + "reference": "I guess this will need to change soon." + }, + { + "prediction": "I think this should be `map` instead of `map`", + "reference": "Restore this spacing - not sure why it has to be removed?" + }, + { + "prediction": "I think this should be `XOPEN_SOURCE 700L` instead of `XOPEN_SOURCE 700L`.", + "reference": "These defines cause issues in base.h leading to failing android builds. Locale independency is now set in multiple spots, in cmake and in base.h. The base.h uses feature test macros wrong. Feature test macros can be used to indicate that a feature should be made available. They do not guarantee that it is available. On the cmake side this is done by the check symbol macros (similar to what autoconf does). On the android side not. I would suggest removing this from base.h and define locale independent in gradle. It is available since android 21 I believe. Is there a way in gradle to set locale independent only if android api >= 21?" + }, + { + "prediction": "Why is this change needed?", + "reference": "Why not delete these codes?" + }, + { + "prediction": "Why is this change needed?", + "reference": "If pull message failed after some reties, we should ensure the storaged exit, otherwise it has risk to loss data." + }, + { + "prediction": "I don't think we need to do this, but I think it would be better to use `first_count` instead of `first_count`.", + "reference": "looks like you don't need to import first and count here anymore" + }, + { + "prediction": "I think we should add the visibility processor to the list of tasks.", + "reference": "FYI, visibility task processing is local only, meaning pushing something to local ES cluster / local archival endpoint" + }, + { + "prediction": "Why is this needed?", + "reference": "This import can be removed." + }, + { + "prediction": "I think we should use `strings.HasPrefix(a.Region, \"-fips\")` instead of `strings.HasSuffix(a.Region, \"-fips\")`", + "reference": "1. Nit: We can have a general helper to identify if a region is pseudo region. We might already have one somewhere. 2. Does any type of ARN support FIPS? If not, we may just move this check in arn package?" + }, + { + "prediction": "I don't think we need to import the `S3Stubber` class here.", + "reference": "is this phrase completed in a next line? Or forgot to add... what?" + }, + { + "prediction": "why do you need this?", + "reference": "`('train', 5)` and `('train', 1)` are actually the same." + }, + { + "prediction": "Why is this change needed?", + "reference": "Would it be too complicated to refactor `currLimit` to be an `int64`?" + }, + { + "prediction": "Do we need this method?", + "reference": "Would it be more performant to just `include ::RSpec::Core::Pending` here? /cc @myronmarston" + }, + { + "prediction": "I think this should be `instances`?", + "reference": "Should be podiochaos?" + }, + { + "prediction": "I don't think we need to fix this issue.", + "reference": "Is the `codecs.register(lambda name: None)` gracefully handled by codecs? The lambda is expected to return a tuple of functions (encoder, decoder, stream_reader, stream_writer) (or a CodecInfo object), according to the docs. I've only checked python's built-in help, though." + }, + { + "prediction": "I think this should be `if (!this.metricStreamNames.ContainsKey(metricStreamName)) {`", + "reference": "in this case, it could be either instrument name or the view name, which could be invalid. might be better if we can offer very specific message. (not blocking this, we can add this as a follow up,if needed)" + }, + { + "prediction": "I think we should use `nameOrHandle` instead of `nameOrHandle`.", + "reference": "I'd rather just send the parameter twice than break encapsulation here. There's already precedence with webelement IDs" + }, + { + "prediction": "I don't think we need to change the model here, but I think it would be better to use `dict(type='Res2Net', depth=101, scale=4, scale=4, base_width=26)` instead of `dict(type='Res2Net', depth=101, scale=4, scale=4, base_width=26)`", + "reference": "You may put 'open-mmlab://res2net101_v1d_26w_4s' here. MMCV will be updated later." + }, + { + "prediction": "I think this should be `FORM_DASH_WIDGET` or `FORM_DASH_WIDGET`.", + "reference": "May be worth making this more specific, to avoid potential conflicts, maybe `pagespeedDashboardWidget`? Or `webVitalsDashboardWidget`?" + }, + { + "prediction": "I think we should use `` instead of `${err.message}` instead of `${err.message}`", + "reference": "I guess this assignment is now redundant?" + }, + { + "prediction": "I think this should be `var blockNum uint64` instead of `var blockNum uint64`", + "reference": "See above note re: blockNum synchronization." + }, + { + "prediction": "I think this should be `spire_backoff` instead of `spire_backoff`", + "reference": "wonder if we could avoid doing named imports if we type aliased `backoff.Backoff` in the `.../agent/common/backoff` package?" + }, + { + "prediction": "Why is this removed?", + "reference": "Or maybe put into alphabetical order with the other #includes." + }, + { + "prediction": "I think this should be `defer ticker.Stop()`.", + "reference": "This runs the entire duration of the program; this change is not needed." + }, + { + "prediction": "I think this should be `true` instead of `false`", + "reference": "I don't feel well about the `ALWAYS_UPDATE` option   sounds like a workaround. I can imagine that some of the plugins want to observe all options. Maybe, in that case, we can reuse the `CONFIG_KEYS` that would return an empty array for observing all settings and `false` for disabling observing at all? I just thinking aloud - Like `CONFIG_KEYS` sounds reasonable. We could support and maintain it in the future, even after implementing the \"observability\" to the MetaManager then `ALWAYS_UPDATE` ... I don't know :)" + }, + { + "prediction": "I think this should be `clang-format on` instead of `clang-format off`", + "reference": "A \"tab difference\"? As in, there are tab characters somewhere? This disabling of clang-format for all the code here seems like overkill. Are you sure there's not some other solution? I don't really understand the problem though. Do you mean clang-format-diff?" + }, + { + "prediction": "Why is this needed?", + "reference": "Could you please leave the explicit imports?" + }, + { + "prediction": "I think this should be `if (methodConfigMap.get(methodConfigProto.getName()) == null)`", + "reference": "Can we check for containsKey here?" + }, + { + "prediction": "I think we should use `fmt.Fprintln(os.Stderr, usage)` instead of `fmt.Fprintln(os.Stderr, usage)`", + "reference": "Exit successfully. We served the help the user wanted." + }, + { + "prediction": "What's the difference between `InitialWorkingDir` and `InitialPackagePath`?", + "reference": "Had to rename this because `InitialPackage()` already existed." + }, + { + "prediction": "Use the new Ruby 1.9 hash syntax.
Prefer single-quoted strings when you don't need string interpolation or special symbols.
Prefer single-quoted strings when you don't need string interpolation or special symbols.
Prefer single-quoted strings when you don't need string interpolation or special symbols.
Prefer single-quoted strings when you don't need string interpolation or special symbols.
Prefer single-quoted strings when you don't need string interpolation or special symbols.", + "reference": "Can we put this in a different helper?" + }, + { + "prediction": "(style) line over 80 characters", + "reference": "I'm not sure where your 31 comes from? I see 15 here and 2 above for pc and flags, for 17 total beyond the SIMD." + }, + { + "prediction": "Shouldn't this be `@Path(\"termsOfUse\")`?", + "reference": "If you want, you could change this to `allowCors(response` (like in \"version\", above) to allow Cross-Origin Resource Sharing. I'm sort of wondering what's returned if no API terms of use are set." + }, + { + "prediction": "I think this should be `super.onConfigurationChanged(newConfig);`", + "reference": "Why do we need to override this if all we're doing is passing it up?" + }, + { + "prediction": "I think this should be `sendAllControls(FALSE, FALSE, TRUE);`", + "reference": "Just wondering whether it's safe to send all CQDs to the child compiler. As this missing CQD is causing trouble, maybe some other user CQDs that now get sent could also cause the statement to fail? Also, if I have a table with a nullable unique column, should I have to set this CQD to create another table like it, or should the CREATE TABLE LIKE work without the CQD?" + }, + { + "prediction": "I think this should be `DAGSTER_EARLIEST_RELEASE = \"0.12.4\"`", + "reference": "EARLIEST_TESTED_RELEASE might be slightly more clear" + }, + { + "prediction": "I think this should be `\\bpylint:\\s*([^;#]+)[;#]{0,1}`", + "reference": "I think replacing `.*` with `\\s*` from after the hash makes sense, but not the rest of the changes." + }, + { + "prediction": "I think this should be `bool` instead of `bool`", + "reference": "interesting .. did not know varint tag covered bool as well" + }, + { + "prediction": "I think this should be `H2O_VECTOR(H2O_VECTOR(H2O_VECTOR(H2O_VECTOR(H2O_VECTOR(H2O_VECTOR(H2O_VECTOR(H2O_VECTOR(H2O_VECTOR(H2O_VECTOR(H2O_VECTOR(H2O_VECTOR(H2O_VECTOR)))))) * H2O_VECTOR(H2O_VECTOR(H2O_VECTOR(H2O_VECTOR(H2O_VECTOR(H2O_VECTOR(H2O_VECTOR(H2O_VECTOR(H2O_VECTOR(H2O_VECTOR(H2O_VECTOR(H2O_VECTOR(H2O_VECTOR(H2O_VECTOR))))))))) * H2O_VECTOR(H2O_VECTOR(H2O_VECTOR(H2O_VECTOR(H2O_VECTOR(H2O_VECTOR(H2O_VECTOR(H2O_VECTOR", + "reference": "Could you please elaborate the reason for not using `gkc_summary` like the values above? I ask this, because I assume what we want to collect is a histogram of event loop latency, and we use `gkc_summary` for collecting histograms." + }, + { + "prediction": "I think this should be `this.txs[t]._getHash()`", + "reference": "getHash should be a public and without an `_` if used here." + }, + { + "prediction": "I think this should be `blk.Height == 0`", + "reference": "Unrelated to these changes -- we will probably want some special handling for genesis block validation." + }, + { + "prediction": "I think this should be `SetDiskBlockCacheFraction`", + "reference": "This is probably overkill since we don't actually need to pass this specific interface anywhere, but I don't mind it!" + }, + { + "prediction": "I think this should be `d.receivedPeers[addr.ByteString()] = struct{}{}` and not `d.receivedPeers[addr.ByteString()] = struct{}{}", + "reference": "@janos I moved this back here, to avoid having multiple add peer calls being handled. I think it's either this or a global lock across the whole function. I think this is a better approach, especially since `hive.Broadcast` is blocking . We can remove the map entry on errors if needed. LMKWYT?" + }, + { + "prediction": "I think we should use `approve_response_path` instead of `approve_response_path`", + "reference": "Minor: can we put the conditional outside of the partial?" + }, + { + "prediction": "Why is this change needed?", + "reference": "We need to find something more efficient than this. We can probably just check the first element and assume the type list is consistent.." + }, + { + "prediction": "I don't think this is a good idea, but I think it would be better to use `fmtJobInitTypeHelp` instead of `fmtJobInitTypeHelp`.", + "reference": "How \" via service code in response to event.\"? I don't think we'll get in the no schedule option to the release. We should probably wait for some customer feedback first to make sure we're addressing different event-triggers the best way" + }, + { + "prediction": "Why is this removed?", + "reference": "Please move unrelated formatting changes to their own PR (same with the resources.py file)." + }, + { + "prediction": "I think this should be `window.setWindowState(window._state_before_fullscreen & ~Qt.WindowFullScreen)` instead of `window.setWindowState(window._state_before_fullscreen & ~Qt.WindowFullScreen)`", + "reference": "Make this a public attribute (remove the leading `_`) if you want to access it from the outside." + }, + { + "prediction": "I think this should be `if (!browser.firefox) {`", + "reference": "this conditional is useless now so it should be removed" + }, + { + "prediction": "I think this should be `static_cast(i);`", + "reference": "`vecofstructs->size()` already returns a `uoffset_t`. So if you just change the type of `i`, you don't need any casts." + }, + { + "prediction": "I think it would be better to use `ConfigProto.getDefaultInstance()` instead of `ConfigProto.getDefaultInstance()`.", + "reference": "Nit: Maybe merge this with the configProto check on line 208? Don't feel that strongly though, please keep separate if you prefer." + }, + { + "prediction": "Why is this change needed?", + "reference": "I know we already did this in 4.0 so carry on, but I'm facepalming here we should've made an overrided setMessageHandler that sets ismaster to true when hello is present. Esp in 4.0 where we already have some overrides written. We can keep going here and maybe open a ticket to some effect of that solution" + }, + { + "prediction": "I think this should be `skip_to_first_result` instead of `skip_to_first_result`", + "reference": "I believe we could use `link_to` here (although not super important). Also, we should internationalize this value. I'm not 100% sure what our process is for adding new UI strings these days (e.g. skip the specs that will fail if we add a new key to only one language, use Google Translate to translate the value for us, some other option)." + }, + { + "prediction": "I think this should be `if (result == VK_SUCCESS || result == VK_INCOMPLETE)` instead of `if (result == VK_SUCCESS && pProperties)`", + "reference": "This was already in vkGetPhysicalDeviceDisplayProperties2KHR..." + }, + { + "prediction": "I think this should be `IsDockerEngineRunning` instead of `IsDockerEngineRunning`", + "reference": "nit: I'd expect a public method called IsDockerEngineRunning to return a boolean yes/no, not the error message. Can we change either the return value or the name? Something like `CallDockerEngine`" + }, + { + "prediction": "Why is this needed?", + "reference": "If i remembered correctly, type_name is '{RESOURCE_TYPE}/{RESOURCE_NAME}', if type_name is 700 max then name cannot exceed that size" + }, + { + "prediction": "I think this should be `GetBufferIdentifier(buf, offset, size_prefixed=False)` instead of `GetBufferIdentifier(buf, offset, size_prefixed=False)`", + "reference": "When calling functions with keyword arguments: please provide the arguments as keyword arguments, not positional arguments." + }, + { + "prediction": "I don't think we need to change the default value of `act_cfg` to `None`.", + "reference": "We may follow the argument order: conv_cfg, norm_cfg, act_cfg." + }, + { + "prediction": "I don't think we need this method, but I think it's a good idea to add it to the `options` hash in the `options` hash.", + "reference": "`options['binary'] = WebDriver::Chrome.path` if set?" + }, + { + "prediction": "I think this should be `#include ` instead of `#include `", + "reference": "folly library should be put on the top." + }, + { + "prediction": "I think this is a bit confusing, but I don't think we need to check for `xlink:?` here.", + "reference": "Do we have to restrict this to SVG elements? I think setting namespaced attributes on normal dom elements (while not as common) is still valid, so perhaps we can save some bytes by removing the `isSvg` check?" + }, + { + "prediction": "I don't think we need to call `toPhysicalRow` here. I think we should use `this.hot.rowIndexMapper.isHidden(this.hot.toPhysicalRow(row));` instead of `this.hot.rowIndexMapper.isHidden(this.hot.toPhysicalRow(row));` and `this.hot.rowIndexMapper.isHidden(this.hot.toPhysicalRow(row));` and `this.hot.rowIndexMapper.isHidden(this.hot.toPhysicalRow(row));`", + "reference": "Please add it to the `REMOVED_HOOKS` constant." + }, + { + "prediction": "I think this should be `var shadowSupport = axe.testUtils.shadowSupport;` and `var fixtureSetup = axe.testUtils.fixtureSetup;`", + "reference": "This variable needs `.v1` at the end of it, or the tests below need it. There are some test failures as a result" + }, + { + "prediction": "I don't think we need to do this, but I think it would be better to use `Account::Access.spam!` instead of `Account::Access.spam!`", + "reference": "Is this access protected so that only admins can access this route?" + }, + { + "prediction": "(style) line over 80 characters", + "reference": "What happens if the minimum x coord is > 0? This will incorrectly set it as zero, right?" + }, + { + "prediction": "I think this should be `409` instead of `409`.", + "reference": "I think you want to look at current pending + batchSize and if that is > o.maxp no?" + }, + { + "prediction": "I think this should be `Ok` instead of `Internal`.", + "reference": "Should this be `codes.Error`? `codes.Internal` was an error status before." + }, + { + "prediction": "Do we need this to be `respond_to` instead of `respond_to`?", + "reference": "I don't think you need these lines." + }, + { + "prediction": "Why is this change needed?", + "reference": "You didn't mean to export this, right?" + }, + { + "prediction": "I think this should be `Ruby` instead of `Ruby`", + "reference": "Simple Notification **Service** (singular)" + }, + { + "prediction": "why is this needed?", + "reference": "Do we still need this?" + }, + { + "prediction": "Why is this removed?", + "reference": "We do have a disconnect between the privateMarkerTransactionFactory.getSender() call and the createPrivateMarkerTransaction() call. When the plugin receives the call to create the PMT it does not know what the sender was returned by the other call. At a minimum we need to pass in the sender to the second call. I would prefer that the plugin does the locking if that is necessary. If you are using random keys you don't have to lock! Besu could signal to the plugin when a PMT was un- or successfully added to the pool using a callback. Callback could be null if this is not needed. The plugin would have to be able to get the nonce for a certain key from besu. What do you think?" + }, + { + "prediction": "Why is this change needed?", + "reference": "This is a bit inconsistent with the `ErrorStartHourGreaterThanEnd` in the previous file. Wouldn't `ErrorDefault``fit better here?" + }, + { + "prediction": "I think this should be `TestNetworkPolicyStats` instead of `TestNetworkPolicyStats`", + "reference": "I think it will revert the change @antoninbas did on purpose 05eee251c9c53400277def576f92d614ca234898" + }, + { + "prediction": "why not use wireguard.cali instead of wireguard.cali?", + "reference": "nit: a switch perhaps?" + }, + { + "prediction": "I don't think we need this link, but I think it would be better to have a `<%= opensearch_catalog_path(:format => 'xml', :only_path => false) %>` in the `<%= opensearch_catalog_path(:format => 'xml', :only_path => false) %>` tag.", + "reference": "Would it make sense for `opensearch_description_tag` to have default values for the title and href attributes?" + }, + { + "prediction": "I think this should be `errTLFJournalDisabled` instead of `errTLFJournalDisabled`.", + "reference": "Just noticed this while debugging -- it's unlikely to be causing issues in practice." + }, + { + "prediction": "I don't think we need to change the timeout here.", + "reference": "That seems unrelated - did that fix a random test failure you noticed while working on this issue?" + }, + { + "prediction": "I think this should be `if (base != null && base.file() != null)`", + "reference": "This kind of concern should be handled in the `TableMetadata` update methods. This is similar to `metadata.rollbackTo`, which not only sets the current version, but also updates the table history. I think that all of those methods should add the current object's `file.location()` to the previous metadata location list, if it is non-null. That way, the caller never needs to remember to update it." + }, + { + "prediction": "I think this should be `collect_mlvl_tensor_multi`", + "reference": "We need to know why all the tensors are detached in `get_bboxed`." + }, + { + "prediction": "I think this should be `@classmethod`", + "reference": "Unrelated but shouldn't this raise `attribute-defined-outside-init`?" + }, + { + "prediction": "I think this should be `create_no_window=False` instead of `create_no_window`", + "reference": "I would rather no have this as a `kwarg` as it encourages \"growth\" which lead to an unweildy constructor in other classes. Let's add a method or property to take care of this instead as I think it's usage is going to be quite low." + }, + { + "prediction": "Layout/MultilineMethodCallBraceLayout: Closing method call brace must be on the line after the last argument.", + "reference": "You just changed my life :) I grew very attached to this safe nav approach when working with Groovy years ago `obj?.method`. Glad to see its now a part of Ruby!" + }, + { + "prediction": "I don't think we need to add the `clear-fix` class here.", + "reference": "do you mean 'clearfix' class?" + }, + { + "prediction": "I think this should be `causalConsistency=true` instead of `causalConsistency=false`", + "reference": "`causalConsistency` is already defined on `SessionOptions`. We do not need to duplicate it here." + }, + { + "prediction": "Why is this needed?", + "reference": "This should not be included since there are no code changes." + }, + { + "prediction": "I think this should be `c.Header().Set(\"Access-Control-Allow-Origin\", setting.HTTP.AccessControlAllowOrigin)`", + "reference": "If all we need just response 200, then we could use `c.Status(http.StatusOK)` here." + }, + { + "prediction": "I think this should be `apiv2.ResourceKey{Kind: apiv2.KindNode, Name: hostname, Namespace: \"node\", Name: hostname, Namespace: hostname, Namespace: hostname, Name: hostname, Namespace: hostname, Name: hostname, Namespace: hostname, Namespace: hostname, Namespace: hostname, Name: hostname, Namespace: hostname, Namespace: hostname, Name: hostname, Namespace: hostname, Namespace: hostname, Name: hostname, Namespace: hostname, Name: hostname, Name: hostname, Namespace: hostname, Namespace: hostname, Kind: apiv2.KindNode, Name: hostname, Namespace: \"node\", Name: hostname, Namespace: hostname, Namespace: hostname, Name: hostname, Namespace: hostname, Name: hostname, Namespace: hostname, Namespace: hostname, Namespace: hostname, Name: hostname, Namespace: hostname, Namespace: hostname, Name: hostname, Namespace: hostname, Namespace: hostname, Name: hostname, Namespace: hostname, Name: hostname, Name: hostname, Namespace: hostname, Name: hostname, Namespace: hostname, Name: hostname, Namespace: hostname, Name: hostname, Namespace: hostname, Namespace: hostname, Namespace: hostname, Name: hostname, Namespace: hostname, Namespace: hostname,", + "reference": "Should be checking for error here" + }, + { + "prediction": "Why is this change needed?", + "reference": "Put a space between `(array)` and `$this` and I'll merge it" + }, + { + "prediction": "I think this should be `func Stack(buf[]byte, all bool) int { return len(buf) }`", + "reference": "You could add this to stack.go, which has similar functions (to avoid yet another small file). None of these are likely to be implemented considering what TinyGo is designed for." + }, + { + "prediction": "I think this class should be `NotificationHolder` instead of `NotificationHolder`", + "reference": "the class names `NotificationHolder` and `NotificationsHolder` are fairly difficult to quickly tell apart, particularly since they are often used close to each other" + }, + { + "prediction": "Why is this needed?", + "reference": "Avoid wildcard imports" + }, + { + "prediction": "Why is this change needed?", + "reference": "Need to do this to unblock mockgen. The interface method needs to be public to be visible in another package. The right fix is to delete this test only interface method" + }, + { + "prediction": "I think we should check if `loadbalanced` is present in the record, and if it is present in the record, we should check if it is present in the record.", + "reference": "same question here as I have on the other file regarding doing this check here vs L112 vs not at all" + }, + { + "prediction": "I think we should make this `!openbsd` package.", + "reference": "Adding `// +build !windows` (as a separate line) will do the same for Windows. So while you are at it we might add it as well." + }, + { + "prediction": "Why is this removed?", + "reference": "this is used as important way of mocking for unit tests, FYI" + }, + { + "prediction": "I think this should be `muted_alpha=0.2` instead of `muted_alpha=0.2`", + "reference": "Sorry, should have been clearer, I meant adding this to the ``Histogram`` options one line above." + }, + { + "prediction": "Why is this change needed?", + "reference": "Just ignorance on my part, but what is the significance of the change from C23NHe2 to C23NHx2?" + }, + { + "prediction": "I think this should be `class_=(np.ndarray, list)`", + "reference": "What about tuples or pandas series? Do we want to support lots of different types or force a single type?" + }, + { + "prediction": "Why is this removed?", + "reference": "Small thing, without the check above this will throw a NoNodeException if the path doesn't exist. Maybe this can be wrapped in a try/catch just for the NoNodeException, so that the more user-friendly message used above can be thrown instead: `throw new KeeperException.NoNodeException(\"No collection found at path: \" + path);` Just a thought, I'm not even sure it's worth it." + }, + { + "prediction": "Metrics/LineLength: Line is too long. [98/80]", + "reference": "I don't know why this worked before, but we should be explicit on not verifying that a blank string (allowed as a way to remove a url/download_url) is a valid url as it is not." + }, + { + "prediction": "I think we should remove the deprecated message as well.", + "reference": "Do we want to raise an error here instead of warning? Or would it be better to just see if Bolt happens to succeed, and let it fail on it's own if it fails? I'd lean towards raising an error, but that's different from \"removing support\"." + }, + { + "prediction": "I don't think we need to do this, but I think it would be better to use `self.filter_options(unfiltered)` instead of `self.filter_options(unfiltered)`", + "reference": "This is kind of confusing with the other `filter_options`." + }, + { + "prediction": "I think we should be able to handle the favorites here. I think we should be able to handle the favorites here.", + "reference": "Could the `deleteFromFavorites` happen when `head == nil` because it's not initialized yet somehow but not because TLF doesn't exist? I was concerned if this would make it possible in any way to have favorites seemingly deleted on a device while it's not actually happened on server." + }, + { + "prediction": "I think this should be `int64_t rowCount = 0;`", + "reference": "It doesn't look like this particular \"rowCount\" variable is used anywhere. I suppose we could delete it. The code change is harmless though." + }, + { + "prediction": "I think this should be `http.StatusOK` instead of `204`.", + "reference": "Hmm, probably we should instead write whatever `status` is returned instead of coding a special case." + }, + { + "prediction": "I think this should be `if in.HTTPMatch != nil { out.HttpMatch = &proto.HTTPMatch{Methods: in.HTTPMatch.Methods}}`", + "reference": "Could using the pointer-to-struct approach here cause confusion later? We've had several problems of that kind in the past. What does it mean if the struct is non-nil but its fields are nil? Is that even allowed? (libcalico-go question) Are there any validation requirements for this new rule addition; should it only be allowed if `Protocol == TCP`, for example?" + }, + { + "prediction": "Layout/MultilineMethodCallBraceLayout: Align the parameters of a method call if they span more than one line.
Layout/MultilineMethodCallBraceLayout: Align the parameters of a method call if they span more than one line.
Layout/MultilineMethodCallBraceLayout: Align the parameters of a method call if they span more than one line.
Layout/MultilineMethodCallBraceLayout: Align the parameters of a method call if they span more than one line.
Layout/MultilineMethodCallBraceLayout: Align the parameters of a method call if they span more than one line.
Layout/MultilineMethodCallBraceLayout: Align the parameters of a method call if they span more than one line.
Layout/MultilineMethodCallBraceLayout: Align the parameters of a method call if they span more than one line.
Layout/MultilineMethodCallBraceLayout: Align the parameters of a method call if they span more than one line.
Layout/MultilineMethodCallBraceLayout: Align the parameters of a method call.", + "reference": "why this recursive relationship definition?" + }, + { + "prediction": "Is there a reason why this is optional? I don't think it's necessary.", + "reference": "More sentence, less list please. > Encoding of the handler. This field is optional. We don't need to mention exactly what it's used for because that list can expand (as it has already in this change)." + }, + { + "prediction": "I think this should be `gocloud.dev/blob/bytes_read` and `gocloud.dev/blob/bytes_written`", + "reference": "Not part of this PR, but should the section above say what the name of the metric is for each method?" + }, + { + "prediction": "I think this should be `valueDisplay = (metric as IGaugeMetric).LastValue.Value.ToString();`", + "reference": "there are changes that are upcoming to this section. For now, this works (to demo the usage of Gauge), and the changes to this section are coming as separate PRs." + }, + { + "prediction": "I think this should be `if IsProcessBackground(t.fd)` instead of `if IsProcessBackground(t.fd)`", + "reference": "This is equivalent to stdout. Why not just replace stdin with stdout in `IsProcessBackground`?" + }, + { + "prediction": "I think this should be `if (p_jmsg[\"compress_method\"] != nullptr)`", + "reference": "Rather than test for nullptr, just treat the pointer as a bool, i.e. `if(p_jmsg[\"compress_method\"])`" + }, + { + "prediction": "I think we should use `Platform.runLater` instead of `Platform.runLater`", + "reference": "Can we move the remaining code of this method to a new method? I don't like the `return;` here, we could try to replace it with an `if ... else ...` syntax. What do you think?" + }, + { + "prediction": "I think this should be `resource_changed` instead of `on_resource_changed`.", + "reference": "nitpick: _and collections_" + }, + { + "prediction": "(style) line over 80 characters", + "reference": "I believe these need to be explicitly initialized in `proxy_send_prepare`" + }, + { + "prediction": "I think this should be `time.time()` instead of `time.time()`", + "reference": "This is unnecessary. The declaration of `t0` on line 179 is still in scope inside the `except` block." + }, + { + "prediction": "I think this should be `@see request::border.border_color_marked`", + "reference": "The `border_color_`... properties don't support solid colors, not only this one. Maybe `@param solid_color` should be used instead of adding this note to every one of them?" + }, + { + "prediction": "I think this should be `.+\\\\.(svg|png|jpg|css)`", + "reference": "We don't need this file, we can use the one that is in the grid-ui directory" + }, + { + "prediction": "I think this should be `if (path.endsWith(\"/\") && !isEmptyLine(path)) {`", + "reference": "FYI: inlined this method in the internal review." + }, + { + "prediction": "Why is this removed?", + "reference": "Werid, the checksum between this file and the one on branch `develop` is the same not sure why it's showing a diff" + }, + { + "prediction": "I think we should use `metric.Meter.Name + metric.Name` instead of `metric.Meter.Name + metric.Name`", + "reference": "Prometheus doesn't have concept of Meter (like OTLP does).. Trying to see if this is a good approach to use the meter name as namespace, to avoid name collisions, when same instrument name is used across multiple instruments, from different Meter." + }, + { + "prediction": "Why not use `is_string` here?", + "reference": "The formatting of this is a bit strange; I'd suggest collapsing this back to a single line, and moving the `&&` to the beginning of the second line to meet the line length restriction." + }, + { + "prediction": "I don't think we need to check if `segments == NULL` here.", + "reference": "One or the other should be non-NULL. If segments is NULL, the alloc above will have size zero, which we do not allow (there's no header): it should assert in debug build. So there should be asserts that one is non-NULL at the top, and if there really needs to be some kind of defensive check down here, it should cover the alloc too." + }, + { + "prediction": "I don't think we need to check if `first_name` and `last_name` are present. I think we should check if `first_name` and `last_name` are present.", + "reference": "I'm surprised rubocop isn't picking up singe quotes?" + }, + { + "prediction": "I think we should use `time.Unix(2016-09-27T15:50Z)` instead of `time.Unix(2016-09-27T15:50Z)`", + "reference": "Is this line still needed?" + }, + { + "prediction": "Why is this change needed?", + "reference": "Maybe use specific values for all the watt.times fields? Even better, have a const for it at the top of the file?" + }, + { + "prediction": "I think this should be `PATTERNS_TABLE_DIR`", + "reference": "nit: UNICODE_BRAILLE_TABLE or something might be a better name for this. IMO, braille-patterns.cti is a terrible name. This table allows Unicode braille characters to be used anywhere to produce raw dots." + }, + { + "prediction": "Why is this removed?", + "reference": "Why are we removing the option to skip machine pool generation?" + }, + { + "prediction": "I think this interface should be `IHttpStartLineHandler` instead of `IHttpStartLineHandler`", + "reference": "\"Request line\" here too." + }, + { + "prediction": "I think this is a good idea, but I don't think we need to check if the NPC type is valid.", + "reference": "Please remove this." + }, + { + "prediction": "I think we should use `Account.paginate_by_sql(accounts.to_sql, per_page: limit, page: page)` instead of `Account.paginate(accounts.to_sql, per_page: limit, page: page)`", + "reference": "Weird bug. Combining those joins and group calls was triggering AREL to generate the sql cache inside of will_paginate before the final call. This is a harmless workaround, but hints that will_paginate might becoming seriously deprecated." + }, + { + "prediction": "Metrics/LineLength: Line is too long. [82/80]", + "reference": "This can be simplified as discussed before." + }, + { + "prediction": "Why is this needed?", + "reference": "Does `internal` or `test` in the file name actually do anything here? Or is that just to show these functions are only for tests?" + }, + { + "prediction": "I think this should be `Transaction(true).serialize(true).should.equal(hexa);`", + "reference": "does this boolean indicate unsafe serialization?" + }, + { + "prediction": "I think this should be `copyBundledRealmFiles` instead of `copyBundledRealmFiles`", + "reference": "Maybe rewrite to `Is only implemented for React Native`? (I assume that is the case)." + }, + { + "prediction": "I think it would be better to use `methodModel.getInputField(pagingParams.getNameForMaxResults());` instead of `methodModel.getInputField(pagingParams.getNameForMaxResults());` and `methodModel.getInputField(pagingParams.getNameForMaxResults());`", + "reference": "Do we not need this in Java because Java *is* handling map responses?" + }, + { + "prediction": "I think this should be `accepted_messages` instead of `accepted_messages`", + "reference": "Maybe \"For configuring which scheduler messages can be received.\"?" + }, + { + "prediction": "I don't think we need to clear the object manager for saving memory.", + "reference": "It will stop working with orm, so this is not a good fix, Try using some method in a common interface" + }, + { + "prediction": "I think we should use `AzureSdkDiagnosticListener` instead of `AzureSdkDiagnosticListener`", + "reference": "`s` is not necessarily the same as `sampler` - sampler could be null and this crazy lambda underneath falls back to something. So please use `s`" + }, + { + "prediction": "I don't think we need to add the definition for the body field. I think it would be better to add the definition for the body field.", + "reference": "This code is a bit confusing. Should HttpParameterType set to the original one or it is always BODY?" + }, + { + "prediction": "Why is this change needed?", + "reference": "Why did this change?" + }, + { + "prediction": "I think this should be `newProtoForTableStatus(result.Table.TableStatus)` instead of `newProtoForTableStatus(result.Table.TableStatus)`", + "reference": "nit: `status` collides with imported package named `status`" + }, + { + "prediction": "I think we should use `IsWritingCatchpointFile` instead of `IsWritingCatchpointFile`", + "reference": "\"memory pressure could be decreased\" --> \"to avoid memory pressure\"" + }, + { + "prediction": "I think we should use `random.randint(2000, 1 << 31)` instead of `random.randint(2000, 1 << 31)`", + "reference": "I think it would make sense to fetch the cache values after deleting the listens and making sure they are what we expect." + }, + { + "prediction": "I think this should be `this.headerStateManager.mapState(() => { return { collapsible: false }; });`", + "reference": "I'm thinking about covering this change with the test. Can you do that?" + }, + { + "prediction": "I think this should be `*net.UDPConn`", + "reference": "Not sure if it's a good idea to remove stop channel. If user cancels connection how will you stop pinger?" + }, + { + "prediction": "I think we should use `docker.AuthConfiguration` instead of `docker.AuthConfiguration`", + "reference": "Could you please add a `TODO` here that we won't need `docker.AuthConfiguration` anymore when we migrate to SDK's pull image?" + }, + { + "prediction": "I think this should be `public ITaskItem[] BlobNames { get; set; }`", + "reference": "Is there a scenario were we want to get an arbitrary set of blobs that don't share a common root?" + }, + { + "prediction": "I think this should be `!spec.description.match(/type=regex/);`", + "reference": "Can you leave a note about why we are skipping regex tests?" + }, + { + "prediction": "I think this should be `InitFSRepo(repoDir, newConfig)` instead of `InitFSRepo(repoDir, newConfig)`", + "reference": "This was the only caller of CreateRepo, so I inlined it." + }, + { + "prediction": "I think this should be `authPath`", + "reference": "As this is already a child of `auth`, I think we can shorten this to `path`" + }, + { + "prediction": "I think this should be `if position in (textInfos.POSITION_FIRSTVISIBLE, textInfos.POSITION_LASTVISIBLE):`", + "reference": "This call should use element, not 0 I think." + }, + { + "prediction": "I think this should be `fetch_until_empty_page_threshold` or `partial_page_fetch_threshold`", + "reference": "This is missing the definition of `fetch_until_empty_page` - it needs to go in the config section above." + }, + { + "prediction": "Line is too long. [92/80]", + "reference": "I don't think this one needs to be changed since the only previous path is already an absolute one." + }, + { + "prediction": "Why not use the `table.locationProvider()` instead of `table.locationProvider()`?", + "reference": "Since we kept the original constructor we might not need this change now." + }, + { + "prediction": "I think this should be `LOG.debug(\"Refreshed [{}]\", fullName);`", + "reference": "There is already a log in `BaseMetastoreTableOperations` for this. It has the location, but not the table name. Maybe just add table name to that one." + }, + { + "prediction": "I think this should be `pipe-cd/pipe/pkg/filestore/minio` and not `pipe-cd/pipe/pkg/filestore/minio`", + "reference": "This should be in the last group." + }, + { + "prediction": "Shouldn't this be `_statsd?.Send()`?", + "reference": "I believe you should either remove this or rename the PR. You can't change the behavior of the tracer (even to fix a bug) in a PR named \"unit test improvements\"" + }, + { + "prediction": "I think this should be `k8s:defaulter-gen=true`", + "reference": "I've gone with this group name, however I'm open to suggestions on alternatives!" + }, + { + "prediction": "Why is this needed?", + "reference": "should this be GOQUORUM" + }, + { + "prediction": "I think this should be `checkCoinbase` and not `checkCoinbase`", + "reference": "I think checkCoinbase is not skipping checking coinbase. Instead, true-> checking num(coinbase tx) = 1, false -> checking num(coinbase tx) = 0." + }, + { + "prediction": "Why is this change needed?", + "reference": "same here, move it out" + }, + { + "prediction": "I think this should be `#define KOKKOS_TOOLS_INDEPENDENT_BUILD` instead of `#define KOKKOS_TOOLS_INDEPENDENT_BUILD`", + "reference": "Can you elaborate on why you need different behavior depending on Tools being built independently or not?" + }, + { + "prediction": "Align the parameters of a method call if they span more than one line.", + "reference": "because of the above if statement will requires both ex_save and guid_save to be true, this code will always return 'example answer'. This should be revised with `example_answer.present?` and `guidance.present?`" + }, + { + "prediction": "I think this should be `golang.org/x/net/context`", + "reference": "why not context from stdlib?" + }, + { + "prediction": "I think we should add the `FlavorIEEECRC32OverProto3Binary` to the checksum.", + "reference": "Just saw this and wasn't able to hold myself from renaming :-)." + }, + { + "prediction": "Why is this change needed?", + "reference": "Can we keep the other assertion too? I think it's helpful to ensure that the uninstall function was called too" + }, + { + "prediction": "I think this should be `RSpec.warn_with` instead of `RSpec.warn`", + "reference": "`warn_with` prefixes the message with `WARNING:`, right? So this will put `WARNING:` twice. It would be good to verify all the warnings look good after this change, given how easy it is to make a simple mistake like this :(." + }, + { + "prediction": "I think this should be `int64(time.Duration)` and not `uint64(time.Duration)`", + "reference": "FYI In the message queue I use the term \"stamp\" to refer to the time-like mark associated with each message. It's opaque to the queue/pool and should make no difference if the stamps and age limit were converted to seconds. So this could then become `Stamper` with `CurrentStamp()` method, no reference to \"blocks\" or height etc. The wrapper struct could be `StampedMessage. The interpretation as block height is deferred to the user/constructor that hooks things up, the \"business logic\". This is just an observation, take or ignore as you wish." + }, + { + "prediction": "I think this should be `requests_response(body, status_code=200)`", + "reference": "Can we remove the `TODO` statement here? (as this is actually fixed in this PR)" + }, + { + "prediction": "I think this should be `DisplayPreference` instead of `DisplayPreference`.", + "reference": "m prefix no longer in code style" + }, + { + "prediction": "I think this should be `Filter(ns, c Condition)` instead of `Filter(ns, c Condition)` and `Filter(ns, c Condition)`", + "reference": "need to filter the entities in buffer as well" + }, + { + "prediction": "I think this should be `de.danoeh.antennapod.antennapod.core.glide.FastBlurTransformation`", + "reference": "Please add spaces before and after the equals sign" + }, + { + "prediction": "Why remove this line?", + "reference": "This file could also be cleaned up/deleted. But lets do this separately after ensuring all the event logging has been ported to the current logmxevent_traf.cpp file completely." + }, + { + "prediction": "Line is too long. [89/80]", + "reference": ":thinking:, the line number here is the line of the example (`example.location`), that's probably why I finally chose to display the example title because it's what can be found on this line, and saying that the error is from there is confusing. But presenting the actual failures is indeed better, so maybe we can get the failure actual line number from the exception backtrace and then output two distinct lines for failures like this one?" + }, + { + "prediction": "I think this should be `create_no_window`", + "reference": "We shouldn't add this as a new `kwarg` here. This should all be done on the options class" + }, + { + "prediction": "I think this is a bit confusing, but I'm not sure if we need to change this to `true` instead of `false`?", + "reference": "Should this be `OS_VOLUME_SUPPORT` to match the symbol key names?" + }, + { + "prediction": "Why is this needed?", + "reference": "In C, file scope variables are already initialized to 0 so the \"= NULL\" is redundant. Not a big deal." + }, + { + "prediction": "I don't think we need this change.", + "reference": "on line 40, the `relevantNode` can change and therefore the `doc` might change too for the lookup on line 43. I think this code should be moved to where the `doc` is actually being used" + }, + { + "prediction": "Shouldn't this be `ArgumentOutOfRangeException`?", + "reference": "nit: just to be similar to others, can you change to interpolation?" + }, + { + "prediction": "I think this should be `FullCertChain` instead of `FullCertChain`", + "reference": "Would this make more sense as an option on an Issuer resource (specifically on the CA issuer) rather than as a flag? It's not ideal that we have a flag that _looks_ like it could be 'global' but is actually not IMO. Also, if Istio is reading the CSR object, is it possible for it to read the CA from the CSR itself too and append the two instead? Not sure if we ever decided whether to use annotations for this purpose @JoshVanL?" + }, + { + "prediction": "I think this should be `SERVER_TIME_F` or `SERVER_TIME_F`", + "reference": "Because this acts as a coordination point between client and server, it should go in core.py instead of const.py (so eventually the server could use it to guarantee that it delivers dates in the expected format)." + }, + { + "prediction": "I think this should be `if err != nil && apierrors.IsNotFound(err) { return nil, err }`", + "reference": "expected statement, found 'else' (and 1 more errors)" + }, + { + "prediction": "I think this should be `MakeRandomID(public)` instead of `MakeRandomID`", + "reference": "IMO this doesn't need to be in the `kbfs` repo. And I don't like setting the byte. We can always compare with the randomly generated `TlfID`." + }, + { + "prediction": "I think this should be `CloudHubControllerModuleName`", + "reference": "What's the difference from ModuleName in `pkg/apis/meta/v1alpha1/types.go`?" + }, + { + "prediction": "I think we should remove the `System.Security.Cryptography` from this file.", + "reference": "We shouldn't be changing this task as we are trying to break our dependency on it and switch to using the shipped version." + }, + { + "prediction": "(style) line over 80 characters", + "reference": "Shouldn't we have a low bar for generating out-of-line context switch, i.e., if we need save more than n (3?) simd or m (4) gprs we should go out-of-line? And it should be || instead &&. It seems the bar is still very high after this change." + }, + { + "prediction": "I think this should be `go.opentelemetry.io/otel/sdk/instrumentation`", + "reference": "Should the API have a dependency on the SDK?" + }, + { + "prediction": "I think this should be `it.skip` instead of `it.skip`", + "reference": "Is this a sometimes leaky test?" + }, + { + "prediction": "I think this should be `for f := v.cs.f.Fresh(); ftv.contains(f) { f := v.cs.f.Fresh() f = v.cs.f.Fresh() f = v.cs.f.Fresh() f = v.cs.f.Fresh() f = v.cs.f.Fresh() f = v.cs.f.Fresh() f = v.cs.f.Fresh() f = v.cs.f.Fresh() for f := v.cs.f.Fresh() f = v.cs.f.Fresh() f = v.cs.f.Fresh() f = v.cs.f.Fresh() f = v.cs.f.Fresh() f = v.cs.f.Fresh() f = v.cs.f.Fresh() f = v.cs.f.Fresh() f = v.cs.f.Fresh() f = v.cs.f.Fresh() f = v.cs.f.Fresh() f = v.cs.f.Fresh() f = v.cs.f.", + "reference": "It should be possible to create a test case that enter the loop. That would be a good enough test case for me. Have a look at the extern type inference test cases that already exist. Since you can just pick the type variables the extern type use, you should be able to create a conflict that requires this loop to fix." + }, + { + "prediction": "I think we should use `wxLang.Language` instead of `wxLang.Language`", + "reference": "It might make sense to log this." + }, + { + "prediction": "Do we need to do this in the `deep_dup` method?", + "reference": "Line is too long. [84/80]" + }, + { + "prediction": "I think this should be `goog:chromeOptions` instead of `goog:chromeOptions`", + "reference": "nice touch since Google likes to change things every now and then." + }, + { + "prediction": "Do we need this?", + "reference": "Thank you this is so much nicer than the old `Rails.configuration.branding['blah']['blah']['blah']` :)" + }, + { + "prediction": "I think this should be `backend_service_name` or `backend_service_name`", + "reference": "nit: Would you mind alpha-sorting this?" + }, + { + "prediction": "Shouldn't this be `manifest.content() == ManifestContent.DATA`?", + "reference": "For my understanding, the DATA manifest & DELETE manifest could share the same read / write path so I think we could use the common reader+writer. Is there any other reason that we need to make them separate paths ?" + }, + { + "prediction": "Line is too long. [89/80]", + "reference": "that change should be sufficient for avoiding the override of contact_us_url helper. The one defined at the .yml it is within a hash so no problem should arise." + }, + { + "prediction": "I don't think you need to change the name of the element, but I think it would be better to change the name of the element to something like `Erstellen und weiteres Element`.", + "reference": "We actually had a discussion about this exactly in #3470, some languages seem to go for one, some for the other " + }, + { + "prediction": "I think this should be `List grpcStreamingDescriptors();`", + "reference": "Is PHP the first dynamic MVVM language with grpc streaming support?" + }, + { + "prediction": "Shouldn't this be `if (tmpStream && !tmpStream->bad()) {`?", + "reference": "the `if` isn't necessary here; it's safe to call `delete` on `nullptr`" + }, + { + "prediction": "Shouldn't this be `size_t* removed`?", + "reference": "Change if the method's name finally changes to `clear_history` as proposed elsewhere" + }, + { + "prediction": "I don't think we need to import `documentationUtils` here.", + "reference": "can this one also be moved to the top of the file?" + }, + { + "prediction": "I think this should be `GroupMemberPod` or `GroupMemberGroup`.", + "reference": "So if I understand this correctly the externalEntities should be computed and stored in GroupMember, while current code usage of GroupMemberPod will be migrated to GroupMember later?" + }, + { + "prediction": "Why is this needed?", + "reference": "Don't we have tests to change after this breaking change? probably we're not using hard coded strings in our tests when we create a `Span`?" + }, + { + "prediction": "I think we should use `os.environ['GOOGLE_APPLICATION_CREDENTIALS']` instead of `os.environ['GOOGLE_APPLICATION_CREDENTIALS']`", + "reference": "will this fail if the env variable doesn't exist? Is this the preferred behaviour?" + }, + { + "prediction": "I think this should be `numpy.array([self._random.getReal64() for i in xrange(self._numColumns)], dtype=realDType)`", + "reference": "bad line wrap" + }, + { + "prediction": "Why is this needed?", + "reference": "What does the `8` here represent? Can you give it a name?" + }, + { + "prediction": "I think this should be `MPRester.get_download_info(os.environ[\"MP_API_KEY\"])`", + "reference": "`MPRester(os.environ[\"MP_API_KEY\"])` can be left simply as `MPRester()` and it will pick up the API key from the environment. What is the purpose of this file otherwise? Is it better suited for `dev_scripts`, or a test?" + }, + { + "prediction": "Align the parameters of a method call if they span more than one line.
Prefer single-quoted strings when you don't need string interpolation or special symbols.
Prefer single-quoted strings when you don't need string interpolation or special symbols.
Prefer single-quoted strings when you don't need string interpolation or special symbols.
Prefer single-quoted strings when you don't need string interpolation or special symbols.", + "reference": "Looks like there may be more changes to this file than intended?" + }, + { + "prediction": "why is this removed?", + "reference": "when message type is not expected, contine to next loop instead of return to finish infinite loop" + }, + { + "prediction": "I think this should be `time.Now()` instead of `time.Now()`", + "reference": "This change was not really intended but made by the linter of VS Code. And looking at other packages this looks like a best practise to place interal packages on the top and gh imports afterwards." + }, + { + "prediction": "I think this should be `delete(oldAWSMachineSpec, \"instanceID\")` instead of `delete(newAWSMachineSpec, \"instanceID\")`", + "reference": "instanceID should stay the same for a AWSMachine?" + }, + { + "prediction": "I think this should be `NO_DOWNLOAD` instead of `NO_DOWNLOAD`", + "reference": "Since this is a dict don't you want `False` or do we clean that up elsewhere?" + }, + { + "prediction": "I think this should be `host=localhost` instead of `host=localhost`", + "reference": "what's the reason you had to add the `host` argument to all `get_work` calls?" + }, + { + "prediction": "I don't think you need to do this.", + "reference": "This will never be a dataset so we can simplify the code here" + }, + { + "prediction": "I think this should be `AbstractBlockProcessor.skipZeroBlockRewards(boolean skipZeroBlockRewards)` and `AbstractBlockProcessor.skipZeroBlockRewards(boolean skipZeroBlockRewards, boolean skipZeroBlockRewards)`", + "reference": "This should be moved into the PrivacyBlockProcessor instead of adding the constructor here." + }, + { + "prediction": "I think this should be `insightfilestore` and `insightstore`", + "reference": "nit: Remove \"insightfilestore\". I think \"insightstore\" is good enough and as I see we are using that name at other places too." + }, + { + "prediction": "I don't think we need to change the method name to `bisect_round_started`.", + "reference": "It looks like you've removed `bisect_round_finished` but kept `bisect_round_started`. Seems a little odd that they aren't paired. Not sure if there's anything to do about that though..." + }, + { + "prediction": "Why do we need this?", + "reference": "I'm not sure how to fix the lint and mypy warnings on this line. I could just ignore them, but I feel like the linter should know this exists." + }, + { + "prediction": "Why is this change needed?", + "reference": "why remove `Symbol`?" + }, + { + "prediction": "This should be `\u00a3\u00a2\u00a5\u00a7\u20ac`", + "reference": "Why are currency signs considered punctuation? They technically fall under the BMP range for Currency Symbols `\\u20A0-\\u20CF` (covered in `getUnicodeNonBmpRegExp`, which is itself a misnomer)" + }, + { + "prediction": "I think this should be `phil(at)secdev.org` and `phil(at)secdev.org`", + "reference": "You have forgotten a coma `,`" + }, + { + "prediction": "`osp.join(out_dir, os.path.basename(img_meta['filename']))`", + "reference": "For different datasets, we may want to save the images differently. Sometimes the datasets are categorized into several subfolders, and we want to keep it when saving visualization results, and sometimes we just want to save all images in `out_dir`. An argument may be added to control the behavior." + }, + { + "prediction": "I think this should be `if (cmp != 0 || bb.get(ia) == '\\0') {`", + "reference": "if `other` could have a guaranteed `0` byte in it, this whole `if` could be removed, and above you could just add `|| c2 == '\\0'` to get the same effect?" + }, + { + "prediction": "Why not use `Boolean.class.isAssignableFrom(Catalog.class)` here?", + "reference": "nit: can this be a primitive value?" + }, + { + "prediction": "I think this should be `httpserver.RedirectToDir(r, r.Context().Value(httpserver.OriginalURLCtxKey).(url.URL))`", + "reference": "This maybe not what we want. If `rewrite` occurred before, `r.URL.Path` contains the result and we should use it. Otherwise `rewrite` middleware will disfunction when combining with `browser`." + }, + { + "prediction": "why is this change needed?", + "reference": "Why change this?" + }, + { + "prediction": "Why is this change needed?", + "reference": " _nitpick_ Isn't it now actually NotLogFakeHttpExceptions**Error**Listener ?" + }, + { + "prediction": "I think this should be `resourceDefinition.ResourceType = resourceType;`", + "reference": "Why not just look for the \"type\" property instead of creating a ResourceType property?" + }, + { + "prediction": "Why is this needed?", + "reference": "should use `bc.config.Blockchain.ChainID`" + }, + { + "prediction": "Why is this change needed?", + "reference": "this doesn't need to know about NativeClient" + }, + { + "prediction": "Why is this change needed?", + "reference": "I know we discussed if we should add in the resource_name to the hash, and I actually don't think it's required. The violation hash was recently updated (not released) to include the violated rule, so when the next release goes out, user's findings will get updated. The resource name doesn't hurt to have here, but not required." + }, + { + "prediction": "I don't think this is needed.", + "reference": "The variable name is also misleading imo. The width from the buffer comes from `wl_shm_buffer_get_width` (or a similar EGL thing), which is what gets encoded into `surface->texture->width`." + }, + { + "prediction": "I think this should be `recording_msid`", + "reference": "Why are you using these tags to carry these msids?" + }, + { + "prediction": "This should be `strcpy(s_val, tmp, flb_sds_len(tmp)) + 1`", + "reference": "flb_strdup() should do the work here. note: use Fluent Bit memory wrappers" + }, + { + "prediction": "I think this should be `protoc.go` instead of `protoc.go`", + "reference": "This line should be separated from the package declaration by one line as it is not the package description." + }, + { + "prediction": "Why is this change needed?", + "reference": "shadow: declaration of \"err\" shadows declaration at line 410 (from `govet`)" + }, + { + "prediction": "Why is this needed?", + "reference": "Maybe next time better to make separate PR?" + }, + { + "prediction": "I think it would be better to use `self.mask_head.is_in_onnx_export()`.", + "reference": "line 316 also handles this case, need to simplify the logic." + }, + { + "prediction": "I think we should use `gcsblob.OpenBucket: bucketName is required` instead of `gcsblob.OpenBucket: bucketName is required`", + "reference": "We used to have a simple check for bucket and object names, we then decided to remove it and rely on the backend service to check for the name. Is there any reason to add an empty name check now?" + }, + { + "prediction": "I don't think we need to use `std::chrono::duration_cast(max_blocking_time_point - std::chrono::steady_clock::now());` here.", + "reference": "Line too long" + }, + { + "prediction": "I think we should use `CONST_ME_FINE` here.", + "reference": "This isn't aligned though." + }, + { + "prediction": "`mean PAAHead does not support test-time augmentation`", + "reference": "it is mean -> it means PAAHead does not support test-time augmentation." + }, + { + "prediction": "I think this should be `plugins` instead of `plugins`", + "reference": "@lnielsen-cern thanks. I missed it :(" + }, + { + "prediction": "I think we should use `analytics.pagePath` instead of `analytics.pagePath`", + "reference": "@tofumatt, has it been changed intentionally? It doesn't seem to be required in IB, plus we haven't had `content-drilldown` before... If it has been changed intentionally, then should we update the `AnalyticsDashboardWidget` component to be use `content-drilldown` instead of `content-pages` as well?" + }, + { + "prediction": "I don't think we need to import retry here.", + "reference": "nit: don't think an extra line is needed here; as retrying is an installed library and should be grouped with the rest of the installed library." + }, + { + "prediction": "I think this should be `EnableAdminAPI` instead of `EnableAdminAPI`.", + "reference": "This should be a bool" + }, + { + "prediction": "Why is this change needed?", + "reference": "`if (llvm::dyn_cast_or_null(GetSwiftType(compiler_type).getPointer())` ?" + }, + { + "prediction": "I think this should be `canaryConfigMaps := findConfigMapManifests(manifests, suffix)` and `canaryConfigMaps := findConfigMapManifests(manifests, suffix)` and `canarySecrets := findSecretManifests(manifests, suffix)`", + "reference": "The `generateVariantWorkloadManifests` function below relies on the config manifests specified in Git, but it was passed with the newly created canary's manifests where their name was updated." + }, + { + "prediction": "Why is this change needed?", + "reference": "are this docs neccesary ?" + }, + { + "prediction": "Why is this change needed?", + "reference": "Can you please revert changes to files in the `thoughtworks` package? This is legacy code and we will eventually phase out RC." + }, + { + "prediction": "I think this should be `softmax_param.clear_loss_weight();`", + "reference": "This change suppose to resolve issue #2968. `loss_weight` should be of length 2, the second entry is ignored." + }, + { + "prediction": "I think this should be `filesToIgnore[base] || strings.HasPrefix(base, \"._\")`.", + "reference": "Is there an easy way to check for conflict suffix to avoid false positives here?" + }, + { + "prediction": "I think we should use `@context.get_validated_task` instead of `apply_prep`", + "reference": "`apply_prep.run_task` also seems like it can just use `@context.run_task`" + }, + { + "prediction": "I think this should be `autoFocus(page);` instead of `autoFocus(page);`", + "reference": "do you have any idea on how to fix it?" + }, + { + "prediction": "Why do we need this test?", + "reference": "You don't need to fix this (you've done so many iterations). But for next time, you can make this into a docstring so it'll have a nicer descriptive name when the tests are running." + }, + { + "prediction": "I think we should use `time.Now().After(eni.ExpiresAt)` instead of `time.Now().After(eni.ExpiresAt)`", + "reference": "When does 'expiresAt' change? Do you need this?" + }, + { + "prediction": "I think this should be `const outfit = outfits[sex];`", + "reference": "There are enums for genders + `PLAYERSEX_LAST`." + }, + { + "prediction": "Why is this change needed?", + "reference": "Should this use the constants as well? Or intentionally covering the fact that the constants may change" + }, + { + "prediction": "I think this should be `if self._size >= 0: return len(self.best) else len(self.extras)`", + "reference": "The case of a negative size (= keep all elements) was not handled in this function." + }, + { + "prediction": "Why is this changed?", + "reference": "I think we should keep this dynamic config knob for operations purpose." + }, + { + "prediction": "Why was this removed?", + "reference": "Was this intentional? Perhaps this could be replaced with another way to check the offsets?" + }, + { + "prediction": "I think this should be `ArtifactBuckets`?", + "reference": "the buckets are created via the stackset, customers don't need to provide them" + }, + { + "prediction": "I think this should be `params.merge({ qt: blacklight_config.qt }).merge(params)`", + "reference": "This doesn't have the same behavior as before. Maybe you want `reverse_merge` (and it either just works or we implement it on `Blacklight::Solr::Request`)" + }, + { + "prediction": "I think this should be `export PATH=/usr/local/ghc/bin/:PATH` instead of `export PATH=/usr/local/ghc/bin/:PATH`", + "reference": "This should be ` /$(ghc_find #{config[:ghc]})/ ` instead of ` /#{ghc_version}/ `, I think." + }, + { + "prediction": "I don't think we need to change this to `moreIcon`.", + "reference": "We should deprecate this at some point." + }, + { + "prediction": "I think this should be `center_sample_radius=1.5`", + "reference": "Move these two arguments before `loss_cls`." + }, + { + "prediction": "I think this should be `if serialNumber == 0 { serialNumber = mathrand.Int63n(100000000000000000) } else { serialNumber = mathrand.Int63n(100000000000000000) }`", + "reference": "[Super NIT]: i := serialNumber if i == 0 { i = mathrand.Int63n(...) }" + }, + { + "prediction": "I think this option should be \"tool\" instead of \"format\".", + "reference": "-f short form here collided with --force. :)" + }, + { + "prediction": "Why did you remove this?", + "reference": "I think it is better to describe in the release note that `rerender()` was removed." + }, + { + "prediction": "I think this is not a good idea, but I think it would be better to use `# pragma: no cover` instead of `# pragma: no cover`.", + "reference": "We could also test this easily with `runpy.run_module`, what do you think?" + }, + { + "prediction": "I think this should be `if v.Type().AssignableTo(reflect.TypeOf(val)) { return nil }`", + "reference": "Is it OK to fall through if it's not assignable? I was kind of surprised when the tests passed. Maybe one of the options below ends up working? For the new tests, this panics because `**not assignable uuid.UUID to []uint8**`. `uuid.UUID` is an array, not a slice." + }, + { + "prediction": "why is this change needed?", + "reference": "I know this is after the fact but imo blockAPI should be blockMiningAPI." + }, + { + "prediction": "I think we should use `self::SYSTEM_ATTRIBUTE_PREFIX` instead of `self::SYSTEM_ATTRIBUTE_PREFIX`.", + "reference": "it's just a pattern as it was. SystemAttributeCode should have it's own definition and validate by it" + }, + { + "prediction": "I think this should be `const cpp2::LookUpIndexRequest& req;`", + "reference": "Similar to the code block when we use prefix, maybe we can unify them to base?" + }, + { + "prediction": "I think we should use `ValidatePodchaosSchedulerError` instead of `ValidatePodchaosSchedulerError`.", + "reference": "I think `Duration` is useful for this action and we shouldn't ignore it." + }, + { + "prediction": "Why do we need this?", + "reference": "Everything below here can be replaced with `return s.err, len(p) - len(s.dataForWriting)`." + }, + { + "prediction": "I think this should be `DESUL_ENSURE_HIP_LOCK_ARRAYS_ON_DEVICE()`.", + "reference": "Again, we can also guard `g_host_hip_lock_arrays.atomic`, can't we?" + }, + { + "prediction": "Why not use `new ImportProductAttributesValueCommand( $attributesToRedispatch, $command->getSku());` instead of `new ImportProductAttributesValueCommand( $attributesToRedispatch, $command->getId(), $attributesToRedispatch, $command->getSku());`?", + "reference": "Variable name should start from lowercase latter" + }, + { + "prediction": "Why is this change needed?", + "reference": "Why has this timeout doubled?" + }, + { + "prediction": "Why is this change needed?", + "reference": "Should IptablesPostWriteCheckIntervalSecs be set back to its previous smaller value, if use of the iptables lock is disabled?" + }, + { + "prediction": "I think this should be `if js_elem in [ \"focused\" , \"selected\" ]`", + "reference": "You're missing a `return` here, but I'll add it :smile:" + }, + { + "prediction": "I think this should be `get_gles2_texture_in_context` instead of `get_gles2_texture_in_context`.", + "reference": "Can you try adding back this assertion? I'd like to assert that the texture has been created in the same context as the renderer." + }, + { + "prediction": "I think we should use `str.decode('utf-8')` instead of `str.decode('utf-8')`", + "reference": "This won't work with Python 3 because it will already be a string. In that case we need to use `decode_header` from utils." + }, + { + "prediction": "I think this should be `self.respond_to?(:clear_types)` instead of `self.respond_to?(:clear_types)`", + "reference": "Why is the respond_to check here?" + }, + { + "prediction": "Why did you remove this?", + "reference": "@orklah are you sure it's the same as `$chars[$i]`? It looks like `$i` is changed above, after `$char` assignment." + }, + { + "prediction": "Why is this change needed?", + "reference": "I have a question? How do I construct a indexManager for testcase?" + }, + { + "prediction": "I think this should be `if (adapter == NULL || adapter->plugin.dl_handle == NULL) return -1;`", + "reference": "These checks aren't needed. See pluginmgr.c : opae_plugin_mgr_load_dflt_plugins( )." + }, + { + "prediction": "I think we should use `getRawUserQuery` instead of `getRawUserQuery`", + "reference": "Please take a care about prefixing." + }, + { + "prediction": "I think this should be `getOrCreateSenderAccount(Address address)`", + "reference": "this line doesn't match what the rest says" + }, + { + "prediction": "I think this should be `!linux` and `!windows`", + "reference": "Since it's not working for linux, maybe leave the !linux in there as well?" + }, + { + "prediction": "I think this should be `if v == nil { continue }`", + "reference": "Should we remove the key-value pair entirely? Same for workflows in general. We have a \"sourceExists\" method that checks if a key is there if I remember correctly." + }, + { + "prediction": "I don't think we need to do this, but I think it would be better to use `getModificationDateFieldName` instead of `getModificationDateFieldName`", + "reference": "Unrelated bug fix" + }, + { + "prediction": "I don't think we need to change the title here, but I think it would be better to use `notification.title = globalize.translate('PackageInstallCompleted', installation.Name + ' ' + installation.Version);` instead of `notification.title = globalize.translate('PackageInstallCancelled', installation.Name + ' ' + installation.Version);`", + "reference": "We probably want to let the translation library handle the string replacement for these as well." + }, + { + "prediction": "I think we should remove the `getDBFlags()` method from the `admin_membership_commands.go` file.", + "reference": "should combine these 2 list (list_gossip and list_db) into just one list command, and show the discrepancy between the 2 if any." + }, + { + "prediction": "Shouldn't this be `@proposal.approved?`?", + "reference": "What do you think about prefixing the Policy method names with `can_`?" + }, + { + "prediction": "I think this is a good idea to remove the `AWS_HTTP_RESPONSE_ACCESS_KEY` and `AWS_HTTP_RESPONSE_SECRET_KEY` from the `AWS_HTTP_RESPONSE_ACCESS_KEY` and `AWS_HTTP_RESPONSE_SECRET_KEY`.", + "reference": "Based on the docs, credential process can return a key `SessionToken`" + }, + { + "prediction": "I don't think we need to do this. I think we should use `moment(birthDate, 'LLL')` instead of `moment(birthDate, 'LLL')`.", + "reference": "I think this if should be removed (see issue)" + }, + { + "prediction": "I don't think we need to import `felix/ipsets` here.", + "reference": "I would avoid importing `felix/ipsets` package because this package is the windows equivalent and should be at the same level of `felix/ipsets`. We could add linux specific dependencies into `felix/ipsets` later and it will break Windows build." + }, + { + "prediction": "I don't think we need to import `List` and `Tuple` here.", + "reference": "nitpick: Please move this down to the other imports, as it's a Python stdlib import." + }, + { + "prediction": "I think this should be `https://gocloud.dev/howto/blob/ for getting started guides`.", + "reference": "\"for getting started guides\" reads a bit weird, like it's missing punctuation. Maybe just \"for a tutorial\"?" + }, + { + "prediction": "Why do we need to change this to `use captcha?`?", + "reference": "This looks like a dead parameter -- maybe a copy and paste error. If it's truly unused, maybe you can open a separate PR to simply delete it, and then it's one less detail to worry about here." + }, + { + "prediction": "I think this should be `values.NewInt(int64(col))` and `values.NewUInt(uint64(col))`", + "reference": "Nit: Should we add support for `int` and `uint` in the `values.New()` function? That would allow us to to handle all of these types in one case. Maybe there's a good reason why we don't do that already, but I'm not sure what it is." + }, + { + "prediction": "Why is this change needed?", + "reference": "if you are not dealing with cache now, please revert these changes. On their own they make little sense" + }, + { + "prediction": "Why is this change removed?", + "reference": "Wearing my extra-douche-bag hat I would say not spaces on a blank line. Maybe at some point we could have some automated process remove these things. For now I would not bother changing it." + }, + { + "prediction": "I think this should be `event.ShowRemainTimeUpdateEvent`.", + "reference": "I think it would be better to use an `ItemUpdatedEvent` like for the \"prefer streaming\" preference. We already have a ton of events that need to be handled in all list fragments that just do the same everywhere. I think we could even remove some of the existing events in the future." + }, + { + "prediction": "I think we should use `product[\"slug\"]` instead of `product[\"name\"]`", + "reference": "I think we have to manually write a down for this migration." + }, + { + "prediction": "Why do we need to use `SPARK_INDEX_NAME_FORMAT(0)` instead of `SPARK_INDEX_NAME_FORMAT(0)`?", + "reference": "I don't think we still need this check, but I'd leave it as an assertion for now." + }, + { + "prediction": "I think this should be `updated_at.to_i` instead of `updated_at.to_i`", + "reference": "Since this may be the case, wondering if we should call the param `updated_at_i` or something so that we don't run into a problem distinguishing them down the road?" + }, + { + "prediction": "I think this should be `appExe = Path.Join(workingDir, appExe);`", + "reference": "wondering why we need to join the paths here; seems evt.commandLine only takes whatever appExe is" + }, + { + "prediction": "Shouldn't this be `StringUtils.deleteWhitespace(serviceName, \"UTF-8\");`?", + "reference": "1.not format code 2.failed but still continue? 3.\"UTF-8\" can changed to java.nio.charset.StandardCharsets.UTF_8.name()" + }, + { + "prediction": "Why is this needed?", + "reference": "I'm wondering if we should add this to a `utils` module in `astroid`. Porting the util to `pylint` doesn't make sense as we would need to duplicate the globals that are being used in the function, but importing from `brain` also feels weird. @Pierre-Sassoulas Do you have an opinion?" + }, + { + "prediction": "I think this should be `await ProduceEnd();` instead of `await ProduceEnd();`", + "reference": "This seems different than what we do for corrupted request headers. I would like to determine the correct behavior and consolidate this logic." + }, + { + "prediction": "Why is this change needed?", + "reference": "Please make the change in the CAI inventory, rather than changing the scanner." + }, + { + "prediction": "I think this should be `AbstractNode` instead of `AbstractNode`.", + "reference": "adding this `abstract` is a breaking API change. Even though I agree it makes perfect sense to have it, we can't break this API until PMD 7.0.0. We should revert this particular change. We could make a reminder ticket like we did with #463 for 6.0.0" + }, + { + "prediction": "I think this should be `Purchaseable plan` instead of `Purchaseable plan`.", + "reference": "This is following the existing convention, but I'm not sure the convention is a good one. I think it would be better to have one shared example group: - It means we don't need to add new example groups twice every time. - If the shared example group looks large, that makes it more obvious that our team models have too much shared behavior. I don't want to do anything about this right now (I'm pretty sure I can wipe out this shared example group when I change team plans), but it's good to keep in mind." + }, + { + "prediction": "I think this should be `nano::transport::is_ipv4_or_v4_mapped_address(new_connection->remote.address())`", + "reference": "I do not think we need to do a source code change to handle this. We could set the subnetwork to default to /32 (/128 for ipv6 ipv4-mapped)" + }, + { + "prediction": "(style) line over 80 characters", + "reference": "It looks good overall! The only issue I have is that the description string is now duplicated twice right? Once in the struct and once in the parameter string? Maybe let's pass the struct to the command so that `ostree_option_context_parse` can set it as the summary? Similar to what we do in rpm-ostree." + }, + { + "prediction": "Why is this needed?", + "reference": "This states very clearly that this is a derivative of Chrome and not Chromium. Do we need to extract an abstract `ChromiumCommandExecutor` and have both Edge and Chrome derive from that?" + }, + { + "prediction": "I don't think we need to check if `type0.getType().equals(type1.getType())` is the same as `type0.getType().equals(type1.getType())`", + "reference": "it seems to me, the issue lies on `isEnum()` itself, returning false for something that is an enum. I'd rather change it there than here." + }, + { + "prediction": "Why is this needed? I think it would be better to use `handlers.setdefault(name, function)` instead of `handlers.setdefault(name, function)`.", + "reference": "Please use `{}` instead of `dict()`" + }, + { + "prediction": "I think this should be `useEffect` instead of `useEffect`.", + "reference": "I have concerns about using this in more places before #3278 - I'll take a look at that again shortly." + }, + { + "prediction": "I think this should be `executionRevertMsg` instead of `executionRevertMsg`", + "reference": "new field needs to be asserted" + }, + { + "prediction": "I think this should be `self->lastLogIdSent_ = self->logIdToSend_;`", + "reference": "when send log failed, why update the last sent log id?" + }, + { + "prediction": "Why is this change needed?", + "reference": "what was the problem with the previous order? `prepend` comes conceptually before `append`, i.e. `insert before` should be before `insert after`, I think" + }, + { + "prediction": "I think this should be `Metadata` and not `Metadata`", + "reference": "Why is this necessary? Could you provide some context?" + }, + { + "prediction": "I think this should be `\\n` instead of ``", + "reference": "Is there a recommended quote style for attributes? I see single and double here, double further down." + }, + { + "prediction": "I think we should use `WaitUntilClosed` instead of `WaitUntilClosed`", + "reference": "Please use an atomic bool." + }, + { + "prediction": "I think this should be `SpanTypes.Web` instead of `SpanTypes.Web`", + "reference": "Consider naming this class `SpanExtensions` to follow C# conventions." + }, + { + "prediction": "Why is this removed?", + "reference": "FYI @lucaspimentel and @colin-higgins since you have already approved, I wanted to point out this required change. By fixing `FrameworkDescription` to use the correct logger, it created a cycle between these two static constructors, so I'm removing this log line and delaying it to when it's actually constructed later in the Tracer. Let me know if you find that acceptable or have any suggestions." + }, + { + "prediction": "I think we should use `Beaker::AwsSdk` instead of `Beaker::AwsSdk`.", + "reference": "Ah, so we are going to need to update node/host files for this to work?" + }, + { + "prediction": "I think this should be `LOG.finest(\"Created container \" + id);`", + "reference": "This code is new and not tested well. While we may drop the log level before we ship 4.0, right now this is extremely helpful to users." + }, + { + "prediction": "I think we should use `current_user.is_a?(observation.user)` instead of `current_user.is_a?(observation.user)`", + "reference": "used named path (`proposals_path`) instead?" + }, + { + "prediction": "Why not use `bib_record_item_record_link.bib_record_id` instead of `bib_record_item_record_link.bib_record_id`?", + "reference": "Am I misreading something, or is there a mismatched parenthesis here? Please let me know whether or not this is cause for concern -- just wanted to be totally sure before merging, since I can't test this from here. Thanks!" + }, + { + "prediction": "I think this should be `yarpcerrors.CodeInternal` instead of `yarpcerrors.InternalErrorf`", + "reference": "Might we want a hook to allow emitting metrics or logs in the case of a permitted empty service header response (or similar UpdateSpanWithErr on empty service header in response if strict enforcement is desired by the caller)?" + }, + { + "prediction": "I don't think we need to set the protocol in the constructor, but I think it would be better to set it to \"https\" if it's not set.", + "reference": "if using dict.get, this could just be `kwargs.get('protocol', 'https')`" + }, + { + "prediction": "I think this should be `getStreamingApiMethodExampleName(Interface interfaze, Method method)`", + "reference": "Add docs to the new methods here" + }, + { + "prediction": "Why is this needed?", + "reference": "what does it mean enabled?" + }, + { + "prediction": "I think we should use `db.execSQL` instead of `db.query`", + "reference": "Getting an error when calling with db.execSQL (in sqlcipher 4.3.0, pragma returns ok)." + }, + { + "prediction": "Why is this change needed?", + "reference": "Maybe we could remove `\" \" + ctx.Tr(\"dashboard\")` completely?" + }, + { + "prediction": "I don't think this is needed anymore.", + "reference": "Simple Storage **Service**" + }, + { + "prediction": "I think this should be `h.handler.Call([]reflect.Value{reflect.ValueOf(ctx, reqBody)})`", + "reference": "Let's add some assertions here to ensure we don't panic. Length of results. Conditionally cast second result to error." + }, + { + "prediction": "I think this should be `_keepAliveTimeout = TimeSpan.FromSeconds(30);` and `_requestHeadersTimeout = TimeSpan.FromSeconds(30);`", + "reference": "Where did we take this default from?" + }, + { + "prediction": "Shouldn't this be `Optional. Start date to compare report data for as YYYY-mm-dd. End date to compare report data for as YYYY-mm-dd.`?", + "reference": "Let's move these down to be after all required arguments rather than in between." + }, + { + "prediction": "I think this should be `if (_sharedStringMap != null) { _sharedStringMap.Clear(); }`", + "reference": "Should we just null the Map and let the GC handle the memory? Clearing just removes items, but not capacity, so this would leave some memory on the table." + }, + { + "prediction": "Why is this change needed?", + "reference": "did you mean to delete this line?" + }, + { + "prediction": "I think this should be `System.out.println(\"getDataverseException: \" + this.datasetFieldType.getDisplayName());` or `System.out.println(\"getDataverseException: \" + this.datasetFieldType.getDisplayName());`", + "reference": "Should we use logger instead?" + }, + { + "prediction": "I don't think we need this test anymore.", + "reference": "I think it would be preferred to do `expect(helper).to be_analytics`" + }, + { + "prediction": "`pd.Index` should be `pd.Series` instead of `pd.Index`", + "reference": "Actually, I think it's okay to just change to `if isinstance(key, (str)) or is_list_like(key):` and `key = list(key) if is_list_like(key) else key` for simplicity for now." + }, + { + "prediction": "Why is this change needed?", + "reference": "If there any other tests, I would make it optional there also." + }, + { + "prediction": "Layout/EmptyLinesAroundRouteBody: Extra empty line detected at body beginning.", + "reference": "This can be removed too, right?" + }, + { + "prediction": "Why is this change needed? I think it would be better to have a `Transport.decodeTransportUri(account.getTransportUri(0))` method that returns a `Transport.decodeTransportUri(account.getTransportUri(0));` instead of a `Transport.decodeTransportUri(account.getTransportUri(0));`", + "reference": "If you're going to allow people to specify multiple SMTP servers, you should also properly export/import them." + }, + { + "prediction": "I think this should be `ConnectionQueueLength` or `ConnectionQueueLength`", + "reference": "nit: Can we prefix these variables with `AspNetCore`?" + }, + { + "prediction": "I think this should be `yaml::conversion -m` instead of `yaml::conversion`", + "reference": "Can this also include a quick test for transpiling by name?" + }, + { + "prediction": "Why is this TODO removed?", + "reference": "This TODO can be removed" + }, + { + "prediction": "Why is this change needed?", + "reference": "can we make tabAccessibilityIdentifier = null as default?" + }, + { + "prediction": "Why do we need this?", + "reference": "Should we print this error?" + }, + { + "prediction": "I think this should be `int(multi_scores.size(1) - 1)` instead of `int(multi_scores.size(1) - 1)`", + "reference": "For which reason do we need to convert this to int here?" + }, + { + "prediction": "I think this should be `err = errors.Wrap(err, \"freezer not supported\")`", + "reference": "FWIW, wondering if the error is interesting here (I actually arrived at this code initially to change `supportsFreezer()` to return a `bool`" + }, + { + "prediction": "Why is this removed?", + "reference": "Does this still need to be a partial? is the intention down the line to move back towards a conditionally different title?" + }, + { + "prediction": "I think this should be `RegistryURL: \"902697171733.dkr.ecr.eu-west-3.amazonaws.com/project/env\"`", + "reference": "seems like `RegistryURL` is missing? Same for a few other places that create `archer.Environment` below." + }, + { + "prediction": "I don't think this is needed anymore.", + "reference": "Are these imports needed?" + }, + { + "prediction": "I think we should use `assert.equal(target.actualNode.type === 'color')` instead of `assert.equal(target.actualNode.type === 'color')`", + "reference": "I think you can remove the `(isIE11 ? it.skip : it)(` above, if you're going to skip the test this way." + }, + { + "prediction": "I think this should be `Long.reverseBytes(checksum)` instead of `Long.reverseBytes(checksum)`", + "reference": "IMO we should instead fix the above call to do `long actualChecksumIn = Long.reverseBytes(in.readLong());` to get the actual checksum value? This way the below error message would also be correct?" + }, + { + "prediction": "Is there a reason why we don't need this?", + "reference": "I think we also need something similar for `rebuild-index`?" + }, + { + "prediction": "Why is this needed?", + "reference": "I think convention is snake case for import naming?" + }, + { + "prediction": "I think we should use `tableInfo.getPrimaryKey().getIndexColumns()` instead of `tableInfo.getPrimaryKey().getIndexColumns()`", + "reference": "i think haspk is false?" + }, + { + "prediction": "I think this should be `SurefireReportDir` instead of `SurefireReportDir`.", + "reference": "you should add this to the cover command too (but let's have a more general convo about whether it's a flag or config option)" + }, + { + "prediction": "I think we should use `metrics.ClientConfig` instead of `metrics.ClientConfig`", + "reference": "instead of passing in pointer to empty struct, we should make it optional and support passing nil and use default cfg if it is nil." + }, + { + "prediction": "I think this should be `obj.to_csv().encode('utf-8')`", + "reference": "A fair bit faster, although still not great, hence also adding a hashkey." + }, + { + "prediction": "I think we should use `trail.steps_remaining_for(current_user)` instead of `trail.steps_remaining_for(current_user)`", + "reference": "If we're going to leave this in here, how about we at least pull it into partial?" + }, + { + "prediction": "I think this should be `context.Background()`, not `context.Background().WithTimeout(context.Background()).WithTimeout(context.Background()).WithTimeout(context.Background()).WithTimeout(context.Background()).WithTimeout(context.Background()).WithTimeout(context.Background()).WithTimeout(context.Background()).WithTimeout(context.Background()).WithTimeout(context.Background()).WithTimeout(context.Background()).WithTimeout(context.Background()).WithTimeout(context.Background()).WithTimeout(context.Background()).WithTimeout(context.Background()).WithTimeout(context.Background()).WithTimeout(context.Background()).WithTimeout(context.Background()).WithTimeout(context.Background()).WithTimeout(context.Background()).WithTimeout(context.Background()).WithTimeout(context.Background()).WithTimeout(context.Background()).WithTimeout(context.Background()).WithTimeout(context.Background()).WithTimeout(context.Background()).WithTimeout(context.Background()).WithTimeout(context.Background()).WithTimeout(context.Background()).WithTimeout(context.Background()).WithTimeout(context.Background", + "reference": "This `context` is used correctly, there is nothing left TO DO." + }, + { + "prediction": "I think we should use `result.toArray` instead of `result.toArray`", + "reference": "If `docs` is an empty array there will be an error" + }, + { + "prediction": "I think this should be `!strings.HasPrefix(host, \"quic:\") && !strings.HasPrefix(host, \"quic:\") && !strings.HasPrefix(host, \"quic:\") && !strings.HasPrefix(host, \"http\") && !strings.HasPrefix(host, \"quic:\") && !strings.HasPrefix(host, \"quic:\") && !strings.HasPrefix(host, \"quic:\") && !strings.HasPrefix(host, \"quic:\") && !strings.HasPrefix(host, \"quic:\") && !strings.HasPrefix(host, \"quic:\") && !strings.HasPrefix(host, \"quic:\") && !strings.HasPrefix(host, \"quic:\") && !strings.HasPrefix(host, \"quic:\") && !strings.HasPrefix(host, \"quic:\") && !strings.HasPrefix(host, \"quic:\") && !strings.HasPrefix(host, \"quic:\") && !strings.HasPrefix(host, \"quic:\") && !strings.HasPrefix(host, \"quic:\")", + "reference": "Is it really necessary to have the user specify this, or can the reverse proxy infer QUIC from the upstream's Alt-Svc headers?" + }, + { + "prediction": "Why is this change needed?", + "reference": "just remove the entire variable." + }, + { + "prediction": "Do we need to do this?", + "reference": "Maybe we should put that in the option description?" + }, + { + "prediction": "Why is this change needed?", + "reference": "Why do we need to make this optional? Isn't the idea of the builder that if you don't need this value you just don't call the `keyFilePath ` method?" + }, + { + "prediction": "Why is this change needed?", + "reference": "Shall we do the same for ORC and Avro?" + }, + { + "prediction": "This file is not used anymore.", + "reference": "Should be a space between line" + }, + { + "prediction": "I think this method should be `public static byte[] GeneratePrivateKey() { return SecureRandom.GetBytes(lenght);}`", + "reference": "if not behind interface then equally we can use SecureRandom.GetBytes directly, otherwise let us push it behind ISecureRandom so we can test with this class wherever used" + }, + { + "prediction": "I don't think this is needed anymore.", + "reference": "Probably will undo this change for now, as I'm just targeting Weekly Iteration in this PR." + }, + { + "prediction": "I think this should be `std::unordered_map`.", + "reference": "Unused parameter warning? How comes we did not catch that before? In any case please open another PR for this." + }, + { + "prediction": "I don't think we need to change the default_iou_thr to ioa_thr.", + "reference": "I recommend move all openimage related logic to a new function" + }, + { + "prediction": "I think this should be `external_cgroup`?", + "reference": "We shouldn't have a bool for this. If there is a path passed, then we use it. Resource may or may not be empty." + }, + { + "prediction": "I don't think we need to add the `raw textilize` method here. I think it's better to use `raw_textilize` instead of `raw_textilize`", + "reference": "I like how you used the count on the translate call to handle this." + }, + { + "prediction": "I think we should use `prepareDismaxQueryString` instead of `prepareDismaxQueryString`", + "reference": "Do we need to do this from the outside, or is there a spot in the handler code where we can do this automatically? (I haven't studied it closely yet... just wondering if you've already thought it through or if it's worth taking a closer look)." + }, + { + "prediction": "I think this should be `java.util.*`", + "reference": "[Checkstyle] INFO: Using the '._' form of import should be avoided - java.util._." + }, + { + "prediction": "I think this should be `cliquet.cache.memory` or `cliquet.storage.memory`", + "reference": "So, why everything is in memory but the permission backend?" + }, + { + "prediction": "Shouldn't this be `allowedExtensions != null ? allowedExtensions : null`?", + "reference": "Are you sure it should be null and not an empty List?" + }, + { + "prediction": "I think this should be `[Required]` instead of `[Required]`.", + "reference": "Unfortunately I think the assumption of \"empty\" means the default dependency section is not correct. For a project.json file the default dependencies section is a shared section between all the different target frameworks and our TargetGroup being empty may map to many different target frameworks so they aren't really equated." + }, + { + "prediction": "I think this test should be moved to `FrameRequestHeaders` instead of `FrameRequestHeaders`", + "reference": "This test was verifying the wrong thing." + }, + { + "prediction": "I think this should be `brave` instead of `brave`", + "reference": "pls pr a name change fro muon here too separately." + }, + { + "prediction": "I think this should be `err := opts.envStore.CreateEnvironment(&env); err != nil`", + "reference": "nit: we can use `defer opts.spinner.Stop(\"Error!\")` after l.180 to make it slightly neater" + }, + { + "prediction": "(style) line over 80 characters", + "reference": "This is declared in the wrong block" + }, + { + "prediction": "I think this should be `klog.Warningf(\"Get a sync-msg when use beehive.Send(),msg.Header:{%v},msg.Router:{%v}\",message.Header,message.Router)`", + "reference": "In fact it would be useful for debug, i prefer combine them into one debug level log." + }, + { + "prediction": "I think this should be `None fatal crash per session`", + "reference": "We would need to localize them eventually too, just FYI" + }, + { + "prediction": "Why is this change needed?", + "reference": "It looks like the proto code needs to change the function name from set_name to set_type to be consistent." + }, + { + "prediction": "This file is not used anymore.", + "reference": "I think we can avoid using this pattern for this use case." + }, + { + "prediction": "I think this should be `#ifndef __ANDROID__`", + "reference": "Could you please change this to `#ifndef __linux__`? That's when we use our own implementation instead of `posix_spawnp`." + }, + { + "prediction": "I think it would be better to use `slots.stream().anyMatch(slot -> slot.getSession() != null).count() < maxSessionCount` instead of `slots.stream().anyMatch(slot -> slot.getSession() != null).count() < maxSessionCount`", + "reference": "Nit: put the `&&` on the previous line so that a reader knows that there's more to the statement at a casual glance." + }, + { + "prediction": "I think this should be `string(libkbfs.SingleTeamPathType)`", + "reference": "Technically the \"right\" variables to use would be the ones in `libgit/autogit_node_wrappers.go\", which define how the tlf types map to subdirs for autogit specifically. (They would have to be exported.) But this is fine too I guess, just a little dirtier." + }, + { + "prediction": "I think we should use `send_notification_for_approver_removed` instead of `send_notification_for_approver_removed`", + "reference": "Should there be a template or something associated with this email? Right now it's identical to `notification_for_approver`" + }, + { + "prediction": "Why not use `Doctrine\\ORM\\EntityManager` instead of `Doctrine\\ORM\\EntityManager`?", + "reference": "i hope there is some extension in phpstan for this" + }, + { + "prediction": "I don't think we need to check if sep is 0.", + "reference": "We don't store empty dictionary entries anymore: they bring no benefits, only trouble." + }, + { + "prediction": "I don't think we need to do this, but I think it would be better to use `IsEnum(type)` instead of `IsEnum(type)`?", + "reference": "Optional: This function is C++ specific and could be declared as `static`." + }, + { + "prediction": "I think this method should be called `getRoles(String domainName, boolean members, String tagKey, String tagValue)`", + "reference": "we can't remove functions as that would introduce backward compatibility issues in our java client. So we should also have a function with the original arguments: ` public Roles getRoles(String domainName, Boolean members) { return getRoles(domainName, members, null, null); } ` For the Go client we don't have a wrapper so no option but to update your client code as necessary, but for java we have the wrapper thus we always maintain backward compatibility" + }, + { + "prediction": "Do we need this to be private?", + "reference": "I'd recommend keeping this in `warn_deprecation` and not adding an override of `warn`." + }, + { + "prediction": "I think we should use `require('blitz')` instead of `require('blitz')`", + "reference": "I think we should use a `blitz` bin instead" + }, + { + "prediction": "I think this should be `dataset.dimensions('key', label='name')` instead of `dataset.dimensions('key', label='name')`", + "reference": "Why not make the ``derived_vdims`` flag (or similar, ``validate_vdims`` maybe?) an explicit argument to ``validate``?" + }, + { + "prediction": "I think this should be `status.Errorf(codes.Internal, \"Failed to create snapshot for FA volume: %v\", err.Error())`.", + "reference": "was it not possible to do this at the filter or porx driver layer? We typically try to avoid driver-specific things in the SDK layer" + }, + { + "prediction": "This file is not used.", + "reference": "please update the year. it can be setup in intellij template." + }, + { + "prediction": "I think this test should be `passSlf4j(log.trace(message, null, null);`", + "reference": "what's the use-case for this?" + }, + { + "prediction": "I think this should be `isinstance(as_index, bool)` instead of `isinstance(as_index, bool)`", + "reference": "nit: `as_index must be an boolean` -> `as_index must be a boolean`" + }, + { + "prediction": "I think this should be `public function update($currentVersion, $newVersion, ConnectionInterface $con = null);`", + "reference": "What is the goal of that method ? And what are `$currentVersion` and `$newVersion` ? Are they Thelia or Module version ? :)" + }, + { + "prediction": "I think this should be `package.json.version` instead of `package.json.version`", + "reference": "Is there an advantage to this vs setting `this.version` in the constructor? Cleaner this way, at the top?" + }, + { + "prediction": "I think this should be `String.valueOf(String.valueOf(String.valueOf(String.valueOf(String.valueOf(String.valueOf(String.value)))).trim());`", + "reference": "Fix for URISyntaxException." + }, + { + "prediction": "I think this should be `logrus.WithField(\"route\", routeUpd).Debug(\"Ignoring route with no destination\")`.", + "reference": "Would be good to UT this case" + }, + { + "prediction": "I don't think this is needed.", + "reference": "Why we need to add this?" + }, + { + "prediction": "Align the elements of a hash literal if they span more than one line.", + "reference": "Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping." + }, + { + "prediction": "I think this should be `current_api_calls` instead of `current_api_calls`", + "reference": "This is ok to change since I believe that these were added just in main and not in public release." + }, + { + "prediction": "I think we should add a `pubsubServiceAccount` parameter to the `MakeAuditLogsOrDie` function to the `MakeAuditLogsOrDie` function.", + "reference": "Not needed in this PR, just want to make sure people think about this (maybe make an issue)? This is a lot of strings in a row. It will be hard/impossible for someone reading the code to see that everything is in the correct position. I recommend creating a struct instead of passing seven strings in a row. A similar problem exists on most of the `MakeFoo(...)` style methods in this change." + }, + { + "prediction": "I think this should be `if (_run.ConfigurationNotifications != null) {`", + "reference": "_jaw drops_ I would have sworn I wrote those lines. Good catch." + }, + { + "prediction": "I think this should be `forEach(fn => fn.clear());`", + "reference": "This needs to be tested." + }, + { + "prediction": "Shouldn't this be `building_address = BuildingAddress.new`?", + "reference": "I believe you're missing the comparison after 'be'" + }, + { + "prediction": "I think this should be `ErrAlreadyDeleted`.", + "reference": "move 103~105 to in front of 97?" + }, + { + "prediction": "I don't think we need to use `FileOutputStream` here.", + "reference": "Lots of unnecessary imports left in this file." + }, + { + "prediction": "Why is this change needed?", + "reference": "Does this actually produce different code?" + }, + { + "prediction": "I think this should be `return node.getAttribute('onFocus') === 'this.blur()'`", + "reference": "This should account for whitespace. Simply putting `.trim()` on the attribute value should do." + }, + { + "prediction": "I think this should be `blackhole` instead of `noenc`", + "reference": "I don't think we need these. Simpler just to put `routetable.TargetType...` inline below." + }, + { + "prediction": "I think this should be `if method == 'PUT'`", + "reference": "Nested if statement. You can merge both statements nested together to create one" + }, + { + "prediction": "I think this should be `System.getProperty(\"java.version\").startsWith(\"9.\")`", + "reference": "Nitpick: add a space after the comma. Also, we should consider that the format of the version could change in the future so we could get something that is not a parsable integer." + }, + { + "prediction": "Why is this change needed?", + "reference": "For your reference in future, I sugguest to use the `ASSERT_*` family." + }, + { + "prediction": "I think this should be `fmt/format.h`", + "reference": "no need to import `fmt/format.h` here since the `KimInit` class is derived from `Pointers`. Any class derived from `Pointers` can assumed that `lmptype.h`, `mpi.h`, `cstddef`, `cstdio`, `string`, `utils.h` and `fmt/format.h` are already included through `pointers.h`." + }, + { + "prediction": "I think we should move this import to the top of the package.", + "reference": "Can we have prefix of `OPENEBS_IO` e.g.: `OPENEBS_IO_INSTANCE_NAME`" + }, + { + "prediction": "I think this should be `GetOrCreateRootNode` instead of `GetOrCreateRootNode`", + "reference": "Might as well fix these bare returns by making them `return errors.New(...` directly." + }, + { + "prediction": "I think we should use `Hash.EMPTY` instead of `Bytes.EMPTY`", + "reference": "we can use import here" + }, + { + "prediction": "Why is this removed?", + "reference": "thx for removing these" + }, + { + "prediction": "Shouldn't this be `RuntimeException`?", + "reference": "I snuck this one in as well as checkstyle crashing (on files from resources) caused an unfinished xml to be written, and it wasn't obvious where that XML was" + }, + { + "prediction": "I think this test should be `testMachineType2` instead of `testMachineType2`", + "reference": "How is this different than \"good case\"?" + }, + { + "prediction": "Why is this change needed?", + "reference": "the last parameter name should be `serviceName` as is in the implementation " + }, + { + "prediction": "Why is this change needed?", + "reference": "@ftomassetti - okay, this is a little meh." + }, + { + "prediction": "I think this should be `os: not supported`", + "reference": "Note, changed initial capitalisation of this for consistency. Can do it the other way around too if that'd be better. :wink:" + }, + { + "prediction": "I think this is a good idea to use `this.document` instead of `this.document`", + "reference": "hey, aren't we supposed to be passing in two parameters here?" + }, + { + "prediction": "I think this should be `bitcore.unit` instead of `bitcore.unit`", + "reference": "please keep alphabetical ordering :)" + }, + { + "prediction": "I think we should use `java.nio.charset.StandardCharsets` instead of `java.nio.charset.StandardCharsets`.", + "reference": "Selenium must compile against Java 6. Revert this line." + }, + { + "prediction": "I think this should be `resourceGroup` instead of `resourceGroup`", + "reference": "what is that `\"\"`, the adapterType? can you add `\"\" /* adapterType */`... in other places as well... might be cleaner if it's a pointer or some varargs at the end but don't have any strong preference.." + }, + { + "prediction": "I think we should use `typeof` instead of `typeof`.", + "reference": "This check is a little odd, and will still mess up with empty strings `''` because empty string is falsy. Can we change this to `|| _this.getValue(path) == null`?" + }, + { + "prediction": "I think this should be `!isNaN(parseInt(tabIndex, 10)) && !isNaN(parseInt(tabIndex, 10))`", + "reference": "Just a minor suggestion: If you `parseInt` when you access the attribute then you shouldn't have to do it twice in the ternary." + }, + { + "prediction": "I think this should be `body[:target]['host-key-check'] = false` instead of `body[:target]['host-key-check'] = false`", + "reference": "This change in particular is strange. I'm not sure why it would now be necessary. The previous default would've been true, and the default behavior without a new net-ssh version should be unchanged." + }, + { + "prediction": "Shouldn't this be `?bool`?", + "reference": "Why is that? Should be redundant as the default value exists." + }, + { + "prediction": "I think this should be `bool` instead of `bool`.", + "reference": "Are all fields beginning with \"Debug\" automatically `;local` ? (I guess so, but just checking.)" + }, + { + "prediction": "nit: `@return a new {@link UpdateNameMapping}`", + "reference": "While I think it makes sense to update the mapping programmatically, I don't see much value in exposing it as part of the table API. We want to keep the Table API small, so if we can handle this by using a separate API that consumes and produces JSON, then that is preferred. Also, we may have more than one mapping in the future, so keeping this decoupled also helps out for those use cases. For now, let's build a utility class to perform these updates. We can always add this to the public API later if we choose to." + }, + { + "prediction": "I think this should be `getStatsMergeTimeout()` instead of `getStatsMergeTimeout()`.", + "reference": "We would want ssmp to wake up every 3 seconds if there are no other requests to it and do some cleanup tasks. So, it is not clear why do you want to set this to 0." + }, + { + "prediction": "I think this should be `getLLVMType(runtimePkg.Type(\"channel\")).Type()`", + "reference": "Is this really necessary? I would expect these types to be included with the loop below." + }, + { + "prediction": "I think we should use `Array.Reverse` instead of `Array.Reverse`", + "reference": "You could do span and it's magic of typecast to int for better efficiency" + }, + { + "prediction": "I don't think we need vendor prefixes here, but I think it's better to use `cssRule.style.webkitTransform` instead of `cssRule.style.webkitTransform`", + "reference": "Looks like you've covered `-webkit-transform`, but what about `-ms-transform`?" + }, + { + "prediction": "Why is this change needed?", + "reference": "Is there something missing from the message here?" + }, + { + "prediction": "I think this should be `RPCError` and not `RPCError`.", + "reference": "Hmm, what does this syntax mean?" + }, + { + "prediction": "Why is callerTypeAPI needed?", + "reference": "should this be callerTypeTask?" + }, + { + "prediction": "Do we need to check if the plan is administerable by the user?", + "reference": "Currently update is set as @plan.editable_by?(@user.id) Which one is the correct behavior? I can see a case for only owners/co-owners to be able to set visibility, test status, and other plan details" + }, + { + "prediction": "I think this should be `10_000_000` instead of `256_000_000`", + "reference": "Maybe make it configurable? Or store the actual level index in DB, making this binary search obsolete?" + }, + { + "prediction": "I think this should be `getTableBasePath(String tableName)` instead of `getTableBasePath(String tableName)`", + "reference": "Nit: this file doesn't need to change. Can you revert this to avoid git conflicts?" + }, + { + "prediction": "Why is this needed?", + "reference": "There's no reason for this to be a callback now technically but as per our tech decision, we want all handlers to use `useCallback` now" + }, + { + "prediction": "Why is this needed?", + "reference": "This isn't strictly part of this PR, but could you move `multiSigString` from `crypto/multisig.go` into this list of `HashID` values? Now that we have other things being hashed into addresses (specifically, these new logic addresses), it's important that the hash input for multisig addrs is domain-separated from logic addresses." + }, + { + "prediction": "Why is this needed? I think it would be better to use `stop_pool` instead of `stop_pool`", + "reference": "nit: you could have named it just \"TestCase\" (if django's TestCase was imported differently)" + }, + { + "prediction": "I think this should be `options[:page_ranges] = Array(options[:page_ranges])` instead of `options[:page_ranges] = Array(options[:page_ranges])`", + "reference": "the bridge here isn't defined as an accessor / reader to try mask it better. So you need to directly call the iVar `@bridge` here." + }, + { + "prediction": "Why is this removed?", + "reference": "All the callers of `ExtractSomeIfAny`, always pass `true` to `synthetic_value`. Can we get rid of the extra argument?" + }, + { + "prediction": "I think this should be `meta['config_dict'] = dict(cfg)`", + "reference": "Better to use the absolute path." + }, + { + "prediction": "Why is this changed?", + "reference": "this is 16 hours, is that enough?" + }, + { + "prediction": "I think this should be `span.AddAttributes(trace.StringAttribute(\"error\", *err.Error()))`", + "reference": " removing boilerplate. You could also add a `StartSpan` with varargs to inline string attributes." + }, + { + "prediction": "I think this should be `v := b.eth.syncService.GetLatestIndex()`.", + "reference": "Can you replace these single letter variables with full names?" + }, + { + "prediction": "I think this should be `Action PrepareRequest`", + "reference": "At first I wasn't sure, but now I think I'm sold on making PrepareRequest an action over adding a state object to the context." + }, + { + "prediction": "I think we should use `preg_match('/^VuFind (\\d+\\.?)+$/', $newConfig['Site']['generator'])` instead of `preg_match('/^VuFind (\\d+\\.?)+$/', $newConfig['Site']['generator'])`", + "reference": "Would it be too greedy to preg_replace `VuFind (\\d+\\.?)+` with `'VuFind ' . $this->to` anywhere in the string? This would update something like 'Finna (VuFind 7.1.0)' as well. Just a thought, please disregard if you'd like to keep it as is." + }, + { + "prediction": "I think we should use `getClusterState()` instead of `getCollection`", + "reference": "BTW for brevity, you can remove `getZkStateReader().` here and elsewhere since ZkController has a convenience method for the cluster state." + }, + { + "prediction": "Is there a reason why `snapshot` is null?", + "reference": "If there are no manifests, then entries should be `CloseableIterable.empty()`, not the manifest iterable. That doesn't need to be closeable." + }, + { + "prediction": "I think this test should not be run in the test suite.", + "reference": "this class should be named `ArrayInitializationVerbosenessTest` to work" + }, + { + "prediction": "Do we need to check if `val.is_a?(Hash)`?", + "reference": "Do we want to allow users to disable `console` as well? The schema currently says that it only permits a hash for `console`." + }, + { + "prediction": "I think this should be `not working` instead of `not working`.", + "reference": "It would be very helpful to describe succinctly either inline or by linking to an issue going into depth why each test is not working. If we merge like this your knowledge of what is going on is lost and other people in the code need to do a ton of reading before understanding when/how/if we should unskip." + }, + { + "prediction": "I think this should be `handleDataSuccess` and `handleDataError`.", + "reference": "As this is a `useEffect` this could be a cause for concern! Note that `useEffect` re-runs when a dependency changes **not** when a dependency is truthy (the previous code does look a bit like it's expecting that)" + }, + { + "prediction": "I think this should be `world_comm_ptr{new lbann_comm(0, &lbann::finalize)}`.", + "reference": "Should we be doing this with `make_unique` or something?" + }, + { + "prediction": "I don't think we need to change this to `@changes`", + "reference": "we don't want to set default values for this. Since it is the actual email, we want to make sure we are always passing in the `user` and `proposal` . we have a default value of `nil` for modifier because sometimes will update a proposal via `rails console` in which case there will be no recorded modifier." + }, + { + "prediction": "I think this should be `go/parser.go`", + "reference": "Yes this import was in the wrong place, but should ideally be in the first list of imports (among `go/build`, `go/token`, etc.). You may move it there, or just revert this change as it's actually unrelated." + }, + { + "prediction": "Why is this change needed?", + "reference": "It's unnecessary to duplicate the `name`." + }, + { + "prediction": "Why is this change needed?", + "reference": "this was a mistake when adding phpstan strict plugin" + }, + { + "prediction": "I think this should be `if (oldVNode._dom == oldDom && oldVNode._parentNode != parentDom)`", + "reference": "Nit: I think it should be `to handle` here." + }, + { + "prediction": "I think this should be `message == null && message.getId() == 0`", + "reference": "Please don't make unrelated changes or let your tools make unrelated changes." + }, + { + "prediction": "Why is this changed?", + "reference": "`numAccounts` is a global variable (from `gochecknoglobals`)" + }, + { + "prediction": "I think this should be `unset($this->plugins[$id]);` instead of `unset($this->plugins[$id]);`", + "reference": "Is the ID correctly normalized at this point?" + }, + { + "prediction": "I think this should be `api.ethBackend.NodeInfo(ctx, 0)` and `api.ethBackend.NodeInfo(ctx, 0)`", + "reference": "if 0 is a special constant meaning \"no limit\" let's make it a constant and name it correctly :)" + }, + { + "prediction": "Why is this change needed?", + "reference": "Curious about the reason behind this change" + }, + { + "prediction": "I think we should use `cborStore.Put(ctx, b)` instead of `onlineStore.Put(ctx, b)`", + "reference": "wait, i thought the cborstore was for state tree?" + }, + { + "prediction": "I think this should be `self.get('KEY', '')` instead of `self.get('KEY', '')`", + "reference": "This logic is now duplicated here and in `_delete_temporary_files`... Maybe do it all at once - find temp files, delete them, and fix the logical keys?" + }, + { + "prediction": "Why not just return null?", + "reference": "How about name it with NullResponseTypeProcessor" + }, + { + "prediction": "I think it would be better to use `config_.monotone_constraints.size() == 0` instead of `config_.monotone_constraints.size() == 0`", + "reference": "Maybe `Log::Fatal` here? `[LightGBM] [Fatal] Check failed: feat_is_unconstrained at ...` (and kernel death in case of Jupyter Notebook) seems to be not so informative and user-friendly." + }, + { + "prediction": "I think this should be `_process` or `_apply`?", + "reference": "Not sure I like the name ``_apply``. Even though ``_process`` is supposed to process elements already, how about ``_process_element`` which processes elements, *excluding* Overlays/NdOverlays." + }, + { + "prediction": "I think this should be `NodeRole` instead of `NodeRole`.", + "reference": "Let's use this constant when ASG is created as well (currently hardcoded)." + }, + { + "prediction": "I think this should be `GROUP BY` instead of `GROUP BY`", + "reference": "Oh is `bucket` actually higher cardinality than `eventname`?" + }, + { + "prediction": "Why is this needed?", + "reference": "You can't rely on QtWebEngine being available - but why do you need to import this here at all?" + }, + { + "prediction": "I think this should be `NVDAObjects.JAB` and `NVDAObjects.UIA`", + "reference": "How did you determine these - and how can we be confident that nothing is missing?" + }, + { + "prediction": "I don't think we need to add a `h2` tag here.", + "reference": "What is this page going to do that is different than the products index we already have?" + }, + { + "prediction": "I think this should be `manifest['application']['gecko']['id']` instead of `manifest['application']['gecko']['id']`", + "reference": "Couldn't you just write this as an if/else or a guard clause like on line 87? Just seems a bit weird doing this conditional assignment for essentially an if/else." + }, + { + "prediction": "I think this is a bit confusing, but I think it would be better to have a `HASH_CONFIG_KEYS = [:s3_options, :go]`.", + "reference": "Is this intended to be here? Seems it belongs to a different PR." + }, + { + "prediction": "Why is this change needed?", + "reference": "These changes, while harmless, were no longer needed with newer versions of System.Console thanks to @ianhays" + }, + { + "prediction": "I think this should be `botocore.exceptions.NoRegionError`", + "reference": "Umm... this isn't relevant to this PR" + }, + { + "prediction": "I think this should be `~0` instead of `~0`", + "reference": "While All make some sense here it doesn't make a lot of sense in the SkipOnFramework context. I wonder if we really need to expose anything more here. You can just blindly use 0." + }, + { + "prediction": "I think this should be `bee binary viper-cobra` instead of `bee binary viper-cobra`.", + "reference": "Actually, this is not correct. Package `cmd/bee` doe snot have any notion of commands or even libraries used for them. It is as simple as possible, just calling the function from `cmd/bee/cmd` which actually implements commands." + }, + { + "prediction": "Why is this change needed?", + "reference": "This change is causing tests to fail because users sits at `/app/users`, not `/app/admin/users`" + }, + { + "prediction": "I think this option should be `secure` or `strict`", + "reference": "Could you provide more information on what exactly each of those three options do?" + }, + { + "prediction": "I think this should be `public string TraceFilePath { get { return perfCollect?.TraceFilePath; } }`", + "reference": "Why this line break?" + }, + { + "prediction": "I think this should be `k8s.io/apimachinery/pkg/apis/apiextensions/v1`", + "reference": "We're importing this twice with different aliases." + }, + { + "prediction": "I think this should be `pandera<0.8.0` and not `pandera<0.8.0`", + "reference": "We should avoid adding a pandera dependency to Dagster itself." + }, + { + "prediction": "Why not use `permission.getGrantor()` here?", + "reference": "Can be replaced with `org.jkiss.utils.ArrayUtils#add`." + }, + { + "prediction": "Is there a reason to use `Collections.unmodifiableCollection(electionContexts)` here?", + "reference": "While we're here, this line (and a few others) should be `customThreadPool.submit(() -> IOUtils.closeQuietly(overseer);` I have no idea why we're creating a collection and a stream for a single object." + }, + { + "prediction": "I think this should be `if len(p.AzureDNS.ManagedIdentityClientID) > 0 && len(p.AzureDNS.ManagedIdentityResourceID) > 0`", + "reference": "Should these restrictions also be reflected in the API docs?" + }, + { + "prediction": "I think this should be `cloneURL(origReq.URL, r.URL)` and not `cloneURL(r.URL, r.URL)`", + "reference": "What about the request headers if someone uses `request_header`? :thinking:" + }, + { + "prediction": "I think this should be `--domain-filter=aws` instead of `--domain-filter=aws`", + "reference": "Verify that external-dns allows setting this parameter multiple times (that it's not \"last one wins\")." + }, + { + "prediction": "I think this should be `host1.example.com` instead of `host1.example.com`", + "reference": "Maybe 2 host/ip values could be used in the example?" + }, + { + "prediction": "Why is this change needed?", + "reference": "We're only testing `RateLimiter.Allowed(Span)`, so I think we can use a mock `ITraceContext` instead of a real `Tracer` or `TraceContext`." + }, + { + "prediction": "Why not use `trainer->get_name()` here?", + "reference": "IMO, this is the wrong way to associate a model with a trainer... Why the string when you actually have a trainer object?" + }, + { + "prediction": "I think this should be `block_a.type()` instead of `block_a.type()`.", + "reference": "Wondering if we can directly put types here & for other similar ledger_processor items like rai::block_type::state" + }, + { + "prediction": "Why is this change needed?", + "reference": "As `DeleteFiles` is not only used for prune this function deserves its own file. Maybe something like `delete_files.go` or `parallel.go`?" + }, + { + "prediction": "Line is too long. [98/80]", + "reference": "It should be simplified character. `` -> ``" + }, + { + "prediction": "I think this should be `int ParallelLevels = -1;` instead of `int ParallelLevels = -1;`", + "reference": "I am pretty sure it breaks the visitor pattern, visitor should have no knowledge about the structure of what it is visiting or control over visiting mechanism" + }, + { + "prediction": "I think this should be `Map` or `MapMap`.", + "reference": "'A' instead of 'An' here" + }, + { + "prediction": "Why is this changed?", + "reference": "Can you flip it back (here and in other places)? It is more natural to represent \"10 seconds\" as `10 * time.Second`." + }, + { + "prediction": "why do you need this?", + "reference": "Why was this necessary? You should just use the `dask_classifier` defined below this. With this change, you'd only be doing the local predict on arrays each time, but we want to test on all of DataFrame, Array, and sparse matrix." + }, + { + "prediction": "I think this should be `t('.added_to_github_repo', @purchaseable.github_url)`.", + "reference": "To me, this is sort of weird to have a completely separate page for this. Can we extract the different stuff (github, videos, downloads) presentation from the top of `app/views/purchases/show.html.erb` and reuse it on this page. I worry that we'll change things with fulfillment or copy and have to change it in multiple places." + }, + { + "prediction": "I don't think this is needed anymore.", + "reference": "Please revert the lines above. Not touching unrelated code keeps the git history clean." + }, + { + "prediction": "I think this should be `2.3.0rc0` instead of `2.3.0rc0`", + "reference": "`short_version` and `version_info`" + }, + { + "prediction": "I think this is a bit confusing, but I think it would be better to have a `Status` field in the `TaskState` struct, and not a `Stats` field in the `TaskState` struct.", + "reference": "This is supposed to be `status`. Why did you change this?" + }, + { + "prediction": "I don't think we need this file anymore.", + "reference": "I will change all of these at some point next week." + }, + { + "prediction": "I think this should be `string.Empty` instead of `string.Empty`", + "reference": "I made this change because, while trying to debug, in Visual Studio, the `IntegrationSignatureTests`, this property getter was hit and interfered with my ability to complete the debugging." + }, + { + "prediction": "I think this should be `status = model.KubernetesResourceState_FAILED`", + "reference": "nit: `\"Unexpected error while calculating: unable to convert %T to %T: %v\"`" + }, + { + "prediction": "I think this should be `@JsonProperty(\"appName\")`.", + "reference": "I'd actually recommend not putting this in the `SampleConfig`, it's intended more for properties that are inherent of the discovery format. Add a method `getSampleAppName(String apiTypeName)` to `SampleNamer` and override it in the language specific `SampleNamer`s if needed. Then assign it in the transformer." + }, + { + "prediction": "I think this should be `sort-object-map-by-key`.", + "reference": "Do we need to export these new functions? I thought the plan going forward was to keep util imports separated to make circular imports less likely and possibly do better chunk splitting. Since only new code references these files, we can scope the import to the specific files." + }, + { + "prediction": "Use the new Ruby 1.9 hash syntax.", + "reference": "Rails will autorequire `acts_as_editable` once it encounters the constant `ActsAsEditable`. Thus if we move `ActiveRecord::Base.send :include, ActsAsEditable` from _acts_as_editable.rb_ to this file, the require line will not be needed anymore. Instead of requiring the file ourselves, we will let Rails do it for us. This fix will also remove the need to explicitly require `acts_as_editable` in _mock_active_record_base.rb_." + }, + { + "prediction": "I think this should be `methodName` or `upperCamelMethodName`", + "reference": "I think we should name this `grpcMethodName` or similar. That is what this refers to, right? The fact that it is upper camel is an implementation." + }, + { + "prediction": "(style) code indent should use tabs where possible", + "reference": "What if .. appears, but not as the first character, eg \"errors/../../../../../../../../../../../\"?" + }, + { + "prediction": "I think this should be `owned by the default organisation`", + "reference": "Thanks, this should make things a bit easier for people who pick up the codebase but aren't a `curation center`" + }, + { + "prediction": "I think we should add a `@Deprecated` annotation to this class.", + "reference": "why not removing it?" + }, + { + "prediction": "I think this should be `flagTLSEnableHostVerification` or `flagTLSDisableHostVerification`", + "reference": "same nit here: maybe word as - \"disables validation of the temporal cluster's server certificate\"" + }, + { + "prediction": "I think this test should be `showTables` instead of `showTables`", + "reference": "Nit: other statements use all caps for SQL reserved words. Should this be `SHOW TABLES`?" + }, + { + "prediction": "I think this should be `!(isspace(c) || c == '(' || c == ')' || c == '=')`", + "reference": "Do we need this? isLuaIdentifier() is used not only in extract_next_token() but also in extract_prev_toke(). I wonder whether the change for isLuaIdentifier() has an impact on extract_prev_toke() or not. If you are not sure, keep isLuaIdentifier() as is. If you are sure, could you write your conviction to the commit log." + }, + { + "prediction": "Why is this change needed?", + "reference": "This line should actually be: `if c.KubernetesProvider == config.ProviderAKS && c.Wireguard.EncryptHostTraffic {` because we only need to tweak the MTU like this on AKS." + }, + { + "prediction": "I think this should be `svcFlagDescription` instead of `appFlagDescription`", + "reference": "Do we need to change this flag as well?" + }, + { + "prediction": "I think this should be `var file = grunt.file.read(fileset.dest);` instead of `var file = grunt.file.read(fileset.dest);`", + "reference": "Including the source twice here makes the filesize jump to 432kb. Is there any way to minimize repeating it?" + }, + { + "prediction": "Why is this change needed?", + "reference": "This should only be sent if the driver is speaking to a W3C conformant remote, so we need an if-condition check like we have in the Python bindings." + }, + { + "prediction": "I don't think this is a good idea, but I think it would be nice to have a `merge` method for `target_vars` and `target_vars`.", + "reference": "Only one line of code? What a simple issue!" + }, + { + "prediction": "Why is this change needed?", + "reference": "Conceptual question: why do history and matching need throttler at all? Shouldn't throttling to be handled on FE only?" + }, + { + "prediction": "I think this should be `enqueueAppliedToGroup` and not `enqueueAppliedToGroup`", + "reference": "Would this be possible: `addCNP` has already processed the CNP to an internalNP, just hasn't added this internalNP to the `internalNetworkPolicyStore`. In this case, `reprocessCNP` will skip processing this CNP and `addCNP` will just add the \"old\" internalNP to `internalNetworkPolicyStore`." + }, + { + "prediction": "Shouldn't this be `cart.ncr? && user == cart.requester && cart.rejected?`?", + "reference": "Minor: you can access `current_user` in here directly - don't need to pass it in. Unless you prefer passing it explicitly?" + }, + { + "prediction": "I think this should be `attributes = attributes.to_h if attributes.respond_to?(:keys)` instead of `attributes = attributes.to_h if attributes.respond_to?(:keys)`", + "reference": "What is the purpose of `&` on this line?" + }, + { + "prediction": "I don't think we need to use `/^[a-zA-Z0-9]+$/` here. I think we should use `/^[a-zA-Z0-9]+$/` instead of `/^[a-zA-Z0-9]+$/`", + "reference": "See above, the `isValidWebDataStreamID` implementation from before is actually correct. What we need here instead is a new `isValidMeasurementID` function." + }, + { + "prediction": "I think this should be `c.closeConnection(ReadError)` instead of `c.closeConnection(ReadError)`", + "reference": "Should be an error... it is important for the admin of the server attempting to create the leafnode connection to see the error asap." + }, + { + "prediction": "I think this should be `if states is not None and reason==controlTypes.REASON_FOCUS`", + "reference": "Could you split these conditions up over multiple lines please." + }, + { + "prediction": "Why is this change needed?", + "reference": "I think we can just change this to `Split` instead of `SplitN`. I don't think we need to limit the number of parts in the tag." + }, + { + "prediction": "I think this should be `{{ range $port := .ports }}`", + "reference": "So this is actually a mistake that I introduced without realizing it, and have known would need to be fixed when we get here . The format of the ports directive is \"host:container\". We only want the host port to change, not the internal container ports. The ports variable probably needs to be a map which maps external -> internal ports." + }, + { + "prediction": "Why is this change needed?", + "reference": "An alternate approach would be to always initialize shardInfo with a dummy (non-nil) value, which could protect against other uses before it's initialized (I couldn't find any though). But I can change it to do it that way instead." + }, + { + "prediction": "I think this is a bit confusing, but I think it would be better to have a `NodeMetadata` field in the `SessionInfo` struct.", + "reference": "Maybe we can just put the entire `DirEntry` in here? I can imagine it might be useful for debugging to get the block ID/refnonce, encrypted size, key gen, data version, etc. What do you think?" + }, + { + "prediction": "Why is this change needed?", + "reference": "For the commit message: The paragraphs seem to be out of order? The `Would not work because` refers to the stuff before, but there is a `This may seem pointless, but` in-between." + }, + { + "prediction": "Why is this removed?", + "reference": "Why did you remove these packages from the prelude, will your new functions not work without this change?" + }, + { + "prediction": "I think it would be better to use `std::transform(keys.begin(), keys.end(), std::back_inserter(kvKeys))` instead of `std::transform(keys.begin(), keys.end(), std::back_inserter(kvKeys))`", + "reference": "We'd better reserve enough space before using kvKeys to avoid extra malloc." + }, + { + "prediction": "I think this function should be called `GetNodeHostname` instead of `GetNodeName`", + "reference": "would it make sense to return empty or error if label doesn't exists?" + }, + { + "prediction": "Shouldn't this be `maxAttempts`?", + "reference": "Don't penalize everyone with 250ms delay b/c some machines have problems." + }, + { + "prediction": "I think this should be `fmt.Sprintf(\"%s %s\", out, it.Value().String())`", + "reference": "Probably want a space after the second %s?" + }, + { + "prediction": "I think we should return `serviceerror.NewUnavailable` instead of `serviceerror.NewInternal`.", + "reference": "This seems like an internal error still?" + }, + { + "prediction": "I think this should be `expect(FakeStripe).to have_charged(1500)` instead of `expect(FakeStripe).to have_charged(1500).to have_charged(1500).to have_charged(1500)`", + "reference": "Line is too long. [94/80]" + }, + { + "prediction": "I think this should be `ClusterIdentity` instead of `ClusterIdentityProvider`", + "reference": "out of curiosity, why creating another struct to wrap it?" + }, + { + "prediction": "I don't think you need to change the format here.", + "reference": "discipline vs. Discipline? Not sure of which is correct. Also not sure if there is already an existing string const." + }, + { + "prediction": "I think this should be `overrideConfig.getAssignedProtoFile()` instead of `overrideConfig.getAssignedProtoFile()`.", + "reference": "I believe this will break common resources, as they are defined in a common file, but must generate classes in service-specific namespace, so using protoFile to determine package of the generated class would not work, because common_resources namespace does not match service namespace." + }, + { + "prediction": "This should be `SERIES_DEFAULT_NAME`", + "reference": "How about `SPARK_DEFAULT_SERIES_NAME`?" + }, + { + "prediction": "I think this should be `commit.status-check.max-wait-ms` instead of `commit.status-check.min-wait-ms`", + "reference": "The other properties are in `commit.status-check`, not `commit.status-checks`. Could you remove the extra `s`?" + }, + { + "prediction": "I think this should be `this.skip()` instead of `this.skip()`", + "reference": "Side note: I'd love to see more of these fields exposed on configuration." + }, + { + "prediction": "Line is too long. [89/80]", + "reference": "In the case of accounts generated by API clients, what name gets put for the `inviter_name` or `invited_by` record?" + }, + { + "prediction": "I don't think we need to implement getStartBlock here.", + "reference": "I think this class is only relevant for updating the QbftConfigOptions based on the transitions config, so probably not." + }, + { + "prediction": "Shouldn't this be `-32016`?", + "reference": "what is the number thrown by Geth?" + }, + { + "prediction": "I don't think we need the `?` here.", + "reference": "This would still crash on malformed database connection string like \"test\"" + }, + { + "prediction": "I think this should be `PluginNameFromHostServiceContext(ctx context.Context, name string)`", + "reference": "it is not an interface, maybe we can move to another package?" + }, + { + "prediction": "Why is this needed?", + "reference": "Same here. Can we use `this.instance.getSettings()` to get `tableMeta`?" + }, + { + "prediction": "I think this should be `cgroup.Resources.CpuWeight != 0` or `cgroup.Resources.CpuMax != \"\"`.", + "reference": "Not sure whether this validation is useful." + }, + { + "prediction": "I think this should be `prompt_yanked_download_url` or `prompt_yanked_download_url`", + "reference": "Various things to note here: - Why would `question` ever be falsey (or `None`) here, i.e. why the `if question`? - Why would `question` ever not have that attribute? You set it in `Question.__init__`, so that check does nothing at all (and generally, `hasattr()` should be avoided if possible). - Why do you want to yank `None` (what does that do?) rather than e.g. show an error if there's nothing to yank?" + }, + { + "prediction": "I think this should be `logger_.info(\"select progress: %s\", event['Progress'].get('Details'))`", + "reference": "If this is needed for testing, you should use `pytest --log-cli-level=INFO` instead." + }, + { + "prediction": "I think this should be `https://api.ipify.org/api/v1/location`", + "reference": "We should drop ipify in all places i guess" + }, + { + "prediction": "Why is this change needed?", + "reference": "Add explanations around these variables - what do they mean, how they should be configured, etc." + }, + { + "prediction": "Do we need this method? I think it's better to call it `local_chapters` instead of `local_chapters`", + "reference": "One thing tho - I would really appreciate any advice on where to move this to, so that it's called on initialisation of the website." + }, + { + "prediction": "I think this should be `true` or `false`.", + "reference": "To much tabs here (1 tab)" + }, + { + "prediction": "I think we should add a `recordCleanupLimit` parameter to the sql statement.", + "reference": "This is not maintaining retention time for logs as we are deleting only 1000 entries and we might end up with huge number of rows spanning over multiple months over a period of time if the cluster generates more rows as we are restricting ourselves to delete only 24k rows/day. Like I pointed out earlier a better would be to probably run this clean up every hour with some batch_size in a loop while there are records to be deleted(i.e older than 12 weeks) and committing each batch." + }, + { + "prediction": "Why is this change needed?", + "reference": "I don't like this helper func :-). Yeah, definitely don't like." + }, + { + "prediction": "Why is this change removed?", + "reference": "Same here. This should remain unchanged. Please, add it back." + }, + { + "prediction": "I think this should be `options.ignoreUndefined = this.s.options.ignoreUndefined;`", + "reference": "@kvwalker should this method have `ignoreUndefined` supported as an `option`?" + }, + { + "prediction": "Why is this change needed?", + "reference": "we dont use a `sugaredlogger` anywhere else in clutch, just curious why were using it here?" + }, + { + "prediction": "Why did you remove this?", + "reference": "Not evident from looking at this diff but the queue is already being cleared four lines below." + }, + { + "prediction": "I think it would be better to use `t.Type == protocol.CompactCertTx && t.Sender == transactions.CompactCertSender && t.Fee.IsZero()` instead of `t.Type == protocol.CompactCertTx && t.Type == protocol.CompactCertTx && t.Sender == transactions.CompactCertSender && t.Fee.IsZero()`", + "reference": "Why is this a 'transaction' and not in the block header?" + }, + { + "prediction": "I think this should be `public X509Certificate2 ClientCertificate { get; set; }`", + "reference": "This doesn't fit the abstraction level. Should we have a property bag for extra stuff?" + }, + { + "prediction": "I think this should be `ci/gendoc.py` instead of `ci/gendoc.py`", + "reference": "Looks like it is pretty easy to miss it when adding new files under `ci`. Hopefully, this doesn't happen too often." + }, + { + "prediction": "I think this should be `defer p2ps.Ready()` instead of `defer p2ps.Ready()`", + "reference": "do we really need the `Ready` call if startup fails midway?" + }, + { + "prediction": "I think this should be `int32_t {0, network::NetworkUtils::getAvailablePort()}`.", + "reference": "You can avoid changing the code if there are parameter defaults. right ?" + }, + { + "prediction": "Why is this change needed?", + "reference": "I wonder why the newline disappeared here? I guess we'll merge and see how SauceLabs fares across the supported browsers." + }, + { + "prediction": "I think this should be `if (atoi(sep->arg[1]) == 1) {`", + "reference": "I know this is legal, but I prefer we put brackets on our calls" + }, + { + "prediction": "I think we should remove the `AWS SDK for Java v2` keyword and remove the `Code Sample` keyword.", + "reference": "AWS Identity and Access Management (IAM)" + }, + { + "prediction": "Shouldn't this be `InvalidElementStateException`?", + "reference": "We keep who wrote the code anonymous." + }, + { + "prediction": "I think this should be `let decimal = formatedParts.find( part => 'decimal' === part.type ).value;`", + "reference": "Two things to make the code more error-proof and simplify it: 1. To be safe, this should be: `! isUndefined( decimal ) && ! isUndefined( decimal.value )` 2. The other clause that you changed below can be combined with that since `decimal` isn't used anywhere else, and so there's no point to re-check whether it's not undefined. In other words, this should become: `! isUndefined( decimal ) && ! isUndefined( decimal.value ) && 1000 > number`, and then you can remove the `decimal = decimal.value` assignment and replace it with line 146 (assignment of `readableNumber`)." + }, + { + "prediction": "I think this is a bit confusing, but I think it would be better to use a `[]transport.Transport` instead of a `[]transport.Transport`?", + "reference": "Wouldn't composite outbounds compose the transport, such that it would still be represented as a single transport?" + }, + { + "prediction": "Why is this removed?", + "reference": "nit: there is no need for a new line here, usually we tend to put an object creation and its deferred deletion next to each other. It helps not forgetting about the cleanup." + }, + { + "prediction": "I don't think we need to add the `@author Maxime Steinhausser` to the `RequestPostInitializeListener` class.", + "reference": "Feel free to use the full notation with my email address: `Maxime Steinhausser ` :smile:" + }, + { + "prediction": "Why is this removed?", + "reference": "This was unused across the codebase" + }, + { + "prediction": "I think this should be `s.Warnf(\"Account lookup for consumer create failed: %v\", err)` and `s.Warnf(\"Account lookup for consumer create failed: %v\", err)`", + "reference": "Should we put in which account we were trying to look up?" + }, + { + "prediction": "I think this should be `supported_type_class`", + "reference": "either SUPPORTED_TYPECLASS or supported_typeclass. Camelcase only for class names." + }, + { + "prediction": "I think this should be `pinned` as well.", + "reference": "This is not going to work. You need to add a migration to the database." + }, + { + "prediction": "I think we should move this method to the `resumeGroupPlayback` method.", + "reference": "Should these methods be renamed in this PR?" + }, + { + "prediction": "I think this should be `if (!this.metricStreamNames.ContainsKey(metricStreamName)) {`", + "reference": "we need to include the `metricStreamName` which is invalid, so users know whats causing the issue." + }, + { + "prediction": "I think this should be `AssemblyLoadContext.Default.LoadFromAssemblyPath(binaryPath)` instead of `Assembly.Load(AssemblyLoadContext.GetAssemblyName(binaryPath));`", + "reference": "Please run Platform tests `DiaSessionTests`." + }, + { + "prediction": "I think this should be `MSG_AVX_512_SUPPORT_INCOMPLETE_STRING` instead of `MSG_AVX_512_SUPPORT_INCOMPLETE_STRING`.", + "reference": "This is debug-build-only: we want a release-build notice. SYSLOG takes the name w/o the MSG and no _STRING. Args are via events.mc specifiers." + }, + { + "prediction": "I think we should check for `options.directconnection` here.", + "reference": "is it possible to have both forms here? I was hoping we wouldn't be introducing more cases where we had to check the upper and lowercase version of URI options." + }, + { + "prediction": "Why is this change needed?", + "reference": "Does the name suffix hardcode something? Not clear how changing the name fixes this." + }, + { + "prediction": "I think this should be `@DisplayName(\"OPERATION: isQueueProcessorActive\")` or `@DisplayName(\"OPERATION: isQueueProcessorThreadState\")`", + "reference": "Is undispatched same as queued? getQueuedFlows?" + }, + { + "prediction": "What's the reason for this change?", + "reference": "See above, same for all similar cases below." + }, + { + "prediction": "Why is this change needed?", + "reference": "Why is this done twice?" + }, + { + "prediction": "I think this should be `if ConditionEqualsTo(node.Status, v1alpha1.ConditionDeadlineExceed, corev1.ConditionTrue)` instead of `if ConditionEqualsTo(node.Status, v1alpha1.ConditionDeadlineExceed, corev1.ConditionTrue)`", + "reference": "This sync can ensure that the condition of the child node is consistent with the parent node, but I still don't understand when the child will be overwritten, and this behavior is not what we expected?" + }, + { + "prediction": "I think this should be `DEBUG_TEST_FAILURE=true` instead of `DEBUG_TEST_FAILURE=false`", + "reference": "This was renamed to avoid any confusion with the more general case of debugging via `plz debug`" + }, + { + "prediction": "I think this should be `new String(val).substring(0, prefixLength).substring(0, prefixLength).substring(0, prefixLength).substring(0, prefixLength).substring(0, prefixLength).substring(0, prefixLength).substring(0, prefixLength).substring(0, prefixLength).getBytes(StandardCharsets.UTF_8);`", + "reference": "String valStr = (String)val; valStr.substring(0, Math.min(valStr.length(), prefixLength)) Make it clean." + }, + { + "prediction": "I don't think this is necessary.", + "reference": "Sorry, this still makes no sense.. the value of any union or enum is simply a name integer constant, it has nothing to do with the `BASE_TYPE_` enum. This value should be `0`. In particular: `Every union has the NONE field, which always has value 0`." + }, + { + "prediction": "I think this should be `getAzkabanURL` instead of `getAzkabanURL`", + "reference": "Looks like getAzkabanURL() is added after concrete Alerter (Emailer)::getAzkabanURL(), so that Override annotation is needed." + }, + { + "prediction": "why do you need to cast to bool?", + "reference": "The above 3 lines can be written as: `mask = segms[i].astype(bool)`" + }, + { + "prediction": "I think this should be `iotex-address` instead of `iotex-address`", + "reference": "File is not `gofmt`-ed with `-s` (from `gofmt`)" + }, + { + "prediction": "I think this should be `logger.always_log(boost::format(\"Node started with peering port `%1%`.\", network.port));`", + "reference": "Thought it's good to have this logged down so that we can check the used value in the logs." + }, + { + "prediction": "I think this should be `*bool` instead of `*bool`.", + "reference": "I don't think you can call this optional unless it's a pointer - remove this?" + }, + { + "prediction": "Shouldn't this be `listSaveProduct.isEmpty()`?", + "reference": "@naofum please use `isEmpty`method instead" + }, + { + "prediction": "I think this should be `nullable_handle = compile_layer.addModule(module, resolver);` or `maybe_handle = compile_layer.addModule(module, resolver);`", + "reference": "i think this is unrelated and needs to be reverted. need to discuss at sync." + }, + { + "prediction": "Why is this needed? I think it would be better to use `org.hyperledger.besu.plugin.data.BlockHeader` instead of `org.hyperledger.besu.plugin.data.BlockHeader`", + "reference": "Are we eventually moving those type interfaces from plugin project to datatype project? If not, then we'd have a dependency from core onto plugins, which seems a little counter-intuitive to me." + }, + { + "prediction": "Why do we need this?", + "reference": "Love how we can finally use async/await in the codebase." + }, + { + "prediction": "I think this should be `bool` instead of `bool`.", + "reference": "Very minor: this line could be moved to a more narrow scope, inside `if (!representative.decode_account (representative_text))` Other than that, LGTM" + }, + { + "prediction": "Is there a reason to remove this flag?", + "reference": "when is this consumed? I'm probably missing it but I can't find it right now" + }, + { + "prediction": "I think this should be `if (isRollup()) {`", + "reference": "I think we also need to add the rollupGroupExprList() to the cache key. If we rebuild the list above from a ValueIdSet on line 418 above, it is probably going to be in the same order, regardless whether it was ROLLUP(a,b) or ROLLUP(b,a)." + }, + { + "prediction": "I don't think we need to add the `MethodConfig` class to the `MethodConfig` class.", + "reference": "can use `getParamTypeName` instead" + }, + { + "prediction": "I think we should use the `isXmlHttpRequest()` method instead of the `isXmlHttpRequest()` method.", + "reference": "Why send the parameters? They're accessible directly from `$this->request` so there's no need to inject them in the method" + }, + { + "prediction": "I think this should be `super().chooseFile(parent_frame, suggested_file)`", + "reference": "Tiny nit: I would prefer `not selected_file` or `len(selected_file) == 0`, as if choose_file starts returning, for example, tuples instead of lists, this won't break." + }, + { + "prediction": "I think this should be `memberNodeName := strings.Split(member.Name, \"-\")[0]`", + "reference": "How will this code behave with hostnames that contain hyphens?" + }, + { + "prediction": "Shouldn't this be `kegg.Trim()`?", + "reference": "I think this is redundant since \"NullForEmpty\" already calls \"Trim()\"." + }, + { + "prediction": "I think this should be `GroupCloudBackupID`", + "reference": "Change this to IDs too?" + }, + { + "prediction": "I think we should use `ImmutableSet.of()` instead of `ImmutableSet.of()`", + "reference": "private static final, and it should be located in raidsoverlay, as it's not needed in the plugin. also the name could be a bit better, DC_SCOUT_RAIDS or similiar." + }, + { + "prediction": "(style) line over 80 characters", + "reference": "attr_value is 128 bytes?" + }, + { + "prediction": "I think we should use `self.method = self.config.get(\"method\", \"GET\")` instead of `self.config.get(\"method\", \"GET\")`", + "reference": "if it's unpredictable - why uppercase it at all?" + }, + { + "prediction": "I think this should be `beforeinstallkubeedge` instead of `beforeinstallkubeedge`", + "reference": "Please remove all these debug prints. It doesn't look good." + }, + { + "prediction": "I think this should be `SampleChainRandomness`", + "reference": "Consumers of this interface should not be required to provide `sampleHeight`. This should be an expected consensus parameter." + }, + { + "prediction": "I think this should be `if closeTime.Before(startTime) { closeTime = startTime }`", + "reference": "I don't believe this is the right fix. If startTime comes after closeTime, then it means some other event triggered invocation of this code path like workflow timeout. In this case we should still try to fire the cron on previous value so we should just return start the delta between startTime and closeTime immediately." + }, + { + "prediction": "I think this should be `CloudBackupStatus` or `CloudBackupTag`", + "reference": "Not sure if we need tag here, it is an implementation detail in portworx that isn't exposed in openstorage" + }, + { + "prediction": "Why not use `is_array` here?", + "reference": "I wonder if it would be cleaner to refactor all of this similar to the SolrMarc driver, so we have a property with Summon field names associated with types, and we iterate through it in a loop... that way we don't have to repeat the loop code four times with different variable names." + }, + { + "prediction": "Why not use `searcher.getCore().getCoreContainer().getSolrClientCache()`?", + "reference": "Need the `solrClientCache.close();` further down in the method be removed since a shared cache is now used?" + }, + { + "prediction": "I think this should be `int64` instead of `int64`", + "reference": "according to the PR (schema changes?) these 2 field should be removed?" + }, + { + "prediction": "Why is this removed?", + "reference": "Panic here if `exp.Target.StressChaos.CintainerName` is nil." + }, + { + "prediction": "I think this should be `@Nullable`.", + "reference": "This allows for some hacks like returning an iterator that matches more docs than the scorer. I liked the previous approach that returned an iterator better." + }, + { + "prediction": "I think this should be `LOG.debug(\"Opening [{}] for read\", file);`", + "reference": "Aren't there already logs for this from the underlying file system implementation?" + }, + { + "prediction": "Why did you change this?", + "reference": "It would be good to have a test in here that demonstrates the new munge functionality; I can help set that up if you're not sure how." + }, + { + "prediction": "I think this should be `max_retrials_to_get_pods` or `max_retrials_to_get_pods`", + "reference": "`retrials` isn't the word you intend. I think you mean `retries` and to that end, can the var name just be `max_retries`?" + }, + { + "prediction": "Shouldn't this be `Value in product it should contain 255 characters or less.'`?", + "reference": "Value in product should contain 255 characters or less." + }, + { + "prediction": "why not use FSM here?", + "reference": "line is 133 characters (from `lll`)" + }, + { + "prediction": "I don't think we need personal_options here.", + "reference": "since we're calling the file .rspec-local, I think we should rename local_options to project_options and use local_options for .rspec-local - WDYT?" + }, + { + "prediction": "I think we should use `connection_config[:http_adapter]` instead of `connection_config[:http_adapter]`.", + "reference": "Will we want to refactor this when we drop rsolr 1.x support?" + }, + { + "prediction": "I think we should use `nodeIP` instead of `nodeIP`", + "reference": "should this really be multiple IPs?" + }, + { + "prediction": "I don't think this is needed anymore.", + "reference": "Hmm, is that partial used in multiple places? Maybe we can just move that file in here." + }, + { + "prediction": "I think we should use `go:generate_mockgen.sh` instead of `go:generate_mockgen.sh` and `go:generate_mockgen.sh`.", + "reference": "Should be 2014-2016" + }, + { + "prediction": "I think this should be `value.EndsWith(quote)` instead of `value.Substring(1, value.Length - 2)`", + "reference": "Looks like my fault for sure in trying to handle international inputs regardless of locale. I think the correct fix is actually to get rid of TrySplitColumns and use ParseDsvFields instead. It is what gets used in the end, and it already has logic for dealing with quoted fields." + }, + { + "prediction": "I think this should be `cursors[0].close();`", + "reference": "similarly here, are the these cursors not being closed when the client is closed?" + }, + { + "prediction": "Why is this change needed?", + "reference": "Or maybe `func(args ...string) Policy` to make it dynamic in case of any future policy that may require more than one args." + }, + { + "prediction": "I think this should be `config.MakeFBOsForExistingJournals(ctx)` instead of `config.MakeFBOsForExistingJournals(ctx)`", + "reference": "Should this happen even if the above failed?" + }, + { + "prediction": "I don't think we need to change the copyright.", + "reference": "Please dont change this ." + }, + { + "prediction": "Why not use `%2$b` instead of `%2$b`?", + "reference": "There is a strange $b that looks wrong." + }, + { + "prediction": "I think this should be `containerContainsText` instead of `containerContainsText`", + "reference": "Is it still important to have `speakEntry` here? It is checked before this value `containerContainsText` is used in the \"General\" section." + }, + { + "prediction": "I think this should be `sh.export 'PATH', '$JAVA_HOME:$PATH'`", + "reference": "It is `$JAVA_HOME/bin`, not `$JAVA_HOME`, which should be added." + }, + { + "prediction": "I think this should be `#include ` instead of `#include `.", + "reference": "Should move this to within the `#else` block as it's only used there." + }, + { + "prediction": "Why not use `waitForAjax` instead of `waitForAjax`?", + "reference": "is this a common rule to wait one extra second after ajax? I'm thinking about moving this extra wait into waitForAjax method." + }, + { + "prediction": "Why not use `unset($properties['logger']);` instead of `unset($properties['site']);`?", + "reference": "Maybe you can correct the typo \"if\" too :)" + }, + { + "prediction": "I think this should be `IdentifyForChat` instead of `IdentifyForChat`", + "reference": "I'd prefer a name less chat-specific, since later on we could have other app types that want the same behavior. Maybe `IdentifyAndAllowTrackBreaks`?" + }, + { + "prediction": "I think this should be `import_mpi4py()` instead of `import_mpi4py()`", + "reference": "I think I was involved in writing that caster, but I never fully understood the `import_mpi4py` thing. Why is importing mpi4py still necessary at that point? I would think if the user is passing a communicator from python code, they must already have imported mpi4py themselves, or does that not propagate through into the wrapping layer?" + }, + { + "prediction": "Why is this change needed?", + "reference": "This seems like a more interesting change. Maybe we should re-name the PR" + }, + { + "prediction": "I think this should be `IConnectionHeartbeatNotificationFeature` instead of `IConnectionLifetimeNotificationFeature`", + "reference": "Nit: implement the methods for these interfaces explicitly in this file for consistency. It can be passthrough." + }, + { + "prediction": "I think this should be `CSharpCommonTransformer.getCallName()`.", + "reference": "Not directly related to your PR, but I think here we should create a Type enum (MAP, ARRAY, PRIMITIVE) instead of having 3 flags." + }, + { + "prediction": "I think this should be `isFirstBatch = false` instead of `isFirstBatch`", + "reference": "Do you want this to be a stack variable? The work method might return at any time (example: when the parent queue fills up) and then get called again, which would cause this variable to become false again. I'm wondering if this variable should be a member instead?" + }, + { + "prediction": "I think this should be `kEdgesTable.data()` and `kEdgesTable.size() + sizeof(GraphSpaceID)`", + "reference": "You could reserve a const space to save the extra computation." + }, + { + "prediction": "I think this should be `/home/user/runtime/src/coreclr/runtime/src/libraries/System.Private.CoreLib/src/System/IO/Path.cs`.", + "reference": "Did you consider adding rooted paths like `C:\\ProgramData` and paths with flipped separators?" + }, + { + "prediction": "Why is this change needed?", + "reference": "does this line cause a panic if it is above the if condition ?" + }, + { + "prediction": "I think this should be `LibraryDetailsPanels` instead of `LibraryDetailsPanels`", + "reference": "Maybe `LibraryDetailsPanelType` would be clearer." + }, + { + "prediction": "Why is this removed?", + "reference": "minor nit - add \"persist-filesystem\" and \"persist-directory\" into commit message, as its something people may search on (maybe applies to a few other commit messages)" + }, + { + "prediction": "Why is this removed?", + "reference": "I verified offline with @jeremyg-lunarg this should be removed." + }, + { + "prediction": "I think this should be `fmt.Sprintf(\"incldued_wf name:\", i.Workflow.Name, \" timeout:\", i.Workflow.DefaultTimeout)`", + "reference": "This should be removed? If not, typo in incldued_wf" + }, + { + "prediction": "I think this should be `variant({ key: 'buttonStyles' }) || variant({ key: 'buttonStyles' }) || variant({ key: 'buttons' }) || variant({ key: 'buttonStyles' }) || variant({ key: 'buttonStyles' }) || variant({ key: 'buttons') || variant({ key: 'buttonStyles' }) || variant({ key: 'buttonStyles' }) || variant({ key: 'buttonStyles' }) || variant({key: 'buttonStyles')) || variant({ key: 'buttonStyles' })) || variant({ key: 'buttonStyles' })) || variant({ key: 'buttons' })) || variant({ key: 'buttonStyles' })) || variant({ key: 'buttonStyles' }) || variant({ key: variant({ key: variant({ key: 'buttonStyles' })) || variant({ key: 'buttonStyles' })) || variant({ key: 'buttonStyles' })) || variant({key: variant({key: variant({key: 'buttonStyles' })) || variant({ key: variant({ key: variant({ key: 'buttons' })) || variant({ key: variant({ key: variant({ key: variant", + "reference": "Sorry for the delay on this! It looks like Circle CI isn't running tests on some of the PRs, but this doesn't look like it would work I might be missing something, but are the tests all passing locally?" + }, + { + "prediction": "I think this should be `SplitPath[]string` or `SplitPath[]string`", + "reference": "Do you think the godoc should mention that all delimiters will be suffixed with `/`?" + }, + { + "prediction": "I think it would be better to use `SessionStore.PRIVATE_BROWSING_URI` instead of `SessionStore.PRIVATE_BROWSING_URI`.", + "reference": "what if I want to load my own, a different, data URI in Private Browsing mode? I do this often on desktop (e.g., `data:text/html,×`). admittedly, I wouldn't expect this to be done by a non-developer, but this will certainly cause a minor bug." + }, + { + "prediction": "I think this should be `long.MAX_VALUE` instead of `long.MIN_VALUE`.", + "reference": "I remember the sequence number 0 is kept for the data files for iceberg v1, so in theory the sequence number from delete files should start from 1. So setting it to 0 as the default value sounds correct." + }, + { + "prediction": "I think this should be `int_version` instead of `int_version`", + "reference": "For all these MYSQL queries unsigned is required. I have tested again and without unsigned these queries are failing." + }, + { + "prediction": "I think this should be `MAX_HISTORY_PER_HISTORY`?", + "reference": "Are there tests for this? What happens when you get to limit?" + }, + { + "prediction": "I think this is a good idea, but I don't think we need to check if the transport is local or not.", + "reference": "Whole thing could be collapsed to `data['config']['transport'] ||= 'local' if target.name == 'localhost'`." + }, + { + "prediction": "I think this should be `if (mServiceConnection == null) { return; }`", + "reference": "maybe throw in `&& mServiceConnection.isBound()`, there are cases where the connection might die" + }, + { + "prediction": "I think this should be `true` instead of `false`", + "reference": "Can we add Istanbul with this first EIP please? (or as a separate issue)" + }, + { + "prediction": "I think this should be `sn.Username = usr.Username` instead of `sn.Username`", + "reference": "I don't understand this change" + }, + { + "prediction": "I think this should be `self.show_warning(\"Invalid Public key\")`", + "reference": "Let's allow translators for this string to be translated: `self.show_warning(_('Invalid Public key'))`" + }, + { + "prediction": "I think this should be `if (!role && landmarks.includes(role)) { return false; }`", + "reference": "This needs to work with `role=form` too." + }, + { + "prediction": "I think this should be `if (localConnection && localConnection.type == Blockly.OUTPUT_VALUE)`", + "reference": "This should be before the if on line 1028, which should turn into an else if" + }, + { + "prediction": "I think this should be `ACNPRuleAppliedToSpec` and not `ACNPRuleAppliedToSpec`", + "reference": "Not really introduced by this PR, but I don't recall why these have to be pointers, while `PodSelector` / `NSSelector` do not. Do you know the reason?" + }, + { + "prediction": "I think this should be `sample-r.minRTT >= ackDelay`", + "reference": "Is there a reason why we are ignoring the ackDelay if it would result in a value smaller than the min? Why not `max(sample - ackDelay, minRTT)`?" + }, + { + "prediction": "I think this should be `[GeneratedCode(\"Microsoft.Json.Schema.ToDotNet\", \"0.32.0.0\")]`", + "reference": "Here's an example of how the files in the `NotYetGenerated` directory drifted out of sync from the generated files. When we made the equality comparers internal, we neglected to fix this one." + }, + { + "prediction": "Do we need this method?", + "reference": "nice. we should do this elsewhere too. We have a lot of repeated stuff in the policies" + }, + { + "prediction": "I think this test should be `TEST_F(BadPonyTest, DefaultArgScope)` instead of `TEST_F(BadPonyTest, DefaultArgScope)`", + "reference": "Small formatting thing, but can you remove the space before the semicolon?" + }, + { + "prediction": "Why is this change needed?", + "reference": "Not new, but nit: _writeLeng*th*." + }, + { + "prediction": "I think this test should be in a separate PR.", + "reference": "Our habit is to go ahead and put a description line (or more) in front of every function, not just non-test or exported functions." + }, + { + "prediction": "Why is this change needed?", + "reference": "Remove this file from the PR" + }, + { + "prediction": "Is this change needed?", + "reference": "I think that for cloud variables, the default value in the prompt should be the variable name without the cloud prefix; this is slightly different from the scratch 2.0 behavior, but I think would ultimately lead to less confusion. Proposing code changes below:" + }, + { + "prediction": "I think this should be `!= NULL` instead of `!= NULL`", + "reference": "I think I would rather fish this interface through than use it as the basis for heuristics." + }, + { + "prediction": "Why is this changed?", + "reference": "Probably not worth making this line-ending change, since it is the only change to this file." + }, + { + "prediction": "(style) code indent should use tabs where possible", + "reference": "Is this the correct place for this assert? Does this routine rely on it being 64, or was this only for testing?" + }, + { + "prediction": "I think we should move this package to the `miner` package.", + "reference": "No pb please" + }, + { + "prediction": "Layout/EmptyLinesAroundTableBody: Extra empty line detected at class body beginning.", + "reference": "We need to add indexes here on both `subscriber_id` and `changeset_id` or things will quickly collapse as we build up subscribers ;-) What I would suggest is a unique index on `[:subscriber_id, :changeset_id]` which will also make duplicate entries impossible, and an ordinary index on `[:changeset_id]` for finding the subscribers to a changeset." + }, + { + "prediction": "I think this should be `client.PostMessage(channel, slack.MsgOptionText(message, false))`", + "reference": "use the context versions of everything, e.g. `PostMessageContext` and thread it through the functions. will save you a bunch of refactoring trouble later on." + }, + { + "prediction": "I think this should be `True` instead of `False`.", + "reference": "\"not to be used elsewhere other than\"" + }, + { + "prediction": "I think this should be `setAll(properties)` instead of `setAll`", + "reference": "Thanks for the contribution, @coolderli ! I also think the newPosDeleteWriter need the properties setting ..." + }, + { + "prediction": "I think we should move this to `SubscriptionsMigration` so that we don't have to move it to the `SubscriptionsMigration` class.", + "reference": "These additions seem unrelated to this change?" + }, + { + "prediction": "I think this should be \"iceberg.engine.hive.enabled\"", + "reference": "Could we move this to a class for Hadoop configuration properties, like `org.apache.iceberg.hadoop.ConfigProperties`?" + }, + { + "prediction": "Why remove this?", + "reference": "The related statements should also be deleted." + }, + { + "prediction": "I think this should be `if policies:`.", + "reference": "Shouldn't this line be removed?" + }, + { + "prediction": "I think this should be `whitelisted_name`", + "reference": "Just move this into `const.py`. It already has similar stuff. Also, make it uppercase since it's a const." + }, + { + "prediction": "I think this should be `setMode(PasscodeMode.Check);`", + "reference": "Issue is that `currentMode = newMode;` is called at the end of the method. Passcode screen will come up, but since the activity thinks current mode is biometric check we don't check passcode when submitted." + }, + { + "prediction": "Why is this change needed?", + "reference": "Need change it back?" + }, + { + "prediction": "I don't think we need to do this, but I'm not sure if this is the right thing to do.", + "reference": "Didn't we delete this file a while back because it isn't used but people think that it's a security vulnerability that it's checked in?" + }, + { + "prediction": "I think we should remove the extension methods from Datadog.Trace.ExtensionMethods, since it's only used in Datadog.Trace.ExtensionMethods.", + "reference": "nit: Looks like this can be removed now" + }, + { + "prediction": "Why is this removed?", + "reference": "Can probably remove the lines above it too (L60-62), since ProvisionDefaultCA() makes sure the map isn't nil." + }, + { + "prediction": "I think this should be `if (handler_registered == 0) { handler_registered = 0;`", + "reference": "Do you think it's worth erroring out? It's likely that this is a configuration error that the user might want to know about?" + }, + { + "prediction": "I don't think this is needed anymore.", + "reference": "I think the functional test should not change here, this is probably a test in itself :)" + }, + { + "prediction": "I think this should be `p = bluemonday.UGCPolicy()`.", + "reference": "Why this to be a public function?" + }, + { + "prediction": "I think this should be `timing: false` instead of `timing: false`", + "reference": "I think we can remove the timing for export env vars" + }, + { + "prediction": "I don't think this is needed anymore.", + "reference": "wrong import grouping" + }, + { + "prediction": "Why is this removed?", + "reference": "There is a doubled semicolon ;)" + }, + { + "prediction": "I think this should be `#include \"openssl/md5.h\"`.", + "reference": "I'm wondering why this isn't . Seems like one would have to copy the md5.h file into the source tree somewhere for this to compile cleanly. Maybe you meant to use angle brackets instead of quotes?" + }, + { + "prediction": "Why is this change needed?", + "reference": "shouldn't **call** return a boolean?" + }, + { + "prediction": "I think this should be `!PassCharmTargetRestriction(entity_list.GetMobID(target_id))`", + "reference": "We don't need to cast to client here. (well, from spell gem not AA etc) We should also make sure the charm is a casted spell before calling SendSpellBarEnable." + }, + { + "prediction": "I think this should be `invocation_id` instead of `invocation_id`", + "reference": "This is not an `id`. This should either be `invocation_time` or `invocated_at` to be consistent with what we are using elsewhere, and also to better rerflect the column's DateTime type. Also, within the context of this table, there is no idea of what `invocation` is. I know that `scanner` may not be future-proof, but we need to find something more descriptive. Perhaps one possibility is to call this `audit_time`." + }, + { + "prediction": "I think this should be `return basics.Address{}` instead of `return basics.Address{}`", + "reference": "should the 'Receiver' be the clawback address in case of clawback transaction?" + }, + { + "prediction": "I think this should be `controllerStatusOk` and `volumeStatusOK`.", + "reference": "@ashishranjan738 -- Where are these consts used? in which pkg?" + }, + { + "prediction": "I think this should be `:toctree: pythonapi/` or `:toctree: pythonapi/`", + "reference": "The only change I would suggest is moving these lines back below the `templates_path` variable to keep the diffs smaller." + }, + { + "prediction": "Why is this change removed?", + "reference": "Having it above kept the block info in the cached changes, which could end up confusing things quite a bit." + }, + { + "prediction": "I think we can remove the `input_method` argument from the `run_task` method, since it's only used in the `run_task` method.", + "reference": "If the execute_task returns an `ExecutionResult`, the passing of a block would be unnecessary. Instead, the `ExecutionResult` could be presented to the user in some standardized way (iterating over the result of each node, etc.)." + }, + { + "prediction": "Why is this change needed?", + "reference": "Not sure why we make a new channel here. If we don't use this channel, how about creating it inside the `Connect`?" + }, + { + "prediction": "I think this should be `std::min(wal_->lastLogId(), lastLogId);`", + "reference": "There are two question here: 1. If you only modify lastLogId, but the `iter` is not modified, I really don't know whether we can succeed. 2. We will check the if the term has changed in `replicateLogs` (if rollback really happen, the term must have been updated), so I really doubt whether the problem should be fixed in this way. Or you could describe it in more details." + }, + { + "prediction": "Why is this change needed?", + "reference": "Hello @jDolba, I have reviewed your PR and I found one problem. `$step->getFormType()` can return `FormTypeInterface`. You cannot use interface as key for an array. Can you find some better way to fix this? Thank you." + }, + { + "prediction": "I think this should be `gpgcheck=0` and not `gpgcheck=1`.", + "reference": "i was confused by keyword \"inventory\" here. my understanding is this starts the osconfig-agent which covers inventory lookup and package-management(correct me if i am wrong)." + }, + { + "prediction": "Shouldn't this be `timeouts`?", + "reference": "These are really meant to be the keys in the capabilities, not the keys of values within the capabilities" + }, + { + "prediction": "Why is this needed?", + "reference": "This breaks tests on IE because this will import an `esm` bundle. For that reason `sinon` is available as a global in our test suite and never imported. The global is aliased to the proper `es5` file." + }, + { + "prediction": "I think this should be `timeReorderingFraction = 1.0 / 8`", + "reference": "Maybe move all the Loss Recovery constants to a separate file." + }, + { + "prediction": "Why is this change needed?", + "reference": "this field is added so that we can find disk name by device name from attachments" + }, + { + "prediction": "Please remove empty line.", + "reference": "Unnecessary new line" + }, + { + "prediction": "I think this should be `state.NamespacePaths[ns.Type] = ns.GetPath(pid)` instead of `state.NamespacePaths[ns.Type] = ns.GetPath(pid)`", + "reference": "First determine if the namespace already exists, so it's clearer that it's handling namespaces that aren't included in the `c.config.Namespaces`" + }, + { + "prediction": "I think this should be `download_links_wrapper` instead of `download_links`", + "reference": "What changed in the styles that means we don't need this?" + }, + { + "prediction": "I think this should be `projectJsonRoot.SelectToken(\"frameworks.\" + NewtonsoftEscapeJProperty(framework) + \".dependencies\");`", + "reference": "This pattern should be applied to the other instance where NewtonsoftEscapeJProperty is used and you can remove the NewtonsoftEscapeJProperty method." + }, + { + "prediction": "I think it would be better to add a warning to the `histogram` class.", + "reference": "Something to mention in the next changelog/release notes. It will be good to get histogram working consistently with everything else." + }, + { + "prediction": "I don't think we need to add the namespace here.", + "reference": "What does this contain? Is it PVC namespace or is it openebs?" + }, + { + "prediction": "I don't think we need to add this feature to the `IHttpRequestBodyMinimumDataRateFeature` class.", + "reference": "Design note: Using local concrete data types on a feature abstraction makes it hard to generalize / replace. This is tolerable so long as this remains a kestrel exclusive feature, but we'd need a different design if this were ever moved to HttpAbstractions." + }, + { + "prediction": "Why not use R_AS_INT here?", + "reference": "this will break R package, you should update the R files accordingly. BTW, the call state should be in the last argument." + }, + { + "prediction": "I think this should be `if (null !== $mediaContext) {`", + "reference": "Shouldn't we throw an exception if the context is null instead ?" + }, + { + "prediction": "I think this should be `>= 1.10.0` and not `>= 1.10.0`", + "reference": "These should both be const, not var right?" + }, + { + "prediction": "I think this should be `registry_match_cost`", + "reference": "Rename the directory, match_costers -> match_costs" + }, + { + "prediction": "I think we should use `self.resource.request.get('_limit', '1')` instead of `self.resource.request.get('_limit', '1')`", + "reference": "I don't think this should go in the model tests, since it is done in the resource. `PaginatedDeleteTest` seems more appropriate" + }, + { + "prediction": "I don't think we need to check if the session ID is null. If the session ID is null, then the session ID will not be null.", + "reference": "It would be better to just change RWD to throw IllegalStateException if you attempt to execute a command after quit (unless it's a second call to quit())" + }, + { + "prediction": "Why is this change needed?", + "reference": "Could we move this to an example test to allow the compiler to help us ensure it stays up-to-date in the future?" + }, + { + "prediction": "Why did you remove this?", + "reference": "Maybe we could update these to use $future and then check on stderr? that way when we deprecate stdout we can not have to delete tests." + }, + { + "prediction": "I think this should be `(int) _maxFrameSize;` instead of `(int) _maxFrameSize;`", + "reference": "Remove this since it always has to be set afterwards." + }, + { + "prediction": "Why is this change needed?", + "reference": "These two tests were causing us to use too many goroutines with `-race` using the default block change size, I think due to prefetching." + }, + { + "prediction": "Shouldn't this be `now` or `requestContext`?", + "reference": "Is that `try..except` block really needed? I mean, when it could fail?" + }, + { + "prediction": "I don't think we should be using `suspense.test.js` here. I think we should use `suspense.test.js` instead of `suspense.test.js`.", + "reference": "If you only want to run a specific group of tests you can always use `.only` like `it.only()` or `describe.only()`. It may not speed up the globbing process as much as this change here :)" + }, + { + "prediction": "I think this should be `batch_size_map = { 'kinesis': 100, 'dynamodb': 10, 'sqs': 10 }`", + "reference": "nit: I'd probably rename this to `BATCH_SIZE_RANGES`, to use a slightly more descriptive name." + }, + { + "prediction": "Why is this change needed?", + "reference": "aren't these the wrong way around?" + }, + { + "prediction": "I think this method should be `getCoreConfigService`", + "reference": "Lets call this getConfigSetService and maybe rename the field now (or later)" + }, + { + "prediction": "Why is this needed?", + "reference": "Could / should we make these constants and give them a type?" + }, + { + "prediction": "I don't think we need this annotation.", + "reference": "lets stick with lowercase for consistency." + }, + { + "prediction": "Why is this removed?", + "reference": "ordering of imports went wrong" + }, + { + "prediction": "I think this should be `String.valueOf(MetadataTableType.ALL_DATA_FILES)` instead of `String.valueOf(MetadataTableType.ALL_DATA_FILES)`", + "reference": "I think these can all be .name() to get the value we are looking for" + }, + { + "prediction": "I think this should be `printOnlyString` instead of `printOnlyString`", + "reference": "Is this a good place for these test cases?" + }, + { + "prediction": "why is this print needed?", + "reference": "Did you mean to leave the print statement?" + }, + { + "prediction": "I think we should use `new BN(500000000);` instead of `new BN(500000000);`", + "reference": "I would do `new BN(Interpreter.LOCKTIME_THRESHOLD)`" + }, + { + "prediction": "I think this is not a good idea, but I think it would be better to use `import java.util.List;` instead of `import java.util.Queue;`", + "reference": "@ftomassetti I turned the tree walking algorithms into iterators so you don't have to visit every node when you only wanted a few, like for a `findFirst`." + }, + { + "prediction": "I think this should be `TimeoutTimeoutType` instead of `TimeoutTimeoutType`", + "reference": "Need to add type name here to be compatible with proto string representation." + }, + { + "prediction": "I think this should be `log.finest(\"Building \" + target + \" ...\");`", + "reference": "This is to let people know that the tooling is doing something during a build. Please leave." + }, + { + "prediction": "Why is this change needed?", + "reference": "Why is the principal changing here?" + }, + { + "prediction": "I think this should be `blob.core.windows.net` instead of `blob.core.windows.net`", + "reference": "Naming nit: let's use `AZURE_STORAGE_` prefix for consistency with the other ones." + }, + { + "prediction": "I think this should be `progressindicator` instead of `progressindicator`", + "reference": "I'm a bit confused. We have an actual `ProgressBar` Uppy React wrapper component that we are testing. Why do we need a mock for it?" + }, + { + "prediction": "I don't think we need to import errors here.", + "reference": "can we use `github.com/pkg/errors`?" + }, + { + "prediction": "Why is this change needed?", + "reference": "I changed the name of the arguments here just to help make the code clearer." + }, + { + "prediction": "I think this should be `Callable` instead of `Callable`.", + "reference": "I think either 'avoiding calls to the function' or 'to avoid calling the function ...' would be read better." + }, + { + "prediction": "Why is this change needed?", + "reference": "@sfricke-samsung -- thanks. saves a few atomic ops which is always good :) The TODO is there to track that this object is storing *both* vectors of shared_ptr and plain pointers to the same data. The shared are to ensure scope, and the plain are for backwards compatibility with existing code that consumed a plain pointer vector (and some code that still does). That should be cleaned up." + }, + { + "prediction": "I think we should use `using Nethermind.Core;` instead of `using Nethermind.Metrics;`", + "reference": "minor: typo (knowMetricsTypes -> knownMetricsTypes)" + }, + { + "prediction": "I think this should be `static_cast(right)` instead of `static_cast`", + "reference": "This adds a case-insensitive flag to the type in the RangeSpec, but I don't think RangeSpecs are written to handle case-insensitive comparisons. Take a look at the methods that deal with comparisons when building RangeSpecs, in file Range.cpp. So, I think you would have to do one of two things: a) disable the RangeSpec transformation for case-insensitive comparison operators (the easy way) or b) change the RangeSpec methods to handle case-insensitive comparisons." + }, + { + "prediction": "I think this method should be called `solveMethodInType` instead of `solveMethodInType`.", + "reference": "I would throw an exception if the type is not solved" + }, + { + "prediction": "Why did you remove this?", + "reference": "if remove `dt.skipLoad` - then this tests will run. You probably mean opposite?" + }, + { + "prediction": "I think this should be `run_and_report_duration` instead of `run_and_report_duration`", + "reference": "I feel like we do this in a lot of places should we move that out into its own PR?" + }, + { + "prediction": "Why is this change needed?", + "reference": "Already asked you in Matrix, but I'll do it here again so it can be discussed publicly. Why?" + }, + { + "prediction": "I don't think we need to de-indent all the code inside it.", + "reference": "I think here should be a comma before remove, in all the cases" + }, + { + "prediction": "I think this should be `self.bbox_roi_extractor = context.bbox_roi_extractor[stages]`", + "reference": "Single quote is used by default in this project." + }, + { + "prediction": "Why do we need to reconcile on the new SPC?", + "reference": "S1023: redundant `return` statement (from `gosimple`)" + }, + { + "prediction": "Shouldn't this be `Run`?", + "reference": "`ctx` is unused in Close" + }, + { + "prediction": "I think we should use `HttpKernel\\Exception\\NotFoundHttpException` instead of `HttpKernel\\Exception\\NotFoundHttpException`", + "reference": "I'm confused. This exception is thrown when `HeurekaCategory` is not found in database. But this exception extends Http exception. Why? What has database search common with http? If the only reason is that it is the same in the whole project, then fine. But then we have even bigger problem - we don't know how to use exceptions." + }, + { + "prediction": "I think this should be `num_dcn_on_head=2`", + "reference": "Is it necessary to add the suffix `on_head`, because it belongs to` bbox_head`?" + }, + { + "prediction": "I don't think this is necessary, but I think it would be better to use `AC_ARG_WITH` instead of `AC_ARG_WITH`.", + "reference": "Hmm, I wonder if this should just be e.g. `--with-grub-2.02` instead. (Not sure Autoconf supports periods in these switches.) Today's modern GRUB is tomorrow's ancient GRUB. :) Or maybe we should be specific about the feature this is enabling, which might be safer given that each distro carries so many patches. E.g. `--without-grub-efi-16-suffixes`?" + }, + { + "prediction": "Why is this change needed?", + "reference": "Add a GetSerialPortOutput method to Instance that way you don't need to access the client, also it makes the call cleaner as you don't have the odd i.Client and path.Base(i.Project), path.Base(i.Zone)" + }, + { + "prediction": "Use the new Ruby 1.9 hash syntax.", + "reference": "Line is too long. [104/80]" + }, + { + "prediction": "I think this should be `expectedRunningCDs` instead of `expectedAssignedClaims`", + "reference": "Since CD updates (assignment & power state) are now done in this controller..." + }, + { + "prediction": "I think this is a bit confusing, but I think it would be better to use `this.stack = this.stack + '\\n\\n' + opts.parentStack.join('\\n\\n') + '\\n\\n' + opts.parentStack.join('\\n\\n') + '\\n\\n' + opts.parentStack.join('\\n\\n') + '\\n\\n' + opts.parentStack.join('\\n\\n\\n' + opts.parentStack.join('\\n\\n');`", + "reference": "Hmm I'd rather not support this option going forward - it seems like a one-off just to work around this particular issue. Would it be fine to just remove the `deepStackTrace` option? The rest of the PR looks great - I love the idea of switching to sets." + }, + { + "prediction": "I don't think we need to do this, but I think it would be better to have a `comment_creator` method that returns an instance of `Comment` and not an instance of `CommentCreator`.", + "reference": "on the one hand I like how little this is doing. On the other hand, `inbound_mail_parser` is doing most of the work here so maybe it's not as helpful as I originally thought" + }, + { + "prediction": "I think this should be `history_depth(10)` instead of `history_depth(10)`", + "reference": "This line is too long" + }, + { + "prediction": "I think this should be `logger.Fatalf(err.Error())`", + "reference": "This isn't a fatal error, we don't want to crash just because we can't set configs, we have sane defaults set" + }, + { + "prediction": "Why is this change needed?", + "reference": "I wondered why `buffer` was passed into `LookupPath`. What is happening here? Is `buffer[:0]` equivalent to `[]V4TrieEntry{}`, and hence `buffer` isn't needed any more?" + }, + { + "prediction": "I don't think we need to add the `target` attribute here.", + "reference": "I don't really like the name of this file, especially the encoding of an implementation detail (the fact that it's a table) in the name. Can we just use `_message_body.html.erb` instead maybe?" + }, + { + "prediction": "I think this should be `bool` instead of `bool`", + "reference": "Feel better not to expose our internal implementation in API/CRD, so no need to mention agent here. Consider: EnableLogging indicates whether or not to generate logs when rules are matched. Default to false." + }, + { + "prediction": "I think we should check if the space is not read or not.", + "reference": "use `NebulaKeyUtilsV3::dataVersionValue()` to replace the literal value?" + }, + { + "prediction": "I think this should be `if not os.path.exists(path)` instead of `if not os.path.exists(path)`", + "reference": "No need for the `\\` here, inside parentheses whitespace is ignored by Python." + }, + { + "prediction": "I think this should be `` instead of ``", + "reference": "This doesn't seem like the right expected result... it should be the same as the `clientCert` var defined above." + }, + { + "prediction": "Why is this removed?", + "reference": "need to rename this now." + }, + { + "prediction": "I don't think we need to add a TODO here.", + "reference": "NIT: This shouldn't be a TODO. It is just a note isn't it?" + }, + { + "prediction": "I think this should be `message.warning('Edited element vanished')`", + "reference": "I changed this to an error, that seems more appropriate than a warning here." + }, + { + "prediction": "I think this test should not be run for system logs. I think it's better to use `action.IsEvmTransfer()` instead of `action.IsEvmTransfer()`.", + "reference": "This change could mute unit test failure, but it is better to update unit tests" + }, + { + "prediction": "I don't think we need to do this, but I think it would be better to use `notificationIdsInUse.remove(notificationId);` instead of `notificationIdsInUse.remove(notificationId);`", + "reference": "All other places that access `notificationIdsInUse` are in methods with descriptive names. We should do the same here. Maybe `markNotificationIdAsFree()`?" + }, + { + "prediction": "Why is this changed?", + "reference": "keep as `ErrNotFound`, it is the same convention as in other packages" + }, + { + "prediction": "I don't think we need to do this. I think it's better to use `offline_mode` instead of `offline_mode`", + "reference": "Same here, we need to call `callback` in else branch" + }, + { + "prediction": "Why not just use `StringUtils.emptyToNull(certRecord.getHostName())`?", + "reference": "At this point we already check that the record is valid and so it could never be nulll" + }, + { + "prediction": "I think this should be `t \"user.account.title\"` instead of `t \"user.account.title\"`.", + "reference": "Would it not be more sensible just to move setting of the title to later in the method rather than duplicating it here?" + }, + { + "prediction": "I don't think we need to upload session here.", + "reference": "why not do it in `reclaimExpiredSessions`? and `pushSessionToCache` can delete" + }, + { + "prediction": "I think this should be `norm_cfg=dict(type='BN', requires_grad=True),`", + "reference": "out_channels/num_outs/type are unnecessary" + }, + { + "prediction": "I don't think we need to check if `Object.keys(dict)` is a static field. I think we should check if `Object.keys(dict)` is a static field.", + "reference": "You can create an issue for it and put it on the backlog so we don't forget it." + }, + { + "prediction": "I think this should be `debug.Printf(\"Ignoring container %s with --net=%s\", container.ID, networkMode(container.HostConfig))` instead of `debug.Printf(\"Ignoring container %s with --net=%s\", container.ID, networkMode(container.HostConfig))`", + "reference": "So now we are checking twice, both here and in `weaveCIDRsFromConfig`. Not great. I suggest changing the `ok` return of `weaveCIDRsFromConfig` to a messsage (or error?) instead, which we can then log." + }, + { + "prediction": "I think this should be `store.create_package(owner, pkg, PackageFormat.HDF5)` instead of `store.create_package(owner, pkg, PackageFormat.HDF5)`", + "reference": "An alternative to setting format to the default in Package.__init__ would be to set it in create_package. I think we can assume all packages are created by create_package, but not necessarily by build_package." + }, + { + "prediction": "I think this should be `ProposeBlock` or `ProposeBlock`?", + "reference": "Let's add fee recipient as well." + }, + { + "prediction": "I think this should be `pylint: disable=not-called`.", + "reference": "No need for those with `super-init-not-called`, as pylint already only turns things off for this function and it's needed for the entire function." + }, + { + "prediction": "I think this should be `APPLICATION_NAME_PREFIX` instead of `APPLICATION_NAME_SUFFIX`.", + "reference": "I think there's another spot for this in DefaultCapabilityMatcher" + }, + { + "prediction": "I think this should be `actionable_step.decorate.waiting_text` instead of `actionable_step.decorate.waiting_text`", + "reference": "this name seems pretty vague -- thoughts on a more descriptive method name?" + }, + { + "prediction": "I think this should be `copyright file=\"MeterFactory.cs\" company=\"OpenTelemetry Authors\">`", + "reference": "what changed in this line?" + }, + { + "prediction": "Shouldn't this be `const reportArgs = {};`?", + "reference": "Instead of doing this let's add another function similar to `hasZeroData` for selecting the `reportArgs` since this is all sourced from selected values. Then `hasZeroData` can use this internally, as well as the component itself. Since this function would be internal just for the purpose of avoiding duplication, we don't need to expose it on the component the same way though." + }, + { + "prediction": "Why did you remove this?", + "reference": "This line was useful for auto-completion, I think it should be re-added with specifying the var name (`$exception`) and simplifying the FQCN." + }, + { + "prediction": "I think this should be `errCh <- err` instead of `errCh <- err`", + "reference": "This looks like you're not collecting everything from the error channel." + }, + { + "prediction": "Why is this change needed?", + "reference": "This currently violates the Law of Demeter. Using `checkout.plan_name` is the quick resolution." + }, + { + "prediction": "Why is this change needed?", + "reference": "is there any scenario when `$temporaryFilename` can be null?" + }, + { + "prediction": "I think this should be `@SuppressWarnings(\"ReferenceEquality\")` instead of `@SuppressWarnings(\"ReferenceEquality\")`.", + "reference": "this is for the `boolean isRoot = root == rowType` check, which seems to be on purpose, but maybe you could double check whether using ref. equality here is still wanted? Same for `SparkTypeToType`" + }, + { + "prediction": "I think this should be called `roots_drag_icon_update_position` instead of `roots_drag_icon_damage_whole`.", + "reference": "No need to damage after `roots_drag_icon_update_position`, this is already done in `roots_drag_icon_update_position`" + }, + { + "prediction": "I think this should be ``", + "reference": "Have you tested exporting to ONNX with `device=cuda`?" + }, + { + "prediction": "I think we should use `o.name` instead of `o.appName`", + "reference": "Do we also need to validate `envName` flag then? `appName` and `envName` are used in `initLogsSvc` which are called by `svc logs` from within `Execute()`" + }, + { + "prediction": "I think we should use `Config::get('app.trustedHosts', false);` instead of `Config::get('app.url', null);`", + "reference": "@LukeTowers I think I would prefer that we don't force it, on the basis that: a) some people would be opting to configure their web server to protect against this kind of attack and would disable this feature in October CMS to get a small performance increase. b) it might be a bit misleading to say that `app.trustedHosts` set to `false` disables the feature entirely, just to have it be overridden here regardless." + }, + { + "prediction": "Why is this change needed?", + "reference": "i like that you are trying to correct the naming, but its making the PR longer :( i guess in future we can do such changes in separate PRs" + }, + { + "prediction": "Why is this change needed?", + "reference": "Are we marking what the browser's accessibility tree says or what screen readers with those browsers say?" + }, + { + "prediction": "I think this should be `s.Close()`.", + "reference": "This method should behave as intended, to block until it reads an EOF from the other side." + }, + { + "prediction": "I think this should be `Fail to health check repository '%s': %v` instead of `Fail to health check repository '%s': %v`", + "reference": "I prefer starts with `Failed to xxx`, how about `Failed to perform health check on xxx`?" + }, + { + "prediction": "I think this should be `AzureAppServices.Metadata.SiteKind` or `AzureAppServices.Metadata.SiteType`", + "reference": "All these calls make me think we should refactor how traces are started and allow \"source tags\" that we initialize a trace with. I'd like to do this in a follow up." + }, + { + "prediction": "I think this should be `v1_test` instead of `v1_test`", + "reference": "This file shouldn't be in this PR" + }, + { + "prediction": "I think this should be `LessSpecificReturnStatement` instead of `LessSpecificReturnStatement`.", + "reference": "This now causes `LessSpecificReturnStatement - src/somefile.php:9:32 - The type 'non-empty-list<5|string>' is more general than the declared return type 'non-empty-list' for takesList`, which seems correct to me. The type `non-empty-list<5|string>` contains the type `non-empty-list`. Thoughts?" + }, + { + "prediction": "Why is this log level removed?", + "reference": "Are you going to change that back?" + }, + { + "prediction": "I don't think we need this, but I think it would be better to use `ifeq(true, $(staticbuild))` instead of `ifneq(false, $(staticbuild))`", + "reference": "we have a standard format for putting these together elsewhere, it does the filter check first and errors out and then sets based on the value. i think this should be adjusted to do that. there's no logical change, just an approach change." + }, + { + "prediction": "I think this should be `numberOfStepsToDelay`", + "reference": "Note this should be `delay` instead of `scale` here. I'll fix this in my branch." + }, + { + "prediction": "Why did you remove this?", + "reference": "`on` likely still needs a bind, similar to `this.resetProgress = this.resetProgress.bind(this)` correct?" + }, + { + "prediction": "I don't think we need to import `random` here.", + "reference": "Considering the trade-off between training speed and accuracy, multi-scale training is temporarily kept. More elegant implementation will be adopted in the future." + }, + { + "prediction": "I think this should be `context.Context`", + "reference": "Can you move this up along with the other builtin libraries?" + }, + { + "prediction": "I think this should be `if globalVars.appArgs.secure:`", + "reference": "I actually think it makes sense to reposition this checkbox after the notifyForPendingUpdateCheckBox. The current order of check boxes is a bit arbitrary now." + }, + { + "prediction": "I think this should be `CheckoutCommand` instead of `CheckoutCommand`.", + "reference": "Why do we have both `before` and `after`? Naively I would expect this to work as follows: `plz query changed` with no arguments compares the current working directory state to the last commit (i.e. HEAD, i.e. a noop when directly on a git commit). `plz query changed --since [reflike]` compare the current working directory state to the given reflike. So for CI I would expect to run something like `plz query changed --since @{upstream} (or origin/master I guess)`. And on merge I'd either run everything or just `plz query changed --since HEAD^` (given our workflow) - I don't think I'd ever want to do anything else. Either way I think before and after are slightly confusing terms here." + }, + { + "prediction": "I think this should be `is_binary = True`", + "reference": "Is there a reason why we can't use `~dst`? It feels like that could be good enough.I would like to avoid extending the filter syntax unless there's an urgent need. :)" + }, + { + "prediction": "Why is this change needed?", + "reference": "Why local and not UTC?" + }, + { + "prediction": "Why is this change needed?", + "reference": "2012 is a retryable error. Will avoiding rgenerating it here cause a difference in behavior in createServer() ?" + }, + { + "prediction": "I think this should be `github.com/iotexproject/iotex-address/address`", + "reference": "move to line 14 below" + }, + { + "prediction": "`crosses` should be `crosses`", + "reference": "the method name should match teh docs" + }, + { + "prediction": "I think this should be `makeInitialRootMetadata(config.MetadataVersion(), id, h)` and `makeInitialRootMetadata(config.MetadataVersion(), id, h)` and `makeInitialRootMetadata(config.MetadataVersion(), id, h)` and `makeInitialRootMetadata(config.MetadataVersion(), id, h)` and `makeInitialRootMetadata(config.MetadataVersion(), id, h)`", + "reference": "Won't this happen automatically when we flip the default version in the config?" + }, + { + "prediction": "Why is this change needed?", + "reference": "This would also change back to /var/www/html/docroot if we go that way." + }, + { + "prediction": "I think this should be `return getImplicitRole(node, virtualNode) !== null;`", + "reference": "This still needs to use the new option. We'll need tests for it too." + }, + { + "prediction": "I think this should be `if obj.name == obj.value:`", + "reference": "We are no longer including file name in the source files." + }, + { + "prediction": "Use the new Ruby 1.9 hash syntax.
Prefer single-quoted strings when you don't need string interpolation or special symbols.
Prefer single-quoted strings when you don't need string interpolation or special symbols.
Prefer single-quoted strings when you don't need string interpolation or special symbols.
Prefer single-quoted strings when you don't need string interpolation or special symbols.", + "reference": "no need for this. Devise provides us with `current_user` and `user_signed_in?` helpers." + }, + { + "prediction": "I think we should use `capability.getName().equals(NAME) && capability.getVersion().equals(ETH66.getVersion())` instead of `capability.getVersion().equals(ETH66.getVersion())`", + "reference": "Would `Object.equals(capability.getName(), NAME)` would be safer, as you wouldn't have to do null checks?" + }, + { + "prediction": "I think this should be `RSpec::Mocks.space.reset_all` instead of `RSpec::Mocks.space.reset_all`", + "reference": "Hmm, I wonder if we should revert #1862 instead? BTW, what failure do you get w/o this line?" + }, + { + "prediction": "I think this should be `errors.Wrapf(err, \"invalid 'apiURL' %s in slack config\", out.APIURL)`", + "reference": "since there are several places where we do 1) get secret key ref and 2) validate URL, maybe it's worth having a common method? it could also trim spaces as done here (but not at the other places currently)." + }, + { + "prediction": "I think this test should be moved to `normalizeToPartialURL`", + "reference": "TestNormalize... I would also split them" + }, + { + "prediction": "Why do we need to use `indexGen.next()` instead of `indexGen.next()`?", + "reference": "All changes to this file are going to conflict with #7599. Please revert these as well. They will be addressed during the Python 3 transition." + }, + { + "prediction": "I think this is a good idea to use `r.random.Intn` instead of `r.random.Intn`", + "reference": "Just thought, using spinlock (busy wait with compare and swap) that generates 2 random numbers inside rlock. We know that collisions are rare and we don't need that \"large\" write lock really but lock namely for \"rand\". Or least use a separate Lock (Mutex), namely for \"rand\" (wrap it into method). Mutex will use some sort of spinlock as well but it may use some linked list to make it more fair." + }, + { + "prediction": "I don't think we need to import `astroid` here.", + "reference": "Can we grab it directly from `__pkginfo__` as that is the source of truth for the version?" + }, + { + "prediction": "Please remove empty line.", + "reference": "We can revert this to reduce the diff of the PR." + }, + { + "prediction": "I think we should use `protoPkg.contains(\"cloud\")` instead of `protoPkg.contains(\"google\")`", + "reference": "This looks weird. `isCloud` should define if it is a cloud or no. Here it does it partially, and it can be overriden by protoPkg value (which also an argument to this function). Please make sure that isCloud completely defines the cloud thing. (i.e. it an be as straightforward as moving `protoPkg.contains(\"cloud\")` from here to the place where `assembleGoImportPath` is called." + }, + { + "prediction": "I think this should be `(LobTgtFileFlags)fileflags == Lob_Error_Or_Create)` instead of `(LobTgtFileFlags)fileflags == Lob_Error_Or_Create`", + "reference": "Declaring fileflags to be of type LobTgtFileFlags would eliminate the need for all this casting. And would be safer. (Not a show-stopper though.)" + }, + { + "prediction": "I think this should be `LOG.finest(String.format(String.format(String.format(String.format(String.format(String.format(String.format(String.format(String.format(String.format(String.format(String.format(String.format(String.format(String.format(String.format(String.format(String))))))))));`), ...)), ...).).", + "reference": "This change prevents a user understanding how their server is configured. Best to leave at `info` level." + }, + { + "prediction": "I think this should be `#if defined(SSL_set_tlsext_host_name)`", + "reference": "Typically we would add something to the build system environment to differentiate this; also is there an alternative that can be used with older OpenSSL? Other folks who are committers will need to decide if it is worth supporting an older and likely quite vulnerable (to hacks) OpenSSL library." + }, + { + "prediction": "Why is this needed?", + "reference": "`readActiveBlockProducersByHeightTests` is a global variable (from `gochecknoglobals`)" + }, + { + "prediction": "I think this should be `sync.getTarget().getIdFieldName()` instead of `sync.getTarget().getIdFieldName()`", + "reference": "Falls back on `Constants.ID` if there's no custom field set." + }, + { + "prediction": "I think this should be `in.skip(this.getOffset());` instead of `in.skip(this.getOffset());`", + "reference": "I believe this is what we want to rearrange: this in.skip() should not be happening here, in the open method, but in the setOffset() method itself. Because we want to be able to change that offset after the initial open. The setOffset() method will need to throw an IOException, if it's called while the InputStream is still null; or if the skip() call itself results in an IOException()" + }, + { + "prediction": "I think this should be `isPrimitiveReturnType()`.", + "reference": "In case the method is `void`, there won't be any children and `getChild(0)` throws. We'll need to check with `isVoid()` for that case. I'll update this when I merge." + }, + { + "prediction": "I think this should be `yarpc.RequestLogInterceptor{}`", + "reference": "If the yarpc.Interceptors wrapper will be added to any user interceptor, why not do it transitively. Can save one step for users. Same apply to filter." + }, + { + "prediction": "I think this should be `etcdDBDir(e.config) + \"-old-\" + strconv.Itoa(int(time.Now().Unix()))`", + "reference": "Is there anything we should do in the event we're unable to renaming the directory?" + }, + { + "prediction": "I think this should be `go.uber.org/zap`", + "reference": "How is this env var populated? Can this be retrieved from cluster metadata?" + }, + { + "prediction": "I think this should be `FailedToTagInternetGateway` instead of `FailedToTagInternetGateway`", + "reference": "Should probably skip the success event here, since it could be a noop." + }, + { + "prediction": "I don't think we need to add this to the `itemsContainer`", + "reference": "I added this here because people cards (which depends on cardBuilder) had this added in blurhash. Not sure when this is used though cc @JustAMan" + }, + { + "prediction": "Why remove this?", + "reference": "Let's keep this line in the docstring, to let end users know they shouldn't be using this directly." + }, + { + "prediction": "Why is this change needed?", + "reference": "can do the same for other validateXXX()" + }, + { + "prediction": "I think this should be `const_cast(participant_)`", + "reference": "Why is this necessary?" + }, + { + "prediction": "I think we should use `datetime.datetime` instead of `datetime.datetime`", + "reference": "Please move this import upper to other similar imports" + }, + { + "prediction": "(style) code indent should use tabs where possible", + "reference": "Include the key word \"translated\". Otherwise the reader will find this confusing." + }, + { + "prediction": "Why is this a singleton?", + "reference": "why. is this called per request? if so this also adds a lock internally. can we not add this at the moment until analyzed as this assumption isnt carried to the several other impls. the only other consumer of this is the http api and that isnt hit often enough for specializations." + }, + { + "prediction": "Why is this change needed?", + "reference": "I believe this means dependent checks can no longer operate on virtual nodes, which is something we've been pushing for lately. We may need to find a different way to solve this issue, as I don't think we want to cause a regression while fixing a bug." + }, + { + "prediction": "I think this should be `from kinto.core.storage.postgresql.migrator import Migrator`", + "reference": "ditto about use of `abspath`" + }, + { + "prediction": "I don't think you need to use `Math.pow` here.", + "reference": "this reduces the runtime by 50 times" + }, + { + "prediction": "I think this test should be in `org.openqa.selenium.grid.distributor.remote.RemoteDistributorTest`", + "reference": "Probably best not to have an empty test...." + }, + { + "prediction": "I think this should be `throw new IllegalStateException(\"Error instantiating \" + exceptionType);`", + "reference": "direct `newInstance` call is also deprecated now" + }, + { + "prediction": "I think we should use `golang.org/x/sys/unix` instead of `golang.org/x/sys/unix`.", + "reference": "We have a bit of a convention where imports are split into three blocks: first Go standard library, then imports from outside the repo, then imports from inside the repo." + }, + { + "prediction": "Why is this change needed?", + "reference": "Why was this change needed?" + }, + { + "prediction": "This should be `warning(\"No IPv4 address found on %s !\" % ifname)`.", + "reference": "can you use this opportunity to remove `.readlines()` useless list creation? (`addresses = [l for l in fd if l.find(\"netmask\") >= 0]`)" + }, + { + "prediction": "Line is too long. [92/80]", + "reference": "Why does this check differ from `plan_ssh.rb`?" + }, + { + "prediction": "Why is this needed?", + "reference": "File is not `goimports`-ed (from `goimports`)" + }, + { + "prediction": "Why did you remove this?", + "reference": "It was @lodejard who initially suggested this pattern. I think that it had something to do about prioritizing future writes even if there was a pending write operation ready to handle the newly requested write. I'm not sure I fully understood the explanation for having up to 3 pending write requests, because only having one queued write at a time still makes sense to me. I'll talk to him about it." + }, + { + "prediction": "(style) line over 80 characters", + "reference": "We have cli --online_weight_clear in cli.cpp" + }, + { + "prediction": "I think this should be `strings.Split(values[0], \",\")` instead of `strings.Split(values[0], \",\")`", + "reference": "So the request.Headers is a map of []string. Are you sure that the HTTP library doesn't already do this split for us?" + }, + { + "prediction": "I think this should be `EXECUTION_STOPPED` instead of `EXECUTION_STOPPED`.", + "reference": "How is this message used? Can we remove the \"crashed executor/container\" part which is an implementation detail?" + }, + { + "prediction": "I think this should be `GET_HEAP_SNAPSHOT` instead of `GET_HEAP_SNAPSHOT`.", + "reference": "Instead of building in routing for a browser-specific command, could you refactor the HttpCommandExecutor to allow arbitrary commands to be registered?" + }, + { + "prediction": "I think this should be a `

Watch or Download Video

` instead of a `

Watch or Download Video

`", + "reference": "Space after `=`." + }, + { + "prediction": "Shouldn't this be `setAfterCreateInvocationHandler(invocation -> context.put(RestConst.REST_INVOCATION_CONTEXT, invocation));`?", + "reference": "if just need to do something after createInvocation just override and call super first is enough?" + }, + { + "prediction": "Line is too long. [92/80]", + "reference": "By the way, I fixed `announce` method (missing `super` call to announce JDK version)" + }, + { + "prediction": "I think this should be `@SuppressWarnings(\"unchecked\")`.", + "reference": "I'm not sure about that... This line can produce ClassCastException if Comparator do not check this." + }, + { + "prediction": "Why is this change needed?", + "reference": "There wasn't any special reason for this to return a pointer, right?" + }, + { + "prediction": "I think this should be `ConcurrentHashMap` instead of `ConcurrentHashMap`.", + "reference": "Why the need for a `ConcurrentHashMap`?" + }, + { + "prediction": "Why not use `this.naturalSortCompare(aProp, bProp, false);` instead of `this.naturalSortCompare(aProp, bProp, false);`?", + "reference": "New code should use strict equality `===`" + }, + { + "prediction": "Line is too long. [82/80]", + "reference": "`expect(resources['Notify[local pid]']['events'][0]['desired_value']).to match(/(\\d+)/)` seems clearer." + }, + { + "prediction": "Why is this changed?", + "reference": "Removed now-unneeded param." + }, + { + "prediction": "I think this should be `bitswap` instead of `bitswap`", + "reference": "(NON-blocking, this can be tracked in follow up issue) @anorth @mishmosh is the toplevel getting too crowded? Should we have a `network` grandparent command, or maybe a `stats` command?" + }, + { + "prediction": "I think this should be `_x( 'Analytics', 'Service name', 'google-site-kit' )`", + "reference": "The `_x` function needs to be imported at the top of the file (in addition to `__`)" + }, + { + "prediction": "I think this should be `WaitForCondition(() => (DetectionsGraphController.Settings.QValueCutoff == 0.003f));`", + "reference": "This is functionally equivalent to the code it replaces." + }, + { + "prediction": "I think we should use `json:\"default\",omitempty\"` instead of `json:\",omitempty\"`", + "reference": "can you change the field name here to \"InterfaceAssociationProtocol\"? same for the Config struct in agent/ecscni/types.go. i think it's better to keep the field name consistent between agent and acs payload" + }, + { + "prediction": "What's the reason for this change?", + "reference": "See above, same for the other cases." + }, + { + "prediction": "I think this should be `MetricBuilder.GAUGES`.", + "reference": "Shouldn't line 313 be public \\ SettableGauge\\ **settable**Gauge(String name) { ? It would also be good to call it a few times and with differnet types (Long, Integer, String) in the test as well." + }, + { + "prediction": "Why do we need this?", + "reference": "I would prefer to just fix the occurences of this new check rather than disable them" + }, + { + "prediction": "I don't think we need the `feedDataHosted` parameter here, but I think it would be better to use `Feed.TYPE_RSS2` instead of `Feed.TYPE_RSS2`.", + "reference": "The tests should be fixed in #4841, so this is no longer needed" + }, + { + "prediction": "I think this should be `SerializerException` instead of `SerializerException`", + "reference": "I think it should been in `SharedKernel` module." + }, + { + "prediction": "I think this should be `string` instead of `omitempty`", + "reference": "Can we add some description for this field? " + }, + { + "prediction": "I think this should be `DurationType` instead of `TimeType`.", + "reference": "Should its name be Time or Duration? I can see them both." + }, + { + "prediction": "I think this should be `asGRPCOptions`", + "reference": "Is this used anywhere?" + }, + { + "prediction": "I think this test should be `testEmpty(t, []attribute.KeyValue(nil), []attribute.KeyValue(nil), []attribute.KeyValue(nil), []attribute.KeyValue(nil), []attribute.KeyValue(nil), []attribute.KeyValue(nil), []attribute.KeyValue(nil), []attribute.KeyValue(nil), []attribute.KeyValue(nil), []attribute.KeyValue(nil), []attribute.KeyValue(nil), []attribute.KeyValue(nil), []attribute.KeyValue(nil))`", + "reference": "I believe that you can use `assert` instead of `require` here and in the following lines" + }, + { + "prediction": "Why is this change needed?", + "reference": "In `storagemarket.go` you used `nil` for an unwanted out parameter. Do something consistent (nil seems fine if supported)." + }, + { + "prediction": "I think this should be `isPotential`.", + "reference": "is this a new pattern we use in bee? interesting" + }, + { + "prediction": "I think this should be `err.Code == \"BucketAlreadyOwnedByYou\"`.", + "reference": "If you think this PR works, i'll clean this up before resubmitting." + }, + { + "prediction": "I think this should be \"io.servicecomb\" and not \"io.servicecomb\".", + "reference": "are you sure you can read version by this artifactid?" + }, + { + "prediction": "I think we should use `java.util.Objects` instead of `java.util.Objects`", + "reference": "We can get rid of this import then." + }, + { + "prediction": "Why is this change needed?", + "reference": "Should we do our own vtable?" + }, + { + "prediction": "I think this should be `exceptions_app = Rails.root.join('lib')`", + "reference": "This is the actual fix." + }, + { + "prediction": "Why is this changed?", + "reference": "If sync has really a negative impact, this is just moving the issue from 10sec to 60sec. Wonder if you should not expose the (auto)sync params so users can decide." + }, + { + "prediction": "I think this should be `DecodeMap(func(string, Decoder, bool)) bool`", + "reference": "should be called => will be called" + }, + { + "prediction": "why is this change needed?", + "reference": "not sure whether we should do this. It may cause problem that delegates upgrade their nodes at different time, that they will have different \"last block time\", some use \"commit time\", some use \"block time\". Potential solution: Only use block time after berling, and then delete it in the next version after berling. Open to discussion." + }, + { + "prediction": "Why not just throw the exception here?", + "reference": "So one question I have is why is the error coming back from `buildReplicaPositions` not an `Assign.AssignmentException`? Is it because it is wrapped in a `SolrException` from the remote node?" + }, + { + "prediction": "Why is this change needed?", + "reference": "`dt` won't work for some reason?" + }, + { + "prediction": "I think this should be `is not None` instead of `!= \"\"`", + "reference": "Is this because \"KOALAS_USAGE_LOGGER\" can be `None` ??" + }, + { + "prediction": "I think this should be `TxLimitFromABlock` instead of `TxLimitFromABlock`", + "reference": "I like it but maybe the better name will be EthGasPriceConstants or EthGasPriceEstimatorConstants? but Constants not Config" + }, + { + "prediction": "Why is this needed?", + "reference": "I would inline the constructor as well" + }, + { + "prediction": "Why is this change needed?", + "reference": "I'm not confident about this..." + }, + { + "prediction": "I think this should be `v1alpha1.SchemeGroupVersion.WithKind(\"CertificateRequest\")` instead of `v1alpha1.SchemeGroupVersion.WithKind(\"CertificateRequest\")`.", + "reference": "There is also `v1alpha1.CertificateRequestKind` I think?" + }, + { + "prediction": "I think this should be `sender_gcpbroker` instead of `sender_gcpbroker`", + "reference": "Can we rename it to make it less confusing? Instead of \"sender-gcpbroker\", maybe name it to \"retryable-sender\"" + }, + { + "prediction": "I think this change should be reverted.", + "reference": "So looking at the definition of the `literal()` function in this class, it seems it's possible for it to return null. I guess it's not a concern as we would get NPE on the above call at line 136 when trying to call `.to` if `literal()` returned `null` before even getting to this part that calls `literal().value()`, but something I thought I'd bring up. Perhaps something we might follow up on in another issue or possibly I just missed the workflow that makes `literal()`'s result non-null by the time this `bindLiteralOperration` is called." + }, + { + "prediction": "I think this test should be `assertTrue(abs(nrmse.getMetric()[\"value\"]-target))`", + "reference": "Why did you break the line? It looks like it is under 80 characters without the break and it is inside parens so no need for backslash anyway" + }, + { + "prediction": "I think this is a good idea, but I think it would be better to use `import datatable` instead of `from datatable.base import BaseEstimator`", + "reference": "@guolinke Don't you mind to rename this variable to `DATATABLE_INSTALLED`, for the consistency with other variables (for example, there are `PANDAS_INSTALLED` but not `PD_INSTALLED`). Also, `DT` is a little bit confusing: sometimes `dt` is used for `datetime`." + }, + { + "prediction": "Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
Prefer single-quoted strings when you don't need string interpolation or special symbols.
Prefer single-quoted strings when you don't need string interpolation or special symbols.
Prefer single-quoted strings when you don't need string interpolation or special symbols.
Prefer single-quoted strings when you don't need string interpolation or special symbols.", + "reference": "We're fine with double quotes here. Just for future reference." + }, + { + "prediction": "Why is this change needed?", + "reference": "can we keep this around? We should make sure we can distinguish between properly wrapped errors and \"unwrapped\" errors" + }, + { + "prediction": "I think this should be `graphicsPipelineCI.pInputAssemblyState->topology` instead of `graphicsPipelineCI.pInputAssemblyState->topology`", + "reference": "`RecordPipelineShaderStage()` might change `topology_at_rasterizer `, according to shader code, so we should check `pInputAssemblyState `first." + }, + { + "prediction": "I think this should be `assets.js` and not `assets.js`.", + "reference": "Should we just inline the assets here? I can't think of an advantage to having them in a separate file." + }, + { + "prediction": "Why is this change removed?", + "reference": "detectStaleEndpoints to be more specific?" + }, + { + "prediction": "I think this test should be done in C++ too.", + "reference": "Please create a new issue for addressing this (if there isn't one already), so it doesn't get lost." + }, + { + "prediction": "Why is this needed?", + "reference": "Nothing was ever coming out of this channel because its already being consumed. Create a new channel here and feed it in HandleNewHead method." + }, + { + "prediction": "I think we should remove the `AWS SDK for Java v2` keyword and remove the `AWS SDK for Java v2` keyword.", + "reference": "AWS Identity and Access Management (IAM)" + }, + { + "prediction": "I think this should be `LOG.info(\"edgedriver will log to \" + logFile);`", + "reference": "This is deliberately at this level." + }, + { + "prediction": "I think this should be `err := output.NewError(output.ConvertError, \"failed to decode data\", err)`.", + "reference": "payload entered on command line is in hex-encoded format should use same processing as in ioctl/cmd/action/actiontransfer.go" + }, + { + "prediction": "Why not use `getByDomainId` instead of `$alreadyCreatedDemoPricingGroupsByDomain`?", + "reference": "should this be kept in the `else` branch?" + }, + { + "prediction": "I think this should be `sync` instead of `sync`", + "reference": "Why not put this below \"strings\"?" + }, + { + "prediction": "I think this should be `public int DispatchPipesCount` instead of `_dispatchPipes.Count`", + "reference": "Make it `internal` if it's just for testing." + }, + { + "prediction": "Why is this change needed?", + "reference": "What is triggering this message in this file?" + }, + { + "prediction": "Why do we need this? I think it's better to use `float('inf')` instead of `float('inf')`.", + "reference": "Are you sure this should be removed?" + }, + { + "prediction": "Why is this needed?", + "reference": "What's that good for? The field is initialized in the constructor." + }, + { + "prediction": "Why is this change needed?", + "reference": "This shouldn't be necessary (same below). Do you have a traceback for me?" + }, + { + "prediction": "I think this should be `github.com/opencontainers/runc/libcontainer/logs` and `github.com/opencontainers/runc/libcontainer/cgroups`", + "reference": "No newline needed here." + }, + { + "prediction": "Why is this needed?", + "reference": "Why a separate block?" + }, + { + "prediction": "(style) line over 80 characters", + "reference": "Probably better to ask @AssadHashmi or another AArch64 expert for a review rather than me -- @AssadHashmi if you could confirm that these status registers are 64-bit despite having only a few fields?" + }, + { + "prediction": "why do we need to set segwit to True?", + "reference": "`purpose` and `coin_type` and `account` would mimic the BIP-0044 wording, but it's up to you." + }, + { + "prediction": "Why is this change needed?", + "reference": "Is this the critical change? It does seem wrong to use Select() instead of Checked = true. Not sure why that would pass sometimes and not others, though." + }, + { + "prediction": "I think this should be a constant for `NumCoresPerSocket` and `NumCPUsPerSocket`.", + "reference": "Seems a little low, but is this an installer default?" + }, + { + "prediction": "I think this should be `logger._logger = None` instead of `logger._logger = None`", + "reference": "Maybe we could provide our own `configure` function that includes `logger._logger = None` because I don't see a use case in kinto for using `reset_logger` besides configuring the logger." + }, + { + "prediction": "Why is this change needed?", + "reference": "This will cause the same breakage that was caused when we added Proof to Block. Be sure to let people (infra?) know ahead of time" + }, + { + "prediction": "I think this test should be done in a separate PR.", + "reference": "Fixed the test; @strib want to validate that this is okay? Seems to be consistent new GC behavior." + }, + { + "prediction": "Why is this change needed?", + "reference": "Afaict, nothing cares" + }, + { + "prediction": "I don't think we need to do this in minimal mode, since we don't need to do this in minimal mode.", + "reference": "I must be missing something, but why does not having a node cache imply not neededing to re-embed the block changes, in particular? Isn't it just the fact that we don't do any writes?" + }, + { + "prediction": "I think this should be `internal struct`", + "reference": "Are these changes from `class` to `struct` breaking if called from an older version of `Datadog.Trace.ClrProfiler.Managed`?" + }, + { + "prediction": "Why is this needed?", + "reference": "These are just aliases now" + }, + { + "prediction": "I don't think we need to use `@video.title.html_safe` here, but I think we should use `@video.title.html_safe` instead of `@video.title.html_safe`", + "reference": "Does this mean we can remove `raw` from `_head_contents` partial?" + }, + { + "prediction": "I think this should be `if (this.splashWindow && this.splashWindow.isDestroyed) {`", + "reference": "`isDestroyed` is a function, not a property. This condition will always return false." + }, + { + "prediction": "I think this should be `1.30` and `1.31`", + "reference": "Why are we adding these versions?" + }, + { + "prediction": "I think this should be `logger.info('imported %d listens for %s', len(listens), str(user))`", + "reference": "fyi, you can do this by doing `.info(\"string %s %s\", formatparam, formatparam2)` instead of doing a string format with `\"str\" % (params)` the idea is that it'll only do the string interpolation if logging is enabled for this level, which theoretically is an optimisation, but in this case probably isn't important" + }, + { + "prediction": "I don't think we need a `reload` function here.", + "reference": "Would this work, as a one liner? `setTimeout(window.location.reload, 5000);`" + }, + { + "prediction": "I think this should be `aws/crypto/tls` and not `aws/aws-sdk-go/aws/tls`", + "reference": "Can you move `crypto/tls` into the block at the top with all the other stdlib imports?" + }, + { + "prediction": "why is this change needed?", + "reference": "What is the motivation for this change?" + }, + { + "prediction": "I think this should be `retry` instead of `retry`?", + "reference": "OK, so the concrete implementation will loop? But then it's important that this method waits for a while before it returns no messages. To be specific, a GCP implementation that set `ReturnImmediately` to true or false would both satisfy this requirement, but the first would cause busy-waiting." + }, + { + "prediction": "I think this should be `validatePath(matchClause->path(), *matchClauseCtx);` or `validatePath(matchClause->path(), *matchClauseCtx);`", + "reference": "The data structure of `MatchClauseContext` may need to be redesigned." + }, + { + "prediction": "Why is this change needed?", + "reference": "You say on the issue that something has to be receiving while the messages are being published. But here it's possible that the publish goroutine starts, and maybe even completes, before Receive is ever called." + }, + { + "prediction": "Layout/MultilineMethodCallBraceLayout: Closing method call brace must be on the same line as the first argument.", + "reference": "how do we know that the step in question is an approval type step?" + }, + { + "prediction": "Why is this needed? I think it's better to use `org.sun.glassfish.gmbal.ManagedObject` instead of `org.sun.glassfish.gmbal.ManagedObject`.", + "reference": "JMX offers normal APIs for this. I don't think you want the glassfish one." + }, + { + "prediction": "I think this should be `require io.vavr.match;`", + "reference": "Is this still Java 8 compatible? @danieldietrich do we need a separate, modularized Java 9 release also?" + }, + { + "prediction": "I think this should be `hsa_ext_image_create_with_layout` instead of `hsa_ext_image_create_with_layout`", + "reference": "Should update the user input address and filter modes and pass those in fillSamplerDescriptor ?" + }, + { + "prediction": "I think this should be `show.adult_musical` instead of `show.kids_musical`", + "reference": "This object should be in `lib/music/show.rb` and you should also wrap this object in the `Faker::Music::Show`." + }, + { + "prediction": "I don't think this is a good idea, but I'm not sure if this is a good idea, but I'm not sure if this is a good idea.", + "reference": "I think logic will have to move to bolt since the vague discussions around bolt run plan --noop is that it would just skip any tasks that don't support_noop rather than error. This is fine until we actually elaborate that though." + }, + { + "prediction": "Why is this needed?", + "reference": "File is not `goimports`-ed" + }, + { + "prediction": "I think this test should be `test_collections_are_isolated_by_bucket` instead of `test_collections_are_isolated_by_bucket`", + "reference": "why should unknown raise a 403?" + }, + { + "prediction": "I think this should be `if (c._nextState == c.state) s = assign({}, c.state, c._nextState);`", + "reference": "The true clause of your condition, can't this just be c._nextState since `assign({}, c._nextState)` is equal to returning c._nextState, or am I misunderstanding something here?" + }, + { + "prediction": "I think this should be `max_results_admin_api` or `max_results_admin_api`", + "reference": "nit: align the leftmost quotes" + }, + { + "prediction": "I think this should be `10351` instead of `10351`.", + "reference": "Probably \"server port\" -> \"TCP port\"" + }, + { + "prediction": "Why not use `String` here? I think it would be better to use `String.format` instead of `String.format`", + "reference": "can you use FilterCodec instead?" + }, + { + "prediction": "I think this should be `A4` instead of `Letter`", + "reference": "I know there's only two values but I find it a bit confusing that it's true/false. Could you change it to a string enum with values \"portrait\" and \"landscape\"? Then when calling printToPdf you can just do `landscape: Setting.value('export.pdfPageOrientation') === 'landscape'`" + }, + { + "prediction": "This migration is no-op, it forces the migration mechanism to apply the DB schema version info and thus write the DB schema version info.", + "reference": "I think this migration should fail for MDBX if it uses old table names" + }, + { + "prediction": "Line is too long. [92/80]", + "reference": "Should this be negated? `!@options[:hosts_file].nil?` Otherwise it'll enter the `if` statement and `nil` will be passed to `HostsFileParser.parse_hosts_file`, which I'm assuming is bad." + }, + { + "prediction": "I think this should be `applyOnReload` instead of `applyOnReload`", + "reference": "I'm doubting if adding a bool here is a good idea. Maybe it should be an option object? Otherwise it's hard to extend. But an option object is a bit strange in a fluent API? What do you think @snakefoot ?" + }, + { + "prediction": "Why is this change needed?", + "reference": "This is used in o.a.l.sandbox.search.PhraseWildcardQuery." + }, + { + "prediction": "I think this should be `protocolView` instead of `protocolView`", + "reference": "view should be loaded on start for both statedb and factory" + }, + { + "prediction": "Why is this removed?", + "reference": "Why rename? Just curious..." + }, + { + "prediction": "I think this should be `View.VISIBLE`.", + "reference": "Is this needed? I think it calls the super function that already does that." + }, + { + "prediction": "Why do we need this?", + "reference": "This might slow down the inference time, are we sure we need to do that?" + }, + { + "prediction": "I think this should be `PRAGMA(gocloud.dev): Add a blank import for gocloud.dev.", + "reference": "This would read better if you add \"Skip code/lines\" or (exclude/hide code if you follow my earlier suggestion\")" + }, + { + "prediction": "I don't think we need to add the `getStorageIO` method to the `DatasetUtil` class.", + "reference": "Looks like glassfish went a bit nuts doing a refactor" + }, + { + "prediction": "I think this should be `Task.WhenAll(this.processors).Add(processor.ForceFlushAsync(cancellationToken));`", + "reference": "nit: allocate the list using the number of processors." + }, + { + "prediction": "Why is this change needed?", + "reference": "Was this change triggered by baseline?" + }, + { + "prediction": "Metrics/LineLength: Line is too long. [132/120]", + "reference": "This code was doing nothing as far as I can tell and was making the SQL find nothing with the new version of Rails. Remove it unless someone can explain why it is there." + }, + { + "prediction": "I think this should be `setBrowserLoginEnabled(true)` instead of `setBrowserLoginEnabled(false)`", + "reference": "Setting browser based login as the default for `RestAPIExplorer`." + }, + { + "prediction": "I think this should be `SplitInfo::Size(max_cat_threshold);`", + "reference": "maybe we can do this in Init function?" + }, + { + "prediction": "I think this should be `request.GetRequestId() > wh.config.MaxIDLengthLimit()`", + "reference": "How about if request ID not set, service should generate a random uuid?" + }, + { + "prediction": "Why is this change needed?", + "reference": "minor: this is an opportunity for you to split these long lines into multiple lines :)" + }, + { + "prediction": "I think this should be `raise TaurusConfigError(\"Wrong request:\\n %s\" % req)`", + "reference": "It would be nice to have exception dumped somewhere (debug logs, info logs)." + }, + { + "prediction": "I think this should be `MessageAs` instead of `MessageAs`.", + "reference": "So I don't think this is right, as discussed on #657." + }, + { + "prediction": "I think we should use `GROUP_USERS` instead of `GROUP_MEMBERS`.", + "reference": "should the group_id = \"{0}\" be group_id = %s You'd still keep the {} for the group_members_{} for the tablename but make the filter clause parameterized." + }, + { + "prediction": "I think this should be `str(file_dict[\"path\"])` instead of `str(file_dict[\"path\"])`", + "reference": "Path can contain variable pattern in the middle. Also, `$` is not enough to tell if this is JMeter variable. We have correct variable detecting somewhere in our code." + }, + { + "prediction": "I think this should be `public function staticMethodOptions() { return ['static', 'method']; }`", + "reference": "@bennothommo can you revert this section? It shouldn't be required." + }, + { + "prediction": "Do we need this?", + "reference": "Minor: maybe move the above to a `#fiscal_year` method?" + }, + { + "prediction": "I think this test should be `assert not os.path.exists(buildfilepath)` instead of `assert not os.path.exists(buildfilepath)`", + "reference": "You should use the current directory instead - it's a temporary directory that will get removed when the test is done." + }, + { + "prediction": "Why is this change needed?", + "reference": "I think we don't need synchronization here." + }, + { + "prediction": "I don't think we need to change this to `unauthenticated`", + "reference": "I don't think this should be changed since on the reactive side we don't support anonymous users." + }, + { + "prediction": "I think this should be `unless record.frozen?` instead of `unless record.frozen?`", + "reference": "Maybe this `if` should be on line 118?" + }, + { + "prediction": "I think this should be `int64` instead of `int64`.", + "reference": "Cool. (I thought I had fixed this already in #812.)" + }, + { + "prediction": "I don't think this is needed anymore.", + "reference": "I intend to do this as soon as I have tests passing." + }, + { + "prediction": "I don't think we need this file anymore, but I think it would be better to use `os.environ['QUTE_FIFO']` instead of `os.environ['QUTE_FIFO']`", + "reference": "Please remove the `test_*` from the filename - otherwise pytest will try to collect tests from it." + }, + { + "prediction": "I think this should be `#ifdef __FreeBSD__` instead of `#else`", + "reference": "Did you file a bug to follow up on this?" + }, + { + "prediction": "I think this should be `!batchReadsSparkSessionConf ? false : batchReadsSparkSessionConf;`", + "reference": "Looks like these 4 lines didn't actually change. Can you revert the whitespace changes here?" + }, + { + "prediction": "I don't think this is needed anymore.", + "reference": "This can't be merged with any usage of `require 'pathname'` in lib, it's not always available and we don't want false positives for people (where they don't realise they needed to requite it). Its also unnecessary, no other formatter uses it to look up failure locations. See the exception presenter etc for how we format lines." + }, + { + "prediction": "I think this should be `OK.getStatusCode()` instead of `OK.getStatusCode()`", + "reference": "It would be nice to fix the indentation above." + }, + { + "prediction": "I think this should be `[OpenSSLCertificate|false, 'short_names='=>'bool|null]'`", + "reference": "`short_names` is still optional, so `=` that indicates it has to stay there." + }, + { + "prediction": "I think this should be `appendEFSCapabilities`", + "reference": "missing calling of this method" + }, + { + "prediction": "I think this should be `deployCfn` instead of `archerCfn`", + "reference": "We could get rid of this dependency being forced on clients by changing the `StackConfiguration` interface abstraction to deal with strings instead of `cloudformation.Parameters` and `cloudformation.Tags`, and internally to the `cloudformation` package translate the input strings into the `service/cloudformation` package specific values hiding that from consumers. I don't think that should be taken on as part of this PR, but I think we should consider doing it at some point." + }, + { + "prediction": "why is this needed?", + "reference": "`StressChaos` does not contains a field .spec.action" + }, + { + "prediction": "Why is this change needed?", + "reference": "Non-int literal strings are no longer coercible to int, I think this is an improvement. Without this change it now reports `InvalidArgument`." + }, + { + "prediction": "I think this should be `sizeof(a[0]) / sizeof(a[0])`", + "reference": "I this used anyplace?" + }, + { + "prediction": "Why is this change needed?", + "reference": "Why was this change required?" + }, + { + "prediction": "I think this should be `protected final boolean missingAdminRole;` or `protected final boolean missingAdminRole;`", + "reference": "I like that we have this attribute here. However, I think the way we use it right now might be confusing in the future. For example, when only camunda admin is checked, this exception will be instantiated with a message and `missingAdminRole` is `false`. I think that is counter-intuitive. I would expect this exception to have `missingAdminRole` set to `true`. With this explicit information, the exception message could now be generated inside this exception class with the text block that is currently used in the authorization manager. We could maybe generally reuse that text block then also for the case where a user is no admin and also has none of the required permissions. I haven't tried it myself but I think it would be great if we could streamline those things a bit more if we're working on it now. Let me know what you think. " + }, + { + "prediction": "Why not use `_bb.position(4);` here?", + "reference": "Not sure why we're creating a new `ByteBuffer` here, ideally this refers to the existing one?" + }, + { + "prediction": "I don't think we need to do this, but I think it would be better to use `DATE_RANGE_OFFSET` instead of `DATE_RANGE_OFFSET`.", + "reference": "Same here re: `STORE_NAME` to `MODULES_SEARCH_CONSOLE`." + }, + { + "prediction": "I think this should be `accountID: '999-9'` and `propertyID: 'UA-00000001-1'`", + "reference": "I could've sworn I got a `403` myself when I got that response locally. Is `200` what the API would send back for a `permission: false` tag?" + }, + { + "prediction": "Why is this change needed?", + "reference": "This attribute was intentionally private. - lets force usage of factory `NewIdentityManager()` - lets ramake to `NewIdentityManager(keydir string)` -> `NewIdentityManager(keystore keystoreManager)`" + }, + { + "prediction": "I think this should be `10 * time.Millisecond`", + "reference": "Is this too frequent?" + }, + { + "prediction": "I think this should be `zip` instead of `csv`", + "reference": "will this not make it possible to use a zip file, e.g. on other importers who do not have to support it ?" + }, + { + "prediction": "I think this should be `SocksClientLayer`", + "reference": "Needs to be mentioned in `__all__` below." + }, + { + "prediction": "(style) line over 80 characters", + "reference": "What if the app's signal handler, executed at pre-syscall for epoll_pwait, executes its own epoll_pwait? For that matter: what happens natively if that happens? I would not expect the kernel to keep a stack -- does that clobber the kernel's stored pre-syscall mask?" + }, + { + "prediction": "I think this should be `List` instead of `List`", + "reference": "Nit: missing a space. I think we should phrase the new content a little differently. \"It is important\" isn't very clear. I think it should be \"offsets will be returned in sorted order.\"" + }, + { + "prediction": "I think this should be `io/ioutil`", + "reference": "Can you remove this blank line and put the added import in sorted order (likely your editor will do this)" + }, + { + "prediction": "I think this should be `err` instead of `errno`", + "reference": "Even if `pthread_create()` for `ocsp_updater_thread()` fails, `h2o` can continue to serve. But I'm a little worried whether `h2o` should continue to serve in this case. How about you?" + }, + { + "prediction": "I don't think this is needed.", + "reference": "I like introduction of these constants for account/container creation, but the `ACCOUNT_CHOOSE` one isn't needed I think. This should instead be an \"empty\" value (either `''` or `0`), to indicate more clearly that this field is not filled. It should be the same for choosing a container." + }, + { + "prediction": "I think this should be `string.localeCompare(str1, str2, undefined, {sensitivity: 'base')`", + "reference": "I noticed that passing in `[]` for the locales argument instead of 'undefined' seems to have the same effect. I think that's preferred over passing in `undefined` as a value, and unfortunately passing in `null` seems to throw an error." + }, + { + "prediction": "Why is this change needed?", + "reference": "1. `0` is redundant. 2. We should save result of `strings.LastIndex(DbCfg.Host, \":\")` to a variable and reuse." + }, + { + "prediction": "I think this should be `NoHeaderSupport`", + "reference": "Do you envision \"new\" servers not supporting header, or is it more a way to test mix of old and new? If so, we could make it a \"private\" (non exported) option." + }, + { + "prediction": "Why is this error wrapped?", + "reference": "For future reference. Try not to do refactoring in the same PR which solves some bug or implements some feature. Not to clutter reading. Do it in separate PR." + }, + { + "prediction": "I think this should be `assetUnitName` instead of `unit`", + "reference": "I'm not sure about changing the flag name. unit is more accurate, but for I think for most people asset is also a fine name to use." + }, + { + "prediction": "I think this should be `if getConsoleWindow.Find() == nil && showWindow.Find() == nil { showWindow.Call(hwnd, 0)`", + "reference": "Which windows gets activated? A random other window?" + }, + { + "prediction": "I think this should be `if event.SpecVersion() != cloudevents.VersionV03 {`", + "reference": "Just to make sure, this is totally lossless? If I put a v2 there, then it gets upgraded to v3, but my function expects v2, then this is fine and nothing is lost?" + }, + { + "prediction": "I think this should be `write.watermark.value`", + "reference": "In the past, we have 3 Flink streaming jobs (1 for each AWS region) writing to the same table. We need to write to 3 different watermark table properties (1 for each region). Watermark consumer then use the min value to determine the overall table watermark. A provider pattern similar to `WRITE_LOCATION_PROVIDER_IMPL` can work. A default impl could be a single property name. not sure if there is a simpler way to achieve this." + }, + { + "prediction": "I think this should be `resolvedReadersMap` instead of `resolvedWritersMap`.", + "reference": "Can you change this to `ResolvedUsersMap` and build a new map with both readers/writers? That way, we get the nice side effect of not exposing the internal map of the handle, and simplifying the callers a bit." + }, + { + "prediction": "Why is this change needed?", + "reference": "I typically try to avoid nested ternary expressions. Can we rewrite this as if statements? Worst case, can we break it out into its own function?" + }, + { + "prediction": "I think this should be `sni.encode()` instead of `sni.encode()`", + "reference": "Do we still support handshakes without SNI present?" + }, + { + "prediction": "Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.", + "reference": "Maybe it's because I work too much on a centralized logging system but it could be great to add a \"category\" like \"attribute\", \"substitution\", \"include directive\", \"macro\", \"extension\"..." + }, + { + "prediction": "I think this should be `remove the pointer declaration \"*\" (it have no sense in python)`", + "reference": "it have no sense in python -> it makes no sense in python" + }, + { + "prediction": "I think this should be `openvpnPort` or `openvpnPort`?", + "reference": "maybe just do a separate implementation of the pool for openvpn case? It's a bit confusing having two methods here." + }, + { + "prediction": "Why do we need to close if topology is null?", + "reference": "how is it possible to have a `topology` that is falsey when we had to call `topology.connect` in order to get here?" + }, + { + "prediction": "I think this should be `expect(PlanFinder).to have_received(:where, sku: 'sku')`", + "reference": "Do we need this expectation? If we don't call this method on `PlanFinder` there's no way for the `10` to be returned. Seems somewhat redundant. What do you think?" + }, + { + "prediction": "Why is this removed?", + "reference": "We need to do the same for edgecore" + }, + { + "prediction": "I think this should be `waitHandle.Set(true);`", + "reference": "This fix has nothing to do with the product change. Just a fix I am making for the test issue." + }, + { + "prediction": "Why is this TODO removed?", + "reference": "Don't know what should be the default. Lets keep BatchingProcessor for now. And revisit the area after beta." + }, + { + "prediction": "I don't think this is needed anymore.", + "reference": "Ah that's how it's happening, it's probably using the `require_relative` in the optimised one and that counts as a different require to the bare one." + }, + { + "prediction": "I think this should be `registerNibForCellReuse(UINib.FromName(cellIdentifier, NSBundle.MainBundle));`", + "reference": "What happens if there is no NIB/XIB with that name?" + }, + { + "prediction": "Why is this change needed?", + "reference": "this is not necessary?" + }, + { + "prediction": "I think this should be `asmauthres` and `asmsecretres`", + "reference": "typo: `asmsecrets \"github...`" + }, + { + "prediction": "Why not just return `wp_json_decode( $allowed );`?", + "reference": "I think that the JSON encoding should be handled by the control itself, not the sanitization function. This should only confirm that the input is correct, not reformat it " + }, + { + "prediction": "I think this should be `transport.Transport{}`", + "reference": "Should we put a TODO here to route the http.Transport through here?" + }, + { + "prediction": "I think this should be `Get-VMSwitch -ComputerName $(hostname) -Name $(hostname) -Name $(hostname) -AllowManagementOS $false`", + "reference": "Sorry, could you explain more about the issue? Doesn't ComputerName already default to local computer? > -ComputerName Specifies one or more Hyper-V hosts on which the virtual switch is to be configured. NetBIOS names, IP addresses, and fully qualified domain names are allowable. The default is the local computer. Use localhost or a dot (.) to specify the local computer explicitly." + }, + { + "prediction": "I think this should be `if err != nil && err != nil { logger.Printf(\"[%v] %v\\n\", testCase.Name, err) } else { logger.Printf(\"[%v] %v\\n\", testCase.Name, err) }`", + "reference": "`allowError` is a big vague. Does this mean the test case is asserting that an error should occur? If it means \"maybe an error can occur, and that's okay\" -- what's an example of this?" + }, + { + "prediction": "I think this should be `error` instead of `output.NewError`", + "reference": "return statements should not be cuddled if block has more than two lines (from `wsl`)" + }, + { + "prediction": "I think this should be `java.util.concurrent.TimeUnit.MILLISECONDS`.", + "reference": "Why does VirtualMachineMetrics have to implement Metric?" + }, + { + "prediction": "Why is this change needed?", + "reference": "line is 121 characters" + }, + { + "prediction": "I think we should use `name.slice(0, 2) === 'on'` instead of `name.slice(0, 2) === 'on'`", + "reference": "How's that linked esbench looking with slice?" + }, + { + "prediction": "I think this should be `os.path.isdir(path)` instead of `os.path.join(path, os.path.dirname(path))`", + "reference": "The split and join was probably done to ensure that this still works on Windows because os.path.dirname works differently depending on the os you're running under :(. It would probably be a little better to do `dirname, _, fn = path.rpartition('/')` if you want something cleaner than the split/join." + }, + { + "prediction": "I think this should be `public int getCount() { return -1; }`", + "reference": "This is not the right approach. The `Distributor` maintains a model of the current state of the Grid. That model already contains the information about every active session. We don't need to modify `SessionMap` to expose it further." + }, + { + "prediction": "I think this should be `s.maybeResetTimer(time.Time{})` instead of `s.maybeResetTimer(time.Time{})`", + "reference": "Can you make this a member var as all the other deadlines? Then you can drop the param to resetTimer() and simplify some of the code below iiuc." + }, + { + "prediction": "Why is this change needed? I think it would be better to use `std::unique_ptr` instead of `std::unique_ptr`.", + "reference": "I don't understand the reason for the changes from unique_ptr to ROMOL_SPTR that you made in this file. The pointers aren't being shared or used elsewhere so I don't think there's any reason to make them shared. Did I miss something?" + }, + { + "prediction": "Why is this change needed?", + "reference": "why change the variable name at all?" + }, + { + "prediction": "I think this should be `if (vNode.actualNode === node) { return vNode; }`", + "reference": "Since I'm still trying to keep these straight in my head, can you elaborate on what problem this solves?" + }, + { + "prediction": "Shouldn't this be `isAccountReportSpamEnabled`?", + "reference": "Prefer TextUtils.isEmpty() which handles getReportSpamRecipient() being null" + }, + { + "prediction": "I think this should be `manifest['application']['gecko']['id']` instead of `manifest['application']['gecko']['id']`", + "reference": "Couldn't you just write this as an if/else or a guard clause like on line 87? Just seems a bit weird doing this conditional assignment for essentially an if/else." + }, + { + "prediction": "I think this should be `Include` or `Exclude`.", + "reference": "Do we actually use Include anywhere yet or is this just for completion?" + }, + { + "prediction": "I think this should be `Referer` instead of `same-domain`", + "reference": "It still bugs me this was misspelled in the standard and now the wrong spelling is the commonly used one :wink:" + }, + { + "prediction": "Why is this change needed?", + "reference": "seems we missed de-uglifying this one" + }, + { + "prediction": "I think this should be `NewWorkflowRetry` or `NewWorkflowCron`", + "reference": "i guess these types & cron / retry specific belong to a dedicated util / struct" + }, + { + "prediction": "I think we should use `.then(keys => keys.join(' '))` instead of `.then(keys => keys.join(' '))`", + "reference": "Also update line 2205 below" + }, + { + "prediction": "I think this should be `direction: \"vertical\"`.", + "reference": "`direction` is referenced nowhere. Do I miss something?" + }, + { + "prediction": "I don't think we need to remove the deparam from `ember-cli-mirage`", + "reference": "The two places this was used have been removed so we can fully remove this dependency." + }, + { + "prediction": "Why is this removed?", + "reference": "This is a duplicate generation of the same file as below." + }, + { + "prediction": "I think this should be `if cfg.gpu_ids is None else cfg.gpu_ids`", + "reference": "We may deprecate `gpus` if `gpu_ids` is specified." + }, + { + "prediction": "I think this should be `LOG.finest(JSON.toJson(serialized.build()));`", + "reference": "Right now this is experimental and deeply flaky. We left this at `info` to make debugging user reports a lot easier." + }, + { + "prediction": "I don't think this is needed anymore.", + "reference": "unnecessary spaces here are doubling the size of this otherwise extremely useful addition" + }, + { + "prediction": "I don't think we need the `OverwriteIfNewer` option here, but I think it would be better to use `FileExistsPolicy.OverwriteIfNewer` instead of `FileExistsPolicy.OverwriteIfNewer`.", + "reference": "I think we should use `FileExistsPolicy.Overwrite` instead. Files _should_ always be newer, but in the unlikely case they wouldn't be, I'm afraid some files would be overwritten and other not, leading to inconsistencies that will be hard to figure out." + }, + { + "prediction": "I think this should be `std::cout << \"test3_5\" << std::endl;`", + "reference": "this should probably be removed" + }, + { + "prediction": "Why is this change needed?", + "reference": "Nit: I would actually prefer that pretty JSON is the default, with a flag for compressed JSON. Can we acheive that easily?" + }, + { + "prediction": "I think this should be `securityGroupOverrides` and not `additionalIngressRules`", + "reference": "Will need to think about this one. `additionalIngressRules` feels a bit opaque in terms of eventual outcome." + }, + { + "prediction": "Why is this method needed?", + "reference": "Can we avoid making this public with the other updates?" + }, + { + "prediction": "I don't think this is correct, but I think it would be better to use `CHECK_LE` instead of `CHECK_EQ`.", + "reference": "Why did you change this equal instead of less or equal?" + }, + { + "prediction": "I think this method should be renamed to `isWorldStateAvailable(Hash rootHash, Hash blockHash)` and `isWorldStateAvailable(Hash rootHash, Hash blockHash)`", + "reference": "missing final for the blockHash field" + }, + { + "prediction": "Line is too long. [89/80]", + "reference": "Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping." + }, + { + "prediction": "`float_x` should be `x.float()` instead of `x.float()`", + "reference": "`x_float` instead of `float_x`." + }, + { + "prediction": "I don't think we need to import `swiper/swiper-bundle.esm` from `swiper/swiper-bundle.esm`.", + "reference": "Is this for `No Babel config ...` from ESLint? If so, it will be fixed in my ES6 PR." + }, + { + "prediction": "I think this should be `t.Fatal(err)` instead of `t.Fatal(err)`", + "reference": "Not important, but the code used to keep checking other cases even after one of them failed, and now it's not. Fine either way for me, just noticing." + }, + { + "prediction": "I think this should be `github.com/docker/docker/api/types/volume`", + "reference": "I think I saw this line in last PR, you can update your base branch and rebase to avoid this. And it would be awesome if you can rebase instead of merge each time you push PR to the `moby` branch, that will make the commits history clearer." + }, + { + "prediction": "(style) line over 80 characters", + "reference": "If this can change the PC of this thread, it requires handling: we can't blindly execute the syscall and lose control of the thread when the flags include CONTEXT_CONTROL. (Note that most docs imply that setting your own context this way is not supported or has undefined or unpredictable results: any idea how often that's the case, or does it generally work?) We need to handle in a similar fashion to NtContinue or setting another thread's context to ensure we retain control." + }, + { + "prediction": "I think this should be `@GET(\"/state/to-be-completed/{page}.json\")`", + "reference": "@huzaifaiftikhar Changed the endpoint as suggested by Stephane in the latest commit." + }, + { + "prediction": "I think this should be `core.Number` or `core.Number`", + "reference": "There's no core.Number yet. ;)" + }, + { + "prediction": "This command should be used cautiously and only when there is an issue with the current state of the data.", + "reference": "..., ...will be posted." + }, + { + "prediction": "Why is this change needed?", + "reference": "Can you update this function to be `ShowHeader`? There is only one use of it at the moment in `tools/fast/series/get_head_block_height.go`." + }, + { + "prediction": "I don't think we need to do this, but I think it would be better to have a default value for `QUILT_USE_TQDM` if it's set to `true`.", + "reference": "@akarve, this disables `tqdm` by default, is it intended? Also name `QUILT_USE_TQDM` might be too specific, IMHO `QUILT_INTERACTIVE` or `QUILT_PROGRESS_BARS` or something might be better." + }, + { + "prediction": "Why is this change needed?", + "reference": "unrelated but just changing for consistency with code below it" + }, + { + "prediction": "Why is this change needed?", + "reference": "This will call `componentWillUpdate()` for mounts because the else clause is removed. It should only be called for updates." + }, + { + "prediction": "I think this should be `collection: ['write', 'read']`", + "reference": "We should add write inheritance too." + }, + { + "prediction": "I think we should use `os.environ.get('JAVA_OPTS', '').strip()` instead of `os.environ.get('JAVA_OPTS', '')`", + "reference": "Please rename this to `LAMBDA_JAVA_OPTS`, and add a short description to the README." + }, + { + "prediction": "I think we should move this import to the end of the file.", + "reference": "Should be in the same import group." + }, + { + "prediction": "I think this should be `pkt.tls_session.tls_version or 0x0303 > 0x0200`", + "reference": "Operator precedence is very confusing here. Care to add parentheses? ` ((version or 0x0303) >= 0x0200)` Same below." + }, + { + "prediction": "I don't think we should be using `org.apache.log4j.Logger` here.", + "reference": "javaparser-core has no dependencies and it should stay that way. So no log4j. And even then there would have been a preference for slf4j." + }, + { + "prediction": "I think this should be `CSV_FORMATS_RETEST` instead of `CSV_FORMATS_RETEST`.", + "reference": "Why not just retest all? it's not expensive (I think)." + }, + { + "prediction": "Why is this changed?", + "reference": "ecr and ecr0 aren't deterministically named here. This change will just cause confusion in the git history. Could you either: a) fix this and make it deterministic b) regenerate the mock until it doesn't flip definitions for ecr and ecr0" + }, + { + "prediction": "I don't think we need to do this, but I think it's better to use `r-1_amd64.deb` instead of `r-1_amd64.deb`", + "reference": "This looks like bash... does this work in ruby? Or is the idea to inject the entire script into the subsequent commands?" + }, + { + "prediction": "Is there a reason why `traceparentCollection` is null?", + "reference": "I don't understand why this change is in this PR?" + }, + { + "prediction": "I think this should be `self.deprecation_horizon = 'blacklight 8.0'`", + "reference": "It's a little hard to tell from the diff, but as a result of this PR, the only non-deprecated helpers are: - `has_facet_values?` (probably not long for this world) - `render_facet_partials` (perhaps part of a future component) - `render_facet_limit` (possibly obsolete once components get traction) - `facet_field_in_params` (a little tricky to deprecate at the moment) - `facet_field_presenter`" + }, + { + "prediction": "I think this should be `Object.setPrototypeOf(Realm.Object.prototype, Realm.Object.prototype)`", + "reference": "The right-hand part shouldn't use `__proto__`. Should be just `PersonObject.__proto__ = Realm.Object`." + }, + { + "prediction": "Shouldn't this be `panic(fmt.Sprintf(\"taskManagerImpl encountered MinTaskID >= MaxTaskID: %v vs %v\", request.MinTaskID, request.MaxTaskID, request.MaxTaskID))`?", + "reference": "the == case might be legit, or not? If there is no task written since last read, but we trigger a new read, would the min == max? Or should the upper layer handle that case?" + }, + { + "prediction": "I think this should be `memcpy(new_p, p, old_size);`", + "reference": "Good catch! But is it guaranteed that `old_size < new_size` here? If not, wouldn't we want to take `min(old_size, new_size)` as the copy length?" + }, + { + "prediction": "I think we should remove this method from `InstallProgram` instead of `InstallProgram`.", + "reference": "This is the only one that worries me a bit. It would be good if Brendan signed off on it." + }, + { + "prediction": "I think this should be `boolean hasLongrunningReturnValue();` instead of `boolean hasLongrunningReturnValue();`", + "reference": "`LongRunningOperationDetailView` already has `isEmptyOperation`." + }, + { + "prediction": "I think this should be `base64.b64encode('%s:%s' % (parsed_url.username, parsed_url.password))`", + "reference": "This will always add the authorization header to the request object. Is this the right scope for these two lines? If username/password are not defined, it will encode 'Basic :'" + }, + { + "prediction": "Line is too long. [89/80]", + "reference": "Don't think a scope adds much value for us here. Also, for future reference, you don't need to use the `self.all` it is implied. Could just be: `scope :updated_at_desc, -> { order(updated_at: :desc) }` No need to change this one now though, it works." + }, + { + "prediction": "I think this should be `Base.rand(0..9)` instead of `Base.rand(0..9)`", + "reference": "I believe `Base.` is unnecessary in this case, as the class already extends `Base`." + }, + { + "prediction": "Shouldn't this be `width`?", + "reference": "Couldn't this result in images being scaled too small when the width is less than the height assuming the width is still what is being passed here?" + }, + { + "prediction": "I think we should use `plugins.getConfig(\"api\").offline_mode` instead of `plugins.getConfig(\"api\").offline_mode`", + "reference": "Here also, let's not cache value on top of file, but use `plugins.getConfig(\"api\").offline_mode` directly where it is needed" + }, + { + "prediction": "Why not use `$config->Catalog->shibboleth_library_cards`?", + "reference": "You can combine the two checks into a single `!empty()` check." + }, + { + "prediction": "Shouldn't this be `int64(o.MaxPayload) > int64(o.MaxPending)`?", + "reference": "Should we add a warning for anything over say 8M? Just suggesting that is not recommended?" + }, + { + "prediction": "Why is this change needed?", + "reference": "Looks like there are no callers left of this function." + }, + { + "prediction": "I think this should be `attachStdin` instead of `attachStdin`", + "reference": "Should there still be a ` bool` trailing `showOutput`?" + }, + { + "prediction": "I think this should be `api/v1alpha1` instead of `api/v1alpha1`", + "reference": "Did we can change to v1" + }, + { + "prediction": "I don't think this is needed.", + "reference": "Can you please double check that this won't break anything?" + }, + { + "prediction": "Why is this needed?", + "reference": "optionals, shouldn't need to be stated explicitly" + }, + { + "prediction": "I think this should be `0x51303030` and not `0x51303439`", + "reference": "That seems quite low - why not just 0x5130ffff?" + }, + { + "prediction": "I think this should be `repr` instead of `repr`", + "reference": "Why is this needed ?" + }, + { + "prediction": "Do we need to check if the first_runs_free file exists? Or do we need to check if the first_runs_free file exists?", + "reference": "`Bolt::Config.user_path` returns `nil` if there's no homedir, so this will still error in that case." + }, + { + "prediction": "I think this should be `a.CompoundMessage.Proposal.value()` instead of `a.CompoundMessage.Proposal.value()`", + "reference": "nit: use %s for strings and %v for objects." + }, + { + "prediction": "Why did you remove this?", + "reference": "Same as before, the properties already exists in parent" + }, + { + "prediction": "I think we should use `datetime.datetime.now().year` instead of `datetime.datetime.now().year`", + "reference": "This fix is not quite correct. The `%s` should be replaced with `version` and the `%d` on line 39 should be replaced with `datetime.datetime.now().year`." + }, + { + "prediction": "I think this should be `if (major == DRM_MAJOR && strcmp(type, \"gone\") != 0)`", + "reference": "Maybe we should only set active = false if `strcmp(type, \"pause\") == 0`?" + }, + { + "prediction": "I don't think we need this method, but I think it's better to use `Array.new(options[:page_ranges])` instead of `Array.new(options[:page_ranges])` and use `Array.new(options[:page_ranges])` instead of `Array.new(options[:page_ranges])`", + "reference": "Same here. and all others." + }, + { + "prediction": "I think this should be `stacktraces/on/SIGUSR2` instead of `stacktraces/on/SIGUSR2`.", + "reference": "Intentionally committed? I'm not against it, we already have a way to get goroutines without killing the process: `/keybase/.kbfs_profiles/goroutine`." + }, + { + "prediction": "Why is this change needed?", + "reference": "I think this blank line may be removed" + }, + { + "prediction": "I don't think this is needed.", + "reference": "I think this should be a keyword-only argument, i.e. do `def add(self, url, title, *, toggle=False):` and adjust the caller to do `toggle=toggle`." + }, + { + "prediction": "I think this should be `UINT32` instead of `UINT32`", + "reference": "@aimanrosli23 Judging from the commit description, I do not know why this file got changed so much. Could you help to double confirm if you do not revert the changes brought by commits: SHA-1: 643623147a1feaddd734ddd84604e1d8e9dcebee * MdeModulePkg/SdMmcPciHcDxe: Send SEND_STATUS at lower frequency SHA-1: 49accdedf956f175041040e677163b7cbb746283 * MdeModulePkg/SdMmcPciHcDxe: Hook SwitchClockFreq after SD clock start" + }, + { + "prediction": "I don't think we need to do this, but I think it's better to use `Time.now.day` instead of `Time.now.day`.", + "reference": "How about YAML.load_file()" + }, + { + "prediction": "Shouldn't this be `containerDispatchStarted`?", + "reference": "Maybe make this `volatile` or atomic as this can be set/read from different threads? Also, separately you may want to check if some of the methods here need to be `synchronized`." + }, + { + "prediction": "I think this should be `drmgr_unregister_tls_field(tls_idx);`", + "reference": "Check the return value of the drmgr ones." + }, + { + "prediction": "I think this should be `data-cfasync` instead of `false`", + "reference": "This should be `'cache'`" + }, + { + "prediction": "Why is this change needed?", + "reference": "The name \"old\" might cause confusion here. After installation, the \"old\" repo is at an archived path, and the new migrated repo is at the old path. Maybe something like \"target\" or \"canonical\"?" + }, + { + "prediction": "I think this should be `options.readPreference = resolveReadPreference(options, {db: this.s.db, collection: this });`", + "reference": "I think this is somewhat definitive proof that this error exists in `core` rather than `native`. We are correctly resolving the `readPreference` in the previous line, but you are able to identify that eventually the command generated in `core` is not decorated with the passed `readPreference`. Did you try to solve this there already?" + }, + { + "prediction": "I think this should be `unwindTo := (to + s.BlockNumber) / 2`", + "reference": "During genesis sync it can unwind 5M blocks?" + }, + { + "prediction": "I think this should be `s.T().Skip(\"Racy - times out ~50% of the time running locally with --race\")`", + "reference": "was it caused by the removal of removeTaskQueueManager() from this test?" + }, + { + "prediction": "Align the parameters of a method call if they span more than one line.", + "reference": "Wouldn't it just be easier to force search_session to return `with_indifferent_access`? Since you've done the hard work already, I don't think there's a problem doing it this way, but.." + }, + { + "prediction": "I don't think we need to check if the result is simulated to miss its deadline. If the result is simulated to miss its deadline, then the result is not simulated to miss its deadline.", + "reference": "So, such tasks that could possibly not meet the deadline will never have a chance to run? I think this is not nice behavior, especially for those projects who has sometimes some very small tasks after the big one." + }, + { + "prediction": "I think this should be `if (id == 0) { return 0; }`", + "reference": "You should add the check above this line instead. If string is empty, don't even call the function." + }, + { + "prediction": "Shouldn't this be `LOGGER.warn(\"clientCert for item doesn't exist. Will set it to false. Item: {}\", item.toString());`", + "reference": "If clientCert attribute doesn't exist for some reason I set it to false." + }, + { + "prediction": "I think this should be `if Travis::Build.config&.ssl&.verify == false` instead of `if Travis::Build.config&.ssl&.verify == false`", + "reference": "Do we need `app_host_flags` variable? We can directly concat with `flags`. `sh.cmd curl_cmd(unless Travis::Build.config&.ssl&.verify ? flags + ' -k' : flags, location, static_file_location), cmd_opts` right?" + }, + { + "prediction": "Why is this change needed?", + "reference": "Walk should actually be completed (`onWalkCompleted`) after the event is stopped. This also makes it possible for monster to walk by smaller paths." + }, + { + "prediction": "I think this should be `swarm.EncryptedReferenceSize == len(address.Bytes()) == len(address.Bytes()) == len(address.Bytes()) == len(address.Bytes()) == len(address.Bytes()) == len(address.Bytes()) == len(address.Bytes()) == len(address.Bytes()) == len(address.Bytes()) == len(address.Bytes()) == len(address.Bytes()) == len(address.Bytes()) == len(swarm.EncryptedReferenceSize)", + "reference": "typo in `weather` (should be `whether`)" + }, + { + "prediction": "I think this should be `flag.Bool(\"use-staging-install-media\", false, \"Use staging windows install media.\")`", + "reference": "Thoughts on having the URI as the param, instead of a boolean? The default value would be the normal prod image, and then your test would override with the staging image." + }, + { + "prediction": "I think this should be `num_scan = fscanf(fp, \"%d\", &n);` or `num_scan = fscanf(fp, \"%d\", &n);`", + "reference": "I'm surprised this is needed, but we should probably assert num_scan == 1 at least, otherwise I expect the file is pretty broken." + }, + { + "prediction": "I think this should be `int32_t {0, network::NetworkUtils::getAvailablePort()}`.", + "reference": "Could we set a default value for `partitions` and `{0, network::NetworkUtils::getAvailablePort()}` ?" + }, + { + "prediction": "I don't think we need to add this to the `RequestBodyTimeout` class.", + "reference": "Needs xml docs. The API names alone don't provide enough explanation about what these mean and how to set them. Also, we should provide some validation of inputs, such as MaxTime must be > MinTime, MinimumRate must be >= 0, etc. Consider making the properties readonly and adding a constructor that does these validations." + }, + { + "prediction": "I think this should be `path.Join(dir, \"testdata\", name)`", + "reference": "Would it make sense to create an empty file here, perhaps in a tmp dir, instead of checking empty files into Git?" + }, + { + "prediction": "I think this is a good idea to remove the `if` statement.", + "reference": "This change is due to `clang_format` and is not related to this PR." + }, + { + "prediction": "(style) line over 80 characters", + "reference": "Why did you not add the signals to the call of block_all_signals_except() and instead baked them into the function? Ok, if you had a good reason for it, otherwise I would add it to the except list of the function call, since that's what it was meant for." + }, + { + "prediction": "I think we should use `@Nullable` instead of `@Nullable`.", + "reference": "Could this be done by mocking objects instead? I feel like this is changing too much of the actual logic just for the tests." + }, + { + "prediction": "Shouldn't this be `content`?", + "reference": "why not just use `ManifestContent` instead of `Integer`?" + }, + { + "prediction": "I think this should be `if (tx.Type == TxType.AccessList && !releaseSpec.IsEip2930Enabled) return AddTxResult.Invalid;`", + "reference": "can we do that in TxValidator?" + }, + { + "prediction": "I think this should be `ServiceName string`", + "reference": "We definitely want some detailed and thoughtful docs being added to this type." + }, + { + "prediction": "Why is this change needed?", + "reference": "We would like this code to run, even when `config.XDPEnabled` is false, so that Felix can clean up its own XDP state after a restart." + }, + { + "prediction": "Why not use `__VA_ARGS__` instead of `__VA_ARGS__`?", + "reference": "If the status is `ERR_SPACE_NOT_FOUND` why return `SUCCEEDED` ?" + }, + { + "prediction": "I think this should be `True` for Houglass, not `True` for Houglass.", + "reference": "It is is more appropriate to use `downsample_first`. If `downsample_first=True`, the downsample block is the first block and it is used for ResNet. If `downsample_first=False`, the downsample block is the last block, which is used by Hourglass network." + }, + { + "prediction": "I think this should be `if (!service) { service = getDefaultService(); }`", + "reference": "Would you mind removing the default parameter above? (I doubt I'll ever use defaults again since you still have to protect against callers explicitly passing `null` or `undefined`)" + }, + { + "prediction": "I think this should be `consider-using-sys-exit` instead of `consider-using-sys-exit`.", + "reference": "I don't know if there are strict conventions about this, but I think the name of the warning should be the diagnosis, not the suggested course of action. In this case, that would mean changing the name of the warning to `interactive-exit` or something like that." + }, + { + "prediction": "Why is this change needed?", + "reference": "If `crt.Spec.CommonName` is not set, and `cert.Subject.CommonName` *is* set, we are not correctly handling it here." + }, + { + "prediction": "I think this test should be moved to `pytest.fixture`.", + "reference": "This isn't a test, so it shouldn't be named `test_init`. You could name it `cmdhistory_init` or so." + }, + { + "prediction": "I think this should be `pickle.DEFAULT_PROTOCOL`", + "reference": "why is this pulling from `self.spark_version` config section rather than the `spark` config section (`py-packages` appears to pull from a config section called `spark`)" + }, + { + "prediction": "Shouldn't this be `TestOptions_RandomPort`?", + "reference": "nit: Think it can be one line.." + }, + { + "prediction": "I don't think this is needed anymore.", + "reference": "please inline imports" + }, + { + "prediction": "Why is this change needed?", + "reference": "This check is still correct in some cases, but I guess erroring out is acceptable if someone explicitly asked for an impossible cgroup configuration (now that we could in principle nest things). I would like to see a test for this though." + }, + { + "prediction": "I think this should be \"aggregates changed to operate on just a single columnm.\"", + "reference": "Should we update integral to operate on a single column as well?" + }, + { + "prediction": "I think we should use `cuda_get_deep_copy_stream()` instead of `cuda_get_deep_copy_stream()`", + "reference": "Doesn't belong to this PR" + }, + { + "prediction": "I think this should be `registrationToken` instead of `registrationToken`", + "reference": "Just for my own understanding, does aws ecs API take this token as a new input attribute? Which version of the aws sdk? I did not find it in the official aws sdk doc." + }, + { + "prediction": "I think this should be `SF_APP_FEATURE_CODE_USER_AUTH`.", + "reference": "Could we shorten this constant to maybe `FEATURE_USER_AUTH`?" + }, + { + "prediction": "I think this is a bit confusing, but I think it would be better to have a `numRekeyWorkers = 8` in the `rekeyQueue` package.", + "reference": "Any particular reason for 8? I feel like we could probably handle more..." + }, + { + "prediction": "Line is too long. [82/80]", + "reference": "Try to use factory association declaration for default values, so it could minimal the line length. You may write in fetch_job factory like association :repository, factory: :repository." + }, + { + "prediction": "Why is this removed?", + "reference": "Should the \"cancelled\" class be added regardless of the proposal's state?" + }, + { + "prediction": "Why is this removed?", + "reference": "nit: random whitespace change, let's try to keep these out of commits unless there are other useful changes." + }, + { + "prediction": "I think we should use `model.split(' ');` instead of `model.split(' ');`", + "reference": "Seems kinda dangerous - what if models length is different from paths length?" + }, + { + "prediction": "Why do we need prune mode here?", + "reference": "set real one plz (get it from DB)." + }, + { + "prediction": "I think we should use `sizeof(struct fpga_port_uafu_irq_set)` instead of `sizeof(struct fpga_port_uafu_irq_set)`", + "reference": "Should this be initialized to zeroes?" + }, + { + "prediction": "I don't think we need this check, but I think it would be better to use `fcontext.searcher.numDocs(q, fcontext.base);` instead of `fcontext.base.size() == 0`.", + "reference": "The query is already built at this point, so I don't think this particular change actually helps wrt SOLR-10732? (and the `base.size()==0` case is already trivially optimized in `SolrIndexSearcher.numDocs(Query, DocSet)`)" + }, + { + "prediction": "Why is this needed?", + "reference": "re-add the type in the annotation here" + }, + { + "prediction": "I think this should be `stderr.String()` instead of `stderr.String()`", + "reference": "Could we simpify it as `cmd.Stderr = &bytes.Buffer{}`?" + }, + { + "prediction": "I think we should use `cert.NotBefore` instead of `cert.NotAfter`.", + "reference": "there's enough \"nots\" in here that while it's correct by my review, I'd like to see a small unit test (just passing in an expired and non-expired cert)" + }, + { + "prediction": "Why is this needed?", + "reference": "File is not `goimports`-ed (from `goimports`)" + }, + { + "prediction": "I think this should be `rtol = param.Number(default=10e-6, doc=\"\"\"\")`", + "reference": "The config option should probably have a more specific name. Also it's not for all gridded data but specifically for Images (and its subclasses)." + }, + { + "prediction": "Why is this change needed?", + "reference": "Be careful. This is not a preference but an option in a dialog." + }, + { + "prediction": "I think this should be `if deployment.ClusterName == \"\" {`", + "reference": "this will modify the incoming object, which may not be desirable in some cases. i think we should stick with the local var, override it with deployment.ClusterName if deployment.ClusterName not empty" + }, + { + "prediction": "Why was this removed?", + "reference": "Is this not required?" + }, + { + "prediction": "I think this should be `this.inputShapes_ = {};`", + "reference": "You're using scare quotes on these terms instead of defining them." + }, + { + "prediction": "I think this should be `>= 1.10.0` and not `>= 1.10.0`", + "reference": "These should both be const, not var right?" + }, + { + "prediction": "Why is this change needed?", + "reference": "Can you catch a more specific exception here? Thanks :-)" + }, + { + "prediction": "I think this should be `ctrl.Result{}` instead of `ctrl.Result{}`", + "reference": "This is a bug during handling the recover logic in `common chaos` controller, I fixed in this request when I found it." + }, + { + "prediction": "I think this should be `score_thr=0.3`", + "reference": "During testing, we adopt the score threshold specified in the config file. Here the threshold is only used for visualization, and the variable name `score_thr` can be misleading. Renaming it to `show_score_thr` would be better." + }, + { + "prediction": "I don't think we need to add `role=\"navigation\"` here.", + "reference": "can you make this `nav-primary` please? i'd like to roll with this since the `
    ` class is `nav`, and primary is the name of the navigation menu" + }, + { + "prediction": "I think we should use `\\s` instead of `\\s`", + "reference": "@georgehrke Just out of curiosity. Couldn't you combine at least the combine the regex for '-' and '' with groups?" + }, + { + "prediction": "I think this should be `FindQualifiedType(\"Swift.AnyObject\")`.", + "reference": "I think this is objectively better than looking up the object by name. As a follow-up, I'm going to see whether we do this name-based lookup somewhere else and switch to your method." + }, + { + "prediction": "I think this should be `(marginX - this.flyoutWidth_ + statusButtonWidth) / this.workspace_.scale`", + "reference": "Why are you dividing by scale in the LTR case but not the RTL case?" + }, + { + "prediction": "I think this should be `POST` instead of `POST`", + "reference": "Update after command rename" + }, + { + "prediction": "I think we should remove the `TagManagerModuleSettings` filter from the `ModuleSettingsDetails` filter.", + "reference": "I added this change to fix a bug with the legacy settings wrapper which was preventing it from working properly with the other modules " + }, + { + "prediction": "I think this should be `AZKABAN_FLOW_VERSION_2_0`.", + "reference": "isn't AZKABAN_FLOW_VERSION_2_0 more explicit?" + }, + { + "prediction": "Why is this change needed?", + "reference": "Please don't leave an empty default" + }, + { + "prediction": "Please remove empty lines.", + "reference": "This isn't directly related, but the `import React from 'react';` below should be removed. We never import this directly and any modules from it we need are imported through `@wordpress/element`. This was probably added automatically at some point, but we also provide this automatically via `ProvidePlugin`." + }, + { + "prediction": "I don't think we need the 800+ lines of the output.", + "reference": "You can also use `echo: false` instead. Either is fine; I'm just pointing it out." + }, + { + "prediction": "Why is this needed?", + "reference": "what's the reason for this moved line?" + }, + { + "prediction": "I don't think we need to check if `showTitle` is true.", + "reference": "I don't really follow what is happening here, but it looks like this _could_ conflict with the logic on the lines above... should this be an `else if`?" + }, + { + "prediction": "Why is this change needed?", + "reference": "`s => s.IsHidden == false` What's the purpose of adding this?" + }, + { + "prediction": "I think this should be `clef-signer-address` instead of `clef-signer-address`", + "reference": "I would name this `clef-ethereum-address`. We already have a bunch of addresses in Bee, and people might wrongly think that this is yet another address" + }, + { + "prediction": "Why do we need this?", + "reference": "you can just remove this" + }, + { + "prediction": "I think we should add the `StoragePoolClaim` to the `UpgradeTask` as well.", + "reference": "I think we should avoid creating a dummy CR in the case of SPC. Please see if we can avoid this since we will not be patching anything in this CR." + }, + { + "prediction": "I don't think we need to do this, but I think it would be better to use `locked_features.any?` instead of `locked_features.any?`", + "reference": "Honestly not sure myself, but do you think it makes sense to move this conditional into the partial?" + }, + { + "prediction": "I think this should be `prefix='qutebrowser-prefix-'` instead of `prefix='qutebrowser-prefix-'`", + "reference": "As discussed in IRC (just so it doesn't get lost): This probably should be `-basedir-`, not `-prefix-`" + }, + { + "prediction": "I think we should use `PathUtils.GetExecutingDirectory` instead of `PathUtils.GetExecutingDirectory`", + "reference": "basepath can be absoluta path and this needs to be supported" + }, + { + "prediction": "Why is this change needed?", + "reference": "Didn't get to the commit message" + }, + { + "prediction": "Layout/EmptyLinesAroundClassBody: Extra empty line detected at class body end.", + "reference": "What about raising `ActionView::MissingTemplate` instead? That's what HighVoltage does." + }, + { + "prediction": "I think this should be `receivable` instead of `receivable`", + "reference": "Is it kept for compatibility?" + }, + { + "prediction": "I think we should return `address.Undef` instead of `address.Undef` here.", + "reference": "I would find it pretty reasonable to add a MinerSigner method on the state view that puts these together." + }, + { + "prediction": "I think we should be able to do this in a separate PR. I think we should be able to do this in a separate PR. I think we should be able to do this in a separate PR.", + "reference": "It's stored in `PodDBAdapter.VERSION`. I usually use the expected release version code for that change. As this will be released in AntennaPod 2.2.0, the code would be `2020000`." + }, + { + "prediction": "I think we should be able to remove the `cql` prefix from the error message.", + "reference": "What about method name itself? Do we run this for SQL too?" + }, + { + "prediction": "Why is this change needed?", + "reference": "`instanceUrl` should be `cs1.salesforce.com`. `communityUrl` would be `mobilesdk.cs1.my.salesforce.com`." + }, + { + "prediction": "I think this should be `if (name && *size) {`", + "reference": "Let's use `if(name != nullptr)` to remove ambiguity" + }, + { + "prediction": "I think we should use `getNotImplementedString(\"SurfaceNamer.getMetadataIdentifier\")` instead of `getNotImplementedString(\"SurfaceNamer.getMetadataName\")` and `getNotImplementedString(\"SurfaceNamer.getMetadataName\")`", + "reference": "I wonder if it would make sense to have a separate namer for metadata? Metadata files tend to be expressed in a different language from the repo language, and have mutually exclusive concepts. So, `PackageMetadataNamer`." + }, + { + "prediction": "I think this should be `this(false);`", + "reference": "This rule is quite specific to qbft and so I don't think it should be part of the common rules. Would rather the common bft code didn't know anything about contract based voting/validator governance." + }, + { + "prediction": "I think this should be `Set reverse()`.", + "reference": "This makes our life harder than it needs to be. A Set is unordered by definition. Please remove this method from Set and add it to SortedSet, but with no default implementation. We need to duplicate it then to LinkedHashSet but that's ok, it is the best we can do. Could you please add it also to SortedMap and LinkedHashMap? We are then able to close the original issue." + }, + { + "prediction": "I think this should be `for header, value in response_headers.items()`", + "reference": "we can replace `for` with `params.update(response_headers)`" + }, + { + "prediction": "Why is this removed?", + "reference": "Any chance this is available in .NET Core 2.0 now?" + }, + { + "prediction": "Why is this needed?", + "reference": "I wonder if it's necessary to let app pass in the context. What app level context should be sent? If no, is it enough for p2p agent to compose a context with network info there?" + }, + { + "prediction": "Why is this needed?", + "reference": "Why do we need both includes here?" + }, + { + "prediction": "Why is this change needed?", + "reference": "SmartStoreInspectorTest expected results in a certain order" + }, + { + "prediction": "Shouldn't this be `LBANN_ERROR`?", + "reference": "I think that you need something like `m_using_random_node.emplace(m_io_thread_pool->get_local_thread_id());`" + }, + { + "prediction": "I think this should be `if (isUsedLocalVarWithoutInitializer(entry, result.usedVariables)) { continue; } if (isUsedLocalVarWithoutInitializer(entry, result.usedVariables)) { continue; } if (isUsedLocalVarWithoutInitializer(entry, result.usedVariables)) { continue; } if (isUsedLocalVarWithoutInitializer(entry, result.usedVariables)) { continue; } if (isUsedLocalVarWithoutInitializer(entry, result.usedVariables)) { continue; } if (isUsedLocalVarWithoutInitializer(entry, result.usedVariables)) { continue; } if (isUsedLocalVarWithoutInitializer(entry, result.usedVariables)) { continue; } if (isUsedLocalVarWithoutInitializer(entry, result.usedVariables)) { continue; } if (isUsedLocalVarWithoutInitializer(entry, result.usedVariables)) { continue; } if (isUsedLocalVarWithoutInitializer(entry, result.usedVariables)) { continue; }", + "reference": "I don't think we need to maintain a separate set. The problem here is that the \"assignment\" that is killed for this variable is not really an assignment. If we just don't `assign` the variable with the non-existent value, it will not be reported. I pushed a fix." + }, + { + "prediction": "nit: I think this should be `targetSplitSize`", + "reference": "Let me know if this is too pervasive. It is currently a private method in `BaseTableScan`. It seems both `SparkBatchQueryScan` and `SparkMergeScan` need to know the scan-specific split size when planning tasks. Therefore, I made it open. Another approach is to move all the `planTasks` logic to scan implementations, but for the combine tasks by partition feature, it requires grouping scan tasks by partition first, instead of returning them in an iterator fashion. I'm not sure if this is OK. `SparkMergeScan` also seems to re-implemented its own plan tasks logic." + }, + { + "prediction": "I think this should be `tm[1:maxTrace+1]` instead of `tm[1:maxTrace+1]`", + "reference": "Not sure what is this change doing?" + }, + { + "prediction": "I think this should be `delta = timedelta(minutes=30) if mins is not None else timedelta(days=90)`", + "reference": "this is funky. either don't take` minutes` as keyword arg or take both `minutes` and `days` and pass all of them on to `timedelta`. i'm guessing you're aiming for backwards compatibility, but i don't think it's worth it given how confusing this is. atlernatively, make `mins=60*24*30` the default. and that brings me to another issue, `mins=None` is not a very useful default." + }, + { + "prediction": "Why not use `AbstractRememberMeServices.getKey()` here?", + "reference": "Please use a tab for indentation instead of spaces." + }, + { + "prediction": "Why is this change needed?", + "reference": "I can't believe we didn't see this typo before :))" + }, + { + "prediction": "I think this should be `logging.get_logger(__name__)`", + "reference": "If the logger isn't used, it probably doesn't need to be added." + }, + { + "prediction": "I think this should be `script.type = 'text/javascript'`", + "reference": "These files should in `/javascript/brython`" + }, + { + "prediction": "I think this should be `if imageAlpha != nil && imageAlpha.Deprecated != nil && imageAlpha.Deprecated.StateOverride != nil {`", + "reference": "minor, you can squash these into one `if`" + }, + { + "prediction": "Why is this change needed?", + "reference": "Used regexes to do most of this, hence different methods of string creation of UUIDs. I plan to follow up with an additional change to remove direct references to google/pborman UUID so `uuid.New()` and `uuid.NewRandom()` will instead use our `primitives.UUID`." + }, + { + "prediction": "I think this should be `if (GraphSummary.Disposing && !GraphSummary.IsHandleCreated && !GraphSummary.Disposing) {`", + "reference": "Add a TODO here to revisit if this was problematic." + }, + { + "prediction": "I think this should be `True` when using `IoULoss`, `GIoULoss`, or `DIoULoss`", + "reference": "Note generally it -> It" + }, + { + "prediction": "I think this should be `if (type == \"directed_acyclic_graph_model\") { return new directed_acyclic_graph_model(comm, mini_batch_size, obj, opt); }`", + "reference": "Is this relevant to this PR?" + }, + { + "prediction": "Layout/SpaceInsideHashLiteralBraces: Space inside { missing.
    Layout/SpaceInsideHashLiteralBraces: Space inside } missing.
    Layout/SpaceInsideHashLiteralBraces: Space inside } missing.
    Layout/SpaceInsideHashLiteralBraces: Space inside } missing.
    Layout/SpaceInsideHashLiteralBraces: Space inside } missing.
    Layout/SpaceInsideHashLiteralBraces: Space inside } missing.
    Layout/SpaceInsideHashLiteralBraces: Space inside } missing.
    Layout/SpaceInsideHashLiteralBraces: Space inside } missing.
    Layout/SpaceInsideHashLiteralBraces: Space inside } missing.
    Layout/SpaceInsideHashLiteralBraces: Space inside } missing.
    Layout/SpaceInsideHashLiteralBraces: Space inside } missing.
    Layout/SpaceInsideHashLiteralBraces: Space inside } missing.
    Layout/SpaceInsideHashLiteralBraces: Space inside } missing.
    Layout/SpaceInsideArrayLiteralBraces: Space inside } missing.
    Layout/SpaceInsideArrayLiteralBraces: Space inside } missing.
    ", + "reference": "Can we instead ensure that `opts[:run_in_parellel]` will always be a boolean? Otherwise we'll have to account for the case when it's a non-boolean value in multiple places, such as any/every other `if` statement." + }, + { + "prediction": "I think this should be `HTTPSchemeKey.String(\"http\")` or `HTTPSchemeKey.String(\"https\")`", + "reference": "Is this just moved out of the other files? It doesn't seem like this was generated like the other files." + }, + { + "prediction": "I think this interface should be `IHttpContent` instead of `IHttpContent`", + "reference": "I started out doing everything `async`, but it was getting in the way of debugging, so I switched back to all synchronous until I got things working. We should probably move everything back to `async` and remove the synchronous versions." + }, + { + "prediction": "Why is this needed?", + "reference": "this looks already too complicated..." + }, + { + "prediction": "I think we should use `std::make_unique(0, rootPath.path());` instead of `std::make_unique(0, rootPath.path());`", + "reference": "As for the testings, we better to verify the actual effects of the compaction. Of course, you could do it in future." + }, + { + "prediction": "I think it would be better to use `Collections.unmodifiableList(tableMap.values());` instead of `Collections.unmodifiableList(tableMap.values());`", + "reference": "should we add a TODO here?" + }, + { + "prediction": "Why is this change needed?", + "reference": "This can be inlined below as `GoogleSitekitDashboardDetails` is an unnecessary wrapper now." + }, + { + "prediction": "Why is this change needed?", + "reference": "NewVHS -> NewVersionHistories this one looks better" + }, + { + "prediction": "I think we should use `executable_path` instead of `binary_path`", + "reference": "Is this `@missing_text` ?" + }, + { + "prediction": "I think this should be `subpackage_name_format = r\"[\\w-]+/[\\w-]+)(?:/(.+))?$\"", + "reference": "Minor suggestion, but wouldn't it be cleaner to simply replace PACKAGE_NAME_FORMAT to all the optional path, then check that the path is empty in validate_package_name? We might also want a helper function to pull out the package name and sub-package path." + }, + { + "prediction": "Shouldn't we use `i18n('finishEditingFile')` instead of `i18n('editing')`?", + "reference": "we should have a way to insert components into a i18n string. so that we could define a translation string like `'%{filename} is being edited'`, and inject the filename `` at the right place. I imagine there must be a language where the `Editing` text should come after the file name. we can think about that later tho." + }, + { + "prediction": "This should be `if (!pglob.gl_pathv) continue;`", + "reference": "Probably want break instead of continue." + }, + { + "prediction": "Why is this change needed?", + "reference": "This was on purpose that I would set logging (NoLog=false) and a dummy logger below. The idea is to have better code coverage and test of debug/trace statements. Any reason you have removed this?" + }, + { + "prediction": "I think this should be `Stream.` instead of `Stream.empty()`.", + "reference": "does adding a `Stream.empty()` help here?" + }, + { + "prediction": "I think this should be `ALL_EXIST`.", + "reference": "This is not being used anymore, so can be removed." + }, + { + "prediction": "I think we should use `fmt.Sprintf(\"IPv4: %s, %s\", p.ipv4.String(), p.ipv6.String())` instead of `fmt.Sprintf(\"IPv6: %s, %s\", p.ipv6.String(), p.ipv6.String())`", + "reference": "Is it called some where?" + }, + { + "prediction": "I think this should be `_` instead of `reflect`", + "reference": "Please remove this extra blank line." + }, + { + "prediction": "Why is this change needed?", + "reference": "this is really the key, if you don't set this then gradle doesn't wire up the tasks that produce various files inside these configurations as inputs... I think we were just getting lucky before." + }, + { + "prediction": "I think this should be `hasTags` instead of `hasTags`", + "reference": "Sorry if I'm missing something here, but shouldn't this message be about failing to match with an *empty* selector, and/or perhaps even an empty *tag* instead of selector? The message seems a bit disconnected from what we're testing?" + }, + { + "prediction": "I think we should use `using System.IO;` instead of `using System.IO;`", + "reference": "nit: please move these inside namespace." + }, + { + "prediction": "I think this should be `debug` instead of `debug`", + "reference": "may users try to abuse it?" + }, + { + "prediction": "I think this should be `new_buf_size = nbb.capacity();`", + "reference": "why is this space removed?" + }, + { + "prediction": "I think this should be `go:build !windows`", + "reference": "Can we remove this other line now then?" + }, + { + "prediction": "I think this should be `cmdhistory.py` instead of `cmdhistory.py`", + "reference": "There's a comma missing here at the end :wink:" + }, + { + "prediction": "Why is this removed?", + "reference": "Why is this not required any longer?" + }, + { + "prediction": "I think this should be `paginater` or `paginater`", + "reference": "Indentation seems a bit fucked up here. Run `go fmt`." + }, + { + "prediction": "I think this should be `status.Error(codes.InvalidArgument, \"empty filter\")` instead of `status.Error(codes.InvalidArgument, \"empty filter\")`", + "reference": "any chance in == nil? same below" + }, + { + "prediction": "Why not just `h2o_sysfn(socket, AF_UNIX, SOCK_STREAM, 0)`?", + "reference": "We would change the source code of h2o so that certain syscalls will be invoked through the `h2o_sysfn` macro." + }, + { + "prediction": "I think this should be `error = core->device_extensions.vk_khr_timeline_semaphore ? SubmitError::kTimelineCannotBeSignalled : SubmitError::kBinaryCannotBeSignalled;`", + "reference": "the name kTimelineCannotBeSignalled is confusing. It's not that a TimelineSemphore cannot be signaled... it's the \"VK_KHR_timeline_semaphore is enabled *variant* of the \"binary cannot be signaled\" message. We should probably have a consistent naming scheme to clarify. kBinaryCannotBeSignalledAltTimeline or hide the complexity in Get*VUID functions as needed somehow (pass in the extension structure?)" + }, + { + "prediction": "I think this should be `None` instead of `None`.", + "reference": "Could you add a type hint? `percentiles: Optional[List[float]] = None`" + }, + { + "prediction": "Layout/MultilineMethodCallBraceLayout: Closing method call brace must be on the same line as the first argument.", + "reference": "Maybe putting ones they've used before first would be good, but this is fine for now." + }, + { + "prediction": "I think this should be `blackhole` instead of `noenc`", + "reference": "I don't think we need these. Simpler just to put `routetable.TargetType...` inline below." + }, + { + "prediction": "I don't think we need to add a `@todo: dynamic dispatch for selection` here.", + "reference": "Why this instead of the old way?" + }, + { + "prediction": "I think we should use `RuleB(Pets, LivelikeBreakCharmOnInvis)` instead of `RuleB(Pets, LivelikeBreakCharmOnInvis)` instead of `RuleB(Pets, LivelikeBreakCharmOnInvis)`", + "reference": "Just combining the inner if/else blocks like this is what I originally meant (I didn't mean replacing all the invisible checks in the outer if, I realize that would have been a functionality change regarding the rule) This should now be equivalent to `if (RuleB(Pets, LivelikeBreakCharmOnInvis) || IsInvisible(formerpet))` (the second check for the rule being false after the `||` would be implied, anything after the `||` would only be evaluated if the rule was false)" + }, + { + "prediction": "Why do we need to replace `_` with `_`?", + "reference": "We don't want to write this back to the definition do we? Probably just want to create a local variable for it." + }, + { + "prediction": "I think this should be `clearCurrentlyPlayingTemporaryPlaybackSpeed` instead of `clearCurrentlyPlayingTemporaryPlaybackSpeed`", + "reference": "Good catch! Could you please move this to `PlaybackService.this.onPlaybackEnded`? I think it's more clean if everything is in one single place." + }, + { + "prediction": "I think this should be `xcb_flush(QX11Info::connection());` instead of `xcb_flush(QX11Info::connection());`", + "reference": "We're trying to avoid X.org specific code. So I'm not a fan of this. Can't this be achieved in display server agnostic way?" + }, + { + "prediction": "I think this should be `public static class Class1 { }`", + "reference": "This class can be removed?" + }, + { + "prediction": "Why is this needed?", + "reference": "File is not `goimports`-ed (from `goimports`)" + }, + { + "prediction": "Why is this TODO removed?", + "reference": "To minimize the possibility of regret, perhaps we name this `ZapLogger`." + }, + { + "prediction": "Line is too long. [89/80]", + "reference": "This looks a little weird, but it's a feature of the gem we're using. You can give it a symbol representing the method you want called on current_user." + }, + { + "prediction": "Why is this needed?", + "reference": "`Anomaly` imported here, but not used. Please run the changed files through pylint with nupic pylint config and fix pylint findings related to your changes." + }, + { + "prediction": "I think this should be `target = target || document.body.querySelector('#target')[0];`", + "reference": "We needed this testutils file after all " + }, + { + "prediction": "Why is this change needed?", + "reference": "line is 161 characters (from `lll`)" + }, + { + "prediction": "I think this should be `pkg/controllerutils.go` and not `pkg/controllerutils.go`.", + "reference": "Please re-format/groupimport this line. You might need a little manual work." + }, + { + "prediction": "I think this should be `ApplyWorkerCustomizations(worker.wf, worker.env.NoExternalIP)` instead of `ApplyWorkerCustomizations(worker.wf, worker.env.NoExternalIP)`", + "reference": "minor, you can just use `wf` instead of `worker.wf`" + }, + { + "prediction": "Why is this change needed?", + "reference": "I would suggest putting this in the resources directory with the same package as of this test class. Then you can utilize the method azkaban.utils.TestUtils#readResource to read it as string." + }, + { + "prediction": "I think this should be `templates` instead of `templates`", + "reference": "could not import github.com/openebs/maya/pkg/upgrade/templates (invalid package name: \"\") (from `typecheck`)" + }, + { + "prediction": "I don't think we need to change this to `OTel Exporter`.", + "reference": "a official -> an official" + }, + { + "prediction": "Why is this needed?", + "reference": "I only want the proxy request for this to run for kinesalite." + }, + { + "prediction": "Why is this change needed?", + "reference": "White space boya?" + }, + { + "prediction": "I think this should be `StackSummary` instead of `StackSummary`.", + "reference": "Maybe ditch these since `StackSummary` is not used anymore." + }, + { + "prediction": "I don't think we need to change the `label_bias` to `label_bias` here.", + "reference": "suggest to indicate the value range & meaning in docstring" + }, + { + "prediction": "I think this should be `/metrics/index` instead of `/metrics/index.html`", + "reference": "not sure if it works with prometheus by default, otherwise we will have to add this into prometheus config also" + }, + { + "prediction": "Why do we need to remove the endpoint mark here?", + "reference": "The rule renderer isn't meant to be stateful so probably best to move this out of here" + }, + { + "prediction": "I think this should be `findNvidiaContainerRuntimes(nil)` instead of `findNvidiaContainerRuntimes(nil)`", + "reference": "passing in a `nil` here just so that the tests can pass in an alternative implementation seems weird, but I don't know what the convention is for doing something like this - @briandowns?" + }, + { + "prediction": "I think we should use `@deque/doT` instead of `@deque/doT`", + "reference": "IMO `dot` should be preferred. Remember `aXe`?" + }, + { + "prediction": "I think this should be `Console.ReadLine();` instead of `Console.ReadKey();`", + "reference": "Not a huge deal but this will block tests, also, don't they stay open by default now?" + }, + { + "prediction": "Why is this needed?", + "reference": "Could you make it a local constant for now ?" + }, + { + "prediction": "I think this should be `isinstance(value, six.string_types)`", + "reference": "What is this `collection_id` field here?" + }, + { + "prediction": "Why is this change needed?", + "reference": "Is there a reason why we don't use logging for this?" + }, + { + "prediction": "Why not use `\\Throwable` instead of `\\Throwable`?", + "reference": "Exceptions should be placed in application layer -> infrastructure is aware of application - not the other way around" + }, + { + "prediction": "I think this should be `C0301` instead of `C0301`", + "reference": "IIRC issue mentioned reporting _symbolic message_ - so in this case it would be `line-too-long`." + }, + { + "prediction": "I think this is not a good idea, but I think it's better to use `spells[spell_id].feedbackable` instead of `spells[spell_id].reflectable`.", + "reference": "Is this intended to be `spells[spell_id].reflectable` here? Edit: Should be `spells[spell_id].feedbackable`, right?" + }, + { + "prediction": "I don't think we need this migration anymore.", + "reference": "How should we set this for existing teams?" + }, + { + "prediction": "I think this should be `testClusterProvisionWithInfraIDSet()`", + "reference": "It would be nice if we could verify that this is in fact the error we expected. But that's a latent issue, something for the backlog." + }, + { + "prediction": "Why is this needed?", + "reference": "I hate then some internal process specific middleware leaks into connection manager :( todo later." + }, + { + "prediction": "I don't think we need this, but I think it would be better to add a package to the `nupic.support.configuration_base` file.", + "reference": "Reflects where these files were moved for `pkg_resources`." + }, + { + "prediction": "I think we should use `i18n` instead of `i18n`", + "reference": "This should be computed('i18n.locale'...." + }, + { + "prediction": "Is there a reason why we need to override it for the test?", + "reference": "Can you explain to me what goes wrong here? Can the test be adjusted to set up working routing instead?" + }, + { + "prediction": "I think we should use `java.util.Objects` instead of `java.util.Objects`", + "reference": "We can get rid of this import then." + }, + { + "prediction": "Why is this change needed? I think it would be better to use `transport.morqaClient.SendMetric(id, metric)` instead of `transport.morqaClient.SendMetric(id, metric)`", + "reference": "Not sure how useful is unlock event." + }, + { + "prediction": "I think we should use `lowercaseFields` instead of `lowercaseFields`", + "reference": "Consider make the second argument a `encoderOptions` which includes the `lowercaseFields` just like opening a collection." + }, + { + "prediction": "Shouldn't this be `TezUtil.enrichContextWithAttemptWrapper(ctx)`?", + "reference": "What is the value of renaming this to `ctx`? We generally prefer the longer names because they are easier to read and to type." + }, + { + "prediction": "I think this is a good idea to remove the `BOOST_ASSERT(lane_data.front().tag == TurnLaneType::uturn)` check.", + "reference": "Hm. This could be a case of left-sided driving, having u-turn lanes on the right side. Good catch, but looks good to me." + }, + { + "prediction": "I think this should be `success = true` instead of `success = false`", + "reference": "There was a [JsonPropertyName(\"success\")] here it did serialize fine for me, so I am not sure what was the matter? Also maybe uppercase?" + }, + { + "prediction": "Why not use `ReadOnlyDbProvider` instead of `_context.SpecProvider`?", + "reference": "we can just use read env here, pretty sure" + }, + { + "prediction": "Is there a reason to add this hook to the `selectionCalculations` object?", + "reference": "Could you replace local hook with global hook `afterModifyTransformStart`?" + }, + { + "prediction": "I think this should be `self._files.clear()` instead of `self._files.clear()`.", + "reference": "You seem to be basing your PRs off an commit, which keeps reintroducing these changes, which makes it harder to review your PRs." + }, + { + "prediction": "Shouldn't this be `assert(typeof opt_port === 'function', 'start invoked with function, not port (mocha callback)?');`?", + "reference": "Maybe it would simpler to ignore opt_port if type !== 'number'?" + }, + { + "prediction": "Why is this `IEnumerable>` needed?", + "reference": "As far as I can tell, `IDictionary` implements `IEnumerable>` so we are just making it more generic. From the issue, I understood that we want to maintain sequence/order. I believe `IEnumerable<>` won't fix the issue." + }, + { + "prediction": "I think this should be `LOG.finest(String.format(String.format(String.format(String.format(String.format(String.format(String.format(String.format(String.format(String.format(String.format(String.format(String.format(String.format(String.format(String.format(String.format(String))))))))));`), ...)), ...).).", + "reference": "This change prevents a user understanding how their server is configured. Best to leave at `info` level." + }, + { + "prediction": "I think this should be `ephemeralDenyList`", + "reference": "I will add the following to the list: - api.SpecScale - api.SpecSticky" + }, + { + "prediction": "Why do we need this?", + "reference": "As defaultSendPort is being removed, and I don't like TODOs on examples, please remove the whole line" + }, + { + "prediction": "Why is this removed?", + "reference": "since we are now no longer expecting an input of float to return an empty string, i have removed this test case." + }, + { + "prediction": "I think this should be `NewCounterWithLabels` and `NewCounterWithLabels` and `NewCounterWithLabels`", + "reference": "It would be cleaner if you were to pack the name&desc in a `MetricName` and pass it to `MakeCounter`" + }, + { + "prediction": "Why is this removed?", + "reference": "Do you know why do we need this?" + }, + { + "prediction": "Is this needed? I think it's better to use `using MvvmCross.Platform.Ios.Views;` instead of `using MvvmCross.Platform.Ios.Presenters;`", + "reference": "I guess this using is what causes the build to fail" + }, + { + "prediction": "I think this should be `POOL_FREE(ponyint_thread_t, b);`", + "reference": "I like the explicit unregister approach." + }, + { + "prediction": "I think this should be `ExponentialHistogramWithMinMax(reserved)` instead of `ExponentialHistogramWithMinMax(reserved)`", + "reference": "We should able to use 0x30 as summary, and make 0x80 reserved for future." + }, + { + "prediction": "Shouldn't this be `!PlatformHelpers.PlatformStrategy.ShouldSkipClientSpan(tracer.ActiveScope)`?", + "reference": "This allows strategic exclusion of http spans." + }, + { + "prediction": "Shouldn't this be `strictTextSearchFields`?", + "reference": "why not just `string[]` instead of nullable" + }, + { + "prediction": "I think we should use `strings.Join(e.BuildContext.BuildTags, \" \"),` instead of `\",\"`", + "reference": "How does this work? Why isn't each tag after the first picked up as a new arg/flag?" + }, + { + "prediction": "I think this should be `Datadog-AzureAppServices-Resource-ID`", + "reference": "This key is actually yet to be determined. Meeting with the backend team and Garner to discuss." + }, + { + "prediction": "I think this should be `assert(iv_state);`", + "reference": "Why remove the crash protection? We're just going to get a bug filed on it." + }, + { + "prediction": "I think this should be `X-XSS-Protection`", + "reference": "Maybe be consistent and name it `FRAME_OPTIONS`." + }, + { + "prediction": "Why is this removed?", + "reference": "This check/exception is a guard for the next few lines of code. It shouldn't be necessary now. In fact, I don't think you need the if (parentConnection.type == Blockly.INPUT_VALUE) branch at all." + }, + { + "prediction": "Why is this change needed?", + "reference": "Could probably move these constants too?" + }, + { + "prediction": "I think this is a good idea, but I'm not sure if we need to stop the server on missing ping to discovery. I think it would be better to just stop the server on missing ping to discovery, and then stop the server on missing ping to discovery, and then stop the server on missing ping to discovery.", + "reference": "Maybe 'failed' instead of 'missing'. Also do we really need to write ticket numbers here?" + }, + { + "prediction": "Why is this removed?", + "reference": "Test used to use old bouncycastle dependency which isn't needed anymore from Hadoop. Switched to use builtin Java split." + }, + { + "prediction": "Why do we need this?", + "reference": "nit: I think this would be more readable as \"Some language names contain Unicode characters\"." + }, + { + "prediction": "I think this file should be moved to the top of the file.", + "reference": "Thanks for adding the header, but I don't think 2017 is a very accurate guess here. Could you do a quick search with git blame and change this accordingly?" + }, + { + "prediction": "I don't think we need to change this, but I think it would be better to just use `../../src` instead of `../../src`", + "reference": "Oh interesting - does web-test-runner not resolve package.json files?" + }, + { + "prediction": "I think this should be `ariaMonthPrefix=\"P\u00e4iv\u00e4\"`", + "reference": "Is there a way to derive this value from the locale itself? I feel hardcoding the prefix in the props isn't the right approach, but I'm not sure what the locale file contains exactly." + }, + { + "prediction": "I think this should be `else if (component.componentWillMount && !mountAll) {`", + "reference": "I'd much rather see these warnings in our devtools (`debug/index.js`). Strings contribute quite a bit to our file size and moving them there would prevent bloating core." + }, + { + "prediction": "I think this should be `INDICES_QUERY`", + "reference": "Use `String.format(Locale.US, ...) to avoid the `Lint` warning." + }, + { + "prediction": "I think this is a bit confusing, but I think it would be better to have a `PodReference` and `ServiceReference` as well as a `ServiceReference` as well.", + "reference": "nit: ServiceReference represents a reference to a v1.Service." + }, + { + "prediction": "I think this should be `*[string]string` instead of `*[]string`", + "reference": "since it changes to the array, how about change the name to `DeviceNames`" + }, + { + "prediction": "I think this should be \"RuntimeTLP\" instead of \"RuntimeTLP\".", + "reference": "Can we avoid this. upgrade engine code should take care of this." + }, + { + "prediction": "I think this should be `DEFAULT_TOKEN_EXP_MINUTES`", + "reference": "should also be alphabetized or at least grouped and alphabetized within group" + }, + { + "prediction": "Why is this needed?", + "reference": "No need for this, as pylint already only turns things off for this function and it's needed for the entire function." + }, + { + "prediction": "I think this should be `errUnmarshalCountOpts` and `errUnmarshalBuildOpts` and `errUnmarshalCountOpts`", + "reference": "nit: can we remove \"can't\" from the error message?" + }, + { + "prediction": "I think this should be `cVR.Status.Phase = apis.CVRStatusRecreate` instead of `cVR.Status.Phase = apis.CVRStatusPending`", + "reference": "instead of modifying 'Status' which impacts the state diagram, how about using some annotations on CVR? This can probably help for our upgrade as well. Is this possible? cc: @AmitKumarDas" + }, + { + "prediction": "I think this should be `https://packages.cloud.google.com/yum/repos/kubernetes-el7-x86_64/doc/yum-package-key.gpg`", + "reference": "Rename this as KubernetesGPGURL - >KubernetesUbuntuGPGURL , Modify it where ever it is used." + }, + { + "prediction": "I don't think we need this.", + "reference": "I'm not totally sure I like the idea of putting a default fee here, but I guess so long as we make sure to track the default fee of bitcoin core, we're good. We should really also take a look at the byte size of the transaction, and use that to determine what the fee should be. But that could also be a different PR." + }, + { + "prediction": "I don't think you need to change the `` tag to `` and `` tag to ``", + "reference": "oh yeah, `tail`, `update`, `prepend`, `append`, `subSequence`, `trim` just became effectively constant (without memory leak) :)" + }, + { + "prediction": "Why not use `is_array` here?", + "reference": "Can you add back a deprecated `destroyLinks` method for backward compatibility? It can simply proxy `destroyResourceLinks`, and we can remove it in the next major release." + }, + { + "prediction": "I think this should be `parseServerOptions` instead of `parseServerOptions`", + "reference": "A reminder that we should discuss whether to rename this to \"sockets\" or \"listeners\"." + }, + { + "prediction": "I think this should be `using eprosima::fastrtps::fastrtps::rtps::RTPSParticipantAttributes;`", + "reference": "Why do you need to include this using declaration?" + }, + { + "prediction": "Why is this change needed?", + "reference": "@halter73 where is this file generated from?" + }, + { + "prediction": "I think this should be `#if TRUE` instead of `#endif`", + "reference": "What do these `#if TRUE` accomplish?" + }, + { + "prediction": "I think this should be `if (Sdk.SuppressInstrumentation && Activity.Current == null)`", + "reference": "Probably a good optimization to have this, but I don't think it's strictly required. For \"legacy\" Activity flows we pass them through an ActivitySource for sampling. So the logic below should also catch these?" + }, + { + "prediction": "I don't think we need to change this to `view_request_cta`", + "reference": "@jessieay Intentionally moving away from passing a param?" + }, + { + "prediction": "Why do you need this?", + "reference": "I think you could condense this code considerably by getting rid of the initialization and foreach loop and simply saying: `$firstname = trim(implode(' ', $nameArr));` What do you think?" + }, + { + "prediction": "Why is this removed?", + "reference": "hmm, we actually should _add_ `'use strict'` everywhere " + }, + { + "prediction": "I think this should be `logger.warn(\"Project \" + projectId + \" version \" + projectVer + \" property \" + propsName + \" is empty.\");`", + "reference": "it's not just fetching override properties here, right?" + }, + { + "prediction": "I think we should log the error instead of just logging it.", + "reference": "Is it worth logging the error?" + }, + { + "prediction": "I think this should be `self.__dict__[\"ns\"]` or `self.__dict__[\"ns\"][key]`", + "reference": "What's the point of this class?" + }, + { + "prediction": "Why is this change needed?", + "reference": "I'm being picky here, but I think I would prefer `toggle` to be kept here and just change the condition to `contentType !== 'movies' && contentType !== 'mixed'` or `!['movies', 'mixed'].includes(contentType)`." + }, + { + "prediction": "I think this should be `path.Join(path.Dir, path.Dir)`", + "reference": "Please put this down with the other \"github.com\" imports." + }, + { + "prediction": "I think this should be `bool push_front_preference` instead of `bool push_front_preference`", + "reference": "Minor but probably want `push_front_preference` to have a trailing `_a` to be consistent with the other parameter" + }, + { + "prediction": "I think this is a bit confusing, but I think it would be better to have a `boolean caseSensitive` parameter in the constructor.", + "reference": "Nit: the formatting is a bit off. I would expect this to be 2 indentations from `this.expr = ...` but this is 8 spaces, not 4. Also, most places leave the `);` on the last line of the method arguments." + }, + { + "prediction": "Why is this change needed?", + "reference": "Ack, @chrisdunelm snuck this class extension past me. This is not a pattern I want to have used..." + }, + { + "prediction": "I think this should be `if flush_enabled:`", + "reference": "nitpick: I wonder if we should name it `flush` only (?)" + }, + { + "prediction": "I think this should be `sonm_tasks_deals`", + "reference": "Why gauges, not counters?" + }, + { + "prediction": "why not use sysHashLen?", + "reference": "Just making a note here that this may break pre GWs between pre 2.2.0 and 2.2.0 servers. Not sure, will have to experiment/dig a bit more." + }, + { + "prediction": "I think this should be `POD_FAILED` instead of `POD_FAILED`.", + "reference": "Shall we rename this status to CONTAINER_FAILED? ^^ cc: @sshardool" + }, + { + "prediction": "I think this should be `Fetcher` instead of `Fetcher`", + "reference": "Thinking out loud here: I believe the only reason we need `peer.ID` as a parameter to this method is because we are not persisting blocks from pubsub (instead we are refetching them). If nodes persist the blocks they received over pubsub then I think we can guarantee peers we share a connection with (i.e. that are in the peer tracker) will always have the blocks we are fetching (else how would have we gotten the pubsub message). I imagine the concept of an `initialPeer` can go away once #2962 lands since the peers in the tracker will have the block. Although I don't think that covers the case of fetching blocks our peers have deemed semantically invalid and thus not stored..." + }, + { + "prediction": "I think this should be `[here](https://github.com/google/cel-spec/blob/master/doc/langdef.md#standard-definitions)`", + "reference": "I know it has no effect but my eyes can't help. Is that line not too long?" + }, + { + "prediction": "Why remove this?", + "reference": "Does that mean we disable service loop prevention for packet generated by local host?" + }, + { + "prediction": "I think this should be `host.cygwin_installed?` instead of `host.cygwin_installed?`", + "reference": "It seems a little odd to have both `host.is_cygwin?` *and* `host.cygwin_installed?` defined (with a possibility of having `is_cygwin?` be `true`, but `cygwin_installed?` returning `false`). Do the docs clearly explain the difference?" + }, + { + "prediction": "I don't think we need to preserve sequence numbers here.", + "reference": "Does this mean manifests will be written with the v2 schema (i.e. with sequence numbers) even though `TableMetadata` is v1 and the manifest list is written with v1? And this should work because we do a projection on read and sequence number is optional?" + }, + { + "prediction": "I think this should be `REWRITTEN_FILE_SCAN_TASK_SET_ID`", + "reference": "Should we be sharing this property key with the read? Maybe it should be belong to the file-scan-task object itself?" + }, + { + "prediction": "I think this should be `debug_cmd` instead of `debug_tools`.", + "reference": "Nice! Good idea to move these out of the main struct." + }, + { + "prediction": "I think this should be `if err != nil && err != util.CheckErr(err) { return err }`", + "reference": "Thanks for paying attention to other places this might happen. This one is particularly important; I probably never should have gotten in the habit of CheckErr(), since it does a log.Panic() explicitly, which looks like something else until you look closely. It's supposed to be used places where \"can't happen\" but Things Can Happen." + }, + { + "prediction": "I think we should use `Type` instead of `String`.", + "reference": "Converting this to an enum makes it obvious that I combined things that don't really belong together. It would probably be better to create two enums `StoreType` and `TransportType` (in more appropriate locations). That also makes it necessary to have (at least) two `ServerSettings` classes. `IncomingServerSettings` and `OutgoingServerSettings`. Also, the naming is inconsistent. Maybe it would be better to make the string that is used for import/export explicit, e.g. WEBDAV(\"WebDAV\")." + }, + { + "prediction": "I think this method should be `tokenList` instead of `tokenList`", + "reference": "It's out of scope for this PR, but I don't find this utility's name to be particularly intuitive. It speaks to nothing of what it does. Does it create a token list? Process one? Get one? `tokenListToArray` would be nice." + }, + { + "prediction": "I think we should use `this.data('has-label')` instead of `this.data('has-label')`", + "reference": "The message for this check used the existence of a label to determine the output, which doesn't work with the current schema. So I updated it since the data only needed to know a label was present and not what it was." + }, + { + "prediction": "Shouldn't this be `rpcauth.ValidateApp(ctx, app.ProjectId, claims.Role.ProjectId)`?", + "reference": "nit: \"The current project does not have requested application\"" + }, + { + "prediction": "I think this should be `[id]` instead of `[id]`.", + "reference": "Extend Unit test for this class" + }, + { + "prediction": "I think this should be `DD_APPSEC_IPHEADER` or `DD_APPSEC_EXTRA_HEADERS`", + "reference": "This is this a copy / paste error from above." + }, + { + "prediction": "I think this class should be `VariableTypeInterference` instead of `VariableTypeInterference`.", + "reference": "this package has to be renamed to `typeinference`" + }, + { + "prediction": "Shouldn't this be `assertEqual(user.providerType, \"anon-user\")`?", + "reference": "This cancels the above null-check I guess." + }, + { + "prediction": "Why is this change needed?", + "reference": "change to timerIntervalInMillis" + }, + { + "prediction": "I think this should be `role_none_comment` instead of `role_none_comment`.", + "reference": "`any rules` should be `any roles`" + }, + { + "prediction": "Why not use `FeedItemFilter.filter(DBReader.getRecentlyPublishedEpisodes(0, page * EPISODES_PER_PAGE, feedItemFilter));`?", + "reference": "Why does the method need to be renamed? I would just keep the old name and update the other uses (which are only tests). That way, we can reduce code duplication." + }, + { + "prediction": "I think this should be `keyconf.KeyConfigParser(None, None)` and not `keyconf.KeyConfigParser(None, None)`", + "reference": "I'm not sure if this is going to work - I think it's fine to keep them hardcoded here, as the statusbar can still show `:`, `/` and `?` even if the key is rebound." + }, + { + "prediction": "I don't think this is needed anymore.", + "reference": "@tmetzke shouldn't we replace this library with the `2.12.1` instead of removing it?" + }, + { + "prediction": "This struct needs a field which represents the size of sectors that this miner has committed to the network.", + "reference": "uint64 seems excessive here. Should we reduce to a uint32 @whyrusleeping ?" + }, + { + "prediction": "Why is this removed?", + "reference": "Hmm, I thought this was getting used. These are used elsewhere as a cached value (in `svc deploy` it's `o.targetApp`) but I guess since storage doesn't actually need to validate that the app exists, just that there are local services, we never used it." + }, + { + "prediction": "I think this should be `net.SplitHostPort(r.RemoteAddr)` instead of `net.SplitHostPort(r.RemoteAddr)`", + "reference": "To keep it simple, how would you feel about just using r.RemoteAddr? Since every request comes through here I want it to be as lean as possible. Frankly I'm OK with the port showing up in the log; maybe it'd even be useful to someone." + }, + { + "prediction": "I think this should be `if a.hasFoundationBonusExtension() { grantFB = a.grantFoundationBonus(epochNum) || (epochNum >= p.cfg.FoundationBonusP2StartEpoch && epochNum <= p.cfg.FoundationBonusP2EndEpoch)`", + "reference": "grant bonus depends on both `admin{}` stored in statedb, and `P2Start/End` in local struct, which is kind of weird at Kamchatka height, we add the bonus Start/End epoch into `admin{}`, so it solely depends on `admin{}` stored in statedb" + }, + { + "prediction": "I think this should be `f'Invalid flipping direction \"{direction}\"'.format(direction)`.", + "reference": "Use single quote to wrap the str." + }, + { + "prediction": "I don't think we should change the error message to `ERR_PERMISSIONS_RELOAD_ERROR`. The error message should be `ERR_PERMISSIONS_RELOAD_ERROR` and `ERR_PERMISSIONS_RELOAD_ERROR` and `ERR_PERMISSIONS_RELOAD_ERROR` and `ERR_PERMISSIONS_RELOAD_ERROR` and `ERR_PERMISSIONS_RELOAD_ERROR` and `ERR_PERMISSIONS_RELOAD_ERROR` and `ERR_PERMISSIONS_RELOAD_ERROR` should be `ERR_PERMISSIONS_RELOAD_ERROR`.", + "reference": "Is the plan to rename this later?" + }, + { + "prediction": "Why not use `!in_array($this->strategy, $this->strategies) {` here?", + "reference": "Is there a reason why we need a special case for Email at this point? Is the idea that other methods can turn into Email even if it's not configured as a top-level option?" + }, + { + "prediction": "I think this should be `panic(\"dir unexpectedly empty\")`.", + "reference": "This wording is a bit ambiguos, I first thought it meant the directory has no entries in it. maybe \"dir\" -> \"dir string\"?" + }, + { + "prediction": "I think this should be `bool HPX::m_hpx_initialized = false;` and `bool HPX::m_was_finalized = false;` and `bool HPX::m_was_finalized = false;`", + "reference": "Why do we need both `HPX::m_hpx_initialized` and `HPX:: m_was_initialized`?" + }, + { + "prediction": "I think we should use `len(info.RPCName) == 0 && len(info.RPCAddress) == 0` instead of `len(info.RPCAddress) == 0`", + "reference": "also check RPCName?" + }, + { + "prediction": "I don't think we need to add this to the `WebSessionOAuth2ServerAuthorizationRequestRepository` class.", + "reference": "Remove unused import" + }, + { + "prediction": "why is this flag set to `false`?", + "reference": "I assume there will never be a scenario where justValidate is expected to be true on a restart" + }, + { + "prediction": "I think this should be `ctx.getReport().addListener(configuration.getAnalysisCache());` or `ctx.getReport().addListener(configuration.getAnalysisCache());`", + "reference": "Report listeners are synchronized, even 'though the cache is thread-safe... I've not profiled it, but it may be a cause of contingency. Any better way around this? Also, do listeners **really** need to be synchronized? Can't we just make them thread-safe?" + }, + { + "prediction": "why is this change needed?", + "reference": "I don't think this is correct. When `compiler` is not given in `.travis.yml`, the announcement will be `--version`, which results in \"`command not found`\" (though not critical), and the cache slug will lack this information (also not critical)." + }, + { + "prediction": "I think this should be `args = [];` instead of `args = [];`", + "reference": "Why do this rather than `args = []` in the function signature?" + }, + { + "prediction": "I don't think we need to freeze the features here.", + "reference": "I think we probably *should* do validation of whether there is a suitable implementation if local-validation is true. I'm not sure how useful that actually is though" + }, + { + "prediction": "I think this should be `if other.data is not None:`", + "reference": "@StrikerRUS here may need to concat two data by col." + }, + { + "prediction": "Why is this change needed?", + "reference": "Why the space?" + }, + { + "prediction": "Why is this change needed?", + "reference": "please resolve the extra indentation" + }, + { + "prediction": "Why is this change needed?", + "reference": "More proof that this check is needed always." + }, + { + "prediction": "Why do we need to clear the al_comms?", + "reference": "`m_al_comms` now contains smart pointers." + }, + { + "prediction": "I think this should be `Instance.QuoteValue(defaultValue);` and not `Instance.QuoteValue(defaultValue);`", + "reference": "Did you do a test run with the compare script? I'm nervous about what happens on all the generators..." + }, + { + "prediction": "I think this should be `return c.nc.RemoteAddress()`.", + "reference": "For a client, we store host, as string c.host. That is what we use for monitoring and statsz. Not sure if its useful here or not. Looks like probably not." + }, + { + "prediction": "Why is this change needed?", + "reference": "This change is suspicious. Why did the number of partitions increase?" + }, + { + "prediction": "I don't think we need to check if `@user.admin?` is true.", + "reference": "I'm still new to this area, so please forgive what may be a stupid question: When would this be false? And do we have a test for that situation?" + }, + { + "prediction": "I think we should be able to change this to `btnCustomMoleculeColumns.Enabled = radioMolecule.Checked;`", + "reference": "Should there be any changes to this file at all?" + }, + { + "prediction": "I think this should be `autoPolicy` instead of `autoPolicy`.", + "reference": "The only field being used is the KeyType; Instead, we can probably just make a `keyType` variable here." + }, + { + "prediction": "Why is this needed?", + "reference": "This should be done by code-gen change happening in the hydra repo. I am tweaking it just to get CI into a 'passing' state" + }, + { + "prediction": "I think this should be `[options.features]` instead of `[options.setupRegistry]`.", + "reference": "Cleaned up when I originally added support for passing `screenContext` here (and later `viewContext`) but that was removed." + }, + { + "prediction": "I think this should be `if (name == nullptr) return false;`", + "reference": "This looks like a bunch of whitespace fixing that's unrelated. Can you revert?" + }, + { + "prediction": "Why is this changed?", + "reference": "should be removed instead" + }, + { + "prediction": "I think this test should be done in a separate PR.", + "reference": "should use randomization ?" + }, + { + "prediction": "I think this should be `nil` instead of `nil`", + "reference": "returning nil because we want to mayactl to exit with 0 status code." + }, + { + "prediction": "I think this should be `application/json; charset=utf-8`", + "reference": "Is this change relevant to the PR? (and I believe we should use `text/plain` considering the fact that it can be displayed using web browsers...)" + }, + { + "prediction": "I think this is a bit confusing, but I don't think we need to change it.", + "reference": "`[Flags]` is now auto-generated by an argument to the `EnumHint`. (The attributes happen to come out in this order. I don't think it's worth controlling the order.) #Resolved" + }, + { + "prediction": "I think this should be `log.Info(\"using resource updates where applicable\")`", + "reference": "I think same here - in general we don't need to use Setters / Getters since configParams isn't a public API." + }, + { + "prediction": "I think this should be `pdata` instead of `programbytes`", + "reference": "Why using `fmt.Sprintf` where `fmt.Sprint` would do the work (notice no `f` in function name)?" + }, + { + "prediction": "Shouldn't this be `attrs.get(\"IAccessible2::attribute_current\")`?", + "reference": "Extraneous blank line." + }, + { + "prediction": "why not use `Sender` or `AuthAddr` instead of `Sender`?", + "reference": "nit: syntax : neither -> nor" + }, + { + "prediction": "I think this should be `if (spanContext is not null) {`", + "reference": "Is it safe to assume that these two keys are always present? `this[string]` will throw a `KeyNotFoundException` if they are not." + }, + { + "prediction": "Shouldn't this be `exflow.getFlowDefinitionId() > 0 ? exflow.getFlowDefinitionId() : flowId`?", + "reference": "Is the `flowDefinitionId` sufficient to uniquely identify the flow or does it need to be the tuple `` ?" + }, + { + "prediction": "I don't think we need to add the `self` to the `DateTimeInterface` as well.", + "reference": "Shouldn't it be in the reverse order? `DateTime::createFromInterface()` returns `self` and accepts `DateTimeInterface`." + }, + { + "prediction": "I don't think we need to check if the mime type is set in the file object.", + "reference": "this check is now redundant. The rest of the function downwards basically does the same thing but with safer checks." + }, + { + "prediction": "Why is this change needed?", + "reference": "Please could you remove the useless space." + }, + { + "prediction": "I don't think we need to check if `arc.target >= 0` and `arc.target < Integer.MAX_VALUE`", + "reference": "What's the point of this block (and isn't it effectively dead code)?" + }, + { + "prediction": "I don't think we need this, but I think it's better to use `ENV.fetch(\"DISCOURSE_SSO_SECRET\", nil)` instead of `ENV[\"DISCOURSE_SSO_SECRET\"]`", + "reference": "Put a comma after the last parameter of a multiline method call." + }, + { + "prediction": "I think this should be `@job(version_strategy=SourceHashVersionStrategy())`.", + "reference": "Newline at end of file plz" + }, + { + "prediction": "I think we should use `clusterv1` here.", + "reference": "Can this be refactored to avoid including the aws sdk in the types that we expose? I know it's not being exposed directly through the types we expose, but I do worry that it might make it easier to accidentally do that in the future and not realize it as easily." + }, + { + "prediction": "Shouldn't this be `tx_solr_indexqueue_item_last_indexed`?", + "reference": "Hi thomas, i would propose to indicate in the name, that only the indextime is updated, otherwise somebody might think the whole items is getting updated. I would propose something like \"updateIndexTimeByItem(Item $item)\"" + }, + { + "prediction": "Shouldn't this be `isinstance(element, str)` or `isinstance(element, dict)`?", + "reference": "This is not the right exception class. There is an InvalidSelectorException class that covers bad locators." + }, + { + "prediction": "I don't think this is necessary, but I think it would be better to use `Kokkos_Cuda.hpp` instead of `Kokkos_CudaSpace.hpp`.", + "reference": "I assume this came from format?" + }, + { + "prediction": "I think this should be `@var boolean $clearSearchIndex = true;`", + "reference": "I'd suggest a default value of `false` just to make sure existing tasks are ok when they get deserialized after an update to a version containing this code." + }, + { + "prediction": "I think this should be `dumpConfig().Sdump(keys)` instead of `dumpConfig().Sdump(keys)`", + "reference": "Do we really need this? Seems like it would pollute the logs pretty badly." + }, + { + "prediction": "I think this should be `Vector.Count` instead of `Vector.Count`.", + "reference": "`Vector.Count` should Jit to const when intrinsic; not sure when `Vector.IsHardwareAccelerated == false` ; however we know `readonly static int` does Jit to const." + }, + { + "prediction": "Is there a reason to import sqlalchemy from kinto.core.utils?", + "reference": "Can we use a skipIf decorator instead?" + }, + { + "prediction": "I don't think we need to add a `@return` here.", + "reference": "Missing version tags" + }, + { + "prediction": "Do we need this?", + "reference": "I think this should also filter out `validate_resolve_reference` hooks." + }, + { + "prediction": "Why is this needed?", + "reference": "unrelated, but required fix as metrics branch got broken with the latest main->metrics merge and conflict resolution." + }, + { + "prediction": "I think this file should be deleted.", + "reference": "Feel free to remove this line" + }, + { + "prediction": "I think we should use `I18n.t(\"shared.subscriptions.single_user\")` instead of `I18n.t(\"shared.subscriptions.single_user\")` instead of `I18n.t(\"shared.subscriptions.single_user\")`", + "reference": "~~Should this match the key updated above?~~ :+1:" + }, + { + "prediction": "I think this should be `defer f.Close()`.", + "reference": "`gofmt` allows a more compact form `defer func() { _ = f.Close() }()` or just add `// nolint:errcheck` before `defer`." + }, + { + "prediction": "Why is this change needed?", + "reference": "collateral is in FIL" + }, + { + "prediction": "I think we should use `q.channelPool.LoadOrStore(nodeID, rChannel)` instead of `q.channelPool.LoadOrStore(nodeID, rChannel)`", + "reference": "We should not create channel of node which are not connected." + }, + { + "prediction": "I don't think we need to add the `options.db` parameter to the `MongoCredentials` class.", + "reference": "I think the docstring should say something like \"Alias for the `source` option\" or something similar." + }, + { + "prediction": "I think this should be `recycling_instructions_to_discard_fr` and `recycling_instructions_to_recycle_fr`", + "reference": "Please use properties without suffix `_fr` so they can work across different languages as @teolemon mentioned" + }, + { + "prediction": "I think this should be `void destroy_request(struct st_h2o_http3client_req_t *req)` instead of `void start_request(struct st_h2o_http3client_req_t *req)`", + "reference": "Declaration here is `static` but the definition at the bottom is non-static?" + }, + { + "prediction": "I think this should be `Content-MD5-MD5` or `Content-MD5-MD5-MD5-MD5`", + "reference": "Hi @myml, thanks for the contribution! `blob` and `blob/driver` are both in the same module, so you shouldn't need to split this change up into multiple Pull Requests. Also, I'd like to see it working, including the implementation for `s3blob` and `gcsblob` (these should be easy, just pass-through to the provider) and `fileblob` (might be trickier...), and a test in `drivertest/drivertest.go`." + }, + { + "prediction": "I think this should be `if i.nodeConfig.NodeTransportIPv6Addr != nil {`", + "reference": "Was it a bug?" + }, + { + "prediction": "Why is this change needed?", + "reference": "# `attr_value['string'] is not None` probably not required as `attr_value['string'] == value` check is already being done" + }, + { + "prediction": "I think this should be `_last_hovered_link`.", + "reference": "You're accessing private variables here - `last_hovered_link` should be public in `TabData`. As for `tabbed_browser._now_focused`, I think you can use `tabbed_browser.widget.currentWidget()` instead." + }, + { + "prediction": "I think we should use `@invitation_id` instead of `@invitation_id`", + "reference": "Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping." + }, + { + "prediction": "Is this needed?", + "reference": "We should file a bug for this - we don't need the extensions class if there are no operations on the client" + }, + { + "prediction": "I think this should be `NewMetricsCsi` instead of `NewMetricsCsi`", + "reference": "Is it possible to import from k8s instead of copy in? :)" + }, + { + "prediction": "Why is this change needed?", + "reference": "`@param float` can be dropped here." + }, + { + "prediction": "Why is this change needed?", + "reference": "maybe we can leave this change un-reverted." + }, + { + "prediction": "Why is this change needed?", + "reference": "I wouldn't make MethodDeclarator an AccessNode, nor an Annotatable. It's the MethodDeclaration that can be annotated, and has info about the modifiers, and is already an AccessNode" + }, + { + "prediction": "I think this class should be `PlayerHeadIconChanged` instead of `PlayerHeadIconChanged`", + "reference": "delete this class" + }, + { + "prediction": "I don't think we need to use `[1-9][0-9]+|0[1-9]$/` here.", + "reference": "Replacing `+` (1 or more) with `*` (0 or more) would've also done the trick." + }, + { + "prediction": "I think this should be `throw` instead of `throw()`.", + "reference": "I've been meaning to fix this for a while. Thanks." + }, + { + "prediction": "I think we should be able to remove A and B here, but I don't think we should be able to remove A and B here.", + "reference": "This is adding multiple processor pipelines. I guess you wanted to add multiple processors to the same, single pipeline?" + }, + { + "prediction": "I think this should be `str(x[0]) in \"0123456789\"", + "reference": "If you need str(x[0]) here, you'll probably need str(x) the line after that I suppose. Also, shouldn't we use `raw()` here instead of `str()`?" + }, + { + "prediction": "I think this should be `3600000`.", + "reference": "3.6 seconds? what does it stand for?" + }, + { + "prediction": "Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
    Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.", + "reference": "If the command fails, is stdout nil or \"\"?" + }, + { + "prediction": "I don't think we need to change the API version to `1.0.0`", + "reference": "Why is api-version now removed in the generated code?" + }, + { + "prediction": "Why is this needed?", + "reference": "We may register all built-in optimizers of PyTorch here to simplify the builder." + }, + { + "prediction": "I think this should be `ns->components = ns->components.begin(); it != ns->components.end(); it != ns->components.end(); it = ns->components.begin(); it != ns->components.end(); it = ns->components.begin(); it != ns->components.end(); it = ns->components.end();", + "reference": "No need for this new variable." + }, + { + "prediction": "Why is this change needed?", + "reference": "doesn't this enqueue a double render or is that safeguarded somehow" + }, + { + "prediction": "Why is this change needed?", + "reference": "But now you may get DATA RACE reports because c.acc is sometimes changed. I wonder if we should not rework that whole sending subs through route." + }, + { + "prediction": "I think this should be `if (type == \"HDF5Reader\") { return std::make_shared(*this, name, accessMode, mpiComm, method); }`", + "reference": "Use `ADIADIOS2_HAVE_HDF5`, not `ADIOS_HAVE_PHDF5`" + }, + { + "prediction": "I don't think we need this test anymore.", + "reference": "Would be nice to put this in a separate context named `\"with a string and a non-string\"` (since that's what it is -- it's definitely not a non-string and a string!)." + }, + { + "prediction": "Why do we need this?", + "reference": "Should MAX_PERTABLE_ENTRY here be 10 ?" + }, + { + "prediction": "I think we should use `Encoding.ASCII.GetBytes(\"Content-Length: 0\");` instead of `Encoding.ASCII.GetBytes(\"Content-Length: 0\");` and `Encoding.ASCII.GetBytes(\"Content-Length: 0\");` and `Encoding.ASCII.GetBytes(\"Content-Length: 0\");` and `Encoding.ASCII.GetBytes(\"Content-Length: 0\");` and `Encoding.ASCII.GetBytes(\"Content-Length: 0\");` and `Encoding.ASCII.GetBytes(\"Content-Length: 0\");` and `Encoding.ASCII.GetBytes(\"Content-Length: 0\");`", + "reference": "Should move these out of frame into a static class? Similar to reason phrases?" + }, + { + "prediction": "I don't think we need to check the type of the instruction here.", + "reference": "That means we still create `UseLane` instructions but threat them like `Suppressed`? Can we maybe change this in the pre-processing so that we will just emit `Suppress` instructions in these cases?" + }, + { + "prediction": "Why is this removed?", + "reference": "no need to move here, iotex-proto is outside of iotex-core and considered same as iotex-address, go-pkgs" + }, + { + "prediction": "I think this should be `#if defined(LINUX) && defined(LINUX_64)`", + "reference": "Looks like a clang-format style violation: should turn Travis red." + }, + { + "prediction": "Do we need this setting?", + "reference": "I think we need some YARD docs here, particularly to list all the color symbols that are valid. Otherwise users will have to look at the source to discover that." + }, + { + "prediction": "I think we should use `getSiteInfo` instead of `getSiteInfoProperty`", + "reference": "Not sure if this needs a doc block or not since it's completely internal, but for cleaning this up. (@felixarntz docs?)" + }, + { + "prediction": "I think this should be `-Wno-deprecated-declarations -Wno-invalid-offsetof -Wno-deprecated-declarations -Wno-deprecated-declarations -Wno-invalid-offsetof -Wno-deprecated-declarations -Wno-deprecated-declarations -Wno-invalid-offsetof -Wno-deprecated-declarations -Wno-deprecated-declarations -Wno-deprecated-declarations -Wno-deprecated-declarations -Wno-deprecated-declarations -Wno-deprecated-declarations -Wno-deprecated-declarations -Wno-invalid-offsetof -Wno-deprecated-declarations -Wno-deprecated-declarations -Wno-deprecated-declarations -Wno-deprecated-declarations -Wno-deprecated-declarations -Wno-invalid-offsetof -Wno-deprecated-declarations -Wno-deprecated-declarations -Wno-deprecated-declarations -Wno-deprecated-declarations -Wno-deprecated-declarations -Wno-deprecated-declarations -Wno-deprecated-declarations -Wno-deprecated-declarations -Wno-deprecated-declarations -", + "reference": "The change here is to address what exactly?" + }, + { + "prediction": "I think this should be `bool` instead of `bool`.", + "reference": "Is this really an Option? IIUC, you compute it automatically for the URLOpener case, why would we require a user to fill it in when using the constructor? I.e., can't we drop this and use `adal.MSIAvailable` instead? If that call is expensive, cache it on `bucket`, not `Options`." + }, + { + "prediction": "I think this should be `d_size = 0;` instead of `d_size = 0;`", + "reference": "Was this done automatically or by hand?" + }, + { + "prediction": "Layout/EmptyLinesAroundMethodBody: Extra empty line detected at method body end.", + "reference": "This looks like it will only work for the first child, since after that we've overridden `desired_group`. Should we have a separate variable for this?" + }, + { + "prediction": "I think this should be `VUID-UNASSIGNED-cache-file-error` instead of `UNASSIGNED-cache-file-error`.", + "reference": "Should this be a constant somewhere?" + }, + { + "prediction": "I think this should be `InternalsVisibleTo(\"OpenTelemetry.Instrumentation.GrpcNetClient\" + AssemblyInfo.PublicKey)]` or `InternalsVisibleTo(\"OpenTelemetry.Instrumentation.GrpcNetClient\" + AssemblyInfo.PublicKey)]`", + "reference": "nit: sort alphabetically." + }, + { + "prediction": "I think this should be `JsonQueryConverter.class.getSimpleName().equals(JsonQueryConverter.class.getSimpleName())`", + "reference": "Now, It's redundant, I suppose." + }, + { + "prediction": "I don't think we should be using the `ListImplementation` interface here.", + "reference": "nit: The format recognized by tooling is `// Deprecated: [..]` so you likely want this to be, // Deprecated: Use \"go.uber.org/yarpc/peer/peerlist/v2\".Implementation instead." + }, + { + "prediction": "I think this should be `log.Infof(\"An issue occurred reading telemetry entry for: %s\", bootstrapID)`", + "reference": "nit: 1. when formatting input strings, make sure to place them in quotes so we could identify white space issues. i.e. '%s' 2. If there is untyped, non-nil error, you want to log the error string as well." + }, + { + "prediction": "I think this should be `Windows` instead of `Linux`", + "reference": "I believe this can be fixed with the original code if you just omit the \".dll\" file extension so it reads `[DllImport(\"Datadog.Trace.ClrProfiler.Native\")]`. On Windows it would look for `Datadog.Trace.ClrProfiler.Native.dll` and Linux/Mac it would look for `Datadog.Trace.ClrProfiler.Native.so`." + }, + { + "prediction": "I think this should be `prefs.getBoolean(UserPreferences.PREF_MOBILE_UPDATE_OLD, false)` instead of `prefs.edit().getString(UserPreferences.PREF_MOBILE_UPDATE, \"everything\").apply();`", + "reference": "couldn't we just read the boolean as a string (I would assume that this return \"true\" or \"false\"), migrate if to its new value and keep using the same pref key?" + }, + { + "prediction": "I don't think this is needed.", + "reference": "If these variables are only used in main function, move these to the beginning of that function. If there is a foreseeable reason to have them as global statics just let me know." + }, + { + "prediction": "I think this should be `nameof(serviceProvider)` instead of `nameof(region));`", + "reference": "This one was wrong." + }, + { + "prediction": "I think this should be `allAffectedNodeIDs[]NodeID` instead of `allAffectedNodeIDs[]NodeID`", + "reference": "What happens if nodes throughout a hierarchy are modified (as they would be)? It looks like we're going to `Reset` once for each `NodeID` affected." + }, + { + "prediction": "Why is this removed?", + "reference": "> Note that allocation of vmheap fails upon initializing dynamoRIO 64 on WoW64 processes. Thus, we need to pass -reachable_heap to avoid having to make this allocation. This should be solved by changing the default `vmheap_size` to be much smaller than 8GB for x64 DR inside WOW64." + }, + { + "prediction": "I think this should be `@return [Array]` instead of `@return`", + "reference": "Is it really worth expanding our public API for this? After all, isn't calling this the same as calling `notification.fully_formatted(...).lines`? If so, I'd rather not widen our API (and thus, increase our maintenance burden) when it's so simple to get all the lines already." + }, + { + "prediction": "I think this should be `public static final String SNIPPET_RESOURCE_ROOT`", + "reference": "Is it necessary to keep this class around just to define this constant? Or can we place it somewhere else?" + }, + { + "prediction": "I think this should be `PolicyNamespace` or `PolicyName`?", + "reference": "Question - do we cache NetworkPolicy itself? If so, here we can point to NetworkPolicy?" + }, + { + "prediction": "Why is this removed?", + "reference": "For my view, `Register` means the process of **insert node resource to etcd through api-server**, which is called by upstream rather than here, how about changing the func name to `OnConnected`?" + }, + { + "prediction": "I think this should be `telemetryInitialized`", + "reference": "I would prefer an active verb for this property, e.g. `initializeTelemetry`. The reason is that this property refers to something the engine does once on startup. Other properties that use passive voice (e.g. `authorizationEnabled`) refer to a state of the engine during its lifetime." + }, + { + "prediction": "I think this should be `public bool ContainsTimeSpan { get { return this.Methods.FirstOrDefault(m => m.Parameters.FirstOrDefault(p => p.Type == PrimaryType.TimeSpan) != null); }`", + "reference": "please use new line to maintain reasonable line width" + }, + { + "prediction": "I think this should be `return s.createTag(w, r)` instead of `return s.createTag(w, r)`", + "reference": "I would skip this check or add an internal server error response." + }, + { + "prediction": "I think we should use `config.notarize` instead of `config.notary_user` and `config.notary_password`", + "reference": "missing `{` here (and then `}` after `notary_password = config.notary_password`); it's only going to do the first one" + }, + { + "prediction": "Why is this change needed?", + "reference": "This is odd because it's actually in our generated SiteSettingsPath, not in the SiteLocalSettingsPath (wp-config-ddev.php). Are these two files swapped somehow? I'd expect SiteSettingsPath to be wp-config.php and SiteLocalSettingsPath to be wp-config-ddev.php. BTW, I'm *way* ok with renaming that to SiteDdevSettingsPath." + }, + { + "prediction": "I think this should be `kythe.io/kythe/proto/extraction_config_go_proto`", + "reference": "It seems like this must necessarily be a stopgap. Can you please add a TODO(#xyz) to point to the appropriate issue?" + }, + { + "prediction": "Why is this change needed?", + "reference": "Is the return signature necessary since we never actually return if there is a problem (I'm referring to the call to `logrus.Fatalf`). Let's pick a pattern and stick with it." + }, + { + "prediction": "I think we should add a `capIsNew: false` to the `capIsNew` property.", + "reference": "@btecu why is this override needed here? I'm not seeing a `new` being used here." + }, + { + "prediction": "I think this should be `c.closeConnection(ProtocolViolation)` instead of `c.closeConnection(ProtocolViolation)`", + "reference": "Should it not be more something like: `MaxAccountConnectionsExceeded` here?" + }, + { + "prediction": "I think this should be `parseAndValidate(t, \"-compute_service_account_override\", \"http://endpoint\")`.", + "reference": "minor: use a non-default CE service account for testing (since default is handled in a specific way in the code)" + }, + { + "prediction": "I think this should be `presealPath := filepath.Join(\"./512\", \"setup.json\")`", + "reference": "This is how I ran the 512MiB test. It's probably too much data for a fixture, and makes for longer functional tests (although still less than a minute on my laptop)." + }, + { + "prediction": "Line is too long. [89/80]", + "reference": "So we weren't able to hide the fact that the file wasn't pre-generated and had to introduce this \"option\" to detect that?" + }, + { + "prediction": "I think this should be `CodeToStatusCode` instead of `CodeToHTTPStatusCode`", + "reference": "Agree that exporting these maps is the best tradeoff, just registering my ongoing discontent with the lack of `const` collections." + }, + { + "prediction": "I think this should be `self._tab.run_js_async(\"\"\"\")`", + "reference": "This could probably use `const` as well?" + }, + { + "prediction": "Why is this change needed?", + "reference": "it doesn't look like these need to be exported?" + }, + { + "prediction": "I think this should be `fmt.fmt`", + "reference": "I think you should remove \"fmt\" here. And change `fmt.Errorf` to `errors.Errorf`." + }, + { + "prediction": "I don't think we need this migration anymore.", + "reference": "Here's the `resources` attribute @jferris. I'm not against renaming `Product` to `Resource`, and this one... something else." + }, + { + "prediction": "Why is this change needed?", + "reference": "If the context is unused, this is equivalent to `var wg errgroup.Group`." + }, + { + "prediction": "I think this should be `FRAGALIGNRATIO` or `FRAGSIZEISMINIMUM`", + "reference": "very minor: I'd prefer these two added rows are switched so that fragsizeIsMinimum directly follows fragsize" + }, + { + "prediction": "I think this should be `if host == 'localhost' or host.startswith('127.')`", + "reference": "Given that 115 returns `True`, why would this be `False` here?" + }, + { + "prediction": "I think this test should be moved to `oauth2LoginWithOneClientConfiguredAndRequestFaviconNotAuthenticatedThenRedirectDefaultLoginPage`", + "reference": "Please move this test method just below `oauth2LoginWithOneClientConfiguredThenRedirectForAuthorization()`" + }, + { + "prediction": "I think this should be `c_TimeInfinite` instead of `c_TimeInfinite`.", + "reference": "Why this new configuration?" + }, + { + "prediction": "Why not use `dupe.hasArray()` here?", + "reference": "I don't think that we need to check `hasArray` here. I think the reason why this didn't previously check `hasArray` is that the array passed to `DataByteArray` must start at offset 0 and be valid through the array length, so a copy was needed in almost every case. It may be simpler to change this to use `ByteBuffers.toByteArray` and pass the result to create `DataByteArray`." + }, + { + "prediction": "Why is this change needed?", + "reference": "`spanReference` -> `baggage` " + }, + { + "prediction": "I don't think we need to change this to `/verdaccio/logo.png`", + "reference": "Why the `/-/verdaccio/` ?" + }, + { + "prediction": "Why is this removed?", + "reference": "Has been waiting for a million years " + }, + { + "prediction": "I don't think this is a good idea, but I think it's better to use `Date.min` and `Date.max`.", + "reference": "Minor grammar detail: the 'than' is unnecessary" + }, + { + "prediction": "I think this should be `item_top_two = self._internal._sdf.select(scol).head(2)`", + "reference": "I think you can just simply fix this line to `self[:2].to_pandas()`" + }, + { + "prediction": "I think we should use `/se/cdp/` instead of `/se/cdp/`", + "reference": "if we are returning the `ws` here when passing in `se:cdp` we can just return it straight or do we have to make a request to get the `ws` address?" + }, + { + "prediction": "I think this should be `assets/js/googlesitekit/datastore/site.js`", + "reference": "I could add a resolver for this (like above) but it seems more sensible to just change the one reference!" + }, + { + "prediction": "I think this should be `actualTimeSinceParent`", + "reference": "not sure \"actual\" adds value - secondsSinceParent is probably closer." + }, + { + "prediction": "I think we should use `search_builder.facet(facet_field, user_params, extra_controller_params)` instead of `search_builder.facet(facet_field, user_params, extra_controller_params)`", + "reference": "Line is too long. [94/80]" + }, + { + "prediction": "I don't think we need to add the `repeater` field to the error message.", + "reference": "The error should be `At least :number items are required`" + }, + { + "prediction": "why is this change needed?", + "reference": "singleCaseSwitch: should rewrite switch statement to if statement (from `gocritic`)" + }, + { + "prediction": "Why is this removed?", + "reference": "Could combine this with `encryptionKeyGetter` to have a single `keyGetter` interface. I'm not sure which way is better." + }, + { + "prediction": "Why do we need this?", + "reference": "Is there any security issue here? If we integrate with Hive security (and I don't know if we have or not) is there some notion of re-authentication at connection time?" + }, + { + "prediction": "Why is this change needed?", + "reference": "Does this mean we do not support writeConcern on `createCollection`?" + }, + { + "prediction": "Why is this change needed?", + "reference": "I guess `sid` was for `sessionID`, but now it looks strange: `sid.ID`." + }, + { + "prediction": "I think this should be `s.scope.SecurityGroups()[infrav1.SecurityGroupAPIServerLB].ID` or `s.scope.SecurityGroups()[infrav1.SecurityGroupControlPlane].ID`", + "reference": "We'll need `infrav1.SecurityGroupBastion` as well" + }, + { + "prediction": "I think this should be `f.Features().PublicLink(fileName)` instead of `f.Features().PublicLink(fileName)`", + "reference": "This `fileName` should probably be `remote` and be relative to the Fs root as per normal rclone usage." + }, + { + "prediction": "Why is this change needed?", + "reference": "That way we are back to having just one index on k_0 So we can really compare the execution times with and without re-indexing" + }, + { + "prediction": "I think this should be `#\\\\$%&'` or `#\\\\$%&'`", + "reference": "Expression that uses a negation pattern to exclude all characters that aren't in the expression." + }, + { + "prediction": "I think this should be `Rpc-Respond-Service-Header` instead of `Rpc-Both-Response-Error`.", + "reference": "Similar to my suggestion for HTTP, let's remove this and use `ServiceHeader` instead." + }, + { + "prediction": "I think this should be `if commandSet == targetGlobalCommandPath && commandSet != targetGlobalCommandPath {`", + "reference": "The serviceDirOnHost[0:1] was completely wrong. It wasn't just Windows, glad you got this fixed!" + }, + { + "prediction": "I think this is a bit confusing, but I think it would be better to have a `waitEgressRealizedTimeout` and `waitEgressRealizedTimeout` and `waitEgressRealizedTimeout` as well.", + "reference": "Would membership take 10+ seconds to detect the failed node?" + }, + { + "prediction": "I think this should be `raise RuntimeError(f'Makrdown file \"{path}\" could not be loaded: {err}')`", + "reference": "hmm, in this case perhaps the whole try-except could be removed altogether? because if the file does not exist, it's already returning `None`. In any other case it should actually probably fail with the exception, no?" + }, + { + "prediction": "I think this should be `path.Join(home, \".mysterium\")`.", + "reference": "This function does not need to be public" + }, + { + "prediction": "I don't think we need to add the `! accounts.length && !hasExistingTag` check here.", + "reference": " Any chance we can get a CSS class for this? I know it's just in one place but feels like a dangerous precedent to set." + }, + { + "prediction": "I think this is a good idea to remove the `nextMethodName` attribute from the `CompositeType` object.", + "reference": "> && this.Extensions.ContainsKey(\"nextMethodName\") [](start = 96, length = 48) From line 124, looks like we don't need `&& this.Extensions.ContainsKey(\"nextMethodName\")` condition or we don't need line 124 #Closed" + }, + { + "prediction": "Why did you remove this?", + "reference": "Moving this code from compat to core shaves 47 bytes out of compat and only adds 6 bytes to core so I thought it was worth it." + }, + { + "prediction": "Why is this removed?", + "reference": "Please use \".NET Core 3\" - i'm trying hard to use one form, and this is the one MS advices" + }, + { + "prediction": "I think this should be `return params.Ctx.Err()`.", + "reference": "Unrelated to this change, but this is a fix for when TestDoStartCgroupInitHappyPath has a failure after the test goroutine has already exited." + }, + { + "prediction": "I think this should be `check_not_scrolled`", + "reference": "Hmm, I'd really expect this to work, and yet it doesn't. I'll investigate later, though it might get Monday until I get the time." + }, + { + "prediction": "I think this should be `std::int64_t` instead of `std::int64_t`.", + "reference": "Does this changes affect process building dynamic libraries anyhow?" + }, + { + "prediction": "Why is this needed?", + "reference": "Could you limit what is imported here?" + }, + { + "prediction": "I think this should be `save_file(tmp_file, zip_file_content)` instead of `save_file`", + "reference": "just to clarify - on line 1074 we update `zip_file_content` for non-local lambdas, but never store it, which means lambda never picks it up" + }, + { + "prediction": "I don't think we need to change the protocol here.", + "reference": "Golang naming convention is to use camel case `icmpPktWithTypeCode` Often the linter will complain" + }, + { + "prediction": "Why is this removed?", + "reference": "We can do away with assigning the response here too." + }, + { + "prediction": "I don't think this is needed.", + "reference": "Bumping the newViewportHeight" + }, + { + "prediction": "I think it would be better to use `secondaryy` instead of `master`.", + "reference": "Is this change correct? Looks like a typo and not sure this should be changed?" + }, + { + "prediction": "I think this should be `_load_reporter_by_class_from_name`", + "reference": "I checked the tests coverage and strangely it look like those three lines are not covered (?!). Do you have the same result on your side ?" + }, + { + "prediction": "Why is this removed?", + "reference": "nit: please try to avoid changing end of the file (it adds a noise to the code review, but does not provide too much value)" + }, + { + "prediction": "I think this should be `!string.IsNullOrWhiteSpace(postOpResourceModels)`", + "reference": "I don't see the \"only\" part reflected in the code but maybe I'm missing it. Also, the indentation is misleading: the `.SelectMany` calls are perfectly aligned but are *not* operating on the same \"level\". I'd expect the second `SelectMany` to be on the same height as the inner `Where`, just break `pathObj => pathObj.Where` and lines won't be that long." + }, + { + "prediction": "I don't think we need to change this to `resources` since it's a `ResourceInstance`.", + "reference": "It seems like most of these will never be nil, are they optional just in case?" + }, + { + "prediction": "I think this test should be done in `TableCodec.decodeRow(bytes, -1, tblInfo);`", + "reference": "`.addColumn(\"c1\", IntegerType.INT, true)` means `PkHandle=true`, maybe should add `.setPkHandle(true)` in line 31" + }, + { + "prediction": "I think it would be better to use `Long.valueOf` instead of `Integer.valueOf`", + "reference": "how about `Cannot encode row key with non-integer type` directly?" + }, + { + "prediction": "I think this method should be called `fetchUnfinishedExecutions` and `fetchActiveFlowByExecId`", + "reference": "The method names `fetchUnfinishedExecutions` and `fetchUnfinishedFlows` are too similar to each other. Would it be better to use the name `fetchUnfinishedFlowsMetadata` since you are only fetching metadata info about the flow?" + }, + { + "prediction": "I think this should be `git checkout 2.4.0` instead of `git checkout 2.4.0`", + "reference": "Note that `sudo` is not available by default on BSDs; there are a few places in the codebase here where that's explicitly worked around by using `su`." + }, + { + "prediction": "I think this should be `const` instead of `const`.", + "reference": "ultra nit: missing Oxford comma :P" + }, + { + "prediction": "I think this should be `explain(\"analyzed\")`.", + "reference": "This is not supported in Spark 3.0.0-rc2 yet. I'd skip this for now." + }, + { + "prediction": "I think this should be `Query(ctx context.Context, from, to types.Address, method string, params ...interface{})` or `Query(ctx context.Context, from, to types.Address, method string, params ...interface{})`", + "reference": "BLOCKING: Why does `Query` return an `*exec.FunctionSignature`?" + }, + { + "prediction": "Why not use `c.dirtyBcache`?", + "reference": "please move this down to immediately above the assignment to `c.dirtyBcache`" + }, + { + "prediction": "I think this should be `watch` instead of `watch`", + "reference": "Don't need the `, err` part since you've already handled it." + }, + { + "prediction": "I think this test should be in a separate PR.", + "reference": "Please add two additional SECTIONs that show that this also works if the dative bond is in the reactant (reaction SMARTS `[O:1]->[H+]>>[O:1].[H+]`) or in the agents (reaction SMARTS `[O:1][H]>N->[Cu]>[O:1].[H]`)" + }, + { + "prediction": "I think this should be `regenerateCerts: func() bool`", + "reference": "What happens if the certificate rotation fails and we are prematurely removing this file?" + }, + { + "prediction": "I think this should be `if !s.once.IsRunning() {`", + "reference": "does this change belong here?" + }, + { + "prediction": "I think this should be `w.workflowDir` or `w.workflowDir`", + "reference": "This returns an error" + }, + { + "prediction": "I think this should be `config:\"oneof(legacy,nft);local\"` and not `config:\"oneof(legacy,nft);local\"`", + "reference": "If we think we might someday write a native nftables backend, do you think it would make sense to just use generic dataplane configuration? e.g, `dataplane = iptables | ebpf | nftables`, but for now selecting `nftables` uses iptables in nft compat mode?" + }, + { + "prediction": "Why not use `require.NoError(err)` here?", + "reference": "Looks like that helper function is general enough that it should reside in testhelpers" + }, + { + "prediction": "I think this should be `if app.DisableSettingsManagement { return nil }`", + "reference": "This isn't incorrect IMO, but I think it would be better to fix this in drupal7PostStartAction and also in drupal6PostStartAction. It seems to me like those were both somehow neglected on this. Use drupal8PostStartAction as example. Congrats on your first golang PR! Please make sure to test it manually." + }, + { + "prediction": "Line is too long. [98/80]", + "reference": "I'd like to ensure that the error message at least has some reference to the flag that is not allowed. Something like `/ERROR(.+)--hosts/` would work." + }, + { + "prediction": "I don't think we need to change this to `if err == selector.ErrSubnetsNotFound {`", + "reference": "Should we say \"specifying two public subnets\"?" + }, + { + "prediction": "I think this should be removed.", + "reference": "Issue number? When? Why?" + }, + { + "prediction": "I don't think we need to import speech here.", + "reference": "You should not rely on `PitchCommand` being imported into speech. Please import it from `speech.commands`." + }, + { + "prediction": "why change this?", + "reference": "Is this a constant used in the Nessie project itself? If so, perhaps you might consider a follow up for adding `NessieCatalogProperties` class at some point, to help make them more clear to users looking to adopt Nessie coming from the Iceberg repo itself " + }, + { + "prediction": "Why is this change needed?", + "reference": "maybe we should rename: MinTaskID -> MinTaskIDExclusive, MaxTaskID -> MaxTaskIDInclusive," + }, + { + "prediction": "I don't think we need to change this to `ecs-nvidia`", + "reference": "You may need to make this configurable if we expect people to be able to use the normal Nvidia runtime on other Linux distributions like Ubuntu or Debian." + }, + { + "prediction": "Why is this change needed?", + "reference": "Originally the DenyExport was a subscribe permission because it meant that if on this LN connection, if we deny export of \"foo\" it means that it would reject a subscription (hence subscribe permission) on \"foo\" from the other side. Now you are changing to simply not allowing this server to publish on \"foo\". I am not saying this is wrong, but we completely flip the meaning." + }, + { + "prediction": "(style) line over 80 characters", + "reference": "> k1 src0 src2 -> dst s/src2/src1/ nit: k1 is actually src0 according to instr_get_src(instr, 0) which makes this a little confusing" + }, + { + "prediction": "I think this should be `kmd data dir exists but is too permissive (%o)` instead of `kmd data dir exists but is too permissive (%o)`", + "reference": "I believe that you meant to have the following on the second one, right ? `dataDirStat.Mode()^0077`" + }, + { + "prediction": "Why is this change needed?", + "reference": "The reason a `ByteCount` is used here, is that the H2 mapping in gQUIC requires this layer violation, which is why `CloseRemote` is not part of the public API. This layer violation will be resolved in IETF QUIC" + }, + { + "prediction": "I think this should be `IsEffectInSpell(spell_id, SE_InvisVsAnimals)`", + "reference": "I dig the helper function!" + }, + { + "prediction": "I don't think we need to change this file.", + "reference": "Please add the Copyright header." + }, + { + "prediction": "I think this should be `target.FileSystemTarget` instead of `target.FileSystemTarget`.", + "reference": "Is this the best way to import `FileSystemTarget`?" + }, + { + "prediction": "(style) line over 80 characters", + "reference": "Wait -- os_local_state_t.tid is thread_id_t though, so we need to read a pointer-sized value via READ_TLS_SLOT_IMM, rather than changing these locals to ints. Maybe have a READ_TLS_TIDSZ_SLOT_IMM or sthg." + }, + { + "prediction": "(style) line over 80 characters", + "reference": "Don't use ! in the messages because it isn't used on xplat. There is a SOSPrefix define that can be used (blank on xplat and ! on Windows). Do we really need 3 newlines?" + }, + { + "prediction": "I think this should be `isabs(dagster_home_path)` instead of `isabs(dagster_home_path)`", + "reference": "print out what we got here in the error" + }, + { + "prediction": "(style) line over 80 characters", + "reference": "Does this need to be global?" + }, + { + "prediction": "Why is this change needed?", + "reference": "Yep, could be simplified. Now looks like other *Map.values() impls" + }, + { + "prediction": "Shouldn't this be `@Then`?", + "reference": "This method will be for debug?" + }, + { + "prediction": "I think this should be `Service`", + "reference": "// Key returns the private key for a specified name that was encrypted with the // provided password. If the private key does not exists it creates a new one // with a name and the password, and returns with `created` set to true." + }, + { + "prediction": "I think this should be `PackageDiagramEntity` or `ClassDiagramEntity`", + "reference": "Adding the type hints revealed that it was necessary to distinguish between a ``PackageEntity`` and a ``ClassEntity``, because the ``ClassEntity`` has additional attributes that were dynamically added in the previous code, which confused ``mypy``." + }, + { + "prediction": "I don't think we need to add `add_prefix` and `add_suffix` in the `_MissingPandasLikeDataFrame` class.", + "reference": "These two functions should be available now." + }, + { + "prediction": "I think this should be `err != nil`", + "reference": "`fi` is what the result of Stat is called elsewhere in this file not `finfo`" + }, + { + "prediction": "I don't think we need this test anymore.", + "reference": "I'm confused; are we just dropping these methods without deprecation?" + }, + { + "prediction": "I think this should be `version = folly::Endian::big(version);` instead of `version = folly::Endian::big(version);`", + "reference": "can we use PC's time to version in Distributed Systems?" + }, + { + "prediction": "I don't think we need to check if `c.user.nil?`", + "reference": "is this \"unless\" actually needed?" + }, + { + "prediction": "Why is this change needed?", + "reference": "We don't accept empty words for lookup anymore, again" + }, + { + "prediction": "I think we should use `console.log` instead of `console.log`", + "reference": "We'll have to account for CI installations being faster than local ones. Do y'all think we should leave it at < 30 green / < 50 orange | >= 50 red or lower our thresholds?" + }, + { + "prediction": "I think this should be `W3C_MINIMIZE_WINDOW` or `W3C_MAXIMIZE_WINDOW`", + "reference": "No need for this to be `W3C_` since there is no JWP equivalent" + }, + { + "prediction": "I think this should be `RSpec::Core::Backports::Random` instead of `RSpec::Core::Backports::Random`", + "reference": "As far as I can tell, there's nothing that creates an instance of `Random` or that calls `rand` or `seed`. Am I missing it? If not, let's remove the `Random` class since we don't really need it and we can move the definitions of `shuffle` into `RSpec::Core::Ordering`. One less type :)." + }, + { + "prediction": "I think this should be `s.listener.Addr()`.", + "reference": "Is this ever actually used?" + }, + { + "prediction": "Why is this needed?", + "reference": "this section of the codebase should be noted as a candidate for caching, and as a place where multiple tipsets is making things extra tricky" + }, + { + "prediction": "(style) code indent should use tabs where possible", + "reference": "Do we need to save the existing value of the stolen reg somehow?" + }, + { + "prediction": "Shouldn't this be `maxResults`?", + "reference": "maxResults should come from FLAGS once #244 is submitted." + }, + { + "prediction": "I think this should be `#if NETCOREAPP` instead of `#endif`", + "reference": "is this wanted?" + }, + { + "prediction": "I think this should be `pytest.importorskip('linode')`", + "reference": "What exception is actually happening here? AFAIK `pytest.importorskip` with just return `None` if there's nothing to import. Which means that this check'd always return `True`. `pytest.importorskip` is specifically designed to trigger skipping the current test anyway so I don't know why you would wrap it like this." + }, + { + "prediction": "Align the elements of a hash literal if they span more than one line.", + "reference": "Does it send requests with urlencoded bodies anywhere? I thought it sends only json. Maybe content-type should be `application/json` by default?" + }, + { + "prediction": "I think this should be `--ignore_chromium` instead of `--ignore_chromium`.", + "reference": "I'm not sure about adding more flags here when we're trying to simplify things, I thought we were going to check for patches changes to decide if we needed to update or not?" + }, + { + "prediction": "Why is this change needed?", + "reference": "`testExecutionPb` is a global variable (from `gochecknoglobals`)" + }, + { + "prediction": "Why did you remove this?", + "reference": "~Method is public and removing it would be a BC Break, you can deprecate it if you want.~" + }, + { + "prediction": "I think this should be `log.Debug(\"%v\", err)`.", + "reference": "this got me a little confused when reading `build.log`. The err is printed with a log.Error later on but that ends up after the stack trace." + }, + { + "prediction": "This should be `--keep-namespaces` and not `--keep-prefix`.", + "reference": "Can we make these more explicitly for Rust only? It seems like JS and Go use flags with their name in them." + }, + { + "prediction": "I think this should be `fmt.Errorf(\"open bucket %q: invalid query parameter %q\", u, param)`", + "reference": "Should unsupported query parameters just be ignored? I think that's more common than error out." + }, + { + "prediction": "I don't think we need to change the namespace here.", + "reference": "Actually can we avoid mentioning `Register._UNSET_NAMESPACE`. I thought of it as an implementation detail of the simpler concept of \"being unset\". Perhaps the docs become more natural if we remove the \"If called without arguments or with ...\" part and just say \"you have to call this function without arguments at the end of any file it has been used. That is to ensure blah blah\". Something like that. Just a suggestion." + }, + { + "prediction": "I think this should be `except Exception` instead of `exc_info=True`.", + "reference": "I assume it raises COMError? If so perhaps best to just catch that specifically, so as to not hide other more critical errors." + }, + { + "prediction": "I think this should be `minify`", + "reference": "Since minify can generate errors, it should at least go after the errors middleware. And you definitely don't want to be minifying after the gzip writer has closed." + }, + { + "prediction": "Why is this needed?", + "reference": "nit: we could remove the `config` field as it is a duplicate of the `provider.config` field." + }, + { + "prediction": "I think this should be `forseti-server-allow-grpc-internal` instead of `forseti-server-allow-grpc-internal`", + "reference": "Nit: from the Internet." + }, + { + "prediction": "I think this should be `go-ethereum/iotex-address/address`", + "reference": "this is internal package, move to bottom and run 'make fmt'" + }, + { + "prediction": "I think this interface should be `IConnectionLifetimeNotificationFeature` instead of `IConnectionLifetimeNotificationFeature`", + "reference": "Why is this better than ApplicationStopping?" + }, + { + "prediction": "I think we should be able to change this to \"http01\" or \"dns-01\".", + "reference": "Maybe worth expanding that these 2 are supported by cert-manager but other values exist" + }, + { + "prediction": "Why not use `getHelperProperties` instead of `getPublicUrl`?", + "reference": "Why was this merged? It should have raised some questions IMO @core23 @OskarStark . It's already in 3 releases now, so we can't revert it can we? How can we fix this? Please have a look at #1065" + }, + { + "prediction": "I think this should be `if (node.jsonRpcConfiguration().getAuthenticationPublicKeyFile() != null) {`", + "reference": "What if `node.jsonRpcConfiguration().getAuthenticationPublicKeyFile()` is empty string, would that cause a problem here?" + }, + { + "prediction": "I think this should be `RenewBeforeDuration`", + "reference": "The `omitempty` struct tag does not do anything for non-pointer structs. I think we may need to consider making both of these fields pointers, so that they are excluded from output when not set, and also to make it easier to compare to the zero value. That said, I'm happy to merge this now and open an issue to verify the behaviour is as we want ahead of cutting v0.6.0." + }, + { + "prediction": "Why is this change needed?", + "reference": "I think this is should absolutely be `==`, as the interface cannot control the implementation of equals (and it's part of the contract of the enclosing function). Can we add this interface to the exceptions of the rule?" + }, + { + "prediction": "Why is this change needed?", + "reference": "It looks like the UID is the only other thing that we use from `namespace`, so I suggest to copy that out and lose `namespace`, so we don't have to worry about setting it to nil." + }, + { + "prediction": "I think this should be `aws/codebuild/amazonlinux2-x86_64-standard:3.0`", + "reference": "Can we define this constant in the`deploy` pkg instead? this would allow us to keep it private" + }, + { + "prediction": "I think this should be `mydir/toto` instead of `mydir/toto`", + "reference": "I don't like this fixture name, should be a noun like `initialized_linter` ? But it's outside of the scope of this MR." + }, + { + "prediction": "I think this should be `final JsonPrinter jsonPrinter = new JsonPrinter(settingsService);` and `final JsonPrinter jsonPrinter = new JsonPrinter(settingsService);`", + "reference": "Could we keep this as a static reference (JsonPrinter.jsonAsDatasetDto(releasedVersion); and perhaps change the constructor line to just be a static set method and use that here instead? (I suspect it was the warning that 'static methods should be accessed in a static manner' from my IDE that caused me to make this change in the first place...) (I can make a PR to your branch if you want.)" + }, + { + "prediction": "I don't think we need to change this to `Keys#COMMAND`.", + "reference": "Keys.COMMAND seems to be an alias to Keys.META. That isn't mentioned?" + }, + { + "prediction": "I think this should be `syncBlockCacheFractionSetter`", + "reference": "This should go in `ConfigLocal` (and then re-generate the mocks)." + }, + { + "prediction": "Why is this change needed?", + "reference": "Nitty but entry.get for the same thing" + }, + { + "prediction": "I think this should be `if len(os.Args) > 1 && os.Args[1] == \"init\"`", + "reference": "Might not hurt to mention the function never returns (since this all ends in `execve`) so `main` never actually runs." + }, + { + "prediction": "I think this should be `_logger.LogWarning(\"Unable to determine ECONNRESET value on this platform.\");` or `_logger.LogWarning(\"Unable to determine ECONNRESET value on this platform.\");`", + "reference": "nit: add new line after this block" + }, + { + "prediction": "I think this should be `3.25rem` instead of `3.25rem`", + "reference": "I believe there is some javascript that also uses this 60px number for calculations. I think I'd rather keep the number in px instead of rem to make that correspondence easier to see. If 3.25rem != 60px, can you also change the other place where `60` is used to in the JS?" + }, + { + "prediction": "I don't think we need to import `retry` here, but I think it would be better to use `retryable_exceptions` instead of `retryable_exceptions`.", + "reference": "retrying is an installed 3rd party library just like jinja and sendgrid; perhaps try grouping all of them together?" + }, + { + "prediction": "I think this is a good idea, but I think it would be better to use `List` instead of `List` instead of `List`", + "reference": "you could always use List.listIterator with previous() and hasPrevious() to traverse all kinds of j.u.List backwards. No need for special cases for ArrayList and Vector." + }, + { + "prediction": "I think we should use `Snackbar.make(getWindow().getDecorView().getRootView(), \"Out of Memory. steps = \" + bitmapsForUndo.size(),Snackbar.LENGTH_LONG).show();` instead of `Snackbar.make(getWindow().getDecorView().getRootView(), \"Out of Memory. steps = \" + bitmapsForUndo.size(),Snackbar.LENGTH_LONG).show();`", + "reference": "remove the bitmap of index 1 from the list not the 0th one. because when we keep on undoing, it would be better if we end up with the original image rather than some randomly edited image. I am not sure whether only just removing bitmap from the list would clear memory. I think you should call bitmap.recycle before removing that bitmap from the list." + }, + { + "prediction": "I don't think we need to change the copyright.", + "reference": "this is a existing file so let's keep 2019" + }, + { + "prediction": "I think this should be `Integer.MAX_VALUE` instead of `Integer.MAX_VALUE`.", + "reference": "can you change this instead to just `type.toString()` and then you wouldn't have to expose the getBitMask in the enum. (Alternatively you could have used `type.hashCode()` but that doesn't feel as nice)" + }, + { + "prediction": "Why is this change needed?", + "reference": "AsReadOnly() would be better here" + }, + { + "prediction": "`newModifications` and `oldModifications` are indices in the collection before the change happened, while `insertions` and `deletions` are indices in the collection before the change happened, while `insertions` and `deletions` are indices in the collection before the change happened, while `insertions` and `deletions` are indices in the collection before the change happened, while `insertions` and `deletions` are indices in the collection before the change happened, while `insertions` and `deletions` are indices in the collection before the change happened, while `insertions` and `deletions` are indices in the collection before the change happened, while `insertions` and `deletions` are indices in the collection before the change happened, while `insertions` and `deletions` are indices in the collection before the change happened, while `insertions` and `deletions` are indices in the collection before the change happened, while `insertions` and `deletions` are indices in the collection before the change happened`.", + "reference": "I suggest that we use `query_based_sync` instead of `partial_sync`." + }, + { + "prediction": "I think this should be `SignedURLsFor PUT created with this package are not fully portable; they will not work unless the \"x-ms-blob-type\" header is set to \"BlockBlob\".", + "reference": "How does the user use this? By converting the type using `As` function and add the header? Maybe add an example on how." + }, + { + "prediction": "I think it would be better to add a `@Nullable` transformer to the constructor.", + "reference": "I'm trying to understand the effects of this change. Is setting this to something other than the old default (that is, `initCodeTransformer = new InitCodeTransformer()`) generally necessary, or are we doing this only to support Python?" + }, + { + "prediction": "Is there a reason we don't need this?", + "reference": "\"Constructor\" isn't a standard term in Go or this project, although we use it informally amongst ourselves. And I think it will confuse people coming from languages like Java. So can we leave this as it was?" + }, + { + "prediction": "Why is this change needed?", + "reference": "Why do we have to change the test dir?" + }, + { + "prediction": "I think this should be `return !el.querySelector('summary').length > 0;`", + "reference": "This should test the flattened tree instead. details > summary works across shadow tree boundaries." + }, + { + "prediction": "I think this should be `MvxAndroidLog.GetLogFor(\"MvxAndroid\")`.", + "reference": "Not sure I am a big fan of these duplicated Log classes." + }, + { + "prediction": "I think this should be `CleanUpError` or `PresentedError`.", + "reference": "It's long-winded, but the convention is to give constants a common prefix which, see `reasonDomainVerified` ." + }, + { + "prediction": "I think this should be `20.0` instead of `20.0`.", + "reference": "Using lanes later down, this threshold could be reduced for similar effects. Otherwise we look a bit to far." + }, + { + "prediction": "(style) line over 80 characters", + "reference": "Let's get more verbose about names. struct `wq_conda_environment`: if it can really only be used for conda. struct `wq_software_environment`: if it has potential use outside of conda." + }, + { + "prediction": "Why is this set to `false`?", + "reference": "Should we set this back to `false` inside each `t.Run`? so that we can have more than one testcase that can have paginated responses" + }, + { + "prediction": "I think this should be `if (deleteManifests == null) {`", + "reference": "What about using `dataManifests == null || deleteManifests == null`?" + }, + { + "prediction": "I think this should be `new GlobalHitsThresholdChecker(TOTAL_HITS_THRESHOLD);`", + "reference": "The `HitsThresholdChecker` should be created once and shared within the collectors ? We also don't need to use the `GlobalHitsThresholdChecker` if the executor is null or if there is a single slice." + }, + { + "prediction": "I think this should be `cache` instead of `sync`", + "reference": "move this to below `antrea.io` import section" + }, + { + "prediction": "This extension method should only be used on instances that were created on instances that were created on instances that were created on instances that were created on instances that were created on instances that were created on instances that were created on instances that were created on instances that were created on instances that were created on /> instances that were created on /> instances that were created on /> instances that were created on /> instances that were created on /> instances that were created on /> instances that were created on /> instances that were created on GetTarget() == this`", + "reference": "Don't need this-> here." + }, + { + "prediction": "I don't think we need to import `_metadata` here.", + "reference": "I'm a little concerned about relying on a private module, as they could change the implementation at some point, I'd like to have some test to validate this is working as intended." + }, + { + "prediction": "I think this should be `isinstance(value, dict)` instead of `isinstance(value, dict)`", + "reference": "There might other values that we don't support here (eg. `[]`). So it might be safer to check for the supported types instead (string or number)." + }, + { + "prediction": "I think this should be `if (funcExpr->name() == \"near\") {`", + "reference": "FYI, It won't have any benefit to move from trivial types." + }, + { + "prediction": "I think this should be `secrets-ssm-environment-variables`", + "reference": "i missed these discussions- but ` \"secrets-ssm-environment-variables\"` is what was agreed upon with cp?" + }, + { + "prediction": "I think this should be `google.protobuf.Jsonpb`", + "reference": "whats the difference between this package and `github.com/golang/protobuf` ? or did vscode just decided this was the package it wanted to used?" + }, + { + "prediction": "I think this should be `dialog.initOwner(this.getParent().getWindow());`", + "reference": "Just asking: What does this line do? Does it add the stylesheet from the parent to the dialog?" + }, + { + "prediction": "I think this should be `scikit-learn<1.0.0` instead of `scikit-learn<1.0.0`", + "reference": "Including the scikit-learn dependency here would pull in scikit-learn for everyone who depends on Dagster. If you put it in the setup.py under docs_snippets, we'd avoid that problem (although I think it's already there)." + }, + { + "prediction": "Why is this removed?", + "reference": "Why remove this?" + }, + { + "prediction": "Why did you remove this?", + "reference": "Why remove this? It seems like we should keep this around as a regression test, unless we can guarantee this will never be called without a model set (does your new code guarantee that?)" + }, + { + "prediction": "I think this should be `global._googlesitekitUserData?.permissions || {},`", + "reference": "Because this defaults to `{}` if `global._googlesitekitUserData?.permissions` is `false`-y, the checks below around `state.capabilities` always result in the `!! capabilities === true` path. This shouldn't have a default value of `{}` if there's the possibility that `global._googlesitekitUserData?.permissions` can be `undefined`/`false`/`null` legitimately." + }, + { + "prediction": "I think this should be `log.ram_handler.change_log_capacity(capacity)`", + "reference": "Please add a space after the comma here (generally, with arguments there's always a space after commas)." + }, + { + "prediction": "Why is this change needed?", + "reference": "From the context, should it say \"Flags defined in this class must be used with caution...\" ?" + }, + { + "prediction": "I think this should be `.+\\\\.(svg|png|jpg|css)`", + "reference": "We don't need this file, we can use the one that is in the grid-ui directory" + }, + { + "prediction": "I think this should be \"Imported key for account %s\" or \"Imported key for account %s\"", + "reference": "\"Exported key for account\"?" + }, + { + "prediction": "I think this should be `\\r\\n` instead of `\\r\\n`", + "reference": "Normally we use Environment.NewLine unless you really want it to always be \\r\\n" + }, + { + "prediction": "Why is this removed?", + "reference": "why did you remove `verifyHeaders`?" + }, + { + "prediction": "I think this should be `params[:user][:org_id] = other_org.id` instead of `params[:user][:org_id] = other_org.id`", + "reference": "Thanks for cleaning up these deprecated calls" + }, + { + "prediction": "Why is this change needed?", + "reference": "@akarve this breaks error catching logic on the front end, I'll fix this. That's why I prefer to use some machine-friendly error codes that won't change frequently." + }, + { + "prediction": "Why is this change needed?", + "reference": "We support process remoteQuery for Service. Why are we removing it ?" + }, + { + "prediction": "I think this should be `set :show_exceptions, false` instead of `set :show_exceptions`", + "reference": "This is specifically for testing?" + }, + { + "prediction": "Why did you remove this?", + "reference": "I think this is related to the social stats and probably does not need to be removed." + }, + { + "prediction": "I think this should be `/* eslint-enable jsdoc/require-description-complete-sentence */`", + "reference": "Yep, jsdoc again .. It seems that when the plugin description is wrapped within `eslint-disable/enable` expression it's not generated at all. After adding the `@class AutoColumnSize` tag right after the `@plugin` tag the plugin appears in the docs. Please review the other plugins." + }, + { + "prediction": "I think this should be `errs.New(\"principal %q not found\", principalID)`", + "reference": "This usage of the result doesn't look quite right. I would not expect the first page of values to be empty if there were multiple pages of results. This also obscures the error case when no values are returned (handled in the next `if` block) by returning a more generic error from the Azure SDK from `result.NextWithContext()`." + }, + { + "prediction": "I think this should be `explorer.GetBlockOrActionByHash(hashStr)` instead of `explorer.GetAddressDetails(hashStr)`", + "reference": "unknown field AddressDetails in struct literal (from `typecheck`)" + }, + { + "prediction": "I think we should use `aws.Config` here.", + "reference": "Just noticed, are we specifically missing the addition of `SharedConfigState: session.SharedConfigEnable` ?" + }, + { + "prediction": "I think this should be `if (oldTimeIntensities != null && oldTimeIntensities.NumPoints > 0) { ScanIndex = Math.Min(ScanIndex, oldTimeIntensities.NumPoints - 1); }`", + "reference": "Not sure what this is. Bad merge?" + }, + { + "prediction": "I don't think we need to lock here. I think we should check if `acc.claimJWT != \"\" && acc.claimJWT == claimJWT && !acc.incomplete`", + "reference": "I think this may be a RW lock." + }, + { + "prediction": "I don't think this is needed anymore.", + "reference": "Perhaps we should tuck this away into a dedicated subdir and name it `config` or something similar? Or maybe it would be happy living in `common`?" + }, + { + "prediction": "I think we should use `spec.must_learn & 0xf` instead of `spec.has_learnt`", + "reference": "Doing a select query inside of a loop like this is not ideal. We should fetch recipes once and then loop through it in memory to perform this check" + }, + { + "prediction": "`copy=True` should be `True` instead of `copy=True`", + "reference": "too long here. (104 > 100)" + }, + { + "prediction": "Shouldn't this be `Logger.Error(\"$There is no handler registered for this message\");`?", + "reference": "Use TryGetValue instead of catching exception" + }, + { + "prediction": "Layout/MultilineMethodCallBraceLayout: Indent the method call brace if they span more than one line.
    Layout/MultilineMethodCallBraceLayout: Closing method call brace must be on the same line as the first argument.
    Layout/MultilineMethodCallBraceLayout: Closing method call brace must span more than one line.
    Layout/MultilineMethodCallBraceLayout: Closing method call brace must span more than one line.", + "reference": "Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping." + }, + { + "prediction": "I think this should be `ifdef FASTDDS_STATISTICS`", + "reference": "I think this method should be either: - a static method of `RTPSWriter` to avoid a StatelessWriter redefinition of the function. - a setter in the `CacheChange_t` struct." + }, + { + "prediction": "I think this should be `Http2ErrorCode.INTERNAL_ERROR` instead of `Http2ErrorCode.INTERNAL_ERROR`.", + "reference": "You add a stream back reference for trailers, and all of the sudden we have tight coupling! " + }, + { + "prediction": "I think we should remove the `using System.Linq;` from this file.", + "reference": "I don't think we use `AspNetAmbientContext` anymore since . We can probably delete this file." + }, + { + "prediction": "I think this should be `module.exports = __webpack_require__(1);` instead of `module.exports = __webpack_require__(1);`", + "reference": "Please avoid committing build artifacts, as they produce unnecessary conflicts and noise." + }, + { + "prediction": "Why is this change needed?", + "reference": "this is vendored code so i would hesitate to make random changes to it" + }, + { + "prediction": "I think this should be `ReferralInfoDTO`", + "reference": "We are using a different style for JSON tags. `ethAddress` - camalCase `referral_code` - snake_case" + }, + { + "prediction": "I think this should be `IntegrationName` instead of `DefaultHttpContextTypeName`.", + "reference": "Should this be `\"Microsoft.AspNetCore.Http.DefaultHttpContext\"`?" + }, + { + "prediction": "Why is this assert removed?", + "reference": "removed asserts from `Vector` as it's stable enough and it may hinder inlining, even if turned off :/" + }, + { + "prediction": "I don't think we need to disable the message here.", + "reference": "Do we want to raise on the function or on the decorator?" + }, + { + "prediction": "I don't think we need to change this to `album_msid` and `release_msid`?", + "reference": "How complex is to to replace `album_*` with `release_*` everywhere in the `Listen` class and places that use it?" + }, + { + "prediction": "Why is this change needed?", + "reference": "You haven't changed any of the callers of `.Add` to check the return value, so we're now ignoring duplicates. Please fix that." + }, + { + "prediction": "I think this should be `const vNode = axe.utils.getNodeFromTree(el);` and not `const vNode = axe.utils.getNodeFromTree(el);`", + "reference": "@straker should this not push to `vnode._cache.isHiddenWithCSS`?" + }, + { + "prediction": "I think this should be `runtimevar.Provider` instead of `runtimevar.Provider`", + "reference": "\"an interface\" in conceptual sense vs \"interfaces\" or \"set of interfaces\", referring to the Go interfaces - database/sql uses the latter, should we?" + }, + { + "prediction": "I don't think we need the `httpBadReq` and `httpBadReq` here.", + "reference": "This now checks nearly all errors that can occur. How about explicitly listing cases where we want it to retry? I think there are not many cases where we want that, as the many added conditions in the last years show :)" + }, + { + "prediction": "Why do we need to do sync here?", + "reference": "Can you make this accept an action instead?" + }, + { + "prediction": "I think this should be `download` instead of `video`", + "reference": "Tab inconsistency here (3 spaces instead of 2 spaces)" + }, + { + "prediction": "I think this should be `AleutianEpochRewardStr`", + "reference": "these change means we are changing epoch to 1 hour?" + }, + { + "prediction": "I think this should be `544`.", + "reference": "Why this is defined in the middle of imports?" + }, + { + "prediction": "I don't think we need to import `__all__` here, but I think it would be better to use `__all__` instead of `__all__`", + "reference": "Could you move this to the original position?" + }, + { + "prediction": "I think this should be `oAndR.owner`", + "reference": "Is there a test that'd have caught this?" + }, + { + "prediction": "Why is this change needed?", + "reference": "ListWorkflowExecutionsRequest <- this can be nil?" + }, + { + "prediction": "Layout/SpaceInsideHashLiteralBraces: Space inside { missing.
    Layout/SpaceInsideHashLiteralBraces: Space inside } missing.
    Layout/SpaceInsideHashLiteralBraces: Space inside } missing.
    Layout/SpaceInsideHashLiteralBraces: Space inside } missing.
    Layout/SpaceInsideHashLiteralBraces: Space inside } missing.
    Layout/SpaceInsideHashLiteralBraces: Space inside } missing.
    Layout/SpaceInsideHashLiteralBraces: Space missing inside } missing.
    Layout/SpaceInsideHashLiteralBraces: Space inside } missing.
    Layout/SpaceInsideHashLiteralBraces: Space inside } missing.
    Layout/SpaceInsideHashLiteralBraces: Space inside } missing.
    Layout/SpaceInsideHashLiteralBraces: Space inside } missing.
    Layout/SpaceInsideHashLiteralBraces: Space inside } missing.", + "reference": "Do we need to continue to support the old link, or is it dead dead dead?" + }, + { + "prediction": "I think this should be `HeaderTags.Where(kvp => !string.IsNullOrEmpty(kvp.Key) && !string.IsNullOrEmpty(kvp.Value))`", + "reference": "Do we need `ConcurrentDictionary`? `Dictionary` can be safely read from multiple threads. See `GlobalTags`." + }, + { + "prediction": "I think this should be `seelog.Infof(\"Server OSFamily string: %s\", config.GetOSFamilyType())`", + "reference": "this seems like more of a Debugf statement" + }, + { + "prediction": "Is there a reason for this change? I don't think it's a good idea to move this function to the `ValidateConcurrentBarrierAtSubmit` function, but I think it would be better to move it to the `ValidateConcurrentBarrierAtSubmit` function.", + "reference": "We're capturing cb_state non-const, but the function is const so, safe enough, but after going to reader/writer locks we're all going to have to key a careful eye on anything in this pattern." + }, + { + "prediction": "I think this should be `if req.Config.Endpoint != nil`", + "reference": "Probably want to wrap the endpoint discovery work that follows in this `if` statement instead of returning early. This will make it easier to add additional request code generation logic in the future. e.g. if we add any code generation after the endpoint discovery block this check will cause it to be skipped." + }, + { + "prediction": "Why is this change needed?", + "reference": "This test was giving a false positive because my change caused it to throw a different error that contained `createElement` when it should've been throwing this error. Caught this by looking at the code coverage and noticing that the line under the condition I changed was no longer covered lol." + }, + { + "prediction": "I think this should be `return nil` instead of `return nil`.", + "reference": "I think this is added to wrong file. You wanted to add to cmd/agent/, right?" + }, + { + "prediction": "I think this should be `elementText = element.getText();` instead of `elementText = element.getText();`", + "reference": "Each `ExpectedCondition` implements `java.util.Function` These are expected to be stateless. This condition will leak previous `elementText` on the second usage, which doesn't seem ideal." + }, + { + "prediction": "I think this should be `DeviceID` instead of `DeviceID`", + "reference": "Could we consider a more explicit name, like `devicePciAddress`?" + }, + { + "prediction": "I think this should be `if (!execName.endsWith(\".exe\") && !execName.endsWith(\".exe\")) {`", + "reference": "Why change this from a foreach? I can't see it gaining anything here and code styles shouldn't change just for the sake of it." + }, + { + "prediction": "I think we should use `getRawResponse()` instead of `getRawResponse()`", + "reference": "Is this supposed to be part of this PR?" + }, + { + "prediction": "I think we should use `getComputedStyle(actualNode, null).getPropertyValue('display') === 'none'` instead of `getComputedStyle(actualNode, null).getPropertyValue('display') === 'none'`", + "reference": "DRY, worth extracting this method to axe.utils" + }, + { + "prediction": "I think this should be `APPLICATION_NAME_PREFIX` instead of `APPLICATION_NAME_SUFFIX`.", + "reference": "I think there's another spot for this in DefaultCapabilityMatcher" + }, + { + "prediction": "I think we should use `os.error` instead of `message.error`.", + "reference": "`QtOSError` inherits `OSError`, so I don't think it's needed to list them both here." + }, + { + "prediction": "Why is this removed?", + "reference": "Instead of patching vendor, let's update the version of sdk-go to a more recent one that doesn't have this line." + }, + { + "prediction": "I think this should be `[string{\"BUILD\"}]` instead of `[]string{\"BUILD\"}`", + "reference": "Don't think this should be here. The default is set somewhere else." + }, + { + "prediction": "Shouldn't this be `self._last_status[\"progress\"] >= 100`?", + "reference": "Not really important in this PR, but does BlazeMeter describe \"progress\" values anywhere? It might be nice to have a set of constants like `PROGRESS_DOWNLOADING_IMAGE`, `PROGRESS_BOOTING`, `PROGRESS_RUNNING_TEST`, etc in our BZA client." + }, + { + "prediction": "I think this should be a `List` instead of a `List`", + "reference": "nit: `

    ` after the line" + }, + { + "prediction": "I think this should be `glob(\"fonts/*.ttf\")` instead of `glob(\"fonts/*.ttf\")`", + "reference": "Should we include the files with otf extension here, too? If not, I wonder why we do allow them in the source but we don't include them as per the setup" + }, + { + "prediction": "Why is this removed?", + "reference": "i think it's OK to leave this?" + }, + { + "prediction": "Why is this change needed?", + "reference": "Does this need to be public? The only reference to `FlinkTypeVisitor` that I see in this PR is here, so I'm not sure why this is needed." + }, + { + "prediction": "I think this should be `\\n` instead of `\\n`", + "reference": "No line at end of file warning" + }, + { + "prediction": "Why is this needed?", + "reference": "This looks unused, shouldn't it point to inner processor in any way?" + }, + { + "prediction": "Why is this removed?", + "reference": "There may be a few isolated cases where the FirstN node is added during preCodeGen. Please see GenPreCode.cpp RelRoot::preCodeGen(). The example given there about Order by where sort is added in optimizer, or a FirstN where the N value is to be specified with a param seem to be cases where we would add the FirstN later. Will current change cause such views to marked as updateable? This is minor and could be resolved later, if any change is necessary." + }, + { + "prediction": "I think this should be `String.format(\"LibraryService_StreamShelvesClient_%sClient\", method.getNickname());`", + "reference": "I think you should compose the %sClient part using the Name class, and then do the remaining composition with plain concatenation. Side question: why does the return type name look like it is a client type name?" + }, + { + "prediction": "I think this should be `padding: 0` instead of `padding: 0`", + "reference": "All stories in this file also need the default padding." + }, + { + "prediction": "I think this should be `private static readonly string MeterName = \"PrometheusExporterMiddlewareTests.Meter\";`", + "reference": "Curious - what would be the actual value? " + }, + { + "prediction": "I think this should be `PALETTE=datasets[0].PALETTE` instead of `PALETTE`", + "reference": "Is it necessary to record the palette in the checkpoint? Any reason?" + }, + { + "prediction": "I think we should use `LISTEN_TYPE_PLAYING_NOW` instead of `LISTEN_TYPE_IMPORT`.", + "reference": "Not sure how to best do this without creating a new connection to the server everytime. Do this in another thread?" + }, + { + "prediction": "Line is too long. [92/80]", + "reference": "should we have a similar test for gsa18f procurements?" + }, + { + "prediction": "Why is this change needed?", + "reference": "change `v.recipient` to address.Address, so can use `AccountState(v,recipient)`" + }, + { + "prediction": "Layout/EmptyLinesAroundClassBody: Extra empty line detected at class body end.", + "reference": "Open to doing away with this altogether and maybe injecting this logic somehow into `requires_approval_notice?` in LinearDispatcher." + }, + { + "prediction": "I think this should be `int TracerTimeout = 5;` and not `int TracerTimeoutEnabled = 5;`", + "reference": "remove this and always enable tracer, just set the default timeout to something higher (20 seconds)" + }, + { + "prediction": "I think this should be `final URI icon;`", + "reference": "Can we give this field a more descriptive name? When I use a variable named `icon` I normally expect an `Image` object." + }, + { + "prediction": "I think this should be `long:in` or `long:ex`", + "reference": "can't these just use the global `include` and `exclude` flags?" + }, + { + "prediction": "I think this should be `deltas.cuda()` instead of `deltas.cuda()`", + "reference": "Is this still necessary?" + }, + { + "prediction": "I think this should be `http://localhost:{port}/` instead of `*`.", + "reference": "Interesting! Happen to catch an exception message or anything I can look into?" + }, + { + "prediction": "Why is this removed?", + "reference": "did this get moved to mpromise? I don't recall if it's in that lib or not." + }, + { + "prediction": "I think this should be `ports []int` instead of `[]int`", + "reference": "json objects should be `camelCase`" + }, + { + "prediction": "I don't think this is needed.", + "reference": "QuarterGiBSectorSize? SectorSize265MiB? Spelling out 256 seems overly verbose." + }, + { + "prediction": "I think this should be `using OpenTelemetry.Tests;` instead of `using OpenTelemetry.Tests;`", + "reference": "Maybe with this change we can remove `using OpenTelemetry.Logs`." + }, + { + "prediction": "Why is this change needed?", + "reference": "Fix this name too." + }, + { + "prediction": "Why is this change needed?", + "reference": "why this is an issue?" + }, + { + "prediction": "This should be `is_static`", + "reference": "The condition should be inverse?" + }, + { + "prediction": "I think this should be `Azkaban-Flow-Version` instead of `Azkaban-Flow-Version`.", + "reference": "this seems to be a property key name, so should it be a inside configurationkey.java?" + }, + { + "prediction": "I think we should use `zfs` instead of `zfs`", + "reference": "G204: Subprocess launching should be audited (from `gosec`)" + }, + { + "prediction": "I think this should be `run_on_main_process` instead of `run_on_main_process`.", + "reference": "Please add docs here. And also warn users that this mode should be avoided whenever possible, because any blocking IO will make the keep-alive-thread not run." + }, + { + "prediction": "I think we should use `Object.keys` instead of `Object.keys`", + "reference": "We shouldn't require dimension values to be a string. They just need to be scalar values (probably we could check whether it's either a string or a number). Something more important to cover in the validation here though is to ensure that a map of `dimensionName => dimensionValue` is passed. The keys here actually need to be strings. For example someone shouldn't be able to pass an array of values." + }, + { + "prediction": "I think this should be `unaryTransportHandler` instead of `unaryTransportHandler`", + "reference": "let's do a pointer cast of nil, similar to the `MapRouter` above" + }, + { + "prediction": "Shouldn't this be `do_action( 'neve_add_settings_to_hfg_rows', SettingsManager::get_instance(), $row_setting_id, $row_id );`?", + "reference": "action should use a prefix of `hfg` rather than `neve` as we plan to bootstrap this as a standalone library. Moreover, previously filter/actions used in this library was using the same pattern." + }, + { + "prediction": "I think this should be `sslOptions.AllowRenegotiation = true;` instead of `sslOptions.AllowRenegotiation = false;`", + "reference": "I'm halfway tempted to disable this for all https connections. Do you know of any clients that actually renegotiate for any reason?" + }, + { + "prediction": "Why is this change needed?", + "reference": "shouldn't **call** return a boolean?" + }, + { + "prediction": "This example is used in `gocloud.dev/howto/docstore#dynamodb-ctor`", + "reference": "I don't think you need the blank import here. This one uses awsdynamodb directly." + }, + { + "prediction": "I think this should be `Predicate isDeleted = t -> true;`", + "reference": "I think this should be initialized to `null` instead of a predicate. There is no need to run an extra predicate (with an extra method dispatch for each row in a data file. That's a tight loop so we should do more work here to avoid it. Instead of using `isDeleted.or`, this should test whether `isDeleted` is `null` and either initialize `isDeleted` or call `isDeleted.or`." + }, + { + "prediction": "I think this should be `if args.ctu_phases in args: config_handler.ctu_phases = args.ctu_phases if args.ctu_phases in args: config_handler.ctu_phases in args: config_handler.ctu_phases = args.ctu_phases if args.ctu_phases in args: config_handler.ctu_phases in args: config_handler.ctu_phases else config_handler.ctu_dir", + "reference": "What is this and the next entry in config_handler used for?" + }, + { + "prediction": "I think this should be `nil` instead of `nil`", + "reference": "will your editor integrate `gofmt`, `goimports`, etc...?" + }, + { + "prediction": "I think this should be `if (intent != null && intent.getExtras().getSerializable(\"state\") != null)`", + "reference": "looks like the code is not properly formatted. for example here are some missing spaces in **if** command. please take care and reformat the code using default android formatting." + }, + { + "prediction": "I think we should add a `--bug-path-length` option to the `--bug-path-length` argument to the `--bug-path-length` argument.", + "reference": "Please add some valid examples to help message like `\"4:10\"`, `\"4:\"`, `\":10\"`" + }, + { + "prediction": "I don't think we need to use `Symbol.to_s` here, but I think it would be better to use `Symbol.to_s` instead of `Symbol.to_s`", + "reference": "Is it only Symbols we're worried about converting? Is it not safe to just call `to_s` anyway?" + }, + { + "prediction": "Why remove this?", + "reference": "Note for those who come across this later: It was moved to `testhelpers.mining.go` so that `testhelpers.NewDaemon` and the `mining/worker_test.go` can share it." + }, + { + "prediction": "I think this should be `trails.select(&:incomplete?).partition(&:in_progress?).flatten`", + "reference": "What about `sort_by(&:in_progress?)`? Maybe with a `.reverse` thrown in?" + }, + { + "prediction": "Why is this removed?", + "reference": "Flag is removed because it is only gRPC now." + }, + { + "prediction": "I think we should add a `--template` argument to the `role` class.", + "reference": "Might be better to rephrase to: Please refer to the ``init scenario`` command in order to generate a custom ``molecule`` scenario. Since you aren't customizing the default scenario since it already exists, right?" + }, + { + "prediction": "I think this should be `if open_module == \"pathlib\" and node.func.attrname == \"write_text\":`", + "reference": "Shall we merge these `if` for `path lib` and then do the `attrname` one. I'm trying to count `if`-calls and its getting late but I think we can reduce the number checks needed to get into L648 from 3 to 2 if you understand what I mean " + }, + { + "prediction": "I think we should move this import to the end of the file.", + "reference": "why depend on recovery???" + }, + { + "prediction": "I think this should be `doneChan <- struct{}{}`", + "reference": "the done channel only aims to be closed, so `chan struct{}` is better then `chan interface{}`" + }, + { + "prediction": "Why is this error being wrapped?", + "reference": "Do you mean to have gas_oracle changes in this PR?" + }, + { + "prediction": "I think this should be `action=\"append\" target=\"main-flashes\">` instead of `action=\"append\" target=\"main-flashes\">`", + "reference": "Is this effectively requiring browsers support javascript?" + }, + { + "prediction": "I think this should be `isDarkTheme = SalesforceSDKManager.getInstance().isDarkTheme(getActivity());`", + "reference": "Lowercase `boolean` - use the primitive type." + }, + { + "prediction": "I think we should use `await feed.CheckIfBlobExists(relativeBlobPath);` instead of `await feed.CheckIfBlobExists(relativeBlobPath);`", + "reference": "This isn't the correct logic. if allowOverride == true and !blobExists then upload. Just don't do the exist check if allowOverride is set to true." + }, + { + "prediction": "I think this should be `if (atom[i] == xwm->atoms[_NET_WM_STATE_MAXIMIZED_HORZ]) {`", + "reference": "Can you replace these by `else if` please?" + }, + { + "prediction": "I think this should be `expect(page).toClick( '.mdc-select__selected-text', {text: new RegExp( fromRange, 'i') } );`", + "reference": "Would be nice if the field had a unique class name that could be used to target it, instead of `fromRange` But doesn't seem to be a common thing in the code base." + }, + { + "prediction": "I think it would be better to use `header.getAttribute('id')` instead of `header.getAttribute('id')`", + "reference": "Does this code fit on one line under 80 characters? It would be more consistent with our existing style." + }, + { + "prediction": "I think this should be `//0.7.0 CAST` instead of `//0.7.0 CAST`.", + "reference": "Not a requirement here. But i see a change in naming convention. We can rename the function to `CstorSparsePoolArtifactsFor070`." + }, + { + "prediction": "I think we need to import `machine.GP10` here.", + "reference": "Why do you configure the UART like this? It's already configured by default." + }, + { + "prediction": "I think this should be `opae/enum.h` and `opae/properties.h`", + "reference": "Wow. Good catch. \"This `#include` was brought to you by the department of redundancy department.\" ;)" + }, + { + "prediction": "I think this should be `logf` instead of `logf`", + "reference": "Well it's actually calling `AuthorizeOrder` and this seems like a DebugLevel message to me, maybe it should be dropped entirely." + }, + { + "prediction": "I think this should be `if (ptr == NULLptr || (bytes == 0)) return;`", + "reference": "Should this be using the `CUDA_SAFE_CALL` macro here?" + }, + { + "prediction": "I think we should use `ConsoleColor.Green` instead of `ConsoleColor.Yellow`", + "reference": "What cases do you see as being valid for not having any tests to run? If a test project doesn't have any tests to run we should avoid running it at the project level." + }, + { + "prediction": "I think this should be `if mset.mirror == nil {`", + "reference": "and is it possible that mset.mirror.msgs be nil? because if so, then you would get a panic also because of that." + }, + { + "prediction": "I think this should be `if (next->invalid & WLR_SURFACE_INVALID_OPAQUE_REGION) {`", + "reference": "`next->opaque` should not be cleared." + }, + { + "prediction": "I don't think we need to check if the issuer account is known.", + "reference": "already what? I know what, but seems like smth. is missing in this sentence" + }, + { + "prediction": "Why is this change needed?", + "reference": "Can you put spaces after the `{`and before the `}`" + }, + { + "prediction": "I think we should use `__version__` instead of `__version__`", + "reference": "We said we would put `[ ]` around the version. `[forseti-security] [v2.3.0]`" + }, + { + "prediction": "I think this should be `n >= int64(len(cnb[0]))`", + "reference": "Seems len(cnb[0]) will be the length after the write since of the *v thing we saw no?" + }, + { + "prediction": "I think this should be `QueueLoadObject`", + "reference": "can we make use of storagepoolclaim type rather than the generic interface{} type?" + }, + { + "prediction": "I think this should be `k.AddPeers(k.previouslyConnected()...)`.", + "reference": "this should happen before the `go k.manage()`, otherwise the node will always try the bootnodes first" + }, + { + "prediction": "I think this should be `procComponents = this.procCode_.split(/(?=[^\\\\]%[nbs])/);` and `procComponents = procComponents.map(function(c) { return c.trim(); });`", + "reference": "Is this actually a lint related change?" + }, + { + "prediction": "I don't think we need to do this, but I think it's a good idea to keep it in a separate PR.", + "reference": "Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping." + }, + { + "prediction": "I think this should be `opt_nonempty_string_param`", + "reference": "what does this do that str_param does not?" + }, + { + "prediction": "I think we should use `fmt.Sprintf(\"%s/%s/%s\", prefix, api, version)` instead of `fmt.Sprintf(\"%s/%s/%s\", prefix, api, version)`", + "reference": "For GCP we included the API name (see below) so you can distinguish between uses other than `blob` once they exist, WDYT?" + }, + { + "prediction": "I don't think we need to import `botocore` here.", + "reference": "what would you think about doing this include on-demand within S3ObjectStore methods and then failing in a loud way?" + }, + { + "prediction": "I think this should be `if (stopped) { break; }`", + "reference": "May be better make `stopped` atomic, then it can be just `for (auto i (node.store.latest_begin (transaction_a, next_frontier_account)), n (node.store.latest_end ()); i != n && && !stopped && elections_count < max_elections; ++i)`" + }, + { + "prediction": "I think this should be `client->future_chainAddEdges(r)` instead of `client->future_chainAddEdges(r)`", + "reference": "In `src/storage/InternalStorageServiceHandler.h ` file, the client in `client->future_chainAddEdges ` should be InterStorageServiceAsyncClient?" + }, + { + "prediction": "I think this should be `pkg/store/storepb` instead of `pkg/store/storepb`", + "reference": "`go.sum` needs to be updated for this. Please run `go mod tidy`" + }, + { + "prediction": "I think this should be `SecretBackendSSMParameterStore` and `SecretBackendSecretsManager`", + "reference": "Not sure if this was discussed previously, but is there a specific use case in mind for having this as an API field rather than a configuration option on the controller manager? Is there a specific use case in mind where one would want to choose different backends for individual Clusters/Machines vs having it a global configuration for an instance of the infrastructure provider?" + }, + { + "prediction": "I think this should be `var builder = new PeriodicExportingMetricReader(options, options.MetricExportIntervalMilliseconds);` instead of `var builder = new PeriodicExportingMetricReader(builder, options.MetricExportIntervalMilliseconds);`", + "reference": "Same thing with the OtlpExporter" + }, + { + "prediction": "I think this should be `JX_OP_CALL` instead of `JX_OP_LOOKUP`", + "reference": "Should not be removed." + }, + { + "prediction": "I think this is a good idea to remove the `EZBakeUtils` class from the `BeakerPuppet` class.", + "reference": "Not a blocker for anything, but should this be moved to beaker-pe? Is that ticketed anywhere?" + }, + { + "prediction": "I think this should be `dispatcher.beforeClickOn(element, driver);` and `dispatcher.afterClickOn(element, driver);`", + "reference": "this shouldn't be beforeClickOn, but rather beforeSubmit? and added to WebDriverEventListener. Since submit does not synthesize the 'click' events, this isn't accurate." + }, + { + "prediction": "Line is too long. [92/80]", + "reference": "this ternary operator is hiding an `if/else` within an `if/else` - any chance we could move the logic ELSEwhere? (see what I did there -- ?? :100: )" + }, + { + "prediction": "I think we should add a `@InternalApi` annotation to this class.", + "reference": "Is this really internal? Or will the API be different in PMD 7.0.0? Well, the interface doesn't offer much functionality anyway..." + }, + { + "prediction": "I think this should be `gridded` or `multi`.", + "reference": "Does it have to be arrays? Isn't it ragged 'data' (i.e multiple elements of different lengths)?" + }, + { + "prediction": "I think this should be `workflow.ForceCleanupOnError = true` instead of `ForceCleanupOnError = false`", + "reference": "Per my understanding, this flag only impacts \"NoCleanup\" disk. If so, we may name it more clear. The reason of this ask is because I plan to add some other flag to force cleanup for other non-NoCleanup disks." + }, + { + "prediction": "Why is this change needed?", + "reference": "In my changes for `RequiresDistributionAndOrdering`, this class went away and is replaced by an inner class. I think that pattern worked well. Maybe we could do that before this one to reduce the number of changes here." + }, + { + "prediction": "Why is this change needed?", + "reference": "Shouldn't this be called `hp` instead of `life`?" + }, + { + "prediction": "Why is this change needed?", + "reference": "Because the default value of allowedOrigins is * (all origins), so it isn't necessary to set again at all." + }, + { + "prediction": "Why is this removed?", + "reference": "Undo this modification" + }, + { + "prediction": "Why is this change needed?", + "reference": "Please check my thoughts here... I changed the test to not `ToString()` attribute values. This was important to test things when `net.peer.port` was both an int or a string, but I was unsure if Zipkin supported non-string attributes." + }, + { + "prediction": "I don't think we need to do this, but I think it would be better to use `returnBase64NoMetadata` instead of `returnBase64NoMetadata` if the result type is `BASE64NOMETADATA`.", + "reference": "Looks like you made changes on `CameraResultType` class, but didn't commit them. And you also have to do the changes on the types in @capacitor/core" + }, + { + "prediction": "Why is this change needed?", + "reference": "Can you explain the history of the bug a bit, and why this fixes it?" + }, + { + "prediction": "Use 2 (not 3) spaces for indentation.", + "reference": "What do you think about `mentor_mail_to` or `mentor_mail_to_link` in order to match Rails' `mail_to` method, which is what this calls? I'm not sure about this suggestion..." + }, + { + "prediction": "I think this should be `(metricPoint.Keys == null ? 0 : metricPoint.Keys.Length);`", + "reference": "Looks like this will make the check in every loop. Consider extracting the null check." + }, + { + "prediction": "I don't think we need this test anymore.", + "reference": "Maybe `it \"can safely be reset when there are not yet any shared example groups\"`? That's the edge case that wasn't working, right?" + }, + { + "prediction": "I think this should be `ssmfactory`", + "reference": "naming: please use `asmfactory`" + }, + { + "prediction": "I think this should be `if len(target.Outputs()) > 1 {`", + "reference": "FYI you could use a raw string for this which removes the need for escaping the inner quotes." + }, + { + "prediction": "I think this should be `@pytest.mark.parametrize('keystr', expected)`", + "reference": "2 blank lines here (between functions)" + }, + { + "prediction": "I think this is a bit confusing, but I think it would be better to use `PartitionSpec.fromSpec()` instead of `PartitionSpec.fromSpec()`?", + "reference": "Nit: we try to avoid whitespace changes because they can easily cause unnecessary commit conflicts." + }, + { + "prediction": "Why not use `substr($file_contents, $end_pos, 2) === '::'`?", + "reference": "As mentioned below, I'm not sure why this is only allowing refs that are tagged with `*` at the start!" + }, + { + "prediction": "I think this should be `equals(o)` instead of `equals(o)`", + "reference": "Don't forget the {} symbols, and please use EqualsBuilder and HashcodeBuilder as possible" + }, + { + "prediction": "I think this should be `ch <- string(proxyBuf[:n])`", + "reference": "Allocate buffer once outside loop." + }, + { + "prediction": "I think this test should be `TEST(network, fill_keepalive_self);`", + "reference": "It would be better to check that system.nodes[1]->network.port is somewhere in the target without specifying its exact position. But it is a very minor point and I have no string opinion on it just thought I'd mention it because our tests in general have too implementation detail." + }, + { + "prediction": "I don't think we need to check for `tabular data required` here.", + "reference": "Should this be in a bundle?" + }, + { + "prediction": "I think this should be `Debug.Assert(Activity.Current == null || Activity.Current == activity, \"There was an unexpected active Activity on the result thread.\");`", + "reference": "When Activity is lost (more precisely, ExecutionContext is lost) in the HttpModule we restore the root (HttpIn) Activity. That makes this assert invalid. I tried to fix the HttpModule so that it restores the Activity that was last running, but it is impossible to retrieve do to the way ExecutionContext works. It isn't an issue to remove the assert, but it is unnerving. Any instrumentation running in IIS reliant on Activity.Current could run into trouble." + }, + { + "prediction": "Why is this needed?", + "reference": "what was the point in moving handlers registration into a separate method?" + }, + { + "prediction": "I think this should be `RetrieveCommandCache` instead of `RetrieveCommandCache`.", + "reference": "At this point we probably want to ensure there's a store command set." + }, + { + "prediction": "I think this should be `+step.slice(0, -1) + HDPrivateKey.Hardened;`", + "reference": "This code is way too complicated for what it does. I don't want to be a PITA, but what can you consider rewriting it in a simpler way? I'm talking about the whole `_getDerivationIndexes` function" + }, + { + "prediction": "Shouldn't this be in hex?", + "reference": "Don't throw base exception, specify more precise type" + }, + { + "prediction": "I think this should be `if isinstance(inputs, torch.Tensor):`", + "reference": "Recursive -> Recursively converted -> convert" + }, + { + "prediction": "Why not use `opts.generate_object_based_api` instead of `opts.generate_object_based_api`?", + "reference": "why is this object API only? I think the reason why we didn't do this before was because this code was shared with Java which doesn't have value structs." + }, + { + "prediction": "I think this should be `if dockerVersion != \"1\" {`", + "reference": "just to confirm, so backend will deal with both old format and new format?" + }, + { + "prediction": "I think this should be `T? ParseEnum(IHeadersCollection headers, string headerName)`", + "reference": "huh, look at that, I wasn't aware you could constrain a type by Enum" + }, + { + "prediction": "I think this should be `std::string &` instead of `std::string &`", + "reference": "Even though the debug parameter is effectively ignored, should this default to `false` instead of `true`?" + }, + { + "prediction": "I think this interface should be public.", + "reference": "What is the purpose of this interface? Unlike ParamDocView, it doesn't seem to be used anywhere to enable polymorphism" + }, + { + "prediction": "I think this should be `github.com/google/uuid` and `github.com/mholt/caddy/onevent/hook`", + "reference": "We added a library to generate a UUID for the request_id directive \"github.com/nu7hatch/gouuid\" can we uses the same one for what you want rather than add another dependency? Or if the google one is better can we remove the nu7hatch library?" + }, + { + "prediction": "Why is this change needed?", + "reference": "Shouldn't this be `i * Interval`? You're multiplying nanos with a Duration, I'm not sure what's the result :)" + }, + { + "prediction": "Why is this needed?", + "reference": "I guess it's not no-access to match Windows where guard pages are readable." + }, + { + "prediction": "I don't think we need a `map` here.", + "reference": "Not a blocker, but would probably be useful to have a `scope :non_pending_approvers` on the `Proposal` model." + }, + { + "prediction": "Shouldn't this be `task_id`?", + "reference": "Add trailing comma" + }, + { + "prediction": "Why is this change needed?", + "reference": "I see someone say SIGKILL can not be caught by process. The original code here about `SIGKILL` is useless?" + }, + { + "prediction": "I think this should be `OLED_DARK` instead of `OLED_DARK`.", + "reference": "As it is a mobile only theme, please make sure the option appears only on mobile" + }, + { + "prediction": "I think this should be `param_list.append(param.strip())`", + "reference": "Would like a docstring and type annotations here" + }, + { + "prediction": "Line is too long. [92/80]", + "reference": "This is an API change. Why was it made?" + }, + { + "prediction": "I think this should be `using System;` instead of `using System;`", + "reference": "Please move using inside namespace." + }, + { + "prediction": "Why is this `poSEnabled` needed?", + "reference": "shall we create some enum flags for setasmain shouldprocess and pos?" + }, + { + "prediction": "I don't think we need to do this, but I think it would be better to use `findstr` instead of `findstr` here.", + "reference": "Should this `PUPPET_AGENT_STARTUP_MODE` have a corresponding yardoc change?" + }, + { + "prediction": "Why is this removed?", + "reference": "Why not simply remove the `pytest` import now that it's not needed anymore? :wink:" + }, + { + "prediction": "I think this should be `[TestClass]` instead of `[TestClass]`.", + "reference": "Yeah, not filled in yet." + }, + { + "prediction": "I think this should be `col-xs-12` instead of `col-xs-12`", + "reference": "don't use style. Use a class instead. reducing `col-xs-12` down to 8 or 6 or whatever should do the trick" + }, + { + "prediction": "I think it would be better to call `reloadCache` if table is null.", + "reference": "should we also do `reloadCache` when database is null?" + }, + { + "prediction": "Why not use `*mcsRes.QueryMol` instead of `*mcsRes.QueryMol`?", + "reference": "Why not just return QueryMol directly? Why require the copy?" + }, + { + "prediction": "I think this should be `os.path.join(os.path.dirname(__file__), fname)`", + "reference": "Could you add a docstring?" + }, + { + "prediction": "Metrics/LineLength: Line is too long. [92/80]", + "reference": "looks like you added newlines after blocks in a few files - I generally like newlines before/after multi-line blocks _except_ when the end the block is directly nested inside another block (eg: two `end`s next to each other) what do you think?" + }, + { + "prediction": "Why is this change needed?", + "reference": "@jlerbsc 's fix in #2918 in action - thanks! :smiling_face_with_three_hearts:" + }, + { + "prediction": "I think it would be better to have a default value for `zero_count` to be `False` if `zero_count` is `False`.", + "reference": "nitpick: Please lower-case `Zero_count` (as it's a literal argument name) and `Argument` here." + }, + { + "prediction": "Why is this change needed?", + "reference": "change the name of the function to match its functionality? account IsIssuing?" + }, + { + "prediction": "`by` is a `list` so you can use `list` instead of `list`", + "reference": "for later: add docstring (can just copy paste Pandas')" + }, + { + "prediction": "I think this should be `archerMocks` instead of `archerMocks`", + "reference": "nit: @sonofachamp pointed out to me that the idiomatic way is \"archermocks\" (lowercase for package names)" + }, + { + "prediction": "I think this is a good idea to remove the `errRouterHasNoProcedures` field from the error message.", + "reference": "Ugh I'm stupid, can you change this to `yarpc.InternalErrorf`?" + }, + { + "prediction": "I think this should be `table.name() + \".all_data_files\"`.", + "reference": "We instantiate some metadata tables in tests so I kept the old constructor too. Won't harm if someone is using it directly too." + }, + { + "prediction": "I think this should be `else if (queryOptions.limit != null && queryOptions.perDocumentLimit != null)`", + "reference": "I think the better place to put this might be `lib/options/PopulateOptions.js`. That should make it easier - checking options in `populate()` can get confusing." + }, + { + "prediction": "I think this should be `*net.UDPConn`", + "reference": "Lets have simple function arguments here, because now struct `traversal.Params` started to have 2 purposes: 1. used as contract in DTO between consumer-provider 2. as function parameters for internal code calls" + }, + { + "prediction": "I think this test should be in `org.openqa.selenium.grid.distributor.remote.RemoteDistributorTest`", + "reference": "Probably best not to have an empty test...." + }, + { + "prediction": "I don't think we need this blockquote, but I think it would be better to add a `

    ` to the blockquote.", + "reference": "`image_tag` in the `testimonials` files?" + }, + { + "prediction": "I think it would be better to use `JSONUtils.toJSON(flow.toObject());` instead of `JSONUtils.toJSON(flow.toObject());`", + "reference": "I believe flow.toObject() method is throwing NPE if SLA option list (i.e. this.executionOptions.getSlaOptions()) is null or one of the value in the list (i.e. this.executionOptions.getSlaOptions()) is null. If that is the case we could fix root cause of NPE in the ExecutableFlow.toObject() method. The corresponding code to populate SLA options can be modified as follows. final List> slaOptions = Optional.ofNullable(this.executionOptions.getSlaOptions()).orElse(Collections.emptyList()).stream() .filter(Objects::nonNull) .map(slaOption -> slaOption.toObject()) .collect(Collectors.toList());" + }, + { + "prediction": "I don't think we need to change `favicon.ico` to `/favicon.ico`", + "reference": "So I haven't tested this - but since the icon location is just directly dumped into the img _src_ attribute, won't this cause issues with Ghost blogs in a subdirectory? If I'm misunderstanding what the purpose of the default is then let me know " + }, + { + "prediction": "This should be `std::exception` instead of `std::exception`.", + "reference": "Why swallow the exception here rather than propagate it?" + }, + { + "prediction": "I think this should be `Optional[List[str]]` instead of `Optional[List[str]]`.", + "reference": "How about `column_index_names`? `column_names` sounds ambiguous." + }, + { + "prediction": "I think this should be \"write.metadata.metrics.column.\"", + "reference": "+1 on this. Do we want to have it as `WRITE_METRICS_MODE_COLUMN_CONF_PREFIX` to be consistent with defaults? Is there a possibility we will have `READ_METRICS_MODE_COLUMN_CONF_PREFIX`? Not sure." + }, + { + "prediction": "Why is this change needed?", + "reference": "Shall we use different inputs for `PySpark < 2.4` where `transpose` won't work with different data types." + }, + { + "prediction": "I don't think we need to import `functions` here, but I think it's a good idea to move this to `_dask_stubs.utils`.", + "reference": "we should sort the headers like in spark: public packages, then pyspark, then internal" + }, + { + "prediction": "I think this should be `if t.options.clientTLSConfig != nil && t.options.clientTLSConfig != nil {`", + "reference": "looks like we should drop this var from the transport options struct" + }, + { + "prediction": "Why is this removed?", + "reference": "Ah, yeah, this is the test for the validation that I mentioned in a remark above about relaxing the validation." + }, + { + "prediction": "I think this should be `valid_flags` or `valid_border`", + "reference": "For tensors, it is better to illustrate the shape." + }, + { + "prediction": "I think this should be `if (request.url().match('google-site-kit/v1/data/')) {`", + "reference": "This was removed in a recent PR for the admin bar, but should have been kept. It's been restored in the other admin bar PR but I've added it here to for completeness." + }, + { + "prediction": "I think this test should be removed from the `#if` block.", + "reference": "nit: probably swap the if condition and `if/else` and check `NETCOREAPP2_1` which looks more natural." + }, + { + "prediction": "I think this should be `return ok && ea.latency != nil`", + "reference": "for the tag, should it be `requestor_rtt` since the other is `responder_rtt`?" + }, + { + "prediction": "I think this should be `return rcv._tab.MutateByte(a+flatbuffers.UOffsetT(j*1), n)`", + "reference": "The one sad part of this is that is will generate a lot of overhead if you loop through a vector, since it obtains the vector every time. But with the current API there is no alternative I guess, and it is better to have the option than not." + }, + { + "prediction": "I think this should be `github.com/ipfs/go-ipfs-files`", + "reference": "nit: there should be a newline between `types` and `go-ipfs-files`." + }, + { + "prediction": "I don't think we need this variable anymore.", + "reference": "would be nice to have this as a parameter (Options), re: technical debt discussions" + }, + { + "prediction": "I don't think this is needed.", + "reference": "complete ignorance here but is it ok to import this from `com.sun`? can it break under non-oracle JREs?" + }, + { + "prediction": "I think this should be `spanProcessors.Load().(spanProcessorMap)` instead of `spanProcessors.Load().(spanProcessorMap)`", + "reference": "Is this some way of saying that the span is going to be sampled? I'm basing this question on the condition I saw for the `OnEnd` to be called - `mustExport := s.spanContext.IsSampled() && )`. Shouldn't the condition be `s.spanContext.IsSampled()` to match the condition for calling the `OnEnd`?" + }, + { + "prediction": "I think this should be `klog.Errorf(\"Unable to update snapshot list details in cvr %s status err: %v\", cvr.Name, err)`", + "reference": "just calling UpdateSnapshotInfo() should be fine" + }, + { + "prediction": "Why is this change needed?", + "reference": "Was `DefaultLogMessageRateLimit` not configurable anywhere?" + }, + { + "prediction": "I think we should use `testTime.EXPECT().After(gomock.Any()).Times(maximumPullRetries)` instead of `testTime.EXPECT().AnyTimes()`", + "reference": "Please use the `assert` instead. Same below." + }, + { + "prediction": "I think we should use `Europe or Overseas` instead of `Overseas`.", + "reference": "Owww, I think I found a typo. `suche`" + }, + { + "prediction": "Why is this removed?", + "reference": "This can happen because we could get `PhantomNodes` that are not admissible as source/target right?" + }, + { + "prediction": "Shouldn't this be `tls.ClientSessionState`?", + "reference": "Should we add a note here to file a bug if this ever happens?" + }, + { + "prediction": "I think we should return `int(num.Int64())` instead of `int(num.Int64())`", + "reference": "overflow is still possible, isn't it?" + }, + { + "prediction": "I think this should be `false` instead of `true`", + "reference": "This seems more like a personal preference, so maybe this should be in your `~/.rspec`?" + }, + { + "prediction": "Why is this needed? I think it would be better to use `from scapy.arch.pcapdnet import PcapTimeoutElapsed` instead of `from scapy.error import Scapy_Exception`", + "reference": "To avoid a circular import between pcapdnet and automaton" + }, + { + "prediction": "Why is this removed?", + "reference": "Please remove this blank line." + }, + { + "prediction": "I think this should be `InitWorkloadIdentityStatus` instead of `InitWorkloadIdentityStatus`", + "reference": "it feels that the WorkloadIdentityCondition should be added to this Status... And if you have workload identity enabled, but not working, then you can mark that condition failed, and also Mark the ready false... not entirely sure though" + }, + { + "prediction": "I think this should be `VUID-VkPipelineRasterizationProvokingVertexStateCreateInfoEXT-provokingVertexMode-LAST_VERTEX_EXT` instead of `VUID-VkPipelineRasterizationProvokingVertexStateCreateInfoEXT-provokingVertexMode-04883`", + "reference": "I think these got refactored to `LvlFindInChain` to better conform with the coding guidelines. I think MarkL left these in for backwards compatibility." + }, + { + "prediction": "I think this should be `@wraps(f)` instead of `@wraps(f)`", + "reference": "It's fine for this PR, but in the future try to minimize unrelated changes." + }, + { + "prediction": "I think this should be `/usr/share/ansible/plugins/modules` instead of `/usr/share/ansible/plugins/modules`", + "reference": "The library -> modules and filters -> filter path changes are breaking changes or?" + }, + { + "prediction": "I don't think we need to import `botocore.config` here, but I think it would be better to use `botocore.config` instead of `botocore.config`.", + "reference": "Can we encapsulate this check (`os.environ.get(\"TEST_TARGET\") == \"AWS_CLOUD\"`) into a small config/util function? (and also use it in `integration/conftest.py`) (I'd generally try to avoid accessing `os.environ` directly across the codebase. I'm aware that we're already doing this in a few places, but maybe we can start pulling things out - this will also help us create more systematic config/environment abstractions as we go...)" + }, + { + "prediction": "I don't think we need to reverse the array.", + "reference": "An `if` statement would be better here. Functions, concat and reverse are all very expensive." + }, + { + "prediction": "I think this should be `common.HexToAddress(\"0x334394E8c891E77b1449084aaDD659920BB25247\")` or `common.HexToAddress(\"0x334394E8c891E77b1449084aaDD659920BB25247\")`", + "reference": "`Log here: connect to default factory for goerli network

    `" + }, + { + "prediction": "Why not use `model.NotificationEventType_EVENT_DEPLOYMENT_WAIT_APPROVAL.String()` here?", + "reference": "nits, should add `break` to avoid redundant iterations." + }, + { + "prediction": "Shouldn't this be `Assert.False(provider.AccountExists(_address1).Should().BeFalse());`?", + "reference": "I think we want an exception here, there should never be a transfer to a nonexisting account." + }, + { + "prediction": "I think this should be `LOG.finest(\"Created container \" + id);`", + "reference": "This code is new and not tested well. While we may drop the log level before we ship 4.0, right now this is extremely helpful to users." + }, + { + "prediction": "I think this is a bit confusing, but I think it would be better to use `max(0.01, 0.1 - 0.01 * x)` instead of `max(0.01, 0.01 * x)`", + "reference": "Can we make these asserts more strict/precise? I remember this test helped to spot the issue of inconsistent results on different platforms due to using `sort` instead of `stable_sort`." + }, + { + "prediction": "I think this should be `interpreters[Pathname(executable).extname]` instead of `interpreters[Pathname(executable).extname]`", + "reference": "I thought about adjusting for case here as well? For example `.rb,rb,.RB,.rb` would all map to ruby interpreter specified? Is that too much \"magic\"? Is there a sane workflow that someone would choose to map `.rb` to one interpreter and `.RB` to another?" + }, + { + "prediction": "I think this should be `g_return_val_if_fail(self->loadstate == OSTREE_SYSROOT_LOAD_STATE_LOADED, NULL);`", + "reference": "In this and the one below, should we assert `self != NULL` first?" + }, + { + "prediction": "Why did you change this test?", + "reference": "Why this is needed?" + }, + { + "prediction": "I think this should be `self.meta` or `None`?", + "reference": "we already have .meta() so I don't think we want get_meta() for PackageEntry" + }, + { + "prediction": "Why is this change needed?", + "reference": "question: can we always get the startts from dagrequest?" + }, + { + "prediction": "Why is this change needed?", + "reference": "Nit-picking, but this can be simplified to reference `properties[ 0 ]` since that is already retrieved 2 lines above." + }, + { + "prediction": "I think this should be `@unresolved_targets.delete(target.name)` instead of `@resolved_targets.delete(target.name)`", + "reference": "This technically works because we call `get_targets` before we remove the target, so it's bound to have been resolved. But I'm not sure I would like to rely on that assumption. Should we also remove it from `@unresolved_targets` to be safe?" + }, + { + "prediction": "I think this should be `getWorldState().getContract(contract).orElse(new Code()))`", + "reference": "So what happens if I try to get code on a EOA?" + }, + { + "prediction": "I think this should be `self._get_values_to_unpack(inferred)` instead of `self._get_values_to_unpack`", + "reference": "Can't we return an empty list and then just compare the lengths? Thereby removing this `if`." + }, + { + "prediction": "I think this should be `this.passesRestrictions = this.passesRestrictions.bind(this)`", + "reference": "Mb change it to 'doesPassRestrictions()'? Doesn't sound enough like a boolean-returning method to me." + }, + { + "prediction": "Why is this change needed?", + "reference": "TODO: in fact At when used with noncurrent time should not return a next index. only latest should.." + }, + { + "prediction": "I think it would be better to use `Array.isArray(tmp)` instead of `Array.isArray(tmp)`", + "reference": "There are scenario's where we skip an update with a placeholder, in this case tmp returns null with render, this is not an array so we `[null]` it" + }, + { + "prediction": "Why is this change removed?", + "reference": "@danieldietrich, this wasn't tested so I presumed it wasn't working before either :p" + }, + { + "prediction": "This should be `use ApacheSolrForTypo3\\Solr\\Facet;`", + "reference": "Please leave two empty lines after the `use` statement" + }, + { + "prediction": "I think this should be `k8s.io/k8s/pkg/kubelet/cm`", + "reference": "Please move this import in the 3rd group which is for external dependencies" + }, + { + "prediction": "Why is this change needed?", + "reference": "So what exactly is this fixing? The unit test is passing with or without this change." + }, + { + "prediction": "I think we should use `std::string(it->second->path()).rfind('/') + 1` instead of `std::string(it->second->path()).rfind('/') + 1`", + "reference": "auto targetFile = fs::FileUtils::joinPath(newPath, folly::stringPrintf(\"%019ld.wal\", it->first));" + }, + { + "prediction": "I think this method should be `snapshotIdsBetween` instead of `snapshotIdsBetween`", + "reference": "I don't see any place that checks whether the from snapshot is an ancestor of the to snapshot. That seems like a requirement for this to work correctly to me." + }, + { + "prediction": "Why not just use `getHelpText` instead of `$functionConfig['helpText']`?", + "reference": "Other calls to getHelpText() are wrapped in an `isset()` check. Would it make sense to be consistent, and either restore that here or remove it elsewhere?" + }, + { + "prediction": "I think this should be `@configuration.output_stream ||= out` instead of `@configuration.output_stream ||= out`", + "reference": "Why the change? If `output_stream` is set to something non-nil, it seems odd (and potentially wrong) to overwrite it...." + }, + { + "prediction": "Layout/EmptyLinesAroundClassBody: Extra empty line detected at class body end.", + "reference": "Thinking this should have an underscore." + }, + { + "prediction": "Why is this change needed?", + "reference": "To accommodate the change to the method being private." + }, + { + "prediction": "I think this should be `PropertyNamesCamelCase` instead of `PropertiesNamesCamelCase`", + "reference": "Shouldn't we traverse all definitions and apply this rule over all model definitions in the doc" + }, + { + "prediction": "I think this should be `PmdRuleTst` instead of `MutableStaticState`.", + "reference": "Please rename this class that it ends with the suffix \"Test\" - otherwise the tests won't be executed." + }, + { + "prediction": "I don't think we need this file anymore, but I think it would be better to use `require('@wordpress/prettier-config')` instead of `require('@wordpress/prettier-config')`", + "reference": "As a JS file, this should also receive our standard file header." + }, + { + "prediction": "I think this should be `bmoMemoryUsagePerNode` instead of `bmoMemoryUsagePerNode`.", + "reference": "I take it memQuotaRatio is an \"out\" parameter at line 1810? Also, why use MIN_QUOTA in both the cases of memQuota being too low and too high? Contrast this code with RelRoot::codeGen where we set MIN_QUOTA only in the too low case." + }, + { + "prediction": "Why is this removed?", + "reference": "It looks like for newpullsubscription, we have two functions. One for pullsubscription with default, one for pullsubscription without default. If you remove setdefault here, then there is no differences between these two functions." + }, + { + "prediction": "I think this should be `codec:dc` or `codec:dc`?", + "reference": "not dramatic, but why 32bits if we allow a range that is smaller than 8?" + }, + { + "prediction": "Why is this intentional?", + "reference": "- Use type from `service_discovery/dto/price.go` - Rename `Price` -> `Money`" + }, + { + "prediction": "I think this should be `System.out.println(success.bimap(Function1.identity(), AtomicInteger::get));`", + "reference": "one space missing at the beginning" + }, + { + "prediction": "I think this should be `Platform` instead of `omitempty`.", + "reference": "I worry that having `Platform` as `string` instead of `*string` would result in it getting overriden with `\"\"` if the environment manifest config doesn't specify `platform` . If it gets overridden as `\"\"`, that could be a problem for users that are not using `linux/amd64` right? If this indeed is a potential impact, could we double check in `ApplyEnv`'s unit test? Same with the `Platform` in `TaskConfig`. Sorry for not seeing this in my previous review!!! " + }, + { + "prediction": "I don't think we need to add the `/api/external` prefix here.", + "reference": "I like the new directory `/api`, what is the thinking behind `/external`?" + }, + { + "prediction": "I think this should be `for k, _ := range ac.SigningKeys { if len(ac.SigningKeys) > 0 { a.signingKeys = append(a.signingKeys, k)`", + "reference": "staticcheck flags this: replace with `for k := ..`" + }, + { + "prediction": "I think we should use `timeout=0.001` instead of `timeout=0.001`", + "reference": "There's already a sleep right above" + }, + { + "prediction": "I think this should be `if ( strpos($var_id, 'self::') === 0) {`", + "reference": "This feels hacky, is there a better way?" + }, + { + "prediction": "I think this should be `collections.OrderedDict`", + "reference": "Can we move this logic into the `boto.compat` module? Then it's just `from boto.compat import OrderedDict` instead. Also, this is introducing a new dependency. What about users on 2.6.x that don't have the OrderedDict module installed? We may need to fall back to an ordinary `dict` so that existing code in the wild does not break." + }, + { + "prediction": "I think this should be `DeserializationSettings` instead of `DeserializationSettings`.", + "reference": "\"Gets the JSON serialization settings.\" would be better?" + }, + { + "prediction": "I think this should be `/file/{addr}/download` instead of `/file/{addr}/download`", + "reference": "The endpoint should be in plural `/files`." + }, + { + "prediction": "I think this should be `struct MDLDummy {};`", + "reference": "??? Why do we need to have a different API in Python? Oh, wait, I see what you did. It's to fake the namespaces. Given that I don't think the namespaces are necessary, and that less of these should be exposed anyway, I think these should go." + }, + { + "prediction": "Why is this change needed?", + "reference": "I think this line is gofmt issue? @daixiang0" + }, + { + "prediction": "I think this should be `assert.Equal(t, pkg, name, subrepo)`", + "reference": "probably better to assert the values directly; technically you could pass this test with an implementation that always returned \"\" for the subrepo for example." + }, + { + "prediction": "Why is this change needed?", + "reference": "line is 161 characters (from `lll`)" + }, + { + "prediction": "I think this class should be `Serializable`", + "reference": "Are these changes needed?" + }, + { + "prediction": "Why is this change needed?", + "reference": "It seems like reducing the sensitivity would make the test failure less likely to occur, but not fix the issue?" + }, + { + "prediction": "I think we should move this trait to the `BaseCategoryDocumentI18n` class.", + "reference": "missing use statement for importing the full namespace" + }, + { + "prediction": "I think this error should be `ErrIncorrectAddressFormat` instead of `ErrIncorrectAddressFormat`.", + "reference": "Generally error messages in Go shouldn't start with capital letter. I see this rule is broken in many places here. Why?" + }, + { + "prediction": "Why is this change needed?", + "reference": "These test checks if selection coordinates don't return negative values in that edge cases. Please revert the changes and set `autoWrapCol` and `autoWrapRow` to `false` to the Handsontable instance. This change applies to the entire Core_selection.spec.js file." + }, + { + "prediction": "I think this should be `CommitAndRestoreWithZeroGasPrice = CommitAndRestoreWithZeroGasPrice | ZeroGasPrice`", + "reference": "I would prefer flag SkipGasPricingValidation" + }, + { + "prediction": "I think this should be `is_watched` instead of `is_watched`.", + "reference": "could be `const &` ?" + }, + { + "prediction": "Shouldn't this be `hideProgressAfterFinish`?", + "reference": "The docs should also be updated with the new option." + }, + { + "prediction": "I think this should be `send_notification_to_region` and not `send_notification_to_region`", + "reference": "Name is _way_ to generic for this patch to be accepted I think. Can you rename it to maybe `send_sns_notification` or something else you find suitable?" + }, + { + "prediction": "Why is this change needed?", + "reference": "Out of the scope." + }, + { + "prediction": "I think this should be `this.forEach(callback, thisArg);`", + "reference": "I think we need an if block to check that if this API is really missing. We wouldn't want to override the browser's implementation." + }, + { + "prediction": "Why not just use `name` instead of `editorClass.EDITOR_TYPE`?", + "reference": "I was wondering, things like EDITOR_TYPE, VALIDATOR_TYPE, RENDERER_TYPE are not obligatory. Therefore if the custom editor will be registered with this method, `name` will be set to `undefined`. Should we handle this scenario?" + }, + { + "prediction": "Why is this removed?", + "reference": "This line should not be removed, as it is not the description of the package, but a copyright header." + }, + { + "prediction": "I think this should be `Tag` instead of `Tag`", + "reference": "Wouldn't it be more space efficient to make this a `byte` enum or bitfield?" + }, + { + "prediction": "Why is this change needed?", + "reference": "Flake8 doesn't like the assignment, but non-use of `e` here. I think we can just remove the try/except here for `cursor.execute(sql)`." + }, + { + "prediction": "I think this interface should be `ASTAnyTypeBodyDeclaration` instead of `ASTAnyTypeBodyDeclaration`", + "reference": "Maybe add short example list: .... type body declarations, such as AnnotationMembers, Methods, Fields" + }, + { + "prediction": "Shouldn't this be `timeouts`?", + "reference": "These are really meant to be the keys in the capabilities, not the keys of values within the capabilities" + }, + { + "prediction": "nit: I think this should be `@return String.valueOf(this.name());`", + "reference": "It is debatable whether we have to default this. I did this to avoid breaking custom implementations." + }, + { + "prediction": "Why is this change needed?", + "reference": "# `attr_value['string'] is not None` probably not required as `attr_value['string'] == value` check is already being done" + }, + { + "prediction": "I think we should move this to the `pkg/addons` package.", + "reference": "we shouldn't need the \"addon\" rename" + }, + { + "prediction": "I think this should be `before_filter:must_be_admin`", + "reference": "These are covered by routing constraints." + }, + { + "prediction": "I think we should use `aws.StringSlice` instead of `aws.StringSlice`", + "reference": "Could we use just a normal string here?" + }, + { + "prediction": "I think this should be `isFunction(Symbol) && Symbol.iterator;`", + "reference": "`isFunction(Symbol)` triggers a `ReferenceError` if Symbol is undefined. Using `typeof Symbol === 'function'` is OK however." + }, + { + "prediction": "I think this should be `lock.unlock()` instead of `lock.unlock()`", + "reference": "Is there an else clause (with a lock.unlock ()) missing here as well? If we think we do not need an else clause then lets add an else clause containing assert zero." + }, + { + "prediction": "Why is this change needed?", + "reference": "do we foresee `32` ever changing? (as well as its use in error checking in `clerk.go`) if \"no\" this is fine, if \"yes\" it's probably still fine" + }, + { + "prediction": "I think this should be `DeviceRotation` instead of `DeviceOrientation`", + "reference": "you don't need to create a enum for this, java allows you to switch on a string ;) (since java 7?)" + }, + { + "prediction": "I don't think we need to load the roles into ember cache.", + "reference": "This should be `modelPromises.roles = this.get('store').query('role', ...` and the promise body should just `return roles;`. This is because the `model()` hook will pause for the returned promises to be resolved before continuing so when returning `RSVP.hash` you end up with a hash containing the values returned from the promises so the controller and everything else relying on the `model` object doesn't need to worry about things being async." + }, + { + "prediction": "I think we should use `axe.commons.aria.getRolesByType('header')` instead of `axe.commons.aria.getRolesByType('landmark')`", + "reference": "This is basically a repeat of `main-is-top-level.js`. I suggest having these 3 checks point to the same evaluate file. You can change what element they test through the rule selector as well as the check.json options property. So you would have `main-is-top-level.json`, `banner-is-top-level.json` and `contentinfo-is-top-level.json` each point to `landmark-is-top-level.js`, and pass in a different `options` object which tells it what element you're trying to test." + }, + { + "prediction": "Why is this change needed?", + "reference": "Why do we need this check? setCore already handles nulls." + }, + { + "prediction": "I think this should be `__dir__`.", + "reference": "good catch, thanks. This is going to make the user experience much better." + }, + { + "prediction": "Why is this needed?", + "reference": "TODO: remove this unused import" + }, + { + "prediction": "I think we should be able to make sure that the JWS format is consistent with the JWS format.", + "reference": "Hmm leaking the library name out in the Workload API doesn't seem great. Do we want to catch these errors and return a canned \"could not parse token\" or something instead?" + }, + { + "prediction": "Line is too long. [89/80]", + "reference": "I think `-f gradlew` is better for code unity" + }, + { + "prediction": "I think this should be `source.iceberg.reader.fetch-record-batch-size`", + "reference": "Is there precedent for this config key? What other keys are similar? The others in this file start with `table.exec.iceberg`. Is there a reason for not continuing with that convention?" + }, + { + "prediction": "I think this should be `using System.Linq.Expressions;`", + "reference": "Can we avoid no-change changes being committed - they make it harder to distinguish actual changes from code editor changes" + }, + { + "prediction": "I think we should remove the `AWS SDK for Java v2` keyword and remove the `Code Sample` keyword.", + "reference": "AWS Identity and Access Management (IAM)" + }, + { + "prediction": "Why is this removed?", + "reference": "You dont use this dependency anymore" + }, + { + "prediction": "I think this should be `assertTrue(\"ENABLE_JSON1 flag not found in compile options\", compileOptions.contains(\"ENABLE_JSON1\"));`", + "reference": "Here is the test that checks that the sqlcipher in use was compiled with the right flags" + }, + { + "prediction": "Shouldn't this be `if (!TextUtils.isEmpty(loginServer)) {`?", + "reference": "Turns out that if the hosts are not in an `array`, an `Exception` is not thrown anymore :-( It simply returns `null`. So, we need to attempt to parse a `string` outside the `catch` block for it to work." + }, + { + "prediction": "I don't think we need to add this to the `TestRestTemplateBuilder` class.", + "reference": "this test only covers the happy path. what about no acceptable rest template found?" + }, + { + "prediction": "I think this should be `LOG.info(String.format(\"Firefox Session %d assigned to %s\", i, chromeSession.getUri()));` and `LOG.finer(String.format(\"Firefox Session %d assigned to %s\", i, chromeSession.getUri()));`", + "reference": "Since this is in a test, I imagine that the choice of `info` level was deliberate." + }, + { + "prediction": "I think this should be `core` instead of `strings`", + "reference": "this should probably be named somewhere if you want to reuse it." + }, + { + "prediction": "I think this should be `AWS_BOUND_SA_SIGNING_KEY_PATH`", + "reference": "needs a rename to not include AWS" + }, + { + "prediction": "Why is this needed?", + "reference": "Isn't sigma have `double` type?" + }, + { + "prediction": "I think this should be `seed.data = 1` instead of `seed.data = 0`", + "reference": "May be better use nano::keypair that generates ramdom value?" + }, + { + "prediction": "Is there a reason why we don't know what the user selected for BSON options here?", + "reference": "I think the more complete solution will save off a `ignoreUndefined` in the base class for the bulk operation (with a default of `false`), and use that for calculations. Was there a reason you didn't want to support the option from the operation level?" + }, + { + "prediction": "Shouldn't this be `RestClient.RefreshTokenRevokedException`?", + "reference": "The catch (Exception e) block that follows does an updateSync, which will get a SmartStore instance (while logging out is taking place) - and then terrible things will happen - a database gets created for the outgoing user that won't be openable by the returning user causing the app to crash at logout. This is a somewhat superficial fix - SmartStore should not return an instance for an outgoing user." + }, + { + "prediction": "I think this should be `mock.GetConnection(gomock.Any()).AnyTimes()`.", + "reference": "huh does this work without a `Return`?" + }, + { + "prediction": "I think we should remove the `if pending?` check here.", + "reference": "Don't think we want this line, right? (Plus \"failing\" is spelled wrong)." + }, + { + "prediction": "I think this should be `isLocalFeed` instead of `isLocalFeed`.", + "reference": "I think it would be more clear to have local-feed-hiding all in one place (bottom of this method?). Further up the method, there already is some code that hides the website icon, for example." + }, + { + "prediction": "Why did you remove this?", + "reference": "Why remove this one? It doesn't work yet, but we'll add it sooner or later." + }, + { + "prediction": "Why is this change needed?", + "reference": "Why did you remove the struct tags?" + }, + { + "prediction": "I think we should use `get_bza_report_info` instead of `get_bza_report_info`", + "reference": "Let's be neutral with tag names. Let's just have \"ReportURL\"" + }, + { + "prediction": "I think we should use `startTime.Add(10 * time.Second)` instead of `startTime.Add(10 * time.Second)`.", + "reference": "Use an explicit time to ensure conversion is not copy-paste and wrong." + }, + { + "prediction": "why not use `strstr(p, \"\\n\")` instead of `strstr(p, \"\\n\")`?", + "reference": "The logic now is to look for ``. This `` output is also not consistent with the other two functions you mentioned. Do the other two RPCs not report an error?" + }, + { + "prediction": "Layout/EmptyLinesAroundClassBody: Extra empty line detected at class body end.", + "reference": "Use nested module/class definitions instead of compact style." + }, + { + "prediction": "I think this should be `t.Log(\"Init KBFSOps\")` instead of `t.Log(\"Init KBFSOps\")`", + "reference": "Do you think we need to keep this in, or is it just leftover personal debugging? Seems like it wouldn't be too useful most of the time, but I don't care too much if you want to keep it." + }, + { + "prediction": "I think it would be better to use `config.TB()` instead of `config.TB()`", + "reference": "showNPCs is not needed" + }, + { + "prediction": "I think we should use `fmt.Sprintf(\"parameter %s already exists\", e.name)` instead of `fmt.Sprintf(\"parameter %s already exists\", e.name)`", + "reference": "Docstring for public function pls" + }, + { + "prediction": "I think this should be `error when creating \\\"/tmp/apply-475927931\\\": namespaces \\\"openshift-am-config\\\" not found\"`", + "reference": "This should use `t.Errorf` instead. You want the second part of the test to run even when the first part fails." + }, + { + "prediction": "I think this should be `if (ctx.protocol_selector.ratio.http3 > 0) {`", + "reference": "Should this if block better be changed to `#if H2O_USE_LIBUV \\n #else ... #endif`? The reason I wonder is because that's the way the QUIC context is being initilaized at the beginning of this function. Though I would not expect practical difference between the two approaches, because ATM the only case where we create QUIC connections is when the protocol selector is set to non-zero, and because when it is set to non-zero `h2o_quiy_close_all_connections` becomes a no-op." + }, + { + "prediction": "I think this should be `if (!Object.is(hookState._value[0], nextValue)) {`", + "reference": "`Object.is` is an ES6 feature of JS so I don't think we can use it here (or we have to change our browser support matrix or specify that an Object.is polyfill is pre-req of `preact/hooks`). Should we just do an `===` check in `preact/hooks` and provide a `Object.is` polyfill and version of `useReducer` in `preact/compat`?" + }, + { + "prediction": "I think this should be `Array.isArray(options.roles)` instead of `Array.isArray(options.roles)`", + "reference": "This was a bug I picked up by using the TS interface as a guide, this seems like it was / is the intention, also is a bug in master (needs port)" + }, + { + "prediction": "I think this should be `COLOCATED_WITH`", + "reference": "It would be helpful to explicit here what this really means and assumes." + }, + { + "prediction": "I think this should be `expectedBalances map[string]*big.Int` or `expectedBalances map[string]*big.Int`", + "reference": "`ExpectedBalances` is a global variable (from `gochecknoglobals`)" + }, + { + "prediction": "I think this class should be `SynaxFormatter` and not `HtmlFormatter`", + "reference": "This is another place where I'd feel more comfortable with declaring the class private. We can always make it public in the future if someone makes a case for that, but I prefer to err on the side of privateness for things like this that 99% of RSpec users won't have a reason to use." + }, + { + "prediction": "I think this should be `optIssuerAccount` instead of `optIssuerAccount`", + "reference": "Feels like this should be left as is and add a new createClientWithIssuers or something like that. Avoid all the \"\"" + }, + { + "prediction": "Is there a reason why we don't need to call `authCallback.receivedErrorResponse(error);` here?", + "reference": "Minor unrelated bug in the IDP flow where the error wasn't getting displayed as a `Toast`." + }, + { + "prediction": "I think this should be `mongoErrorContextSymbol` instead of `mongoErrorContextSymbol`", + "reference": "I thought we got rid of this thing?" + }, + { + "prediction": "Why did you remove this?", + "reference": "Please convert int params as well." + }, + { + "prediction": "I think this should be `string.Format(string.Format(string.Format(string.Format(string.Format(string.Format(string.Format(string.Format(string.Format(string.Format(string.Format(string.Format(string.Format(string.Format(string.Format(string.Format(string.Format(string.Format(string.Format(string.Format(string.Format(string.Format(string.Format(string.Format(string.Format(string.Format(string.Format(string.Format(string.Format(string.Format(string.Format(string.Format(string.Format(string.Format(string.Format(string.Format(string.Format(string.Format(string.Format(string.Format(string.Format(string.Format(string.Format(string.Format(string.Format(string.Format(string.Format(string.Format(string.Format(string.Format(string.Format(string.Format(string.Format(string.Format(string.Format(string.Format(string))))))))))))))))))))))))))))))))))))))))))))))))", + "reference": "Fixed bug in implementation. Now I can run the validator from the VS Tools menu, double-click on an output line, and navigate to the site of the issue." + }, + { + "prediction": "I think this should be `DD_HTTP_SERVER_ERROR_STATUSES`", + "reference": "Can we rename this field to `HttpServerErrorCodes` or `HttpServerErrorStatuses`? It will contain a list of status _codes_, not a list of _errors_. (Personally I prefer \"codes\" over \"statuses\", but we can't change `DD_HTTP_SERVER_ERROR_CODES`.)" + }, + { + "prediction": "(style) line over 80 characters", + "reference": "would you please use: flb_utils_bool(...) here ?, that function wraps the on/off/true/false stuff." + }, + { + "prediction": "I think this should be `null` instead of `null`", + "reference": "`invocationInfoTokensToRedact: null` (I really like the convention of using a named parameter whenever the value doesn't communicate the meaning, such as for literal values.)" + }, + { + "prediction": "Why do we need async?", + "reference": "maybe renamed to `async_simple_test` if we consider supporting aug test later on?" + }, + { + "prediction": "I don't think we need to do this, but I think we need to make sure that the `apply_default_attributes` is called before `process` is called. I think it's better to do `apply_default_attributes` before `apply_default_attributes` is called.", + "reference": "So where is default_attributes now? Is it used anywhere else still? If not, can it be removed along with any tests of it?" + }, + { + "prediction": "Why is this change needed?", + "reference": "We could move this to the base class and remove all these changes. What do you think?" + }, + { + "prediction": "Line is too long. [92/80]", + "reference": "While we're doing some translation work, could you extract this button text and the other static text from the view?" + }, + { + "prediction": "Shouldn't this be `replaceTokens(headersValue, contextInfo, false)`?", + "reference": "Nit: Please fix indentation (note: Azkaban uses 2 spaces and not tabs)." + }, + { + "prediction": "Why is this change needed?", + "reference": "This change is necessary because the schema version is ignored unless a schema is specified. I think that has always been the intent." + }, + { + "prediction": "I don't think this is needed.", + "reference": "The api/docs/release.dox changelog message is missing: maybe you planned to add it once NtAllocateVirtualMemoryEx and NtMapViewOfSectionEx support is in? I would say, add it here in the same diff that raises max_supported_os_version." + }, + { + "prediction": "I think this should be `node.hasAttribute(aria)` and not `node.hasAttribute(aria)`", + "reference": "Just do: `return node.hasAttribute('aria-hidden')`" + }, + { + "prediction": "I don't think we need a test for this, but I think it would be better to have a test for `save` and `forgotten` and `forgotten` and `forgotten` and `forgotten` and `forgotten` and `forgotten`.", + "reference": "Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping." + }, + { + "prediction": "I think this should be `_currentProcessName` and `_currentProcessMachineName`", + "reference": "Do we need `_processDataPoisoned`? Can the name or the id of the current process ever change? Or the machine name?" + }, + { + "prediction": "I think this should be `systemd.SdNotify(true, \"READY=1\\n\")`", + "reference": "Did it not work out to wait until after containerd and kubelet are started?" + }, + { + "prediction": "I think this should be `cooldownreduction` instead of `cooldownreduction`", + "reference": "variable names suggestions from me: - damageboost, ITEM_PARSE_DAMAGEBOOST, \"damage boost +x%\" - healingboost, ITEM_PARSE_HEALINGBOOST, \"healing power +y%\" - managainboost, ITEM_PARSE_MANAGAINBOOST, \"mana restoration +z%\" alternatively the other names can stay, because \"increase\" convention isn't that bad, just change mana values to: - \"increasemanarestored\", ITEM_PARSE_INCREASEMANARESTORED, \"mana restoration +z%\"" + }, + { + "prediction": "`has_all_data` should be `bool`", + "reference": "Why can't this be determined by 'PARTIAL_SUCCESS' in the `status` field?" + }, + { + "prediction": "I think this should be `is_string($id)`.", + "reference": "Does it make sense to generate a Exception here? Maybe yes, because it wouldn't make sense to generate a path without the id of the media right?" + }, + { + "prediction": "I think this should be `SSLSocketFactory.getInstance()`.", + "reference": "This should be made private." + }, + { + "prediction": "I think this should be `a.getBaseSVIDPath()`", + "reference": "perhaps this is better modeled as a pkg-level var?" + }, + { + "prediction": "I don't think we need to define this in `SqlParserGlobals.h`.", + "reference": "I don't think there is a maximum scale, neither for Hive nor for Trafodion. The only condition right now is that the scale can't exceed the precision. Example of a valid scale: DECIMAL(18,18). The maximum of 6 digits applies only to TIMESTAMP columns, where we don't support resolution below microseconds." + }, + { + "prediction": "I think this should be `UpdateProjectSingleSignOnRequest` instead of `UpdateProjectSingleSignOnResponse`.", + "reference": "`ctx` is unused in UpdateProjectStaticUser" + }, + { + "prediction": "I think we should use `String.format(String.format(String.format(\"https://content.googleapis.com/discovery/v1/apis/%s/%s/rest\", apiName, apiVersion));`", + "reference": "Why is this not the default, and why only for JS?" + }, + { + "prediction": "Align the elements of a hash literal if they span more than one line.", + "reference": "A repository has many badges so we should also add type column in scope." + }, + { + "prediction": "Why is this change needed?", + "reference": "Now a hash set, so can't index into it." + }, + { + "prediction": "I think this should be `!!ENV['PSModulePath']`", + "reference": "@jpogran Does this seem like a reasonable way to know if we're in powershell vs. CMD or *sh?" + }, + { + "prediction": "Please use `String#startsWith(String, StringComparison)`", + "reference": "1.toLowerCase(Locale.US)? 2.where is accept bug fix?" + }, + { + "prediction": "Why is this removed?", + "reference": "We should still be providing something to the user in the case of a `KeyError` instead of a stack trace!?" + }, + { + "prediction": "Why not use `await _blockchainBridge.GetNonceAsync(onBehalfOf)` here?", + "reference": "check Lukasz's fix with NonceReserving - is that not better?" + }, + { + "prediction": "I think this should be `this.sourceBlock_.setColour(colour, this.sourceBlock_.getColourSecondary(), this.sourceBlock_.getColourTertiary());`", + "reference": "Would you explain why here please? E.g. from the PR description > the renderer expects to be able to use the secondary color as the fill for a shadow." + }, + { + "prediction": "I think this should be `defer hd.lock.RUnlock()` instead of `defer hd.lock.RUnlock()`", + "reference": "Lock needs to go to `RecoverFromDb` instead. Here it may cause deadlocks. My convention was that un-exported functions do not lock, only exported ones (with name starting with a capital letter)" + }, + { + "prediction": "I think this should be `getDomains(\".de\")`.", + "reference": "German keyboard would also be used in Austria and Switzerland, so this should have included `.at` and `.ch`." + }, + { + "prediction": "Why remove this?", + "reference": "since this makes the indexer thing really only used for a single table, now, you can put in a TODO for me to cleanup and simplify this" + }, + { + "prediction": "I think this should be `NSCD_SOCKET_VOLUME_NAME`.", + "reference": "Should we have this path passed from the Azkaban properties? If this is the standard path for nscd even outside LinkedIn, then we can keep it." + }, + { + "prediction": "I think we should not rely on the stream name here.", + "reference": "Could be a non-public field. `allowNoSubject`" + }, + { + "prediction": "Why do we need to check for `forceRebuild` and `skipCacheLookup`?", + "reference": "Don't think this is quite right - think the build one also needs an `IsOriginalTarget` (c.f. code in `src/build`)" + }, + { + "prediction": "I think this should be `@return array`", + "reference": "what about adding typehints instead? I don't think we need to add docblocks for every private methods." + }, + { + "prediction": "I think this should be `compression=on` instead of `compression=on`", + "reference": "Is it fine to pass the \"-o compression=on\" in the middle instead of at the end ?" + }, + { + "prediction": "I don't think we need this, but I think it's a good idea to do this.", + "reference": "Probably make them all keyword arguments." + }, + { + "prediction": "Why is this removed?", + "reference": "Why not just check the backdrop setting here as well for the time being? We can combine the code later but at least then it would be configurable if people like the backgrounds." + }, + { + "prediction": "Why is this change needed?", + "reference": "why are we turning this one into a Warning?" + }, + { + "prediction": "I don't think we need to change this to `String.valueOf(sourceIDs.size())`.", + "reference": "Wouldn't it be better to use double quotes for the opening parenthesis ?" + }, + { + "prediction": "I think this should be `static_cast(player->blessings.to_ulong());`", + "reference": "Remove the cast" + }, + { + "prediction": "I think we should remove this file.", + "reference": "What criteria do we use to bump the copyright years? An update to the module?" + }, + { + "prediction": "I think this should be `results[key] = gt_seg` instead of `results[key] = gt_seg`", + "reference": "should we rm line 269?" + }, + { + "prediction": "I think this should be `queueHandler.queueFunction(queueHandler.eventQueue, lambda: setattr(self, '_isNvdaStartupComplete', True))`", + "reference": "Perhaps the code at `source/core.py:564: postNvdaStartup.notify()` should be queued instead? If we are saying the loop must have started before NVDA's startup is complete, then the `postNvdaStartup` action is incorrect." + }, + { + "prediction": "I don't think we need to do this, but I think it would be better to have a single `approvals.each { |a| a.update_attribute:status, 'approved'}`.", + "reference": "Needed this for testing locally with mail view but not used for any tests. Might be nice to have some seed scripts at some point." + }, + { + "prediction": "I think this should be `fromApplicationStatusValue(response.Header.Get(ApplicationStatusHeader)) == ApplicationErrorStatus`", + "reference": "wait, if we only do this for successful status codes won't we miss a whole slew of responses? We should be checking this for all codes right?" + }, + { + "prediction": "I think this should be `library.yaml` instead of `libraryProtoFile`", + "reference": "Adding in the service yaml `library.yaml` here." + }, + { + "prediction": "Why is this change needed?", + "reference": "Why is this dereference needed?" + }, + { + "prediction": "I don't think we need to add `RemoveDir` to the `repoNode` as well.", + "reference": "Might want to add that this only happens if you have write permissions to the folder." + }, + { + "prediction": "I think it would be better to use `*bool` instead of `*bool`?", + "reference": "Adding a small blurb about why someone would want to enable this flag would help clarify what it is for. Such as something about when providing a custom retry handler and how`ShouldRetry` will be handled with and without the flag enabled." + }, + { + "prediction": "Why is this change needed?", + "reference": "assume the user will be able to register for a custom service name in future?" + }, + { + "prediction": "Why is this needed?", + "reference": "The extra two empty lines seem unnecessary. Please review your diffs more carefully." + }, + { + "prediction": "Why is this change needed?", + "reference": "What the reason to embed the Oracle?" + }, + { + "prediction": "I think this route should be `pages/new-topics` instead of `pages/new-topics`", + "reference": "Shouldn't this happen automatically with High Voltage?" + }, + { + "prediction": "I think this is a good idea to use the variable name as the variable name.", + "reference": "This is changed because we need `projectId` to be printed as `$projectId` in PHP." + }, + { + "prediction": "I don't think we need to check if `templates.first.customization_of.present?` is true.", + "reference": "This title change seems more accurate to me however not sure if this will confuse users." + }, + { + "prediction": "I don't think we need this regex, but I think it's better to use `^wikipedia` instead of `xxxx:wikipedia`", + "reference": "Here (and on line 158 as well), would it be more efficient to use the String end_with() method? Not tested" + }, + { + "prediction": "I think we should use `self._data` instead of `self._data`", + "reference": "Why are you creating a new (second) `RAMHandler` here? Is this just an oversight from deleting the previous code?" + }, + { + "prediction": "I think this should be `if (req.get_if_not_exists() && req.get_if_not_exists() && req.get_if_not_exists() && req.get_if_not_exists() && req.get_if_not_exists() && req.get_if_not_exists() && req.get_if_not_exists() && req.get_if_not_exists()) {`", + "reference": "Move the line 27 to line 31 is better?" + }, + { + "prediction": "I think this should be `if rmd.IsRekeySet() {` or `if rmd.IsRekeySet() {`?", + "reference": "In slack I mentioned we should only do this if the update is from some other device, to make sure our own updates don't cause issues. Maybe the revision check above is good enough to prevent this, but I just want to make sure you thought about it." + }, + { + "prediction": "I think we should remove the `--seed 1234` option from the `RSpecConfig` class.", + "reference": "I would instead explain that random is the default, but you can switch back to defined, or another ordering scheme." + }, + { + "prediction": "I think this should be `!screenReader && (isClipped(style) || isClipped(style))`", + "reference": "Is there a reason you left this at 0?" + }, + { + "prediction": "Why not use `AbstractRememberMeServices.getKey()` here?", + "reference": "The value of `key` will never be `null` at this point, because `getKey()` will generate a value if it is `null`." + }, + { + "prediction": "I think it would be better to check if `commandType.FullName == \"AdoNet\"` instead of `commandType.GetType().FullName`", + "reference": "NIT: You should first check if AdoNetExcludedTypes.Count is greater than 0 before calling Contains (fast-path)" + }, + { + "prediction": "I think this should be `strings` instead of `strings`", + "reference": "should rearrange so as to follow import ordering." + }, + { + "prediction": "Why is this change needed?", + "reference": "what is the use case for create workflow with completed state?" + }, + { + "prediction": "I think this test should be in `org.openqa.selenium.grid.distributor.remote.RemoteDistributorTest`", + "reference": "Probably best not to have an empty test...." + }, + { + "prediction": "I don't think you need to do this.", + "reference": "Missing the license" + }, + { + "prediction": "Why is this removed?", + "reference": "Looks like this was previously guarded by `EnableCleanupReplicationTask` flag. Now looks like this is always needed. Just want to confirm the intention is if `GlobalNamespace` is enabled then we want run cleanupReplicationTasks in all cases?" + }, + { + "prediction": "Why did you remove this?", + "reference": "Potentially it'll be good to remove all of them excluding \"tbb/tbb.h\" But let's do it next time " + }, + { + "prediction": "I think we should use `np.isnan(x)` instead of `np.isnan(x)`", + "reference": "I would just mention which tolerance - namely as reported by ``sys.float_info``" + }, + { + "prediction": "Line is too long. [89/80]", + "reference": ":+1: Ideally this'll become something you could pass in to the config" + }, + { + "prediction": "Why is this needed?", + "reference": "Should using `thenValue` to replace `then` ?" + }, + { + "prediction": "Shouldn't this be `if (!Tracer.Instance.Settings.IsIntegrationEnabled(IntegrationName))`?", + "reference": "This follows the convention of each callback starting with the `IsIntegrationEnabled` check." + }, + { + "prediction": "I think we should use `isMonotonicValue` instead of `isDeltaValue` and `isMonotonicValue`.", + "reference": "this is not required to be part of this PR right? (With UpDownCounter being absent in .NET, we can make this hardcoded for now, i think)" + }, + { + "prediction": "I think this should be `IConnectionContextOnConnection` instead of `IConnectionContextOnConnection`.", + "reference": "Add the PipeFactory here" + }, + { + "prediction": "Why is this removed?", + "reference": "please add `var _ impltypes.ChaosImpl = (*Delegate)(nil)`" + }, + { + "prediction": "I think we should add a `@param clean = true` parameter to `ExpireSnapshots` to make it easier to read.", + "reference": "nit: is this added deliberately?" + }, + { + "prediction": "Use the new Ruby 1.9 hash syntax.
    Prefer single-quoted strings when you don't need string interpolation or special symbols.
    Prefer single-quoted strings when you don't need string interpolation or special symbols.
    Prefer single-quoted strings when you don't need string interpolation or special symbols.
    Prefer single-quoted strings when you don't need string interpolation or special symbols.
    Prefer single-quoted strings when you don't need string interpolation or special symbols.", + "reference": "Given the number of tests which need this (I think I counted seven) should we maybe just install this one globally? Is there even a place to do that? Something in `test_helper` maybe?" + }, + { + "prediction": "I think this should be `isPromiseLike(maybePromise)` and not `isPromiseLike(maybePromise)`", + "reference": "we don't use this anymore, so we can delete it." + }, + { + "prediction": "I think this should be `algoh telemetry configured from file`", + "reference": "nit: change to \"Telemetry configuration loaded from '%s'\"" + }, + { + "prediction": "Why is this change needed?", + "reference": "Why did this value change?" + }, + { + "prediction": "I think this should be `gcpduckv1alpha1` instead of `gcpduckv1alpha1`", + "reference": "maybe `duckpubsubv1alpha1` ?" + }, + { + "prediction": "I think this should be `manifest['applications']['gecko']['id']` instead of `manifest['applications']['gecko']['id']`", + "reference": "The id is not mandatory for web extensions. Could you update this to support a web extension without an id?" + }, + { + "prediction": "Why remove this?", + "reference": "I actually prefer them to be defined here. Client who calls `lib` should define the args, not `lib` itself." + }, + { + "prediction": "I think this should be `stdin.SetRaw()` instead of `stdin.SetRaw()`", + "reference": "I think this should've been done with the `defer`-named-return trick. I'll submit a PR for it." + }, + { + "prediction": "This should be `std::make_shared(*this, nano::tcp_endpoint(boost::asio::ip::address_v6::any(), config.websocket_config.port));`", + "reference": "The bind address should be configurable." + }, + { + "prediction": "Why do we need to do this?", + "reference": "Maybe the empty `delete()` should be implemented as default in the interface." + }, + { + "prediction": "I think this should be `src/caffe/test/test_data/sample_data.h5` instead of `src/caffe/test/test_data/sample_data.h5`", + "reference": "How to ensure CMAKE_SOURCE_DIR is set correctly?" + }, + { + "prediction": "I think this should be `init.SetBytes(0)` instead of `init.Bytes()`", + "reference": "safer to make a copy of incoming *big.Int" + }, + { + "prediction": "I think this should be `10 * time.Minute` instead of `10 * time.Minute`.", + "reference": "how did we choose this value? does this hold good for Windows too?" + }, + { + "prediction": "I think we should add `errNotEnabled = errors.New(\"Checkpoint/restore not supported\")` to the error message.", + "reference": "To follow the other build tags, maybe we can call it `criu`?" + }, + { + "prediction": "I don't think we need to change the default value here.", + "reference": "Should we load this from the config file too?" + }, + { + "prediction": "I think this should be `@every 5s` instead of `@every 5s`", + "reference": "Can you file an issue for this?" + }, + { + "prediction": "I think this should be `this[kIsMaster] == null`", + "reference": "@nbbeeken what were the cases where `!!this[kIsMaster]` was yielding an incorrect value? we should try to cover them in the tests" + }, + { + "prediction": "I think this should be `config.overwrite_transport_data(inventory['config']['transport'], config.symbolize_top_level_keys(inventory['target_hash']))`", + "reference": "This whole function feels messy. I don't have a better idea at the moment though." + }, + { + "prediction": "I think we should use `Integer.parseInt` instead of `Long.parseLong` here.", + "reference": "should use Number instead of Long" + }, + { + "prediction": "I think this should be `MockProvider` instead of `MockProvider`.", + "reference": "Can you rename this and the file `InfluxDBProvider` and `influxdb_provider.go` respectively?" + }, + { + "prediction": "`vchildren` is a `Array` object, so I think it's better to use `Array.isArray(vchildren)` instead of `Array.isArray(vchildren)`", + "reference": "This is the real culprit, as now vlen will always be a Number (and known to the compiler as such). You could probably go one step further and avoid the ToBoolean on `vchildren` as well by writing something like `vlen = (vchildren !== undefined) ? vchildren.length : 0` if that matches the contract." + }, + { + "prediction": "I think this should be `@BindView(R.id.txtNoDataString) TextView noDataString;`", + "reference": "missing space before `TextView`" + }, + { + "prediction": "I think this should be `if (propStream.read(openContainer)) { return ATTR_READ_ERROR; }`", + "reference": "so this attribute is used as u8 in code, but saves as int32? Why?" + }, + { + "prediction": "I don't think we need to change this to `adaptivescalar`", + "reference": "can RDSE be added to the list? It has its capnp files." + }, + { + "prediction": "I think this should be `reader` instead of `client.Reader`", + "reference": "These functions only ever read from the API and should always be reading from a cache, so I have made that explicit by expecting a Reader here and supplying a `cache.Cache` as the client." + }, + { + "prediction": "I think this should be `if (target == (app_pc)retaddr)` instead of `if (target == (app_pc)retaddr)`", + "reference": "No, we can't skip any of the mangling after the suspend point: this should follow the other mangling and undo its push." + }, + { + "prediction": "Why is this needed?", + "reference": "this is generated code.. these changes will need to be made in the code generator to have them stick." + }, + { + "prediction": "I think this should be `var shadowSupport = document.body && typeof document.body.attachShadow === 'function';`", + "reference": "Should we abstract this into a reusable utility so it doesn't have to get repeated in every test file needing Shadow DOM support?" + }, + { + "prediction": "I think this should be `runner` instead of `unified-spec-runner`", + "reference": "Maybe we rename this to `command_monitoring.test.js` to match the directory name change? Or would you rather do that as part of the greater test cleanup? I'm fine either way." + }, + { + "prediction": "I think this should be `String` instead of `String`", + "reference": "Why is this change necessary? `handleSingle()` will cast it to a string, no?" + }, + { + "prediction": "I think this should be `String.format(\"table(%s)\", hashCode())`.", + "reference": "This newly added method should be well defined, should it return `TableIdentifier` or just `String`?" + }, + { + "prediction": "I think this should be `Multimedia has %count% relations with some products`.", + "reference": "have a relation with a product" + }, + { + "prediction": "I think this should be `podExists` instead of `podExists`", + "reference": "I guess that there is still a window here, because the GC could happen between the `PodExist` and `Delete` calls. Would it be better instead to check `err` and allow it if it says \"pod has already been deleted\"?" + }, + { + "prediction": "Why is this removed?", + "reference": "SQLAlchemy's session management does magic to make sure that if the rollback fails you still get the original exception that caused the rollback. Also it looks nicer." + }, + { + "prediction": "Why is this change needed?", + "reference": "This switch statement can be removed. Just return q.items[act.Nonce] != nil" + }, + { + "prediction": "Isn't this change needed?", + "reference": "I think `==` for nodes is more readable than equals. An equals calls looks like it could be recursing, because intuitively two nodes are equal if their subtree are the equal. But everywhere you replaced, we don't want to test whether the subtrees are structurally equal, we want to know whether they're the same. Only `==` captures this intent, using equals obscures this. Not to mention that equals may NPE and is in that sense less ergonomic. I think we should enhance the rule with a list of types for which `==` is correct. Edit: in the meantime i think we could suppress those new violations..." + }, + { + "prediction": "I think this should be `Filter the benchmarks by name using glob pattern(s). Optional.`", + "reference": "What's the scenario for passing multiple filters?" + }, + { + "prediction": "why not use `std::get<0>(logEntry);` here?", + "reference": "move to after check log.empty()" + }, + { + "prediction": "I don't think we need to import note here.", + "reference": "This line needs to be removed" + }, + { + "prediction": "I think this should be `com.google.cloud.build.build.v1.build.statusChanged`", + "reference": "Can we delete such const like `CloudBuildSourceEvent` and `CloudBuildSourceBuildId` since all those are contained under schemas/v1?" + }, + { + "prediction": "I think this should be `vsphere-platform-name`", + "reference": "This is unused." + }, + { + "prediction": "I think this should be `new CompositePropagator(new System.Collections.Generic.List())`.", + "reference": "Any reason not to put `using System.Collections.Generic` (guess there shouldn't be naming conflicts)?" + }, + { + "prediction": "I think this should be `@video = Video.find(params[:video_id])` instead of `@video = Video.find(params[:video_id])`", + "reference": "Could the name of this controller just be shortened to `TwitterCardsController`? Is the `Player` there adding information?" + }, + { + "prediction": "I think this should be `return uh.Dynamic && uh.Fails >= u.MaxFails && u.MaxFails != 0`", + "reference": "Backends with hostnames that depend on the request are always up?" + }, + { + "prediction": "I think this should be `from jsonpointer import JsonPointerException`", + "reference": "I'd rather catch those to `utils.py` and raise a simple ValueError from them. From the resource point of view, these are details of implementation" + }, + { + "prediction": "Why is this removed?", + "reference": "make this 1.0 ? I don't think all that many people do `language: julia` without any `julia:` specifiers, but may as well keep that possible?" + }, + { + "prediction": "I think this should be `AZURE_KEYVAULT_AUTH_VIA_CLI` instead of `AZURE_KEYVAULT_AUTH_VIA_CLI`.", + "reference": "nit: `AZURE_KEYVAULT_AUTH_VIA_CLI` is defined by us, so it might be helpful to differentiate it from azure's env names. Maybe starts with `GOCDK`." + }, + { + "prediction": "Why is this needed? I think it's better to use `*session.Storage` instead of `*session.Storage`.", + "reference": "Depend on interfaces not on structures" + }, + { + "prediction": "I think this should be `gStorageServer->stop();` instead of `notifyStop();`", + "reference": "This fix looks good. My concern, don't forget to fix metad too!" + }, + { + "prediction": "I think it would be better to use `!(earliest.BID() == LocalSquashBranchID && latest.BID() == LocalSquashBranchID)` instead of `!(earliest.BID() == LocalSquashBranchID && latest.BID() == LocalSquashBranchID)`", + "reference": "Just noticed this nil context. Perhaps plumb through ctx too, or change to `Debug`?" + }, + { + "prediction": "Align the elements of a hash literal if they span more than one line.", + "reference": "Does it send requests with urlencoded bodies anywhere? I thought it sends only json. Maybe content-type should be `application/json` by default?" + }, + { + "prediction": "I think this should be `const uint16_t DEFAULT_ROS2_SERVER_PORT = 11811;` and `const char * DEFAULT_ROS2_SERVER_GUIDPREFIX = \"44.49.43.53.45.56.45.5F.30;`", + "reference": "Again use of `constexpr` is recomended." + }, + { + "prediction": "I think this should be `from datashader.layout import LayoutAlgorithm as ds_layout`", + "reference": "Minor point but I would call this ``redim_graph`` instead." + }, + { + "prediction": "I think this should be `klog` instead of `klog`", + "reference": "As I was trying to figure out how the error messages are written out, since they are returned from `getOrCreate` and `reconcile`, it looks like we are using plain `klog` to write them out instead of using the logger from the scope above" + }, + { + "prediction": "Why is this removed?", + "reference": "Now it's double logging, is not it? Because `service.ipForward.Enable()` logs extra `warning`" + }, + { + "prediction": "I think this should be `/set_home_loc` instead of `/set_home_loc`", + "reference": "Whatever the decision is about the request type to use, this should only match what is needed and not the other one." + }, + { + "prediction": "I think this should be `if (localConnection && localConnection.type == Blockly.OUTPUT_VALUE)`", + "reference": "...and in turn, this should probably be var updatePreviews = true; if (!(localConnection && localConnection.type == Blockly.OUTPUT_VALUE) && (Blockly.localConnection_ && Blockly.highlightedConnection_)) { since the first clause is a no-op. If you want to leave it this way for clarity, that's fine too." + }, + { + "prediction": "I think this should be `force_rebuild=False` instead of `force_rebuild=False`", + "reference": "Please remove this TODO, since they will not apply anymore after you are done. :) Can you please remove this everywhere else in this PR?" + }, + { + "prediction": "I think this test should be `enum` instead of `enum`", + "reference": "This seems like an incomplete schema definition. will that have any effect on the tests?" + }, + { + "prediction": "I think this should be `if (filename != nullptr && CheckCanLoadFromBin(filename)) == \"\"`", + "reference": "The testing cases are failing because `SetHeader` does not only handle cases where input are from files. It also reads categorical feature indices from the config parameters (see the part outside the `if (filename != nullptr) { ... }`). Skipping `SetHeader` directly here will cause errors when we load data from numpy or pandas arrays (where `filename == nullptr`) and use categorical features. So I think we should move the the check `filename != nullptr && CheckCanLoadFromBin(filename) == \"\"` into `SetHeader`. That is, we change `if (filename != nullptr) { ... }` into `if (filename != nullptr && CheckCanLoadFromBin(filename) == \"\") { ... }`" + }, + { + "prediction": "Why is this change needed?", + "reference": "I think we should change the variable name of `err` in `if err, ok := err.(*exec.ExitError); ok `, this re-assignment of `err` still affects the next `else` branch" + }, + { + "prediction": "I don't think we need to check if the response is successful.", + "reference": "`Status` has identical semantics with `StatusOr`." + }, + { + "prediction": "I think this should be `/mutate/addlabels` instead of `/mutate/addlabels`", + "reference": "why is this named in a different style from other paths?" + }, + { + "prediction": "I think this should be `log.Info(\"Cluster Controller has not yet set OwnerRef\")`", + "reference": "Swapped these to ensure that we aren't passing a nil cluster in to util.IsPaused" + }, + { + "prediction": "I think this should be `platformPkgManagerTuple`", + "reference": "I don't see pkgManager used anywhere, is there a reason we need this?" + }, + { + "prediction": "I don't think we need to change the `instanceDir` here.", + "reference": "A bit late, but I don't think this is necessary, as all callers will send absolute paths. And if you ever get a relative path, resolving it with `toAbsolutePath()` leads to it being relative to whatever CWD the app is started with, while the typical resolving of relative `instanceDir` is to resolve it relative to CoreContainer#coreRootDirectory." + }, + { + "prediction": "I think we should use `modelSchema.paths[localField]` instead of `modelSchema.paths[localField]`.", + "reference": "There's an awful lot of test failures here because `localFieldPathType.schema` may not contain a `getters` array." + }, + { + "prediction": "Line is too long. [89/80]", + "reference": "Mysql allows for `||` concatenation (e.g. `firstname||' '||surname`) if you enable it: `set sql_mode=PIPES_AS_CONCAT;`. I think this check is safer though" + }, + { + "prediction": "Why is this needed?", + "reference": "NOTE: this is the default ENS registry address. If the ENS suite is deployed from the current builds to any chain, it will always be found at this address." + }, + { + "prediction": "I think this should be `vanity` instead of `vanity`", + "reference": "I'm curious why you are using `draw` in this route file?" + }, + { + "prediction": "Shouldn't this be `GetRawDiff(models.RepoPath(userName, repoName), ctx.Params(\":sha\"))`?", + "reference": "Those variables are only been used once, I think we don't need to create them at all, just pass values to the `GetRawDiff` directly." + }, + { + "prediction": "Why is this removed?", + "reference": "I like the idea of replacing all the `#if NET461` with `#if NETFRAMEWORK`... is that worth doing now? Means fewer changes if we go to 4.7.2 at some point " + }, + { + "prediction": "I think this should be `clutchProvider` instead of `clutchProvider`", + "reference": "to fix the docs build failure, make this const var named without the suffix `Name`" + }, + { + "prediction": "I think this should be `fallthrough` instead of `fallthrough`", + "reference": "This bugfix also included, in case a subjectAlternativeName was present in the cert, then URIs (e.g SVID SPIFFE auth) would not have been attempted." + }, + { + "prediction": "I think this interface should be `FileProvider` instead of `FileProvider`.", + "reference": "Same here. Feels like the wrong location." + }, + { + "prediction": "I think this should be `from qutebrowser.browser.downloads import download_path_suggestion as download_path_suggestion`", + "reference": "Please make `_path_suggestion` public (i.e. remove the `_`) in `downloads.py`." + }, + { + "prediction": "I think this should be `external-port-443-is-local-port`", + "reference": "Woah, these flag names gotta get shorter. (Edit: I'll try to suggest some if needed, will think on it.)" + }, + { + "prediction": "I think this should be `app.secrets.secret_key_base` instead of `app.config.secret_key_base`", + "reference": "Is this the code that's supposed to use the Rails app's only when in Rails4? What's the point of the first `if app.respond_to?(:secrets)`, both the `if` and the `elsif` have the same body, is only the second one needed? If `app.config` has a `secret_key_base`, then use it, the end. Is there a need for first checking if `app.respond_to?(:secrets)`?" + }, + { + "prediction": "I think this should be `m_is_objc_enum = enum_decl->isObjC();`", + "reference": "Does this not apply to C enums on Linux?" + }, + { + "prediction": "I think this should be `isRetryableWriteError(err)` instead of `isRetryableWriteError`", + "reference": "Should this check if the error is `RetryableWriteError` before adding the label?" + }, + { + "prediction": "I think we should be able to use `require('get-form-data')` instead of `require('get-form-data')`.", + "reference": "Oh wow, that's one complicated require :)" + }, + { + "prediction": "I think this should be `request_context.Context`", + "reference": "do you mean how to \"use\"" + }, + { + "prediction": "I think we should be able to check if the ref exists on the backing node.", + "reference": "We can't really test this anymore since ref and props.ref are at the backing node level now" + }, + { + "prediction": "Shouldn't this be `currentTask`?", + "reference": "Did you intend to set this in the constructor?" + }, + { + "prediction": "I think we should use `defaultAMILookup(\"ubuntu\", \"18.04\", machine.Spec.Versions.Kubelet)` instead of `defaultAMILookup(\"ubuntu\", \"18.04\", machine.Machine.Spec.Versions.Kubelet)`", + "reference": "This looks fine as a first approach, and can we put a TODO here about ubuntu 18.04 being hardcoded?" + }, + { + "prediction": "Why is this needed?", + "reference": "This isn't strictly needed since lmdb / leveldb data that is unencoded does not require OpenCV IO. I think `DataLayer` should only require lmdb / leveldb. If one tries to use encoded data without OpenCV the `DataTransformer` guards will report the dependency failure." + }, + { + "prediction": "I think this should be `hlog.WithError(err).Error(\"unable to apply hiveapi cluster role binding\")`", + "reference": "Should we take out this change? This was only in there to try to brute force the start of the apiserver yesterday." + }, + { + "prediction": "Align the elements of a hash literal if they span more than one line.
    Prefer single-quoted strings when you don't need string interpolation or special symbols.
    Prefer single-quoted strings when you don't need string interpolation or special symbols.", + "reference": "I worry that this association name is a bit confusing. Yoz was asking me about the concept of completion yesterday, which is why I think of it. It wasn't clear to him exactly what it was. what about calling this a `step_completer` ? we know that a proposal has many steps, so I think that might be clearer. in the future, we also might want the rename the `approver` relation because a step is not always an approval these days." + }, + { + "prediction": "Why is this removed?", + "reference": "Just add a to-do saying we need to add api-version in the check some time in the future when we enable the single-swagger spec mode for validation." + }, + { + "prediction": "I think this should be `setDefaultDatasource('thelia');`", + "reference": "@lunika Please see this. It allows us to do `Propel::getConnection()` easily, as we have only one database." + }, + { + "prediction": "I think this should be `scope.Span as IHasTags` instead of `scope.Span as AspNetTags`", + "reference": "Not related to this particular cast but I wonder if we shouldn't have a cast helper that would log if null to gain visibility." + }, + { + "prediction": "Why is this needed?", + "reference": "why do we need to explicitly declare these fields?" + }, + { + "prediction": "Why is this change needed?", + "reference": "Note that there are multiple OAI servers -- that's why `$serverClass` is a variable here. You'll want to fetch `$serverClass` from the service manager rather than a hard-coded value, and also set up a module.config.php for the authority record version, `VuFind\\OAI\\Server\\Auth`. Should be easy enough since it can share the same factory." + }, + { + "prediction": "Line is too long. [92/80]", + "reference": "This is no longer needed and should be removed." + }, + { + "prediction": "I think this should be `*json.RawMessage` instead of `*json.RawMessage`.", + "reference": "could use named return params here to avoid declaring the opts, and using naked returns instead." + }, + { + "prediction": "I think this should be a ``", + "reference": "this is an unrelated fix. I noticed when an instagram carousel post is mixed with images and videos, the videos don't come with thumbnails, so I am adding a fallback thumbnail for this case." + }, + { + "prediction": "Why is this change needed?", + "reference": "\"... after protocol version 1\"?" + }, + { + "prediction": "I think this should be `OBJECT([^:\\{\\}]|\\{[^:]+\\})+::=\\s*\\{([^\\}]+)\\}` instead of `OBJECT([^:\\{\\}]|\\{[^:]+\\})+::=\\s*\\{([^\\}]+)\\}`", + "reference": "Is there a unit test that covers this regexp? I am afraid that changing it might break things =/" + }, + { + "prediction": "I think this should be `@`", + "reference": "This change is okay IMO because an `@` variable in Ruby is not a reference -- `@` variables are instance variables. Also, it's never used by the Ruby transformers." + }, + { + "prediction": "Why is this change needed?", + "reference": "Why this change was needed? Because in `po` files it's with curly braces?" + }, + { + "prediction": "I think this should be `off + 0x40000 < 0x200000`", + "reference": "Wait -- where did this change come from? This seems unrelated to trace building and seems like it could affect basic execution, unlike the rest of this PR which is all under the off-by-default trace option. Please separate this into its own PR and probably ask @AssadHashmi to review." + }, + { + "prediction": "I think this should be `@docusaurus/core/lib/babel/preset` and not `@docusaurus/core/lib/babel/preset`.", + "reference": "seems to be redundant (mention `docusaurus` )" + }, + { + "prediction": "I think this should be `cherrypick` instead of `cherrypick`", + "reference": "Can we combine this with the Rollback API? We could still support the `rollback` method here, but combine `Rollback` and `CherryPick` into something like `ManageSnapshots`. Then we could reuse logic for enforcing checks of the current snapshot. What do you think?" + }, + { + "prediction": "I think this should be `manager_env_prefix` instead of `master_env_prefix`.", + "reference": "Maybe just `env_prefix`, I don't think this is referring to the WQ manager." + }, + { + "prediction": "Why is this removed?", + "reference": "Unrelated line change :)" + }, + { + "prediction": "I think we should use `utilwait` instead of `utilwait`", + "reference": "I raised an eyebrow at making `net` depend on `k8s.io`, but it seems we're already doing that." + }, + { + "prediction": "I think we should use `countlyGlobal.company` instead of `countlyGlobal.countly`", + "reference": "I think ticket meant, not applying replacement in this method, but rather applying encodeSomeHtml to each and every localization string" + }, + { + "prediction": "I don't think we need to check for `error == null` here.", + "reference": "ticket for the 4.0 epic?" + }, + { + "prediction": "why not use `cfg.model.neck.rfp_backbone.pretrained`?", + "reference": "`cfg.model.get('neck')` will return None if neck does not exist, thus we can omit the default value." + }, + { + "prediction": "I don't think we need to change the behavior of `Blacklight::Solr::FacetPaginator` here.", + "reference": "Trailing whitespace detected." + }, + { + "prediction": "I think this should be `cflags` instead of `cxxflags`", + "reference": "I don't see why a `cxxflags` key is necessary? C flags are important in the target file because they define things like the float ABI. But these flags are also used for C++. I can't think of a reason why you would want to configure C++ flags in a target file." + }, + { + "prediction": "(style) line over 80 characters", + "reference": "Update year range in Copyright notice, and elsewhere too." + }, + { + "prediction": "Why is this change needed?", + "reference": "Can we update this PR to not be a breaking change? i.e. if a user specifies `accessKeyID`, it is still used. But if a user specifies `accessKeyIDSecretRef`, it takes precedence?" + }, + { + "prediction": "Shouldn't this be `!params[:read_tou] || params[:read_tou] == \"0\"`?", + "reference": "You don't actually need both tests here as \"truthiness\" means that `\"0\"` is false and hence the first test will be true..." + }, + { + "prediction": "I don't think we need the `click_link` here.", + "reference": "Everything else in here is using `I18n`. Should we do that here to be consistent?" + }, + { + "prediction": "Why is this change needed?", + "reference": "What do you think about changing the ordering to be `::`? I think it matches the most with what we previously had so that it doesn't change too much for our users." + }, + { + "prediction": "Why is this change needed?", + "reference": "I'm fairly sure this precondition is always true due to the mod (%)" + }, + { + "prediction": "I think this should be `assert !seen.contains(info.info.name);`", + "reference": "I love seeing diffs like this one, adding a `String` message to an otherwise cryptic `assert`! It makes me realize you must have had a hellacious debugging session!" + }, + { + "prediction": "I think this should be `migrate()` instead of `migrate()`.", + "reference": "1. No logger exists to produce a message 2. Can't assume the latest version because missed version means 0." + }, + { + "prediction": "I think this should be `hash_file` instead of `hash_file`", + "reference": "I saw a wrong reuse of the cache between a partial analysis of a single file and a full run where errors due to lack of context on the first partial run was reported on the full run. Shouldn't we use a hash that is composer.lock + psalm.xml + command line to be safe?" + }, + { + "prediction": "I think this should be `ks.DatetimeIndex` instead of `ks.DatetimeIndex`.", + "reference": "Could you also update it in `at_time`?" + }, + { + "prediction": "I think this should be `options.get(\"locality\").map(Boolean::parseBoolean).orElse(LOCALITY_WHITELIST_FS.contains(scheme));` or `options.get(\"locality\").map(Boolean::parseBoolean);`", + "reference": "Because schema is non-final we can't just switch this to a lambda" + }, + { + "prediction": "I think this should be `MustBeRethrown(\"While resolving function '{0}' follwing exception occured: {1}\", functionName, exception))`", + "reference": "proposal: **always** add the exception to the end of the message. So no need to to pass exception twice (implicit and explicit). Need a lot of changes." + }, + { + "prediction": "I think it would be better to have a method `setInvocationMonitorType(InvocationType.PRODUCER).increment()` and `monitor.setInvocationMonitorType(InvocationType.PRODUCER.equals(event.getInvocationType()))` and `monitor.setInvocationMonitorType(InvocationType.PRODUCER.equals(event.getInvocationType()))`", + "reference": "why? event.getInvocationType is not you want?" + }, + { + "prediction": "I think this should be `git_hash` instead of `git_hash`", + "reference": "nit: how about `GitSHA`?" + }, + { + "prediction": "I think this should be `FAIL_DIR` instead of `FAIL_DIR`.", + "reference": "If you move the other functions, this should also be moved to `makeflow_gc.h`." + }, + { + "prediction": "I think this should be `if 'duration_ms' in listen['track_metadata']['additional_info']`", + "reference": "This whole block bugs me. Expire_time to me suggest that an absolute time of when something happens and duration is an interval of time. While the code looks correct, it feels awkward to read." + }, + { + "prediction": "I think this is the only place where the vnode is created is the same as the one in `coerceToVNode`", + "reference": "Can we add `_dom` as an argument to createVNode here? I think it might be shorter (could totally be wrong!)" + }, + { + "prediction": "(style) line over 80 characters", + "reference": "I think that the iret handling is not yet good." + }, + { + "prediction": "Why is this change needed?", + "reference": "Huh, that's kinda weird. I get it, but it's unexpected to me..." + }, + { + "prediction": "Why did you remove this?", + "reference": "why is this removed? it is important when you upload from stream of unknown size" + }, + { + "prediction": "Align the elements of a hash literal if they span more than one line.", + "reference": "Out of curiosity, why is this needed? Does it enforce what class can be assigned?" + }, + { + "prediction": "I think this should be `os.Chmod(addr.String(), os.ModePerm)`", + "reference": "non-blocking: Now that we have a handful of statements which deal with creating a listener, it may make sense to introduce a `createListener` method or something similar" + }, + { + "prediction": "I think this should be `null!`.", + "reference": "factory should be stateless if possible, looks like much complexity added" + }, + { + "prediction": "I think this should be `self.output().table.project_id` or `self.output().table.project_id`", + "reference": "Could you please add short description for the default value as well?" + }, + { + "prediction": "I think we should log the error instead of logging it.", + "reference": "Leave a TODO message to say we will fix the log level in the future, once committing the block and the state become a transaction" + }, + { + "prediction": "I think this should be `DELETE_PARQUET_ROW_GROUP_CHECK_MIN_RECORD_COUNT_DEFAULT`.", + "reference": "this can be integer" + }, + { + "prediction": "I think this should be `font: {{ font['completion.category'] }}`", + "reference": "nitpick: Please remove the blank line here" + }, + { + "prediction": "Layout/EmptyLinesAroundClassBody: Extra empty line detected at class body beginning.", + "reference": "What is this for? The only methods I can see by that name in the rails doc are generating a foreign key name from a model class name but you seem to be giving a key name as argument?" + }, + { + "prediction": "Shouldn't this be `authenticationPlugin.plugin.getMetricRegistry() == null`?", + "reference": "Is this second check necessary? we know that just after the plugin was created its metricRegistry is null, it's set only after `initializeMetrics` has been called." + }, + { + "prediction": "I think this is a bit confusing, but I think it would be better to use `player->getAccountType() < it->second.getRequiredAccountType()` instead of `it->second.getRequiredAccountType()`", + "reference": "shouldn't this be `return TALKACTION_BREAK;` as the player does not meet the required group access?" + }, + { + "prediction": "I think this test should be `minerNode1.verify(clique.blockIsCreatedByProposer(minerNode1));` and `minerNode1.verify(clique.noNewBlockCreated(minerNode1));`", + "reference": "does this still work if minerNode1 has already proposed a block before 2 & 3 are stopped?" + }, + { + "prediction": "I think it would be better to use `logging.FromContext(ctx).Desugar().Error(\"Adding log line for the TestCloudLogging E2E tests\", zap.String(v1.LoggingE2ETestFieldName, v))` instead of `logging.FromContext(ctx).Error(\"Adding log line for the TestCloudLogging E2E tests\", zap.String(v1.LoggingE2ETestFieldName, v)`", + "reference": "I am wondering if we can either make this a feature or have a way to turn it off in production. My concern is that we might be adding more of these kind of code in the future." + }, + { + "prediction": "Why is this change needed?", + "reference": "We can just use `.stack()` here? Then I guess we can reuse when supporting multi-index columns." + }, + { + "prediction": "I think this should be `bool.IsNullOrEmpty(setting)` instead of `bool.FalseString`", + "reference": "What are the possibilities here? Since we plan on supporting .net standard 2.0 from day 1, we might as well tackle that now." + }, + { + "prediction": "Why is this change needed?", + "reference": "should the parameters be called reference or context?" + }, + { + "prediction": "I think we should use `byteslice` instead of `byteslice`", + "reference": "Do we need to also change `length` here (and below) to `bytesize`? Perhaps we ought to make a copy of `in_buffer` encoded as binary and then the existing algorithm should work." + }, + { + "prediction": "I think this should be `q.yank_text = url.toDisplayString()`", + "reference": "This should be `toDisplayString()` to not contain e.g. passwords." + }, + { + "prediction": "I think this should be `config.autocomplete_enabled = true` instead of `config.autocomplete_path = 'suggest'`", + "reference": "Can we just say that having a non-nil `autocomplete_path` implies that autocomplete is enabled?" + }, + { + "prediction": "I think we should move this to `github.com/gogo/protobuf/proto`", + "reference": "Note that the package github.com/golang/protobuf/proto is deprecated. We're instructed to use the \"google.golang.org/protobuf/proto\" package instead. I didn't want to change it now to avoid intrusive changes whose consequences are, currently, unknown." + }, + { + "prediction": "Why remove this?", + "reference": "Are these gone routes? Do we need to 301 them?" + }, + { + "prediction": "I don't think this is needed.", + "reference": "move them to internal group of imports" + }, + { + "prediction": "I think this should be `glog.Errorf(\"Please handle cStorPool '%s' event on '%s'\", string(cStorPoolGot.ObjectMeta.Name), string(cStorPoolGot.ObjectMeta.Name))`", + "reference": "can we rewrite this as: `ignored event '%s' for cstor pool '%s'`" + }, + { + "prediction": "I don't think we need to add this to the `ClientRequest` class, since it's only used in the `ClientRequest` class.", + "reference": "not all client data types have an approving official (eg: 18F does not). do we still want to include the relation here?" + }, + { + "prediction": "Why not use `WebElement` instead of `WebElement`?", + "reference": "This change should also probably go into the corresponding method of the abstract By class?" + }, + { + "prediction": "I think we can remove the `req.get('host')` parameter from `req.get('host')`.", + "reference": "why this remove?" + }, + { + "prediction": "I think we should use `io.ReadCloser` instead of `FileReader`.", + "reference": "As the test failures indicate, making this change is going to mean changing everything which currently implements this interface." + }, + { + "prediction": "I think this should be `http://forum.upcase.com`", + "reference": "Do we want to redirect this to the forum or something in case people have it linked/bookmarked?" + }, + { + "prediction": "Why is this change needed?", + "reference": "@peterzimon came up with this 'NM' piece as a placeholder for New Member initials, without this the screen looks broken. It changes to normal initials calculation once email or name is entered. Lmk if you'd like to put something different here ;)" + }, + { + "prediction": "I think we should add `subscriptions: attr('member-subscription')` here.", + "reference": "@kevinansfield Would be cool if you can take a if this is the best way to add `subscriptions` info on member model. This uses the transform + separate model definition way which seemed to be the right way from other references in Admin " + }, + { + "prediction": "I don't think this is needed anymore.", + "reference": "This is the common way of dealing with optional dependencies" + }, + { + "prediction": "Why is this change needed?", + "reference": "nit: we can replace all `kr` in this file with like `src`." + }, + { + "prediction": "Why do we need to set `readPreference.preference` here?", + "reference": "same concern here as above" + }, + { + "prediction": "I don't think we need a `delete` method here, but I think it's better to use `criteria.options.fetch(:read)` instead of `criteria.options.fetch(:read)`", + "reference": "Thank you for this, I gather this repairs failures that I've seen in another PR." + }, + { + "prediction": "I think this should be `allManifests.flatMap(new ReadManifest(ioBroadcast), Encoders.STRING()).distinct();`", + "reference": "This place probably makes sense to me. We can consider exposing an argument to make the dedup step optional (I am not sure it is a good idea but I want to think this through together). The dedup step we are adding is going to trigger a shuffle. Technically, we are fine in the existing expire snapshots action as it does the dedup in `except`. The question is what kind of performance impact deduplicating here will have. We only have duplicates if multiple manifests reference the same files. In `rewrite_manifests` procedure, we rewrite all manifests, meaning we produce a snapshot with new manifests where entries are old data files. Also, there are updates and deletes that may rewrite manifests. I think deduplicating here makes sense to me in all cases. Thoughts, @rdblue @flyrain @RussellSpitzer @karuppayya?" + }, + { + "prediction": "I think this should be `logrus.Warn(\"error removing node from etcd:\", err)`", + "reference": "can we move the code before deleteNodeFromDB ? this way even if the node crashes after remove config we can still re-run decommission again ?" + }, + { + "prediction": "why is this change needed?", + "reference": "Seems the default value of `melt`'s `var_name` at namespace.py should be changed as well." + }, + { + "prediction": "I think this test should be `_test_parse_cloudtrail_with_botocore`", + "reference": "I think botocore's serializer should already create the correct headers. However, they are currently not used in `_botocore_parser_integration_test`(line #217). Maybe we could remove the headers here and just use a fallback in the `_botocore_parser_integration_test` (i.e. use the given headers if they are set, otherwise use the headers generated by botocore's serializer)?" + }, + { + "prediction": "I don't think we need to change this message to `messages.delete_singular`.", + "reference": "This code is passing a non localized string when it should be passing in a localized string or it should use the name of the item being deleted." + }, + { + "prediction": "Why do we need this?", + "reference": "in case you want to rename one of the plugins when instantiating, from options?" + }, + { + "prediction": "I think this should be `clang-func-mapping` instead of `clang-func-mapping`", + "reference": "This default variable should be moved into a config variable, created by `package_context`, and read from `config\\package_layout.json`." + }, + { + "prediction": "I think it would be better to use `.toBe(3)` instead of `.toBe(3)`", + "reference": "Can I ask you to add a new line after `const` assignment? I believe that this increases the code readability by encapsulating assignment and logic (expecting) blocks." + }, + { + "prediction": "I think this should be `#ifdef KOKKOS_IMPL_TURN_OFF_CUDA_HOST_INIT_CHECK`", + "reference": "So the intention is you configure with `-CMAKE_CXX_FLAGS=\"-D KOKKOS_IMPL_TURN_OFF_CUDA_HOST_INIT_CHECK\"`?" + }, + { + "prediction": "I think this should be `1.0.0` instead of `0.0`.", + "reference": "This was a bug." + }, + { + "prediction": "Shouldn't this be `array_key_exists('lazy', $attributes) ? array_key_exists('lazy', $attributes['lazy']) : true`?", + "reference": "Is OK that we don't have some placeholder?" + }, + { + "prediction": "Why is this needed?", + "reference": "Sectorbuilder behaves differently depending on whether it's given 1 or more threads. It won't seal if only given 1." + }, + { + "prediction": "I don't think we need to import static here.", + "reference": "Sort of believe We should put MetricManager in constructor parameter given this case." + }, + { + "prediction": "Why is this needed?", + "reference": "Do we need to check `fieldId` is larger than 1000?" + }, + { + "prediction": "I think this is the only place where we check acked_status() is called.", + "reference": "I think this should be called after the if below (the one for disable positive acks)" + }, + { + "prediction": "I don't think we need to change the method name to `listPartitionURI`.", + "reference": "I'd like to avoid changing this method since it is public and using a URI will probably change behavior for users passing strings (String -> URI -> Path instead of String -> Path)." + }, + { + "prediction": "I think this should be moved to the `TestSharedCredentialsProvider` package.", + "reference": "Should these restore the stashed env after the test runs?" + }, + { + "prediction": "I think this should be `all_defaults = scope.args.defaults + [d for d in scope.args.kw_defaults if d is not None]`", + "reference": "We're calculating the full list of kwargs here (even if the first element of the list would return True) so we could improve performance by using a generator line 408 in ``for default_node in all_defaults:``." + }, + { + "prediction": "I think this should be `accountDeltaCount` instead of `ndeltas`", + "reference": "Can ndelta differ depending on when the deltas are compacted? That is, when intermediate updates are dropped?" + }, + { + "prediction": "I think this should be `

    This rule needs a \"xpath\" property value in order to function.

    `", + "reference": "Our checkstyle config likes it better when the `

    ` is before the first word of the next paragraph, and not on a blank line" + }, + { + "prediction": "I think this should be `criuServer.Close()` instead of `criuServer.Close()`", + "reference": "This looks to be the only place where we return early before the close below, so if the \"double close\" is bothering people, closing manually here (and removing the `defer`) could be an option" + }, + { + "prediction": "I think we should use `npm run test:js` instead of `npm run test:js`", + "reference": "This task can probably be deleted since we don't need gulp to run Jest." + }, + { + "prediction": "I don't think this is a good idea, but I'm not sure if this is the right thing to do.", + "reference": "Doesn't this need to include `Errno::ECONNRESET` to fix the issue?" + }, + { + "prediction": "I think this should be `#=> \"Quentin Tarantino\"`", + "reference": "never heard of a qirector... what's their role again? (also should be 'for a movie')" + }, + { + "prediction": "I think we should return `ERR_KEY_NOT_FOUND` instead of `ERR_KEY_NOT_FOUND`.", + "reference": "Implement the \"collect all props for one vertex\" logic inside QueryVertexPropsProcessor" + }, + { + "prediction": "I think this should be `stream.eof()` instead of `stream.eof()`.", + "reference": "This is to prevent parsing things like \"1.1\" as \"1\" until we implement it properly." + }, + { + "prediction": "Why do we need to use `_getCheckpointParentDir` here?", + "reference": "Can we change `_getCheckpointParentDir` to be a public function explicitly? It seems like something that clients of experiment runner may wish to use." + }, + { + "prediction": "I think this should be `UIAGroup.addItem(wx.CheckBox(self, label=_(\"Use UI Automation to access the Windows Console (restart NVDA for changes to take effect)\"))`", + "reference": "Why is a restart necessary?" + }, + { + "prediction": "I think this should be `if !cfg.External.Enabled() {` instead of `if !cfg.External.Enabled() {`", + "reference": "Should setting the task runtime also go under the above if condition?" + }, + { + "prediction": "I think this should be `defaultListEntriesPageSize` instead of `defaultListEntriesPageSize`", + "reference": "SPIRE uses the leadingLowerCase convention for unexported constants" + }, + { + "prediction": "I think we should move this to the `using Newtonsoft.Json;` block.", + "reference": "The newest JSchema code generator orders `System` usings first." + }, + { + "prediction": "Shouldn't this be `tableSchema.caseInsensitiveSelect(selectedColumns)`?", + "reference": "I understand that we want to have a possibility to configure the IcebergInputFormat to be case sensitive or case insensitive since it can be used by other MR jobs as well. Do we want to allow the users of Hive to shot themselves on the foot and enable case sensitivity? My first guess would be that we should not use the configuration here, just go with `false`, but if you have some specific use-case in your mind I can be easily convinced " + }, + { + "prediction": "I think this should be `pool.PoolAddEventHandled = true` instead of `pool.PoolAddEventHandled = false`", + "reference": "Will the above call to cStorPoolAddEventHandler() get executed in the same thread as this line?" + }, + { + "prediction": "I think this is a bit confusing, but I think it would be better to use `IsAAllocaInst()` instead of `IsAAllocaInst().IsNil()`?", + "reference": "I don't think alloca instructions are always at the start of the entry block. I think it would be safer to check the entire entry block for alloca instructions, just in case some are not the first instruction. (Technically they can be anywhere in the function but we check in other places that this isn't possible)." + }, + { + "prediction": "I think this should be `VXLANVNI` or `VXLANVNI`", + "reference": "Why isn't this 4789 (which I think is the Felix default)?" + }, + { + "prediction": "I think this should be `FailureImportOperations` instead of `FailureImportOperations`", + "reference": "Can this be `Import operations failure`? In addition, is this the right time to change the variable names? e.g. `ReasonImportOperationsFailure`, `ReasonImportFailure`, `ReasonImportSuccessful`, `ReasonCreateResourceFailure`, `ReasonImportResourceSuccessful` Naming convention that i have assumed here is as follows: `Reason`" + }, + { + "prediction": "(style) line over 80 characters", + "reference": "I suspect this isn't needed because I think `rb_intern` gets marked already." + }, + { + "prediction": "I think this should be `log.info(\"In dev mode. Copying required files in case we're using a WebDriver-backed Selenium\");`", + "reference": "This change is incorrect: the current log level is correct." + }, + { + "prediction": "I think we should use `VERSION_LOW_CARDINALITY_LEAVES` instead of `VERSION_LOW_CARDINALITY_LEAVES`.", + "reference": "Can you add a space before the equal sign? There are a couple other places where spaces are missing in this PR." + }, + { + "prediction": "I think we should remove this TODO.", + "reference": "Please follow the todo naming convention." + }, + { + "prediction": "I think we should add the `Status` field to the `Status` field, since the `Status` field is a field of the `Status` field of the `Status` field of the `Status` field of the `Status` field of the `Status` field of the `Status` field of the `Status` field of the `Status` field of the `Status` field of the `Status` field of the `Status` field.", + "reference": "These are no longer used and changes should instead be made directly to the files in `deploy/chart/crds` /assign @JoshVanL /unassign" + }, + { + "prediction": "I think you should use `tf.cat(xy, pred_map[..., 2:4])` instead of `tf.cat(xy, pred_map[..., 2:4])`", + "reference": "Is this really necessary to work around this way? The old version works fine with me when converting to ONNX." + }, + { + "prediction": "Why is this change needed?", + "reference": "Same as above: don't start error strings with a capital letter, and don't fix unneeded things in an unrelated commit ;)" + }, + { + "prediction": "I think this should be `@logger.debug` instead of `@logger.debug`", + "reference": "Is this a testing debug statement?" + }, + { + "prediction": "I think this should be `var object = parse(url, options, function(err, connectionStringObject) { console.log(err, connectionStringObject); });`", + "reference": "you'll need to wrap the _whole thing_ within this async call (or refactor it so everything below is in a new temporary function). The code below this section depends on a value for `object` after the parsing occurs, but what you're doing here is kicking off a race condition where `object` is null, but _might_ parse quickly enough to assign it the parsed parts. Instead, you need to do everything that depends on the parsed object in the callback of `parse`." + }, + { + "prediction": "I think this should be `std::unique_lock lk(mutex);`", + "reference": "This is now going to be protecting `stopped` when it doesn't need to. If you are going to do this then can you make `stopped` non-atomic and protect it in `stop`. It's cheap to make a `unique_lock` fyi, it's just a pointer to a mutex and a `bool`. The `lk.lock ()` in the loop is superfluous so probably shouldn't have been there to begin with." + }, + { + "prediction": "I don't think we need to import remote_config here.", + "reference": "Lets not give packages names if we dont have to. If a package requires a rename, we should change the actual name while/if we can." + }, + { + "prediction": "I think this should be `TEST(1U << 31, enc) && TEST(1U << 15, enc) && TEST(1U << 15, enc)`", + "reference": "Not sure I see where this is coming from. This is a bug fix? Should be mentioned in the commit message? Same below." + }, + { + "prediction": "Why is this removed?", + "reference": "I reverted this change in the last commit, I think we should revert it here. I know this leads to confusing test output for skipped tests, but I would prefer to tackle that in a separate PR specifically focused on that problem. In fact, I think the issue might really be with the leak checker, and not how this test runner is defined. Please make a ticket for this (if it doesn't already exist) and revert this change" + }, + { + "prediction": "`normed_bbox` should be `True` or `False`.", + "reference": "Can this part be done in `dataset.get_ann_info`? Just like CocoDataset converts xywh to xyxy in `_parse_ann_info`" + }, + { + "prediction": "Why is this change needed?", + "reference": "Should we change the name of this test struct to be `testTracerProvider` as well?" + }, + { + "prediction": "I think we should move this to the top of the file.", + "reference": "\"google.golang.org/grpc\" should be together with \"go.uber.org/zap\" all \"\"github.com/iotexproject/iotex-core/*\" stay together" + }, + { + "prediction": "I think this should be `self._inject_early_js('js', js_code_print, subframes=True, world=QWebEngineScript.MainWorld)`", + "reference": "No need for a separate variable here - just call `utils.read_file` directly below." + }, + { + "prediction": "I think this should be `sendTimer.Stop()` instead of `sendTimer.Stop()`", + "reference": "Thanks for the fixing, small question, Here the message just be written to the channel, will it be blocked?" + }, + { + "prediction": "Why is this change needed?", + "reference": "maybe we will have something like `Bodies []byte(\"bodies\")` instead of them being a number? with numbers we are making it harder to insert stages mid-process." + }, + { + "prediction": "Why is this change needed?", + "reference": "out of curiosity, why making this change? If no real reason, could you restore to avoid unnecessary changes of several generated files?" + }, + { + "prediction": "Why is this change needed?", + "reference": "Could we public events if `manager.serStatus()`?" + }, + { + "prediction": "I don't think we need to check that the element is present on the page, or that the plugin you are targeting has been installed on the page.", + "reference": "could be misread as ``, maybe something redundant but very clear like \"before the closing `` tag\"?" + }, + { + "prediction": "Why is this change needed?", + "reference": "This test is specifically checking behavior on sync I/O (note there are tests with Write in the name, and other tests with WriteAsync). Enable sync I/O here." + }, + { + "prediction": "I think we should use `User.new(name: 'John Doe')` instead of `User.new(name: 'John Doe')` instead of `User.new(name: 'John Doe')`", + "reference": "Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping." + }, + { + "prediction": "I think this should be `string` instead of `string`", + "reference": "nit: Should we have something like `volumeName@snapShotname` and this will be filled only if it is a clone creation" + }, + { + "prediction": "I think this should be `if os.IsNotExist(err) { return err } } else if err != nil { return err } else if err != nil { return err } else if err != nil { return err } else if err != nil { return err } else if err != nil { return err }", + "reference": "This seems like an improved pattern :)" + }, + { + "prediction": "I think we should use `snakebite` instead of `snakebite`", + "reference": "I think it would be better to have a separate configuration option for specifying which HDFS interaction layer to use instead of using the existing hadoop version option. I think there are still cases where things might have to rely on Hadoop version for other things, and overwriting that information with \"snakebite\" would make that difficult. The existing hadoop version option could still be used to distinguish the different HDFS CLI flavours." + }, + { + "prediction": "Do we need this method?", + "reference": "Why are we filtering content twice? It seems like just filtering it in PAL should work." + }, + { + "prediction": "Why is this change needed?", + "reference": "These should probably move to `constants.js`" + }, + { + "prediction": "I think this should be `org.sun.glassfish.gmbal.ManagedObject`", + "reference": "Again, you don't want to depend on glassfish." + }, + { + "prediction": "I think this is a bit confusing, but I don't think we need to add a new method to the `Space` class. I think it's better to add a new method to the `Space` class.", + "reference": "it should be `Faker::Space.launch_vehicle`, otherwise it will crash" + }, + { + "prediction": "I think this should be `if (this.ArchiveNumbering == ArchiveNumberingMode.Date && this.ArchiveEvery != FileArchivePeriod.None)`", + "reference": "Isn't it quite expensive to check whether the file exists on every write?" + }, + { + "prediction": "I think we should use `new webdriver.http.XhrClient(url)` instead of `new webdriver.http.XhrClient(url);`", + "reference": "Please hide this behind a flag and add a setter function to the builder." + }, + { + "prediction": "I think this should be `/all` instead of `/all`", + "reference": "old api should be deprecated if we don't intend on using it anymore. Again this should happen through swagger api and then removed from next release. We should also release not this as a breaking change. (same with all the other cloudsnap api renames." + }, + { + "prediction": "I don't think we need to log the error here.", + "reference": "so strange...... canTcpListen is to detect, if this transport can init when customers deployed vertx and servlet rest transport, we must detect which one will be used only both of them refused to init is a problem. we have already print that......" + }, + { + "prediction": "I think we should use `SELECT_COUNT_FORM` instead of `SELECT_COUNT`", + "reference": "Did you mean for this to be `FORM`, instead of `FROM`?" + }, + { + "prediction": "I think this should be `*bool` instead of `*bool`.", + "reference": "What are your thoughts on the long term solution for the naming of this variable? Do you think we should revert the logic when we are ready to make the next set of breaking API changes?" + }, + { + "prediction": "I think this should be `if verbose` instead of `if failure_message`", + "reference": "There's a syntax error on this line." + }, + { + "prediction": "I think this should be `return result;` instead of `return result;`", + "reference": "You lose the value of `result` when you `goto out`" + }, + { + "prediction": "I think this should be `this.ratio_ = this.ratio_ == undefined ? 0 : this.ratio_;`", + "reference": "Just a style thing, why not `this.ratio_ || 0`?" + }, + { + "prediction": "I think this should be `getMaskedIp(ipNet)` instead of `getMaskedIp(ipNet)`", + "reference": "I think the stdlib's `net.IP` has a `Mask()` method, does that do what we need?" + }, + { + "prediction": "I think this should be `substitute` instead of `substitute`.", + "reference": "Why does substitute need to be public? Are we allowing/encouraging variable usage when using Daisy as a library?" + }, + { + "prediction": "I think this should be `self._tab.key_press(Qt.Key_Enter)` instead of `self._tab.key_press(Qt.Key_Enter)`", + "reference": "We should probably use ctrl-enter if `tab` is given, just like in `follow_selected`?" + }, + { + "prediction": "Why is this needed?", + "reference": "This file looks like anti pattern `ServiceLocator` and lucky it's not used anywhere. Can I remove it? (in separate PR)." + }, + { + "prediction": "I think we should use `FileSizeChecker.bytesToHumanReadable(getDownloadSizeNumeric(dsv, original));` instead of `FileSizeChecker.bytesToHumanReadable(getDownloadSizeNumeric(dsv, original));` and `FileSizeChecker.bytesToHumanReadable(getDownloadSizeNumeric(dsv, original));`", + "reference": "we can just have this method call the next, passing in the file metadatas (deduplication of logic)" + }, + { + "prediction": "I think this should be `if config.get('tabs', 'mousewheel-tab-switching'):`", + "reference": "What happens here if you send the `wheelEvent` directly to the `tabbed_browser` and let it take care of propagating it to its children (i.e. the focused tab)? If that works, I guess that'd be cleaner." + }, + { + "prediction": "I think this should be `print(decode_string(msg), end='')`", + "reference": "it seems python 2 don't support `end=''`. @StrikerRUS @henry0312 any better solution? or we drop the support of python 2?" + }, + { + "prediction": "I think this should be `VUID-VkImageViewCreateInfo-image-parameter`.", + "reference": "This test already exists in the object_tracker layer." + }, + { + "prediction": "I think this should be `boolean` instead of `boolean`.", + "reference": "Same here, can we presume if `privacyParameters` is set we need goQuorum handling? Or is there a goQuorum sub option in `privacyParametes`?" + }, + { + "prediction": "I think this should be `if (base.currentSnapshot() != null) { newManifests.addAll(base.currentSnapshot().deleteManifests()); } else { newManifests.addAll(base.currentSnapshot().deleteManifests()); }`", + "reference": "The addition of delete files in `newManifests` far above the addition of data files threw me a bit. Is it intentional to ensure the delete files are at the front of the list?" + }, + { + "prediction": "I don't think we need to check if `groups` is an Array.", + "reference": "Interesting. The call to `Array(groups)` below this would seem to indicate this doesn't _have_ to be an array. I think the problem is actually that passing a hash to `Array()` actually converts the hash to an array of key/value pairs rather than wrapping it in an array. So maybe `Array(groups)` should be `groups = [groups] unless groups.is_a?(Array)`." + }, + { + "prediction": "I think this should be `expire.max-snapshot-age-ms`", + "reference": "This is not a particularly good default but we need it to keep the old behavior." + }, + { + "prediction": "Why is this removed?", + "reference": "We have other tests to assert all properties of a condition are valid. It's enough to assert the condition is not nil here." + }, + { + "prediction": "I don't think we need to import the CRD here.", + "reference": "shouldn't the import be renamed `crdv1alpha1` by convention? It seems that you took care of renaming everywhere else..." + }, + { + "prediction": "I think this should be `PauseContainerTarballPath` or `PauseContainerImageName`", + "reference": "nit: Can Linux-specific paths be moved to a conditionally-compiled file for Linux?" + }, + { + "prediction": "I think this should be `public int getCount() { return -1; }`", + "reference": "This is not the right approach. The `Distributor` maintains a model of the current state of the Grid. That model already contains the information about every active session. We don't need to modify `SessionMap` to expose it further." + }, + { + "prediction": "I don't think this is a good idea, but I'm not sure if this is a good idea.", + "reference": "Git doc seems to suggest `for-push` is a optimization. Do we have a plan/ticket for treating them differently?" + }, + { + "prediction": "Why is this change needed?", + "reference": "This not necessary since you moved the layers to `contrib/`." + }, + { + "prediction": "I think this should be `any` instead of `any`.", + "reference": "I think this also needs to be removed from `resources/bolt_bash_completion.sh`, `rakelib/pwsh.rake`, `lib/bolt_spec/plans.rb`, and `lib/bolt/config/options.rb`." + }, + { + "prediction": "Line is too long. [82/80]", + "reference": "I fixed this today with a direct push to master. My build was failing otherwise." + }, + { + "prediction": "I think this class should be `RuleViolationFix` instead of `DeleteRuleViolationFix`.", + "reference": "not sure why this is in a \"rule\" child package from the interface..." + }, + { + "prediction": "I think this should be `icon` instead of `icon`", + "reference": "Not needed, please remove." + }, + { + "prediction": "I think this should be `!h2o_lcstris(loc_parsed.host.base, loc_parsed.host.len, match->host.base, match->host.len, match->host_is_unix_path)`", + "reference": "Shouldn't the logic be: * the result is a mismatch if either is a unix path but the other is not * if both are unix paths, then perform case-sensitive comparison * if both are not unix paths, then perform case-insensitive comparison" + }, + { + "prediction": "Why is this changed?", + "reference": "This is just rearranging it alphabetically" + }, + { + "prediction": "I think this is a good idea to remove the `# pylint: disable=too-many-locals` line.", + "reference": "I think this disables it for the rest of the file - you should be able to use it inside of the function instead." + }, + { + "prediction": "Shouldn't this be `MediaInterface|int|string`?", + "reference": "this could receive the MediaInterface directly or an identifier, it is correct to type it with int|string? or just use mixed?" + }, + { + "prediction": "I think this should be `for(int i=0; i < comparators.length; i++) {`", + "reference": "Why not return `Object[]`?" + }, + { + "prediction": "I think this should be `long minSequenceNumber` and not `long maxSequenceNumber`.", + "reference": "Looks like we are trying to match the new ordering of fields in `ManifestFile`. Earlier, we co-located `...FilesCount` with `...RowsCount` to match the ordering of methods in `ManifestFile` and args in constructors. Is this change intentional?" + }, + { + "prediction": "why do we need this?", + "reference": "You're already setting drop loot to false just above." + }, + { + "prediction": "Why is this needed?", + "reference": "`once` is very generic and doesn't specify it's purpose - `closeOnce`?" + }, + { + "prediction": "why is this protected?", + "reference": "Why did this need to change from `private`? Oh for the test below. And this is only a test class too. " + }, + { + "prediction": "Line is too long. [92/80]", + "reference": "Should test the `has?` method here" + }, + { + "prediction": "Why not use `findAll('css', '.searchtools a').findAll('css', '.searchtools a').findAll('css', '.searchtools a').findAll('css', '.searchtools a').findAll('css', '.searchtools a').findAll('css', '.searchtools a').findAll('css', '.searchtools a').findAll('css', '.searchtools a').findAll('css', '.searchtools a').findAll('css', '.searchtools a').click()", + "reference": "I think you want to be asserting/clicking $saveLink, not $link." + }, + { + "prediction": "I think this should be `target_pipeline_name` or `target_target_name`?", + "reference": "We don't have `target_name` on `@sensor` - why introduce it for `@asset_sensor`? If we do want to introduce it everywhere, can we just call it `job_name` to avoid introducing a new term?" + }, + { + "prediction": "I think this should be `public List SleetSources { get; set; }`", + "reference": "Missing copyright header (+other new files)." + }, + { + "prediction": "Why is this change removed?", + "reference": "Could we do the flag check here as well to check whether or not we have enabled the \"Handle without timezone\" flag here as well? We may be using this not on the read path (like in the migrate/snapshot code) and it would be good to catch it here as well and make sure users know what is happening." + }, + { + "prediction": "Why is this change needed?", + "reference": "why is the file named `pipeline_definition_definition_sensor`?" + }, + { + "prediction": "I think this should be `if not conf[\"SQLALCHEMY_TIMESCALE_URI\"]`", + "reference": "None not needed, can just be `return`. not important for this release" + }, + { + "prediction": "I think this should be `dispensed` instead of `dispensed`", + "reference": "I think it's missing closing `

    ` tags in line 108 and 109 unless they don't matter..." + }, + { + "prediction": "I think this should be `protected boolean enableScriptEngineLoadExternalResources = true;`", + "reference": "So it seems that loading a script file from the classpath needs to be enabled explicitly now since this is `false` by default. Is it possible to enable this via the YAML config file in a Camunda Platform Run distribution?" + }, + { + "prediction": "I think we should remove the `instagramGraph` from the `config.js` file.", + "reference": "can we delete any code in the provider implementation? i imagine the entire thing is unused now?" + }, + { + "prediction": "Why is this deprecated?", + "reference": "I suggest we remove all these unused functions. I don't expect any external projects to be importing packages from `cert-manager/test/...`" + }, + { + "prediction": "I think this should be `if (request && request->size() > 0) {`", + "reference": "Looks like the template argument doesn't resolve by default so you need `std::lock_guard lck`" + }, + { + "prediction": "Why is this removed?", + "reference": "Are we removing this public method? Could it be useful to someone? Maybe we could implement it once in Node using the metamodel" + }, + { + "prediction": "I think this should be `!= THE_WEEKLY_ITERATION_SKU`", + "reference": "I think this method is unused now?" + }, + { + "prediction": "I think this should be `networkPolicyStatusController := networkpolicy.NewStatusController(crdClient, networkPolicyStore, cnpInformer, anpInformer)`", + "reference": "I know we discussed this before and decided to reuse the AntreaPolicy gate. But do you think realization status will introduce much overhead or not?" + }, + { + "prediction": "I think this should be `RunController` and `RunEdgeSite`", + "reference": "please add a blank line at the end of this file. Applicable to similar cases below" + }, + { + "prediction": "I think this should be `if (pendingConfiguration.remoteHost != null) {`", + "reference": "This is not really needed, the line added in `GridNodeConfiguration.java` is what really fixes the `remoteHost` regression." + }, + { + "prediction": "Shouldn't this be `SolrException.ErrorCode.INVALID_STATE`?", + "reference": "filterCache can be null" + }, + { + "prediction": "I think this should be `github.com/iotexproject/iotex-core/db`", + "reference": "File is not `goimports`-ed (from `goimports`)" + }, + { + "prediction": "I think this should be `return SET_PARAM_CMD_FAIL_RSP;`", + "reference": "If strstr returns NULL, the check on 378 won't fire, because param_name will be at least SET_PARAM_CMD_LEN." + }, + { + "prediction": "I don't think we need to change the `workItemsPerGroup` parameter to `workItemsPerGroup`.", + "reference": "Does this change affect the performance of other algorithms, except KMeans?" + }, + { + "prediction": "Why is this change needed?", + "reference": "What do these changes have to do with the request ID?" + }, + { + "prediction": "Why not use `Host` instead of `Host`?", + "reference": "I'm kind of surprised this doesn't require `typename`?" + }, + { + "prediction": "I think this should be `go-algorand/logging/logging.go`", + "reference": "nit: move this one down." + }, + { + "prediction": "I think this is a bit confusing, but I think it would be better to use `group_by` instead of `group_by`.", + "reference": "maybe 'standard Tukey boxplot definition' if it is standard? Otherwise sounds like it is just *a* definition for boxplots..." + }, + { + "prediction": "I think this should be `v0.0.0-master` instead of `v1.9.0`", + "reference": "I feel we should not fix this." + }, + { + "prediction": "Why is this removed?", + "reference": "I think these are not necessary" + }, + { + "prediction": "I don't think we need to add the deprecated flag to the help message.", + "reference": "Please update the user guide too." + }, + { + "prediction": "I think we should use `$location->discoveryDisplayName ?? $location->name` instead of `$location->code`", + "reference": "If you use `compact('name', 'code')` here, you'll get an associative array, which might make the rest of the code more readable (instead of using hard-coded 0/1 indexes)." + }, + { + "prediction": "I think this change is not necessary.", + "reference": "Should it be 2011-14 instead ;-)" + }, + { + "prediction": "I think we should use `sqlDB.SetMaxIdleConns(int(pgcfg.MaxIdleConnections))` instead of `sqlDB.SetMaxIdleConns(int(pgcfg.MaxIdleConnections))`", + "reference": "I want to write some type of test for this but there are not Getter methods to assert this value. I tried to extract the value via the stats that are exposed without luck." + }, + { + "prediction": "I think this should be `iter_gsuite_group_settings` and `iter_gsuite_groups`", + "reference": "This needs to take the group id, not the gsuite id." + }, + { + "prediction": "I think this should be `http://json.schemastore.org/sarif-1.0.0-beta.5`", + "reference": "These should use the constants defined in JsonTests.cs" + }, + { + "prediction": "I think we should use `__( 'Search Console', 'google-site-kit' )` instead of `__( 'Search Console', 'google-site-kit')`", + "reference": "Kind of unrelated to this PR, but let's update this to `getDataErrorComponent( 'search-console', error.message, false, false, false, error )` so that everything is passed as expected." + }, + { + "prediction": "I think this should be `dict` or `dict`", + "reference": ":obj:\\`dataset\\` cannot be correctly rendered" + }, + { + "prediction": "I think this should be `@return [String] a user-displayable login/identifier for the user account`.", + "reference": "I think `email` is something we get from devise, and I think the goal of putting it in the generator was not to tie others to that particular implementation?" + }, + { + "prediction": "I think this should be `batch := make([]*export.SpanData, 0, bsp.o.MaxExportBatchSize)`.", + "reference": "If the span producers pushing to the queue do so faster than the this can drain, it will cause this to hang. I'm guessing we can update the `enqueue` method to check if the `stopCh` is closed and not send any more spans while this flushes what has already been pushed." + }, + { + "prediction": "I think this should be `collection` instead of `iterable`.", + "reference": "Not sure about that, an array is iterable right? But if I pass array, that clear method wont work" + }, + { + "prediction": "I think this should be `go-spiffe/sri/pkg/common/plugin`", + "reference": "make sure the config changes stuck. are there any invalid config values? maybe write tests around empty `trust_domain`, negative/missing `ttl`, invalid `key_size`, etc..." + }, + { + "prediction": "`window.__mochaResult__` should be `undefined`.", + "reference": "Why are you changing this?" + }, + { + "prediction": "I don't think we need to change this to `rwa_number`", + "reference": "@phirefly Can we look at a list of RWAs, or ask someone to double-check that this format is correct? Otherwise :shipit:" + }, + { + "prediction": "I think this should be `SparkWriteOptions.DISTRIBUTION_MODE_NONE`.", + "reference": "Still request a local sort for bin-packing based on the defined table sort order." + }, + { + "prediction": "I think this should be `--users` instead of `--user-id`.", + "reference": "As with the other PR, user name is better." + }, + { + "prediction": "I think this should be `s.chequebook.AvailableBalance(ctx)` instead of `s.chequebook.AvailableBalance(ctx)`", + "reference": "a peer's accounting lock is held during `Pay`. we should avoid adding additional blockchain calls here if possible." + }, + { + "prediction": "I think this should be `false`?", + "reference": "Maybe wording could be improved. Is this \"not enabled\" or it is \"not available\". Not sure about that." + }, + { + "prediction": "I think this should be `if !conditionalBranchesEvaluated(node)` instead of `if !conditionalBranchesEvaluated(node)`", + "reference": "I looked at the new `conditionalBranchesEvaluated` function and it looks like the part added is a duplicate of the line above?" + }, + { + "prediction": "I think this should be `f` instead of `f`.", + "reference": "can you put this flag in `blockRefInfo` instead? It would be a shame to add one more file per block, especially since we've run into inode limits. I guess `blockRefInfo` should maybe then be renamed to `blockInfo` or something. But we're stuck with the filename." + }, + { + "prediction": "I think this should be `if cfg.IP == nil { return nil, 0, \"\", nil`", + "reference": "Shouldn't we keep other parameters if only IP is empty? Or maybe return an error if it's a mandatory argument?" + }, + { + "prediction": "I think this test should be `assertEqual(redimmed.kdims, [Dimension('Integer', type=int), Dimension('floatdim', type=float))`", + "reference": "Was this just wrong before? The names indicated types but type wasn't specified. I guess the tests passed as comparison worked with ``type=None``?" + }, + { + "prediction": "Why not use `icebergCol.name()` here?", + "reference": "icebergCol.name() is the unqualified column name" + }, + { + "prediction": "I think we should add the `ok_actions` argument to the `Alarm` class.", + "reference": "It's generally a bad idea to use mutable types like lists as default values for parameters. Lots of strange, difficult to debug side effects can occur. I see that there was already one example of this prior to this commit which probably explains why it seemed innocuous to add more but I'm going to rework this before committing to master." + }, + { + "prediction": "I think this should be `eslint-config-prettier`", + "reference": "We run prettier as an eslint plugin, so this harmful" + }, + { + "prediction": "I think this should be `DynamicType_ptr(nullptr)` instead of `DynamicType_ptr(nullptr)`", + "reference": "Check if the TypeDescriptor and MemberDescriptor includes are necessary" + }, + { + "prediction": "Why is this changed?", + "reference": "delete the empty line here." + }, + { + "prediction": "I think this should be `expect(subscription.scheduled_for_deactivation_on).to be_not_nil).to_not_be_nil`", + "reference": "Line is too long. [89/80]" + }, + { + "prediction": "Why is this protected?", + "reference": "You don't need to expose this method to do what you want. There are already public addNewGetMapping, addNewPostMapping, and addNewDeleteMapping methods." + }, + { + "prediction": "Why is this change needed?", + "reference": "This test passes in `dev`. Why wouldn't this work?" + }, + { + "prediction": "I think this should be `python.example_code.device-farm.Scenario_BrowserTesting` and `python.example_code.device-farm.Scenario_BrowserTesting`", + "reference": "ARN -> Amazon Resource Number (ARN)" + }, + { + "prediction": "Why is this change needed?", + "reference": "Why not use the overload that takes an instance?" + }, + { + "prediction": "Why is this removed?", + "reference": "`Blockchian` is a misspelling of `Blockchain` (from `misspell`)" + }, + { + "prediction": "I think this should be `*ecs.PlatformDevice` instead of `*ecs.PlatformDevice`", + "reference": "`agent/gpu/nvidia_gpu_manager_unix.go:47: struct field lock has json tag but is not exported`" + }, + { + "prediction": "I think this should be `arn:aws:aws:sqs:eu-west-1:000000000000:testq` or `arn:aws:aws:sqs:eu-west-1:000000000000:testq`", + "reference": "nit: better rename to `TEST_QUEUE_ARN` or `TEST_EVENT_SOURCE_ARN`" + }, + { + "prediction": "I think this should be `if p.Spec.ServiceMonitorSelector != nil || p.Spec.AdditionalScrapeConfigs != nil {`", + "reference": "Would this mean that podMonitorSelectors suffer from the same issue if they are the only configuration set?" + }, + { + "prediction": "I think this should be `fakeClient.GetEnvironment(ctx context.Context, req *pipedservice.GetEnvironmentRequest, opts ...grpc.CallOption)`", + "reference": "`ctx` is unused in GetEnvironment" + }, + { + "prediction": "I think this should be `public void OKDialog() { DialogResult = DialogResult.OK; }`", + "reference": "We usually use OkDialog()" + }, + { + "prediction": "I think this should be `--privacy-restricted-enabled` instead of `--privacy-unrestricted-enabled`.", + "reference": "could we please change that to something that indicates that this feature is not \"production\" ready!" + }, + { + "prediction": "I don't think you need to change this file.", + "reference": "swim -> swin. Other configs and file names also should be modified." + }, + { + "prediction": "I think we should use `key` instead of `key` here.", + "reference": "nit: arg description for \"key\"?" + }, + { + "prediction": "I think this should be `fs.NodeFsyncer` instead of `fs.NodeFsyncer`", + "reference": "If we don't have a `dir` yet, we wouldn't need to do a sync right? If so, perhaps we can just `getStoredDir()` like `Attr()`?" + }, + { + "prediction": "(style) line over 80 characters", + "reference": "I still don't seem to fully understand this. Why are we testing the host if DR_HOST_NOT_TARGET is not set?" + }, + { + "prediction": "Why is this change needed?", + "reference": "in the current implementation, both schemes are supported (you can call either `/bzz` or `/v1/bzz`). i would suggest to keep it this way" + }, + { + "prediction": "I think this should be `const error = new Error(assembly.error)`", + "reference": "hmm, I think we can just do `new Error(assembly.error)` and that should set `error.message` correctly too. I don't know why it was done this way with a separate `.message` assignment before :sweat_smile: Should we do `error.assembly = assembly` so the template editor can access it that way, rather than parsing `error.details`?" + }, + { + "prediction": "Why is this needed?", + "reference": "This should never be empty. The access field always needs a value of at least `c:0` or `r:0`" + }, + { + "prediction": "I think this should be `if !useRustParser() { return parser.ParseFile(f, src)` instead of `if !useRustParser() { return parser.ParseFile(f, src)`", + "reference": "Another question is, do we want to call `os.Getenv()` every time we parse a file? That seems a lot." + }, + { + "prediction": "I think this should be `Tuple.append(A v);` and `Tuple.prepend(A v);`", + "reference": "minor: please rename all occurrences of `A` to `T`. please also rename `v` to `value`." + }, + { + "prediction": "I think this should be `SyncModeSelectorConstants.NotBeamSyncFastSyncLag`", + "reference": "Do we want it to be so dynamic? My first idea was to base it on SyncConfig.BeamSync ." + }, + { + "prediction": "I think this should be `Integer.MAX_VALUE` instead of `Integer.MAX_VALUE`.", + "reference": "can you change this instead to just `type.toString()` and then you wouldn't have to expose the getBitMask in the enum. (Alternatively you could have used `type.hashCode()` but that doesn't feel as nice)" + }, + { + "prediction": "why not use `len(ax3.patches) <= 30`?", + "reference": "I'm confused by these tests. Shouldn't the template string `@importance_type@` have been replaced with the actual value of `importance_type`?" + }, + { + "prediction": "why is this change needed?", + "reference": "Let's keep using NewKeeper so that it got covered by tests." + }, + { + "prediction": "I don't think we need to add the `blob.deleteProcessor` to the `store.blob.deleteManager` and `store.blob.deleteProcessor` to the `store.blob.deleteManager` and `store.blob.deleteProcessor`", + "reference": "I only see new imports. Is there any functional change in this file?" + }, + { + "prediction": "I think we should use the `raCtx.Producer.String()` here.", + "reference": "ineffectual assignment to `err` (from `ineffassign`)" + }, + { + "prediction": "I think this should be `if (!service) { service = getDefaultService(); }`", + "reference": "Would you mind removing the default parameter above? (I doubt I'll ever use defaults again since you still have to protect against callers explicitly passing `null` or `undefined`)" + }, + { + "prediction": "Why not use `LogToPythonStderr` instead of `LogToPythonStderr`?", + "reference": "Make sure the old logging functions still work, but add deprecation warnings (unfortunately Python suppresses deprecation warnings by default, so I'm not sure if anyone'll notice)." + }, + { + "prediction": "Why is this needed?", + "reference": "Not directly related to the topic of this ticket: I think this API design is a bit confusing. To disable delemetry, I would write `managementService.enableTelemetry(false)` which is not intuitive to read. Maybe `toggleTelemetry` instead of `enableTelemetry` is more clear." + }, + { + "prediction": "Why do we need this?", + "reference": "Again I suggest returning `AnnotatedCodeLocation[][]`." + }, + { + "prediction": "I think this should be `infof` instead of `infof`", + "reference": "We should probably require an increased verbosity to output for anything below the cluster itself to avoid spamming the logs. It would also be good to give additional context as to what we are attempting to reconcile since the controller has multiple workers." + }, + { + "prediction": "I think this should be `EnableDNS` instead of `EnableDNS`", + "reference": "Not needed anymore" + }, + { + "prediction": "I think this should be `Log.Information(\"CallTarget State ByRef cannot be enabled: \");`", + "reference": "Am I right in thinking this completely avoids the situation where `enable_calltarget_state_by_ref` is `true`, but the managed integrations don't expect a by ref argument? For example, if there's an exception here, that seems like a fatal problem, as we would have a mismatch for jit rewriting? We should disable instrumentation entirely in that case shouldn't we? i.e. if this (or the existing `EnableByRefInstrumentation`) calls fail, should we bail out of this method entirely as we can't safely instrument?" + }, + { + "prediction": "I think this should be `enum ResourceTypes = iota.ResourceTypes`", + "reference": "nit: spaces seem off" + }, + { + "prediction": "I think this should be `ExtractorCallbacks* em, ScriptingEnvironment* se`", + "reference": "shouldn't the em parameter be called ec?" + }, + { + "prediction": "Why is this change needed?", + "reference": "Please change this to use o.DidSign(o) as implements this logic without performing any of these checks that duplicate something that JWT can do correctly. If the JWT deserialized properly, and DidSign returns true, the JWT was signed by one of the listed operator keys." + }, + { + "prediction": "I think we should use `Comparator.comparingBy(FeedItem::getPubDate).compareTo(FeedItem::getPubDate);` instead of `Comparator.comparingBy(FeedItem::getPubDate);`", + "reference": "Talking about style, IMO extracting either `getComponent()` or `getPubDate()` to variables would make this line easier to read." + }, + { + "prediction": "I think we should use `task.Task` instead of `task.Task`", + "reference": "package header missing" + }, + { + "prediction": "Is there a reason we don't have a `oldVNode` here?", + "reference": "Just a thought (doesn't change the output or anything) - do you think we'll ever want to access the other properties of `oldVNode` from within `_childDidSuspend`? If so we could pass `oldVNode` here and then check these properties in the _childDidSuspend implementation. I don't have strong feelings either way, just occurred to me." + }, + { + "prediction": "I think this should be `/cms/gallery-has-media/gallery-has-media` and not `/cms/gallery-has-media/gallery-has-media`", + "reference": "We should be configuring the base paths somewhere.." + }, + { + "prediction": "I think this should be `assert_min_sizes` and `assert_max_sizes`", + "reference": "May also need to test the normal functionality with min/max_sizes" + }, + { + "prediction": "I think this should be `https://main-light.eth.linkpool.io/`", + "reference": "We can remove this one. It's just a random one I got for free for testing." + }, + { + "prediction": "Why is this import needed?", + "reference": "File is not `goimports`-ed (from `goimports`)" + }, + { + "prediction": "I think this should be `data-acquirer-id=\"Local\"` instead of `data-acquirer-id=\"Local\"`.", + "reference": "(maybe this should be MyDevice or just removed entirely?)" + }, + { + "prediction": "I think this should be `taskEvent := &apitask.Task{}`", + "reference": "Can you do a nil check here, as the task isn't always nil here?" + }, + { + "prediction": "I don't think we need to import `WordPress` from `WordPress` and `WordPress` from `WordPress`", + "reference": "`lodash` shouldn't be grouped under WordPress dependencies" + }, + { + "prediction": "Why did you remove this?", + "reference": "Does order matter? Should we sort by enode key to make duplication checking easier?" + }, + { + "prediction": "I think this should be `acme.AuthorityOptions`", + "reference": "Can you explain this too? This seems to go beyond linting." + }, + { + "prediction": "Why did you remove this?", + "reference": "I just moved this into the render.js UT file since this test doesn't actually use an components" + }, + { + "prediction": "I think this should be `app.CreateSettingsFile()` instead of `app.CreateSettingsFile()`", + "reference": "We do have to capture and check the err here right? I don't think we need to capture the location of the file though for this context." + }, + { + "prediction": "Why is this removed?", + "reference": "an unused import" + }, + { + "prediction": "I think this should be `tlsCertTags := h.state[\"tlsCertTags\"].(map[string]string)`", + "reference": "If this value doesn't exist (do an `, ok := ...` check), we should initialize and store it" + }, + { + "prediction": "I don't think we need to use `or` here.", + "reference": "Would use parenthesis to explicitly state the associations of operands ```js const MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || (-(2 ** 53) - 1)" + }, + { + "prediction": "Why do we need this?", + "reference": "This handle is now private to pyserial, but if there is no public function to retrieve it I guess this is the best we can do." + }, + { + "prediction": "(style) line over 80 characters", + "reference": "This function is what **the compositor** calls when it wants to fullscreen a client, not what the client calls." + }, + { + "prediction": "Why is this change needed?", + "reference": "s/not existed Pod/non-existing Pod" + }, + { + "prediction": "Why is this needed?", + "reference": "Why did we not leave this as just `svcDescriber`?" + }, + { + "prediction": "I don't think we need to import Queue here.", + "reference": "nit: I think we've been (in)consistent in leaving a blank line here." + }, + { + "prediction": "I think this should be `inventory_index_id` and `inventory_data`", + "reference": "Maybe we can change it to a more generic name like source_id." + }, + { + "prediction": "I think this should be `1` instead of `1`.", + "reference": "What's the theory on why this could fix the hang? It seems like the call to `GetRootNodeForTest` will always need to call into the crypto object before returning an error, and so it should block on that `c` receive, after which the test immediately drains `errCh`. So I don't quite see how buffering would help..." + }, + { + "prediction": "(style) line over 80 characters", + "reference": "Maybe add an assert in arch_init or somewhere?" + }, + { + "prediction": "I think this should be `wait.Poll(time.Second, 15*time.Second, func() (done bool, err error) (done bool, err error))`", + "reference": "I wonder what does this `// nolint` ignore? And what are the standards that you choose which error to fix and which to ignore?" + }, + { + "prediction": "I don't think we need to do this.", + "reference": "what about the line below, forceUpdateCollection?" + }, + { + "prediction": "Do we need to check for `host[:user] == 'root'` here?", + "reference": "Doesn't this go in the opposite direction of #1051 / #1062 by putting platform-specific logic back into this module?" + }, + { + "prediction": "Why is this change needed?", + "reference": "I think this is the only line in JS legacy code that should be updated based on the renaming. `global.googlesitekit.setup.isAuthenticated = response.authenticated;` would be sufficient to keep the old name for the legacy JS data (which will be phased out in the long term) while supporting the new name in the API route. All updates to the JS components above wouldn't be necessary." + }, + { + "prediction": "I think this should be `parameters.options?.pingWaitTime ?? 500`", + "reference": "Technically, this would allow `pingWaitTime` to be `false`. I don't know if it matters here." + }, + { + "prediction": "I think this test should be `if config.KINESIS_PROVIDER == 'kinesalite'`", + "reference": "I only want the proxy request for this to run for kinesalite. So this just returns true if the KINESIS_PROVIDER is kinesis-mock" + }, + { + "prediction": "I think this should be `2006-2019` and not `2006-2019`.", + "reference": "Please add your name to the list of copyright holders." + }, + { + "prediction": "Shouldn't this be `public int getMaxRetryTimes() { return maxRetryTimes; }`?", + "reference": "Maybe maxRetryTimes should be bigger than 2. Return Max(maxRestryTime, 2)?" + }, + { + "prediction": "Shouldn't this be `signedUserName`?", + "reference": "Call `userName` is good enough, `signedUserName` is narrowing the actual usage of this method." + }, + { + "prediction": "I think this should be `_scopeManager = new LibLogCorrelationIdentifierScopeSubscriber(Settings.LogInjectionEnabled);`", + "reference": "How would you feel about a static method to express intent?" + }, + { + "prediction": "I think we should remove the `proto_mutual` flag here.", + "reference": "Do we know for sure that no other code changed its value? (Maybe some weird testing use case or something) Why not just use the actual value instead of risk lying?" + }, + { + "prediction": "why is this needed?", + "reference": "the partInstall.go isn't an auto-generated file, and the part.sql doesn't exists either." + }, + { + "prediction": "I think this should be `GetAll` and `PutHash`", + "reference": "`k` is unused in PutHash" + }, + { + "prediction": "I think this should be `public static void copyStream(InputStream input, OutputStream output)`", + "reference": "Use IOUtils instead" + }, + { + "prediction": "I think this should be `NewIdentityManagerMock` instead of `NewIdentityManagerMock`", + "reference": "It's not related to the line of code, but I don't know how to write it in a more proper place. Looks like `e2e/myst-provider/db/myst.db` should be in `.gitignore` file and should not be commited." + }, + { + "prediction": "I think this should be `goog:chromeOptions` instead of `goog:chromeOptions`", + "reference": "nice touch since Google likes to change things every now and then." + }, + { + "prediction": "I think it would be better to have a `final` method for the `CircuitBreakerManager` and `final` methods.", + "reference": "Make `CircuitBreakerManager` implement `PluginInfoInitialized`" + }, + { + "prediction": "I think this should be `QVariant.Type.UInt.value` instead of `QMetaType.Type.UInt.value`.", + "reference": "This is extra awkward, QVariant.convert() takes a QMetaType which takes the value of a QMetaType.Type." + }, + { + "prediction": "I think this should be `NewTypedWriter` instead of `NewTypedWriter`", + "reference": "Nit: finished -> finish, \"done passing it\" -> \"passed it\"." + }, + { + "prediction": "Do we need to add this to the config file?", + "reference": "Maybe mention that it will be saved to the filesystem otherwise?" + }, + { + "prediction": "I think this should be `string.Format(Resources.ImportTransitionListColumnSelectDlg_DisplayData_The_input_text_did_not_appear_to_contain_column_headers__Use_the_dropdown_control_to_assign_column_meanings_for_import_)`", + "reference": "Probably cleaner and more general to do this: string,Format(\"Column {0}\", i+1) That way if the local language has a convention like \"3 column, this is\" it still works." + }, + { + "prediction": "Why is this change needed?", + "reference": "This can be uniformed too" + }, + { + "prediction": "Why is this change needed?", + "reference": "It looks to me that this does not have to be exported." + }, + { + "prediction": "I think this method should be called `createDummyApiConfig`", + "reference": "It looks like this is only used in order to extract the snippet file names from GapicProviderFactory. I wonder if it would be better expose the snippet file names directly, without exposing a test-only function in non-test code." + }, + { + "prediction": "Why is this removed?", + "reference": "Another question: this is being removed, but I don't see a corresponding removal if it being called? Was it never used (or am I just missing it)? (is it related to what was in the onclick that got removed, i.e. was that supposed to call this and not something in the backing bean?)" + }, + { + "prediction": "I think this should be `apiutil.CertificateRequestHasApproved(cr)` instead of `apiutil.CertificateRequestHasApproved(cr)`", + "reference": "Suggestion: `.. does not have an Approved condition set to true`" + }, + { + "prediction": "I think this should be `self.client.delete_files_before_test = False` instead of `self.client.delete_files_before_test`", + "reference": "I would say that client class should have default of False and Cloud prov should enable deleting." + }, + { + "prediction": "Is this change needed?", + "reference": "Did this remove the BOM or something?" + }, + { + "prediction": "I think this method should be called `addRule(boolean, AttachedBlockHeaderValidationRule rule, boolean includeInLightValidation());`", + "reference": "This makes the BlockHeaderValidator mutable, and IMHO should not be done. Note we have a builder that has the exact same method, so instead of mutating a produced BlockHeaderValidator we should hook into wherever the builder is being created." + }, + { + "prediction": "Why is this change needed?", + "reference": "May be add information about parameters to the doc string while at it?" + }, + { + "prediction": "I think we should add a `PRIV_GET_TRANSACTION_COUNT_LEGACY` method to the list of RPC methods. I don't think we need to add a `PRIV_GET_TRANSACTION_COUNT_LEGACY` method to the list of RPC methods.", + "reference": "Naming of this sounds a bit awkward. Perhaps priv_legacy_getTransactionCount or priv_legacyGetTransactionCount?" + }, + { + "prediction": "I don't think we need to log the message here, but I think it would be better to have a `report_data->FormatHandle(mem_info->mem).c_str()` call in the `pre_call_record_free_memory` method.", + "reference": "This one should probably be added to the list in #24 . It's possibly indicative of an issue, but there isn't a VUID for it." + }, + { + "prediction": "I think this should be `(u'%(root)s%(api_name)s/%(version)s/projects/%(project)s/%(network)s/global/')`", + "reference": "Why this indentation change? Seems the original indentation would be fine, and leaves more room." + }, + { + "prediction": "`update` should be `True`", + "reference": "Would be nice to know what the `update` argument does in the docstring." + }, + { + "prediction": "I think we should use `StringIO.StringIO` instead of `cStringIO.StringIO`.", + "reference": "I think we can just use `io.BytesIO` here." + }, + { + "prediction": "I think this should be `User-Agent` instead of `User-Agent`.", + "reference": "This ensures that the User-Agent header matches during replay." + }, + { + "prediction": "I think this should be `1.3` instead of `1.3`.", + "reference": "What units are used for this default?" + }, + { + "prediction": "I think this should be `[Newtonsoft.Json.JsonProperty(\"id\")]` instead of `[Newtonsoft.Json.JsonProperty(\"distance\")]`", + "reference": "I am wondering if it makes sense to make this a flag to `flatc` rather than a preprocessor flag, since this is generated code, it would make more sense to simply omit this code completely if the flag is not specified" + }, + { + "prediction": "Why is this change needed?", + "reference": "Doesn't this change the behavior (edit: oh, I see, never mind)." + }, + { + "prediction": "I think this should be `if $(lsb_release -cs) != bionic`", + "reference": "I think you need a `do` at the end of this line." + }, + { + "prediction": "I don't think we need the `params_for_search` method here, but I think it would be better to use `params_for_search` instead of `params_for_search`", + "reference": "Not passing in a `:params` key here." + }, + { + "prediction": "I think this should be `hivev1.RunningClusterPowerState` instead of `hivev1.RunningClusterPowerState`", + "reference": "Feels like this should be an option and not the default. Leaving them running would give you immediate response to claims, which might be what some people would want. Hibernation is AWS only right now and probably other clouds will just disregard the setting but arguably validation should be rejecting attempts to create / update powerstate on gcp/azure/etc. I'd pitch we put this onto the pool spec and make you opt in." + }, + { + "prediction": "I think this should be `#if NETCOREAPP3_0 || NET5_0 || NET6_0` instead of `#if NETCOREAPP3_1 || NET5_0 || NET6_0`", + "reference": "I think I saw somewhere that it has been fixed and that you can use #NETCOREAPP3_0_OR_GREATER but I may be wrong." + }, + { + "prediction": "I think this should be `active` or `stand-by`", + "reference": "what's the second part for?" + }, + { + "prediction": "Why remove this?", + "reference": "It's not clear to me what the \"super\" test above is for. As far as I can see, the test runs a spellcheck for \"super\" but then uses \"fob\" as the index into suggestions, which will never find an entry." + }, + { + "prediction": "I think this should be `ioctlUtil`", + "reference": "revert this file change" + }, + { + "prediction": "Why is this removed?", + "reference": "I think this is the most elegant way to allow us to still fail on `I`." + }, + { + "prediction": "Why not use `in_array($metadata['fieldType'], array('text', 'string')` instead of `array('text', 'string')`?", + "reference": "Wouldn't it be better to use a sql `IN ( :exact_value )` ?" + }, + { + "prediction": "I don't think we need to add the `if @timeout then` to the `options` hash.", + "reference": "So far this is not working as expected... working to further investigate WinRM protocol and the gems behavior." + }, + { + "prediction": "Why is this change needed?", + "reference": "So now there're two ways to get requests: `ScenarioExecutor.get_requests()` and `Scenario.get_requests()`. To avoid confusion we should probably make `Scenario.get_requests()` method private, or hide it in some other way." + }, + { + "prediction": "Why is this change needed?", + "reference": "This existed already, but seeing as you are changing the variable to have an explicit type it could be made a const reference to remove a copy." + }, + { + "prediction": "I don't think we need to add this to the `FamousLastWords` class, since it's a `FamousLastWords` class.", + "reference": "I don't think this code is being tested; this method can be removed without the test failing" + }, + { + "prediction": "I think this should be `public void onPreExecute() { arrayList = new ArrayList<>();`", + "reference": "@codepoet2017390 You have already initialized this ArrayList in the onPreExecute method then why do it here too?" + }, + { + "prediction": "I think this should be `not_to permit(user, procurement)` instead of `not_to permit(user, procurement)`", + "reference": "This covers the `RESTRICT_ACCESS=true` x non-gsa pair, but we probably want to test the three other permutations: (`RA=true`, gsa), (`RA=false`, non-gsa), (`RA=false`, gsa)" + }, + { + "prediction": "Why is this change needed?", + "reference": "Please don't do this - if you want to disable code permanently delete the code, if you need to disable it to test don't commit. Such sections are very poorly highlighted during review and can cause unspotted issues slipping through the process..." + }, + { + "prediction": "I think this should be `ConnTrackInterfacer` or `ConnTrackDumper`", + "reference": "I'm starting too feel we have too much abstraction and too many interfaces here. But this method is definitely the most confusing IMO. For one, it's called \"Get*\" but it does not return anything... I don't have a good understanding of what's going on anymore, so it's hard for me to suggest an alternative, but it's pretty clear to me that this interface needs to be rethought. An interface where all the parameters are themselves arbitrary objects (`interface{}`), whose actual type depends on the specific interface implementation, is not a helpful abstraction" + }, + { + "prediction": "I don't think this is needed.", + "reference": "It fills me with endless sadness that we can't use Selenium's own `SessionId` here." + }, + { + "prediction": "I think this should be `aliases.getZNodeVersion()` instead of `aliases.getZNodeVersion()`", + "reference": "Interesting. So you've found that it's faster to request only the \"Stat\" without the data so long as this is the typical path?" + }, + { + "prediction": "I think this should be \"cannot reference a package function from within a row function\"", + "reference": "Is this a future fix? I thought the local identifier scope and the package issue were the same one." + }, + { + "prediction": "I think this should be `if obj.role in (controlTypes.ROLE_APPLICATION, controlTypes.ROLE_DIALOG)`", + "reference": "Not super important, but this line could be split up." + }, + { + "prediction": "I don't think you need to do this.", + "reference": "Maybe we should better call the dispose function without checking the value of `item.data` (since the dispose function is setup before `data` is set up)." + }, + { + "prediction": "I think this should be `Caffe::set_mode(Caffe::GPU);` instead of `Caffe::set_mode(Caffe::GPU);`", + "reference": "Why set to GPU, is it CPU?" + }, + { + "prediction": "I think we should be able to use `computed('i18n', () => t('appointments.todayTitle'));` instead of `computed('i18n', () => t('appointments.todayTitle'));`", + "reference": "This should be `computed('i18n.locale'....`" + }, + { + "prediction": "Why is this change needed?", + "reference": "can we not expose the channel directly? or at least expose it as a read only channel?" + }, + { + "prediction": "I think this should be `AC_SUBST(bashcompdir)` instead of `AC_SUBST(bashcompdir)`", + "reference": "Can we add a `--with-bashcompdir` here to override this? I'd like to be able to do unprivileged builds." + }, + { + "prediction": "I think this should be `SnapshotCreate` or `SnapshotDelete`", + "reference": "We will be removing this maya/volume package completely. Do not use this." + }, + { + "prediction": "Why is this change needed?", + "reference": "Why you think that `model_ptr` will be `nullptr` when memory allocation is failed? I think `new daal_knn::Model(column_count)` would throw `std::bad_alloc` if `operator new` is not overloaded. Is it overloaded by DAAL in the way it simply returns `nullptr` in case of bad allocation?" + }, + { + "prediction": "I think it would be better to use `pledge` instead of `pledge`", + "reference": "Where does this 0.001 come from? Is this from the network collateral cost function, which happens to be hardcoded right now? I think it's going to rot very quickly: it depends on sector size and (probably) block height." + }, + { + "prediction": "I think this file should be `CodeChecker.txt` and not `CodeChecker.txt`.", + "reference": "Please update the license header in each source file. For more information see: #2697" + }, + { + "prediction": "Shouldn't this be `retries`?", + "reference": "!numbers -> numbers" + }, + { + "prediction": "Why is this change needed?", + "reference": "so we don't have universal rules afterwards? In that case I'd remove this entirely (and maybe some places where it's used get cleaner) since we shouldn't ever add a universal rule. Not only because it's way simpler in TS, I'm also just super skeptical about \"universal\". In case of this rule, even control characters may have their place in Swaggers, e.g. in `examples` sections where you can have raw response bodies where control characters are perfectly valid." + }, + { + "prediction": "I think this should be `detached` instead of `detached`", + "reference": "You're welcome to surface this option through the API, but I'm not going to make this the default behavior." + }, + { + "prediction": "I think this should be `buildStatic` if `buildStatic` is `false`.", + "reference": "Just a thought that any further extensions of `buildBinaryFor` signature could be done as `buildBinaryFor(..., opts... BuildOptions)` for better readability." + }, + { + "prediction": "Why is this change needed?", + "reference": "I'll fix the InMemoryExporter right after this PR lands" + }, + { + "prediction": "I think this should be `VK_DEBUG_REPORT_ERROR_BIT_EXT` and `VK_DEBUG_REPORT_WARNING_BIT_EXT`", + "reference": "Good call, none of these are technically invalid" + }, + { + "prediction": "Is this change needed?", + "reference": "this one should be updated too" + }, + { + "prediction": "I think this should be `getInstanceId`", + "reference": "maybe need to add microserviceId too." + }, + { + "prediction": "I think this test should be `accept-no-param-doc = no`", + "reference": "I'm curious, do you create this commit at the very end by rebasing and taking the value you had after moving everything ?" + }, + { + "prediction": "Why not just use `[8, 9]` instead of `[8, 9]`?", + "reference": "It's no longer possible to use `modifyRow` to trim rows and that's ok to use TrimRows instead. But I think we should move this test to TrimRows plugin tests as `trimRows` setting is not a part of the `core`." + }, + { + "prediction": "I think this should be `if (assert_is_extension(cmd, node)) == 0`", + "reference": "The function seems to either return \"default\" or return the extension stripping the preceding dot. Does the fact mean that we can no longer register `.default` as an extension?" + }, + { + "prediction": "I think this should be `ImageID` or `ImageDigest`", + "reference": "this may require a statefile version update" + }, + { + "prediction": "I think we should remove this class as well.", + "reference": "I like when `@deprecated` contains how to resolve it - eg. \"use `SplFileObject::fgetcsv()` instead\". The information in upgrade notes is usefull only during upgrade." + }, + { + "prediction": "Why is this change needed?", + "reference": "Nice to see that your local environment is up-to-date now for these changes." + }, + { + "prediction": "I think we should use `countlyVue.sideBarComponent.$store.dispatch(\"countlySidebar/updateSelectedMenuItem\", null);` instead of `countlyVue.sideBarComponent.$store.dispatch(\"countlySidebar/updateSelectedMenuItem\", null);`", + "reference": "Instead of setting it to null, i think lets set it to {}" + }, + { + "prediction": "Why is this change needed?", + "reference": "We should bump this before releasing and remove all legacy fields that are safe to do so. Since we cannot have multiple versions anyway there's little value in walking around with the \"alpha\" stamp." + }, + { + "prediction": "I think this is a bit confusing, but I think it would be better to use `AC_DEFINE(DEEPBIND, [RTLD_DEEPBIND])` instead of `AC_DEFINE(DEEPBIND, [RTLD_DEEPBIND])` instead of `AC_DEFINE(DEEPBIND, [RTLD_DEEPBIND])`.", + "reference": "I might suggest a different name for the `DEEPBIND` config.h macro. Perhaps `FLUX_DEEPBIND` to give a hint in the code that we're using a locally provided define." + }, + { + "prediction": "Why is this needed? I think it's better to use `protoregistry.GlobalFiles` instead of `protoregistry.GlobalFiles`.", + "reference": "Code generated by protoc-gen-go. **DO NOT EDIT.**. The correct way to fix `deprecated` in this file may be updating the protoc / protobuf / grpc and regenerate this file." + }, + { + "prediction": "I think it would be better to use `IntegerPropertyDescriptorTester` instead of `IntegerPropertyDescriptorTester`.", + "reference": "We should make sure that we cover the testcases in a new unit test class." + }, + { + "prediction": "I think this should be `CProofsMode(modeMode)` instead of `CProofsMode(modeModeMode)`", + "reference": "Is this only used in test code? Is there future utility in it for production code? If not, it would be nice if this could be moved into a test package. I'm not sure how hard that would be. CC @laser" + }, + { + "prediction": "Why is this change needed?", + "reference": "Super curious how you noticed this, as SPIRE itself currently only configures once...?" + }, + { + "prediction": "I think this should be `StringUtils.startsWith(exMessage, \"Datafile\")`", + "reference": "This `startsWith` seems a bit brittle because in the code base we'll occasionally spell it \"DataFile\"." + }, + { + "prediction": "Why is this a big int?", + "reference": "if it keeps reconnecting for too long, how should we get alerted?" + }, + { + "prediction": "I think this should be `TCP_SetKeepalive(nSocketFnum, clientKeepaliveStatus, clientKeepaliveIdletime, clientKeepaliveIntervaltime, clientKeepaliveRetrycount);`", + "reference": "it's better to use single name style in one name." + }, + { + "prediction": "Why do we need this?", + "reference": "As defaultSendPort is being removed, and I don't like TODOs on examples, please remove the whole line" + }, + { + "prediction": "I think this is a bit confusing, but I think it would be better to have a `errChangeSetEmpty := err == errChangeSetEmpty` field in the `cf.update` function.", + "reference": "Should we return `nil` when `err == errChangeSetEmpty` instead of calling l.103 `WaitUntilStackUpdateCompleteWithContext`?" + }, + { + "prediction": "I think this should be `final` and not `final`.", + "reference": "Hmmm I thought spotless would wrap this line, but it doesn't seem to complain about it" + }, + { + "prediction": "Why is this change needed?", + "reference": "I think this will require updating the api version. we are planning to do this anyways, so perhaps we can lump this in so we don't have to update too many times?" + }, + { + "prediction": "Why is this change needed?", + "reference": "revert this for parity" + }, + { + "prediction": "Why do you need this?", + "reference": "INCR_BATCH and DECR_BATCH could be exposed as tuneable command line options but that might be too low level to expose. I think keeping private for now where \"in the know\" folks could use to try and tune makes sense. These values were choosen mostly \"at random\" and have worked out for us thus far." + }, + { + "prediction": "I think this should be `setCustomTagWriter(tagWriter *w);`", + "reference": "Currently this isn't very clean because we have to re-use some of the predefined parser types - the demo uses WRITER_U_CTAGS but there should be some support for custom writer type." + }, + { + "prediction": "Layout/EmptyLinesAroundMethodBody: Extra empty line detected at method body end.", + "reference": "I think this was left it accidentally :)" + }, + { + "prediction": "I think we should keep the user namespace first, don't move it.", + "reference": "Can you finish re-ordering this list to match the one that was deleted?" + }, + { + "prediction": "Why is this needed?", + "reference": "Do we need to check if `exp.Target.StressChaos` is `nil`?" + }, + { + "prediction": "I think we should remove the `AWS SDK for Java v2` keywords and remove the `AWS SDK for Java v2` keywords.", + "reference": "AWS Identity and Access Management (IAM)" + }, + { + "prediction": "Why remove this?", + "reference": "not calling this is going to impact current functionality which depends on PVC.. let us still call this and set the values to default as 'none' (or empty) by handling the error from 'get' operation" + }, + { + "prediction": "(style) line over 80 characters", + "reference": "`!=` is no the same as `<`" + }, + { + "prediction": "I think this should be `TransformerDecoderLayer` and `TransformerEncoderLayer`", + "reference": "No need to create a dir for transformer. Simply move transformer.py into mmdet/models/utils/" + }, + { + "prediction": "I think we should use `intent.setAction(Intent.ACTION_CREATE_SHORTCUT);` instead of `intent.setAction(Intent.ACTION_CREATE_SHORTCUT);`", + "reference": "Can't you just add `SelectSubscriptionActivity` directly to the manifest instead of opening `MainActivity` that then starts it?" + }, + { + "prediction": "I think this should be `--run-check` instead of `--run-check`.", + "reference": "Maybe say \"the spec's %check section\" so it's clearer what we mean." + }, + { + "prediction": "I think this should be `source !== this.pluginName && this.isSorted()`", + "reference": "I think after change this check `rowInMapper === null` is always false, so it's useless." + }, + { + "prediction": "Why is this change needed?", + "reference": "ClockIpLpi2c4.Enable() is required. The same change is required for enablePeripheralClocks()." + }, + { + "prediction": "I think this should be a `string` instead of a `string`.", + "reference": "nit: this should be `SHA` since it is an acronym for `Secure Hash Algorithm`, no?" + }, + { + "prediction": "I think this should be `if (typeof window.Intl === 'object') { return window.Intl.default() }`", + "reference": "Not sure if Intl can be defined but not `Intl.DateTimeFormat`. Both seem to have the same percentage on CanIUse." + }, + { + "prediction": "Why is this change needed?", + "reference": "PTAL, looks like the order of PVC & PV is reversed for different storage-engine types, for Jiva/CStor the args sent to sendEventOrIgnore are `PV, PVCName`." + }, + { + "prediction": "Why is this changed?", + "reference": "Remove the trailing white space" + }, + { + "prediction": "This should be `assert(mmcv_version >= digit_version(mmcv_maximum_version))` and `assert(mmcv_version <= digit_version(mmcv_maximum_version))`", + "reference": "No need to modify this." + }, + { + "prediction": "I think this should be `stopped` instead of `stopped`", + "reference": "would be nice at some point to clean this signature up... not relevant for this PR" + }, + { + "prediction": "I think this should be `array_replace(array_replace(array_replace(array_replace(array_replace(array_replace(array_replace(array_replace(array_replace(array_replace(array_replace(array_replace(array_replace(array_replace(array_replace(array_replace(array_replace(array_replace(array_replace(array_replace(array_replace(array_replace(array_replace(array, $normalizedConfiguration, $normalizedConfiguration, $normalizedConfiguration, array_replace(array_replace(array_replace(array_replace(array_replace(array_replace(array_replace(array_replace(array_replace(array_replace(array_replace(array_replace(array_replace(array_replace(array_replace(array_replace(array_replace(array_replace(array_replace(array_replace(array_replace(array_replace(array_replace(array_replace(array_replace(array_replace(array_replace(array_replace(array_replace(array_replace(array_replace(array_replace(array_replace(array_replace(array_replace(array(array", + "reference": "Here, is it `null` because it is `null` in `$fieldConfiguration`, or because it has been set to `null` above in the `array_replace` ? If it doesn't exists at all in `$fieldConfiguration`, I think you should add `type => 'text'` above in the `array_replace`." + }, + { + "prediction": "I think this should be `String#endsWith(String, String)` instead of `String#equals(String)`", + "reference": "I was thinking about this for #2928 too, which also uses `endsWith`... Presumably `SomeOtherObject` would match `endsWith(\"Object\")`, meaning that something more sophisticated like splitting it then iterating right to left would be needed in order to do this robustly?" + }, + { + "prediction": "I think this should be `ExporterType.BatchExportProcessor`.", + "reference": "I think this name is a bit confusing because if you asked someone what type of exporter they were using they would probably say Zipkin or Jaeger, etc. How about `ProcessorType` with `Simple` and `Batch` definitions?" + }, + { + "prediction": "I think this should be `RecreatePipedKeyResponse`", + "reference": "`req` is unused in RecreatePipedKey" + }, + { + "prediction": "This should be `AdSense will not show ads on your website`", + "reference": "The \"Adsense\" term needs to be capitalized - I just noticed this was wrong through ACs and IB, so not a problem of the PR itself really. I'll quickly fix it." + }, + { + "prediction": "I think this should be `nodeToEdges` and `nodeToReverseEdges`", + "reference": "do which methods need to be registered? is it basically just the ones that are directly referenced in ParDo calls? (The Beam GoDoc doesn't say anything about it. :/ )" + }, + { + "prediction": "I don't think we need to change the method name to `setFileCitationBibtex`.", + "reference": "@bmckinney does this mean that the bibtex citation will be available via API?" + }, + { + "prediction": "I think this should be `cliquet[postgresql]>=2.14,<3`", + "reference": "We should probably tag the cliquet-fxa version as well." + }, + { + "prediction": "I think this should be `struct sockaddr_in sin;`", + "reference": "IIRC we need to use memset, because an empty brace is not C99 comformant, and because we cannot use `{0}` because how the struct is organized is not defined in POSIX (the initializer cannot be `{0}` if the first property of the struct is a struct)." + }, + { + "prediction": "I think this should be `ServiceAccounts[]ServiceAccount`", + "reference": "Will we be adding this to `AppliedTo` as well? If not, any reason why not?" + }, + { + "prediction": "I think this should be `@return` instead of `@return`", + "reference": "Just a note that this feels weird being on the base NVDAObject rather than IAccessible, but right now, I understand that's how it has to be because we fire MSAA caret events on the focus object regardless of whether it's IAccessible. I think we should consider restricting these caret events to focus objects that are IAccessible subclasses in future, but that change is probably too risky for this PR. CC @MichaelDCurran for his thoughts." + }, + { + "prediction": "Shouldn't this be `payment_detail` instead of `payment_detail`?", + "reference": "This change and other similar ones should not be part of this commit. This commit is about adding a ImageUploadType not fixing controllers and stuff." + }, + { + "prediction": "I think this should be `accConnzReqSubj` instead of `accConnzReqSubj`", + "reference": "I am a bit confused about PING here. Ping is implied and it overlaps with \"$SYS.REQ.ACCOUNT.%s.%s\" where the last token is what is requested (CONNZ) and the one before is the requested account id." + }, + { + "prediction": "I think this should be `CatalogRequest` instead of `CatalogRequest`.", + "reference": "nit: use the OptSubFolder constants. Also in the client you are using \"maxdepth\" but in the server the constant for \"depth\" is being used." + }, + { + "prediction": "I think we should use `config.auth.htpasswd.file` instead of `config.auth.htpasswd.file`.", + "reference": "I also moved this to `/verdaccio/storage` since it's written in runtime, and the approach here is to make the configuration by default read-only." + }, + { + "prediction": "I think this should be `gax.EventEmitter` instead of `gax.Promise`", + "reference": "nit: s/has cancel method/has a cancel method" + }, + { + "prediction": "I think this should be `expect(Quiz.with_questions).to be equal([first_quiz])`", + "reference": "Useless assignment to variable - `second_quiz`. Use `_` or `_second_quiz` as a variable name to indicate that it won't be used." + }, + { + "prediction": "I think this should be `.gz` instead of `.gz`", + "reference": "Is this still needed since there's the `GzipPrecompressed` type?" + }, + { + "prediction": "I think this should be `_NumCatgoriesNotSpecified`", + "reference": "this is spelled wrong and also not used so remove it" + }, + { + "prediction": "I think this should be `@SuppressWarnings(\"Convert2Lambda\")`.", + "reference": "It might be right here that's the issue ^" + }, + { + "prediction": "I think we should be able to use `SortedMap#keyComparator()` instead of `SortedMap#comparator()`.", + "reference": "@danieldietrich let's leave existing extension. Here we just mark `keyComparator()` with `@Deprecated` annotation" + }, + { + "prediction": "Why is this needed?", + "reference": "This breaks CI. I am not sure why you need to include io.h in this file especially on linux." + }, + { + "prediction": "I think this should be `parentDom.childNodes.length` instead of `parentDom.childNodes.length`", + "reference": "this seems equivalent" + }, + { + "prediction": "Why is this change needed?", + "reference": "change size to 50MB criticial, 10MB warn... change count to 50k critical, 5k warn..." + }, + { + "prediction": "I think this is a good idea, but I think it would be better to have a `mergeResponseFromShard` method that returns a `PivotFacet` object, and not a `PivotFacetResponseFromShard` object.", + "reference": "This has nothing to do with master/slave replication. Is this something we want to change too? If so, I guess this is an aggregation?" + }, + { + "prediction": "Do we need to detach the process if it's still zombie? Or do we need to detach the process if it's zombie?", + "reference": "Maybe it makes sense to mention that those zombies are not forever, but only up to the moment when the parent process exits? Is that correct according to your observations, @benoittgt ? Please disregard this note if zombies remain after." + }, + { + "prediction": "Why do we need this?", + "reference": "moto mock setup needs to happen before boto usage." + }, + { + "prediction": "`first_metric_only` and `feval` are not available at the same time. `first_metric_only` and `feval` are not available at the same time. `first_metric_only` and `feval` are not available at the same time. `first_metric_only` and `feval` are not available at the same time. `first_metric_only` and `feval` are not available at the same time.", + "reference": "`hasattr(cb, 'first_metric_only') and cb.first_metric_only` -> `getattr(cb, 'first_metric_only', False)`" + }, + { + "prediction": "I think this should be `transport.ServerStream` and not `transport.ServerStream`", + "reference": "no newline for function" + }, + { + "prediction": "(style) line over 80 characters", + "reference": "This makes me feel icky. We could also go the route of making `wlr_output.scale` a double instead of a float, but that would be a more widely reaching change." + }, + { + "prediction": "Why is this change needed?", + "reference": "Again, would be awesome if you could remove the tabs in these 3-4 lines as well." + }, + { + "prediction": "why not use `std::move(step.ref)` instead of `std::move(step.ref)`?", + "reference": "You're moving multiple times from `step.name`; you're not allowed to do that. Instead you have to copy the `step.name` string and (if you want to) move once at the very last." + }, + { + "prediction": "I don't think we need to add a title here.", + "reference": "What about `may not end`? @jancborchardt" + }, + { + "prediction": "I don't think we need to change this to \"You can't approve this deployment because you (%s) are not in the approver list.\"", + "reference": "If you think about it, the status should be PermissionDenied?" + }, + { + "prediction": "I think we should use `stats[\"listen_count\"]` instead of `stats[\"listen_count\"]`.", + "reference": "Calculation looks good but don't know what format etc grafana expects this to be in." + }, + { + "prediction": "I think this test should be `test_run_with_additional_arguments_add_host`", + "reference": "nit: We could use the `to_str(..)` util here. (let's not bother changing for this PR.. )" + }, + { + "prediction": "I think this should be `executiongenpb`", + "reference": "Can you rename alias to `executiongenpb`. The rule is package+\"pb\" for `temporal-proto` and package+\"genpb\" for server protos." + }, + { + "prediction": "I think this should be `copy(qr, len(qr))` instead of `copy(qr, len(qr))`", + "reference": "Any noticeable performance hit? Any other way to avoid the allocation and copy even of the array?" + }, + { + "prediction": "Why is this change needed?", + "reference": "What if you remove this line entirely from here?" + }, + { + "prediction": "I think this should be `if self.add_extra_convs == 'on_input':` or `if self.add_extra_convs == 'on_output':`", + "reference": "`on_lateral` can also be implemented" + }, + { + "prediction": "I think this should be `if (podcast.author != null && !podcast.author.trim().isEmpty()) {`", + "reference": "Please add a space between `if` and `(`." + }, + { + "prediction": "I think this should be `STATUS_DEGRADED` or `STATUS_FAULTED`", + "reference": "This statuses might have been better off with some custom status type. However, good for now." + }, + { + "prediction": "I think this should be `if ipNet.IP.To4() != nil && ipNet.IP.To6() != nil {`", + "reference": "Thanks for catching the bug. Here your change lets `v4IPNet` and `v6IPNet` take the first IPv4/IPv6 address in `addrList`. Maybe choose the last one also works and makes code simpler? What's your idea? @tnqn" + }, + { + "prediction": "I think this should be `detail_dict` instead of `detail_dict`", + "reference": "nitpick: you can name this variable just `details`" + }, + { + "prediction": "I think this should be a `const char* extensions[] = { \"jade\", NULL};`", + "reference": "The character class in the regex should probably be \"[a-zA-Z0-9_]\"." + }, + { + "prediction": "Why remove this?", + "reference": "Please also increment `Settings.VERSION` and update `AccountSettings`." + }, + { + "prediction": "I think we should use `versionString` instead of `versionString`", + "reference": "I think this should just say \"build \". And when builddate wasn't set, e.g. somebody built weave with 'go build' or some other way, this should return \"unknown\"." + }, + { + "prediction": "Shouldn't this be \"rewriting manifests\" or \"rewriting manifests\"?", + "reference": "Can we move this into a separate var and call it `desc` like below?" + }, + { + "prediction": "I don't think this is needed.", + "reference": "why RpcSchema need this annotations?" + }, + { + "prediction": "Why do we need to check if `s.sys` is non-nil?", + "reference": "Not sure it makes sense to send the reply if we did not delete from the map, but I guess it does not hurt.." + }, + { + "prediction": "I think we should use `this.continueProcess` instead of `this.continueProcess`", + "reference": "Most of these variables can be moved after `return` or to the body of `if` statement." + }, + { + "prediction": "I think this should be `PRIVACY_MULTI_TENANCY_NO_TOKEN` and `PRIVACY_MULTI_TENANCY_NO_ENCLAVE_PUBLIC_KEY`", + "reference": "nit: Is this actually just a http \"unauthorised\" response? Or is that too vague? If this is the right way to go ... is \"token\" the right word\" Or do we want to say something else?" + }, + { + "prediction": "I think we should use `config.boltdir.path` instead of `config.boltdir.path`", + "reference": "We check for `$future` in PuppetDB::Config, so this won't change behavior if you don't have `future` set." + }, + { + "prediction": "I think this should be `raise KeyError(by[0])`.", + "reference": "I think you should remove `if isinstance(by, str):`,. We also should fix the error message `raise ValueError('Not a valid index: TODO')` to match with pandas'" + }, + { + "prediction": "I think this should be `activity.SetCustomProperty(\"GrpcHandler.Request\", request);` or `activity.SetCustomProperty(\"GrpcHandler.Request\", request);`", + "reference": "Curious - do we want this to be `OTel.GrpcHandler.Request`? For example, if someone is debugging a crash dump, they would get some hint that it was added by OpenTelemetry." + }, + { + "prediction": "nit: I think we should add a `

    ` to the end of the line.", + "reference": "nit: unnecessary `

    `" + }, + { + "prediction": "I think this should be `if (type == \"HDF5Reader\") { return std::make_shared(*this, name, accessMode, mpiComm, method); }`", + "reference": "Should just be `#ifdef ADIOS2_HAVE_HDF5`" + }, + { + "prediction": "I think this should be `stack_name_part = stack_name[:63-2-(len(random_id_part) + len(resource_id_part))]`", + "reference": "FYI: I deployed a stack with multiple lengths for the stack name and resource id to cloudformation, to see how it truncates the parts for the final FunctionName" + }, + { + "prediction": "Why is this removed?", + "reference": "Did we not use this field @_@" + }, + { + "prediction": "I think this should be `android_keystore_path` or `android_keystore_alias`", + "reference": "shouldn't this be `android_keystore_name`?" + }, + { + "prediction": "I think we should use `&& iss.Spec.Vault.Auth.Kubernetes != nil && iss.Spec.Vault.Auth.AppRole != nil && iss.Spec.Vault.Auth.AppRole.SecretRef.Name == secret.Name` instead of `&& iss.Spec.Vault.Auth.Kubernetes != nil && iss.Spec.Vault.Auth.AppRole.SecretRef.Name == secret.Name`", + "reference": "Double check the issuers package too :)" + }, + { + "prediction": "I don't think this is needed.", + "reference": "This is out of date right? Now that `_is_first_level_self_reference` uses it as well? Perhaps we should make the docstring more general and not refer to method names that could change." + }, + { + "prediction": "I think this should be `testPromRemoteWriteWithTLS`", + "reference": "This test alone takes around 10-12 minutes to run. It has 20 subtests each of which takes around one minute. We should see if we there are redundant subtests that we can remove, or look for a way to optimize them." + }, + { + "prediction": "I think this should be `for (let i in newProps) { let k = Object.keys(newProps); for (let i = 0; i < keys.length; i++) { let k = keys.sort(); for (let i = 0; i < keys.length; i++) { if (k in newProps) { if (k in newProps) { if (k in newProps) { if (k in newProps) { if (k in newProps) { setProperty(dom, k, newProps[k]) { if (k in newProps) { setProperty(dom, i, null, oldProps[k], isSvg); } else { setProperty(dom, k, newProps[k], isSvg); } } } } } } } } } }", + "reference": "Good call, we need to keep that check :+1:" + }, + { + "prediction": "Shouldn't this be `ref BufferReader`?", + "reference": "Should the interface have 2 `ParseHeaders` methods?" + }, + { + "prediction": "I think this should be `HIVE_ICEBERG_METADATA_REFRESH_MAX_RETRIES`", + "reference": "Nit: Does this make more sense as `iceberg.hive.metadata...`? The rest of the configs seem to start with `iceberg.hive`." + }, + { + "prediction": "I think this should be `ValidateSecretKeySelector(&p.DNSMadeEasy.SecretKey, fldPath.Child(\"dnsmadeeasy\", \"secretKeySecretRef\"))`", + "reference": "Is `baseURL` not required?" + }, + { + "prediction": "I think we should add a TODO here to make it easier to read.", + "reference": "Just delete it, `embedding_rpn_head` is not a `Detector` which should have `show_result`." + }, + { + "prediction": "I think this should be `HttpMethod` instead of `HttpRequestHeadersHost`.", + "reference": "Where do we _get_ tag values? edit: I mean, where are these `GetFoo()` methods called from? It just seems weird to me that we are getting tag values from spans. I thought we only ever _set_ tags on spans." + }, + { + "prediction": "I think this should be `log.Printf(\"Reading kzip with %v encoding\", pref)` instead of `log.Printf(\"Reading kzip with %v encoding\", pref)`", + "reference": "This seems like log spam. Maybe expose the encoding as a method and log at the point of interest?" + }, + { + "prediction": "Why is this change needed?", + "reference": "I looked up that one, and it seems correct: Authentification is French, Authentication seems to be correct" + }, + { + "prediction": "I think this should be `print traceback.format_exc()`", + "reference": "Can we print a more human-friendly warning here, saying that plotting won't work or something along those lines?" + }, + { + "prediction": "Why is this needed?", + "reference": "@mhils didn't we try to get rid of these (now empty) wrapper classes?" + }, + { + "prediction": "I don't think we need to import `felix/ipsets` here.", + "reference": "I would avoid importing `felix/ipsets` package because this package is the windows equivalent and should be at the same level of `felix/ipsets`. We could add linux specific dependencies into `felix/ipsets` later and it will break Windows build." + }, + { + "prediction": "I think this should be `registerTable(TableIdentifier identifier, String metadataFileLocation)` instead of `registerTable(TableIdentifier identifier, String metadataFileLocation)`", + "reference": "Maybe, `import` would be a better name." + }, + { + "prediction": "I don't think we need to change this to `MAX_RESULTS`.", + "reference": "Wouldn't we want `PARAMETER_MAX_RESULTS` in here as well? (I might be miunderstanding how this is used)" + }, + { + "prediction": "Do we need to check if the system roles exist?", + "reference": "We can re-use the config in our tests." + }, + { + "prediction": "I think this should be `test \"$pmix_hwloc_source\" != \"cobuild\"`.", + "reference": "Wouldn't we have the same issue with the internal libevent? IIRC, the integration is pretty close to an exact duplicate. Or does the libevent m4 code already take that into account when setting this variable? PMIx _requires_ libevent, so it isn't like pmix_libevent_support can be anything other than 1. I'm okay with leaving this question for separate resolution - just wondering why we don't have the same issue here." + }, + { + "prediction": "I think this should be `!info.looksLikeChromeOniOS()` instead of `!info.looksLikeChromeOniOS()`.", + "reference": "The actual User-Agent string uses \"CriOS\" not \"CRiOS\"" + }, + { + "prediction": "Why is this change needed?", + "reference": "Unused code deletion. Is that a desired thing? No implementation of this actually used this indexer, so removing it seemed reasonable (and was suggested by the compiler). Maybe this had an indexer so plugins could use it? This change is definitely pushing the limits of what is appropriate in a \"cleanup\" as it is changing public API surface area." + }, + { + "prediction": "Do we need to check if the host is a pe?", + "reference": "We'd lose the data here from the original teardown_exception and only get the dump_exception - I fear that that could make the actual error difficult to track if it cascades." + }, + { + "prediction": "I think this should be `if (newVNode.props.multiple && newVNode.type==='select') {`", + "reference": "At this point in `diff()` we should know if we're dealing with a `component` or a native `html` element. We can reuse that information in this if-statement here :+1:" + }, + { + "prediction": "Why is this change needed?", + "reference": "somewhere in reward protocol, we need to do if epoch is Fairbank { a.foundationBonusP2StartEpoch = genesis.xxx a.foundationBonusP2EndEpoch = genesis.yyy p.state(sm, adminKey, &a) } that is to write the 2 new values at Fairbank height then this logic can follow" + }, + { + "prediction": "I think this should be `inventory_dao.CaiTemporaryStore.__table__.drop` and `inventory_dao.CaiTemporaryStore.__table__.create`", + "reference": "Dropping and recreating would delete all t he previous records, are they any important?" + }, + { + "prediction": "I think this should be `return os.FileExists(paths[\"devices\"])`", + "reference": "While it is technically OK to use `m.GetPaths()` here, and it's a mock code so it doesn't really matter, I'd still like to have `m.Path(\"devices\")` used here, because since commit 714c91e9f73a1512808476eb532b4aa36bbb7530 we're not supposed to use GetPaths() for anything other than state save/restore." + }, + { + "prediction": "I think this should be `true` instead of `false`.", + "reference": "Let's be consistent everywhere: either \"Disable\"/\"Enable\" or \"Disabled\"/\"Enabled\". I'm voting for the latter.:)" + }, + { + "prediction": "Shouldn't this be `if (isGoQuorumCompatibilityMode) { throw new ParameterException(commandLine, String.format(\"%s %s\", \"GoQuorum mode\", errorSuffix));`?", + "reference": "this works and is the smallest possible change but we could definitely fail earlier" + }, + { + "prediction": "I think this should be `!arm64` and not `!arm64`.", + "reference": "Should not have snuck in here right? This is a golang 1.17 feature, wii definitely want to update these" + }, + { + "prediction": "I think this should be `this.prevFolderId_ = null;`", + "reference": "Could you explain the logic with prevFolderId?" + }, + { + "prediction": "I think this should be `TimestampNowFromClock(clock.New()).Unix()`", + "reference": "Please add license header" + }, + { + "prediction": "I think this should be `new lbann_comm_ptr(0, &lbann::finalize)`", + "reference": "It bothers me that the user calls `initialize` without also calling `finalize`. It seems to me that we're essentially making `lbann_comm` a singleton object. Going further down this path, we would put `initialize` inside `lbann_comm`'s constructor and `finalize` in the destructor. This has it's own weirdness - the user must make sure it's lifespan matches the beginning and end of the program. We may also run into the case where someone might want multiple instances of `lbann_comm`, but this is not too important." + }, + { + "prediction": "Why do you need to do this?", + "reference": "We should probably make a unique_ptr typedef in ROMol.h and start using that liberally." + }, + { + "prediction": "I think this should be `@type {Boolean|String|Object}`.", + "reference": "Can you add missing asterisk?" + }, + { + "prediction": "I think this method should be called `toUpperCamelAndDigits(String camelCaseIdentifier)` and not `toLowerCamelAndDigits(String camelCaseIdentifier)` and not `toLowerCamelAndDigits(String camelCaseIdentifier)`", + "reference": "late to the party, but I bet it meant to be `capitalizeLettersAfterNumbers` :)" + }, + { + "prediction": "I think this should be `true` and not `false`.", + "reference": "The Activity is recreated on configuration changes and the value of the field is lost. So, e.g. pressing 'send' once will display the error message. If you rotate the device and press 'send' again, the message will show another time. Use `onSaveInstanceState()` and `onRetainInstanceState()` to save and restore the value of the field." + }, + { + "prediction": "Why is this change needed?", + "reference": "Looks like a \"find and replace\" unintended change here" + }, + { + "prediction": "I think this should be `False` instead of `False`", + "reference": "haven't we got rid off `randomSP` recently? (I think `not learn` implied that)" + }, + { + "prediction": "I think this should be `string(in.GetStatus().Experiment.Phase)` and not `string(in.GetStatus().Experiment.Phase)`", + "reference": "Why we need use `in.GetStatus()` function here? Can we use `in.Status.xxxx` directly?" + }, + { + "prediction": "I don't think we need to check if the renewal is already happening.", + "reference": "@cretz Just a thought: what if another renewal process updates the certificate between the beginning of this for loop (above on line 67) and actually calling RenewCert? Even though we have a read lock on the certCache, something else could have renewed it by now, and finished, which would cause this certificate to be renewed twice. Could you double-check my thinking here and see if that's a plausible 'race' condition? I wonder if the lock needs to be put over this whole function. (It's still early here; I could be wrong...)" + }, + { + "prediction": "I think this should be `ExtQuery(ILLDBServices* services)` instead of `ExtQuery(ILLDBServices* services)`", + "reference": "We don't need this for the PInvoke?" + }, + { + "prediction": "I think this should be `if ds.GenericDeploymentConfig.DeploymentNotification == nil { return nil, nil }`", + "reference": "nits, I think add a log (using s.logger) to show why does this return with no error is better." + }, + { + "prediction": "I think it would be better to return a `status.Error` instead of a `status.Error`.", + "reference": "Btw, It would be nice if we have some tests for those validation functions." + }, + { + "prediction": "I think this should be `methodName` and not `paramName`", + "reference": "Should this be called something that indicates its function, rather than its content? validationMessagePrefix, or similar?" + }, + { + "prediction": "I think this is a good idea, but I'm not sure if this is the right thing to do.", + "reference": "Please remove this line" + }, + { + "prediction": "I think this should be \"Don't run the client\" instead of \"Don't run the daemon\"", + "reference": "You could change the name of the command line switch too. Short options are typically one character after hyphen. wxWidgets' command line parser seems to handle `-nd` without confusing it with `-n` or `-d` but I'm not sure if that's by design or by accident. I'd remove the short option. `--no-daemon` is with hyphen but the rest of Manager and client uses underscore. Please change that." + }, + { + "prediction": "I think this should be `--compare-dest`", + "reference": "File is not `goimports`-ed (from `goimports`)" + }, + { + "prediction": "Why is this change removed?", + "reference": "Why are we mentioning toybox in this message? AND it still says \"tdnf error\". What's the actual error? Should it be resolved instead of flagged?" + }, + { + "prediction": "I think we should use `MongoDriverError` instead of `MongoStreamClosedError`.", + "reference": "You can remove these if they've been resolved in NODE-3405 and this isn't depending on it" + }, + { + "prediction": "I think this should be `class=\"col-xs-12\">`", + "reference": "don't need the class here if its empty" + }, + { + "prediction": "I think we should use `Ember.computed` instead of `Ember.computed`", + "reference": "This should be computed('i18n.locale'...." + }, + { + "prediction": "Why is this change needed?", + "reference": "Please add return and return type description to docstring of this method." + }, + { + "prediction": "Layout/SpaceInsideHashLiteralBraces: Space inside { missing.
    Layout/SpaceInsideHashLiteralBraces: Space inside } missing.
    Layout/SpaceInsideHashLiteralBraces: Space inside } missing.
    Layout/SpaceInsideHashLiteralBraces: Space inside } missing.
    Layout/SpaceInsideHashLiteralBraces: Space inside } missing.
    Layout/SpaceInsideHashLiteralBraces: Space inside } missing.
    Layout/SpaceInsideHashLiteralBraces: Space inside } missing.
    Layout/SpaceInsideHashLiteralBraces: Space inside } missing.
    Layout/SpaceInsideHashLiteralBraces: Space inside } missing.
    Layout/SpaceInsideHashLiteralBraces: Space inside } missing.
    Layout/SpaceInsideHashLiteralBraces: Space inside } missing.
    Layout/SpaceInsideHashLiteralBraces: Space inside } missing.
    Layout/SpaceInsideHashLiteralBraces: Space inside } missing.
    Layout/SpaceInsideHashLiteralBraces: Space inside } missing.
    Layout/SpaceInsideHashLiteralBraces: Space inside } missing.
    ", + "reference": "What does 1 << 32 do? In irb typing this yields 4294967296. I didn't find the append operator in Numeric or Integer." + }, + { + "prediction": "I think this should be `@succeeded?` instead of `@succeeded?`", + "reference": "We generally use metadata for this sort of thing, indeed there is a `metadata[:execution_result]`." + }, + { + "prediction": "Why do we need this?", + "reference": "This was very confusing until I realized this might refer to the *bokeh* use of the word 'streaming'." + }, + { + "prediction": "I think this should be `map[string][]api.ContainerStateChange` instead of `map[string][]api.ContainerStateChange`", + "reference": "Can you rename this as `tasksToContainerStates` ? If you do that, you can rename the lock as well" + }, + { + "prediction": "Why is this change needed?", + "reference": "Fixing `lint` warnings that have existed for a while." + }, + { + "prediction": "I think this method should be `Iterator fill(int n, T element)`", + "reference": "An iterator **of {\\@code n} sequential elements,** where each element ~are~ **is the** given {\\@code element}." + }, + { + "prediction": "I think this should be `nameof(IntegrationIds.MySqlCommand);`", + "reference": "If all of the `SqlCommandIntegrationName` values are the same, can we just remove it from `IAdoNetClientData` entirely and put the constant there?" + }, + { + "prediction": "I don't think we need to import `logr` here.", + "reference": "Maybe regroup this import with the other cert-manager packages." + }, + { + "prediction": "I think this should be `if (theme == R.style.Theme_AntennaPod_TrueBlack)`", + "reference": "There are spaces missing ;) Just have a look at the code style of the `if` statement above" + }, + { + "prediction": "Why is this change needed?", + "reference": "We should pass the size limit as a parameter to Drain so that we don't take messages out of the pool and then drop them. It's ok to merge as is, I will file an issue." + }, + { + "prediction": "(style) line over 80 characters", + "reference": "Patch lists are used in many places so this is going to break other updates. This should just be a local change in emit_special_ibl_xfer() to pass the second-to-last instruction instead of the last instruction." + }, + { + "prediction": "Why is this change needed?", + "reference": "@argakiig previous work was above live threshold, causing the high difficulty to bleed into other blocks when genesis open was processed in tests." + }, + { + "prediction": "Line is too long. [89/80]", + "reference": "Metrics/LineLength: Line is too long. [89/80]" + }, + { + "prediction": "I think this should be `HidePIDDisable` instead of `HidePIDDisable`", + "reference": "Please also extend the config tests now to include the new field." + }, + { + "prediction": "I think this should be `true` instead of `false`.", + "reference": "I think it's wise to keep the behavior backwards-compatible (so `false` as default)" + }, + { + "prediction": "I think this should be `opts[:sameSite] ||= false`", + "reference": "We don't need this line, do we?" + }, + { + "prediction": "I don't think we should be using the `User-agent` header here, but I think it would be better to use `User-agent: SEOkicks-Robot` instead of `User-agent: SEOkicks-Robot`.", + "reference": "I don't know if we've actually had this problem on Upcase. I'd lean towards having a blank file unless (like on robots) we see multiple errors per week from this crawler." + }, + { + "prediction": "I think this should be `0.09804` instead of `0.43921`", + "reference": "I'm not good at picking colors, if anyone else has a preference." + }, + { + "prediction": "This should be `clearTimeout(this.scheduleRefreshFoldersIID_);`", + "reference": "Note that even if you cancel the timer, the refreshFolders function might still be running since it's async. Could that be a problem for the test units? One big issue I had with tests is they sometimes would work and sometimes fail randomly, and that's because there are still code running in the background. One example was the ItemChange class, which saves data asynchronously. So I've implemented a waitForAllSaved(), which can be used for test units, to make sure nothing is running once the test ends. So just wondering if we might end up with this issue here." + }, + { + "prediction": "I think we should use `expect.fail` instead of `expect.fail`", + "reference": "can we make this something more descriptive? like... types should compile? I'm still not sure exactly what this is testing... this says \"Exported types\" - but what does tsd actually look at?" + }, + { + "prediction": "Why is this removed?", + "reference": "this method is need for full screen video button to appear in players" + }, + { + "prediction": "I think this should be `*uint64` instead of `*uint64`", + "reference": "Why is this a pointer?" + }, + { + "prediction": "Shouldn't this be `checkArgument(width > 0, \"The width of truncate must larger than zero,but is %s\", width);`", + "reference": "nit: Space after comma" + }, + { + "prediction": "I think this should be `XLELongField` instead of `XLELongField`.", + "reference": "A similar field is already define in `scapy/layers/bluetooth.py`. Can you merge both definitions ?" + }, + { + "prediction": "This should be `std::strtok(&data[0], \",\");`", + "reference": "`std::strtok` isn't necessary. The `std::string::find_first_of` is better C++ alternative to `std::strtok`. For example, see `CheckedError Parser::ParseEnumFromString` method." + }, + { + "prediction": "Why did you remove this?", + "reference": "This property is already declared in a parent with the same visibility/type/value. This one is redundant." + }, + { + "prediction": "I think this should be `flush` instead of `write`.", + "reference": "This is required, otherwise multiprocessing will (for some reason) crash" + }, + { + "prediction": "I think this should be `go-algorand/data/basics`", + "reference": "Please put in a separate line-separated block" + }, + { + "prediction": "I think this should be `fmt.Errorf(\"Disconnect error: %s\\n\", err)`", + "reference": "Should error be eaten? If so, not clear why" + }, + { + "prediction": "Why do we need this?", + "reference": "This attribute is not defined if the condition is not met. Instead, you could define another RouteFactory (e.g. `BucketRouteFactory` with a class attribute like `allow_empty_list`)" + }, + { + "prediction": "I think this should be a `hivev1.Timestamp`", + "reference": "Can we use the existing `InstalledTimestamp` function?" + }, + { + "prediction": "Is there a reason why we need to check if the nutrition data is valid?", + "reference": "weird naming: `is` but `fields` (plural or singular ?) . If the method checks if the fragment has an invalid value, then \"hasInvalidValue\" or \"containsInvalidValue\" is fine no ?" + }, + { + "prediction": "I think this should be `/` instead of `/`", + "reference": "Does this mean that `listenbrainz.org/user/iliekcomputers` will start getting 404s?" + }, + { + "prediction": "Line is too long. [89/80]", + "reference": "Line is too long. [82/80]" + }, + { + "prediction": "I think this should be `async_select_unrequired`", + "reference": "That's a strange name =)" + }, + { + "prediction": "I think we should add a test for `custom_templates` and `custom_templates_with_origin` as well.", + "reference": "Thoughts on this? I'm not crazy about the brittleness of this but haven't found a good way to test more generically that a specific (custom) template has been rendered." + }, + { + "prediction": "I think this should be `subscribe` instead of `subscribe`", + "reference": "Have we reached binding-level agreement on the `subscribe` terminology? My only concern is that it doesn't seem descriptive enough and may be confused with subscribing for notifications." + }, + { + "prediction": "I think this should be `if l.SpanContext.IsValid() {`", + "reference": "would it not be safer to move this condition to the `addLink` method?" + }, + { + "prediction": "I think we should use `res.Body.Close()` instead of `res.Body.Close()`", + "reference": "I think this might read better: > some apps need the response headers before starting to stream content with http2, so it's important to explicitly flush the headers to the client before streaming the data." + }, + { + "prediction": "nit: `@return` should be `@return`", + "reference": "What does this return if there is no partition? I think that we should consider adding a struct type that describes this tuple. That way, we can use an empty struct for unpartitioned and a non-empty struct for tasks that are combined by partition. We could also support more combinations, like combining across day partitions by not across bucket partitions or similar." + }, + { + "prediction": "I think this should be `libkbfs.RepoDoesntExistError` instead of `libkbfs.RepoDoesntExistError`.", + "reference": "Also, it might be worth returning this for the above lookup on `kbfsRepoDir` as well, which could happen if someone tries to delete a repo in a TLF that has never had any repos at all." + }, + { + "prediction": "I think this should be `.localhost, localhost, .localdomain`", + "reference": "Can this be `Hidden: true` as we already have a bunch of flags that are printed on `--help` and this seems like an average person should not care about it." + }, + { + "prediction": "Why not use `Config::get('cms.enableTwigStrictVariables', null) !== null` ?", + "reference": "Wouldn't this set $strictVariables = true when Config::get returns false?" + }, + { + "prediction": "Why is this needed? I think it would be better to use `org.junit.Ignore` instead of `org.junit.Ignore`.", + "reference": "was this meant to be checked in?" + }, + { + "prediction": "I think this should be `DEFAULT_RTT_MEASUREMENT_INTERVAL`", + "reference": "check spaces after const name..." + }, + { + "prediction": "I think this should be `if agent.resourceFields.NvidiaGPUManager != nil && agent.resourceFields.NvidiaGPUManager != nil {`", + "reference": "If the GPU setting is enabled, resourceFields.NvidiaGPUManager will be nil, right?" + }, + { + "prediction": "Shouldn't this be `unless file_exist?(script)` instead of `unless file_exist?(script)`?", + "reference": "We should probably verify that it's readable too" + }, + { + "prediction": "Why is this change needed?", + "reference": "See, here's an example where you removed the variable but kept the call, which makes sense." + }, + { + "prediction": "I think this should be `request.isInitiatedByUser();`", + "reference": "Please use `request.getTitle()` instead of `feed.getHumanReadableIdentifier()`: In this case, `feed` does not have a human readable title yet" + }, + { + "prediction": "I think this should be \"failing to connect to clef signer: %v\", err", + "reference": "I think the wording on the left is better" + }, + { + "prediction": "Why is this change needed?", + "reference": "Please update the method described to point out that it maintains a chain of interceptors and they will be called in the same order passed in the options." + }, + { + "prediction": "I think this should be `if (args.Name.StartsWith(\"Datadog.Trace, Version=\") && args.Name.StartsWith(\"Datadog.Trace, Version=\") && args.Name.StartsWith(\"Datadog.Trace, Version=\") && args.Name.StartsWith(\"Datadog.Trace, Version=\") && args.Name.StartsWith(\"Datadog.Trace, Version=\") && args.Name != AssemblyName) return null;", + "reference": "Is this case purely hypothetical or did it solve an issue that occurred in your testing? I'm trying to understand this change a little better" + }, + { + "prediction": "I think we should use `int(p.shard.GetShardID())` instead of `int(p.shard.GetShardID())`.", + "reference": "Use instead `convert.Int32ToString` that was added in #762 for this purpose." + }, + { + "prediction": "I think this should be `this.contains(element) ? this : new HashSet<>(tree.put(element, element));`", + "reference": "If key is present, tree.put(k,v) needs to return a new instance for Maps and the same instance for Sets. Therefore we currently perform an additional 'contains' check for Sets. A future optimization may add an additional flag `replace` to the backing HAMT.put() / RedBlackTree.insert() methods. Sets set it to replace=false, Maps set it to replace=true. But for now this solution is working for us." + }, + { + "prediction": "I think this should be `ellipsis.Ellipsis`", + "reference": "This is a regression test for code I found while working on this." + }, + { + "prediction": "Why not use `strncpy` here?", + "reference": "I'm wondering if we need to delete jsonStr and jsonAttr after the json_extract_path_text call to avoid unnecessary heap pressure. Though if json_extract_path_text itself does new's on the same heap, we'd get heap fragmentation. Another approach would be to allocate these on the stack instead, avoiding both concerns: char jsonStr[len1+1]; char jsonAttr[len2+1]; ..." + }, + { + "prediction": "`int` is a `int` here.", + "reference": "Does it come as `str`?" + }, + { + "prediction": "Why is this change needed?", + "reference": "This should actually read as the following `for (int i = 0; i < allergens.size(); i++)`" + }, + { + "prediction": "I think this should be `if v.IsNull() { return b.AppendNil(j)`", + "reference": "This is so useful and safety, I want to propose making AppendBool, AppendInt, etc. all private functions, and forcing us to use AppendValue(j, values.New(false)), etc." + }, + { + "prediction": "I think this should be `if (ref && argsChanged(state._args, args)) { ref.current = createHandle(); }`", + "reference": "Really, really small nit I believe there's 3x tabs in here? And should it be just 2x?" + }, + { + "prediction": "I think this should be `false` instead of `true`.", + "reference": "Perhaps note that rclone can't do this yet?" + }, + { + "prediction": "I think this should be `&http3.RoundTripper{}`", + "reference": "You probably don't need to set an empty config here." + }, + { + "prediction": "I think this should be `util.datetime_types = []` instead of `util.datetime_types = []`", + "reference": "I think you are missing `cftime.DatetimeAllLeap` here. That said, all of these are subclasses of `cftime.datetime`, so I think you could get away with just using `cftime.datetime` here, rather than enumerating all of the different subclasses (since `cftime_types` is only used for instance checks)." + }, + { + "prediction": "I don't think we need to change this, but I think it would be better to add a `PredecessorBlockDeviceCPK = \"openebs.io/bd-predecessor\"` as well.", + "reference": "don't we need to set this label on pool pods? I don't see them being set" + }, + { + "prediction": "Why is this change needed?", + "reference": "can remove, it isn't reachable." + }, + { + "prediction": "Line is too long. [92/80]", + "reference": "`expect(cancellation).to be_can_downgrade_instead` would be preferred :rainbow: :rainbow:" + }, + { + "prediction": "I think this should be `if (_socket.IsClosed) { break; }`", + "reference": "Gross. The OS should timeout writes for completely unresponsive clients to begin with. Long term, the better solution is to enforce a minimum minimum data rate for responses. This might require a way to cancel LibuvAwaitables, but it definitely not OK to immediately kill the socket and any ongoing writes just because the request processing loop completed. You could consider doing that after some kind of timeout, but at that point you might as well just enforce a minimum rate." + }, + { + "prediction": "(style) line over 80 characters", + "reference": "If this is not used, we should just delete the line." + }, + { + "prediction": "Why is this removed?", + "reference": "Are there other callers to this function. How will they be impacted." + }, + { + "prediction": "Why is this needed?", + "reference": "Let's be consistent. The majority of boto code does not use relative imports. Let's just stick to the existing standard of \"from boto.package.subpackage import Thing\"." + }, + { + "prediction": "I think this should be `Optional` instead of `Optional`", + "reference": "Suggestion: specify `arity` for this option." + }, + { + "prediction": "I think this should be `True` or `False`.", + "reference": "This is a parameter available for the matplotlib backend IIRC. In which case, it is good to see this support added to the Bokeh backend." + }, + { + "prediction": "I don't think we need to do this, but I think it would be better to use `StringUtils.length` instead of `StringUtils.length(traceId).length()`", + "reference": "trim has performance impact and this is the lowest level library... seems the trim if occurs should happen in the UI or Query controller instead.." + }, + { + "prediction": "I think this should be `pylint: disable=no-member`.", + "reference": "Probably also needed for the `http.client.FOUND` below?" + }, + { + "prediction": "I think this should be `--es6-js-export` instead of `--es6-js-export`.", + "reference": "Can you also add this to Compiler.md ?" + }, + { + "prediction": "Shouldn't this be `retries`?", + "reference": "!numbers -> numbers" + }, + { + "prediction": "I don't think we need to change the format of \"com.google.orgname.artifact.name\" to \"com.google.orgname.artifact.name\"", + "reference": "This description doesn't seem quite right for the longrunning case - `longrunning` isn't an orgname." + }, + { + "prediction": "I think this should be `return null;` instead of `return null;`", + "reference": "maybe give it a more descriptive name, e.g. `competitiveFilter`" + }, + { + "prediction": "I think we should keep the master list as well.", + "reference": "This occurrence of \"master\" is unrelated to master/slave replication. Maybe simply remove the word \"master\" or replace it with \"reference\" but \"primary\" doesn't really make sense." + }, + { + "prediction": "I think this should be `go-filecoin/exec/proofs` and not `go-filecoin/proofs`", + "reference": "BLOCKING: This is a problem. We shouldn't be introducing new dependencies on proofs into actors. The miner has some dependencies that should be removed (#2555). This could be accomplished either by moving `proofs.Mode` to `types.ProofsMode` or by forgoing a new type altogether and replacing it with a boolean. The later would have the additional advantage of reducing the number of types we have to export through ABI. I get why `proofs.Mode` has value as a type over a boolean, but I'm not sure it's worth it here." + }, + { + "prediction": "Why is this change needed?", + "reference": "We probably want to log the fact that a `MessageId` was not present in the response. In addition the `RequestID` from `request.Request` should be included in the message so that the user is aware of the issue." + }, + { + "prediction": "I think this should be `const { id, webPropertyId, accountId, propertyID } = fixtures.propertiesProfiles.profiles[0];`", + "reference": "It feels a bit strange to re-assign that here, as that line itself has no context on why it's reassigned. I'd prefer if we could pass `{ propertyID: webPropertyId }` below instead (that's how we do that elsewhere too). This also applies to other similar re-assignments below - let's rather pass the values within the objects as applicable, since then there is more clear context on why this \"rename\" / \"reassignment\" is necessary (because of an object expecting specific properties)." + }, + { + "prediction": "I think this should be `countly.compare.models.js`", + "reference": "remove this in the new pr aswell when moving compare to plugins as discussed." + }, + { + "prediction": "I think this should be `if (varHolder == nullptr) { return Status::Error(\"VarHolder nullptr.\"); }`", + "reference": "check varHolder is nullptr is redundant, ExecutionContext ensure" + }, + { + "prediction": "I think we should use `ENV.fetch(\"UNSUBSCRIBE_SECRET_BASE\", \"SHA256\").freeze` instead of `ENV.fetch(\"UNSUBSCRIBE_SECRET_BASE\", \"SHA256\".freeze, \"SHA256\".freeze, \"SHA256\".freeze, \"SHA256\".freeze, \"SHA256\".freeze, \"SHA256\".freeze, \"SHA256.freeze\", \"SHA256.freeze\", \"SHA256.freeze\", \"SHA256.freeze\", \"SHA256.freeze\", \"SHA256.freeze\", \"SHA256\".freeze, \"SHA256.freeze\", \"SHA256.freeze\", \"SHA256.freeze\", \"SHA256.freeze\", \"SHA256.freeze\", \"SHA256.freeze\", \"SHA256.freeze\", \"SHA256.freeze\", \"SHA256.freeze\", \"SHA256.freeze\", \"SHA256.freeze\", \"SHA256.freeze\", \"SHA256.freeze\", \"SHA256.freeze\", \"SHA256.freeze\", \"SHA256.freeze\", \"SHA256.freeze\", \"SHA256.freeze\", \"SHA256.freeze\", \"SHA256.freeze\", \"SHA256.freeze\", \"SHA256.freeze\", \"SHA256.freeze", + "reference": "Make these frozen constants?" + }, + { + "prediction": "I think this should be `if not isHtml` instead of `if not isHtml`", + "reference": "Please use something like html.escape() to ensure that the text is totally safe to include within html. < is not enough." + }, + { + "prediction": "Why is this 2 needed?", + "reference": "why is a buffered channel larger than 1 needed here? the separate goroutines can just try to write to the channel with a select-default block, and then it is not needed. i find the current implementation a bit convoluted, maybe we could simplify it a bit? not sure why it is needed for example to communicate an empty result. these patterns can be simplified using waitgroups" + }, + { + "prediction": "I think this should be `201504101813` instead of `20150415145819`", + "reference": "There seem to be more changes in here than I'd expect (mostly `limit: 255` additions)." + }, + { + "prediction": "I think this should be `TraceStateKeyLength` instead of `TraceStateKeyVendorMaxLength`", + "reference": "I'm not sure, but I think it's `Tenant`" + }, + { + "prediction": "I think this should be `bool` instead of `bool`.", + "reference": "Not sure if it's an issue, but this is a breaking change in a public API. Maybe we should add as an overload without optional parameter instead and delegate the existing call to this one?" + }, + { + "prediction": "I think this should be `o.chooser.Choose()` instead of `o.chooser.Choose()`", + "reference": "as opposed to exposing the chooser function and increasing our API exposure for the purpose of tests, can we move the HTTP transport config test into this package?" + }, + { + "prediction": "(style) line over 80 characters", + "reference": "This is using the legacy DRM interface. DPMS levels have been removed from the atomic interface IIRC. Should we handle DPMS levels at all?" + }, + { + "prediction": "Why is this change needed?", + "reference": "I think this was correct before. The nonce passed in here is the nonce at a block (which is the next nonce not yet used, e.g. 0 if the account was never used, 1 if only the tx with nonce 0 has been sent). So if the in-block nonce is 12, then a transaction with nonce 12 cannot have been included yet." + }, + { + "prediction": "I think this should be `data: () => {}, close: () => {},`", + "reference": "Please name the file ShareExtension.js, as you import it under this name (also could you convert it to TypeScript please?)" + }, + { + "prediction": "I think this should be `tls_insecure` instead of `tls_insecure`", + "reference": "Not sure if we need it, but if we set it, be sure to add `,omitempty`." + }, + { + "prediction": "Why is this change needed?", + "reference": "It's the whole `PublicHeader` that will change soon, and we should state that here, not in the member functions. If Jana's proposal for a new header is accepted, we might also want to rename the fields here. For example, there won't be a dedicated version flag anymore, so a more appropriate name might be `ContainsVersion` instead of `VersionFlag`." + }, + { + "prediction": "Why is this change needed?", + "reference": "I think `element` can stay of type `Character` because `Character` is a final class. The we do not need the cast in the line below." + }, + { + "prediction": "I think this should be `isInterface()`.", + "reference": "Not sure, if we should do it the other way round. If you ask be in the middle of the night, whether Interface should return true as \"isInterface\" and what Annotation would return. I'd tell you, Annotations should return false.... I want to say, on first glance, I'd say, it's easier to have \"isInterface\" and \"isAnnotation\" rather than \"isInterface\", \"isAnnotation\" and \"isRegularInterface\"... But I see, we also have \"isRegularClass\".... We still have the possibility to change the semantics of those APIs in PMD 7 *Update:* Or in other words: What is less surprising? That isInterface returns true for annotations or that it returns false?" + }, + { + "prediction": "I think this should be `terminate_after = None` instead of `terminate_after`", + "reference": "This will potentially skip package results. Do we really want that?" + }, + { + "prediction": "I think this should be `CUDA_ERROR_COOPERATIVE_LAUNCH_TOO_LARGE`.", + "reference": "Please remove `HIP_UNSUPPORTED`" + }, + { + "prediction": "I think this should be `MutableStateStatus` instead of `MutableStateStats`", + "reference": "if this is a \"Status\" type then the variable name \"Stats\" (which implies \"statistics\") seems wrong (or at least confusing to me)" + }, + { + "prediction": "I think this should be `leakedInsecureKey` instead of `leakedInsecureKey`", + "reference": "maybe will be better to put it into the default worker's config rather than hardcoding the address?" + }, + { + "prediction": "Why is this change needed?", + "reference": "It seems like this is not meant to test the option failure, but rather that `raw` can be set. This may be a superfluous test now, and we might want to delete it." + }, + { + "prediction": "(style) line over 80 characters", + "reference": "This is already done by `view_set_fullscreen`" + }, + { + "prediction": "I think this should be a `slice` instead of a `slice`", + "reference": "mmm I followed the convention of this collection. It has Add, Remove, RemoveAll, so All sounds reasonable. Else It would likely be AddPeer, RemovePeer, RemovePeers and Peers." + }, + { + "prediction": "Shouldn't this be `@return \\Shopsys\\FrameworkBundle\\Model\\Product\\Flag\\Flag`?", + "reference": "_nitpick_ I'm thinking about whether this method should be in the previous commit or not. I know it's not yet used there, but in theory, neither do UUID itself." + }, + { + "prediction": "I think this should be `VLOG(2) << \"Term has been updated, previous \" << term_ << \", current \" << term_;`", + "reference": "\"break\" is right? You skip the line 768." + }, + { + "prediction": "I don't think we need a `current_user_method` here, but I think it's better to use `current_user.admin?` instead of `current_user.admin?`", + "reference": "Can this use the route helper instead?" + }, + { + "prediction": "I think this should be `http.Handler` instead of `http.Handler`.", + "reference": "Why is this field exported and others aren't?" + }, + { + "prediction": "I think this should be `/test/functional/dns_txt_records_tests.js` and `/test/functional/dns_txt_records_tests.js`", + "reference": "should we rename this like `mongodb_srv_tests.js`?" + }, + { + "prediction": "Why not use `String.isEmpty` instead of `String.isEmpty`?", + "reference": "This should still have a value when there is no page title, e.g. just `__( 'Search Traffic Summary', 'google-site-kit' )`." + }, + { + "prediction": "I don't think we need to add a `@link` annotation here.", + "reference": "Oops.. meant to link to SplitOp here. I'll clean up in my next commit" + }, + { + "prediction": "Why is this needed? I think it's better to use `io.reactivex.schedulers.AndroidSchedulers` instead of `io.reactivex.schedulers.Schedulers`.", + "reference": "Remove these unnecessary imports that you've added." + }, + { + "prediction": "I think this should be `success_https` instead of `success_https`", + "reference": "That space shouldn't be here :wink: This lead to an exception whenever a page with an error was loaded, e.g. an inexistent host - I just fixed that :smile:" + }, + { + "prediction": "Why is this change needed?", + "reference": "It seems this is not the way to fix issue #505." + }, + { + "prediction": "I don't think we need to change the `pos_weight` parameter here.", + "reference": "Please take a look at the docstring of `F.binary_cross_entropy_with_logits`. `weight` should be a tensor that matches the input tensor shape. It is Not the class-aware weight. `pos_weight` should be a vector with a length equal to the number of classes." + }, + { + "prediction": "I think this test should be `import with network tags` instead of `import with network tags`", + "reference": "Same here, merge with an existing test." + }, + { + "prediction": "I think this should be `EDKII_SD_MMC_SLOT_INIT_TEMPLATE`", + "reference": "@aimanrosli23 Could you help to confirm if you do not revert the change in below commit: SHA-1: 643623147a1feaddd734ddd84604e1d8e9dcebee * MdeModulePkg/SdMmcPciHcDxe: Send SEND_STATUS at lower frequency" + }, + { + "prediction": "I think this should be `org.apache.iceberg.Schema` instead of `org.apache.iceberg.Schema`.", + "reference": "Can we do this without a breaking API change? What about adding a different name to convert directly to a Schema?" + }, + { + "prediction": "Why is this needed?", + "reference": "Why do we need to pull bluebird in here?" + }, + { + "prediction": "Why is this change needed?", + "reference": "If *two* threads successfully download the same project into two different temp dirs, and one of them successfully renames one to its final destination, the `if`on line 102 will be false _in the other thread_, and it would leave its temp dir behind." + }, + { + "prediction": "(style) line over 80 characters", + "reference": "I would appreciate it if you could rename `link` to `all_link` so that the roles of the two links (the other is `target_link`) become clearer." + }, + { + "prediction": "Why is this change needed?", + "reference": "Is there a reason not to use `smi.create_expectedIndex` here (and in other places)? The `smi.create_expectedIndex` function will also check to make sure that you don't accidentally skip or duplicate any indexes. With the goal of avoiding errors in the test. It does mean that you have to be diligent with how the expected indexes are created, which can be annoying too. My logic was that it is better to be annoyed by constraints during development time than to find out some time later that the test didn't do what I thought." + }, + { + "prediction": "I don't think we need this change, but I think it's a good idea to add a `@checkout.user_email` to the `@checkout` object, but I think it's a good idea to have a `@checkout.user_email` as well as the `@checkout.user_email` as well.", + "reference": "Put a comma after the last parameter of a multiline method call." + }, + { + "prediction": "I think this should be `*bool` instead of `*bool`", + "reference": "I don't know if we even need this parameter." + }, + { + "prediction": "Why is this change needed?", + "reference": "What is the new result of this file if we keep it the same than before? It's just to picture easily what changed in this MR :) (thinking is hard)" + }, + { + "prediction": "Why do we need async here?", + "reference": "This needs to be synchronous for the timeout to work." + }, + { + "prediction": "I don't think we need to do this, but I think it would be better to use `purchaseable.reminder_email` instead of `purchaseable.reminder_email`", + "reference": "Can you break this onto multiple lines?" + }, + { + "prediction": "I think this should be `EXT_SIMD5,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0", + "reference": "OK, it looks like all children have bit 4 set, but it doesn't really matter at this split point: just informative, nothing reads it." + }, + { + "prediction": "I think this should be `bool` instead of `bool`.", + "reference": "Sorry for the very basic question but why do we still have a DNSZone CRD in light of the DNSEndpoint, I don't fully understand the differences." + }, + { + "prediction": "Why is this needed?", + "reference": "Looks like loop with overhead. You can: - create SID - test private function `sessionIsUnique()`" + }, + { + "prediction": "I think this should be `PREF_QUEUE_SORT_ORDER` instead of `PREF_QUEUE_SORT_ORDER`", + "reference": "In my opinion, it would be better to have two separate settings. One that stores if sorting is enabled and one that stores the order. That allows to toggle automatic sort without having to re-select the order." + }, + { + "prediction": "I think this is a good idea to remove the `os` package.", + "reference": "/me can't wait to rename this repo :)" + }, + { + "prediction": "I think this should be `const collectionLoader = makeLazyLoader(` and `const dbLoader = makeLazyLoader(`", + "reference": "nit: maybe call these `loadCollection()/loadDb()`" + }, + { + "prediction": "I think this should be `on_external_failure`", + "reference": "Did you consider just do `return Task is an external data dependency and data does not exist (yet?).'`? Less `None`'s and `ifs`." + }, + { + "prediction": "I don't think we need to add the `render partial: 'bookmarks/refworks_form'` here.", + "reference": "Some day, we really need to make these toolbars pluggable.." + }, + { + "prediction": "I think this should be `self._show_source_pygment()`", + "reference": "This should be `pygment=False` like in `browsertab.py`" + }, + { + "prediction": "I think this should be `if opts.MaxSubs > 0 && len(s.clients) >= opts.MaxConn {`", + "reference": "Should this be moved down (or up) to under the client lock instead of server lock?" + }, + { + "prediction": "Why is this removed?", + "reference": "Why are we removing this?" + }, + { + "prediction": "I think this should be `##{self.cart.id}` instead of `##{self.cart.id}`", + "reference": "What do you think about using `self.id` ?" + }, + { + "prediction": "Shouldn't this be `log.Warnf(\"Retrying to start Typha\")`?", + "reference": "Please log once here at Error level \"Failed to connect to Typha, will retry...\"" + }, + { + "prediction": "I don't think we need to change the version to `2.18.1` since it's the same as `2.18.0` and `2.18.1`", + "reference": "Can you revert this change? The `VERSION` value will be updated after maintainer determines the version at release." + }, + { + "prediction": "Why is this change needed?", + "reference": "It could be better if we use the up case letter to specify the constant string name. Such as QUALIFIED_SERVICE_NAME_KEY can let the user know it's a constant string." + }, + { + "prediction": "I think this should be `if @configuration.fail_if_no_examples` instead of `if @configuration.fail_if_no_examples`", + "reference": "This should be `@configuration.failure_exit_code`, we don't want to hard code 1." + }, + { + "prediction": "I think this should be `@return` instead of `@package`.", + "reference": "Changed per review in Blockly." + }, + { + "prediction": "I think it would be better to add a `LoadRegRange(int(marksReg), int(macRewriteMark), int(macRewriteMarkRange))` to the `Action().LoadRegRange(int(marksReg), int(macRewriteMark), int(macRewriteMarkRange))` to the `Action().LoadRegRange(int(marksReg), int(macRewriteMark), int(macRewriteMarkRange))` method.", + "reference": "Hi @wenyingd . so what's the original dst MAC of the reply packet from kube-proxy?" + }, + { + "prediction": "I think this should be `exclude-too-few-public-methods`.", + "reference": "Note: I wasn't sure what the right wording would be for this, so I used existing language from elsewhere in the codebase." + }, + { + "prediction": "I think this should be `self.config['vagrant']['instances']` instead of `self.config['vagrant']['instances']`", + "reference": "Docstring for `platform`." + }, + { + "prediction": "I think this should be `if err := cleanup(); err != nil { fmt.Fprintf(os.Stderr, \"error restoring console to functional state: %v\\n\", err)`", + "reference": "This should be called before any `os.Exit` otherwise it could still mess up things." + }, + { + "prediction": "Why is this changed?", + "reference": "shouldn't this be `short` ?" + }, + { + "prediction": "I think we should use `fmt.Sprintf(\"%s|%s|%s|%s|%s\", items.ObjectMeta.Name, items.Spec.CasType, items.Spec.Capacity)` instead of `fmt.Sprintf(\"%s|%s|%s|%s\", items.ObjectMeta.Namespace, items.Spec.Name, items.Spec.CasType, items.Spec.Capacity)`", + "reference": "Can you please paste the output of `volume list` command which will show capacity of a openebs volume." + }, + { + "prediction": "Shouldn't this be `!`?", + "reference": "I'd make this a `throw new NullPointerException(\"metric == null\");` instead" + }, + { + "prediction": "I think this should be `#include \"../Util/LuaUtil.h\"`.", + "reference": "Include should be order lexicographically." + }, + { + "prediction": "Why is this change required?", + "reference": "We need to pass in the Activity context here, so that LoginActivity is used, and so that LoginActivity can get onActivityResult from the PasscodeActivity. Without this, the application context is used, and we don't get a callback when the passcode is done." + }, + { + "prediction": "Layout/MultilineMethodCallBraceLayout: Closing method call brace must be on the same line as the first argument.", + "reference": "Can you move these to the top please, for consistency with other models - normally we put scopes immediately after the associations at the top of the model. As to names I agree with @gravitystorm that these names may be confusing but I'm not sure the ones I suggested are perfect either so I'm not really sure what's best. The goal of my names was just to separate point which could be ordered (as `ordered`) from those which can't (as `unordered`) but I realise that may not be very clear from the names." + }, + { + "prediction": "Shouldn't this be `UserPreferences.getShouldRepeatEpisode()`?", + "reference": "Looks like the episode should also not be deleted when repeating" + }, + { + "prediction": "I think this should be `github.com/mholt/caddyhttp/httpserver`", + "reference": "I feel like goimports would move this import line by the other non-std packages... can you double-check that? Run goimports or set up your editor to run it on save. :+1:" + }, + { + "prediction": "I don't think we need this method, but I think it's a good idea to add it to the `options` hash in the `options` hash.", + "reference": "`options['binary'] = WebDriver::Chrome.path` if set?" + }, + { + "prediction": "I think this should be `explorer.db` and not `explorer.db`", + "reference": "File is not `goimports`-ed (from `goimports`)" + }, + { + "prediction": "I think this should be `bool` instead of `bool`.", + "reference": "Nit: Supported -> Enabled." + }, + { + "prediction": "Why is this change needed?", + "reference": "Yay! I was too lazy to fix this." + }, + { + "prediction": "Why is this removed?", + "reference": "other declaration of errors (from `typecheck`)" + }, + { + "prediction": "I think this should be `errInvalidGitHubRepo = errors.New(\"Please enter a valid GitHub repository, e.g. https://github.com/myCompany/myRepo\")`", + "reference": "nit: error starts with capital letter" + }, + { + "prediction": "I think we should use `StringUtils.toLowerCase(flags.getString(i))` instead of `StringUtils.toLowerCase(flags.getString(i));`", + "reference": "the original code ignores \\Draft and \\Recent, whereas your change will not. what this matters, i'm not sure." + }, + { + "prediction": "I think this is a bit confusing, but I don't think we need to do this.", + "reference": "Why was this necessary?" + }, + { + "prediction": "I think this should be `--rerun` instead of `--rerun`.", + "reference": "Can you also do this for Cover?" + }, + { + "prediction": "I think this should be `VK_IMAGE_ASPECT_PLANE_0_BIT | VK_IMAGE_ASPECT_PLANE_1_BIT | VK_IMAGE_ASPECT_PLANE_2_BIT`", + "reference": "So I tried adding this VU a long time ago, thought it would be this simple of a check, but turns out there were other validation in the way for getting here in `ValidateImageAspectMask` I assume that is what is failing CI here, realized it would require some more refactoring" + }, + { + "prediction": "I think this should be `self[column].to_s` instead of `self[column].to_s`", + "reference": "This method is not needed for postgresql, by default sum function omits null values so we can remove this file" + }, + { + "prediction": "I don't think you need to change the variable to `systemdsystemgeneratordir`.", + "reference": "Can you provide a `--with-systemdsystemgeneratordir` option here? So that I can do unprivileged installs without completely turning off systemd. I can add it as a follow-up PR too." + }, + { + "prediction": "Why is this change needed?", + "reference": "`classification` is misspelled" + }, + { + "prediction": "Why is this change needed?", + "reference": "Can you change this to `sampleInitCode`?" + }, + { + "prediction": "I think this should be `startTs.getVersion()` instead of `startTs.getVersion()`", + "reference": "I added a startTs information in `TiDagRequest` output. Not really sure if it is useful? @zhexuany" + }, + { + "prediction": "I don't think we need to check for `width` and `height` here.", + "reference": "This prevents margin/border/padding CSS from affecting the width/height (otherwise in Chrome a width and height of 1 would result in a rect size of 5x5)." + }, + { + "prediction": "I think this should be `#skip_authorization` instead of `#skip_authorization`", + "reference": "prefer to just add this to the `verify_authorized` exception list above since we're already making exceptions." + }, + { + "prediction": "Why do we need to reset the parent_classes?", + "reference": "was there a reason to not loop over parent classes here?" + }, + { + "prediction": "I think we should use `Ember.computed` instead of `Ember.computed`", + "reference": "@billybonks Why move `import Ember from 'ember';` to the top?" + }, + { + "prediction": "I think we should add a `transition_to: :pending` to the `state:pending` event, so that we don't have to add a `transition_to: :actionable` event to the `state:pending` event.", + "reference": "Everything's so simple (a `ThreeStateWorkflow`) until it isn't :smirk:" + }, + { + "prediction": "Why is this change needed?", + "reference": "I don't quite understand where the NaNs come from..." + }, + { + "prediction": "Why is this change needed?", + "reference": "File is not `goimports`-ed" + }, + { + "prediction": "I think this should be `wheel_resolver` instead of `wheel_resolver`", + "reference": "I wonder if we should look at moving the Python stuff to a plugin and doing this there rather than adding to core plz at this point?" + }, + { + "prediction": "I think this should be `ansible_playbook.AnsiblePlaybook.inventory_file`", + "reference": "This is the actual bug fix. I prob should have broken this out into two PRs." + }, + { + "prediction": "I think this should be `IsEip3529Enabled`", + "reference": "I am not sure if we need this, we already have DifficultyBombDelays" + }, + { + "prediction": "Why do we need to dispose delaySource and linkedSource?", + "reference": "move to finally - I can see at least one return that would omit it, also any exception and so on" + }, + { + "prediction": "Why is stakingV2 set to nil?", + "reference": "remove `genesisConfig.GravityChainStartHeight == 0`" + }, + { + "prediction": "I think this should be `require_once __DIR__ . '/../' . $symfonyDumpFunctionPath;`", + "reference": "this might kill whole application if `var-dumper` will not be installed. What about two separate file_exists conditions (monorepo/project)?" + }, + { + "prediction": "I think this should be `app.CreateSettingsFile()` instead of `app.CreateSettingsFile()`", + "reference": "Hrm. Maybe this isn't the correct spot to run this? Because it errors if the app type doesn't support settings. But we want to check that before running it." + }, + { + "prediction": "Why do we need this? I think it would be better to use `pretty_route_list` instead of `pretty_route_list`.", + "reference": "Why are you changing this name ?" + }, + { + "prediction": "I think this should be `if os.environ.get(\"USER\") == \"localstack\":`", + "reference": "as we discussed, maybe it would be better to - [ ] set OVERRIDE_IN_DOCKER=1 in the Dockerfile - [ ] replace the if statement with `os.path.exists(\"/run/.containerenv\")` as @dfangl suggested" + }, + { + "prediction": "I think this should be `is_being_called_in_call` instead of `is_being_called_in_call`", + "reference": "I like this style of doing things better than having super big conditional without explanation. Even though I know this won't be re-used it's nice to have a function if only for clarity." + }, + { + "prediction": "I think this should be `if @group_level > 0` instead of `if @group_level > 0`", + "reference": "Our preference here is to either have inline statements e.g. `@group_level -= 1 if @group_level > 0` but stylistically here I think `return @group_level if @group_level == 0` might be nicer. As it stands however our rubocop is picking this up as a fail :(" + }, + { + "prediction": "I don't think we need to fix it in the parent class.", + "reference": "Spark3 Is supported in OSS Iceberg, Do you mean this particular function is not supported in Spark3? If so I think we should have a more clear reason why" + }, + { + "prediction": "I think this should be `check.str_param(notebook_path, \"notebook_path\")` instead of `check.str_param(notebook_path, \"notebook_path\")`", + "reference": "something about the arbitrary file access part here makes me nervous. Can we keep the `if not path.endswith(\".ipynb\")` check from before here as well? Just imagining a weird attack scenario where somebody somehow uses this to get access to confidental files or something" + }, + { + "prediction": "I think we should use `search_builder_class.new(processor_chain, self)` instead of `search_builder_class.new(processor_chain, self)`", + "reference": "I wonder if we should push this and the search_params_logic into the blacklight config." + }, + { + "prediction": "Why is this set to 10?", + "reference": "don't need this line, since it is not tested here?" + }, + { + "prediction": "I think this should be `ami_version=\"1.0\"`", + "reference": "I wonder if adding this new param in the middle of the param list might screw up some existing code that is depending on the old parameter order. Might be better to add it to the end of the parameter list?" + }, + { + "prediction": "I think we should use `String.format(\"%s/(build|src/generated.*)/.*\", project.getBuildDir().getAbsolutePath());` instead of `String.format(\"%s/(build|src/generated.*)/.*\", project.getProjectDir().getAbsolutePath());`", + "reference": "I wonder if this absolute path is gonna affect the build-cache relocatability of these compile tasks??" + }, + { + "prediction": "I think we should use `this.inTransaction = options && options.inTransaction;` instead of `this.writeConcern = undefined;`", + "reference": "possible bug if `fullResponse` is false" + }, + { + "prediction": "I don't think we need to import `re` here.", + "reference": "nitpick: Please only `import string` here and use `string.ascii_lowercase` - I really like to see what module stuff is coming from without looking at the imports." + }, + { + "prediction": "I think this should be `console.dir(err)`", + "reference": "nitpick: the only reason we have a catch for every one of these promises is because the test isn't properly chaining promises (returning them within each `then`). We could reduce the `catch` with `console.dir` to a single instance if that was done" + }, + { + "prediction": "I think this test should be removed.", + "reference": "why do this?" + }, + { + "prediction": "This should be `SystemMediaLibrary::class`.", + "reference": "For consistency, would it not be best to also replace the first class name? `traceLog('Class ' . static::class . ' has been deprecated, use ' . SystemMediaLibrary::class . ' instead.')`" + }, + { + "prediction": "I think this should be `EnableAdminApi` or `EnableAdminApi`?", + "reference": "this should be `EnabledAdminAPI` and the json string should then be `enableAdminAPI`" + }, + { + "prediction": "I don't think we need to import sqlalchemy here.", + "reference": "Noticed some missing imports in manage.py so thought I'd add them" + }, + { + "prediction": "I think this should be `if exp.IsConnectionDying(&record.Conn)) {`", + "reference": "as a future improvement, maybe we should just change `ForAllFlowRecordsDo` so that `updateOrSendFlowRecord` uses a flow record pointer instead of a copy of stored flow record. This whole code is executed with the lock any way." + }, + { + "prediction": "I think this should be `\\u2122\\u2122\\u2122\\u2122\\u2122\\u2122\\u2122\\u2122\\u2122\\u2122\\u2122\\u2122\\u2122\\u2122\\u2122\\u2122\\u2122\\u2122\\u2122\\u2122\\u2122\\u2122\\u2122\\u2122\\u2122\\u2122\\u2122\\u2122\\u2122\\u2122\\u2122\\u2122\\u2122\\u2122\\u2122\\u2122\\u2122\\u2122\\u2122\\u2122\\u2122\\u2122\\u2122\\u2122\\u2122\\u2122\\u2122\\u2122\\u2122\\u2122\\u2122\\u2122\\u2122\\u2122\\u2122\\u2122\\u2122\\u2122\\u2122\\u2122\\u2122\\u2122\\", + "reference": "I am not sure what GitHub wants to tell me with this icon here :)" + }, + { + "prediction": "Why is this change needed?", + "reference": "can we also check for smaller zoom levels returning valid error codes?" + }, + { + "prediction": "I think this should be `LogHeader1` and `LogHeader2`", + "reference": "1) These names are not great, doesn't help explain what they do. 2) Instead of methods like this that hard code some number of = and *, why not a method that takes the string, defaults to a char to surround with, and a width? 3) Do we really even need headers like this in the output? Maybe we ditch them." + }, + { + "prediction": "I think we should use `[0, 0, 0, 0]]` instead of `[0, 0, 0, 0]`.", + "reference": "The autocomplete editor shouldn't change its own behavior, I assume that `autoWrapCol` and `autoWrapRow` options should be set to `false` in handsontable editor." + }, + { + "prediction": "I think this is a good idea, but I think it would be better to have a test for `InstallClusterServiceFlows(true, true)` and `InstallClusterServiceFlows(false, true)` and `InstallClusterServiceFlows(false, true)` and `InstallClusterServiceFlows(true, true)` and `InstallClusterServiceFlows(true, true)` and `InstallClusterServiceFlows(true, true)`).", + "reference": "out of curiosity, with IPv6 introduced, why there's no change to the expected output of openflow in the test?" + }, + { + "prediction": "(style) line over 80 characters", + "reference": "nit: grammar: instruction" + }, + { + "prediction": "Please remove empty line.", + "reference": "We can revert this to reduce the diff of the PR." + }, + { + "prediction": "I think this should be `ReconcileHiveConfig` instead of `ReconcileHiveConfig`", + "reference": "i think this missed the reconciler to callsite change" + }, + { + "prediction": "I think this method should be `getClientConfigImportModule` or `getGrpcClientImportName`", + "reference": "Please reuse `getClientConfigPath`." + }, + { + "prediction": "I think this should be `require('../../tools/spec-runner/matcher').default`", + "reference": "Should we use the shared chai-addon.js file here? Actually we should consolidate any `chai.use` calls, I see 20 instances, quick win?" + }, + { + "prediction": "Why is this change needed?", + "reference": "Maybe move _agreedCapabilities and _availableCapabilities from List to SortedSet ? We could order them by code and then by version already." + }, + { + "prediction": "Why do we need to set `o.sseq = o.lss.resume + 1` here?", + "reference": "I see the `+1` issue, but we used to check if `o.lss != nil` and we don't anymore, so we are sure that it won't be nil here, right?" + }, + { + "prediction": "I don't think we need to check if `document.respond_to?(:export_as_preferred_citation_txt)`", + "reference": "why is the `send` needed?" + }, + { + "prediction": "I think this should be `if isinstance(bboxes, torch.Tensor):` or `if isinstance(bboxes, torch.Tensor):`", + "reference": "Is this necessary? If so, we need to update the docstring." + }, + { + "prediction": "Layout/MultilineMethodCallBraceLayout: Closing method call brace must be on the same line as the first argument.", + "reference": "Checking for actionable here instead of grabbing the first pending approval. I tested this with proposal ID 265 on staging." + }, + { + "prediction": "I think this should be `assert self._result == expected`", + "reference": "I made this change because I wasn't getting printouts of the 'result' value when the assert was inlined for some reason. I think it's related to creating new CallbackCheckers maybe?" + }, + { + "prediction": "I think this interface should be `IHttpStartLineHandler` instead of `IHttpHeadersHandler`.", + "reference": "nit: the correct name is \"request line\", so let's use the right one here :)" + }, + { + "prediction": "I think this should be `assert os.environ['ALLOW_INSECURE_CATALOG_ACCESS']`", + "reference": "This should now use `[]`, so it crashes if the var is missing" + }, + { + "prediction": "(style) code indent should use tabs where possible", + "reference": "you could use `bpf_map_update_elem` with `BPF_EXIST`" + }, + { + "prediction": "Shouldn't this be `Filed`?", + "reference": "thanks for noticing this! But I think we should not have it in this PR." + }, + { + "prediction": "I think this should be `this.inputs[i].sequence = Input.DEFAULT_LOCKTIME_SEQNUMBER;` or `this.inputs[i].sequence = Input.DEFAULT_LOCKTIME_SEQNUMBER;`", + "reference": "A few things: - This may not serialize because I think the property for the sequence number on an input is `.sequenceNumber`. - There should be tests to cover these statements - Indentation is incorrect (should be two spaces, as similar to the statements above)" + }, + { + "prediction": "I think this should be `cls.supported_data_formats.get(data_format, 'csv')` or `cls.supported_data_formats.get(data_format, 'json')`", + "reference": "If this is a base method that could be used by others, should you hardcode 'GCS uploader' here?" + }, + { + "prediction": "Is there a reason to use `StringBuilder` instead of `StringBuilder`?", + "reference": "just a little thing: let's introduce a `final int bound = length - back.length();` that saves us calculating the bound each time checking the loop condition." + }, + { + "prediction": "I think this should be `/settlements/pay/{peer}/settlements` and `/settlements/pay/{peer}/settlements` and `/settlements/pay/{peer}/settlements`", + "reference": "I think that this should be a POST method, as it changes the state. Get requests should not change the state. With different method, I would suggest to have the handler under `\"/settlements/{peer}\"` path." + }, + { + "prediction": "I think this should be `0x4200000000000000000000000000000F` or `0x4200000000000000000000000000000F`", + "reference": "This is the default value?" + }, + { + "prediction": "I don't think we need to import `time` here.", + "reference": "The spaces are actually legitimate here: in python, you: - first import standard library modules (hint: time is one) - then import 3rd party library modules - then import the modules from you project (here kinto). Between each block you need an empty line." + }, + { + "prediction": "I think this should be `if name := obj.Name(); name != \"\" && name != \"\" {`", + "reference": "Haha, whoa, I'm not sure how I let that one go by. :)" + }, + { + "prediction": "I think this should be `.md` for \"text/markdown\" as well as other extensions in MimeTypeDetectionByFileExtension.properties.", + "reference": "FWIW: We have FileUtil.generateOriginalExtension for tabular files but it uses a hardcoded list rather than the properties file." + }, + { + "prediction": "I don't think we need to check if the AKS or EKS is enabled. If the AKS is enabled, the hostnetwork traffic will be encrypted on EKS. If the AKS is enabled, the hostnetwork traffic will be encrypted on EKS. If the AKS is enabled, the hostnetwork traffic will be encrypted on EKS. If the AKS is enabled, the hostnetwork traffic will be encrypted on EKS.", + "reference": "I would consider extracting this logic in to a helper function to make it a bit more readable, but that's just my opinion." + }, + { + "prediction": "I think this should be `bool` instead of `bool`.", + "reference": "Are all fields beginning with \"Debug\" automatically `;local` ? (I guess so, but just checking.)" + }, + { + "prediction": "I think this should be `mmcv.runner.EvalHook` or `mmcv.runner.DistEvalHook`", + "reference": "We should let this module inherits from the EvalHook supported in MMCV, and only override the `__init__` function by adding the warnings. The other functions can use those in MMCV." + }, + { + "prediction": "Why not use `String` instead of `String`?", + "reference": "Let's use prepared statements here instead " + }, + { + "prediction": "I think this should be `GoogleComponents` instead of `GoogleComponents`", + "reference": "Just leaving this in one place but thanks so much for re-organising all these imports. " + }, + { + "prediction": "I think this should be `#ifdef X86`", + "reference": "Ditto, here and below" + }, + { + "prediction": "I don't think we need to check if `vnode.type` is a function.", + "reference": "Let's move the check outside the `for`-loop so that we don't have to do it for every prop. If we change it to check for `vnode.type === 'string'` we can automatically skip checking text nodes which don't have props " + }, + { + "prediction": "I think we should use `hook_list` instead of `hook_list`.", + "reference": "Seems like the docstring here should simply be \"Deprecated; use `hooks` instead.\"." + }, + { + "prediction": "Shouldn't this be `UserPreferences.getTheme() == R.style.Theme_AntennaPod_TrueBlack`?", + "reference": "It would be nice to have an `attr` in `styles.xml` for this, so we don't need the same `if` statement in multiple places" + }, + { + "prediction": "I think we should add a `unique: true` index to the teachers table.", + "reference": "How about `null: false` on these two lines? Also `t.timestamps null: false`?" + }, + { + "prediction": "I think this should be a `RuntimeException` instead of a `RuntimeException`.", + "reference": "This recommendation isn't very helpful because it isn't clear what \"the metastore\" is. How about this instead: \"To fix this, use an alternative metastore\"." + }, + { + "prediction": "I think we should use `SymbolTable.isSymbolUsed(Name symbol)` instead of `SymbolTable.isSymbolUsed(Name symbol)`", + "reference": "The `SymbolTable` deals only with symbols, I think we can just call this `isUsed` here." + }, + { + "prediction": "I think we should use `new webdriver.http.XhrClient(url)` instead of `new webdriver.http.XhrClient(url);`", + "reference": "Please hide this behind a flag and add a setter function to the builder." + }, + { + "prediction": "I think this should be `for rt in resp[\"RouteTables\"]` instead of `for rt in rt.get(\"Associations\", []):`", + "reference": "Just a side-node, no need to change it here: The term \"recent\" might be confusing at a later point in time." + }, + { + "prediction": "I think we should use `Object.keys(val1)` instead of `Object.keys`", + "reference": "When can it be undefined? Wouldn't that be a bug?" + }, + { + "prediction": "Why is this needed? I think it's better to use `org.sun.glassfish.gmbal.ManagedObject` instead of `org.sun.glassfish.gmbal.ManagedObject`.", + "reference": "JMX offers normal APIs for this. I don't think you want the glassfish one." + }, + { + "prediction": "I think this is a good idea. I think it would be better to use `F.mean(colname).alias(\"{}_mean\".format(colname))` instead of `F.mean(colname).alias(\"{}_mean\".format(colname))` and `F.mean(colname).alias(\"{}_mean\".format(colname))`", + "reference": "Could you remove `,' at the end?" + }, + { + "prediction": "Shouldn't this be `assert(typeof opt_port === 'function', 'start invoked with function, not port (mocha callback)?');`?", + "reference": "Maybe it would simpler to ignore opt_port if type !== 'number'?" + }, + { + "prediction": "Why is this change needed?", + "reference": "do you want to rename the codec tag here too?" + }, + { + "prediction": "I think this should be `SELECT_CAST_SINK_TO_USE` instead of `SELECT_CAST_SINK_TO_USE`", + "reference": "These command names are specific to Chromium-based browsers. Please move to `ChromiumDriverCommand`" + }, + { + "prediction": "I think we should use `functions.__all__` instead of `functions.__all__`", + "reference": "Hm.. should we auto-patch? I am less sure on this yet as `percentile_approx` seems a Spark function and auto-patching it in Koalas seems a bit counterintuitive." + }, + { + "prediction": "I think this should be `ServiceContainerTestCase` instead of `ServiceContainerTestCase`", + "reference": "I found domain use in `AllFeedsTest::getAllFeedExportCreationData` and class AllFeedsTest is descendant of `FunctionalTestCase`. I think so we can rewrite this too.." + }, + { + "prediction": "I think this should be `JobID_DESCRIPTOR`.", + "reference": "I am wondering if it is better to consolidate all committer checkpoint states into a single structure, e.g. Pojo class or Avro record which are Flink supported state types for schema evolution." + }, + { + "prediction": "I think we should use `debug.signal_name(signal)` instead of `debug.signal_name(signal)`", + "reference": "I assume this is a performance optimization to only check this once when creating the signal filter? While you're at it, maybe make `BLACKLIST` a set instead?" + }, + { + "prediction": "I think this should be `this.db_.loadExtension(path, (error) => { ... });`", + "reference": "Please use async/await and try/catch" + }, + { + "prediction": "Why is this change needed?", + "reference": "Like I said, this code looks incorrect. Why is it still looking up the attribute? Why is it getting the type from `nested->type.struct_def` instead of `field.nested_flatbuffer`? Are you running `generate_code.sh`, because I think `nested->type.struct_def` would be null?" + }, + { + "prediction": "I think this should be `return;` instead of `return;`.", + "reference": "Actually, I'm not sure why lines 1663-1668 are here. Looks like Push descriptors aren't used in the test at all. @ziga-lunarg?" + }, + { + "prediction": "Why not use `lowerUnderscoreToCamel(field.getSimpleName())` instead of `lowerUnderscoreToCamel(field.getSimpleName())`?", + "reference": "Don't we still want to check it it's a keyword?" + }, + { + "prediction": "I think this should be `
    #{link_text}`", + "reference": "this can just me `link_text` :tomato:" + }, + { + "prediction": "I think this test should be `assert_eq(pser.argsort().sort_index(), kser.argsort().sort_index())` or `assert_eq(pser.argsort().sort_index(), kser.argsort().sort_index())`", + "reference": "What if the Series contains null values?" + }, + { + "prediction": "Why is this change needed?", + "reference": "Every place you see a change like this, it's because `PhysicalLocation` is now its own object, not an array of `PhysicalLocationComponent` objects. The `Uri` is the key into the `FileInfo` dictionary." + }, + { + "prediction": "I think this should be `eps = 1e-12`", + "reference": "Like in atss_head" + }, + { + "prediction": "Why do we need to do this in a loop?", + "reference": "nit : I think it would be better to have the multiplier being calculated along with `pool.numPendingWholeBlocks`, so that we could always multiply the feePerByte with that multiplier. Not only that it would be faster, but it would also have constant time. btw - Correct me if I'm wrong, but with this change, you're practically rolling back your previous change while making it `pool.expFeeFactor` adjustable, right ?" + }, + { + "prediction": "I think this should be `before_filter:authenticate_user!`.", + "reference": "Is there a reason we _wouldn't_ want to do this? A bit of a security hole :grimacing:" + }, + { + "prediction": "I think we should use `FileInputStream` instead of `FileInputStream`.", + "reference": "Please add a copyright notice to all new files. Is there a tool to check and auto update copyright notices?" + }, + { + "prediction": "Why is this change needed?", + "reference": "A new translation dump should be made after this change (removing the \"Email\" message)" + }, + { + "prediction": "I think this should be `var implicit = implicitNodes(role).map(implicitSelector => implicitSelector + ':not([role])');`", + "reference": "CI is failing saying `expected [TypeError: null is not an object (evaluating 'implicitNodes(role).map')] to equal null`." + }, + { + "prediction": "Why is this change needed?", + "reference": "@JoviDeCroock I replaced the refs here with simple assignments." + }, + { + "prediction": "I think this should be `protected`.", + "reference": "nit: Could we use VisibleForTesting annotation here?" + }, + { + "prediction": "I think this should be `.order('created_at', 'desc')` instead of `.order('created_at', 'desc')`", + "reference": "Can we create some post records to assert sort_by" + }, + { + "prediction": "I think this should be `s.handshakeService.Handle(NewStream(stream), peerID)`", + "reference": "is this necessary?" + }, + { + "prediction": "Shouldn't this be `List>`?", + "reference": "What is the purpose of this? It seems like it is used to indicate whether there is a filter on a span. But what filter? Could there eventually be multiple filters per span? Just not understanding." + }, + { + "prediction": "I think this should be \"running\" or \"paused\"", + "reference": "using a certain type instead of using string directly." + }, + { + "prediction": "Why is this change needed?", + "reference": "fix trailing ," + }, + { + "prediction": "Align the elements of a hash literal if they span more than one line.
    Align the elements of a hash literal if they span more than one line.
    Align the elements of a hash literal if they span more than one line.
    Align the elements of a hash literal if they span more than one line.
    Align the elements of a hash literal if they span more than one line.
    Align the elements of a hash literal if they span more than one line.", + "reference": "I've fixed it for this change but for future reference there's no point doing string substitution for a single value like that - it will just slow things down. Just use `:mlat => trace.latitude` etc instead." + }, + { + "prediction": "Why is this removed?", + "reference": "The form no logger needs validation?" + }, + { + "prediction": "I think this should be `metricsToExport.Metrics.Count > 0`", + "reference": "there'd be more changes in the area, when we implement \"clean-up\" of aggregators if no new updates. (i think we currently send metricitem to exporters with zero as value)" + }, + { + "prediction": "I think this test should be `assertIn('resource_name', resp.json['details'])`", + "reference": "Usually we only keep the assertions that are relevant to the specification (ie. the test title). For example, the test on the values of id and details is not properly relevant for the spec _collections are isolated by bucket_. I suggest that you only keep the assertions regarding `details` in dedicated tests similar to `test_unknown_collection_raises_404` from `test_views_records.py`, but for each of bucket, group, collection and record in the other `test_views_` files." + }, + { + "prediction": "I think this should be `arguments` instead of `arugments`.", + "reference": "The test sources are ok though, you don't need to remove those changes" + }, + { + "prediction": "I think this should be `width * 2` instead of `width * 2`", + "reference": "`maxWidth: width * 2,` Potentially, this will be the same as `getImageUrl`: 80px or 500px. I can't verify this - need for normal LiveTV tuner." + }, + { + "prediction": "I think it would be better to use `String#contains(String, String)` instead of `String#contains(String, String)`", + "reference": "Not really related to this issue but should we use fuzzy search here as well (like for apps)?" + }, + { + "prediction": "I think this should be `forceQR`", + "reference": "isn't the usual capitalization for subcommands force-qr? (don't care too much about it)" + }, + { + "prediction": "I think this should be `ERROR` instead of `SUGGESTION`.", + "reference": "Do you know how many repos have hit this?" + }, + { + "prediction": "I think it would be better to use `@filter.present?` instead of `@filter.present?`", + "reference": "I'll be interested to see if our gettext rake tasks will pick up on this text to translate" + }, + { + "prediction": "I think this should be `hasParam` instead of `hasParam`", + "reference": "I think you need to change line 928 value from 6 to 7 too, since now table will have 7 values" + }, + { + "prediction": "I think this test should be `assert f1[:, [\"cat\", \"dog\", \"mouse\"]].to_list() == [[1, 0, 0, 1]]`.", + "reference": "Does `f0[::-1, :]` mean all the rows taken in a reverse order?" + }, + { + "prediction": "I think we should use `\\n` instead of `\\n`", + "reference": "Looks like there are strange characters here." + }, + { + "prediction": "Why is this change needed?", + "reference": "It is better to have a check to ensure the format is valid." + }, + { + "prediction": "I think this should be `public readonly bool NextAlreadyDefined`", + "reference": "How about `nextAlreadyDefined` variable name in method signature?" + }, + { + "prediction": "Why is this change needed?", + "reference": "In older SDK versions the data converter was called 3 times but now it is 2. This is because logic was changed deep in the interceptor chains on when values are serialized and encoded and such. Previously we invoked the data converter on results _even if there was an error_ (and most of the time they were nil). Now we don't do such a thing, resulting in fewer calls." + }, + { + "prediction": "I think this should be `github.com/google/knative-gcp/pkg/reconciler/events/build`", + "reference": "formatting... can this import go next to the other sources ones?" + }, + { + "prediction": "(style) line over 80 characters", + "reference": "I don't understand why anyone would pass 0? If you don't want to attach to an existing process you just wouldn't pass -attach. I would remove that sentence and make 0 an invalid argument." + }, + { + "prediction": "Why is this removed?", + "reference": "This change is responsible for #2775" + }, + { + "prediction": "I think this should be `s => s.Increment(MetricsNames.ExceptionsCount, It.IsAny(), It.IsAny(), It.IsAny(), new[] { \"exception_type:CustomException1\" } )`", + "reference": "Should we add this to the other \"never\" verification in lines 71-73 above, too?" + }, + { + "prediction": "Why is this change needed?", + "reference": "Fixed this since it no longer needed to be switched from a generator to a list, this was missed when I cleaned up the dataset code in an earlier PR." + }, + { + "prediction": "Why is this change needed?", + "reference": "This is an informational message that allows someone to read the console output and understand how the grid node is configured. Please leave." + }, + { + "prediction": "Metrics/LineLength: Line is too long. [98/80]", + "reference": "Can we convert this to an arel as below ContributorFact .joins(:project).where(projects: { id: project_id}) .where('name_id = ? or name_id in (?)', name_id, AnalysisAlias.select(:preferred_name_id) .joins(:project) .where(commit_name_id: name_id) )" + }, + { + "prediction": "I think this should be `var cg CgroupParams` and not `var cg CgroupParams`", + "reference": "Does this cause issues if you have lots of load on the machine? Having a global variable for this seems like a bad idea IMO." + }, + { + "prediction": "Shouldn't this be `IllegalArgumentException`?", + "reference": "We probably don't need to print the msg with e.getMessage(). It will be printed by the logger since we are passing the exception as a parameter." + }, + { + "prediction": "Why is this removed?", + "reference": "Can we get a test with multiple directories as per the initial example?" + }, + { + "prediction": "Why do we need this?", + "reference": "I assume this is because you were seeing cases where left was a negative number? When?" + }, + { + "prediction": "I think this should be `cstdlib.h` and not `cstdlib.h`.", + "reference": "this is undoing recent changes for increased consistency of include file statements. please restore to the original." + }, + { + "prediction": "I think this should be `PreferBuiltInConcurrentKeySet`", + "reference": "If these are applied in order, should `LambdaMethoReference` come after `OptionalOrElseMethodInvocation`" + }, + { + "prediction": "Why is this change needed?", + "reference": "Why this rename?" + }, + { + "prediction": "I think this should be `if sys.version_info >= (3, 3):`", + "reference": "Why do we do this check here? `sys.version_info` cannot be less than 3.3 as pylint does not support older versions. I think we should avoid popping `__main__` altogether." + }, + { + "prediction": "I think this should be `server_cmd.extend(['--verbose', 'debug'])`", + "reference": "This can be removed too." + }, + { + "prediction": "Why do we need to make this `MakeMdID`?", + "reference": "I'm a little worried about the new extra calls to `MakeMdId`, since in most local-server KBFS profiles, hashing is the biggest CPU user, and not re-using the value calculated by the client will result in even more hashing. That said, I understand why you did it this way, and I don't have a concrete suggestion on how to make it better. Just something to keep in mind; plus it might be worth comparing the test speed before and after this change to make sure it didn't slow things down too much." + }, + { + "prediction": "I don't think we need to import `wp.i18n` and `wp.element` here.", + "reference": "`lodash` shouldn't be grouped under WordPress dependencies" + }, + { + "prediction": "I think we should remove the coding header here.", + "reference": "Just curious, but how did you work out that Aleksey Sadovoy, Peter Vgner and Joseph Lee contributed to this file? Did you look at the repository history?" + }, + { + "prediction": "Is there a reason why we don't need this walk?", + "reference": "You could call OnStopRude() directly here to do the same thing." + }, + { + "prediction": "I think we should be able to do this in a separate PR.", + "reference": "This TODO and this `sort` depend on how the UI looks like. So I think we should fix the UI before continuing on updating this web API. For example, in case the UI flow is as below, this API will receive a Piped ID and then return just ones belonging to that Piped. - User picks where they want to deploy first (select one Piped and one cloud provider) - Then API will be called to show the list of suggested apps for that Piped and cloud provider - User picks app they want to create" + }, + { + "prediction": "I think this should be `--status` instead of `--status`.", + "reference": "This command rolls back the volume data to the specified snapshot. Once the roll back to snapshot is successful, all the data changes made after the snapshot was taken will be post. This command should be used cautiously and only when there is an issue with the current state of the data." + }, + { + "prediction": "I think this should be `aws.String(\"ecs-functional-tests/awslogs/%s\", taskId)`", + "reference": "should this be a separate/new functional test?" + }, + { + "prediction": "I think this should be `expect` instead of `expect`", + "reference": "Can these also assert at least the length of arrays returned and ideally contents?" + }, + { + "prediction": "I think this should be `if not getattr(task, 'param_visibilities', None):`", + "reference": "`hasattr(task, 'param_visibilities')` is more concise with the same effect, but either one works." + }, + { + "prediction": "I think this message should be `W1114` instead of `W1114`.", + "reference": "I would hedge this a little, maybe `Positional arguments appear to be out of order`. After all, it's just a guess." + }, + { + "prediction": "Why not use `SnackbarHandler.show(coordinatorLayout, getString(no_account_signed_in));` instead of `SnackbarHandler.show(coordinatorLayout, getString(no_account_signed_in));`?", + "reference": "you can directly call show() method from **SnackBarHandler.show(coordinatorLayout, getString(no_account_signed_in)).show();** no need to create an extra object and then call the show method." + }, + { + "prediction": "I think this should be `std::stringprintf(\"%s:%d, \", addrStr.c_str(), port);`", + "reference": "concatHosts may be a better func name to explain this?" + }, + { + "prediction": "I think this should be `@return {''}`", + "reference": "A function that returns empty string." + }, + { + "prediction": "I think this should be `if packageName != \"\" || state.Config.FeatureFlags.RemovePleasings {`", + "reference": "If it's not the root package, or if it is the root package but we don't add the psudo :pleasings rule there, print an error." + }, + { + "prediction": "I think this should be `metav1` instead of `corev1`", + "reference": "can delete this line" + }, + { + "prediction": "(style) line over 80 characters", + "reference": "Will it still be an issue if all the models use the same data set?" + }, + { + "prediction": "I think this should be `@parent = @widget.send(@type)` instead of `@widget.send(@type)`", + "reference": "How does this controller_name method work? Does this method grab the context of the url request? Wouldn't this always result in 'widget'?" + }, + { + "prediction": "(style) line over 80 characters", + "reference": "Let's get rid of these for the final version and if you get rid of the macro I left last time I'd be more than grateful." + }, + { + "prediction": "I think this should be `DELETE_MARK`?", + "reference": "Instead of `DELETE_MARK`, how about `IS_DELETED`? I don't think that \"mark\" is clear enough to describe what this is. Similarly, I think the docs should be \"Whether the row has been deleted\". There's no need to include \"delete mark\" because that's identifying something that is not defined (this column is _deleted and \"mark\" is not introduced), and \"or not\" is unnecessary because it is implied by \"whether\"." + }, + { + "prediction": "I think this should be `archive.writestr(\"no-sources\", str(ex))` or `archive.writestr(\"no-sources\", str(ex))`", + "reference": "Does it make sense to have this very thin wrapper that only calls `create_dependencies`? And maybe having `create_dependencies` return a set would be better than convert here?" + }, + { + "prediction": "I think this should be `h2o_get_compressible_types()`", + "reference": "How about renaming `escape` to `use_path_normalized` or something to better indicate that it is a selection between `path` and `path_normalized`?" + }, + { + "prediction": "I think it would be better to use a constant for `NULL_ACCOUNTABLE` instead of `NULL_ACCOUNTABLE`.", + "reference": "Interface members are always `static final` right?" + }, + { + "prediction": "I think this should be `malloc` or `free`?", + "reference": "It seems to me that this could be in the runtime_nintendoswitch.go file, or is there a reason to keep it separate?" + }, + { + "prediction": "Why did you remove this?", + "reference": "I was actually looking at this code over the weekend and wondering whether we were trying to link here. I assume it's been cargo culted from something else in the compiler." + }, + { + "prediction": "I don't think we need to add the `aria-required` class here.", + "reference": "nice extraction of the form for being used at new/edit. We should have more of these" + }, + { + "prediction": "I think this should be `V4*(1 + s1*cos(1x)) + V5*(1 + s3*cos(3x))`", + "reference": "Are the coefficients the actual bug fix?" + }, + { + "prediction": "Why is this change needed?", + "reference": "Why are the error code options in a list and not a tuple?" + }, + { + "prediction": "Why is this change needed?", + "reference": "Need alignment with the preceding line." + }, + { + "prediction": "Why is this change needed?", + "reference": "Changing from a static method to a constant is inessential to Type Transactions and has a long reach, adding many unneeded files and diff lines." + }, + { + "prediction": "I think this should be `values.iterator().hasNext() ? new TreeSet<>(comparator, values) : new TreeSet<>(comparator, values);`", + "reference": "There is one caveat: javaslang.collection.Iterator is Iterable. With Iterator it does not work. Let's revert this line. Does this happen elsewhere, too? I will double-check the code..." + }, + { + "prediction": "Why do we need this? I think it would be better to use `add_thousands_sep` instead of `add_thousands_sep`", + "reference": "Why change the default value of `is_diff`?" + }, + { + "prediction": "Why is this needed?", + "reference": "I think tacking on `,<7` would be a wise precaution in case of future incompatible changes in tenacity." + }, + { + "prediction": "Why not use `array` instead of `array`?", + "reference": "I don't think is necessary to remove the return type" + }, + { + "prediction": "Why not just use `forceApp.decryptWithPasscode(mgr.getUserData(account, AuthenticatorService.KEY_CLIENT_SECRET), passcodeHash);`?", + "reference": "Also added this check, since client secret is not used except in the IP bypass scenario." + }, + { + "prediction": "I think this should be `setProfileID( '' );` instead of `setProfileID( '' );`", + "reference": "That's unrelated, but shouldn't there also be a call to `setInternalWebPropertyID`, making it empty, for this case? Otherwise, when selecting to create a new property, any previous internal web property ID will still be in state, potentially causing problems." + }, + { + "prediction": "Why is this removed?", + "reference": "I wonder if we should trigger a PHP error and ensure it ends up in the log?" + }, + { + "prediction": "This test is off, verify the behavior.", + "reference": "The `move_topic` action be a `post` request since it changes the state of the object." + }, + { + "prediction": "I think this should be `if metadata == nil { metadata = new(core.BuildMetadata) }`", + "reference": "Should we just return a non-nil metadata from `Test`?" + }, + { + "prediction": "I think we should use `cart_notification_email` instead of `cart_notification_email`", + "reference": "Noticing this is really just the same as cart_notification_email. Would be nice to be able to view custom templates. I may update this with some set up that will make viewing specific custom emails easily." + }, + { + "prediction": "Why is this needed?", + "reference": "please don't use wildcard imports" + }, + { + "prediction": "I think this should be `sourceDataReference` instead of `sourceDataReference`", + "reference": "Should we even fix this test? IMO it should be refactored to check that values are recalculated after `setSourceDataAtCell` and `setSourceDataAtRowProp` calls. This will be the correct way to alter the data since now and we're not testing this use case." + }, + { + "prediction": "Why did you remove this?", + "reference": "I'm not sure if this is standard practice, but I would prefer to leave this initialization here, if only to show that such a variable exists in this file (instead of inferring it from the globals). It can also cause weird issues if, for example, `init` isn't run before other methods." + }, + { + "prediction": "Shouldn't this throw an error if nbits is negative?", + "reference": "This isn't how you throw an exception in C++. I'd suggest you take a look elsewhere in the RDKit C++ codebase and see how ValueError exceptions are thrown. Hint: there's a function called `throw_value_error()` that you may find useful." + }, + { + "prediction": "Why is this change needed?", + "reference": "Was changing this to a write transaction required?" + }, + { + "prediction": "I think this should be `[]interface{}` instead of `[]interface{}`", + "reference": "nit: I think \"They\"?" + }, + { + "prediction": "I think this should be `1_099_511_627_776`.", + "reference": "is it a result of some multiplication or some other meaningful number? would be nice to display as a power of something or the mult" + }, + { + "prediction": "I don't think we need this feature anymore.", + "reference": "I think this class is a good example of where Payload could significantly improve things. I'm okay with this class as it stands. If you merge this in, I'd like to have a go at refactoring it after introducing Payload." + }, + { + "prediction": "I think this should be `pytest`", + "reference": "Just a small tip: I think you don't need to include pytest here. You can run tests using: - `pytest tests/path/to/my/test` under the virtualenv to run a single test. - `pytest tests/` under the virtualenv to run all the tests. - `make tests` to run all the tests for all python versions, like travis do. Hope this helps! :)" + }, + { + "prediction": "I think this should be `replacements.items()` instead of `replacements.items()`", + "reference": "Might be worth sorting the replacement items so this is deterministic." + }, + { + "prediction": "I think this should be `cluster_scoped` or `cluster_scoped`.", + "reference": "Should we set the default `TargetNamespace ` to `chaos-testing`? I noticed that the installation script defaults to chaos-testing." + }, + { + "prediction": "Why is this removed?", + "reference": "Why was this `Task.Yield` removed? It was added in purpose." + }, + { + "prediction": "I think this should be `getRequiredFields` instead of `getRequiredFieldsList`", + "reference": "You'll also want to do this below, for the `optionalFieldConfigs`. See `GapicMethodConfig.java:180`." + }, + { + "prediction": "why not use `space` here?", + "reference": "We'd better use \"spaceId\" as variable name here. Because i can't figure out the really type for \"space\" at the first glimpse due to \"auto\" used." + }, + { + "prediction": "I think this should be `packages/libsqreen.1.1.2.2`", + "reference": "I assume we have a package reference somewhere that pulls down the nuget package?" + }, + { + "prediction": "Why is this change needed?", + "reference": "But why introduce publish on `accConnsEventSubjNew` subject if we never subscribe on that subject. What is the plan then? Replace subscription on \"old\" with \"new\" at one point? Not sure about all that.." + }, + { + "prediction": "(style) line over 80 characters", + "reference": "can we use `nullptr` for consistency?" + }, + { + "prediction": "I think this should be `\\Shopsys\\FrameworkBundle\\Component\\Router\\DomainRouter`", + "reference": "strange, for templating\\EngineBundle it was `\\Symfony\\Bundle\\FrameworkBundle\\`" + }, + { + "prediction": "I think this should be `if (!added_new) && is_merge_or_booted`", + "reference": "But if we're on the merge deployment, and the next one is the booted deployment, we'll still be inserting between the merge and booted deployment, right? It seems like we would need e.g. `met_merge` and `met_booted` vars to keep track." + }, + { + "prediction": "I think we should use `tokenList.includes(node.getAttribute('role')).length > 0` instead of `tokenList.includes(node.getAttribute('role')).length > 0`", + "reference": "Can you put the output of this into data, and list which roles are invalid? Same thing with abstract role. I know that's not strictly part of this PR, but it'd make the messaging about this a bunch better." + }, + { + "prediction": "Why is this needed?", + "reference": "rename ibftTwo arg to bft" + }, + { + "prediction": "I think we should add `skip_session_tracking?` to `search_context` and `find_or_initialize_search_session_from_params`", + "reference": "Should we go ahead and push `agent_is_crawler?` into the `skip_session_tracking?` method?" + }, + { + "prediction": "I think this should be `self.file_client.get_local_path(self.ann_file)`", + "reference": "How about we raise a warning here and simply change to use self.data_infos = self.load_annotations(self.ann_file)" + }, + { + "prediction": "This file should be deleted.", + "reference": "Please remove this line to comply with the standard for copyright headers." + }, + { + "prediction": "I think this should be `int MinSealersForFinalization(IList
    validators, bool twoThirds = false) => validators.Count * 2 / 3 + 1;`", + "reference": "seems incorrect - for 5 validators it will tell that 3 is enough to seal and you need 4 2/3 * 5 is 3.3" + }, + { + "prediction": "I don't think we need to use the `ScheduledExecutorService` and `ScheduledFuture` here. I think we should use the `ScheduledExecutorService` and `ScheduledFuture` as well.", + "reference": "Nit: please remove unnecessary whitespace changes." + }, + { + "prediction": "I think this should be `name = \"resource_\" + field.name();`", + "reference": "Is this captured in a test?" + }, + { + "prediction": "Why is this protected?", + "reference": "This is used in o.a.l.sandbox.search.LargeNumHitsTopDocsCollector." + }, + { + "prediction": "why do we need this?", + "reference": "We may also do the same for `schedule_2x.py` and `schedule_20e.py`." + }, + { + "prediction": "Align the elements of a hash literal if they span more than one line.", + "reference": "Should foreign key here be something like `diary_entry_id`? Or above, in `diary_entry.rb`, it should be `diary_entry_id`?" + }, + { + "prediction": "Why is this change needed?", + "reference": "session is a new term. Should we call more like currentCommandBatch or something else?" + }, + { + "prediction": "Why is this change needed?", + "reference": "Will go fmt before squash." + }, + { + "prediction": "I think this should be `true` instead of `false`", + "reference": "Setting this to `true` means that it will always get merged in. The way merging is done here is that if a value is its zero value (`false` for `bool`), the value is considered unchanged. In order for this to work, you'll need to change this to be a `*bool` type instead." + }, + { + "prediction": "Why is this removed?", + "reference": "It was decided that blockSignerAddress is not only redundant (use the miner owner public key instead which is already stored), but does not belong in config." + }, + { + "prediction": "I think this should be `jsonschema=3.*`", + "reference": "are we not asking for trouble here by not pinning this? or does 3.* imply all of the draft versions we'd try to validate?" + }, + { + "prediction": "Why is this removed?", + "reference": "No, we want to compare `tm_py` and `tm_cpp` in this test." + }, + { + "prediction": "I think this should be `maxRequestPayloadBytes` or `maxRequestPayloadBytes`", + "reference": "Let me know if we'd rather have this as an env variable." + }, + { + "prediction": "Why is this change needed?", + "reference": "question: what is happening here?" + }, + { + "prediction": "I think this should be `emptyWithNull` instead of `empty()`.", + "reference": "\\[Checkstyle\\] ERROR: 'protected' modifier out of order with the JLS suggestions\\." + }, + { + "prediction": "I think this should be `EJSON.parse(process.env.CSFLE_KMS_PROVIDERS || 'NOT_PROVIDED');`", + "reference": "Can we use EJSON from bson here? and in doing so avoid bringing in the deprecated `mongodb-extjson` lib `const { EJSON } = require('bson')`" + }, + { + "prediction": "Why is this removed?", + "reference": "So this parameter is now deprecated?" + }, + { + "prediction": "I think this should be `#ifdef HAVE_RSEQ` instead of `#ifdef HAVE_RSEQ`", + "reference": "Actually, it looks like HAVE_RSEQ is only used to determine whether the rseq.h header is around, which then only determines whether the regression test is built: it does not affect whether the core handles an application using rseq. The core rseq mangling code and all the code in rseq_linux.c is always enabled. I believe the idea is that we want DR built on one machine to work on as many others as possible, rather than requiring a custom build for every variant of kernel feature or whatnot. What is the top-level problem being solved here? If it requires disabling or enabling the core handling rseq, probably a separate option should be put in place and maybe HAVE_RSEQ renamed to make it clearer what its consequences are." + }, + { + "prediction": "Why is this changed?", + "reference": "I don't see a corresponding call to freeSelectorSet... am I missing something?" + }, + { + "prediction": "I think this should be `should redirect_to(practice_url)` instead of `should redirect_to(dashboard_url)`", + "reference": "Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping." + }, + { + "prediction": "I think this should be `DatabaseSystemKey` instead of `DatabaseNameKey`.", + "reference": "Is this part of spec?" + }, + { + "prediction": "(style) line over 80 characters", + "reference": "Hmm, do we need to do this for Windows too? It won't have this private loader TLS issue but it will run DR code in a separate thread before DR init is fully done which I think violates some assumptions. For Windows we would move this wait from win32/os.c to win32/callback.s intercept_new_thread where it checks whether it's a client thread right before calling dynamo_thread_init. If you do not want to deal with Windows you could bail on my suggestion and leave the issue open (or maybe file a new issue) for Windows, or if you want to put the suggested core/win32/ change in place and your new test passes on Appveyor we could then claim to have fully solved this related issue too for all platforms." + }, + { + "prediction": "I think this should be `get_lambda_name_from_arn`", + "reference": "We can remove this function and use `lambda_function_name(..)` in this file instead." + }, + { + "prediction": "I don't think we need the application version here.", + "reference": "nitpick: `ApplicationVersion` could be `AppVersion`. It's smaller but gives the same understanding for purposes of the field." + }, + { + "prediction": "I think we should return an empty response if there is no error.", + "reference": "nit: maybe prefer `resp = &workflowservice.PollWorkflowTaskQueueResponse{}` over adding another function exit points especially for non-error cases?" + }, + { + "prediction": "Do we need to check for `read` here? I don't think we need to check for `read` here.", + "reference": "Do we specifically need to keep the read preference as a symbol for use elsewhere? If not, I think it would be cleaner to just modify the options before caching them in the `client_options` method so that we don't do this check every time. If we do need it a a symbol elsewhere, I'd suggest either putting `return @client if @client` at the top of the method (and changing the assignment below from `||=` to `=`) or moving this within the parenthetical block in the last assignment so that we don't repeat this work." + }, + { + "prediction": "I think this should be `preferredMimeType: null`", + "reference": "Since this is for video only, should it be called `preferredVideoMimeType`? If we add it for pictures later, it will likely need to be a different option." + }, + { + "prediction": "I think this should be `using RangeGenerator = image_layout_map::ImageSubresourceLayoutMap::LayoutEntry;` and `using RangeGenerator = image_layout_map::ImageSubresourceLayoutMap::LayoutEntry;`", + "reference": "That doesn't make sense. LayoutEntry doesn't match the generator concept." + }, + { + "prediction": "I think this test should be moved to `TestAppDeployOpts_getAppDockerfilePath`", + "reference": "I think the customer visible strings should be \"Service\" instead of \"Svc\" to make it obvious to them" + }, + { + "prediction": "Why is this change needed?", + "reference": "Explain why this property is necessary?" + }, + { + "prediction": "Why do we need to classify actions here?", + "reference": "It should accept executions as the input" + }, + { + "prediction": "I think this should be `if show or out_dir:`", + "reference": "Is this limitation necessary?" + }, + { + "prediction": "Why is this a `SelfSignedIssuer`?", + "reference": ":question: Should there be validation to ensure that only one of these attributes is used?" + }, + { + "prediction": "I think this should be `Interop\\ContainerInterface`.", + "reference": "I would recommend using Psr\\Container\\ContainerInterface here instead of Interop\\Container\\ContainerInterface; both currently work, but the Interop version is deprecated and will eventually be removed, so using the Psr version will save us time in the future." + }, + { + "prediction": "Why is this change needed?", + "reference": "This would also change back to /var/www/html/docroot if we go that way." + }, + { + "prediction": "Why is this private?", + "reference": "Does this need to be public? Can't one of the helper functions below pass the data? If it really needs to be public, could it be write-protected?" + }, + { + "prediction": "why remove this?", + "reference": "Thanks. Now that you've improved this we should just init and expose the StorageAPI on the node, like the other.s" + }, + { + "prediction": "I think this method should be called `nextPrefixKey`.", + "reference": "it will be better if you can provide some examples" + }, + { + "prediction": "I think this should be `OperationResponseType` instead of `OperationResponseType`.", + "reference": "\"return type\" and \"response type\" have never really been contrasted before, and it's unclear what their meaning is here. Could you clarify?" + }, + { + "prediction": "I don't think we need to import json here.", + "reference": "Import order has been violated here." + }, + { + "prediction": "Why is this removed?", + "reference": "Are you suggesting deleting the concept of message querying from plumbing (sounds like more trouble than its worth) or suggesting deleting the snapshot based implementation?" + }, + { + "prediction": "I think this should be `key1:value1, key2:value2`", + "reference": "I recommend using StringSliceVarP to resolve the label flag, like `-l key1=value1,key2=value2`. What do you think?" + }, + { + "prediction": "Shouldn't this be `allTabs->icons`?", + "reference": "@Samuell1 Will assigning the same icons array to all the tabs result in, for example, a primary tab called \"Colours\" and secondary tab called \"Colours\" having the same icon?" + }, + { + "prediction": "I think this should be `_(translatedMessage)` instead of `_(translatedMessage)`", + "reference": "A docstring for this function please." + }, + { + "prediction": "I think this should be `public List Addresses { get; } = new List();`", + "reference": "heads up @JunTaoLuo" + }, + { + "prediction": "I think this should be `nextStackFrame.GetMethod()?.DeclaringType`", + "reference": ".GetMethod() cannot return null now, correct?" + }, + { + "prediction": "I think this should be `volume_down` instead of `volume_up`", + "reference": "Same thing here, I think the proper fix is elsewhere." + }, + { + "prediction": "I think this should be `if (retcode < 0 && (errno == ENOENT || errno == EAGAIN))`", + "reference": "errno is a global variable that might be set by any system library call. It is dangerous to rely on it except right after the system call where it is set. But in this code, it looks like the library call is buried inside ExpLOBInterfaceSelectCursor. It would be safer if the latter function saved errno after whatever system library call it calls, and returns that as an \"out\" parameter, which this code could then check." + }, + { + "prediction": "I think this should be `str(self._keys)`.", + "reference": "`hasattr` is kinda terrible; just append extra info in the subclass." + }, + { + "prediction": "I don't think this is needed.", + "reference": "Fair warning, the way that exception block is written won't work in python3 Python 3.2.3 (default, Jun 8 2012, 05:36:09) [GCC 4.7.0 20120507 (Red Hat 4.7.0-5)] on linux2 Type \"help\", \"copyright\", \"credits\" or \"license\" for more information. > > > try: > > > ... raise ValueError(\"foo\") > > > ... except ValueError,e: > > > File \"\", line 3 > > > except ValueError, e: > > > ^ > > > SyntaxError: invalid syntax" + }, + { + "prediction": "I think this should be `forward_ssh_agent = @options['forward_ssh_agent'] || false` instead of `forward_ssh_agent`", + "reference": "This only updates the metadata and not the actual thing you are trying to solve for the docker hypervisor." + }, + { + "prediction": "I think this should be `go.opentelemetry.io/debug`", + "reference": "should this package be internal? don't we want to use it e.g. in go-contrib?" + }, + { + "prediction": "Why is this change needed?", + "reference": "Just curious, why did you make this change?" + }, + { + "prediction": "`prefix` is a `dict` object, not a `list` object. I think it would be better to use `[prefix[column_label[0]]` instead of `[prefix[column_label[0]]` instead of `[prefix[column_label[0]]`", + "reference": "Can you handle error cases such as `pd.get_dummies(pdf, prefix={\"A\": \"foo\"})`?" + }, + { + "prediction": "I think this should be `hostConfig.NetworkMode = \"host\"` instead of `hostConfig.NetworkMode = \"host\"`", + "reference": "Where is this environment variable being set?" + }, + { + "prediction": "I think this should be `f'module must be a child of nn.Module, but got {module_class}'`.", + "reference": "`module_class ` is already a class and `type(module_class)` always returns ``" + }, + { + "prediction": "I think this should be `ORC.DeleteWriteBuilder` instead of `ORC.DeleteWriteBuilder`", + "reference": "Nit: The lambda can be replaced with a method reference: `SparkOrcWriter::new` I think." + }, + { + "prediction": "I think this should be `isinstance(obj, bool)` or `isinstance(obj, bool)`", + "reference": "It would be nice to have a docstring that says what range of integer-like objects will be accepted, as well as what the int_like argument is meant for." + }, + { + "prediction": "Layout/EmptyLinesAroundClassBody: Extra empty line detected at class body beginning.", + "reference": "How do we manage updates to this view down the road?" + }, + { + "prediction": "Please remove empty line.", + "reference": "We can revert this to reduce the diff of the PR." + }, + { + "prediction": "I think this should be `assertEquals(ex.getMessage(), \"cannot change field \\\"id\\\" from index options=DOCS to inconsistent index options=NONE\", \"cannot change field \\\"id\\\" from index options=DOCS to inconsistent index options=NONE\", \"cannot change field \\\"id\\\" from index options=DOCS to inconsistent index options=NONE\", \"cannot change field \\\"id\\\" from index options=DOCS to inconsistent index options=NONE\", \"cannot change field \\\"id\\\" from index options=NONE\", \"cannot change field \\\"id\\\" to inconsistent index options=NONE\", \"cannot change field \\\"id\\\" from index options=NONE\", \"cannot change field \\\"id\\\" from index options=DOCS to inconsistent index options=NONE\", \"cannot change field \\\"id\\\" from index options=DOCS to inconsistent index options=NONE\", \"cannot change field \\\"id\\\" from index options=DOCS to inconsistent index options=NONE\", \"cannot change field \\\"id\\\" from index options=NONE\", \"cannot change field \\\"id\\\" to inconsistent index options=NONE\", \"cannot change field \\\"id\\\" from index options=NONE\", \"cannot change field \\\"id\\\" from index options=DOCS to inconsistent index options=NONE\", \"cannot", + "reference": "I think we should refactor or drop this test, as it is not testing the points format now, but IndexingChain/FieldsInfos' logic. Maybe we could rename the test `testMergeMissing` and configure the first segment to not have the `id` field at all." + }, + { + "prediction": "I think we should remove the `bisect_original_run_complete` prefix here.", + "reference": "not sure I follow why all this goes away?" + }, + { + "prediction": "Why is this change needed?", + "reference": "Is this `{clipboard}` or `{primary}`, as the deprecation message for `:paste-primary` says?" + }, + { + "prediction": "I think we should add a `price-minute` flag to the command line.", + "reference": "Human unreadable. IMHO user should input MYST value: 0.0006 @chompomonim, opinions?" + }, + { + "prediction": "Why is this removed?", + "reference": "May be you could elaborate on why you removed this? I see some of this logic has been moved to ia2Web, but couldn't there be cases outside ia2Web (i.e. UIA) in which case ROLE_TABLEROW and ROLE_TABLECOLUMN are mapped to objects, in which case these objects will be of presentation type content erroneously?" + }, + { + "prediction": "I think this is a bit confusing, but I think it would be better to use `playerTradeItem` instead of `tradePartnerItem`.", + "reference": "This is not consistent. Either rename the first to `tradePlayerItem` (which is ugly) or the second to `partnerTradeItem` (:+1:)" + }, + { + "prediction": "I think this should be `gometalinter-jsonschema` and `gometalinter-jsonschema`", + "reference": "is there a reason we don't want to gx this dependency?" + }, + { + "prediction": "Why not use `substr($model, 0, strlen($maker))` instead of `substr($model, 0, strlen($maker))`?", + "reference": "I'd suggest to add \"ATI \" and \"Intel(R) \" to this list" + }, + { + "prediction": "Why not use `$plugin['code']` instead of `$plugin['code']`?", + "reference": "This is using a different lang key, we should switch it to using the new key and remove the old key if it is no longer used." + }, + { + "prediction": "I think this should be `nameRegex = regexp.MustCompile(api.Name + \"=([0-9A-Za-z_-]+),*\" + api.SpecNodes + \"=([0-9A-Za-z_-]+),*\" + api.SpecNodes + \"=([0-9A-Za-z_-]+),*\" + api.SpecNodes + \"=([0-9A-Za-z_-]+),*\" + api.SpecNodes +", + "reference": "shouldn't this work? nodesRegex = regexp.MustCompile(api.SpecNodes + \"=(('[0-9A-Za-z,_-]+')|([0-9A-Za-z_-]+)),?\")" + }, + { + "prediction": "I think this should be `before_create` instead of `before_validation`", + "reference": "You mentioned this change was prompted because the `before_create` action was actually a defect. This will be done only for a new record; why is `before_validation`, which will be called repeatedly as accounts get updated and saved, correct whereas `before_create` is not? It looks like one would want to assign and activation code, etc., only once." + }, + { + "prediction": "Shouldn't this be `if (Settings.GlobalSamplingRate != null && Settings.GlobalSamplingRate != null) {`?", + "reference": "What's the rationale for a default setting to not use a GlobalSamplingRate of 1? I don't know much about the sampling rate stuff" + }, + { + "prediction": "I don't think this is necessary, but I think it would be better to use `echo \"/cygdrive/c/Program Files (x86)\"` instead of `echo \"/cygdrive/c/Program Files (x86)\"` instead of `echo \"/cygdrive/c/Program Files (x86)\"`", + "reference": "Don't we know if it's 64 by this point? Do we have to test for the directory on every call, or can't we just split the value based on the platform?" + }, + { + "prediction": "I think this should be `menu.append(new MenuItem({ label: _('Assign Notebook'), name: 'Assign Notebook', name: 'Assign Notebook', click: async () => { ... });`", + "reference": "It's not async" + }, + { + "prediction": "Why is this change needed?", + "reference": "Maybe we could add some use of `exporterOptions` in this example, otherwise the proper code would replace this variable name with an underscore?" + }, + { + "prediction": "I think this should be `@var bool $everykey = true;`", + "reference": "Maybe would be better to rename it to \"onEveryKey\" or \"fireOnEveryKey\"." + }, + { + "prediction": "Why not use FileDownloadHelper instead of FileUtil?", + "reference": "if we're switching to calling FileDownloadHelper, we can just call that directly from the xhtml (see line 357 for example) and then remove this method completely. This is because the other thing it does is check PrivateURLUser, but the FileDownloadHelper method already does that. (and while we're at it, we can remove the method from FileUtil as this is the only place that method is called)" + }, + { + "prediction": "Why is this change removed?", + "reference": "is `fullName` still required as a parameter?" + }, + { + "prediction": "I think this should be `LOG.finest(\"Bound legacy RC support\")`.", + "reference": "This informational message is important to users. Please leave." + }, + { + "prediction": "Why is this removed?", + "reference": "Why do we want to remove this one? Are we planning to substitute it?" + }, + { + "prediction": "I think we should remove the `legacyProto` from the list.", + "reference": "We may create an issue to track this so we don't forget?" + }, + { + "prediction": "Layout/EmptyLinesAroundClassBody: Extra empty line detected at class body end.", + "reference": "This file has the executable bit set." + }, + { + "prediction": "I think this should be `db.logger.Info(\"setting db capacity to :\", db.capacity)`.", + "reference": "Improve the formatting of the message `.Infof(\"setting db capacity to: %v\", db.capacity)` There is a space before `:` and this way it is easier to see the formatting." + }, + { + "prediction": "I think this should be `std::lock_guard guard(RTPSDomain::m_mutex);` and `std::unique_lock guard(RTPSDomain::m_mutex);`", + "reference": "This lock cannot be released here, as it is protecting m_RTPSParticipants and the participant reference." + }, + { + "prediction": "I think we should use `prepareDiscriminatorCriteria` instead of `prepareDiscriminatorCriteria`", + "reference": "we'll need this in `_findAndModify` too" + }, + { + "prediction": "I think it would be better to use `bundle.getString(DB_NAME, DBOpenHelper.DEFAULT_DB_NAME);` instead of `bundle.getString(DB_NAME, DBOpenHelper.DEFAULT_DB_NAME);`", + "reference": "This is the fix for the crash. The function to create the intent to launch this activity requires `dbName`, so it has to be set to `null`. In such cases, the value for `dbName` will be set to `null` and cause issues throughout this activity. This adds a default value if the explicitly assigned value in `null`." + }, + { + "prediction": "I think this should be `event_textChange` instead of `event_textChange`", + "reference": "Shouldn't we also trigger vision update here, so that if someone has caret highlighting enabled the correct character is highlighted?" + }, + { + "prediction": "I think we should use `context.getNamer().getLocalPackageName()` instead of `context.getNamer().getLocalPackageName()`", + "reference": "Woah, how does this change, which includes semicolons, result in the baseline change? Are the semicolon chars just part of the internal representation of the import type?" + }, + { + "prediction": "I think this should be `pyw -3.7-32 {self._runNVDAFilePath}` instead of `pyw -3.7-32`", + "reference": "Can't you just use runnvda.bat here?" + }, + { + "prediction": "Why is this removed?", + "reference": "these definitions of UNUSED aren't the same as the one you imported, so callers should be fixed (if any)" + }, + { + "prediction": "I think this should be `IPAMNetworkType`", + "reference": "is type a free string too?" + }, + { + "prediction": "`model_func` should be `nn.Module`", + "reference": "here input could be a normal function or an instance of torch.nn.Module." + }, + { + "prediction": "I think this should be `nix-instantiate --eval -E 'with import {}; lib.version or lib.nixpkgsVersion'\"", + "reference": "Example output: \"19.03.git.a7f4a860d0c\" At some point `nixpkgsVersion` was renamed to `version` since someone may use an old channel we fallback to `nixpkgsVersion` for backwards compatibility." + }, + { + "prediction": "Why is this removed?", + "reference": "Class import is therefore redundant I guess :)" + }, + { + "prediction": "I think this should be `errorNodeCreationIPFailure`", + "reference": "If parsing fails, don't act as no IP specified. Error out." + }, + { + "prediction": "I think this is a good idea. I think it would be better to use `@Nullable` instead of `@Nullable`.", + "reference": "... here the semicolon wanted to run away from the enum ;)" + }, + { + "prediction": "I think we should remove the `slaveConfig` and `secondaryConfig` from the `replicationConfig` array.", + "reference": "Note that this is in the context of SolrCloud, so \"secondary\" doesn't apply and should be instead follower" + }, + { + "prediction": "Align the elements of a hash literal if they span more than one line.", + "reference": "This one is a query parameter and probably really should be ID and in fact I'm mystified as to how this is working because the controller code definitely wants a number for that parameter so the test framework must be converting it back to an ID as best I can tell." + }, + { + "prediction": "I think this should be `if (isHiveTable()) {`", + "reference": "Need to ensure this is set to TRU for LOB datatype access too not just for hive ." + }, + { + "prediction": "I think we should add a docstring for `_reduce_for_stat_function` and `_reduce_for_stat_function`", + "reference": "You're using the Sphinx docstring style here (maybe because it's the default in PyCharm?). Instead, you should use the NumPy style (that you've also used in other places) to be more consistent with the rest of the project." + }, + { + "prediction": "I think this should be `listenOptions.Add(new ListenOptions(Constants.DefaultIPEndPoint));`", + "reference": "Don't really need this since the rest of the method will no-op but it's also safe to return early." + }, + { + "prediction": "I think this should be `using eprosima::fastdds::dds::ParameterList;`", + "reference": "Don't use relative paths. src directory is already on the include search path" + }, + { + "prediction": "This file is not used anymore.", + "reference": "this file can be removed" + }, + { + "prediction": "I think this should be `required = false` instead of `required = true`", + "reference": "Do we have test cases that name is null?" + }, + { + "prediction": "I think this should be `if vs.NullN() > 0 {`", + "reference": "in a separate PR, I'll check for a table that is empty/all-null and skip this function call completely." + }, + { + "prediction": "I think this should be `Exception` instead of `Exception`.", + "reference": "We really, really want to catch _everything_ here. It is safe to leave `azkabanEventReporter` set to null." + }, + { + "prediction": "I think this should be `if (parentDom.lastChild !== newDom)`", + "reference": "Can't we add the check here?" + }, + { + "prediction": "I think this should be `if body and method != 'POST':`", + "reference": "body is being used here for the first time without every being populated. This will error. To run tests do `./go clean test_py` and that will run the Firefox tests" + }, + { + "prediction": "I think this should be `*SecretEncryption` instead of `*SecretEncryption`", + "reference": "Tell me if you have a better field name for this." + }, + { + "prediction": "I think this should be `Framework == TargetFramework.NET6_0` instead of `Framework == TargetFramework.NET5_0`", + "reference": "FYI, I have a branch I started to improve this. Nuke can read the target frameworks from the project files, so we don't have to do this mess. Ran into some other issues so it didn't take priority" + }, + { + "prediction": "I think this should be `boost::make_iterator_range(mol->getAtomNeighbors(mol->getAtomWithIdx(aid)));`", + "reference": "This is just `mol->atomNeightors()`, is it?" + }, + { + "prediction": "Why not use `task::clustering` instead of `task::clustering`?", + "reference": "This alias is just for a single occurrence. Maybe it ins't necessary?" + }, + { + "prediction": "Why is this change needed?", + "reference": "You can delete this `NONE` case." + }, + { + "prediction": "I think this test should be removed.", + "reference": "@cnorthrop -- here is a test with a name change. Is this going to affect your internal CI?" + }, + { + "prediction": "I think this should be `SEND_COMMANDS_FOR_DOWNLOAD_CHROME_HEAD_LESS`.", + "reference": "Nit: `Headless` is one word, not two, and so doesn't need camelcasing in this way." + }, + { + "prediction": "I think this should be `parallel_scheduling_processes`?", + "reference": "I think this will cause a warning, can you set the default to zero (`0`)?" + }, + { + "prediction": "Why is this needed?", + "reference": "confusing naming. Identity from \"id\" package :/ why we need alias here? (and in other imports)" + }, + { + "prediction": "I think this should be `typ.List(none_ok=True)` instead of `typ.List(none_ok=True)`", + "reference": "It'd be nice to fix up existing configs with the change - that'd mean adding the option to `RENAMED_OPTIONS` in `config.py` and adding something like `_get_value_transformer({'true': '', 'false': '*'})` to `CHANGED_OPTIONS`. I think I never tried adding an option to both, but it should work." + }, + { + "prediction": "I think we should use `Object.getPrototypeOf(prim)` instead of `Object.getPrototypeOf(prim)`", + "reference": "Perhaps use the new `.keys()` method here instead?" + }, + { + "prediction": "Why is this change needed?", + "reference": "We don't need this option because plan-preview is comparing between 2 commits, not using the live state." + }, + { + "prediction": "Prefer single-quoted strings when you don't need string interpolation or special symbols.
    Prefer single-quoted strings when you don't need string interpolation or special symbols.
    Prefer single-quoted strings when you don't need string interpolation or special symbols.
    Prefer single-quoted strings when you don't need string interpolation or special symbols.
    Prefer single-quoted strings when you don't need string interpolation or special symbols.", + "reference": "I'm not sure about putting this in the options. I would see it living in an object and then being queried on through a class - a more object oriented, ruby solution." + }, + { + "prediction": "I think this should be `Metrics` instead of `Status`", + "reference": "So `Status` returns metrics?" + }, + { + "prediction": "Layout/EmptyLinesAroundMethodBody: Extra empty line detected at method body end.", + "reference": "Can we make a generic method say, `set_infographic_view` and in that method we can check the 4 values (outside_committers, portfolio_projects, outside_projects, affiliated_committers) and check against params[:action] and params[:view] and then trigger the respective method dynamically as it takes the standard argument(s) for all the four methods. What do you think?" + }, + { + "prediction": "I think this should be `if (o instanceof Date) { return o; } else { return o; }`", + "reference": "Why would this be called to copy a non-Date object?" + }, + { + "prediction": "Why is this change needed?", + "reference": "This alignment issue had not appear because no multiple `Boolmsg`s had been serialized at once." + }, + { + "prediction": "I think this should be `BooleanDefaultFalse` instead of `BooleanDefaultTrue`", + "reference": "Why are we not implementing a BooleanDefaultFalse struct and replacing all of these config vars that default to false with that? Are \"default false\" config vars not affected by this bug?" + }, + { + "prediction": "I think this is the only place where we set access_level to the role, but I think it would be better to use `@role.access_level = access_level.to_i` instead of `@role.access_level = access_level.to_i`", + "reference": "Replaced this method with a ruby idiomatic setter." + }, + { + "prediction": "I think this should be `tisoftware` instead of `tisoftware`", + "reference": "wrong place hehe" + }, + { + "prediction": "I don't think we need to do this, but I think it would be better to use `sh.cmd('ls /var/run/mysqld/mysqldsock >& /dev/null || sudo service mysql restart')` instead of `sh.cmd('ls /var/run/mysqld/mysqldsock >& /dev/null')`", + "reference": "Can this be `test -e /var/run/mysqld/mysqld.sock` instead of `ls`? Using `ls` for noninteractive stuff is a recipe for sadness, IMHO. /cc @tianon" + }, + { + "prediction": "Align the elements of a hash literal if they span more than one line.", + "reference": "Are these `dependent: destroy` attributes intended to implement cascading deletes? I had assumed they were added because of the `paranoia` gem, but since that is no longer part of this PR, are they here as a best practice?" + }, + { + "prediction": "I think this should be `tunnel->destroy(tunnel)` instead of `tunnel->destroy(tunnel)`", + "reference": "This approach would work only if there's a guarantee that the stream does not get freed before `establish_tunnel` is called, even though it _may_ enter CLOSE_WAIT state (at which point `stream->tunnel` is set to NULL). I do not think that assumption holds. Hence the alternate approach." + }, + { + "prediction": "I think this should be `string` instead of `string`.", + "reference": "Did you mean to remove the periods here while newly adding to other locations?" + }, + { + "prediction": "Why is this change needed?", + "reference": "the check can now be `if newLen < 0`" + }, + { + "prediction": "Why is this removed?", + "reference": "If we're going to clean up this package, can we also remove those two `_` imports that appear to serve no purpose? (FWIW, they're also in the manager package too...)" + }, + { + "prediction": "I think this should be `std::unique_ptr` instead of `std::unique_ptr`.", + "reference": "Won't this leak like a sieve? The caller can't delete this as one is a unique_ptr and one is not." + }, + { + "prediction": "I think we should use `data.versions[version]` instead of `data.time[version]`", + "reference": "form => from" + }, + { + "prediction": "I think this should be `PropertyDescriptor` instead of `Pattern`", + "reference": "Ok, we can't switch it now, because the properties are a field of the interface Rule - which makes it public API. Maybe we should remove it here in the (Java) API in 7.0.0? The only API left would be, when using a rule and setting the properties in the ruleset xml. There the type doesn't matter - since the String is then automatically converted into a Pattern." + }, + { + "prediction": "I think this test should be moved to `GapicProductConfig.create(model, configProto, \"google.example.myproto.v1\", TargetLanguage.GO);`", + "reference": "Pass in null here, instead of a value? Maaaaybe we should add an overload for `GapicProductConfig.create` that matches the original signature and passes through null? I don't feel strongly about that though, so happy to leave asis if you prefer." + }, + { + "prediction": "I think this should be `new String(word.chars, 0, word.offset + breakPos)`", + "reference": "Include all compounds parts from the very beginning for the case check to work later" + }, + { + "prediction": "I think this should be `unix://` instead of `unix://`", + "reference": "if the user specifies a url scheme on the cli this is going to cause problems, no?" + }, + { + "prediction": "Why is this change needed?", + "reference": "How about that `scaleFactor`?" + }, + { + "prediction": "Shouldn't this be `Type\\Union`?", + "reference": "`assert(is_int($result));` would be preferable I think, even if we know it can't ever be false" + }, + { + "prediction": "Why not use `$this->items` instead of `$this->items`?", + "reference": "I'm unfortunately unable to review whether you've changed everything that used to use cartIds" + }, + { + "prediction": "I don't think this is needed anymore.", + "reference": "Please don't touch unrelated files to keep the git history clean" + }, + { + "prediction": "Use the new Ruby 1.9 hash syntax.
    Prefer single-quoted strings when you don't need string interpolation or special symbols.
    Prefer single-quoted strings when you don't need string interpolation or special symbols.
    Prefer single-quoted strings when you don't need string interpolation or special symbols.
    Prefer single-quoted strings when you don't need string interpolation or special symbols.
    Prefer single-quoted strings when you don't need string interpolation or special symbols.", + "reference": "Per our style guide, I don't think we indent `private` keyword. Would you mind fixing that?" + }, + { + "prediction": "why is this change needed?", + "reference": "Will this change the input `heatmap`? Is this behavior expected or not?" + }, + { + "prediction": "Why is this change needed?", + "reference": "If I'm reading this right, this changes the parameter name so it'd constitute a breaking change :cold_sweat: Are we missing a test that should have been failing up until now?" + }, + { + "prediction": "Why remove this?", + "reference": "Need copyright/license info." + }, + { + "prediction": "Why is this removed?", + "reference": "Is this `info log` necessary? If it is not useful, can you consider deleting it?" + }, + { + "prediction": "I think this is a bit confusing, but I think it would be better to use `RCLONE_ENCRYPT_V1` instead of `RCLONE_ENCRYPT_V0`.", + "reference": "Unrelated change, but seems to be the correct purpose of the test." + }, + { + "prediction": "I think this should be `this.id` instead of `this.id`", + "reference": "Should it be `'uppy-input-`?" + }, + { + "prediction": "why is this change needed?", + "reference": "what's the reasoning to keep these always true or dead-code blocks?" + }, + { + "prediction": "I think this should be `$('.tab-buttons > div').removeClass('hide-zoom');`", + "reference": "It would be a good practice to do `.off('click', '.tab-buttons > div').on('click', '.tab-buttons > div', function() {`" + }, + { + "prediction": "I think this should be `true` or `false`?", + "reference": "I suggest that we rely on `--controllers='*,gateway-shim'` for now, and we can then move from `--controllers='*,gateway-shim'` to automatically enabling the Gateway API support on startup using the discovery API in 1.6 or 1.7, what do you think? Note that the logic I wrote in e5436df521015057e77de3fe02c174ea8a863b93 should also use this `GatewaySolverEnabled` flag I think." + }, + { + "prediction": "I think this should be `instantiateSignatureAlgorithmFactory();`.", + "reference": "I moved the instantiation of the signature algorithm here, to execute it before the native libraries are configured. Otherwise the wrong signature algorithm could be configured in a future release when more than one is supported in Besu." + }, + { + "prediction": "I think this should be `if TYPE_CHECKING:`", + "reference": "Why remove this?" + }, + { + "prediction": "I'm not sure if this is the right place to do this, but I think it would be better to add a `@return {!Builder} a self reference` to the builder.", + "reference": "`this.ieService_` should be initialized to null in the constructor." + }, + { + "prediction": "This should be `std::unique_ptr`.", + "reference": "Why not `ebpf::BPF bpf;`? Assuming that the instance is not huge, I do not think there is a good reason to use a pointer when it can be retained as a value." + }, + { + "prediction": "I think this should be `apiutil` and `metav1`", + "reference": "nit: move to last block" + }, + { + "prediction": "Why is this needed?", + "reference": "nit: I'm under the impression that `log` is the convention for golang, and that the `er` suffix is usually reserved for interfaces" + }, + { + "prediction": "I think this should be `System.Data.IsolationLevel? IsolationLevel` instead of `System.Data.IsolationLevel?`.", + "reference": "Why is IsolationLevel fully qualified? System.Data is already in scope? What do I miss?" + }, + { + "prediction": "Why is this removed?", + "reference": "do we still need SanityCheck()? seems they all return nil now" + }, + { + "prediction": "I don't think this is needed anymore.", + "reference": "What I am missing in this PR, and I think we discussed that on the weekly meeting, is that all the code snippets that advise using `loadData` should be changed to one of the two new methods. Otherwise we send confusing mixed signals by promoting `loadData` everywhere in the guides. `loadData` is not deprecated, but is legacy." + }, + { + "prediction": "Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
    Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.", + "reference": "Line is too long. [100/80]" + }, + { + "prediction": "I think this should be `p.P(\"using parent snapshot %v, will read all files\\n\", parentSnapshotID.Str())` or `p.P(\"using parent snapshot %v, will read all files\\n\", parentSnapshotID.Str())`", + "reference": "I suggest \"no parent snapshot found, will read all data\\n\"." + }, + { + "prediction": "Why is this change needed?", + "reference": "`LogManager.ThrowExceptions = true` has very special meaning when unit-testing. Why the change to `LogFactory.ThrowExceptions = true` and enabling after the config-load?" + }, + { + "prediction": "I think this should be `value = value.replace(/\\n/g, '\\\\n');` and `value = value.replace(/\\r/g, '\\\\r');`", + "reference": "It should be return \"''\"; I will fix it" + }, + { + "prediction": "Why is this change needed?", + "reference": "This is wrong, should be `entry.getValue()`" + }, + { + "prediction": "I don't think we need to change this to `[{}]`", + "reference": "nit: why can't we combine the two add operations into one so that we add `{\"nameCertificates\": []}` to `/spec/servingCerts` ?" + }, + { + "prediction": "I think this should be `#include ` instead of `#include `", + "reference": "These whitespace only changes make it very difficult to review this change. Is there any way you could separate just the code changes into one PR and the whitespace only fixes into another? Or are they sufficiently merged together at this point? Chrome is having a real tough time rendering these large diffs." + }, + { + "prediction": "I think we should be able to use the `TheatreConfig` class instead of the `TheatreConfig` class.", + "reference": "why does this suddenly need a config ref" + }, + { + "prediction": "I don't think we need to do this, but I think it's a good idea to add the `custom-elements-es5-adapter.js` file to the `config.js` file.", + "reference": "Unfortunately, I couldn't find a way to get karma to conditionally load stuff from a CDN, so I had to include it." + }, + { + "prediction": "I think this should be `CosineWindowFunction` and `LanczosWindowFunction`", + "reference": "Those functions are not currently wrapped, so I don't think it is necessary to exclude them (at least for now)." + }, + { + "prediction": "Why is this changed?", + "reference": "Nit: since this is now a private function rather than a variable, would it make sense to move it after the public functions in this file for readability?" + }, + { + "prediction": "I think this should be `int(255.0 * col.r, int(255.0 * col.g, int(255.0 * col.b))`", + "reference": "I'm assuming that MolDraw2Qt drops the alpha channel?" + }, + { + "prediction": "I think this should be `[GenericTypeArguments(typeof(SimpleStructWithProperties))]`", + "reference": "the code looks good to me, but I just wonder if it is a real use case: (de)serializing a single integer." + }, + { + "prediction": "I think we should add a note that the @ mark will be dropped and passed to parser.", + "reference": "Pls remove the print statements. Also, you do not need the if statement." + }, + { + "prediction": "I think this should be `![CDATA[{{ value.string_value }}]]`", + "reference": "Thanks for this fix @eltone ! Wondering if we should make this a bit more resilient to upstream changes, e.g., via a regex replacement. Not critical, though - we can pick that up in a follow-up PR.. Thanks" + }, + { + "prediction": "I think this should be `elastic.SetSniff(true)` instead of `elastic.SetSniff(false)`", + "reference": "Should this be instead a configurable option?" + }, + { + "prediction": "I think this should be `if cd.SourceSnapshot != \"\" && w.snapshots.get(cd.SourceSnapshot)`", + "reference": "unit test needs an update?" + }, + { + "prediction": "Why is this removed?", + "reference": "I realised that this is not used anywhere" + }, + { + "prediction": "I think this should be `case <-stopCh:`", + "reference": "why add the default branch? this may cause there exist multiple configWatchers that notify the eventsCh at the same time?" + }, + { + "prediction": "I think this should be `setEPINTENCLR(0, sam.USB_DEVICE_EPINTENCLR_STALL1)`", + "reference": "This line appears to have caused the regression. What is it supposed to be doing?" + }, + { + "prediction": "Why is this change needed?", + "reference": "# `attr_value['string'] is not None` probably not required as `attr_value['string'] == value` check is already being done" + }, + { + "prediction": "Why is this change needed?", + "reference": "@alanwest I noticed this while changing the code. I think we _might_ run into some race condition - if a scraper happens to hit the HTTP server before we could add the reader, what would happen (I guess we will hit exception, which turns into HTTP 500)? I haven't looked into the HTTP server logic. I think it _might_ be OKAY. A better version could be - we only start the HTTP server once the exporter/reader are fully ready and both are hooked up to the provider." + }, + { + "prediction": "I think this should be `await process.WaitForExit(5000)`", + "reference": "As for Owin, I think we should exclude this URL in `IsNotServerLifeCheck` too?" + }, + { + "prediction": "I think this should be a `public Func HttpClientFactory { get; set; }`", + "reference": "Does it make sense to just fold these options back into the exporter options? My thinking is that this option is unlike the processor/metric reader options in that it actually is about the exporter itself." + }, + { + "prediction": "Please remove the `:seconds` from the list.", + "reference": "here is `:seconds` missing" + }, + { + "prediction": "I think this should be `func2` and `func3`", + "reference": "change of name is not needed" + }, + { + "prediction": "Why remove this line?", + "reference": "Hm .. so this case doesn't work anymore?" + }, + { + "prediction": "I think this should be `from qutebrowser.utils import QFileSystemWatcher` instead of `from qutebrowser.utils import QFileSystemWatcher`", + "reference": "Please indent this so it lines up with the `(`" + }, + { + "prediction": "I think this should be `//` instead of `//`", + "reference": "We should still register the script. Just not enqueue it." + }, + { + "prediction": "I don't think we need to do this, but I think we should do `attribute_changed?(name)` instead of `attribute_changed?(name)`", + "reference": "I think this can stay as a method. And we can write our own attribute_change(name) as required." + }, + { + "prediction": "Shouldn't this be `ItemTemplateSelector.GetItemLayoutId(viewType)`?", + "reference": "@alexshikov @Cheesebaron I might be missing something but isn't the viewType parameter here the actual layout resource id? Why would the GetItemLayoutId method need to be called again? On line 127, the exact same method is called except this time passing in the index of the object in the backing data source, which makes sense - the template selector can return the layout id based on the index of the item in the list." + }, + { + "prediction": "I think this should be `self.dataset.dataset_id, self.table_id`", + "reference": "Can you change this to use `.format()`?" + }, + { + "prediction": "I don't think we need to add the `DropVXLANPacketsFromWorkloads` flag here.", + "reference": "Maybe the parameter should be consulted higher up the stack so that we only set dropEncap if we're rendering a workload egress chain and the flag is set?" + }, + { + "prediction": "Why is this change needed?", + "reference": "new casing is less ELiTE" + }, + { + "prediction": "I don't think this is needed.", + "reference": "This leaks EGL/GL implementation details into the generic renderer interface." + }, + { + "prediction": "I think this should be `deploy_config_error` instead of `deploy_config_error`", + "reference": "Maybe add *key* i.e. `\"The \\\\`deploy.on\\\\` key should be a hash (dictionary).`" + }, + { + "prediction": "Why not use `new Color($status['color'], $status['name']);` here?", + "reference": "its be good also change $code na $id, actual name is misleading and that was probably actual error generator" + }, + { + "prediction": "Why is this change needed?", + "reference": "I changed the name of the key, to make deployment easier." + }, + { + "prediction": "I think this should be `ECS_SPOT_INSTANCE_DRAINING_ENABLED` instead of `ECS_SPOT_INSTANCE_DRAINING_ENABLED`.", + "reference": "isn't this going to be true by default? if yes, then let's have the env var named `ECS_DISABLE_SPOT_INSTANCE_DRAINING` and have default as false." + }, + { + "prediction": "I think this should be `from __future__ import unicode_literals` and not `from __future__ import unicode_literals`", + "reference": "Do you think we might need this anywhere else in HoloViews?" + }, + { + "prediction": "I think we should use `session.TranscodingInfo && session.TranscodingInfo.IsAudioDirect` instead of `session.TranscodingInfo.IsVideoDirect && session.TranscodingInfo.IsAudioDirect`", + "reference": "@MrTimscampi don't we want to remove this term entirely? Might as well do it now if that's the case." + }, + { + "prediction": "Use the new Ruby 1.9 hash syntax.
    Use the new Ruby 1.9 hash syntax.
    Use the new Ruby 1.9 hash syntax.
    Use the new Ruby 1.9 hash syntax.
    Use the new Ruby 1.9 hash syntax.
    Use the new Ruby 1.9 hash syntax.
    Use the new Ruby 1.9 hash syntax.
    Use the new Ruby 1.9 hash syntax.
    Use the new Ruby 1.9 hash syntax.
    Use the new Ruby 1.9 hash syntax.
    Use the new Ruby 1.9 hash syntax.
    Use the new Ruby 1.9 hash syntax.
    Use the new Ruby 1.9 hash syntax.
    Use the new Ruby 1.9 hash syntax.
    Use the new Ruby 1.9 hash syntax.
    Use the new Ruby 1.9 hash syntax.
    Use the new Ruby 1.9 hash syntax.
    Use the new Ruby 1.9 hash syntax.
    Use the new Ruby 1.9 hash syntax.
    Use the new Ruby 1.9 hash syntax.
    Use the new Ruby 1.9 hash syntax.
    Use the new", + "reference": "I have followed the convention of `cp`" + }, + { + "prediction": "I don't think we need to change this to `name='=>'string'`", + "reference": "The docs say it's `false|null`" + }, + { + "prediction": "I think this should be `time.Duration` instead of `time.Duration`", + "reference": "Thinking on it more, I actually really like your idea to rename `type` to `factor`." + }, + { + "prediction": "Shouldn't this be a `RuntimeException`?", + "reference": "This error message is redundant. All of this information is included in the stack trace. In general it's a good idea to avoid using method names in error messages. Chances are the method will be renamed at some point, but the string won't be updated accordingly. Then you'll end up with a very confusing error message. I suggest changing the message to: \"Failed to unblock network loads. Missing INTERNET permission?\"" + }, + { + "prediction": "I think this file should be removed.", + "reference": "Feel free to add your own name while at it." + }, + { + "prediction": "why is this needed?", + "reference": "`signer` is a global variable (from `gochecknoglobals`)" + }, + { + "prediction": "Shouldn't this be `opts[:localize]`?", + "reference": "shouldn't this be `&& opts[:localize]` (i.e. both nil and false skip localization?)" + }, + { + "prediction": "Why is this needed?", + "reference": "This can also be removed." + }, + { + "prediction": "(style) line over 80 characters", + "reference": "Not critical but \"common\" is not that helpful in the commit title. Maybe go with \"libkvs/txn:\" for this one?" + }, + { + "prediction": "I think this should be `scrolling.bar` instead of `when_searching`", + "reference": "It's been a while, but I just noticed this was wrong: It migrated `True` to `when-searching` (so people with `scrolling.bar = True` suddenly didn't have scrollbars anymore) and `False` to never. Instead, it should migrate `True` to `always` (no behavior change) and `False` to `when-searching` (so people notice the new feature). I fixed this in cc0f5fc6d400e12833ba729049e31d16cf836d53." + }, + { + "prediction": "I don't think we should be using `sys.getfilesystemencoding()` here. I think we should use `sys.getfilesystemencoding()` instead of `sys.getfilesystemencoding()`.", + "reference": ".decode(sys.getfilesystemencoding()) will be better. Although I think rrdtool should accept bytes.." + }, + { + "prediction": "I think this interface should be `IHttpHeadersHandler` instead of `IHttpHeadersHandler`", + "reference": "An interface call per header might be more expensive than we want to pay. Do we really need this to be abstracted? I think a parser abstraction makes sense, but it seems to me like a separate abstraction for handling headers (one by one) might be an overkill." + }, + { + "prediction": "Why is this change needed?", + "reference": "Resharper annotations, always +1" + }, + { + "prediction": "I think we need to mark this as hidden if we're not using the `sm2` flag in the `accountCreateAdd` command.", + "reference": "same here, CryptoSm2 won't be changed once command is compiled" + }, + { + "prediction": "Shouldn't this be `activity.runOnUiThread(new Runnable())`?", + "reference": "Loading the login page after the certificate has been loaded. Views can only be loaded from UI thread." + }, + { + "prediction": "Why is this change needed?", + "reference": "Technically it doesn't belong here; let me remove it." + }, + { + "prediction": "I don't think this is needed anymore.", + "reference": "remember to update the hash once the upstream PR is merged " + }, + { + "prediction": "Why not use `PushNotificationDecryptor.getInstance()` here?", + "reference": "Sends the incoming message to the decryptor, which will then forward it to the interface once processing is complete." + }, + { + "prediction": "I think this should be `if params == nil {`", + "reference": "FYI This will go the other way, with nil being the correct value for \"no params\"" + }, + { + "prediction": "I think this should be `if (thatPeptideKey != null && nonPeptideKeySet.Contains(thatItem.LibraryKey))`", + "reference": "Is this necessary? Are there duplicates in your LibKeyIndex?" + }, + { + "prediction": "I think this should be `m.ctrl.Call(m, \"Next\")` or `m.ctrl.Call(m, \"Next\")`", + "reference": "Why will the gomock files be regenerated? It seems to be irrelevant" + }, + { + "prediction": "I think this should be a `chan *model.ReportableCommand` instead of a `chan *model.ReportableCommand`", + "reference": "I'm very curious about why using buffered-channel. Is there something wrong to use an unbuffered channel with zero capacity?" + }, + { + "prediction": "Why is this needed?", + "reference": "It seems like you accidentally pulled some unrelated changes to util_test into this." + }, + { + "prediction": "Why is this needed?", + "reference": "do not toucm NDM please - there will be lots of conflicts" + }, + { + "prediction": "I think this is a good idea to remove the `val` argument from the `IndexableField` object.", + "reference": "This looks legitimate - Would cause a classCastException. But have we ever seen it in the wild?" + }, + { + "prediction": "I think this should be `v` instead of `setup-show`.", + "reference": "This looks out of scope for this particular PR." + }, + { + "prediction": "I think this should be `int64(time.Second)` instead of `int64(time.Second)`", + "reference": "Don't need () if only one." + }, + { + "prediction": "I think this should be `String port` instead of `String`", + "reference": "Why not have mailPort as int since your are already parsing while calling t.connect ?" + }, + { + "prediction": "Why is this change needed?", + "reference": "In the future, do not remove these trailing commas as they have the purpose of making append-diffs easier to read. :)" + }, + { + "prediction": "Why not use `is_array` here?", + "reference": "Was this added by accident? It doesn't seem related to Syndetics, and I don't think it should be necessary in core VuFind (but maybe it's related to one of your local customizations)." + }, + { + "prediction": "Why is this needed? I think it would be better to use `spiffeid.TrustDomain` instead of `spiffeid.TrustDomain`", + "reference": "i know the ergonomics are a little nicer with map[string]bool, but I prefer map[string]struct{} for sets for a few reasons: 1 - optimized storage (not very relevant here) 2 - don't have to think about the conditions where the key exists in the map or if the value could somehow be false" + }, + { + "prediction": "Why is this change needed?", + "reference": "This is very unclear what Server means. We need a better name, maybe ServerExtension?" + }, + { + "prediction": "Why is this removed?", + "reference": "I wonder if we should trigger a PHP error and ensure it ends up in the log?" + }, + { + "prediction": "I think we should use `html.replace(/&/g, '&')` instead of `html.replace(/&/g, '&')`", + "reference": "Hmmm not sure about this. Is it fine @ar2rsawseen?" + }, + { + "prediction": "I think this should be `go` instead of `run`", + "reference": "Why do you prefer `go` over `run`?" + }, + { + "prediction": "Why is this change needed?", + "reference": "Unintentional, please remove" + }, + { + "prediction": "I don't think we need to call `active` here.", + "reference": "What was the reason behind moving this?" + }, + { + "prediction": "I don't think we need to do this, but I think it would be better to use `tags.map { |tag| tag.tag.rstrip.join(\" \") }` instead of `tags.map { tag.tag.rstrip.join(\" \") }`", + "reference": "Did you mean to put that `join` after the `map` rather than inside it? Also should it be `safe_join` or is interpolating it into an `_html` resource going to have much the same effect>" + }, + { + "prediction": "I think this should be `isInTransaction` and not `isClosed`", + "reference": "`Indicates if this Realm has been closed.`?" + }, + { + "prediction": "Why did you remove this?", + "reference": "how is this change adding corr to Series? Do all the methods that are added to Frame automatically get added to Series?" + }, + { + "prediction": "Why is this change needed?", + "reference": "Just a heads up for anyone else reviewing this, this logic and all the repetitions of it should be greatly simplified by subsequent work relating to issue #2552." + }, + { + "prediction": "I think this should be static.", + "reference": "@billwert I have kept the `1000` InvocationsPerIteration, but do note this is very small for the small types." + }, + { + "prediction": "Why is this removed?", + "reference": "Unrelated whitespace change." + }, + { + "prediction": "I don't think we need to do this, but I think it would be better to use `std::unique_ptr(environment, nullptr, true);` instead of `std::unique_ptr(environment, nullptr, true);`", + "reference": "Slight formatting issue here. There should be a space after the asterisk." + }, + { + "prediction": "I think this should be `const node = axe.utils.getNodeFromTree(el);`", + "reference": "Slight preference for declaring variables inline rather than at the top of the function. That way you can use const for both of these." + }, + { + "prediction": "Why is this change needed?", + "reference": "this is a duplicate file of the one in demo-schema. please remove this file." + }, + { + "prediction": "I think this should be `utils.Eth1L1FeeWalletAddressFlag`", + "reference": "Nit: unified names between geth and contracts" + }, + { + "prediction": "Why is this needed?", + "reference": "Necessary? Could you just use DefaultBuildState here?" + }, + { + "prediction": "Why is this change needed?", + "reference": "linked hashmap retains order" + }, + { + "prediction": "I think this should be `const struct wlr_drm_interface iface_legacy;` and `const struct wlr_drm_interface iface_atomic;`", + "reference": "And the old names for these variables made more sense imo." + }, + { + "prediction": "Why is this change needed?", + "reference": "Are you sure this change is correct?" + }, + { + "prediction": "Why is this removed?", + "reference": "The previously linked bug does not apply anymore? If so, this is LGTM!" + }, + { + "prediction": "Why is this change needed?", + "reference": "Why are we renaming all of the tests?" + }, + { + "prediction": "I think we should use `strings.TrimSpace(nameserver)` instead of `strings.TrimSpace`", + "reference": "Instead of having this logic, would it make sense to require *users* to encompass the specified IPv6 address within `[` and `]`? Why the magic handling here?" + }, + { + "prediction": "I think we should use `std::string(\"key `\" + key + \"`\")` instead of `std::string(\"key `\" + key + \"`\")`", + "reference": "Why not also replace this one with calls to `GetProp`?" + }, + { + "prediction": "Why is this change needed?", + "reference": "Still need to remove trailing spaces on this line" + }, + { + "prediction": "I think this interface should be `ASTNodeContainer` instead of `ApexNode`", + "reference": "Please use the `@Experimental` annotation on this" + }, + { + "prediction": "Why is this change needed?", + "reference": "I found ~10 more instances of this typo. we can fix those in subsequent PRs." + }, + { + "prediction": "I think this should be `metricNamespace` instead of `metricNamespace`", + "reference": "How about making metricNamespace an option, and by default it's the same as `component`? e.g.m Init(component, WithMetricNamespace(\"trigger\"))" + }, + { + "prediction": "I think this should be `pageTokenName` instead of `nextPageTokenName`", + "reference": "Just checking: no need for case manipulation?" + }, + { + "prediction": "I don't think we need to change the API configs here.", + "reference": "Same as above, not that descriptive" + }, + { + "prediction": "(style) line over 80 characters", + "reference": "> i#4670 signl-interrupted special ibl xfer frag: Unlink if signal pending nit: This looks like one of many commits with the text before the colon. nit: On the long side: 56 or 60 chars is what some views show Spelling error." + }, + { + "prediction": "I think this should be `pthread_join(tid, NULL)` instead of `pthread_cancel(tid, NULL);`", + "reference": "Should we need to invoke pthread_cancel ?" + }, + { + "prediction": "I think we should use `System.getProperty(ZMSConsts.ZMS_PROP_USER_DOMAIN, ZMSConsts.USER_DOMAIN);` instead of `System.getProperty(ZMSConsts.ZMS_PROP_USER_DOMAIN, ZMSConsts.USER_DOMAIN);`", + "reference": "this is auto generated file so no changes are allowed here" + }, + { + "prediction": "I think this should be `return node.querySelectorAll(':not([disabled])').length;`", + "reference": "All buttons are submit buttons, except if they are `type=reset` or `type=button`. I suggest you do an exclude of those, rather than only include `button[type=submit]`." + }, + { + "prediction": "I think we should use `5.1` instead of `5.2`", + "reference": "can you please make this multi line, this version is hard to read." + }, + { + "prediction": "I think this should be `!goog.isNumber(xyRatio.x) && !goog.isNumber(xyRatio.x)`", + "reference": "For consistency, it's best to either always use strict equality (`===`) or loose equality (`==`) in `typeof` checks, and to not mix them." + }, + { + "prediction": "Layout/EmptyLinesAroundClassBody: Extra empty line detected at class body end.", + "reference": "Work Orders would never have only one approver, right?" + }, + { + "prediction": "I think we should be able to make this a constant.", + "reference": "`code` is written to the message as a `byte`, so I think it's better to declare it in the enum as `byte` as well to avoid a narrowing primitive conversion from `int` to `byte` in runtime." + }, + { + "prediction": "I think this should be `row.metrics[0].values[0]` instead of `row.metrics[0].values[0]`", + "reference": "This is the only \"extra\" change here." + }, + { + "prediction": "I think this is a bit confusing, but I think it would be better to have a default validator that checks for both permanent semantic problems (e.g. actor can't cover gas limit).", + "reference": "Please TODO and link to an issue for changing this." + }, + { + "prediction": "Why is this removed?", + "reference": "Can we make the script output trailing commas?" + }, + { + "prediction": "I think this should be `pageDashboard`", + "reference": "This file should get a file header " + }, + { + "prediction": "Why is this removed?", + "reference": "maybe we need process the os error more safely and friendly when open file failed, because this error is very common when cpu has a high pressure, crash directly is danger." + }, + { + "prediction": "I think this should be a `if account.CryptoSm2 { return big.NewInt(0, nil)` instead of a `if account.CryptoSm2 { return big.NewInt(0, nil)`", + "reference": "we need to pay attention not to use this flag everywhere." + }, + { + "prediction": "Why is this removed?", + "reference": "curious about this change, since it is not mentioned in the commit message and now we have `uint8` all over the place" + }, + { + "prediction": "Why is this change needed?", + "reference": "wait, are we not mising `WithStamp` here?" + }, + { + "prediction": "Why do we need to call `GetStageProgress` here?", + "reference": "oh. didn't know we store this stage progress." + }, + { + "prediction": "I think this should be `\\uE000-\\uF8FF`", + "reference": "Going with definition from here: > Does Unicode have private-use characters? > A: Yes. There are three ranges of private-use characters in the standard. The main range in the BMP is U+E000..U+F8FF, containing 6,400 private-use characters. That range is often referred to as the Private Use Area (PUA). But there are also two large ranges of supplementary private-use characters, consisting of most of the code points on Planes 15 and 16: U+F0000..U+FFFFD and U+100000..U+10FFFD. Together those ranges allocate another 131,068 private-use characters. Altogether, then, there are 137,468 private-use characters in Unicode. It looks like we are only ignoring ones in BMP and not the supplementary private-use characters. Shouldn't we consider the supplementary ones too?" + }, + { + "prediction": "I think this should be `Type\\Atomic\\TPositiveInt`", + "reference": "This change is un-tested and requires testing" + }, + { + "prediction": "I think this should be `comms=['default', 'ipywidgets', 'vscode']` or `comms=['default', 'ipywidgets', 'vscode']`", + "reference": "Should the docstring mention the vscode option?" + }, + { + "prediction": "I think this should be `packageConfig.shortName() + \"_gapic.yaml\"`", + "reference": "ISTM that since `artman` know the \"real\" value of the GAPIC config name, it should pass that value to toolkit, rather than toolkit guessing the name based on a heuristic. Then again, I don't know what this value actually does for Java codegen..." + }, + { + "prediction": "why is this change needed?", + "reference": "Please back out the import changes in files you haven't touched. I think these happen if you run goimports without having the vendor directory populated" + }, + { + "prediction": "I think this should be `T` instead of `T`", + "reference": "Should this be `ISocketOutput where T : struct`?" + }, + { + "prediction": "nit: I think we should return `0` if the table has no snapshot.", + "reference": "In which case will this actually return 0? If there is no snapshot, then there is no `Snapshot` object, right?" + }, + { + "prediction": "I think this should be `assert type(dataset.CLASSES) is str, \\`", + "reference": "This part of code is valuable and necessary. Can we move it to another place for a more clear logic and only check it once? For example, move it to line 133 before delving into each module." + }, + { + "prediction": "I think this should be `psycopg2-binary<2.9`", + "reference": "Are we at all worried that changing pins will cause release hiccups? I think we've decided that relaxing pins should be safe but adding pins has caused us build issues in the past - so I think we're fine?" + }, + { + "prediction": "Why is this needed?", + "reference": "could you please explain a bit where these numbers come from? for example: why is there no `swarm.EncryptedSectionSize`?" + }, + { + "prediction": "I think this should be `r.Attrs().ContentType` or `r.Attrs().ContentType`", + "reference": "s/object content/blob object/ (for consistency with the `Size` docs)" + }, + { + "prediction": "Why is this removed?", + "reference": "Rather than deleting this entirely, could we just emit it as a `warn` or `info` log line?" + }, + { + "prediction": "I think this should be `fmt.Sprintf(\"%s:%s_%s\", op, domainName, cfg.CA)`", + "reference": "Is there a chance of this being a BC break of somekind? I.e. what if an old instance of Caddy is running in a cluster with a newer one?" + }, + { + "prediction": "I think this should be `session.rollback()` instead of `session.rollback()`", + "reference": "Thanks for this... is this the only place where the rollback is needed? Are there others?" + }, + { + "prediction": "Why is this change needed?", + "reference": "Should this also be a pointer? What happens if there are no BLS messages? I guess that's what this test is exercising, and Lotus also uses a non-pointer here." + }, + { + "prediction": "I think this should be `err := revisionPrecondition(a.Doc)`", + "reference": "This was definitely a subtle bug right here." + }, + { + "prediction": "I think this should be `@secondary_emails = fetch_email_responses.select { |hsh| !hsh['primary'] && hsh['verified'] }`", + "reference": "If this method gets all the emails, it should be named appropriately. **all_emails** or just **emails**." + }, + { + "prediction": "I think this should be `146989`?", + "reference": "Can we still random, but if we randomly get a port is used before, we randomly pick again?" + }, + { + "prediction": "I think this should be `create_no_window=False` instead of `create_no_window`", + "reference": "I would rather no have this as a `kwarg` as it encourages \"growth\" which lead to an unweildy constructor in other classes. Let's add a method or property to take care of this instead as I think it's usage is going to be quite low." + }, + { + "prediction": "Do we need to check that the purchaser is the same as the user?", + "reference": "what if a purchaser is also an approver? or would that not happen?" + }, + { + "prediction": "I think this should be `if not network.config.has_fee_estimates(): raise BaseException('Dynamic fee estimates not available')`", + "reference": "Not sure why this change. You forgot to handle the case where the user has dynamic fees disabled and there are no fee estimates available. He should be able to sweep none-the-less (as he is using static fees anyway). The line with `config.fee_per_kb()` below, that you have deleted, handled that." + }, + { + "prediction": "I think this should be `GetTopLevelCondition` instead of `GetCondition`", + "reference": "sorry, I wasn't familiar with this TopLevelCondition... What it would be in this case? The AuditsLogReady condition?" + }, + { + "prediction": "Why is this needed? I think it would be better to use `*memory.Allocator` instead of `*memory.Allocator`.", + "reference": "Where does the `alloc` field get set?" + }, + { + "prediction": "I think this should be `countQuery` instead of `countQuery`", + "reference": "looks expensive to do it on each query" + }, + { + "prediction": "I think this should be `_INPUT_DATA_FILE = resource_filename(\"extra/nyctaxi/nycTaxi.csv\", \"nyc_taxi.csv\")`", + "reference": "@rhyolight -- but weren't we supposed to be standardizing on using underscores in file names (versus camelcase)?" + }, + { + "prediction": "I think this should be `!_unloaded.exists?` instead of `!_added.exists?`.", + "reference": "Can this simply call `in_memory.empty?` ?" + }, + { + "prediction": "I think this should be `app.OmitSettingsPhp`?", + "reference": "The styling/wording here probably needs some thought. It's more of a placeholder." + }, + { + "prediction": "Do we need this route?", + "reference": "Using a plural route helps in detecting the path automatically for `= form_for @password_reset`." + }, + { + "prediction": "Why is this needed?", + "reference": "Is `metadata` required on all tests? I actually just removed the metadata field entirely from a few tests in my PR." + }, + { + "prediction": "I think this should be `String.format(\"Could not transfer all bytes of \" + from.toPath());`", + "reference": "seems reasonable to also want to include the 'to' location?" + }, + { + "prediction": "I think this should be `wasDeleted = baseDir.delete();` or `wasDeleted = baseDir.delete();`", + "reference": "I don't think we need to necessarily check if that returned true or not, we should just remove the shutdown hook. Since nothing would check or do anything with this flag anyways." + }, + { + "prediction": "I think this should be `if policyName != \"\" {` and not `if policyName != \"\" {`", + "reference": "Better to push getting policy details into a func we can reuse later." + }, + { + "prediction": "I think this should be `outbound.Start` and `outbound.Stop`", + "reference": "optional: while there's nothing to do, a good way to catch bugs (where we use an outbound without calling `Start`) might be to have this outbound verify that `Start` is called before `Call` or `Stop`" + }, + { + "prediction": "I think this should be `sigs.k8s.io/cluster-api-provider-aws/pkg/apis/cluster`", + "reference": "Not a blocker by any means, but I think there is value in keeping the local imports in a separate group." + }, + { + "prediction": "I think this should be `TestNoOutboundsForService`", + "reference": "nit - I would test the error message as well. For panic, you might need to see if the stack contains the error message, instead of equaling." + }, + { + "prediction": "I think this should be `*raw.(*WaitForInstancesStopped)` instead of `*raw.(*WaitForInstancesSignal)`", + "reference": "Didn't we have specific logic for handling slices vs structs?" + }, + { + "prediction": "I think we should use `c_str()` instead of `c_str()`.", + "reference": "`c_str()` is not needed." + }, + { + "prediction": "I think this should be `if features.DefaultFeatureGate.Enabled(features.ServiceExternalIP)` instead of `if features.DefaultFeatureGate.Enabled(features.ServiceExternalIP)`", + "reference": "The handler will be installed twice if you don't remove the below one." + }, + { + "prediction": "I think this should be `OptionalLong.ofNullable(epochLengthActivationBlock)`", + "reference": "How about putting `epochLength` (or something like that) in place of `a` just to make it easier to read" + }, + { + "prediction": "I think we should be able to remove this message from the migration from v15 to v16.", + "reference": "Wouldn't this still fire afterwards if you created one called `pleasings`? or am I missing something?" + }, + { + "prediction": "I think this should be `kbp_record_root_path` instead of `kbp_record_root_path`.", + "reference": "I don't love this syntax; it doesn't match anything we're currently doing and it's not obvious. Why isn't this `/keybase/private/jzila,kb_bot/.kbfs_autogit/public/jzila/kbp.git`?" + }, + { + "prediction": "I think this should be `Tuple2` instead of `Tuple2`.", + "reference": "Does a type-hint work instead of casting? `return ofAll(toList(). zipWith(that, mapper));` (Probably not, just a question.)" + }, + { + "prediction": "Is there a reason why this change is needed?", + "reference": "Are these required?" + }, + { + "prediction": "I think it would be better to use `int32(opts.MaxControlLine)` instead of `int32(opts.MaxControlLine)`", + "reference": "This is consistent for all clients that we will check yes? Seems like we should just use the singleton, maybe pass it to the parse function or since clients have a server pointer set it at server start and just access that way without locks?" + }, + { + "prediction": "I think it would be better to use `javaToken.kind == JavaTokenKinds.DECIMAL_LITERAL` instead of `javaToken.kind == JavaTokenKinds.INTEGER_LITERAL`", + "reference": "Note that this is a bug, that should be fixed on master. `DECIMAL_LITERAL` cannot match any token, because it's declared with a `#`." + }, + { + "prediction": "I think this should be `github.com/nats-io/nuid` and `github.com/nats-io/v2/server/pse`", + "reference": "Don't need extra line here." + }, + { + "prediction": "Why is this change needed?", + "reference": "For the first look, this change is strange. Were we passing these tests before?" + }, + { + "prediction": "I think this should be `appname == processname+\".exe\"`", + "reference": "On Windows, doesn't `os.Args[0]` include the `.exe`? What if you run the program like `caddy.exe`?" + }, + { + "prediction": "Why is this removed?", + "reference": "I don't see anywhere where `ServiceConfiguration` interface implementation would return any kind of error. Not sure if its needed, but we could ALWAYS return a valid 'pseudo' configuration without possibility of error." + }, + { + "prediction": "I think this test should be `assertThat(CommonRenderingUtil.getDocLines(\"a\\nb\\nc\")).containsExactly(\"a\\nb\\r\\nc\")`.", + "reference": "Do we actually want to split on `\\r`? I thought that the \"newline sequence\" was only `\\r\\n` on windows." + }, + { + "prediction": "I don't think we need to write the `t_list` and `t_set` types here.", + "reference": "Nit: these lines are duplicated from above. They can be refactored by setting etype in a conditional and putting 282 and 283 below that." + }, + { + "prediction": "I think this should be `s.Shutdown()` instead of `s.Shutdown()`", + "reference": "I would do an s.Notice(\"Initiating Shutdown...\") then after Shutdown() do the original Server Exiting." + }, + { + "prediction": "Shouldn't this be `if (_logger.IsError)`?", + "reference": "Not sure with how many seconds on average are we dealing with but maybe it's better to have hh:mm:ss format in logs - you can make it with `TimeSpan.FromSeconds(seconds).ToString()`" + }, + { + "prediction": "I think we should add `platform` to the error message as well.", + "reference": "Why is this required? The user should be able to omit it and use the defaults." + }, + { + "prediction": "I think this should be `_(\"Handle mouse control from other &applications\")` instead of `_(\"Handle mouse control from other &applications\")`", + "reference": "I don't think the naming of this setting conveys what it does. Maybe something like \"Ignore mouse movement triggered by other applications\"" + }, + { + "prediction": "I think this should be `[NonEvent]` instead of `[NonEvent]`.", + "reference": "Didn't went with backwards compatibility since it's still in beta" + }, + { + "prediction": "This should be `throw_value_error(\"invalid value for bondsToCut\");`", + "reference": "Perhaps bondsToCut must be None or non empty." + }, + { + "prediction": "I think this should be `chartType=\"line\"`.", + "reference": "See above, we could avoid adding that (same applies below)." + }, + { + "prediction": "I think we should use `Integer.parseInt` instead of `Long.parseLong` here.", + "reference": "should use Number instead of Long" + }, + { + "prediction": "I think this should be `chai.expect` instead of `chai.expect`.", + "reference": "Should the rest of the file be updated to use `expect` or should this test use the same format as the rest of the tests?" + }, + { + "prediction": "I think this should be `a.logger.Error(\"failed to update status after refresh\")`", + "reference": "How would you feel about a different approach where the `DeleteAWSRecordSets` gets passed the zone ID and zone name rather than the `DNSZone`?" + }, + { + "prediction": "I think this should be `prob=random.uniform(0, 1)` instead of `prob=random.uniform(0, 1)`", + "reference": "it seems `random.uniform(0, 1)` similar to `random.randint(2)`, all have 1/2 probabilities." + }, + { + "prediction": "I think this should be `if isinstance(v, dict): for kk, vv in v.iteritems(): if isinstance(v, dict): for kk, vv in items[i-1].iteritems(): for kk, vv in v.iteritems(): for kk, vv in items[i-1].iteritems(): for kk, vv in v.iteritems(): for kk, vv in items[i-1].iteritems(): for kk, vv in v.iteritems(): if kk, vv in v.iteritems():", + "reference": "Added to support EBS volume creation, used like this: blockDeviceMap = [] blockDeviceMap.append( {'DeviceName':'/dev/sdc', 'VirtualName' : 'ephemeral0'}) blockDeviceMap.append( {'DeviceName':'/dev/sdh', 'Ebs': {'VolumeSize' : '100'} })" + }, + { + "prediction": "I think this should be `mockedApiUrl`", + "reference": "We shouldn't depend that url is `mysterium` - it can be just `testRequestURL`. Also, `URL` has to be upper-case." + }, + { + "prediction": "I think this should be `global_lock` instead of `global_lock`", + "reference": "We could delay this look-up now and only do it in the non-skip case. I suspect this is true for (almost) all of the top-level refactored functions." + }, + { + "prediction": "Is there a reason to use `kTagsTable.data()` instead of `kTagsTable.size()`?", + "reference": "Typically, to be simple, we could reserve a const length space." + }, + { + "prediction": "I don't think we need to import `Builder` here.", + "reference": "Need to add a license and copyright header to each file." + }, + { + "prediction": "Shouldn't this be `coupon_id_field_tag`?", + "reference": "If I'm not mistaken, this line is now outside of the `if signed_out?` block, right? Any concerns about that? Seems odd that we wouldn't accept coupons for signed in users, but I want to make sure we understand the ramifications of this change." + }, + { + "prediction": "Why is this change needed?", + "reference": "Please remove the unused import of DBPDataSource." + }, + { + "prediction": "Why is this change needed?", + "reference": "I think you should add some extra message here saying it was originally sent as an error, for diagnosability." + }, + { + "prediction": "Why is this change needed?", + "reference": "I believe that all the changes in this file are not valid for v1.2 of the Avalon toolkit." + }, + { + "prediction": "I think this should be `mergeOriginalRoleAndMetaRoleAttributes(originalRole, role);`", + "reference": "we cannot change the behavior of the processRole - that method is used in lots of places. this call must be done only in the method where templates are being handled." + }, + { + "prediction": "I think this should be `config/seelog.xml` or something like `config/seelog.xml` or something like `config/seelog.xml` or something like `config/seelog.xml` or something like `config/seelog.xml` or something like `config/seelog.xml` or something like `config/seelog.xml` or something like `config/seelog.xml` or something like `config/seelog.xml`?", + "reference": "I think we probably want to follow the same naming convention that we do with `execAgentConfigFileNameTemplate` (using the SHA in the name of the file). This file might be confgurable in the future and when that happens we will be ready. Plus it's pretty much the same code that we already use for the config file." + }, + { + "prediction": "(style) line over 80 characters", + "reference": "If following above, this would be: end_time = time(0) + manual_wall_time_option, which is simpler. Also, make the check manual_wall_time_option > 0, otherwise negative times would terminate the worker right away." + }, + { + "prediction": "I think this should be `Unwrap` instead of `Unwrap`", + "reference": "If we aren't using `errors.Is` we don't need the `Unwrap` as we have `Cause` which is what pkg/errors uses." + }, + { + "prediction": "Why is this needed?", + "reference": "redundant empty line" + }, + { + "prediction": "Shouldn't this be `HOUSE_OWNED_BY_ACCOUNT`?", + "reference": "The config.lua.dist still shows `houseAccountOwner`" + }, + { + "prediction": "Why is this removed?", + "reference": "I think we can leave this import and use non FQNs in the code." + }, + { + "prediction": "I think we should use `nameOrHandle` instead of `nameOrHandle`.", + "reference": "I'd rather just send the parameter twice than break encapsulation here. There's already precedence with webelement IDs" + }, + { + "prediction": "Why is this removed?", + "reference": "We should probably exit early if there are no items in the list." + }, + { + "prediction": "I don't think this is needed anymore.", + "reference": "As we can't use old names we should warn in whats new for 2.12 that this can happen." + }, + { + "prediction": "I think this should be `testbincover.RunMain`", + "reference": "good job finding this package, I hope it's actively maintained" + }, + { + "prediction": "Why is this removed?", + "reference": "same changes as in hipEnvVar.cpp" + }, + { + "prediction": "I think this should be `#ifdef _POSIX_C_SOURCE #define _POSIX_C_SOURCE #define _POSIX_C_SOURCE #define _POSIX_C_SOURCE #define _POSIX_C_SOURCE #define _POSIX_C_SOURCE #define _POSIX_C_SOURCE #define _POSIX_C_SOURCE #define _POSIX_C_SOURCE #define _POSIX_C_SOURCE #define _POSIX_C_SOURCE #define _POSIX_C_SOURCE #define _POSIX_C_SOURCE #define _POSIX_C_SOURCE #define _POSIX_C_SOURCE #define _POSIX_C_SOURCE #define _POSIX_C_SOURCE #define _POSIX_C_SOURCE #define _POSIX_C_SOURCE #define _POSIX_C_SOURCE #define _POSIX_C_SOURCE #define _POSIX_C_SOURCE #define _POSIX_C_SOURCE #define _POSIX_C_SOURCE #define _POSIX_C_SOURCE #define _POSIX_C_SOURCE #define _POSIX_C_SOURCE #define _POSIX", + "reference": "NULL check should be before this line" + }, + { + "prediction": "I think this should be `!client.getLocalPlayer().getWorldLocation() != worldPoint`", + "reference": "Seems like client.getlocalplayer is being called a lot, would it be worth it to do final Player player = client.getlocalplayer?" + }, + { + "prediction": "I think this should be `*(Lng32 *)op_data[2 * MAX_OPERANDS] = 0;`", + "reference": "this change is not correct. 3-valued boolean logic requires that comparison of null to another value during intermediate operations should make the result null and not false. The place where null becomes false is at the very end of that expression. As an example, with the changed logic, this expression will return incorrect result. select * from t where not (a = 1); if a is null, the where predicate will become true which is incorrect. With the original 3-valued result, the where pred will become false and not return any result." + }, + { + "prediction": "I think this should be `{locale}` instead of `{locale}`", + "reference": "This can already be done with `{>Detected-Locale}`, why make another way to do it?" + }, + { + "prediction": "I don't think we need to check if `fmd.isRestricted() == true`", + "reference": "These changes just match the logic update in the next method that was done previously - to assure the whole set of files is valid rather than that there is at least one that would be changed." + }, + { + "prediction": "I think this should be `WriteHeader(http.StatusOK)`", + "reference": "Why setting the status to Continue as at the end it is written OK? Status should be written only once." + }, + { + "prediction": "I think this should be `./proofs/bin/copy-groth-params.sh` instead of `./proofs/bin/copy-groth-params.sh`", + "reference": "Howdy! You'll want to do this same thing (replace `hydrateParamCache` with `proofs/bin/paramcache` and then do the copy) in `smartdeps`, too." + }, + { + "prediction": "I think we should add a description to the help text to make it easier to read.", + "reference": "nit : Remove the extra lines" + }, + { + "prediction": "I think this should be `dont_listen` instead of `dont_listen`", + "reference": "Instead of adding a new option, I wonder if we could decide on a port that would disable listening. For instance, port set to 0 means that we use default port 4222. Setting to -1 means that we let OS pick a random free port. We could say anything negative lower than -1 (say -2) means disabled? You don't have to update the PR for that, just wondering if that would be better or not and let's see what others think." + }, + { + "prediction": "I think this should be `report.check_name.startswith('clang-tidy-')`", + "reference": "Should we add some default case if non of the above return some analyzer name? Something like `unknown analyzer`?" + }, + { + "prediction": "I think we should check if min_length > 1 or min_length > 2?", + "reference": "Nvm. The original version is best... *hides from the angry rubocop*" + }, + { + "prediction": "Why is this removed?", + "reference": "we can drop this and use the returned body above, right?" + }, + { + "prediction": "I don't think we need to do this, but I think it's better to use `dpl_install_command` instead of `dpl_install_command`", + "reference": "Is echoing enabled on purpose here or it's a remainder of your tests?" + }, + { + "prediction": "I think this should be `@logger.info(options['_description']) if options.key?('_description')` instead of `@logger.info(options['_description']) if options.key?('_description')`", + "reference": "I think this should just be worked into the next message and follow the verbosity of it." + }, + { + "prediction": "This should be `@param {Object} urlParams URL parameters to be passed to the query.", + "reference": "This also needs to be reverted." + }, + { + "prediction": "I think this should be `1 << iota`", + "reference": "`FromCommand` seems to fit better, since with my suggestion below, all pauses will raise a signal on `needPause`. Also maybe the format `journalPauseConflict` and `journalPauseCommand` is better, since the journal isn't necessarily paused yet once we raise a pause signal." + }, + { + "prediction": "I think this should be `return err == context.DeadlineExceeded`", + "reference": "This is fix from another PR #120." + }, + { + "prediction": "Why do we need this?", + "reference": "I *think* it makes sense to try the more general dictionary (i.e standard python literals) format first. Might be other implications I haven't figured out yet. Then again, ``MultiInterface`` is pretty new so it probably doesn't matter wrt backwards compatibility." + }, + { + "prediction": "Why not just use `is_null` here?", + "reference": "lol that variable name" + }, + { + "prediction": "Why is this change needed?", + "reference": "Upper case is reserved for our versions of top-level chains i.e. the `FORWARD` chain jumps to `cali-FORWARD`." + }, + { + "prediction": "Why not use `wallet->store.representative(node.wallets.tx_begin_read())` here?", + "reference": "json_handler::receive () has already started a read tx that can be used here right?" + }, + { + "prediction": "I think this should be `global._googlesitekitBaseData[ 'isWP5.0+'] = true;`", + "reference": "We should add the definition to `.storybook/config.js` as well." + }, + { + "prediction": "I think it would be better to use `*(Lng32 *)op_data[1] == -1` instead of `*(Lng32 *)op_data[1] == 0`", + "reference": "I don't believe this is correct. Consider the query, \"select a from t1x where not(b = 0 and c = 0)\". When B and C are both null, both equal predicates evaluate to null, and the AND evaluates to null. The NOT then also evaluates to null. The WHERE clause should treat the result of the NOT as false. But with this fix, the result of the AND will be false, making the NOT true. There needs to be three cases here for ITM_AND: If the first operand is false, then the AND is false. If the first operand is true, then the result is the second operand. If the first operand is null, then if the second operand is false, the result is false otherwise the result is null. Similar logic needs to be added to the ITM_OR case." + }, + { + "prediction": "I think we should use `Math.min(offset + bound, length)` instead of `Math.min(offset + bound, length)`", + "reference": "`bound/2` is generally the previous bound that we tested, except when `bound` is equal to 1. It won't break in that case since callers are not supposed to call advance on a target that is lte the current doc ID, but this might still make room for bugs?" + }, + { + "prediction": "I think this should be `options.rawResult` or `options.fullResult`", + "reference": "Can we remove `raw`, `fullResult`, and `serializeFunctions`?" + }, + { + "prediction": "I think this should be `Security` instead of `Security`", + "reference": "[Nit] I don't have a proposed suggestion, but security seems too generic of a name here." + }, + { + "prediction": "I think this should be `config.buildConfig = 'Release'`", + "reference": "do we need to force a buildConfig here? I know it's in muon, but that might actually be making things harder for people" + }, + { + "prediction": "I think this should be `this->GetTarget() == this`", + "reference": "Shouldn't need this-> here." + }, + { + "prediction": "Please remove this file.", + "reference": "Why delete this?" + }, + { + "prediction": "I think this should be `ref.current = value;` or `ref.current = value;`", + "reference": "This line is here to be compatible with the current way `refs` work, right?" + }, + { + "prediction": "I don't think we need to check if `value.class == BigDecimal`", + "reference": "Hmm, I wonder if we can safely assume all decimals should be displayed as $$...ok for now I suppose." + }, + { + "prediction": "Line is too long. [89/80]", + "reference": "Good spec :). Very clear and easy to see what it's doing." + }, + { + "prediction": "I think this should be `orgs_by_thirty_day_commit_volume` instead of `orgs_by_thirty_day_commit_volume`", + "reference": "Shouldn't we need to sanitize the `params[:filter]` from a defined expected values?" + }, + { + "prediction": "I think this should be `retry_for_up_to_51.1 seconds` instead of `retry_for_up_to_51.1 seconds`", + "reference": "Should we bite the bullet and poll for the full 5 minutes that AWS recommends? If we do that, we'll probably want to leave some kind of breadcrumb in the event log to let users know why it's taking so long to launch." + }, + { + "prediction": "Why is this change needed?", + "reference": "Guava changed `Objects` -> `MoreObjects`" + }, + { + "prediction": "Why is this change needed?", + "reference": "All these hand generated mocks can be deleted. I think we already moved everything to gomocks." + }, + { + "prediction": "Why is this change needed?", + "reference": "what about string/number etc _ids? this will fail." + }, + { + "prediction": "Why is this change removed?", + "reference": "Looks like the test had a bug prior to this." + }, + { + "prediction": "I think we should use `process.argv.find(arg => arg.startsWith('joplin://'))` instead of `process.argv.find(arg => arg.startsWith('joplin://'))`", + "reference": "Should start with joplin://x-callback-url/. Also maybe create a helper function to check if a url is valid?" + }, + { + "prediction": "I think this is a good idea to keep the `7` as it's the default. I think it's better to keep the `7` as it's the default, but I don't think it's a good idea to keep the default.", + "reference": "PR works great. Just out of curiosity: why all the id changes? " + }, + { + "prediction": "I don't think we need to do this, but I think it would be better to use `offsetof(struct flb_config, backoff_base)` instead of `offsetof(struct flb_config, backoff_cap)`", + "reference": "config map first value is wrong, it aims to define the \"value type\", that value will lead to an undefined behavior." + }, + { + "prediction": "I think this should be `*blob.Bucket` instead of `*blob.Bucket`.", + "reference": "This doesn't make sense. The thing being constructed is a blob.Bucket. \"Constructing\" the pointer is trivial." + }, + { + "prediction": "I think this should be `pylint.testutils.checker_test_case` instead of `pylint.testutils.checker_test_case`.", + "reference": "Outch. A configuration/parsing refactor is on the radar but this seems more pressing." + }, + { + "prediction": "I think we should use `moment(new Date()).format(DATE_FORMAT)` instead of `moment(new Date()).format(DATE_FORMAT)`", + "reference": "Unfortunately this won't work when the \"All time\" range is chosen because `memberStats.days` will be `\"all-time\"` and not a number. What you could do instead is to use `memberStats.stats` as the dependent key and use `Object.keys(memberStats.stats.total_on_date)[0]` to grab the first date in the range and build the label from there." + }, + { + "prediction": "I don't think we need this feature anymore.", + "reference": "Style/StringLiterals: Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping." + }, + { + "prediction": "Why did you remove this?", + "reference": "We need this left in as `axe.configure` is for the top-level page `axe` and we still need to configure the axe script inside the iframe as well (so both have to be configured)," + }, + { + "prediction": "I think this should be `ServiceImpactingChanges` instead of `ServiceImpactingChanges`", + "reference": "is this rule serviceimpacting? I'm thinking it's mostly around the modeling of pageable in the swagger, thoughts?" + }, + { + "prediction": "Why is this change needed?", + "reference": "same here, replace `ks` and `kc` to something more related to Source." + }, + { + "prediction": "I think this should be `throw new ArgumentException(\"Could not cast {parameter.GetType().Name} to {typeof(Dictionary).Name}\");`", + "reference": "We should probably ask here if `dict` contains a key with the appropiate value, and leave a trace in case it doesn't, to make it easier to debug for developers." + }, + { + "prediction": "I think this should be `auth_home_sixth` instead of `auth_home_sixth`", + "reference": "this should only be indented 2 spaces" + }, + { + "prediction": "I think this is a good idea. I think it would be better to use `t.Errorf(\"failed to load env config, %v\", err)` instead of `t.Errorf(\"failed to load env config, %v\", err)` and use `t.Errorf(\"failed to load env config, %v\", err)`", + "reference": "Nit, these Err not nils should be `t.Fatalf` not error. We want to the test to stop if this error occurs." + }, + { + "prediction": "I think this should be `hasTabular` and not `hasTabular`.", + "reference": "shouldn't every `Boolean` in this pr be `boolean`?" + }, + { + "prediction": "I think this should be `minimize_window` instead of `minimize_window`", + "reference": "This `if` is not necessary" + }, + { + "prediction": "I think this should be `System.Web.Http.HttpConfigurationAction`.", + "reference": "Are you using this anywhere? (I couldn't find it.)" + }, + { + "prediction": "I think this should be `defer s.w.recordStepTime(s.name, startTime, endTime)`", + "reference": "Can be inlined" + }, + { + "prediction": "Metrics/LineLength: Line is too long. [82/80]", + "reference": "Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping." + }, + { + "prediction": "I think this import should be moved to the top of the file.", + "reference": "Please use `kinto.core.utils.json`" + }, + { + "prediction": "I think we should use `zap.String(\"address\", upstream.Dial)` instead of `zap.String(\"address\", upstream.Dial)`", + "reference": "Since we're returning the error with the same content, we don't need to log it here; it will get bubbled up and emitted that way." + }, + { + "prediction": "I think this should be `using-final-in-unsupported-version`.", + "reference": "What happens if someone import `typing` and thus uses `@typing.final` instead?" + }, + { + "prediction": "I think this should be `pandas==0.20.0`", + "reference": "Better remove this dependency altogether" + }, + { + "prediction": "I think this should be `extern __thread h2o_buffer_prototype_t h2o__http2client_wbuf_buffer_prototype;`", + "reference": "Could you please move the declaration to httpclient.h? I think we have a consistent pattern in declaring global variables in header files." + }, + { + "prediction": "Shouldn't this be `NEXT ID TO ASSIGN: 141`?", + "reference": "We will also need to add this to the spec." + }, + { + "prediction": "why remove this?", + "reference": "In startEvaluator, we have the paysetHint; we should use it to preinitialize the state delta allocation. The number of transactions and the deltas are typically growing in a linear fashion, so preallocating twice as much in the array initializer would be a good idea." + }, + { + "prediction": "I think this should be `WebDriverException.scheduleIpHostResolving();` instead of `WebDriverException.scheduleIpHostResolving();`.", + "reference": "we shouldn't add a bunch of static initializers 'everywhere' in the code. Probably just one would be good, during the construction of the 'RemoteWebDriver' class." + }, + { + "prediction": "I think we should use `[BenchmarkCategory(Categories.CoreFX, Categories.JSON)]` instead of `[BenchmarkCategory(Categories.CoreFX, Categories.JSON)]`", + "reference": "Would it be possible to move the creation of the `new { Prop = (object)_value }` out of the benchmark? In the current version, the benchmark includes the cost of creating and serializing the object, while if possible it should be the cost of serialization only." + }, + { + "prediction": "I think this should be `Http\\HttplugBundle\\HttplugBundle` instead of `Http\\HttplugBundle\\HttplugBundle`", + "reference": "only dev and local" + }, + { + "prediction": "I think this should be `null` instead of `null`.", + "reference": "This should not be nullable, instead it should be `->default(0);`" + }, + { + "prediction": "Why is this change needed?", + "reference": "What about `selectedColumns`? I believe it is frequently used throughout the project." + }, + { + "prediction": "Shouldn't this be `synonymBoostByPayload`?", + "reference": "I thought we switched the approach from a payload to boost attribute? Besides; it's not clear we need this toggle at all since the user could arrange for this behavior simply by having the new DelimitedBoost filter thing in the chain." + }, + { + "prediction": "I think we can remove the `punctuation` from the `environment_string_pair_array` as well.", + "reference": "the previous code used 'export' when platform is cisco-5, presumably because 'env' cannot be used to load variables? I have no idea if that's the case but this env vs export logic is not here" + }, + { + "prediction": "I think this should be `SecretARN` or `SecretPrefix`", + "reference": "I'm wondering if we need to add some type of validation here that the SecretCount != 0... Or do we think it would be valid to have a SecretCount of 0?" + }, + { + "prediction": "Why is this change needed?", + "reference": "This test is being skipped. I unskipped it, and it failed in the same way for both `slaveOk: false` and `secondaryOk: false`. I'm not sure how else to test this broken test." + }, + { + "prediction": "I think this should be `from` and `to` and `from`.", + "reference": "I don't believe that we need a pointer to an interface for the `to` side of this since we're just assigning a value to the to field." + }, + { + "prediction": "Shouldn't `count` be `None`?", + "reference": "No blank line after the docstring." + }, + { + "prediction": "I think this should be `path/filepath` instead of `path/filepath`", + "reference": "nit: move this to the group below." + }, + { + "prediction": "Why is this change needed?", + "reference": "This is fine, but maybe we should change the variable name to \"bufferSize_as_uint\"? Or \"...uint32\"?" + }, + { + "prediction": "I think this should be `if term_info['suggestion'].first.is_a?(Hash)`", + "reference": "Use snake_case for variable names." + }, + { + "prediction": "Why is this change needed?", + "reference": "Obviously, don't merge this to master." + }, + { + "prediction": "I think this should be `expect(reporter).to have_received(:report).with(0)` instead of `expect(reporter).to have_received(:report).with(0)`", + "reference": "Nearly there! This should assert on the output, take the result of \"start\" and \"finish\" as an example :)" + }, + { + "prediction": "Why is this change needed?", + "reference": "This loop is going to burn CPU if len(s.q) == 0. Maybe a small sleep?" + }, + { + "prediction": "Why is this needed?", + "reference": "can you give a reason why session should be contained in RegionManager?" + }, + { + "prediction": "I think we should use `TestAuthenticate_WhenBase64MessageSignatureIsCorrect` instead of `TestAuthenticate_WhenBase64MessageSignatureIsCorrect`", + "reference": "You are comparing two signerIDs here, error message should be \"Signers should match\"" + }, + { + "prediction": "I think this should be `func (role *TaskIAMRoleCredentials) GetIAMRoleCredentials() *TaskIAMRoleCredentials { return role.IAMRoleCredentials }`", + "reference": "Who's acquiring this lock for writes?" + }, + { + "prediction": "`compressed` is not used anymore.", + "reference": "This throws a linter error, don't use object creation for side effects. I feel like it's kinda messed up that the errors are thrown by the constructor and not that the constructor will throw them" + }, + { + "prediction": "I don't think we need to test `by_topic` here, but I think it would be better to test `by_topic_name` instead of `by_topic_name`", + "reference": "Should there be a `trail.topic_name` method so we don't annoy Demeter?" + }, + { + "prediction": "`team` should be `team_name` instead of `team_name`", + "reference": "instead of passing \"None\" it would be more readable to create a constant e.g. TEAM_PUBLIC = None and then call build_package(TEAM_PUBLIC, ...)" + }, + { + "prediction": "I think this should be `require_once __DIR__ . '/Psalm/Internal/exception_handler.php';`", + "reference": "Would it make sense to include this file via composer files-autoloading instead?" + }, + { + "prediction": "I think this should be `elementText = element.getText();` instead of `elementText = element.getText();`", + "reference": "Each `ExpectedCondition` implements `java.util.Function` These are expected to be stateless. This condition will leak previous `elementText` on the second usage, which doesn't seem ideal." + }, + { + "prediction": "Why is this change needed?", + "reference": "Extra newline here. Thanks for moving it under the `testing` import though. This just needs to be grouped with the other imports below it." + }, + { + "prediction": "I think we should use `String.format(\"%s\", body.getEncoding());` instead of `String.format(\"%s\", body.getEncoding());`", + "reference": "Should we ignore case when doing the comparison?" + }, + { + "prediction": "I think this should be `#ifdef WLR_HAS_X11_BACKEND` instead of `#ifdef WLR_HAS_X11_BACKEND`", + "reference": "The same `ifdef` should apply to `#include ` line 14" + }, + { + "prediction": "I think this should be `Log.ErrorRetrievingMethod`", + "reference": "We're instrumenting a static method, so there's no instance in this case. `diagnosticSource` is the first argument." + }, + { + "prediction": "I think this should be `private boolean isHighPriority = false;`", + "reference": "I feel like this belongs in `RecipientPresenter` (which should really be `MetadataPresenter`), but I suppose having it next to requestReadReceipt makes sense as well. feel free to leave as is." + }, + { + "prediction": "I think this should be `1.4.0` instead of `1.4.1`", + "reference": "Let's go back to 1.4.0 until the release is being prepared." + }, + { + "prediction": "(style) line over 80 characters", + "reference": "I would avoid the term \"errno\" as it implies the glibc variable. Use error_code or status or something." + }, + { + "prediction": "Why is this needed?", + "reference": "@abhinav @kriskowal what do you think about putting the handler on `d`?" + }, + { + "prediction": "Why is this change needed?", + "reference": "Why `restic.TagLists` and no `restic.TagList` ? Because I'm using `restic.TagList` here and using `restic.TagLists` is a lot of changes" + }, + { + "prediction": "I think this should be `1 * time.Hour` instead of `1 * time.Hour`", + "reference": "An hour seems a significant amount of time to wait for within a test, does it need to be that long?" + }, + { + "prediction": "Why is this flag set to `false`?", + "reference": "Nit: (newish to golang, don't hesitate to tell me I'm wrong here, but ...) I'd have written this code, just for readability: keepAlive := false return d.dial(hostName, tlsClientConfig, keepAlive) ... or even return d.dial(hostName, tlsClientConfig, false) // keepAlive=false Personally I think Golang should have included named args; I think it's one of the things python got right." + }, + { + "prediction": "I think this should be `Msmq` instead of `Msmq`", + "reference": "I don't think it would cause any version conflict, but I'd feel safer if you declared it last, so that the numerical id of the existing integrations don't change" + }, + { + "prediction": "I think this should be `apiutil.CertificateRequestHasInvalidRequest` instead of `apiutil.CertificateRequestHasInvalidRequest`", + "reference": "Can we provide some more useful actionable info here? `fmt.Sprintf(\"The certificate request could not be completed due to invalid request options: %s\", req.Status.Conditions[InvalidRequestCondition].Message)`" + }, + { + "prediction": "I think we should add a TODO for this.", + "reference": "yeah, can change to 8545" + }, + { + "prediction": "I think this should be `UserStamp` instead of `UserStamp`.", + "reference": "As far as I can see you're not rollbacking transaction anywhere. This could potentially cause further issues(and very hard to debug ones) with not synchronized transactions between message handling. Is the transaction required in this place anyway? You seem only to be fetching data here. ack method is performing some updates so it makes sense" + }, + { + "prediction": "I don't think this is needed anymore.", + "reference": "What's the meaning of null URIEndpointObject?" + }, + { + "prediction": "I think we should use `DEFAULT_PORT` instead of `DEFAULT_LOG_LEVEL`", + "reference": "Why did you remove the time? It can be useful if some actions are ran in jobs?" + }, + { + "prediction": "Why is this changed?", + "reference": "File is not `goimports`-ed (from `goimports`)" + }, + { + "prediction": "Why is this change needed?", + "reference": "What the reason to change imports?" + }, + { + "prediction": "Shouldn't this be `super.failureDetection(e)`?", + "reference": "Nit: continuation indents are 2 indents / 4 spaces." + }, + { + "prediction": "I think this should be `if parsed_url.netloc:`", + "reference": "You can use `netloc.rsplit(\":\")` for that." + }, + { + "prediction": "I think this should be `info` instead of `info`.", + "reference": "nits, I don't get the point of this change " + }, + { + "prediction": "I think this should be `errorPrefix` and `warningPrefix`.", + "reference": "`warningPrefix` looks the same on both platforms, we could move it up to `log.go`." + }, + { + "prediction": "Why is this change needed?", + "reference": "What's the motivation behind switching to plural here? I think we want singular cc @abhinav" + }, + { + "prediction": "I think this should be `wrapError` instead of `wrapError`", + "reference": "What do you think about renaming this method `FromErrorAndCode(code Code, err error) *Status`? One of the benefits is that it will be consistent with the naming of `func FromError(err error) *Status {` which does something almost similar." + }, + { + "prediction": "Why is this change needed?", + "reference": "we cannot state that by default the same value is used if we stopped using null - it would suggest that when you change JSON RPC and leave WS port default then they would be same." + }, + { + "prediction": "Why is this change needed?", + "reference": "I'm still not convinced dropping Chrome logs is the right thing to do, but if you insist " + }, + { + "prediction": "I think this should be `UnsupportedOperationException` instead of `UnsupportedOperationException`.", + "reference": "It would be helpful to include some reasoning here. With the reflection model, it is often the case that names are not available." + }, + { + "prediction": "I think this should be `caddy.LogDestination` instead of `caddy.LogDestination`", + "reference": "Instead of setting this here, why not have the flag call in the init function set `caddy.LogDestination` directly, and switch on that?" + }, + { + "prediction": "I think this should be `@wordpress/i18n`", + "reference": "This belongs under \"WordPress dependencies\"." + }, + { + "prediction": "I think this test should be removed from the `#if !NET452` #endif.", + "reference": "Was there an issue on `net452`?" + }, + { + "prediction": "I think this should be `if (_platformNotSupportedExceptionMessage != null && _platformNotSupportedExceptionMessage.StartsWith(\"SR.\"))` and `else if (_platformNotSupportedExceptionMessage.StartsWith(\"Default\") && _platformNotSupportedExceptionMessage.StartsWith(\"SR.\"))` and `else if (_platformNotSupportedExceptionMessage != null && _platformNotSupportedExceptionMessage.StartsWith(\"Default\") && _platformNotSupportedExceptionMessage.StartsWith(\"SR.\"))`", + "reference": "Another option is to always write it without quotes. I always have to use SR. And why not?" + }, + { + "prediction": "I think this should be `const defaultBreakpoints = [40, 52, 64]`.", + "reference": "This should use the `merge` function added in #473 instead of introducing a new dependency" + }, + { + "prediction": "I think this should be `if (binding.descriptorType == VK_DESCRIPTOR_TYPE_MUTABLE_VALVE)`", + "reference": "Shouldn't this say \"a binding with descriptor type VK_DESCRIPTOR_TYPE_MUTABLE_VALVE\"" + }, + { + "prediction": "I think this should be `static const struct wlr_tablet_tool_v2_grab_interface default_tool_interface;`", + "reference": "This variable name should probably contain `grab`" + }, + { + "prediction": "Use %s instead of %s.", + "reference": "Which initializer should we be using for open_aire? The one in `external_apis` or this one in `initializers`?" + }, + { + "prediction": "I think this should be `gx/ipfs/QmTiRqrF5zkdZyrdsL5qndG1UbeWi8k8N2pYxCtXWrahR2/go-libp2p-routing`", + "reference": "remove todo on line 28?" + }, + { + "prediction": "why do you need this?", + "reference": "clean unnecessary arguments." + }, + { + "prediction": "I think this should be `EXECUTION_STOPPED`", + "reference": "Could the name of the status be confusing to users? It says the execution stopped but is it a temporary stop? Will it continue to run at some point? To me the name does not suggest a final status but a transition one. WDYT @sshardool @jakhani @djaiswal83 @aditya1105" + }, + { + "prediction": "Why is this needed?", + "reference": "Since we created a Provisioners directory, can we do the same with the tests, and follow the same structure as the code?" + }, + { + "prediction": "I think this should be `sentryAddr[]` instead of `sentryAddrs[]`", + "reference": "We don't need that one anymore?" + }, + { + "prediction": "I think we should use `from graphite.storage import STORE` instead of `from graphite.storage import STORE`", + "reference": "Since we're determining the local node's host info in the `Store()` init, we need to import the `STORE` object here. Is this OK, or should I be determining the host info earlier. (When parsing settings?)" + }, + { + "prediction": "I think this is a good idea to remove the {@link #getKind()} method.", + "reference": "I think, there is no `#getKind()` method anymore, is it? The approach would now be testing with instanceof. Or could we return a more specific type than JavaNode now?" + }, + { + "prediction": "I think this should be ``", + "reference": "can we localise these? not sure if we have easy access to a translator instance from `generic-provider-views`" + }, + { + "prediction": "I think this should be `usb_string_product` and `usb_string_MANUFACTURER`", + "reference": "This is the VID from Adafruit. Doesn't Particle have a different VID? (CC @suda)." + }, + { + "prediction": "I think this should be `vStringTruncate(scope, old_len);` instead of `vStringTruncate(scope, old_len);`", + "reference": "The function is only used once, and this body is now only 1 call with the same args (e.g. basically an alias for `vStringTruncate`), it could probably be simply removed. But if you wanna keep the naming for clarity, it also sounds reasonable." + }, + { + "prediction": "I think this should be `error` instead of `error`.", + "reference": "please change to `could not connect to peer: %s`. it is not relevant to say \"from kademlia\" in a warning" + }, + { + "prediction": "I think this should be `Value(time::TimeUtils::rmDateTimeStrMs(timestamp));`", + "reference": "Why need to remove this? Datetime has microseconds in fact." + }, + { + "prediction": "I think this should be `var t *testing.T` instead of `var t *testing.T`", + "reference": "What's up with this, isn't it nil? Why not use the real T value from the test function? @elcore @wmark" + }, + { + "prediction": "Why not use `@psalm-mutation-free` instead of `@psalm-mutation-free`?", + "reference": "this feels weird" + }, + { + "prediction": "I don't think we need to add this to the list of network names.", + "reference": "I don't think this is the type of network we should be putting in our named networks." + }, + { + "prediction": "Shouldn't this be `if (get_role() == \"train\") debug.open(b);`?", + "reference": "debug? I suspect this will be removed before merge?" + }, + { + "prediction": "Why is this change needed?", + "reference": "should this be here twice?" + }, + { + "prediction": "I think this should be `GENERATE(28, 960, 2000, 3072);`", + "reference": "`generate_special` - a meaningless name for me. Can we provide more detailed naming?" + }, + { + "prediction": "Line is too long. [89/80]", + "reference": "This isn't something you introduced in your changes, but the change makes more obvious to me that this test would be better as a unit test of some kind (probably a controller test). Testing a 404 is an edge case that probably doesn't need to be tested with all components in integration." + }, + { + "prediction": "I think this should be `logger.info(\"Using delegate supplier: \" + clazz.getName());` and `logger.finest(\"Using delegate supplier: \" + clazz.getName());`", + "reference": "We chose `info` in the test code for obvious reasons. Changing to `finest` makes debugging harder and noisier." + }, + { + "prediction": "I think it would be better to use `remoteHost.getHost().getPort()` instead of `remoteHost.getHost().getPort()`.", + "reference": "any reason you're assigning to the local variable 'id' too?" + }, + { + "prediction": "I think this should be `molecule.validators` instead of `molecule.validators`", + "reference": "Need to fix this import :)" + }, + { + "prediction": "Why is this needed?", + "reference": "sorry these tests suck so much we are working to kill them" + }, + { + "prediction": "This is a bit confusing, but I think it would be better to use `playbackManager.duration(player)` instead of `playbackManager.currentTime(player) * 10000`.", + "reference": "Why not adjust `currentTime` to be in ms directly?" + }, + { + "prediction": "(style) line over 80 characters", + "reference": "> restore, we find the matching spill for that restore which uses the same slot nit: Two separate sentences: separate with `.` or something besides `,`." + }, + { + "prediction": "Why remove this?", + "reference": "this flag not used" + }, + { + "prediction": "Why not use `dateConverter->convertToDisplayDate` instead of `convertToDisplayDate`?", + "reference": "I don't think `?? null` works here... that's to ensure PHP doesn't throw an \"undefined\" error about `$profile->expirationDate`, but now the code is assuming that `$profile->expirationDate` will be set. Might be cleaner to do:
     $expiration = isset($profile->expirationDate) ? $this->dateConverter->convertToDisplayDate(\"Y-m-d H:i\", $profile->expirationDate) : null; 
    And then assigning the `$expiration` value in the return array..." + }, + { + "prediction": "I think this should be `app.productionTip = false`", + "reference": "An ENV should be used? Are you sure that the Vue examples are built in the production mode?" + }, + { + "prediction": "`execution_time` should be `Optional[Union[float,int]]`", + "reference": "Nit: this should actually always be float since we convert it before we construct the namedtuple." + }, + { + "prediction": "I think this should be `LOG(ERROR) << path << \" is not directory\";`", + "reference": "The result of `FileUtils::fileType` could be saved, instead of calling twice." + }, + { + "prediction": "I think this should be `try` instead of `catch`", + "reference": "Can you log the exception ?" + }, + { + "prediction": "(style) line over 80 characters", + "reference": "since this debug message is inside a plugin code, it should use flb_plg_debug(ctx->ins, \"...\"), on this case don't need the component prefix since the API will put it there automatically" + }, + { + "prediction": "Why is this needed?", + "reference": "I also took advantage of the changes to change the Timestamps used in this notification from \"java.sql.Timestamp\" to \"com.yahoo.rdl.Timestamp\"." + }, + { + "prediction": "I think we should use `1 * time.Second` instead of `1 * time.Second`.", + "reference": "It would be nice all these tweaks to be configurable from cmd line, with sensible defaults" + }, + { + "prediction": "Why is this change needed?", + "reference": "Why do we need this `check_same_thead` to be false? I feel a bit uncomfortable about this." + }, + { + "prediction": "I think we should be able to create a custom object by passing in the constructor.", + "reference": "We should probably test with constructors which aren't in the schema, and functions which aren't constructors." + }, + { + "prediction": "I think this should be `const size_t arg_logical_size;`", + "reference": "this call doesn't work doesn't? I mean there doesn't seem to be an 2 argument allocate overload. Maybe arg_logical_size should just be defaulted to the arg_alloc_size thing. Or we should just report out physical allocation size instead of logical." + }, + { + "prediction": "Why is this removed?", + "reference": "This winds up flipping the desired values. Looks like I gave you a bum steer @kevpl" + }, + { + "prediction": "why is this change needed?", + "reference": "nit: let's call our address ioAddr from now on" + }, + { + "prediction": "I think it would be better to return 0 if `enabled.gpu_validation && enabled.gpu_validation_reserve_binding_slot` is set to `false` if `enabled.gpu_validation` is set to `false` if `enabled.gpu_validation_reserve_binding_slot` is set to `false`.", + "reference": "You're killing this \"else\" case here which currently flags an error when maxBoundDescriptorSets == 0." + }, + { + "prediction": "I think this should be `gboolean` instead of `gboolean`.", + "reference": "Nitpick: I'd append `_cb` to the function name here to mark it as a callback. Otherwise it looks a bit like this will do the entire job of removing null checksum refs from a hash table." + }, + { + "prediction": "I don't think we need to do this, but I think it would be better to use `Collections.unmodifiableList(tables).stream().map(TiTableInfo::getTable).stream().map(TiTableInfo::getTable).map(TiTableInfo::getTable).stream().map(TiTableInfo::getTable).map(TiTableInfo::getTable).map(TiTableInfo::getTable).map(TiTableInfo::getTable).map(TiTableInfo::getTable)", + "reference": "or you can use `filter(x => !x.isView)`" + }, + { + "prediction": "Why did you remove this?", + "reference": "Instead of NewBuffer on the line above, do NewReader to avoid having to wrap later." + }, + { + "prediction": "I think this should be `# pylint: disable=too-many-locals, too-many-statements`", + "reference": "No need for this, as pylint already only turns things off for this function and it's needed for the entire function." + }, + { + "prediction": "Why is this change needed?", + "reference": "extra brownie points ( overall solution ): we've currently triple-encoding the payset - 1. we encode it to calculate the block size. 2. we encode it to calculate the commit hash ( either via flat, or as Merkle tree ). 3. we encode it as a whole for the purpose of preparing the proposal ( I know that this isn't always the case, but this case happens to be on the critical path ). Caching the encoded data of the *first* block could help us repeating the process." + }, + { + "prediction": "I think this should be `Mongoid::Errors::MongoidError::BASE_KEY.restrict_with_error_dependent_destroy` instead of `Mongoid::Errors::MongoidError::BASE_KEY.restrict_with_error_dependent_destroy`", + "reference": "This assertion should use the actual expanded string, so that it is clear what the message produced looks like. Right now one has to run the code to determine what the message is." + }, + { + "prediction": "I think we should move this to the end of the file.", + "reference": "similar here for imports, these should be consolidated (and also consolidated with the grouping below)" + }, + { + "prediction": "I think this should be `self.file_client = mmcv.FileClient(**self.file_client_args)`", + "reference": "Maybe there is no need to modify it. Because if you don't use the mask, it won't be initialized." + }, + { + "prediction": "I think this should be `annotationKey + \"\u2591\" + annotationKey + \"\u2591%\"`", + "reference": "Is there a reason we wouldn't want the trailing `%`? I'm guessing that without the trailing `%` it will just do a strict match vs a partial prefix right?" + }, + { + "prediction": "I think this should be `safe_string.h` instead of `safe_string.h`.", + "reference": "Please update the DMA test app in AFU repo once this gets approved." + }, + { + "prediction": "I don't think we need to change the `Shopsys Framework` to `Shopsys Framework`", + "reference": "There should be a migration for that as well to reflect the change on in-production instances" + }, + { + "prediction": "I think this should be `\"\"` instead of `\"\"`", + "reference": "Why does it have to be `\"\"` instead of an empty string " + }, + { + "prediction": "I think this is a bit confusing, but I don't think we need to check if `dry_run` is true.", + "reference": "This is very strongly opinionated so feel free to disagree with me better, but as conditionals get more complex I like turn them into ifs instead of unlesses. What do you think?" + }, + { + "prediction": "I think this should be `list.sort_by { Kernel.rand(list.size)` instead of `list.sort_by { Kernel.rand(list.size)`", + "reference": "Will this obey the seed set on Kernel?" + }, + { + "prediction": "I think we should remove the `&.report_function_call('add_facts')` check here.", + "reference": "We shouldn't use the `&.` syntax here, since we expect that `executor` will never be `nil`. For the functions that _can_ be called from apply / without an executor, `&.` is still appropriate." + }, + { + "prediction": "Why do we need this?", + "reference": "Why the switch from period to colon?" + }, + { + "prediction": "I think this should be `!= \"\" && err != nil`", + "reference": "Can you just fix the warning instead? It's actually important for this to have a default of `\"\"` as the subsequent merges with `DefaultConfig()` and `fileConfig()` need to work. If you make this not `\"\"`, you break the assumptions of `Merge()`." + }, + { + "prediction": "I think this should be `bool Enabled` and `bool BaselineTreeDbCacheIndexAndFilterBlocks` and `bool BaselineTreeMetadataDbCacheIndexAndFilterBlocks` and `bool BaselineTreeDbCacheIndexAndFilterBlocks` and `bool BaselineTreeDbCacheIndexAndFilterBlocks` and `bool BaselineTreeDbCacheIndexAndFilterBlocks` and `bool BaselineTreeDbCacheIndexAndFilterBlocks` and `bool BaselineTreeDbCacheIndexAndFilterBlocks`", + "reference": "let us not add this" + }, + { + "prediction": "I think this should be `*int` instead of `*int`", + "reference": "Is there a need for group as well? crun sets both." + }, + { + "prediction": "I think we should use a mock for this.", + "reference": "@cijothomas This build-up pattern was really confusing. It looks like internally ActivityProcessor is intended to be chained but there is nothing in the abstract class that enforces it. We never set a \"Next\" or make sure that the chain is called. Probably need to do some more work in this area?" + }, + { + "prediction": "I don't think we need to call `pre()` on `save` and `findOneAndUpdate`.", + "reference": "`this.getFilter()` won't work on `pre('save')`. Perhaps make this `toySchema.pre(['updateOne', 'findOneAndUpdate'])`?" + }, + { + "prediction": "I think this should be `1593493828L` instead of `1593493828L`", + "reference": "Break out tests for events into their own tests rather than placing them in other ones. That makes it easier for us to figure out where problems lie and to do a TDD-driven implementation over new APIs." + }, + { + "prediction": "Why is this removed?", + "reference": "I think this is the only place where we use `UvShutdownReq`. Can we remove the type altogether? Or do you prefer to keep it around?" + }, + { + "prediction": "Why is this needed?", + "reference": "I think we can get this to work by passing in the root ca cert fixture that upstream ca is using" + }, + { + "prediction": "(style) line over 80 characters", + "reference": "Just occurred to me to ask: is the condor log date in localtime or UTC?" + }, + { + "prediction": "I think this should be `SULLIUSCEP_LOCATION(5809)`", + "reference": "Can you remove the sculliscep varbits from here too?" + }, + { + "prediction": "I think this should be `return $retval && do_query(\"alter table host add index host_domain_name (domain_name)\");`", + "reference": "I understand that it is a common practice in this script to add indexes this way but why don't we check index existence before adding it? I'm not very familiar with MySql but it's can be done easily in MSSQL and I'm pretty sure that there is a way to do the same here." + }, + { + "prediction": "I think this should be `duraton` or `duration`", + "reference": "we should probably deprecate (and display a warning) the misspelled keyword arg here rather than removing it... and then add the new one. This changes a public API and will break any code that is currently using the misspelled version." + }, + { + "prediction": "This should be `h2o_error_printf` and `h2o_fatal`", + "reference": "Should we do something like `h2o__fatal(file, line, \"fatal error: %s, %s\\n\", mess, RSTRING_PTR(...))` here?" + }, + { + "prediction": "I think this should be `// TODO: NODE-3819: Unskip flaky tests`.", + "reference": "is this one all platforms?" + }, + { + "prediction": "Why is this change needed?", + "reference": "why capitals grr?" + }, + { + "prediction": "I think this should be `Error.Fatal(e)` and `Warning.Println(e)` and `Warning.Println(e)`", + "reference": "Surely all the above should go into `common`." + }, + { + "prediction": "Why remove this?", + "reference": "This is an unrelated change, but was failing CI... probably introduced in master." + }, + { + "prediction": "I don't think we need to change this to `useChirality` and `useQueryQueryMatches`?", + "reference": "This piece isn't backwards compatible, but it's enough of an edge case that I think it's unlikely to be a problem." + }, + { + "prediction": "I think this should be `10 * 1000 * 1000`", + "reference": "MB is presumably 1024 * 1024." + }, + { + "prediction": "I don't think this is needed.", + "reference": "Didn't we extract this logic to a `react-features` helper?" + }, + { + "prediction": "Why remove this?", + "reference": "But But, overlapping async writes will get corrupted " + }, + { + "prediction": "I think this should be `go-filecoin/config.go` and not `go-filecoin/config.go`.", + "reference": "Not your immediate problem, but having everything depend on a package that has the config for everything else is ick. Can you move the MessagePoolConfig here and reverse the dependency?" + }, + { + "prediction": "Why is this removed?", + "reference": "recently, IME_ACTION_GO action can trigger key_down and key_up event successfully, so we don't need to send enter key separately as before, otherwise will trigger it twice and cause to enter empty passcode, which cause test failed." + }, + { + "prediction": "Shouldn't this be `checkExprDepth` instead of `checkExprDepth`?", + "reference": "It seems that you only need to do this `checkExprDepth()` inside `deduceExprType()`. So you don't have to add this check everywhere." + }, + { + "prediction": "Why change this?", + "reference": "why split into two lines?" + }, + { + "prediction": "why is this change needed?", + "reference": "Does this need to be public or can it be package-private?" + }, + { + "prediction": "I think we should use `this.props.getPlugin(target.id).\u0441anEditFile(file)` instead of `this.props.editors.map(target => this.props.getPlugin(target.id).\u0441anEditFile(file))`", + "reference": " Questionable way of looping through editors and calling `canEditFile` to show the edit button. Is there a better way?" + }, + { + "prediction": "I think this should be `Stream.ofAll(iterator().zipWith(that, mapper));`", + "reference": "`that is null` doesn't sound very useful to me. Could we rename `that` to `target` or something less context dependent :)?" + }, + { + "prediction": "I think this should be `self._print_valid_platforms()` instead of `self._print_valid_providers()`.", + "reference": "Just to be consistent, can we use the print function `print()` instead of the keyword. Same goes for line 437." + }, + { + "prediction": "why not use `wallet[0].String()` here?", + "reference": "Having to pass in `price` and `limit` is pretty common. Do we want to have this be another argument, maybe a combined structure that can be used for every action that requires it?" + }, + { + "prediction": "I think this should be `destroyed` instead of `destroyed`.", + "reference": "Could you move it after `stop`?" + }, + { + "prediction": "I don't think we need to change the method name here.", + "reference": "The variable `method` seems not used. Maybe we can remove the parameter `bodyParamName` and generate it by invoking `ParamUtils.generateBodyParameterName(method)` ?" + }, + { + "prediction": "Why is this removed?", + "reference": "I don't think this should be here?" + }, + { + "prediction": "Why is this change needed?", + "reference": "Either I'm missing something or specs actors should remove this call cc @anorth" + }, + { + "prediction": "Why is this change needed?", + "reference": "Please undo all these changes as they are white-space only." + }, + { + "prediction": "Why not use `\\array_search` instead of `\\array_search`?", + "reference": "You forgot an optimization? `$countries = CountryField::FORMAT_ISO_3166_ALPHA3 === $countryCodeFormat ? Countries::getAlpha3Names() : $countriesAlpha2;`" + }, + { + "prediction": "I think this should be `python_version` instead of `python_version`.", + "reference": "Shouldn't this also return the current value specified by the user? At least that's what the docstring says and what the previous version did." + }, + { + "prediction": "I think this should be `time_range`", + "reference": "> the time range the listen search the time range of the listen search?" + }, + { + "prediction": "I think this should be `dynamo_preserve_zmm_caller_saved = true;`", + "reference": "This snprintf, etc. needs to all be inside the DO_ONCE: all this overhead happening on every single decode is likely a huge performance hit." + }, + { + "prediction": "I think this should be `--conn_retries ` instead of `--conn_retries `", + "reference": "would call it connect_retries" + }, + { + "prediction": "I think this test should be `test_unary_operand_type` instead of `test_unary_operand_type`", + "reference": "Why are we using `repr`?" + }, + { + "prediction": "Why is this needed?", + "reference": "I use the same zms instance to check authentication in swagger endpoints. Same thing in ZTS." + }, + { + "prediction": "I don't think we need to change the user in the test case.", + "reference": "Consider consolidating the common code in a common setup method in tests?" + }, + { + "prediction": "Why is this change needed?", + "reference": "q: do you need to run the annotation processor over EthProtocolConfiguration prior to writing this file? (i.e.to ensure ImmutableEthProtcolConfiguration exists)? Does Auto-import etc. still work in the IDE?" + }, + { + "prediction": "Why not use `typeFormatter.getFullNameFor(type)` here?", + "reference": "What is the motivation for switching from `Schema` to `DiscoveryField` everywhere?" + }, + { + "prediction": "I think this should be `containerMetadataEnabled := utils.ParseBool(os.Getenv(\"ECS_ENABLE_CONTAINER_METADATA\"), false)`", + "reference": "What happens when ECS Init/whatever's starting the Agent mounts some other directory as Agent's data directory (`-v /tmp:/data`) sets `ECS_HOST_DATA_DIR` to `\"/var/lib/ecs\"` It doesn't seem like a strong enough abstraction to be dependent on Agent configuration options to expect `ECS_HOST_DATA_DIR` to be the same as whatever's being mounted as `/data` on the host. My main concern is the late-binding/asynchronous failures this could lead to if the wrong host mount was specified. Wondering if there are better alternatives here. Can we at the very least inspect the Agent container and check if `ECS_HOST_DATA_DIR` is mounted? If the answer is that we'll revisit the validation here at some latter stage, that's fine too. But, I want us to be aware of potential failures here." + }, + { + "prediction": "I don't think we need to add the `#ifdef WITH_XCB_ERRORS` to the `#else` block.", + "reference": "btw that's obviously out of scope of this PR but since i noticed this line here it reminded me a thing: on some systems i've noticed the font didn't had those characters, so it was just a square or empty space and sometimes they're just a bit shifted in position (if font doesn't have them and using from fallback font which have incompatible dimensions of characters) how do you think is it worth creating an issue to discuss/address it or it could just waste time on bikeshedding?" + }, + { + "prediction": "I think this should be `recoverutil`", + "reference": "alias is not needed" + }, + { + "prediction": "Shouldn't this be `pids/nebula-graphd.pid` or `pids/pids/nebula-graphd.pid`?", + "reference": "Do we need to include the path?" + }, + { + "prediction": "Why is this changed?", + "reference": "During our zoom and working on this, I said that I believe it was set to 64MB, not 32MB, but the diff shows that I was wrong. So we could change it back to 32MB." + }, + { + "prediction": "I think this should be `import log` instead of `import log`", + "reference": "Here I thought you always insisted on ` log \"github.com/Sirupsen/logrus\" ` :) I might do a PR that just globally switches that out wherever we have log." + }, + { + "prediction": "why is this change needed?", + "reference": "We maintain that each (logical) key generation has the same set of device keys, so no need to plumb through `keyGen`." + }, + { + "prediction": "I don't think we need to change this, but I think it would be better to use `mock` instead of `mock`", + "reference": "Please use `from unittest import mock` instead of this package." + }, + { + "prediction": "I think we should return `this._model.aggregate(this._pipeline, this.options || {});` instead of `this._model.aggregate(this._pipeline, this.options || {});`", + "reference": "Should be `if (this.options && this.options.cursor) {`. Options may be undefined. Also, going forward, mongoose will always use curly braces around if blocks." + }, + { + "prediction": "I don't think we need to do this, but I think it's a good idea to keep it in the `mailhost.synopsys.com` section.", + "reference": "This should remain as mailrelay.blackducksoftware.com for staging. Not sure this will be valid, but it shouldn't go through the production mail server." + }, + { + "prediction": "I think this should be `#if DEBUG`", + "reference": "Maybe we should have a Debug.Assert for when `Slab != null` to ensure that we are always returning the block (in our tests at least)." + }, + { + "prediction": "I don't think we need this change.", + "reference": "Okay sorry about this I was really confused on how to support uncontrolled in this case, so what we want to do is apply `defaultValue` when `props.value` is falsy but not undefined, right? In the case of us seeing it is controlled (value & onChange present) we apply defaultValue to `props.value` (and delete props.defaultValue) In the case of uncontrolled we shouldn't enter this branch at all and go for full native dom behavior" + }, + { + "prediction": "I don't think we need to import `WordPress` from `WordPress` and `WordPress` from `WordPress`", + "reference": "`lodash` shouldn't be grouped under WordPress dependencies" + }, + { + "prediction": "I think this should be `OpenEBSLocalPVProvisionerLabelSelector` instead of `OpenEBSLocalPVProvisionerLabelSelector`", + "reference": "The latest yaml in openebs/master has changed to name=admission-webhook. cc: @prateekpandey14" + }, + { + "prediction": "I think this should be `Ruby` instead of `Ruby`", + "reference": "using **an** Amazon Simple... Simple Notification **Service** (singular)" + }, + { + "prediction": "I think this should be `1 || expected != result`", + "reference": "Probably don't intend for this `1 ||` to still be here" + }, + { + "prediction": "Why is this removed?", + "reference": "Looks like this is failing to compile on Windows (VS 2015 I think)." + }, + { + "prediction": "I think this should be `beforeQueryFunc(interface{})` instead of `beforeQueryFunc(interface{})`", + "reference": "nit: call the arg something simple like `f` to avoid repeating \"beforeQuery\"." + }, + { + "prediction": "I think this should be `correlation.RegisterGlobalHook`", + "reference": "do you think this should be `osd/auth` as a pkg to make it more unique and void conflicts with other `auth` packages?" + }, + { + "prediction": "I think this should be `[Output]` instead of `[Output]`", + "reference": "Why are you passing out the Message?" + }, + { + "prediction": "Why is this locked?", + "reference": "Yikes, this was a bug :grimacing:" + }, + { + "prediction": "Why is this change needed?", + "reference": "I am not sure which one of these is considered idiomatic go... maybe @azdagron has an opinion here? /me prefers the verb since it's shorter. I guess I don't care _too_ much, but it would be good to get some general agreement so we are all following the same conventions" + }, + { + "prediction": "Why is this removed?", + "reference": "Please check this for error and emit appropriate debugging information. I know this was pre-existing code, but we just have to fix things like this as we go." + }, + { + "prediction": "I think this should be `if cond == nil || cond.Status == corev1.ConditionUnknown`", + "reference": "This seems unrelated, should be a separate PR." + }, + { + "prediction": "Why is this needed? I think it's better to use `../engine_create_dispatcher.h` instead of `../engine_create_dispatcher.h`.", + "reference": "Never use relative includes, prefer full path" + }, + { + "prediction": "I think this test should be `test_no_count_and_zero_count_arg`", + "reference": "This should fit on the line above without going over the 79-char limit, no?" + }, + { + "prediction": "I think we should remove the `stub_current_user_with` method from the `VideosController` as well.", + "reference": "Is this related to the other contents of this pull request?" + }, + { + "prediction": "I think this should be `AddonsExtraParams` instead of `AddonsExtraParams`", + "reference": "Should this be `*string`?" + }, + { + "prediction": "Why is this change needed?", + "reference": "In the old code here there was no Source Selector, but CreateDefaultProfile will specify a Source Selector of `\"\"`. Is that equivalent?" + }, + { + "prediction": "Line is too long. [89/80]", + "reference": "We should pick this across for all our deprecation specs" + }, + { + "prediction": "I think this should be `kubectl` instead of `kubectl`", + "reference": "Longer term, I think it could be valuable to move this to cluster-api, and then other repos could take advantage of this as well." + }, + { + "prediction": "I think this should be `EnsureBinary(\"test-connection\")` instead of `EnsureBinary(\"test-connection\")`.", + "reference": "Is this a related change?" + }, + { + "prediction": "I think this should be `reconcileLBAttachment(scope, machine, instanceDescription)`", + "reference": "Given that this is repeated, can we do it outside here and the Create call, what do you think about moving it outside?" + }, + { + "prediction": "I think this should be `instance.propToCol(change[1])`", + "reference": "Changing `prop`=>`col` by reference? I think you can prepare map `prop`=>`col` in L51." + }, + { + "prediction": "This should be `--bfbs-builtin-attrs`.", + "reference": "I hate to ask, but can we make this flag shorter so it lines up? :(" + }, + { + "prediction": "I think this should be `k8s.io/apimachinery/pkg/apis/meta/v1/unstructured`", + "reference": "Note to reviewers: latent, dedup import" + }, + { + "prediction": "I think this should be `prepareHostNetwork` or `prepareOVSBridge`", + "reference": "Seems this func is no more needed after your refactoring." + }, + { + "prediction": "I think this should be `io\\\\.usethesource`", + "reference": "already added (see several rows below)" + }, + { + "prediction": "why not use wireguard.cali instead of wireguard.cali?", + "reference": "nit: a switch perhaps?" + }, + { + "prediction": "Why is this change needed?", + "reference": "Great you caught this. Super critical to not retry these errors." + }, + { + "prediction": "I don't think we need to do this. The core root directory is the same as the core root directory.", + "reference": "Just a little change to make the var effectively final, which is clearer." + }, + { + "prediction": "I think this should be `human.format_address(sc.address)`", + "reference": "Using `\"{}\".format(...)` is a bit beside the point... " + }, + { + "prediction": "Why is this change needed?", + "reference": "I think these should remain as they are." + }, + { + "prediction": "I think this should be `additional_pkgs = []` instead of `additional_pkgs = []`", + "reference": "Let's just call this PERF_PACKAGES and have them in the same format as WINDOWS/SLES/DEBIAN_PACKAGES constants - since it is only a single package and, as written, you'd have to update the code to add more package names anyway. Might as well be consistent with the rest of the code." + }, + { + "prediction": "I think this should be `getPluginID_from_TaskIndex(TaskIndex)` instead of `getDeviceIndex_from_TaskIndex`", + "reference": "We don't have a `getPluginIDfromTaskIndex` function? I think it should be implemented in Globals/Plugins.h / .cpp" + }, + { + "prediction": "I think we should add a default value for `*` in the query.", + "reference": "@shalinmangar If lazy field loading isn't enabled, I don't think this actually changes the behavior of `SolrIndexSearcher`, since it was previously ignoring the fields list anyway. What it _should_ do is allow certain distributed queries, like the ones in `DistribJoinFromCollectionTest`, to co-exist with `SolrIndexSearcher#doc()` respecting the `fields` set instead of just discarding it." + }, + { + "prediction": "Why is this change needed?", + "reference": "Should we be using version 3 now?" + }, + { + "prediction": "Why do we need to throw an exception here?", + "reference": "Would be better to throw a more specific exception, but for now it will do." + }, + { + "prediction": "Why is this removed?", + "reference": "We should not replace Wei with a type that is shared across multiple units. We need this as `Wei` for type and unit safety." + }, + { + "prediction": "I think this should be `if os.IsNotExist(err)` instead of `if err != nil`", + "reference": "I'm pretty sure this should emit a util.Warning*(), since we're skipping by here and never hitting anything that will give them a warning about what's happened." + }, + { + "prediction": "I think this should be `GetParserWithBuiltinsWithBuiltins(state *core.BuildState)` and not `GetParserWithBuiltins(state *core.BuildState)`", + "reference": "This function isn't useful? it's just a clone of GetParserWithBuiltins?" + }, + { + "prediction": "Shouldn't this be `getBool(\"circuitBreaker/cpuCircuitBreakerEnabled\", false)`?", + "reference": "I'm not sure if the boolean flags should always contain `is`, also I generally hate too long names... ;) we already know this is a section for circuit breakers, so the name doesn't have to repeat all of it. How about `cpuBreakerEnabled`, `memoryBreakerEnabled` etc?" + }, + { + "prediction": "I think we should be able to add a `RewriteFiles` to the `RewriteFiles` interface.", + "reference": "Before we start the replacing equality deletes with position deletes, I think we need to refactor the RewriteFiles API to adjust more cases: 1. Rewrite data files and remove all the delete rows. The files to delete will be a set of data files and a set of delete files, and the files to add will be a set of data files. 2. Replace equality deletes with position deletes, the files to delete will be a set of equality delete files (we will need to ensure that all delete files are equality delete files ? ) , the files to add will be a set of position delete files. 3. Merging small delete files into a bigger delete files. The files to delete will be a set of equality/position delete files, the files to add will be a set of equality/position delete files." + }, + { + "prediction": "I don't think we need to do this, but I think it's a good idea to have a `default: t('blacklight.application_name', locale: I18n.default_locale)`. I think it would be better to use `default: t('blacklight.application_name', default: t('blacklight.application_name', default: t('blacklight.application_name', default: t('blacklight.application_name', locale: I18n.default_locale'))` instead of `default: t('blacklight.application_name', locale: I18n.default_locale')`", + "reference": "Layout/TrailingWhitespace: Trailing whitespace detected." + }, + { + "prediction": "Why not use `entry.getValue().get(0).getCategoryIcon()`?", + "reference": "Is it possible that the shortcuts list is empty?" + }, + { + "prediction": "I think this should be `errors.Fatalf(\"unable to save snapshot: %v\", err)` instead of `errors.Fatalf(\"unable to save snapshot: %v\", err)`", + "reference": "This just changes the error message from `unable to save snapshot: [...] context canceled` to `canceled`." + }, + { + "prediction": "I think this should be `if (!entry.getKey().equalsIgnoreCase(HttpHeaders.CONTENT_LENGTH))`", + "reference": "maybe it's better to remove HttpHeaders.CONTENT_LENGTH after the loop" + }, + { + "prediction": "I think this is a bit confusing, but I think it would be better to use `List.of(0).dropRight(n)` instead of `List.of(0).dropRight(n)`", + "reference": "Very cool. We are now collecting the fruits after your length implementation!" + }, + { + "prediction": "I don't think we need to add this rule to the whitelist.", + "reference": "Is this the same copy of the rules file from above? If so, can just use the copy from above, and this can be dropped." + }, + { + "prediction": "I think this should be a `defer eniAttachHandler.stop()`.", + "reference": "Please break this into multiple lines." + }, + { + "prediction": "I think this should be `httpContext.Response.Headers.Wrap(Tracer.Instance.Settings.HeaderTags, defaultTagPrefix: SpanContextPropagator.HttpResponseHeadersTagPrefix);`", + "reference": "Shouldn't this new line replace the few lines above?" + }, + { + "prediction": "Why is this needed?", + "reference": "Perhaps this belongs in universe?" + }, + { + "prediction": "I don't think this is needed.", + "reference": "there is a `kEpsilon` you can use directly." + }, + { + "prediction": "Why is this import removed?", + "reference": "This should be grouped with the below imports, and the two separate groups of imports below should likely also be grouped together" + }, + { + "prediction": "This should be `std::string *error_msg`", + "reference": "It looks like this error_code field is used to return a string to the caller, not just a const input string to be consumed as in the rest of this PR? If so, my personal preference would be to leave it as a std::string* instead of a reference; I don't know offhand what the VL coding style dictates." + }, + { + "prediction": "I think this should be `static const std::string kPartsTable = kPartsTable;`", + "reference": "If return by value, then why bother to make it `static`?" + }, + { + "prediction": "I think this should be `if paste`?", + "reference": "You'll need to add docs for the argument, see e.g. the `debug_log_filter` docstring above." + }, + { + "prediction": "I think this should be `go.opentelemetry.io/otel/sdk/trace`", + "reference": "`sdktrace` or `tracesdk`, pick one." + }, + { + "prediction": "Why is this removed?", + "reference": "can we return null instead?" + }, + { + "prediction": "(style) code indent should use tabs where possible", + "reference": "You mean XXX and \"we should\" or \"NYI\" or sthg. Maybe put it on the ifdef line." + }, + { + "prediction": "I think this should be `SingleImageImportLoggable`", + "reference": "minor: can be in-lined in return" + }, + { + "prediction": "Align the elements of a hash literal if they span more than one line.", + "reference": "why the additional \"\\n\"?" + }, + { + "prediction": "Why is this change needed?", + "reference": "This seems to be a big omission. If the first buffer reports an error, stream seems to just discard it." + }, + { + "prediction": "Why is this change removed?", + "reference": "Maybe move this one down too?" + }, + { + "prediction": "I think this should be `private readonly ILog _log = LogProvider.For();`", + "reference": "We do this in lots of places I'm starting to notice...typically you'd avoid taking concrete dependencies, but we also avoid package dependencies as well which makes sense (i.e. not using an IoC, etc.). Any reason we don't implement some form of poor-man's DI and/or a simple factory instead of new-ing things up everywhere. This may be a simple example (as I'm guessing this is likely the only place this is ever or ever will be used), but separating them doesn't take any more time/effort either really." + }, + { + "prediction": "I don't think we need to add the `fmt.Sprintf` function here.", + "reference": "What if formatPrefix doesn't include a space? Will the resulting error have e.Error() stuck at the end without any space?" + }, + { + "prediction": "I think this should be `package.pushsync.pushsync`", + "reference": "that doesn't say a lot to me. Can you please be more specific on the function of pushsync?" + }, + { + "prediction": "I think this is a bit confusing, but I think it would be better to use `vkCreateGraphicsPipelines` instead of `vkCreateGraphicsPipelines` instead of `vkCreateGraphicsPipelines` if the subpass is read-only. I think it would be better to use `vkCreateGraphicsPipelines` instead of `vkCreateGraphicsPipelines` if the subpass is read-only. I think it would be better to use `vkCreateGraphicsPipelines` instead of `vkCreateGraphicsPipelines` and `vkCreateGraphicsPipelines` and `vkCreateGraphicsPipelines` in `vkCreateGraphicsPipelines` instead of `vkCreateGraphicsPipelines` if the subpass is read-only.", + "reference": "> subpass uses a depth/stencil attachment in renderPass with a read-only layout for the depth aspect Assume - VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL - VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_OPTIMAL count as well seems there is a `NormalizeDepthImageLayout` for this" + }, + { + "prediction": "I think this should be `BOXES` instead of `COMPOSITE`.", + "reference": "This shouldn't be altered, you probably meant to update `AREA_PAGE_DASHBOARD_ALL_TRAFFIC` further below :)" + }, + { + "prediction": "I think this should be `dict(mount_volumes.items())`.", + "reference": "what does this change do exactly?" + }, + { + "prediction": "Why is this needed?", + "reference": "What's the purpose of this `backgroundCtx` field?" + }, + { + "prediction": "I think this should be `AccountIncarnationLength`", + "reference": "non contract incarnation" + }, + { + "prediction": "Why is this change needed?", + "reference": "I would recommend to leave out `None` because None is already the default." + }, + { + "prediction": "I think this should be `log.Debugf(\"code not at same version: peer has version %s, daemon has version %s, disconnecting from peer: %s\", hello.CommitSha, from);`", + "reference": "Should the \"bad hello message\" case above also disconnect?" + }, + { + "prediction": "I think this should be `fragmentEnabled` and `fragmentVisible`", + "reference": "Shouldn't this be in the child and not in the base plugin? Wouldn't having it here enable all derived plugins at once?" + }, + { + "prediction": "I think this should be `--example-names` instead of `--example-matches`.", + "reference": "Should probably say REGEX or PATTERN rather than string." + }, + { + "prediction": "Why is this change needed?", + "reference": "I felt we don't need to set it that strict, like if somehow pubsub happens to allow extra 20 bytes for metadata, this test won't work. We would suggest to use 11MB instead." + }, + { + "prediction": "Why not use `isset($metadata['associationType']) && $metadata['associationType'] & ClassMetadata::TO_MANY`?", + "reference": "In theory `isset($metadata['associationType'])` is `false` if the linked field is not an association field, isn't?" + }, + { + "prediction": "Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
    Prefer single-quoted strings when you don't need string interpolation or special symbols.
    Prefer single-quoted strings when you don't need string interpolation or special symbols.
    Prefer single-quoted strings when you don't need string interpolation or special symbols.
    Prefer single-quoted strings when you don't need string interpolation or special symbols.", + "reference": "@tute the only thing I needed to enable this like as `password` is not in default flow anymore I think." + }, + { + "prediction": "I think this test should be `allAuthenticatedUsers` instead of `allUsers`", + "reference": "nit: to be consistent with `self.members`, please move this up one line, so that it's closer to `allUsers`? You will need to update your test reference." + }, + { + "prediction": "I think this should be `if (options.verbose) args.push('--verbose')`", + "reference": "we might as well just access `config.gClientVerbose` directly here. If any other options are passed to `gclientSync` or `gclientRunhooks` then the verbose option will be lost the way it's used now" + }, + { + "prediction": "I don't think we need to add this to the menu.", + "reference": "Change the key to `default_tab` instead and I'll merge this" + }, + { + "prediction": "Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
    Prefer single-quoted strings when you don't need string interpolation or special symbols.
    Prefer single-quoted strings when you don't need string interpolation or special symbols.
    Prefer single-quoted strings when you don't need string interpolation or special symbols.
    Prefer single-quoted strings when you don't need string interpolation or special symbols.", + "reference": "we still can end up passing a blank org_id to the scope method if for any reason the params is not present..." + }, + { + "prediction": "I think this should be `value.toString()` instead of `value.toString()`", + "reference": "I think yes, this makes sense to expose this. +1" + }, + { + "prediction": "I think this should be `env.get(\"OPENEBS_IO_LOCALPV_HOSTPATH_DIR\", \"/var/openebs/local\")`", + "reference": "let us put the sample yaml snippet i.e. maya api server deployment that makes use of this env & value" + }, + { + "prediction": "I think this test should be removed.", + "reference": "What changed to cause this?" + }, + { + "prediction": "I think this should be `StoreSession` and `GetSession`", + "reference": "Repeating big interface in many places shows smtg is wrong with design" + }, + { + "prediction": "I think this should be `commits_by_project` instead of `commits_by_language`", + "reference": "Inheriting from `AccountsController` to get access to the `redirect_if_disabled` filter." + }, + { + "prediction": "I don't think this is needed.", + "reference": "Simple Storage **Service**" + }, + { + "prediction": "I think this should be `public int FUNC() { return 1; }`", + "reference": "Enter at the end of the file! :-D (and at the end of lines ;-) )" + }, + { + "prediction": "I think this should be `scheduled_for_deactivation_on` and `scheduled_for_cancellation_on`.", + "reference": "Put a comma after the last parameter of a multiline method call." + }, + { + "prediction": "Is there a reason why we need to clear the successor?", + "reference": "Don't you want to place this check before you add `succ` to `newSucc`?" + }, + { + "prediction": "Why is this removed?", + "reference": "Commit 676eeeab10884456a5f70ce708a8aa5116ecbaf7 contains a lot of unrelated code style changes. Please get rid of these." + }, + { + "prediction": "Shouldn't this be `None` instead of `None`?", + "reference": "Well this sucks, I wish you'd mentioned you were using a private API, perhaps we could have made a public one with better guarantees before `0.12.6` was released." + }, + { + "prediction": "Why is this removed?", + "reference": "Consider instead moving this into an _test file so it's public but only usable in tests." + }, + { + "prediction": "I think this should be `logrus.Infof(\"Waiting for state transition to %q\", desired)` instead of `logrus.Infof(\"Waiting for state transition to %q\", desired)`", + "reference": "Any reason why we want to remove this code ? It helps debugging AWS ebs attach issues. Ideally yes a library should have minimal logging, but there is no way we can track long running AWS attach calls." + }, + { + "prediction": "Why is scheduled_end_time needed?", + "reference": "nit: indentation doesn't match (unfortunately i don't know of a way to automatically lint these sql statements with how we're using them currently)" + }, + { + "prediction": "I think this should be `@profiler = true` instead of `@setup_default`", + "reference": "Should we remove the other `setup_profiler` call site and just let this be the one call site for it, since, AFAIK, the other one is no longer necessary with this? Also, can we make `setup_profiler` private?" + }, + { + "prediction": "I think we should remove the hidden flag here.", + "reference": "Are there any other templates where this command needs to be added, or were those issues specific to storage requiring us to enable a new command group?" + }, + { + "prediction": "Why remove this?", + "reference": "perhaps file can be removed altogether (trying to avoid an empty package for these build tags)" + }, + { + "prediction": "I think this should be `NULL` instead of `NULL`.", + "reference": "NULL change, could you move that out too?" + }, + { + "prediction": "I think this should be `formatListList` instead of `formatList`", + "reference": "A brief explanation about this func is required." + }, + { + "prediction": "I think this should be `IS_OVERLAPPING_WARNING`", + "reference": "Could you add description for below static function?" + }, + { + "prediction": "Why is this change needed?", + "reference": "Since this is only counting the failed attempts, can you call it failedAttemptsCount or retryCount instead of attemptsCount?" + }, + { + "prediction": "I don't think we need to import OOOOOOOOOOOos here.", + "reference": "I don't think this will work." + }, + { + "prediction": "I think this interface should be `IHttpRequestLineHandler` and `IHttpRequestHeadersHandler`.", + "reference": "Since http2 is coming do we want to call this something more specific?" + }, + { + "prediction": "I think this should be `aria: { label: t('blacklight.search.header') } do %>`", + "reference": "I don't think we want to revert the accessibility issues the tool caught, do we?" + }, + { + "prediction": "I think we should use `!rt.config.DisableLocalhostConnectionRateLimit` instead of `!rt.config.DisableLocalhostConnectionRateLimit`", + "reference": "I prefer naming this rateLimitedRemoteHost This can be local host but reads remote Host Is Non Local." + }, + { + "prediction": "I think this should be `if (type._lastDomChild !== undefined && type._dom !== undefined)`", + "reference": "Hmm I think I might've messed up this condition here... Need to look more at it" + }, + { + "prediction": "I think this should be `isinstance(package_stats, dict)` instead of `isinstance(package_stats, dict)`", + "reference": "This also makes the exception to be raised on non-dict falsy values which I think was expected." + }, + { + "prediction": "Why is this changed?", + "reference": "Is this correct? The auto indexing behavior caused problems fixed in a recently merged PR..." + }, + { + "prediction": "I think this should be `twine>=1.6.5, <1.10`", + "reference": "Hmm, didn't we just find out that 1.6 *does NOT* work? We should bump the minimum as well." + }, + { + "prediction": "I think this should be `std::cerr << \"Assertion (\" << check_expr << \") failed\" << std::endl;`", + "reference": "Will calling `abort()` cause problems for our test suite?" + }, + { + "prediction": "I think this should be `if (!expr_object(options, astp)) return AST_FATAL;`", + "reference": "for my own edificaton, what's this?" + }, + { + "prediction": "Why is this needed?", + "reference": "make it harmless to commit ws == nil" + }, + { + "prediction": "I think this should be `abs_out_exe` instead of `abs_out_location`.", + "reference": "Hmmmm, I'm not sure I like these becoming a replacement any build rule has access to. It seems like if it were used in an actual build rule it would only be doing bad things. Can we just use `filepath.Abs` on the returned path in run_step.go?" + }, + { + "prediction": "I don't think we need the `reqMeta` and `resMeta` here, but I think it would be better to use `reqMeta.Headers()` instead of `resMeta.Headers()`.", + "reference": "That's actually not as bad as I thought it was going to be." + }, + { + "prediction": "I think this method should be called `findAllUnpublished` instead of `findAllUnpublished`", + "reference": "Hmm, I'm surprised if we don't already have a \"find all unpublished datasets\" method but I don't really know. Maybe @scolapasta knows." + }, + { + "prediction": "I think this should be `C1601` instead of `C1601`.", + "reference": "The checks in this file are disabled by default since they are meant for Python 3 porting, and this one does not have to do with Python 3 porting at all." + }, + { + "prediction": "I don't think we need this feature.", + "reference": "I would change \"should be sent\" to \"must be received\"." + }, + { + "prediction": "I think this should be `DeleteStoragePoolClaim` instead of `DeleteStoragePoolClaim`", + "reference": "Please put it in following way : `// DeleteStoragePool receives StoragePoolClaim delete event and calls the required handlers to delete other pool related resources.`" + }, + { + "prediction": "I think this should be \"cse.uploads.directory\" or \"cse.uploads.fileSizeThreshold\"", + "reference": "It's better to use servicecomb now." + }, + { + "prediction": "Why is this change needed?", + "reference": "Make the flag derived default available in the readiness controller" + }, + { + "prediction": "I think this should be `cdBuilder(scheme).GenericOptions(testgeneric.WithAnnotation(constants.SyncsetPauseAnnotation, \"true\")).Build()`", + "reference": "Confirmed this test fails when the fix is reverted " + }, + { + "prediction": "I think this should be `c.options.Filepath == \"\"`", + "reference": "This method is still possible insecure as it may archive not only logs files. I suggest to filter file names to ensure that they start with `.mysterium-log*`." + }, + { + "prediction": "I think this should be `super(BaseDenseHead, self).init_weights(init_cfg=init_cfg)`", + "reference": "DCN should not be able to use `init_cfg`." + }, + { + "prediction": "I think this should be `new ArgumentException($\"{nameof(spanContext)} must be valid.\");`", + "reference": "It is a bit weird to see a message like \"something must be valid\"." + }, + { + "prediction": "I think this should be `LOG.info(\"Logging configured.\");` and `LOG.finest(\"Logging configured.\");`", + "reference": "Again. This is part of the start up of the server, and the diagnostics are helpful." + }, + { + "prediction": "I don't think this is necessary.", + "reference": "I think you need a `,` at the end of the line?" + }, + { + "prediction": "I don't think this is needed anymore.", + "reference": "Please avoid wildcard imports." + }, + { + "prediction": "I think we should use `TimeSpan.FromMinutes(5)` instead of `TimeSpan.FromMinutes(5)`", + "reference": "Did we consider making the timeout an argument to the build task? Would amke it easer to configure in the future: change a build property vs. rebuilding the DLL." + }, + { + "prediction": "I think this should be `if nodeConfig.NodeIPv4Addr != nil && nodeConfig.NodeIPv6Addr != nil {`", + "reference": "dumb question: the commit message talks about dual-stack support but it seems that in a dual-stack cluster, Egress will only support the IPv4 address family?" + }, + { + "prediction": "Why is this change needed?", + "reference": "Do you want to cherry-pick these separately and get them merged already or keep it in here? Both is fine with me!" + }, + { + "prediction": "I think this test should be `1_000_000`", + "reference": "Hmm what are these magical constant numbers? And why does this change mean they should increase?" + }, + { + "prediction": "I think this should be `2.8.0-dev` instead of `2.8.0-dev`", + "reference": "This change shouldn't be included with this push. Shouldn't push version changes with a pull-request." + }, + { + "prediction": "I think this should be `RespondServiceHeaderKey, call.ServiceName()`, not `RespondServiceHeaderKey`.", + "reference": "nit: let's move this right under where we create the `responseWriter`, before `h.callHandler`" + }, + { + "prediction": "Why is this needed?", + "reference": "The way it was implemented, needed to pass the template values. Please check whether we want this." + }, + { + "prediction": "I think this should be \"period a node waits between mining successive blocks\" or \"period a node waits between mining successive blocks\".", + "reference": "Just FYI we need this to align with `builtin.EpochDurationSeconds` from specs-actors or the state machine computations will be off. We'll need to turn this into a config option and follow the same monkey patching paths as the min miner size, seal proof types etc. The EpochDurationSeconds is currently a `const` so can't do it yet tho." + }, + { + "prediction": "I don't think we need to import `__future__` here.", + "reference": "Is this import needed?" + }, + { + "prediction": "I think this should be `padding: 0` instead of `padding: 0`", + "reference": "Dashboard stories also need to have the default padding." + }, + { + "prediction": "I think this should be `use-starting-sequence-number` or `use-starting-sequence-number-default`.", + "reference": "Is there a reason why we wouldn't use this as the default?" + }, + { + "prediction": "I think we should use `LockUtils::edgeLock` instead of `LockUtils::tagLock`", + "reference": "if there is an tag of the same name?" + }, + { + "prediction": "Why is this removed?", + "reference": "I'd add `// +build go1.10` to prevent from accidentally compiling with older Go." + }, + { + "prediction": "I think this should be `safe_unicode`", + "reference": "Not sure how this import relates to the PR but seems like a good idea anyway..." + }, + { + "prediction": "I think this should be `#include \"../WebServer/HardwarePage.h\"`.", + "reference": "Hmm this is strange, why should the SettingsStruct import something from `WebServer` ? If that's really needed, then we must move stuff as it makes no sense to have some code related to viewing things included in a settings struct. It should be the other way around." + }, + { + "prediction": "I think this should be `Console.WriteLine(LogLevel.Debug);` instead of `Console.WriteLine(LogLevel.Debug);`", + "reference": "nit: Space between these lines." + }, + { + "prediction": "I think this should be `translator=None` instead of `None`", + "reference": "Why aggregator should have this translator? It's Selenium specifics for now..." + }, + { + "prediction": "I think this should be `public void setReverse(boolean reverse)` instead of `public void setReverse(boolean reverse) { setReverse(boolean reverse)`", + "reference": "I don't understand why this function is needed ? Can't you just pass the information when the `DocComparator` is created in the SortField ?" + }, + { + "prediction": "I think we should use `raise` instead of `raise` instead of `raise`", + "reference": "This rescue is repeated exactly in `app/jobs/mailchimp_removal_job.rb`. Could we extract a method and pull it up into `MailChimpJob` for reuse?" + }, + { + "prediction": "I think this should be `options.headers = {content-type: xhr.getResponseHeader('content-type')}`", + "reference": "It's not directly related to this PR, but it would be nice to flow the original error as we're going to print that if the promise is rejected and it'll be more informative than the vague `Network request failed`. Also, I'm not a js dev, so maybe I'm wrong, but throwing a TypeError feels a bit odd." + }, + { + "prediction": "(style) line over 80 characters", + "reference": "Can we print a debug message when this is used? Since it's a debugging variable, I wouldn't want users to have issues because of a left-over env." + }, + { + "prediction": "I think this should be `const siteStories = [...]`", + "reference": "Should we have an avatar, truncate, etc examples, too?" + }, + { + "prediction": "Why is this removed?", + "reference": "could you add this to `docs/source/reference/indexing.rst` ?" + }, + { + "prediction": "Why do we need this?", + "reference": "Why the change from rdkit.six to six?" + }, + { + "prediction": "I think this should be `if not requestOptions.get('localOnly')` instead of `if not requestOptions.get('localOnly')`", + "reference": "Looking good, let's just move this inside the `if` to avoid doing the extra work if we don't need it." + }, + { + "prediction": "I think it would be better to use `expect(err).to.not.match(/This batch has already been executed, create new batch to execute/);`", + "reference": "I think we should change this to an instanceOf check for MongoBatchReExecutionError" + }, + { + "prediction": "Why is this change needed?", + "reference": "Required by the libcalico-go changes" + }, + { + "prediction": "I think this should be `BlockID` instead of `BlockID`", + "reference": "Explain why we don't reuse the corresponding server error locally?" + }, + { + "prediction": "I think we should use `DateUtil.formatDate(this.releaseOrCreateDate)` instead of `DateUtil.formatDate(this.dateToDisplayOnCard)`", + "reference": "@JayanthyChengan This change is still missing (and should be last one!): change this line to call getDateToDisplayOnCard(), that way the logic is in only one place (that method)." + }, + { + "prediction": "Why remove this?", + "reference": "What was wrong with more concrete error?" + }, + { + "prediction": "I think this should be `if (!in_array(basename(get_permalink()), $classes)) {`", + "reference": "can you replace the tabs with 2 spaces please to match the rest of the project?" + }, + { + "prediction": "I think this should be `TimeSrc` or `TimeDst`", + "reference": "Why are we adding it to the integral function?" + }, + { + "prediction": "Why is this change needed?", + "reference": "Same for this file" + }, + { + "prediction": "I think this should be `FileCharacteristics` instead of `FileCharacteristics`", + "reference": "Looks good! But why it's still a out parameter? We can refactor the whole tree because it's internal?" + }, + { + "prediction": "(style) line over 80 characters", + "reference": "probably better to use `wlr_seat_keyboard_end_grab()`." + }, + { + "prediction": "I think it would be better to check if the transaction is protected or not.", + "reference": "Such a large test impact for such a little 3 line change ;)" + }, + { + "prediction": "Why not use `array` instead of `\\Shopsys\\FrameworkBundle\\Model\\Transport\\Transport[]`?", + "reference": "Is the `cascade` necessary? It should work also without the casdade, because Payments are always already persisted when use cases with them. If it doesn't work, please tell me the reason. It is as same in Transport." + }, + { + "prediction": "I think this should be `const` instead of `const`.", + "reference": "This is not very short. I'm not sure sure if there's a system for assigning shortcodes to issues." + }, + { + "prediction": "I don't think we need to change the annotation to `certmanager.k8s.io/edit-in-place`", + "reference": "We should probably prefix this with `acme-http01` to bring it in-line with other annotations, e.g. `certmanager.k8s.io/acme-http01-edit-in-place`. It's quite wordy, but it *is* more specific (and I'd hope more obvious to the user what it is for?)" + }, + { + "prediction": "Why is this change needed?", + "reference": "No need to add this file change for this PR. Please remove it." + }, + { + "prediction": "I think this should be `import java.lang.\"` instead of `import java.lang.\"`", + "reference": "this extra dot at the end is causing a couple tests to fail on Travis" + }, + { + "prediction": "I think this should be `print(\"%5d\\t%s\" % (i[0], str(kargs.get('iface') or conf.iface))`", + "reference": "Did you try using `global` with a regular integer ?" + }, + { + "prediction": "I think this should be `static_assert(sizeof(extractor::EdgeBasedEdge) == 24, \"changing extractor::EdgeBasedEdge type has influence on memory consumption!\");`", + "reference": "windows size might be off" + }, + { + "prediction": "Why remove this?", + "reference": "This should still be guarded with an `#ifdef` since the DataMan code will only be supported for shared lib builds." + }, + { + "prediction": "I think this should be `@hash[:attribution].length > 1 ? _('Creators: ') : _('Creator:')`", + "reference": "thanks for cleaning up these old length checks " + }, + { + "prediction": "I think we should use `e.config.Input.Namespace` instead of `e.config.Output.Namespace`", + "reference": "What will be logged when the `Input.Namespace` was not specified?" + }, + { + "prediction": "I think this should be `true` or `false`.", + "reference": "I wouldn't expose this until the feature is ready. We are most likely to cut releases while still in development" + }, + { + "prediction": "I think this should be `aria-query` instead of `aria-query`", + "reference": "I don't think we should pull aria-query into axe-core at this point. There's a much simpler fix for this. Please don't overthink it." + }, + { + "prediction": "Why is this removed?", + "reference": "@ejsmith What if instead of making these two methods public we made it a partial class and moved them to a separate file so that file could be part of the include list? I bring it up just because I don't think it is a very nice API that was ever intended to be public? I think they are only called by a couple of other very internal-y spots. /cc @reyang" + }, + { + "prediction": "Why is this change needed?", + "reference": "would be good to turn these into constants." + }, + { + "prediction": "I think this should be `//go:generate wire.DO NOT EDIT`.", + "reference": "Seems like it should be `generated by Wire` here and in the SUT?" + }, + { + "prediction": "Why is this change needed?", + "reference": "I know the main cases show up in the daemon test already but a little bit more unit test coverage would be nice and probably not too annoying to set up. Ideas: 1. Verify that the string \"no duplicates\" is in the LastDuplicate field when we propose a new deal. 2. Verify that proposing a duplicate deal fails when the duplicates boolean is set false. 3. Start out in a state with more than 1 duplicates. Verify that the LastDuplicate field is set to the last duplicate when we propose with a true duplicates bool." + }, + { + "prediction": "Shouldn't this be `Timeout.Infinite`?", + "reference": "`Timeout.Infinite` is actually `-1`. Here the correct message can be taken from Line:67." + }, + { + "prediction": "I think this is a good idea to remove the `Xunit.Extensions` namespace from `NLog.UnitTests.Common`.", + "reference": "I think we need `#if !SILVERLIGHT` here and at the test." + }, + { + "prediction": "I think this should be `org.eclipse.jgit.util.StringUtils`", + "reference": "Can you change this import to the apache dependency? I didn't even know that jgit contains such a method..." + }, + { + "prediction": "Why is this change needed?", + "reference": "Four strings in a row makes me nervous, can we use an arguments struct instead? Or reuse the struct I recommend in the reconciler." + }, + { + "prediction": "I don't think this is a good idea, but I think it would be better to use `-A` instead of `-n` here. I think it would be better to use `-n` instead of `-A`.", + "reference": "should work with no options, if my suggestion is accepted. JSON is the one that gets weird since a JSON object appended to a JSON object isn't valid JSON." + }, + { + "prediction": "I think this should be `uploadxs` instead of `uploads`.", + "reference": "I presume this isn't some special term..." + }, + { + "prediction": "I think we should check for `headingLength < paragraphLength / 2` and return `true` if `headingLength < paragraphLength / 2`", + "reference": "Did you mean to return here? ;) You'll also need to add an `incomplete` message to the rule metadata." + }, + { + "prediction": "This is a placeholder for sync controller IP address", + "reference": "Why are we calling these as annotations? I guess this is an old type that we are re-using. But lets make it a point to avoid once we feel that this design/code is not good." + }, + { + "prediction": "Shouldn't this be `invocation.onStartSendRequest()`?", + "reference": "`invocation.getInvocationStageTrace().startSend()` is inside `RestClientSender.send`" + }, + { + "prediction": "Why is this change needed?", + "reference": "use \"actionHash\" to be consistent with other places" + }, + { + "prediction": "I think this should be `java.util.CollectionUtil`", + "reference": "Can we derive `Class` by looking at one of the label choices, if at least one is always provided? Given these are immutable, a real-world case for an empty enumerations eludes me." + }, + { + "prediction": "I think this should be `VK_SAMPLER_YCBCR_MODEL_CONVERSION_YCBCR_709`", + "reference": "I am now confused here, the spec says > If format is VK_FORMAT_UNDEFINED, all members of samplerYcbcrConversionComponents must be the identity swizzle. The spec also says > samplerYcbcrConversionComponents is the component swizzle that **should** be used in VkSamplerYcbcrConversionCreateInfo. so you are allowed to set the swizzle to anything I want, so I guess this is valid usage here... but now I am more curious if I have an external format does it not have to follow any component swizzle rules and can be anything regardless of the `ycbcrModel`? (I guess really a question for @critsec and is not a blocking concern for the scope of this PR)" + }, + { + "prediction": "I think this should be `platform.SiteRunning` instead of `platform.SiteRunning`", + "reference": "I'd say the error should be an error, not instructions to the user. So error would be something like \"site should be running and is not\"" + }, + { + "prediction": "Why is this needed? I think it would be better to use `self.assertEqual(len(sns_backend.sms_messages), len(sns_backend.sms_messages))` instead of `self.assertEqual(len(sns_backend.sms_messages), len(sns_backend.sms_messages))`", + "reference": "Thanks for this PR @pinzon ! Rather than resetting the `sms_messages` list, can we fix the assertion in line 902 - rather than asserting `len` equality, we should assert that all expected messages are contained in the list. (In this case the phone numbers should be reasonably random, and ideally we should not have duplicates across different tests). We're planning to introduce test parallelization in the near future, and this will help us avoiding undesired side-effects. Thanks" + }, + { + "prediction": "Why is this needed?", + "reference": "Some weird blocks formation again." + }, + { + "prediction": "Why is this change removed?", + "reference": "This is worrisome." + }, + { + "prediction": "I think this should be `AutoFilesystemTrimUsage` instead of `AutoFilesystemTrimStatus`", + "reference": "nit try rephrasing to something like \" AutoFilesystemTrimUsage returns the volume usage and trimmable space of locally mounted pxd volumes\"" + }, + { + "prediction": "I think this should be `/opt/puppetlabs/agent/bin:/opt/puppetlabs/bin`", + "reference": "currently the puppet-agent package doesn't symlink files into /opt/puppetlabs/bin. Also many puppet acceptance tests that execute on Unix assume puppetbindir is a single directory (windows doesn't have this issue). So I think if we want to unblock testing, this should just be changed to `h['puppetbindir'] = '/opt/puppetlabs/puppet/bin`" + }, + { + "prediction": "Why is this needed?", + "reference": "any point in keeping this here ?" + }, + { + "prediction": "Why is this change needed?", + "reference": "I don't think we need this check. Instead `Entries.merge` should check that its argument is correctly sorted (in addition to the existing pre/post check on the method receiver)." + }, + { + "prediction": "I think this should be `#ifdef OSRM_EXTERNAL_MEMORY`", + "reference": "This is not really good to mix different code bases. @TheMarex I understand the point about placing code into cpp file, but we still need to move templated version into an impl header, remove references to offline code here and keep template instantiations in a cpp file to avoid rebuild. So offline code could instantiate own implementations using private impl headers. Otherwise we again make wrong dependencies into OSRM code and block changes in separate projects." + }, + { + "prediction": "I think this should be `if (listener->onParticipantDiscovery(this->mp_SPDP->getRTPSParticipant()->getUserRTPSParticipant()) && listener->onParticipantDiscovery(this->mp_SPDP->getRTPSParticipant()->getUserRTPSParticipant()) && listener->onParticipantDiscovery(this->mp_SPDP->getRTPSParticipant()->getUserRTPSParticipant()) && listener->onParticipantDiscovery(this->mp_SPDP->getRTPSParticipant()) { return; }`", + "reference": "Then, where is it removed?" + }, + { + "prediction": "I think this should be `caseSensitivePath = true`", + "reference": "The tests are not run concurrently? (I don't know. Better check.)" + }, + { + "prediction": "Why is this change needed?", + "reference": "Regardless of scale?" + }, + { + "prediction": "I don't think we need to add the `peerOverride` flag to the `algod` package.", + "reference": "Nit: should not we hide them from printing out?" + }, + { + "prediction": "Why is this change needed?", + "reference": "What is the reason to modify those things? I noticed it breaks the examples using `asyncio`" + }, + { + "prediction": "Why is this change needed?", + "reference": "WHOOOOOOOPS! so this is a wire protocol breaking change. I deployed a dev version of yarpc 1.9 to demo-yarpc-go and it caused bad request errors because it couldn't determine the procedure anymore. (in coordination with yarpc-prober)" + }, + { + "prediction": "I think this should be `set` instead of `Set`.", + "reference": "if we keep this, can we stick to our convention of using UPPER_CASE for constants? Otherwise this looks like a floating variable to me." + }, + { + "prediction": "Why is this change needed?", + "reference": "You probably don't want to assume that `self.underlayer` has a `seq` attribute." + }, + { + "prediction": "Why not just use `TranslatorFactory` here?", + "reference": "This apparently breaks the language selection." + }, + { + "prediction": "Line is too long. [89/80]", + "reference": "since we're not using mysql, do we need this migration?" + }, + { + "prediction": "I think this should be `is_env_true(\"PARTITION_ADJUSTMENT\")` instead of `is_env_true(\"PARTITION_ADJUSTMENT\")`", + "reference": "i'm not sure about htis naming here. both the word partition and adjustment are very ambiguous and it's not clear what it does. i would maybe go for something less generic and more concrete like `GOV_CLOUD_SUPPORT`" + }, + { + "prediction": "I think this should be `ConcurrentHashMap> fetchUnfinishedExecutions()`.", + "reference": "unfinishedFlows might not be the same as activeFlows. Will it cause confusion here?" + }, + { + "prediction": "I think this should be `runtimeconfigurator://myproject/myconfigid/myvar?decoder=string` or `runtimeconfigurator://myproject/myconfigid/myvar?decoder=string`", + "reference": "Same, remove the error handling." + }, + { + "prediction": "Why is this needed?", + "reference": "We should not change this at this time." + }, + { + "prediction": "I think this should be `(w, h)` instead of `(w, h)`", + "reference": "We may also update the docstring in the AnchorGenerator's arguments at around line 15." + }, + { + "prediction": "I think this should be `inserted.first->second->commandBuffer` instead of `inserted.first->second->commandBuffer`.", + "reference": "FormatHandle isn't current typesafe w.r.t. requiring *VULKAN* handles... so this slipped through." + }, + { + "prediction": "Why is this needed?", + "reference": "What kind of dependency is here, I think we have own implementation of event wo external dependencies" + }, + { + "prediction": "This should be `std::vector` instead of `std::stringstream`.", + "reference": "Throw an exception instead" + }, + { + "prediction": "I think this should be `created_at: DateTime.new(2018, 04, 01)` instead of `created_at: DateTime.new(2018, 04, 01)`", + "reference": "we shouldn't need the `FactoryBot.` in these. Ok to leave for now since all of these specs have them. Can clean up later" + }, + { + "prediction": "I think we should use `Url::asset` instead of `Storage::url`", + "reference": "Isn't the better option to actually do `$this->getDisk()->url($uploadsPath)` without changing the filesystems config? Not sure why you think that change is required but it's definitely not getting merged." + }, + { + "prediction": "I think this should be `itemmethod.frame().name not in SEQUENCE_TYPES`", + "reference": "Not sure if we need this. It's not tested because it only guards against a new conditional definition of a dunder method in a built-in package. I am fine with leaving it out." + }, + { + "prediction": "Is this needed?", + "reference": "Is this the only task in this library? If so this is good, if not then we should do it for each task." + }, + { + "prediction": "Why is this change needed?", + "reference": "I am not sure what is 120 and what is 10. Hence unable to review." + }, + { + "prediction": "Why is this needed?", + "reference": "Not needed anymore" + }, + { + "prediction": "I think this should be `pingpong` instead of `pingpong`", + "reference": "Please not abbreviations" + }, + { + "prediction": "I think this should be `aws.BoolValue(r.Config.EnforceShouldRetryCheck) || aws.BoolValue(r.Config.EnforceShouldRetryCheck)` and `aws.BoolValue(r.Config.EnforceShouldRetryCheck) == aws.Bool(false)`", + "reference": "This shouldn't get stomped over on line 207" + }, + { + "prediction": "I think this should be `Position`", + "reference": "are they not 1-indexed?" + }, + { + "prediction": "Why is this change needed?", + "reference": "I know that previously this check was here but @ralph-pichler replaced it with the `CheckTimestamp` field stating that checking against `Timestamp` was incorrect. @ralph-pichler can you elaborate?" + }, + { + "prediction": "I think this should be `version_info.get('rc')`", + "reference": "`short_version = __version__`" + }, + { + "prediction": "I think this should be `UpdateAccessKey.java demonstrates how to update the status of an access key for an AWS Identity and Access Management (AWS IAM) user`.", + "reference": "AWS Identity and Access Management (IAM)" + }, + { + "prediction": "I think this should be `java.io.Serializable`.", + "reference": "Required for the SparkDataFile SerDe" + }, + { + "prediction": "Why is this removed?", + "reference": "Do you want to make this an assertion instead?" + }, + { + "prediction": "I think this should be `2016` and `2016` as well.", + "reference": "When updating the copyright, we tend to cover previous years, not just the current. So, if we started the file in 2015, we'd update to say 2015-2016. I'm not sure if there's a legal requirement surrounding this, but it's the convention we and many others have adopted for code." + }, + { + "prediction": "I think this should be `if head != nil && head.mdID == md.mdID && head != (ImmutableRootMetadata{})`", + "reference": "Wait, so it looks like this function is called _every_ time we fetch the root node, i.e. we do an MD head fetch every time we fetch the root node? Not for this PR, but it seems like we should make that unnecessary, since this function only ever does anything when head is `nil`, i.e. the first time. Maybe add a TODO?" + }, + { + "prediction": "Why do we need to pass `fld` here?", + "reference": "Why are you changing this?" + }, + { + "prediction": "Why is this change needed?", + "reference": "`json.RawMessage` is a `[]byte`, which is already a pointer. Why do we need to have pointer here if we just reading this value?" + }, + { + "prediction": "I think this should be `all` instead of `all`", + "reference": "should we actually switch to `All` or just add `0.4.0` explicitly to the list of supported CNI versions? What is a new CNI version is released?" + }, + { + "prediction": "I don't think we need to import resource_util here.", + "reference": "pylint might complain that this isn't alphasorted?" + }, + { + "prediction": "I think this should be `--enable-features=NetworkService` instead of `--enable-features=NetworkService`", + "reference": "It seems that NetworkService is behind a feature flag because it's still experimental. If we see new issues, we should look at flipping this back off." + }, + { + "prediction": "I think this should be `TaskRunning` or `TaskDead`.", + "reference": "I think it makes more sense to have this be a method on TaskStatus. Also, nit, Backend, not BackEnd." + }, + { + "prediction": "I think this should be `HIPInternal::impl_get_instance_id() const noexcept`", + "reference": "Could you please elaborate on why you need all this magic here? In which cases do you want the same id to be returned? Does this work the same way for all backends?" + }, + { + "prediction": "I think this should be `PluginConfig` instead of `Common.HclPluginConfig`.", + "reference": "nit: `PluginConfigs` feels a little better" + }, + { + "prediction": "Why is this change needed?", + "reference": "think we need to find out the root-cause and fix, instead of just removing `NoError`? it erred b/c `context canceled`, so call this before context cancelled is the right fix" + }, + { + "prediction": "Why is this needed?", + "reference": "Please expand \"later behavior\". Presumably something to do with the prefetch logic?" + }, + { + "prediction": "Why is this change needed?", + "reference": "The `response` variable is not used, it can be removed, also the fmt.Errorf." + }, + { + "prediction": "Why do we need to check if `value != null && value.Length > 0`?", + "reference": "Do you find this really easier to read?" + }, + { + "prediction": "I think this should be `NAB` instead of `NAB`", + "reference": "A small nit: This variable should start with a lower case letter." + }, + { + "prediction": "I think this should be `descriptor.requestTokenFieldName(context.getNamer().getRequestTokenFieldName(pageStreaming));`", + "reference": "Where is this used for Node?" + }, + { + "prediction": "I don't think we need to change this to `provider-id`?", + "reference": "Is `` really easier to understand than `` for CLI user? For me, `identity` seems like a concept we use publicly, and `id` is just an internal shortcut for it." + }, + { + "prediction": "I think this should be `if newGroup.ServiceReference != nil && newGroup.ServiceReference.Namespace != nil {`", + "reference": "nit.. `if` .. `else` for logging probably can be avoided.. maybe only log that an internal group was created for cluster group" + }, + { + "prediction": "I think we should move this to `agent/api` and `agent/config` to `agent/config.go`", + "reference": "There's a lot of changed tests -- but no new tests. You need unit and integration tests for this." + }, + { + "prediction": "I think this should be `return (true, null);` instead of `return (true, null);`", + "reference": "WithMessage what gas limit is?" + }, + { + "prediction": "I think this should be `it.skip('cursor stream errors', { skip: true })`", + "reference": "Why are these skipped?" + }, + { + "prediction": "I think this should be `MetaServerConfig` instead of `MetaServerConfig`", + "reference": "We'd better add the `json:\"metaServer,omitempty\"` here" + }, + { + "prediction": "I think this should be `pip install --no-deps` instead of `pip install --no-deps`.", + "reference": "So... when we want to install mitmproxy with pinned dependencies, we first install all pinned dependencies, and then in a second step install mitmproxy as editable, making sure that no additional dependencies are sneaking in. " + }, + { + "prediction": "I think this should be `err != nil`", + "reference": "not sure how this got in master, but the linter is unhappy about it so I fixed it here" + }, + { + "prediction": "I don't think we need to increase this to 5 min.", + "reference": "No need for this TODO anymore, right?" + }, + { + "prediction": "I think we should use `\\` instead of `\\` here.", + "reference": "I would assign the key you're looking for into a variable first, and then use it in the comparisons." + }, + { + "prediction": "I think this should be `unset($this->plugins[$id]);`", + "reference": "Would be better to normalize it at the start of the method to pass through to all the other calls" + }, + { + "prediction": "Why do we need to check if the model is safe mode?", + "reference": "This can't exist here either because the code editor can be used on other models than CMS templates. You could probably implement this as a `hint` property (so `hint: cms::lang.cms_object.safe_mode_enabled`) on the codeeditor formwidget instead though and I'd be fine with that." + }, + { + "prediction": "I think this should be `try` instead of `except Exception`", + "reference": "This line is unnecessary." + }, + { + "prediction": "Why is this removed?", + "reference": "How did this compile in the first place? Is there a matching declaration in a header that should be removed too?" + }, + { + "prediction": "This should be `h2o_mruby_assert(mrb);`", + "reference": "Please remove the colon at the end, and merge the PR once the CI succeeds. Thank you for the PR." + }, + { + "prediction": "Why is this removed?", + "reference": "whoops. this should be protoc-gen-doc, since that is the only bit left that is built out-of-tree (everything else is either downloaded or built via modules already depended on by spire's go.mod)" + }, + { + "prediction": "I think this interface should be `AzkabanEventReporter` and not `AzkabanEventReporter`", + "reference": "The convention is to use

    see the google style guide and use checkstyle to check. You can change it later." + }, + { + "prediction": "I think this should be `self.list_marker` instead of `self.item_marker`", + "reference": "Using non-keyword args after the keyword arg (parent-self) will cause a SyntaxError." + }, + { + "prediction": "I think this should be `user_hash = {}` instead of `user_hash.merge(user_hash.merge(user_hash.merge(user_hash.merge(user_hash.merge(user_hash.merge(user_hash.merge(user_hash.merge(user_hash.merge(user_hash.merge(user_hash.merge(user_hash.merge(user_hash.merge(user_hash.merge(user_hash))))`", + "reference": "I think you'll want to add some YARD docs to this method to get the PR approved " + }, + { + "prediction": "I think this should be `nullable` instead of `nullable`.", + "reference": "Hmm, AFAICT `*out_variant` isn't explicitly set to `NULL` in the `ENOENT` case." + }, + { + "prediction": "I think this should be `b.logger.Fatal(\"Failed to create SDK client\", zap.Error(err))` instead of `b.logger.Fatal(\"Failed to create SDK client\", zap.Error(err))`", + "reference": "Nit: \"Failed to configure TLS for SDK client\"?" + }, + { + "prediction": "Why do you change this?", + "reference": "please update your branch to the latest `master`. This change was already made in #4359" + }, + { + "prediction": "I think this should be `time.Now()`", + "reference": "This line should be formatted" + }, + { + "prediction": "Shouldn't this be \"increase block processor transaction batch write size\" or \"increase block processor transaction batch write size\"?", + "reference": "\"default 65536\" Not sure if it's important to state, but block_processor_full_size has a different default for fast_bootstrap." + }, + { + "prediction": "Why is this needed?", + "reference": "remove unnecessary whitespace changes" + }, + { + "prediction": "Why remove this?", + "reference": "Are these conditions covered elsewhere ?" + }, + { + "prediction": "I think this should be `!util::guidance::requiresNameAnnounced(name_table.GetNameForID(out_data.name_id), street_name_suffix_table);`", + "reference": "the above check (by transitivity) checked for `in_data.name_id == out_data.name_id && in_data.name_id != EMPTY_NAME_ID && out_data.name_id != EMPTY_NAME_ID`. The final check of `out_data.name_id != EMPTY_NAME_ID` is missing now." + }, + { + "prediction": "I think this should be `return FPGA_INVALID_PARAM;`", + "reference": "The event handle is being passed by reference, so the dereference on 591 is actually correct. To follow the convention that variables be declared before executable statements, please change the code to the following: struct _fpga_event_handle *_eh; fpga_result result = FPGA_OK; int err = 0; if (!event_handle) { return FPGA_INVALID_PARAM; } _eh = (struct _fpga_event_handle *) *event_handle;" + }, + { + "prediction": "I think this should be `../plugins/map_matching.hpp` instead of `../plugins/map_matching.hpp`.", + "reference": "reorder includes to be alphabetically ordered" + }, + { + "prediction": "I think this should be `need_unmap=True`", + "reference": "Rename `need_unmap` to `unmap`." + }, + { + "prediction": "Why is this removed?", + "reference": "In line 28, it has been declared twice, so removing `cm` should not impact, can you explain me little bit? :)" + }, + { + "prediction": "Why is this lock needed?", + "reference": "i don't think these unexported functions belong on the public interface, they can exist solely on the struct." + }, + { + "prediction": "I think this should be `h.Dispenser = d.(*caddyfile.Dispenser)`. I think it would be better to use `h.Dispenser = d.(*caddyfile.Dispenser)` instead of `h.Dispenser = d.(*caddyfile.Dispenser)`.", + "reference": "I'm not entirely clear on why this is necessary?" + }, + { + "prediction": "I think this should be `cast(str, str)`", + "reference": "Why do we need to cast to `str` here?" + }, + { + "prediction": "Why is this removed?", + "reference": "The ignore import above should be unused now and can be removed." + }, + { + "prediction": "I think this should be `query.visit(Occur.FILTER, this);`", + "reference": "redundant null check?" + }, + { + "prediction": "I think this should be `available: m.Total` instead of `Total`", + "reference": "initialization of available ram is here" + }, + { + "prediction": "I think this should be `this.sourceBlock_.type === 'math_number' && this.sourceBlock_.editable_ && this.sourceBlock_.type === 'math_number'`", + "reference": "Can have negative numbers with the '-' on the right (`10-`) by just using line 610." + }, + { + "prediction": "I don't think we need to change the source description to `DeleteUser.java`", + "reference": "AWS Identity and Access Management (IAM)" + }, + { + "prediction": "Why is this change needed?", + "reference": "Shouldn't we use store a message which indicates that there was no available checker command? By the way how is it possible that metadata.json doesn't contain the checker command? Maybe this was the case in the earlier versions?" + }, + { + "prediction": "I think this should be `@exclusion_patterns.nil?` instead of `@exclusion_patterns.nil?`", + "reference": "Given that this is a boolean predicate, maybe it should be `full_backtrace?`." + }, + { + "prediction": "Why is this needed?", + "reference": "Just curious why the blank line here?" + }, + { + "prediction": "I don't think we need to import `netlib` here.", + "reference": "I like the idea, but we don't want a dependency on mitmproxy in pathod." + }, + { + "prediction": "I think this should be `public string DatadogTags { get; set;}`", + "reference": "Why not adding this to the interface and keep passing the interface (as the interface is internal I don't get why you're not adding it there)" + }, + { + "prediction": "I think this should be `from astroid.const import PY310_PLUS`", + "reference": "`PY310` should probably be imported from `pylint.const`" + }, + { + "prediction": "I think this should be `return strconv.ParseBool(w.wf.GetSerialConsoleOutputValue(key))`", + "reference": "Can we propagate this error up the stack?" + }, + { + "prediction": "why not use `dal::detail::homogen_table_builder` here?", + "reference": "Why reference is converted to table?" + }, + { + "prediction": "(style) line over 80 characters", + "reference": "You shouldn't use assert for runtime errors." + }, + { + "prediction": "I don't think this is needed anymore.", + "reference": "Does this really belong in the vendor directory if you wrote it? At very least, should it get its own repo somewhere in addition to being dropped here?" + }, + { + "prediction": "I think this test should be `SampleXPathRule` instead of `SampleXPathRule`.", + "reference": "I think it would be better to place the rule name before the message. Messages are of varying lengths and the rule names will end up misaligned" + }, + { + "prediction": "I think this should be `R0124` instead of `R0124`", + "reference": "Can we remove the argument from this message? A message will include a line number already that points to the place in the code that has the problem. I think we can remove it." + }, + { + "prediction": "I think this should be `virtual`.", + "reference": "This whole class is now a mix of virtual and non-virtual. I tried to see what would happen if I made everything non-virtual in dev, and the build still passes. It turns out that none of the other methods actually need to be virtual. Can you make *all* the logging methods either virtual or not for consistency? Thanks." + }, + { + "prediction": "I think we need to add the `mmn-address` flag to the `metadata.DefaultNetwork`", + "reference": "This looks a bit cryptic to me, and also it contains a dash. How about `mymysterium.url`?" + }, + { + "prediction": "I think this should be `&var == 0` instead of `&var == 0`.", + "reference": "You did notice the no newline at the end of this file, right?" + }, + { + "prediction": "I think this should be `IList` instead of `ISet`", + "reference": "Here's the object model change. `CodeFlows` is a set of objects of type `CodeFlow`, rather than a list of list of `AnnotatedCodeLocation`. Exactly parallel with `Stacks`." + }, + { + "prediction": "I think this should be `from .config import BAN_PUBLIC_USERS`", + "reference": "Sorry, one more thing... You should use `app.config` instead of importing it directly. See the code below." + }, + { + "prediction": "This should be `void reuseContainers(boolean reuse)` instead of `void reuseContainers(boolean reuse)`", + "reference": "This was correct before; \"setup\" is a noun and \"set up\" is the verb form." + }, + { + "prediction": "Why is this change needed?", + "reference": "What's the reason for this change here? I didn't see it mentioned in the PR and it's a bit of a confusing param name " + }, + { + "prediction": "I think we should use `this.storage.config.localList.get().map(function(package) { return this.storage.config.localList.get(package) })` instead of `this.storage.config.localList.get().map(function(package) { return this.storage.config.localList.get(package) }).map(function(package) { return this.storage.config.localList.get(package) || this.storage.config.localList.get(package)`", + "reference": "I wonder why ~ and not a wildcard instead?" + }, + { + "prediction": "I think this should be `BeanUtils.getImplClassFromBean(bean);`", + "reference": "when will this happened? if happened, just ignore it Silently?" + }, + { + "prediction": "I think this is a bit confusing, but I think it would be better to have a test for this.", + "reference": "3x the smaller size would be around 17k, and we need it to be at least about 13k, which is 2x the larger size. I'd probably set this to 15k to split the difference and hopefully avoid needing to update this again as tests change. This is minor, though." + }, + { + "prediction": "I think this should be `type(input)` instead of `str(input)`", + "reference": "@scottpurdy, strictly speaking, should this scenario raise a ValueError exception instead of AssertionError?" + }, + { + "prediction": "I think this is a bit confusing, but I think it would be better to have a `ExecutorType` field in the `AZKABAN_EXECUTOR_TYPES` class.", + "reference": "Can you please add open source disclaimer?" + }, + { + "prediction": "Why is this change needed?", + "reference": "I dont want to do composite keys on purpose to verify at compile time if the message is completely filled out appropriately @sectioneight" + }, + { + "prediction": "I think this should be set to 10.", + "reference": "don't need this line, since it is not tested in api_test?" + }, + { + "prediction": "Why is this change needed?", + "reference": "Does this mean the list operation is done for all the namespaces? How to list the volume replicas per namespace?" + }, + { + "prediction": "Why do we need this? I think it's better to use `nms_cfg_.pop('class_agnostic', False)` instead of `nms_cfg_.pop('class_agnostic', False)`", + "reference": "I suggest adding `class_agnostic` as an argument of `batched_nms()`, with the default value False." + }, + { + "prediction": "I think this should be `DELETE_FILE_ROW_FIELD_NAME`.", + "reference": "@rdblue, did we not add the name on purpose?" + }, + { + "prediction": "I don't think we need to change the enum type to `IntegerType`, `LongType`, `LongType`, `IntegerType`, `LongType`, `LongType`, `IntegerType`, `LongType`, `LongType`, `IntegerType`, `LongType`, `LongType`, `LongType`, `IntegerType`, `LongType`, `LongType`, `LongType`, `LongType`, `LongType`, `LongType`, `IntegerType`, `LongType`, `LongType`, `LongType`, `LongType`, `LongType`, `IntegerType`, `LongType`, `LongType`, `LongType`, `IntegerType`, `LongType`, `LongType`, `LongType`, `IntegerType`, `LongType`, `LongType`, `LongType`, `LongType`, `LongType`, `IntegerType`, `LongType`, `LongType`, `LongType`, `LongType`, `LongType`, `LongType`, `LongType`, `LongType` `` `` `` `` `` `` `` `` `` `` `` `` `` `` `` `` `` ``` `` `` `` `` ``", + "reference": "Why is this now public?" + }, + { + "prediction": "I think we should keep the `@previous_document` and `@next_document` in a hash, so we don't need to keep the `@previous_document` and `@next_document` in a hash.", + "reference": "I guess we should backport some deprecation for this?" + }, + { + "prediction": "I think this should be `@profile_paths[name] = p if p` instead of `@profile_paths[name] = p if p`", + "reference": "Moving this code inside the last case statement doesn't seem right. Why are we defining `name` and `is_relative` variables there if we aren't using them anywhere?" + }, + { + "prediction": "(style) line over 80 characters", + "reference": "I would say just change REGARG: no need for a separate thing." + }, + { + "prediction": "I don't think we need to add the `class=\"inset\"` tag here.", + "reference": "we can remove this template, it is no longer in use" + }, + { + "prediction": "Align the elements of a hash literal if they span more than one line.
    Space inside } missing.", + "reference": "This doesn't look like it has as much coverage of the recursive code as it once did." + }, + { + "prediction": "I think this should be `securityGroups[]SecurityGroup`", + "reference": "Do we actually expect users to provide more information here than possibly a SecurityGroup ID? If not, then this should probably use a new type, otherwise users might be confused by what options would be respected/ignored when used in this context." + }, + { + "prediction": "I don't think we need this import.", + "reference": "This seems like a new dependency on rometools. Do we need it?" + }, + { + "prediction": "I think this should be `LOG.info(String.format(\"Pull of %s:%s complete\", name, tag));`", + "reference": "Waiting for the pull takes a long time. This message informs the user that at least one of the images being pulled is available. Please leave." + }, + { + "prediction": "Why is this needed?", + "reference": "I can not think in a good use for it, but may we allow a way to setup a fake with a hook for logs? this fake is special, and we may need access to some of thoe logs, at the same time it may be an overkill because we dont want to test \"sql\" implementation but results.. but we can create some tests with end to end logs in some scenaries, What do you think about it?" + }, + { + "prediction": "(style) line over 80 characters", + "reference": "I don't think you should be changing the dag unilaterally at parse time. If cores isn't specified, then it isn't specified." + }, + { + "prediction": "I think this should be `ConsumerOptions.AckFuncForReceiveAndDelete`.", + "reference": "Instead of just \"See SubscriberOptions....\", say something like \"Use ... to choose between the two.\"" + }, + { + "prediction": "I think this should be `Chem.SDMolSupplier(\"cdk2.smi\", \"cdk2.smi\")` instead of `Chem.SDMolSupplier(\"cdk2.smi\", \"cdk2.smi\")`", + "reference": "Use with statement for `f`" + }, + { + "prediction": "I think this test should be `TEST_ERRORS_2(src, \"type parameter constraint Any tag is not a supertype of Any tag\");`", + "reference": "It's a small style point, but could you remove the \"extra\" space before the colon that precedes the return type? This would make it more closely match the prevailing style in these tests and in the standard libraries." + }, + { + "prediction": "I think this is a good idea to add a `ResolveBranch` method to the `MDOpsStandard` interface. I think it would be better to add a `ResolveBranch` method to the `MDOpsStandard` interface. I think it would be better to add a `ResolveBranch` method to the `MDOpsStandard` interface to the `MDOpsStandard` interface.", + "reference": "seems clunky to me to have an `MDOps` interface method that some implementations don't implement. Perhaps define a separate interface, like, `BranchResolver`, and then callers that have an `MDOps` object can check via type assertion?" + }, + { + "prediction": "Why not use `WebElement` instead of `WebElement`?", + "reference": "This change should also probably go into the corresponding method of the abstract By class?" + }, + { + "prediction": "I think this should be `pkg/util/byteutil`", + "reference": "File is not `gofmt`-ed with `-s` (from `gofmt`)" + }, + { + "prediction": "Why is this change needed?", + "reference": "This is likely to return an error value if the client fails to read the response we write, which is why I chose to ignore this error." + }, + { + "prediction": "I think we should use `self.storage.get('upfront_shutdown_script_enabled')` instead of `self.storage.get('upfront_shutdown_script_enabled')`", + "reference": "this method is not used" + }, + { + "prediction": "I think this should be `self.title_changed.emit(self.url().toDisplayString())` or `self.title_changed.emit(self.url().toDisplayString())`", + "reference": "Right now it's a bit unclear that this needs to be called explicitly by the implementing class. If, for example, there's another backend, it won't get this update unless we add the same function as webkit. Could you either add a note to this docstring explaining that this needs to be called, or find some way to automatically trigger this so the webkit override isn't needed (and some override passed on webengine)." + }, + { + "prediction": "Why is this change needed?", + "reference": "Why this change (test name still says \"must pass with metadata\")?" + }, + { + "prediction": "I think this should be `force_187_p371` instead of `force_187_p371`", + "reference": "Another nitpick: parens around the arg pretty please" + }, + { + "prediction": "I think we should remove the `goog:chromeOptions` option from the test.", + "reference": "This spec can be modified, giving you extra strength (Check this fetch key doesn't work and therefore returns `nil`)" + }, + { + "prediction": "I think this should be `caddy_rewrite_original_uri_ctx_key`", + "reference": "Oh, I guess I mentioned/pressed this point in the other issue, that this should probably go into the httpserver package. In fact, so should the const above this (URLPathCtxKey). These are specific to the HTTP server." + }, + { + "prediction": "Why is this change needed? I think it would be better to have a `CertificateOutputFormatDERKey` and `CertificateOutputFormatPEMKey` as well.", + "reference": "Not added by you, but we don't really need the '5' here.." + }, + { + "prediction": "Why remove this?", + "reference": "The vendor prefix is still being used on Chromium based browsers like Edge Chromium and Chrome. Did you mean to remove this?" + }, + { + "prediction": "I think this should be `emuGesture` instead of `emuGesture`", + "reference": "I don't think this is needed anymore?" + }, + { + "prediction": "I think this should be a helper function?", + "reference": "This is the only occurrence I see in the code where we now need to convert from a boolean protobuf wrapper to a boolean pointer. This felt a little cumbersome here; should we consider moving it somewhere else as a helper function?" + }, + { + "prediction": "Why is this removed?", + "reference": "Need you to delete the `version_` from `HostInfo` struct ?" + }, + { + "prediction": "I think we should use `node.getAttribute('xml:lang')` instead of `node.getAttribute('xml:lang')`", + "reference": "This could be the cleanest looking check we've got. Great job Jey." + }, + { + "prediction": "Why is this change needed?", + "reference": "Who invited yoda? In all seriousness though, wouldn't an `if (empty())` be better here?" + }, + { + "prediction": "I think this should be `window.location.href = 'index.html';`", + "reference": "You can use `appRouter.goHome` to do this (It's defined in site.js), it's less hacky than overriding the href." + }, + { + "prediction": "I think it would be better to use `LOG(INFO) << \"Part \" << partId << \" has been loaded, skip current one, remove it!\";", + "reference": "When could this happen?" + }, + { + "prediction": "Why is this change needed?", + "reference": "I assume this was removed because it was redundant? and conflicted with the now dynamic contentType? Edit: Oh I see it being set was moved to the `PostSegmentAsync` call." + }, + { + "prediction": "I think we should use `ProxyConfig.SOCKS` instead of `ProxyConfig.SOCKS`.", + "reference": "Here is a newline missing" + }, + { + "prediction": "I don't think we need to change the URL to `https://mac.r-project.org/high-sierra/R-4.0-branch`", + "reference": "Did you mean to make this http rather than https?" + }, + { + "prediction": "I think this should be `winUser.getWindowText(obj.windowHandle).replace('&','', obj.name)`", + "reference": "The updated copyright header should be: # Copyright (C) 2006-2018 NV Access Limited, yourname" + }, + { + "prediction": "Shouldn't this be `null`?", + "reference": "wow :+1: , i do not even know how this test works." + }, + { + "prediction": "Why is this needed?", + "reference": "File should be renamed `PlugIn` -> `Plugin`" + }, + { + "prediction": "I think this should be `net.net`", + "reference": "I scanned the new test cases quickly. Do we have one for an egressIPPool with multiple different IP ranges?" + }, + { + "prediction": "Shouldn't this be `true` or `false`?", + "reference": "you can use a different name, like `maybe_activate` or `is_active` without `component` in the method name as this is used in the class name. E.g: `$component->should_component_be_active` is using twice the `component` word" + }, + { + "prediction": "I think this should be `if (ret && ret.options && ret.callback) { return ret; }`", + "reference": "I think this might not be a complete enough check: what if `options` is `null`/`undefined`?" + }, + { + "prediction": "I don't think we need the `admin` feature here, but I think it would be better to use `admin_users_path` instead of `admin_users_path`", + "reference": "Useless assignment to variable - `user`." + }, + { + "prediction": "I think we can remove the `archive_name(release)` from the `archive_name` method and use the `archive_name(release)` method.", + "reference": "I think we would want to keep `-O` instead. I wonder how this worked before, though. " + }, + { + "prediction": "I think this should be `StringArrayEqualityComparer` instead of `StringArrayEqualityComparer`.", + "reference": "another alternate option which doesn't have the risk of too many entries (when user keeps providing keys in different order) Have the dictionary as before If tagKeys lookup fail, sort and lookup again. If fails, insert both original tagKeys and its sorted one to the dictionary. So that we only store atmost 2 entries per key set. And we only do a single lookup in hotpath, as opposed to 2 look ups." + }, + { + "prediction": "I think this should be `qctx_->symTable().updateWrittenBy(out->name, out->name, this);`", + "reference": "if (out != nullptr)" + }, + { + "prediction": "I think we should use `request.args.get(\"exact\")` instead of `request.args.get(\"round_off_to_nearest_10\")`", + "reference": "In the listenstore you catch the exception and then pass it on via Raise. However, here you do not catch the exception. You should catch the exception, but since this is a minor aspect of this page, perhaps show an error message when the count cannot be loaded in time. Then the rest of the page can still be rendered, rather than failing the whole page." + }, + { + "prediction": "`transfer` is a bit confusing, but I think it would be better to add a `transfer` parameter to the `close_tab` function.", + "reference": "wouldn't it be simpler to just add `or transfer` here? That way the more complicated set of conditionals down below don't have to get more clauses." + }, + { + "prediction": "I don't think we need to import httplib2 here.", + "reference": "ditto; please fix everywhere" + }, + { + "prediction": "I think this should be `sftp` instead of `sftp`", + "reference": "Can you break this line into two parts - the first line makes the option help text for `--sftp-server` and its too long! `Specifies the path or command to run a sftp server on the remote host. The subsystem option is ignored when sftp_server is defined.`" + }, + { + "prediction": "Why did you remove this?", + "reference": "I reverted that one in a previous PR because of a CI failure but it was actually unrelated" + }, + { + "prediction": "I think we should use `version` instead of `version` here.", + "reference": "The for loop is useless here, since any error will make the function return." + }, + { + "prediction": "I think this should be `# if __name__ == \"__main__\":`", + "reference": "Fix file endings here and elsewhere." + }, + { + "prediction": "Why is this change needed?", + "reference": "I'd better increase `buf` length to MAXPATHLEN and not cut p->get_project_name() output twice" + }, + { + "prediction": "I think this should be `fmt.Errorf(\"here it is: %s\\n\", err)`", + "reference": "Please remove the prints, even though this code will be trashed." + }, + { + "prediction": "Why is this needed?", + "reference": "Not sure if you added deliberately but I've seen these popping up; is goimports adding them?" + }, + { + "prediction": "I think this should be `SecurityGroupOverrides` instead of `TagSecurityGroups`.", + "reference": "I think we might need some special handling for `Spec.ControlPlaneLoadBalancer.SecurityGroups`, it looks like we are currently only handling the case that `Spec.ControlPlaneLoadBalancer` is nil." + }, + { + "prediction": "I think we should use `norm_cfg` instead of `norm_eval`", + "reference": "Is this from a third-party library?" + }, + { + "prediction": "I think this should be `!dom.isNativelyFocusable(el)`", + "reference": "Please put the `el.tabIndex > -1` in the first part of the expression. The matcher will run on every node on the page, so we should put the fastest part first." + }, + { + "prediction": "I think we should move this to `node/services/openvpn` and `node/services/openvpn3` to `node/services/openvpn`", + "reference": "`identity` is unused now, is it for future usage?" + }, + { + "prediction": "I don't think we need this function anymore, but I think it should be `out::message('Password is: ${password.unwrap}` instead of `out::message('Password is: ${password.unwrap}`). I think it would be better to use `out::message('Password is: ${password.unwrap}` instead of `out::message('Password is: ${password.unwrap}`).", + "reference": "This would have assisted me a lot! I am on the \"functions\" page more than any other page in the docs" + }, + { + "prediction": "I think this should be `b'c' + module_name.encode('ascii')`", + "reference": "I think it's better we keep `(` and encode with default encoding (utf-8)." + }, + { + "prediction": "I don't think we need to trim trailing whitespace here.", + "reference": "this is gonna be different in an IDE vs from gradlew??" + }, + { + "prediction": "I don't think we need this context anymore.", + "reference": "Do we not already have something for isolating syntax?" + }, + { + "prediction": "I think this file should be updated to be `2012` and `2014`", + "reference": "1: D100 Docstring missing 4: I102 copyright year is outdated, expected 2014 but got 2012 158: D103 Docstring missing 168: D101 Docstring missing 170: D102 Docstring missing 180: D102 Docstring missing 187: D102 Docstring missing" + }, + { + "prediction": "I think this should be `s3.ruby.s3_add_bucket_sses3_encryption_policy`", + "reference": "how **to** deny" + }, + { + "prediction": "I think this should be `Http1AndHttp2ExperimentSwitch` instead of `Http1AndHttp2ExperimentSwitch`.", + "reference": "The only beef I have with this is that it's app domain global." + }, + { + "prediction": "I think this is a good idea to have a `SetKeepAlivePeriod(3 * time.Minute)` method. I think it would be better to have a `SetKeepAlivePeriod(3 * time.Minute)` method that sets the keepalive period to 3 minutes. I think it would be better to have a `SetKeepAlivePeriod(3 * time.Minute)` method that sets the keepalive period to 3 minutes.", + "reference": "Can you link to the GitHub issue and/or PR so that it is easy for future readers to find out more about this?" + }, + { + "prediction": "I think this should be `if (chained_prio_struct && (chained_prio_struct->priority < 0.0f || chained_prio_struct->priority > 1.0f)) {`", + "reference": "Typical to report the value found as well as the valid bounds." + }, + { + "prediction": "why is this change needed?", + "reference": "maybe we want 0 as a default value?" + }, + { + "prediction": "I think we should return a `status.Error` instead of a `status.Error`", + "reference": "can we get height from sf at very beginning of the function and use that as height of the block?" + }, + { + "prediction": "I think this should be `StandardsPoliceCompileModule` instead of `StandardsPoliceCompileModule`", + "reference": "Does this have to be public and in the primary namespace?" + }, + { + "prediction": "I think this should be `fbo.headLock.Lock(lState)` instead of `fbo.headLock.Unlock(lState)`", + "reference": "I'm a bit confused. Doesn't `mdWriterLock` already synchronizes calls to this function?" + }, + { + "prediction": "Why not just return `null` here?", + "reference": "Does it make sense to generate a dailyMotion url without the video reference? It does not to me, but can we throw an exception here?" + }, + { + "prediction": "Why is this changed?", + "reference": "Why the separation of imports here?" + }, + { + "prediction": "Why is this change needed?", + "reference": "Random extra newline." + }, + { + "prediction": "I think this method should be called `getFocusableElements` instead of `getFocusableElements`.", + "reference": "No need for this variable." + }, + { + "prediction": "I think this should be `html.escape(msg)` instead of `html.escape`", + "reference": "Why not use `msg` directly below?" + }, + { + "prediction": "I think this should be `@SuppressWarnings({\"checkstyle:IllegalType\", \"checkstyle:VisibilityModifier\"})`.", + "reference": "I think other places changed to use `Deque` instead of suppressing the warning." + }, + { + "prediction": "Why is this needed?", + "reference": "missing: utility, cstddef also: vector is already included in the header (interface requires vectors as in/out types)" + }, + { + "prediction": "I think this should be `fetch_mock` instead of `fetch_mock`.", + "reference": "I'm not sure this is necessary in the config here, as Jest would be setting the global `fetchMock = ''`. See below." + }, + { + "prediction": "I think this should be `mFolder != null ? mFolder.getName().hashCode() : 0`", + "reference": "Can `mFolder == null` happen during regular operations? Or is it only so we can be lazy in tests?" + }, + { + "prediction": "I don't think we need this migration anymore.", + "reference": "I'd suggest using the actual MIME types here - so `text/plain` and `multipart/alternative` or does that cause problems with what postgres allows for enumeration names? If so then maybe just replace the slash with an underscore?" + }, + { + "prediction": "I think we should use `app.config['TEAM_NAME'].lower()` instead of `app.config['TEAM_NAME'].lower()`", + "reference": "Ohh. `TeamName` is actually a \"friendly\" name displayed in the Catalog - not the name used in the CLI. So I guess we'll need a new variable here. (That is, this is going to be mainly a `quilt.yaml` change. You won't need the `.lower()`, though.)" + }, + { + "prediction": "I think this should be `flow.response.backup()` instead of `flow.backup()`.", + "reference": "Nit: Don't move it between `require_dummy_response` definition and usage, this can live above or below :)" + }, + { + "prediction": "I think this should be `EnableBlockServiceFallbackToArchiver` or `EnableBlockServiceFallbackToArchiver`", + "reference": "With the current code, it not work if `EnableCatchupFromArchiveServers` is disabled. to fix it: in getDNSAddrs, change the predicate to `if wn.config.EnableCatchupFromArchiveServers || wn.config. EnableCatchupFromArchiveServers {` and in the catchup/service.go and catchup/catchpointService.go, use the `PeersPhonebookArchivers` only when `wn.config.EnableCatchupFromArchiveServers` is enabled." + }, + { + "prediction": "Why do we need this?", + "reference": "Why not make `SearchForNodes` do a `GetOrCreate` for the root node? (Not advocating for it, but just wondering if there's another reason than avoiding having to pass in the path.)" + }, + { + "prediction": "I think this should be `dnsDaemon.start();`", + "reference": ":+1: amazing that this has been missing since it was originally implemented" + }, + { + "prediction": "I don't think we need to change the method to `toInputFile().getLength()`.", + "reference": "Just want to note here that although we do check `length` while writing to choose whether to close and start a new file, that doesn't happen for ORC already so it is fine to use a FS call in this method." + }, + { + "prediction": "Why is this change needed?", + "reference": "nit: I feel multiple `if (...) { return ... }` is more readable than `if ... else ...`." + }, + { + "prediction": "Why is this change needed?", + "reference": "This is needed for us to work in IDE UTs" + }, + { + "prediction": "I think this should be `only show files that are in the trash`", + "reference": "File is not `goimports`-ed (from `goimports`)" + }, + { + "prediction": "I think this should be `label=user` instead of `label=role`", + "reference": "this `label=` is docker specific, while here in libcontainer there shouldn't be any mention to docker. `DisableSecOpt` and `DupSecOpt` should just deal with `disable,role,type,level`. Both CRI-O and docker should just pass `disable,role,type.level` stuff and not `label=...`." + }, + { + "prediction": "I think this should be \"Recurse into the listing\" instead of \"Recurse into the listing.\"", + "reference": "You need to declare variable `recurse` above, same place as `localTime`." + }, + { + "prediction": "why not use `xdensity` and `ydensity`?", + "reference": "Why does `clone` not already copy `xdensity` and `ydensity` from what it is cloning?" + }, + { + "prediction": "Shouldn't this be `if (meterSources.Count() == 0) { throw new ArgumentException(\"No meter was added to the sdk.\"); }`", + "reference": "Curious - do we do the same for traces (when no ActivitySource / legacy source are added)? (and why we want to do it for metrics?)" + }, + { + "prediction": "I don't think this is needed.", + "reference": "@aimanrosli23 For the changes in file SdMmcPciHci.c, please make sure that you do not revert the changes made by the below commits: SHA-1: 49accdedf956f175041040e677163b7cbb746283 * MdeModulePkg/SdMmcPciHcDxe: Hook SwitchClockFreq after SD clock start SHA-1: c67617f3c677c342efde780e229f841f4e0f6c7e * MdeModulePkg/SdMmcPciHcDxe: Add retries for sync commands SHA-1: 6d387610855ee27b49cb720de29ed809ea59dadc * MdeModulePkg/SdMmcPciHcDxe: Read response on command completion SHA-1: 63fd7f389874081ea37452b1f79ac013d52755e3 * MdeModulePkg/SdMmcPciHcDxe: Do not map memory for non DMA transfer" + }, + { + "prediction": "I think this should be `webelem.Group.inputs` instead of `webelem.Group.inputs`", + "reference": "You'll also need to add `webelem.Group.all` everywhere as that matches as well" + }, + { + "prediction": "I think we should use `$('#ncr_proposal_RWA_number').attr('disabled', true);` instead of `$('#ncr_proposal_RWA_number').attr('disabled', false);`", + "reference": "Does this need to be an ERB template?" + }, + { + "prediction": "I think this should be `service.New()` instead of `service.New()`", + "reference": "do we want to register this in the mock server for testing?" + }, + { + "prediction": "why is this change needed?", + "reference": "shouldnt this be `0:996` (+4) so the 1000s below fit?" + }, + { + "prediction": "Why do we need this?", + "reference": "The docstring of this context_manager should be updated. As now ``sort=False`` is valid, it should just say it disables sorting regardless of whether the NdMapping has ``sort=True`` or ``sort=False``. I also think the line 'Should only be used if values are guaranteed to be sorted before or after the operation is performed.' should just say something else - maybe just that the initial ordering (whatever it is) should be preserved?" + }, + { + "prediction": "Why is this change needed?", + "reference": "This tests failed unless I swapped the order here. Perhaps some new class transform broke the old form? " + }, + { + "prediction": "I don't think we need to check if `address=' in opts`", + "reference": "extract the port and set to `debug_java_port`" + }, + { + "prediction": "I think this should be `os.path.isabs(entry['directory'])`", + "reference": "When the argument list is `[\"one\", \"two three\"]` then you concatenate it as you do it here, you won't be able to get the original list back with split. You need to annotate the list items better. (Or if you won't do the split by yourself, the called shell will do it. So you need shell escaping. How portable is that?) The main driver to change this in `intercept-build` was to get rid of these concatenation and splitting errors. The current compilation database parser in Clang understands the `arguments` filed... So the question, why don't you pass the command around as a list instead of a string?" + }, + { + "prediction": "I think this should be `EnablePipedRequest` instead of `DisablePipedRequest`.", + "reference": "`ctx` is unused in EnablePiped" + }, + { + "prediction": "I think this should be `authenticated_user` or `authenticated_user`", + "reference": "Why do we have both a list of valid sessions and an instance variable if a session is destroyed?" + }, + { + "prediction": "Why is this needed? I think it would be better to use `flushcount = make(map[basics.Address]int, len(au.deltas))` instead of `flushcount = make(map[basics.Address]int, len(au.deltas))`", + "reference": "nit : I think that it would be \"cleaner\" to set the `flushcount` to nil in case of an error nice catch ;-)" + }, + { + "prediction": "Why is this change needed?", + "reference": "You may want to use assertNull" + }, + { + "prediction": "I think this should be `1593493828L` instead of `1593493828L`", + "reference": "Break out tests for events into their own tests rather than placing them in other ones. That makes it easier for us to figure out where problems lie and to do a TDD-driven implementation over new APIs." + }, + { + "prediction": "Why is this changed?", + "reference": "Why did you remove this?" + }, + { + "prediction": "I think this should be `log.Infof(\"%s, Mapping for port %d failed: %s\", logPrefix, extPort, err)`", + "reference": "Why we need another error printouts? We already have it inside addMapping.." + }, + { + "prediction": "Why is this change needed?", + "reference": "This LGTM, but I'm curious if this fixed a specific error you were hitting?" + }, + { + "prediction": "I think this should be `!strings.Contains(parts[1], \",\")` instead of `! strings.Contains(parts[2], \",\")`", + "reference": "Actually we rely on this functionality in cgroup v2, where the subsystem is empty." + }, + { + "prediction": "I think this should be `go.opentelemetry.io/api/core`", + "reference": "suggestion: use `core` package name" + }, + { + "prediction": "I think this should be `Optional[int]` instead of `Optional[int]`.", + "reference": "I think we can entirely remove this `limit` parameter for now to be consistent with other APIs." + }, + { + "prediction": "I think we should use `config.PORT_RESOURCE_GROUPS` instead of `config.PORT_RESOURCE_GROUPS`", + "reference": "nit: `Resource Groups Tagging API` -> `Resource Groups API`" + }, + { + "prediction": "I think this should be `service/ecriface/ecriface.go`", + "reference": "This type of list + delete always make me a bit uneasy but guess there's no atomic way to do this...... Could you put a todo to retry the \"ClearRepository + delete repo\" flow a few times? Basically, imagine a new image is added right after we call `ListImages`, then `DeleteImages` will not delete that newly added image. Then the delete repo call will fail" + }, + { + "prediction": "I don't think this is needed anymore.", + "reference": "You can remove this since ES6 modules are strict by default. And thanks for contributing to the Jellyfin Project." + }, + { + "prediction": "Why did you remove this?", + "reference": "Why did eip1559 go from a list (0xf9020280.....) to a wrapped string (0xb902060ff9020280...) and not just concatenation (0x0ff9020280...)? implementation detail or is this how it sits on the wire now?" + }, + { + "prediction": "Why is this change needed?", + "reference": "@wallyqs Since on Windows it would be `\\` instead of `/` I just look at the suffix past `configs/`. Let me know if that's ok or not." + }, + { + "prediction": "I think this should be `matrix` instead of `matrix`", + "reference": "nit: Remove this assignment because it is not necessary." + }, + { + "prediction": "(style) line over 80 characters", + "reference": "This seems like a common enough pattern to offer an equivalent wrapper in `ot-fs-util.c`, no?" + }, + { + "prediction": "I think this should be `isItemHasDownloadLink` and not `isItemAndHasLink`.", + "reference": "Wouldn't this crash the app if the user is currently listening to a stream?" + }, + { + "prediction": "I think this should be `prefix != \"\" && !strings.HasSuffix(prefix, \"/\")`", + "reference": "This looks like an unrelated change? What is it for?" + }, + { + "prediction": "I think this should be `d.empty || atomic.LoadInt32(&d.used) != 0`", + "reference": "Wait, what is this doing? Is this a way to create methods that are only accessible from tests?" + }, + { + "prediction": "I think this should be `utils.CanListChaos(c, ns)` instead of `utils.CanListChaos(c, ns)`", + "reference": "Is it more reasonable to return some errors here, such as returning error codes (403 and so on?) ?" + }, + { + "prediction": "I think this should be `undefined` instead of `null`?", + "reference": "Thinking out loud... would `_nextDom` be a better name for this?" + }, + { + "prediction": "Why was this removed?", + "reference": "Turns out the unittests also had a false positive." + }, + { + "prediction": "I think it would be better to use `CreateLongCounter` instead of `CreateInt64Counter`.", + "reference": "I think these method names would be clearer if written as \"Create a {type} counter|gauge|measure with given name\". eg \"Create a int64 counter with given name\" \"Create a double gauge with given name\"" + }, + { + "prediction": "I think this should be `!= nullptr` instead of `!= nullptr`", + "reference": "it pushes a boolean, so it has to be explicitly casted to boolean with != nullptr, same with all other similar stuff" + }, + { + "prediction": "I think we should be able to do this in a separate PR. I think we should be able to do this in a separate PR.", + "reference": "It would be nice to have an equivalent of this call on `DataWriterImpl::enable`" + }, + { + "prediction": "I think this should be `Status: model.ChainBlockStatus_DEPLOYMENT_BLOCK_PENDING`, not `Status: model.ChainBlockStatus_DEPLOYMENT_BLOCK_PENDING`.", + "reference": "Isn't this PENDING?" + }, + { + "prediction": "I think we should use `!!axe.commons.text.sanitize(node.getAttribute('title') || '')` instead of `!!axe.commons.text.sanitize(node.getAttribute('title') || '')`", + "reference": "minor detail, why aim to sanitize title if tile is empty (in some cases)? worth adding an && to check for that." + }, + { + "prediction": "Why is this needed?", + "reference": "Code shared by ParentChildrenSyncDownTarget and ParentChildrenSyncUpTarget moved to ParentChildrenSyncTargetHelper" + }, + { + "prediction": "Why is this change needed?", + "reference": "The bug is not about the priority , But we use 2 config items CAPACITY and SEQUENTIAL to control 1 action: thoughput. If 'sequential' is given to 'False' as default in configfile and then I use 'capacity' to 10 in my test.yml , the 'capacity' 's priority should be higher than default 'sequential'. So, I suggest we use only one 'capacity', it is enough. '1' is sequential, more than 1 is capacity, None is sys.maxsize." + }, + { + "prediction": "I think this should be `tf.IntegrationTest(t)` instead of `tf.IntegrationTest(t)`", + "reference": "I don't know if I'd call any of these FAST tests integration tests. They are unit tests for FAST. They use a mock plugin which doesn't actually start any external processes, etc." + }, + { + "prediction": "I think this should be `CurrentVersion` instead of `CurrentVersion`", + "reference": "Can you provide corresponding UT for this." + }, + { + "prediction": "I think this should be `golang.org/x/net/context` and not `golang.org/x/net/context`.", + "reference": "nit: this should be below the yarpc group" + }, + { + "prediction": "I think this should be `prometheus.AlreadyRegisteredError` instead of `prometheus.AlreadyRegisteredError`.", + "reference": "singleCaseSwitch: should rewrite switch statement to if statement (from `gocritic`)" + }, + { + "prediction": "Shouldn't this be `log.Warnf(\"Retrying to start Typha\")`?", + "reference": "Please log once here at Error level \"Failed to connect to Typha, will retry...\"" + }, + { + "prediction": "Why is this test disabled?", + "reference": "Do we need the forXDP parameter in runBpfUnitTest? If not, I think better to revert in order to save a few changes." + }, + { + "prediction": "I don't think we need to use `regexp` here. I think it's better to use `regexp.match` instead of `regexp.match`", + "reference": "So we fix it only for kinto and not for all cliquet resources?" + }, + { + "prediction": "Why is this changed?", + "reference": "No empty line between" + }, + { + "prediction": "I think this should be `reviseRootDir(context)` instead of `reviseRootDir(context)`", + "reference": "We have `ResolveRootfs` in `libcontainer/utils` so maybe use that one here?" + }, + { + "prediction": "Shouldn't this be `long-running-operation-extension-1.json` or `long-running-operation-extension-2.json`?", + "reference": "Just curious, do we have positive test covered somewhere?" + }, + { + "prediction": "I think this should be `else if(roots_surface->pending_move_resize_configure_serial != serial) {`", + "reference": "Style error, put a space between `if` and `(`" + }, + { + "prediction": "I think this should be `*bool` instead of `*bool`.", + "reference": "It's a bit odd to have a \"disable\" boolean, though it looks like you already do that for a few other flags." + }, + { + "prediction": "I don't think we need to change this to `loadImageTimeout`?", + "reference": "Why did you pick two hours for this?" + }, + { + "prediction": "I think this should be \"enter password for new key\" instead of \"enter password again\"", + "reference": "What about \"enter new password\"? That would be a bit more consistent to the `ReadPasswordTwice` usage in cmd_init." + }, + { + "prediction": "Why is this removed?", + "reference": "Another redundant import" + }, + { + "prediction": "I think this should be `c.Release()` instead of `c.CloseSend()`.", + "reference": "What kind of errors might cause us to reach this point? Could any of them be recoverable i.e. might work if we asked the same server again? Similar question for below, but perhaps with a slightly different answer" + }, + { + "prediction": "Why not use `graph_type` instead of `my_graph_type`?", + "reference": "What is the difference between GraphType and graph_type. Naming should be more accurate." + }, + { + "prediction": "Why not use `Doctrine\\ORM\\EntityManagerInterface` instead of `Doctrine\\ORM\\EntityRepository`?", + "reference": "hmmm in docblock of contructor it is EntityManagerInterface....maybe it should be that way.... :confused:" + }, + { + "prediction": "I think this should be `GetPosDefault` instead of `GetPos`", + "reference": "I'm curious why you went the route of adding a new method name for this. Given that you it would be possible to just have an an overload of `GetPos()`, and that this change breaks existing code, I wonder why you chose to go this way." + }, + { + "prediction": "I think this should be `past_due` instead of `past_due`", + "reference": "Does this need to change `'active'` to `'Active'` and that? Or is that done in CSS or something?" + }, + { + "prediction": "I think this should be `4096`", + "reference": "Why are these constants public? They should also be listed above members." + }, + { + "prediction": "I don't think we need to fix the v value if this is a private transaction.", + "reference": "This TODO isn't related to this change. We should remove it." + }, + { + "prediction": "Why is this change needed?", + "reference": "`FieldMetrics` is parameterized, but this is a bare reference. Could you update it? I think it should be `FieldMetrics` since the metrics are not necessarily for the written value type, `D`." + }, + { + "prediction": "I think this should be `Sdk.CreateMeterProviderBuilder` instead of `Sdk.CreateMeterProviderBuilder`", + "reference": "@cijothomas do we want this to be `Set` or `Add`?" + }, + { + "prediction": "Why is this change needed?", + "reference": "Why are we dropping GasCap?" + }, + { + "prediction": "I think this should be \"Parameter cannot be null\" instead of \"Parameter cannot be null\".", + "reference": "should we end the text with a .?" + }, + { + "prediction": "(style) line over 80 characters", + "reference": "Could this instead keep the `go_native` and add to it \"or the last exit was the special reset exit\"?" + }, + { + "prediction": "I think this is the only place where the `this` is `this` and `this` is `this` and `this` is `this`?", + "reference": "Oh, I missed this one: The other instances of `this` you've added as lambda contexts aren't really needed, although they're harmless. However, in the above connection, the missing context is `panel`, not `this`. Please correct it! Clazy may show warnings about lambda contexts (I don't use Clazy) but, if so, that's a problem in clazy: it isn't smart enough to know about them." + }, + { + "prediction": "Why is this removed?", + "reference": "can we add a try / except around this to make it more stable? I like the idea of any mistakenly un-quit drivers closing down after the process is quit (the java server does this... also i forget to do driver.quit often when i use the command line repl :) )" + }, + { + "prediction": "I think this should be `if r.ContentLength == 0 {`", + "reference": "when would this happen? backward compatibility?" + }, + { + "prediction": "I think we should use `node.tagName.toLowerCase()` instead of `node.tagName.toLowerCase()`", + "reference": "I'm not sure what the value of this is. So far we've solved this by always doing `tagName.toUpperCase()` for everything. I think we should stick with this." + }, + { + "prediction": "I think this should be `--volname ` instead of `--volname `", + "reference": "This command displays available snapshots on a volume." + }, + { + "prediction": "Why is this changed?", + "reference": "`spb` is the standard package name we use for this proto." + }, + { + "prediction": "`handle` is not used anymore.", + "reference": "/javascript/firefox-driver is the Selenium implementation of a WebDriver for Firefox. Since it generally isn't W3C compatible, it shouldn't change. We can just drop this change." + }, + { + "prediction": "Why is this TODO removed?", + "reference": "is this pr support parallelly process application?" + }, + { + "prediction": "I think this should be `MustEnablePulls` instead of `MustEnablePulls`", + "reference": "Based on the assumption that when `EnablePulls` is `true`, `CanEnablePulls` must be `true` as well, then this `if` check is redundant. Actually... we have `AllowsPulls` now... why not use that?" + }, + { + "prediction": "I think this should be `projectName + \" cannot be found in project \" + flowName + \".\"`", + "reference": "I am not sure why the API requires both project name and project ID as inputs. Wouldn't it introduce more opportunities for clients to make mistakes?" + }, + { + "prediction": "Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
    Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
    Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
    Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.", + "reference": "I believe this was happening for several different flash messages - should we add `now` to all flash messages? (there might be a downside to doing that, but I am not sure what it would be)" + }, + { + "prediction": "Why is this needed?", + "reference": "There is no docblock on the parent method. Also, not related, but I forgot to typehint the `$templating` constructor argument above." + }, + { + "prediction": "I think this test should not be run on arm64.", + "reference": "Silly me. This shouldn't be done in the tests, but instead in the actual definition of ValidPHPVersions on arm64. Same with Mysql and MariaDB." + }, + { + "prediction": "I think this should be `queryRelation == QueryRelation.INTERSECTS` instead of `queryRelation == QueryRelation.INTERSECTS`", + "reference": "Shouldn't this work as well for Disjoint?" + }, + { + "prediction": "I think this should be `errUpdate.(*acmeapi.Error)` instead of `errUpdate.(*acmeapi.Error)`", + "reference": "You've not updated the `o.Status.Reason = fmt.Sprintf(\"Failed to retrieve Order resource: %v\", err)` line below here when you changed this, so here we are checking `errUpdate` but will print the contents of `err` instead." + }, + { + "prediction": "I don't think this is a good idea, but I'm not sure if this is the right thing to do.", + "reference": "Doesn't this need to include `Errno::ECONNRESET` to fix the issue?" + }, + { + "prediction": "I think this should be `project_cache_throttle_percentage_of_disk`", + "reference": "Please consider keeping the config key in one line as it will help in case someone is looking at how this config is used. public static final String PROJECT_CACHE_THROTTLE_PERCENTAGE = \"azkaban.project_cache_throttle_percentage\";" + }, + { + "prediction": "Shouldn't this be `ListPowerSelectorEntries` instead of `ListSelectorEntries`?", + "reference": "This is a hard one, naming-wise... `ListPowerSelectorEntries` is logical given `ListSelectorEntries`. Another option could be `ListMatchingEntries` or even `FindMatchingEntries`. :shrug:" + }, + { + "prediction": "I don't think we need to add `type UVarint` here.", + "reference": "This should be called `Uint` or `Uint32` or simply using our `Uint64` type instead. All of our numbers have varint encoding. It's not inherently a varint." + }, + { + "prediction": "I think this should be `@cmdutils.argument('pygment')` instead of `@cmdutils.argument('pygment')`", + "reference": "No need for this when you don't need to customize anything about the argument." + }, + { + "prediction": "I don't think we need to move this to using ID attr.", + "reference": "We're now going to have 3 `#sections_accordion` will need to see how JS behaves. We should probably switch to a class selector instead" + }, + { + "prediction": "Layout/EmptyLinesAroundClassBody: Extra empty line detected at class body end.", + "reference": "did you mean to leave this in here?" + }, + { + "prediction": "I think this should be `sysprep_windows` instead of `sysprep_windows`.", + "reference": "Mention that it only applies to Windows. This is kind of implied, but better to be explicit." + }, + { + "prediction": "I think this should be `negtive` and not `zero`.", + "reference": "again: it is a bad practice to have some global parameters with such common names for unit test purpose." + }, + { + "prediction": "Why not use `\\DateTimeInterface` instead of `\\DateTimeInterface`?", + "reference": "Should we use `\\DateTimeInterface` or `DateTimeInterface` and declaration of `DateTimeInterface` in `use`?" + }, + { + "prediction": "I think this should be `aws-sdk-go`", + "reference": "What do you think of moving this stack related constant to the `stack` pkg?" + }, + { + "prediction": "I think it would be better to check if `s.AuthAddr != basics.Address{}` instead of checking if `s.AuthAddr != basics.Address{}` is the same as `s.AuthAddr != basics.Address{}`", + "reference": "Hm, I guess that you're doing this here since `WellFormed` is on a `transactions.Transaction` and not a `transactions.SignedTxn`, but quickly grepping through our code, it looks like we always a `SignedTxn` around when calling `WellFormed` (except maybe some tests?)... this doesn't have to happen here, but maybe we should update that in a separate PR since this really feels like a `WellFormed` check." + }, + { + "prediction": "I think this should be `padding: 0` instead of `padding: 0`", + "reference": "This story also needs the default padding." + }, + { + "prediction": "Why is this change needed?", + "reference": "Hmm why did we remove the randomness about which (confusingly) different exception to throw here? This randomness was (is?) useful to help test that Lucene indeed catches `FNFE` and `NSFE` interchangeably." + }, + { + "prediction": "(style) line over 80 characters", + "reference": "Hm, so before in that case `current_collection_id` looks like it was actually an uninitialized pointer. It seems weird to me that the tests pass both ways. I haven't looked closely at the tests - is there something wrong there that causes this to spuriously pass before?" + }, + { + "prediction": "I think this should be `K_DEFINE` and not `K_DEFINE`.", + "reference": "s it the best way to tag \"foo\" of \"`define foo ...\" with constant kind? Introducing \"d/definition\" kind and tagging the \"foo\" with the definition kind is an alternative way. Using the unified kind \"constant\" in many areas reduces the information that client tools get from a tags file. In my experience, it is better to tag different things with different kinds. If ctags hides the differences, and just reports various language objects as \"constant,\" in some cases, a client tool must parse the raw .sv source file for distinguishing whether a given tag is \"`define\"'ed or not. IMHO, ctags should not be too smart. Instead, ctags should be stupid; it should report what it sees in source input files as-is to client tools that will do something smart." + }, + { + "prediction": "Why is this removed?", + "reference": "is this a breaking change? If I'm not mistaken, this is translating a user-provided `wtimeout` in the connection string into `wTimeoutMS`" + }, + { + "prediction": "I think this should be `lambda_handler(event, context)`", + "reference": "Can we rename this file to `lambda_echo.py`, to be more descriptive and in line with the other files in this directory? (all files in this folder are lambda functions, after all)" + }, + { + "prediction": "Why is this change needed?", + "reference": "why not do it like this ?

     const ( Kill Action = iota Errno Trap Allow Trace ) 
    "
    +    },
    +    {
    +      "prediction": "I think this lock is not needed anymore.",
    +      "reference": "lock(this) is a bad practise, since you lock the entire instance. cosider: var appenderCache = xxxx. lock(appenderCache) { Thread.Sleep(TimeSpan.FromHours(5)); } while inside AppenderCache instance lock(this) { is blocked 5 hours. } Its always better to make a class private lock objects."
    +    },
    +    {
    +      "prediction": "I think this should be `proto` instead of `proto`",
    +      "reference": "should we use the constant above?"
    +    },
    +    {
    +      "prediction": "(style) line over 80 characters",
    +      "reference": "I think something like `size_res` would be more descriptive."
    +    },
    +    {
    +      "prediction": "I think we should remove the `report` and `error` from the `value` hash.",
    +      "reference": "Oh lol so this was...really more of a bug?"
    +    },
    +    {
    +      "prediction": "I think this should be `System.Diagnostics.CodeAnalysis.SuppressMessage(\"Microsoft.Naming\", Justification=\"We think with Ex is better than using 2\")`",
    +      "reference": "Well, it is providing a platform neutral way of calling Task or TaskEx. We could just call it PlatformTask."
    +    },
    +    {
    +      "prediction": "(style) line over 80 characters",
    +      "reference": "Typo: this should free `xwayland` instead"
    +    },
    +    {
    +      "prediction": "Why is this needed?",
    +      "reference": "Is it ok to use \"math/rand\" instead of \"crypto/rand\" here? Do we need to protect this ID somehow?"
    +    },
    +    {
    +      "prediction": "why is this changed?",
    +      "reference": "Why did we have `logxi` in the first place? Maybe it makes sense to remove it from `glide.lock? It will safe us in the future from using logger which is not working."
    +    },
    +    {
    +      "prediction": "I think this should be `if (getUNF() != null) {`",
    +      "reference": "Is there a reason to use `getUNF()` and `UNF` in the same block?"
    +    },
    +    {
    +      "prediction": "Why is this change needed?",
    +      "reference": "Again this seems odd that megacheck cares"
    +    },
    +    {
    +      "prediction": "I think we should use the `transport_conf[:service_url]` instead of `transport_conf[:token_file]`.",
    +      "reference": "I assume this will resolve to nil if this isn't in the config?"
    +    },
    +    {
    +      "prediction": "I think this should be `allowOptionalMappings: false`.",
    +      "reference": "I looks like we can make `allowOptionalMappings` non-optional since we have another overload without it. (I thought this generated a compiler warning, but maybe it's just R#)"
    +    },
    +    {
    +      "prediction": "why not `List[int]`?",
    +      "reference": "` per scale.` -> ` per scale.` need to clean the unnecessary blank space"
    +    },
    +    {
    +      "prediction": "I think this should be `@Export(\"inventoryQuantityFormat\")` instead of `@Export(\"inventoryQuantityFormat\")`",
    +      "reference": "there's no import for Export"
    +    },
    +    {
    +      "prediction": "Why is this change needed?",
    +      "reference": "i don't think we want/need to make the node API available over UDS"
    +    },
    +    {
    +      "prediction": "Why not use `getById` instead of `findById`?",
    +      "reference": "How about to skip if and returning null and return a result of `ArticleFacade::findById` directly?"
    +    },
    +    {
    +      "prediction": "I think this should be `Array.prototype.map.apply(this, arguments);`",
    +      "reference": "I think this change is currently unnecessary. I like the idea of `map()`, `filter()`, etc. returning vanilla JavaScript arrays rather than mongoose arrays, but I think that's a bit too heavy of a change for a patch release. I think that all we need for this release is the `if (!parent || parent.$__.populated == null) return;` change."
    +    },
    +    {
    +      "prediction": "I think this should be `git rev-parse HEAD 2>/dev/null || \\\\`",
    +      "reference": "how about \"unknown\" instead of \"fafafaf\"?"
    +    },
    +    {
    +      "prediction": "Why is this needed?",
    +      "reference": "nit: do we gain anything from naming the output error `err` in this definition?"
    +    },
    +    {
    +      "prediction": "I think this should be `if (document.activeElement && !dlg.contains(document.activeElement)) { document.activeElement.blur(); }`",
    +      "reference": "This can happen with any dialog. Maybe the best place to add this change would be the dialog component instead."
    +    },
    +    {
    +      "prediction": "I think this should be `dumpEnvOutputOnFail(t, env.Processes())` instead of `dumpEnvOutputOnFail(t, env.Processes())`",
    +      "reference": "Should this be `TearDown` since it now calls this method? Something I would like to see is, on test failure don't teardown completely instead leave the FAST repo in place with the stderr and stdout files and direct the user to that location. What do you think?"
    +    },
    +    {
    +      "prediction": "I think this should be `MetricNegLogLikelihood(metricSpec)` instead of `MetricNegLogLikelihood(metricSpec)`",
    +      "reference": "There's not particular reason to use a short name. Can we use a more descriptive name for the metric? Perhaps \"negativeLogLikelihood\"?"
    +    },
    +    {
    +      "prediction": "I don't think we need to check for NULL here.",
    +      "reference": "not handling in case of `repr` makes the behavior probably a little too unpredictable. Is there a reason not to, apart missing stuff in the `repr`? Does it lead to some problem?"
    +    },
    +    {
    +      "prediction": "Why is this change needed?",
    +      "reference": "Remove the finally?"
    +    },
    +    {
    +      "prediction": "(style) line over 80 characters",
    +      "reference": "Build on AArch64 fails because WCHAR is not defined."
    +    },
    +    {
    +      "prediction": "I think this should be `envName` instead of `envName`",
    +      "reference": "Do we use this const?"
    +    },
    +    {
    +      "prediction": "I think this should be `SetAnnotations` instead of `SetAnnotations`",
    +      "reference": "I think this may need to be `SetCertificateRequestAnnotations` as it returns a `CertificateRequestModifier`  "
    +    },
    +    {
    +      "prediction": "Use the new Ruby 1.9 hash syntax.
    Prefer single-quoted strings when you don't need string interpolation or special symbols.
    Prefer single-quoted strings when you don't need string interpolation or special symbols.
    Prefer single-quoted strings when you don't need string interpolation or special symbols.
    Prefer single-quoted strings when you don't need string interpolation or special symbols.
    Prefer single-quoted strings when you don't need string interpolation or special symbols.", + "reference": "it would likely be better to do this in the Identifier.by_scheme_name method itself." + }, + { + "prediction": "I think this should be `date` instead of `created`.", + "reference": "@janette looking at this test code, I'm pretty sure that it's going to give a false positive. Where is it actually checking the contents of the first four datasets against expected values? All the assertion at the end of the test seems to check is that at least four datasets exist." + }, + { + "prediction": "I think this should be `esw-cache-fallback`", + "reference": "Would this break things if Ghost is run in a subdirectory or no?" + }, + { + "prediction": "Line is too long. [89/80]", + "reference": "maybe switch the order in order to make this a positive assertion instead of a negative one? i.e. `if key =~ /id/` first." + }, + { + "prediction": "I think this should be `ElementNotVisibleException` instead of `ElementNotVisibleException`", + "reference": "Is this an oversight for some code in the body?" + }, + { + "prediction": "I think this should be `intent.putExtra(\"state\", state);`", + "reference": "Reason for adding this? I couldn't find where you are retrieving it back." + }, + { + "prediction": "I think this should be `h2o_mruby_eval_expr(mrb, \"require \\\"preloads.rb\\\"\");`", + "reference": "Can we expect adequate information emitted to the log in case either requiring preloads.rb or doing the requires in preloads.rb fails? If the answer is yes, I think we can merge this PR right away." + }, + { + "prediction": "I think this should be `LayoutController`", + "reference": "How about a `app/views/layouts/pages.html.erb` layout that contains the HTML head, body, wrappers and yield's the `new-topics` template into it? I think we might be able to delete the `app/controllers/pages_controller.rb` file at that point." + }, + { + "prediction": "I think this should be `if (path === '_id') { return true; }`", + "reference": "This is a coarse solution. This check is helpful, but you should also add a check in `$__version()` to avoid calling `isSelected()` if `key === false`" + }, + { + "prediction": "Why is this needed?", + "reference": "Passing only needed data to make it can be reused by `planpreview` package where there is no deployment data." + }, + { + "prediction": "I think this should be `CustomClientAuth` and `CustomRouterAuth`", + "reference": "Could we rename those to `CustomClientAuthentication` (same for Router) to remove ambiguity between Authentication and Authorization (permissions)?" + }, + { + "prediction": "Shouldn't this be `IMvxAttributeViewPresenter` instead of `IMvxAttributeViewPresenter`?", + "reference": "Is the name \"IMvxFormsViewPresenter\" too close to \"IMvxFormsPagePresenter\"? Perhaps something like \"IMvxFormsNativeViewPresenter\" or \"IMvxFormsPlatformViewPresenter\" or inline with Forms naming \"IMvxFormsOnPlatformViewPresenter\"" + }, + { + "prediction": "`child` is a `Array`?", + "reference": "`typeof child != 'boolean'` maybe?" + }, + { + "prediction": "Why is this change needed?", + "reference": "Why && changed to || ?" + }, + { + "prediction": "I think this should be `InitMarketAddress` and `StorageMarketAddress`", + "reference": "nit: not a big deal right now but spec assigns ID 0 to InitAddress" + }, + { + "prediction": "`handle` is not used anymore.", + "reference": "/javascript/firefox-driver is the Selenium implementation of a WebDriver for Firefox. Since it generally isn't W3C compatible, it shouldn't change. We can just drop this change." + }, + { + "prediction": "I think this should be `self._zoom.fuzzyval = int(fact * 100)`", + "reference": "There are various places where `setZoomFactor` is used but `fuzzyval` isn't set: - `__init__` and `on_config_changed` (should be okay as `init_neighborlist` gets called which essentially does the same) - `zoom` (calls `zoom_perc` with `fuzzyval=False`), which is used by `:zoom-in` and `:zoom-out`. Are you sure this won't break those calls? (Yes, I know there should be tests for this - I'm working on that.) Other existing places probably should get simplified." + }, + { + "prediction": "I don't think we need to add annotations here, but I think it would be better to use `Annotations.EMPTY` instead of `Annotations.EMPTY` here.", + "reference": "Is there a benefit to keeping this in RefinementSettings? Or could we move it into its own class in TestUtil?" + }, + { + "prediction": "Why is this change needed?", + "reference": "I would have expected the Ready method to need to change to be a `<-chan Result` instead of a `<-chan map[string]Result`. The difference being that now the Ready channel can produce more than one set of results. In fact the name Ready is inaccurate now since its not about the query being ready but just a mechanism to deliver results. If this should be a follow up PR that is fine, lets create an issue for it." + }, + { + "prediction": "Why is this method public?", + "reference": "why? what if we want to access those methods outside of azkaban-common?" + }, + { + "prediction": "Why is this needed?", + "reference": "Rename file too" + }, + { + "prediction": "I think this should be `awserr.NewRequestFailure(awserr.New(\"RequestFailure\", \"failed decoding EC2 Query response\", err))`", + "reference": "Need to populate the `RequestID` field for these errors. This can be obtained from r.RequestID i think, but need to make sure. The `r.RequestID` should of been populated from the `UnmarshalMeta` handler list." + }, + { + "prediction": "Why is this change needed?", + "reference": "Why is the `final` being removed here?" + }, + { + "prediction": "I think we should remove this file.", + "reference": "Maybe let's take this opportunity to change easylogging to a git submodule?" + }, + { + "prediction": "I think this should be `firstLine = strings.Trim(firstLine, \"\\r\")`", + "reference": "Should we just be generous and elide all extra whitespace? `strings.TrimSpace`" + }, + { + "prediction": "Why is this removed?", + "reference": "This is an inaccurate API that has outlived it's purpose. We can't make the determination of phone (vs) tablet, with a 7\" screen in the mix. Also, with the advent of fragments, this API means very little now. It's not being used anywhere, since we switched to `ActionBar`." + }, + { + "prediction": "Why is this change needed?", + "reference": "This change means that users can't easily see which version of the selenium server they're using. This is `info` level information." + }, + { + "prediction": "Why is this change needed?", + "reference": "You should just use `with patch(...):`, so it unpatches it automatically. Also, much simpler." + }, + { + "prediction": "Why is this needed?", + "reference": "This didn't use to work for me. Are you sure that returns the correct instance from startup?" + }, + { + "prediction": "I think this should be `new SimpleName(name, new NodeList<>()));`", + "reference": "Looks good. Eventually we could remove some of these constructors, but for now adding these two seems the way to go" + }, + { + "prediction": "Why is this change needed?", + "reference": "@jalavik should be have somewhere enum/list/registry of possible tags?" + }, + { + "prediction": "I think this should be `# pylint: disable=logging-too-many-args`", + "reference": "why is this pylint disable needed?" + }, + { + "prediction": "I think this should be `POLBRARY_LIBRARY_SYNC_ENABLED = 'true'` instead of `POLBRARY_LIBRARY_SYNC_ENABLED = 'false'`", + "reference": "The new sync feature is only being supported from within Terraform. Installations using the deprecated method will have this feature disabled." + }, + { + "prediction": "I think this should be `self.extra_repr`", + "reference": "This type of return (f'xxx') is not recommended, it is recommended to return 'xxx'" + }, + { + "prediction": "(style) line over 80 characters", + "reference": "I would make this level 1 or 2." + }, + { + "prediction": "I don't think we need this, but I think it would be better to use `v.vmx['memsize'] = options['vagrant_memsize'] || '1024'` instead of `v.vmx['memsize'] = '1024'`", + "reference": "Is that path in a variable anyway? Not a big fan of hard coding it here." + }, + { + "prediction": "I think this should be `k8s.io/apimachinery/pkg/api/errors` instead of `k8s.io/apimachinery/pkg/api/errors`.", + "reference": "nit: Move `IdentityTemplateLabel` to be under `IdentityTemplate` to match the struct in config_crd.go" + }, + { + "prediction": "I think we should use `VideoTracker` instead of `TrailTracker`", + "reference": "Not necessarily related to this PR, but don't you think having a centralized place for all interactions with analytics might make this into a very big class? Is that something that you don't worry about until it happens?" + }, + { + "prediction": "I think this should be `Errf(\"step %q error: %s\", s.name, err)`.", + "reference": "it seems that my terminal is dead when I press ctrl+c during running daisy cli today, is this PR fixing that?" + }, + { + "prediction": "Why is this change needed?", + "reference": "If we are going to add config to specify the maximum message pool size, we should probably also add a parameter for the maximum nonce gap and pass it into the `IngestionValidator`. This could be done in this PR or added as an issue." + }, + { + "prediction": "I think this should be `*` instead of `*`.", + "reference": "please inline imports" + }, + { + "prediction": "Why is this change needed?", + "reference": "Should IptablesPostWriteCheckIntervalSecs be set back to its previous smaller value, if use of the iptables lock is disabled?" + }, + { + "prediction": "I think this should be `const p = require('../package.json');`", + "reference": "Please use packageInfo here instead. As it is used in `app.js`." + }, + { + "prediction": "I don't think we should be using the cache here.", + "reference": "this seems unrelated to the rest of the PR, although related to the original report" + }, + { + "prediction": "I think this should be `colVID.isColumnWithNonNullDefault()` instead of `colVID.isColumnWithNonNullDefault()`", + "reference": "Would a check for added columns with non-null default be sufficient for aligned format?" + }, + { + "prediction": "I think this should be `compute_service_account` instead of `compute_service_account`", + "reference": "Is this PR implementing compute service account for OVF import as well? I thought it's only image/one-step import? Btw, OVF importer uses \"-\" instead of \"_\" in flags (should be `compute-service-account`)." + }, + { + "prediction": "I think this should be `path=\"/collections/{collection}/elements/{product}\"` instead of `path=\"/collections/{collection}/elements/{product}\"`", + "reference": "Why change to element ?? in whole application use plural convention ??" + }, + { + "prediction": "I don't think we need to change the tabindex here.", + "reference": "Tiniest nit but this can be `tabindex={-1}`, `width={11}`, `height={11}`" + }, + { + "prediction": "I think we should use `itk.Image[itk.RGBPixel[itk.UC],2]` instead of `itk.Vector[itk.F,2]`", + "reference": "Unrelated to this PR, we should remove this exception. We now require `numpy`." + }, + { + "prediction": "Why do we need to pass `s.Vars` to `NewSubWorkflowFromFile`?", + "reference": "Is the loop over vars and adding them to the subworkflow below in this file needed, since it's already done by NewSubWorkflowFromFile?" + }, + { + "prediction": "Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
    Prefer single-quoted strings when you don't need string interpolation or special symbols.
    Prefer single-quoted strings when you don't need string interpolation or special symbols.
    Prefer single-quoted strings when you don't need string interpolation or special symbols.
    Prefer single-quoted strings when you don't need string interpolation or special symbols.", + "reference": "Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping." + }, + { + "prediction": "Why is this needed?", + "reference": "Having to write this util makes me think that maybe we should have kept the csv_input stuff. I don't know." + }, + { + "prediction": "Why is this needed?", + "reference": "Passing in and saving a reference to the `BlockCache` at init time is going to break if something calls `config.ResetCaches()`, because it replaces the `BlockCache` instance completely. This happens on user logout or by a manual write to `.kbfs_reset_caches`. So you probably want to give it the whole `config`, or maybe just the `config.BlockCache` function pointer." + }, + { + "prediction": "I think this should be `st.Close()` instead of `st.Close()`", + "reference": "I am not sure this could happen. st should be nil if the error happens. If it does happen, we could also do st.Reset(), since it is an erroureous state so it closes both sides of the stream." + }, + { + "prediction": "I think this should be `console.log(e.stack, e.dynaId, e.dynaId, e.dynaId, e.dynaId, e.dynaId, e.dynaId, e.dynaId, e.dynaId, e.dynaId, e.dynaId, e.dynaId, e.dynaId, e.dynaId, e.dynaId, e.stack);`", + "reference": "I'm guessing this was just added for debugging? Should probably remove it so we aren't modifying 3rd party libs." + }, + { + "prediction": "Do we need to check if `result` is a `Bolt::ErrorResult`?", + "reference": "This seems reversed... if `success?` is true, wouldn't we use `success`?" + }, + { + "prediction": "I think this should be `LogEventLevel.Info` instead of `LogEventLevel.Warning`.", + "reference": "This seemed like the easiest way to allow log level checks, it will require an update to the vendors tool, to ignore that file on update." + }, + { + "prediction": "Layout/MultilineMethodCallBraceLayout: Align the elements of a hash literal if they span more than one line.
    Layout/MultilineMethodCallBraceLayout: Align the elements of a hash literal if they span more than one line.
    Layout/MultilineMethodCallBraceLayout: Align the elements of a hash literal if they span more than one line.
    Layout/MultilineMethodCallBraceLayout: Align the elements of a hash literal if they span more than one line.
    Layout/MultilineMethodCallBraceLayout: Align the elements of a hash literal if they span more than one line.
    Layout/MultilineMethodCallBraceLayout: Align the elements of a hash literal if they span more than one line.
    Layout/MultilineMethodCallBraceLayout: Align the elements of a hash literal if they span more than one line.
    Layout/MultilineMethodCallBraceLayout: Align the elements of a hash literal if they span more than one line.
    Layout/MultilineMethodCallBraceLayout: Align the elements of a hash literal if they span more than one line.
    Layout/MultilineMethodCallBraceLayout: Align the elements of a hash literal if they span more than one line.
    Layout/MultilineMethodCall", + "reference": "Should we disallow entry authors to unsubscribe to their entries?" + }, + { + "prediction": "I think this should be `Derek Riemer`", + "reference": "2016 should be 2017." + }, + { + "prediction": "I think this should be `curSchemaSumary == null || schemaSummary.equals(curSchemaSumary)`", + "reference": "boolean exists = (existSchema != null) && (existSchema .getSummary() != null);" + }, + { + "prediction": "I think this should be `_` instead of `_`", + "reference": "It does not look idiomatic." + }, + { + "prediction": "I think this should be `github.com/mattn/go-sqlite3`", + "reference": "Generally, we do not use newlines between project imports, we only separate them from the stdlib imports" + }, + { + "prediction": "I think this should be `userSettings.skipBackLength() * 1000000 / nowPlayingItem.RunTimeTicks` instead of `userSettings.skipForwardLength() * 1000000 / nowPlayingItem.RunTimeTicks`", + "reference": "can this long line be wrapped?" + }, + { + "prediction": "I think this should be `comparison-with-bare-callable`.", + "reference": "I'd use the same message that I suggested in the release changelog." + }, + { + "prediction": "Why is this removed?", + "reference": "Keep semi-colons at end of function defs please" + }, + { + "prediction": "I think this should be `this.explain = false;`", + "reference": "A little skeptical of `explain` being here. Why is this now a property of all commands?" + }, + { + "prediction": "Is this change needed?", + "reference": "License copied two times!!" + }, + { + "prediction": "I think this should be `matcher='path'` instead of `matcher='path'`", + "reference": "... their **superclass**" + }, + { + "prediction": "Metrics/LineLength: Line is too long. [98/80]", + "reference": "I'm not sure if this is the right thing to be doing here. It seems like there should be a more systemic fix instead of this patch." + }, + { + "prediction": "I think this should be `null` if there is no registered context string for the given module.", + "reference": "Not sure why these are up here can we move these down to be part of the `@return` tag instead? This is what we usually do (e.g. `getCurrentEntityURL`)" + }, + { + "prediction": "I think this should be `Array.wrap(field_names).flatten.compact` instead of `Array.wrap(field_names).flatten.compact`", + "reference": "Layout/EmptyLinesAroundBlockBody: Extra empty line detected at block body beginning." + }, + { + "prediction": "Shouldn't this be `InvalidElementStateException`?", + "reference": "We keep who wrote the code anonymous." + }, + { + "prediction": "I think this should be `RegisterIdentity`", + "reference": "Mention something in logs, that fake registration was used e.g. `Fake identity registered`" + }, + { + "prediction": "Why is this change needed?", + "reference": "I think it would make sense to also set `internalWebPropertyID` to `''` here. Otherwise, it might keep its previous value (let's say a property was selected before, but then the user chooses \"Create new property\"), but since it always should depend on `propertyID`, that would be incorrect." + }, + { + "prediction": "I think this test should be done in a separate PR. I think it would be better to use `MolOps::addHs` instead of `MolOps::addHs`.", + "reference": "It might be reasonable to add a check that sanitization still fails here." + }, + { + "prediction": "I think this should be `logInfo(\"Finishing job \" + this.jobId + \" attempt: \" + this.node.getAttempt() + \" attempt: \" + this.node.getAttempt() + \" attempt: \" + this.node.getAttempt() + \" attempt: \" + this.node.getAttempt() + \" attempt: \" + this.node.getAttempt() + \" attempt: \" + this.node.getAttempt());`", + "reference": "Why not use attemptNo instead of another call to getAttempt? Even better, consider using a private method to calculate this string. This logic is in two places." + }, + { + "prediction": "Align the elements of a hash literal if they span more than one line.", + "reference": "Yuck. Rails bug." + }, + { + "prediction": "I think this should be `layers.getlayer(0, _subclass=True)` instead of `layers.getlayer(0, _subclass=True)`", + "reference": "It's useally a common practice to not use `l` as a variable (we have disabled this test in scapy because our code has tons, but it would have PEP8 failed otherwise), but it would be better not to create any. In general, single letter variables are not liked that much. Especially with windows where the fonts make 1=l How about `lay` ?" + }, + { + "prediction": "I think this should be `WriteHeader(http.StatusOK)`", + "reference": "DRY these 5 lines into a function call, no?" + }, + { + "prediction": "I think this should be `err := <-errc` instead of `logger.Log(\"msg\", \"Unhandled error received. Exiting...\", \"err\", err)`.", + "reference": "should we be trying to close here? or just return directly @fabxc ? same goes for `stopc`..." + }, + { + "prediction": "Metrics/LineLength: Line is too long. [98/80]", + "reference": "just re-ordered for clarity" + }, + { + "prediction": "I think this should be `http.StatusText(resp.StatusCode)` instead of `http.StatusText(resp.StatusCode)`", + "reference": "Can you fix this also to print what is the IP address used to connect. Rename --> \"M_API server\" to maya apiservice" + }, + { + "prediction": "I think this is a bit confusing, but I think it would be better to use `go:linkname indexByte` instead of `go:linkname indexByte`", + "reference": "This fails on Go 1.11 because `indexByte` is already defined in strings_go111.go. I would suggest simply renaming one of the two, for example you could rename the other one to `strings_indexByte` (that will be one of the things we'll drop when we drop Go 1.11 support so it's better to make that one look ugly instead of the function that we will likely keep for a longer time)." + }, + { + "prediction": "Why is this change needed?", + "reference": "Now `dbType=' MockDbType.int32 '` is correctly interpreted and the value is rendered as an integer instead of a string; hence no more double quotes." + }, + { + "prediction": "Why is this change needed?", + "reference": "typo in `$contend`" + }, + { + "prediction": "I think this should be `org.apache.hadoop.fs.FileSystem` and not `org.apache.hadoop.fs.FileSystem`.", + "reference": "Nit: empty line" + }, + { + "prediction": "I think this should be `panic(\"zero FolderBranch in getOpsNoAdd\")`", + "reference": "I figured this was more fool-proof than trying to plumb the error up from everywhere." + }, + { + "prediction": "I think this should be `(atomic.LoadInt32(&c.srv.logging.debug) != 0)`", + "reference": "We know debug and trace as globals exist and are defaulted to 0. In this instance we need to know that c is non- nil, srv is non-nil and logging is non-nil before we can trust this statement not to panic." + }, + { + "prediction": "Why is this removed?", + "reference": "Good removal here for two reasons: we're redeclaring `app.ConfigPath` immediately below without having used the initial value, and `app.GetConfigPath()` will build the value using the same process as in this line anyway." + }, + { + "prediction": "Why was this removed?", + "reference": "Should BuildBase be removed?" + }, + { + "prediction": "Why is this needed?", + "reference": "this was a bad Goland auto-import that I missed in the previous PR. Thanks to @rkowalick and @acruikshank for catching it" + }, + { + "prediction": "I think this should be `qa = new QueryAtom(1);` instead of `qa = new QueryAtom(1);`", + "reference": "Good catch here. Reading the code, it actually seems kind of dumb that `replaceAtom` needs to copy the atom it's passed. Ah well, we're more or less stuck with that." + }, + { + "prediction": "(style) line over 80 characters", + "reference": "What's the reason for adding the output pointer here? I'd expect it to be derivable from the actual handler that's called." + }, + { + "prediction": "Shouldn't this be `discounted_annual_payment - annualized_savings`?", + "reference": "I don't see tests for this (or the similar method on `Team`)." + }, + { + "prediction": "I think we should use `Integer.parseInt` instead of `Long.parseLong` here.", + "reference": "should use Number instead of Long" + }, + { + "prediction": "I think this should be `c.nc == nil`", + "reference": "We had the checks for those two errors for a reason, why do we not need them anymore?" + }, + { + "prediction": "I think we should use `six.moves.xrange` instead of `xrange`", + "reference": "Why didn't you just switch to `range` here too?" + }, + { + "prediction": "Why is this change needed?", + "reference": "I don't even think `nil` should be allowed, since it uses global state to get the client." + }, + { + "prediction": "I think this should be `QSslSocket: cannot resolve SSLv3_client_method` and `QSslSocket: cannot resolve SSLv3_server_method`.", + "reference": "You somehow got a change from `master` into your branch again, in e6d2167085688264e5ee6a81cfd2a7a8f10ded13. While it's not something terribly bad (as it will be fine after merging), it's kind of confusing, and I have no idea how it happens :laughing: Are you trying to update changes from `master` while working on your branch somehow? How do you do that?" + }, + { + "prediction": "I don't think we need to check if the current ref is the same as the target.", + "reference": "Minor, can we drop the leading `!` and just swap the if and the else blocks?" + }, + { + "prediction": "Why not use `bbox_feats.shape[0] > 0` instead of `bbox_feats.shape[0] > 0`?", + "reference": "`bbox_feats.shape[0] > 0` requires the number of proposal is not 0." + }, + { + "prediction": "Why is this needed?", + "reference": "Just FYI, I had to remove this unused import because Travis/`npm run lint` were complaining." + }, + { + "prediction": "I think this should be `#include ` instead of `#include `", + "reference": "format.h is not a system header but bundled with LAMMPS. This should be `#include \"fmt/format.h\"`" + }, + { + "prediction": "I think this should be `if (version >= BKDWriter.VERSION_LOW_CARDINALITY_LEAVES)`", + "reference": "could we always call visitDocValuesWithCardinality? It seems to include the version check already?" + }, + { + "prediction": "I think it would be better to add a `port` parameter to the `RegistrationRequest` class. I think it would be better to use `register` instead of `register` in the `RegistrationRequest` class.", + "reference": "I think if they _don't_ specify a port, we should assume grid default (which is 4444)" + }, + { + "prediction": "Why is this change needed?", + "reference": "This looks to be a breaking change. I know it will affect some of my code that uses the Tautomer enumerator." + }, + { + "prediction": "I think this should be `if len(m.Bucketlist) == 0 {`", + "reference": "Perhaps remove this line" + }, + { + "prediction": "I think we should check if `atom->getAtomicNum() == 1 && atom->getFormalCharge() == -1` instead of checking if `atom->getFormalCharge() == -1`", + "reference": "Ah, missed this one. Sorry: you don't need to test the atomic number here. that's taken care of above on line 683." + }, + { + "prediction": "I don't think we should be using `time.Sleep(lastBlockTime.Sub(now))` here. I think we should use `time.Sleep(lastBlockTime.Sub(now))` instead of `time.Sleep(lastBlockTime.Sub(now)).Sleep(lastBlockTime.Sub(now)).Sleep(lastBlockTime.Sub(now)).Sleep(lastBlockTime.Sub(now)).Sleep(lastBlockTime.Sub(now)).Sleep(lastBlockTime.Sub(now)).Sleep(lastBlockTime.Sub(now)`.", + "reference": "roundInfo() is called by couple of places in consensus for safety, better test/verify the delay of return err due to this Sleep() would not affect the normal functionality, like consensus can still be reached, full-node can correctly sync" + }, + { + "prediction": "Why is this change needed?", + "reference": "This 32 could go away too." + }, + { + "prediction": "I think this should be `pageSpeedLink` and `pageSpeedLabel`.", + "reference": "These props should be less specifically named since the component is generic, for example `anchorLink`, `anchorLinkLabel`." + }, + { + "prediction": "I think this should be `instance-id` instead of `instance-id`", + "reference": "In the future, it'd be great if we can separate commits or PRs that aren't in the same scope" + }, + { + "prediction": "I don't think we need to do this, but I think it would be better to use `dict.copy()` instead of `dict.copy()`.", + "reference": "can you define the string format on a different line, so it can be named, and so that it does not have to be constructed twice?" + }, + { + "prediction": "I think this should be `install_role_dependencies` instead of `install_role_dependencies`", + "reference": "Can we write a unit test for this." + }, + { + "prediction": "I think we should use `objreg.get('session-manager')` instead of `objreg.get('session-manager')`", + "reference": "Same as above, use `.delete('_autosave')`, not the command handler." + }, + { + "prediction": "Why is this removed?", + "reference": "It isn't necessary to check whether there are projected ID columns. The code is shorter if the values are available by default, even if they aren't used. This fixes the problem where there are constants to add (like `_file`) but no identity partition values are projected." + }, + { + "prediction": "I think this should be `POST` instead of `POST`", + "reference": "Update after command rename" + }, + { + "prediction": "Why is this change needed?", + "reference": "@KroArtem This is the Checkstyle violation. This import should be grouped with other `net.sourceforge.pmd` imports below, in alphabetical order" + }, + { + "prediction": "I think this should be `fs` instead of `fs`", + "reference": "File is not `goimports`-ed (from `goimports`)" + }, + { + "prediction": "I think this should be `OnLongClickListener` instead of `OnLongClickListener`.", + "reference": "This change seems unrelated to copying email addresses to the clipboard. Please limit the scope of pull requests as much as possible." + }, + { + "prediction": "I think this should be `wl_keyboard_send_keymap(resource, keymap_fd, 0);`", + "reference": "I'm assuming that there isn't a way for us to skip sending an fd here (-1?), and that we're allocating this fd just to send a legal but useless value across?" + }, + { + "prediction": "I don't think we need to change this to `ClientMaxRecvMsgSize` and `ClientMaxSendMsgSize`.", + "reference": "might be good for the units (bytes?) to be in the variable name." + }, + { + "prediction": "Line is too long. [89/80]", + "reference": "Metrics/BlockLength: Block has too many lines. [166/25]" + }, + { + "prediction": "I think this should be `(line 1), type(line 2)`", + "reference": "I'd end the sentence after `special indicator (line 3)`. And then start a new sentence: `The special field can indicate that the field specifies a reset, is a sequence ID, or is a timestamp for the record.`" + }, + { + "prediction": "Why remove this?", + "reference": "These empty lines can be kept." + }, + { + "prediction": "Why is this change needed?", + "reference": "For some reason these tests started failing due to an extra `NEWLINE` returned from `h.query()`. Have not tried to check whether this may be a problem for real templates or not, just fixed the failing tests. Anyone with an opinion here?" + }, + { + "prediction": "I think this should be `propagator.TextFormat` and `propagator.TextFormat`", + "reference": "It is better to have a method than a var." + }, + { + "prediction": "I think this should be `maxConcurrentActivityTaskPollers` instead of `maxConcurrentWorkflowTaskPollers`", + "reference": "concurrent poller won't be larger than concurrent execution. Jump from 2 -> 16 seems aggressive. I suggest to use 8. Ideally, this should be dynamic config. :)" + }, + { + "prediction": "I think this should be `dict(pretrained='torchvision://resnet101', backbone=dict(depth=101))`", + "reference": "List is redundant." + }, + { + "prediction": "Why is this null check needed?", + "reference": "Please use a string resource here rather than the hardcoded string \"user\". This allows the app to be multilingual." + }, + { + "prediction": "Why is this removed?", + "reference": "@aswathkk Why did we remove this import? I guess we are using it." + }, + { + "prediction": "Why remove this?", + "reference": "Why? I thought this is for graceful shutdown." + }, + { + "prediction": "Line is too long. [92/80]", + "reference": "Can `result.stdout` or `result.stderr` be nil?" + }, + { + "prediction": "I think this should be `return PythonSdkType.isStdLib(vf, sdk) ? 2 : 1;`", + "reference": "@mprobst Looks like the `isStdLib` function has been removed in the latest Python plugin. Any thoughts on how to handle this? The new version doesn't seem to have any relevant alternatives." + }, + { + "prediction": "I think this should be `IptablesMaxIPSetSize`", + "reference": "How can there be a configured max ipset size? Surely we need to write ipsets with however many members are implied by the Calico datastore?" + }, + { + "prediction": "I think this should be `i18n.t('messages.delete_singular', {name: 'attachment' });`", + "reference": "This code is passing a non localized string when it should be passing in a localized string or it should use the name of the item being deleted." + }, + { + "prediction": "I think this should be `notNaN` instead of `notNaN`", + "reference": "why not be consistent with `isNull` and `notNull` and return null?" + }, + { + "prediction": "I think this should be `docker_labels_map[string]string` or `docker_labels_map[string]string`", + "reference": "Did we forget to remove this field?" + }, + { + "prediction": "I think this should be `elementCount` instead of `elementCount()`.", + "reference": "What if there is no element?" + }, + { + "prediction": "I think this should be `if d, ok := c.buildActions[target.Label]; ok { return d.command, d.actionDigest, nil}`", + "reference": "I think you need to be careful to honour isTest and stamp here." + }, + { + "prediction": "I don't think we need to add the `MethodConfig` class to the `MethodConfig` class.", + "reference": "why zero value for `arrayType` for the default value of the optional args?" + }, + { + "prediction": "Shouldn't this be `if (empty($this->getScopes())) {`?", + "reference": "@robinbonnes ~~Would you mind putting the array key and value on a new line - it makes it more readable as an array.~~ Never mind, see discussion below." + }, + { + "prediction": "I think this should be `cniNetIPam` or `cniIpamIP`", + "reference": "I've never seen us do this anywhere else - why here? Why not `address, meshAddress string`?" + }, + { + "prediction": "I think this should be `req.getContext().computeIfAbsent(JsonQueryConverter.contextKey, (k) -> new JsonQueryConverter());`", + "reference": "I think it's necessary only for the earlier \"dynamic\" approach. I suppose it's not necessary in the eager one." + }, + { + "prediction": "Why not just use `getBackendConfig` instead of `getBackendConfig`?", + "reference": "Same here than [there](#r26168925)" + }, + { + "prediction": "I don't think we need to change this to `String.format(\"Application ID (%s) contains invalid characters, will remove them.\", builder.id);`", + "reference": "Again we should think about moving this pattern to a static final field" + }, + { + "prediction": "I think this should be `easyadmin.controller_resolver` instead of `easyadmin.controller_resolver`", + "reference": "haven't been implemented the `__constructor` for `NormalizerConfigPass` ?" + }, + { + "prediction": "I think this should be `wrap_fields_to_lists` instead of `wrap_fields_to_lists`", + "reference": "Docstring is missing." + }, + { + "prediction": "Why is this change needed?", + "reference": "I don't see the reason of this return as it will stop loading in half because an error, thats bad imo. Or you load it all and report errors or you load nothing and terminate, the first is as it always was so I wouldn't change that." + }, + { + "prediction": "I think we should add a `AddPeers` to the `AddPeers` method.", + "reference": "change from AddPeer to AddPeers added a space in some occurrences" + }, + { + "prediction": "I think this should be `java.lang.reflect.InvocationTargetException` instead of `java.lang.reflect.InvocationTargetException`.", + "reference": "Can you please revert changes to files in the `thoughtworks` package? This is legacy code and we will eventually phase out RC." + }, + { + "prediction": "Why is this change needed?", + "reference": "Do you remove \"s\" from \"iptables\" to IPTable\" on purpose? I feel it should be \"IPTablesRules\"." + }, + { + "prediction": "Why is this change needed?", + "reference": "nit: not your problem - but I wonder if this should have been a \"ConstantResponseRpc\" - which takes a name and a value .... maybe a more reusable concept." + }, + { + "prediction": "Why is this needed?", + "reference": "These changes have been resolved upstream. We can revert changes to this file when synced." + }, + { + "prediction": "I think this should be `Partition` instead of `Partition`", + "reference": "The description predates this diff but I think we can come up with something more grounded." + }, + { + "prediction": "I think this should be `SnapshotAPISpec` and not `SnapshotSpec`", + "reference": "Let the Kind, APIVersion & Metadata follow the rules followed by Volume. What is the reason for a change for snapshot struct ?" + }, + { + "prediction": "Why not use `@SuppressWarnings(\"deprecation\")` instead of `@SuppressWarnings(\"deprecation\")`?", + "reference": "seems that we did not strong depend servo no need to keep it? change to another one?" + }, + { + "prediction": "I think this should be `ASSERT_EQ(size_count, blocks.size(), 0);`", + "reference": "Looks like this used to be UB before with an empty blocks and then calling `.second` on the `.front()`. Did it ever crash though? " + }, + { + "prediction": "I don't think this is needed anymore.", + "reference": "Sorry about the code churn here, reworking this use normal loops and async await made debugging far more straight forward. For example, if configuring the fail point fails you find out when stepping over that line vs having to look for the ultimate catch clause that handled it." + }, + { + "prediction": "I think we should use `util.buildArgsToString` instead of `util.buildArgsToString`", + "reference": "this is wrong and should be reverted" + }, + { + "prediction": "I think we should use `runtime.GOMAXPROCS(0)` instead of `runtime.GOMAXPROCS(0)`", + "reference": "I think you'll need to add an import for runtime, before you can merge this PR. (Presumably it was already there for something else when you were working on this, but has since disappeared.)" + }, + { + "prediction": "Why is SyncManager needed?", + "reference": "Unrelated typo fix." + }, + { + "prediction": "I think this should be `UserFromContext` instead of `RemoteUserCtxKey`.", + "reference": "I don't think we need an empty value here; any middleware that wants a default value for empty placeholders will pass in what that value should be." + }, + { + "prediction": "I don't think we need to change the host to `http://localhost:9001/`", + "reference": "Why was this changed?" + }, + { + "prediction": "Shouldn't `std::string*` be `std::string*`?", + "reference": "Compared to using traditional enums, I suggest to use `Status` or `StatusOr`, since they are more expressive and informative. Besides, isolating the definitions of error code of individual modules from the ones of the RPC interface is a good practice, isn't it?" + }, + { + "prediction": "I don't think we need a `@current_user` here.", + "reference": "Use the return of the conditional for variable assignment and comparison." + }, + { + "prediction": "I don't think we need to import `AnyKey` here.", + "reference": "just realised... This breaks things since there is not selenium types module, is there a PR for this?" + }, + { + "prediction": "I think this should be `github.com/iotexproject/iotex-address/address`", + "reference": "move to line 23 below" + }, + { + "prediction": "Why is this removed?", + "reference": "the first problem i found in the passcode change flow is that these two lines were happening in 'lock()' but not in 'showLockActivity' which is what the passcode change flow calls. I've just moved them to happen in that method." + }, + { + "prediction": "I think this should be `run_config.get(\"solids\", {})`", + "reference": "Doing this adds the actual resources themselves to the dictionary. I think for now, there's no way to know what the resource config provided may be, as we don't permit resource config on `build_solid_context`, so this part can be omitted." + }, + { + "prediction": "I think this should be `resubscription.fulfill` instead of `resubscription.fulfill`", + "reference": "1 trailing blank lines detected." + }, + { + "prediction": "I think this should be `node_require(\"./pv-tests\");`", + "reference": "I would personally prefer a filename without an abbreviation, a newcomer to the project wouldn't be able to translate \"pv\" to \"partition-value\"." + }, + { + "prediction": "I think this should be `if (parameters.Count() == 1 && parameters[0].ParameterType == typeof(IMvxBundle)) return;`", + "reference": "This check looks odd to me. I can't quite grok it. Why is it needed now? What's changed?" + }, + { + "prediction": "Why is this change needed?", + "reference": "This change is needed because otherwise the path was being changed from `path/store/jetstream` to `path/store/` and files stored differently after re-enabling." + }, + { + "prediction": "Why do we need to call `endSession` here?", + "reference": "is this necessary? doesn't `client.close()` imply all sessions will be ended?" + }, + { + "prediction": "I think this should be `import net`", + "reference": "Extra line, it's not needed here." + }, + { + "prediction": "I think we should use `Bolt::PAL.load_puppet` instead of `Bolt::PAL.load_puppet`", + "reference": "Is this OK to add in the spec helper? I need to call `Bolt::PAL.load_puppet` so that I can use the new `Bolt::PAL::Issues` module when verifying that plans forbid functions." + }, + { + "prediction": "I think this method should be called `mapChars(CharUnaryOperator, CharUnaryOperator)`.", + "reference": "or is it `i < length - back.length()`? `\"12345\".padTo(10, 'a')` should be `12345aaaaa`" + }, + { + "prediction": "I think this should be `custom_hooks_config=cfg.get('custom_imports', None)`", + "reference": "custom_imports -> custom_hooks" + }, + { + "prediction": "I don't think we need to check if `question[:text][0]` is present?", + "reference": "I don't get why are we baking new hash structures to represent phases, sections, questions. We are not only loosing the references defined in models but also we have to figure out keys and values for this newly structures." + }, + { + "prediction": "I think this method should be `super.openInput(String name, IOContext context, boolean preload)`", + "reference": "It's somewhat confusing that the `preload` parameter shadows the instance variable; maybe rename the instance variable to `globalPreload` or `preloadDefault` or so to prevent future confusion?" + }, + { + "prediction": "I think this should be `name` instead of `name`", + "reference": "Are we setting these values anywhere?" + }, + { + "prediction": "Why is this needed?", + "reference": "This has to be in front of all other includes" + }, + { + "prediction": "why not use `pStart->calcImplicitValence(false)` here?", + "reference": "These changes make sense to me. @ricrogz : you wrote (I think ) the original version of this as part of #2553 Do you see any reason to not make the change?" + }, + { + "prediction": "`window.location.pathname` should be `window.location.pathname`", + "reference": "`window.self === window`" + }, + { + "prediction": "Why is this change needed?", + "reference": "maybe we should keep one test case for ErrFileNotExists and update only one file for ErrWorkspaceNotFound?" + }, + { + "prediction": "Why do we need this?", + "reference": "Please add `ConsigureAwait(false)` here and on `ShutdownAsync` below." + }, + { + "prediction": "I think this should be `augvar += 1` instead of `augvar += 1`", + "reference": "Isn't this a false positive? Why are we reporting `unused-variable` on a `del` operation with a `undefined-variable`." + }, + { + "prediction": "Why is this change needed?", + "reference": "Is it correct that `SessionDto` should be here?" + }, + { + "prediction": "I think this should be `add-meter-entry` instead of `add-meter-entry`", + "reference": "sorry I missed this earlier. We no longer use ovs-ofctl for flow programming AFAIK, why not add this support to ofnet / libOpenflow?" + }, + { + "prediction": "I think this should be `true` instead of `false`", + "reference": "Make this consistent with the other definition please `'false'` vs `false`" + }, + { + "prediction": "I think this should be `Exit(int)` instead of `Exit(int)`", + "reference": "I think this is a good way to do it. :+1:" + }, + { + "prediction": "why is this changed?", + "reference": "Why this is needed?" + }, + { + "prediction": "why not use `NewConnTrackOvsAppCtlClient` instead of `NewConnTrackOvsAppCtlClient`?", + "reference": "Can we define this directly in the function `NewConnTrackOvsAppCtl` instead of passing this as an argument?" + }, + { + "prediction": "I think this should be `//nolint:unparam` instead of `//nolint:unparam`", + "reference": "False positives are annoying..." + }, + { + "prediction": "Shouldn't this be a `SuffixGeneratingServiceInterface`?", + "reference": "Is the infrastructure layer an appropriate one? I don't think so tbh, more like an application, or even a domain one." + }, + { + "prediction": "I think this should be `static readonly ulong PowerOfTwoToHighByte = PowerOfTwoToHighByte();`", + "reference": "Why is this required to turn the static readonlies into jitted const? Is this a bug in the jitter?" + }, + { + "prediction": "I think we should use `cls_name` instead of `exc_type.__name__`", + "reference": "feel free to make this a \"typed\" named tuple (overriding __new__) if you are feeling frisky" + }, + { + "prediction": "I don't think this is needed anymore.", + "reference": "Would use parenthesis to explicitly state the associations of operands ```js const MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || ((2 ** 53) - 1)" + }, + { + "prediction": "Why is this change needed?", + "reference": "The bug was caused by this order change in the last refactoring." + }, + { + "prediction": "I think this should be `from docker.utils import kwargs_from_env`", + "reference": "This is already imported as docker. You're safe to simply use `docker.utils.kwargs_from_env()` below." + }, + { + "prediction": "I think this is a bit confusing, but I think it would be better to use `action.SealedEnvelope` instead of `action.SealedEnvelope`.", + "reference": "No need to add this fun. Using RunnableActionsBuilder#AddActions instead" + }, + { + "prediction": "I don't think we need to do this.", + "reference": "I don't think it's possible to do this for hooks " + }, + { + "prediction": "I think it would be better to use `wait(sec * 1000);` instead of `wait(sec * 1000 + 1);`", + "reference": "wait(1ms) when sec=0. wait(0ms) waits forever so that's why this is better." + }, + { + "prediction": "(style) code indent should use tabs where possible", + "reference": "Do we need `domain` and `so_reuseport` now that we open new sockets immediately after calling `add_listener`?" + }, + { + "prediction": "I think this should be `@throws IOException`", + "reference": "The formatting seems different from the rest of the code" + }, + { + "prediction": "I think this should be `fmt.Errorf(\"%v is not a valid zone\", zone)`", + "reference": "What about calling this package \"parameters\"? utils\\parameters are utils related to parameters." + }, + { + "prediction": "Why did you change this test to `assert_topic_slug(topic_slug)`?", + "reference": "Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping." + }, + { + "prediction": "I think this should be `-h` instead of `-V`.", + "reference": "what is the actual difference here?" + }, + { + "prediction": "Shouldn't this be `explodedURI[1].split(\"&\")`?", + "reference": "Parsing URLs is hard. Any fixes should avoid manually parsing the URL." + }, + { + "prediction": "I think this should be `@group_level = @group_level > 0 ? @group_level - 1 : @group_level`", + "reference": "This is a private api, it doesn't need to return anything so `@group_level -= 1 if @group_level > 0` is preferred." + }, + { + "prediction": "I think this should be `key_type.GetByteStride(m_process);` instead of `value_type.GetByteStride(m_process);`.", + "reference": ".GetValueOr(0) ... but really, shouldn't m_value_strife also be optional?" + }, + { + "prediction": "Why is this `Record`?", + "reference": "Working around a possible limitation in the JSDoc plugin's typescript syntax checking. This means the same thing" + }, + { + "prediction": "I think this should be `_sync` instead of `_buffer`", + "reference": "Should be readonly" + }, + { + "prediction": "Why do we need this?", + "reference": "I'm not going to stop accepting the PR, but I really hate these artifacts getting dropped in the Python code just to stop things like coverage checkers and linters from complaining." + }, + { + "prediction": "I think this should be `2010`", + "reference": "FYI modifying an existing file generally doesn't invalidate the copyright date. The date here is when the copy right _begins_, so moving it later is arguably misleading-it still applies. Not a big deal, just something I've seen a few times in passing." + }, + { + "prediction": "Why is this change needed?", + "reference": "Because the default value of allowedOrigins is * (all origins), so it isn't necessary to set again at all." + }, + { + "prediction": "Shouldn't this be `Preconditions.checkNotNull(warehouseLocation, \"Warehouse location is not set: hive.metastore.warehouse.dir=null\");`?", + "reference": "Style: indentation should be 4 spaces (2 indents) from the start of `Preconditions`." + }, + { + "prediction": "I think this should be `array(ClassMetadataInfo::ONE_TO_MANY, ClassMetadataInfo::MANY_TO_MANY);`", + "reference": "I don't know why I suggested a html attribute at first (my bad), or maybe you think it makes sense. Otherwise, what about a simple class ?" + }, + { + "prediction": "Do we need this to be `UoE`?", + "reference": "Probably want something more generic here like 'DMPRoadmap' so that other installations aren't using UoE by default." + }, + { + "prediction": "I think this should be `InternalLogger.Error(exception, \"Failed to add type '{0}'.\", exception);`", + "reference": "Must this not change to `MustBeRethrownImmediately`?" + }, + { + "prediction": "Why remove this?", + "reference": "Can it be pointer?" + }, + { + "prediction": "Why is this change needed?", + "reference": "Not related to this issue but this condition seems weak." + }, + { + "prediction": "Why do we need to check if the MARC field is set or not?", + "reference": "I think this might be a little more readable in two lines as:
     $preferredMarcField = $this->mainConfig->Record->preferredMarcField ?? 'fullrecord'; $marc = trim($this->fields[$preferredMarcField] ?? $this->fields['fullrecord']); 
    " + }, + { + "prediction": "I think this should be `import numpy`", + "reference": "does this still allow this file to be used with Python installations that don't have numpy?" + }, + { + "prediction": "I think we should use `\\/apiv$1` instead of `\\/apiv$1`", + "reference": "what about 0? Version probably can' start with 0, but v10 is theoretically possible." + }, + { + "prediction": "I think this should be `Path.IsPathRooted(Path.GetCurrentDirectory(), Path.Directory.GetCurrentDirectory(), Path.Directory.GetCurrentDirectory(), Path.Directory.GetCurrentDirectory(), Path.Directory.GetCurrentDirectory(), Path.Directory.GetCurrentDirectory(), Path.Directory.GetCurrentDirectory(), Path.Directory.GetCurrentDirectory(), Path.Directory.GetCurrentDirectory(), Path.Directory.GetCurrentDirectory(), Path.Directory.GetCurrentDirectory(), Path.Directory.GetCurrentDirectory());`", + "reference": "Usually we consider APIs that have filesystem interactions to be part of IFileHelper, this would allow us to inject a testable implementation easily. `Path.IsRootedPath` doesn't access the file system. It is string comparison I believe." + }, + { + "prediction": "I don't think we need to change the status to \"Init\" here.", + "reference": "Do we need to use quote? Why not `status: Init`" + }, + { + "prediction": "Why did you remove this?", + "reference": "Nice catch ! I don't think I would have caught that, did you search the whole code base for pre-existing functions ?" + }, + { + "prediction": "I think this test should be `testClusterDeploymentWithRegionLabel` and not `testClusterDeploymentWithoutRegionLabel`", + "reference": "Remove this line." + }, + { + "prediction": "Why is this removed?", + "reference": "This is no longer called in any of our unit tests, right?" + }, + { + "prediction": "I think we should use `uint64` instead of `uint32` here.", + "reference": "I think typically K8s APIs will use `int32` and not `uint32`. I think we should keep it consistent with the rule `Priority` above. I believe that the rationale for using `int32` in general is: * some programming languages don't have native support for unsigned integers * it's easier to catch sign errors with signed integers, depending on the programming language (it it's negative, it's clearly an error but if it's a very large number, it could be normal or it could be a negative number overflow)" + }, + { + "prediction": "Shouldn't this be `index: true`?", + "reference": "If you end up changing grant to an association, this may need to change to a reference to enforce the foreign_key `add_reference :plans, :grant`" + }, + { + "prediction": "I think this should be `winImageSVG` instead of `winImageSVG`", + "reference": "This won't work because `notification` comes from an API response here. I think this would be the same as the change to `Alert` where it would get `SmallSunSVG`." + }, + { + "prediction": "I think this should be `/etc/ecs`", + "reference": "This is not checked below?" + }, + { + "prediction": "I think this should be `outputs[*output.OutputKey] = *output.OutputValue` instead of `outputs[*output.OutputKey] = *output.OutputValue`", + "reference": "Will this ever return a \"Stack does not exist\" error? Should we handle it silently here rather than making higher level packages do error checking?" + }, + { + "prediction": "I don't think we should be using `get_package_registry` here.", + "reference": "minor: at this scale, one import per line reads better" + }, + { + "prediction": "I think this should be `{\\\"org\\\": []}` instead of `{\\\"org\\\": []}`", + "reference": "Should remove the default templates as well." + }, + { + "prediction": "I think this should be `var config = require('./webpack.dev.js');`", + "reference": "Why not `let`?" + }, + { + "prediction": "I think this should be `logStartupInfo(true)` instead of `logStartupInfo(false)`", + "reference": "ns -> DNS My first reading was this is referring to System.nanoTime and thought hrm?" + }, + { + "prediction": "I think it would be better to add a `vestigial_param` to the `ScheduleInstigatorData` object, as it will be removed in the future.", + "reference": "is there a reason not to remove the param now? I think the serdes will still work?" + }, + { + "prediction": "I think this test should be `assertAlmostEqual(bst.upper_bound(), -3.13, places=2)`", + "reference": "`places=2` seems to be very poor comparison. Do you have any thoughts why is it fail with more strict checks?" + }, + { + "prediction": "I think this should be `logger.info(\"Project \" + name + \" doesn't exist in cache, fetching from DB now.\");`", + "reference": "should we make level debug? Also just FYI, with debug level, we can add more detailed logging for better debuggability without concerning overwhelming logging message" + }, + { + "prediction": "why not use `SparseMatrix` here?", + "reference": "I needed to add this import for Sphinx to inspect C++ runtime objects properly. This should be the only code change in this PR." + }, + { + "prediction": "I don't think we need to import these, but I think it would be better to use `pyramid.events.ResourceChanged` and `pyramid.events.Subscriber` as well.", + "reference": "Changes in this file aren't related to the PR, are they? You took the opportunity to change the group deletion to using the subscriber too?" + }, + { + "prediction": "I think this should be `truncate(16)` instead of `truncate(16)`", + "reference": "I'd probably move this into `MetricsConfig` as a private method. Seems like we only use it there." + }, + { + "prediction": "I think this should be `dependency` instead of `lint`.", + "reference": "Not clear here what you mean with this list" + }, + { + "prediction": "I think this should be `@SuppressWarnings(\"checkstyle:InnerAssignment\")` instead of `@SuppressWarnings(\"checkstyle:InnerAssignment\")`", + "reference": "Curious, is there a way we can get around this without suppressing?" + }, + { + "prediction": "Why is this needed?", + "reference": "I don't think we this field in session, it's a serial number for proposal but not unique index itself" + }, + { + "prediction": "I think this should be `[Benchmark(Baseline = true, OperationsPerInvoke = RequestParsingData.InnerLoopCount * RequestParsingData.Pipelining)]`", + "reference": "Can't have two benchmarks with `Baseline = true`" + }, + { + "prediction": "I think this should be `config.web.client_id` or `config.web.client_secret`", + "reference": "Same here: Empty line before and no `Internal dependencies` docblock (mandatory anyway once #217 lands)." + }, + { + "prediction": "I think this should be `.pipe.yaml` instead of `.pipe.yaml`", + "reference": "sorry, the default value for this field is no longer allowed?" + }, + { + "prediction": "I think we should use `File.Create(path, 1, FileOptions.DeleteOnClose)` instead of `File.Create(path, 1, FileOptions.DeleteOnClose)`", + "reference": "Why does this work? I'd've expected that an admin could create a file anywhere." + }, + { + "prediction": "I think this should be `config[:platform] || 'x64'` instead of `config[:platform] || 'x64'`", + "reference": "falling back to `x64` seems like a really bad idea given that the VS templates default to x86 these days." + }, + { + "prediction": "Why is this change needed?", + "reference": "Bit surprised by this. I would have thought either you want to set it for both mpl and bokeh...or alternatively it was only ever meant for bokeh and was always wrong?" + }, + { + "prediction": "I think this should be `if node.as_string().startswith('from .'): importedname = '.' + importedname if node.as_string().startswith('from.'): importedname = '.' + importedname if node.as_string().startswith('from.'): importedname = '.' + importedname if node.as_string().startswith('from.'): importedname = '.' + importedname if node.as_string().startswith('from.'): importedname = '.' + importedname if node.as_string().startswith('from.'): importedname = '.' + importedname if node.as_string().startswith('from.'): importedname = '.' + importedname if node.as_string().startswith('from.'): importedname = '.' + importedname if node.as_string().startswith('from.'): importedname = '.' + importedname if node.as_string().startswith('from.'): importedname = '.' + importedname if node.as_string().startswith('from.'): importedname = '.' + importedname if node.as_string().startswith('from.'): importedname = '.' + importedname else importedname", + "reference": "Check modname instead, but only if it's a ImportFrom." + }, + { + "prediction": "Shouldn't this be `write.metadata.delete-after-commit.enabled`?", + "reference": "How about `write.metadata.previous-versions-max`? No need to refer to these as a log." + }, + { + "prediction": "I think this should be `BOLT_WINDOWS` instead of `APPVEYOR_AGENTS`", + "reference": "We generally do this via tags in the Rakefile, not separate environment variables." + }, + { + "prediction": "I think this should be `POST` instead of `POST`", + "reference": "Update after command rename" + }, + { + "prediction": "`self._predictedFieldName` should be `self._input[self._predictedFieldName]`", + "reference": "`if X not in Y:`" + }, + { + "prediction": "I think we should be able to set the default value to 10, and then set the default value to 10.", + "reference": "Do we know why the pool is exhausted? In the past, we had a few leaks in the Spark catalog code which led to this. It can be also a valid use case too if we simply need a larger pool." + }, + { + "prediction": "I think this should be `if options[:verbose]` instead of `if options[:debug]`", + "reference": "Logging in Bolt still seems to be a little messy. I think this is more correct than what I had before, but made sure I wouldn't overwrite an existing level. And if console logging gets more options, both debug and verbose need to be fixed here." + }, + { + "prediction": "I think this should be `std::string::npos` instead of `std::string::npos`", + "reference": "This could be simplified (if including is fine): `auto address_string = boost::algorithm::erase_first_copy (address.to_string (), \"::ffff:\");`" + }, + { + "prediction": "I think this should be `LOG.info(\"Registered a node \" + proxy);`", + "reference": "This is wildly unhelpful to users --- they need to know when a proxy has been registered." + }, + { + "prediction": "I think we should use `.merge(PAPERCLIP_STORAGE_OPTIONS)` instead of `.merge(PAPERCLIP_STORAGE_OPTIONS)`", + "reference": "Why do we need `do_not_validate_attachment_file_type` is we're doing it in the previous line?" + }, + { + "prediction": "Why not just call `webviewHelper.loadLoginPage()` here?", + "reference": "Loading login page right away only for the regular use case." + }, + { + "prediction": "I don't think this is a good idea, but I'm not sure if it's a good idea to do this.", + "reference": "IIRC this flag disables re-rendering entirely (`s/recursively //`)" + }, + { + "prediction": "I don't think we need to change the `location.href` to `index.html`", + "reference": "Did you test this redirect? @thornbill mentioned it might need `web` at the front, but if this works fine I'd rather leave it this way." + }, + { + "prediction": "Why was this removed?", + "reference": "FYI, this returned `StringValues` which is a value type (aka can never be null)." + }, + { + "prediction": "I think we should use `c.parseConvert(expr.Reserve.Type(), types.Typ[types.Uintptr], sizeHint, expr.Pos())` instead of `c.parseConvert(expr.Reserve.Type(), types.Typ[types.Uintptr], sizeHint, expr.Pos())`", + "reference": "Oh no, that's a bug." + }, + { + "prediction": "I think this should be `ApplicationError` instead of `ApplicationError`.", + "reference": "Let's leave a note in CHANGES to replace this with an error metadata struct or interface, unless it would be less effort overall to take a run at it in this change." + }, + { + "prediction": "I think this should be `[mapTo]`.", + "reference": "The changelog entry does a better job of explaining how this is used than this description. In particular, this says that you need to set `mapTo` if the underlying name is different, but not that `mapTo` *is* the underlying name." + }, + { + "prediction": "I think this should be `go-sqlite3` instead of `go-sqlite3`", + "reference": "These imports will probably need to be refactored so they aren't here. That applies for all of the database drivers. The reason for this is because we sometimes want a driver to be available and sometimes we don't. When we include this library in our cloud offering, the sqlite3 connector needs to be gone because it's a security vulnerability and there's no use case for it in a cloud environment. But for flux itself, I can see how sqlite3 would be really useful and so I like this change. But this import needs to only exist within the tests and within the `cmd/flux` package. It cannot be here." + }, + { + "prediction": "Why do we need to use `$this->relationModel->table` instead of `$this->relationModel->table`?", + "reference": "We can use `getQualifiedKeyName` here instead. I will update." + }, + { + "prediction": "I don't think we need to change this to `x-diskcopy`", + "reference": "Could you clarifty why some of those are removed?" + }, + { + "prediction": "I think this should be `status.Error(codes.Unimplemented, \"\")`", + "reference": "`ctx` is unused in ListDeploymentConfigTemplates" + }, + { + "prediction": "I don't think we need to link to this image, but I don't think we need to link to this image.", + "reference": "nice to see the usage of block for a more readable link name" + }, + { + "prediction": "(style) line over 80 characters", + "reference": "Can these use `static_cast` instead? Other than that, it's fine." + }, + { + "prediction": "Why is this removed?", + "reference": "This output is only present when `DEBUG=True`. Does it really bother so much?" + }, + { + "prediction": "Why did you remove this?", + "reference": "I think it should pass wallet transaction as well, otherwise there will be 2 wallet read transactions in 1 threads (next in scan_receivable)" + }, + { + "prediction": "Why is this change needed?", + "reference": "RDKit::Utils is now in the namespace for localeswitcer... We could change it to something else." + }, + { + "prediction": "I think this should be `order = [(levs, method) for levs, method in order]`.", + "reference": "@itholic, can we fix it in `_normalize_keyword_aggregation`?" + }, + { + "prediction": "Layout/EmptyLinesAroundClassBody: Extra empty line detected at class body beginning.", + "reference": "It seems like we have the main plan in the database but the downgrade plan in the code. Probably okay for now, but as our thinking of how downgrades/plans develops we may want to consolidate." + }, + { + "prediction": "I think this should be `WebDriverException.scheduleIpHostResolving();` instead of `WebDriverException.scheduleIpHostResolving();`.", + "reference": "we shouldn't add a bunch of static initializers 'everywhere' in the code. Probably just one would be good, during the construction of the 'RemoteWebDriver' class." + }, + { + "prediction": "I think this should be `clef-signer-enable` and `clef-signer-endpoint`", + "reference": "do we need both flags? maybe infer that `clef-signer-enabled` whenever `clef-signer-endpoint` is defined?" + }, + { + "prediction": "I think this should be `scss|css` instead of `css`", + "reference": "Do we need this? I didn't see css files (only scss)." + }, + { + "prediction": "I think it would be better to use `settings.REMOTE_EXCLUDE_LOCAL` instead of `settings.REMOTE_EXCLUDE_LOCAL`", + "reference": "This feels like a weird `if not ... or not` to me. Can you talk out the intent here?" + }, + { + "prediction": "I think this should be `@annualized_payment = current_user.annualized_payment` and `@discounted_annual_payment = current_user.discounted_annual_payment`", + "reference": "Align the parameters of a method call if they span more than one line." + }, + { + "prediction": "Why is this change needed?", + "reference": "`@package *` can be removed as well." + }, + { + "prediction": "Align the parameters of a method call if they span more than one line.
    Prefer single-quoted strings when you don't need string interpolation or special symbols.
    Prefer single-quoted strings when you don't need string interpolation or special symbols.
    Prefer single-quoted strings when you don't need string interpolation or special symbols.
    Prefer single-quoted strings when you don't need string interpolation or special symbols.", + "reference": "@ScottGarman is there a reason that `redhat_fips` needs to be a beaker platform? Why can't it be another platform that beaker just understands as `redhat`?" + }, + { + "prediction": "why is this removed?", + "reference": "Where is the other place?" + }, + { + "prediction": "I don't think we need to import the `List` class here.", + "reference": "Are you subclassing from `UserList` instead of `list` to satisfy some constraint of Jython? My main concern here is that this is a subtle breaking change to the API because `UserList` is not a subclass of `list`. This has the unfortunate side effect of breaking any user that is using `isinstance` checks to see if a `ResultSet` is a `list`." + }, + { + "prediction": "Use the new Ruby 1.9 hash syntax.
    Prefer single-quoted strings when you don't need string interpolation or special symbols.
    Prefer single-quoted strings when you don't need string interpolation or special symbols.
    Prefer single-quoted strings when you don't need string interpolation or special symbols.
    Prefer single-quoted strings when you don't need string interpolation or special symbols.
    Prefer single-quoted strings when you don't need string interpolation or special symbols.", + "reference": "We can DRY the above three functions" + }, + { + "prediction": "I think this should be `Collectors.toListAndThen(Collectors.toListAndThen(Collectors.toListAndThen(Collectors::toList))`", + "reference": "Only no good is good code. Nice that you were able to remove all this duplicate stuff!" + }, + { + "prediction": "I think this should be `RetrySettings` instead of `RetrySettings`", + "reference": "Looking at the code, it seems very odd that this method even exists in the SurfaceNamer, since it is only implemented and used in the PhpSurfaceNamer, and in fact the RetrySettings class name is hardcoded elsewhere. WDYT of just removing this method from SurfaceNamer and PhpSurfaceNamer?" + }, + { + "prediction": "I think this should be `LoadSaver` and `SaveSaver`", + "reference": "these interfaces are defined twice. we should use only one and have it in `storage` package maybe" + }, + { + "prediction": "I think this should be `globalModelsStorage`", + "reference": "This is the wrong context for usage of `global` keyword. It need only be used inside functions." + }, + { + "prediction": "I think this should be `if (targetType.isAssignableFrom(child.getClass())) {`", + "reference": "this change should be described in the changelog. I'll update it when merging if nothing else arises." + }, + { + "prediction": "Why is this needed?", + "reference": "Just to stay consistent with naming let's call it CreateGRPCDispatcherForOutbound. Also rename 'CreateDispatcherForOutbound' to 'CreateTChannelDispatcherForOutbound'" + }, + { + "prediction": "I think this should be `LOG.finest(String.format(\"Pulling %s:%s\", name, tag));`", + "reference": "This will always need to be displayed to users." + }, + { + "prediction": "I think this should be `str(s)` instead of `str(s)`", + "reference": "This looks very much like `repr` now (we miss 127 though) - maybe just do `repr(x)` + strip outer parantheses?" + }, + { + "prediction": "I think this should be `*taskInfo.VisibilityTimestamp` instead of `*taskInfo.VisibilityTimestamp`", + "reference": "I don't see this field is set in task_generator.go. worth to double check if we put the timestamp when creating replication tasks." + }, + { + "prediction": "I think this should be `self.s.state === Cursor.CLOSED || self.isDead()`", + "reference": "nit: I prefer the space before and after this check to make it very easy to scan when reading through code" + }, + { + "prediction": "Why do we need this?", + "reference": "should users also do a triple-flush?" + }, + { + "prediction": "Why is this removed?", + "reference": "What is the implication of removing these from the test? I thought the idea was to have all types supported by `docstore` here, and do things in the drivers to make them support them (e.g., list of size 2 for complex). If you're removing them because firestore doesn't have native support, then we're going to end up only testing the intersection of all types supported by all drivers; we need a better way." + }, + { + "prediction": "Why is this change needed?", + "reference": "Let's also adjust the somewhat weird type signature here as well. This probably should be `typing.Any` instead of `str` in the last line if we intend to support ints." + }, + { + "prediction": "I think this should be `_ = os.RemoveAll(dir)` instead of `_ = os.RemoveAll(dir)`", + "reference": "The body can just be `os.RemoveAll(dir)`" + }, + { + "prediction": "I think this should be `castToLong(value)` instead of `castToDouble(value)`", + "reference": "Is this covered by regression tests? Also you might make a patch onto refactor branch." + }, + { + "prediction": "I think this should be `SolrRequestType.QUERY.toString()` instead of `SolrRequestType.QUERY.toString()`", + "reference": "This is maybe more of an admin request? WDYT?" + }, + { + "prediction": "I think this should be `Map toMap(Function> f)`", + "reference": "Here I thought of `toHashMap` and later add `toTreeMap`. But I start to see, what you may have in mind. Alternatively we could provide a `toMap` and `toSortedMap`, which is great, too. On the other hand is always good to be as specific as possible. What do you think?" + }, + { + "prediction": "Why is this change needed?", + "reference": "maybe localProjectAppNames? Just a thought." + }, + { + "prediction": "I think this should be `Blockly.BlockSvg.NOTCH_HEIGHT` instead of `Blockly.BlockSvg.NOTCH_HEIGHT`.", + "reference": "This isn't new, but getHeightWidth is now defined in block_svg.js, block_render_svg_horizontal.js, and block_render_svg_vertical.js. One of these should be unnecessary." + }, + { + "prediction": "Why is this change needed?", + "reference": "I can't see any reason why this would fix a failure in `a.True(confirmed, \"txgroup\")`. We might have an issue elsewhere, but increasing the wait time wouldn't help." + }, + { + "prediction": "Do we need to do this? I think it's better to use `/etc/cron/sysstat` instead of `/etc/cron.d/sysstat`?", + "reference": "This section needs to be modified; crontab format differs between OS releases (Debian and CentOS, at least)." + }, + { + "prediction": "I think this should be `True` or `False`.", + "reference": "if we think this is likely to be augmented with a additional 'run coordination' features or configuration in the future, we could make it an object of some kind instead (or an enum, if we think there may be other resume modes in the future besides just on/off). Just imagining 6 months in the future, it would be unfortunate if there were 7 new args here as the feature gets more complex" + }, + { + "prediction": "why not use `affine_grid_generator`?", + "reference": "`affine_grid` and `grid_sample` are currently unused. We may remove it from `ops/__init__.py` to speedup the loading of mmdet." + }, + { + "prediction": "I think this should be `protocol.DefaultAttackTimeout`", + "reference": "Is there a reason why you need to support negative `AttackTimeout`? Why not just throw an error?" + }, + { + "prediction": "I think we should use `from pyspark.sql.functions as F` instead of `from pyspark.sql.functions as F`", + "reference": "nit: an unnecessary change?" + }, + { + "prediction": "I think this should be `RequestStream` instead of `RequestStream`.", + "reference": "Is trailer parsing something we have to do in this PR? It would be really helpful to separate stuff like this into smaller, self-contained PRs." + }, + { + "prediction": "I think this should be `vol.wait_for { ready? }` instead of `vol.wait_for { ready? }`.", + "reference": "Any chance of a wait-forever situation here? Is there a reasonable timeout?" + }, + { + "prediction": "why do we need to rollback blockchain?", + "reference": "line is 165 characters" + }, + { + "prediction": "I think we should wait for the whole cycle of the namespace cache to be sure that our namespaces are loaded. I think we should wait for the whole cycle of the namespace cache to be sure that our namespaces are loaded, and then wait for the whole cycle of the namespace cache to be sure that our namespaces are loaded.", + "reference": "is this for cross DC case?" + }, + { + "prediction": "I don't think we need to change the `mmdet.ops` package to `mmcv.ops`.", + "reference": "Remove this line." + }, + { + "prediction": "I don't think we need this TODO.", + "reference": "Maybe it would make sense to use `webmVideoCodecs` here and just append `vpx`. I'm not sure if av1 is currently supported when transcoding to webm though. It looks like it can be included in the mp4 transcoding profile now." + }, + { + "prediction": "I think this is a good idea to remove the masters and primaries.", + "reference": "Interestingly, this has nothing to do with replication, no clue what this means here" + }, + { + "prediction": "I think this should be `if len(r.h.ResolvedWriters()) > 1 {`", + "reference": "Is that because we don't provide a UI for these?" + }, + { + "prediction": "I think this should be `internal/errors` instead of `internal/errors`", + "reference": "Standard is either to use `HappyPath` (CamelCase) or `happy path` (lowercase sentence). I usually prefer the latter." + }, + { + "prediction": "Why is this change needed?", + "reference": "instead of using blkMemDao, we could generate a blockMemDao, and then use it as the second parameter." + }, + { + "prediction": "I think this should be `isUnifiedTopology` instead of `isUnifiedTopology`", + "reference": "nit(2/10): `topology && topology.description != null`;" + }, + { + "prediction": "I think this should be `import sys`", + "reference": "why the space? I may not know all the style conventions." + }, + { + "prediction": "I think this should be `assert.isFalse(checks.dlitem.evaluate.apply(null, checkArgs));`", + "reference": "Should be \"should fail if the **dt element** has a parent
    with a changed role\"" + }, + { + "prediction": "Do we need this?", + "reference": "Just to be clear: 1. This is required for compression, right? 2. This won't actually result in our dynos serving the assets, since they'll be served via the CDN, correct?" + }, + { + "prediction": "Why did you remove this method?", + "reference": "not sure about removing this ping @Soullivaneuh" + }, + { + "prediction": "I think we should add `allow_nil: true` to the `allow_nil` method.", + "reference": "Put a comma after the last parameter of a multiline method call." + }, + { + "prediction": "I think this is a good idea, but I think it would be better to have a test for `err == nil` instead of `err == nil`.", + "reference": "If instance could not be found when the provider id is set, `findInstance()` returns `ErrInstanceNotFoundByID` error. So that during reconcileNormal(), we don't create a new instance. In `reconcileDelete()`, when ErrInstanceNotFoundByID is seen, deletion continues to clean up even if the instance is gone (may be manually deleted)." + }, + { + "prediction": "I think this should be `_idxLastSelected` instead of `_memory`.", + "reference": "I would recommend making this a Tuple<ReplicateValue, IColllection<object>> You only need to convert things to strings if you need to persist them in Settings or something. If they only need to live for the life of dialog, you can keep everything as objects. You can use \"null\" for the ReplicateValue for when they have not chosen a property." + }, + { + "prediction": "Why is this change needed?", + "reference": "I think there is no point providing action key here, as it will be called specifically, rather than randomly" + }, + { + "prediction": "Why is this needed?", + "reference": "`XUnitIntegration` doesn't need to cache this anymore." + }, + { + "prediction": "I think this should be `files[\"themes/*\"].ignore = {\"631\", \"631\"}`", + "reference": "Can we have something line `# noqa` there instead? I think it's fine like this though." + }, + { + "prediction": "I don't think we need to do this, but I think it's better to use `Helpers.uriish? images_base` instead of `Helpers.uriish? images_base`", + "reference": "this variable is used in both branches so I've decided to declare it above" + }, + { + "prediction": "I think we should remove the `FLAG_ACTIVITY_REORDER_TO_FRONT` flag here.", + "reference": "`setFlags()` overwrites the previous flag, we should be using `addFlags()` to append flags." + }, + { + "prediction": "I think this should be `ctx.Repo.Mirror = models.GetMirror(repo.ID)`", + "reference": "Need `return` after this." + }, + { + "prediction": "Why not use `ResponseTrait` here?", + "reference": "I would say we should not use the `CacheableResponseTrait` within the `JsonResponseTrait`. Traits within traits tend to lead to a bad developer experience as it can be really hard to find the actual method you're seeing in the implementing class, and in this case it looks like we're using _both_ the cacheable and the JSON traits in the same controller, so it's redundant anyway. I'd recommend just removing that use statement from `JsonResponseTrait` and make sure `ChaceableResponseTrait` is included everywhere it's needed specifically." + }, + { + "prediction": "Why is this change needed?", + "reference": "This change is unhelpful: it precludes users from knowing which ports are being used for what purpose within the system." + }, + { + "prediction": "I don't think we need a `find_or_create_by` method here, but I think it would be better to use `find_or_create_by` instead of `find_or_create_by`.", + "reference": "Whoa, we weren't doing this before?? Derp." + }, + { + "prediction": "I think this should be `flow.CopyActionsToNewFlow(flow)`", + "reference": "I'm surprised we didn't go with something like `flow := f.Flow.Copy()` to take care of all the fields at once, but as long as it works it's good enough for me" + }, + { + "prediction": "Why is this change needed?", + "reference": "We would like this code to run, even when `config.XDPEnabled` is false, so that Felix can clean up its own XDP state after a restart." + }, + { + "prediction": "I think this should be `ASTAnyTypeDeclaration` instead of `ASTAnyTypeDeclaration`.", + "reference": "I'd declare this field `qualifiedName` private to hide it. Unless it really needs to be modified from somewhere else... (e.g. unit tests..), but then, we should find a solution, where this field can stay private." + }, + { + "prediction": "I think this should be `const http2AuthorityPseudoHeader = \"http2-authority-pseudo-header\"`", + "reference": "is this exhaustive? or rather, any psudo header started with `:` is un-parsable/invalid in HTTP/1 right?" + }, + { + "prediction": "Why is this change needed?", + "reference": "Is this change implying something or just seems fit b/c regardless of outcome the sessions should still be length 1?" + }, + { + "prediction": "I think it would be better to use `configProto.getTemplates(0).getLanguageProvider()` instead of `configProto.getTemplates(0).getLanguageProvider()`", + "reference": "Maybe throw an exception if there is more than one, so that discovering the lack of support is easier when someone tries to use it down the road." + }, + { + "prediction": "I think this route should be `/new-languages-thanks` and `/new-language-confirmations`", + "reference": "Prefer single-quoted strings when you don't need string interpolation or special symbols." + }, + { + "prediction": "I think this should be `true` instead of `false`?", + "reference": "I feel the name of this function could be better, conveying it's a predicate. Something like `HasDockerTestEnvironment` or `CanRunLocalServerTests`, etc." + }, + { + "prediction": "Why is this change needed?", + "reference": "This seems unrelated to your PR, how did this end up in here?" + }, + { + "prediction": "I think we should use `StringUtils.toLowerCase(username)` instead of `StringUtils.toLowerCase(username)`", + "reference": "Is `username` expected to be case insensitive?" + }, + { + "prediction": "Why are these changes needed?", + "reference": "File is not `gofmt`-ed with `-s` (from `gofmt`)" + }, + { + "prediction": "Why not use `TimeTracker` instead of `TimeTracker`?", + "reference": "Is there any point to the deprecation? If someone was using these APIs, can they continue to do so in any meaningful fashion now that you've disconnected them from the PMD internals? Normally \"compiles but doesn't work\" is considered a bug. " + }, + { + "prediction": "Why is this change needed?", + "reference": "You can remove the `QItemSelection` import in this file now." + }, + { + "prediction": "I think this should be `if (spaceLock.try_lock_shared() && spaceLock.try_lock_shared() && !spaceLock.unlock_shared()) {`", + "reference": "Use `std::shared_lock` and `std::try_to_lock_t`. BTW. Why we fail on contention?" + }, + { + "prediction": "I think this should be `[\".jsx\", \".js\"]`", + "reference": "Not sure what this actually does, but do you need to add `\"\"` here? Or does `[\".jsx\", \".js\"]` work too?" + }, + { + "prediction": "I think this should be `github.com/iotexproject/iotex-address/address`", + "reference": "let's group imports in the order: std third party first party" + }, + { + "prediction": "Why is this change needed?", + "reference": "So the tests run only when the db exists? Else everything passes?" + }, + { + "prediction": "I think this should be `io.Writer` instead of `io.Closer`", + "reference": "`Remove` is unclear. It seems the point is to allow the `FifoByteSink` to delete the underlying file. There seems to be an implicit contract that consumers of this interface call `Remove` after `Close` without necessarily understanding what `Remove` does. I get that it's a little awkward to have `FifoByteSink` delete the file in `Close`. It would probably be best to just remove this from the interface, since `AddSink` is working with an actual `FifoByteSink`. I would rename it in `FifoByteSync` to `DeleteFile` or `Cleanup` or something that's makes it more clear what's being removed." + }, + { + "prediction": "I don't think we need to import `math/big` here.", + "reference": "Mentioned elsewhere but repeating again: would be nice to have units (ideally `Size *Bytes`)." + }, + { + "prediction": "I think this should be `--no-resolve` instead of `--no-resolve`", + "reference": "I think a test in `spec/integration` might help keep this file a bit more manageable, especially since we're just checking file contents and errors. But basically the same idea!" + }, + { + "prediction": "I think we should remove the `goog:chromeOptions` option from the test.", + "reference": "This spec can be modified, giving you extra strength (Check this fetch key doesn't work and therefore returns `nil`)" + }, + { + "prediction": "I don't think we need to check that the callback function is not NULL here.", + "reference": "So this means that we can remove a callback via instr_set_label_callback(). Maybe consider adding another API function for removal, and add a new assert here such that cb != NULL?" + }, + { + "prediction": "I don't think we need to check if `@public_plan` is true, but I think it would be better to check if `@public_plan` is true.", + "reference": "why are we using an instance variable instead of accessing the visibility method?" + }, + { + "prediction": "I think this should be `//nolint:gosec`", + "reference": "Ok. Can we just disable this linter?" + }, + { + "prediction": "I think this should be `TEST_DATA_PATH` instead of `TEST_DATA_PATH`", + "reference": "this is `test_data` and all other instances are `testdata` - does this change affect any test files, or are there actually no directories called `test_data` in the repo? (I just checked, it seems like there aren't...)" + }, + { + "prediction": "why remove this?", + "reference": "Fixing `lint` warnings that have existed for a while." + }, + { + "prediction": "I think this should be \"CASDefaultCstorPool\" or \"CASDefaultCstorPoolENVK\"", + "reference": "Better to rename this to CASDefaultCstorSparsePool." + }, + { + "prediction": "I think this should be `client.close()` instead of `client().close()`", + "reference": "Since we'e not 100% sure if `close` will be called more than once, should we set `client` to `null` or add an `AtomicBoolean closed` that will then handle the idempotency issue?" + }, + { + "prediction": "I think this should be `!second_intersection_name.empty() && !first_second_same_name.empty()`.", + "reference": "And here - what happens if name id is invalid" + }, + { + "prediction": "I think this should be `print_query` instead of `print_query`", + "reference": "__toString() is not a part of QueryInterface" + }, + { + "prediction": "I don't think we need to import datetime here.", + "reference": "nit: Could you add an empty line between `import datetime` (built-in library block) and `import numpy as np` (third-party library block)?" + }, + { + "prediction": "I think this should be `CUDA_ERROR_COOPERATIVE_LAUNCH_TOO_LARGE` instead of `CUDA_ERROR_COOPERATIVE_LAUNCH_TOO_LARGE`.", + "reference": "Please remove `HIP_UNSUPPORTED`" + }, + { + "prediction": "`returnNumber` should be `boolean`.", + "reference": "Having boolean parameters to change function behavior is not a good practice because it violates the principle of functions being responsible for a single task, so the need for this indicates we need to split something out of here instead. We can introduce a function like `getCurrentDateRangeDayCount` or similar, which does this." + }, + { + "prediction": "Why was this removed?", + "reference": "Is this not required?" + }, + { + "prediction": "Why did you remove this?", + "reference": "savedStates is for confirmed states, not needed in working set" + }, + { + "prediction": "I think this should be `const ServiceType = \"wireguard\"`", + "reference": "Why should we move it into `bootstrap.go` file?" + }, + { + "prediction": "I don't think this is needed anymore.", + "reference": "In the next major version, I plan on changing the em-unit breakpoints to be pixel values to keep everything consistent. Would be great to handle this with pixels as well, but still allow em-units to be defined with a string" + }, + { + "prediction": "Why is this change needed?", + "reference": "I don't think this will actually align the indexes, if you have > 100 tabs, the tabs over 100 will be misaligned. In addition with less than 10 tabs, there will be a pointless space." + }, + { + "prediction": "I think this should be `v4.signedHeaderVals[k]` instead of `v4.signedHeaderVals[k]`", + "reference": "hrm, unsigned headers now won't be included." + }, + { + "prediction": "Why not use `! empty($value) && strlen($value) < 256`?", + "reference": "what if `$value = ' ' `?" + }, + { + "prediction": "Is there a reason why we don't need to check for empty files?", + "reference": "What about using `!files.hasNext` instead? I'm not sure we want to assume that the iterable can be consumed multiple times. Plus there's no need to consume the entire iterable just to check whether it is empty." + }, + { + "prediction": "I think we should use `getID() == ITEM_BROWSEFIELD` instead of `getID() == ITEM_BROWSEFIELD`", + "reference": "I think we could add bool addArticle here defaulted to false like its done in item class so std::string Container::getName(bool addArticle /* = false*/) const { and pass that variable to getNameDescription call" + }, + { + "prediction": "I don't think we need to change the behavior here.", + "reference": "What if a library function on the outside still calls the old method? It is then no longer blocked properly. Have you tested the change?" + }, + { + "prediction": "(style) line over 80 characters", + "reference": "@i110 Do you have an idea on how we should propagate errors that occur in this block? The error condition happens when i) `h2o_buffer_reserve` fails to allocate space (happens in master as well), or ii) `fill_cb` returns an error (unique to this PR)." + }, + { + "prediction": "I don't think we need to use `Time.now.in_time_zone('Eastern Time (US & Canada)')` here.", + "reference": "Does this mean the times will show up in emails as UTC?" + }, + { + "prediction": "Why is this change needed?", + "reference": "What's the motivation for having one of these be a cycle and the other be a fixed color?" + }, + { + "prediction": "Why do we need to remove empty entries?", + "reference": "What will be an empty entry now?" + }, + { + "prediction": "Shouldn't this be `isRtl` or `isRtl`?", + "reference": "Can I ask you to add jsdoc tag that would mark the prop as `@private`?" + }, + { + "prediction": "I think this should be `return info.IsDir()`.", + "reference": "Do you need this? Don't think you use it?" + }, + { + "prediction": "I think this should be `MessageListWidgetService.getViewFactory(Intent intent)`", + "reference": "`this.` seems unnecessary" + }, + { + "prediction": "Why is this change needed?", + "reference": "nit: can be removed before merging..." + }, + { + "prediction": "`id` is not used anymore.", + "reference": "Maybe a single quote would be compatible with airbnb style." + }, + { + "prediction": "I think this should be `public int getCount() { return -1; }`", + "reference": "This is not the right approach. The `Distributor` maintains a model of the current state of the Grid. That model already contains the information about every active session. We don't need to modify `SessionMap` to expose it further." + }, + { + "prediction": "Why is this change needed?", + "reference": "@Marwes @wolffcm This is the file where I made a change the the expected output. Its a little bit weird, but I think that the final output makes sense for the most part." + }, + { + "prediction": "I think this should be `return app.SiteLocalSettingsPath == \"\" && app.SiteSettingsPath == \"\"`", + "reference": "I think we probably need a util.Warning() here." + }, + { + "prediction": "I think this should be `PhysicalKey.from_url(path)` instead of `PhysicalKey.from_url`", + "reference": "Let's make have a signature that's consistent with `PhysicalKey.from_path`. Users should also have access to PhysicalKey since that class is part of the API (e.g., `Package.resolve_hash`)." + }, + { + "prediction": "I think this should be `@namespace` instead of `@memberof`", + "reference": "What is this directive for?" + }, + { + "prediction": "I think this should be `R1717` instead of `R1717`.", + "reference": "I'd rephrase it as `Simplify chained comparison between the operands`." + }, + { + "prediction": "Why is this changed?", + "reference": "so in the performance data fixtures, there will be references for the second domain only?" + }, + { + "prediction": "I think this should be `LOG.info(\"Registered a node \" + proxy);`", + "reference": "This is wildly unhelpful to users --- they need to know when a proxy has been registered." + }, + { + "prediction": "Why is this change needed?", + "reference": "If there is no authority header (i.e. someone intentionally deleted it), I would argue we probably don't want a Host header in the replay either. How about we only add it if it exists, and do nothing otherwise?" + }, + { + "prediction": "I think this should be `seelog.Warnf(\"Error retrieving network metadata for container %s - %s\", containerResponse.ID, err)`", + "reference": "is there any unit test that can be updated to verify this?" + }, + { + "prediction": "I don't think we need to check if `ctx->protected_mode` is true.", + "reference": "exiting at this point is leaking memory, take a look at the valgrind output. the sbuffer must be destroyed." + }, + { + "prediction": "I think this should be `--poppler` instead of `--markexpr`.", + "reference": "i think you want a different flag and help like `--ffmpeg` or something; and you need to mark any tests you want skipped" + }, + { + "prediction": "I think this should be `v1alpha1` instead of `v1alpha1`", + "reference": "this needed to change? or it was just some formatting thing?" + }, + { + "prediction": "I think this should be `LOG.info(\"Creating besu process with params {}\", params);`", + "reference": "What's the advantage of doing it this way over, say, changing the `.circleci/config.yaml` to have `TRACE` as the `root.log.level`?" + }, + { + "prediction": "I think this should be `fetch_bigquery_iam_policy`", + "reference": "typo: if -> of" + }, + { + "prediction": "I think we should return an error instead of returning an empty string.", + "reference": "It'll be interesting to see who or what this breaks..." + }, + { + "prediction": "I think this should be `log.info(\"In dev mode. Copying required files in case we're using a WebDriver-backed Selenium\");`", + "reference": "This change is incorrect: the current log level is correct." + }, + { + "prediction": "Why is this change needed?", + "reference": "There are few cases like this where default logger is used from CLI/db tools. I would copy `NewTestLogger` to `NewCLILogger` and use it everywhere in CLI. In future these two might be different." + }, + { + "prediction": "I think this should be `StringUtils.isNullOrEmpty(value)` instead of `StringUtils.isEmpty(value)`", + "reference": "While it provides re-use, this method does not make sense in `AbstractAuthenticationToken` because it knows nothing of a hash key. Instead, we should move this to a private method within each subclass." + }, + { + "prediction": "I think this should be `(x[id_field] for x in values)`", + "reference": "index by memory address? I realize I don't understand why we don't just build a list :)" + }, + { + "prediction": "Why is this needed?", + "reference": "Not part of this commit, but we thought that this may not be a good place for this url, as it is in the `/user/` namespace (effectively preventing us having a user called `lastfmscraper`, however rare it may be)" + }, + { + "prediction": "Shouldn't this be \"aspnet-mvc.request.child-action\" or \"aspnet-mvc.request.child-action\"?", + "reference": "Does not appear to be used." + }, + { + "prediction": "I think this should be `bolt command run` instead of `bolt command run`", + "reference": "I think this starts a new `powershell.exe` interpreter each time, which is pretty slow to run a single command. Can we just do `on(bolt, \"cmd /c #{bolt_command}\")`? /cc @Iristyle" + }, + { + "prediction": "I don't think we need to check if `@video_page.purchaseable.collection?`", + "reference": "Can we add a `collection?` method to the `VideoPage` so we don't violate Law of Demeter here?" + }, + { + "prediction": "Why remove this?", + "reference": "Deleting unused code." + }, + { + "prediction": "I think we should use `samplers.pseudo_sampler` instead of `samplers.pseudo_sampler`.", + "reference": "`PseudoSampler` can also be imported from `..bbox`" + }, + { + "prediction": "I don't think we need to import this package. I think it would be better to use `go-algorand/protocol.go` instead of `go-algorand/protocol.go`.", + "reference": "Could you move this import to where the other `github.com/algorand/go-algorand` imports are?" + }, + { + "prediction": "I don't think this is needed anymore.", + "reference": "I'd rather not activate this protocol by default for now, unless there is a good reason for that." + }, + { + "prediction": "I don't think we need to import the `DataAccess` and `scanner_dao` here.", + "reference": "Remove these 2 blank lines." + }, + { + "prediction": "I think this should be `aa: %x\\n` instead of `aa: %x\\n`", + "reference": "Want to remove this?" + }, + { + "prediction": "I think this should be `gorm.dialects.Postgres`", + "reference": "is this a golint requirement? huh. mixed feelings :)" + }, + { + "prediction": "I think we should use `BCryptPasswordEncoder.BCRYPT_VERSION_2B` instead of `BCryptPasswordEncoder.BCRYPT_VERSION_2Y`", + "reference": "Generally with these tests please split up these tests so that there is a different test for each method" + }, + { + "prediction": "I think this should be `lazy_flush` instead of `lazy_lock`.", + "reference": "Should something use the lock passed in?" + }, + { + "prediction": "I think this should be `volume_mounts` instead of `volume_mounts`", + "reference": "Is this dependant on some version of Docker? Do we need to include both or `volumes` is deprecated (or just wrong!?)?" + }, + { + "prediction": "I think we should use `zkShardTerms.getHighestTerm() == zkShardTerms.getTerm(leader.getName())` instead of `zkShardTerms.getTerm(leader.getName())`", + "reference": "I know this is not new code, but should we change `leader.getState() == State.ACTIVE` to `leader.isActive(liveNodes)`?" + }, + { + "prediction": "I think this should be `AbstractAnyTypeDeclaration` instead of `AbstractAnyTypeDeclaration`", + "reference": "Why not use ASTAnyTypeDeclaration? AbstractAnyTypeDeclaration is deprecated" + }, + { + "prediction": "I think this should be `from .tools import save` instead of `from .tools.util import save`", + "reference": "A blank line at the very end of each file should eliminate the \"No EOF\" warning we see above" + }, + { + "prediction": "Why is this change needed?", + "reference": "These would both be more robust with `errors.As` so that we could safely chain errors." + }, + { + "prediction": "I think this should be `if (valobj_typename.StartsWith(\"_TtCs23_ContiguousArrayStorage\") || valobj_typename.StartsWith(\"_TtCs23_ContiguousArrayStorage\") || valobj_typename.StartsWith(\"_TtCs23_ContiguousArrayStorage\") || valobj_typename.StartsWith(\"_TtCs23_ContiguousArrayStorage\") || valobj_typename.StartsWith(\"_TtCs23_ContiguousArrayStorage\") || valobj_typename.StartsWith(\"_TtCs23_ContiguousArrayStorage\") || valobj_typename.StartsWith(\"_TtCs23_ContiguousArrayStorage\") || valobj_typename.StartsWith(\"_TtCs23_ContiguousArrayStorage\") || valobj_typename.StartsWith(\"_TtCs23_ContiguousArrayStorage\") || valobj_typename.StartsWith(\"_TtCs23_ContiguousArrayStorage\") || valobj_typename.StartsWith(\"_TtCs23_ContiguousArrayStorage\") || valobj_typename.StartsWith(\"_TtCs23_Cont", + "reference": "This is checking the same condition twice?" + }, + { + "prediction": "I think this should be `AL_HAS_MPI_CUDA`", + "reference": "Aren't we able to handle the case where we have MPI-CUDA without NCCL, even if it's suboptimal?" + }, + { + "prediction": "I think this should be `static const uint32 PhantomStatId = 999999;`", + "reference": "Wouldn't we want to namespace this `AA` or something similar" + }, + { + "prediction": "I think this is a bit confusing, but I think it would be better to have a `if len(envCfg.Profile) == 0 && !envCfg.EnableSharedConfig && envCfg.Creds.HasKeys() {` in `loadSharedConfig` instead of `if len(envCfg.Profile) > 0 {`", + "reference": "This probably should look beyond envConfig, and include `aws.Config.Credentials` as well." + }, + { + "prediction": "I think this should be `NotEnoughBalanceFilter` instead of `NotEnoughBalanceFilter`", + "reference": "How does this filter differ from TooExpensiveTxFilter?" + }, + { + "prediction": "I think this method should be called `getGroupsWithPermission` instead of `getGroupsWithPermission`.", + "reference": "Use \" List\" instead of ArrayList in declaration." + }, + { + "prediction": "Why is this change needed?", + "reference": "we might consider hard throwing when name is None since that is explicitly not working right now and then linking to issue in the exception error message" + }, + { + "prediction": "I think this should be `BundleUtil.getBundleUtil()`.", + "reference": "Just noticed this - why \"like\" and not straight \"=\"" + }, + { + "prediction": "Line is too long. [89/80]", + "reference": "is this a new test? if yes, isn't it better to check for each env var is present, and the value, instead of a count?" + }, + { + "prediction": "Shouldn't this be `String.format(String.format(\"Failed to set instances, AppId=%s, MicroserviceName=%s.\", getAppId(), getMicroserviceName()), e)`?", + "reference": "when will lost exception? by my test, never happened." + }, + { + "prediction": "I don't think we need to change the `url=urlstr` here.", + "reference": "You should re-stringify it here with `QUrl.FullyEncoded`." + }, + { + "prediction": "I think this is a bit confusing, but I think it's better to have a `chan struct{}` for the `topic` and `topic` and `topic` and `topic` and `topic` and `topic` and `topic` and `topic` and `topic` and `topic` and `topic` and `topic` and `topic` and `topic` and `topic`?", + "reference": "i'm not sure why the quit channel is needed in this context" + }, + { + "prediction": "I think this should be `if len(args.CPULimit) > 0` instead of `if len(args.CPULimit) > 0`", + "reference": "When `args.MemoryLimit` is empty, will `MustParse` panic?" + }, + { + "prediction": "I think this should be `r.inSync = false`", + "reference": "How soon after this will Apply() be called? It would be a shame if there was still a significant delay before a missing or superfluous route was corrected." + }, + { + "prediction": "Why is this needed?", + "reference": "I add a `idx` property, and it is only use for benchmark `heap.Remove`, is it acceptable?" + }, + { + "prediction": "I think this is a good idea to remove the `Derek Riemer` file.", + "reference": "daemonic t got inserted." + }, + { + "prediction": "I don't think we need to add a new line here.", + "reference": "This edit is non-essential." + }, + { + "prediction": "I think we should use `Object.setPrototypeOf` instead of `Object.setPrototypeOf`.", + "reference": "Might be safer to ponyfill this?" + }, + { + "prediction": "I think this should be `dirs[0]` instead of `dirs[1]`", + "reference": "why was this join not necessary before?" + }, + { + "prediction": "Shouldn't this be `queryTimeout.getShouldExitCallCount()`?", + "reference": "Here we compare to the expected call count 3. Because 3 TermsEnum are created: it is a PrefixQuery and there is one TermsEnum created for AutomatonQuery.intersect() (the next call timeout check is skipped once), then 2 TermsEnum created for the 2 matching terms \"one\" and \"ones\"). Would it be clearer to have a separate test method? We could index more docs, for example 50 with a prefix-generated term (e.g. \"term\"+increment). There would be a PrefixQuery for \"term\", the same test code, and we would test the TIMEOUT_CHECK_SAMPLING: - 1 TermsEnum for Automaton.intersect(), and the next calls would be sampled (50/TIMEOUT_CHECK_SAMPLING=3) => call count +4 - 1 TermsEnum for each enumerated term => call count +50 We could verify call count = 54 (instead of 101 without sampling)" + }, + { + "prediction": "I think we should use `options[:inventory] + OPTIONS[:global] + %w[format inventoryfile boltdir configfile]` instead of `options[:global] + %w[format inventoryfile boltdir configfile]`", + "reference": "Add `--format` as an option. Does it make sense to have all display options available? Also need to add `--inventoryfile` and possibly the global_config_options." + }, + { + "prediction": "I think this should be `public bool RecordException { get; set; }`", + "reference": "Any thoughts on making this false by default? My suggestion is make this opt-in. Storing exception is somewhat expensive, so lets do this only if users opt-in" + }, + { + "prediction": "Shouldn't this be `onError`?", + "reference": "usually I do either ` IOException|RuntimeException` or if doing Throwable, use propagateIfFatal" + }, + { + "prediction": "I think this should be a `Dynamic` object, not a `DynamicMap` object.", + "reference": "Wondering whether it should be `self.clone`, or `other.clone` or maybe a new `DynamicMap` declaration entirely. I see this is in the condition where `other` is a `DynamicMap`but is this definitely right in terms of `kdims`? I need to think about it more..." + }, + { + "prediction": "Why not use `SECURITY` here?", + "reference": "I chose a new category because over time I'd like to add metrics also for Authorization plugins and Auditlog plugins (all components registered in security.json). An alternative could have been `CONTAINER` I guess?" + }, + { + "prediction": "I think this should be `IotxAddressLengthLength`", + "reference": "IoAddrLen Golang prefers short variable names" + }, + { + "prediction": "Why not use `a` instead of `a`?", + "reference": "PHPCR-ODM does not allow blank aliases.." + }, + { + "prediction": "I think this should be `new BasicHeader(CommonParams.SOLR_REQUEST_CONTEXT_PARAM, request.getContext().toString());`", + "reference": "This seems trivial to forge. Can we tie this into the authentication code paths somehow so that we can really trust that the request is coming from a server instead of just some application claiming to be a server?" + }, + { + "prediction": "I think this should be `#include `.", + "reference": "Why are you including ``?" + }, + { + "prediction": "I think this should be `mk_mq_create(hs->ctx, \"/api/v1/health\", NULL);`", + "reference": "So previously health check was consuming from the normal metrics queue, now we duplicate the data to a new queue? I feel like there should be more changes to ensure the health check handler reads from the new queue? @DrewZhang13" + }, + { + "prediction": "I think this should be `len(rule.DstIpPortSetIds) == 0 && len(rule.DstNamedPortIpSetIds) == 0 && len(rule.DstIpPortSetIds) == 0 && len(rule.DstIpPortSetIds) == 0 && len(rule.DstIpPortSetIds) == 0 && len(rule.NotDstNet) == 0 && len(rule.NotDstNet) == 0 && len(rule.NotDstPortSetIds) == 0 && len(rule.NotDstPortSetIds) == 0 && len(rule.NotDstPortSetIds) == 0 && len(rule.DstIpPortSetIds) == 0 && len(rule.DstIpPortSetIds) == 0 && len(rule.NotDstPortSetIds) == 0 && len(rule.NotDstPortSetIds) == 0 && len(rule.NotDstPortSetIds) == 0 && len(rule.NotDstPortSetIds) == 0 && len(rule.NotDstPortSetIds) == 0 && len(rule.NotDstPortSetIds) == 0 && len(rule.NotDstPortSetIds) == 0 && len(rule.Not", + "reference": "Yep, looks right; your new selector _should_ disqualify the rule from being XDP accelerated." + }, + { + "prediction": "I think this interface should be `IConnectionHeartbeatTickFeature`", + "reference": "cc @anurse This exists now. Kestrel currently passes the current time to all callbacks as an optimization. Just an FYI." + }, + { + "prediction": "I think this should be `mode=` instead of `mode=`.", + "reference": "remove 3.8+ f-string format to allow use in google colab" + }, + { + "prediction": "(style) line over 80 characters", + "reference": "Should we assert that xstate is aligned here?" + }, + { + "prediction": "Why is this change needed?", + "reference": "any particular reason for suppressing this change?" + }, + { + "prediction": "Why not use `Math.max(1 - (time - parent.getTimestamp()) / 10, -99L)` instead of `Math.max(1 - (time - parent.getTimestamp()) / 10, -99L)`?", + "reference": "Hot take: could this instead become `NO_DIFFICULTY_BOMB` and have` HOMESTEAD` wrap it? So this comes first then homestad with the bomb adjustment, making no difficulty the base case?" + }, + { + "prediction": "I don't think this is necessary.", + "reference": "I suggest to use a scheme like \"blobvar\". \"blob\" would potentially collide if we have another API that use the blob package as a driver." + }, + { + "prediction": "I think this should be `latest_listen_ts = latest_listen[0].ts_since_epoch if len(latest_listen) > 0 else 0`", + "reference": "This assumes that the user has at least one listen, it should have a guard around it, because this won't always be the case" + }, + { + "prediction": "Why is this change needed?", + "reference": "Seems like a lot of unintended changes. Are your line break settings causing these?" + }, + { + "prediction": "I don't think this is needed anymore.", + "reference": "@StrikerRUS what if we just removed build numbers and did `r-pkgdown=1.3.0`? Won't we have to fix this again if the RTD build machines change?" + }, + { + "prediction": "I think this should be `greg Landrum` instead of `greg Landrum`", + "reference": "I'm not arguing with it, but how did you decide to make this change?" + }, + { + "prediction": "I think this file should be updated to be in the same file as the other file.", + "reference": "1: D400 First line should end with '.', not 'd' 4: I102 copyright year is outdated, expected 2014 but got 2012 25:29: E126 continuation line over-indented for hanging indent 31: D103 Docstring missing 40: D103 Docstring missing 57: D103 Docstring missing 68: D103 Docstring missing 101: D103 Docstring missing 115: D401 First line should be imperative: 'Call', not 'Calls' 115: D400 First line should end with '.', not 't' 134: D400 First line should end with '.', not 'e' 134: D205 Blank line missing between one-line summary and description" + }, + { + "prediction": "I think this should be `Chain` instead of `PreferredChain`.", + "reference": "Explain that this must match the `CommonName` of the first (or is it last?) certificate in the chain, where the first certificate is the chain root CA and the last certificate is the leaf certificate." + }, + { + "prediction": "Why is this change needed?", + "reference": "do we really need this behavour to be configurable?" + }, + { + "prediction": "I think this should be `../drivers/node-mongodb-native/objectid`", + "reference": "Hmm interesting. Do the tests check out on this?" + }, + { + "prediction": "I think this is a bit confusing, but I think it would be better to use a constant instead of a constant. I think it would be better to use a constant instead of a constant.", + "reference": "For another PR, another `--X` candidate." + }, + { + "prediction": "I think this should be `Release` instead of `Settings`", + "reference": "Do we need to add this constant for `group_windows.go`? Otherwise, I believe the build will fail on windows. Also what do you think of adding the emoji at the end? The windows one could be plain." + }, + { + "prediction": "Why is this needed?", + "reference": "this is a junit 3 import, not a junit 4" + }, + { + "prediction": "I think this should be `csBuilder.Options(o.shouldHibernate).Build()`", + "reference": "shouldn't there be a reque expected here?" + }, + { + "prediction": "Why is this change needed?", + "reference": "I prefer to make it `protected set`. What do you think?" + }, + { + "prediction": "I think this is a bit confusing, but I think it would be better to have a `MaxMemory` and `MaxStore` as well.", + "reference": "Maybe rename this to JetStreamStoreDir?" + }, + { + "prediction": "I think this should be `http.Serve(tcpListener, httpHandler)` instead of `http.Serve(tcpListener, httpHandler)`", + "reference": "You can start by logging out the error" + }, + { + "prediction": "I think this should be `GetMinimumGasPrice(in UInt256? baseFeePerGas = null)` instead of `GetMinimumGasPrice(in UInt256? baseFeePerGas = null)`", + "reference": "In general, what is the reason for the fallback price to be public? If it is public, why does it take baseFeePerGas instead of a block header?" + }, + { + "prediction": "Why is this change needed?", + "reference": "follow-up of #2002" + }, + { + "prediction": "why is this needed?", + "reference": "could you give some explanations of what problem do you want to solve by this change, and how/why it works?" + }, + { + "prediction": "I think this should be `longLivedMarshalByRefObject` instead of `LongLivedMarshalByRefObject`.", + "reference": "LongLivedMarshalByRefObject exists in both the netstandard and netfx xunit?" + }, + { + "prediction": "I think this should be `options[:page_ranges] = Array(options[:page_ranges])` instead of `options[:page_ranges] = Array(options[:page_ranges])`", + "reference": "the bridge here isn't defined as an accessor / reader to try mask it better. So you need to directly call the iVar `@bridge` here." + }, + { + "prediction": "I think this should be a `context.Context` instead of a `context.Context`.", + "reference": "Testing on linux with this change, containerd no longer stops when k3s stops." + }, + { + "prediction": "I think this is a bit confusing, but I think it would be better to call it `MaxConnectionReceiveWindowIncrease` instead of `MaxConnectionReceiveWindowIncrease`", + "reference": "Maybe [u]int64 to be consistent with other byte-valued vars in this struct?" + }, + { + "prediction": "I don't think we need to show this link to NCR people.", + "reference": "This brings up the question... do we need to start assigning users to the different use cases in some way? We don't want this link to show up for Ric, for example." + }, + { + "prediction": "Why do we need to use `param.data_param().prefetch()` instead of `param.data_param().prefetch()`?", + "reference": "Unless I'm misunderstanding something, this should just be `prefetch_(param.data_param().prefetch())`, no? That should just use the default value if there's no explicit `data_param` or `data_param.prefetch` set, removing the need to also duplicate and hardcode `PREFETCH_COUNT`." + }, + { + "prediction": "I think we should use `txEncode` instead of `keyregTxEncode`", + "reference": "nit : move this into a default clause in the previous switch statement." + }, + { + "prediction": "I think this should be `value = value.replace(/\\n/g, '\\\\n');` and `value = value.replace(/\\r/g, '\\\\r');`", + "reference": "It should be return \"''\"; I will fix it" + }, + { + "prediction": "Why is this change needed?", + "reference": "Go standard linter hates `Id`s and likes `ID`s, please do not resist." + }, + { + "prediction": "Metrics/LineLength: Line is too long. [98/80]", + "reference": "I don't think retrying here is as useful, since `git-checkout` doesn't access the network AFAIK, and if it fails once it's probably going to fail all three times." + }, + { + "prediction": "Why is this change needed?", + "reference": "Fixing this typo caused a build failure in `cmd/ctl/pkg/status/certificate/certificate_test.go:238` Could you also update it there?" + }, + { + "prediction": "I think this should be `lambda pkt: pkt.extension`", + "reference": "Please note that adding this will import `extension_condition` in the entire scapy (as you are located in a layer). You might want to move this inside the RTP class ? Would be better i think" + }, + { + "prediction": "I think this should be `options[:order] = \"rand:#{seed}\"` instead of `options[:seed] = \"rand:#{seed}\"`", + "reference": "This will need updating, as I'm not sure we'll want to turn on random ordering if they've specified a seed for programmatic use." + }, + { + "prediction": "I think this should be `privload_insert(NULL, privmod_static[i].base, privmod_static[i].size, privmod_static[i].name, privmod_static[i].name, privmod_static[i].path);`", + "reference": "Are you sure these are all client libs? This seems fragile: if we later load sthg else early this will break. Seems best to have some kind of sanity check: at least add an assert in the current location where this is set." + }, + { + "prediction": "I think this should be `accessionNumDict.Select(pair => new KeyValuePair(pair.Key, pair.Value));`", + "reference": "Picking nits here, but as a Dictionary already is a collection of KeyValuePairs there's undoubtably a way to code this that doesn't involve constructing any new ones." + }, + { + "prediction": "I think this import should be `*` instead of `*`.", + "reference": "As Miklas stated, please avoid wildcard imports." + }, + { + "prediction": "Why is this change removed?", + "reference": "Maybe change it to `module.exports = server` ? Becase there's nothing else to export here" + }, + { + "prediction": "Why is this import removed?", + "reference": "This may be an automated change, but the import seems to fit better where it was previously." + }, + { + "prediction": "I think this should be `window.analytics.load(\"2nexpdgku3\");`", + "reference": "Might we want to separate including this snippet and sending the data for signed in users into different partials?" + }, + { + "prediction": "I think it would be better to return a `topology.ErrWantSelf` instead of `topology.ErrWantSelf` instead of `topology.ErrWantSelf`.", + "reference": "closest to the address" + }, + { + "prediction": "I think this should be `[autoRowSize](https://handsontable.com/docs/8.0.0/demo-scrolling.html)` or `[autoRowSize](https://handsontable.com/docs/8.0.0/demo-scrolling.html)`", + "reference": "It should be much more clear for end-user " + }, + { + "prediction": "I think this should be `# pylint: disable=consider-using-namedtuple`", + "reference": "Isn't this an example that this will be prone to false positives ? We had nothing to fix in the codebase (And I think there is dict that could be named tuple in the MessageStore/MessageIdStore), but we have a false positives on our checkers." + }, + { + "prediction": "I think this should be `Code: gcerrors.NotFound`", + "reference": "We control `octest`, so it shouldn't be necessary to provide struct literal keys. This is a case of vet being too picky." + }, + { + "prediction": "Use the new Ruby 1.9 hash syntax.
    Line is too long. [98/80]", + "reference": "I would put that constant under config/initializers/constant.rb and I would leave application.rb for rails specific." + }, + { + "prediction": "I think we should use `map[BlockPointer]bool` instead of `map[BlockPointer]bool`", + "reference": "Is there a reason not to do something like `if _, ok := doNotUnref[ptr.ID]; ok { return ops }` here?" + }, + { + "prediction": "Why is this needed?", + "reference": "This would return a tuple of two dictionaries. You need to combine them and return a dictionary" + }, + { + "prediction": "Why do we need this?", + "reference": "Why not always forward it to `_data`?" + }, + { + "prediction": "I don't think we need to change the `GET` method to `POST`.", + "reference": "there are tests that use `client.get` which will fail now" + }, + { + "prediction": "Why is this change needed?", + "reference": "Whoa, TIL about this syntax." + }, + { + "prediction": "I think this should be `if h.applicationErr != nil { return nil, nil, h.err } else if h.err != nil { return nil, nil, h.err } else if h.applicationErr != nil { return nil, nil, h.err } else if h.applicationErr != nil { return nil, nil, h.err } else if h.applicationErr != nil { return nil, nil, h.err } else if h.applicationErr != nil { return nil, nil, h.applicationErr } else { return nil, nil, h.applicationErr } else { return nil, nil, h.err } } }", + "reference": "This is a smell. When is this valid? Perhaps this should be `nil, nil, ErrNoResponse` or some such. While it is usually invalid to have neither a return value or error, we rarely check for the case in other idiomatic Go. Nothing wrong with extra defenses here, but think about it." + }, + { + "prediction": "I don't think we need this file.", + "reference": "This URL is outdated, add a `TODO` to fix it." + }, + { + "prediction": "Why is this needed?", + "reference": "`ChainID()` is a getter method, move up to `Nonce()`" + }, + { + "prediction": "I think this should be `logger.error(\"Unable to get flow trigger by job key {}\", jobKey, ex);`", + "reference": "If this condition is not met, shall we just throw the exception rather than logging it? @li-ygerchikov Your thoughts?" + }, + { + "prediction": "I think this should be `ruamel.yaml` instead of `ruamel.yaml`", + "reference": "nit: alpha-sort `ruamel.yaml` in this list please" + }, + { + "prediction": "Shouldn't this be `>= 0` instead of `>= 0`?", + "reference": "Remove this because we already added it in another pr" + }, + { + "prediction": "I think this should be `FileUtils.copyFile(iconFile, iconFile);`", + "reference": "Can we maybe move the `File` creation to a new method? I mean both changes look equal to me with the difference of two parts, which could be specified using two input parameters." + }, + { + "prediction": "Align the elements of a hash literal if they span more than one line.
    Prefer single-quoted strings when you don't need string interpolation or special symbols.", + "reference": "I think we want to require the association with the user...?" + }, + { + "prediction": "I think this should be `len(smsg.Message) + len(smsg.Signature) + len(smsg.Signature)`", + "reference": "I am unsure the below implementation is correct, but need this method to not panic else it borks the chain-validation tests." + }, + { + "prediction": "Why is this needed?", + "reference": "nit: no need this change anymore." + }, + { + "prediction": "Why did you remove this?", + "reference": "This isn't really that closely related to everything else in this PR, but I'm pretty sure it's a correct change. I'm not familiar enough with the taint feature to know how to test it, but I worry that without this change some of the taint stuff might mess up the `parent_nodes` for a reference." + }, + { + "prediction": "Why is this change needed?", + "reference": "[Checkstyle] ERROR: Unused import - javaslang.collection.Stream." + }, + { + "prediction": "Why is this change needed?", + "reference": "The numbers were changed since now _root_ is also added to the doc, increasing the field count by 1." + }, + { + "prediction": "Why did you remove this?", + "reference": "TTemplateParamClass is handled above with the same content in the conditional" + }, + { + "prediction": "Why not use `array_keys` here?", + "reference": "Do we need to add `theme` here?" + }, + { + "prediction": "I think this should be `*string` instead of `*string`", + "reference": "i think you have to regen the api stuff, `make generate`" + }, + { + "prediction": "I think this method should be `publicKey.getPublicKey()`", + "reference": "DataHash shouldn't be needed here" + }, + { + "prediction": "I think this should be `LOG.finest(String.format(\"Command request: %s%s on session %s\", cmd, printableArgs, sessionId));`", + "reference": "`info` was chosen deliberately to mirror the old behaviour that users expected." + }, + { + "prediction": "I think we should use `to.deep.equal(['item 3', 'item 2'])` instead of `to.deep.equal(['item 3', 'item 2'])`", + "reference": "For some reason, Safari handles ember arrays differently than Chrome/Firefox. To get around that, we cast the ember array to a regular array to verify the deep equal. (Note: I tried wrapping the expected value in an emberA - which would look like `expect(someEmberArray).to.deep.equal(emberA(['a', 'b']));` but that didn't work either)" + }, + { + "prediction": "I think this should be `originalIcebergType`.", + "reference": "`icebergType` indicates the corresponding iceberg type of the `FieldVector` `originalIcebergType` indicates what the real type we will read from the `FieldVector`. For example, the parquet int backed decimal, the `icebergType` should be integer, `originalIcebergType` is decimal. I intend to only keep the `originalIcebergType`, but listening to your ideas." + }, + { + "prediction": "Why is this change needed?", + "reference": "The double (and thus triple as seen below) pointer gives me pause. I could imagine providing some larger API surface to smooth it out, but it's likely not worth it." + }, + { + "prediction": "I think we should remove the `done` argument.", + "reference": "The test name as written was grammatically correct, but now it isn't. Both 'MongooseError' and 'instance' should be both singular or both plural." + }, + { + "prediction": "Why is this change needed?", + "reference": "SmartStoreInspectorTest was throwing a NPE here" + }, + { + "prediction": "Why not use `InternalRecordWrapper.wrap(deleteSchema.asStruct()).wrap(record)` instead of `InternalRecordWrapper.wrap(deleteSchema.asStruct()).wrap(record)`?", + "reference": "We prefer line wrapping that keeps arguments to the same method aligned rather than aligning arguments to different levels. Here, the lambda to create an `InternalRecordWrapper` is an argument to `transform`, but it is aligned with `deleteSchema.asStruct()` that is an argument to the outer `toEqualitySet` call. Instead, can you add a newline for each argument to `toEqualitySet`? If the line with the lambda is too long, then you can also add a newline for it that it indented from the start of the line with `transform`, so it is clear that it is an argument to `transform` and not `toEqualitySet`." + }, + { + "prediction": "I think this should be `globalize.translate('LabelHardwareAccelerationType')`", + "reference": "I think it would be a good idea to wrap this in an if like the stats above, just in case." + }, + { + "prediction": "Is there a reason to use `selectAllPhotosUpToFav` instead of `selectAllPhotosUpTo`?", + "reference": "@angmas1 just make one more change here too. Move the else line to the line above it, where the if block ends and remove the braces like in line 280." + }, + { + "prediction": "Why is this change needed?", + "reference": "Looks like the actual rename is missing in this commit edit: Arf, nevermind, I was at the wrong commit " + }, + { + "prediction": "I think it would be better to use `this.opts.getAssemblyOptions === defaultOptions.getAssemblyOptions` instead of `this.opts.getAssemblyOptions === defaultOptions.getAssemblyOptions`", + "reference": "I'm a little stuck understanding, how would this result in an error when `this.opts.params` is not set? It will just not do `AssemblyOptions.validateParams(this.opts.params)` " + }, + { + "prediction": "I think this should be `networkPattern` and `subnetPattern`.", + "reference": "networkVarPattern (etc) then?" + }, + { + "prediction": "Layout/SpaceInsideHashLiteralBraces: Space inside { missing.
    Layout/SpaceInsideHashLiteralBraces: Space inside } missing.
    Layout/SpaceInsideHashLiteralBraces: Space inside } missing.
    Layout/SpaceInsideHashLiteralBraces: Space inside } missing.
    Layout/SpaceInsideHashLiteralBraces: Space inside } missing.
    Layout/SpaceInsideHashLiteralBraces: Space inside } missing.
    Layout/SpaceInsideHashLiteralBraces: Space missing inside } missing.
    Layout/SpaceInsideHashLiteralBraces: Space inside } missing.
    Layout/SpaceInsideHashLiteralBraces: Space inside } missing.
    Layout/SpaceInsideHashLiteralBraces: Space inside } missing.
    Layout/SpaceInsideHashLiteralBraces: Space inside } missing.
    Layout/SpaceInsideHashLiteralBraces: Space inside } missing.", + "reference": "I think it makes sense to do `metadata[:block].clone`, as thats what `new_metadata` is, but somehow it's missing the block from its clone." + }, + { + "prediction": "Why is this change needed?", + "reference": "Just realized this should be fixed instead of changing here. Concatenating int should still result in lowercase string." + }, + { + "prediction": "I think we should use `firefox` instead of `marionette`", + "reference": "For Se 3.x we shouldn't need to specify `marionette: true`? I'll see if I can figure out where this is getting used that it might be necessary here." + }, + { + "prediction": "Why is this change needed?", + "reference": "This should be renamed to `chain.Store`. It was named `DefaultStore` as an alternative to `StoreImpl`, which is the (bad) Java convention." + }, + { + "prediction": "I think we should use `deviceName := ad.DeviceName` instead of `ad.Source`", + "reference": "ad.Source is disk name? Shouldn't the order of initialization be reversed here then? First set ad.DeviceName, if it's empty, set ad.Source? Or this is a different use case? This is the third place where this device/disk default logic is implemented, so another reason to move it to regAttach, if it's possible to be generalized." + }, + { + "prediction": "Shouldn't this be `int.MaxValue`?", + "reference": "typo: \"be hold\" -> \"be held\"" + }, + { + "prediction": "Why is this needed?", + "reference": "I do not think we should have any logic inside the null storage. 1 has a very specific magical meaning. We should either return null here or long.maxValue." + }, + { + "prediction": "I think this is a good idea to have a test for 1.14.5 and 1.15.0.", + "reference": "Why did this change?" + }, + { + "prediction": "I think we can remove the `question_guidance_by_question_as_hash` from the `guidance_by_question_as_hash` method.", + "reference": "Removed this method. Doesn't seem to be used in the code, and the variable set here doesn't seem to be used in the views." + }, + { + "prediction": "I think this should be `this(initializer, null)` instead of `this(initializer, null)`", + "reference": "Remove the initializers (\"`= null`\") from both parameters. Remember that that's why we added the overloads: to ensure that all languages could have the convenience of the abbreviated argument lists (not all languages understand default parameters)." + }, + { + "prediction": "I think this should be `VectorType`", + "reference": "I think you can just remove most of these attributes outside of `ElementType()`. Instead, this should expose the arrow array. We're not going to use these methods anyway." + }, + { + "prediction": "why is this removed?", + "reference": "Thinking this should be `removeNode()` exported from `dom/index.js`. Thoughts?" + }, + { + "prediction": "I think it would be better to use `memoryCPULimitsEnabled` instead of `memoryCPULimitsEnabledLock`?", + "reference": "Does this need to be saved in the state file? Or are we recomputing when the task is read from the state file?" + }, + { + "prediction": "I think we should use `atomic.LoadUint64(&s.inserts)` instead of `atomic.LoadUint64(&s.matches)`", + "reference": "Looks like `s.inserts` and `s.removes` are updated under sublist's lock, so I don't think you need atomic for those 2." + }, + { + "prediction": "I think it would be better to add a flag to the wifiStatus to indicate that the services are fully initialized and not fully initialized.", + "reference": "@TD-er use bitRead/bitWrite macros, do you use here inversed logic?" + }, + { + "prediction": "I think we should use `fetchMock` instead of `fetchMock`.", + "reference": "The previous `fetch` mock was exposed globally before - can we do the same with `fetchMock` so we don't need to import it in every file?" + }, + { + "prediction": "Why is this change needed?", + "reference": "Is ExpectData still used anywhere?" + }, + { + "prediction": "I think this should be `[~!.]`.", + "reference": "Do you want to allow the character `.` or any character? Because inside a regex `.` means any character, if you want to authorize `.` then you need to add `\\.` ." + }, + { + "prediction": "I think this should be `return co(function() { ... }).cursor().eachAsync(doc => { ... });`", + "reference": "`eachAsync()` should pass a doc, not an array of docs, to the callback. This would be a massive breaking change." + }, + { + "prediction": "I think this should be `klog.Infof(\"pod status operation: %s unsupported\", msg.GetOperation())`", + "reference": "please start log with caps letters" + }, + { + "prediction": "I think this should be `visual_website_optimizer`", + "reference": "Is this where we want it in relation to the other scripts?" + }, + { + "prediction": "I think this should be `reportView` instead of `reportView`", + "reference": "Please wrap this variable within a self invoking anonymous function. (function(){ FEATURE_NAME = \"reports\"; //and rest of the js goes here. })();" + }, + { + "prediction": "I think this should be `c.cgroupManager.Freeze(configs.Thawed)` instead of `c.cgroupManager.Freeze(configs.Thawed)`", + "reference": "Haven't tried, but what happens currently if `-f` is used and it's not running? (thinking: `-f` should ignore the case and just proceed?) I see we have a special case for `all`" + }, + { + "prediction": "I think this should be `MongoURIError` instead of `Error`", + "reference": "no need for custom errors in tests unless the tests are intended to mock a specific sort of error" + }, + { + "prediction": "I think this should be `node-role.kubernetes.io/edge`", + "reference": "This const has already existed in the code, no need to define a new one" + }, + { + "prediction": "I think this should be `log.Fatalf` and `log.Warnf`", + "reference": "Would Errorf be better than Warnf?" + }, + { + "prediction": "I think this should be `String.valueOf(currentContent);` instead of `String.valueOf(currentContent);`", + "reference": "A good candidate for StringBuilder? Also make sure to add white space around the operators (`path + \"/\" + file`)" + }, + { + "prediction": "I think this method should be `uploadFlowFile` and `getUploadedFlowFile`", + "reference": "Can we have the same argument order as `getUploadedFlowFile`?" + }, + { + "prediction": "Why is this change needed?", + "reference": "this dynamic config should still be valid, i.e. operator should have the ability to control each individual task queue just in case" + }, + { + "prediction": "I think this should be `if obj == self.obj.rootNVDAObject: return`", + "reference": "Should these cases be logged? `if not obj` used to be" + }, + { + "prediction": "I think this should be `if command.respond_to?(:echo: false)`", + "reference": "Is it OK to assume that keys.gnupg.net has the new key?" + }, + { + "prediction": "Why is this removed?", + "reference": "A note for however is curious. I think these two notes add negative value only. In general we want people to implement this method (in particular after this patch). If we leave these old (and currently mis-rendered) notes, file system implementors might not implement this method referring to this." + }, + { + "prediction": "Why is this change needed?", + "reference": "Comparators (or functions in general) cannot be compared for equality. Therefore `PriorityQueue.of(comparator, ...)` always has to return a new instance." + }, + { + "prediction": "I think this should be `@pool = Concurrent::ThreadPoolExecutor.new(max_threads: @config[:concurrency])`", + "reference": "It's a little surprising that CachedThreadPool overrides the max_threads argument. This makes sense as a solution though." + }, + { + "prediction": "I think it would be better to use `reduce_loss(loss, 'mean', 'none')` instead of `reduce_loss(loss, 'mean', 'none')`", + "reference": "```python # if avg_factor is not specified, just reduce the loss if avg_factor is None: loss = reduce_loss(loss, reduction) else: # if reduction is mean, then average the loss by avg_factor if reduction == 'mean': loss = loss.sum() / avg_factor # if reduction is 'none', then do nothing, otherwise raise an error elif reduction != 'none': raise ValueError('avg_factor can not be used with reduction=\"sum\"')" + }, + { + "prediction": "why do you change this?", + "reference": "`padding` should be 0 instead. Actually you can just remove padding and dilation to use default values." + }, + { + "prediction": "Why is this change needed?", + "reference": "$balance is initialized to 0 above in line 1428 and then assigned in line 1437. If we're no longer manipulating that value, is there a reason to use a variable at all? It might make the overall code less confusing to make some changes there." + }, + { + "prediction": "Why is this change needed?", + "reference": "Why do we need to explicitly use keyword arguments?" + }, + { + "prediction": "I think this should be `return` instead of `return`.", + "reference": "Might still want to log this as `TargetBuilding` but with a slightly different message?" + }, + { + "prediction": "I think this should be `std::move(other.txt[i])`", + "reference": "ref. above, this also can be omitted in case `txt = std::move(other.txt);` could work (or copy), consider `std::array;`? or a custom object implementing `Object& operator=(Object&&) noexcept;'" + }, + { + "prediction": "Why is this needed? I think it would be better to use `astroid.node_classes` instead of `astroid.node_classes`.", + "reference": "Well done, we forget that one apparentely." + }, + { + "prediction": "I think this is a good idea to remove the `index_value` parameter from the `toarray` function.", + "reference": "Guess it isn't used. The dask thing was just a prototype so removing it is probably the right thing to do." + }, + { + "prediction": "I think we should use `os.getenv(\"CONTENT_INDEX_EXTS\", \"\").split(\",\")` instead of `os.getenv(\"CONTENT_INDEX_EXTS\", \"\").split(\",\")`", + "reference": "This code is correct, but it's a bit confusing to see how (e.g., without the if startswith(\".') the or below would break.) I think it will be clearer for the long run if you refactor this just a bit. CONTENT_INDEX_EXTS (all caps) looks like a constant, but is now being set by the environment. Instead, replace the reference to CONTENT_INDEX_EXTS in index.py with a simple call to a method \"get_content_index_exts\" (or similar). Then you can write all the logic into one clean function." + }, + { + "prediction": "I think this should be `athenz.zms.principal_state_updater_frequency_default`", + "reference": "please update the zms conf file to have a small description of these options since by default feature is off and must be enabled" + }, + { + "prediction": "Shouldn't this be `true` or `false`?", + "reference": "Should be `this.opts` instead of `defaultOptions`" + }, + { + "prediction": "I think this should be `users` instead of `users`", + "reference": "You can reuse `USERS` above as well." + }, + { + "prediction": "Why is this removed?", + "reference": "Whoa, was this opto breaking something? I guess if this final path is filtered out, we still need the queue? Have you run the suggest benchmarks to see if removing this opto hurt performance?" + }, + { + "prediction": "I think this should be `Stream.ofAll(iterable)`", + "reference": "I'm not sure about this, please check the usages. It's only used currently to reverse it, maybe we should eliminate this method completely instead." + }, + { + "prediction": "Shouldn't this be `isListTagEnabled`?", + "reference": "Since this is only used in the MyResearchController, does it need to be placed at the AbstractBase level?" + }, + { + "prediction": "I think this should be `PhaseSelector` instead of `PhaseSelector`.", + "reference": "why `PhaseSelector` ?" + }, + { + "prediction": "I think this should be removed.", + "reference": "Does` AllowlistedModules` have the same meaning of `WhitelistedModules`?" + }, + { + "prediction": "Shouldn't this be `list`?", + "reference": "I missed the $preserve_keys=true case when adding this to Phan. For psalm, two separate signatures may make sense" + }, + { + "prediction": "I don't think we need to use atomic.AtomicInteger here.", + "reference": "TcpServer will be created for each HighwayServerVerticle instance so the counter number in server is not correct." + }, + { + "prediction": "I think this should be `if (!execName.endsWith(\".exe\") && !execName.endsWith(\".exe\")) {`", + "reference": "Why change this from a foreach? I can't see it gaining anything here and code styles shouldn't change just for the sake of it." + }, + { + "prediction": "I think this should be `if len(subsystem) == 0 { return hybridMountpoint, nil }`", + "reference": "I'd say \"cgroup2 hybrid path\" instead." + }, + { + "prediction": "Line is too long. [89/80]", + "reference": "I dont see a reason to print URI for `Target`. we do not expose that in inventory v1" + }, + { + "prediction": "I think this should be `bool` or `bool`?", + "reference": "Do we still need this?" + }, + { + "prediction": "I think this should be `campaignSource`", + "reference": "`campaignSource` is unused (from `structcheck`)" + }, + { + "prediction": "I think this should be `ASSERTJ_ERROR_PRONE_VERSION`.", + "reference": "we should discuss how to not hard-code this version" + }, + { + "prediction": "I think we should use `cursorOptionNames` instead of `CURSOR_OPTIONS`.", + "reference": "do we have a doclet for this event?" + }, + { + "prediction": "Why is this removed?", + "reference": "Why don't we want to catch segfaults by default?" + }, + { + "prediction": "I think this should be `[SuppressMessage(\"Reliability\", \"CA2000:DisposeObjects before losing scope\", Justification=\"The object should not be disposed\")]`", + "reference": "You could probably dispose request & content if you `await` the SendAsync." + }, + { + "prediction": "I think this should be `pd.DataFrame.to_clipboard`", + "reference": "why is this test case here? this file is for testing functionalities in utils.py" + }, + { + "prediction": "I don't think we need to check if the user is already logged in.", + "reference": "why do we have an env var for this? not sure why we'd want to suppress welcome emails but not any others" + }, + { + "prediction": "I think this should be `nil` instead of `nil`?", + "reference": "drop the todo?" + }, + { + "prediction": "I think this should be `if (strncmp(destination_zone_name, \"NONE\", strlen(\"NONE\"))) == 0`", + "reference": "Maybe use { } here like we are most other places now." + }, + { + "prediction": "I think this should be `@Nullable`.", + "reference": "I want to get PartitionData field type, I don't know how to get it in other way." + }, + { + "prediction": "I think this should be `GetEx(addr, cidx basics.CreatableIndex, ctype basics.CreatableType)` instead of `GetEx(addr, cidx, ctype)`", + "reference": "I think that a single `Get` method would be preferable, that would have the following parameters: Get(addr basics.Address, withPendingRewards bool, cidx basics.CreatableIndex, ctype basics.CreatableType) where we ignore cidx of -1, and adding support for ctype of \"AssetParams\" or something like that. (i.e. so that this Get call would be good for asset holding/asset params and applications )" + }, + { + "prediction": "I think this should be `(len > 1) && (memcmp(sourceData, HIVE_DEFAULT_NULL_STRING, len) == 0)`", + "reference": "This can handle the '\\\\' problem, but if (not possible) the user define '\\\\' as null, this logic will break. So here, it should be to compare the whole HIVE_DEFAULT_NULL_STRING, and make sure length is equal, as I understand. \\N is NULL, but \\NA is not NULL, what will happen if there is \\NAA ?" + }, + { + "prediction": "Do we need to check if the user is admin?", + "reference": "Hmm, I would think that anyone who can edit the request should be able to delete the observation, in case they accidentally add the wrong person or something." + }, + { + "prediction": "I think we should use `.sort_by(title: :asc).page(1)` instead of `.sort_by(title: :asc).page(1)`", + "reference": "I know we are doing this other places already. It would be good to refactor this and the paginable publicly_visible so that we are DRY. Can wait until after MVP though when we do general cleanup" + }, + { + "prediction": "(style) line over 80 characters", + "reference": "I think this should read \"is always observed before\" or \"is never observed after\"." + }, + { + "prediction": "I think this is a good idea to remove the `Copyright 2002-2020` and `Copyright 2002-2021`.", + "reference": "You might consider adding yourself as an author of the class." + }, + { + "prediction": "I think this should be `freopen(STDERR_FILE, \"a\", stderr);`", + "reference": "If this fails, then 'stderr' is not a valid file handler anymore, and then any further 'write' operations will fail. Maybe some handling of such situation should be added here?" + }, + { + "prediction": "I think this should be `1593493828L` instead of `1593493828L`", + "reference": "Break out tests for events into their own tests rather than placing them in other ones. That makes it easier for us to figure out where problems lie and to do a TDD-driven implementation over new APIs." + }, + { + "prediction": "Why is this change needed?", + "reference": "I think your indentation is wrong here." + }, + { + "prediction": "I think this should be `routeSource` instead of `routeSource`", + "reference": "UT spotted that we weren't marking routes dirty when they targeted at Node and that node's IP changed. e.g., the case where a WEP appears in the syncer before the corresponding node does, so we don't know the node's IP. I added a new map to track the CIDRs for each node so that when the node IP changes we can mark those CIDRs dirty. Right now it's only used for the \"WorkloadIPs\" scenario. Need to decide if the same issue applies in the \"CalicoIPAM' case. I suspect it might. It looks like we have some logic present to detect when our own node IP changes, but we don't seem to handle when a remote node's IP changes." + }, + { + "prediction": "I think this should be `if Gem.win_platform?` instead of `require 'openssl'`", + "reference": "Given this will 'pause' bolt for a few seconds on older rubies, perhaps emit a debug message saying \"Warming up OpenSSL\" or something to that effect" + }, + { + "prediction": "I think this should be `set_format` or `set_format`?", + "reference": "Initializing _format to None, but asserting that it's not None later, seems unnecessarily fragile. We shouldn't architect the package class to rely on classes or methods that use it (e.g., build). Let's at least set the format to the default in case we don't create all packages through build.py." + }, + { + "prediction": "Why not use `WebElement` instead of `WebElement`?", + "reference": "This change should also probably go into the corresponding method of the abstract By class?" + }, + { + "prediction": "I think this should be `ERROR_LEVEL` and `SHORTCODE`.", + "reference": "Should this be set to something else?" + }, + { + "prediction": "I think this should be `Hi` instead of `Hi`.", + "reference": "Whats up with this? It looks like this is rendered on purchases/new for subscribers, so it would result in a dead end?" + }, + { + "prediction": "I think this should be `Store.custom_options(backend=None)` instead of `Store.custom_options(backend=None)`", + "reference": "Glad to see this generalized to support the backend argument." + }, + { + "prediction": "I think this should be `ListDeploymentChainsRequest` or `GetDeploymentChainRequest`.", + "reference": "`ctx` is unused in ListDeploymentChains" + }, + { + "prediction": "Why is this change needed?", + "reference": "I'd say the format like `\"xxx: %w\"` is more convention when wrapping an error basically. You refered to anything like this?" + }, + { + "prediction": "why is this change needed?", + "reference": "This seems relatively high, is it the recommended value from the etcd folks? Or is this debugging cruft?" + }, + { + "prediction": "Why is this change needed?", + "reference": "This requires updating the name in the `endpoints` tests, please run `make test`." + }, + { + "prediction": "Shouldn't this be `FLAGS_data_path.empty()`?", + "reference": "LOG(FATAL) means coredump, LOG(ERROR) is better here." + }, + { + "prediction": "`handle` is not used anymore.", + "reference": "/javascript/firefox-driver is the Selenium implementation of a WebDriver for Firefox. Since it generally isn't W3C compatible, it shouldn't change. We can just drop this change." + }, + { + "prediction": "I think this should be `yaml.Unmarshal(in, m)` instead of `yaml.Unmarshal(in, m)`", + "reference": "It's a bit weird to have `svc.go` to include a `ScheduledJobType`...should we rename this file?" + }, + { + "prediction": "I think this should be `vendor/tpb/tpb` and not `tpb/tpb`", + "reference": "For some reason `protoc` doesn't copy license header from `proto` files to generated code. But this code will never be checked in, so it is ok." + }, + { + "prediction": "I don't think we need to check if `trList2.size() > 0`", + "reference": "I don't know what the implications of this change are for pumps other than the insight but i would add `|| trList2.get(0).pumpId == temporaryBasal.pumpId` in case we see the same pump event again, in order to not duplicate it in the database." + }, + { + "prediction": "Why is this change needed?", + "reference": "is there anything still referencing `checksumAddress` or can we just delete it?" + }, + { + "prediction": "I think this should be `hivev1.RequirementsMetCondition` instead of `hivev1.RequirementsMetCondition`", + "reference": "The reason I didn't suggest it before is because I didn't want alerts for every tried - but not updated provision, but I can see a value in it from OSD perspective" + }, + { + "prediction": "I think we should use `ENV['APP_DOMAIN']` instead of `ENV['APP_DOMAIN']`", + "reference": "Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping." + }, + { + "prediction": "I think this should be `nilkeys = append(nilkeys, a)`", + "reference": "I believe Key is not necessarily nil, it could be empty string. Probably better check a.Kind == Create" + }, + { + "prediction": "Can we use `CancellationToken` instead of `CancellationToken`?", + "reference": "This is only used for headers and therefore isn't used." + }, + { + "prediction": "I think this should be `CodePullCommand` instead of `CodePullCommand`", + "reference": "Wouldn't it make sense to add a files_import_command and a db_import_command, which could be empty? I guess that leads to potential backward-compatibility problems, but it's worth thinking about. Perhaps add an import-api version to solve that? Overall, I think the actual db import logic and files import logic should be moved into the yaml file. What you you think of that?" + }, + { + "prediction": "I think we should use `ast.Package{}` instead of `ast.Package{}`", + "reference": "Why do we have this here? I'm not concerned about it really, just curious." + }, + { + "prediction": "Why is this change needed?", + "reference": "@justicz Why are these switched here?" + }, + { + "prediction": "I think this should be `expect(response.body).to include('FAQ')` instead of `expect(response.body).to include('FAQ')`", + "reference": "Maybe verify that an anchor was created -- that the markdown was processed?" + }, + { + "prediction": "why is this change needed?", + "reference": "Is this just a minor improvement or is it necessary? If just some minor improvement, I recommend you don't touch Lucene in a Solr PR." + }, + { + "prediction": "Why is this removed?", + "reference": "why delete this method?" + }, + { + "prediction": "I don't think this is needed.", + "reference": "Does this transform only the `MethodContext`, or also the `OutputContext`? (Looking at the other files, I gather it's the latter.) Might be helpful to mention that here." + }, + { + "prediction": "I don't think this is needed anymore.", + "reference": "Could you please clean-up this line while at it?" + }, + { + "prediction": "I think this should be `*string` instead of `*string`", + "reference": "no need to use a pointer. Just string and check for != \"\"" + }, + { + "prediction": "I think this should be `serverOptions.setUseAlpn(endpointObject.isHttp2Enabled());`", + "reference": "this means h2 mode? but how h2c can work?" + }, + { + "prediction": "I think this file should be removed.", + "reference": "This line should not be there" + }, + { + "prediction": "I think this should be `defer t.mutex.Unlock()`", + "reference": "why do we need lock here? if needed, then we also need to lock in Start()?" + }, + { + "prediction": "Why is this needed?", + "reference": "this should be on default-switch, uhm? else you will handle twice (c++ and lua). I'm just saying..." + }, + { + "prediction": "I think we should be able to keep the `Aggregation` property in the `MetricsStreamConfiguration` class. I think we should keep the `MetricStreamConfiguration` class in the `MetricsStreamConfiguration` class.", + "reference": "unrelated minor fix" + }, + { + "prediction": "I don't think we need this, but I think it would be better to use `npm conf set strict-ssl false` instead of `npm conf set strict-ssl false`.", + "reference": "can you add `, echo: false` to the end of this as well. I don't think we need to echo this to the log. You might need to update the spec as well." + }, + { + "prediction": "I think this should be `assert headers[\"Host\"] == \"barbarfoo.com\"` and `assert headers[\"Accept\"] == \"barbarbar.com\"`", + "reference": "This test does not really verify that we're doing the correct thing now, is it? It seems to pass with and without the patch." + }, + { + "prediction": "I think this should be `log.StartWithErr(ctx, \"Node.AddNewBlock\")`", + "reference": "should just be able to defer the call directly here too" + }, + { + "prediction": "I think this should be `y=1.05` instead of `y=1.05`", + "reference": "Is this a magic number? I assume this makes it look better." + }, + { + "prediction": "Why is this change needed?", + "reference": "Would welcome a stringification method on big.Int in specs-actors" + }, + { + "prediction": "Shouldn't this be `PersistBlockLevelInfo`?", + "reference": "PersistBlockLevelInfo -> UpdateBlockLevelInfo" + }, + { + "prediction": "I think this should be `backbone=dict(model=dict(model=dict(model=dict(backbone=dict(backbone=dict(backbone))))`", + "reference": "Type is redundant since it is inherited." + }, + { + "prediction": "I think this method should be `isNotView` and not `isView`", + "reference": "better use `!isView()` so that we don't need to modify multiple lines in future." + }, + { + "prediction": "Do we need this to be private? I think it would be better to add a `@api public` method to the `RSpec::Core::Warnings` class.", + "reference": "I know you don't usually open up the singleton class, but I was getting a `private method called` error when trying to use `self.attr_writer` - any idea?" + }, + { + "prediction": "I think we should add `item.Type === 'UserView'` to this list.", + "reference": "There's no need to create a new variable here, the other checks just use the item type directly." + }, + { + "prediction": "I don't think we need to add this to the `Product` class, since it's only used in the `Product` class.", + "reference": "Any other possible names? Feels like going with \"workshop\" for this product_type could increase the confusion between course/workshop in the codebase." + }, + { + "prediction": "Why do we need this?", + "reference": "@eugene-manuilov Isn't this already taken care of by `fetchGetURLChannels` via `createFetchStore`? Why is the extra `receiveError` call needed here? (This was already in the IB, but just struck me while reviewing here.)" + }, + { + "prediction": "I think we should use `googlecloudprofiler` instead of `googlecloudprofiler`", + "reference": "nit: should go before `grpc`?" + }, + { + "prediction": "Why is this change needed?", + "reference": "Why not using the Cancel? I thought cancelling a \"parent\" context would cascade to \"children\" contexts, cancelling them as well. In short, how does cancel work?" + }, + { + "prediction": "I think this should be `strings.HasPrefix(ty, \"text/\")` instead of `strings.HasPrefix(ty, \"text/\")`", + "reference": "Could you explain why we default to binary now? It seems it's safer to default to text to avoid stuff getting executed or parsed by browsers accidentally. If we need to add support for particular types, we can add them explicitly right?" + }, + { + "prediction": "I think this should be `openstack-region` or `openstack-region-local`", + "reference": "Bit worried about the prefix since this seem to be being used for non-Openstack data too (host endpoints). Should we just leave host endpoint status at the old path (or remove it since AIFAIK, it's not used anywhere)?" + }, + { + "prediction": "I think this should be `2[0-3]` instead of `2[0-3]`", + "reference": "This might be a silly question, but what happens to files with durations > 24 hours?" + }, + { + "prediction": "Why is this change needed?", + "reference": "`AddDiagnosticSourceInstrumentation` method can now be eliminated and simply use `AddInstrumentation`" + }, + { + "prediction": "I think this should be `expect(project.name).to equal('puppetlabs-foo')` instead of `expect(project.name).to not equal('puppetlabs-foo')`.", + "reference": "I think we also need to add `name:` to the bolt-project.yaml files in `spec/fixtures/projects`." + }, + { + "prediction": "I think this should be `unmergedMDUpdates` instead of `unmergedMDUpdates`", + "reference": "worth mentioning the same warning here as in `md_util.go`, I think." + }, + { + "prediction": "I think this should be `if nodeList.Items == nil || len(nodeList.Items) > 0`", + "reference": "Do we need both the checks, for `Items` not nil and `len(Items)`" + }, + { + "prediction": "Shouldn't this be `approving_client_request_id`?", + "reference": "Do you know what this is coming from? It keeps getting deleted/created @nickbristow" + }, + { + "prediction": "Why is this removed?", + "reference": "Nit: leaving these in place would have reduce the number of files that this needed to touch, and avoided a possible problem removing public fields. I don't think it's worth blocking for this change, but we like to keep patches as small as possible by not breaking references like these." + }, + { + "prediction": "I think we should add a `@deprecated` message to the error message.", + "reference": "`The %s is deprecated...` -> `The %s method is deprecated...`" + }, + { + "prediction": "I think we should move this to specs-actors", + "reference": "No, it wouldn't go there because that code won't reference or enforce it. Here is ok for now." + }, + { + "prediction": "I think this should be `true` instead of `false`.", + "reference": "How will we show that test run aborted (because of a crash) if we don't set aborted to true?" + }, + { + "prediction": "I think this should be `KestrelMemoryPool.MinimumSegmentSize / 2` instead of `KestrelMemoryPool.MinimumSegmentSize`", + "reference": "Nit: Might as well make this same change to AdaptedPipeline." + }, + { + "prediction": "I think this should be `OffsetDateTime.ofInstant(ZoneOffset.UTC).toLocalDateTime(ZoneOffset.UTC)`", + "reference": "Just to clarify: I see that only the hive2 withZone object inspector is changed. Does that mean that the predicate pushdown problem only occurred on hive2?" + }, + { + "prediction": "I think this should be `A[a-zA-Z0-9]+[-/](?[a-z][a-z0-9_]*)\\z` instead of `A[a-zA-Z0-9]+[-/](?[a-z][a-z0-9_]*)\\z`", + "reference": "Based on username requirements for forge.puppet.com - only letters and digits permitted." + }, + { + "prediction": "Why is this removed?", + "reference": "Was this removed to ignore the extra columns coming from the file projection?" + }, + { + "prediction": "I think this should be `!windows`.", + "reference": "Please can you pull out the shared function into a shared file? I think that'd be pretty easy to do for this module. I think you could: - pull out a function `configureSyslog` that is implemented on Linux, but stubbed on Windows - pull out a function `openLogFile` that is implemented differently on each - share everything else" + }, + { + "prediction": "Why is this needed?", + "reference": "Instead of hardcoding the AWSEmailProvider here, it should come from properties, so that it can be replaced with another EmailProvider for ZMS vs ZTS" + }, + { + "prediction": "I don't think we need to do this, but I think it's a good idea to have a `login` and `password` and `password_confirmation` as well, but I think it would be better to have a `login` and `password_confirmation` and `password_confirmation` as well.", + "reference": "+1 for creating this script to help people get boot strapped" + }, + { + "prediction": "This should be `PREACT_ATTR_PREFIX` instead of `PREACT_ELT_KEY_PREFIX`.", + "reference": "Do you need the prefix?" + }, + { + "prediction": "I think this should be `deleteFromTextTable(&cliInterface, objUID, COM_OBJECT_COMMENT_TEXT);`", + "reference": "if retcode is < 0, it should return -1 indicating an error." + }, + { + "prediction": "I think this should be `useless-suppression`.", + "reference": "Are those necessary? I feel like `useless-suppression` could be avoided here?" + }, + { + "prediction": "I think this should be `if (condition.Condition === 'LessThanEqual' && condition.Property === 'AudioSampleRate') {`", + "reference": "Is this equivalent in JavaScript?" + }, + { + "prediction": "I think this should be `LOG(INFO) << \"Get Edge Index SpaceID: \" << spaceID<< \" Index Name: \" << indexName<< \" Get Edge Index SpaceID: \" << spaceID<< \" Get Edge Index SpaceID: \" << spaceID<< \" Index Name: \" << indexName<< \" Get Edge Index SpaceID: \" << spaceID<< \" Get Edge Index SpaceID: \" << spaceID<< \" Get Edge Index SpaceID: \" << spaceID<< \" Get Edge Index Name: \" << indexName<< \" Get Edge Index Name: \" << \" Get Edge Index SpaceID: \" << spaceID<< \" Index Name: \" << indexName<< \" Get Edge Index SpaceID: \" << spaceID<< \" Get Edge Index SpaceID: \" << spaceID<< \" Index Name: \" << indexName<< \" Get Edge Index SpaceID: \" << spaceID<< \" Get Edge Index SpaceID: \" << spaceID<< \" Get Edge Index Name: \" << spaceID<< \" Get Edge Index Name: \" << indexName<< \" Get Edge Index Name: \" << \" Get Edge Index Name: \" << \" Get Edge Index Name: \" << indexName<< \" Get Edge Index Name: \" << indexName<< \" Get Edge Index Name", + "reference": "get/list operation is not schema change, it is supposed to use VLOG" + }, + { + "prediction": "I think this should be `new ReadOnlySpan>(tags);`", + "reference": "we'll need to delete this whole file, right?" + }, + { + "prediction": "I think it would be better to use `TransactionalCatalog` instead of `TransactionalCatalog`", + "reference": "\"this table hasn't mutated within this transaction\" may sound like implying that if this transaction contains table mutation changes, `refresh` may have impact, which I think is not true? I guess what you were saying was if other transactions committed to this table successfully when this transaction is half way through, refresh in this transaction will still return the same state as when this transaction begins." + }, + { + "prediction": "I think this should be `cert-manager.io/request-is-ca`", + "reference": "Can we move these into some kind of experimental API group? I don't think we want to call them `v1` just yet :)" + }, + { + "prediction": "Layout/MultilineMethodCallBraceLayout: Align the parameters of a method call if they span more than one line.
    Layout/MultilineMethodCallBraceLayout: Align the parameters of a method call brace if they span more than one line.
    Layout/MultilineMethodCallBraceLayout: Align the parameters of a method call brace if they span more than one line.
    Layout/MultilineMethodCallBraceLayout: Align the parameters of a method call brace if they span more than one line.
    Layout/MultilineMethodCallBraceLayout: Align the parameters of a method call if they span more than one line.
    Layout/MultilineMethodCallBraceLayout: Align the parameters of a method call brace if they span more than one line.
    Layout/MultilineMethodCallBraceLayout: Align the parameters of a method call brace if they span more than one line.
    Layout/MultilineMethodCallBraceLayout: Align the parameters of a method call brace if needed.", + "reference": " I think this makes a lot of sense but we may want to highlight the change for people doing UAT in case the ordering of sections is off anywhere when customizing or using the drag-drop feature" + }, + { + "prediction": "I think this should be `script.type = 'text/javascript'`", + "reference": "These files should in `/javascript/brython`" + }, + { + "prediction": "Why is this removed?", + "reference": "I'm not sure this is the right fix - I'd be more happy with a `continue`. That way, we don't enter the code at the bottom of the run loop (e.g. sending packets). Keep in mind that this error here may be triggered by a peer doing something security-relevant, so I don't think we should do much more work other than sending the close frame." + }, + { + "prediction": "Why do we need to check if `m_weights` is an array?", + "reference": "Can we fix this, or is it going to stay broken." + }, + { + "prediction": "Why is this removed?", + "reference": "Is there a reason to remove this attr?" + }, + { + "prediction": "I think this should be `config.CONFIG.GetValue(\"devicecontroller.message-layer\").ToString()`", + "reference": "log message should be started with upper-case word." + }, + { + "prediction": "I think this should be `512 * KiB` instead of `512 * KiB`.", + "reference": "I guess this is not needed anymore now?" + }, + { + "prediction": "Why is this change needed?", + "reference": "I think I would prefer retaining the argument. It's true that we are not using it now, but it's harmless, it's good to have a constructor function that accepts all the field values as arguments. Performance-wise, it does not matter." + }, + { + "prediction": "I think this should be `this.startWorkspace_.setResizesEnabled(false);`", + "reference": "Is this a different fix?" + }, + { + "prediction": "I think this should be `if !req.WithoutNS { processBuilder = bpm.DefaultProcessBuilder(\"sh\", \"-c\", fmt.Sprintf(\"ls %s.chaos.bak %s.chaos.bak %s.chaos.bak %s.chaos.bak %s.chaos.bak %s.chaos.bak %s.chaos.bak %s.chaos.bak %s.chaos.bak\", pid, bpm.MountNS, DNSServerConfFile, DNSServerConfFile, DNSServerConfFile)`", + "reference": "Why not add a `EnterNS` filed instead of `WithoutNS`?" + }, + { + "prediction": "I think this should be `VXLANPort` or `VXLANVNI`.", + "reference": "Same points as in other test file." + }, + { + "prediction": "I think this should be `JSONBoolWithQuotes(bool value)` instead of `JSONBoolWithQuotes(bool value)`", + "reference": "I have a PR pending, can you change this bit index to `16`?" + }, + { + "prediction": "why not use `classOrInterfaceType.toString().indexOf('.') > -1`?", + "reference": "we should probably have some utility class for this sort of things" + }, + { + "prediction": "Why is this change needed?", + "reference": "Curious that I'm not seeing any occurrence of the new error check in this file. Why was it disabled?" + }, + { + "prediction": "I think this should be `@param {Realm~Configuration} config The configuration for the Realm.", + "reference": "does it return something?" + }, + { + "prediction": "`data` should be `data` instead of `data`", + "reference": "This function is also called in various Site Kit module components, where the error object (here `data`) also needs to be passed, otherwise the link to fix the issue won't appear." + }, + { + "prediction": "I think this should be `DescribeIdentifier` or something like `DescribeRevisionIdentifier`", + "reference": "super nit: `revision string` (the passed value might not be a SHA hash)." + }, + { + "prediction": "Why is this private?", + "reference": "@snakefoot why is internal needed?" + }, + { + "prediction": "I think this should be `DisableHealthCheck: true` instead of `DisableHealthCheck: false`", + "reference": "Why were we disabling health checks before?" + }, + { + "prediction": "why is this change needed?", + "reference": "did `conftest.py` actually show up for you? `test_files` should never contain it..." + }, + { + "prediction": "I think we should use `ComIsTrafodionExternalSchemaName(schemaQualName_.getSchemaName())` instead of `ComIsTrafodionReservedSchemaName(schemaQualName_.getSchemaName())`", + "reference": "Should this be a ! on line 565? I would have expected the condition to be similar to line 564. If I am wrong please excuse my mistake." + }, + { + "prediction": "I think we should add this column to the `FEED_IMAGES` table instead of the `FEED_VOLUME_REDUCTION` table.", + "reference": "Please change to `1070400`. I promise to look into this PR in more detail before the 1.7.4 release ;)" + }, + { + "prediction": "Why is this change needed?", + "reference": "Can we change to use `LogicalType.getChildren`?" + }, + { + "prediction": "I think this should be `.should eq 'free'` and `.should eq 'subscription'`", + "reference": "I'm confused as to how these are both passing." + }, + { + "prediction": "Use the new Ruby 1.9 hash syntax.
    Prefer single-quoted strings when you don't need string interpolation or special symbols.
    Prefer single-quoted strings when you don't need string interpolation or special symbols.
    Prefer single-quoted strings when you don't need string interpolation or special symbols.
    Prefer single-quoted strings when you don't need string interpolation or special symbols.
    Prefer single-quoted strings when you don't need string interpolation or special symbols.", + "reference": "Prefer single-quoted strings when you don't need string interpolation or special symbols." + }, + { + "prediction": "I think this should be `string[]|null`", + "reference": "there is `\"` sign in commit message and colon. can you rename also `descrition` to plural `descriptions` and add there `$` ?" + }, + { + "prediction": "I think we should use `metricsScope.RecordTimer(metrics.ServiceLatencyUserLatency, userLatencyDuration)` instead of `metricsScope.RecordTimer(metrics.ServiceLatencyUserLatency)`", + "reference": "timerNoUserLatency is not being used?" + }, + { + "prediction": "I think we should use `isodate.parse_date` instead of `isodate.parse_date`", + "reference": "@lmazuel - I've made a couple of minor changes to serialization.py, if you could do a quick review :) They should not be breaking, and I doubt are used by the existing clients so may not need a new release yet. Effectively it's a change to support default/constant date and datetime values by allowing strings to passed in instead of date or datetime objects. The strings would need to already be in the correct ISO formatting that the request will serialize to. Let me know if you think this is okay." + }, + { + "prediction": "Why is this change needed?", + "reference": "Why change the name in the XML?" + }, + { + "prediction": "Line is too long. [92/80]", + "reference": "This is much cleaner. makes it easier to tell what happens on a save." + }, + { + "prediction": "I think this should be `case datastore.OperatorContains:` and `case datastore.OperatorNotEqual:`", + "reference": "Could you add return error unsupported operator here " + }, + { + "prediction": "I think this should be `StreamModule`", + "reference": "(Mhh, we seem to use different formatters - we should unify them. I like the wildcards)" + }, + { + "prediction": "I think this should be `enumspb.TASK_QUEUE_KIND_NORMAL`", + "reference": "Should `kind` be a command line parameter also?" + }, + { + "prediction": "Why is this change needed?", + "reference": "can we have it inside FromAccessList?" + }, + { + "prediction": "I think we should use `errorString` instead of `errorString`", + "reference": "Why not embed filterASCII in this function?" + }, + { + "prediction": "Is there a reason why we don't count the flow in the queue if there is no flow in the queue? I don't think we need to count the flow in the queue if there is no flow in the queue.", + "reference": "I am curious, shouldn't \"currentContinuousFlowProcessed++;\" be added right after line 1873? otherwise we will count 1 extra when a exflow wakes up from the sleep section,.even though it hasn't been assigned" + }, + { + "prediction": "I think this should be `# pylint: disable=protected-access`", + "reference": "You can probably move this up after the `._Numeric` line." + }, + { + "prediction": "I think this should be `super(SGEJobTask, self).__init__(*args, **kwargs)`", + "reference": "@Tarrasch this is another change you need to pay attention, it seems `SGEJobTask` is not calling `super.__init__` which break the test case some how." + }, + { + "prediction": "Do we need this migration?", + "reference": "Do we need indices for this table?" + }, + { + "prediction": "I think this should be `flb_http_client_check_connection(struct flb_http_client *c);` or `flb_http_client_check_connection(struct flb_http_client *c);`", + "reference": "what about making this function static inline to avoid the extra declaration ?" + }, + { + "prediction": "I think this should be `GroupIDType`", + "reference": "I forget the difference between type definition with \"=\" and without \"=\" again, but can we unify the style? I believe the difference doesn't apply to TableIDType and GroupIDType whatever it is?" + }, + { + "prediction": "Shouldn't this be `1.0` instead of `1.0`?", + "reference": "would be `DEPRECATED Percentage of the graph (in vertices) to contract [0..1]` better?" + }, + { + "prediction": "I think this should be `SELECT_CAST_SINK_TO_USE` instead of `SELECT_CAST_SINK_TO_USE`", + "reference": "These command names are specific to Chromium-based browsers. Please move to `ChromiumDriverCommand`" + }, + { + "prediction": "I think this should be `new Dictionary();` instead of `new Dictionary();`", + "reference": "if we won't use, should we remove this?" + }, + { + "prediction": "I think this should be `MvvmCross.Platforms.Android.Views` instead of `MvvmCross.Platforms.Android.Binding.Views`", + "reference": "Having 2 items with the same key (Mvx) won't work in a dictionary" + }, + { + "prediction": "This should be `@coupon ||= Coupon.new.new(params[:id])`", + "reference": "@cpytel how does the flow work right now? I expect to go to the sign up as customer page after putting in my code, but it goes to the longer landing page?" + }, + { + "prediction": "Why is this change needed?", + "reference": "`event_msg` has the same size (1024) as a `message`. Maybe should be increased to 2048 instead? Then this `\"[error] %.512s\", message` could be changed to this: `\"[error] %.*s\", sizeof(message), message`" + }, + { + "prediction": "Why is this interface removed?", + "reference": "Nit: unnecessary whitespace change." + }, + { + "prediction": "I think this should be `output := exec.Command(prog, args...).CombinedOutput()`", + "reference": "Hit a flake here where I think there may have been some output to stderr that got mixed in with the output from Stdout. Hence switching to `Output()`, which does also capture stderr as `err.Stderr`" + }, + { + "prediction": "I think this should be `LBANN_ERROR(this->get_type(), \"\\\" data reader\", \"but data sample\", data_id,\" has a label of \", label);`", + "reference": "I would use static_cast(0) and static_cast(m_num_labels) just in case." + }, + { + "prediction": "I think this method should be called `resource.contains(\":\")` instead of `resource.indexOf(\":\")`", + "reference": "Even if we want to keep in original case - domain will be lower-cased." + }, + { + "prediction": "Use 2 (not 3) spaces for indentation.", + "reference": "Based on discussion with Chad it feels like trail_map_json could be a good column name." + }, + { + "prediction": "I think we should use `lang::get('backend::lang.user.allow'),` instead of `lang::get('backend::lang.user.inherit'),`", + "reference": "This array should be logic-less, just the language string (without `Lang::get()`) should appear. Then `trans()` is [or should be] used when the balloon selector renders the values." + }, + { + "prediction": "I think this should be `BUNDLE_GEMFILE=/opt/puppet/share/puppet-dashboard/Gemfile`", + "reference": "This looks like it runs both pre 3.0 rake tasks and 3 rake tasks, and since pre 3.0 we didn't use bundler, my guess is it will fail then." + }, + { + "prediction": "I think we should use `strings.Join(allowed, \"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ:-_.\\\\\")` instead of `strings.Join(allowed, \"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ:-_.\\\\\")`", + "reference": "I'm not sure the replacement is a good idea, and as I said in #336 , this \"parent-name.scope\" is not a good idea in the first place, specially when we support assigning a slice as the parent, so we should change this, WDYT?" + }, + { + "prediction": "Why do we need to commit the batch?", + "reference": "sloppyReassign: re-assignment to `err` can be replaced with `err := kv.WriteBatch(batchForBlock)` (from `gocritic`)" + }, + { + "prediction": "I think this should be `CompletableFuture.completed(null);`", + "reference": "using factory method. return CompletableFuture.completedFuture" + }, + { + "prediction": "I think this should be `_x( 'Service name', 'google-site-kit' )`", + "reference": "The `_x` function needs to be imported at the top of the file (in addition to `__`)" + }, + { + "prediction": "Why is this change needed?", + "reference": "this looks like the only controversial change potentially. @MatthewHinton56 Could let us know why you made this change (which `go vet` warning was triggered)? @wenyingd could you take a look and let us know if you're okay with this change?" + }, + { + "prediction": "Why is this needed?", + "reference": "This seems like left-over debugging code. I think I fixed this to no longer be necessary, switching to UserControl for the designer." + }, + { + "prediction": "I think this should be `ProxyListenerELBV2`", + "reference": "As we're currently not applying any logic in the proxy listener, I guess we can simply remove this file (and remove the `listener` argument from the `register_plugin(..)` call above)." + }, + { + "prediction": "I think we should use `time.Now().Unix()` instead of `time.Now().Unix()`", + "reference": "Isn't the point of the clock module to encapsulate access to `time.Now()`? Coming later?" + }, + { + "prediction": "I think this should be `fastUpgradeProtocols[consensusTestFastUpgrade(proto)] = fastParams.AgreementFilterTimeoutPeriod0 = time.Second`", + "reference": "as before - if you've set this, you should be able to get rid of the `os.Setenv(\"ALGOSMALLLAMBDAMSEC\", \"500\")`. make sure that the various tests still takes have the same execution time." + }, + { + "prediction": "I don't think we need to do this, but I think it's better to use `curl -fLo` instead of `curl -fLo`.", + "reference": "Pretty sure the single quotes here should be double quotes, single quotes are not expanded by the shell." + }, + { + "prediction": "I think we should use `Validate.notBlank(stringArg, \\\"message %s\\\", compileTimeConstant);` instead of `Validate.notBlank(stringArg, \\\"message %s\\\", compileTimeConstant);`", + "reference": "these are not really constants, right?" + }, + { + "prediction": "I don't think we need to import six here.", + "reference": "import below copyright statement" + }, + { + "prediction": "I think we should use `expect(email.subject).to include('receipt')` instead of `expect(email.to).to include('receipt')`", + "reference": "Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping." + }, + { + "prediction": "Why not just `array`?", + "reference": "`if (is_string($value) && $this->getDefinition()->get('allow_html')) {`" + }, + { + "prediction": "Why is this change needed?", + "reference": "I think we have the same problem here - if folks called the `public void Add` with a `null` key, we need to use `Guard`." + }, + { + "prediction": "I think this should be `#include CATCH_CONFIG_MAIN`", + "reference": "I thought that the main was in catch_qt.cpp?" + }, + { + "prediction": "I think we should use `ProductImageField.PACKAGING` instead of `ProductImageField.PACKAGING`.", + "reference": "I would rename the field to IMAGE_TYPES and make it an array. I don't think we need list operations. Also, if possible, I would move the field to the ApiFields class. What do you think?" + }, + { + "prediction": "Shouldn't this be `assert.Equal(t, containerEvent.ManagedAgents[0].Status, containerEvent.ManagedAgents[0].Status, \"expected managedAgent container state change event did not match actual event\")`", + "reference": "I'd prefer to timeout on this, but I know it's not a pattern that is being followed" + }, + { + "prediction": "Why is this needed?", + "reference": "hmm let's not use * imports please" + }, + { + "prediction": "I think this should be `if am.BearerTokenFile != \"\" {`", + "reference": "is this configuration key already exist in prometheus ?" + }, + { + "prediction": "Use the new Ruby 1.9 hash syntax.
    Prefer single-quoted strings when you don't need string interpolation or special symbols.
    Prefer single-quoted strings when you don't need string interpolation or special symbols.
    Prefer single-quoted strings when you don't need string interpolation or special symbols.
    Prefer single-quoted strings when you don't need string interpolation or special symbols.", + "reference": "As @gravitystorm said new tests need to be using factories, not fixtures." + }, + { + "prediction": "I don't think we need to change the `addr_` and `port_` here.", + "reference": "You can replace IP by hostname." + }, + { + "prediction": "I think this should be `for match in usbDevs: if match.type == KEY_HID and match.deviceInfo.get('HIDUsagePage') == HID_USAGE_PAGE_BRAILLE:`", + "reference": "This should say \"why\" NVDA should do things in this order." + }, + { + "prediction": "Why is this change needed?", + "reference": "nit these will get changed back during next release." + }, + { + "prediction": "I think this should be `package api` instead of `package api`", + "reference": "it is actually not needed to make the member public. the build tags can also set a package scoped variable." + }, + { + "prediction": "Shouldn't this be `icon`?", + "reference": "We already have a method for it 'icon' => $content->getIcon()" + }, + { + "prediction": "I think this should be `golang.org/x/net/context` instead of `golang.org/x/net/context`", + "reference": "Instead of importing `golang.org/x/net/context` The SDK should use `aws.BackgroundContext()` instead of `context.Background()`" + }, + { + "prediction": "Why not use `$this->get('sonata.media.manager.media')->findOneBy('id' => $id);`?", + "reference": "I think this is an agnostic change for the ORM right? Why was it doing this? - this does not work on PHPCR-ODM as the `id` is not a field - although I guess it could be mapped as such." + }, + { + "prediction": "Layout/EmptyLinesAroundClassBody: Extra empty line detected at class body end.", + "reference": "I'm not 100% sure, but I think this should be `explorable`. If not, I think `explorable` can be removed entirely." + }, + { + "prediction": "Why is this change needed?", + "reference": "Note to self: Why was this not originally not using `stderrbytes`?" + }, + { + "prediction": "This should be `LOG_IF(WARNING, status < 0)`", + "reference": "Is betterLOG_IF(ERROR, status != 0) ?" + }, + { + "prediction": "I think this should be `self.bucket` and `self.collection`", + "reference": "I wouldn't call it default too." + }, + { + "prediction": "I think this should be `eslint-disable no-var`.", + "reference": "Why disable the rule for this file?" + }, + { + "prediction": "I think this should be `ctaLinkExternal` instead of `ctaLinkExternal`.", + "reference": "Thanks for adding this :+1:. Could you please move it to go after the `ctaLink` prop?" + }, + { + "prediction": "I think this should be `!` instead of `!`", + "reference": "The other way around Current can be null." + }, + { + "prediction": "I think we should use `admin_mail_template` instead of `admin_mail_template`", + "reference": "why does it have to be here? Due to breadcrumb navigation?" + }, + { + "prediction": "I think we should use `resource.ParseQuantity` instead of `resource.ParseQuantity`", + "reference": "I fear moving this to some common func. We are swallowing the error here. This might be ok in UT but not in actual source code." + }, + { + "prediction": "I think we should use `assert str(cm.value) == str(expected)` instead of `assert str(cm.value) == str(expected)`", + "reference": "Please don't use \\ as a line continuation. Do an implicit string join instead with parens: ``` (\"Message ...\" \"and ...\")" + }, + { + "prediction": "Why is this removed?", + "reference": "there needs to be a change here. setting up the batchstore with localstore.Unreserve hook" + }, + { + "prediction": "Why not use `ConfigModel` here?", + "reference": "I think if we can provide a more convenient method to add configs . e.g. public static void addConfig(String k, Object v)" + }, + { + "prediction": "Why is this change needed?", + "reference": "line is 165 characters" + }, + { + "prediction": "I think this should be `OceanbaseValueHandlerProvider`.", + "reference": "Please add a copyright notice. Also, could you tell me please why do we need this empty provider here?" + }, + { + "prediction": "Why not use `maybePrivacyGroup.get().getMembers().contains(enclavePublicKey)` instead of `maybePrivacyGroup.get().getMembers().contains(enclavePublicKey)`?", + "reference": "I feel like this would be easier to read if we join the two if's together: `if (maybePrivacyGroup.isEmpty() && !privacyController.isGroupAdditionTransaction(privateTransaction))`" + }, + { + "prediction": "Why not just catch `JSONException`?", + "reference": "Tests are failing because the exception type is NullPointException here if the soupBlob is deleted (so instead of a mal-format json, it's a null)" + }, + { + "prediction": "I think this should be `Blockly.INPUT_VALUE` instead of `Blockly.OUTPUT_VALUE`.", + "reference": "Glad we fixed this as well. Blockly is going to be left as-is for this case, right?" + }, + { + "prediction": "Why is this removed in Mobile SDK 7.0?", + "reference": "I had accidentally deprecated this class. This is meant to stick around. Only `SalesforceObjectType` goes away." + }, + { + "prediction": "I don't think we need to use `lstrip('0x')` here, but I think it would be better to use `lstrip('0x')` instead of `lstrip('0x')`", + "reference": "`hex(i)[2:]` is trying to do the same thing above. what is `i` in your malformed case?" + }, + { + "prediction": "`shouldEscape` should be `true` or `false`", + "reference": "I think this change is redundant; see the previously defined method \"writeUnescapedXML\"." + }, + { + "prediction": "I think this should be `[CommitmentLength]byte` and not `[CommitmentLength]byte`", + "reference": "Ah now I have at least some idea what these are for." + }, + { + "prediction": "Why is this change needed?", + "reference": "I believe in previous PRs @mccheah frequently used `fileSchema` -> `newFileSchema` type of renames to avoid hiding fields in builders. Would it make sense to make it consistent?" + }, + { + "prediction": "I think this should be `err = manager.startConnection(consumerID, providerID)` instead of `err = manager.startConnection(consumerID, providerID)`", + "reference": "Do we really need separate error in manager if utils.ErrRequestCancelled is the only error which indicates cancelation ?" + }, + { + "prediction": "I think this should be `tm_cpp` instead of `cpp`", + "reference": "Leave as `cpp` since that still gives better results." + }, + { + "prediction": "Why is this change needed?", + "reference": "temp change so the predicate can be used by the `exp` package" + }, + { + "prediction": "I think this should be `if self.vkCode in self.TOGGLE_KEYS: return False`", + "reference": "Just as a tiny clarification, this isn't affected in any way by \"speak typed characters\". That is, \"caps lock on\", etc. is always spoken, even if speak typed characters is off." + }, + { + "prediction": "I think this should be `config/manager/service.yaml` instead of `config/manager/service.yaml`", + "reference": "@dgoodwin Will it cause an issue when the issue get fixed in OLM?" + }, + { + "prediction": "Why is this changed?", + "reference": "This option is now unnecessary" + }, + { + "prediction": "Why is this change needed?", + "reference": "Don't jump down to the unexported interface: just set the content type to `\"application/octet-stream\"` explicitly when creating the `Writer`." + }, + { + "prediction": "I don't think we need to do this. I think it would be better to use `bytesUsed.addAndGet(-(BYTES_PER_DEL_TERM + term.bytes.length + (Character.BYTES * term.field().length())));` instead of `bytesUsed.addAndGet(-(BYTES_PER_DEL_TERM + term.bytes.length + (Character.BYTES * term.field().length())));`", + "reference": "Instead of counting this here on clear, can we use a second counter for the deleteTerms next to `bytesUsed`? This would be great. It doesn't need to be thread safe IMO" + }, + { + "prediction": "I think this should be `required|between:6,191`", + "reference": "@daftspunk @bennothommo I wonder if we need to go as deep as detecting what the default varchar length is with a special character to be parsed by the validation trait since we've introduced the config for it." + }, + { + "prediction": "I think we should use `.then(keys => keys.join(' '))` instead of `.then(keys => keys.join(' '))`", + "reference": "Also update line 2205 below" + }, + { + "prediction": "I think this should be `firstTimeEmptySubject`", + "reference": "Typo, should read `firstTimeEmptySubject`" + }, + { + "prediction": "Why is this change needed?", + "reference": "The more I see this the more I think the transport layer _should_ actually refer to this as `UnaryHandler`." + }, + { + "prediction": "Line is too long. [92/80]", + "reference": "The `warn` message here seems to indicate that the forced closure of the SSH connection should raise an error; is that getting swallowed up somewhere and not raising?" + }, + { + "prediction": "I think this should be `self._expands_user = False` instead of `False`", + "reference": "I wonder if this is a fitting name. Why \"expands user\"? Wouldn't be `user_expanded` or so be more fitting?" + }, + { + "prediction": "I think this should be `_isHidden`", + "reference": "I see what you are doing here, but to stay with the `getter/setter` pattern, should we introduce `set isHidden(value)` & `get isHidden()` which them maintains `_isHidden` with in `vNodeCache`. This will avoid what looks like accessing an internal property like `_isHidden` from `axe.utils.isHidden` & keeps things neat." + }, + { + "prediction": "I think this should be `SAMPLE_CSPROJ_TEMPLATE_FILENAME`", + "reference": "nit: for consistency, have this line and the previous formatted similarly" + }, + { + "prediction": "I think this should be `orionClientWhitelistFile` instead of `orionClientWhitelistFile`.", + "reference": "As before, shouldn't mention these as being orion options I don't think. Perhaps just enclaveKeyStoreFile etc." + }, + { + "prediction": "Why is this removed?", + "reference": "What's the thinking here? Only logging when the test has not ended yet?" + }, + { + "prediction": "I think this should be `is_log_op = any(f == getattr(spark.Column, f'__{log_op}__') for log_op in log_ops)`", + "reference": "@HyukjinKwon @ueshin (cc @itholic @charlesdong1991 ) Not sure if this is the right implementation ..." + }, + { + "prediction": "I don't think we need to throw an error here. I think we should throw an error if the URL is malformed.", + "reference": "Do we want to add any specific error on how the url is malformed?" + }, + { + "prediction": "I think this should be `if (self->lastLogIdSent_ < self->logIdToSend_) {`", + "reference": "why NOT self->lastLogIdSent_ = self->logIdToSend_" + }, + { + "prediction": "I think this should be `hivev1.ConditionTrue` instead of `hivev1.ConditionFalse`", + "reference": "Shouldn't this be in the above `if` block where we are setting the installedtimestamp to ensure this only happens for already installed (and/or adopted) clusters?" + }, + { + "prediction": "Why is this change needed?", + "reference": "This seems like another unrelated change I've done in `master`." + }, + { + "prediction": "I don't think we need a test for this, but I think it would be nice to have a test for this.", + "reference": "Would be good to have another context `\"when a duplicate formatter exists for a different output target\"` that shows that it keeps both. As this stands, the specs could pass w/o the `formatter.output == new_formatter.output` check." + }, + { + "prediction": "I think this should be `const void* const` instead of `const void* const`.", + "reference": "Why not just remove? The CUDA one has been around for while. This one has not been part of any release (?)" + }, + { + "prediction": "I think this should be `boolean` instead of `boolean`.", + "reference": "nit: `Contentful` is the word used in the GV API, without the uppercase in F" + }, + { + "prediction": "Shouldn't this be `LOGGER.error(swagger.getInfo().getTitle() + \" with path \" + swagger.getBasePath() + \" is an empty interface, please delete it or fill with one method!\");`", + "reference": "It just does the check, maybe we can name it as checkOperations." + }, + { + "prediction": "Why is this change needed?", + "reference": "We no longer have karma output in the test file so these selectors were now unique and the target didn't need a child selector. Updated to force non-unique nodes" + }, + { + "prediction": "I don't think we need to add the `mentor` class here.", + "reference": "This moved from a partial to not being in a partial. How about cleaning this view up further by moving it back into a partial?" + }, + { + "prediction": "I think this should be `recieveUpdates`?", + "reference": "add some form of docs in docstring or on :74 for what the effect is" + }, + { + "prediction": "Why is this change needed?", + "reference": "Couldn't you import `json` from `kinto.core.utils` here too?" + }, + { + "prediction": "Do we need this?", + "reference": "Minor: Hmmm...is it worth setting this explicitly for the tests that it affects?" + }, + { + "prediction": "Why is this removed?", + "reference": "This was added to fix a race condition and you are reverting it here, right?" + }, + { + "prediction": "I think this should be `error` instead of `error`", + "reference": "Could you add some extra text here, so that it reads \"eth_coinbase function is not available, please use --private.api.addr option instead of --chaindata option\", so that it is clear that the function can work, but different options" + }, + { + "prediction": "Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
    Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.", + "reference": "`new_ncr_work_order_path` ? (I've been slowly moving specs over to that way of calling paths)" + }, + { + "prediction": "I think this should be `application/x-shockwave-flash`", + "reference": "Should flash be included in the patterns too? It currently isn't." + }, + { + "prediction": "I think this should be `contract.FullName()` instead of `contract.FullName()`", + "reference": "I suspect I will have to keep looking whether Left/Right refers to contract/Implementation while working on the rules code." + }, + { + "prediction": "I don't think we need to change this to `Microsoft.Rest.Azure.IResource`.", + "reference": "(ignore this. testing a codeflow bug)" + }, + { + "prediction": "I think this should be `CASSANDRA_TLS_DISABLE_HOST_VERIFICATION`", + "reference": "[Nit] can you change the Usage wording to indicate that the flag is used to opt-out of server certificate verification? (e.g. \"disables validation of the Cassandra cluster's server certificate.\")" + }, + { + "prediction": "I think this should be `java.io.IOException`.", + "reference": "Sorry :) Would be really helpful to integrate something like Eclipse Code Formatter, so it will fail if the code style is broken (the same as eslint fails on the frontend) I use IntelliJ IDEA and their vision of imports is a bit different :)" + }, + { + "prediction": "Line is too long. [98/80]", + "reference": "this will still fail on systemd" + }, + { + "prediction": "I think this should be `if type(body) == bytes: body = body.decode('utf-8')` or `if type(body) == bytes: body = body.decode('utf-8')`", + "reference": "The convention in most of the codebase is to use `if isinstance(body, bytes):` instead." + }, + { + "prediction": "I don't think we need to do this, but I think it would be better to use `wx.ID_ANY` instead of `wx.ID_ANY`.", + "reference": "I think this would be better as: `label = comp.rsplit('.', 1)[-1]`" + }, + { + "prediction": "Why is this change needed?", + "reference": "We have been creating a language-level context interface for each language instead of parameterizing the generate function." + }, + { + "prediction": "This should be `null` instead of `''`.", + "reference": "Same thing about context here." + }, + { + "prediction": "Why not use `GetNamespaceByID` here?", + "reference": "there is a function to get namespace entry from mutable state directly" + }, + { + "prediction": "Line is too long. [92/80]", + "reference": "The `Transport::Config` objects don't serialize properly. We probably want to just turn them into hashes at this point." + }, + { + "prediction": "I don't think we need to do this, but I think it would be better to add a `ddev-ssh-agent` container to the `ddev-ssh-agent` container in the `ddev-ssh-agent` container.", + "reference": "Sorry, typo s/unusuable/unusable/" + }, + { + "prediction": "I think this should be `throw new UnsupportedOperationException(\"Cannot set an alternative uri when using the SparkSessionCatalog, \" + \"Iceberg catalog and Iceberg catalog should contact different metastores.\");`", + "reference": "If this is needed, should we check that the configured `uri` isn't already equal to the value of the metastore URI configured via `spark.hadoop.hive.metastore.uris` or any of the other ways of setting it. This would be a breaking change for people who have `uri` configured on the SparkSessionCatalog and have it correctly set (which I believe should be everybody as `uri` is currently required if I'm not mistaken)." + }, + { + "prediction": "I think this should be `if content_type and content_type.startswith(\"multipart/form-data\")`", + "reference": "see above - this is only used to select the correct view, we don't need to handle the boundary information here." + }, + { + "prediction": "I think this should be `SetCertificateRequestCA(certPEM)` instead of `SetCertificateRequestCertificate(certPEM)`", + "reference": "These tests use a self-signed cert so the CA *is* the cert. I considered making a proper chain to use in the tests, but wasn't sure it was necessary to test here, since we test it in the E2E tests anyway." + }, + { + "prediction": "I think this should be `if (excessDomChildren != null && index > -1) excessDomChildren.splice(index, 1);`", + "reference": "We could, maybe, just directly do `excessDomChildren[excessDomChildren.indexOf(dom)] = null;`. Would this improve the size in any way? This will end-up with a property on the `excessDomChildren[\"-1\"]` but maybe we could live with that?" + }, + { + "prediction": "I think this should be `on('$destroy', function unbindEvents() { $elm.off('$destroy', function unbindEvents() { $elm.off('$destroy', function unbindEvents() { $elm.off('$destroy', function unbindEvents() { $elm.off('$destroy', function unbindEvents() { $elm.off('$destroy', function unbindEvents() { $elm.off('$destroy', function unbindEvents() { $elm.on(mouseWheeltoBind[--i]); } }); } ) { unbindEvents(); } } ) ; $elm.off('$destroy', function unbindEvents() { $elm.on('$destroy', function unbindEvents() { $elm.on('$destroy', function unbindEvents() { $elm.on('$destroy', function unbindEvents() { $elm.on('$destroy', $elm.on('$destroy', function unbindEvents() { $elm.on('$destroy', unbindEvents() { $elm.on('$destroy', function unbindEvents() { unbindEvents(); $elm.on('$destroy', function unbindEvents() { $elm.on('$destroy', unbindEvents() ; $elm.on('$destroy',", + "reference": "this looks like it may be something that needs additional refactoring" + }, + { + "prediction": "Why is this removed?", + "reference": "Nit: Remove whitespace (and below)" + }, + { + "prediction": "I don't think we need to add the `error_open_zip` label to the error message, but I think it would be better to add the `error_open_zip` label to the error message.", + "reference": "\"Failed opening\" or \"Failed to open\"." + }, + { + "prediction": "I think this should be `if d.SourceImage != \"\" && d.SourceSnapshot != \"\" {`", + "reference": "and -> or" + }, + { + "prediction": "I think we should use `User.collection.createIndex` instead of `User.diffIndexes`", + "reference": "Add a `yield User.init()` here to wait for all indexes to finish building" + }, + { + "prediction": "I think this should be `local_ip`?", + "reference": "I don't think this belongs here. If the application can take a local_ip as input, the application should take care of it, not in this common library" + }, + { + "prediction": "Shouldn't this be `if ($this->hasCustomData()) { return $this->getCustomData()->delete(); }`?", + "reference": "@DanHarrin please add a `return true` at the bottom of this method, as the docblock indicates a boolean return value." + }, + { + "prediction": "Why is this needed?", + "reference": "This is used in o.a.l.sandbox.search.BM25FQuery." + }, + { + "prediction": "I think this should be `queryRelation == QueryRelation.INTERSECTS` instead of `queryRelation == QueryRelation.INTERSECTS`", + "reference": "Shouldn't this work as well for Disjoint?" + }, + { + "prediction": "Why do we need this?", + "reference": "Same here. This was included to quiet the test for the 3D descriptors. As we removed them, this exception handling is no longer required" + }, + { + "prediction": "Why is this needed?", + "reference": "Why do you need to load a specific data reader in lbann_library?" + }, + { + "prediction": "Why not just return `Task.CompletedTask` instead of `Task.CompletedTask`?", + "reference": "why not ValueTask?" + }, + { + "prediction": "I think it would be better to use `cd.Status.CLIImage == nil` instead of `cd.Status.InstallerImage == nil`", + "reference": "I'm nervous about this line, I don't want to go regenerate a bunch of imageset jobs for clusters that are old, already installed, but don't have a CLIImage set (which they wouldn't because they're old) Adding the Installed guard is meant to address this. Otherwise this *should* recreate the imageset job due to the code in this function that deletes the job if it's finished. (but we don't have our images set due to this clause)" + }, + { + "prediction": "Why is this change needed?", + "reference": "Is it necessary to change this file? Doesn't `tableMetadata` call `newTableMetadata`?" + }, + { + "prediction": "why was this removed?", + "reference": "I think that I have a better proposal for this test - improve it so that it would know how to read the list of SupportedProtocolVersions and dynamically use these. The motivation here is that I expect to have another network version soon, and this test seems to be a good test case for that." + }, + { + "prediction": "I think this should be `LOG.debug(\"Listing of namespace [{}] resulted in the following tables: [{}]\", namespace, tableIdentifiers);`", + "reference": "What is the purpose of this debug message? I'm not sure how it would help." + }, + { + "prediction": "Why is this removed?", + "reference": "Is there a corresponding BUILD dependency to prune?" + }, + { + "prediction": "I think this should be `goodContentType = \"text/plain\"`", + "reference": "The \"good\" and \"bad\" descriptions confused me a bit. Maybe `allowedContentType` and `disallowedContentType`? Not sure if that's better." + }, + { + "prediction": "I don't think we need to check if the session ID is null. If the session ID is null, then the session ID will not be null.", + "reference": "It would be better to just change RWD to throw IllegalStateException if you attempt to execute a command after quit (unless it's a second call to quit())" + }, + { + "prediction": "Why not use `4s` here?", + "reference": "You may want to have a look at `func checkClusterFormed(t *testing.T, servers ...*Server)` in this file that I created some time ago. It will timeout at 5 seconds, but will return as soon as cluster is ready." + }, + { + "prediction": "I think this should be `if (rc < 0 && saved_errno != 0) {`", + "reference": "I see a few places where this blob of code is required due to the removal of `errnum` parameter from `flux_respond` -- trading 2 lines of code for 8. The improvement to the function seems like a good idea, but I wonder if we need a convenience macro or function to do it the old way? You went through and made all the changes, was it overall a net win?" + }, + { + "prediction": "I don't think we need to import `util/tracking` here.", + "reference": "I know it's not related to your change, but it's a bit odd that this import uses a relative path rather than the ones setup by webpack. Might be nice to change this one in case we refactor those paths in the future; this one wouldn't get caught in any kind of find+replace." + }, + { + "prediction": "Why is this change needed?", + "reference": "Good catch, and if we don't declare the newSchedule here, will the last schedule be executed in multi goroutine?" + }, + { + "prediction": "I think this should be `project != null && project.TryGetTargetFrameworks() != null`", + "reference": "`project` should never be null here, unless we have projects that aren't in the solution? Which we shouldn't have " + }, + { + "prediction": "I think this should be `` instead of ``", + "reference": "Simple `for` loop instead of `for_each` would help here by making it more readable." + }, + { + "prediction": "I think this should be `conf_height` instead of `conf_height`.", + "reference": "Looks like this falls through, should break." + }, + { + "prediction": "I think this should be `true` instead of `false`.", + "reference": "Let's default manifest lists and manifests to overwrite. These use UUID-based file names and should never conflict." + }, + { + "prediction": "I think this should be `showSpeechViewerAtStartup` instead of `showSpeechViewerAtStartup`", + "reference": "Please rename [speechView] to [speechViewer]." + }, + { + "prediction": "I think this should be `percpu_usage_in_usermode`", + "reference": "I would use shorter yet still descriptive names, e.g. `KernelPerCpu` and `UserPerCpu`." + }, + { + "prediction": "I think this should be `format.lower().startswith('t')` instead of `format.lower().startswith('t')`", + "reference": "if we are seeking for the content of only one field from metadata, no need to check whether a user could edit record or not" + }, + { + "prediction": "I think this should be `ExecuteCDP` instead of `ExecuteCDP`", + "reference": "Should this be camelCase to match the above commands? I am not the expert here so maybe Lucas or David can chime in." + }, + { + "prediction": "I think this should be `SpanKinds.Server` instead of `SpanKinds.Server`", + "reference": "This is also missing in CreateScopeFromExecuteAsync. Can you add that there too?" + }, + { + "prediction": "I think this should be `date = date.replaceAll(\"([+-]\\\\d\\\\d):(\\\\d\\\\d)$\", \"$1$2\");` or `date = date.replaceAll(\"([+-]\\\\d\\\\d):(\\\\d\\\\d)$\", \"$1$2\");`", + "reference": "I hope that this does not break anything... Probably needs detailed beta tests." + }, + { + "prediction": "Line is too long. [89/80]", + "reference": "@JonRowe in what scenario do you see this being manually set?" + }, + { + "prediction": "I think this should be `else if (origin_a == nano::block_origin::local)`", + "reference": "I think the work \"trigger\" makes more sense than \"check\" because this is taking an action based on status." + }, + { + "prediction": "Why is this change needed?", + "reference": "add a configuration , default put public key in Microservice, if the configuration is set, then put in Instance." + }, + { + "prediction": "Why is this change needed?", + "reference": "WDYT about the idea above of making these all verbs that correspond to the input spec?" + }, + { + "prediction": "Why is this change needed?", + "reference": "With the introduction of the enum(s) the constants in the store classes should be removed." + }, + { + "prediction": "I think this should be `CALI_REASON_IP_OPTIONS` instead of `CALI_REASON_IP_OPTIONS`.", + "reference": "I would say `!= 5`; A packet with <5 would be malformed." + }, + { + "prediction": "Why is this change needed?", + "reference": "I think you missed removing `Stateful` from `push/config.go`" + }, + { + "prediction": "Why is this change needed?", + "reference": "why would you make it internal? if so then at least protected internal" + }, + { + "prediction": "I think this test should be moved to `test_tcp_stream_modify`.", + "reference": "We should check if the response (`d`) contains bar as response, screw the log. :smile:" + }, + { + "prediction": "I don't think this is necessary.", + "reference": "@Laurae2 good call. This is the only one I found (with `git grep transfered`)" + }, + { + "prediction": "I think this should be `node.statement(future=True) in node.frame().body`", + "reference": "I don't understand how this work, could you explain ?" + }, + { + "prediction": "(style) line over 80 characters", + "reference": "The abbreviation for \"context\" used extensively inside DR is \"cxt\", not \"ctx\", so s/MCTX/MCXT/." + }, + { + "prediction": "Why is this change needed?", + "reference": "here is `:seconds` missing again" + }, + { + "prediction": "Shouldn't this be `null`?", + "reference": "initializing to null makes me uncomfortable. let's have a default value" + }, + { + "prediction": "I think this should be `else if (pathStart == -1 && pathEnd != -1) {`", + "reference": "This is the `GET % HTTP/1.1` scenario right?" + }, + { + "prediction": "Why is this needed?", + "reference": "No need to use the fully qualified path the BackendAuth facade, just `use BackendAuth` is fine." + }, + { + "prediction": "I think this should be `nano::epoch::epoch_0` instead of `nano::epoch::epoch_0`", + "reference": "Because it's similar for send/open/change/receive types, then probably it can be just common `nano::epoch nano::block::epoch () const` with override for state_block (like nano::block::link (), account (), representative ())" + }, + { + "prediction": "I think this should be `const cb_ = () => {};`", + "reference": "Please give a more descriptive name and add a command to explain what it does." + }, + { + "prediction": "I think we should use `prefMobileUpdateAllowed` instead of `prefMobileUpdateAllowed`.", + "reference": "we can never get rid of this..." + }, + { + "prediction": "I think this should be `buckets: []float64{0.05, 0.1, 0.5, 0.5, 0.5, 1, 5, 10, 120, 120}`", + "reference": "what is the effect of changing these buckets in existing data that is available in the monitoring system? if there are any existing dashboards that use previous histogram buckets they are probably going to be wrong ot invalid? also any reason why we chose these specific values?" + }, + { + "prediction": "I don't think this is necessary.", + "reference": "This won't work. For the flag to be passed to the plugin, it should be passed as part of the --plugin argument. --plugin \"yarpc --sanitize-tchannel\"" + }, + { + "prediction": "Shouldn't this be `*out_val = ref_booster->GetBoosting()->MaxFeatureIdx() + 1;`?", + "reference": "@shiyu1994 @StrikerRUS what do you think about this addition to `c_api.cpp`? I think it's a really useful addition to be able to get this type of information from the `Booster`, but I want more opinions since `c_api` is the main public API for the library." + }, + { + "prediction": "I think this should be `RoundOffsetError` instead of `RoundOffsetError`.", + "reference": "rename Round -> requestedRound and DbRound -> dbRound. we don't need to export the fields here, only the error struct." + }, + { + "prediction": "I think this test should be `testClusterDeploymentWithRegionLabel` and not `testClusterDeploymentWithoutRegionLabel`", + "reference": "This expected value should probably be what you literally expect, otherwise there's a chance getClusterRegion is doing something wrong and the test wouldn't catch it because it's being run for both expected and actual." + }, + { + "prediction": "I think this should be `encoding/base64`", + "reference": "TODO: update unit tests to exercise base64-inline path" + }, + { + "prediction": "I think this should be `true` instead of `false`.", + "reference": "this method knows too much - it is kind of a strange side effect I'd prefer if we had separate method for acknowledging that the onboarding was done and should not be shown again" + }, + { + "prediction": "I think this should be `AUTO_DOWNLOAD`", + "reference": "Do we need to increase the DB version? Also, should probably be a constant, no?" + }, + { + "prediction": "I think this should be `isZero` instead of `isZero`", + "reference": "We could utilize the new isZero method in this if-statement, right?" + }, + { + "prediction": "I think this should be `FilesWithHolesDataVer` instead of `FilesWithHolesDataVer`", + "reference": "should probably have config have a `t` or a `logger.NewTestLogger(t)`, and return the latter" + }, + { + "prediction": "I think this should be `copy(nodeStack, inputPlan.Results())` instead of `copy(nodeStack, inputPlan.Roots)`", + "reference": "Does this not do the same thing as `copy`? I thought that `copy` just did an elementwise assignment, but maybe I was wrong." + }, + { + "prediction": "I don't think we need to do this, but I think it would be better to use `flatteningConfigs.putAll(flatteningConfigsFromProtoFile);` instead of `flatteningConfigs.putAll(flatteningConfigsFromGapicConfig);`", + "reference": "Here we are merging the configs from proto annotations and gapic config. But in other places in this PR we are using the new enum to pick one or the other, right? Or is that not the correct way to think about this?" + }, + { + "prediction": "I think this should be `8080` instead of `8080`", + "reference": "not related to this change?" + }, + { + "prediction": "I think this should be `process.env[\"ANDROID_NDK\"] || process.env[\"ANDROID_NDK_HOME\"]`", + "reference": "Why is this needed?" + }, + { + "prediction": "Why is this change needed?", + "reference": "This one could be replaced with a `std::max`, no?" + }, + { + "prediction": "I think this should be `manifest['application']['gecko']['id']` instead of `manifest['application']['gecko']['id']`", + "reference": "Couldn't you just write this as an if/else or a guard clause like on line 87? Just seems a bit weird doing this conditional assignment for essentially an if/else." + }, + { + "prediction": "I think we should use `isset($config['value'])` instead of `isset($config['value'])`", + "reference": "Please use strict type comparisons (`===`), not loose type comparisons." + }, + { + "prediction": "I think this should be `!getFromBlock().isLatest() && !getToBlock().isLatest() && getBlockhash() != null`", + "reference": "The filter parameters are a bit confusing. I understand that one of them has to be set, but what takes precedence if a from/to is set and the hash as well? Should that fail?" + }, + { + "prediction": "I think this should be `#include `.", + "reference": "Is that necessary?" + }, + { + "prediction": "Metrics/LineLength: Line is too long. [98/80]", + "reference": "yess so much easier to read in order like this!" + }, + { + "prediction": "I think this should be `VerifyTestClassNamingConvention` instead of `VerifyTestClassNamingConvention`", + "reference": "question: would this convention automatically and always apply to all classes derived from `LuceneTestCase` including any non-`org.apache` name spaces or would it be possible to opt-out (without an exclusion list) somehow for custom code that might perhaps have chosen a different convention?" + }, + { + "prediction": "Why is this changed?", + "reference": "Also found this bug, where we were setting the min passcode length to 6, but the min length for a connected app is 4. This can cause problems when the app is force closed or the shared pref is removed." + }, + { + "prediction": "Why is this change needed?", + "reference": "Why was this change necessary?" + }, + { + "prediction": "I think this should be \"Selenium Host\" instead of \"Selenium Distributor\".", + "reference": "I kind of did this deliberately, so everything from the distributor appears in the same set of logs." + }, + { + "prediction": "I think this should be `pkt[TCP].seq` instead of `pkt[TCP].seq`", + "reference": "We already have a `seq = pkt[TCP].seq` so you can just re-use it." + }, + { + "prediction": "I think this is not a good idea, but I think it would be better to use `import java.time.*;` instead of `import java.time.*;`", + "reference": "We avoid wildcard imports because it isn't clear where symbols are coming from and there is potential for collision. Could you roll back this change? (As well as the additional newline, we don't use breaks in imports either.)" + }, + { + "prediction": "Why is this change needed?", + "reference": "Why are these variables renamed? Is there a conflict with some Windows specific variable?" + }, + { + "prediction": "I think this should be `include '../../release.inc';`", + "reference": "Do you test for file existence simply to reduce the warning message that may occur using the include? Also - I think the practice used in BOINC is to go ahead and use include_once even though it isn't strictly necessary in this case." + }, + { + "prediction": "why is this needed?", + "reference": "`TimeChaos` does not contains a field .spec.action" + }, + { + "prediction": "Why not use `AbstractArchive` instead of `AbstractArchive`?", + "reference": "You need to override where possible in rs-api" + }, + { + "prediction": "I think this should be `public Dictionary AdditionalData { get; set; } = new Dictionary();`", + "reference": "Should this have an add/update/etc pattern? What happens if I need to change some set of data? May be better to just let the callsite manipulate the dictionary." + }, + { + "prediction": "This method should be implemented by the region subclass.", + "reference": "I don't think this should be added to PyRegion. Adding it here requires that every region have an \"algorithm\" which may not always make sense and the return value type will be different in every case. But fine to use the same name in the regions where we choose to implement it as a convention if that makes the API more discoverable." + }, + { + "prediction": "I think this should be `http.StatusGatewayTimeout` instead of `http.StatusGatewayTimeout`", + "reference": "Returning here bypasses all the health check and load balancing features." + }, + { + "prediction": "I think this should be `2020-2022`", + "reference": "Should revert this copyright change, when the file isn't changing in any other way." + }, + { + "prediction": "I think this should be `if dir != \"\" && file != \"\" {`", + "reference": "Interesting that filepath.Dir(\"thing\") returns \".\" whereas this returns \"\"" + }, + { + "prediction": "Why is this removed?", + "reference": "Nice, I did not know about that" + }, + { + "prediction": "I don't think we need this mutex anymore.", + "reference": "Since the lock is have moved outside of this function, I think it would be simpler and efficient to just return a ref to the std::vector? That way, we don't need to make a new copy on read and we won't actually need a write operation." + }, + { + "prediction": "I think this should be `readStateHeight` instead of `readStateHeight`", + "reference": "also fetch block hash of this height and return hash" + }, + { + "prediction": "I think this should be `var ins = Tracer.Instance;` instead of `var ins = Tracer.Instance;`", + "reference": "Why do we need this in this sample app and not the others?" + }, + { + "prediction": "Shouldn't this be `long timestamp`?", + "reference": "We don't need this additional method." + }, + { + "prediction": "Why did you remove this?", + "reference": "Shouldn't this return code conditionally? The above line seems like an error occurred." + }, + { + "prediction": "I think this should be `string(apis.TypeSparseCPV)` and not `string(apis.TypeDiskCPV)`", + "reference": "What is the need to use string as key? Can we use the apis type as the key?" + }, + { + "prediction": "I think this should be `3000`", + "reference": "how about a default parameter instead?" + }, + { + "prediction": "I don't think we need to do this, but I think it would be better to add a `logger.Info(\"skipping creation of ClusterProvision\", \"skipping creation of ClusterProvision\")` to the `logger.Info(\"skipping creation of ClusterProvision\")` function.", + "reference": "i don't think we need to add duplicate check for clusterinstallref here, the function already assumes that it was invoked for clusterprovision" + }, + { + "prediction": "I think we should use `\\` instead of `\\` instead of `\\`", + "reference": "\\`bbox_feats.shape[0] > 0\\` requires the number of proposal is not 0." + }, + { + "prediction": "I think we should use `spark.read().format(\"iceberg\")` instead of `BaseSparkAction.loadMetadataTable(spark, table.name(), table().location(), table().location(), table().location(), table().location(), table().location(), table().location(), table().location(), table().location(), table().location(), table().location(), table().location(), table().location(), table().location(), table().location(), table().location(), table().location())`", + "reference": "Same here. Any way to fit on one line?" + }, + { + "prediction": "I think this should be `if (log.startsWith(\"set\") && log.startsWith(\"set\") && log.startsWith(\"set\") && log.startsWith(\"set\") && log.startsWith(\"set\") && log.startsWith(\"set\") && log.startsWith(\"set\") && log.startsWith(\"set\") && log.startsWith(\"set\") && log.startsWith(\"set\") && log.startsWith(\"set\") { break; } else if (log.startsWith(\"set\") { break; }", + "reference": "using folly::to is better ?" + }, + { + "prediction": "Why is this removed?", + "reference": "I'm guessing this is unintended?" + }, + { + "prediction": "I don't think we need to set the resumeAfter property in the cursor, but I think it would be better to use `this.options.startAfter && !this.hasReceived ? 'startAfter' : 'startAtOperationTime';` instead of `this.options.startAtOperationTime`", + "reference": "This looks a little suspicious to me, can you explain what's going on here?" + }, + { + "prediction": "I think we should use `ENV['FORCE_USER_ID']` instead of `ENV['FORCE_USER_ID']`.", + "reference": "Can you talk about this? I'm not sure I follow why this is necessary." + }, + { + "prediction": "Shouldn't this be `if (isset($params['layout']) && $params['layout']=='simple')`?", + "reference": "Is there really a need for this 'simple' layout? Is there a reason you can't use 'lightbox'? The only difference seems to be that the lightbox layout includes Piwik/Google Analytics tracking and simple does not. If tracking needs to be disabled for some reason, perhaps there is a way to do that without creating a whole new layout." + }, + { + "prediction": "I think this should be `findCommitMerges` and `findForcedDeletesMerges` and `findForcedDeletesMerges`", + "reference": "Can you say what exception will be thrown in that case (or add an `@throws`, below)?" + }, + { + "prediction": "I don't think we need to change this to `2.7`?", + "reference": "Is this meant to be \"2.7\" or \"2.6\". The two lines in this commit don't agree with one another. Looks like everything else in this PR is \"2.6\" and that seems sensible." + }, + { + "prediction": "Why is this needed? I think it would be better to use `nupic.data.generators.pattern_machine` instead of `nupic.data.generators.pattern_machine`.", + "reference": "Should we put these tests in a `generators` directory?" + }, + { + "prediction": "I don't think we need to change this.", + "reference": "I think that it makes more sense to keep these with the standard definition of non-zero is true and zero is false." + }, + { + "prediction": "Why is this change needed?", + "reference": "Any idea why you want to change the behavior here? Is there a security risk not to have the prefix in the principal here." + }, + { + "prediction": "Why is this mock needed?", + "reference": "this reads like \"mock database cache\", maybe a clearer name" + }, + { + "prediction": "I think this should be `server/util`", + "reference": "Nit: move this with the other CM imports." + }, + { + "prediction": "Why is this needed?", + "reference": "This change should be mentioned in the CM" + }, + { + "prediction": "I think this should be `SpanCreationSettings.Parent` instead of `SpanCreationSettings.Parent`.", + "reference": "Do we really want a new type, or can we just use `SpanContext`? The `ISpanContext` interface is read-only, but there's nothing stopping users from casting this to `SpanContext` and modifying it." + }, + { + "prediction": "I think this should be `#if NET452 || NET461`", + "reference": "Should we define a const like NETFRAMEWORK or NETFULL which will be set for NET452 NET461 and anything like NET47 etc in future?" + }, + { + "prediction": "I think this is a bit confusing, but I think it would be better to use a different number of blocks for the miner to submit a post at a penalty. I think it would be better to use a different number of blocks for the miner to submit a post at a penalty. I think it would be better to use a different number of blocks for the miner to submit a post at a penalty.", + "reference": "maybe start an issue to capture params that we need final values for and link to it here?" + }, + { + "prediction": "I think this should be `if not backend.get('group')`", + "reference": "Can we instead do the check in find_instance_group_by_url() ? if we return None when group is not found, it will hit the next if statement (if not instance_group) and continue as expected, in this case we don't need to add 3 separate if statements" + }, + { + "prediction": "I think this should be `if (m.group(3).equals(\"p.m.\") && !(m.group(1).equals(\"12\"))`", + "reference": "on my android \".a.m\" and \".p.m\" is used add `||` here to support both variants" + }, + { + "prediction": "I think this should be `!FormatIsMultiplane(image_format)` instead of `!FormatIsMultiplane(image_format)`", + "reference": "`!FormatIsMultiplane(image_format)` will always be true at this point due to the test on line 4639." + }, + { + "prediction": "Why is this needed?", + "reference": "Maybe inline the CachedAccessor code? Is it similar to our lazy property? If yes, can we reconcile the two?" + }, + { + "prediction": "Why is this change needed?", + "reference": "Nit this file has unintended changes." + }, + { + "prediction": "I think this should be `selectedItem.getMedia().fileExists()`.", + "reference": "Potential NPE? `hasMedia && selectedItem...`" + }, + { + "prediction": "Why is this change needed?", + "reference": "PEP-8/consistency with the rest of the code." + }, + { + "prediction": "I think we should use the `MongoDbClientAssembly` attribute instead of `MongoDbClientAssembly`.", + "reference": "nit: Would you mind moving the `ParameterTypeNames` assignment into each of the method-specific attributes? That could reduce confusion if we later decided to instrument other methods in MongoDb" + }, + { + "prediction": "I think we should use `List GasPriceEstimate` instead of `List GasPriceEstimate`", + "reference": "Is exposing SpecProvider needed here?" + }, + { + "prediction": "I think we should be able to call `afterAction?.Invoke()` here.", + "reference": "So this will only be executed when it is true. I'm not sure that makes it always usable. Why not make the afterAction, `Action` and always call it, with the result as parameter." + }, + { + "prediction": "I think this should be `result == PFS_RESOLVE_LOCAL` instead of `result == PFS_RESOLVE_LOCAL`", + "reference": "Tim, please add { } to this 'if'." + }, + { + "prediction": "I think this should be `127.0.0.1`", + "reference": "Suggest moving to `enable.go` since thats only place used." + }, + { + "prediction": "Line is too long. [89/80]", + "reference": "This changed when I rebuilt my docker container. Not quite sure why, but might have to do with what my host network configuration looks like when it's rebuilt." + }, + { + "prediction": "I think this should be `cache.Cache`", + "reference": "Local cache of what? What's stored in it?" + }, + { + "prediction": "I think we should use `toCopy.sortOrderId() == null ? SortOrder.unsorted().orderId() : toCopy.sortOrderId();`", + "reference": "If the copied `DataFile` returns null, shouldn't the copy also return null? Why not make the builder use `Integer` instead of a primitive here?" + }, + { + "prediction": "I think this should be `os.path.join(os.path.dirname(__file__), 'html_files')` or `os.path.join(os.path.dirname(__file__), 'html_files')`", + "reference": "You could just do this test in the `save_html` function above, and then the users of the save html function don't have to worry about it." + }, + { + "prediction": "I think this should be `errors.New(\"get environment: couldn't find environment dev in the application my-app\", \"dev\")`", + "reference": "I think I'd prefer not using the formatted string when it comes to unit test, since we don't pass in any string variable as params." + }, + { + "prediction": "I don't think this is needed anymore.", + "reference": "Maybe it would be better to explicitly include devices instead of explicitly excluding devices?" + }, + { + "prediction": "I don't think this is needed anymore.", + "reference": "This could be `for (auto bond: bonds()){`, right?" + }, + { + "prediction": "Why not use `$config` instead of `$config`?", + "reference": "Is $config no longer being used? Can we remove this line?" + }, + { + "prediction": "I don't think we need this change.", + "reference": "can you revert changes to this file." + }, + { + "prediction": "I don't think we need to remove the domain prefix here.", + "reference": "I don't believe the change is sufficient to correctly handle variable substitutions in the name. As part of the process command we pass the original role object that was retreived without taking into account the substitution. So while the first template apply command will work fine because the original role does not exist thus it's a new add operation, if you try to re-apply the same template again, we'll pick up and process a wrong original name thus we'll try to execute an add operation again instead of modify. So we need to take into account the substituted name when we retrieve the original role as well. Same change should be applied to both policy and service blocks as well." + }, + { + "prediction": "I think this should be `bool IsOnMainThreadAsync`?", + "reference": "Please add this to IMvxMainThreadDispatcher as well" + }, + { + "prediction": "I think we can remove the `opt` from the `selected` hash.", + "reference": "Is it possible for opt not to be a string? I couldn't tell if this was a typo or if there is actually a case where it is not a string." + }, + { + "prediction": "I think this should be `googlesitekit-user-input__notification`", + "reference": "Let's move this up next to the `id` as we usually have `className` as one of the first props." + }, + { + "prediction": "I think this should be `3.1.2`", + "reference": "While you're in here, \"build, push and install\"?" + }, + { + "prediction": "Why is this removed?", + "reference": "Unit never made it to spec...so removing." + }, + { + "prediction": "I think this should be `Timestamp` and not `Timestamp`?", + "reference": "We have RequestStart which seems redundant a bit to this one, WDYT?" + }, + { + "prediction": "Why is this changed?", + "reference": "I think we can remove this corresponding export from `preact` now! Double check no other s using though lol" + }, + { + "prediction": "I think this table should be `item_traits` instead of `item_traits`", + "reference": "I'm not sure why this would be in here. Were you working off a branch based off of master? These lines were removed in a previous commit because the table is actually called 'cart_item_traits'." + }, + { + "prediction": "I think this should be `https://api.github.com` or `https://api.github.com`", + "reference": "Maybe `DEFAULT_GITHUB_API_ENDPOINT` would be a better name, since we refer to this as an API endpoint elsewhere?" + }, + { + "prediction": "I think this should be `task-cpu-mem-limit` instead of `task-cpu-mem-limit`", + "reference": "If/when you rebase from `dev`, this is going to cause a merge conflict. I'd suggest that soon after merging this PR as the capabilities code has been moved to \"agent/app/agent_capabilities.go\"" + }, + { + "prediction": "I think this should be `mockConnection.Stop(mockConnection.LastLine)` instead of `mockConnection.Stop(mockConnection.LastLine)` and `mockConnection.Stop(mockConnection.LastLine)`", + "reference": "What is the test case here?" + }, + { + "prediction": "I think this should be `WaitForCacheSync` instead of `WaitForCacheSync`", + "reference": "You could try moving this closer to the call, where we request label info. We might be doing the check very early.. all the resources may not be present with the informer at this point." + }, + { + "prediction": "I think we should use `Types.LongType.get()` instead of `Types.LongType.get()`.", + "reference": "Can we add these up by the data files counts?" + }, + { + "prediction": "Why is this change needed?", + "reference": "Most of the time assigning won't save bytes unless used 3+ times (var adds 3bytes)" + }, + { + "prediction": "Why is this change needed?", + "reference": "I would rather find the code that inverts the logic and remove that." + }, + { + "prediction": "Why is this change needed?", + "reference": "The else doesn't return anything?" + }, + { + "prediction": "Why is this change needed?", + "reference": "assignments should only be cuddled with other assignments (from `wsl`)" + }, + { + "prediction": "I think this should be `std::copy(search_path_opts.LibrarySearchPaths.begin(), paths.end());`", + "reference": "why not simply `paths = search_path_opts.LibrarySearchPaths` ?" + }, + { + "prediction": "I think this should be `globalize.translate(item.Name);` instead of `globalize.translate(item.Name);`", + "reference": "Are we sure this should be translated by the web client? It was unclear in chat exactly what's getting translated here." + }, + { + "prediction": "Why is this change needed?", + "reference": "same oneof issue." + }, + { + "prediction": "Do we need this?", + "reference": "If we resolve here, isn't the whole `module_install` config setting or any subkeys also pluggable? I think that's totally fine, just want to make sure that that's known, and we should also update the data in `options.rb` for those options" + }, + { + "prediction": "I think this should be `ihipExtLaunchMultiKernelMultiDevice` instead of `ihipExtLaunchMultiKernelMultiDevice`", + "reference": "it would be better to change `kds` into a `std::vector` then we don't need to explicitly free it" + }, + { + "prediction": "I think this should be `config = configuration.get_config()`.", + "reference": "Looks like you're also changing logic and not only tests." + }, + { + "prediction": "I think this should be `actualIntervalLimit * 1.15` instead of `actualIntervalLimit * 1.15`", + "reference": "Is it possible that test failures here are real and that we should improve the rate limiting logic? Or are we ok with rate limits to be exceeded by 15%?" + }, + { + "prediction": "Shouldn't this be `true === $options['lazy'] ? 'data-' : ''`?", + "reference": "Shouldn't there be some kind of validation somewhere? IMO there should be an exception if `$options['lazy']` is not a boolean." + }, + { + "prediction": "I think we should move this namespace to the top of the file.", + "reference": "nit: please move it inside namespace." + }, + { + "prediction": "I think this should be `RUN_AS_OPTIONS.sort.freeze`", + "reference": "The inventory schema needs to be regenerated to include these options. Looks like the CI job didn't get triggered since the paths don't include `lib/bolt/transport/**`. " + }, + { + "prediction": "I think this should be `Enter` instead of `Exit`.", + "reference": "This might break if a user runs the system tests with a system language other than English, in which the user default language differs." + }, + { + "prediction": "Line is too long. [89/80]", + "reference": "This was raising intermittent errors, since Lorem ipsum contains the word \"error\"" + }, + { + "prediction": "I think this should be `assert((p->mp_impl != nullptr) && \"This participant has been previously invalidated\");`", + "reference": "Shouldn't we then add `mp_impl = nullptr` to the destructor of `RTPSParticipant`" + }, + { + "prediction": "I think this patch should be moved to `mmdet.datasets.CocoDataset.load_annotations`", + "reference": "Are the additional brackets necessary?" + }, + { + "prediction": "I think this should be `consumerIntf` instead of `consumerIntf`", + "reference": "consumerMeta only belongs to this invoker instance only relate to this one consumerIntf class seems no need to build a complex key?" + }, + { + "prediction": "Shouldn't this be `1s outputs singular (only pending)`?", + "reference": "this one is unrelated right? (Don't mind including it, just making sure I understand)" + }, + { + "prediction": "why do you need this?", + "reference": "8, 11 actually achieves similar performance, we should use our default config if [9,11] is unnecessary." + }, + { + "prediction": "I think this should be `time.Sleep(1 * time.Second)` instead of `time.Sleep(1 * time.Second)`", + "reference": "For a separate PR: Can we make this a JSON/Thrift procedure instead? It could accept the amount of time it needs to sleep as an argument." + }, + { + "prediction": "Why is this change needed?", + "reference": "Please remove this blank line." + }, + { + "prediction": "I think this should be `use App\\CartTrait;` instead of `use App\\CartTrait;`", + "reference": "the cartTrait is not used anymore" + }, + { + "prediction": "I think this should be `>` instead of ``.", + "reference": "Cn you please make the message more human friendly." + }, + { + "prediction": "I think this should be `from PyQt5.QtWebEngineWidgets import QWebEnginePage` or `from PyQt5.QtWebEngineWidgets import QWebEnginePage`", + "reference": "Please do `import enum` instead, then use `enum.Enum` and `enum.unique` - we do this everywhere to see where things are coming from, except for Qt (everything begins with a `Q` anyways) and typing (mostly used in type annotations, so it's clear without the namespacing)." + }, + { + "prediction": "Why is this removed?", + "reference": "Isn't ENCFAIL used in codec.c below? Wouldn't this make it no longer compile?" + }, + { + "prediction": "I think this should be `public boolean getTrue() { return true; }`", + "reference": "this looks very weird" + }, + { + "prediction": "This class will be removed in 7.0.0", + "reference": "So, the culprit was actually this class \"ConsoleLogHandler\", correct? Because it simply wrote to stdout..." + }, + { + "prediction": "I think this should be `LogFactory.Configuration = new XmlLoggingConfiguration(_originalFileName, LogFactory);`", + "reference": "Still curious why you need to modify this method? Why not in the future just have a method called `LogFactory.ReloadConfiguration()` instead of the config assigning itself?" + }, + { + "prediction": "Why is this change needed?", + "reference": "Should this say \"lint, cleanup, destroy, dependency, syntax, create, prepare, converge, idempotence, side_effect, verify, cleanup, destroy\"?" + }, + { + "prediction": "I think this should be `fmt.Errorf(\"send write message: %w\", err)`", + "reference": "I am not sure why these log messages are changed." + }, + { + "prediction": "I think this should be `reflect.TypeOf(reflect.TypeOf(reflect.ValueOf(reflect.ValueOf(reflect.ValueOf(reflect.ValueOf(reflect.ValueOf(reflect.ValueOf(reflect.ValueOf(reflect.ValueOf(reflect.ValueOf(reflect.ValueOf(reflect.ValueOf(reflect.ValueOf(reflect.Value))))))`", + "reference": "This panic is incorrect - this is a full implementation of a slice equality check. This should be something more like `type x is not comparable` maybe?" + }, + { + "prediction": "(style) line over 80 characters", + "reference": "See below: let's use the existing convention _tcsnlen." + }, + { + "prediction": "Line is too long. [89/80]", + "reference": "Why don't we need this any more?" + }, + { + "prediction": "I think this should be `norm_cfg` and `norm_eval`", + "reference": "clean unnecessary comma" + }, + { + "prediction": "I think this should be `vnode._original = original || vnode;`", + "reference": "This is the default value for enumerable." + }, + { + "prediction": "Why is this change needed?", + "reference": "Just above, you have `const auto` for a `RDKit::MOL_SPTR_VECT::const_iterator`, here it is only `auto`. Why is this?" + }, + { + "prediction": "Why is this change needed?", + "reference": "@djarek just a quick question, wouldn't be `ptr.reset()` here better as it does not memory leak if we do not call delete on the raw pointer aswell? it maybe makes sense to use `ptr.release` if the event is guaranteed to be loaded again but on a reload it would memory leak if for example I removed that script from my files before reloading or not?" + }, + { + "prediction": "I think this should be `*cli.StringSlice` instead of `*cli.StringSlice`", + "reference": "Why to `Get()` value twice, while u have it 2 lines before" + }, + { + "prediction": "I think this should be `october.use` and `october.list`", + "reference": "There is a typo here, this needs to state `october.fresh`" + }, + { + "prediction": "I think this should be `assertEquals(\"Table name must match\", location, table.name());` and `assertEquals(\"Table name must match\", location, table.name());`", + "reference": "Metadata tables loaded through `HadoopTables` will have their names as location.type (which is weird as we normally use location#type). I am not sure whether it is a big deal or not." + }, + { + "prediction": "I think this should be `-this.workspace_.scrollY` instead of `-this.workspace_.scrollY`", + "reference": "Can you explain why you went from a positive value (metrics.viewTop) to a negative value?" + }, + { + "prediction": "I think this should be `@QueryParam(\"withRetriesLeft\") boolean withRetriesLeft`", + "reference": "Let's use a dedicated DTO instead of `List` to remain consistent with all other existing REST API endpoints: * Introduce a new DTO class (e. g. `ExternalTaskTopicNameDto`) located under `org.camunda.bpm.engine.rest.dto.externaltask` * The class should have the attribute `topicName` of type `String` * Introduce a getter & setter for the attribute * Convert the list of strings to a list of `ExternalTaskTopicNameDto`s * Change the method signature to return `List`" + }, + { + "prediction": "I think this method should be `getScript(List path)` instead of `getScript(List path)`", + "reference": "Do you plan to remove the `ScriptDTO getScript(List path);` method long-term?" + }, + { + "prediction": "I think this is a bit confusing, but I don't think we need to check if `this.enabledTypes` is empty.", + "reference": "@itsiprikshit I used a custom v-model to app count component because the sourceapps component was not reacting to user app count selection, e.g. whenever user changed app count selection, the source apps selection multiplicity remained the same. As a matter of fact, user was able to select one application only. Please let me know if you have any thoughts on this." + }, + { + "prediction": "I think this should be `ResLayer` or `SimplifiedBasicBlock`", + "reference": "Similarly, we think we may keep `fused_semantic_head.py` unchanged. Then, we could add a new mask head for the desired function." + }, + { + "prediction": "I think this method should be `getTypeNameForTypedResourceName`", + "reference": "Why implement this? It duplicates the value in FeatureConfig." + }, + { + "prediction": "I think this is a spark batch scan, but I think it would be better to use the `SparkMicroBatchStreamScan` instead of `SparkBatchQueryScan`.", + "reference": "@aokolnychyi / @RussellSpitzer / @holdenk Spark3 gives ScanBuilder - abstraction - to define all types of Scans (Batch, MicroBatch & Continuous). But, the current implementation / class modelling - has SparkBatchScan as the Scan implementation. Looking at some of the concerns of BatchScan - all the way from the State maintenance of a single SnapshotId to read from, the asOfTimeStamp & features like VectorizedReads - all of these don't seem relevant to Streaming Scans. So, I feel that we need to divide out Streaming Scans into a different class. Does this thought process - make sense? If we go by this route - do you folks know - how to pass different Scan objects to Spark based on Batch vs Streaming?" + }, + { + "prediction": "Why is this change removed?", + "reference": "Will you please update these files to use a copyright end date of 2021?" + }, + { + "prediction": "Is there a reason to use `document.body.firstChild` here?", + "reference": "Adding fixture to the body as we don't have the `runner.tmpl` anymore" + }, + { + "prediction": "I think this should be `k8s.io/utils/pointer` instead of `k8s.io/utils/pointer`", + "reference": "nit: just for consistency we can move this import block down. Right above openshift/hive imports" + }, + { + "prediction": "Why is this change needed?", + "reference": "Perhaps clean up the commit history and don't squash?" + }, + { + "prediction": "Why is this change needed?", + "reference": "Just `writeBytes(content.array())` Back to my original, somewhat broken version ;)" + }, + { + "prediction": "I think this should be `ctxserver` and `ctxclient`", + "reference": "I couldn't tell from reading the test - do we every criss-cross transports in the same test? I want to make sure we aren't breaking the chain..." + }, + { + "prediction": "Why is this needed?", + "reference": "File is not `goimports`-ed" + }, + { + "prediction": "Why is this removed?", + "reference": "do we want to still validate that the context had a nonzero TTL? i suppose it's fine to let clients determine whether or not their streams will timeout (though we still don't have the means to cancel them from the server other than EOF), and they can still cancel their own contexts - so maybe not a huge deal, but thought it was worth bringing up." + }, + { + "prediction": "I think this should be `throw new UnsupportedOperationException();` instead of `throw new UnsupportedOperationException();`", + "reference": "Go ahead and provide the same implementation for all of the languages - I'm not sure there's a reason for it to be different." + }, + { + "prediction": "I think we should use `type(j[0]) == dict` instead of `type(j[0]) == dict`", + "reference": "We should also test type confusion here (e.g. `{\"anticache\": \"foo\"}`)" + }, + { + "prediction": "I think this should be `if '$? -ne 0'` instead of `if '$? -ne 0'`", + "reference": "I'd love to trim the content of `unformatted` too. Any ideas?" + }, + { + "prediction": "Why is this needed?", + "reference": "can you remove this unrelated change?" + }, + { + "prediction": "I think this should be `STYLESHEET`", + "reference": "Would using `HintLabel` here instead (without `setObjectName`) work?" + }, + { + "prediction": "I think this should be `serviceAccountFile`", + "reference": "From what I can tell, the `serviceAccountFile` is never set to anything except \"\"? It'd be best to remove this altogether, so we don't mislead future developers " + }, + { + "prediction": "Why is this removed?", + "reference": "Why do we remove the Sign in link?" + }, + { + "prediction": "Why remove this?", + "reference": "holy crap, were we really missing a 'break' statement here?" + }, + { + "prediction": "I think this should be `debugForcedLogMaker` and not `debugForcedLogMaker`", + "reference": "This doesn't seem to be used anywhere, probably doesn't need to be a new interface." + }, + { + "prediction": "I think we should return `nil` instead of `nil` here.", + "reference": "This is a good start, but what do you think about just using `libkbfs.GetCurrentSessionIfPossible()` to avoid calling this altogether if there's no session? That way we can avoid continuous RTTs to the server when logged out." + }, + { + "prediction": "I don't think we need to add a `class=\"dropdown-menu\" class=\"dropdown-menu\" aria-labelledby='editanchor'` class here.", + "reference": "This `aria-labelledby` stuff is all new to me, but my reading of the spec is that the value should be a list of element id values, and `dLabel` doesn't seem to be the id of any element?" + }, + { + "prediction": "I don't think we need to check if `upload` is set or not. I think it's better to check if `upload` is set or not.", + "reference": "Does this fail validation if you now use the `upload` key instead of `source`?" + }, + { + "prediction": "I think this should be `NULL` instead of `NULL`", + "reference": "Can we use GetCliGlobals(false)->exCollHeap() here instead" + }, + { + "prediction": "I think this should be `constexpr int32_t partitions = 6;`", + "reference": "I suggest you move the waitUntilAllElected into init::KV() method." + }, + { + "prediction": "I think this should be `DefaultScheduledDelayMilliseconds` and `DefaultTimeoutMilliseconds`.", + "reference": "no need of pub;lic." + }, + { + "prediction": "I think this should be `UseBuggyProposalLowestOutput`", + "reference": "Do you think we can name this variable in a less ...negative.. language ? maybe `ProposalTieBreakerEqualizer`" + }, + { + "prediction": "Why is this change needed?", + "reference": "Can you add back these newlines? We try to avoid non-functional changes like this because they can cause commit conflicts." + }, + { + "prediction": "Why is this change needed?", + "reference": "Why not just `if (!searches.includes(action.search)) searches.push(action.search)`? That way you don't need to remove then add the element." + }, + { + "prediction": "I think this should be `getFakeCallNumPrefix` instead of `getFakeCallNumPrefix`", + "reference": "@demiankatz I'm not sure that this is very useful. I just did it to get started. If we had a small handful of predetermined prefixes that were randomly chosen, it would be easier to distinguish them from the rest of the call number. Would that be preferable?" + }, + { + "prediction": "Why is this removed?", + "reference": "Why is this deleted too?" + }, + { + "prediction": "Why is this readonly?", + "reference": "Given that IApiResponse is already made disposable, this is not necessary." + }, + { + "prediction": "I think this should be `if (!menuEntry.getTarget().contains(\"High Level Alchemy\") || !plugin.isShowAlchProfit()) return null;`", + "reference": "client.getSelectedSpellName() can be used for this" + }, + { + "prediction": "I think this should be `scanner_output_base.{}.csv` and `forseti_findings_output_base.csv`", + "reference": "Please alpha sort these filenames." + }, + { + "prediction": "Why is this change needed?", + "reference": "is this already called by actPool.validate()?" + }, + { + "prediction": "I think this should be `if (product->getRingInfo()->numBondRings(pBond->getIdx()) > 0) {`", + "reference": "It is relatively cheap to tell whether a bond is a ring bond, we don't have to perform an SSSR." + }, + { + "prediction": "I think this should be `svc-type` instead of `app-type`", + "reference": "Maybe we should add flag aliases for service as well." + }, + { + "prediction": "Why is this removed?", + "reference": "This LGTM but don't we need a winning PoSts field to fully implement the protocol? No need to add here as I'm working on this in another PR, but curious how we can interop with lotus blocks without post proofs." + }, + { + "prediction": "Why is this needed?", + "reference": "can you move the [] into pubSub? so Blockchain just contains a pubSub, not []" + }, + { + "prediction": "Shouldn't this be set to 100?", + "reference": "I don't think 100 is a safe default here, since later we check that the value is between 50-95." + }, + { + "prediction": "I think this should be `1 | ThreadAgnostic` instead of `2`", + "reference": "I would be nice if we could describe this without the word \"agnostic\"" + }, + { + "prediction": "I think this should be `isSorted` and not `isSparse`.", + "reference": "Pick more specific exception types for these cases. Not sure what would be best for this one (`ValueError`?) but the next one could be `IndexError`." + }, + { + "prediction": "I think this should be `.storybook/?(*.)test.js`", + "reference": "This seemed like the easiest solution We need to include this path in `testMatch` to run the test AFAIK *BUT* we don't want this test ran when running them all normally I'm sure there are other ways to do this!" + }, + { + "prediction": "Why is this change needed?", + "reference": "Most of the following test changes can be avoided if need be." + }, + { + "prediction": "Why is this removed?", + "reference": "Eventually we might want to move this back as generating this data structure takes some time (for large datasets) and we don't want it in the hot-path of `osrm-customize` runs. Thinking long-term making `osrm-customize` eventually digest `.osrm.cells` will will enable only updating cells selectively and using an earlier customization for the rest." + }, + { + "prediction": "I think this should be `err := cmd.natService.Stop()` instead of `cmd.vpnServer.Stop()`", + "reference": "You're not really using named result variable - you can just leave `error`." + }, + { + "prediction": "Why is this change needed?", + "reference": "It wasn't possible to call this method with `PartitionSpec.unpartitioned()` as the schema in the spec was empty." + }, + { + "prediction": "This should be `use Thelia\\Model\\ModuleConfigQuery;`", + "reference": "this namespace is never used" + }, + { + "prediction": "Is there a reason we don't need this?", + "reference": "Well, if you call `Nack`, it _will_ be redelivered. So maybe reword." + }, + { + "prediction": "I think this should be `allowtransparency=true` instead of `allowtransparency=false`", + "reference": "Why did we make this a static string?" + }, + { + "prediction": "I think we should use `google.cloud.bigquery.Dataset` instead of `google.cloud.bigquery.Dataset`", + "reference": "Please re-run PYTHONPATH=. python tests/services/inventory/update_cai_dumps.py following the instructions at the top of this file to ensure the test files have the correct CAI asset type." + }, + { + "prediction": "Why is this needed?", + "reference": "`stateDB := NewStateDBAdapter(sm, 0, hash.ZeroHash256, NotFixTopicCopyBugOption())`" + }, + { + "prediction": "I think this should be `total_space - (len(chars) ** needed - len(elems) - short_count)`", + "reference": "There are unneeded parens here, but I'll fix it up when merging." + }, + { + "prediction": "(style) line over 80 characters", + "reference": "Just one more thing... How about doing all of the following? 1. renaming h2o.rb to bootstrap.rb 2. require and include the acl code _from_ bootstrap.rb" + }, + { + "prediction": "Why is this removed?", + "reference": "Commit message: \"remove\" is misspelled." + }, + { + "prediction": "I think we should use `value.slice(0, value.size() - toTrim + 1)` instead of `value.slice(0, value.size() - toTrim + 1)`", + "reference": "This is a pretty idiosyncratic method - I'd move it into the JSON-RPC package rather than adding it to `BytesValue`." + }, + { + "prediction": "I think this should be `config.apply_derived_metadata_to(@metadata)` instead of `config.apply_derived_metadata_to(@metadata)`", + "reference": "Is there a way to deduplicate this somehow? Could we roll it into `RSpec.configuration` with a bit of memoization or is there a chicken and egg problem." + }, + { + "prediction": "I think this should be `UPDATE_NOT_IN_PROGRESS` instead of `UPDATE_IN_PROGRESS`.", + "reference": "Generally, I wouldn't say I like the idea of providing properties that return negative/inverted values. It would be more convenient to return whether the update is **in** progress or not." + }, + { + "prediction": "I think this should be `Math.round(runtimeTicks / 10000);`", + "reference": "Converting playbackManager to operate in ms (preferred solution, imo) would allow us to completely drop this function." + }, + { + "prediction": "Shouldn't this be `1000` instead of `1000`?", + "reference": "The default value should be a bigger one, I'd like it is the maximum of int32. That means we will not cut-off anything by default. And users would config it with an appropriate value in config-file, such as 1000 or 5000, etc." + }, + { + "prediction": "I think this should be `clio.Warn(\"could not get hermes id: \", err)`", + "reference": "Probably missing return here as well" + }, + { + "prediction": "I think this should be `PullIntervalDuration` or `PullIntervalDuration`", + "reference": "On second thought... this affects how often the function specified by the `load` property is run. So I wonder if, for consistency, we should call this `LoadInterval` instead. Does that make sense?" + }, + { + "prediction": "I don't think this is needed anymore.", + "reference": "Now you don't need the localization module here then :)" + }, + { + "prediction": "I think this should be `// in(col, {X, Y}) AND notIn(col, {X, Y}) AND notIn(col, {X, Y}) AND notIn(col, {X, Y}) AND notIn(col, {X, Y}) AND notIn(col, {X, Y}) AND notIn(col, x) AND notIn(col, x)`", + "reference": "This should not convert each value to a literal on every invocation. Instead, this PR can add a `literals` method to `BoundSetPredicate` to access the values as literals. That way, the conversion happens once and can be lazy." + }, + { + "prediction": "I think this should be `raise Exception(\"cannot find LightGBM library\")`", + "reference": "I think we still need this exception if doesn't have LIGHTGBM_BUILD_DOC" + }, + { + "prediction": "Why is this removed?", + "reference": "Does this make it easier to read? Previously this would have run `kubectl describe certificate` right? In which case it would have included events related to the cert. Will we miss that? Would the old `kubectl describe` output have gone to stderr?" + }, + { + "prediction": "I think this should be `CamundaIntegration` instead of `CamundaIntegration`.", + "reference": "Just an understanding question: do we need a map here, would a list/set of Strings be sufficient? we are not adding entries with `false` here, are we? Being in the list already means it's used, right?" + }, + { + "prediction": "Why do we need to check if `task.id not in necessary_tasks` is not in `necessary_tasks`?", + "reference": "Ah, so the change is that you want the `prune()` side effect before doing the `task.id not in necessary_tasks` membership check? Stupid non-Haskell programming languages :p" + }, + { + "prediction": "I think this should be `time.Now()` instead of `time.Now()`", + "reference": "This change was not really intended but made by the linter of VS Code. And looking at other packages this looks like a best practise to place interal packages on the top and gh imports afterwards." + }, + { + "prediction": "I think this should be `finalOptions.readPreference = ReadPreference.primary;`", + "reference": "Do we normally force ReadPreference primary on other write operations? Or is it just that we normally ignore it?" + }, + { + "prediction": "I think this should be `return null;` instead of `return null;`", + "reference": "Instead of returning null here and discarding nulls automatically, I think this should return null (or some other signaling value) and fix the part that consumes the output of the visitor." + }, + { + "prediction": "Why not use `prevBlockHeader.get()` here?", + "reference": "Really, we want to be setting the validatorsForPreviousBlock against the yet to be created block, so it might make sense to update the cache once the block is created/imported instead." + }, + { + "prediction": "(style) line over 80 characters", + "reference": "It seems to me that the original implementation was correct. Can you share what the scanner was pointing out?" + }, + { + "prediction": "I think this should be `googlesitekit-modules-bulk-edit.js`", + "reference": "Instead of doing that, please create an `assets/js/googlesitekit-subscribe-with-google-bulk-edit.js` file as entry point - all our entry points should be located in `assets/js`." + }, + { + "prediction": "I don't think we need to add the `
    ` to the `
    ` element.", + "reference": "This is not valid, a `div` shouldn't be in a `span`. You could apply the `className` attribute to the `span` tag." + }, + { + "prediction": "I think this should be `accounting-transferred-expire-interval` instead of `accounting-transferred-expire-interval`", + "reference": "Would it be possible to reuse RcJobExpireDuration and RcJobExpireInterval and auto delete them when job is deleted?" + }, + { + "prediction": "I think this should be `from jinja2 import Environment` and not `from jinja2 import PackageLoader`", + "reference": "Python wants **future** imports to come first." + }, + { + "prediction": "(style) line over 80 characters", + "reference": "Better to call this before EXITING_DR which is supposed to be last." + }, + { + "prediction": "Why is this removed?", + "reference": "Does this work at runtime?" + }, + { + "prediction": "I don't think we need to change the default value here.", + "reference": "Hmm why do we need to make this change? Like which one requires this change?" + }, + { + "prediction": "Why did you remove this?", + "reference": "why remove this and other piece?" + }, + { + "prediction": "Why is this change needed?", + "reference": "Yikes... That was probably me." + }, + { + "prediction": "Why is this change needed?", + "reference": "It would be better to move the ... outside of the l8n block. This way it won't need to be translated for each language twice." + }, + { + "prediction": "I think this should be `globalevent.h` instead of `globalevent.h`.", + "reference": "That's a huge load of new dependencies. I think it's better to create a reload function on ScriptManager and control with enum instead." + }, + { + "prediction": "I think this should be `NewUpgradeTaskJob` instead of `NewUpgradeTaskJob`", + "reference": "`NewUpgradeTaskJob` -> `NewUpgradeResource`" + }, + { + "prediction": "I think this should be `glibtop_get_mem(&mem)` instead of `glibtop_get_mem`", + "reference": "Is that the memory usage of the system or the process / awesome?" + }, + { + "prediction": "I think we should use `Realm.Schema` instead of `Realm.Schema`.", + "reference": "\"change\" *and* \"schema\" events (A bunch of these; not marking them all)." + }, + { + "prediction": "I think this method should be `overrideSequenceForNewDataFiles` instead of `validateFromSnapshot`", + "reference": "I think there is probably a shorter, more descriptive name for this. Something like `commitAtSequenceNumber`?" + }, + { + "prediction": "Align the parameters of a method call if they span more than one line.
    Prefer single-quoted strings when you don't need string interpolation or special symbols.
    Prefer single-quoted strings when you don't need string interpolation or special symbols.
    Prefer single-quoted strings when you don't need string interpolation or special symbols.
    Prefer single-quoted strings when you don't need string interpolation or special symbols.", + "reference": "The `url_name` should definitely be more than just 1 character long at the shortest. How about 3 or 4 characters?" + }, + { + "prediction": "Why is this removed?", + "reference": "Please revert this change" + }, + { + "prediction": "I think we should be able to use `@guidance_presenter = GuidancePresenter.new(Plan.new(template: @phase.template))` instead of `@guidance_presenter = GuidancePresenter.new(Plan.new(template: @phase.template).new(plan: @phase.template)`", + "reference": "Nice. I hadn't even heard of presenters in Rails before (learn something new every day) :)" + }, + { + "prediction": "This should be `@var DownloadStrategyInterface[]`", + "reference": "`string[]` ? not sure, can you verify this @core23 ? Thank you" + }, + { + "prediction": "I think this should be `let playPauseClickTimeout = setTimeout(onViewHideStopPlayback, 100);`", + "reference": "are we aware that this breaks older browsers like WebOS? :) they don't handle `let`" + }, + { + "prediction": "Why is this change needed?", + "reference": "This isn't really a Kinto record but a Memcached record. I could kind of go either way on this." + }, + { + "prediction": "Shouldn't this be `account.downloadProfilePhoto()`?", + "reference": "Kick off the download after login." + }, + { + "prediction": "Shouldn't this be `array`?", + "reference": "I don't think you need to change this, `array` should be accepted whenever `string[]` is expected. (`string[]` is an alias of `array` itself an alias of `array` which is a parent type of `array`" + }, + { + "prediction": "(style) code indent should use tabs where possible", + "reference": "TODO: fix this, probably in another PR" + }, + { + "prediction": "I think this should be `if tab is None or tab.tab_id != self._tab_id`", + "reference": "Is there any case that tab is None?" + }, + { + "prediction": "I think this should be `t.Append(sourceSet)` instead of `t.Append(targetSet)`", + "reference": "pls use `err` instead of `e`" + }, + { + "prediction": "I think we should use `navigator.getGamepads` instead of `navigator.getGamepads`", + "reference": "`attachGamepadScript` above can also be placed inside." + }, + { + "prediction": "Why is this change needed?", + "reference": "when we use RegisterWriteCommand,this func should be exported,so we can use this to get signer at the outside action package" + }, + { + "prediction": "Why is this change needed?", + "reference": "Dead code - we should remove it or use `log.Trace` for lower logging level. Same applies for change at line 138." + }, + { + "prediction": "I don't think we need to do this, but I think it would be better to use `boost::numeric::bad_numeric_cast` instead of `boost::numeric::bad_numeric_cast`", + "reference": "How does this make sure invalid coordinates making the parser fail? Relying on the Coordinate type's boost numeric_cast calls in the ctor? Shouldn't we rely on a coordinate's `.IsValid()` member function instead?" + }, + { + "prediction": "I think this should be `snippet-start: [s3.ruby.s3-ruby-example-upload-item-to-folder]`", + "reference": "Simple Storage **Service**" + }, + { + "prediction": "Why not just define `CACHE_ENABLED`?", + "reference": "Does this line (and the corresponding one in the test bootstrap) actually do anything? I don't see where CACHE_ENABLED is used as a global constant." + }, + { + "prediction": "Why is this change needed?", + "reference": "has this changed? are we testing \"all possible situations\" now?" + }, + { + "prediction": "I think it would be better to use `ZK_HOST + '.'` instead of `ZK_HOST + '.'`", + "reference": "ZK is properly spelled 'ZooKeeper' (capital 'K')." + }, + { + "prediction": "I think this should be `~/.config/gcloud/application_default_credentials.json` instead of `~/.config/gcloud/application_default_credentials.json`", + "reference": "Guessing this locates the key you get when you run `gcloud auth application-default login`? What was the previous behavior/the behavior for the manual Veneer creds?" + }, + { + "prediction": "Why do we need to check if `columnSelected` is true?", + "reference": "looks good to me, but it would be better if you assigned `this.countRows()` into a variable, so it doesn't trigger twice in the return statement" + }, + { + "prediction": "I think this should be `require('classtool');`", + "reference": "For now, don't add \"use strict\" to any existing files. That's a separate project that we'll do later. (New files can use \"use strict\".)" + }, + { + "prediction": "I think this should be `assert.NoError(err)` instead of `assert.NoError(err)`", + "reference": "I was confused by this env name variable, assuming it was the value, not the name. Silly nit, but maybe name it noninteractiveEnv?" + }, + { + "prediction": "I think this should be `posix='win' not in sys.platform`", + "reference": "`sys.platform` could be equal to `darwin` which is posix. Use `not startswith('win')`?" + }, + { + "prediction": "Why is this needed?", + "reference": "let's move this into `slack_helper.go`" + }, + { + "prediction": "Why is this change needed?", + "reference": "I doubt it will work, but without space between -o and ControlPath it should. Lets see. What I do not understand is why we did not see a failure on CI related to this?" + }, + { + "prediction": "Why is this change needed?", + "reference": "this is the reason we might be seeing 360 as discrete bearing" + }, + { + "prediction": "I think this should be `%(prog)s %(astroid_version, sys.version)`", + "reference": "`FULL_VERSION` is available at module level for others to use, but it won't have `%(prog)s` substituted with pylint. Will that be a problem. Also put it here instead of __pkginfo__ with other versions because it isn't pkginfo related." + }, + { + "prediction": "I think this should be `public long rowPosition;`", + "reference": "Is this needed? I don't see any uses." + }, + { + "prediction": "I think this should be `DeleteBuildOrFail` instead of `DeleteBuildOrFail`", + "reference": "Shouldn't this be V1beta1?" + }, + { + "prediction": "Do we need to call `remove_approver` here?", + "reference": "I think there's an `approval_for`" + }, + { + "prediction": "I think this should be `transform(Function f)` instead of `transform(Function f)`", + "reference": "Here we should use List in generic" + }, + { + "prediction": "I don't think we need the toolchain here.", + "reference": "The `JavaCompile#getToolChain` method got removed and I am not sure what a good replacement is. I replaced it with `targetCompat` for now but they are not equivalent. Maybe we can use `JavaVersion#current` here?" + }, + { + "prediction": "Why not use `string` instead of `string`?", + "reference": "The method name is incorrect. It does not check the existence of the file. I'd suggest deprecating both methods `fileExists` and `findIdByHash` and use findIdByFilename instead of fileExits" + }, + { + "prediction": "(style) line over 80 characters", + "reference": "We have `stdbool` imported, might as well use that for clarity." + }, + { + "prediction": "I think this package should be renamed to `batchstore`", + "reference": "File is empty, consider removing?" + }, + { + "prediction": "Why not use `self.configuration.writeConcernMax().writeConcern` here?", + "reference": "`writeConcernMax` was changed to return a `writeConcern` formatted the new way-- `writeConcern: {w:1, ...}`. Bulk execute takes an actual `WriteConcern` object as its first parameter (this was changed in master), so we have to un-wrap the `writeConcernMax` result here." + }, + { + "prediction": "I think this should be `@frozen_sort = false` instead of `@frozen_sort`", + "reference": "How about passing this through the `config`?" + }, + { + "prediction": "I think this should be `if os.environ.get(\"TEST_TARGET\") == \"AWS_CLOUD\":`", + "reference": "Out of curiosity - did we make this change to allow dynamically assigning a value to `os.environ[\"TEST_TARGET\"]` during test execution? I kind of liked the decorator style `@only_localstack` - makes the condition a bit more explicit. Looks like `skipif` also allows to specify a condition string, e.g. `pytest.mark.skipif('os.environ.get(\"TEST_TARGET\") == \"AWS_CLOUD\"')` - could that be an option? (not sure if that gets lazily evaluated at runtime right before the execution of the annotated test method starts, though..)" + }, + { + "prediction": "Why not use `$this->domainId` here?", + "reference": "I noticed (SonarCloud noticed actually) that the implementation of `::edit` method is the same as `__construct` is. Does it make sense to call the `edit` method from the constructor?" + }, + { + "prediction": "(style) line over 80 characters", + "reference": "would you please rename the message prefix to: [in_syslog] ...\"" + }, + { + "prediction": "Why not use `RWMol **molExt` instead of `RWMol **molExt`?", + "reference": "The pointer to a pointer is kind of gross. How about either taking the `ROMOL_SPTR` directly or, preferably, returning an `std::pair`?" + }, + { + "prediction": "I think this should be `pendingCountLocked` instead of `pendingCountLocked`", + "reference": "the name confusing, please rename to `pendingCountNoLock` or similar" + }, + { + "prediction": "Why is this change needed?", + "reference": "line is 175 characters" + }, + { + "prediction": "Why is this change needed?", + "reference": "@ivanbogdanov Does this fix the first time load gray screen issue that @wmathurin noticed?" + }, + { + "prediction": "I don't think we need to remove the warning after 2.3.0", + "reference": "Is `2.3.0` version OK?" + }, + { + "prediction": "I don't think we need this test anymore, but I think it would be better to use `should_switch_to_frame` instead of `should_switch_to_parent_frame`", + "reference": "I tested it only in Firefox (`./go //rb:firefox-test`)" + }, + { + "prediction": "I think this should be `http.HandlerFunc` instead of `http.HandlerFunc`", + "reference": "separate third party and builtin" + }, + { + "prediction": "I think this is a bit confusing, but I think it would be better to use `isHybrid()` instead of `isHybrid()`?", + "reference": "@smcnulty-sfdc We do want to finish the hybrid activity in our hybrid apps though. Could the caller not pass in `frontActivity` instead? Or start it up again post-logout?" + }, + { + "prediction": "I think this should be `context.DeadlineExceeded` instead of `context.Err()`", + "reference": "isn't this going to return a timeout error if the context is canceled?" + }, + { + "prediction": "I think this should be `if (argNameVal.length == 1) { parsedArgs.put(argNameVal[0], \"true\"); } else { parsedArgs.put(argNameVal[0], \"false\"); }`", + "reference": "`argNameVal.length` will still be !=2, so line 22 will give true and then continue on line 24" + }, + { + "prediction": "I think you should use `preg_match('/\\w/', $char)` instead of `preg_match('/\\w/', $chars[$i + 1])`", + "reference": "It was `$chars[$i]` I believe." + }, + { + "prediction": "Line is too long. [89/80]", + "reference": "This has the likely potential to break existing tests that are relying on the old beaker behavior. If we are going to release this in beaker 3.x, then we need to preserve the old behavior as well (so set both the `upcase` and original values). On Windows, they env variables will overwrite each other, with the same value, so not an issue. On *nix, there will be two env variables, but they will have the same value, so again no issue." + }, + { + "prediction": "I think this should be `variableOptions || {};`", + "reference": "Thanks for fixing this! I probably didn't test the playground when making changes here for cloud variables." + }, + { + "prediction": "Shouldn't this be `Preconditions.checkNotNull(selectedIds, \"Selected field ids cannot be null\")`?", + "reference": "I will also check if `nameMapping` needs a precondition null check." + }, + { + "prediction": "Why is this change removed?", + "reference": "Since RuntimeIOException is deprecated and you are touching this code, why not replace it?" + }, + { + "prediction": "Why is this needed? I think it would be better to use `self.assertRaises(ValueError)` instead of `self.assertRaises(ValueError)`", + "reference": "You should also have a test that calls it with tm_cpp and make sure it returns the correct JSON file." + }, + { + "prediction": "Why is this removed?", + "reference": "One more minor change, the string `ForAdditionalLiveTvOptions` is probably also unused." + }, + { + "prediction": "Why is this change needed?", + "reference": "How to distinguish between warning and error?" + }, + { + "prediction": "I think this should be `if UIAHandler.isUIAAvailable:`", + "reference": "Perhaps you want to check if UIAHandler.handler is not None. The current check will break NVDA if you call UIAHandler.terminate() for some reason." + }, + { + "prediction": "I think this should be `set(\"replace-partitions\", \"true\");` or `set(\"replace-partitions\", \"false\");`", + "reference": "can we make `replace-partitions` property a static variable in `SnaphotSummary.java`?" + }, + { + "prediction": "I think this should be `@see Selenium::WebDriver::Firefox::W3CBridge`", + "reference": "Maybe call it `WireBridge`?" + }, + { + "prediction": "I think this should be `user = User.query.filter_by(id=payload['id']).one_or_none()`", + "reference": "Should really be `one()`, not `one_or_none()`" + }, + { + "prediction": "I think this should be `out.NodeRegistration.KubeletExtraArgs[\"node-labels\"] = fmt.Sprintf(\"%s,%s\", labels, nodeRole)`", + "reference": "Should we use strings.Split and strings.Join instead of manual concatenation?" + }, + { + "prediction": "I think this should be `from_input_definition` instead of `from_input_definition`", + "reference": "rough that this needs to exist, but it is what it is" + }, + { + "prediction": "I think this test should be `should not set empty string for null props in custom attributes`", + "reference": "FYI, I pulled your branch and hacked a little on your test case. This passes for me (you may want to tweak further):
     it('should not set empty string for null props in custom elements', () => { customElements.define('x-bar', class extends HTMLElement { val; }); // @ts-ignore render(<x-bar val={null} />, scratch); expect(scratch.childNodes).to.have.length(1); expect(scratch.firstChild).to.have.property('nodeName', 'X-BAR'); expect(scratch.firstChild.attributes.length).to.equal(0); expect(scratch.firstChild.val).to.equal(null); }); 
    " + }, + { + "prediction": "I think this should be `LARGE_BYTES` instead of `ONE_MEGABYTE`.", + "reference": "It is the maximum value that the configured emulator can support." + }, + { + "prediction": "Why is this needed?", + "reference": "Here, I've been giving priority to the session saved by the user. This means, that if the user quits with `:wq`, then restarts `qutebrowser`, and then `qutebrowser` crashes for some reason, next time `qutebrowser` is restarted, the session saved lastly with `wq` will be restored, and not the one autosaved. What do you think?" + }, + { + "prediction": "I think this should be `AccountData` instead of `BalanceRecord`", + "reference": "this line got me confused for few seconds, as the `AccountData` is both the name of the data structure as well as the function name. I think that `GetAccountData` is a better choice for a name. ( note that the same applies for the previous `BalanceRecord` function name )" + }, + { + "prediction": "Why is this change needed?", + "reference": "I think this mutex is only used here. Remove it." + }, + { + "prediction": "I think we need to set the version to 1 if the migration is enabled, otherwise we will have to set the version to 1 if the migration is disabled.", + "reference": "so this is now init to 1?" + }, + { + "prediction": "I think it would be better to use `version = -1` instead of `version = -1`", + "reference": "For future note; not prefixing the table in a join can throw an error in the query parser depending on how the query is built I am making an assumption this was tested" + }, + { + "prediction": "I think we should use `fakeClusterUUID` instead of `fakeClusterMetadata`", + "reference": "Had to bring this up, will abandon this style of testing based on Joel's work soon." + }, + { + "prediction": "I don't think we need to log ok here, but I think it's better to use `log.isDebugEnabled()` instead of `log.isDebugEnabled()`.", + "reference": "What does our source validation complain about here? Many of the logok/nowarn places look fine to me at a glance but I'm no match for the logging policeman ;-)" + }, + { + "prediction": "I think this should be `` instead of ``", + "reference": "It feels like this dependency should not be here. Some deep internal openvpn package (middleware) knows about one of possible stats consumers. Maybe as an alternative, statistics and state callbacks can be extracted as separate interfaces in top openvpn package and reused by both sides" + }, + { + "prediction": "Why is this change needed?", + "reference": "Can you please remove `codec` from the parameters too? I think it's unused now." + }, + { + "prediction": "I think this should be `ReflectionClassDeclaration.solvedJavaLangObject()` instead of `ReflectionClassDeclaration.getSolvedJavaLangObject()`", + "reference": "mocks needed this change so that it returns the \"right\" thing" + }, + { + "prediction": "Shouldn't this be `controlModifier`?", + "reference": "I don't think the getters for this are needed, but looks good other than that" + }, + { + "prediction": "I don't think we need to add a `class=\"video-text\"` class here.", + "reference": ":+1: to inlining this." + }, + { + "prediction": "Line is too long. [89/80]", + "reference": "Does psalm support the same logic internally for object-like arrays? Just want to be certain I can indicate this is a contextual return item `crypto?:mixed`." + }, + { + "prediction": "Why did you remove this?", + "reference": "I can't recall if there was a fix specific to this in the past?" + }, + { + "prediction": "I think this should be `*corev1.SecretKeySelector` instead of `*corev1.SecretKeySelector`", + "reference": "Not sure what the todo is here? Is it to support some kind of defaulting based off of that?" + }, + { + "prediction": "I think this should be `public bool AsyncFlushOnConditionOnly { get; set; }`", + "reference": "Not sure about this name. I think \"explicit\" is also a bit difficult here (I think it should be implicit then) Proposal: FlushOnEvents. Or, It would be cool if we could split into 2 options, FlushOnShutdown and FlushOnReload, but I expect that's far more difficult to implement?" + }, + { + "prediction": "I think this should be `fake_save_manager`", + "reference": "I don't think that works - you can't mark a fixture." + }, + { + "prediction": "I think this should be `C:\\\\Program Files\\\\Puppet Labs\\\\Bolt\\\\bolt.yaml` instead of `C:\\\\Program Files\\\\Puppet Labs\\\\Bolt\\\\bolt.yaml`", + "reference": "We should not include this path." + }, + { + "prediction": "Why is this needed?", + "reference": "Add newline at end of file" + }, + { + "prediction": "I think this should be `DEFAULT -1` instead of `-1`", + "reference": "This should be done when updating to the next release (2.5). You currently only perform the upgrade when users go from 1.4 to 1.5, so it will lead to crashes for existing users." + }, + { + "prediction": "I think this should be `hive.openshift.io/clusterName` instead of `hive.openshift.io/clusterName`", + "reference": "suggest hive.openshift.io/cluster-machine-management or something to make it more obvious what it is." + }, + { + "prediction": "Why is this change needed?", + "reference": "We explicitly don't want to do that. This was a complaint from users before." + }, + { + "prediction": "Shouldn't this be `int[]` instead of `int[]`?", + "reference": "Hello, The PHPDoc is `string[]` not `int[]`" + }, + { + "prediction": "I think this should be `enterNS` instead of `enterNS`", + "reference": "Same issues with parameters order in `ipset_server.go`" + }, + { + "prediction": "Why is this change needed?", + "reference": "Wow, did it literally mean the retention days is a huge number?" + }, + { + "prediction": "I think this should be `if (++argi >= argc) Error(\"missing path following: \" + arg, true);`", + "reference": "you probably didn't intend to touch those files in `scripts/`" + }, + { + "prediction": "I think this should be `tpfp_func=None`", + "reference": "Similar to `collate_fn`, we may rename it to `tpfp_fn`." + }, + { + "prediction": "I don't think this is needed anymore.", + "reference": "Awesome! We may also use negative rule `never` to fix new lines after `return`: `{ blankLine: \"never\", prev: \"return\", next: \"*\" }`" + }, + { + "prediction": "I think this should be `config.JournalServer().WriteJournal(true)` instead of `config.JournalServer().WriteJournal(true)`", + "reference": "Why can't this be a function on the `Config` interface like all the others?" + }, + { + "prediction": "I think this is a good idea, but I think it would be better to use `FeedUtils.setupSearchItem(menu, (MainActivity) getActivity(), feedID, feed.getTitle());` instead of `MenuItemUtils.setupSearchItem(menu, (MainActivity) getActivity(), feedID, feed.getTitle());`", + "reference": "If the feed is null, the menu items should still be setup. Just the feed title can be left out. That prevents possible flickering when menu items are displayed/hidden for some feeds." + }, + { + "prediction": "Is there a reason why we don't allow incompatible changes in this PR?", + "reference": "I'm not sure that this should call `allowIncompatibleChanges()` because adding a required column when there are no existing values will break reading the new column in any table with data in it. The only time it is safe to add a required column is if there is no data in the table. What about throwing an exception here instead? I agree that the column should not be optional if NOT NULL was specified. Another alternative is to check whether the table has data and allow the incompatible change if it doesn't have any rows." + }, + { + "prediction": "Why not use `backend::lang.dashboard.status.widget_title_default` instead of `backend::lang.dashboard.status.widget_title_default`?", + "reference": "Early translation , should be logic-less" + }, + { + "prediction": "I think this should be `interceptor.Interceptor`", + "reference": "I don't understand why these functions return a request/response, respectively. In all implementations we actually _modify_ the request/response given as a parameter. Do you envisage situations where we'd want to construct completely fresh request/response objects? Even if we do, it's not something needed atm, so I'd favour in keeping the API minimal. Also, the fact that these functions _may_ mutate the request/response should be noted." + }, + { + "prediction": "Align the elements of a hash literal if they span more than one line.
    Prefer single-quoted strings when you don't need string interpolation or special symbols.", + "reference": "Wasn't there a subsequent reason why we had to keep the `/p/project_graph` route? Outside references or is the proposed solution to the original proposal we us `/p/g` as the `compares#project_graph` route?" + }, + { + "prediction": "Shouldn't this be `assertThat(gen.apply(RANDOM)).isIn(1,2,3);`?", + "reference": "Any suggestions on how I would even _approach_ writing tests for arbitrary values...." + }, + { + "prediction": "I think this should be `public`.", + "reference": "Scope declarations for class constants was not added until 7.1, this will not be accepted." + }, + { + "prediction": "I think this should be `if (it != activeClientMap_.end()) {`", + "reference": "The assertion here is that find should never return end() because this is the only mechanism that reaps items from the activeClientMap. If it == end something went horribly wrong." + }, + { + "prediction": "I think this should be `Key(Document) (interface{}, error)` instead of `Key(Document) (interface{}, error)`", + "reference": "The `unless the collection ...` part reads a little bit hard, maybe separate into its own sentence and explain what it means by `cannot generate a fresh key`?" + }, + { + "prediction": "I think this should be `FailedPrecondition` instead of `FailedPrecondition`", + "reference": "Doesn't `gcerr_string.go` need to be updated for this?" + }, + { + "prediction": "I think this should be `stringToRunes` instead of `stringToBytes`.", + "reference": "Both cases allowed by the Go spec are now supported, so it's a bug in the compiler if we get here. You can replace the `todo:` error with a panic. (Note: getting here would be a bug because when we get to SSA level the code has long been type checked and has already been verified as being valid Go)." + }, + { + "prediction": "I think this should be `if len(tab.history_prepared) > 0` instead of `if len(tab.history_prepared) > 0`", + "reference": "You can simply do `if tab.history_prepared:` here as empty lists are falsey." + }, + { + "prediction": "I think this should be `pkg/install` instead of `pkg/install`", + "reference": "Remove this whitespace" + }, + { + "prediction": "`one_img = mmcv.imresize(one_img, input_shape[2:][::-1], input_shape[2:][::-1])`", + "reference": "`show_img` is not normalized while `one_img` is normalized. And line 139 pass `show_img` for pytorch2onnx function. Is this expected behavior?" + }, + { + "prediction": "I think this should be `inputOffset = Math.min(30, Math.max(30, inputOffset));`", + "reference": "Why is this bounded between -30 and 30?" + }, + { + "prediction": "Why is this change needed?", + "reference": "I think even you can exclude to run it on nvcc" + }, + { + "prediction": "I think this should be `string` instead of `String()`.", + "reference": "G104: Errors unhandled. (from `gosec`)" + }, + { + "prediction": "Shouldn't this be `raise Exception(\"fail to run task {0} reason: {1}\".format(failure['arn'], failure['reason']))`?", + "reference": "will `failure` always include `arn` and `reason` in its dictionary? If so, :+1:" + }, + { + "prediction": "I think this should be `with_events_action(target, callback, action)` instead of `with_events_action(target, callback, action)`", + "reference": "Should this be optional, or default to 'action' as well?" + }, + { + "prediction": "I think we should move this import to the top of the package, so that we don't have to move it to the top of the package.", + "reference": "how about formating this import?" + }, + { + "prediction": "Shouldn't this be `shouldAutoTether=not isCaret` or `shouldAutoTether`?", + "reference": "Comma police. :) Also, the docstring needs updating." + }, + { + "prediction": "I think we should move this to `MigrateDriver` instead of `QuiesceDriver`.", + "reference": "Implement an in-memory implementation of this in the fake driver." + }, + { + "prediction": "I think this should be `expect(rendered).to include('2 episodes')` instead of `expect(rendered).to include('2 episodes')`", + "reference": "Same question as the other view spec regarding not actually saving records." + }, + { + "prediction": "Shouldn't this be `InternalLogger.Warn(ex, \"Auto loading assembly file: {0} failed! Skipping this file.\", extensionDll);`?", + "reference": "Rethrow for `MustBeRethrown()`-exceptions?" + }, + { + "prediction": "I think we should use `cuda.current_device()` instead of `cpu` here.", + "reference": "May clean the unnecessary modification." + }, + { + "prediction": "I don't think you need to change the variable here.", + "reference": "Should this line set the value to `x` since that is checked below?" + }, + { + "prediction": "I think this method should be `slimCopy` instead of `slimCopy`.", + "reference": "I don't particularly love the terminology here. Why not simply add `copy(boolean stats)` or a copy with an enum to indicate what portions of the datafile to include? At some point we may want just some of the values (e.g. CBO may want counts, but not lower/upper bounds). Just a thought." + }, + { + "prediction": "I don't think we need to check for `idx == -1` here.", + "reference": "you could probably remove keyValue and just compare idx vs ann.length (ex I think the goal here is to ensure it works with a value like `foo=`" + }, + { + "prediction": "I think we should use `item.recording_start` instead of `item.recording_start`", + "reference": "we do this to differentiate between the multiple cc files for when the recording is stopped / restarted multiple times within a single meeting" + }, + { + "prediction": "Why did you remove this?", + "reference": "You've deleted this code but not added it anywhere else. Should this be used as my proposed example in the .ini file? Do we need a mechanism for configuring a global fallback string independent of the numeric codes?" + }, + { + "prediction": "I think we should use `java.util.List` instead of `java.util.Collections`", + "reference": "nit: strip away those imports? seems not used in the new code." + }, + { + "prediction": "I think this should be `accounts/abi/bind` and `accounts/mysteriumnetwork/node/blockchain/generated`", + "reference": "redundant whitespace :octocat:" + }, + { + "prediction": "Why is this change needed?", + "reference": "I don't believe that the `assertDictEqual` call can pass without `api_response` being a `dict`, so this second check isn't needed!" + }, + { + "prediction": "I think this should be `h2o_mem_release_shared(ret);` instead of `h2o_mem_release_shared(ret);`", + "reference": "Fuzzer did not like this change. Looks like I misunderstood how the pool works... if allocated from a pool we should never free it manually, right? I think I'll need to drop this patch." + }, + { + "prediction": "Why is this needed?", + "reference": "Wouldn't it make sense to already have title, owner etc in this class?" + }, + { + "prediction": "I think this should be `@faker.version 1.8.5` instead of `@faker.version 1.8.5`", + "reference": "New generators should have version `next`" + }, + { + "prediction": "Shouldn't this be `metricsConfiguration.getProtocol().name()` instead of `metricsConfiguration.getProtocol().name()`?", + "reference": "Wrap these two lines inside an `if (node.isMetricsEnabled() || metricsConfiguration.isPushEnabled()) { ... }`" + }, + { + "prediction": "why is this change needed?", + "reference": "if end_level == -1 or end_level == (self.num_ins - 1): for end_level is the Index of the end input backbone level." + }, + { + "prediction": "I think this should be `Path.Length + arrayOverhead` instead of `Path.Length + arrayOverhead`", + "reference": "No CLR overhead?" + }, + { + "prediction": "I think this should be `fmt.Fprintf(w, \"bad request: %+v\", r)`", + "reference": "Consider faking the TestClient's GetProject/GetZone/GetMachine methods." + }, + { + "prediction": "Why is this needed?", + "reference": "Returning a private type as part of the public API? Isn't this impossible for users to implement?" + }, + { + "prediction": "why is this change needed?", + "reference": "prefer common_properties::_canonicalRankingNumber if possible, should be quicker in general." + }, + { + "prediction": "I think this should be `loss_normalizer_momentum=0.9`", + "reference": "The meaning of `loss_normalizer` and `loss_normalizer_momentum` should be reflected in docstring." + }, + { + "prediction": "I think this should be `FIONBIO` instead of `FIONBIO`.", + "reference": "Call to `cloexec_pipe` (or an equivalent function) is missing. I presume that this is the reason why you are seeing timeout errors." + }, + { + "prediction": "I think this is a good idea, but I think it would be better to use `import java.util.*;` instead of `import java.util.*;`", + "reference": "There are no changes in this file. Please reset." + }, + { + "prediction": "I think this should be `samples >= x`", + "reference": "Should we rename this to tailProbability?" + }, + { + "prediction": "(style) line over 80 characters", + "reference": "Add the issue number too i#4400" + }, + { + "prediction": "I think this should be `Collections.unmodifiableList(list);`", + "reference": "Why make this modifiable?" + }, + { + "prediction": "Why did you remove this?", + "reference": "Why this file is changed?" + }, + { + "prediction": "I think this should be `discard all changes after given timestamp`.", + "reference": "I'm not sure that we need this" + }, + { + "prediction": "I think this should be `?.Value();`", + "reference": "Is this going to cause issues in any other places were someone forgets the version? Should we consider also checking for type=project?" + }, + { + "prediction": "I think this should be `aws.StringValue(out.SecretString)` instead of `aws.StringValue(out.SecretString)`", + "reference": "Does this have retries? Is there a possibility that customer would hit throttle errors here?" + }, + { + "prediction": "Why is this needed?", + "reference": "i noted that we are inconsistent with when we indent includes (see atomics.h which is rather different) and for example cpu.c which is also different. we seem to have 3 styles." + }, + { + "prediction": "I think this should be `if (fs.existsSync(networkLogFile)) { fs.unlinkSync(networkLogFile)`", + "reference": "Deleting the files before starting the audit helps avoid stale results if the new file is not created." + }, + { + "prediction": "Why is this removed?", + "reference": "Remove this blank line" + }, + { + "prediction": "I don't think we need to do this, but I think it would be better to use `Map.of(String, String)` instead of `Map.of(String, String)` and use `Map.of(String, String)` instead of `Map.of(String, String)` and use `Map.of(String, String)` instead of `Map.of(String, String)` instead of `Map.of(String, String)`", + "reference": "This is... quite unconventional (use a map entry as a key). I would suggest making your own data class for the key." + }, + { + "prediction": "I think this should be `background_color: (0.3, 0.3, 0.3, 0.3, 1)`", + "reference": "why are these colors needed to be specified here? when are they used?" + }, + { + "prediction": "I think this should be \"Cannot rollback snapshots from a metadata table\" or \"Cannot manage snapshots in a metadata table\".", + "reference": "Nit: no need to change this method." + }, + { + "prediction": "I don't think we need to import the `DataAccess` class here, but I think it would be better to use `DataAccess` instead of `DataAccess`.", + "reference": "Why a blank line?" + }, + { + "prediction": "I think we should use `html_safe` instead of `html_safe`", + "reference": "Why remove the `.html_safe` here? Should we use `sanitize` or `raw` instead? This info comes off of the org edit page and is entered by users." + }, + { + "prediction": "(style) line over 80 characters", + "reference": "I think we need some docs about how to set this parameter correctly. Are we OK with changing the public API like this? We probably at least want to make a change notice to the release doc." + }, + { + "prediction": "I think this should be `ProtocolFragmentationReceived` instead of `ProtocolFragmentationVerified`", + "reference": "When we undo this for 1.3, do we not need to leave these three entries intact to avoid renumbering of the subsequent constants? If so perhaps the changes to this file should be pulled into a separate initial commit so we can just `git revert` the remainder..." + }, + { + "prediction": "I think this should be `if !a.NoValidataShapeMethods { a.addShapeValidations() }`", + "reference": "This is never set anywhere in the `cli/gen-api` folder. Should it be?" + }, + { + "prediction": "Why is this changed?", + "reference": "All the changes in this commit are mechanical. Produced by the script in the previous commit." + }, + { + "prediction": "I think this should be `raw` instead of `cmd`", + "reference": "What's the difference between these 2 versions?" + }, + { + "prediction": "Why is this change needed?", + "reference": "@red2k18 Are we sure its correct to only have 1 now?" + }, + { + "prediction": "I think this should be `setProp(RDKit::common_properties::_unspecifiedOrder, 1);`", + "reference": "@greglandrum interesting, is this related to #3307 by any chance?" + }, + { + "prediction": "I think we should use `ENV['FORCE_USER_ID']` instead of `ENV['FORCE_USER_ID']`.", + "reference": "Minor: how about moving the trailing `if` to an `elsif` above?" + }, + { + "prediction": "I think this should be `DEFAULT -1` instead of `DEFAULT -1`.", + "reference": "That's only executed when users switch from 2.2 to 2.3. Please create a new block with code `2050000` for the next release :) Please also adapt the version number in PodDbAdapter" + }, + { + "prediction": "I think this should be `c.srv.globalAccount()`.", + "reference": "Safe to reference c.srv without capturing it first under a client lock?" + }, + { + "prediction": "I don't think we need this file.", + "reference": "@vincepri blame tells me this was you, any objections to the change?" + }, + { + "prediction": "I think this should be `go server.StartServerUnderTest()`.", + "reference": "@abhinav here is where i need to be able to block/wait until the server is started" + }, + { + "prediction": "I think this should be `@param` instead of `@return`.", + "reference": "It seems to me as an unrelated change. Could you please revert it?" + }, + { + "prediction": "Why is this needed?", + "reference": "~Why are putting all these APIs in their own ~packages~ files? So many more ~directories~ files, to what end? Why not just have them all be a part of the same API file and all live alongside each other so you can easily see them?~ Edit: nevermind, probably works best in separate files." + }, + { + "prediction": "I think this should be `NodeWithExtends` instead of `NodeWithExtends`", + "reference": "This likely needs to be double checked -- I recall being convinced at the time of writing this, but now I am less sure" + }, + { + "prediction": "Why is this changed?", + "reference": "For a followup - it is better to use acceptlist/denylist. I realize this is a historical artifact of our codebase." + }, + { + "prediction": "I think we should be able to use the same method as the one in this file.", + "reference": "Looks like glassfish went a bit nuts doing a refactor" + }, + { + "prediction": "I think this should be `assert.isTrue(fixture.querySelector('#target')).contains(target, target.parentNode);`", + "reference": "Couldn't you use position:absolute or float to move inline elements outside their parent? Through clipping an child element can also be outside it's parent. There are probably some other ways to do it too. So I'm not sure the assumption you're making here is right." + }, + { + "prediction": "I think we should use `DateTimeUtils.toMillis(args.getLong(1));` instead of `DateTimeUtils.microsToMillis(args.getLong(1));` and `DateTimeUtils.microsToMillis(args.getLong(1));`", + "reference": "This could be copied into iceberg code to avoid the spark internal dep? We could use a version check to adjust the method used if needed." + }, + { + "prediction": "(style) line over 80 characters", + "reference": "This one had me stumped!" + }, + { + "prediction": "Why is this removed?", + "reference": "Note that this name differs from the name used as default (and thus used now that you removed this). That should be fine, but wanted to flag it." + }, + { + "prediction": "Why not use `SearchDto` instead of `EntityDto`?", + "reference": "Why public and not protected?" + }, + { + "prediction": "I think we should check if the current_tab.present is true.", + "reference": "We definitely need to address this duplication after MVP" + }, + { + "prediction": "I think we should use `__( 'Enter minimum one (1), maximum three (3) terms', 'google-site-kit')` instead of `__( 'Enter minimum one (1), maximum three (3) terms', 'google-site-kit')`", + "reference": "This will always generate a label for the first keyword, which means this will be a label linked to no element after the first keyword is entered. This label should be generated inside the `values.map` next to the `` it is for, because the ID changes based on the index. Also, we have a `VisuallyHidden` component I'd prefer we use over the CSS class. Building as many things out of components is more React-y. Admittedly it's sort of a preference, but it's why we have the `VisuallyHidden` component. So let's use that instead " + }, + { + "prediction": "Shouldn't this be `desktop->xcursor_theme = roots_xcursor_theme_create(\"default\")`?", + "reference": "Does it make sense for this to be fatal? Could there be an embedded application that does not have xcursor themes at all? For instance, compositors without a pointer (like a touch-screen kiosk) will never show a cursor. I think I'm ok with this assumption since it simplifies the code and rootston is assumed to have desktop features, but we should always make sure xcursor is not required to be used in the library." + }, + { + "prediction": "Why is this needed?", + "reference": "would rename to TopicsFilter and original one to SequenceTopicsFilter" + }, + { + "prediction": "why is this change needed?", + "reference": "Is the idea that ``self.keys[0]`` here normally matches ``init_key``?" + }, + { + "prediction": "I think this should be `if hwnd == winUser.getDesktopWindow(): return False`", + "reference": "Can this be clarified to \"Exit early when hwnd is the windows desktop handle, UiaHasServerSideProvider would return false anyway.\" ?" + }, + { + "prediction": "I think this should be `int64` instead of `int64`.", + "reference": "I'm okay with leaving VCPULimit and MemoryLimit on our internal model" + }, + { + "prediction": "I think this should be `tierIndex` instead of `tierIndex`.", + "reference": "5 or 10?" + }, + { + "prediction": "Is there a reason why we don't need to suppress the telemetry from `SuppressInstrumentation.Begin()`?", + "reference": "Should we explain more here?" + }, + { + "prediction": "I think this should be `CreateOrGetMachine(*clusterv1.Machine, *v1alpha1.AWSMachineProviderConfig, *v1alpha1.AWSClusterProviderStatus, *v1alpha1.AWSClusterProviderStatus, *v1alpha1.AWSClusterProviderStatus)`", + "reference": "I've been struggling with this on my cloud-init integration work as well. In addition to info that is currently stored in the cluster providerstatus, we also need some of the info that is available within the base cluster object as well. I think it would make sense to unify the machine and cluster info needed into a consolidated struct rather than continuing to add additional disparate structs." + }, + { + "prediction": "I think it would be better to use `ClassUtil.isInternalAPI()` instead of `ClassUtil.isInternalAPI()`.", + "reference": "Why not `@InternalApi`?" + }, + { + "prediction": "I think this should be `from typing import GenericMeta as _GenericAlias`", + "reference": "FYI: `GenericMeta` is renamed to `_GenericAlias` in Python3.7." + }, + { + "prediction": "I think this should be `if template.latest?` instead of `if template.latest?`", + "reference": "So this hides the link to re-order sections on Historic Templates? Good catch, Just checked on DMPonline and hitting that throws a 404" + }, + { + "prediction": "I think this should be `configuration.reporter.reset` instead of `configuration.reporter.reset`", + "reference": "Is `Reporter#reset` no longer used? If so, can we remove it?" + }, + { + "prediction": "I think this should be `writeUInt256Scalar(header.getBaseFee().get());`", + "reference": "same concern here about difference in the write scalar implementation. I am not sure if this could present a consensus problem or not" + }, + { + "prediction": "I think this should be `IMvxSplitViewController` instead of `IMvxTvosView`", + "reference": "Can we remove this file?" + }, + { + "prediction": "I think this should be `c.logger.Info(c.logger).Log(\"msg\", \"recreating AlertManager StatefulSet\", \"reason\", sErr.ErrStatus.Details.Causes[0].Message)`", + "reference": "Why listing only first error reason (`ErrStatus.Details.Causes[0].Message`)?" + }, + { + "prediction": "I think this should be `use-starting-sequence-number` or `use-starting-sequence-number-default`.", + "reference": "Now that this is true, do we have to ignore it with V1 Tables?" + }, + { + "prediction": "I think this should be `for (var colourProperty in Blockly.Colours) { text = text.replace('$colour_' + colourProperty, Blockly.Colours[colourProperty]);`", + "reference": "prefer if (condition) { stuff; } to if !(condition) { continue; } stuff" + }, + { + "prediction": "I think we should add `<%= raw(@description) %>` to the `

    <%= h(@title) %>

    ` tag", + "reference": "Should this section not be converted to a secondary action list?" + }, + { + "prediction": "I think this should be `result = message.ask(\"Are you sure you want to close a pinned tab? Are you sure you want to close a pinned tab?\", default=False)`", + "reference": "This askes a blocking question, which means a local Qt eventloop will be running. While this is unavoidable sometimes, the async functions should be used whenever possible (`message.confirm_async` in this case). This means: - Split everything after this question in a separate private method (you can probably just call it `_tab_close`) - If the tab is not pinned, just call `_tab_close` directly - If it is pinned, call `message.confirm_async` with `yes_action=self._tab_close`" + }, + { + "prediction": "Why is this removed?", + "reference": "Can we deuglify this?" + }, + { + "prediction": "I think this should be `map(partialFunction::lift).map(partialFunction::apply).map(partialFunction::lift).map(partialFunction::apply).map(partialFunction::lift).map(partialFunction::apply).map(partialFunction::lift).map(partialFunction::lift).map(partialFunction::apply).map(partialFunction::lift).map(partialFunction::lift).map(partialFunction::apply);`", + "reference": "@skestle Just recognized that the `::apply` is not necessary. Does it compile if you leave it away? Could you please check that, I'm on vacation and have no IDE at hand... Thx!" + }, + { + "prediction": "I think this test should not be run on the same table, but it should be run on the same table.", + "reference": "Looks like this is an unnecessary change." + }, + { + "prediction": "Why did you change this?", + "reference": "This one won't change as the resource is not included in the project getting tested with the composite root." + }, + { + "prediction": "(style) line over 80 characters", + "reference": "We have `stdbool` imported, might as well use that for clarity." + }, + { + "prediction": "I think this should be `SqlServerIntegration.ServiceName` instead of `SqlServerIntegration.ServiceName`", + "reference": "Why do we not also have integration tests for postgres?" + }, + { + "prediction": "I think this should be `it.skip('shouldCorrectlyForceReindexOnCollection', { skip: true })`", + "reference": "I think its safe to remove this if we're removing `reIndex` outright. The description shows us that the test is \"An example showing how to force a reindex of a collection\"" + }, + { + "prediction": "I think this should be `EINVAL` instead of `EINVAL`.", + "reference": "Can you make this hexadecimal to match the other constants?" + }, + { + "prediction": "Why remove this?", + "reference": "Can this get moved to `Bolt::Project#validate`?" + }, + { + "prediction": "I think this should be `Tuple2> partition(Predicate predicate)` instead of `Tuple2> partition(Predicate predicate)`", + "reference": "I'm pretty sure it doesn't harm, but don't we have a second pass here with the reverse() operation?" + }, + { + "prediction": "Shouldn't this be `TAKES_HEAP_SNAPSHOT`?", + "reference": "This is not a standard capability and should be hidden behind a vendor prefix: -chromium-takesHeapSnapshot" + }, + { + "prediction": "Why do we need to pass `alg` here?", + "reference": "This shouldn't work with pointers -- prefer references unless you can meaningfully pass `nullptr`. The address-of operator here is clunky at best." + }, + { + "prediction": "I think this should be `gcc-mirror.go` instead of `gcc-mirror.go`", + "reference": "Sidenote: some day we'll drop the avr-gcc and avr-libc dependencies so that this case becomes supported." + }, + { + "prediction": "Why is this change needed?", + "reference": "do we still need this method?" + }, + { + "prediction": "I think we should use `CmpCommon::getDefault(TRAF_UPSERT_TO_EFF_TREE) == DF_ON` instead of `CmpCommon::getDefault(TRAF_UPSERT_TO_EFF_TREE) == DF_ON`", + "reference": "It's better to not leave this old code here... it just clutters things up and makes reading the code more confusing. We can always recover the old code from the repository if needed." + }, + { + "prediction": "I think this should be `org.sun.glassfish.gmbal.ManagedObject`", + "reference": "Again, you don't want to depend on glassfish." + }, + { + "prediction": "Line is too long. [89/80]", + "reference": "This shouldn't be required. What was going on here?" + }, + { + "prediction": "I think this should be `MinVersion: tls.VersionTLS12`", + "reference": "Why add this here?" + }, + { + "prediction": "I don't think we need to check for `IsXNullableReturnType` here.", + "reference": "nullability does not apply to headers type (that is always an object)" + }, + { + "prediction": "(style) line over 80 characters", + "reference": "Do we also need to add the iova, or is that done somewhere else?" + }, + { + "prediction": "Why is this change needed?", + "reference": "why change this?" + }, + { + "prediction": "Why is this change needed?", + "reference": "If there is no guarantee that tv_sec is of type `time_t`, IMO you should copy the value instead of enforcing a pointer typecast." + }, + { + "prediction": "I think this should be `if !strings.HasSuffix(opts.DockerfilePath, \"/Dockerfile\") { return fmt.Errorf(\"a valid Dockerfile path is required\")`", + "reference": "Should we validate the suffix before going to the filesystem?" + }, + { + "prediction": "I think this should be `ddev_default` instead of `ddev_default`", + "reference": "It feels like we should be working to reduce/eliminate our global vars. I'm not sure it adds much here. Any objection to just removing it?" + }, + { + "prediction": "I think we should add a `timestamps` column to the table.", + "reference": "did you consider using AR enums for this? would give us all the boolean methods (`weekly?` etc) for free" + }, + { + "prediction": "I think this should be `if not filename: return None`", + "reference": "This may change \"\" into None. Better return filename." + }, + { + "prediction": "I think this should be `bool` instead of `bool`.", + "reference": ":+1: That does resolve my security concerns about this feature." + }, + { + "prediction": "I think we should use `struct.unpack` instead of `struct.unpack`", + "reference": "Could you add a docstring?" + }, + { + "prediction": "Why is this change needed?", + "reference": "Shouldn't this still be `Region()`?" + }, + { + "prediction": "I think this should be `None`.", + "reference": "This shouldn't be here but `self.connected = None` in `__init__` instead, otherwise that'd be an attribute which is set this way in _every_ instance of that class (i.e. a class rather than an instance variable). I'd also say let's make it \"private\" (i.e. `_connected`) and please add a quick note about what it is to the docstring of the class." + }, + { + "prediction": "I think this should be `create_no_window=False`", + "reference": "This would be better served as a method/property that is set when people don't want to a window." + }, + { + "prediction": "Why is this change needed?", + "reference": "I was dubious about putting getNonStreamingMethods in the context, but after some thought, I have decided to embrace the approach. In this particular case, the loop is supposed to be over page streaming methods. So, could you add a getPageStreamingMethods() method in the context, use it here, and remove the isPageStreaming() check below?" + }, + { + "prediction": "I think this should be `tuple(version) >= ('3', '2')`.", + "reference": "LooseVersion class can help here" + }, + { + "prediction": "why is this needed?", + "reference": "`const Dims zeros(shape.size(), 0);`" + }, + { + "prediction": "I think this should be `count.to_i` instead of `count.to_i`", + "reference": "Would be good for this not to say `10` anymore..." + }, + { + "prediction": "`adsense` should be `getDataErrorComponent( 'adsense', _x( 'AdSense', 'Service name', 'google-site-kit' ), error, true, true, true, errorObj)`", + "reference": "See above, we don't need to pass the module name here." + }, + { + "prediction": "Shouldn't this be `GraphQLConfigurator` instead of `GraphQLConfigurator`?", + "reference": "This is random line :-) overridden String type by custom trimmed - please change that commit message to something like \"introduced custom String type with automatic trimming\"" + }, + { + "prediction": "Shouldn't this be `realmConstructor.Sync.setAccessToken = realmConstructor.Sync.setFeatureToken || realmConstructor.Sync.setFeatureToken;`?", + "reference": "My personal taste: \"depreciated\" -> \"deprecated\"" + }, + { + "prediction": "I think this should be `destinationClusterIP` instead of `destinationServiceName`", + "reference": "this includes the port as well right? should the name be `destinationServicePortName`?" + }, + { + "prediction": "I think it's better to use `retry_after_attempt` instead of `stop_after_attempt`", + "reference": "We can import all of them in one line." + }, + { + "prediction": "I think this is a good idea, but I think it would be better to use `Stream.ofAll(queue).appendAll(elements)` instead of `Stream.ofAll(queue).appendAll(elements)`", + "reference": "this was wrong, the rest were just inconsistent :)" + }, + { + "prediction": "I think this should be `id=\"proposals-completed-pr\"`", + "reference": "I gave them the EXACT SAME NAMES in my branch :)" + }, + { + "prediction": "I think this should be `if os.IsNotExist(statErr)` instead of `if os.IsNotExist(statErr)`", + "reference": "What would you think stat'ing the directory first before doing the log+mkdirall and only proceeding if the directory does not exist? The logging might be less confusing (I'd be wondering why it was logging that it was creating the directory when I knew it already existed)." + }, + { + "prediction": "Why is this change needed?", + "reference": "Sorry about the confusion, I'm trying to address that in the PR follow-up. If we ever have `Span` objects, then accessing their properties is going to be safe. The only question remaining is \"What is the runtime type for Scope.Span?\" and we just have to account for it when it is `Datadog.Trace.Span` and when it is not" + }, + { + "prediction": "I think we should use `FileOutputStream` instead of `BufferedWriter`.", + "reference": "I was using this imports for writing the results to file to more easily check that it was valid JSON. You can probably remove these `java.io` imports." + }, + { + "prediction": "I think this should be `logentry` instead of `logentry`", + "reference": "You should probably include a `json:...` annotation here." + }, + { + "prediction": "I think this should be `ecsMaxRuntimeIDLength`", + "reference": "can container ID > 255 chars? why are we doing this check?" + }, + { + "prediction": "Use the new Ruby 1.9 hash syntax.
    Space inside { missing.
    Space inside } missing.
    Space inside } missing.
    Space inside } missing.
    Space inside } missing.
    Space inside } missing.
    Space inside } missing.
    Space inside } missing.
    Space inside } missing.
    Space inside } missing.
    Space inside } missing.
    Space inside } missing.
    Space inside { missing.
    Space inside } missing.
    Space inside } missing.
    Space inside } missing.
    Space inside } missing.
    Space inside } missing.
    Space inside } missing.
    Space inside } missing.
    Space inside } missing.
    Space inside } missing.
    Space inside } missing.
    Space inside } missing.
    Space inside { missing.
    Space inside } missing.
    Space inside } missing.
    Space inside { missing.
    Space inside { missing.
    Space inside } missing.
    Space inside } missing.
    Space inside } missing.
    Space inside { missing.
    Space inside } missing.
    Space inside { missing.<", + "reference": "*\"This **field field** prohibits :other from being present.\"*, **field** word repeated is right?" + }, + { + "prediction": "I think this should be `npl` instead of `npl`", + "reference": "nit: no need to add an alias for this case." + }, + { + "prediction": "I think this should be `var logEnv = \"QUIC_GO_LOG_LEVEL\"`", + "reference": "Or `QUIC_LOG_LEVEL`. Which one do you prefer?" + }, + { + "prediction": "I think this should be `if virtualDiscDesc.CapacityAllocationUnits == nil || *virtualDiscDesc.CapacityAllocationUnits == \"\" {`", + "reference": "Minor: you can set it to byte here and only set it to *virtualDiscDesc.CapacityAllocationUnits if that's not nil/\"\". Saves two lines" + }, + { + "prediction": "I think we should use `self.app.get_json('/buckets/beers')` instead of `self.app.get_json('/buckets/beers')`", + "reference": "While reading this I found that it makes actually little sense for \"beers\" to have a \"fingerprint\". We might want to do another pass on the examples here to use something that actually makes more sense to the reader. This could be done in another issue." + }, + { + "prediction": "Why is this change needed?", + "reference": "Thank you! That's better, especially the conversion test should not test the mkString method :)" + }, + { + "prediction": "Why is this change needed?", + "reference": "You're basically converting client to screen coordinates here, doing it manually. Is there a specific reason why you aren't using clientToScreen here? Does it fail?" + }, + { + "prediction": "I think this should be `if fs.Config.MaxTransferMode == fs.MaxTransferModeCautious && accounting.Stats(ctx).GetBytes() >= int64(fs.Config.MaxTransfer) { return nil, accounting.ErrorMaxTransferLimitReached }`", + "reference": "This needs to be done for server-side copies too, earlier in the function." + }, + { + "prediction": "I think this should be `refresh_token` instead of `email`", + "reference": "Do we want to add in `profile` here as well so we request access to the end user's default profile claims like name?" + }, + { + "prediction": "I think this should be `expect(proposal.individual_approvals).to be_approved`", + "reference": "I am not sure what the difference between approving and full approving is..." + }, + { + "prediction": "why is this change needed?", + "reference": "Please back out the import changes in files you haven't touched. I think these happen if you run goimports without having the vendor directory populated" + }, + { + "prediction": "Why is this change needed? I think it would be better to use `name_s_dv` instead of `dept_ss_dv`", + "reference": "Many tests in this class seem to have just been fortunate that `SolrIndexSearcher` ignored `fl` and retrieved all fields when not using lazy loading." + }, + { + "prediction": "I think this should be `GENEVE` instead of `GENEVE`", + "reference": "Is this really needed?" + }, + { + "prediction": "I think this should be `instance_exec` instead of `instance_exec`", + "reference": "Is this necessary with line 38?" + }, + { + "prediction": "I think this should be `pytest>=3.0` instead of `pytest>=3.1`", + "reference": "DO we want to have >= here? Or ==" + }, + { + "prediction": "Why is this change needed?", + "reference": "Can you also add this `\"version\"` tag to the CoreTags? Now that we're targeting the service/env/version trio" + }, + { + "prediction": "Can you add a test for the invalid VAlue?", + "reference": "This entry will be incompatible with the currently implemented formatting rules. Maximum 120 characters per line." + }, + { + "prediction": "Prefer single-quoted strings when you don't need string interpolation or special symbols.
    Prefer single-quoted strings when you don't need string interpolation or special symbols.
    Prefer single-quoted strings when you don't need string interpolation or special symbols.
    Prefer single-quoted strings when you don't need string interpolation or special symbols.
    Prefer single-quoted strings when you don't need string interpolation or special symbols.", + "reference": "Let's call this color_host_output or some such - preserve_host_output makes it sound like you won't get any output without this being set." + }, + { + "prediction": "`getNodeAttributes` should be `getNodeAttributes` instead of `getNodeAttributes`.", + "reference": "suggestion: if we perhaps make `attributes` a getter in `virtualNode`, it does look seamless to access the property, same as what we have done for `isFocusable` or `tabbableElements`. `node.attributes` can become `virtualNode.attributes`" + }, + { + "prediction": "I think this should be `playedDurationWhenStarted` instead of `playedDurationWhenStarted`", + "reference": "I think a float value fits better." + }, + { + "prediction": "I think we should add `/pss/{topic}/ws` to the `/pss/{topic}/ws` route.", + "reference": "This should be (POST,DELETE) `/pss/subscribe/{topic}` for subscriptions and there should be `/pss/send/{topic}` for sending." + }, + { + "prediction": "I think this should be `this.shouldComponentUpdate = function(_props, _state, _context) { return _context !== context; };`", + "reference": "Closing over the closure arguments is a neat trick :+1: Love it :100:" + }, + { + "prediction": "I think this test should be `assertThrows(new ValidationException(STRUCT, not(equal(\"X\", 7)), true));`", + "reference": "Does this need to be a block or can it be an expression?" + }, + { + "prediction": "I don't think we need to check if `allowedPostRequest(req)` is true.", + "reference": "req.getQueryString() != null is not necessary since same check is already done in allowedPostRequest" + }, + { + "prediction": "I think this should be `isRestOnlyTransport()`.", + "reference": "As per go/actools-regapic-design, in the final product, generated GAPICs must be able to support multiple transports if supported by the API. For Java, we'll support this in the microgenerator; the monolith generates single-transport GAPICs. For PHP, the situation is likely similar, though on a longer timescale. All this to say that I would appreciate structuring the code in terms of \"supports REST\" rather than \"REST only\", but only where this doesn't require undue work. For everything else, please add a TODO to the effect of \"we're generating single-transport GAPICs for now, though in the fullness of time we'll generate multi-transport GAPICs.\"" + }, + { + "prediction": "Why is this change needed?", + "reference": "here is `:seconds` missing again" + }, + { + "prediction": "Line is too long. [89/80]", + "reference": "Changed this helper to also get class name." + }, + { + "prediction": "I think this should be `APPLICATION_NAME_PREFIX` instead of `APPLICATION_NAME_SUFFIX`.", + "reference": "I think there's another spot for this in DefaultCapabilityMatcher" + }, + { + "prediction": "I think this should be `PONY_ACTOR_DEFAULT_BATCH`", + "reference": "Why the rename from PONY_SCHED_BATCH ? ACTOR_DEFAULT_BATCH is less meaningful to me than SCHED_BATCH." + }, + { + "prediction": "I think this should be `100000000000`?", + "reference": "Let's be sure we have an issue that tracks this, filed against testnet." + }, + { + "prediction": "I think this should be `!Buffer.isBuffer(payload)` instead of `!Buffer.isBuffer(payload)`", + "reference": "There should be no space before !Buffer" + }, + { + "prediction": "I think this should be `padding: 0` instead of `padding: 0`", + "reference": "Same here, we need the default padding for this story." + }, + { + "prediction": "I think this should be `listen_count = 0`", + "reference": "I think this should go away, its noise in the grand scheme of things." + }, + { + "prediction": "I think this should be `if repo.IsPrivate { f, _ := os.Create(repo.RepoPath(), `git-daemon-export-ok`)` instead of `if repo.IsPrivate { f, _ := os.Create(daemonExportFile)`", + "reference": "Maybe just call `ioutil.WriteFile` with 0 bytes? And Make an error log `log.Error` if any error occurs." + }, + { + "prediction": "I'm not sure if this is the right place to do this, but I think it would be better to add a `@return {!Builder} a self reference` to the builder.", + "reference": "`this.ieService_` should be initialized to null in the constructor." + }, + { + "prediction": "I think this should be `ChainToWorkloadDispatch` instead of `ChainToWorkloadDispatch`", + "reference": "I just noticed that we use Return here, when we have logically allowed a packet, whereas in the forward chain we use AcceptAction. Do you know why that is?" + }, + { + "prediction": "Why is this change needed?", + "reference": "This is public method , we need to deprecated this method first and add new updated method for it." + }, + { + "prediction": "I think this should be `newNode.NetAddress = \"0.0.0.0:4160\"`", + "reference": "I think that you don't want to have these workarounds; you want to make sure that the relayTemplates is configured correctly. If not, we need to fix it there." + }, + { + "prediction": "I think this should be `config.getEcip1017EraRounds(), protocolSchedule.getEcip1017BlockNumber(), protocolSchedule.getEcip1017BlockNumber(), protocolSchedule.getEcip1017BlockNumber(), protocolSchedule.getEcip1017BlockNumber(), protocolSchedule.getEcip1017BlockNumber(), protocolSchedule.getEcip1017BlockNumber(), protocolSchedule.getEcip1017BlockNumber(), protocolSchedule.getEcip1017BlockNumber(), protocolSchedule.getEcip1017EraRounds(), protocolSchedule.getEcip1017EraRounds(), protocolSchedule.getEcip1017BlockNumber(), protocolSchedule.getEcip1017BlockNumber(), protocolSchedule.getEcip1017BlockNumber(), protocolSchedule.getEcip1017BlockNumber(), protocolSchedule.getEcip1017BlockNumber(), protocolSchedule.getEcip1017BlockNumber(), protocolSchedule.getEcip1017BlockNumber(), protocolSchedule.getEcip1017BlockNumber(), protocolSchedule.getEcip1017BlockNumber(), protocolSchedule.getEcip1017BlockNumber(), protocolSchedule.getEcip1017BlockNumber(), protocolSchedule.getE", + "reference": "This field is not needed." + }, + { + "prediction": "Layout/SpaceInsideHashLiteralBraces: Space inside { missing.
    Layout/SpaceInsideHashLiteralBraces: Space inside } missing.
    Layout/SpaceInsideHashLiteralBraces: Space inside } missing.
    Layout/SpaceInsideHashLiteralBraces: Space inside } missing.
    Layout/SpaceInsideHashLiteralBraces: Space inside } missing.
    Layout/SpaceInsideHashLiteralBraces: Space inside } missing.
    Layout/SpaceInsideHashLiteralBraces: Space missing inside } missing.
    Layout/SpaceInsideHashLiteralBraces: Space inside } missing.
    Layout/SpaceInsideHashLiteralBraces: Space inside } missing.
    Layout/SpaceInsideHashLiteralBraces: Space inside } missing.
    Layout/SpaceInsideHashLiteralBraces: Space inside } missing.
    Layout/SpaceInsideHashLiteralBraces: Space inside } missing.", + "reference": "Put a comma after the last parameter of a multiline method call." + }, + { + "prediction": "I think this should be `github.com/iotexproject/iotex-address/address`", + "reference": "move to line 18 below" + }, + { + "prediction": "I think this should be `s3.ruby.s3_add_csaes_encrypt_item`", + "reference": "Simple Storage **Service**" + }, + { + "prediction": "I don't think we need this test anymore, but I think it would be better to use the `formatter_output.string` instead of `formatter_output.string`", + "reference": "Thats odd, I'd actually not expect this output at all..." + }, + { + "prediction": "I think we should be able to keep the old version in a separate PR. I think we should be able to keep the old version in a separate PR. I think we should keep the old version in a separate PR.", + "reference": "As a side note, I get why this is up here (sort order), but it'd be easier to not forget to update it if it were down next to `1.x` -- would it be acceptable to make that change the next time I make this sort of PR? :smile: :innocent: (don't want to hold this one up since folks are blocked on getting this one in, it's a pretty superficial change, and I probably won't have cycles again for a few days to update the PR with the change :sweat_smile:)" + }, + { + "prediction": "I think this test should be moved to `smartContractConfigWithAccountPermissioningDisabledShouldReturnEmpty`", + "reference": "this class is permissioning so let's keep \"Onchain\" here" + }, + { + "prediction": "I think this should be `AssemblyTitle` instead of `AssemblyTitle`", + "reference": "we can be more specific to call out the it is \"AutoRest C# code generator\"?" + }, + { + "prediction": "I think this should be `this.VirtualNode = VirtualNode;`", + "reference": "Ditto for not adding this to the axe namespace." + }, + { + "prediction": "I think this package should be renamed to `registration`", + "reference": "Should we just remove this file? Having it present but empty feels misleading" + }, + { + "prediction": "I think this should be `logPeerTracker.Infof(\"Trusting peer=%s\", pid.Pretty())` instead of `logPeerTracker.Infof(\"Trusting peer=%s\", pid.Pretty())`", + "reference": "Would it make sense to include an `Untrust` as well? If I were playing around with this on the CLI I wouldn't want to make a change I couldn't undo." + }, + { + "prediction": "I think this should be `getSolrRecordCallback` instead of `getSolrRecordCallback`.", + "reference": "It might be better to call this `$createRecordMethod` since it's not a full PHP callback, just a method name for the plugin manager." + }, + { + "prediction": "I think this should be `use Thelia\\Model\\Currency;`", + "reference": "remove this line" + }, + { + "prediction": "I think this should be `@var MainMenuItem[]` instead of `@var MainMenuItem[]`", + "reference": "I've never seen this syntax before, it's still just an array, the difference is that it's an array of MainMenuItems instead of an array of arrays." + }, + { + "prediction": "I think this should be `str_case_prefix(name, \"API-MS-Win-Core-Appinit-L1-1\") || str_case_prefix(name, \"API-MS-Win-Core-Kernel32-private-L1-1\") || str_case_prefix(name, \"API-MS-Win-Core-Kernel32-private-L1-1\") || str_case_prefix(name, \"API-MS-Win-", + "reference": "nit: to match the others: s/private/Private/" + }, + { + "prediction": "Why is this change needed?", + "reference": "Maybe just IEnumerable? Not sure myself." + }, + { + "prediction": "why is this change needed?", + "reference": "do we need this change?" + }, + { + "prediction": "I think we should move the mappings to the global account if it's not the global account.", + "reference": "Would want @matthiashanel to have a look since if I recall he had to add the shallowCopy() to fix some bugs during reload. That being said, since I believe the $G account cannot referenced in configurations, this should not be a problem, but Matthias has looked at this in more details in the past." + }, + { + "prediction": "I think this should be `volumeStatusOK` instead of `volumeStatusOK`", + "reference": "The descriptions are incorrect" + }, + { + "prediction": "I think we should use `/se/cdp/` instead of `/se/cdp/`", + "reference": "if we are returning the `ws` here when passing in `se:cdp` we can just return it straight or do we have to make a request to get the `ws` address?" + }, + { + "prediction": "`replace=True` should be `True` instead of `replace=True`", + "reference": "Please only indent this by four spaces." + }, + { + "prediction": "I think this should be `bdghjlmnpqrstvwxyz0123456789`", + "reference": "What's the reason behind these characters?" + }, + { + "prediction": "I think we should use `expect(cart.approver_approvals).to be.any?` instead of `expect(approval.api_token.expires_at).to be > Time.now`.", + "reference": "Minor: The name of this specs seems a little off now" + }, + { + "prediction": "I don't think this is a good idea, but I'm not sure if this is the right thing to do, but I'm not sure if this is the right thing to do.", + "reference": "I'd suggest using `ast_error_continue` here to get the `apply` message in the `Info` part of the error report." + }, + { + "prediction": "Why not just `@var array`?", + "reference": "If we decide to change the name of the .ini setting, we might also want to review the naming of this property and related code. Maybe a simple `getOptions` or `getSettings` would be more concise than `getTabDetailConfig`. At very least, I don't think we need Tab in the method name since the method belongs to a helper with \"Tabs\" in the name." + }, + { + "prediction": "I think this should be `isListResource(msg.GetGroup() == \"user\")`", + "reference": "Use const for \"user\", same as below" + }, + { + "prediction": "I think this should be `setUnsubscribed(0)` instead of `setUnsubscribed(0)`", + "reference": "->setUnsubscribed(false) would be better :)" + }, + { + "prediction": "I don't think we need this, but I think it would be better to use `fetch('sports.name')` instead of `fetch('sports.name')`", + "reference": "I now think singular `Sport` is better, but I will wait for the first round of feedback before updating." + }, + { + "prediction": "I think this should be `self.timestamp`?", + "reference": "Don't you need = something ?" + }, + { + "prediction": "I think this is a bit confusing, but I think it would be better to use `const uint32_t queue_family_index = GetPhysicalDeviceState()->queue_family_properties[queue_family_index];` instead of `const uint32_t queue_family_index = GetPhysicalDeviceState()->queue_family_properties[queue_family_index];` instead of `const uint32_t queue_family_index = GetPhysicalDeviceState()->queue_family_index; const uint32_t queue_family_index = GetPhysicalDeviceState()->queue_family_properties[queue_family_index];`", + "reference": "Looks like this could be `const` (I realize it wasn't like that before)?" + }, + { + "prediction": "Why is this change needed?", + "reference": "Maybe just `FAILED`. We can't be sure loading was the thing that failed." + }, + { + "prediction": "Why is this needed?", + "reference": "You have replaced single quotes with double ones, this fails linting and our current coding style. Please fix this, otherwise it's a whopping of 1200 LoC while in reality it should be rather small." + }, + { + "prediction": "I think this should be `PREF_QUEUE_ADD_TO_FRONT` or `PREF_QUEUE_ADD_TO_FRONT`.", + "reference": "@danieloeh @TomHennen. Some of these files are using spaces, the others use tabs. Is there a project wide preference? I personally like spaces, because they are consistent across editors" + }, + { + "prediction": "I think this should be `@counter` instead of `@counter`", + "reference": "I guess this is ok for backwards-compatibility? Maybe it'd be better to check arity in the helpers? Or just call it out in the release notes, because there are at least a couple projects on github that overrode `initialize`.." + }, + { + "prediction": "Why is this change needed?", + "reference": "At some point, we would like to get rid of these custom injections as well. Looks Ok for now." + }, + { + "prediction": "I think this should be `DD_TRACE_HEADER_TAG_NORMALIZATION_ENABLED` instead of `DD_TRACE_HEADER_TAG_NORMALIZATION_FIX_ENABLED`", + "reference": "nit: Not a fan of \"fix\" in the name, but don't have a better suggestion " + }, + { + "prediction": "I think this should be `self.tab_url(idx)` instead of `self.tab_url(idx).scheme()`", + "reference": "Since we're calling `self.tab_url(idx)` a third time here already, can you please add a `url = self.tab_url(idx)` somewhere above (e.g. after all the `fields[...] = ...` assignments) and change the calls here to `url.host()` etc.?" + }, + { + "prediction": "I don't think we need to import constants here.", + "reference": "alphasort this import" + }, + { + "prediction": "I think this should be `cout<`", + "reference": "We call it Kind2 and move out of the `javaslang/control` package into the `javaslang`package. Maybe I will later generate Kind1..Kindn but that's another story." + }, + { + "prediction": "I think we should use `swarm.ChunkSize` instead of `swarm.ChunkSize`", + "reference": "i think it might be nicer to have a message like: `database capacity: %d chunks (%d bytes, %d megabytes)`. counting in bytes is so 90s :)" + }, + { + "prediction": "I think this should be `azkaban.rm.job.link` or `azkaban.jhs.job.link`.", + "reference": "The '.' in the key names are used to separate namespaces, NOT to separate words. How about azkaban.external_resources.resource_manager? ---- Why is it better than using the full name in the variable name e.g. RESOURCE_MANAGER_LINK ?" + }, + { + "prediction": "Why is this change needed?", + "reference": "This seems to be duplicated with line 19?" + }, + { + "prediction": "I think this should be `wx/xlocale.h` instead of `wx/xlocale.h`.", + "reference": "This is wrong. xlocale.h is needed on OSX and maybe elsewhere too. This needs a test in configure to see if xlocale.h and uselocale() are available and an #if test here. Also, the NO_PER_THREAD_LOCALE stuff in configure.ac needs to be updated to include test for uselocale()." + }, + { + "prediction": "I think we should remove the `AWS SDK for Java v2` keywords here.", + "reference": "AWS Identity and Access Management (IAM)" + }, + { + "prediction": "I don't think we need to check for audio mime type here.", + "reference": "Why did you have multiple function calls here instead of having one long array of supported mimeTypes? In line with your PR here, I think we might eventually see inline videos or inline pdf. It would be great to generalize this a bit." + }, + { + "prediction": "I think this should be `NumericType` instead of `NumericType`.", + "reference": "nit: shall we keep alphabetical order?" + }, + { + "prediction": "I think we should use `objects.typeForConstructor(this[keys.realm], type)` instead of `objects.typeForConstructor`", + "reference": "We could just move the check for function into `typeForConstruction` to make this a one liner every time we need to do this." + }, + { + "prediction": "I think this test should be done in a separate PR.", + "reference": "A correct by unrelated change. We'll slide this one in without another word ;)" + }, + { + "prediction": "I think this should be `Caffe::SetDevice(param_.device_id());`", + "reference": "I feel that a slightly safer way is to do if (param_.has_device_id()) { Caffe::SetDevice(param_.device_id()); } just in case a user has hard-coded a device id outside the solver and does not specify the device id in the solver param. Currently, if nothing is set, the solver will always use the 0th device, which might not be desired." + }, + { + "prediction": "I think this test should be done in a separate PR.", + "reference": "let's replace this example with something that won't fail in Python. Like \"for+if+print\"" + }, + { + "prediction": "`precision` is not a `str` object, but it's not a `str` object. I think it would be better to use `str` instead of `float` here.", + "reference": "Please remove the brackets and use `string_type` from `compat.py` module instead of `str` in `isinstance()`." + }, + { + "prediction": "Why is this change needed?", + "reference": "line is 143 characters (from `lll`)" + }, + { + "prediction": "I think this should be `setupLog.Error(err, \"failed to parse record\", \"record\", record.Id)`", + "reference": "It should follow a `continue`." + }, + { + "prediction": "I don't think we need this, but I think it's a good idea to add a `working_dir` property to the `services` dict.", + "reference": "Should this be DBWorkingDir?" + }, + { + "prediction": "Why is this change needed?", + "reference": "I think you can remove the whole line." + }, + { + "prediction": "I think this should be `db`", + "reference": "File is not `goimports`-ed (from `goimports`)" + }, + { + "prediction": "I think this should be `RESULT_LABEL_IN_PROGRESS` and `RESULT_LABEL_DELETE_IN_PROGRESS`", + "reference": "Not a big deal, but what is the value of adding this status condition for a failure to delete a client? It has some value for a dataverse admin, to know that the last attempt to harvest from a certain server resulted in a failure. Is it really useful to know that an attempt to delete a client failed? - should the startup check simply remove the \"delete in progress\" flag quietly instead? After all, seeing how the client is still there makes it somewhat clear that the attempt to get rid of it didn't work out, so they should try again? I may be missing some situation where it could actually be useful - so I'm open to hearing it." + }, + { + "prediction": "Why not use `MetricsConfig.forTable(table)` instead of `MetricsConfig.fromProperties`?", + "reference": "Can we also update the equality delete branch below?" + }, + { + "prediction": "I think this should be `self.instance.all_logs(self.run_id, of_type=DagsterEventType.STEP_SKIPPED)` instead of `self.instance.all_logs(self.run_id, of_type=DagsterEventType.STEP_SKIPPED)`", + "reference": "This doesn't solve the entire problem we talked abut yesterday, right? Because it's possible that the step itself didn't skip, but rather that it chose not to yield the output in question?" + }, + { + "prediction": "I don't think we need to import datetime here.", + "reference": "I also do not see any usages of this import. Is this a fix for a crash?" + }, + { + "prediction": "This will update the dependencies for awsvpc network mode before the task is started.", + "reference": "Feels like this needs to be invoked in `PostUnmarshalTask` since that's where most of the task setup happens." + }, + { + "prediction": "I don't think we need to coalesce here.", + "reference": "I wonder what would happen if the granteeName becomes DB__ROOT but the granteeID is not DB__ROOT ID (33333) but something else." + }, + { + "prediction": "I think this should be `cFlags := append(cFlags, os.Getenv(\"CFLAGS\") ...)`", + "reference": "Feel like this should probably come into this tool as a flag rather than it just grabbing an env var internally?" + }, + { + "prediction": "Why is this change needed?", + "reference": "This should only be sent if the driver is speaking to a W3C conformant remote, so we need an if-condition check like we have in the Python bindings." + }, + { + "prediction": "I don't think we need to change this to `dashboards.show.contact_your_mentor`.", + "reference": "Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping." + }, + { + "prediction": "I think this test should be moved to `generate_ancestors_for_org` and `generate_ancestors_for_folder` and `generate_ancestors_for_folder`", + "reference": "nit: folders are always a numeric ID, projects as given by CAI use project number for ancestry" + }, + { + "prediction": "I think this should be `errors.New(\"bad network\")` instead of `errors.New(\"bad network\")`", + "reference": "is this used anywhere?" + }, + { + "prediction": "Why is this removed?", + "reference": "change pkg_errors to errors. Keep it consistent across all the files." + }, + { + "prediction": "I think this should be `--review-status` instead of `--review-status`", + "reference": "I don't see any test cases which would test that fix dates are set properly on review status changes / storage events. For this reason please create some more test cases and also check my scenarios above." + }, + { + "prediction": "I think this should be `client.Exceptions.Add((CompositeType)method.DefaultResponse);`", + "reference": "This belongs to SwaggerModeler.cs `public override ServiceClient Build()`" + }, + { + "prediction": "I think this option should be `@type {number|number[]|string|string[]|Function}`.", + "reference": "We could go further and directly give the tips of the `columns` property for someone (like me) who would like to specify some column width and let the others be autosized." + }, + { + "prediction": "I think this should be `static_cast(m_renderPass_dependencies.size() + m_renderPass_dependencies.size());`", + "reference": "I think a `std::copy` with `std::back_inserter` will get this done in one call." + }, + { + "prediction": "I think we should add a TODO for this.", + "reference": "In the future: s/QUIC 36/Version36/ to make grepping easier" + }, + { + "prediction": "I think we should use `ev.target.checked` instead of `ev.target.value`", + "reference": "This is an example of why I prefer a flexible custom `render()` solution 'on'/'off' may not be the right value for every application. You have to make a lot of decisions even for very simple form fields :(" + }, + { + "prediction": "Why is this removed?", + "reference": "we should also skip the e2e flow aggregator tests if the Flow Exporter feature is disabled." + }, + { + "prediction": "Why do we need to observe scripts here?", + "reference": "We should initialize the observation in the constructor of the Script class - otherwise, we don't have this feature for mitmdump." + }, + { + "prediction": "I don't think we need to change the type of `None` here, since `type(None)` is the type of `None` here.", + "reference": "I would remove this line. Otherwise looks fine cc @ueshin" + }, + { + "prediction": "Why is this change needed?", + "reference": "Would it be better to remove that line alltogether if it not directly relevant?" + }, + { + "prediction": "I don't think this is necessary anymore.", + "reference": "Does \"FPU\" here include XMM/YMM/ZMM SIMD and not just x87 FPU/MMX?" + }, + { + "prediction": "Why is this change needed?", + "reference": "I'm not sure if we need to store path as bytes, and then decode/escape it when printing or just store it as a unicode string (as done here.)" + }, + { + "prediction": "Why is this change needed?", + "reference": "Why is this flipped? Looks unrelated and our pattern is `expected == returned`." + }, + { + "prediction": "I don't think we need to check if `workshop.online?` is true, but I think we should check if `workshop.in_person` is true.", + "reference": "Can the `h5` tags be pulled outside of the `if` block?" + }, + { + "prediction": "Shouldn't this be `UploadedFileDirectoryStructureCreator`?", + "reference": "From @PetrHeinz review: this should be also aliased (`ImageDirectoryStructureCreator`)" + }, + { + "prediction": "I think we should use `deepcopy` here, since it's a copy of `s.AWSCluster.Spec.AdditionalTags`", + "reference": "Isn't AdditionalTags already of `Tags` type? If not, we should make it so, if it's not a breaking change" + }, + { + "prediction": "This file is not used anymore.", + "reference": "Add blank line below license header." + }, + { + "prediction": "I think this should be `initPWMClocks` instead of `initUARTClock`", + "reference": "Perhaps this could be moved into `InitPWM`? I suspect not initializing the clocks will reduce power consumption." + }, + { + "prediction": "I think this should be `has_many: true` instead of `has_many: false`.", + "reference": "I believe this `order` isn't tested." + }, + { + "prediction": "I think this should be `//clumsy-stefan: what's this for?", + "reference": "No idea why it ended up in the code. You can remove the entire line." + }, + { + "prediction": "I think this should be `*n.toAntreaPeerForCRD(ingressRule.From, cnp, controlplane.DirectionIn, namedPortExists)`", + "reference": "\"i\" and \"From\" is a bit duplicate, and should it be singular given the method name? I mean \"fromPeer\" or just \"from\"?" + }, + { + "prediction": "I think this should be `scope(\"openid\")` instead of `scope(\"openid\")`.", + "reference": "Did you verify this isn't going to break any existing test assumptions? We probably shouldn't modify this as we don't know what impact this is having on existing tests. It may invalidate a test that has different expectations of the scopes." + }, + { + "prediction": "I think we should check if `claims.Namespaces` is not nil?", + "reference": "technically not necessary since reading from a nil dictionary will always return found = false, so this should already be handled" + }, + { + "prediction": "I think this should be `RelaxedReclaimPurgeTrigger`", + "reference": "This can return bool. RelaxedReclaimPurge(nodeID string) (bool, error)" + }, + { + "prediction": "I think this test should be `London` instead of `London`", + "reference": "Is there something we can do to make this automatic? At the very least, can we add Shanghai, Cancun, etc. here now so that we don't forget them?" + }, + { + "prediction": "I think this should be `required=True` instead of `default=False`.", + "reference": "For boolean values, I'd rather have `argparse.SUPPRESS` as default value. No need to have a `(default: False)` in the help if it's a toggle." + }, + { + "prediction": "I think this should be `fetcher.AddSourceBlocks(calcGenBlk)` instead of `fetcher.AddSourceBlocks(calcGenBlk)`", + "reference": "The genesis block needs to exist in the store the fetcher pulls from, this is because the fetcher will stop fetching when it finds a block it has seen before and this can sometimes be the genesis block." + }, + { + "prediction": "I think this should be `0600` too.", + "reference": "should we do the same for os.Mkdir(criuOpts.WorkDirectory, 0755)?" + }, + { + "prediction": "I don't think we need to change this to `Google/g`", + "reference": "@bbondy Two messages because the label and description differ very slightly in their wording..." + }, + { + "prediction": "I don't think this is necessary.", + "reference": "\"currently\" implies it should and will be changed: so TODO i#?" + }, + { + "prediction": "I think we should use `Ember.computed('i18n', () => t('imaging.pageTitle'));` instead of `Ember.computed('i18n', () => t('imaging.pageTitle'));`", + "reference": "This should be `computed('i18n.locale'....`" + }, + { + "prediction": "I think this test should be moved to the `CommitFlag::BackToLifeTest` class.", + "reference": "Wait, does this not work if we do `btl.reload`? That seems odd that we have to have the object in the same state." + }, + { + "prediction": "Why is this removed?", + "reference": "I seem to recall this being the cause of a bug at some point." + }, + { + "prediction": "I don't think we need to set the visibility of the settings menu.", + "reference": "Can you remove it from the menu instead of setting it hidden? Or are there any other trouble?" + }, + { + "prediction": "Why is this needed?", + "reference": "And for \"execution \"." + }, + { + "prediction": "I think this should be `type_files = \"#{mod.path}/types\"` instead of `type_files`", + "reference": "Do agents usually download these from puppetserver when applying a catalog?" + }, + { + "prediction": "I think this should be `ev->flags & ASIO_DISPOSABLE`", + "reference": "This should be `return (ev->flags == ASIO_DISPOSABLE);` because `ASIO_DISPOSABLE` has a value of `0` as defined in the enum in `asio.h` and because when `ev->flags` is assigned `ASIO_DISPOSABLE` it is assigned as `ev->flags = ASIO_DISPOSABLE` unsetting any other flags previously assigned." + }, + { + "prediction": "Shouldn't this be `PeriodicExportingMetricReaderOptions.ExportIntervalMilliseconds = options.DefaultCollectionPeriodMilliseconds;`?", + "reference": "this is not required, right? its the default already..." + }, + { + "prediction": "I think this should be `2812` instead of `2813`.", + "reference": "\"contingent to\" -> \"contingent on\"" + }, + { + "prediction": "I think this should be `DataError` instead of `GroupByError`.", + "reference": "Does pandas throw an exception like this?" + }, + { + "prediction": "I think this should be `state_data_(dev_data)` instead of `state_data_(state_data)`", + "reference": "The point of the exercise has been to eliminate CoreChecks as an object dependency for DescriptorSet et. al." + }, + { + "prediction": "Why is this needed?", + "reference": "Why do we need to make so much more of this ScanContext public?" + }, + { + "prediction": "Why did you remove this?", + "reference": "is choice_name not needed anymore?" + }, + { + "prediction": "I think this should be `validateProperties(schema)` instead of `validateProperties`", + "reference": "Is this the right place to do the validation? If a user adds a bad property or performs some schema update that causes a validation error, that would break all writes to the table. To me, it doesn't seem like we are catching the problem early enough and possibly allowing a typo to break scheduled jobs. What do you think about adding this validation when altering the table? `UpdateProperties` could check whether any properties starting with `write.metadata.metrics` were modified and run this. Similarly, `UpdateSchema` could run this as well, although I think that we should probably modify `UpdateSchema` to simply update the properties for column renames (if that's easily done)." + }, + { + "prediction": "I think it would be better to use `std::find(g_hip_visible_devices.begin(), g_hip_visible_devices.end(), (i - 1))` instead of `std::find(g_hip_visible_devices.end(), (i - 1))`", + "reference": "Why is this necessary? Just in order to get an indexed loop?" + }, + { + "prediction": "I think this should be `zpoolListRequestRejectCounter` instead of `zpoolListRequestRejectCounter`.", + "reference": "instead of using `prometheus.Gauge`, using `promethus.Counter` will be better." + }, + { + "prediction": "Do we need this?", + "reference": "maybe we should have a unit test for this and then just test one case in `spec/services/ncr/approval_manager_spec.rb` ?" + }, + { + "prediction": "I don't think we need to use `@token` here.", + "reference": "Why is this necessary?" + }, + { + "prediction": "Why is this change needed?", + "reference": "Minor: If this is going to be public, we should fix the name. `get` doesn't add any value. How about `distributionModeFor` instead?" + }, + { + "prediction": "I think this should be `self.window = window` instead of `self.window`", + "reference": "This needs a more self-explaining name. Maybe `.is_focused`?" + }, + { + "prediction": "I think this should be `azurereport` or `azurereport`", + "reference": "minor: I'd add a space between `,` & `'paginggroup'`." + }, + { + "prediction": "`--reupload` should be `--reupload` instead of `--reupload`.", + "reference": "\"Re-upload all fragments (even if fragment is already in registry)\"" + }, + { + "prediction": "I think this should be `partial_response_strategy` instead of `partial_response_strategy`", + "reference": "I don't see us ignoring the field. Are we sure Prometheus wouldn't refuse to load the rules?" + }, + { + "prediction": "I think this should be `if (!mSession.hasDisplay() && !mSession.hasDisplay()) {`", + "reference": "I wonder if we can just check if the mSession is active and then only call `setActive(true)` and `callSurfaceChanged()` if it isn't?" + }, + { + "prediction": "I think this should be `EXE_MEMORY_FOR_UNPACK_ROWS_IN_MB`.", + "reference": "A default value of 100 MB maybe too small. I understand that this is good for mixed workloads, but do consider than plans with Unpack, especially when used for insert/upsert are simple. Unpack is always serial and part of master exe. Often there is only one in a query. The cost of having a low value here seems to be that queue length from unpack could be limited by this when we are loading a table with wide rows (even if actual data in row is not wide). We know from performance runs that queue length is critical to upsert load performance. This is a hunch on my part and could be misguided. It will be good to performance test for upsert of table with wide rows, if you think that is worthwhile." + }, + { + "prediction": "Why is this change needed?", + "reference": "think we should pass in ctx, and use ctx.GreenlandHeight inside bucketPool to determine if create or not" + }, + { + "prediction": "I think this test should be done in a separate PR.", + "reference": "A correct by unrelated change. We'll slide this one in without another word ;)" + }, + { + "prediction": "I think we should remove the `semantic_errors` field from the form.", + "reference": "Why remove this?" + }, + { + "prediction": "Why is this needed?", + "reference": "I still see some usages of not namespaced variants (look for Twig_ in project, about 42 matches). Is it intentional?" + }, + { + "prediction": "I think this should be `specs-go` instead of `specs-api`", + "reference": "Is this a new dependency? Does this require a dep update?" + }, + { + "prediction": "I think this should be `if (opts.generate_hexfloat_in_json && (type.base_type == BASE_TYPE_FLOAT || type.base_type == BASE_TYPE_DOUBLE))`", + "reference": "> opts.generate_hexfloat_in_json && **IsFloat**(type.base_type)" + }, + { + "prediction": "I think this should be `AppName` instead of `AppName`", + "reference": "As an alternative to this, we could also create a new method, like `Common() *AppManifest` This way we don't have to add a new method to the interface everytime we add a new field to the `AppManifest`. This is a nit though so it's up to you." + }, + { + "prediction": "I think this should be `harparser`", + "reference": "As long as we have this feature as an inline script, I'm inclined to remove the dependency here. I'd suggest that we just try to import harparser and pytz and throw an error instructing the user to install the dependencies (catch for `ImportError`). In the long term, we probably want to include that in the mitmproxy core, but we first want to introduce a clean extension interface before that's going to happen. As soon as said interface is there, porting the inline script and adding the dependency again should be a breeze." + }, + { + "prediction": "I think this should be `require('rechoir').prepare(require('interpret').extensions, './.gulp/gulpfile.iced');`", + "reference": "makes it work nice with vscode. all logic is now in `.gulp/*.iced` files" + }, + { + "prediction": "Why is this change needed?", + "reference": "should a similar change be done for findElement?" + }, + { + "prediction": "Why is this change needed?", + "reference": "`+` -> ` + ` I guess. Same below" + }, + { + "prediction": "I think this should be `this.remainderOut = opts.remainderOut || false;`", + "reference": "`typeof` is not a function - its an operator, and the standard way to use it is as `typeof foo !== ...` (i.e. no parenthesis). Also, I would personally use `opts.fee != null` instead (with a non-strict comparison, which also identifies `undefined` values because `null == undefined`)." + }, + { + "prediction": "Line is too long. [89/80]", + "reference": "Is there a reason why you're not using Rspec `skip`? It allows to specify message and makes it clearly visible in test results which tests were skipped." + }, + { + "prediction": "I think this should be `*metav1.Time` or `*metav1.Time`", + "reference": "how about \"all matching SyncSets and SelectorSyncSets\"" + }, + { + "prediction": "Why is this change needed?", + "reference": "What is the logic behind `ReadVectorSize` reading `CountElement64`, then skipping `T` (in this case `unsigned`)? Naming doesn't cover what's actually happening here. Ideally I'd also take this through a `files` layer, any input as to how?" + }, + { + "prediction": "I don't think we need to import javax.servlet.ServletException here.", + "reference": "This looks like an unused import to me?" + }, + { + "prediction": "Why is this change needed?", + "reference": "`RW` means read/write. Why do we have it here, as part of a func name?" + }, + { + "prediction": "I think this should be `LOG.finest(String.format(\"Connecting to %s and %s\", publishConnection, subscribeConnection));`", + "reference": "I'd keep this at `info` level..." + }, + { + "prediction": "I think this should be `h2o_buffer_try_reserve(&conn->_write.buf, SERVER_PREFACE.len);` instead of `h2o_buffer_try_reserve(&conn->_write.buf, SERVER_PREFACE.len);`", + "reference": "I think you missed this." + }, + { + "prediction": "I think this should be `#if NETCOREAPP2_1` instead of `#if NETCOREAPP2_2`", + "reference": "List all of the current TFMs so we know if this gets outdated. E.g. this breaks if we add 2.2." + }, + { + "prediction": "I think this should be `if vol.GetXattr() >= 0 {`", + "reference": "here, you want to use req.GetXattrOpt() referring to the in line 514 of api.proto. This will be nil if not provided. See the example above on line 801 on this file" + }, + { + "prediction": "I think this should be `if (UserPreferences.repeatEpisode() && !wasSkipped) { nextMedia = callback.getNextInQueue(currentMedia); } else { nextMedia = callback.getNextInQueue(currentMedia); }`", + "reference": "I think this should be done outside LocalPSMP, but in `getNextInQueue`. The reason is that I want to reduce the dependence of the media players on the preferences and database. Also, it will then probably work on Chromecast." + }, + { + "prediction": "Why is this change needed?", + "reference": "Please remove it or remove all `std::` namespace prefixes." + }, + { + "prediction": "This file is not part of go-algorand.", + "reference": "wait! I'm confused - is that an empty file ?!" + }, + { + "prediction": "I don't think we need to change this to `findUpVirtual` and `findUpVirtual`", + "reference": "These should all call `findUpVirtual`." + }, + { + "prediction": "I think this should be `mime_type = mimetypes.guess_type(file_dict[\"path\"])[0] or \"application/octet-stream\"`", + "reference": "This changes the behavior. Original behavior was \"set if not set\", while new is \"just set\"." + }, + { + "prediction": "Why is this change needed?", + "reference": "Let's keep using the regular expression to make sure that the token is well-formed. I think the regular expression should be altered instead of doing a substring." + }, + { + "prediction": "Why is this change needed?", + "reference": "All the operations are delegated to this entity, hence the rename. `back` can have too many meanings." + }, + { + "prediction": "I think this should be `if skip_msg.nil?` instead of `unless skip_msg.nil?`", + "reference": "@trevor-vaughan it looks like the spec failures are caused by the fact that although it was a great idea to put the guard clause here first & get the error case out of the way, the main code path has been erased when I assume it should be just below the guard clause." + }, + { + "prediction": "Why is this needed?", + "reference": "Could you delete this constant?" + }, + { + "prediction": "I think this should be `using BenchmarkDotNet.Disassemblers;` instead of `using BenchmarkDotNet.Disassemblers;`", + "reference": "looks like this snuck in from your other change?" + }, + { + "prediction": "I don't think we should be using the `NCR_NCR_BA61_TIER1_BUDGET_MAILBOX` env variable.", + "reference": "These env vars are not set in any CF environment, on purpose, because we are moving away from using env vars to store role-based information and instead using the database. So in a CF environment, the wrong emails get used (the defaults, rather than what is in the db)." + }, + { + "prediction": "I think this should be `template`", + "reference": "this partial is used also for previewing a template, did you test if still works?" + }, + { + "prediction": "I don't think we need this prompt, but I think it would be better to use `appInitAppTypePrompt` instead of `appInitAppTypePrompt`", + "reference": "Would it be better to put like `Which Dockerfile would you like to use for %s?`" + }, + { + "prediction": "I think we should use `api.html#query_Query-setOptions` instead of `api.html#query_Query-setOptions`", + "reference": "You mistakenly removed `/docs` here, please add it" + }, + { + "prediction": "I think it would be better to return a `List` instead of a `List` instead of a `List`", + "reference": "I missed this earlier, but why does this say \"file blocks\"? This should probably be \"recommended split locations\"." + }, + { + "prediction": "Why is this change needed?", + "reference": "Please change this to non-exported." + }, + { + "prediction": "(style) line over 80 characters", + "reference": "This is ignoring compatibility: it needs to check the size to ensure this field exists in the client." + }, + { + "prediction": "I think this should be `if (certificate.getPreparePayloads().size() < minimumPrepareMessages) {`", + "reference": "Do all the prepare authors also need to be unique? Or is it enough the we have minimumPrepareMessages. I guess I'm wondering if need a hasDuplicateAuthors check like in the RoundChangeCertificateValidator." + }, + { + "prediction": "I think this should be `stdlib.Format` and `stdlib.Regex`", + "reference": "we had some situations where we merged some promql bits then took them out. i'm not sure what's going on here, but unless your code actually needs promql (probably not?) let's remove this line." + }, + { + "prediction": "Why is this change needed?", + "reference": "Annotations in this hunk should follow PhpDoc style (above the occurrence, type first)" + }, + { + "prediction": "I think this should be `UnsupportedOperationException` instead of `UnsupportedOperationException`.", + "reference": "This is an improvement - thanks! Could we rephrase slightly to not use the phrase \"is not supported\" -- instead stating _WHAT_ isn't valid please? e.g. maybe `String.format(\"Unsupported BoundType provided: %s\" type)` or something like that." + }, + { + "prediction": "I think this should be `*os.File` instead of `*os.File`.", + "reference": "nit: `procfd` seems more appropriate now?" + }, + { + "prediction": "I think this should be `django_auth_header`", + "reference": "Let's not call it django. Maybe `auth_provider_headers`? `auth_headers`?" + }, + { + "prediction": "Why is this change needed?", + "reference": "Should we mention TLS map here?" + }, + { + "prediction": "I don't think we need to add the `ClanMemberRank` class to the `PlayerIndicatorsConfig` class.", + "reference": "remove this empty line pl0x" + }, + { + "prediction": "Do we need to send notifications for approvers?", + "reference": "Why not have this in the `Dispatcher`? Doesn't seem like NCR-specific functionality." + }, + { + "prediction": "I think this should be `stages.MockSentry` instead of `stages.MockSentry`.", + "reference": "If you need only test db, use `memdb.NewTestDB(t)`" + }, + { + "prediction": "Why is this change needed?", + "reference": "I'm not sure I like setting the IsEmpty property true for upgraded connections since it feels a middle misleading. Maybe we can leave the ForUpgrade class as is and change this condition to `if (!messageBody.IsEmpty && !messageBody.RequestUpgrade)` to make things more explicit." + }, + { + "prediction": "Line is too long. [89/80]", + "reference": "git checkout since this is unrelated to this PR? (running migrations also changes this for me -- not sure why it keeps going back and forth" + }, + { + "prediction": "Why is this changed?", + "reference": "Is this change needed?" + }, + { + "prediction": "I think this should be `if (tmpInt >= 0 && tmpInt < 128) {`", + "reference": "Isn't the % 128 redundant here?" + }, + { + "prediction": "I think this should be `loopdev` instead of `ramdisk`", + "reference": "Are you testing that the values are always false? I think you should test for setting values to true or false, right? Who is going to take action with these values?" + }, + { + "prediction": "I think this should be `batch_queue_mpi` instead of `batch_queue_mpi`.", + "reference": "Please change MPI to CCTOOLS_WITH_MPI" + }, + { + "prediction": "I don't think this is needed anymore.", + "reference": "Why you can't use function here?" + }, + { + "prediction": "This file is not used anymore.", + "reference": "We should scope this down to only the methods we use." + }, + { + "prediction": "Why is this change needed?", + "reference": "Oh, thanks for catching - I thought I've catched all after changing `mkString(infix, prefix, suffix)` to `mkString(prefix, infix, suffix)`." + }, + { + "prediction": "I think this should be `approved` or `denied`.", + "reference": "Suggestion: `.. the CertificateRequest is ready for signing` - could we perhaps word this differently? I understand that in this case it will be the associated X.509 certificate that can now be signed, so maybe `the certificate is ready for signing` ? (Same with `CertificateRequestReasonDenied`)." + }, + { + "prediction": "I think this should be `if (!accountID) { return null; }`", + "reference": "We should use `! isValidAccountID( accountID )` for the `accountID` checks." + }, + { + "prediction": "I don't think we need this.", + "reference": "That alternative does seem better. Did you want to try to do it in this PR? It makes sense to me that the inventory would always be available before creating the executor." + }, + { + "prediction": "I think this should be `apt-get install -y puppet-common`", + "reference": "Missing the `-y` argument which all other `apt-get install` commands have." + }, + { + "prediction": "I think we should use `PRIu32` instead of `PRIu32` here.", + "reference": "So I think we are going to settle on the \"concise and elegant\" `PRI` macros as they are the safest option for now. Even though they make my eyes bleed a little..." + }, + { + "prediction": "Why is this change needed?", + "reference": "Interesting, was this needed for a test case to pass? I figured if there is no opening brace, there is definitely no placeholder -- we don't even have to check for a closing one." + }, + { + "prediction": "Why is this change needed?", + "reference": "I think we want to provide getAction API instead" + }, + { + "prediction": "Why is this removed?", + "reference": "There is also `winVersion.isWin10`. I think this should be converted to use the helper function. The helper has a note that it doesn't work in source copies, but looking at the implementation it looks equivalent to what you have here." + }, + { + "prediction": "I think this should be `fail_fast = false` instead of `fail_fast = true`", + "reference": "This doesn't seem like it should be part of this pull request." + }, + { + "prediction": "I think this should be `@offering = Product.find(params[:id])` instead of `@viewable_subscription = ViewableSubscription.new(current_user, subscription_product)`", + "reference": "Is the idea that `@product` (and `@workshop` for `workshops_controller`) would eventually go away here?" + }, + { + "prediction": "I think this should be `bscMainnetPreverifiedHeight`", + "reference": "We should add those only once we have successfully synced to the BSC main net, we have a utility to generate those. Please remove for now" + }, + { + "prediction": "Why is this change needed? I think it would be better to use `config_instance.set_env_from_file('file-not-found', 'file-not-found')` instead of `config_instance.set_env_from_file('file-not-found', 'file-not-found')`", + "reference": "And how is that related?" + }, + { + "prediction": "I think this should be `BoolT(c.BoolT(FlagConnectionEnableAlias))` instead of `BoolT(FlagConnectionEnableAlias)`", + "reference": "this should be required" + }, + { + "prediction": "I think this should be `javax.validation.constraints.Null`", + "reference": "This appears to be unused" + }, + { + "prediction": "I think this should be `current.parentId() != null`", + "reference": "I think that \"table's state\" isn't clear enough. How about \"history of the table's current snapshot\" like the one below?" + }, + { + "prediction": "I think this should be `instr_is_scatter` and `instr_is_gather`", + "reference": "This looks like a bug: pretty sure there are scatter-gather instructions on AArch64. Ditto below." + }, + { + "prediction": "Why is this change needed?", + "reference": "No need to change this: id love if we changed as a team to unkeyed fields, it ends up catching a lot more at compile time, at minimal cost" + }, + { + "prediction": "I think this should be `appName` or `appName`?", + "reference": "Should this be in the parent struct? `AppManifest` since it's embedded to `LBFargateManifest` it'll get the method as well." + }, + { + "prediction": "I think this should be `net/textproto`", + "reference": "\"Openvpn check\" we could move this to separate prefix." + }, + { + "prediction": "I think this should be `if body and method != 'POST':`", + "reference": "body is being used here for the first time without every being populated. This will error. To run tests do `./go clean test_py` and that will run the Firefox tests" + }, + { + "prediction": "Why did you remove this?", + "reference": "We don't return now?" + }, + { + "prediction": "Line is too long. [92/80]", + "reference": "This might end up not doing exactly what we want (the retry only picks up the `go get`, not the `go build`, due to the `&&`)." + }, + { + "prediction": "Is this change needed?", + "reference": "Is there a BOM change?" + }, + { + "prediction": "Why is this removed?", + "reference": "It's not a good practise to delete the public static constant." + }, + { + "prediction": "Why is this change needed?", + "reference": "I deleted this because `WellFormed` is immediately called by `verify.TxnPool` below. Can someone please double check this for me since it's... pretty important" + }, + { + "prediction": "I think this should be `<3.12` and not `<3.12`.", + "reference": "Did you actually test this with ply 3.4? That release is pretty old (2011), so I think we can bump this to at least 3.6 (2015) or even 3.10 (2017)..." + }, + { + "prediction": "I think this should be `if *instance.Spec.MaintenanceMode != nil && *instance.Spec.MaintenanceMode != nil && *instance.Spec.MaintenanceMode != nil && *instance.Spec.MaintenanceMode != nil && *instance.Spec.MaintenanceMode != nil && *instance.Spec.MaintenanceMode != nil { hLog.Warn(\"maintenanceMode enabled in HiveConfig, setting hive-controllers replicas to 0\")`", + "reference": "This can be simplified somewhat to `pointer.Int32Ptr(0)`. But it is not necessary." + }, + { + "prediction": "Why is this change needed?", + "reference": "Clever but perhaps confusing." + }, + { + "prediction": "I think this should be `deleteSyncSetSecretReferences(ssi, dynamicClient, ssiLog)` instead of `deleteSyncSetSecretReferences(ssi, dynamicClient, ssiLog)`", + "reference": "@abutcher Is it a safe assumption that secrets are the only objects that need to get attached to syncsets?" + }, + { + "prediction": "I think this should be `sseq > o.asflr`", + "reference": "Should you capture o.asflr before releasing consumer's lock?" + }, + { + "prediction": "I think this should be `engineTools.isEmpty()`.", + "reference": "Just asking: Should this happen, that null is passed? If this is the case I think we should think about passing an `Optional` object to the method." + }, + { + "prediction": "Do we need this method?", + "reference": "what about making a `ProfilesController` or `UserProfilesController` and having this be a `show` action instead? That would be more Railsy (although that can be considered a compliment or a dis, depending on who you are :hamburger: )" + }, + { + "prediction": "I think this should be `if (device_data->enabled_features.core == NULL) {`", + "reference": "I'd move the empty assignment and non-null case into the if check directly above (adding an else clause as needed)" + }, + { + "prediction": "I think this should be `[Lang::get('system::lang.locale.ar'), 'flag-sa']`", + "reference": "Please remove this extra line of whitespace" + }, + { + "prediction": "Why not just `p.id > :lastProcessedId`?", + "reference": "maybe it's time to rename `ProductSearchExportWithFilter` to something better, what do you think?" + }, + { + "prediction": "I think this should be `appendNameOnlyAttribute(capabilities, attributePrefix+capabilityFirelensFluentd)`", + "reference": "Instead of adding new code here - can you move these methods to agent_capability.go, so the same is used for unix and windows as well. this will need removal of these methods from agent_capability_unix.go as well." + }, + { + "prediction": "`hash` is a bit confusing, but I think it would be better to use `None` instead of `None` here.", + "reference": "Make it the last parameter, just in case someone uses the API with non-keyword args." + }, + { + "prediction": "Metrics/LineLength: Line is too long. [98/80]", + "reference": "Don't extend an instance initialized by `Struct.new`." + }, + { + "prediction": "I think this should be `PMIX_LIST_FOREACH_SAFE(nm, nm_next, &t->nslist, &nm->super);`", + "reference": "Just wondering - would it make more sense to simply replace `PMIX_DESTRUCT(&t->nslist)` with `PMIX_LIST_DESTRUCT(&t->nslist)` here, and then add `PMIX_RELEASE(p->jobbkt)` to the `pmix_nspace_caddy_t` destructor on line 154 of src/include/pmix_globals.c? Seems to me like we always want to have these things removed/destructed." + }, + { + "prediction": "I think this test should be moved to the parent class, not to the parent class.", + "reference": "I think, we should fix/improve AbstractRuleSetFactoryTest. I guess, both apex and visualforce rules are now tested, which is unnecessary." + }, + { + "prediction": "Shouldn't this be `array_values()`?", + "reference": "In php8 named parameters were introduced and now it is required to match called method parameter name when setting parameters by array destructing or `call_user_func_array()` etc." + }, + { + "prediction": "I think we should use `java.util.reflect.Field` instead of `java.util.reflect.Field`.", + "reference": "easily possible to get that information without exposing internal information" + }, + { + "prediction": "Line is too long. [89/80]", + "reference": "Why do we need tristate logic (pe, foss, nil)?" + }, + { + "prediction": "Why is this needed?", + "reference": "this change needs to be reverted to what is on `master`" + }, + { + "prediction": "I think this should be `var variableInMap = (this.getVariable(name) != null);`", + "reference": "Do you still need to call the superclass `createVariable` if you've already determined that the variable exists?" + }, + { + "prediction": "I think this should be `finalizedIndex` instead of `finalizedIndex`.", + "reference": "Ignoring the pack entry from an existing entry but using the new entry from a non-finalized index, is subtle enough that it needs explaining." + }, + { + "prediction": "I don't think we need to do this, but I think it would be better to use `std::next(instants, std::min(spellId, instants.size()));` instead of `std::next(instants, std::min(spellId, instants.size()));`", + "reference": "This is a revert, is it really an issue?" + }, + { + "prediction": "Why is this needed?", + "reference": "can we delete this file altogether?" + }, + { + "prediction": "I think this should be `panic(err)` instead of `panic`", + "reference": "Suggestion: log some additional info here so we know where we are i.e 'Failed to prepare coverage framework..'" + }, + { + "prediction": "I think this should be `public const string Language = \"dotnet\";`", + "reference": "There didn't seem to be any good place to put constants that are .NET Tracer-specific, so I created this internal static class. If there's a better place, let me know." + }, + { + "prediction": "I think this should be `constants.DefaultUpdateDeviceStatusBuffer` instead of `constants.DefaultUpdateDeviceStatusBuffer`", + "reference": "Log message should be started with upper-case word." + }, + { + "prediction": "Why is this change needed?", + "reference": "changes for example usage in this class" + }, + { + "prediction": "I think we should use `!./emby-collapse` instead of `!./emby-collapse`", + "reference": "I know frameworks that support current directory when loading dependencies, is this a limitation of the requirejs loader or can we fix it somehow?" + }, + { + "prediction": "I think this should be `EnableApplicationRequest` instead of `EnableApplicationResponse`.", + "reference": "`ctx` is unused in EnableApplication" + }, + { + "prediction": "I think this should be `stringtab(\"\")`.", + "reference": "@jemc , this is one change needed in `generate_multi_dot_name`. I believe this * will do no harm to working pony code: The new code was added in a place where it is throwing an assert. So no working code will get affected. * is in sync with the rest of the method: if the parent ast node has null `data`, we are supposed to return empty string. That is possible when we have expressions wrapped in braces." + }, + { + "prediction": "I don't think we need to add this to the `QueryElevationParams.ONLY_ELEVATED_REPRESENTATIVE`.", + "reference": "Should not be a static import." + }, + { + "prediction": "Why is this change needed?", + "reference": "should we be using `aws.String` here? it seems there are a few other spots we could use `aws.String` in the `if change.Attachment != nil { ...` block." + }, + { + "prediction": "I don't think we need to do this, but I think it's a good idea to add a `_u.date00` and `_u.date01` to the `getServiceReportURL` function.", + "reference": "We can't pass raw dates like this because they need to be formatted as `YYYYMMDD` as noted in the IB. We added the `generateDateRangeArgs` utilities to handle this for us, as well as abstracting the relationship between arg name and specific dates which is not obvious just by looking at it. Let's update it to use `generateDateRangeArgs( { startDate, endDate } )` instead Use care to make sure we're sourcing the utility from Analytics utils though since AdSense has its own version by the same name, which is different." + }, + { + "prediction": "Shouldn't this be `save_data_required`?", + "reference": "`default=True` shouldn't be used for BoolParameters iirc." + }, + { + "prediction": "I think this should be `strings.HasPrefix(refStr, \"refs/heads/\")` instead of `strings.TrimPrefix(refStr, \"refs/heads/\")`", + "reference": "It would be better to use `return refStr[12:]`. or `11`... I have problem with counting.." + }, + { + "prediction": "Why is this removed?", + "reference": "Pretty sure these should only contribute to the runtime hash." + }, + { + "prediction": "I think we should remove the `ncr` and `gsa18f` as well.", + "reference": "Just verifying: this change doesn't break the 18f layout, right?" + }, + { + "prediction": "why remove this?", + "reference": "we should keep this counter using the \"isYarpcError\" api" + }, + { + "prediction": "Why is this change needed?", + "reference": "Could we just use case insensitive strings as keys instead of creating a new map implementation? e.g. simply using a treemap with a comparator `Map idToPos = new TreeMap<>(String.CASE_INSENSITIVE_ORDER);` could work I think" + }, + { + "prediction": "I think this should be `GetSlot(string name, out RuntimeContextSlot expectedSlot)` instead of `GetSlot(string name, out RuntimeContextSlot expectedSlot)`", + "reference": "I think this should be a throw. Or the method should be TryGetSlot?" + }, + { + "prediction": "Shouldn't this be `std::cout << \"[Error - LuaScriptInterface::luaGameLoadMap] Failed to load map: \"", + "reference": "We don't usually put spaces between ( and [, and I think `path` should be passed by reference." + }, + { + "prediction": "Why not use `sold` here?", + "reference": "Make sure to `snake_case` locally scoped variable names in the future" + }, + { + "prediction": "I think this should be `healthcheckPath`", + "reference": "Maybe we should use underscores like `health_check` - what do you think?" + }, + { + "prediction": "I think this should be `v.req.Header.Get(string(v1alpha1.StorageClassKey))`", + "reference": "Do a TrimSpace before setting." + }, + { + "prediction": "I think this should be `SubnetGatewayIPV4Address` instead of `SubnetGatewayIPV4Address`", + "reference": "Are the fields in this struct grouped by IP address family or by function? There are separate fields for IPv4Addresses and IPv6Addresses, but a single field for DomainNameServers. Should this new field be named SubnetGatewayAddress with type array consisting of both IPv4 and IPv6 gateways?" + }, + { + "prediction": "I think we should use `find_by(id: link.id).first` instead of `find_by(id: link.id).first`", + "reference": ".find(id) is being deprecated to Rails 5." + }, + { + "prediction": "I think this should be `from iris.experimental.equalise_cubes import equalise_attributes`", + "reference": "Will be good to have the iris interface moved to geoviews. Could this be done for 1.10.6?" + }, + { + "prediction": "I think this should be `err := utils.SignHTTPRequest(request, cs.AgentConfig.AWSRegion, ServiceName, cs.CredentialProvider, nil)`", + "reference": "does this get wrapped in the calling method?" + }, + { + "prediction": "This test should not test case-insensivity, only the successful group authorization.", + "reference": "Do we still need this test case? If your new test cases test this, then we can remove it." + }, + { + "prediction": "Layout/EmptyLinesAroundMethodBody: Extra empty line detected at method body end.", + "reference": "If you want to express \"any role that is not creator\" you could use the following statement: Role.where(plan: self).where(Role.not_creator_condition).any? which would be less verbose and a bit more efficient if it is used for Yes/No shared?" + }, + { + "prediction": "Why is this removed?", + "reference": "Do we need any update on the test side?" + }, + { + "prediction": "I think this should be `cancelBlockPrefetch` instead of `cancelBlockPrefetch`.", + "reference": "There's a few `return nil` cases above this -- we should probably move this above the big switch." + }, + { + "prediction": "I think this should be a `string` instead of a `string`", + "reference": "`lile *LeaseInLedgerError` to reduce copying?" + }, + { + "prediction": "Is there a reason to use `GetNewSessionQueueSize` instead of `GetSessionQueue`?", + "reference": "should it be `newsessionqueue` or `newsessionqueuer`? In case we'd like to be consistent" + }, + { + "prediction": "Why is this change needed?", + "reference": "We don't have a requirement anywhere in Test Platform for GetStream() with write access. It is ok to directly change `return new FileStream(filePath, mode, FileAccess.Read)`." + }, + { + "prediction": "I don't think we need to import `qutebrowser.browser.hints` here.", + "reference": "FWIW `from qutebrowser.browser import hints` is okay - it's just things like `from qutebrowser.browser.hints import HintManager` I try to avoid." + }, + { + "prediction": "I think this should be `neve-tansparent-header` instead of `neve-tansparent-header`", + "reference": "@preda-bogdan let's use a filter for the header classes, something like, hfg_header_classes where we hook this logic, in neve pro" + }, + { + "prediction": "Why is this changed?", + "reference": "Out of curiosity.. is there a rule to determine the package name as prevDirectory+currentDirectory." + }, + { + "prediction": "I think we should use `get_xmm_caller_saved` instead of `get_ymm_caller_saved`.", + "reference": "It seems this needs to check the lazy cxt switching flag. It is used on the initial thread for early injection and in other places where the lazy switch should apply." + }, + { + "prediction": "I don't think we need to change this, but I think it would be better to use `@link https://support.google.com/analytics/answer/7372977` instead of `@link https://support.google.com/analytics/answer/7372977`", + "reference": "Why not use the JSdoc annotation as it did before?" + }, + { + "prediction": "I think it would be better to use `ProductPropertiesUtil.getProductVersion()` instead of `ProductPropertiesUtil.getProductVersion()`.", + "reference": "Why don't we drop the packageImplementationVersion in general? That way the version will be fetch all that time only from the properties file and it will be consistent." + }, + { + "prediction": "I think this should be `std::vector union_fields;`", + "reference": "Please use the style of the rest of the code, a space between the type and `*`" + }, + { + "prediction": "Why is this change needed?", + "reference": "nit: remove extra blank lines." + }, + { + "prediction": "This should be `copilot-task-group-name` or `copilot-task-group-name`", + "reference": "nit: What do you think of `copilot-task-group`?" + }, + { + "prediction": "I think this is a bit confusing, but I don't think we need to check for `input` or `change` here.", + "reference": "We should check whether or not the input node has a value since we can just have an onChange on an uncontrolled component as well." + }, + { + "prediction": "I think this should be `(2019, 3, 0)` instead of `(2019, 3, 0)`", + "reference": "I think there should be some reasoning below this line about the version updating." + }, + { + "prediction": "I think this should be `compress_hint_to_enum` instead of `compress_hint_to_enum`.", + "reference": "Please use `h2o_lcstris` instead of `strncasecmp` so that the comparison would be a complete match (instead of a prefix match; current code would yield true if [val,len] is [\"O\", 1]) and that it would be locale-independent." + }, + { + "prediction": "I don't think we need to do this.", + "reference": "I prefer if possible for `if`/`else` statements to have the positive case first." + }, + { + "prediction": "I think this should be `issubclass(x, t)`", + "reference": "Docstring would be nice" + }, + { + "prediction": "I think this should be `CatchBlockLogException` instead of `CatchBlockLogException`.", + "reference": "Low risk to fix this by default because existing baseline consumers pass this check. We don't attempt to fix checks that have been opted out of." + }, + { + "prediction": "I think this is a bit confusing, but I'm not sure if this is the right thing to do. I'm not sure if this is the right thing to do, but I'm not sure if this is the right thing to do, but I'm not sure if this is the right thing to do.", + "reference": "What about `VOLTA72`, `TURING75`, `AMPERE80` and `AMPERE86`? We only want to set the number of teams for these two architectures or for all the architectures newer than Maxwell?" + }, + { + "prediction": "I think this should be `torchvision://resnet50`", + "reference": "Since we have specified `load_from`, `pretrained` can be left None." + }, + { + "prediction": "I think this should be `if len(args) > 3 { return nil, c.ArgErr()`", + "reference": "I prefer to translate these `else if` into `switch` for more readability." + }, + { + "prediction": "I think this should be `@exercise ||= Exercise.find_by!(uuid: params[:exercise_uuid])` instead of `@exercise ||= Exercise.find_by!(uuid: params[:exercise_uuid])`", + "reference": "This can also be a local variable in `create`." + }, + { + "prediction": "I think this should be `if repo.IsPrivate { f, err := os.Create(daemonExportFile) if err == nil { f.Close() } }`", + "reference": "Why not use `path.Join`?" + }, + { + "prediction": "I think this should be `global.googlesitekit.api = API;`", + "reference": "Why not `export default API` instead? This ensures we export the same that we export on the global." + }, + { + "prediction": "Why is this change needed?", + "reference": "This is a good change I think. It greatly helps reduce name conflicts." + }, + { + "prediction": "I think this should be `Placement`", + "reference": "cluster not having omitempty, does this imply that cluster is required? seems empty is valid so just checking" + }, + { + "prediction": "I think this should be `c.Environment = make(map[string]string, len(secrets))`", + "reference": "@aws/aws-ecs-agent, @yumex93: how concerned should we be about user provided envvar names clobbering existing envvars? i'm not convinced we should be doing additional validation here." + }, + { + "prediction": "I think this should be `aspects = new Set(aspects);`", + "reference": "nit: aspects are defined in `OperationBase`, should `defineAspects` live there as well?" + }, + { + "prediction": "I think this should be moved to the `PermissionBase` class.", + "reference": "Why the `os.path.abspath`? `os.path.dirname` should always give a valid directory path." + }, + { + "prediction": "I think this should be `getWineEnginesPath()`.", + "reference": "I think we should not consider special engine types on this level. I would prefer to build the specific engine path based on `application.user.engines` later on." + }, + { + "prediction": "I think this should be `if (it.endBound_.rel_ != RelationType::kEQRel) { break; }`", + "reference": "Is `rbegin` correct? We can't make sure that the last index column is the `rbegin` of `scanItems`." + }, + { + "prediction": "I think this should be `setChainID(cfg.Chain.ID)` instead of `setChainID(cfg.Chain.ID)`", + "reference": "check it is != 0, just like `EVMNetworkID` above" + }, + { + "prediction": "I think this should be `nameof(BatchExportProcessor)` instead of `nameof(BatchExportProcessor)`.", + "reference": "if you just do \"this.GetType().Name\" and \"this.exporter.GetType().Name\", we get what we need." + }, + { + "prediction": "Why is this needed?", + "reference": "That's the code that would prevent any SalesforceSDKTest from running. At class loading time, SalesforceSDKManager.getInstance() would throw a RuntimeException because init() had never been called." + }, + { + "prediction": "I think this should be `DEFAULT_REVISION`", + "reference": "there is no \"DEFAULT_REVISION\" logic, no need to define this." + }, + { + "prediction": "I think this should be `loginOptions.setJwt(jwt);` and `loginOptions.setUrl(url);`", + "reference": "so this is to fix a scenario where the app is first launched normally, then background and foreground through the link, we are not updating loginOption" + }, + { + "prediction": "This should be `this.focusElement_('noteTextViewer');`", + "reference": "It doesn't seem like the right way to implement this, because you add a new element that doesn't really exist (noteTextViewer). Instead you should modify the command handler `if (command.name === 'focusElement' && command.target === 'noteBody') {` in NoteText.jsx. Then focus either the editor or the viewer depending on what's currently visible." + }, + { + "prediction": "I don't think we need to do this, but I think it would be better to use `java.util.Set` instead of `java.util.Set`.", + "reference": "We don't add blank lines in imports." + }, + { + "prediction": "I think this is a good idea to remove the `#Copyright (C) 2012-2019 Rui Batista, NV Access Limited, Noelia Ruiz Mart\u00ednez, Joseph Lee, Babbage B.V`.", + "reference": "Please add your name to the copyright list." + }, + { + "prediction": "I think this should be `request_id_escaped` instead of `request_id_escaped`", + "reference": "You can elide the `if` check for empty string, because if it's not a value that is set, the string will be empty anyway." + }, + { + "prediction": "I think this label should be `push-notification.messages-sent-serie-name`", + "reference": "Different i18n keys. By mistake or on purpose?" + }, + { + "prediction": "I think this should be `RetryForever` instead of `Ignore`.", + "reference": "Given the description for this is `// Describes how the ACME challenge self check behaves when it fails.`, perhaps `RetryForever` is better terminology here as when the check fails, we don't just wait, we retry periodically." + }, + { + "prediction": "I don't think this is needed.", + "reference": "Nit: let's add a more descriptive prefix in line with the other ones? E.g. `Unable to import key` ?" + }, + { + "prediction": "I think this should be `Dir[\".vagrant/**/private_key\"]` instead of `Dir[\".vagrant/**/private_key\"]`", + "reference": "This looks like it will pass an array as `:key` in the default case. That doesn't reflect how this will actually work in practice." + }, + { + "prediction": "I think this should be `public static void Main() { }`", + "reference": "Do we need this?" + }, + { + "prediction": "I think this should be `b.Match.Priority` instead of `b.Match.Priority`", + "reference": "I am a bit confused about this function. If it is used to set priority, we actually use function \"Table.BuildFlow(priority uint16)\" to set the value. If it is used to parse the priority value, I think adding a property(if you don't want to consume Match.Priority directly) to cache it and consume that property should be simpler than using string regex." + }, + { + "prediction": "I think this should be `err` instead of `err`", + "reference": "In this case we probably meant \"package\"." + }, + { + "prediction": "I think we should use `fs.mkdirSync` instead of `fs.mkdirSync`.", + "reference": "Just export `createFile` directly." + }, + { + "prediction": "I think this should be `go_buildid_replacer` and not `go_buildid_replacer`", + "reference": "This probably needs to get shipped with plz; you shouldn't have to redefine it within the user's repo. It should use `defaultPath` like the other things up the top of the file." + }, + { + "prediction": "why is this change needed?", + "reference": "interface for bitcoin should not change if possible. i.e: networks.testnet should return networks['btc'].testnet" + }, + { + "prediction": "I think this should be `io.IO`", + "reference": "File is not `gofmt`-ed with `-s` (from `gofmt`)" + }, + { + "prediction": "(style) line over 80 characters", + "reference": "We have this functions in a couple of places. It should probably live in util or something." + }, + { + "prediction": "Do we need to set `_target.new_record` here?", + "reference": "maybe this should be inside the destroy?" + }, + { + "prediction": "why not use `torch._shape_as_tensor(img)[2:]` here?", + "reference": "Do not import torch in the test function because it will import torch every test iteration and will slow down the testing speed." + }, + { + "prediction": "I think this should be `klog.Error(\"Instance does not have an instance id\")` instead of `klog.Error(\"Instance does not have an instance id\")`", + "reference": "I think we want to return an error here, not nil." + }, + { + "prediction": "Why is this change needed?", + "reference": "Nitpicking, but I think it would be more accurate to use an actually supported value, i.e. `completed`." + }, + { + "prediction": "I think this should be `@response = JSON.parse(ApiJob.new(@project.id, params[:page])).get)`", + "reference": "How about renaming the `ApiJob` class to `JobApi`. As per rails convention, get method is to get a single object, not a collection, can we change that to `fetch`/`where`. It would be great if we can move the `get` method to a class method." + }, + { + "prediction": "Why is this change needed?", + "reference": "assignments should only be cuddled with other assignments (from `wsl`)" + }, + { + "prediction": "I think this should be `GetAll` and `PutHash`", + "reference": "`k` is unused in PutHash" + }, + { + "prediction": "Why is this change needed?", + "reference": "None of the child return null here, plus it was creating an incoherence between interfaces." + }, + { + "prediction": "I think it would be better to use `--ponynoscale` instead of `--ponynoscale`.", + "reference": "Should we remove this entirely now then?" + }, + { + "prediction": "I think this should be `address.AddressMonitor`", + "reference": "That is way too generic a name." + }, + { + "prediction": "I think this should be `it('should allow overwrote ids', function() { var node = fixture.querySelector('[data-testelm=\"1\"]');`", + "reference": "This might be overkill for test code...but as stewards of accessibility it would be appropriate to have a label in the fixture." + }, + { + "prediction": "I think this test should be `VK_COMMAND_BUFFER_USAGE_ONE_TIME_SUBMIT_BIT` instead of `VK_COMMAND_BUFFER_USAGE_ONE_TIME_SUBMIT_BIT`", + "reference": "Are these allocations necessary, or can these be instantiated normally (i.e., `VkCommandBufferObj secondary_full_clear(...)`). If the allocations _are_ necessar, I'd vote for using something like `std::unique_ptr` and then remove the associated `delete`s." + }, + { + "prediction": "I think this should be `es.asyncSpanConsumer().resetIndexToServiceSpansCache();`", + "reference": "es.clear should call this" + }, + { + "prediction": "I think this test should be `assertTrue(isinstance(TP(), TPTTest))` and not `assertFalse(isinstance(TP(), TPTTest))`", + "reference": "please remove. this is true by the definition of the Python language" + }, + { + "prediction": "I think this should be `select-follow-t` instead of `select-follow`", + "reference": "Hmm, I wonder if binding `` is a good idea... this means it wouldn't be passed to webpages anymore, which makes me wonder how many people rely on that... I guess trying it is the only way to find out :wink:" + }, + { + "prediction": "I don't think we need to change the protocol here.", + "reference": "Golang naming convention is to use camel case `icmpPktWithTypeCode` Often the linter will complain" + }, + { + "prediction": "Shouldn't this be `RequestBodyTimeoutGracePeriod`?", + "reference": "nit: Probably should renamed to `InitializeBody`" + }, + { + "prediction": "I think we should be able to use `this.get('settings.icon')` instead of `this.get('settings.icon')`", + "reference": "is `settings.icon` always null/undefined when there's no icon or does is it get set to a blank string? It might be worth wrapping it in an `isBlank()` anyway" + }, + { + "prediction": "Why is this needed?", + "reference": "put invoke to the end of the list, and other module at beginning of the list (line 86)" + }, + { + "prediction": "I think this should be `db.capacity*swarm.ChunkSize*9.5367431640625e-7`", + "reference": "I think that bytes is too precise. Can we just calculate the approximate value in appropriate units? Something like MB, GB depending on the value, `db capacity: 5000000 chunks (approximately 20GB)` ." + }, + { + "prediction": "I think it would be better to use `text.trim()` instead of `text.trim()`", + "reference": "This check shouldn't look at the content, you're already doing this with `none-empty-text`. I also think this check should be renamed to `none-empty-alt` or something like it. There is nothing specific to applets in this check to warrant putting `applet` in the check ID." + }, + { + "prediction": "Why not use `unset($options[\"tax_engine\"]);` instead of `unset($options[\"tax_engine\"]);`?", + "reference": "Why did you change the signature of this method ? You can break BC doing that" + }, + { + "prediction": "I think this should be `if !cfg.NoFlannel { template += configCNIToml`", + "reference": "can you catch the error here please and return err if it can't read the template" + }, + { + "prediction": "I don't think we need to update the library here.", + "reference": "Is this method called at another location too? I'm just asking because you didn't remove another call to `updateLibrary`" + }, + { + "prediction": "I don't think we need to check if `@object.published` is true.", + "reference": "Not necessary but you should be able to add a `?` on `is_default?` and `published?`" + }, + { + "prediction": "Why is this change needed?", + "reference": "here is us decoding directly the bytebuffer in benchmarks" + }, + { + "prediction": "I think this should be `SetDefaultValues` instead of `SetDefaultValues`", + "reference": "When the Tracer is first created AND `DD_LOGS_INJECTION=true`, this is invoked and causes the issues described." + }, + { + "prediction": "Why is this change needed?", + "reference": "NIT: If we are renaming the JsonRpcError, should we also rename this enum value to be consistent?" + }, + { + "prediction": "I think this should be `Vectorized` instead of `Vectorized`", + "reference": "This could be made into a function expression, yes?" + }, + { + "prediction": "I think this should be `std::cerr << \"Assertion (\" << check_expr << \") failed \" << std::endl << \"Assertion (\" << check_expr << \") failed \" << std::cerr << \"Assertion (\" << check_expr << \") failed\" << std::endl << \"Assertion (\" << check_expr << \") failed\" << std::endl << \"Assertion (\" << check_expr << \") failed\" << std::endl << std::endl << std::endl << std::cerr << \"Assertion (\" << check_expr << \") failed \" << std::endl << std::endl << std::endl << \"Assertion (\" << check_expr << std::endl << std::endl << \"Assertion (\" << check_expr << std::endl << std::endl << std::cerr << \"Assertion (\" << check_expr << std::endl << std::endl << std::endl << std::endl << std::endl << std::endl << std::endl << std::endl << std::endl << std::endl << std::endl << std::endl << std::endl << std::end", + "reference": "Oops, I missed this initially." + }, + { + "prediction": "Why is this needed? I think it would be better to use `testutil.create_lambda_function` instead of `testutil.create_lambda_function`.", + "reference": "Can we add an assertion here the policy actually contains both statements created above?" + }, + { + "prediction": "I think this should be `rocksdb_bottommost_compression_per_level`", + "reference": "a space after comma?" + }, + { + "prediction": "I think it would be better to use `isLocalSpan(node.value())` instead of `isLocalSpan(node.value())`", + "reference": "nit formatting here and below" + }, + { + "prediction": "Why is this change needed?", + "reference": "I think that there is a general consensus of trying to avoid this kind of mocks in the new tests that we write. I would suggest to have tests using fake service implementations. In this case, we can have a fake entry service. Examples of how tests have been written this way are the tests for the `spire-server agent` and `spire-server bundle` commands. It would be great if we can have that kind of testing here also. What do you think?" + }, + { + "prediction": "Why is this change needed?", + "reference": "`ctx` is unused in RunQuery" + }, + { + "prediction": "I think this should be `report_type` instead of `report_type`.", + "reference": "Couldn't we use type hints to express this?" + }, + { + "prediction": "I don't think we need to change the `i` class to `.material-icons`", + "reference": "why you do `.classList.add()` here but `.replace()` in other places?" + }, + { + "prediction": "I think this should be `sleep 10` instead of `sleep 10`", + "reference": "What is this sleep here for?" + }, + { + "prediction": "I think we should be able to test the height of the first row, not just the first row.", + "reference": "I think that this test doesn't cover this bug correctly. When I attached the older version of the handsontable to this test it passes, should fail. Can you check that?" + }, + { + "prediction": "I think this should be `map[MetadataRevision]map[string]bool`", + "reference": "Maybe this should just be passed in on construction time" + }, + { + "prediction": "I think this should be called `wlr_backend_destroy` instead of `wlr_drm_backend_monitor_create`.", + "reference": "We should create the monitor after the `if (!primary_drm)` check." + }, + { + "prediction": "I think this should be `TabData._initializing` instead of `TabData._initializing`.", + "reference": "Can be removed now that slots are used" + }, + { + "prediction": "I think this should be `must_respond_with:unauthorized`", + "reference": "The description should match the test" + }, + { + "prediction": "Why is this removed?", + "reference": "rootston needs to unset this now" + }, + { + "prediction": "Why do we need this?", + "reference": "why do you rename this function?" + }, + { + "prediction": "Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
    Prefer single-quoted strings when you don't need string interpolation or special symbols.
    Prefer single-quoted strings when you don't need string interpolation or special symbols.
    Prefer single-quoted strings when you don't need string interpolation or special symbols.
    Prefer single-quoted strings when you don't need string interpolation or special symbols.", + "reference": "since we are no longer using these numbered icons can we remove them from source control?" + }, + { + "prediction": "Shouldn't this be `RestProducerInvocation.setAfterCreateInvocationHandler(invocation -> context.put(RestConst.REST_INVOCATION_CONTEXT, invocation));`?", + "reference": "both edge and normal need to set this, so set it to be default action?" + }, + { + "prediction": "I think this should be `if (!File.Exists(projectJsonPath)) { File.WriteAllText(projectJsonPath, projectJson); }`", + "reference": "Is doing a straight string compare of the files the right way to determine this? I guess if you expect to be the only one writing this file it could work but it does seem like it might be a large string compare and if we are doing this hundreds of times that might cause some memory issues." + }, + { + "prediction": "I think this should be `if (!system(buf)) {}`", + "reference": "What's the purpose of this change? It basically changes nothing until we want to put smth between curly braces" + }, + { + "prediction": "I think this should be `if (dev->type == WLR_INPUT_DEVICE_TABLET_TOOL)` instead of `if (dev->type == WLR_INPUT_DEVICE_TABLET_TOOL)`", + "reference": "Hmm, why is this needed? `wlr_input_device_destroy` should destroy the tablet tool." + }, + { + "prediction": "I think this should be `ImmutableList.of()` instead of `ImmutableList.of()`", + "reference": "I think it's better to throw `UnsupportedOperationException`" + }, + { + "prediction": "I think this should be `props.value.includes(child.props.value) && props.value.includes(child.props.value) && props.value.includes(child.props.value) && props.value.includes(child.props.value) && props.value.includes(child.props.value) && props.value.includes(child.props.value) && props.value.includes(child.props.value) && props.value.includes(child.props.value)", + "reference": "`props.children` is not always guaranteed to be an array. When only one child is passed this will break. We can use `toChildArray()` to turn it into an array :tada:" + }, + { + "prediction": "I think this should be `--mode=release` instead of `--mode=release`.", + "reference": "Please just remove this line. We have the git history if we want the old version." + }, + { + "prediction": "I think this should be `boolean.valueOf(processEngineConfiguration.getEnvScriptResolvers().stream().anyMatch(resolver -> resolver.getClass().getSimpleName().equals(\"SpinScriptEnvResolver\"));`", + "reference": "Can we put some of the code on a new line to make it more readable. The max line length was 120 now, right?" + }, + { + "prediction": "I think this should be `watch` instead of `watch`", + "reference": "Remove the handling here as well." + }, + { + "prediction": "Why is this 50000 needed?", + "reference": "Do we want to make this configurable?" + }, + { + "prediction": "I think it would be better to use `StringUtils.isPositive(argName, message)` instead of `StringUtils.isPositive(argName, message)`", + "reference": "Prefer adding a second `positive(String, double)` that delegates down to this three-param version. Using `null` in code is generally Not A Great Idea, and it looks ugly." + }, + { + "prediction": "Line is too long. [92/80]", + "reference": "Is this going to break things for 18F proposals, or will these fields just be ignored?" + }, + { + "prediction": "I don't think we need to change this to `Keys#COMMAND`.", + "reference": "Keys.COMMAND seems to be an alias to Keys.META. That isn't mentioned?" + }, + { + "prediction": "I think this should be `CACertificate[]byte` or `CAPrivateKey[]byte`", + "reference": "What's the reason for moving this to config from status?" + }, + { + "prediction": "Why is this change needed?", + "reference": "Shouldn't we re validate/update the in memory suppress data here?" + }, + { + "prediction": "Why is this change needed?", + "reference": "curious why the renumbering is required here and elsewhere?" + }, + { + "prediction": "I think we should add `aws.CredentialsAssumeRole != nil` to the error message.", + "reference": "s/must specify secrets/must specify secrets or Role info/" + }, + { + "prediction": "I think this should be `if Rails.env.development?` instead of `unless Rails.env.development?`", + "reference": "let's leave this as a dev-only feature, and copy prod db to local env when needed. that keeps blazer security issues to a minimum." + }, + { + "prediction": "Why is this change needed?", + "reference": "We'll be renaming ActivitySampler to Sampler anyway, so this change will be non-required. Prefer to avoid changes here to avoid merge conflict with my PR doing the rename." + }, + { + "prediction": "I think this should be `var replacement = repl.Replace(ruleValues[len(ruleValues)-1])` instead of `var replacement = repl.Replace(ruleValues[len(ruleValues)-1])`", + "reference": "This applies only in the \"set\" headers case, but what about \"adding\" a header (field prefixed with `+`)?" + }, + { + "prediction": "Why is this deprecated?", + "reference": "I'm not sure we should deprecate this. I kinda like the idea, that we would provide all exceptions (if we throw any) with a common super type. Of course, the exception should be not a checked exception like this one, but rather a runtime exception. We maybe need additionally an internal exception that we would convert into such a public API exception. But that's out of scope of this PR - that's the question of exception handling." + }, + { + "prediction": "I think this should be `MarkNotSetError` instead of `MarkNotSetError`.", + "reference": "You'll need to adjust the docstring :wink:" + }, + { + "prediction": "I think this should be `reader_attributes.guid().is_on_same_process_as(writer_->getGuid()*/false);`", + "reference": "Add a TODO explaining why this is being done" + }, + { + "prediction": "I think this should be `Blockly.Events.VarRename` instead of `Blockly.Events.VarDelete`", + "reference": "This file still uses Blockly.VariableModel..." + }, + { + "prediction": "I think this should be `bool` instead of `bool`", + "reference": "Small nit, in the PR description its `publicAccess` but here its `public`. Guessing the preferred naming is public?" + }, + { + "prediction": "I think this should be `Variable.Value` instead of `Variable.Value`.", + "reference": "Maybe `driver.Watcher` -> provider (2x)? This is the concrete type, this user doesn't really know anything about the driver." + }, + { + "prediction": "Why is this needed?", + "reference": "can we remove this since `getDocValues` already returns an iterator? (we might need to do `T extends DocIdSetIterator` above)" + }, + { + "prediction": "I think this should be `self.valid_encoding?` instead of `self.valid_encoding?`", + "reference": "Don't check this in. This is already implemented in core_extensions/ruby/string.rb" + }, + { + "prediction": "I think this should be `enumerable: true`", + "reference": "This is used for both `id`, and `hash` we may not want these both to be enumerable." + }, + { + "prediction": "I think we should be able to use `formatter_loader.formatters.dup` instead of `formatter_loader.formatters.dup`", + "reference": "Is this necessary? I would expect YARD to treat it as public anyway... (Don't hold off merging on this...I'm mostly just curious)." + }, + { + "prediction": "I think this should be `ai.Version` instead of `ai.Version`", + "reference": "@wxing1292 to double check this is the right version to use?" + }, + { + "prediction": "I think we should use `is_integer()` instead of `is_integer()`", + "reference": "Shouldn't there be another case for when both min and max are specified?" + }, + { + "prediction": "This file is not part of Invenio.", + "reference": "Don't miss this one `2: I102 copyright year is outdated, expected 2014 but got 2013`. Thanks" + }, + { + "prediction": "I think this should be `if (tail_) { str.append(tail_, blockPt_); }`", + "reference": "the tail_ maybe nullptr?" + }, + { + "prediction": "I think this should be `createPodEntry(ctx, pod)` instead of `syncPodEntry(ctx, pod)`", + "reference": "The PR description mentions that `The controller code is extended to react to \"add\" events`, but I don't see any additional cases added here beyond the existing Create and Delete... is there something I'm missing?" + }, + { + "prediction": "I think this is a bit confusing, but I don't think we need to add the `to: :to_h` to the `OpenStructWithHashAccess` class. I think it's better to add `to: :to_h` to the `OpenStructWithHashAccess` class, but I think it would be better to add `to: :to_h` to the `OpenStructWithHashAccess` class.", + "reference": "Does it matter that #include changed to #include? ? I think the change makes sense since it aligns with the method name on Hash but unsure if anything called #include that would break with the change." + }, + { + "prediction": "Why is this change needed?", + "reference": "LGTM, curious though why exactly this is in place, and are there any possible issues from not waiting long enough?" + }, + { + "prediction": "Line is too long. [92/80]", + "reference": "?: is unnecessary because we already force preserve_hosts to be a string with to_s." + }, + { + "prediction": "Is there a reason to use `GetNewSessionQueueSize` instead of `GetSessionQueue`?", + "reference": "should it be `newsessionqueue` or `newsessionqueuer`? In case we'd like to be consistent" + }, + { + "prediction": "Why is this change needed?", + "reference": "Since lazy is re-rendered when mounting the fallback, these checks get triggered an additional time." + }, + { + "prediction": "I think this should be `is_content_editable_object` or `is_content_editable_object`", + "reference": "There is a `is_content_editable()` method just above this, what's the difference?" + }, + { + "prediction": "Why is this deprecated?", + "reference": "Hmm, I'm not sure this is exactly what we want to get across. The behavior of leaving both values unset allowing the entire config to be managed is what is indeed deprecated. It's just that not the entire field is deprecated, just that one behavior." + }, + { + "prediction": "(style) line over 80 characters", + "reference": "Given the slightly vague discussion in basename(3) about POSIX basename (modifies arg) vs GNU (doesn't), I always assumed it was advisable to pass a string copy However, I guess you'd get a \"discarding const\" warning promoted to error by our build system here if you were getting the POSIX implementation. Hah! Cool, I probably can go remove some memory copies in other parts of the code where those conditions exist." + }, + { + "prediction": "I think we should use `DateTime.now().minusMinutes(10)` instead of `DateTime.now().plusMinutes(10)`", + "reference": "Do you know somehow that this was the culprit? Even 1 minute is a lot, so I would expect the bug to lie somewhere else." + }, + { + "prediction": "I think this should be `LOG(WARNING) << \"put failed, ret \" << static_cast(code);`", + "reference": "what to do if some failed? just logging?" + }, + { + "prediction": "I think this should be `fetch('quote.deep_thoughts')`", + "reference": "since these thoughts are all Jack Handey's the generator should probably be called `jack_handey` to reflect that." + }, + { + "prediction": "Should this be `list[*EnvironmentFile]*EnvironmentFile`?", + "reference": "this file is autogenerated. you should edit `model/api/api-2.json` and then go generate this file. otherwise the next people generating api.go will remove the changes you added here" + }, + { + "prediction": "I think this should be `@trail_with_progress` instead of `@trail_with_progress`", + "reference": "Extra empty line detected at class body beginning." + }, + { + "prediction": "Why not use `exflow.getProjectName() + \".\" + exflow.getId() + \".\" + exflow.getId() + \".\" + exflow.getId() + \".\" + exflow.getId() + \".\" + exflow.getId() + \".\" + exflow.getId() + \".\" + exflow.getProjectName() + \".\" + exflow.getId() + \".\" + exflow.getId() + \".\" + exflow.getId() + \".\" + exflow.getId() + \".\" + exflow.getProjectName() + \".\" + exflow.getId() + \".\" + exflow.getId() + \".\" + exflow.getId() + \".\" + exflow.getProjectName() + \".\" + exflow.getId() + \".\" + exflow.getId() + \".\" + exflow.getId() + \".\" + exflow.getId() + \".\" + exflow.getId() + \".\" + exflow.getId() + \".submitFlow\";", + "reference": "This is smart but hacky! I would probably prefer an alternate solution that would be more obvious to read/understand." + }, + { + "prediction": "I think this should be `*dynamodbv1.Status` instead of `*dynamodbv1.Status`", + "reference": "i would not return a pointer for status here which is an int" + }, + { + "prediction": "I think this should be `CosineWindowFunction` and `LanczosWindowFunction`", + "reference": "Those functions are not currently wrapped, so I don't think it is necessary to exclude them (at least for now)." + }, + { + "prediction": "I think this should be `folderAlreadyAdded` instead of `folderAlreadyAdded`", + "reference": "Should we specify the name of the folder?" + }, + { + "prediction": "why do we need to import rdmolops?", + "reference": "it's not wrong, but you don't technical need `rdmolops` here since it's imported as part of `Chem`" + }, + { + "prediction": "I think this should be `pxz.wait()` instead of `pxz.stdin.close()`", + "reference": "I think the absence of this might have been the cause of the dump file corruption. We didn't wait for the pxz command to exit, leading to a race condition between the cp and this, leading to corrupted files in some places. I came across this because the hashes created and printed were different from the hashes of the actual files in dev also." + }, + { + "prediction": "Why is this change needed?", + "reference": "Out of the scope." + }, + { + "prediction": "I think this should be `this.sortByColumn = function(columnIndex) { return columnIndex; };`", + "reference": "Maybe `sortByColumnHeader` would be more precise? The plugin has a method with the same name and it could be confusing." + }, + { + "prediction": "I don't think we need refs here.", + "reference": "@developit I vaguely remember you mentioning something about some JS engines having an escape analysis feature that makes objects (and arrays?) locally declared that never leave the function essentially free from a GC perspective or something. Do you think we could benefit from that here? Or should we leave this as it is?" + }, + { + "prediction": "Why is this change needed?", + "reference": "Remind me why this is needed?" + }, + { + "prediction": "I think this should be `visitor.getSubVisitor(BooleanClause.Occur.FILTER, this);`", + "reference": "same as above, can this be null now?" + }, + { + "prediction": "I don't think we need to cast to `long` here.", + "reference": "This doesn't make sense to me. Should `cv.lengths` be an integer array instead of longs? It looks like they should always be integers since the values are assigned from `ArrayData#numElements()`. That's very likely an int." + }, + { + "prediction": "I think we should use `NumberStyles.Float` instead of `CultureInfo.InvariantCulture`.", + "reference": "str.Substring(3).Split(' ')[0] would also work and is more concise." + }, + { + "prediction": "I don't think we need to check if the peer is not a local peer. I think we should check if the peer is not a local peer.", + "reference": "Did you mean to negate the not_a_peer check?" + }, + { + "prediction": "I think this is a good idea, but I don't think we need to change it.", + "reference": "Copyright (C) 2010-2021 DBeaver Corp and others" + }, + { + "prediction": "I don't think this is needed anymore.", + "reference": "This seems like an unrelated change" + }, + { + "prediction": "I think this should be `label.SetKeyLabel(l.config.ProcessLabel); err := label.SetKeyLabel(l.config.ProcessLabel); err := label.SetKeyLabel(l.config.ProcessLabel); err := label.SetKeyLabel(l.config.ProcessLabel); err := label.SetKeyLabel(l.config.ProcessLabel); err := label.SetKeyLabel(l.config.ProcessLabel); err := label.SetKeyLabel(l.config.ProcessLabel); err != nil { return err }", + "reference": "Just to double-check -- are you sure this needs to be done *before* we create a new session? (Is `SetKeyLabel` setting what the label will be for all future keys or the label for the current key?)" + }, + { + "prediction": "I think this should be a `constexpr` instead of a `constexpr`.", + "reference": "I thought we were removing the FAIL policy altogether...." + }, + { + "prediction": "I think this should be `str(source[0])[:-3] + \"html\"`", + "reference": "Could you elaborate on why you made this change?" + }, + { + "prediction": "I don't think this is necessary.", + "reference": "before the fix, does this sentence make service crash? My point is can you re-produce the problem. I'm not sure the bug is due to non-asiic code" + }, + { + "prediction": "I think we need to check if `IsApiToken` is true.", + "reference": "This comparison looks a bit strange, we should first check existence of key \"IsApiToken\" and then check if it is equal to true. ~~Besdies, s/IsApiToken/IsAuthedByToken/~~" + }, + { + "prediction": "I don't think we need to change the `applyMode` to `hivev1.UpsertResourceApplyMode` here.", + "reference": "This might be working as is, but I'm a bit thrown by the || and then && and how things get evaluated. Testing real quick on the go playground, true || false && false seems to either evaluate the && first, or start on the right side. Anyhow could you group with braces, it looks to me like it should be ( a || b) && c in this case?" + }, + { + "prediction": "I think this should be `account.CryptoSm2 = true`", + "reference": "add an entry in makefile to generate binary with diff name?" + }, + { + "prediction": "I think this should be `httpConfig.Validate()` instead of `httpConfig.Validate()`", + "reference": "hmm so we didn't validate the HTTP config for all receivers?" + }, + { + "prediction": "I think this should be `IsInjected` instead of `IsInjected`", + "reference": "ITextFormatActivity had this, can I add to have the same effect?" + }, + { + "prediction": "I don't think we need the `apicontainerstatus` import here. I think it's better to use `apicontainerstatus` instead of `apicontainerstatus`", + "reference": "not blocking: can we remove extra lines here?" + }, + { + "prediction": "`data === 'random'` should be `typeof(data) === 'undefined'`", + "reference": "This just feels weird... can we use some kind of constant here? something like: `if (_.isUndefined(data) || data === PrivateKey.Random)`" + }, + { + "prediction": "Why is this change needed?", + "reference": "if does not have a class I guess the exception should be thrown because we cannot recognize the type based on it?" + }, + { + "prediction": "I think this should be `Set` instead of `List`?", + "reference": "LOL: use your GitHub username?" + }, + { + "prediction": "I think this method should be `nextPrefixKey`.", + "reference": "any tests for nextPrefix() ?" + }, + { + "prediction": "I think this should be `ifPresent(t -> n.getMaximumCommonType().ifPresent(t -> t.accept(this, arg));`", + "reference": "In general I'm saying \"if there is no common type I'm just going to skip some stuff and fail silently.\"" + }, + { + "prediction": "I think this should be `k8s.dev/knative-gcp/pkg/logging`", + "reference": "did we move the eventing logging here? Probably the eventing logging was removing and they are now using the pkg logging in eventing. If that is the case, we should do the same here" + }, + { + "prediction": "Why is this change needed?", + "reference": "I think that `Handler` should preserve the `operation` member and the span formatter should receive the operation name string as a parameter too, otherwise the `operation` parameter in the `NewHandler` function becomes useless if we pass a custom span formatter. Also, shouldn't it be called `spanNameFormatter`?" + }, + { + "prediction": "I think this should be `None` instead of `127.0.0.1`", + "reference": "Can you merge #466? That would make the current `None` default value working and more relevant that `\"127.0.0.1\"`." + }, + { + "prediction": "I think we should use `customCategory|predefinedCategory` instead of `predefinedCategory`", + "reference": "is reserved filed name the only possible reason this could fail?" + }, + { + "prediction": "I think this should be `true` instead of `false`", + "reference": "Would a KBFS_DISABLE_JOURNAL make more sense?" + }, + { + "prediction": "I think this should be a warning message.", + "reference": "BTW. What's the message meaning?..." + }, + { + "prediction": "I think this should be `expect(object.numeric?).to be(false)`", + "reference": "this should say false" + }, + { + "prediction": "I think this should be `go:build unit`", + "reference": "for my understanding - are this line and the next line both necessary? they seem to contain duplicate information. same for the other test files" + }, + { + "prediction": "I think we should use `config.val.url.open_base_url` instead of `config.val.url.searchengines`", + "reference": "No need for the `.keys()`, iterating over a dictionary gives you its keys (and thus you can also do `key in some_dict`). With that, it also fits on one line :wink:" + }, + { + "prediction": "Why is this removed?", + "reference": "If we want to avoid the user calling constructor and destructor, we should add `= delete` to their declarations. If we just want to avoid writing the default behavior, we should add `= default` to the declarations. I'm more in favor of the second option to avoid an API break." + }, + { + "prediction": "Why is this change needed?", + "reference": "My preference here is to keep a stricter hierarchy. We should have a mixin or something that is an AssetEvent that Observation and Materialization can both inherit from. That way we can check the type in the frontend if we need to." + }, + { + "prediction": "Why do we need to sort the array?", + "reference": "Can also cast them as `set`s and compare them." + }, + { + "prediction": "I think this package should be renamed to `trigger`", + "reference": "Still TODO I guess?" + }, + { + "prediction": "Why is this removed?", + "reference": "Another cleanup. There are two additional `using namespace std::chrono;` under this one. Should also remove std::chrono:: from the full file. Please do this on a single commit." + }, + { + "prediction": "Why is this change needed?", + "reference": "Looking at this list of boolean flags I wonder if we should create enums for all of these options, so that the code becomes much more readable" + }, + { + "prediction": "I think this should be `#include ` instead of `#include `", + "reference": "Is this necessary?" + }, + { + "prediction": "I think this class should be `CosmosElement` and not `CosmosElement`", + "reference": "How about this NS inside query NS?" + }, + { + "prediction": "Why is this change needed?", + "reference": "in line 79, sm also can be stateReader" + }, + { + "prediction": "I think this should be `localCache_.find(spaceId)` instead of `localCache_.find(spaceId)`", + "reference": "maybe can not return a map directly, it will be modified by inner thread." + }, + { + "prediction": "Why is this change needed?", + "reference": "What is the actual change here, why is this test change needed? Now the diff will send back more data?" + }, + { + "prediction": "I don't think we need to do this, but I think it would be better to use `atom->getAtomicNum() == 0` instead of `atom->getAtomicNum() == 0`.", + "reference": "Might be better to use a tag here. I for one have used 1000 isotopes as a tag in the past..." + }, + { + "prediction": "Why is this change needed?", + "reference": "This tests seems it was broken from the start :joy:. It \"worked\" because the old sample chance was small enough that this have always be off. Thanks for fixing this. Could you also change the strings on this test? `\"Recording off\"` and `\"new span is recording events\"`" + }, + { + "prediction": "This should be `result.isVersion()`", + "reference": "This is not actually the case, you need to modify `toConfiguration` below to prevent a configuration from being produced" + }, + { + "prediction": "I think this should be `Debug` instead of `Debug`.", + "reference": "I'm worried about we hide some important log here" + }, + { + "prediction": "Why is this change needed?", + "reference": "Python 3 will throw an exception for inf, but not providing a timeout will result in no timeout exception." + }, + { + "prediction": "I think this should be `/bzz-tag/name/{name}/uuid/{uuid}/`", + "reference": "As this method changes the state, it should be `POST`. Also, maybe to rename it to `createTag`?" + }, + { + "prediction": "Why is this change needed?", + "reference": "`ctx` is unused in rollbackTraffic" + }, + { + "prediction": "I think this should be `guidVSPackageString = \"b97edb99-282e-444c-8f53-7de237f2ec5e\";`", + "reference": "Roslyn conventions have const in PascalCase." + }, + { + "prediction": "I think this should be `h.clientPort != null ? h.clientPort : \"2181\"`", + "reference": "This is not bullet proof if e.g. user has `clientPort=1234` in `zoo.cfg` and in zkHost connection string. Then we'll add a warning that dynamic config differs from zkHost, which is not entirely true since we just lack the port part. We have no way from client to read the `clientPort` from server except from connecting to the server with 4LW *ont the clientPort* which is a chicken and egg. This hack will make the comparison work for default port, which is a compromise." + }, + { + "prediction": "Why is this needed?", + "reference": "We can probably delete this entire file. It's not used now and we'll (probably) write a custom serializer before we ever switch to MessagePack 2.1." + }, + { + "prediction": "Why is this change needed?", + "reference": "Aren't you duplicating this option?" + }, + { + "prediction": "I think this should be `IsBuildFileFromURL(uri, \"file\")` or `IsBuildFileFromURL(uri, \"file\")`", + "reference": "I'm not sure we should be doing this based on the extension? Calling them `.build_defs` is just a convention" + }, + { + "prediction": "Why remove this?", + "reference": "Should remove in `_MissingPandasLikeMultiIndex:` too" + }, + { + "prediction": "I think this should be `Subnets` or `CrossZoneLoadBalancing`", + "reference": "We should scope this down to the bits that we're actually using, otherwise the API is going to be problematic, as it includes references to NAT gateways and public and/or private subnets. Copying the types to be more local to the task in hand is fine." + }, + { + "prediction": "I think this should be `us-east-1` instead of `cn-northwest-1`", + "reference": "Is it is a hard requirement for this field to be 'cn-northwest-1' when wanting to interact with AWS China? It appears that putting in 'cn-north-1' would also result in using the alternative API endpoint (with the region overridden to use 'cn-northwest-1' for the created AWS client)." + }, + { + "prediction": "Why did you remove this?", + "reference": "Stephen already fixed this one. Only the OverSize test is flaky now right?" + }, + { + "prediction": "I don't think we need to add a `t(\"mailer.proposal_link_text\", proposal_url: proposal_url(@proposal))` here.", + "reference": "if the `activity_mailer` has a layout, should we include the footer in that? Realize there may also be conflicts with work @rememberlenny is working on..." + }, + { + "prediction": "I think this should be `Puppet[:disable_i18n] = true` instead of `Puppet[:disable_i18n] = false`", + "reference": "This makes me nervous, mostly because I don't know very much about it. Will users run into the gettext error in the wild? I can't reproduce it locally, but it's hard to be 100% sure. Is disabling gettext in Pal an option?" + }, + { + "prediction": "Why not use `List fetchRecentlyFinishedFlows(long lifeTimeMs)` instead of `List fetchRecentlyFinishedFlows(long lifeTimeMs)`?", + "reference": "Is Java smart enough to know the generic type here? Never knew this." + }, + { + "prediction": "Why is this change needed?", + "reference": "no thought given to reload" + }, + { + "prediction": "Shouldn't this be `disabledMetricAttributes != null`?", + "reference": "Please, don't remove the `getDisabledMetricAttributes` method. All changes must be backward-compatible." + }, + { + "prediction": "I think this should be `err.message.match(/Failed to kill on some hosts/) || err.message.match(/Failed to kill on some hosts/) || err.message.match(/Failed to kill on some hosts/) || err.message.match(/Failed to kill on some hosts/) || err.message.match(/Failed to kill on some hosts/) || err.message.match(/Failed to kill on some hosts/) || err.message.match(/Failed to kill on some hosts/) || err.message.match(/Failed to kill on some hosts/) || err.message.match(/Failed to kill on some hosts/) || err.message.match(/Failed to kill on some hosts/) || err.message.match(/Failed to kill on some hosts/) || err.message.match(/Failed to kill on some hosts/) || err.message.match(/Failed to kill on some hosts/) || err.message.match(/Failed to kill on some hosts/) || err.message.match(/Failed to kill on some hosts/) || err.message.match(/Failed to kill on some hosts/) || err.message.match(/Failed to kill", + "reference": "Is this left over from debugging?" + }, + { + "prediction": "Why is this change needed?", + "reference": "I've fallen for this before myself :) We _do_ call `close` inside of `done` on L65" + }, + { + "prediction": "I think this should be `rclone` instead of `rclone`", + "reference": "That looks fine! You could use `\"rclone/\"+fs.Version` too if you wanted. BTW does tardigrade use http under the hood? If you were using rclone's http Client then you'd get a User-Agent and you'd also get support for `-vv --dump bodies` and other nice things." + }, + { + "prediction": "I think this should be `negative_bag_loss = -prob**self.gamma * F.binary_cross_entropy(prob, reduction='none')`", + "reference": "Adding one line `prob = prob.clamp(min=EPS, max=1-EPS)` already works." + }, + { + "prediction": "I think this should be `_requestQueue = new ConcurrentRequestQueue(10000, AsyncTargetWrapperOverflowAction.Discard);` instead of `_requestQueue = new ConcurrentRequestQueue(10000, AsyncTargetWrapperOverflowAction.Discard);`", + "reference": "another option would be to create a `CreateRequestQueue(bool lockingQeueue)`, and set it only in `InitializeTarget`, isn't? The would prefer having the creation and \"business\" rules for the creation in one region, I think `InitializeTarget` would be the best place." + }, + { + "prediction": "(style) line over 80 characters", + "reference": "Wait, I think the `subsurface_handle_place_above` code was correct before. `place_above` means \"place it above in rendering order\" right?" + }, + { + "prediction": "I think this test should be `

    1.hey

    `", + "reference": "why did this change?" + }, + { + "prediction": "Why is this change needed?", + "reference": "Do you think we should have some tests here for `tlf.SingleTeam` too?" + }, + { + "prediction": "I think this should be `import github.com/influxdata/flux`", + "reference": "No problem with this but might as well revert this file since nothing else changed." + }, + { + "prediction": "Why is this removed?", + "reference": "In my changes, I did not create a new `AspNetScopeManager`. I'm not familiar with it enough to know if this is a valid change or not" + }, + { + "prediction": "I think this should be `throw new Error(message)` instead of `throw new Error(message)`", + "reference": "Not cool with this. I think we talked about it in past. This is a side effect. If we want to introduce the side effect in our functions like `inRange` (which I am for) the side effect (error) should originate in that function and not in some internal `throwError` function. Every stacktract will start at line `2` of `trowError.js`. Been there, done that and falled back to throwing the error from the place where it should be thrown." + }, + { + "prediction": "Shouldn't this be `long timestamp`?", + "reference": "We don't need this additional method." + }, + { + "prediction": "I think this test should be moved to `DelegatingOAuth2UserService.loadUserWhenUserRequestIsNullThenThrowIllegalArgumentException`", + "reference": "The purpose of this test is to ensure that the `OAuth2UserRequest` passed into `loadUser` is **not** null else throw `IllegalArgumentException`. Changing the `List` of `OAuth2UserService` mocks to `DefaultOAuth2UserService` doesn't really apply to what is being tested here. Please revert this. Thank you." + }, + { + "prediction": "why is this change needed?", + "reference": "nit: rename to nativeStk? proto might lead to think protobuf" + }, + { + "prediction": "I think this should be `QUERY_ID_UUID`", + "reference": "Why not `queryUUID` (and reference the same constant as in other places)?" + }, + { + "prediction": "I don't think we need to change this, but I think it would be better to use `invalidTrustDomainRegistrationEntry` instead of `invalidSpiffeIDRegistrationEntry`.", + "reference": "This is also used to log, of which our convention is leading uppercase..." + }, + { + "prediction": "I think this should be `less_precise=False` instead of `less_precise=False`", + "reference": "What about we just name it `check_exact`?" + }, + { + "prediction": "I don't think this test is needed.", + "reference": "before, a binary annotation had the same service name as a regular annotation, masking the bug where we weren't querying the latter" + }, + { + "prediction": "Layout/MultilineMethodCallBraceLayout: Closing method call brace must be on the same line as the first argument.
    Layout/MultilineMethodCallBraceLayout: Closing method call brace must be on the same line as the last argument.", + "reference": "Where does the `7` come from?" + }, + { + "prediction": "I think this should be `value` instead of `value`", + "reference": "I don't know how we haven't got bugs from some of these! As here this would have had a stale `value`" + }, + { + "prediction": "I think this should be `throw new UnsupportedOperationException(\"sort-order is a reserved table property. Please use the command \" + \"'ALTER TABLE ... WRITE ORDERED BY' to specify it.\");`", + "reference": "One nit here I forgot about this before but we usually structure error messages as \"Cannot X because Y. Then the recommendation goes here\" I would also recommend not using \"it\" in the message since it the pronoun is a bit ambiguous. \"to specify write sort-order\" may be clearer" + }, + { + "prediction": "Why is this changed?", + "reference": "I'm surprised this worked at all! It was importing the default export but `eslint-plugin-import` warned me `warning Using exported name 'initialState' as identifier for default export import/no-named-as-default`" + }, + { + "prediction": "I don't think we need to do this, but I think it's better to use `.merge(videos)` instead of `.merge(videos).merge(videos)`", + "reference": "This was used in `app/views/video_tutorials/_video_tutorial_details.html.erb` how are we handling that now?" + }, + { + "prediction": "I think this should be `awsRequestIDRE` instead of `awsRequestIDRE`.", + "reference": "Is `\\S+` really the right thing? Anybody know what kind of encoding this is? Perhaps if we know it doesn't have commas, we can just use `[^,]+`. Also, parens around the comma are unnecessary, since we're not using the capture group." + }, + { + "prediction": "I think this test should be `UnitTestDocTests.py` instead of `UnitTestDocTests.py`", + "reference": "This block of changes looks like you removed tests without replacing them anywhere. Did I miss something?" + }, + { + "prediction": "I think this should be `includePrivate` and `includeComputed`.", + "reference": "n.b. private and computed values are now exposed to the API. They were hidden/not exposed before." + }, + { + "prediction": "I think this should be `if self._elem.tagName().lower() == 'a':` or `if self._elem.tagName().lower() == 'a':`", + "reference": "Nitpick: Please add a period after `link` :wink:" + }, + { + "prediction": "I think this should be `klog.Errorf(\"Failed to start upstream with error: %v\", err)`", + "reference": "we got no chance that `err` is not nil here, need to revisit how `NewUpstreamController` is defined." + }, + { + "prediction": "I think this should be `GET_HEAP_SNAPSHOT` instead of `GET_HEAP_SNAPSHOT`.", + "reference": "Instead of building in routing for a browser-specific command, could you refactor the HttpCommandExecutor to allow arbitrary commands to be registered?" + }, + { + "prediction": "Do we need this test?", + "reference": "It'd be nice to assert the right deprecation is being raised, just add a third argument of `/\"its\" method/`" + }, + { + "prediction": "I think this should be \"write.location-provider.impl\" instead of \"write.location-provider.impl\"", + "reference": "Do we want to add this to the docs?" + }, + { + "prediction": "I think this should be `assert.Equal(tb, code, st.Code().String(), \"GRPC status code does not match\")`.", + "reference": "This isn't really related but makes debugging test failures much easier since you see the string representation of the code instead of the integer value." + }, + { + "prediction": "I think this should be `if (size && *size == 0) {`", + "reference": "Because of this new early exit." + }, + { + "prediction": "I think this should be `@see Selenium::WebDriver::Firefox::W3CBridge`", + "reference": "Maybe call it `WireBridge`?" + }, + { + "prediction": "why not use `privacyParameters.getGoQuorumPrivacyParameters().isPresent()`?", + "reference": "can this be removed now?" + }, + { + "prediction": "(style) line over 80 characters", + "reference": "This is going to create a problem - we are already encountering issues with the length of the usock pathname on recent Linux kernels as the temp directory base has moved down to the var directory under a name created by a hash. So adding another field to it is going to add to the problem." + }, + { + "prediction": "I think this should be `AppCfnTemplateConfigurationNameFormat` and not `AppCfnTemplateConfigurationNameFormat`", + "reference": "What do you think about moving this to the `cloudformation` pkg?" + }, + { + "prediction": "I think this should be `@var array` instead of `@var array`", + "reference": "Please make this private by default" + }, + { + "prediction": "I don't think we need to add the `ProcessEngineConfigurationImpl` class to the `ProcessEngineConfigurationImpl` class. I think it would be better to add a `ProcessEngineConfigurationImpl` class to the `ProcessEngineConfigurationImpl` class.", + "reference": "We can add `@Override` annotations to all of the implementations of this method. I think this is a best practice for us, but it would be nicer in any case." + }, + { + "prediction": "I think this should be `Cache` instead of `Cache`", + "reference": "Most of uses of `RefreshAndGet` seems to be made only for `Refresh` part, result is ignored. We can simplify this method to assigning single responsibility to it - just `Refresh()`." + }, + { + "prediction": "I think this should be `optparse.OptionConflictError` instead of `optparse.OptionConflictError`.", + "reference": "@Pierre-Sassoulas Are we sure this doesn't create problems? Without it for some reason we get an error on `accept-no-param-docs` being a duplicate error. I couldn't figure out why it did this. This solves the issue and passes the tests, but I wonder if this creates other issues.." + }, + { + "prediction": "I think this should be `if status == Stopped && !c.cgroupManager.Exists() {`", + "reference": "Does it make sense to check for \"Created\" here as well? Or should it return an error in such case?" + }, + { + "prediction": "Why is this change needed?", + "reference": "Did you mean to use `identifier.toString` here as well?" + }, + { + "prediction": "Align the elements of a hash literal if they span more than one line.", + "reference": "interesting! didn't realize this was needed in RSpec 3" + }, + { + "prediction": "Why is this change needed?", + "reference": "This is to avoid circular reference" + }, + { + "prediction": "I think this should be `notebook_context`?", + "reference": "As the bokeh renderer also has a ``load_nb`` classmethod (and notebooks are explicitly mentioned in that method name), I would consider making ``_notebook`` into a constant ``notebook_context`` class parameter. The docstring can say it is set to True if the ``load_nb`` classmethod has been called." + }, + { + "prediction": "Why is this removed?", + "reference": "Where is the actual command generated here? Shouldn't this be taking in `constructor(db, collectionName, options)` and then constructing the command off of that?" + }, + { + "prediction": "(style) line over 80 characters", + "reference": "Mirror the `OPTIONAL OUT` of fullpath" + }, + { + "prediction": "I think this should be \"NEXT!\"?", + "reference": "Please merge with master and replace with with \"future\" version." + }, + { + "prediction": "Why is this removed?", + "reference": "Nit: Change is not needed for this PR :slightly_smiling_face:" + }, + { + "prediction": "Do we need this method? I think it would be better to use `self.vcap_data['application_uris'].min_by(&:length)` instead of `self.vcap_data['application_uris'].min_by(&:length)`.", + "reference": "if we are returning `nil` from an `else` I think we can just remove the `else` (and this method will still return `nil`)" + }, + { + "prediction": "Why is this change needed?", + "reference": "side note: this change is ok as of today because we have not exported the results for this new type to BenchView yet. After we to that the namespace, type name and method name should not be changed (they create a benchmark ID which is used in BenchView)." + }, + { + "prediction": "I think this should be `var info = new FileInfo(FilePath); if (!info.Exists) { return false; }`", + "reference": "How exactly are you expecting the user to see issues with their Midas library? It seems like all error information is being swallowed and not clearly reported to the user. Even if the eventual result is to report that loading the file failed, it seems like the exception, in this case, might have more information about why." + }, + { + "prediction": "I think we should use `time.Now().Add(wsc.config.WriteDeadline)` instead of `time.Now().Add(wsc.config.WriteDeadline)`", + "reference": "Looks good, but seems `ReadMessage` hadn't used this Deadline in Underlying `WSConnection`?" + }, + { + "prediction": "I think this should be `_azkaban_project_dir_size_in_bytes_`", + "reference": "Make it \"___*\" three underscores to make it even less likely to have a collision? I assume it will be hard to change the file name once this change is deployed..." + }, + { + "prediction": "I think this should be `final`.", + "reference": "We don't need this anymore after #2151" + }, + { + "prediction": "Why is this change needed?", + "reference": "this is this removed? I don't understand in the context of this PR" + }, + { + "prediction": "I think this should be `if isinstance(ip6, Net6): ip6 = iter(ip6) if isinstance(ip6, Net6): ip6 = iter(ip6) if isinstance(ip6, Net6): ip6 = iter(ip6) if isinstance(ip6, Net6): ip6 = iter(ip6) if isinstance(ip6, Net6): ip6 = iter(ip6) if isinstance(ip6, Net6) else ip6 = iter(ip6)", + "reference": "`isinstance(ip6, Net6)` instead" + }, + { + "prediction": "I think this should be `returnPartly` instead of `returnPartly`", + "reference": "Do we really need the param here? If only partial results returned, we could return ResultCode::PARTIAL_RESULTS;" + }, + { + "prediction": "I think this should be `fmt.Sprintf(core.TmpOutputFormat, target.Label.PackageName)`", + "reference": "this logic seems duplicated from the other new function. I think it should probably be a member function on `BuildTarget`" + }, + { + "prediction": "Why is this change needed?", + "reference": "size reduce to 1/4 of using Gob" + }, + { + "prediction": "Why is this change needed?", + "reference": "The Hash interface states that a call to `Write()` never returns an error. Does this also apply to the number of written bytes?" + }, + { + "prediction": "I don't think you need to change the `-lt 12` to `-lt 12`", + "reference": "In my tests, I found that `[[ \"\" -lt 12 ]]` evaluates to true, but `[[ -lt 12 ]]` is an error, which is why the subshell is wrapped in `\"`." + }, + { + "prediction": "I think this trait should be `published_on Time.zone.today` or `published_on Time.zone.today`", + "reference": "I don't see a validation on `published_on`, we generally shouldn't specify it in the base factory unless the model would be invalid without the model. Is there a different way we can handle this?" + }, + { + "prediction": "Why is this change needed?", + "reference": "maybe add a `isExhaustive()` method on the enum to avoid these large conditions?" + }, + { + "prediction": "Why is this needed?", + "reference": "so those regexps were wrong previously? e.g. they would match `/v\\/foo`? If so, raise a bug and fix on the 1.0 branch." + }, + { + "prediction": "Why do we need to return `null` here?", + "reference": "I think with MultiBackend we could have a slightly different logic: return true if there are no configured login targets ( = getLoginDrivers returns an empty array). MultiBackend could also check all configured login targets for loginIsHidden support and verify that at least one of the configured login targets allows login, but I wouldn't go that far without a use case. In a related note, I'm not quite sure if loginIsHidden works with ChoiceAuth at all, but that's a different issue." + }, + { + "prediction": "I think this should be `binary = false;` and `compressed = false;`", + "reference": "Should we add error info for not supporting the compressed binary?" + }, + { + "prediction": "I think we should use `utils.NewClusterRegionGetter()` instead of `utils.NewClusterRegionGetter()`", + "reference": "I suggest injecting this into the reconciler. For this and the others. Have Wire generate it and push it into the controller creation." + }, + { + "prediction": "I think this should be `_serializer = JsonSerializer.Create(_settings);`", + "reference": "Can't we just make _serializer static? We use same settings every time. I would also put those fields on top of the class for readability." + }, + { + "prediction": "Why is this change needed?", + "reference": "Can't we just use `metadata['websocket_flow']` to identify handshake flows and not add another attribute?" + }, + { + "prediction": "I think this should be `separator = '-' * 80` instead of `separator = '-' * 80`", + "reference": "Funny that we were wrapping this with string interpolation before..." + }, + { + "prediction": "I think this should be `alias('model')`", + "reference": "I had an eslint error saying I must \"alias\" my model - so I copied this from controllers/site.js" + }, + { + "prediction": "Why is this needed?", + "reference": "unsure if the methodname can still be `GetMetricPoints()` as before..." + }, + { + "prediction": "I think this should be `rule_name` instead of `rule_name`", + "reference": "This file contains the functional changes, the rest is for testing." + }, + { + "prediction": "I think this should be `import io` instead of `io`", + "reference": "I know you didn't do this, but there's no need for the `nethttp` alias and it was confusing to me - just remove it and s/nethttp/http/ everywhere (it's fine that the package here is http itself, I do the same thing in transport/grpc)" + }, + { + "prediction": "I think this should be `PRAGMA wal_checkpoint(FULL)` instead of `PRAGMA wal_checkpoint(FULL)`", + "reference": "I felt that this was the most non-invasive way to fix the test, but this does expose some raw DB queries and knowledge about how SQLite works which may be a code smell. The alternative to getting this to pass is to perform enough writes to trigger a checkpoint, but that threshold is determined in the config stage and this test may not be able to know what that page threshold is set to. This could lead to inconsistent test runs which is why I elected to force the checkpoint regardless of the page threshold." + }, + { + "prediction": "Why is this change needed?", + "reference": "Is new model format backward compatible with current v2?" + }, + { + "prediction": "I don't think we need this test anymore.", + "reference": "should we perhaps write a spec that ensures we don't send a welcome email to a user on login when the user is not new?" + }, + { + "prediction": "I think this should be `ContainerTimeoutSeconds uint64` or `ContainerTimeoutSeconds uint64`", + "reference": "I think my preference would be to have the type be a `time.Duration` and use `time.ParseDuration` for parsing." + }, + { + "prediction": "Why is this needed? I think it's better to use `org.sun.glassfish.gmbal.ManagedObject` instead of `org.sun.glassfish.gmbal.ManagedObject`.", + "reference": "JMX offers normal APIs for this. I don't think you want the glassfish one." + }, + { + "prediction": "Why is this change needed?", + "reference": "We should really leave a TODO or something or else we will forget them ..." + }, + { + "prediction": "Why is this change needed?", + "reference": "This exposes what a bad name `dagster_type` was, but is it crazy to want this to just be `type` -- do we gain usability by being super-explicit that this is a `runtime_type`? If so, would it make sense to rename the `config_field` to be `config_type`?" + }, + { + "prediction": "I think this should be `C{True} if the selection is anchored at the start` or `C{False} if the selection is anchored at the end`.", + "reference": "It might help here if you give a brief explanation of what you mean with a selection being anchored at the start." + }, + { + "prediction": "I think this should be `pkg/hash`", + "reference": "move cachedStates to handle function" + }, + { + "prediction": "Why is this change needed?", + "reference": "I don't think this can just be renamed; it's saying that privacyMode is a BooleanSetting, which it's not." + }, + { + "prediction": "Why is this change needed?", + "reference": "what was the reason for this change?" + }, + { + "prediction": "Why are these changes removed?", + "reference": "Minor, but these two nullable and the logic around them could be replaced by a Lazy." + }, + { + "prediction": "I think we should use `kubernetes` instead of `k8s.io/client-go/rest`", + "reference": "I think I would just pass in `len(peers)`, on the principle of minimum information." + }, + { + "prediction": "I think this should be \"read.parquet.in-predicate-limit\" or \"read.parquet.in-predicate-limit-default\"", + "reference": "Spark's default value is 10 but it also rewrites IN as OR/EQUALS. We can do better that this because of the way we evaluate IN predicates. On datasets we tested this, we saw performance improvements on IN predicates with up to 200 elements (on sorted column). We may increase the default value a bit but I am very reluctant to make it more than 300 since our jobs were 20% slower with IN predicates that contained 300 elements. That being said, the optimal value still depends on a particular query and table." + }, + { + "prediction": "I think we should add this to the `@author` annotation.", + "reference": "Please update copyright year." + }, + { + "prediction": "I think this should be `static_cast(number_of_node_based_nodes / TIMER_SEC(expansion));`", + "reference": "Same here, could just be `std::setprecision`." + }, + { + "prediction": "Why is this removed?", + "reference": "Do we still want the \"admins\" gate?" + }, + { + "prediction": "I don't think this is needed anymore, but I think it would be better to use `s3.ruby.s3-ruby-example-upload-multiple-items` instead of `s3.ruby.s3-ruby-example-upload-multiple-items`.", + "reference": "Simple Storage **Service**" + }, + { + "prediction": "I think this should be `EnableAutoObservabilityMiddleware` instead of `DisableAutoObservabilityMiddleware`", + "reference": "nit: `it is assumed`" + }, + { + "prediction": "I think this should be `#include ` instead of `#include `", + "reference": "I would appreciate it if you could refrain from using `stdbool.h`. We allow the header files of H2O to be included from C++ (which means that `bool` might be a C++ type), and therefore my preference is to not use `bool` in our code (but instead use `int` or `char` for the purpose) to avoid confusion." + }, + { + "prediction": "Shouldn't this be `manage[searchScope]'`?", + "reference": "@danielbidala What happens if `searchScope` is not defined in `config_relation.yaml` ?" + }, + { + "prediction": "Why do we need this?", + "reference": "Do we want maybe a 1min timeout?" + }, + { + "prediction": "I think this should be `if len(a) != 2 { err = errors.New(\"decode failed\") } else { err = errors.New(\"decode failed\") }`", + "reference": "I guess code never reaches this line, you can remove `else` block and just `return a[0], a[1]`. Also, probably rename `a` to `auth` as well." + }, + { + "prediction": "Why is this change needed?", + "reference": "Doesn't this no-arg constructor need to be public for serialization to work?" + }, + { + "prediction": "Align the parameters of a method call if they span more than one line.", + "reference": "Just use the word \"veld\" instead of \"gebied\" here" + }, + { + "prediction": "I don't think this is needed.", + "reference": "This change (import org.shredzone.flatter4j.model.User;) does not seem relevant to this fix / commit." + }, + { + "prediction": "I think this should be \"Build individual packages with Hydrated RPMs\".", + "reference": "This should be a Bool() rather than a String(). (See the other PR for an example)" + }, + { + "prediction": "I think this test should be `assertEqual(1, len(rules_engine.rule_book.resource_rules_map))`", + "reference": "This should be a failure if we don't get the exact number of expected rules. You can use a constant if you don't want to update several lines any time you update the test rule strings." + }, + { + "prediction": "Why is this change needed?", + "reference": "We need to switch from BeamSync to FullSync when we download all the needed headers, blocks, receipts and state" + }, + { + "prediction": "I think this should be `protocol->transport = g_value_dup_object(value);`", + "reference": "Why you duplicate it? The underlaying transport should live as long as the multiplexed one. And must be destroyed after protocol is destroyed. Duplicating the transport may lead to object references hold and maybe memory freeing problems. I think this property must hold a reference to it and not a copy. The copy can lead to memory freeing problems." + }, + { + "prediction": "I think this should be `string(in.Status.ChaosStatus.Experiment.Phase)` instead of `string(in.Status.ChaosStatus.Experiment.Phase)`", + "reference": "`in.Status.Experiment.Phase`. we can omit `ChaosStatus`" + }, + { + "prediction": "I think this should be `time.Now()` instead of `time.Now()`", + "reference": "Just curious... why the alias here?" + }, + { + "prediction": "I think this should be `System.ComponentModel.ComponentResourceManager` instead of `System.ComponentModel.ComponentResourceManager`.", + "reference": "Seems like this should conflict with changes I made during merging of the 20.2 RESX file translation" + }, + { + "prediction": "I think this should be `DEFINE_bool(enable_opt_collapse_project_rule, true, \"\");`", + "reference": "Why disable this rule?" + }, + { + "prediction": "I think this should be `arg.replace('{}', self._filename) if '{}' in arg else arg.replace('{}', self._filename) if '{}' in arg else arg`", + "reference": "I think you don't need the `... if '{}' in arg else arg` part - if the arg doesn't contain `{}`, `arg.replace('{}', ...)` will return the unchanged string anyways." + }, + { + "prediction": "I think this should be `GROUP_CHUNK_SIZE = 20`", + "reference": "nit: Should we make this an attribute of the LoadGroupMembersPIpeline class?" + }, + { + "prediction": "I think we should use `principal_group_member.principal_id` instead of `principal_group_member.principal_id`", + "reference": "need to update this command to use the name field instead of principal_id" + }, + { + "prediction": "Why not use `privateTransactionHandler.determineNonce` here?", + "reference": "nit: I can't help but think the privateTransactionHandler should be a base-class member ... every Priv Json RPC seems to need it..." + }, + { + "prediction": "Why is this change needed?", + "reference": "Why does this start the main activity and not the preferences? With `overridePendingTransition(0, 0)`, this could instantly switch the theme without the user being disrupted" + }, + { + "prediction": "I think this should be `isDocker` instead of `isDocker`", + "reference": "Prefer a human-readable string rather than querying specific technologies. How would I indicate a session is running on BrowserStack? Or some custom thing?" + }, + { + "prediction": "I don't think this is needed anymore.", + "reference": "It appears as though whoever checked in python changes didn't re-run regenerate:expected. I am modifying these files as a result of running that after a sync and build." + }, + { + "prediction": "I think this should be `@Nullable` instead of `@Nullable`.", + "reference": "This was copied from JavaMethodViewGenerator; only the `public static` method modifiers were added." + }, + { + "prediction": "Can we use `Optional.ofNullable(getGasPrice().getValue()).orElseGet(() -> getGasPrice().getValue().longValue() - baseFee);` instead of `Optional.ofNullable(getGasPrice().get().longValue() - baseFee);`", + "reference": "this is going to throw for frontier transactions post-london" + }, + { + "prediction": "Why is this removed?", + "reference": "The catch clause is not needed. The finally clause alone is enough." + }, + { + "prediction": "I think this should be `isDocker` instead of `isDocker`", + "reference": "Prefer a human-readable string rather than querying specific technologies. How would I indicate a session is running on BrowserStack? Or some custom thing?" + }, + { + "prediction": "I think this should be `FALSE` instead of `TRUE`.", + "reference": "Changing the default value for isClosed from TRUE to FALSE can have other repercussions. We might miss throwing error. Can you please confirm this change." + }, + { + "prediction": "I think we should add the state change event to the task state change event to indicate that the task has been stopped.", + "reference": "Please use more meaningful names than `te`here and in other places." + }, + { + "prediction": "I think this should be `ConfigFor` instead of `ConfigFor`", + "reference": "Perhaps this would be more idiomatic as `ConfigFor(interface{}) (*PluginConfig, bool)`?" + }, + { + "prediction": "I think this should be `application/x-amz-json-1.1` and not `application/x-amz-json-1.1`.", + "reference": "nit: We could import `APPLICATION_AMZ_JSON_1_1` from `constants.py` here." + }, + { + "prediction": "I think this interface should be `IMvxMainThreadAsyncDispatcher` and not `IMvxMainThreadAsyncDispatcher`", + "reference": "Should this not inherit from IMvxMainThreadDispatcher?" + }, + { + "prediction": "why is this changed?", + "reference": "line is 167 characters (from `lll`)" + }, + { + "prediction": "I think this should be `using System.Collections.Generic;` instead of `using System.Collections.Generic;`", + "reference": "nit: consider adding a blank line between L15 and L16." + }, + { + "prediction": "I think this should be `const auto number_of_nodes = maneuver_overrides_file.ReadVectorSize();`", + "reference": "This is another bug fix: Without skipping the bytes of the vector this would read garbage data." + }, + { + "prediction": "Why not just use `actions.Creation.PubKey` here?", + "reference": "why need this? i don't see Gen.CreatorPubKey being used?" + }, + { + "prediction": "Align the elements of a hash literal if they span more than one line.", + "reference": "As previously mentioned, best to drop this locale override. It's not something we only provide in exceptional circumstances. Moreover, it doesn't work for this PR anyway, while massively increasing the code complexity!" + }, + { + "prediction": "I think this should be `metadata` instead of `metadata`", + "reference": "is this supposed to be `Desired`?" + }, + { + "prediction": "Why is this removed?", + "reference": "The iterator is not wrapped when the score mode is set to `COMPLETE_NO_SCORES` so you don't need to change this assertion anymore ?" + }, + { + "prediction": "I think this should be `os.makedirs(folder)` instead of `os.makedirs(folder)`", + "reference": "Is there too much spaces there? (should be 4 I think)" + }, + { + "prediction": "I think this should be \"0\" instead of \"0\"", + "reference": "IS_FIRST_PULL revision is better to use instance property, not static. When KieClient has only one instance, instance property is better. When KieClient has many instances(not possible), static is not good eitheir." + }, + { + "prediction": "I think this should be `fontawesome5_icon_mixins`", + "reference": "This needs to be removed since we removed the mixin." + }, + { + "prediction": "Why is this changed?", + "reference": "Can `weight_` be deleted?" + }, + { + "prediction": "I think this should be `replaceArgument(1, $container->getParameter('locale'));`", + "reference": "This is fine, but by Symfony convention this part is responsability of the compiler pass class, i.e `DependencyInjection\\Compiler\\?`" + }, + { + "prediction": "Is there a reason to use `chown` here instead of `chown`?", + "reference": "The host object already has a nice way of querying configprint. Try `puppet('master')['user']`" + }, + { + "prediction": "I think this should be `upload`?", + "reference": "Let's call this `share` and not `upload` - the user wants to share their flows, uploading is just the implementation of that. :)" + }, + { + "prediction": "I think this should be `wx.MiniFrame` instead of `wx.Dialog`", + "reference": "It would be better to keep focus on the main text control. But to get around the fact that Dialogs focus their first child on show, even when not active, something like Dialog.isActive should be chcked when appending text, rather than whether the text control has focus." + }, + { + "prediction": "(style) line over 80 characters", + "reference": "So is this invoked every time we extend the trace?" + }, + { + "prediction": "I think this should be `if (kv.second.getInt() < 0 || kv.second.getInt() > 999999)`", + "reference": "Why not use switch here?" + }, + { + "prediction": "I think this should be `bool` instead of `bool`", + "reference": "I think `NoAuth` is a better name" + }, + { + "prediction": "I think this should be `err.Error()` instead of `r.Error`.", + "reference": "This does create a minor bifurcation in how closing the InputWriter is done in success vs failure cases. Is there anyway to merge this with the success exit path? This is something that seems like it would be better as a function closure instead of method on the `$esapi.Name` type. Can the `es.Close` not be used instead of this method?" + }, + { + "prediction": "Why is this removed?", + "reference": "Please keep this blank line. PEP8 says: > Method definitions inside a class are surrounded by a single blank line." + }, + { + "prediction": "I think we should use `params_for_search(params)` instead of `params_for_search`", + "reference": "You are not passing in a `:params` key here." + }, + { + "prediction": "I think this should be `klog.Info(\"preparing ovs bridge ...\")` instead of `klog.Info(\"preparing ovs bridge ...\")`", + "reference": "Probably change \"ovs\" to \"OVS\"." + }, + { + "prediction": "Why not use `array_key_exists('category', $formParams) ? $formParams['category'] : $this->getRequest()->get('uniqid');`?", + "reference": "Please linebreak this" + }, + { + "prediction": "Why is `Data` nullable?", + "reference": "`= default` is implied here, so having it is redundant. Is it a stylistic choice to include it, or just an oversight?" + }, + { + "prediction": "Why is this change needed?", + "reference": "Maybe it's time to fix the param name for this interface?" + }, + { + "prediction": "Why is this removed?", + "reference": "Why are we removing it? Looks like useful info. Obviously, field names should change." + }, + { + "prediction": "I think this should be `ValueFormatter ?? Resolve();`", + "reference": "Missing fallback to MessageTemplates.ValueFormatter.Instance" + }, + { + "prediction": "`axis` should be `axis=0`", + "reference": "The parameter in the docstring should be fixed too. Actually, why don't you try to implement the other axis? It wouldn't be impossible to do if we use pandas UDF from a cursory look. We have enough time before the next release currently." + }, + { + "prediction": "I think we should use `google.cloud.google.com/gapi-cloud-osconfig-go/google.golang.org/genproto/googleapis/cloud/osconfig/apiv1alpha1.go` instead of `google.golang.org/genproto/googleapis/cloud/osconfig/v1alpha1.go`", + "reference": "This also runs a patch if its in the middle of one." + }, + { + "prediction": "I think this should be `debug` instead of `debug`", + "reference": "Could we rename this method to `updateKnownStatus` ?" + }, + { + "prediction": "I think this should be `if (span.Context.Origin != null) { span.SetTag(Tags.Origin, span.Context.Origin); } else { span.SetTag(Tags.Origin, span.Context.Origin); }`", + "reference": "Maybe it would make sense to move that to DecorateRootSpan? Currently it only has Azure stuff, but given the name of the method I feel like it would be semantically appropriate" + }, + { + "prediction": "I think this should be `k8s.io/apimachinery/pkg/apis/metav1`", + "reference": "nit: these imports were in a separate group to ones from this repo" + }, + { + "prediction": "I think we should use `DispatchMethod.PUSH_CONTAINERIZED` instead of `DispatchMethod.PUSH_CONTAINERIZED`.", + "reference": "Is it possible to rename the methods to `isXXXMethod` to keep the usage by the caller generic? The caller could use the result of these methods to verify whether a feature is enabled or to validate an input value for example." + }, + { + "prediction": "Shouldn't this be `maxAttempts`?", + "reference": "Don't penalize everyone with 250ms delay b/c some machines have problems." + }, + { + "prediction": "Shouldn't this be `log.error(\"Failed parsing config file after update: \" + filename, e);`?", + "reference": "This try-catch should be here so that watcher thread doesn't just exit in case of an exception. This change alone would probably be enough to fix the error as well, assuming that there's another `ENTRY_MODIFY` event when the file write is finalized. But of course not a perfect fix because it doesn't protect against possibly reading a non-empty but only partially written file?" + }, + { + "prediction": "I think this should be `return s.running && s.eventsEnabled()`.", + "reference": "Weird that we have to check for `s == nil` here.. I would instead have fixed the call stack to find out when this gets invoked with a nil server." + }, + { + "prediction": "I think we should use `Ember.Handlebars.Utils.escapeExpression` instead of `Ember.Handlebars.Utils.escapeExpression`.", + "reference": "The `import` statement for `Ember` is missing in this file." + }, + { + "prediction": "I don't think we need to do this, but I think it would be better to use `c._nextState = assign({}, c.state);` instead of `c._nextState = assign({}, c.state);`", + "reference": "Awesome :tada: I'd love to have a test case for this so that we don't regress on this feature in any future refactorings :+1:" + }, + { + "prediction": "Why is this change needed?", + "reference": "For testing some of the rounding functions" + }, + { + "prediction": "Shouldn't this be `currencyDataFactory->createFromCurrency($currencyCzk);`?", + "reference": "This should be present in UPGRADE notes. Also on currently running projects you should suggest users to update these settings." + }, + { + "prediction": "I don't think we need to update the `usedResources` field in the `bdl.overallByteTracker`", + "reference": "Are you sure you want to do this? This will affect the working set block cache too, such that it'll now be tracking global free space. It throws off the fraction calculation." + }, + { + "prediction": "I think this should be `std::lock_guard`.", + "reference": "Why would the read access need to be mutexed? The caller might still get a wrong answer since the value might change immediately after the mutex is unlocked before the caller receives the value." + }, + { + "prediction": "I think this should be `config.val.tabs.mode_on_change == 'restore'`", + "reference": "This fits on one line without the parentheses :wink:" + }, + { + "prediction": "Why is this change needed?", + "reference": "Looks like `TestCloudRecovery` changes are unrelated?" + }, + { + "prediction": "Why is this needed?", + "reference": "Try to separate it to different methods. Invoke is huge :)" + }, + { + "prediction": "I don't think this is needed anymore.", + "reference": "Looks like another spot that would benefit from `truncate`" + }, + { + "prediction": "I don't think this is needed, but I think it would be better to use `(i - H2O_MAX_TOKENS) * 2` instead of `(i - H2O_MAX_TOKENS)`", + "reference": "This change is not related to what this PR wanted to fix, but undefined behavior sanitizer warns without this parenthesis because `h2o__tokens + i` overflows." + }, + { + "prediction": "I think this should be `if no_docstring_rgx.pattern and re.match(no_docstring_rgx, node.name)`", + "reference": "This is actually incorrect and should be the other way around. Going to fix this tomorrow. If `no_docstring_rgx == re.compile(\"\")` no function should be checked, since every function matches the pattern. If `no_docstring_rgx == re.compile(\"^$\")` all functions should be checked." + }, + { + "prediction": "Why is this needed?", + "reference": "Should this be in a config file?" + }, + { + "prediction": "Why not use `require('../../src/utils')` instead of `require('../../src/error')`?", + "reference": "purely preference, but have you considered using parentheses to indicate that a method is being tested? e.g., `describe('eachAsync()')`" + }, + { + "prediction": "I think this should be `!fs::FileUtils::remove(checkpointPath.data(), true)`", + "reference": "Why not return success?" + }, + { + "prediction": "I think this should be `@var string|null` instead of `null`.", + "reference": "Please use snake_case for properties to keep it consistent with the rest of the codebase." + }, + { + "prediction": "I think this should be `Infof(\"successfully connected to peer (inbound) %s\", i.BzzAddress.ShortString())`", + "reference": "i don't understand why we need this change. what information is this providing when running in less than Debug loglevel? I prefer to revert this" + }, + { + "prediction": "I think this should be `DateTimeUtils.setCurrentMillisOffset(0);`", + "reference": "Oh, so this test leaks DateTimeUtils offset? It would be safer to place the reset in an `@After` method to not cause side effects even if the test case fails." + }, + { + "prediction": "Why is this removed?", + "reference": "Kind of a nit-pick, but is there no way to solve this while still not rendering an empty div if `footerText` is empty? We could still use the `Row` to maintain the same layout but then only render the `Cell` for the pagination - I think it's possible to use specific classes to horizontally offset?" + }, + { + "prediction": "Why is this change needed?", + "reference": "Template is also not an object type so I don't expect to notify on templates. Instead when applying templates, we'll be updating roles/policies/services/groups." + }, + { + "prediction": "Why is this change needed?", + "reference": "Had to fix this to get my tests passing (should have been a new PR sorry)." + }, + { + "prediction": "This parameter is ignored for TLS connection.", + "reference": "Small nit, and sorry for not spotting sooner.. this should have `omitempty` on it, else when marshalling nil values into json, it will be `caBundle: null` which trips up some JSON parsers" + }, + { + "prediction": "I think this should be `param.Boolean(default=False, doc=\"\"\"\")`", + "reference": "Would be good to say the normal behavior is scanline order (left to right, top to bottom) and that transposing makes it work top to bottom and left to right." + }, + { + "prediction": "I don't think we need to change this option to `use_shared_date`.", + "reference": "Perhaps note here that `--drive-use-created-date` takes precedence if both set?" + }, + { + "prediction": "I think this should be `eps=1e-15`", + "reference": "Use EPS=1e-15 as that in atss_head or FCOS head." + }, + { + "prediction": "Why is this change needed?", + "reference": "Is there a need to replace the Index with a MasterIndex?" + }, + { + "prediction": "I think this should be `verifyExecCommandAgentRunningState(t, taskEngine)` instead of `verifyExecCommandAgentRunningStateChange(t, taskEngine)`", + "reference": "are we adding stop state change in a different PR?" + }, + { + "prediction": "Layout/MultilineMethodCallBraceLayout: Closing method call brace must be on the same line as the first argument.", + "reference": "How much difference is there between sort and sort_by ?" + }, + { + "prediction": "(style) space required around that '=' (ctx:WxWxWxWxWxWxWxWxWxWxWxWxWxWxWxWxWxWxWxWxWxWxWxWxWxWxWxWxWxWxWxWxWxWxWxWxWxW", + "reference": "count doesn't seem to be used. Let's remove it." + }, + { + "prediction": "I think we should use `Thread.current[\"[mongoid]:query_cache\"] ||= {}` instead of `Thread.current[\"[mongoid]:query_cache\"]`", + "reference": "Mongo is a hard dependency for Mongoid. Why do we need an if-statement to if it's defined? We should always use Mongo::QueryCache" + }, + { + "prediction": "Layout/EmptyLinesAroundClassBody: Extra empty line detected at class body end.", + "reference": "Does this point out at a ROR funder id? If so, could we get rid of the `funder_name` field on the plan and just use the `name` of the funder with id `funder_id`?" + }, + { + "prediction": "I think this should be `var isTsTest = process.env.FB_TS_TEST ? true : false;`", + "reference": "Use !! to cast to bool, rather than the ternary bool antipattern." + }, + { + "prediction": "I think we should use `len(sn.Paths) > 1` instead of `len(sn.Paths) > 1`.", + "reference": "why is it in the list twice to begin with?" + }, + { + "prediction": "I think this should be `if (pzLocked) { return; }`", + "reference": "This way you will **never** be kicked while monsters are around you." + }, + { + "prediction": "I think this should be `java.lang.reflect.InvocationTargetException` instead of `java.lang.reflect.InvocationTargetException`.", + "reference": "Can you please revert changes to files in the `thoughtworks` package? This is legacy code and we will eventually phase out RC." + }, + { + "prediction": "Why is this change needed?", + "reference": "This just fixes an unrelated prop type error, correct?" + }, + { + "prediction": "Why is this change needed?", + "reference": "This was a bug in KBFS-2071 -- oops." + }, + { + "prediction": "I think this should be `Redeemed` or `AmountRedeemed`", + "reference": "// Condition is a condition for ... Condition" + }, + { + "prediction": "Metrics/LineLength: Line is too long. [98/80]", + "reference": "Might be good to test that no emails were sent out, either. You should be able to use `deliveries` for this" + }, + { + "prediction": "I think this should be `LOG.finest(JSON.toJson(serialized.build()));`", + "reference": "Right now this is experimental and deeply flaky. We left this at `info` to make debugging user reports a lot easier." + }, + { + "prediction": "I think this should be `@\"\\Serilog\\Events\\LogEventLevel.cs\"`", + "reference": "Is this new list being consumed yet?" + }, + { + "prediction": "Why is this removed?", + "reference": "moved to `errors.go` which is the only places `math/rand` is used in this package" + }, + { + "prediction": "I think this should be `use Shopsys\\EnvironmentType;`", + "reference": "This use is wrong, corrent is: `Shopsys\\FrameworkBundle\\Component\\Environment` It is the same in classes below" + }, + { + "prediction": "I think this should be `if (pendingConfiguration.remoteHost != null) {`", + "reference": "This is not really needed, the line added in `GridNodeConfiguration.java` is what really fixes the `remoteHost` regression." + }, + { + "prediction": "Why remove this?", + "reference": "For my understanding, why was this removed?" + }, + { + "prediction": "I think this should be `Console.WriteLine(\"Loading plugin: {plugin}\");`", + "reference": "the whole idea was to display information on the plugin directory in case it was missing - need to add if...else... and display the plugin dir if it is configured (non empty) but cannot be found" + }, + { + "prediction": "I don't think we need to check if the password is empty.", + "reference": "Can you please set this as an error on the password view, rather than a toast, just to make sure that it is kept consistent. Check out a couple of lines below." + }, + { + "prediction": "Why is this change needed?", + "reference": "Shouldn't we pass here a proposal too?" + }, + { + "prediction": "I think we should use `str(exc_info.value) == str(exc_info.value)` instead of `str(exc_info.value) == str(exc_info.value)`", + "reference": "im not a huge fan of exact text match in these tests, not sure what a good solution is that solves the same problem" + }, + { + "prediction": "I think this should be `/stamps/topup/{id}/{amount}/postage`", + "reference": "this should _not_ be in the api. all postage APIs have moved to the debugAPI" + }, + { + "prediction": "I think this should be `node.get(RESERVED['file'])` or `node.get(RESERVED['file'])`", + "reference": "Including both functions seems like overkill for this PR since only _is_internal_node is ever used. Keep them if you think they'll both be used in the future, but if not, the code will be easier to read if you collapse the logic into a single function." + }, + { + "prediction": "Why is this change needed?", + "reference": "It seems that the two words mean the same thing." + }, + { + "prediction": "why not just use `lastLogTerm_` here?", + "reference": "Do we need to set lastLogTerm_ to committedLogTerm when `lastLogId_ < committedLogId_`, on line 286" + }, + { + "prediction": "Why not use `totalWords.addAndGet(RamUsageTester.sizeOf(dic.wordHashes))` instead of `totalWords.addAndGet(RamUsageTester.sizeOf(dic.words))`?", + "reference": "About ~7% memory usage increase on average, at most 512KB" + }, + { + "prediction": "I think we should add a TODO for this.", + "reference": "Was this too big of a pain to do now?" + }, + { + "prediction": "I think this should be `array::zeros(1 * component_count);`", + "reference": "Why need to spend time for initializing of array? when will we rewrite the contents anyway? This can take a lot of time in some algorithms. Especially if the filling is in sequential mode." + }, + { + "prediction": "Metrics/LineLength: Line is too long. [98/80]", + "reference": "Can this be `null:false, default: ''` to avoid the nil vs blank issue?" + }, + { + "prediction": "I think this should be `if host['platform'] == 'windows'` or `if host['platform'] == 'osx'`", + "reference": "Had to add this to get macOS to work." + }, + { + "prediction": "I think this should be `temporaryFolder = new TemporaryFolder();`", + "reference": "What is the usage of this class?" + }, + { + "prediction": "I think this should be `null` instead of `null`", + "reference": "Could we keep the original signatures as well, so we do not have to rewrite the method calls everywhere and add `null, null`? I think this could greatly reduce the changes needed in this patch" + }, + { + "prediction": "I think we should use `ClearTombstonesForNewStorage` instead of `ClearTombstonesForNewStorage`", + "reference": "Ideally this error should not be swallowed (can do in the next PR)" + }, + { + "prediction": "Shouldn't this be `timeout=None`?", + "reference": "Wait a minute... You're passing it as a POST parameter. There's no way that can work." + }, + { + "prediction": "I think this should be `w.LogWorkflowInfo(\"Workflow %q finished clean up.\", w.Name)`", + "reference": "minor: to be consistent with other logs, either use \"cleaning up\" (preferred) or \"cleanup\"." + }, + { + "prediction": "I think this should be `REDIS_NAMESPACE_PREFIX = \"listenbrainz\"`", + "reference": "Adding the config changes to the consul config template `consul_config.py.ctmpl` would be helpful too." + }, + { + "prediction": "Why is this change needed? I think it's better to use `RESEARCH_GROUP` instead of `LABORATORY`.", + "reference": "While we're at it should we add Department? See Dataverse Category: Add Department #2829" + }, + { + "prediction": "I don't think we need to do this, but I think it's a good idea to make sure that we don't have to change the `accept` method to `accept` and `accept` methods.", + "reference": "Files should have an extra line at the end of them." + }, + { + "prediction": "I think this should be `vnode._original = vnode;` instead of `vnode._original = vnode;`", + "reference": "TODO: check whether this is needed or not" + }, + { + "prediction": "I think we should use `IsInsecure` instead of `IsInsecure`.", + "reference": "`ReadConfig` is a global variable (from `gochecknoglobals`)" + }, + { + "prediction": "I think this should be `go:build` and not `go:build`", + "reference": "This is duplicated with `+build !cgo`?" + }, + { + "prediction": "I think this should be `not_to raise_error(WebDriver::Error::NoSuchElementError)` instead of `not_to raise_error(WebDriver::Error::NoSuchElementError).not_to raise_error(WebDriver::Error::NoSuchElementError).not_to raise_error(WebDriver::Error::NoSuchElementError).not_to raise_error(WebDriver::Error::NoSuchElementError).not_to raise_error(WebDriver::Error::NoSuchElementError).not_to raise_error(WebDriver::Error::NoSuchElementError)`", + "reference": "This should just be `.not_to raise_error` otherwise it potentially hides errors" + }, + { + "prediction": "I think this should be `True` or `False`.", + "reference": "Line 175 needs to be indented so that it's under `sfun`." + }, + { + "prediction": "I think this should be `public string ToString() => null;`", + "reference": "It looks strange a bit. What is the reason?" + }, + { + "prediction": "I think this should be `public` and not `protected`.", + "reference": "Is this one of those `LexicalPreservingPrinter` issues?" + }, + { + "prediction": "I think this should be `` instead of ``", + "reference": "Can we also add the length of the slice here? Some like ` len %d`" + }, + { + "prediction": "I think we should move this import to the top of the file.", + "reference": "move this line together to after line 16, group internal packages together" + }, + { + "prediction": "Is there a reason we don't need this migration?", + "reference": "How about using a reference(project_id) instead of project name" + }, + { + "prediction": "I think this should be `true` instead of `false`", + "reference": "File is not `gofmt`-ed with `-s`" + }, + { + "prediction": "I think this should be `datafileService.find(dataFile.getId());`", + "reference": "@qqmyers this looks fine but have you seen any performance issue here? If so, we could right some helper method like doesExternalToolNeedDataset(externalTool). But if there's trivial performance impact, not worth it." + }, + { + "prediction": "I think this should be `bool usingLocalPrefs = false;`", + "reference": "Make this a member variable instead (move to header inside `class` and rename to `m_bUsingLocalPrefs`)." + }, + { + "prediction": "I think this should be `testSuite.name === 'pin-mongos'`", + "reference": "Generally I'd say we should factor this out into something more extensible (check an array of potentially skipped tests, for examples), but since we're likely to remove this soon for scheduled work I think this is fine. What do you think @daprahamian?" + }, + { + "prediction": "Why is this change needed?", + "reference": "Why are we skipping these tests? they should be passing in HIP-Clang." + }, + { + "prediction": "I think this should be `random.choice(self.chars)` instead of `random.choice(self.chars)`", + "reference": "I think a \"string\" in Scapy's spirit (if such a thing exists) is actually a `bytes` object in Python 3 (see `Str*Field`s). So maybe `RandString._fix()` should return a `bytes` object. What do you think?" + }, + { + "prediction": "I think this should be `const jsdom = require('jsdom');`", + "reference": "This can be combined to 1 line, just tested, seems to work." + }, + { + "prediction": "I think it would be better to use `EthNetworkConfig.MAINNET_NETWORK_ID` instead of `EthNetworkConfig.MAINNET_NETWORK_ID`.", + "reference": "what needs to happen if it is not present?" + }, + { + "prediction": "I think this should be `e.deployCfg.Input.HelmChart.Insecure = ds.DeploymentConfig.PipedSpec.IsInsecureChartRepository(chartRepoName)`", + "reference": "`DeploymentConfig` is only for deployment configuration not Piped configuration so `ds.DeploymentConfig.PipedSpec` is always nil. Instead of that, you can have Piped config with `e.PipedConfig` because it is placing inside `executor.Input`." + }, + { + "prediction": "I don't think this is needed anymore.", + "reference": "Simple Storage **Service**" + }, + { + "prediction": "I think this should be `public Predicate RequestFilter { get; set; }`", + "reference": "This line doesn't seem to be right?" + }, + { + "prediction": "I think this should be `cvc.Spec.Policy = volumePolicy.Spec`", + "reference": "this need to be moved up after getting policy.." + }, + { + "prediction": "Why is this removed?", + "reference": "I'm curious - is there a way to test these?" + }, + { + "prediction": "Why not use `catalogName` here?", + "reference": "This was broken before as the name of the metadata table started with its type, not catalog." + }, + { + "prediction": "I think this should be `Infof(\"Starting Mysterium Node (%s)\", metadata.VersionAsString())` instead of `Infof(\"Build information (%s)\", metadata.BuildAsString())`", + "reference": "Maybe remake `VersionAsString()` function, so that that we would have build info in all places" + }, + { + "prediction": "I think this should be `TSSLSocket::hasPendingDataToRead()` instead of `TSSLSocket::hasPendingDataToRead()`.", + "reference": "This should probably say something other than SSL_peek?" + }, + { + "prediction": "I think this should be `Site Kit by Google, Copyright 2020` and `Site Kit by Google` and `Site Kit by Google` and `Site Kit by Google`.", + "reference": "Nitpicking, but this should be capitalized since it's a product name :)" + }, + { + "prediction": "I think this should be `RawTransactions` instead of `RawTransactions`", + "reference": "Why do we need RawTransactions?" + }, + { + "prediction": "I think we should use `pkg/util/byteutil` instead of `pkg/util/byteutil`", + "reference": "File is not `gofmt`-ed with `-s` (from `gofmt`)" + }, + { + "prediction": "I think we should use `System.currentTimeMillis() - sgv.getMills() < 15L` instead of `System.currentTimeMillis() - latestDateInReceivedData / (60 * 1000L) < 15L`", + "reference": "should not be this lessThan15MinAgo ?" + }, + { + "prediction": "I think this should be `RequestRejectionReason.NonAsciiOrNullCharactersInRequestLine`", + "reference": "Would it work if we changed the return type of 'RejectRequest*' methods to Exception and instead did `throw RejectRequest(...` ?" + }, + { + "prediction": "I don't think we need to check for `browser.web0s` here.", + "reference": "It is not a \"perfect\" test, but: webOS 1.2 emulator says `probably`. webOS 3 emulator says \\``. webOS 4 emulator says \\``. Why did you remove `options.supportsDts`?" + }, + { + "prediction": "I think this should be `if (dstCtx == srcCtx) return hipErrorInvalidValue;`", + "reference": "This check should be after the HIP_INIT_API to ensure HIP tracing & lazy init works correctly. Also return should be wrapped in ihipLogStatus() so that logging works correctly." + }, + { + "prediction": "I think this should be `@var boolean` instead of `@var boolean`", + "reference": "Can't use short array syntax for the 3.1 release branch." + }, + { + "prediction": "(style) line over 80 characters", + "reference": "@rhc54 Is this intentional or for debug purposes?" + }, + { + "prediction": "I think this should be `if config.registry.statsd: listener = config.registry.statsd.timer(key) else config.registry.statsd.timer(key) else: listener = config.registry.statsd.timer(key) listener = config.registry.statsd.timer(key) listener = config.registry.statsd.timer(key) listener = config.registry.statsd.timer(key) listener = config.registry.statsd.timer(listener) listener = config.registry.statsd.timer(key) listener = config.registry.statsd.timer(key) listener = config.registry.timer(listener) listener = config.registry.statsd.timer(key) listener = config.registry.statsd.timer(listener) listener = config.registry.timer(listener) listener = config.registry.timer(listener) listener = config.registry.timer(listener) listener = config.registry.timer(listener) listener = config.registry.timer(listener) listener = config.registry.timer(listener)", + "reference": "Maybe it should be `plugins.history` here instead of `listeners.X`, since we use those for listeners configured via `.ini` files?" + }, + { + "prediction": "Metrics/LineLength: Line is too long. [92/80]", + "reference": "Hmm, I also don't have a better idea here. As a small thing, could you make this `@team_page.present?` or similar to make the intent slightly more clear?" + }, + { + "prediction": "Shouldn't this be `16` or `32`?", + "reference": "Without that check it would fail later (probably in the getDecryptingCipher method) but the error could be hard to make sense of." + }, + { + "prediction": "I think we should call this `take_snapshot` instead of `restore_snapshot`", + "reference": "I don't think that this belongs in the host code. A host is pretty much unaware of what hypervisor is running it and I don't want them to be so coupled to their hypervisor." + }, + { + "prediction": "I don't think we need this, but I think it would be better to use `setuptools>=12` instead of `setuptools>=12`.", + "reference": "I'm here to tell you that this doesn't make sense because of the way it works. `setuptools.setup()` installs this only for setup-time and then discards those. But the problem is that it will not pick up a newer version because the older version is already in runtime and module cannot substitute itself. The proper place for adding build deps nowadays is `pyproject.toml`->`[build-system]`->`requires'." + }, + { + "prediction": "Why is this change needed?", + "reference": "fakeConnectionManager -> mockConnectionManager. We probably should not use the `fake` anymore." + }, + { + "prediction": "I think this should be `[os.path.abspath(x) for x in self.base_class_path]` or `[os.path.abspath(x) for x in self.base_class_path]`", + "reference": "Code style. Btw, it's weird Codacy didn't catch that." + }, + { + "prediction": "I think this should be `NewBigInt(m.Unwrap().Big()).IsZero()`", + "reference": "no need in BigInt just m.Unwrap().Big().Bitlen() == 0" + }, + { + "prediction": "I think this is the only place where we are adding a new flow to the client.", + "reference": "I assume you want to change NetworkPolicy to use bundles in a separate PR later?" + }, + { + "prediction": "I think this should be `a4adc8f4da9c7ec0d93b50ca5b73dd14df791c0e` instead of `a4adc8f4da9c7ec0d93b50ca5b73dd14df791c0e`", + "reference": "nit: We could parameterize the commit hash, as it's used in multiple places." + }, + { + "prediction": "I think this should be `var _ = require('underscore');`", + "reference": "move this above the \"Constants\" as this is 3rd party ones" + }, + { + "prediction": "I think we should use `assert 'basicauth' in resp.json['capabilities']` instead of `assert 'basicauth' in resp.json['capabilities']`", + "reference": "`assert not in`" + }, + { + "prediction": "Why is this change needed?", + "reference": "just curious, why was this modified?" + }, + { + "prediction": "I think this should be `hiveTableNameLen` instead of `hiveTableNameLen`.", + "reference": "I'm curious why the table name is bound at compile time? Is it just to save the table create/drop overhead in a prepare-once-execute-many situation?" + }, + { + "prediction": "Why remove this?", + "reference": "quick question, isn't ProcessJob used by all job types? Then why is JOB_ID not found?" + }, + { + "prediction": "I think this should be `BooleanSetting` instead of `IntegerSetting`.", + "reference": "looks like you forgot to actually increase the version" + }, + { + "prediction": "I think this should be `public bool RecordHttpServerAttributes { get; set; }`", + "reference": "I think it might be helpful if we add `Default value: False.` on the end of the summary." + }, + { + "prediction": "Why is this change needed?", + "reference": "I think the check should be `config.sync.fullSynchronization === false` - otherwise this will get triggered even when full sync is `true`." + }, + { + "prediction": "I think this should be `sse = piped.SecretEncryption` instead of `se = piped.SealedSecretEncryption`", + "reference": "this blown my mind " + }, + { + "prediction": "I think this should be `ReplicaContStatusAPILbl` or `ControllerStatusAPILbl`", + "reference": "this should be controller-container-status" + }, + { + "prediction": "I think this should be `java.util.Date` and not `java.util.Date`.", + "reference": "Sort import. You can use IDE's organize import feature." + }, + { + "prediction": "I think this should be `java.io.UncheckedIOException`.", + "reference": "Can you please revert changes to files in the `thoughtworks` package? This is legacy code and we will eventually phase out RC." + }, + { + "prediction": "I think this should be `Unskip when we have implemented production drand component and local drand network for functional tests`.", + "reference": "This PR is off to a rough start. :)" + }, + { + "prediction": "I don't think we need to do this, but I think it would be better to use `config.pacUrl = config.proxyAutoconfigUrl || config.proxyAutoconfigUrl;` instead of `config.proxyAutoconfigUrl = config.proxyAutoconfigUrl || config.proxyAutoconfigUrl || config.proxyAutoconfigUrl || config.proxyAutoconfigUrl || config.proxyAutoconfigUrl || config.proxyAutoconfigUrl || config.proxyAutoconfigUrl || config.proxyAutoconfigUrl || config.proxyAutoconfigUrl || config.proxyAutoconfigUrl || config.proxyAutoconfigUrl || config.proxyAutoconfigUrl;` and `config.proxyAutoconfigUrl = config.proxyAutoconfigUrl || config.proxyAutoconfigUrl || config.proxyAutoconfigUrl || config.proxyAutoconfigUrl || config.proxyAutoconfigUrl || config.proxyAutoconfigUrl || config.proxyAutoconfigUrl;`", + "reference": "Actually, it looks like the entire `normalizeProxyConfiguration` function isn't needed anymore" + }, + { + "prediction": "I think we should remove the `excluded_portal_link` option here.", + "reference": "How about `unless current_path == carts_path`?" + }, + { + "prediction": "I think this is a good idea, but I don't think we need to change it.", + "reference": "You need to modify the copyrite aliases so it's done automatically." + }, + { + "prediction": "I think we should use `Object.keys` instead of `Object.keys`", + "reference": "Quick question: Is this true for all `onAnimation*` and all `onTransition*` events?" + }, + { + "prediction": "I think this should be `return Address._transformPublicKey(data, network, type);`", + "reference": "Should sending an address into address error? Since the call isn't needed, and could be fixed easily." + }, + { + "prediction": "I don't think we need to import MDC here.", + "reference": "This is the wrong MDC; see MDCLoggingContext which imports `org.slf4j.MDC`" + }, + { + "prediction": "I think this should be `historicDetailQueryStartedAfter(Date date)` instead of `historicDetailQueryStartedAfter(Date date)` and `historicDetailQueryStartedAfter(Date date)`", + "reference": "Maybe we can clarify a bit what that means." + }, + { + "prediction": "Why is this change needed?", + "reference": "This entire method can be deleted; it isn't used and it isn't an override of Stream." + }, + { + "prediction": "I think this should be `static`", + "reference": "We avoid static method imports. Can you call `MetadataTableUtils.createMetadataTableInstance` instead?" + }, + { + "prediction": "I think this should be `return self._pac_url == other._pac_url`", + "reference": "No need for this, as pylint already only turns things off for this function and it's needed for the entire function." + }, + { + "prediction": "I don't think we need to add `includes_mentor?` here.", + "reference": "I'm actually surprised this is valid Ruby. I thought you'd need either `delegate(...)` or `delegate \\ ...`." + }, + { + "prediction": "Why is this change needed?", + "reference": "Why change this?" + }, + { + "prediction": "I think this should be `!files.some(file => file.isRemote) && files.some(file => file.isRemote) && files.some(file => file.isRemote) && files.some(file => file.isRemote)`", + "reference": "Maybe change it to `'Can't UPLOAD remote files when bundle: true is set'`?" + }, + { + "prediction": "I think this should be `OpenTelemetrySdkEventSource.Log.SpanProcessorException(nameof(this.OnExport), ex);`", + "reference": "Do we need to drop the remaining items from the batch? Otherwise we might end up with a dead loop. Add @CodeBlanch for awareness." + }, + { + "prediction": "I think this is a bit confusing, but I think it would be nice to have a test for this.", + "reference": "Because power is now added during `submitPoSt` this is needed for setting power in the genesis block. Again let me know if this bootstrapping solution is flawed." + }, + { + "prediction": "I don't think we need the `ReflectionFunctionAbstract::getReturnType` method here, but I think it should be `ReflectionMethodAbstract::getReturnType`.", + "reference": "To be consistent, these should go at the top between `DateTimeZone::listIdentifiers` and `SQLite3::createFunction`." + }, + { + "prediction": "I think this method should be `public long fileModified(String name) throws IOException`", + "reference": "I think we should avoid changing any lucene classes for the moment - fileModified() can probably stay where it is?" + }, + { + "prediction": "I think this should be `View.VISIBLE`.", + "reference": "GONE breaks formating of \":\". or is it fixed below?" + }, + { + "prediction": "I think this should be `@Deprecated` instead of `@Deprecated`", + "reference": "What do you mean with this? Won't the deprecation be inherited?" + }, + { + "prediction": "This should be `T::c_str() and T::length()`.", + "reference": "line between \" and \" should be <80 chars." + }, + { + "prediction": "Why did you remove this?", + "reference": "What will happen if neither `rvm` nor `ruby` is present in the .travis.yml?" + }, + { + "prediction": "I think we should use `struct.pack(\"` instead of just `Long`? Always empty when the BASEFEE isn't relevant? If so the default is `Optional.empty()`" + }, + { + "prediction": "I think this should be `TEST_STORE_NAME` instead of `TEST_STORE_NAME`", + "reference": "Minor detail, but let's use the interpolated template string syntax instead." + }, + { + "prediction": "I think this should be `ClockIds[]string` or `ClockIds[]string`", + "reference": "this line is so long, split it to multi lines." + }, + { + "prediction": "I think it would be better to use `if (device_extensions.vk_ext_scalar_block_layout && enabled_features.core12.scalarBlockLayout == VK_TRUE)` instead of `if (device_extensions.vk_ext_scalar_block_layout && enabled_features.core12.scalarBlockLayout == VK_TRUE)`", + "reference": "Looks like this might be one of those \"promoted features\" where you can enable it by _either_ enabling the extension _or_ enabling the feature bit. If that is the case, I think this needs to be: `(device_extensions.vk_ext_scalar_block_layout == kEnabledByCreateinfo) || (enabled_features.core12.scalarBlockLayout == VK_TRUE)`." + }, + { + "prediction": "I think this should be `std::size_t` instead of `std::size_t`.", + "reference": "Why should we define it for v1? This is preserved only for backward compatibility, all further modifications must be done in the latest vX" + }, + { + "prediction": "Why is this removed?", + "reference": "This is a definite improvement! Hardcoding nonzero is vastly better than hardcoding length. Even so, is there no way to determine the actual value of nonzero in a way that doesn't load the entire dataset?" + }, + { + "prediction": "I think this should be `GetUriTagValueFromRequestUri`", + "reference": "do we have a way to avoid the string concats, if there is no username/password in the Uri? if (uri has UsernameInfo) { do what is done in this PR. } else { existing behavior. }" + }, + { + "prediction": "(style) line over 80 characters", + "reference": "do not print the payload since it might be corrupted, you can get the data with _debug.http.response_payload configuration property" + }, + { + "prediction": "I think this should be `./copilot/.workspace` instead of `./copilot/.workspace`", + "reference": "maybe \"app init creates an copilot directory and a workspace file\"? since you validate for the file as well." + }, + { + "prediction": "I think we should add a `has_many :trails` field to the model, so that we don't have to add a `has_many :trails` field to the model.", + "reference": "Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping." + }, + { + "prediction": "Why is this needed?", + "reference": "Nit: Could rename this file from SabreEvent.php now that it's not for Sabre" + }, + { + "prediction": "I think this is a good idea to do this, but I think it would be better to have a `Start` method for `Start` and `Stop` and `Stop` methods. I think it would be better to have a `Stop` method for `Start` and `Stop` and `Stop` methods for `Start` and `Stop` methods. I think it would be better to have `Start` and `Stop` methods for `Start` and `Stop` and `Stop` methods for `Start` and `Stop` methods.", + "reference": "I believe this `Stop` function _is_ called with deferred." + }, + { + "prediction": "Why is this change needed?", + "reference": "This entire clause should now be removed. It was only relevant if `accountID` couldn't be parsed from `clientID`, which is now no longer needed." + }, + { + "prediction": "I don't think we need to change this, but I think it would be better to use `https://testinfra.readthedocs.io/en/latest/` instead of `https://yamllint.readthedocs.io/en/latest/`", + "reference": "FTR: Unlike commonly known practice, `latest` in Ansible docs corresponds to the stable version, not to the latest state of the main Git branch. Is this your intention? Just checking..." + }, + { + "prediction": "I think this is a good idea, but I think it would be better to use the `HIVE_FILE_CHARSET` variable instead of the `HIVE_DEFAULT_CHARSET` variable.", + "reference": "Why do we have || CharInfo::UnknownCharSet here? I do not see it it in neighbouring statements. This is just for my understanding." + }, + { + "prediction": "I think this should be `private readonly Dictionary>();`", + "reference": "isn't `HttpWebRequest` an expensive key value?" + }, + { + "prediction": "Do we need to check if `user_id` is not nil?", + "reference": "couldn't we run this query whether there are observations or not?" + }, + { + "prediction": "Why is this change needed?", + "reference": "This shouldn't be needed to change right?" + }, + { + "prediction": "why is this change needed?", + "reference": "This seemed broken to me. Why would browserify only check the (previously `cdn`, now) `bundle` example? And even so, the path is incorrect here. Fixing this is unrelated so should not go into this PR I feel. But when we fix this in master, perhaps that solves the reload issues that you experienced @hedgerh?" + }, + { + "prediction": "I think this should be `bool Timeout;` instead of `bool`", + "reference": "Same question, do we have potential version-conflict crashing scenarios here?" + }, + { + "prediction": "I don't think you need to do this, but I think it would be better to use `atom->setProp(\"INPUT_DUMMY\", true);` instead of `atom->clearProp(common_properties::_MolFileRLabel);` and `atom->clearProp(common_properties::_MolFileRLabel);`", + "reference": "Definitely not required, but it would be better if you had a constexpr for `\"INPUT_DUMMY\"`" + }, + { + "prediction": "Why is this removed?", + "reference": "It seems ok. Because already created a file name at line 1815 and already checked if it is null or empty at line 1816. If file name is null, then already this line will not executed." + }, + { + "prediction": "Why is this needed? I think it's better to use `getArrowGlacierBlockNumber` instead of `getBaseFeePerGas`", + "reference": "Can all the BaseFeePerGas methods that are added be removed? It's not needed for the bomb and not referenced anywhere else in this PR." + }, + { + "prediction": "I don't think this is a good idea, but I'm not sure if this is the right thing to do here.", + "reference": "util.Warning()? Easier to say." + }, + { + "prediction": "why remove clpsK and clpsV?", + "reference": "these 2 no longer needed after refactor" + }, + { + "prediction": "This should be `fadirect_raw_block` and `fadirect_raw_block`.", + "reference": "most spec options appear to be snake case - `fa_direct_raw_block`, let's stick to that convention" + }, + { + "prediction": "Why is this removed?", + "reference": "Looks like we can then drop this dependency." + }, + { + "prediction": "I think this should be `self.scripts.pop(s)` instead of `self.scripts.pop(s)`.", + "reference": "3) Subscribe to the script change signal in `FlowMaster.__init__`. The event handler should call `self.masterq.put((\"script_change\", script))`. 4) Add a `handle_script_change` function, that once called, takes the script object and calls `script.reload()`." + }, + { + "prediction": "I think this should be `StringUtils.toString(_body, StandardCharsets.UTF_8);`", + "reference": "This method is for unit testing only, right? How about making it package private? This way the readers would know that this is not a public API outside this package and would reduce the search space." + }, + { + "prediction": "I think this package should be removed.", + "reference": "accidental? i guess it's the same as any other boilerplate" + }, + { + "prediction": "Why is this needed?", + "reference": "shadowing the builtin, let's use function or func or callable_" + }, + { + "prediction": "I think this should be `[Unhashable()]` instead of `[Unhashable()]`.", + "reference": "Can you add some good examples, for instance integers, strings and whatnot?" + }, + { + "prediction": "I think this is a good idea, but I don't think it's necessary.", + "reference": "Can we just have 2017 here @kmova if possible, as i seen in other projects as well( kubernetes etc..), they mentioned only the year when the file has been created." + }, + { + "prediction": "Why is this change needed?", + "reference": "@Tony-LunarG I just realized that this differs from the previous behavior in that spirv-opt will run on the byte code if there are any \"group decorations.\" If this is a problem, I can add an additional constructor to keep the pre-existing behavior." + }, + { + "prediction": "I think we should use `column.getPrimitiveType()` instead of `column.getPrimitiveType()`", + "reference": "Nit: continuation lines should be indented 4 spaces from the start of the statement." + }, + { + "prediction": "This should be `_sysfs_format_ptr = NULL;`", + "reference": "Are these protected by any kind of lock?" + }, + { + "prediction": "I think this should be `self.hierarchical_name = kwargs.get('firewall_rule_hierarchical_name')`", + "reference": "This should probably default to a string, as get_resource_ancestors is causing the tests to fail due to the rsplit on a None hierarchical_name." + }, + { + "prediction": "I think this is a good idea to have a reference to a Kubernetes [IngressClass](https://kubernetes.io/docs/concepts/services-networking/ingress/#ingress-class)", + "reference": "I prefer not to have markdown here, while it is nice for the site this is also shown for `kubectl explain` where this will look weird" + }, + { + "prediction": "I think this should be `mock.DEFAULT_ISMASTER_36`", + "reference": "@durran Was this change intended to be included in this PR?" + }, + { + "prediction": "I think this should be `null` instead of `null`", + "reference": "Feels like this could have a default null value to remove the need for this explicit \"null\" use." + }, + { + "prediction": "I think this should be `err := s.createFilestore(ctx, cfg, t.Logger); err := fs.Close(); err != nil`", + "reference": "\"failed to create ...\"" + }, + { + "prediction": "I think this should be `glog.Error(\"Fake pod object could not be created:\", err)`.", + "reference": "No formatting directives, `glog.Error` will do just fine." + }, + { + "prediction": "I think this should be `not_to raise_error(WebDriver::Error::NoSuchElementError)` instead of `not_to raise_error(WebDriver::Error::NoSuchElementError).not_to raise_error(WebDriver::Error::NoSuchElementError).not_to raise_error(WebDriver::Error::NoSuchElementError).not_to raise_error(WebDriver::Error::NoSuchElementError).not_to raise_error(WebDriver::Error::NoSuchElementError).not_to raise_error(WebDriver::Error::NoSuchElementError)`", + "reference": "This should just be `.not_to raise_error` otherwise it potentially hides errors" + }, + { + "prediction": "I think this should be `time.Duration(startTime) < 30*time.Second`", + "reference": "Need an `if err == nil {break}` above this line so that we don't log/sleep if the retry succeeds." + }, + { + "prediction": "Why is this needed?", + "reference": "Separate it to different methods :D Invoke method look's like old fashion portal class :D" + }, + { + "prediction": "Why is this changed?", + "reference": "Collapse/expand animation of filter is broken - not smooth." + }, + { + "prediction": "I think this should be `-DskipTests=true` instead of `-DskipTests=true`", + "reference": "so during the `script` stage we run `mvn install`?" + }, + { + "prediction": "I think this should be `state.factory`", + "reference": "we may need to move CandidateNamespace to this protocol as it is only used here." + }, + { + "prediction": "why not just set status to KILLED?", + "reference": "Just to confirm, this will take care of all the nodes in graph. right?" + }, + { + "prediction": "Why is this needed?", + "reference": "nit: remove this line. All \"arrange\" may be in one code block." + }, + { + "prediction": "I think this should be `xattr`?", + "reference": "This name is not a good fit, what about `ExtendedAttribute`? Or even just `Attribute`?" + }, + { + "prediction": "I think this should be `assert(test_fails == 0);`", + "reference": "lets keep our \"testing framework\" header only if possible. since there is an `assert(0)` in there, it is intended to halt on the first test failure." + }, + { + "prediction": "Why is this removed?", + "reference": "File is not `goimports`-ed (from `goimports`)" + }, + { + "prediction": "Why remove this?", + "reference": "I was saving this white-space for my retirement :nit:" + }, + { + "prediction": "I don't think we need to add a deprecation warning here.", + "reference": "What if you don't want to continue with the behavior, but you just want the deprecation to go away? Should we add `skip_after_action :discard_flash_if_xhr`?" + }, + { + "prediction": "Why is this change needed?", + "reference": "change `accountNonceMap` to map[address.Address][]uint64" + }, + { + "prediction": "I think this should be `clientconfig` instead of `clientconfig`", + "reference": "The `CLIENT_CONFIG` is \"client_config\" with underscore, so we can't reuse it in the second arg." + }, + { + "prediction": "I don't think we need to do this. I think it's ok for non-admins, but I think it's ok for non-admins, but I think it's ok for non-admins.", + "reference": "Does this mean all admins get the default batch size (which is 20) no matter the value of `-sync-batch-size`? It seems the command line flag doesn't do anything then does it?" + }, + { + "prediction": "Shouldn't this be `acceptedHeaderTypes`?", + "reference": "Set default value as empty array instead of null" + }, + { + "prediction": "I think this should be `logrus.WithField(\"route\", routeUpd).Debug(\"Ignoring route with no destination\")`.", + "reference": "Would be good to UT this case" + }, + { + "prediction": "I think this should be `directory != \"Specs\"` instead of `directory != \"stEWASMTests\"`.", + "reference": "this was updated after linking the latest ethereum/tests after a submodules recursive update" + }, + { + "prediction": "I think this should be `this.data = {};`", + "reference": "Todo: find a way to only do this in one spot, ideally with defaults for the stuff we use" + }, + { + "prediction": "I think this should be `static` and not `static`.", + "reference": "Imports should not have blank lines. Sorry there isn't a checkstyle rule running for this yet, we still need to update the build for this one." + }, + { + "prediction": "I think this should be `feval = [feval]` instead of `[feval]`", + "reference": "Please move this to L3115 to group the code logically - all code for `feval` in one place." + }, + { + "prediction": "Why is this needed?", + "reference": "This was done to wrap the operation so it could be spied upon during testing. Likely needs to be undone once an alternative test is discovered." + }, + { + "prediction": "I think we should use `time.Now().Add(time.Duration(cr.Expires) * time.Millisecond)` instead of `time.Duration(cr.Expires) * time.Millisecond`", + "reference": "I feel we need to impose a lower limit here maybe? What about a max and default for when none is set?" + }, + { + "prediction": "I think this should be `cdsObjectToUpnpavObject(obj, node, host)`", + "reference": "ineffectual assignment to `err` (from `ineffassign`)" + }, + { + "prediction": "Why is this change needed?", + "reference": "Ahhh... this makes sense. Does using functions to defer evaluation of these values have anything to do with #916 (where the `Host: {host}` was 'cached' between different hostnames)? If not, could you help me understand what this change does?" + }, + { + "prediction": "I think this should be `listenSocket_ != THRIFT_INVALID_SOCKET`", + "reference": "Perhaps the only test needed is to see if the socket is not an invalid socket? Is the >= 0 test necessary at this point?" + }, + { + "prediction": "I don't think we need to do this, but I think it's a good idea to add a `
    ` to the form.", + "reference": "Could this line use `url: current_user.subscription`?" + }, + { + "prediction": "Why not use `preg_quote($quoted_remove_var_id, '/')` instead of `preg_quote($quoted_remove_var_id, '/')`?", + "reference": "I was seeing `Warning: preg_match(): Unknown modifier 'a' in /path/to/project/vendor/vimeo/psalm/src/Psalm/Context.php on line 480` here" + }, + { + "prediction": "I think this should be `assertEqualsNoEol`", + "reference": "The changes in this file are not necessary." + }, + { + "prediction": "I think we should move this import to `k8s.io/apimachinery/pkg/apiserverlite/util`", + "reference": "run `make lint` to fix" + }, + { + "prediction": "I think this test should be `test_pipeline_compiles_and_executes`", + "reference": "we will need `assert result.success` instead. result will always be not null because it returns an execution result including several metadata - when the execution fails, it'd return an execution result whose `success` attribute is false." + }, + { + "prediction": "I think this should be `zvolWorkers`?", + "reference": "Can we mention how can one determine the best value given an infrastructure? Does it default to any value?" + }, + { + "prediction": "Why is this change needed?", + "reference": "Leave this formatting the way it was please, that's the standard across all of October's files." + }, + { + "prediction": "I think this should be `go-selinux` instead of `go-selinux`", + "reference": "@runcom says there is no need to use `selinux` here. `selinux` \"github.com/opencontainers/selinux/go-selinux\" The code should work fine without it." + }, + { + "prediction": "Why is this change needed?", + "reference": "nit: It might be worth defining these elsewhere as a python-type?" + }, + { + "prediction": "I think this should be `enabled.quartz` instead of `enable.quartz`.", + "reference": "prefix it with azkaban. Maybe azkaban.server.schedule.enable_quartz?" + }, + { + "prediction": "I think we should use `Puppet::DataBinding::LookupError` instead of `Puppet::DataBinding::LookupError`.", + "reference": "It'd be nice if we also caught `Unknown variable $trusted / $server_facts / $settings::` here - while I highly doubt anyone is using them (and if they are they're surely misusing them) it'd be crazy-making to have a working plan suddenly start failing with no clue as to why." + }, + { + "prediction": "Shouldn't this be `TopologyKeys`?", + "reference": "Probably need to understand/implement this one now." + }, + { + "prediction": "Is there a reason why we don't need to check for null here?", + "reference": "It will be better to add contains check for key in hashAndFileNameToDep instead of null check over here. All of these should be inside that contains if case." + }, + { + "prediction": "Shouldn't this be `options[:puppetserver_port]`?", + "reference": "perhaps these magic numbers could go into a Defaults module somewhere? 8140 implies the default is for puppet server. i guess that's somewhat reasonable. but if we're trying to decouple beaker from puppet, maybe this should be 80?" + }, + { + "prediction": "(style) code indent should use tabs where possible", + "reference": "style violation: { on own line" + }, + { + "prediction": "I think this should be `h2o_strtosize(headers[i].value, headers[i].value_len);` or `h2o_strtosize(headers[i].value, headers[i].value_len);`", + "reference": "Could we accept caseless strings (e.g. `off`, `on`, `auto`) instead of numbers to indicate the mode? Of course, we should use an enum internally (as we already do)." + }, + { + "prediction": "I think this should be `GetTipSetStateRoot(cid.Cid, error)`", + "reference": "The sender doesn't use `GetTipSet`, so please remove it from this interface." + }, + { + "prediction": "I think we should use `java.util.Objects` instead of `java.util.Objects`", + "reference": "We can get rid of this import then." + }, + { + "prediction": "I don't think we need to change the default secret name to `azkaban-k8s-secret`", + "reference": "These configurations are currently overwritten in the props we provide in our config files. They need to be overridden there as well after you make this change." + }, + { + "prediction": "I think this should be `if *zone == \"\" && mgce.OnGCE() { fallbackZone = mgce.Zone() }`", + "reference": "Why is error ignored here?" + }, + { + "prediction": "I think this should be `bios-grub` instead of `bios-grub`", + "reference": ">PartitionFlagBiosGrubLegacy PartitionFlag = \"bios-grub\" [](start = 1, length = 55) I presume this is to fix a breaking change...and it's too late to fix the breaking change (since it already escaped into the world?)" + }, + { + "prediction": "Why is this change needed?", + "reference": "Is this explicitly ignoring the effect of deleted rows on partition metrics or is it just that you are short circuiting any delete files (as we can't use them anyways)" + }, + { + "prediction": "I think this should be `if (Tools.ContainsKey(toolName)) { commandSetting = Tools[toolName].osSpecific[Os][\"defaultParameters\"]; } else if (Tools.ContainsKey(toolName)) { commandSetting = Tools[toolName].osSpecific[Os][\"defaultParameters\"]; }", + "reference": "I would also check whether or not this \"defaultParameters\" is null or empty to allow for people to omit it from the config file." + }, + { + "prediction": "Why is this change needed?", + "reference": "I think event.Content is of type interface{}, so we may need %v here?" + }, + { + "prediction": "I don't think we need to add this warning to `invenio.modules.editor`", + "reference": "Note: `editor` depends on legacy `BibEdit`" + }, + { + "prediction": "I think this should be `duraton` or `duration`", + "reference": "we should probably deprecate (and display a warning) the misspelled keyword arg here rather than removing it... and then add the new one. This changes a public API and will break any code that is currently using the misspelled version." + }, + { + "prediction": "I think this test should be `assertRaisesRegex(ValueError, \"accuracy must be an integer; however\")`.", + "reference": "I'm wondering if a positive test case is needed here? Then we might compare the result DataFrame with a pre-created Koalas DataFrame." + }, + { + "prediction": "I don't think we need to change the return type to `boolean`.", + "reference": "I think it was reversed" + }, + { + "prediction": "Why is this change removed?", + "reference": "The setter \"setName\" can be package-private as well" + }, + { + "prediction": "I think this is a good idea, but I don't think we need to change it.", + "reference": "Not sure if this is intentional or snuck in through find/replace; while this is a correct style fix (and is welcome in another PR), it should not be done here so that the commit maintains a logical changeset." + }, + { + "prediction": "I think this should be `test_over_two_gb` instead of `test_over_two_gb`", + "reference": "This makes me wonder if the TBufferTransport should have a size limit that is configurable, with a default of INT32_MAX, and then the test can make a smaller one like 4KB, and write 4KB and then one byte more, instead of using up 2GB of memory." + }, + { + "prediction": "I think this should be `methodViewBuilder.isStreaming(context.getMethod().getRequestStreaming());` or `methodViewBuilder.isStreaming(context.getMethod().getResponseStreaming());`", + "reference": "If you use an enum for the streaming type, you wouldn't need to add each boolean as a separate attribute." + }, + { + "prediction": "I think this should be `IntegrityError` instead of `IntegrityError`.", + "reference": "can you check if you can use `sqlalchemy.exc.IntegrityError` instead?" + }, + { + "prediction": "I think this should be `std::lock_guard` instead of `std::lock_guard`.", + "reference": "Why we need to use recursive_mutex here?" + }, + { + "prediction": "Why is this change needed?", + "reference": "am I correct these changes are related to: > I have removed a bunch of legacy functions for issuer generation ... if so, I can see why that's a valuable change but this is already a pretty huge PR and these changes to use `gen` here feel quite distant from the goal of this specific PR; they should maybe be in their own PR, to make everything easier to review? or have I missed how these changes are linked to this PR?" + }, + { + "prediction": "I think this should be `org.openqa.selenium.grid.sessionmap.SessionMap` and not `org.openqa.selenium.grid.sessionmap.SessionMap`", + "reference": "I think that this is an unused import" + }, + { + "prediction": "I think this should be `producer` instead of `DVN`", + "reference": "The string \"DVN_3_0\" appears in `if (!SOURCE_DVN_3_0.equals(xmlr.getAttributeValue(null, \"source\"))) {` in ImportDDIServiceBean. It's not an exact match so I don't *think* this will break dataset import from DDI but I thought I'd at least mention it." + }, + { + "prediction": "I think this should be `err := s.rest.Repositories.CompareCommits(ctx, ref.RepoOwner, ref.RepoName, compareSHA, ref.Ref)`", + "reference": "Can you add docstring to this? Also, this might be a nit but I think `CompareCommits` or `CommitRange` might be a better name. What do you think?" + }, + { + "prediction": "I think this should be `CheckImmutableFields(ctx, current.Spec.GetBaseline(ctx))` instead of `CheckImmutableFields(ctx, current.Spec.GetBaseline(ctx))`", + "reference": "were all these ones missed in the previous PR so you are adding them now? the sources v1 and some of this? Is that right? If so, can you update the PR title" + }, + { + "prediction": "I think this should be `VERSION_77` instead of `VERSION_72`.", + "reference": "hmm should this be `VERSION_81` instead?" + }, + { + "prediction": "I think this is a bit confusing, but I think it would be better to use `trieRebuildAccountChunkSize` instead of `trieRebuildCommitFrequency`.", + "reference": "What is the reason for increasing this?" + }, + { + "prediction": "I think this should be `true` in the `tus.js` file.", + "reference": "is there any reason we are not adding this to companion as well? There are no CORS concerns there, so adding probably shouldn't be a problem, no? **One question about the requestId;** Are the request Ids unique to each tus-js-client request, or are they unique to an upload instance instead?" + }, + { + "prediction": "I think this should be `private String cookiePath;`", + "reference": "The formatting is a little off here." + }, + { + "prediction": "Why is this change needed?", + "reference": "Perhaps we should import assertj for tests. These assertions are so much cleaner with assertj. Don't know whether hamcrest equivalent exist (maybe it does)." + }, + { + "prediction": "I think this should be `const slots_t` instead of `const slots_t`.", + "reference": "You should use C++-type casts instead." + }, + { + "prediction": "I think this should be `for _, req := range request.NewWorkflowNewEvents { if err != nil { return nil, err } }`", + "reference": "Looks like each AppendHistoryNodes is its own transaction - what happens if `len(request.NewWorkflowNewEvents) == 5` but we only succeed in writing 3 of them? Will the system be able to pick up from there later? I'm _guessing_ the answer is related to the `ON CONFLICT` and `INSERT IGNORE` changes below? What does Cassandra do?" + }, + { + "prediction": "I don't think we need to add the `entry.EntryId` to the `telemetry.Entry` field.", + "reference": "why are you replacing log here? it is defined above and contains EntryID and SPIFFEID" + }, + { + "prediction": "I think this should be `cmd.openvpnBinaryCheck() error`.", + "reference": "Why not `checkOpenvpn` as in client command?" + }, + { + "prediction": "I think this should be `if (!mocha || !mocha.reporter('base')) { return; }`", + "reference": "> Note: Non-headless tests (that run on selenium-webdriver) need to wire up to mocha reporter to collect all the results and report them. (See `test-webdriver.js`). But for other tests this can be skipped." + }, + { + "prediction": "I think this should be `b'CONNECT %s:%d HTTP/1.1\\r\\n' % (connect_to[0], connect_to[1])`", + "reference": "I think we should apply IDNA encoding for the host here." + }, + { + "prediction": "I think this should be `this->Save(0);` instead of `this->Save(1);`", + "reference": "No need to use `this->` here" + }, + { + "prediction": "I think this should be `hivev1.ClusterInstallCompletedClusterDeploymentCondition` instead of `hivev1.ClusterInstallCompletedClusterDeploymentCondition`", + "reference": "I can't quite tell, is there a reason why we're finding this condition again when it was done a few lines above? Or was this a mistaken paste?" + }, + { + "prediction": "Why is this change needed?", + "reference": "doh. My fault, sorry." + }, + { + "prediction": "I think this should be `fieldProviderID(proposal market.ServiceProposal) interface{}`", + "reference": "Why do we returning `interface{}` here? Don't we have a predefined type for `ID`?" + }, + { + "prediction": "I don't think we need to import `WordPress` from `WordPress`", + "reference": "`lodash` shouldn't be grouped under WordPress dependencies" + }, + { + "prediction": "I think this should be `goconfig` and `viper`", + "reference": "File is not `goimports`-ed (from `goimports`)" + }, + { + "prediction": "I think we should use `noteIds` instead of `noteIds[0]` instead of `noteIds[0]`", + "reference": "Not sure why you want to make the distinction between null and undefined? And also `null == undefined` anyway so I think you could simply have `!noteIds` here." + }, + { + "prediction": "I think this should be `ApplicationHeaderPrefix` and `ContextHeaderPrefix`", + "reference": "Almost makes me wonder if this should default to Rpc-Context so everything defaults under Rpc-" + }, + { + "prediction": "Why is this removed?", + "reference": "File is not `goimports`-ed (from `goimports`)" + }, + { + "prediction": "I think it would be better to use `mset.jsa.limits.MaxConsumers < mset.config.MaxConsumers` instead of `mset.jsa.limits.MaxConsumers`.", + "reference": "would these require any account lock here?" + }, + { + "prediction": "Why is this change needed?", + "reference": "The else doesn't return anything?" + }, + { + "prediction": "I don't think we need to check for `opts.fee` and `opts.feeSat` here.", + "reference": "if (typeof (opts.fee) !== 'undefined' || typeof (opts.feeSat) !=='undefined') {" + }, + { + "prediction": "I think it would be better to use `fmt.Sprintf(\"%c %s:%s %s\", d.Type, d.Permissions, d.Permissions)` instead of `fmt.Sprintf(\"%c %s:%s %s\", d.Permissions, d.Permissions, d.Permissions)`.", + "reference": "I not sure we need to change this method's logic. Isn't no perms and invalid config?" + }, + { + "prediction": "I think we should change this to 5 minutes.", + "reference": "this is an abysmal amount of time. can you explain under which circumstances you should wait for a minute for a message?" + }, + { + "prediction": "I think this should be `AccountID: o.targetEnvironment.AccountID, Region: o.targetEnvironment.Region, Region: o.targetEnvironment.Region, Region: o.targetEnvironment.Region, Region: o.targetEnvironment.Region, Region: o.targetEnvironment.Region, Region: o.targetEnvironment.Region, Region: o.targetEnvironment.Region, Region: o.targetEnvironment.Region, Region: o.targetEnvironment.Region, Region: o.targetEnvironment.Region, Region: o.targetEnvironment.Region, Region: o.targetEnvironment.Region, Region: o.targetEnvironment.Region, Region: o.targetEnvironment.Region, Region: o.targetEnvironment.Region, Region: o.targetEnvironment.Region, Region: o.targetEnvironment.Region, Region: o.targetEnvironment.Region, Region: o.targetEnvironment.Region, Region: o.targetEnvironment.Region, Region: o.targetEnvironment.Region, Region: o.targetEnvironment.Region, Region: o.targetEnvironment.Region, Region: o.targetEnvironment.Region, Region: o.targetEnvironment.Region, Region: o.targetEnvironment.Region, Region: o.", + "reference": "Can we add this code to `job_package.go` and `svc_package.go`?" + }, + { + "prediction": "I think this should be `nodeIDKey` instead of `nodeIDKey`.", + "reference": "While you're here, can you change the casing on this so it is unexported? `nextPlanNodeIDKey` instead." + }, + { + "prediction": "I think we should remove the `!bootstrap` flag here.", + "reference": "thanks for tidying all these up, as you can tell they've been used pretty arbitrarily in the past to just exclude things from bootstrap..." + }, + { + "prediction": "`False` is not a valid value for `False`?", + "reference": "Again, `no_duplicates=False` would be clearer here..." + }, + { + "prediction": "Why is this change needed?", + "reference": "shouldnt we stop these routines BEFORE the db closed?" + }, + { + "prediction": "I don't think this is needed.", + "reference": "It fills me with endless sadness that we can't use Selenium's own `SessionId` here." + }, + { + "prediction": "I think this should be `LOG.finest(String.format(\"Pulling %s:%s\", name, tag));`", + "reference": "This will always need to be displayed to users." + }, + { + "prediction": "I think this should be `%w(navigator whsc)` instead of `navigator whsc`", + "reference": "Maybe we make an `ORIGINS` constant on the Cart model instead?" + }, + { + "prediction": "I think this should be `ManagedAgentsUnsafe` instead of `ManagedAgentsUnsafe`", + "reference": "looks like this is not needed anymore with boltdb migration. lets confirm with @fenxiong" + }, + { + "prediction": "Why is this change needed?", + "reference": "shadow: declaration of \"err\" shadows declaration at line 408 (from `govet`)" + }, + { + "prediction": "I think this should be `LOG.info(\"When using the W3C Action commands, offsets are from the center of element\");`", + "reference": "Again, the existing level is correct --- we're letting users know about something that might cause there tests to fail." + }, + { + "prediction": "Why is this change needed?", + "reference": "Required by the libcalico-go changes" + }, + { + "prediction": "(style) line over 80 characters", + "reference": "You want \"current_min_count\"" + }, + { + "prediction": "I think this should be `sortOrder = MediaStore.Files.FileColumns.ORDER_BY`", + "reference": "Why changes in this file?" + }, + { + "prediction": "I think this should be `[A-Za-z_][A-Za-z_.0-9]*\\\\[A-Za-z_][A-Za-z_.0-9]*\\\\[A-Za-z_][A-Za-z_.0-9]*\\\\]\"`", + "reference": "This doesn't look right. I think what you want here is `\\\\[([^\\\\]]+)\\\\]\\\\[[A-Za-z_][A-Za-z_.0-9]*]*\\\\]`." + }, + { + "prediction": "I think this should be `RetryLimitExceeded` instead of `RetryLimitExceeded`", + "reference": "@AndrewRayCode thanks for contributing Could you write/modify the specs to make sure that this description is working properly?" + }, + { + "prediction": "Shouldn't this be `error.status_code >= 400` or `error.content_type == 'application/json'`?", + "reference": "I would have tested 304 only there." + }, + { + "prediction": "Why is this change needed?", + "reference": "`TimeoutAfter` to be safe." + }, + { + "prediction": "(style) code indent should use tabs where possible", + "reference": "So the 32-bit tests on the new kernel hit this case? Won't they fail in debug build?" + }, + { + "prediction": "I think this should be `\\n` instead of ``", + "reference": "Is there a recommended quote style for attributes? I see single and double here, double further down." + }, + { + "prediction": "I think this should be `CountNotification` and `LoadTimeNotification`.", + "reference": "The description of `load_time` here is different from the description below..is that intentional?" + }, + { + "prediction": "I think this should be `queue_music` instead of `queue_music`", + "reference": "Actually it could also be a video playlist. But music is used more often." + }, + { + "prediction": "I don't think we need to include session for unacknowledged writes, since we don't want to include session for unacknowledged writes.", + "reference": "From the ticket: > I understand why a session ID would be silently omitted for implicit sessions, but what is the reasoning behind omitting it for explicit sessions instead of raising a logic error to the user? So what this change is doing is \"silently omitting\" the session if its an unacknowledged write. I think we want to actually return an error in this case." + }, + { + "prediction": "I think this should be `AverageCycleTime`?", + "reference": "You can simplify this by doing: return (EndTime - StartTime) * 60 / PointsAcrossPeak;" + }, + { + "prediction": "I think this should be `fm.horizontalAdvance(QStringLiteral(\"a\"));`", + "reference": "I think it's the time for bumping `REQUIRED_QT_VERSION` to the last LTS, 5.12. `QFontMetrics::horizontalAdvance()` doesn't exist in 5.10." + }, + { + "prediction": "I think we should add a `boltdir_type: :cd11` to the `return_type: :cd9` as well.", + "reference": "I already set up cd10 for \"inventory_version in google analytics. I've added cd11 for Boltdir Type now" + }, + { + "prediction": "I don't think we need to do this, but I think it's better to use `RUBY_RUBY_REGEX` instead of `RUBY_RUBY_REGEX`.", + "reference": "@henrikhodne We are lazily skipping `jruby-*` here (assuming that JRuby all of a sudden start using these version numbers)." + }, + { + "prediction": "I don't think this is needed.", + "reference": "How does this cope with values like `5.001`? Shouldn't that set precision to 0? Instead it is set to 2." + }, + { + "prediction": "I think this should be `15`", + "reference": "Rather than having a sleep here, we should check to see if the service we're waiting for is up yet, using something like dockerize. Not critical this second, but would be nice for later." + }, + { + "prediction": "I think this should be `await execa('npm', ['run', 'swap-package-links'], {cwd: process.cwd(), stdio: 'inherit' });`", + "reference": "I'm not sure if there are any links to swap for Handosntable package. Should this be a top lvl script?" + }, + { + "prediction": "I don't think there is a need to do this here, but I think it would be better to use `ALIGN_FORWARD(pend_unit_size, FPSTATE_ALIGNMENT);` instead of `ALIGN_FORWARD(pend_unit_size, FPSTATE_ALIGNMENT);`.", + "reference": "It seems like it's too big now: can we remove signal_frame_extra_size from line 537? That should only be needed when placing xstate separately. It seems like it isn't needed at all for pending? Also, if we have special heap align forward for us, we don't need this align here either." + }, + { + "prediction": "I think this should be `allowedArgs = (Get-Command \"#{remote_path}\").Parameters.Keys | % { $allowedArgs -contains $_ }`", + "reference": "Just double checked the `-in` operator. It's PS3 only, so we might want to change `$_ -in $allowedArgs` to `$allowedArgs -contains $_`" + }, + { + "prediction": "I think this should be `self.value`", + "reference": "Might as well use translate here, as @jcsteh suggested" + }, + { + "prediction": "`dimensions` is a bit confusing. I think it would be better to use `DimensionedPlot` instead of `DimensionedPlot`?", + "reference": "Definitely an improvement as long as the old tests pass (i.e backwards compatible)." + }, + { + "prediction": "Why is this change needed?", + "reference": "nit: non functional change" + }, + { + "prediction": "I think we should use `os.Getenv(\"AWS_SHARED_CREDENTIALS_FILE\")` instead of `os.Getenv(\"AWS_SHARED_CREDENTIALS_FILE\")`", + "reference": "The file is not required - if you're using an IAM instance profile, for example. I'm not sure we can error 100% of the time if it's missing. @randomvariable any suggestions?" + }, + { + "prediction": "I think this should be `expr.High.Type().Underlying().(*types.Basic)`", + "reference": "There is a very similar line `lowType = expr.Low.Type().(*types.Basic)` a few lines above this line. Can you change that in the same way?" + }, + { + "prediction": "I think this interface should be public.", + "reference": "New files should be copyright Hyperledger Besu Contributors." + }, + { + "prediction": "I don't think we need to do this, but I think it's better to use `@session.exec!('mktemp -d')` instead of `@session.exec!('mktemp -d').chomp`", + "reference": "if I give a non-existent script, then I don't get an errors. I would have expected the `copy` method to raise, but maybe `net-sftp` silently exits?" + }, + { + "prediction": "I think this should be `if not isinstance(to_replace, tuple)`", + "reference": "@itholic can you also update the parameters in the docs?" + }, + { + "prediction": "I think this should be `@Nullable`.", + "reference": "The super impl Spliterator.getComparator() throws an IllegalStateException by default. Is it really necessary to return null? If null is used somewhere it will throw a NPE, which is roughly the same as throwing an IllegalStateException. I'm just curious - I'm sure there is a reason!" + }, + { + "prediction": "Why is this change needed?", + "reference": "Do we need to do the same in Avro `WriteBuilder` too? I don't think we use that method right now but should make sense for consistency. We already handle that for Parquet." + }, + { + "prediction": "I think this should be `if (arg == \"--java_primitive_has_method\") {`", + "reference": "can you make all the `_` into `-` to be consistent with the other options?" + }, + { + "prediction": "I think this should be `CloudFormationTemplate`", + "reference": "What do you think of renaming this file to `stack.go` or `cfn_stack.go`? `common.go`/`util.go` don't provide us anything descriptive about the contents of the file." + }, + { + "prediction": "I think this should be `Examples.Console` instead of `Examples.Benchmarks`.", + "reference": "It isn't a very effective example if it requires access to the internals I can't tell just looking at the diff why this is needed, can you provide a little context?" + }, + { + "prediction": "I think this should be `bolt/transport` instead of `bolt/transport`", + "reference": "Why does this include `bolt/inventory`?" + }, + { + "prediction": "I think `Objects.equals(t._1, key)` should be `!Objects.equals(t._2, key)`", + "reference": "We called `t._1.equals(...)` where `t._1` potentially could be `null`." + }, + { + "prediction": "I think this should be `isAriaRangeElement`", + "reference": "I don't think we should include the `hasAttribute` test here. Even without aria-valuenow, it's still an aria range element. This check is going to make reuse of this function problematic. Better to move the attribute check part outside this function IMO." + }, + { + "prediction": "I think this should be `--file` instead of `--group`", + "reference": "Shouldn't it be optional?" + }, + { + "prediction": "I think this should be \"API Gateway\" instead of \"API Gateway\"", + "reference": "would be helpful to make these a package level constant so they are accessible to the user. similar to Service Name. Not directly related note, v2 SDK ServiceName should be renamed to ServiceEndpointPrefix." + }, + { + "prediction": "I think this should be `return file_exists($this->realpath($path)) ? file_exists($this->realpath($path)) : null;`", + "reference": "Duplicate call to the method. Better to put in a variable." + }, + { + "prediction": "Why is this change needed?", + "reference": "\"and returns that\" -- it looks like this method has no return value." + }, + { + "prediction": "Why is this change needed?", + "reference": "Modifications are also needed for PolygonMask." + }, + { + "prediction": "Is this needed?", + "reference": "Does this really make a difference?" + }, + { + "prediction": "I don't think we should be using `_root_` here.", + "reference": "Added a validator for _root_, which is now added automatically since the schema used here declares _root_." + }, + { + "prediction": "I think this should be `read.split.open-file-cost`?", + "reference": "The other properties are `file-open-cost`, not `open-file-cost`." + }, + { + "prediction": "I think this should be `PKG_CHECK_MODULES(libunwind, libunwind)`", + "reference": "confused by this: what we need here is not libunwind but libunwind-dev right? Why skipping detection?" + }, + { + "prediction": "I think this should be `properties.Where(p => p.SetMethod != null && !p.SetMethod.IsPrivate)`", + "reference": "just in case helps, it this related with this PR?" + }, + { + "prediction": "I think this should be `if data[\"server_conn\"][\"ip_address\"]:`", + "reference": "This is incomplete I think (at least source_address and ip_address are missing)" + }, + { + "prediction": "I think this should be `System.exit(0);`", + "reference": "We have a `stop` method here, we should probably be calling that instead of just exiting. There could be important resources to close or cleanup nicely now or in the future." + }, + { + "prediction": "I think this should be `[]`", + "reference": "fixes ArgNullEx when using both `x-ms-parameter-grouping` and media type `application/xml` in the same operation (issue #2236)" + }, + { + "prediction": "I think this should be `ErrCodeBucketNotFound` or `ErrCodeNoSuchKey`", + "reference": "`NotFound` is a generic error code derived from the HTTP response message's status code, and can be returned for any S3 operation that responds with a 404 status code and no other error code present. Due to this the constant `ErrCodeBucketNotFound`. In addition, these constants are generated based on the API model defined by Amazon S3, modifications to the file directly will be lost during regeneration of the API. With that said, we are looking at ways to work with the Amazon S3 team to better represent this error in a way that is more easily consumed." + }, + { + "prediction": "I think this should be `host.generic_install_msi_on(host, 'Vagrant', 'Vagrant.pkg')` instead of `host.generic_install_dmg_on(host, 'Vagrant', 'Vagrant.pkg')`", + "reference": "@johnduarte I was curious about the case when the operating system was neither `osx` or `win`; in this case, the test will indeed pass, but nothing will have actually really been tested. Should this have a `skip_test` condition at the top?" + }, + { + "prediction": "I think we should use `time.Sleep(time.Millisecond)` instead of `time.Sleep(time.Second)`", + "reference": "I think this example was included by accident? It doesn't seem to belong in this PR (but a separate PR with this would be nice!)." + }, + { + "prediction": "I don't think we need to change the method name to `httpEntity`.", + "reference": "Just fixing a bunch of outdated java docs in this file" + }, + { + "prediction": "I think this should be `ConcurrentDictionary`.", + "reference": "I think it may be safer not to touch Concurrent to normal." + }, + { + "prediction": "Is there a reason why we need to emit `drain` here?", + "reference": "is this for everything, or just legacy?" + }, + { + "prediction": "I think this should be `if (changeStream.isClosed()) return;`", + "reference": "I think this should be a `MongoError` right?" + }, + { + "prediction": "I think we should be able to change the URL to `https://github.com/drud/drupal8/releases/download/v0.2.2/files.tar.gz`", + "reference": "This is currently a db.tar.gz with just one .sql file in it. It might be worth another test (or maybe I'll find one) that has more than one sql file in it." + }, + { + "prediction": "I think this should be `allow-all-egress-normal` instead of `allow-all-egress-normal`", + "reference": "Why these changes to existing tests?" + }, + { + "prediction": "I think we should use `ServiceNames` instead of `ServiceNames` here.", + "reference": "It should be `IsNullOrWhitespace` I believe, since we're going to trim the value afterwards (and I just realized the other configuration keys have the same issue)" + }, + { + "prediction": "Metrics/LineLength: Line is too long. [98/80]", + "reference": "This is just for consistency + searchability with the transports" + }, + { + "prediction": "I think this should be `configPath` and not `configFile`", + "reference": "please run gofmt." + }, + { + "prediction": "Why is this changed?", + "reference": "thats kind of a bummer, why do we have to give it full access? if it is just for the private interfaces i'd personally rather have those interfaces pollute the public exported symbols than open the tests up like this." + }, + { + "prediction": "I think this should be `if s.apps[appID] == nil`", + "reference": "Because this is an unexpected situation so can you add a log here to help us figure out what resource is causing this problem?" + }, + { + "prediction": "I don't think we need to remove the property from the message.", + "reference": "just observing that this innocent looking change seems important to this PR. Previously this data had disappeared from the state." + }, + { + "prediction": "I think it would be better to use `errorRowCount = cond->getOptionalInteger(0);` instead of `errorRowCount = cond->getOptionalInteger(0);`", + "reference": "Actually, I do have one question: You mention that each warning is for a different range. Should we add the rowcounts instead of using the max?" + }, + { + "prediction": "Why is this needed?", + "reference": "it is confusing to return ID as Name" + }, + { + "prediction": "I think this should be `if body and method != 'POST':`", + "reference": "body is being used here for the first time without every being populated. This will error. To run tests do `./go clean test_py` and that will run the Firefox tests" + }, + { + "prediction": "Why not use `Request::setTrustedProxies(['127.0.0.1'], Request::HEADER_X_FORWARDED_ALL);` instead of `Request::setTrustedProxies(['127.0.0.1'], Request::HEADER_X_FORWARDED_ALL);`?", + "reference": "commit mesasge: I would append \"...Kernel::loadClassCache() method call\"" + }, + { + "prediction": "I don't think we need to change this to `Keys#COMMAND`.", + "reference": "Keys.COMMAND seems to be an alias to Keys.META. That isn't mentioned?" + }, + { + "prediction": "Why is this change needed?", + "reference": "You can move this import down to before line 8 (import org.junit.Test;)." + }, + { + "prediction": "Why is this change needed?", + "reference": "It's okay to add the `scanner_index_id` here. But we still should keep the `inventory_index_id` reference because it will help the user to know right away, which inventory the violation is coming from, without having to do another lookup." + }, + { + "prediction": "I think this should be `dispatcher.beforeClickOn(element, driver);` and `dispatcher.afterClickOn(element, driver);`", + "reference": "this shouldn't be beforeClickOn, but rather beforeSubmit? and added to WebDriverEventListener. Since submit does not synthesize the 'click' events, this isn't accurate." + }, + { + "prediction": "I think this should be `unless current_user_has_active_subscription?`", + "reference": "Should this be I18n'd?" + }, + { + "prediction": "Why is this change needed?", + "reference": "We don't typically use `ImmutableList` to avoid leaking it in methods that are accidentally public or purposely part of the API. I'm +1 for returning `ImmutableList.copyOf(errors)` below, but I don't think we should guarantee the list will be an `ImmutableList`." + }, + { + "prediction": "Why not use `type(m2) == Chem.RWMol`?", + "reference": "@greglandrum Is this test sufficient?" + }, + { + "prediction": "I think this should be `GITHUB_ACCESS_TOKEN` instead of `GITHUB_ACCESS_TOKEN`.", + "reference": "Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping." + }, + { + "prediction": "I think we should add a `null: false` column to make sure we don't have a `null: false` column.", + "reference": "I think Rails complains about the `null: false` part if we ever decide to roll this migration back. Might need to split this up into separate `up/down` methods to handle that." + }, + { + "prediction": "I think this should be `waitForContainerTransition` instead of `waitForContainerTransition`", + "reference": "I don't think we need this line. You're logging in `waitForContainerTransition()` anyway" + }, + { + "prediction": "Align the elements of a hash literal if they span more than one line.", + "reference": "Shouldn't the `:attribute` placeholder appear?" + }, + { + "prediction": "Why is this change needed?", + "reference": "Could you update this to `structLike` instead of `arg`?" + }, + { + "prediction": "I don't think this is needed.", + "reference": "I only now spot this `freebsd,!baremetal` in the code, which doesn't make a lot of sense. The fact that there is `linux,!baremetal` is because baremetal targets pretend to be linux/arm to get the standard library to compile. Such a `!baremetal` exclusion is not necessary for FreeBSD. But this is not something that needs fixing in this PR." + }, + { + "prediction": "(style) line over 80 characters", + "reference": "Ugh, we were using cwd? =(" + }, + { + "prediction": "Why is this removed?", + "reference": "This can probably be removed?" + }, + { + "prediction": "I think this should be `std::make_unique(std::move(resultColNames_));` or `std::make_unique(std::move(resultColNames_));`", + "reference": "put this sentence in `if (onResult_) { }`" + }, + { + "prediction": "I think this should be `-rf /home/ubuntu/config_validator_constraints` and not `-rf /home/ubuntu/config_validator_constraints`", + "reference": "Will this always be started up as default? Is there any impact to the VM in terms of load and memory usage?" + }, + { + "prediction": "I think this is a bit confusing, but I think it would be better to keep the qualifiers in a separate PR.", + "reference": "Thanks for fixing the typo's but given that this is a fork of the other commandline.cs file they will still exist there :( Part of the reason forks suck." + }, + { + "prediction": "I don't think we need to import sqlalchemy here. I think it would be better to use `import sqlalchemy as db_task_history` instead of `import sqlalchemy as db_task_history`", + "reference": "This doesn't seem related to docs? :)" + }, + { + "prediction": "why is this changed?", + "reference": "Having a negative in the variable/method name makes the code harder to read. Also, you inverted the logic but didn't invert the default value. I suggest sticking to the original name." + }, + { + "prediction": "I think this should be `[DefaultValue(false)]` instead of `[DefaultValue(true)]`", + "reference": "Think you need to keep `RawWrite` around as obsolete until NLog6 (Property that just assigns `ForceTraceWriteLine`)" + }, + { + "prediction": "(style) line over 80 characters", + "reference": "I would expect this to be named *get* not *set*: it's a query; it's not setting some persistent state." + }, + { + "prediction": "Why is this change needed?", + "reference": "maybe should rename this to be `run_status_sensor_definition.py`" + }, + { + "prediction": "I think this should be `org.apache.iceberg.spark.SparkWriteOptions.FANOUT_ENABLED`", + "reference": "Do we want to add the other write options in this PR or keep the refactor separate?" + }, + { + "prediction": "Shouldn't this be `retries > 0`?", + "reference": "either make this a config or a constant we can define at the top. Burying this in the code is no good." + }, + { + "prediction": "I think this should be `recall_score` and `precision_score`", + "reference": "Same about new metrics. Can we avoid adding them?" + }, + { + "prediction": "I think this should be `--network-host-project-id` or `--network-host-project-id`", + "reference": "I know this is a port from the previous PR, but I am wondering if we can take the chance to improve the naming? `--vpc-host-project-id` ?" + }, + { + "prediction": "I think this should be `setSourceDataAtCell(1, 1, 20);`", + "reference": "The test description says it's \"by reference\". We should change the description" + }, + { + "prediction": "I think this should be `string Id => \"!!!!\";`", + "reference": "A C# newbie question here: would it make sense to declare Id as an abstract property so any subclass Must have its own Id?" + }, + { + "prediction": "I think this should be `return nil, nil`", + "reference": "just looks like you should return an **empty map** with nil error" + }, + { + "prediction": "I think this should be `if version.ShouldPrintVersion() { version.Print(os.Stdout, \"prometheus-config-reloader\") }`", + "reference": "could you also update the starting log at L146?" + }, + { + "prediction": "I think this should be `return strings.Contains(dbusError.Name, \"connection closed by user\")`", + "reference": "Also this probably should be `error.As()` or something like it." + }, + { + "prediction": "I think this should be `GET_CANVAS_URL` or `GET_CANVAS_URL`", + "reference": "This is Safari specific and should be defined somewhere in the `safaridriver` namespace" + }, + { + "prediction": "(style) line over 80 characters", + "reference": "Let's maybe be nice and `unlinkat()` here in the interest of having `/run` be less littered. Or in addition/alternatively, make the file `/run/ostree/initramfs-mount-var` since we already made `/run/ostree/` for the deployment staging bits." + }, + { + "prediction": "Why is this needed?", + "reference": "Not sure if this doesn't require explicitly adding this library to cmake." + }, + { + "prediction": "I think this should be `duraton` or `duration`", + "reference": "we should probably deprecate (and display a warning) the misspelled keyword arg here rather than removing it... and then add the new one. This changes a public API and will break any code that is currently using the misspelled version." + }, + { + "prediction": "I think this should be `String.format(\"Could not transfer all bytes of \" + from.toPath());`", + "reference": "seems reasonable to also want to include the 'to' location?" + }, + { + "prediction": "Line is too long. [89/80]", + "reference": "This `if` statement can be merged with the above `if opts[:collect_perf_data]`." + }, + { + "prediction": "I think we should use `strings.ToLower` instead of `strings.ToLower`", + "reference": "But won't we do case-insensitive matching for all the drivers? For example, we will get the revision field case-insensitively. Let's make this case-sensitive. I think the way the mongo driver works, by lowercasing field names, will be OK with that." + }, + { + "prediction": "I think this should be `product-title-wrapper` instead of `product-title-wrapper`", + "reference": "I believe this should be on `workshops/show` now, not `products/show`" + }, + { + "prediction": "I think this is a good idea to have a test for `asd` as well as `asd` and `asd` as well as `asd` and `asd` as well.", + "reference": "If we return error when we are unable to found country in database, using country detector would be much easier - if error was not returned, that means country was returned :) This doesn't have to be solved in this PR, but since you're adding such case, we can add a `TODO` just to track this :)" + }, + { + "prediction": "I think this should be `Path.GetDirectoryName(Environment.GetEnvironmentVariable(\"DD_DOTNET_TRACER_HOME\") ?? string.Empty);`", + "reference": ".NET Framework: Fallback to `DD_INTEGRATIONS` if `DD_DOTNET_TRACER_HOME` was not set." + }, + { + "prediction": "Shouldn't this be `if paths_ else b\"\"`?", + "reference": "Can you use `authority, _, path = rest.partition(b\"/\")` here? That should make stuff a bit cleaner." + }, + { + "prediction": "I don't think we need to do this, but I'm not sure if it's a good idea to add a `limit` option to the `RSpec::Core` class.", + "reference": "I don't think this needs to be a float if its a number of seconds... :)" + }, + { + "prediction": "I think this should be `array` instead of `array`.", + "reference": "Please add \"Array\" back, right now it's not a proper sentence." + }, + { + "prediction": "I think this should be `queryOccurrence = params.getBool(QueryElevationParams.ELEVATE_ONLY_DOCS_MATCHING_QUERY, false) ? BooleanClause.Occur.MUST : BooleanClause.Occur.SHOULD;`", + "reference": "@tkaessmann when I ran tests I saw this line has a bug. It inverts the SHOULD and MUST. Hopefully I fixed it and merged it without the bug." + }, + { + "prediction": "Why is this change needed?", + "reference": "There may be another bug, it looks like we're already in a `if telemetryConfig.Enable` block at this point, maybe that block should be unnested?" + }, + { + "prediction": "I think this should be `self.headers[\"content-type\"] = \"multipart/form-data\"`", + "reference": "This... looks like it plainly didn't work before? Good catch. I would suggest we change the logic here to 1. Check if `self.headers[\"content_type\"].startswith(\"multipart/form-data\")`, and if that's not the case, add a content-type header with a random (?) boundary. The point here is that if someone assigns to `.multipart_form = ` in their addon, the header should be updated accordingly if the request was not multipart before. 2. *After* that, call `self.content = multipart.encode(self.headers, value)` (as we do right now)" + }, + { + "prediction": "Why not use `require.New(t)` instead of `require.New(t)`?", + "reference": "importShadow: shadow of imported from 'github.com/stretchr/testify/require' package 'require' (from `gocritic`)" + }, + { + "prediction": "Why is this change needed?", + "reference": "Wouldn't it be enough to change the condition in the for loop to `link_state != IBL_UNLINKED`?" + }, + { + "prediction": "I don't think we need to add the `G_OPTION_ARG_NONE` option here.", + "reference": "I'm not familiar with signed setups, but this does not seem to offer a way to choose between GPG and signapi verification. Are they usually either both enabled or both disabled? Would this be better suited as a verb with flags for different methods?" + }, + { + "prediction": "Why is this change needed?", + "reference": "assignments should only be cuddled with other assignments (from `wsl`)" + }, + { + "prediction": "I don't think we need this route anymore, but I think it would be better to add a `/auth/failure` route to the `/auth/:provider/callback` route.", + "reference": "would it make sense to mock oauth in a way that we direct a user to this endpoint on login (in a test)?" + }, + { + "prediction": "I don't think we need to add the `notification_important` class here.", + "reference": "Since these two lines use the same logic, it may be cleaner to use an `if` statement rather than duplicating it." + }, + { + "prediction": "Why was this removed?", + "reference": "unnecessary blank line" + }, + { + "prediction": "Shouldn't this be `PARTITION_COLUMN_NAME`?", + "reference": "Nit: no need for \"to\" at the end of the doc because it already uses \"to which\"." + }, + { + "prediction": "I think this should be `#Invoke(System.Int32, System.Exception, System.TimeSpan&)`", + "reference": "I would just say \"Signed before publishing.\"" + }, + { + "prediction": "Why is this needed?", + "reference": "We can just include the public UDPv4TransportDescriptor header here ..." + }, + { + "prediction": "I think this should be `self.settings.get(\"data-address\", None)`", + "reference": "Why do we need this change?" + }, + { + "prediction": "Is there a reason why this change is needed?", + "reference": "These three atomic functions done separately are not atomic. There is a possibility of data race, as nothing is guarding Total in between lines 182 and 183. Total got on line 182 may be changed before new value is stored on line 183 by some other goroutine resulting an incorrect value. Mutex should be used." + }, + { + "prediction": "Why is this change needed?", + "reference": "Is this because you don't have % on your version of Slot? I don't really care either way." + }, + { + "prediction": "why not just use `userInjectedExpandableRowHeaderColDef`?", + "reference": "Please use var declaration for variables you are declaring. I could not find one for userInjectedExpandableRowHeaderColDef and finalExpandableRowHeaderColDef. Also code styling in the if block needs to be corrected." + }, + { + "prediction": "Why is this change needed?", + "reference": "If cachedLibPath > 200 bytes, it will overflow errString." + }, + { + "prediction": "I think this should be `role: 'presentation', `role: 'presentation', `role: 'presentation', `role: 'presentation', `role: 'presentation', `role: 'presentation', `role: 'presentation', `role: 'presentation', `role: 'presentation', `role: 'presentation', `role: 'presentation', `role: 'presentation',` `role: 'presentation',` `role: 'presentation',` `role: 'presentation',` `role` `role` `` `` `` ` `` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` `", + "reference": "Talked this through with a few more folks. I think it would be better to flag prohibited attributes for review, instead of outright failing them. ARIA labels are used fairly liberally. We don't really know if they are actually needed whenever they are used." + }, + { + "prediction": "This check is done in SyncService.verifyFee", + "reference": "Let's keep it to avoid the diff" + }, + { + "prediction": "I think we should be able to change this to `current-snapshot-id` and `location` as well.", + "reference": "nit: not directly related to this PR, but shall we use `ImmutableSet` for consistency?" + }, + { + "prediction": "I think we should remove the `tap` here.", + "reference": "Layout/DotPosition: Place the . on the previous line, together with the method call receiver." + }, + { + "prediction": "I think we should use `getInstance().getPasscodeHash()` instead of `SalesforceSDKManager.getInstance().getPasscodeHash()`", + "reference": "We send the `instanceUrl` encrypted, but never bothered to decrypt it. I guess it was working because we never did any org split testing where the `instanceUrl` actually changes." + }, + { + "prediction": "I think this should be `calculateHashOfBftBlockForCmsSignature` instead of `calculateHashOfBftBlockForCmsSignature`", + "reference": "Can this be moved to QbftBlockHeaderFunctions class as it is only used for qbft" + }, + { + "prediction": "Why is this removed?", + "reference": "`Tags` now comes from the `PropertyBagHolder` base class." + }, + { + "prediction": "I think this should be `range_type='combined'` instead of `range_type='combined'`", + "reference": "I'm not sure where this should go, but one of the `get_extents` methods should mention that `range_type` can be `'data'` or `'combined'` (are there others?). I found out those are the two expected values by searching the code..." + }, + { + "prediction": "Why is this change needed?", + "reference": "please revert all of this stuff in core.. I'll take another pass after. cheers and thanks for the help!" + }, + { + "prediction": "I think this test should be in a separate PR. I think it's better to use `sourceName` instead of `tableName`.", + "reference": "Why was this needed?" + }, + { + "prediction": "I think this should be `prefetcher.PrefetchAfterBlockRetrieved(ptr, kmd, priority, lifetime, hasPrefetched)`", + "reference": "I see that CI found a couple test hangs, maybe your `TogglePrefetcher` change below wasn't enough and this still needs to be a `go` invocation for some reason?" + }, + { + "prediction": "Why not use `get_class($domainConfig)` instead of `get_class($domainConfig)`?", + "reference": "I do not understand this change" + }, + { + "prediction": "I think this should be `net/http.CanonicalHeaderKey` instead of `net/http.CanonicalHeaderKey`.", + "reference": "It would be helpful to clarify this is only for unmarshaling a response. not marshaling a request." + }, + { + "prediction": "Why is this change needed?", + "reference": "I have no explanation for why this test wasn't erroring before... There are two applicable nodes in this tree, one passes, the other fails." + }, + { + "prediction": "Why is this change needed?", + "reference": "Remove the \"rm\" from the end of \"HAVE_CONFIG_H\"" + }, + { + "prediction": "I think this should be `TrivialTestSlasher`", + "reference": "Non-Blocking: This might be too trivial. It doesn't allow us to test that it's being callled." + }, + { + "prediction": "I don't think we need to change this to `extFormat? (char *)\"BOOLEAN\": (char *)\"BOOLEAN\";`", + "reference": "Not sure why the ternary expressions are used here, since the true and false results are the same." + }, + { + "prediction": "Why is this change needed?", + "reference": "Is `vertigo` another name for Vertica databases?" + }, + { + "prediction": "I think this should be `urlstr.lstrip('mailto:')` instead of `urlstr.lstrip('mailto:')`", + "reference": "That doesn't do the right thing - it strips any of the characters m, a, i, l, t, o and :. It'd probably be cleaner to do this before converting the URL to a string." + }, + { + "prediction": "I think this should be `const args = cliUtils.parseCommandArgs(cmdUsage['_'][i]);`", + "reference": "Why the white space changes?" + }, + { + "prediction": "I don't think we need the `fullfillment_error` method here, but I think it would be better to use `fulfillment_error` instead of `fulfillment_error`", + "reference": "Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping." + }, + { + "prediction": "Why is this locked?", + "reference": "This is now outside the mutex, so could race." + }, + { + "prediction": "I think this import should be `*` instead of `*`.", + "reference": "hmmm did this pass spotless check? I don't think we typically use wildcard imports" + }, + { + "prediction": "I don't think we need the lock before locking.", + "reference": "`lockBeforeLock` -> `lockBeforeGet` (here and everywhere below)." + }, + { + "prediction": "Why is this change needed?", + "reference": "Do we need to internalize net.sourceforge.pmd.lang.java.ast.JavaParserConstants on master, so that we can rename it?" + }, + { + "prediction": "Why is this changed?", + "reference": "The GUID here was incorrect, because of that, Vault plugin loading was failing. Should I change to any correct GUID, or it has some special meaning?" + }, + { + "prediction": "Why did you remove this?", + "reference": "just confirming: if we remove explicit Collect(), then we are relying on the provider dispose... which has a hard-coded 5000 msec to finish flushing. On the other hand, if we keep explicit Collect(), we can pass an explicit timeout to it. (we were not doing it now and was relying on Infinite timeout). Net effect of this change in test code: Previously we would wait indefinitely for Collect() to be over. With this PR, we hope Collect() will be over in 5 secs. If we ever need more than 5 sec, we need to bring back Collect(maxTimeInMilliSecs..)." + }, + { + "prediction": "I think this should be `azkaban.job.logging.kafka.enable` instead of `azkaban.job.logging.kafka.enable`", + "reference": "What do you think of a name like azkaban.server.logging.kafka.brokerList? This way the name signals that this is a server config." + }, + { + "prediction": "I think this is a bit confusing, but I don't think we need to check for SharableMutex here.", + "reference": "Maybe change into `return _concurrentWrites ?? PlatformDetector.SupportsSharableMutex` ?" + }, + { + "prediction": "Is there a reason to use `replaceAll(\"\\\\p{Blank}*(?=<)\", \"\");` here?", + "reference": "indentation of resulting file is different between 11 and 8 where 8 doesn't indent lines and 11 does" + }, + { + "prediction": "This is a bit odd, but I think it would be better to just return `res, nil, nil` instead of `res.ApplicationErrorInfo`", + "reference": "Do we still need to return the `Response` here?" + }, + { + "prediction": "I think this should be `global.VERDACCIO_API_URL = 'http://localhost/-/verdaccio/'`", + "reference": "Here `global.VERDACCIO_API_URL` I'd use something different as `global.TEST_VERDACCIO_API_URL` then when you search by `VERDACCIO_API_URL` we don't confuse with `window.VERDACCIO_API_URL`" + }, + { + "prediction": "I think it would be better to use `--auth-url` instead of `--auth-url`?", + "reference": "This is totally fine, but consider whether in the future a YAML input format would be better. If so, we can plan for it." + }, + { + "prediction": "I think this should be \"DD_CONVENTION\" instead of \"DD_CONVENTION\"", + "reference": "This should be `DD_TRACE_CONVENTION` to follow our ... conventions." + }, + { + "prediction": "Why is this needed?", + "reference": "Be careful memory leaks. memory leaks occur when getters.getAliasProp == nullptr . right?" + }, + { + "prediction": "I think this should be `lastOrphanSubs`?", + "reference": "Why not just a time.Time?" + }, + { + "prediction": "Why is this change needed?", + "reference": "Please do not submit a commit that is not part of this PR." + }, + { + "prediction": "Why is this change needed?", + "reference": "This is small braking change: there is no way to clear description any more. If value is empty string, description will not be updated at all. It will affect existing Thrift endpoints also." + }, + { + "prediction": "I think this should be `DNS01Error` instead of `DNS01Record`", + "reference": "Can you open a separate PR with this patch? It seems valuable outside the context of this PR!" + }, + { + "prediction": "I think this should be `/chunk/{address}/` instead of `/chunk/{address}/`", + "reference": "I would suggest to have plurals in the api `\"/chunks/{address}\"`" + }, + { + "prediction": "I think this should be `BioMassCalc.C14` instead of `BioMassCalc.C13`.", + "reference": "Let's just not do this. We don't have LabelAtoms.O17 here. This is just a short-cut to avoid needing to write out a more verbose function like: 5O\" - 5O i.e. Add 5 x 17O atoms to replace 5 x 16O atoms. This was the original implementation in Skyline before I added the checkboxes to denote simply labeling all atoms in the amino acid." + }, + { + "prediction": "I think we should use `approval.mini_approval` instead of `approval.mini_approval`", + "reference": "1:D100: Docstring missing 23:D400: First line should end with '.', not 'p' 23:D200: One-line docstring should not occupy 3 lines 36:D400: First line should end with '.', not 'n' 36:D200: One-line docstring should not occupy 3 lines 48:D400: First line should end with '.', not 'p' 48:D200: One-line docstring should not occupy 3 lines 63:D400: First line should end with '.', not 'p' 63:D200: One-line docstring should not occupy 3 lines 76:D400: First line should end with '.', not 'p' 76:D200: One-line docstring should not occupy 3 lines" + }, + { + "prediction": "Shouldn't this be `file_exists($carousel->getUploadDir() . DS . $carousel->getFile())`?", + "reference": "Adding a warning or an error in the Thelia log would be a nice idea." + }, + { + "prediction": "I don't think this is a good idea, but I'm not sure if it's necessary.", + "reference": "nit: `Set` (and swap `forEach`s for `for (const i of CONNECTION_EVENTS)`)" + }, + { + "prediction": "I think we need to remove the extension methods from the `ExtensionMethods` class.", + "reference": "nit: Is this `using` statement still needed?" + }, + { + "prediction": "Why is this change needed?", + "reference": "Dont need to cast `string` -> `string`" + }, + { + "prediction": "I think this should be `debug api: topologyDriver.AddPeer %s: %v`", + "reference": "why doesn't the API return an error in this case?" + }, + { + "prediction": "I think this should be `BaseEndpointResolverError`", + "reference": "Not sure how particularly useful these exceptions are. Seem to be exceptions required in copying and pasting the EndpointResolver over. I wonder if it makes sense to move these out of ``exceptions.py``" + }, + { + "prediction": "Metrics/LineLength: Line is too long. [98/80]", + "reference": "Can we re-add this? I think that grouping is useful (though would be open to putting them in a mixin or something)." + }, + { + "prediction": "Why is this change needed?", + "reference": "Overall LGTM, one nit is that I think `partitionFields` here would be good to be renamed so that it's easy to tell it's just for collision detection. Also I wonder if we want to do this check for other transformations too (e.g. bucket, and record numBuckets in the string), so that we might be able to combine `fields` and `partitionFields` into potentially something like a LinkedHashMap?" + }, + { + "prediction": "I think this should be `kwargs.get('service_account_key_path') or None`", + "reference": "Don't need the `or None` here as the flag will already default to None. Also, `some_dict.get('foo')` will also default to `None`." + }, + { + "prediction": "I think this should be `padding: 0` instead of `padding: 0`", + "reference": "Please, use the default padding here." + }, + { + "prediction": "I don't think we need to use `serverLacksFeature` here.", + "reference": "let's actually use the direct include: `require('../core/error').MongoError;`" + }, + { + "prediction": "I think this should be `new-instance-open-target.window` instead of `new-instance-open-target.window`.", + "reference": "You're missing a space before the `\"` here and below, but I'll fix it up when merging." + }, + { + "prediction": "I think this should be `dump(p);` instead of `dump(p);`", + "reference": "remove this debugging code?" + }, + { + "prediction": "I think this should be `final` and not `final`.", + "reference": "s/`terms text`/`terms's text`" + }, + { + "prediction": "I think this should be `replaceResultInFormWithNew`", + "reference": ":bike: :derelict_house: , but maybe the default option should be `multipleResults: false` or `combineMultipleResults: false`? i feel like `replaceResultInFormWithNew` is very verbose but also doesn't immediately clarify what it's for." + }, + { + "prediction": "I think this should be `js: true` instead of `js: false`", + "reference": "Line is too long. [87/80]" + }, + { + "prediction": "I think this should be `from argparse import sys`", + "reference": "Are you using an automated tool for sorting the imports?" + }, + { + "prediction": "I don't think we need to change this to `project_id` and `dataset_id`.", + "reference": "If this is `project_number` now, can we also update the `id` the description?" + }, + { + "prediction": "I think this should be `defer deadlineTimer.Stop()`", + "reference": "* This will defer until the function returns. Are you sure this won't happen multiple times. * Alternatively, why is the deadline timer not defined outside the outer loop? * More generally, why are we looping in the first place instead of reading one frame and returning?" + }, + { + "prediction": "I think this should be `contentType` instead of `_request.ContentType`.", + "reference": "Should we rename the traces parameter now that this isn't just traces?" + }, + { + "prediction": "(style) line over 80 characters", + "reference": "I don't think it makes sense to have both `TEST_ONLY` and `NONBLOCK`. We should probably leave `NONBLOCK` out." + }, + { + "prediction": "(style) line over 80 characters", + "reference": "Need to remove the surface destroy listener (and `wl_list_init` it so that `touch_point_destroy` still works)" + }, + { + "prediction": "Metrics/LineLength: Line is too long. [98/80]", + "reference": "create ticket to investigate this" + }, + { + "prediction": "Why is PONY_API needed?", + "reference": "If we want to expose this for FFI use in the standard library, it needs to get either a `pony_` or `ponyint_` prefix to its name, for cleanliness of the function namespace. `pony_` means it is a public API meant for use by third party code, whereas `ponyint_` means it is internal. Unless there is a good reason to make it public, we should prefer to keep it internal because public functions require us to treat any changes to them as breaking changes in Pony. So, this function should end up named `ponyint_address_length`, or something else with that prefix." + }, + { + "prediction": "I think this should be `DEV_FUSE_MOUNT` instead of `DEV_FUSE_MOUNT`.", + "reference": "Fuse for shared volumes is a px specific implementation. libopenstorage doesn't know about it, right? So should this be called DeviceVirtualMount (or something similar) instead?" + }, + { + "prediction": "I think this should be `[MarshalAs(UnmanagedType.U1)]` instead of `[MarshalAs(UnmanagedType.U1)]`.", + "reference": "`bool` vs `BOOL` in native side :)" + }, + { + "prediction": "I think this should be `const lint = require('../lib/lint')`", + "reference": "I think maybe you moved it to util but this is still around and it should get it from util instead." + }, + { + "prediction": "Layout/EmptyLinesAroundClassBody: Extra empty line detected at class body end.", + "reference": "Do we need to test the redirection?" + }, + { + "prediction": "Why is this change needed?", + "reference": "Tsts, that's why... activity leak about to happen" + }, + { + "prediction": "Why do we need to close `t.C` here?", + "reference": "You should do a select here IMO just to be safe so we do not block forever." + }, + { + "prediction": "Why is this change needed?", + "reference": "I'll replace this with the actual outbox object soon." + }, + { + "prediction": "Shouldn't this be a `Codebase\\CodebaseInterface`?", + "reference": "Providers are called *before* `setUp()`, so I don't think you can access properties here." + }, + { + "prediction": "I think this should be `AttributeUsage(AttributeTargets.Method, AllowMultiple = true)` instead of `AttributeUsage(AttributeTargets.Class, AllowMultiple = true)`", + "reference": "While this allows it to be applied does it correctly cause the entire class to be skipped?" + }, + { + "prediction": "I think this should be `set_random_seed(args.seed, deterministic=args.deterministic=args.deterministic)`", + "reference": "clean unnecessary modification." + }, + { + "prediction": "Why is this change needed?", + "reference": "I think these assertions want to be `.to.not.exist` which would pass for `null` or `undefined`" + }, + { + "prediction": "I think this is a bit confusing, but I don't think we need to add a blank import here.", + "reference": "Don't think you need this since this is not a URL example." + }, + { + "prediction": "Line is too long. [92/80]", + "reference": "Maybe a test to check if the generated value is within the boundaries would be nice, what do you think?" + }, + { + "prediction": "I think this should be `Encoding.UTF8` instead of `UTF8Encoding`", + "reference": "Suppresses UTF-8 BOM in outputs" + }, + { + "prediction": "Why is this needed?", + "reference": "order wrong for \"outgoing and incoming\"" + }, + { + "prediction": "I think this should be `final`.", + "reference": "We know it's a boolean and it's in the MemoryCircuitBreaker, why not simply call it `enabled` (like many other Solr plugins do)?" + }, + { + "prediction": "Layout/EmptyLinesAroundClassBody: Extra empty line detected at class body end.", + "reference": "Should team be a \"feature\" that can be \"included\" or a type? In code it seems to me that a `team` flag makes sense." + }, + { + "prediction": "I think this should be `defer logParamsMutex.Unlock()`.", + "reference": "Why is this called update params when it's updating project info? Should p called project?" + }, + { + "prediction": "Why do we need to add `ON DUPLICATE KEY UPDATE data=VALUES(data), data_encoding=VALUES(data_encoding)`?", + "reference": "`upsertHistoryTreeQuery` is a better name for this query now. Is it ok to change history?" + }, + { + "prediction": "I think this should be `gitBranch = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, \"git-branch\") ? File.ReadAllText(Path.Combine(AppDomain.CurrentDomain.BaseDirectory, \"git-branch\") : string.Empty;`", + "reference": "b did not mean branch - it meant the next version - so probably better to be able to release from a tag on the branch so we can create a hotfix branch of the 1.4.1 tag and tag it 1.4.1b and then version is picked as 1.4.1b" + }, + { + "prediction": "Why is this removed?", + "reference": "Keep the mpi.h include, just move it to after adios2.h and guard with the ifdef. Otherwise everything else looks good." + }, + { + "prediction": "I think this should be `rootfs_mount_mode` instead of `rootfs_mount_mode`.", + "reference": "Shouldn't this be something like `rootmountmode` to fit the pattern of the other fields' serialized representations?" + }, + { + "prediction": "Why is this removed?", + "reference": "Why were we initializing here in the first place?" + }, + { + "prediction": "I think this should be `LogProvider.GetLogger(string name, string messageFunc, Exception exception, formatParameters)`", + "reference": "This should be removed, and instead set the logger to None." + }, + { + "prediction": "Why is this change needed?", + "reference": "Storing a reference to source data isn't the best choice. Maybe you can find a different way (without storing the reference) to save removed data?" + }, + { + "prediction": "I think this should be `_The_object-oriented-UDFinterface-DebuggingUDFcode`", + "reference": "Is the tutorial going to move to the new Trafodion website or will it stay on the Confluence wiki? (Check with Gunnar.)" + }, + { + "prediction": "I think we should use `convertRetryReplication` instead of `convertRetryTaskV2`", + "reference": "maybe call it `fromRetryTaskV2Failure`" + }, + { + "prediction": "Why is this needed?", + "reference": "The diff for this class is difficult to walk through because I reorganized it to be much more clear. There are improvements throughout, but the most important are in the new `createSmokeTest.*` methods." + }, + { + "prediction": "I think this should be `if img_norm_cfg:` or `if img_norm_cfg:`", + "reference": "We suggest keeping this logic in lines between 173-175 to restrict its influence." + }, + { + "prediction": "I think this should be `null` or `void`.", + "reference": "why not ? maybe another phpstan plugin" + }, + { + "prediction": "Shouldn't this be `TimeSpan.FromMilliseconds(_jsonRpcConfig.TracerTimeout)` instead of `TimeSpan.FromMilliseconds(_jsonRpcConfig.TracerTimeout)`?", + "reference": "That was a really bad CR from me before if I did not spot it." + }, + { + "prediction": "I think this should be `/usr/bin/flock -n /tmp/forseti_cron_runner.lock` instead of `/usr/bin/flock`", + "reference": "Does this resolve the scenario when the user-triggered forseti process is running, and it would be killed by the cron job restarting the server?" + }, + { + "prediction": "Why is this removed?", + "reference": "Does this happen somewhere else now?" + }, + { + "prediction": "I think we should use `videoTestElement.canPlayType('video/mp4; codecs=\"avc1.640834\"').replace(/no/, '')` instead of `videoTestElement.canPlayType('video/mp4; codecs=\"avc1.640834\"').replace(/no/, '')`", + "reference": "Remove trailing space at this line, amend the commit, and then force-push." + }, + { + "prediction": "I think this should be `go.opentelemetry.io/api/trace`", + "reference": "This should be grouped together with the import of \"go.opentelemetry.io/{api/core,sdk/export}\" below." + }, + { + "prediction": "why is this needed?", + "reference": "What's the impact to people upgrading to the new version? If they don't change their file names, they'll suddenly be broken. While I agree that your naming makes more intuitive sense, I think we need to maintain backwards compatibility. Please choose a new rules file name for the new scanner and keep ke_rules.yaml for the existing version scanner." + }, + { + "prediction": "Why is this change needed?", + "reference": "Shall we add some docstrings clearly to describe when to use which clearly? For example, `spark_frame` now should always be used via `df._internal.applied.spark_frame` for Spark DataFrame APIs that internally creates new query execution plan with the different output length. For expressions and/or functions, `df._internal.spark_frame` should be used together with Spark column instances, in order to avoid the operations on different DataFrames." + }, + { + "prediction": "`data` is a Pandas DataFrame, all other arguments except `index` should not be used. `data` is a Pandas DataFrame, all other arguments except `index` should not be used.", + "reference": "nit: `.` at the end of line?" + }, + { + "prediction": "I think this should be `if (msg == 0 && mCurrentFolder.loading) {`", + "reference": "I'm not sure I agree that this should take priority over \"Loading\"." + }, + { + "prediction": "Why is this removed?", + "reference": "Was this an intentional deletion? Why not just allow overwrite of `deploy_mode`?" + }, + { + "prediction": "I think this should be `syncFailed` instead of `syncFailed`", + "reference": "better to call it as syncCVRStatus.. just syncCVR is very confusing" + }, + { + "prediction": "I think this should be `*GlobalOpts` instead of `*GlobalOpts`.", + "reference": "should we make this not a pointer? so that when we embed the struct a copy is made instead of modifying the original object." + }, + { + "prediction": "I think we should use `kinto.core.redis.redis` instead of `kinto_redis.redis`", + "reference": "Does this mean that `kinto_redis` is required to run tests?" + }, + { + "prediction": "Why do we need this?", + "reference": "will this ensure the indexes for ordered writes as well?" + }, + { + "prediction": "I think this should be `boolArray`.", + "reference": "Put `BoolArray` first?" + }, + { + "prediction": "I don't think we need to import `site` here.", + "reference": "I believe this whole file can be deleted now." + }, + { + "prediction": "I think we should use `MYST` instead of `MYST`", + "reference": "We should specify format for a user. I.e: Integer, 1000 == 1 MYST" + }, + { + "prediction": "I think this should be `for _, controller := range config.Controllers { controller := controller(ctx, sc)`", + "reference": "Does the errors returned from these controllers indicate which controller threw the error? If not, there might be some value in making the \"CustomControllers\" type a `map[string]func(ctx context.Context, sc *server.Context) error` with the name of the controller as the key and include the key in this error string. This would apply for below as well." + }, + { + "prediction": "I think this should be `if (opts.prefix_size) { builder_.FinishSizePrefixed(Offset(toff), file_identifier_.length() ? file_identifier_.c_str() : nullptr); } else if (opts.prefix_size) { builder_.FinishSizePrefixed(Offset
    (toff), file_identifier_.length() ? file_identifier_.c_str() : nullptr); } else if (opts.prefix_size) { builder_.FinishSizePrefixed(Offset
    (toff)); } else { builder_.FinishSizePrefixed(Offset
    (toff, file_identifier_.length() ? file_identifier_.c_str() : nullptr); }", + "reference": "maybe at least pull the file identifier arg out of the if?" + }, + { + "prediction": "Why is this removed?", + "reference": "You can most likely remove that (and the try/finally) too, as we shouldn't have any flickering from removing/inserting tabs anymore now." + }, + { + "prediction": "I think this should be `this._localHooks[key] = [];`", + "reference": "Could you add `s` to `@return`?" + }, + { + "prediction": "I think this should be `@profile_paths[name] = p if p` instead of `@profile_paths[name] = p if p`", + "reference": "Moving this code inside the last case statement doesn't seem right. Why are we defining `name` and `is_relative` variables there if we aren't using them anywhere?" + }, + { + "prediction": "I think this should be `klog.Errorf(\"marshal message to edgemesh failed, err: %v\", err)`", + "reference": "Will cause any bugs without this change? I've seen this code block(L293-302) many times... ;-)" + }, + { + "prediction": "I think this should be `public IDictionary Properties => _contextProperties ?? new Dictionary();`", + "reference": "You are opening a door to race-condition-hell by returning an unprotected dictionary. I recommend that you return `IReadOnlyDictionary` that only works on the platforms where it is known." + }, + { + "prediction": "I think this should be `it.skip(done)` instead of `it.skip(done)`", + "reference": "also seems we should not skip this test" + }, + { + "prediction": "I think it would be better to use `new DeleteFile[0]` instead of `new DeleteFile[0];`", + "reference": "This is mostly for my understanding: is `DeleteFile[] deletes` a mandatory builder param now for file scan tasks? If not, from a v1 / v2 compatibility standpoint would it make sense to add an overloaded constructor?" + }, + { + "prediction": "Shouldn't this be `FetchQueuedExecutableFlows.FETCH_FLOWS_QUEUED_FOR_LONG_TIME`?", + "reference": "Can the error message reflect the purpose of the query more closely? Something like \"Error fetching executions queued for a long time\"" + }, + { + "prediction": "I think this should be `!w.sourceExists(ci.StartupScript)` instead of `!w.sourceExists(ci.StartupScript)`", + "reference": "Are you making it so startup script HAS to be in sources?" + }, + { + "prediction": "I think this should be `if (vals.LDim() == 1 && vals.LocalWidth() == 1)`", + "reference": "Might be more clear to just have one if statement?" + }, + { + "prediction": "Why is this change needed?", + "reference": "remember that logger methods will do string interpolation automatically anyway, so you should be able to do `logger.error('message %s', var, exc_info=True)`" + }, + { + "prediction": "I think this should be `void render_args_struct(t_function *tfunc, const string &err_var);`", + "reference": "Perhaps rename to `render_service_args_struct`?" + }, + { + "prediction": "Why is this needed?", + "reference": "clean the name" + }, + { + "prediction": "I think this should be `http.StatusForbidden` and `http.StatusInternalServerError`", + "reference": "I think we would expect StatusNotFound instead of StatusForbidden?" + }, + { + "prediction": "Why not use snprintf here?", + "reference": "Since this is a recurring theme, would it make sense to have an ioencode interface for it like `ioencode_rank()` that takes an integer rank like before?" + }, + { + "prediction": "I think this should be `context.Background()`.", + "reference": "Is it a concern that we initialize these fields irrespective of whether resources like cgroup/volumes are enabled or not?" + }, + { + "prediction": "I think this should be `panic(fmt.Sprintf(\"no outbound set for service %q in dispatcher\", service))`", + "reference": "Wouldn't this be the first panic in yarpc? What do we do for transport validation? Return errors?" + }, + { + "prediction": "I think this should be `cancel(reason string)` instead of `cancel(context.Context)`", + "reference": "have you envisioned other cancellation reasons?" + }, + { + "prediction": "Why not just `@phpstan-param array $config`?", + "reference": "For the record, class-string is now suported by PHPStorm. Don't know if it's worth moving it to `@phpstan-param` then." + }, + { + "prediction": "I think this should be `World Id not in valid range`", + "reference": "This prevents negative IDs, but it doesn't check for too large IDs. You should probably just do the same check you do for `QWebengineScript` here as well." + }, + { + "prediction": "I think this should be `awsTagsFlag`.", + "reference": "This might be very confusing. Maybe `resource-tags`? I" + }, + { + "prediction": "`dilation` should be `_pair(self.dilation)` and `dilation` should be `_pair(self.dilation)`", + "reference": "We may use `_pair` to wrap `dilation`." + }, + { + "prediction": "I think this should be `readonlyPaths` instead of `maskedPaths`", + "reference": "what's with `setReadonly`? Why we deleted it totally?" + }, + { + "prediction": "Why is this removed?", + "reference": "Currently I think this is not acceptable. I think the value should be chosen by the author of the parser. (Personally \"type\" is better than \"typename\".)" + }, + { + "prediction": "I don't think we need to import the ec2 sdk here.", + "reference": "Is this excessive?" + }, + { + "prediction": "(style) line over 80 characters", + "reference": "Ohhhh I see, this change was previously having *no effect* - I had thought you meant we were doing something like bind mounting the initramfs' `/etc` as the real `/etc` but we'd clearly notice if that happened, we'd be missing all sorts of config files etc." + }, + { + "prediction": "I think this should be `@Nullable`", + "reference": "I think this needs a more specific name, like `sequenceNumberOverride`" + }, + { + "prediction": "I think this should be `unless connection_config.key?(:adapter)` instead of `unless connection_config.key?(:adapter)`", + "reference": "Ought we just raise an exception if the adapter isn't defined?" + }, + { + "prediction": "Why is this removed?", + "reference": "Should this have been removed? We still set the region to \"aws-global\" in v3model.go#L115" + }, + { + "prediction": "I think this should be `(qs if len(qs) else None)`", + "reference": "You could shorten this to `qs or None`. But why not just build a dict of parameters we want to include and only add `querystring` if there's something here, similar to the way you do in the error view?" + }, + { + "prediction": "Why is this removed?", + "reference": "sorry if I'm missing it somewhere else in the code, but do you need to create a `ticker := time.NewTicker`?" + }, + { + "prediction": "Why is this needed?", + "reference": "Inline this, as we don't use it again." + }, + { + "prediction": "I think this should be `ScanlineFilterCommon`", + "reference": "I think the instantiation of the new objects i.New() and T.New() need to be done in a function to have local variable and reduce the amount of memory used." + }, + { + "prediction": "I think this should be `IonMobility` instead of `IonMobility`", + "reference": "This is probably more digits than needed - perhaps rename OneOverK0 to IonMobility instead" + }, + { + "prediction": "I think this should be `FlattenedMethodAsyncCallSettings` instead of `FlattenedMethodAsyncCancellationToken`.", + "reference": "End with 'Method', so: - FlattenedAsyncCallSettingsMethod - FlattenedAsyncCancellationTokenMethod" + }, + { + "prediction": "I think this should be `internal/secrets`", + "reference": "`localsecrets` should be updated in the same way." + }, + { + "prediction": "I think this should be `ConsensusV18` instead of `ConsensusV17`", + "reference": "We'll want to PR a spec change into github.com/algorandfoundation/specs. (Side note: It might or might not make sense to combine this protocol upgrade with Tsachi's protocol upgrade for fixing the reward rate calculation.)" + }, + { + "prediction": "Why is this change needed?", + "reference": "Use `FullBlock`, it comes from the same package." + }, + { + "prediction": "I think we should use `readerwriterlock` here.", + "reference": "do we plan to use anything else than flask for making HTTP requests inside localstack? if so, it maybe makes sense not to strongly couple to flask for now, and just leave the type of the `request` function parameters open for now." + }, + { + "prediction": "I think this should be `if !as(&objp) { return errors.New(\"Writer.As failed to get ObjectHandle\")`", + "reference": "I think we should make this a separate test case: it seems like making the precondition fail is the test case that would ensure that this escape hatch worked. Otherwise, if it's always true, then it would be the same as if the escape hatch didn't modify the outgoing request." + }, + { + "prediction": "I think we should use `s.bc.GetBlockByHeight(0)` instead of `s.idx.BuildIndex`", + "reference": "Error return value of `s.idx.BuildIndex` is not checked" + }, + { + "prediction": "I think this should be `member in [configtypes.List, configtypes.LengthList]`.", + "reference": "What's the reason for excluding those from the fuzzing here? You probably could just add some inner type via `functools.partial` like below with `FormatString`." + }, + { + "prediction": "Line is too long. [89/80]", + "reference": "Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping." + }, + { + "prediction": "I think this should be `_ = container.Signal(syscall.SIGKILL, false)` instead of `_ = container.Signal(syscall.SIGKILL, false)`", + "reference": "Its this golint or govet stuff?" + }, + { + "prediction": "(style) line over 80 characters", + "reference": "These are good cleanups: I didn't realize there were so many like this in the samples and tests. But given that there are quite of few of these mcontext changes I would separate these into their own PR (no need for an issue: iX branch) since they are logically distinct. Cleaner history, simpler revert paths, etc." + }, + { + "prediction": "I think this should be `ColorEquality.Equals(new Rgba32(128, 128, 128, 128));`", + "reference": " This is just a random struct equality, no value here." + }, + { + "prediction": "I think this should be `natportrange-list` instead of `natportrange-list`", + "reference": "Just spotted the `local` on here; that shouldn't be needed - no reason to limit this config to env vars only" + }, + { + "prediction": "why do we need this?", + "reference": "I had some weird issues when importing ``from .. import util`` getting the wrong utilities, hence I did this." + }, + { + "prediction": "This file is not needed anymore.", + "reference": "Please remove this line." + }, + { + "prediction": "Metrics/LineLength: Line is too long. [98/80]", + "reference": "should this state that we're falling back to `:acceptable_exit_codes`?" + }, + { + "prediction": "I think this should be `preview` instead of `preview`", + "reference": "I don't think this works. The dataframe object is encapsulated in the value parameter. This might be the root of the failing checks." + }, + { + "prediction": "why not just delete if serverType === ServerType.Standalone and this.servers.size === 1?", + "reference": "Why was it necessary to add this check against `this.servers.size`?" + }, + { + "prediction": "I think this should be `getWrongOptionHelp` instead of `getWrongOptionHelp`", + "reference": "This tests for < 0 but the error message says it must be > 0. The `if` should probably be `<=` to match the message." + }, + { + "prediction": "I think we should use `String#Equals(String, StringComparison)` instead of `String.Equals(String, StringComparison)`", + "reference": "Short circuits when it's something like a WebPackRequest, which we should instrument and test specifically." + }, + { + "prediction": "Why is this removed?", + "reference": "Should this be true now by default?" + }, + { + "prediction": "Is there a reason why this is needed?", + "reference": "/DispatcherStatistics ? /statistics is a bit confusing with /stats" + }, + { + "prediction": "I think it would be better to use `tail: unrecognized file system type 0x794c7630` instead of `tail: unrecognized file system type 0x794c7630`", + "reference": "nit: Wondering if we should simply filter on `\"tail: unrecognized file system type\"`, or is the type identifier `0x794c7630` always the same?" + }, + { + "prediction": "I think we should use `uuid.UUID` instead of `uuid.UUID`", + "reference": "I think the goal of using `fake-cluster-id` was to make it sure clear that this is a fake cluster, replacing this with UUID only now makes these clusters look very similar to real ones which can cause problems.. any reason why we didn't go for the original recommendation from slack thread of `fake-cluster-UUID` @twiest" + }, + { + "prediction": "I think this should be `get_node_first_ancestor_of_type_and_its_child`", + "reference": "I need to spruce up my `mypy` knowledge but I think this is incorrect. Using `T_Node` twice makes it so that both should be the same type. I think this would be better: `Tuple[Optional[T_Node], Optional[nodes.NodeNG ]]`. It might even better to do: `Union[Tuple[None, None]. Tuple[T_Node, nodes.NodeNG ]]` as that shows that `None` should always pair with `None`" + }, + { + "prediction": "I think this should be `t.Errorf(\"controller.Register failed (%s)\", err.Error())`", + "reference": "Nit: below on line 449 we use `%v` to print an error - perhaps would be nice to do it in the same way in both places (but probably not that important). Similar in other places in this PR." + }, + { + "prediction": "I think this should be `self.live = False` instead of `self.reply.kill()`.", + "reference": "I'm not against adding a kill event, but we need to do it properly, please. That means listing it in events.py, adding docs for it, and so forth." + }, + { + "prediction": "I think this should be `if (!field.native_shared) {`", + "reference": "this line can be lifted outside of the if-then? In fact only CreateString / CreateSharedString needs to be inside of it." + }, + { + "prediction": "Why is this change needed?", + "reference": "I think the `EpisodesApplyActionFragment` is unused now. So please delete it :)" + }, + { + "prediction": "I think this should be `notice` instead of `trace`.", + "reference": "It seems like we should leave `notice` here since it can be configured in Bolt config files, and that's what sets the console config for messages from Puppet. For example, this will break plans that call `notice()` in their apply blocks." + }, + { + "prediction": "I think this should be `OOMwaitingJobMeter`.", + "reference": "This metrics is only exposed in executors. Should it be defined in azkaban.execapp.ExecMetrics instead?" + }, + { + "prediction": "I think we should use `moment.format(dateFormat, locale || moment.locale())` instead of `moment.format(dateFormat, locale || moment.locale())`", + "reference": "I originally factored out these functions from date_input. Currently, they are only used in datepicker, but they seemed more general purpose. If you decide we should keep the current date_input API (in case anyone is using it directly), then I think it makes sense to factor these out in order to be able to maintain consistency, but otherwise they could be inlined into datepicker.jsx if you prefer." + }, + { + "prediction": "Why is this change needed?", + "reference": "I think this should never happen and should return an error also. Having `WorkflowBackoffTimerTask` with `UNSPECIFIED` type looks weird." + }, + { + "prediction": "I don't think we need to check for `browser.tizen` here, but I think we should check for `e.keyCode === 13` instead of `e.keyCode === 32`.", + "reference": "Add `browser` import" + }, + { + "prediction": "I think this should be `sha256.Sum256([]byte(plaintextPassword))` or `sha256.Sum256([]byte(plaintextPassword))`", + "reference": "Would it be good practice to add a nonce in here (that's also stored in the config), so it's harder to tell when passwords are being reused?" + }, + { + "prediction": "I think this should be `@Path(\"/data\")` instead of `@Path(\"/data\")`", + "reference": "For consistency, the return type could be `TelemetryDataDto` here. This would be more consistent with the other REST API interfaces. From a functional perspective, the current code is perfectly fine though." + }, + { + "prediction": "I think this should be `solver_ = boost::make_shared>(param_file);`", + "reference": "I've never seen this `boost::make_shared`...why use it instead of `reset`?" + }, + { + "prediction": "Why not just use `getDispatchMethod(ExecutableFlow flow)`?", + "reference": "Wasn't this added as a part of different PR already?" + }, + { + "prediction": "Why is this change needed?", + "reference": "hmmmmm, should not be in constructor in this case `$this->toDelete = [[]];` ??? maybe not" + }, + { + "prediction": "I think we should use `response.get('ResponseMetadata', {}).get('HTTPStatusCode', 'Unknown')` instead of `response.get('ResponseMetadata', {}).get('HTTPStatusCode', 'Unknown')`", + "reference": "We can just update it to be as follows: `if response: print(\"Success\") else: print(\"Error\")`" + }, + { + "prediction": "I think this should be `interface{}{}`", + "reference": "Maybe this should be exported so (external/third-party) plugins can also use it." + }, + { + "prediction": "Why is this change needed?", + "reference": "Warning logging whould be exactly here in high logic. So that everybody understands why we swallow errors" + }, + { + "prediction": "Shouldn't this be `JsonRpcUrl? url`?", + "reference": "if its optional, move it to last item an use JsonRpcUrl? url = null" + }, + { + "prediction": "I think we should use `client_model_for(self)` instead of `client_model_for(self)`", + "reference": "how is this different from the `client_slug` method already available on a `user` ?" + }, + { + "prediction": "I think this should be `LOG.finest(String.format(\"Connecting to %s and %s\", publishConnection, subscribeConnection));`", + "reference": "I'd keep this at `info` level..." + }, + { + "prediction": "I don't think this is needed anymore.", + "reference": "I believe this env var won't be set anywhere. Do we need this condition?" + }, + { + "prediction": "I think we should use `window.getParameterByName` instead of `window.getParameterByName`", + "reference": "why add function explicitly?" + }, + { + "prediction": "Why is this change needed?", + "reference": "Is that intentional? If you don't create the cache here, it will never be created therefore used." + }, + { + "prediction": "I think we should use `time.Now()` here instead of `now.Add(4*time.Second)`", + "reference": "I think we can now remove this test case since we can ensure that multiple calls to `Fetch` will double the interval on each call" + }, + { + "prediction": "I think this should be `/__cadence_sys/__temporal_sys`", + "reference": "Not part of this PR but this const seems to be defined in multiple places. Needs to be extracted somewhere." + }, + { + "prediction": "Why is this import removed?", + "reference": "Remove this file from the PR" + }, + { + "prediction": "I think this should be `Byzantium.Instance` instead of `ConstantinopleFix.Instance`.", + "reference": "need to add it for ropsten, rinkeby, goerli as well" + }, + { + "prediction": "I think this should be `zfs` instead of `zfs`", + "reference": "G204: Subprocess launching should be audited (from `gosec`)" + }, + { + "prediction": "I think this class should be public and not public.", + "reference": "curious why only making these 3 public. what about other package scope methods like `times`, `timestamps`, `array`?" + }, + { + "prediction": "This is a list of exclusions for words or phrases that have the same spelling in a given language. The list of exclusions is a list of words that have the same spelling in a given language.", + "reference": "The Email field is not translated into Russian, and into any other. It's kind of a \"standard\" word. Therefore, we may face the fact that you have to create files with exceptions for all languages. @caouecs, what do you say?" + }, + { + "prediction": "I don't think we need to change this, but I think it would be better to use `boost::program_options::value()` instead of `boost::program_options::value()`", + "reference": "Should it say `default 0` here? looks a bit confusing. Also following BODMAS we should put: `2048 * (signature checker threads + 1)`" + }, + { + "prediction": "I don't think we need to import `ruamel.yaml` here.", + "reference": "Add a newline. We group by 1: standard library, 2: 3rd party library, 3: application library" + }, + { + "prediction": "I think this should be `RunQuery` and `Evaluate`", + "reference": "So `queryRange.Step` will be ignored?" + }, + { + "prediction": "Why is this needed?", + "reference": "It would be nice to replace these _HOST_* defines with HOST_*." + }, + { + "prediction": "I think this should be `rootDirWithSeparator := rootDir + filepath.Separator` instead of `rootDirWithSeparator`", + "reference": "The problem here was that the record file started with something like `/tmp/whatever/myproj` and was scrubbed to `[ROOTDIR]/myproj`, but the `/` is a `\\` on Windows." + }, + { + "prediction": "I think this should be `using` instead of `using`", + "reference": "Don't use relative paths. src directory is already on the include search path" + }, + { + "prediction": "I think this should be `test_tools` instead of `tools`.", + "reference": "if we're introducing this now can we make this private?" + }, + { + "prediction": "I think this should be `if (!ScanProvider.FileExists(_documentFilePath, f.FilePath)) {`", + "reference": "Something is wrong with the indentation here." + }, + { + "prediction": "I think this should be `strings` instead of `strings`", + "reference": "This should go to the external imports group below" + }, + { + "prediction": "I think this should be `log.Println(\"processing yaml folder\", p)`", + "reference": "Intended to be checked in?" + }, + { + "prediction": "I think it would be better to add a warning to the log message to indicate that the schemas in new version are less than the old version.", + "reference": "I think this warning message is the same as above one. Anyway, it's fine to keep it." + }, + { + "prediction": "I think we should use `Path.Combine(logsDir, fileName);` instead of `Path.Combine(logsDir, fileName);`", + "reference": "This is done few times, replace with some well named method" + }, + { + "prediction": "Why is this change needed?", + "reference": "`configs` isn't very descriptive, especially when there are other config-ish things like `generatorConfigs`." + }, + { + "prediction": "I think this should be `/reserve.php` instead of `/reserve.php`", + "reference": "In my point we have to check conversion with specific (non-ASCII) characters in unicode string." + }, + { + "prediction": "I think this should be `UnitTestExcludedVolume.py` instead of `UnitTestExcludedVolume.py`", + "reference": "Given that file still contains doctests (and should still contain doctests), they should be run. Please turn this back on." + }, + { + "prediction": "I think this should be `selfserve` instead of `selfserve`", + "reference": "we should keep the camel case format - selfServe" + }, + { + "prediction": "I think we should move this to the `api` package.", + "reference": "consider the alias `compute` in case this ever references other apis." + }, + { + "prediction": "I think this should be `cgroups.PathExists(m.paths[\"devices\"])`", + "reference": "It probably doesn't matter in practice, but we're not supposed to access a map without holding a lock. This is why I have suggested using `m.Path(\"devices\")` earlier -- it takes a lock before accessing m.paths. Alternatively, you can leave this code as is but add taking a lock (same as `Path()`)." + }, + { + "prediction": "I think this should be `gaAMPPropertyID`", + "reference": "Since `ga` is an acronym here, we should rename the generated actions and selectors to adhere to our naming conventions as it will no longer be capitalized properly. See below for how this is already done for the amp container ID settings. We should add `GA` to our list of checked acronyms as well in `packages/eslint-plugin/rules/acronym-case.js`." + }, + { + "prediction": "I think this is a good idea to keep the `uploads` array in the `status.uploads` array. I think it would be better to keep the `uploads` array in the `status.uploads` array.", + "reference": "uploading_finished and upload_meta_data_extracted can fire very quickly after another, and there is not much difference in the Assembly status that's useful to us. I kept only the Assembly fetch after metadata is extracted, which ensures that we'll have all the correct `uploads.*.meta` properties on the client side." + }, + { + "prediction": "I think this should be `!m.rootless && m.config.Path == \"\"`", + "reference": "Does it make sense to keep trying to read the file every time the function is called, or should we maybe use `sync.Once()` here?" + }, + { + "prediction": "I think this should be `DbCapacity` instead of `DbCapacity`", + "reference": "`DbCapacity` -> `DBCapacity`" + }, + { + "prediction": "Why are these tests removed?", + "reference": "For Berlin I confirmed all the fork hashes with the Geth team. Would you do the same with Martin? He responded quickly the last time." + }, + { + "prediction": "I think this should be `build/myst/myst service --agreed-terms-and-conditions socks5`", + "reference": "Does `sudo` required for `darwin` only? Don't we need it for `linux` too?" + }, + { + "prediction": "I think this should be `AWS::CloudFormation::Stack` instead of `AWS::CloudFormation::Stack`", + "reference": "Can you add description to this exported struct?" + }, + { + "prediction": "I think this should be `extend({}, component.prevState || state, context)`", + "reference": "Although this is needed for `getSnapshotBeforeUpdate` this also fixes a bug with `componentDidUpdate`. During rendering, the `state` variable is mutated. This has the consequence, that `previousState` would never hold the previous state, but the most current one." + }, + { + "prediction": "I think this should be `elbiface` instead of `elbiface`", + "reference": "Should this maybe directly start with ELBv2 aka NLBs or ALBs?" + }, + { + "prediction": "I think this should be `if (request.url().match('google-site-kit/v1/core/site/data/notifications') && request.url().match('google-site-kit/v1/core/site/data/notifications') && request.url().match('google-site-kit/v1/core/site/data/notifications') && request.url().match('google-site-kit/v1/core/site", + "reference": "This was the request that was often causing the test to fail as an unexpected API failure (or at least one of them )." + }, + { + "prediction": "I think this should be `super(error, xhr)`", + "reference": "I understand why `xhr = null`, but I think adding `error = null` implies that this method should work even if we don't pass the `error` argument. Should we remove it?" + }, + { + "prediction": "Shouldn't this be `GrpcGapicRetryMapping`?", + "reference": "It is not your code, and it is used like this all over the place in gapic generator, but the general rule is we should prefer using the least specific class/interface in the hierarchy, which still satisfies our requirements. Here, unless we really need anything specific from `ImmutableSet`, please use `Set` (less specific type) instead." + }, + { + "prediction": "I think this should be `flb_es_conf_destroy()` instead of `flb_es_conf_destroy()`", + "reference": "Sorry... I just realized... since we use sts_endpoint in the EKS Provider, this error message is no longer true. Role_arn is not required." + }, + { + "prediction": "I think this method should return a `Tree` instead of a `Tree`", + "reference": "(...), where each element ~are~ **is the** given {\\@code element}." + }, + { + "prediction": "I think this should be `sortOrder` instead of `sortOrderId`", + "reference": "I think this can be an int because we have a default that is always valid, `0`." + }, + { + "prediction": "I think this should be `expect(today).not_to be_upcoming`", + "reference": "I think you can use `build_stubbed` here for the same results but with more speed." + }, + { + "prediction": "I think this should be `isinstance(rampup, numeric_types)` instead of `isinstance(hold, numeric_types)`", + "reference": "what if one of them is property and one is not?" + }, + { + "prediction": "Why do we need this?", + "reference": "> UI plugins swallow rejection errors so they don't end up in the console with no way to fix But it will still catch upstream in `addFile` and restrictions to show the informer?.. " + }, + { + "prediction": "Why not just pass `owner` to `topology.startSession`?", + "reference": "can't this just be left undefined/null?" + }, + { + "prediction": "I think we should keep the `_error` as it's not used anymore.", + "reference": "changed bc we are using the `error` var below" + }, + { + "prediction": "Why is this change needed?", + "reference": "Is there a reason why this is change is in the same commit?" + }, + { + "prediction": "I think this should be `cp -rf` instead of `cp`", + "reference": "@nghialv btw, perhaps was this method originally created for copying the repo root to the given `dest` as a subdirectory?" + }, + { + "prediction": "I think this should be `var status = new ProgressStatus(Resources.ChromatogramLibrary_LoadLibraryFromDatabase_Reading_precursors_from__0_);`", + "reference": "Just curious - why not var?" + }, + { + "prediction": "I don't think this is needed.", + "reference": "Why would we import this here and not use it? Is there a side-effect of this import?" + }, + { + "prediction": "Use the new Ruby 1.9 hash syntax.
    Space inside { missing.
    Space inside } missing.", + "reference": "The name `errors` is a bit mis-leading -- usually I'd expect a field called `errors` to be an array of errors but here it's just a count. And it's not a count of _all_ errors -- it's a count only of some errors." + }, + { + "prediction": "Why remove this?", + "reference": "there was no usage of the bundle in the framework? everything works exactly the same after the removal?" + }, + { + "prediction": "Is there a reason to do this? I don't think we need to do this.", + "reference": "Why this difference?" + }, + { + "prediction": "I think we should use `p_buffer->sqlcode` instead of `p_buffer->errorText`.", + "reference": "Surround code issue. RequestError may not be null terminated when the RequestError size is less than the length of the string in p_buffer->errorText. Also, this can cause core dump due to segment violation if length of errorText is less than the size of RequestBuffer." + }, + { + "prediction": "I think this should be `var AccountMaxVersionPrefix = []byte(\"vp.\")`", + "reference": "`AccountMaxVersionPrefix` is a global variable (from `gochecknoglobals`)" + }, + { + "prediction": "Why is this removed?", + "reference": "I see it is not part of this PR but I somehow overlooked it before. Can you use same import aliases as we use everywhere in the project: `apicommon` -> `commonpb` `apireplication` -> `replicationpb` `\"go.temporal.io/api/enums/v1\"` -> `enumspb \"go.temporal.io/api/enums/v1\"`" + }, + { + "prediction": "I think we should be able to use `BackendError` instead of `ReadonlyError`.", + "reference": "Nit: Maybe merge these into one string while you are here?" + }, + { + "prediction": "I think this should be `fakeCoroutine(dst**task)` instead of `fakeCoroutine(dst**task)`", + "reference": "Why make a new file for this? I think keeping everything related to the scheduler in a single file increases readability. Especially when there is no API-boundary in between. Functions like `getCoroutine` and `yield` also live in the normal scheduler files so it doesn't seem consistent." + }, + { + "prediction": "I think this should be `ifaceConfigurationEnabled` instead of `ifaceConfigurationEnabled`", + "reference": "tiniest of nits: why would you abbreviate \"interface\" but not \"configuration\" ?" + }, + { + "prediction": "Why is this removed?", + "reference": "Removing since all of the domain-neutral testing will be done in the new `Samples.MultiDomainHost.Runner` app" + }, + { + "prediction": "I think this should be `[PROCESS_WITH_PID={}]`.", + "reference": "is there a better way to detect this rather than just always assuming it's cygwin if everything else fails? i think you can check `if sys.platform == 'cygwin'`" + }, + { + "prediction": "I think this should be `yaml.scanner.ScannerError` instead of `yaml.scanner.ScannerError`.", + "reference": "duplicate code - can you move into build_from_path() ?" + }, + { + "prediction": "Why is this needed?", + "reference": " very important test as we want to make sure the old name still work." + }, + { + "prediction": "I don't think we should be using `sys.maxint` here. I think it's better to use `sys.maxint` instead of `sys.maxint`.", + "reference": "I think returning 1 should some how be moved in to specific support for LibreOffice.." + }, + { + "prediction": "(style) line over 80 characters", + "reference": "Should be inside `ifdef X86` I would think (or moved to ... I guess arch/x86/emit_utils.c)" + }, + { + "prediction": "I think this should be `Services` instead of `v1.Service`", + "reference": "Using sync.Map(key: nodename; value: state) instead of this \"EdgeNodes\" string slice here would be much better. Reasons: 1. Using sync.Map makes the time complexity of function UpdateEdgeNode and IsEdgeNode O(1), while using string slice with for loop makes it O(n). 2. Later we could be checking node state whether it's \"ready\" or still \"not ready\" by directly comparing \"value\" of sync.Map and doing the node state updating." + }, + { + "prediction": "I think we should use `IsApiVersionPattern` instead of `IsApiVersionPattern`", + "reference": "nit, does it make sense to get this variables outside the func where they are used?" + }, + { + "prediction": "I think this should be `ruby` instead of `ruby`", + "reference": "to **an** Amazon... Simple Notification **Service** (singular)" + }, + { + "prediction": "Why do we need this?", + "reference": "Nit: is \"top\" a short name we use frequently? Seems a bit mysterious, and saves only 2 chars." + }, + { + "prediction": "Why is this needed?", + "reference": "This name is really confusing. May be just remove this const completely and hardcode `4` where it is used?" + }, + { + "prediction": "I think we should remove this test as well.", + "reference": "Why did you remove this spec?" + }, + { + "prediction": "Why remove this?", + "reference": "The vendor prefix is still being used on Chromium based browsers like Edge Chromium and Chrome. Did you mean to remove this?" + }, + { + "prediction": "I think this should be `kwargs.get('composite_root_resources') or []`", + "reference": ".get will return None if there is no project_id key, so the or None part is redundant" + }, + { + "prediction": "I think this should be `TimeOffset` instead of `TimeOffset`.", + "reference": "Do they need to be `internal`?" + }, + { + "prediction": "I think this should be `output := exec.Command(prog, args...).CombinedOutput()`", + "reference": "Hit a flake here where I think there may have been some output to stderr that got mixed in with the output from Stdout. Hence switching to `Output()`, which does also capture stderr as `err.Stderr`" + }, + { + "prediction": "I think this should be `CUDA_DRIVER_FUNCTION_MAP` instead of `CUDA_DRIVER_FUNCTION_MAP`.", + "reference": "Is there any official CUDA API called cuMemcpy2D_v2?" + }, + { + "prediction": "I think this should be `ImageMgmtConstants` and not `ImageMgmtConstants`", + "reference": "Can you please move this interface as class in common Constants file in az-core module?" + }, + { + "prediction": "I think we should use `fs::FileUtils::dirname(pidFile.c_str()).c_str()` instead of `fs::FileUtils::dirname(pidFile.c_str()).c_str()`", + "reference": "Why not TempDir?" + }, + { + "prediction": "I think this should be `IMvxElement`", + "reference": "IMvxFormsView -> IMvxElement is a breaking change, isn't it?" + }, + { + "prediction": "I think this should be `ansible_galaxy_install`", + "reference": "This should be imported alphabetically." + }, + { + "prediction": "Why is this change needed?", + "reference": "Please apply same changes as for Payment" + }, + { + "prediction": "I don't think this is needed.", + "reference": "This should only be used in the `ScrollEffect` component, as you have in the `DashboardMainApp` below " + }, + { + "prediction": "I think this should be `g.token_str` instead of `g.token_str`", + "reference": "I'd call it `g.auth_token`, just to make it more clear" + }, + { + "prediction": "I don't think we need this constant anymore.", + "reference": "Not sure if this is what we really need, we might need to adjust this constant after more extensive benchmarking." + }, + { + "prediction": "I think this should be `/branches/:id` instead of `/branch`", + "reference": "Shouldn't we use `:branchname` here? Or just `:branch`?" + }, + { + "prediction": "I think this should be `RandNum` instead of `RandNum`.", + "reference": "`AutoTime` is a number but calling `int()` would make it crash. Tested through the docs" + }, + { + "prediction": "I think we should use `default(KeyValuePair)` instead of `default(KeyValuePair)`", + "reference": "@eddynaka Looks like the same block more or less 4 times, should we have a helper method? private void AddOrReplaceAttribute or something?" + }, + { + "prediction": "I think it would be better to use `StringUtils.joinPaths` instead of `StringUtils.joinPaths`", + "reference": "Please do the same for the DebugFilter a few lines above." + }, + { + "prediction": "I think this should be `from './setupRerender';`", + "reference": "Minor nit: Just inline both functions here. No need to make a file per function (that's a popular approach for some projects though, just not for us :) )." + }, + { + "prediction": "I think this should be `this(useDefaultSources ? CreateDefaultConfigurationSource() : null)`", + "reference": "There are several uses of the word \"default\" in here, perhaps it can be reworded slightly?" + }, + { + "prediction": "Why not use `FormEvents::SUBMIT` instead of `FormEvents::BIND`?", + "reference": "`function (` is correct. A space must be there. Please run `make cs` to have correct coding style." + }, + { + "prediction": "I think this should be `isVisible(elm.actualNode, false)`", + "reference": "I think this is now going to fail the scenario where there is a `main` with aria-hidden=\"true\". I don't think that should fail." + }, + { + "prediction": "Why is this change needed?", + "reference": "Is this specifically that if we capture the cast in another variable, even if it passes escape analysis, that the runtime will copy?" + }, + { + "prediction": "I think this should be `cluster-api-provider-aws-*` instead of `cluster-api-provider-aws-*`.", + "reference": "Should this be optional for existing configs to work?" + }, + { + "prediction": "I don't think we need to do this, but I think it would be better to use `s.metrics.AvailableBalance.Set(float64(balance.Int64()))` instead of `s.metrics.TotalSent.Set(float64(balance.Int64()))`", + "reference": "note that `balance` does not necessarily fit into `int64`, especially with the new bzz token. so you might want to avoid the `int64` conversion step using `big.NewFloat(0).SetInt(balance).Float64()`." + }, + { + "prediction": "I think this should be `--jsonschema` instead of `--jsonschema`", + "reference": "lets leave out the `-S` ?" + }, + { + "prediction": "I think this should be `String#toLowerCase(String value)` instead of `String#toLowerCase(String value)`", + "reference": "Is this method needed?" + }, + { + "prediction": "I don't think this is needed.", + "reference": "How about, instead of reading the param every time, just add a class member variable to hold the value of the flag, and just set it once during `LayerSetUp`?" + }, + { + "prediction": "I think this should be `ServiceTasksDesired` instead of `ServiceTasksDesired`", + "reference": "Does this mean it's only returning tasks associated with the primary deployment? or something else" + }, + { + "prediction": "I think this should be `t.Logf(\"Orig Error: %#v of type %T\", err, awsError.OrigErr())`", + "reference": "nit, would be good to include prefix for this log statement." + }, + { + "prediction": "Shouldn't this be `assert.deepEqual(checks['aria-required-attr'].evaluate.call(checkContext, target, ['aria-valuenow', 'aria-valuemin', 'aria-bats']);`?", + "reference": "Same here, you should use a made up role. May I suggest `role=\"McCheddarton\"`? :)" + }, + { + "prediction": "Why is this change needed?", + "reference": "@aokolnychyi, shouldn't this check whether the operation is a delete? If this is invoked by `DELETE FROM` then we don't need to validate conflicting deletes." + }, + { + "prediction": "Why is this change needed?", + "reference": "Any reason to split up this import block? I think most files have them together in one block, right?" + }, + { + "prediction": "I think this should be `if (span != null)` instead of `if (span != null && span != null)`", + "reference": "`Tags.AppSecEnabled` should probably move to `Metrics.AppSecEnabled` I guess?" + }, + { + "prediction": "I think this should be `super().__init__(path, mode)`", + "reference": "What happens if you remove this? Can't you still initialize this atomic_file class, since it's just AtomicLocalFile with an additional method (move_to_final_destination)?" + }, + { + "prediction": "I think this link should be moved to the `partners_html` link.", + "reference": "As previously discussed in #1944 it's not safe to remove IC like this as it will break every language that still has a `%{ic}` marker in the translation." + }, + { + "prediction": "I don't think we need to add the `IPinIP` rule here.", + "reference": "I believe these rules will be enforced both (1) on egress from a local workload, and (2) on ingress **to** a local workload. Right? I understand that we definitely want (1), but do we really want to enforce (2) as well?" + }, + { + "prediction": "I think this should be `POST` instead of `POST`", + "reference": "Update after command rename" + }, + { + "prediction": "I think this should be `digits.gsub(/(\\d{3})(?=\\d)/, '\\1.')` instead of `digits.gsub(/(\\d{3})(?=\\d)/, '\\1.')`", + "reference": "What about adding an optional parameter that allows users to choose whether they want to use the format or not?" + }, + { + "prediction": "Why is this removed?", + "reference": "Lint didn't like this context being before the skip" + }, + { + "prediction": "I think this should be `http.Handler` instead of `http.Handler`.", + "reference": "so now basically anybody could drink my tequila? currently electron dev-env runs on `http://localhost:9080`" + }, + { + "prediction": "I think this should be `mDesktopFile.id()` instead of `mDesktopFile.id()`", + "reference": "`mPluginLoader` is nullptr in static plugins, which causes segmentation faults" + }, + { + "prediction": "Why is this change removed?", + "reference": "Better use `Optional> onSearch` here." + }, + { + "prediction": "Why did you remove this?", + "reference": "this is asserted as invalid input" + }, + { + "prediction": "I think we should use `state.BuildRuleArgOrder()` instead of `state.BuildRuleArgOrder()`", + "reference": "Why do you need to create a new parser? Can't you just use `state.Parser` to answer this question?" + }, + { + "prediction": "Shouldn't this be `GetOmmers` instead of `Ommers`?", + "reference": "remove processing references from Nethermind.Core where possible, keep clean" + }, + { + "prediction": "I think this should be `UnsupportedEncodingException`.", + "reference": "Why not make this a subclass of `MessagingException` so we don't need to change all `throws` clause?" + }, + { + "prediction": "I don't think we need to import DRBG here.", + "reference": "it should instead be `from .hmac_drbg import DRBG` also, please put it at the bottom of the imports (PEP 8 order), so near line 36" + }, + { + "prediction": "`deletes.contains(schema.findField(parent + \".\" + name).fieldId()),`", + "reference": "Nit: indentation is 2 indents (4 spaces) from the previous line." + }, + { + "prediction": "I think this should be `ddev` instead of `ddev`", + "reference": "I don't understand why this is changing to a hard-coded string." + }, + { + "prediction": "Why is this change needed?", + "reference": "nit: perhaps calling this `config` would be more clear?" + }, + { + "prediction": "I don't think we need to change this, but I think it would be better to use `uploadingXFiles` instead of `uploadingXFiles`.", + "reference": "I would rather recommend using 'Wird hochgeladen' since the imperative form of 'Lade hoch' confuses me whether this is an action I need to do or whether it's an action that Uppy is currently doing. Just my two cents." + }, + { + "prediction": "I think this should be `0077` instead of `0077`", + "reference": "Hmm I would have expected this to go away? What role does it play now that we have a minimum?" + }, + { + "prediction": "Why did you remove this?", + "reference": "if we are removing this, is it useful to have the `isGetMoreError` message below? If that's not required, can we also remove the `mongoErrorContextSymbol` outright?" + }, + { + "prediction": "I think this should be `std::unique_lock(lck, [this, amount]);`", + "reference": "I think this mutex is only used here. Remove it." + }, + { + "prediction": "I think it would be better to add a `@SuppressWarnings(\"unused\")` method to the `IndexSearcher` class.", + "reference": "it's unclear to me which method you are recommending overriding?" + }, + { + "prediction": "Why is this change needed?", + "reference": "This make me think that if the typing of a variable is inconsistent it could cause problem. For example here, if `field == 0`, the behavior is not exactly the same. A `0` and is implicitelty false. Well it works because summing 0 is neutral, but what if it was a multiplication ?" + }, + { + "prediction": "Why is this needed?", + "reference": "Remove this file from the PR" + }, + { + "prediction": "Why is this change needed?", + "reference": "I cannot find the changes / results of the eip2565 benchmark" + }, + { + "prediction": "I think this should be `data: false, zeroData: false}`", + "reference": "@tofumatt now that I see this in context, we're now resetting 2/3 of the keys in the `NewComponent` state - the other being `error`. It seems that `error` should probably also be reset - essentially resetting all of the component state when the date range changes. What do you think? cc: @felixarntz @adamsilverstein" + }, + { + "prediction": "I think this should be `Task.FromResult(0)` instead of `Task.FromResult(0)`", + "reference": "This one and the ones below are for shutdowns but if it appears in some method called frequently during the lifetime of the process it should be cached in a static." + }, + { + "prediction": "Why is this needed?", + "reference": "Better to just do `const err = yield User.bulkWrite(ops).then(() => null, err => err);` so you don't need to write out the whole `try/catch` block." + }, + { + "prediction": "why is this change needed?", + "reference": "`action.ExecutionDataGas = 100`" + }, + { + "prediction": "I think this should be `@group legacy`", + "reference": "@supersmile2009 please review. Is it right to mark this as legacy? Are we testing the legacy path here? Are there tests for the non-legacy path?" + }, + { + "prediction": "I think this should be `spcGot` instead of `spcGot`", + "reference": "getSpcResource should not be bothered about deletion. Can we have `separation of concerns` for this logic?" + }, + { + "prediction": "Why is this removed?", + "reference": "This is actually matched with pandas's result since the output is sorted." + }, + { + "prediction": "I think this should be `AccountList` instead of `WalletList`", + "reference": "struct field tag `yaml:\"endpoint\"\"` not compatible with reflect.StructTag.Get: key:\"value\" pairs not separated by spaces (from `govet`)" + }, + { + "prediction": "I think this should be `num_refs_(0u)` instead of `num_refs_(0u)`", + "reference": "This is not necessary. Topic inherits from DomainEntity which already has instance_handle_" + }, + { + "prediction": "Why is this test disabled?", + "reference": "Do we need the forXDP parameter in runBpfUnitTest? If not, I think better to revert in order to save a few changes." + }, + { + "prediction": "Why is this change needed?", + "reference": "All the code that reference to this function must also be changed." + }, + { + "prediction": "I think this method should be called `validateUserGroupMembership(String username, String groupName)` instead of `validateUserGroupMembership(String username, String groupName)`", + "reference": "How is this new interface different from existing `validateProxyUser` method? If I understand correctly the `proxyUser` parameter is essentially a group and the method should verify if `realUser` belongs to it." + }, + { + "prediction": "Why not use `BlockTree` instead of `BlockChain.BlockTree`?", + "reference": "Do we have namespace conflicts?" + }, + { + "prediction": "Why is this needed?", + "reference": "We have several groups of caches so I think we should not use this shared configuration value for all of them. Instead of that, each cache group should have a separate configuration field, and the added `validation cache` should have its own field too. But this point, they can be fixed by `24h`." + }, + { + "prediction": "I think this should be `primary` instead of `secondary`.", + "reference": "This is a BC break for extending classes, it can't be done on 3.x" + }, + { + "prediction": "I think this should be `response.getheader('x-amz-server-side-encryption-customer-algorithm', None)`", + "reference": "Line length (PEP8, should be 80 chars max)" + }, + { + "prediction": "I think this should be `priority_low` instead of `priority_high`.", + "reference": "this is duplicate now. I suggest moving it into `MimeHeader`, we already have a bunch of other headers there" + }, + { + "prediction": "I think this should be `if len(trimmedPassword) > 0 {`", + "reference": "Can you expand the warning slightly \"Your password contains leading/trailing whitespace - in previous versions of rclone this was stripped\" Just so users know they might have to type their password without a leading space." + }, + { + "prediction": "I think this should be `MessageBox.Show(this, message);` and `MessageDlg.Show(this, message);`", + "reference": "I think \"this\" should be \"parent\"." + }, + { + "prediction": "I think this should be `self->changed = FALSE;` and not `self->dead`.", + "reference": "Why not init this at variable decl time instead?" + }, + { + "prediction": "I think this should be `envconfig:\"PROJECT_ID\"` and not `envconfig:\"PROJECT_ID\"`", + "reference": "Do we still need this if we're doing everything through `envconfig`?" + }, + { + "prediction": "I think this should be `IdentityCheck`?", + "reference": "I would like these options to have `experiment` prefix or suffix. Because we will be deleting them later" + }, + { + "prediction": "I don't think we need to do this, but I think it would be better to use `if ENV['DISABLE_SANDBOX_WARNING'] == 'true'` instead of `unless ENV['DISABLE_SANDBOX_WARNING'] == 'true'`", + "reference": "Since we have the same logic in both forms, can we make a shared partial/helper for it?" + }, + { + "prediction": "I think we should use `marketAddr.Hex()` instead of `marketAddr.Hex()`.", + "reference": "Why to introduce this intermediate variable?" + }, + { + "prediction": "I don't think we need to add a `client_type` parameter here.", + "reference": "Maybe use ChoiceParameter?" + }, + { + "prediction": "I think we should use `authorize` instead of `authorize` here.", + "reference": "Not positive is this is needed, given the `TokenAuth` include" + }, + { + "prediction": "I think this should be `MessageLocationTuple`", + "reference": "Why not use a docstring for it?" + }, + { + "prediction": "I think we should use `assertThat(commandErrorOutput.toString()).contains(\"Port number '10' has been specified multiple times.\");` instead of `assertThat(commandErrorOutput.toString()).contains(\"Port number '10' has been specified multiple times.\");`", + "reference": "Two more tests - no ports specified and every possible port specified - p2pPort, graphQLHttpPort, rpcHttpPort, rpcWsPort, metricsPort, metricsPushPort, stratumPort" + }, + { + "prediction": "I think this is a good idea, but I don't think it's necessary.", + "reference": "Don't worry about that next time, it's automated :)" + }, + { + "prediction": "I think this should be `disable=unused-variable`", + "reference": "No need for this, as pylint already only turns things off for this function and it's needed for the entire function." + }, + { + "prediction": "I think this should be `FLUENT_HOST` and `FLUENT_PORT`", + "reference": "Are these values expected to change over time? Why not inject these values in ECS backend instead of agent doing it?" + }, + { + "prediction": "I think this should be `app.String(\"node-name\")` instead of `app.String(\"node-name\")`.", + "reference": "as best i can tell, you are setting this here in order to make it available in `(e *ETCD) Snapshot(ctx context.Context, config *config.Control) error`. It feels wrong to pass state like this through an env var. Could you instead add a `nodeName` property to the ETCD struct?" + }, + { + "prediction": "I think this should be `keep_non_existent`", + "reference": "These seem to support the new test framework below, but the `.in.csv` files are still committed." + }, + { + "prediction": "I think this should be `if (txReceipts[i].Removed == false)`", + "reference": "!txReceipts[i].Removed and We can check it for first item outside of for loop, we don't expect mixed batches" + }, + { + "prediction": "I think this should be `repoURL` instead of `repoURL`", + "reference": "We can't unfortunately change any of our old flags :( it'd be a breaking change. Instead, we can keep both `githubURLFlag` and `repoURLFlag` and make the description of `githubURLFlagDescription` as \"(Deprecated) Use --url instead. GitHub respository URL for your service.\" It would be even better if we can make `githubURLFlag` as hidden but keep in the command. This way old commands will still work with `--github-url` but it won't appear anymore in the help menu." + }, + { + "prediction": "I think this should be `Puppet::ParseErrorWithIssue.from_error`", + "reference": "This provides file and line number if applicable." + }, + { + "prediction": "I think this is a good idea to use `import numpy as np` instead of `import numpy as np`", + "reference": "This is already imported. Please check the file." + }, + { + "prediction": "I think this should be `aSelection.isActionAvailable(GeckoSession.SelectionActionDelegate.ACTION_COPY)` instead of `aSelection.isActionAvailable(GeckoSession.SelectionActionDelegate.ACTION_UNSELECT)`", + "reference": "One thing we can do in a follow up is use the shorthand calls, so You can just call `aSelection.unselect()` instead of calling the more verbose `execute()`. The fact that you have to check if the action is available sort of sucks though." + }, + { + "prediction": "Why is this change needed?", + "reference": "I don't think adding this value to _every_ connection policy is needed or useful... why is this necessary?" + }, + { + "prediction": "I think this should be `use Ergonode\\SharedKernel\\Domain\\AggregateId;` instead of `use Ergonode\\SharedKernel\\Domain\\AggregateId;`", + "reference": "adding this constrain for null AggreagateId is redundant" + }, + { + "prediction": "Why not use `ctx.User.LowerName` instead of `ctx.User.Id`?", + "reference": "Why when current user is owner but still check access? Should we use `else if` here?" + }, + { + "prediction": "Shouldn't this be `60 * time.Second`?", + "reference": "60 seems high. 10? 20?" + }, + { + "prediction": "`abspath` should be `os.path.abspath`", + "reference": "I think this is not the best way to handle this problem. This way every relative path will be converted to absolute path. What if the user would like to move his config directory to a different directory?" + }, + { + "prediction": "I think this should be `ControlPlaneLoadBalancerScheme` instead of `ClassicELBScheme`.", + "reference": "Let's make this a pointer given that's optional" + }, + { + "prediction": "I think this should be `circular-json.js`", + "reference": "Why is CircularJSON imported here? It is never used in this file." + }, + { + "prediction": "I think this should be `ServiceDefinitionMetadata.MergeState.After` instead of `ServiceDefinitionMetadata.MergeState.After`", + "reference": "Should be ARM" + }, + { + "prediction": "I think this should be `fmt.Errorf(\"open file bucket: %v is not a directory\", dir)`", + "reference": "I don't see how removing \"open file bucket\" helps your purpose." + }, + { + "prediction": "Why is this change needed?", + "reference": "Solr dependency was downgraded?" + }, + { + "prediction": "I think we should use `services` instead of `services`", + "reference": "or should we just autoload everything in `lib` ?" + }, + { + "prediction": "Shouldn't this be `slots.stream().anyMatch(slot -> !slot.getSession().isPresent())`?", + "reference": "Prefer `Stream.anyMatch` instead of iterating over all slots." + }, + { + "prediction": "I think this should be `BLACKLIST_BLACKLIST_VIOLATION` instead of `BLACKLIST_BLACKLIST_VIOLATION`.", + "reference": "create_tables isn't used in 2.0 (should probably be deleted?)" + }, + { + "prediction": "I think this should be `http://*:80/` instead of `http://*:80/`", + "reference": "Now I start to wonder, do we want to have `80` as the default or `9090` (or depending on whether we are exposing it via `PrometheusExporterMiddleware` vs. `PrometheusExporterHttpServer`)?" + }, + { + "prediction": "I think this should be `MAX_QUERIES_PER_HOUR 1, MAX_UPDATES_PER_HOUR 2, MAX_CONNECTIONS_PER_HOUR 3, MAX_USER_CONNECTIONS 4`", + "reference": "try an illegal case. and the result is syntax error." + }, + { + "prediction": "I think this should be `needs_reshape_ = false` instead of `needs_reshape_`", + "reference": "Initialize `needs_reshape_` with true and call `Reshape` method" + }, + { + "prediction": "I think we should use `Array#map` instead of `Array#map`", + "reference": "This is a _very_ complicated line. I'm not a fan of ternaries to begin with (although, I allow them in very simple situations), but this ternary has compound conditionals and would really need to be broken up. That said: if I'm reading this right, it sounds like this logic can make it where this lambda (which is called `RANDOM_ORDERING`) can make it not random and basically do the opposite of what it says. In general, it's good to avoid making methods or lambdas do the opposite of what they say." + }, + { + "prediction": "I think we should use `Backend\\\\Web\\\\Info\\\\ApacheSolrDocument` instead of `Backend\\\\Web\\\\Info\\\\ApacheSolrDocument`", + "reference": "We should remove this" + }, + { + "prediction": "I think this should be `IptablesNATOutgoingInterfaceFilter`", + "reference": "We should validate this, I think. To add a validator: - change `string` to, say `iface-pattern` - add a new `case \"iface-pattern\"` to the `switch` in the `loadParams()` function: - in that `case`, you should be able to use a RegexpPattern like the one for `iface-list`. However, you'll need a different regexp. I think this regexp should work: `^[a-zA-Z0-9:._+-]{1,15}$` i.e. 1-15 characters consisting of alphanumerics, colon, dot, underscore, hyphen and plus." + }, + { + "prediction": "I think this is a bit confusing, but I think it would be better to use `state.Balance.Cmp(big.NewInt(40))` instead of `state.SubBalance(big.NewInt(40))`.", + "reference": "File is not `goimports`-ed with -local github.com/iotexproject/iotex-core (from `goimports`)" + }, + { + "prediction": "I think this method should be called `writer.writers()` instead of `this.writer.writers()`.", + "reference": "Nit: Here we don't need the extra `this` in iceberg because we usually use the `this` to distinguish whether it is a member variable or local variable when assigning value." + }, + { + "prediction": "I think this should be `ENGINE-16002`", + "reference": "Why do we have that extra \"ENGINE-16002 Exception while closing command context:\" now? Is that done intentionally by us or where does that now come from?" + }, + { + "prediction": "I think this should be `static`.", + "reference": "Please don't use star imports, in the codebase we tend to use direct imports." + }, + { + "prediction": "I don't think we need to change this, but I think it's better to use `CREDENTIALS.user` instead of `CREDENTIALS.user`", + "reference": "Filename can be `config.functional`" + }, + { + "prediction": "Why not just call `this->process_blocks()` here?", + "reference": "Should the thread join be done in the stop function maybe? I am simply wondering and sharing my thoughts. This is my thinking: * The join used to be done in the stop function of node class and now it has moved in the destructor. * The class state_block_signature_verification joins its thread at the stop function too." + }, + { + "prediction": "I think this should be called `walletListCmd` instead of `walletCreateCmd`.", + "reference": "don't use `init` function (from `gochecknoinits`)" + }, + { + "prediction": "I think this should be `ruby` instead of `ruby`", + "reference": "Simple Notification **Service** (singular)" + }, + { + "prediction": "Shouldn't this be `crash_test`?", + "reference": "You are fixing the crash problem, and you have fixed it, so it won't crash anymore. So `crash_test` is not a proper name." + }, + { + "prediction": "I think this should be `requestBodyTypeName` instead of `requestBodyTypeName`.", + "reference": "If this default doesn't depend on the argument, shouldn't it be delegated as the default for the no-arg version instead?" + }, + { + "prediction": "why is this needed?", + "reference": "I did not use the new save_config_file method in here, because I am not sure whether this whole logic is still necessary? There is an TODO about it there as well." + }, + { + "prediction": "Why is this change needed?", + "reference": "Why was this changed?" + }, + { + "prediction": "I think this should be `np.where(max_overlaps > self.floor_thr)[0])`", + "reference": "I think you meant, self.floor_thr = 0" + }, + { + "prediction": "I think this should be `api/v1alpha1` instead of `api/v1alpha1`", + "reference": "Can you revert these changes?" + }, + { + "prediction": "Why is this needed?", + "reference": "Do we need to change this?" + }, + { + "prediction": "Why is this change needed?", + "reference": "With this commit, `MemoryUnlimited` is defined as a `unit64`, so I think you can drop the redundant cast from this line (and the later lines which also have `uint64(configs.MemoryUnlimited)`." + }, + { + "prediction": "Shouldn't this be `maxNumberOfFiles !== props.totalFileCount`?", + "reference": "`props.totalFileCount < props.maxNumberOfFiles` makes the intent a bit more clear I think. And a check to see if maxNumberOfFiles even exists?" + }, + { + "prediction": "why is this needed?", + "reference": "`epochNum` is a global variable (from `gochecknoglobals`)" + }, + { + "prediction": "why not just set the entity here?", + "reference": "This needs to be fixed before we can accept the PR" + }, + { + "prediction": "I don't think we need to use `size_frontier` here.", + "reference": "Are these forward declarations needed if we `#include ` which includes the definition ?" + }, + { + "prediction": "Why is this change needed?", + "reference": "can you use either `connectID` or `ConnectID` i would preffer `connectID`" + }, + { + "prediction": "Shouldn't this be `array`?", + "reference": "It seems like it cannot be null?" + }, + { + "prediction": "I don't think we need to deprecate updateTime in ExecutionReference class.", + "reference": "should we consider add deprecated annotation here?" + }, + { + "prediction": "I think this should be `libkbfs.NormalizedUsername`", + "reference": "Why can't the implementor get the username from the config?" + }, + { + "prediction": "Why is this change needed?", + "reference": "@CoderZhi Please confirm if this change makes sense" + }, + { + "prediction": "I think this should be `PRIVATE_SUBSCRIPTION_MULTI_TENANCY_ERROR(-50100, \"foo.\")`", + "reference": "Do you think you can come up with a better message? :-) It looks like this is not used anywhere. So maybe just delete the line." + }, + { + "prediction": "Why is this change needed?", + "reference": "`tail()` is an expensive operation for certain collections" + }, + { + "prediction": "I don't think we need to change this, but I think it would be better to use `parameter_grouping_module` instead of `parameter_grouping_module`.", + "reference": "do we need to add this one in this PR?" + }, + { + "prediction": "Why is this removed?", + "reference": "where is a test for it?" + }, + { + "prediction": "Why did you remove this?", + "reference": "Why has this spacing been adjusted?" + }, + { + "prediction": "I think this should be `api_errors.ApiExecutionError` instead of `api_errors.ApiExecutionError`.", + "reference": "Sorry to do this, since you're touching this file can you resolve the pylint doc messages above?" + }, + { + "prediction": "I think we should use `listen['recording_msid']` instead of `listen['recording_msid']`.", + "reference": "@alastair, because the `insertId` for two listens with different metadata and same ts was the same, only one of them would get written into BQ. A question is what would be the ideal way to write tests for stuff like this, so that this doesn't break again?" + }, + { + "prediction": "Why is this change needed?", + "reference": "Wondering where this breaks btw (although pretty understandable)" + }, + { + "prediction": "I think this should be `10`.", + "reference": "is this needed? 10 is already the default" + }, + { + "prediction": "I think this should be `if 'text_font_size' not in style`", + "reference": "One day we can try to allow the user to specify font sizes in something other than points. For now this is fine though..." + }, + { + "prediction": "I think this should be `m_userDefinedId(0)` instead of `m_userDefinedId(0)`", + "reference": "duplicated in both block of preprocessor condition. Can you join in one?" + }, + { + "prediction": "I don't think we need to change the `id` attribute to `id` here.", + "reference": "Can we put the first part of the expression inline with the `if(` for consistency's sake?" + }, + { + "prediction": "I think this should be `RoutingKey` or `RoutingDelegate`", + "reference": "Do servers have no need of accessing this information?" + }, + { + "prediction": "Why is this change needed?", + "reference": "It feels like this will break some stuff, but let it break. We need \"text\" version anyway." + }, + { + "prediction": "I think this should be `TRUE` instead of `TRUE`.", + "reference": "Here are two things I wonder: First, would it make sense to replace the TRUE here with \"leftExpr->getValueId().getType().supportsSQLnull() && rightExpr->getValueId().getType().supportsSQLnull()\". I'm not sure we have optimizations elsewhere that set the \"special nulls\" semantics back to FALSE if one of the operands it not nullable. Second, I wonder whether we have bugs elsewhere in the code that may not check for the \"special nulls\" semantics. For example, hash and merge joins probably can't use such predicates as equi-join predicates - one of the reasons for the optimization above. When I look at method ItemExpr::isAnEquiJoinPredicate() in core/sql/optimizer/OptItemExpr.cpp, I don't see a check for that. You have an example with a NULL value that is working, so hopefully this is not an issue, but I'm not sure how and why it works." + }, + { + "prediction": "I think this should be `NumericConstant` instead of `NumericConstant`.", + "reference": "This will cause someone writing a schema field like `inf:string` to get a pretty confusing error? If they intended to use `inf` as short for `information` or whatever :) Might it be better to keep it as `Identifier` and explicitly recognize the few identifiers we care about only when parsing values (not while parsing field names)?" + }, + { + "prediction": "Why is this change needed?", + "reference": "Mmm .... this affect #168 I'll need to research the collateral damage" + }, + { + "prediction": "I think we should be able to remove the beta case here.", + "reference": "nit: refactor into a const map lookup." + }, + { + "prediction": "I think this should be `this.GetType().Assembly`", + "reference": "I don't think this is going to work. We need to get the actual assembly of the app project. @johnnywebb thoughts?" + }, + { + "prediction": "I think this should be `use_memoize=False` instead of `use_memoise`", + "reference": "@MSusik be careful about changing existing API. I think in this case you shouldn't rename the argument." + }, + { + "prediction": "Why is this change needed?", + "reference": "This is bad. It is not a NULL-terminated string here." + }, + { + "prediction": "I think this should be `string|bool`", + "reference": "This probably should be @param string|false." + }, + { + "prediction": "Why not use `e.{employees:managerId} = e.{employees:employeeId}` instead of `e.{employees:managerId}`?", + "reference": "Unrelated test fix. Already in cordova34 branch." + }, + { + "prediction": "Why is this removed?", + "reference": "validate() will be called by either V1 or V2" + }, + { + "prediction": "I think this should be `#if defined(_MSC_VER)` instead of `#else`", + "reference": "rather than generate code for this every time, stick it in `flatbuffers.h` (and call it `FLATBUFFERS_NOEXCEPT` to avoid clashes)." + }, + { + "prediction": "I think it would be better to use `tx.Begin(ctx, nil, false)` instead of `api.db.Begin(ctx, nil, false)`", + "reference": "@AskAlexSharov @tjayrush , I'm still feeling uncomfortable with this change: - because it works by accident. For example in next lines `tx` object used as: `ReadBlockByNumber(tx)`. If you go inside `ReadBlockByNumber` you can find `!errors.Is(err, ethdb.ErrKeyNotFound)` - but ethdb.Tx doesn't return this error - and it satisfy `DatabaseReader` by accident - (I faced this problem last week - when passed Tx to place which expected Db - and I promised to change tx API - rename Get to GetOne or even remove the method). - we can merge this PR if it doesn't break things and solve problem of localDb use of RPCDaemon. But I will make PR now which will allow open Read tx by TxDb/ObjectDb - and will ask you to use it. Then will take a look how hard to change LmdbTx to not satisfy rawdb.DatabaseReader interface." + }, + { + "prediction": "Why is this change needed?", + "reference": "I think this means the file doesn't have a newline character at the end." + }, + { + "prediction": "I think this should be `fpga_perf->previlege = false;`", + "reference": "Hi Ramya, rather than checking here in the perf counter library, we should add the privilege check in the host_exerciser app." + }, + { + "prediction": "Why is this change needed?", + "reference": "Could you elaborate on this some more? Has this behavior changed with Python 3.8?" + }, + { + "prediction": "I think this should be `err` instead of `err`", + "reference": "Do we want to continue on logging the `dumpedBody`, if an error was thrown? It is probably an empty string. This would make the log after this one pretty much useless." + }, + { + "prediction": "I don't think we need to use `_('Guidance')` here.", + "reference": "the text here is derived from the object type and not getting properly handled by get text" + }, + { + "prediction": "I think this is a bit confusing, but I think it would be better to use `strings.HasPrefix(podName, \"antrea-controller\")` instead of `strings.HasPrefix(podName, \"antrea-agent\")`", + "reference": "This will make other pods that run antctl will also connect its localhost? Maybe only do it when it's in antrea-agent and antrea-controller" + }, + { + "prediction": "Why is this removed?", + "reference": "The corresponding action for this key needs to be removed as well, along with any unused translations." + }, + { + "prediction": "I think this should be `!SpanContext.IsNull(spanContext)? SpanContext.IsNull(spanContext)? SpanContext.IsNull(spanContext)? SpanContext.IsNull(spanContext)? SpanContext.IsNull(spanContext)? SpanContext.IsNull() : SpanContext.IsNull(spanContext)? SpanContext.IsNull(spanContext)?", + "reference": "Can't Span cannot be null anymore? I assume it was a useless check as there are discrepencies within integrations, but as you explicitly removed this one, I was wondering" + }, + { + "prediction": "Why is this change needed?", + "reference": "hmmm, ok, this is interesting -> Lukasz definitely uses rewards traces" + }, + { + "prediction": "I think this should be `read.split.partition-by-partition`", + "reference": "Why do we need this flag? can this be detected if the table is bucketed/partitioned and enabled/disabled automatically? Is this for backwards compatibility?" + }, + { + "prediction": "I think we should remove this line.", + "reference": "can you revert changes to this file." + }, + { + "prediction": "I think this should be `soc.soc` and not `soc.soc.soc`", + "reference": "suggestion to add: An soc is a chunks whose address is derived of (...)" + }, + { + "prediction": "I think this should be `USERNAME_ALREADY_REGISTERED`", + "reference": "It doesn't make sense. if we are going to have the profile page where the user can change the password and he / she is already logged in ... I do not need to register a new username. only: new password..confirm new password..something similar...and \"USERNAME_ALREADY_REGISTERED\" only if I have a register page..are we going to have? We need to talk about it." + }, + { + "prediction": "Why is this needed?", + "reference": "not a great fan of this change - maybe worth splitting into CommitTree() and CloseBlock(long blockNumber)?" + }, + { + "prediction": "I think this should be `void Abort(ConnectionAbortedException abortReason: null)`", + "reference": "Ugh, if we're going to make a breaking change, I'd like this to be moved to ConnectionContext." + }, + { + "prediction": "I think we should be able to do this in the `NewFs` function.", + "reference": "I was planning to add it as a common option, but there is a cyclic import for the rc & fs libs. Thoughts on avoiding it or should I remove this for now?" + }, + { + "prediction": "I think we should move this line to the end of the file.", + "reference": "I think this entry can be removed now, right?" + }, + { + "prediction": "I think this should be `self._storage_class = resp.getheader(provider.storage_class_header, None)`", + "reference": "I don't understand why you want to populate the storage class in this case, if the S3 docs say they won't populate the header in this case?" + }, + { + "prediction": "Shouldn't this be `timeouts`?", + "reference": "These are really meant to be the keys in the capabilities, not the keys of values within the capabilities" + }, + { + "prediction": "I think this should be `getBucketRegion` instead of `getBucketRegion`", + "reference": "Should the last sentence be `If no region was found` rather than `specified`?" + }, + { + "prediction": "I think this should be `final String rawPlayerName = Text.sanitize(player.getName(), tpMatcher.group(1));`", + "reference": "Text.sanitize just removes images from names, for instance, the hardcore ironman symbol when someone talks. A better option would be text.standardize, or text.toJagexName" + }, + { + "prediction": "Shouldn't this be `ApplicationKind_value[k]`?", + "reference": "How about `ApplicationKindFromConfigKind`? And I think this function should be better in the config package. The reason is `config` package can import and refer things from the model package but not vice versa." + }, + { + "prediction": "I think this should be `time.Time` instead of `time.Time`", + "reference": "Nit: missing closing \".\"." + }, + { + "prediction": "I think this should be `testCannotClickDisabledButton` instead of `testCannotClickDisabledButton`", + "reference": "I believe it's misleading name for the condition. I prefer \"element_to_be_disable\" We can have a condition, when element is enabled but we can't click it, because another element overlays above it. So, If we use \"unclickable\" we might mislead people, who use that condition to verify if element can be clicked" + }, + { + "prediction": "Why is this change needed?", + "reference": "Same here. Should this be pipeline YAML file? Like `MarshalPipelineManifest`" + }, + { + "prediction": "I think this should be `EmitEvent(InstanceStartupEvent, newInst)` instead of `EmitEvent(InstanceStartupEvent, newInst)`", + "reference": "I will add this to my PR " + }, + { + "prediction": "I think this should be `@role.plan.owned_by?(@user.id)` instead of `@role.user_id`", + "reference": "Again not 100% sold on the name" + }, + { + "prediction": "Why is this change needed?", + "reference": "Use `m.Combo` for `Get` and `Post` methods." + }, + { + "prediction": "I think this should be `if os.path.exists(self._filename) and not os.path.isdir(self._filename)`", + "reference": "Is there a reason you're not using `self._die(\"The file {} ...\")` here?" + }, + { + "prediction": "I think this should be `[app_name] [environment_name] [cmd]`.", + "reference": "I think we'll want @rickmanelius (or somebody) to go through all the help and make it more accessible. Probably later in the cycle. But \"Run a command in an app container\" doesn't do it for me :)" + }, + { + "prediction": "I think this should be `weaveWaitEntrypoint = []string{\"/home/weavewait/weavewait\"}`", + "reference": "shouldn't this be a const?" + }, + { + "prediction": "Why is this removed?", + "reference": "This is a bit of a throwaway field in the xunit output, it doesn't impact anything on EVG, should we just name it `integration` now?" + }, + { + "prediction": "Why is this change needed?", + "reference": "Please change the name of the file too." + }, + { + "prediction": "I think this should be `tools/actioninjector.v2/gentsfaddrs.yaml`", + "reference": "line is 161 characters (from `lll`)" + }, + { + "prediction": "I think this should be `if @pal.generate_types(cache: true)` instead of `if @pal.generate_types(cache: true)`", + "reference": "When is this false?" + }, + { + "prediction": "Why is this removed?", + "reference": "note: also here ;)" + }, + { + "prediction": "I think this should be `wasDeleted = baseDir.delete();` or `wasDeleted = baseDir.delete();`", + "reference": "I don't think we need to necessarily check if that returned true or not, we should just remove the shutdown hook. Since nothing would check or do anything with this flag anyways." + }, + { + "prediction": "I think this should be `LocalRepo` or `GitRepo`.", + "reference": "nit: blank between, for consistency." + }, + { + "prediction": "I don't think we need to do this, but I think it would be better to use `String.format(String, Pattern.quote(String, Pattern.quote(String, Pattern.quote(String, Pattern.quote(String, Pattern.quote(String, Pattern.quote(String, Pattern.quote(String, Pattern.quote(String, Pattern.quote(String, Pattern.quote(String, Pattern.quote(String, Pattern.quote(String))))`).replaceAll(String, Pattern.quote(String, Pattern.quote(String, Pattern.quote(String, String, Pattern.quote(String, Pattern.quote(String, Pattern.quote(String, Pattern.quote(String, Pattern.quote(String, Pattern.quote(String, Pattern.quote(String, Pattern.quote(String, Pattern.quote(String, Pattern.quote(String, Pattern.quote(String, Pattern.quote(String))))))))))))).replaceAll(String, Pattern.quote(String, Pattern.quote(String, Pattern.quote(String, Pattern.quote(String, Pattern.quote(String, Pattern.quote(String, Pattern.quote(String, Pattern.quote(", + "reference": "ditto for RDoc or YARD link" + }, + { + "prediction": "Why is this change needed?", + "reference": "This method is designed to allow the condition runner to tell users something interesting. The current `INFO` log level is correct." + }, + { + "prediction": "I think this should be `int64` instead of `int64`.", + "reference": "Again, would not change that." + }, + { + "prediction": "I think this should be `case FAILED_FINISHING`", + "reference": "Is canceled considered failed?" + }, + { + "prediction": "Why is this change needed?", + "reference": "These ineffectual assignment changes intrigue me. Our CI tests have been checking for these for months; how come the tests haven't been failing? How did you catch these?" + }, + { + "prediction": "Why not use `require.NotNil(t, stream)` instead of `require.NotNil(t, stream)`?", + "reference": "We should add an additional call to Recv() somewhere after here that we assert returns io.EOF." + }, + { + "prediction": "I think we should use `context.Background()` here.", + "reference": "Why not return a `ctx` from `setupJournalBlockServerTest` and use it everywhere, like in the other test files? And maybe put a test timeout on it while you're at it? (Same for the other journal test files below.)" + }, + { + "prediction": "Is there a reason for this?", + "reference": "Do we need HeadlessSurface and DisplayPlaneSurface here too?" + }, + { + "prediction": "I think we should use `MongoGridFSStreamError` instead of `MongoGridFSStreamError`.", + "reference": "Would it be appropriate for this to be a `MongoStreamClosedError`?" + }, + { + "prediction": "I think this should be `snapclient` instead of `snapclient`", + "reference": "Can you raise new issue that talks about refactoring webhook code. It should follow `idiomatic maya` patterns." + }, + { + "prediction": "I think this interface should be `ISpanDecorator` instead of `ISpanDecorator`", + "reference": "(Probably repeating myself) Instead of `Datadog.Trace.Interfaces`, should we move this and several other files into a `Datadog.Trace.Decorators` namespace instead?" + }, + { + "prediction": "Why is this needed?", + "reference": "Should we generate `gem \"rsolr\"` into the application Gemfile?" + }, + { + "prediction": "I think it would be better to use `--verbose` instead of `--verbose`.", + "reference": "commit message, \"currently ignored\"? (-ed)" + }, + { + "prediction": "I don't think we need this method, but I think it's better to use `Array.new(options[:page_ranges])` instead of `Array.new(options[:page_ranges])` and use `Array.new(options[:page_ranges])` instead of `Array.new(options[:page_ranges])`", + "reference": "Same here. and all others." + }, + { + "prediction": "Why do we need to set mainChainProcessor to null?", + "reference": "can we pass some simple interface instead of a full additional processor? (an imterface with these two events only)" + }, + { + "prediction": "(style) line over 80 characters", + "reference": "Use a named constant" + }, + { + "prediction": "Shouldn't `stop` be nullable?", + "reference": "The `?` is unnecessary since `Assert.Single` will fail if it can't find the stop event." + }, + { + "prediction": "I don't think we need this interface.", + "reference": "What about providers that don't have a reliable location? Do they return null?" + }, + { + "prediction": "I think this should be `public void SetGetMetricFunction(Func getMetrics)`", + "reference": "I might not be thinking about things right, but would it make sense for a MetricProcessor to have a handle on the ParentProvider kinda like how we do for traces? That way instead of calling `SetGetMetricFunction(this.Collect)` in the MeterProviderSdk you'd have a handle on the provider to call `Collect` directly." + }, + { + "prediction": "I think this should be `http://127.0.0.1:{PORT_DYNAMODB_BACKEND}` instead of `f\"http://127.0.0.1:{PORT_DYNAMODB_BACKEND}\"`", + "reference": "nit: If we want to squeeze out a few more milliseconds from the startup, we may actually be able to remove this line (`wait_for_port_open(PORT_DYNAMODB_BACKEND, http_path=\"/\", ...` should already be sufficient to ensure that the service is up and responding to HTTP requests). Thoughts?" + }, + { + "prediction": "I think this should be `ifdef SYSCALL_NUM_MARKER_BSD` instead of `ifdef SYSCALL_NUM_MARKER_BSD`", + "reference": "Convention is to use TEST" + }, + { + "prediction": "Why is this removed?", + "reference": "Just in case: remember to remove this." + }, + { + "prediction": "why not use `max(parentBaseFee - feeDelta, 0)`?", + "reference": "I am not certain if this should be 0 or 7 here. I think a basefee under 7 is pathological" + }, + { + "prediction": "I don't think this is needed, but I think it would be better to use `constexpr char` instead of `constexpr char`.", + "reference": "it would be better to move the declaration of the variable with its initialization at line 68" + }, + { + "prediction": "I think this should be `import sys` instead of `import sys`", + "reference": "I don't think this is required." + }, + { + "prediction": "I think this should be `updateEthContext` instead of `updateContext`", + "reference": "This rename should also ideally be in a separate PR." + }, + { + "prediction": "Shouldn't this be `value = parseResponse(response, bodyConverter);`?", + "reference": "Think this needs to go right below line 91. `parseResponse` can return `null` (line 133), which will cause this future to never complete." + }, + { + "prediction": "Why is this change needed?", + "reference": "Can you please revert changes to files in the `thoughtworks` package? This is legacy code and we will eventually phase out RC." + }, + { + "prediction": "Why is this change needed?", + "reference": "Yeah, why not use this method instead of checking with `containsKey`?" + }, + { + "prediction": "I think this should be `ms/iter` instead of `ms/iter`", + "reference": "Compute `(time_forward + 1e-3) * 1e3 / loop_num` ahead." + }, + { + "prediction": "Why is this change needed?", + "reference": "Mh... `MustBeRethrown()` above already logs `ex`, so `ex` will be logged here for the second time. I think this line must be moved to before `MustBeRethrown()`." + }, + { + "prediction": "I don't think we need the `Generator` constructor here.", + "reference": "Since this never changes, why not pass it into the constructor instead?" + }, + { + "prediction": "Why is this needed?", + "reference": "this is critical to avoid state root saving from beam" + }, + { + "prediction": "Why do we need this? I think it's better to use `self.num_classes` instead of `self.num_classes`?", + "reference": "To make it more clear, `fill=self.num_classes`." + }, + { + "prediction": "I think this should be `bytes.Size(m.Body)` instead of `len(m.Body)`", + "reference": "Nit: \"ByteSize estimates the size in bytes of the message for the purpose of restricting batch sizes.\"" + }, + { + "prediction": "I think this should be `options.ThreadCount = 4;` instead of `options.ThreadCount = 4;`", + "reference": "It's weird to have this on the same level as kestrel. This needs to move to options." + }, + { + "prediction": "I don't think we need to check for `type` attribute here.", + "reference": "is it safe for us to use the `blob.type?.length` optional chaining with IE11 support? @goto-bus-stop" + }, + { + "prediction": "Metrics/LineLength: Line is too long. [98/80]", + "reference": "remove this debug statement" + }, + { + "prediction": "I think this is a bit confusing, but I think it would be better to add a `VK_IMAGE_ASPECT_PLANE_0_BIT` bit to the `VK_IMAGE_ASPECT_PLANE_1_BIT` bit to the `VK_IMAGE_ASPECT_PLANE_2_BIT` bit. I think it would be better to add a `VK_IMAGE_ASPECT_PLANE_1_BIT` bit to the `VK_IMAGE_ASPECT_PLANE_PLANE_PLANE_0_BIT` bit to the `VK_IMAGE_ASPECT_PLANE_1_BIT` bit.", + "reference": "This should not be needed. 1) all 1.1 promoted extensions are marked as enabled when a 1.1 device is created (which happens iff both physical device support and apiVersion are set to 1.1) 2) The KHR and non-KHR versions of the bits are aliases of each other, so no different set is required." + }, + { + "prediction": "I think this should be `if (getenv(\"CCTOOLS_LOOP_DEV_FULL\") && getenv(\"CCTOOLS_LOOP_DEV_FULL\") && getenv(\"CCTOOLS_LOOP_DEV_FULL\") && getenv(\"CCTOOLS_LOOP_DEV_FULL\") && getenv(\"CCTOOLS_LOOP_DEV_FULL\") && getenv(\"CCTOOLS_LOOP_DEV_FULL\")) { } else if (getenv(\"CCTOOLS_LOOP_DEV_FULL\") && getenv(\"CCTOOLS_LOOP_DEV_FULL\") && getenv(\"CCTOOLS_LOOP_DEV_FULL\") == getenv(\"CCTOOLS_LOOP_DEV_FULL\") ) { if (getenv(\"CCTOOLS_LOOP_DEV_FULL\") == getenv(\"CCTOOLS_LOOP_DEV_FULL\") { } }", + "reference": "I can see why you did it this way, but let's not get into the habit of passing information back via an environment variable. Add an element to `batch_job_info` instead, which is where we send back detailed info about jobs." + }, + { + "prediction": "I don't think we need to check if the value is 0 or not.", + "reference": "Turns out my previous fix of doing `!dom.hasAttribute('value')` is not a good one as it leads to all input values always being updated. The new fix only updates it, despite `dom.value === props.value` when the value is `0` for progress elements." + }, + { + "prediction": "I think this should be `#include .hpp`.", + "reference": "Why is this being added here? Is this relevant to these changes?" + }, + { + "prediction": "I think this should be `LOG.finest(\"Bound legacy RC support\")`.", + "reference": "This informational message is important to users. Please leave." + }, + { + "prediction": "I don't think we need to do this, but I think it would be better to use `url_for` here.", + "reference": "why isn't rubocop failing for single quotes?" + }, + { + "prediction": "I think we should use `pws.product_id` instead of `pws.product_id`", + "reference": "Is `WHERE` should `Language` param ?" + }, + { + "prediction": "I think we should use `oneapi::dal::preview::spmd` instead of `oneapi::dal::preview::spmd`", + "reference": "ps - first letter from preview, when we move it into public it will not be relevant. my suggestion is spmd or ds(distributed)" + }, + { + "prediction": "I think this should be `_with_new_scol(F.abs(kser.spark.column))` instead of `_with_new_scol(F.abs(kser.spark.column))`", + "reference": "Hm, should we show pandas' dtype instead of Spark data type?" + }, + { + "prediction": "I think this should be `HistogramWithBucketsAndBuckets`", + "reference": "@reyang when exponentialhistogram arrives, we won't have any bits left for it.. unless we take Summary or make this 16 bits instead of current 8 bytes" + }, + { + "prediction": "I think this should be `@psalm-taint-sink` instead of `@psalm-taint-sink`", + "reference": "This change is not tested.. I guess this is how these taint-annotations work..?" + }, + { + "prediction": "I think this should be `self.__apply_mult_override(obj, key, replace_value)`", + "reference": "Fails if obj is list. Please fix!" + }, + { + "prediction": "I think we should use `mock_response` instead of `mock_response`", + "reference": "Could you add an assertion to make sure the `IncludeAllInstances` parameter is actually set and passed to the request?" + }, + { + "prediction": "I think this should be `universal_newlines=True` instead of `universal_newlines=True`.", + "reference": "The name of this argument is not too intuitive. The point is, these kind of subprocess calls will return `str`s in Python2 and 'byte`s in Python3. It would be a lot of work to make CodeChecker handle both `str` and `byte` everywhere. Using the `universal_newlines` argument, we can force Python3 to return text rather then bytes." + }, + { + "prediction": "Why is this change needed?", + "reference": "These `Get`s are just cosmetic changes for consistency." + }, + { + "prediction": "I think this should be `@pytest.mark.skip(reason=\"Broken due to yaml safe load\")`", + "reference": "We should never skip unit tests, but instead fix them. Look at `pytest.raises` for cases where we expect an exception." + }, + { + "prediction": "Shouldn't this be `if (items.Any()) { return true; }`?", + "reference": "Do we need to call ToList here?" + }, + { + "prediction": "I think this should be `if topic = @episode.topics.first` instead of `if topic.products.ordered`", + "reference": "I think this can be moved into the model, at the very least, but I also think you might be able to do a has many through." + }, + { + "prediction": "I think this should be `String.format(\"(%s %s)\", value, tree.getChildren().map(Node::toLispString));`", + "reference": "could you please separate computations from string concatenation?" + }, + { + "prediction": "Why is this change needed?", + "reference": "@NiklasGustafsson - I had to make these changes for the x-ms-client-name extension tests for java and python. The tests were expecting wire format instead of the client name. Hence modified them appropriately. Let me know what you think ?" + }, + { + "prediction": "I think this should be `if (cmd->cmd != H2O_HEADERS_CMD_NULL)` instead of `if (cmd->cmd != H2O_HEADERS_CMD_NULL)`", + "reference": "Could we just set the list of header modification commands to `req->overrides` and apply them only when the request is sent upstream in lib/core/proxy.c? The reason I ask is because an upstream server (accessed using the modified headers) might return 399. In such case, the request would be delegated to the next handler. I think that the headers of the original request should be passed to the next handler, since per my understanding the intended behavior of `proxy.header.*` is to modify the headers passed to the upstream server only." + }, + { + "prediction": "I think this should be `lastRefreshTime` and `refreshInterval`", + "reference": "Can we rename 'refresh' to 'read' and 'update' to 'write'? Until I had read more of the code below, I couldn't tell the difference between 'update' and 'refresh'." + }, + { + "prediction": "I don't think we need to change this.", + "reference": "can we remove it ?" + }, + { + "prediction": "Is there a reason why we need to check if the column name is reserved?", + "reference": "I take it that by the time we get here, colName has already been case-shifted to upper case?" + }, + { + "prediction": "I think this should be `reqBody.Header(\"token\", \"10\")` instead of `reqBody.Header(\"token\", \"10\")`", + "reference": "Super clear desc - thx." + }, + { + "prediction": "I think this should be `forAllVisibleModules(swift::ModuleDecl::ImportedModule import, [&](swift::ModuleDecl::ImportedModule));`", + "reference": "Ahh the correct fix is to call `collectLinkLibraries` on the SourceFile being compiled, not the module. Sorry for our mistake!" + }, + { + "prediction": "I think this test should be `assert.True(t, cfg.SharedVolumeMatchFullConfig, \"Default SharedVolumeMatchFullConfig is set incorrectly\")`", + "reference": "Can you also modify the `TestEnvironmentConfig` in `config_test.go` to cover this?" + }, + { + "prediction": "I think we should remove this TODO for 9.0 release.", + "reference": "There's no point \"deprecating\" this interface method (the customer still has to implement the new callback that we have introduced which makes it a breaking change). I'd make an exception and simply rename it to `onResponse`." + }, + { + "prediction": "I think this should be `logger.info(\"Using delegate supplier: \" + clazz.getName());` and `logger.finest(\"Using delegate supplier: \" + clazz.getName());`", + "reference": "We chose `info` in the test code for obvious reasons. Changing to `finest` makes debugging harder and noisier." + }, + { + "prediction": "I think this should be `std::unordered_map`.", + "reference": "I know this is not new here but we need to remove this global or protect access from multiple threads." + }, + { + "prediction": "I think this should be `#else` instead of `#else`.", + "reference": "Doesn't seem any less confusing or error-prone to me. IMO the solution is to not use \"object\" in the enrich callback signatures. Type safety/compile-time checking is our friend!" + }, + { + "prediction": "I don't think we need this, but I think it would be better to use `sh.export 'GOMAXPROCS', '2', echo: true` instead of `echo: true`", + "reference": "I think this should be `GOMAXPROCS=$(nproc 2>/dev/null || echo 2)`" + }, + { + "prediction": "I think this should be `if producer == ctx.addr.RawAddress && block.WorkingSet != nil && block.WorkingSet != nil {`", + "reference": "Can we log if this actually happens." + }, + { + "prediction": "I think this should be `if (pendingConfiguration.remoteHost != null) {`", + "reference": "This is not really needed, the line added in `GridNodeConfiguration.java` is what really fixes the `remoteHost` regression." + }, + { + "prediction": "I think this should be `lodash.lodash`", + "reference": "It looks like the import format was only changed from one-per-line to all on one line here. Can we keep it as it was so it's easier to see what changed? It's also more consistent with how we format multiple imports in other components." + }, + { + "prediction": "I think this should be `@see Selenium::WebDriver::Firefox::W3CBridge`", + "reference": "Maybe call it `WireBridge`?" + }, + { + "prediction": "I don't think we need to import the `JSONObject` here.", + "reference": "Looks like `org.json.*` can be removed?" + }, + { + "prediction": "I think this should be `GAUNTLET_MAP_CONTAINER`", + "reference": "remove the extra comma and newline" + }, + { + "prediction": "I think this should be `page_title_text` instead of `page_title_text`", + "reference": "Can we try to use Ruby 1.9-style hashes?" + }, + { + "prediction": "I think this should be `RegisterGlobalOption` instead of `RegisterGlobalOption`", + "reference": "Terminology question - these are called \"global options\" in the code, but the parallel non-global versions of these are called \"directives\"... Should this be `RegisterGlobalDirective`? Or does that have different semantics?" + }, + { + "prediction": "Why is this change needed?", + "reference": "I do not care much, but you could as well just return bool(focusObject and focusObject.isProtected) here and avoid the if check? I know, really trivial." + }, + { + "prediction": "I think this should be `testCannotClickDisabledButton` instead of `testCannotClickDisabledButton`", + "reference": "I believe it's misleading name for the condition. I prefer \"element_to_be_disable\" We can have a condition, when element is enabled but we can't click it, because another element overlays above it. So, If we use \"unclickable\" we might mislead people, who use that condition to verify if element can be clicked" + }, + { + "prediction": "Why is this change needed?", + "reference": "Do DiscoveryContext and GoGapicContext have a more specific common ancestor than Object? If so, let's use that." + }, + { + "prediction": "Align the parameters of a method call if they span more than one line.", + "reference": "is this the intended behavior now?" + }, + { + "prediction": "Why is this removed?", + "reference": "Hunspell/C++ stems that a bit differently from Lucene, but in a controversial way, so I removed the check instead of changing the expectation" + }, + { + "prediction": "Why is this change needed?", + "reference": "I'm curious why this is needed?" + }, + { + "prediction": "I think this should be `if (caster && target && params.distanceEffect != CONST_ANI_NONE)`", + "reference": "I do not see how that changes anything, as the target is operated on many times before that line?" + }, + { + "prediction": "I think this should be \"visitor-loyalty\" instead of \"user-loyalty\"", + "reference": "Same user/visitor thing." + }, + { + "prediction": "I don't think this is needed anymore.", + "reference": "This is not the correct path on all hosts. How can I correctly determine whether I will need to look in `Program Files` or `Program Files (x86)` for the script?" + }, + { + "prediction": "I think this should be `await this.FlushAsyncInternal(false, CancellationToken.None);`", + "reference": "I think it would be better to move this try/catch block inside of the `FlushAsyncInternal` function as there are a few of places that can call it, eg event timer (here), AppendAsync, FlushAsync and CloseAsync." + }, + { + "prediction": "Why not use `perField` here?", + "reference": "should we set a smaller initial size to make sure that we exercise the growing logic in our tests?" + }, + { + "prediction": "I think this should be `assert str(dt.max(f.A)) == str(f.A.max())`.", + "reference": "Let's add a new line at the end of this file, so that the last line becomes a valid line of code." + }, + { + "prediction": "Why is this change needed?", + "reference": "Why was this removed?" + }, + { + "prediction": "I think this option should be `sarif.log` instead of `sarif.log`", + "reference": "I would prefer that this tool follow the driver framework conventions, which use OutputFilePath as an argument, take a look at AnalyzeCommandBase. You can propose changes to that if you'd like, but binskim, sqlskim, this tool should all conform (in the interests of building an eco-system with consistent command-line interface)" + }, + { + "prediction": "I think this method should be called `fillAll` instead of `fillObject`. I think it would be better to return a `Queue` instead of a `Queue` and return a `Queue` instead of a `Queue` and return a `Queue`.", + "reference": "(...), where each element ~are~ **is the** given {@code element}." + }, + { + "prediction": "I think this is a good idea to remove the `OpenTelemetryTracerProvider` and `OpenTelemetryTracing` services.", + "reference": "What if `AddOpenTelemetryTracing` is called multiple times?" + }, + { + "prediction": "I think this should be `if (lastId >= 0 && lastId <= wal_->lastLogId()) {`", + "reference": "Why is the condition of \"lastId <= wal _-> lastLogId() \" added here?" + }, + { + "prediction": "I think this should be `path.Join(baseURL, \"settings\", \"environment\")` instead of `path.Join(baseURL, \"settings\", \"environment\")`", + "reference": "`environmentID` is unused in MakeEnvironmentURL" + }, + { + "prediction": "I think this should be `if (length > 0) {`", + "reference": "Just hide the textview" + }, + { + "prediction": "I think this should be `const PaymentVersionV2 = \"v2\"`", + "reference": "'Supports'? Very uninformative naming inside protocol. Why not just paymentVersion, or just recognise supported payment version from generic protocol version supported by the client." + }, + { + "prediction": "Why is this change needed?", + "reference": "We should add an additional call to Recv() somewhere after here that we assert returns io.EOF." + }, + { + "prediction": "I don't think this is needed anymore.", + "reference": "What is this used for?" + }, + { + "prediction": "I think this should be `AbstractJavaAccessTypeNode` instead of `AbstractJavaAccessTypeNode`.", + "reference": "this is a breaking API change. Do we really need to do it in 6.2.0? Can't we just deprecate the methods?" + }, + { + "prediction": "I think this should be `case 10:`", + "reference": "Is dropping the **Allergen table** necessary? Can't we just add the two new columns to the existing table using a raw query?" + }, + { + "prediction": "Line is too long. [92/80]", + "reference": "I'm confused why the expectations here would have inverted? Seems unrelated to topic stuff. Can you clarify?" + }, + { + "prediction": "I think we should use `std::numeric_limits::max()` instead of `std::numeric_limits::max()`", + "reference": "I am very sorry that I neglected to resolve the conflict and did not fully unit test edge" + }, + { + "prediction": "Why not use `CloseableGroup` instead of `CloseableGroup`?", + "reference": "I think closeable should be handled by the concrete impl of a catalog and not by the base class, I don't think all catalogs must implement closeable by design. This should be done via composition rather than inheritance. Additionally, I don't know what the effect of this change is on other catalogs so this feels a bit on the risky side." + }, + { + "prediction": "I think this should be `dilation_data[i] * (dilation_data[i] - 1)`", + "reference": "Should this be `const`?" + }, + { + "prediction": "I think this should be `BenchmarkSwitcher.FromAssembly(typeof(Program).Assembly).Run(args);` or `BenchmarkSwitcher.FromAssembly(typeof(Program).Assembly).Run(args);`", + "reference": "Can we also add the Exporters here by using `DefaultConfig.AddExporter(...)`? At least the Datadog exporter that can't be configured from the command line..." + }, + { + "prediction": "Why do you need this?", + "reference": "@JaeseungYeom I believe you had set this in a previous commit to, by default, not train model1 when loading from ckpt. Would it work for you to have this as a command line option `--no_model1_train` instead of the default behavior?" + }, + { + "prediction": "Is this a real Ruby type?", + "reference": "@devigned, please clarify" + }, + { + "prediction": "I think this should be `github.com/jmcvetta/randutil` and not `github.com/jmcvetta/randutil`", + "reference": "File is not `gofmt`-ed with `-s` (from `gofmt`)" + }, + { + "prediction": "I think this should be `git` instead of `git`", + "reference": "Should we break this up into a separate line?" + }, + { + "prediction": "I think this should be `true` instead of `false`", + "reference": "Why the override on the env variable, wouldn't we want to use the value set from Prow?" + }, + { + "prediction": "I don't think we need this widget anymore.", + "reference": "I don't see anything here that excludes people on a Team plan from from the revenue report. I see that TeamPlans are counted below, but the individual subscribers on the plan would still be included." + }, + { + "prediction": "Is there a reason why we need to check for `endIndex >= 0`?", + "reference": "I know that we do not pull the last bit of performance out of the JVM but it is more robust and removes redundant code." + }, + { + "prediction": "Shouldn't this be a `IllegalArgumentException`?", + "reference": "I'd make this a `throw new NullPointerException(\"registry == null\");` instead" + }, + { + "prediction": "Why is this needed?", + "reference": "Does adding things here require us also to extend the FelixConfiguration resource in libcalico-go?" + }, + { + "prediction": "I think this should be `0.3.1`", + "reference": "does this need to be public?" + }, + { + "prediction": "I think this should be `FILEIDENTIFIER_LENGTH_LENGTH = 4`", + "reference": "Please import this from a pre-existing definition." + }, + { + "prediction": "I think this should be `bool` or `bool`.", + "reference": "File name does not represent class name... if we ever cared for such things?" + }, + { + "prediction": "Line is too long. [89/80]", + "reference": "I don't mind the `make_spammer` route name. It seems to more clearly convey that the state of the account will change. The \"label as\" route name seems less definitive, as if one is simply adding something to the account -- a new label -- instead of changing the status of the account." + }, + { + "prediction": "I think this should be `ensureSingleDataDir` instead of `ensureSingleDataDir`", + "reference": "This exits if `-d` not specified which isn't exactly what we want, right?" + }, + { + "prediction": "I think this should be `escape_string_like` instead of `escape_string_like`", + "reference": "So a `*` becomes `**`? How does this affect the query? If I have `csordas*marton` as filter and I have `csordas*marton` and `csordasFOOBARmarton` as run names in the database I get only the first as result?" + }, + { + "prediction": "I don't think we need to check for `int` or `timestamp` here.", + "reference": "I want to know in which situation you need to traverse from \"Timestamp\" data....." + }, + { + "prediction": "I think this should be `err = fmt.Errorf(\"cannot use unseekable request body %T, for signed request with body %T\", ctx.Body, err)`", + "reference": "nit: hasBytes should be hashBytes" + }, + { + "prediction": "I think this should be `True` instead of `False`.", + "reference": "If I enable the clangsa analyzer with the `--stats` flag the checkers will be disabled even if they were enabled previously. I think we should check here if stats was enabled. `if 'stats_enabled' in args and args.stats_enabled` we should leave them enabled." + }, + { + "prediction": "Why is this change needed? I think it's better to use `core.CalculateRollupFee(args.Data, uint64(gasUsed), dataPrice, executionPrice).Uint64() / defaultGasPrice` instead of `core.CalculateRollupFee(args.Data, uint64(gasUsed), dataPrice, executionPrice).Uint64() / defaultGasPrice`", + "reference": "Note that we probably should set the default gasPrice to `0.1 gwei` considering our minimum gas limit has to be 21k. At 21k the minimum fee would end up being `0.000021 ETH` which is just a little too high" + }, + { + "prediction": "I don't think we need to add a `strictSigningKeyUsage` flag here.", + "reference": "So during a config reload, this function is invoked, but prior to that the o.TrustedKeys slice is set to nil, so this code would work. However, I am wondering what happens to s.trustedKeys, I am not sure this is handled at all. (same with the new map you are adding). I am not sure if this is supposed to be supported with a config reload, but just wondering if this is not putting things into a bad state." + }, + { + "prediction": "I think this should be `fmt.Sprintf(w, \"Access denied token is empty\", \"Access denied token is empty\")`", + "reference": "I think the logic should be to check for token len of 0 then check for token len of less than 2. The way the logic is now, it is hard to determine if it is empty or malformed." + }, + { + "prediction": "(style) line over 80 characters", + "reference": "Nothing would change here even if this `if` statement were removed." + }, + { + "prediction": "Why is this change needed?", + "reference": "`sql` module is imported later." + }, + { + "prediction": "I think this should be `assert cfg.nms.get('type', 'nms') == 'nms', 'GARPNHead only support 'naive nms.'`", + "reference": "I think it's strange, whether `assert cfg.nms.type == 'nms'` would be better." + }, + { + "prediction": "Why did you remove this?", + "reference": "Doing a quick search, it looks like there are other places that would be handling this promise rejection. How did you confirm this is not needed?" + }, + { + "prediction": "I think this test should be moved to the `StateDBAdapter` instead of the `StateDBAdapter`", + "reference": "let's use greenland in the unit tests as well" + }, + { + "prediction": "I think this should be `mode` instead of `mode`", + "reference": "Please split this into two lines" + }, + { + "prediction": "I think this should be `if (SelectedIndex > 5) // when more menu item is currently visible, selected index has value higher than 5`", + "reference": "Is there any variable available instead of hardcoding 5?" + }, + { + "prediction": "Why is this change needed?", + "reference": "The onNewPasscode method was taking care of creating the user account. Now the user account will already have been created." + }, + { + "prediction": "I don't think this is needed.", + "reference": "This is really a minimum, isn't it, so `minPostWriteInterval` perhaps? IIUC it never gets used as a default, because the default IptablesPostWriteCheckInterval is 1s, which is larger than this." + }, + { + "prediction": "I think we should use `self.send(\"#{action}_bookmarks_path\")` instead of `self.send(\"#{action}_bookmarks_path\")`", + "reference": "I wonder if you can use the controller's context instead of using it explicitly?" + }, + { + "prediction": "I think this should be `e.LogPersister.AppendErrorf(\"Unable to remove canary resources: %v\", err)`", + "reference": "Can you add this log for `baseline` too?" + }, + { + "prediction": "This should be `Blockly.Msg.NEW_MESSAGE` instead of `Blockly.Msg.NEW_MESSAGE`.", + "reference": "Let's call this \"NEW_BROADCAST_MESSAGE\". Msg.NEW_MESSAGE will be confusing down the line." + }, + { + "prediction": "I think this should be `TransitionDependenciesMap` instead of `TransitionDependencySet`.", + "reference": "A better way to do this (in your future PR) would be to: 1. get rid of `TransitionDependencySet` altogether 2. tag `TransitionDependenciesMap` as `\"TransitionDependencySet\"` in JSON 3. update the JSON marshaler to deal with `\"TransitionDependencySet\"` tag. If it's a map, no big deal. Else, construct the `TransitionDependenciesMap` map. Doing that would mean that we don't need to have duplicate code, names for this." + }, + { + "prediction": "I think this should be `AttributeError` instead of `KeyError`.", + "reference": "It's very error-prone to have so large `try` clause with such non-specific exceptions handled. Consider rewriting it with either of these: 1. Check that expected columns are present in `DataFrame` (`{'physical_key', 'logical_key', 'size'}.issubset(df.columns)`). 2. Normalizing output of query by using `COALESCE()` (or normalizing `DataFrame` itself?). Also it looks like a row with package metadata isn't used here, so might make sense to filter out it with `WHERE logical_key IS NOT MISSING`." + }, + { + "prediction": "I think this should be `false` instead of `bool`", + "reference": "Change to `DisableHTTPGit`" + }, + { + "prediction": "I think this should be `return unless @user.org.present? && recipient.active?`", + "reference": "org was not used in the mail content" + }, + { + "prediction": "Why is this change needed?", + "reference": "Is this gonna cause a lint issue, because of unused var? Maybe we should log it out?" + }, + { + "prediction": "I think we should use `docker_container.json[\"NetworkSettings\"][\"IPAddress\"]` instead of `docker_container.json[\"NetworkSettings\"][\"IPAddress\"]`", + "reference": "My understanding is that this will always be set to the actual containers IP, and never to the `DOCKER_HOST` IP if that env_var is set." + }, + { + "prediction": "I think this should be `useCallback` instead of `useCallback`", + "reference": "this dependency to a callback also has to be a callback (eslint now warns us)" + }, + { + "prediction": "Why is this change needed?", + "reference": "directory name as well needs change.." + }, + { + "prediction": "Why not use `$this->getIdentifier($identifier);` instead of `$this->getIdentifier($code);`?", + "reference": "Why is the getIdentifier() call required here?" + }, + { + "prediction": "I think this should be `#ifdef FLATBUFFERS_PLATFORM_NO_FILE_SUPPORT`", + "reference": "Looks more appropriate to stick this in `AbsolutePath`.. actually that already has `FLATBUFFERS_NO_ABSOLUTE_PATH_RESOLUTION`" + }, + { + "prediction": "Why is this needed?", + "reference": "this might interfere when we have multiple dashboards. maybe ActionBrowseTagline needs to be a Component so we can store the reference to the element on it." + }, + { + "prediction": "I think this should be `defer func() {`", + "reference": "Should this be inside the `else` below and right after `CDebugf` so that we still get the logs?" + }, + { + "prediction": "I think this should be `errorCodeMap[string]gcerrors.ErrorCode`", + "reference": "Weird they don't expose the type for dynamo and this seems a pretty common error." + }, + { + "prediction": "I think this should be `public IDisposable EnableOpenTelemetry(Action configureOpenTelemetryBuilder)` instead of `public void EnableOpenTelemetry(Action configureOpenTelemetryBuilder)`", + "reference": "@cijothomas I couldn't make the unit tests work without a way to destroy the ActivityListener we create internally so I return it as an IDisposable here. But we'll also need to also stop any ActivityProcessors/ActivityExporters on application shutdown right?" + }, + { + "prediction": "`addtransaction` should be `addtransaction` instead of `addtransaction`", + "reference": "The default should be \"False\", as \"True\" would be a significant change in behaviour." + }, + { + "prediction": "I think this should be `cPickle.HIGHEST_PROTOCOL = 2`", + "reference": "since goal is to restore old_protocol, shouldn't we get it from pandas if possible? e.g. this will break if their source code changes." + }, + { + "prediction": "Why do you need this?", + "reference": "This should consume less resources because str_replace don't need to assign arrays with all the values" + }, + { + "prediction": "I don't think we need to check the type of the argument.", + "reference": "It would be better to pass `param` as the second argument here, so that the parameter declaration is printed alongside the type. Same thing for the changes in `ffi.c` and `lambda.c`." + }, + { + "prediction": "Why is this needed?", + "reference": "Do we need to set the members to final like submitTime, submitUser ...? They are only used by getter method." + }, + { + "prediction": "This should be `__CLASS__` instead of `__CLASS__`.", + "reference": "That makes this error message incorrect; if someone has extended Cms\\Classes\\MediaLibraryItem, then this error message will read \"Class My\\Classes\\CustomMediaLibraryItem has been deprecated\"." + }, + { + "prediction": "Why not use `$config` instead of `$config`?", + "reference": "Is it worth injecting the whole configuration object for just one setting? Would it be more generic to pass an $options array with the override_from in it? I'm not completely opposed to passing $config, but since we've avoided it so far, it seems like it would be cleaner to maintain that separation. Simply adding a getOptions method to the factory would make this a lot more readable." + }, + { + "prediction": "I think this should be `SPI0_SCK_PIN` and `SPI1_SCK_PIN`", + "reference": "Just curious: where do these pin numbers come from? I see you took the SPI0 pin numbers from the Arduino board layout which is good, but I can't find such a relation for `SPI1`." + }, + { + "prediction": "I think this should be `LinkageError` instead of `LinkageError`.", + "reference": "Isn't that already too late? I'd expect, that the LinkageError occurs the first time, we have the class instance (the classloader tried to load the class) - or do we get a partially linked class back, and we get the exception when retrieving the methods?" + }, + { + "prediction": "Why is this change needed?", + "reference": "nit:s/Traceparent/traceparent/ - As per the spec header name is all lowercase." + }, + { + "prediction": "I think we should use `filepath.Join` instead of `filepath.Join` here.", + "reference": "We need to have unit tests for it since it is now a public function. Also I'm not a fan for making this movement since `relPath` doesn't consume any info in this pkg." + }, + { + "prediction": "Why is this needed?", + "reference": "We generally avoid wildcard imports. If you feel like changing it back, great. Otherwise, no big deal." + }, + { + "prediction": "Why is this change needed?", + "reference": "We also have a typo on the line above! OUt or Out?" + }, + { + "prediction": "I don't think we need to add the `anchor: \"comments\"` here.", + "reference": "OH! These are text.... (Ignore above)" + }, + { + "prediction": "Why is this changed?", + "reference": "How was this set before? Was it just ignored?" + }, + { + "prediction": "I think this should be `Stripe::Customer.update` instead of `Stripe::CardError`.", + "reference": "Should we `save!` here?" + }, + { + "prediction": "This should be `sizeof(\"65535\")` instead of `sizeof(\"65535\")`.", + "reference": "sizeof(port) seems ever-so-slightly clearer." + }, + { + "prediction": "I think this should be `SourceGroups` and `DestinationGroups`.", + "reference": "Not sure if this has been discussed. I wonder why SourceGroups and DestinationGroups are not in From and To NetworkPolicyPeer as NetworkPolicyPeer already describes the source/destination of the traffic." + }, + { + "prediction": "I think it would be better to use `self.mode` instead of `self.mode`.", + "reference": "This doesn't account for `:bind --mode caret ...` (i.e. `--mode caret` instead of `--mode=caret`; both work). Do you see an easy way to make that work?" + }, + { + "prediction": "Why is this change needed?", + "reference": "Is this map used for durable state anywhere? If so we probably want to keep ConditionFailedError as 2" + }, + { + "prediction": "I think this should be `http2.MethodHead`", + "reference": "You can use `http.MethodHead` here." + }, + { + "prediction": "I think this test should be moved to the `SessionTest.java` package.", + "reference": "And another empty test. Please remove until there's content." + }, + { + "prediction": "I think this should be `console.log(\"[mediasync] Begin processDownloadStatus\", serverInfo.Id);`", + "reference": "You really didn't need to do any of these, we need to remove the API client from source eventually anyway." + }, + { + "prediction": "I think this should be `private TiSession session;` and `private TiSession session;`", + "reference": "seems pretty strange here because TiSession contains PDClient." + }, + { + "prediction": "Metrics/LineLength: Line is too long. [98/80]", + "reference": "I created a test method for this scenario. Would you normally split it out like that or bundle this into one of the existing test methods? I'm more accustomed to creating lots of separate `it` blocks in nested `context` blocks in rspec" + }, + { + "prediction": "Is there a reason to use `GetNewSessionQueueSize` instead of `GetSessionQueue`?", + "reference": "should it be `newsessionqueue` or `newsessionqueuer`? In case we'd like to be consistent" + }, + { + "prediction": "I think this should be `pendingNumDocs.get()`.", + "reference": "Maybe add `@lucene.experimental`? We are exposing (slightly) internal details about `IndexWriter` so maybe we need to reserve the right to change this API in the future ..." + }, + { + "prediction": "I don't think we need to use `curl_with_retries` here. I think we should use `curl_with_retries` instead of `curl_with_retries`", + "reference": "@johnduarte I know this isn't part of your code change, but it seems to me that this `curl_with_retries` is not necessary. If the `retry_on` host command is successful, isn't puppetdb ostensibly listening to the ssl port as well? What do you think about removing that `curl_with_retries` after the `retry_on`?" + }, + { + "prediction": "Why is this needed? I think it's better to use a `map[string]string` instead of a `map[string]string`", + "reference": "Does an empty struct really take less storage than a bool? I guess it must be, or else you wouldn't have changed this, but I'm curious about the detail." + }, + { + "prediction": "I think this should be `waitForAndSpeakSelectionChange` instead of `speakSelectionChange`", + "reference": "nit: This should perhaps be called `waitForAndReportSelectionChange`, as it affects braille as well, not just speech." + }, + { + "prediction": "I think this should be `if not tag_error_response: return make_error(code='InvalidParameter', message='Topic already exists with different tags')`", + "reference": "nit: I suggest that we rename `tag_error_response` to `tag_resource_success`, as later in line 132 we're returning an error if this value is *not* truthy." + }, + { + "prediction": "Shouldn't this be `@ShopsysShop/Styleguide/styleguide.html.twig`?", + "reference": "I am missing return typehint" + }, + { + "prediction": "I think this should be `backbone=dict(checkpoint='https://github.com/whai362/PVT/')` or `backbone=dict(checkpoint='https://github.com/whai362/PVT/')`", + "reference": "_base_ = 'retinanet_pvt-t_fpn_1x_coco.py'" + }, + { + "prediction": "Shouldn't this be `onAuthFlowError(\"jwt_oauth_error\", e.getLocalizedMessage());`?", + "reference": "We should remove `throws Exception` here, since we're catching it anyway and triggering `onAuthFlowError`." + }, + { + "prediction": "I think this should be `*Publisher` instead of `*Publisher`.", + "reference": "a super thin wrapper like this makes me think we should consider not having it, instead just defining in the plumbing.api the publisher and subscriber interfaces we expect a ps dependency passed in to support and then to pass calls directly to that thing rather than through this wrapper" + }, + { + "prediction": "I think this should be `LOG.info(String.format(\"Pull of %s:%s complete\", name, tag));`", + "reference": "Waiting for the pull takes a long time. This message informs the user that at least one of the images being pulled is available. Please leave." + }, + { + "prediction": "I don't think we need this, but I think it's a good idea to keep it for now.", + "reference": "We should set a 1.7 upper bound for this as well. :smiley:" + }, + { + "prediction": "I don't think we need to import `wordpress` from `wordpress` and `wordpress` from `wordpress`", + "reference": "Lodash mixed in with WordPress dependencies" + }, + { + "prediction": "I don't think we need the `context` here.", + "reference": "Put a comma after the last parameter of a multiline method call." + }, + { + "prediction": "I don't think we need a test for this, but I think it would be nice to have a test for `login_as` and `login_as` and `login_as` and `login_as` for `login_as`", + "reference": "perhaps we should test that users cannot edit the profiles of others?" + }, + { + "prediction": "I think we should use `SERVER_HANDSHAKE_TRAFFIC_SECRET` instead of `SERVER_HANDSHAKE_TRAFFIC_SECRET`.", + "reference": "Does this mean the content changed with the new pyopenssl version? Is Wireshark already compatible with this new format?" + }, + { + "prediction": "Why is this change needed?", + "reference": "line is 147 characters (from `lll`)" + }, + { + "prediction": "I think this should be `showSpeechViewerAtStartup = boolean(default=false)`", + "reference": "Perhaps move this option into a separate speechViewer section, as we are planning to also save position information as well." + }, + { + "prediction": "Shouldn't this be `getAllEditedProducts`?", + "reference": "This is not a segment responsibility this query should be in exporter-File module" + }, + { + "prediction": "I think this should be `result_handler.fixit_file` instead of `result_handler.fixit_file`.", + "reference": "Did you measure the performance with and without this option. Do we want to export fixits even if the `clang-apply-replacements` tool is not available in the user's PATH?" + }, + { + "prediction": "I think this should be a `metav1.Object`", + "reference": "What if we do not change this file ? Are we using this `pkg/disk/v1alpha1` elsewhere for block device requirement?" + }, + { + "prediction": "I don't think we need to change the value of `@port` here.", + "reference": "regarding dropping the port/host/uri methods on Nod: this would `options[:port] = target.port if target.port`" + }, + { + "prediction": "Why not just call `FileUtil.determineFileType(File file, String fileName)` instead of `FileUtil.determineFileType(File file, String fileName)`?", + "reference": "good question - I vote we just remove, up to you if you want to handle in this PR though. (as it would require changing the places you call it; maybe moving the test? Though my guess is if we don't now, we never will." + }, + { + "prediction": "I think this should be `data.cache?(:bundler)` instead of `data.cache?(:bundler)`", + "reference": "This is so that if we turn on bundler caching globally it still won't affect python etc. Same inheritance logic as for the cache slug." + }, + { + "prediction": "I think this should be `!IsAsleep(contexts) && this.SupportsAllocation(contexts);`", + "reference": "[You can ignore it] Maybe a better method name would be IsSupported or HasSupportForAllocation?" + }, + { + "prediction": "I don't think we need to change this, but I think it would be better to use `str` instead of `str` here.", + "reference": "Why is this changed to `\\*`? The behavior of the code on line 42, shows that `*` is what's handled?" + }, + { + "prediction": "I think we should use `Realm.schemaVersion(Realm.defaultPath)` instead of `Realm.schemaVersion(Realm.defaultPath)` and `Realm.schemaVersion(Realm.defaultPath)`", + "reference": "I think this should either return `-1` or throw. I think my vote is on the former." + }, + { + "prediction": "I think this should be `heartbeat_timeout_seconds`", + "reference": "I am confused, I've read 2, 3 and 5 seconds in various places" + }, + { + "prediction": "I think this should be `if r.ContentLength > 0 { contentLength = r.ContentLength } else { contentLength = r.ContentLength }`", + "reference": "Any particular reason you chose int64 instead of int? This requires adding type conversions throughout the code below." + }, + { + "prediction": "Why is this change needed?", + "reference": "this string should really be a local constant. it's repeated below." + }, + { + "prediction": "I think this should be `short` instead of `short`.", + "reference": "Number types are hard . Should we be considering byte/sbyte? What about unsigned variants that would otherwise fit in a signed 64 bit integer like UInt16, UInt32?" + }, + { + "prediction": "Why is this change needed?", + "reference": "`Assert.True(true)`... xunit used to have Assert.DoesNotThrow " + }, + { + "prediction": "I think this should be `us-east-1` instead of `us-east-1`", + "reference": "should this be an env var like the other `S3_*` values?" + }, + { + "prediction": "I think this should be `node.removeChild(node)` instead of `node.parentNode`", + "reference": "If you do go this route, I think it would be worth adding a note here that IE 11 is the only reason why we're not using the more obvious `node.remove()`." + }, + { + "prediction": "I don't think this is a good idea, but I think it would be better to use `if key in dictionary` instead of `if key in dictionary`.", + "reference": "The added text doesn't really match why it's possible. Maybe it would be better to name that as a separate case for this checker? (e.g. dict lookup is quicker than list comparison)" + }, + { + "prediction": "I think this should be `@var \\DateTime`", + "reference": "just whether we are not missing some doctrine extension because above this attribute is nullable position and it shows int instead of int|null but maybe for lvl2 it is OK" + }, + { + "prediction": "Shouldn't this be `slots.stream().anyMatch(slot -> !slot.getSession().isPresent())`?", + "reference": "Prefer `Stream.anyMatch` instead of iterating over all slots." + }, + { + "prediction": "I don't think we need to check if drm_format_mod_explict is nullptr?", + "reference": ":grimacing: yikes, thanks for catching this!" + }, + { + "prediction": "I think this interface should be `IMvxRecyclerAdapterBindableHolder` instead of `IMvxRecyclerAdapter`", + "reference": "`Binded` is weird. I think it needs to be something with `Bound` in it (and drop the `Mvx` bit) like `ViewHolderBound` or something." + }, + { + "prediction": "Why do we need to pass diskList to createPoolBuilder?", + "reference": "can we have String() and GoString() implementation of `apis.CStorPool` struct to pretty print it." + }, + { + "prediction": "I think this should be `NEXT()` instead of `NEXT()`", + "reference": "Like I said, please replace by `EXPECT(kTokenString)`" + }, + { + "prediction": "I don't think this is needed anymore.", + "reference": "Will you please update the copyright message to `2021` for classes that you modify?" + }, + { + "prediction": "I think this should be `entity.hasOwnProperty('$$hashKey') || entity.hasOwnProperty('$$hashKey')`", + "reference": "Is there a better way to filter these other than relying on the hashKey. I few like this might now be trustworthy in the long run. If angular ever removes this property, this feature would be broken." + }, + { + "prediction": "(style) line over 80 characters", + "reference": "No need to check dynamo_exited" + }, + { + "prediction": "I think this should be `SetTlsCACertificate(caFile string, certKeyFile string)`", + "reference": "from linter: >method SetTlsCACertificate should be SetTLSCACertificate" + }, + { + "prediction": "Why is this change needed?", + "reference": "this data had incorrectly aligned timestamps (which wasn't the point of the test)" + }, + { + "prediction": "I think this should be `user.Current().Username`", + "reference": "Since this is workflow agnostic, should we put this in common?" + }, + { + "prediction": "I think this should be `version_compatible` instead of `version_compatible`.", + "reference": "using the `@abstractmethod` decorator wouldn't be better?" + }, + { + "prediction": "Why not use `false === $this->isBoolean($field)` here?", + "reference": "This was crashing the app during EDIT on boolean Doctrine Embedded properties" + }, + { + "prediction": "Why is this changed?", + "reference": "Will this be backwards compatible with the previous path?" + }, + { + "prediction": "I think this should be `IScope`?", + "reference": "what is potential use for current scope? It seems you'd only want it to stop it. But if you get current scope you never know if it's yours to stop - i.e. this is not safe or correct to stop current scope. So I wonder should we even try to expose it?" + }, + { + "prediction": "Why is this change needed?", + "reference": "I think this is likely the only additional change needed on the original PR." + }, + { + "prediction": "I don't think this is needed anymore.", + "reference": "Please revert changes to unrelated file" + }, + { + "prediction": "I think this should be `Connector[]{new SocketConnector()}`", + "reference": "Can test use a Mockito mock instance instead?" + }, + { + "prediction": "I don't think we need to change the summary here, but I think it would be better to add a `@SuppressWarnings(\\\"InvocationHandlerDelegation\\\")` to the summary.", + "reference": "Bit of a shame about these multi-line strings in annotation parameters - they're not a deal breaker but just make the diff noisier" + }, + { + "prediction": "I think this should be `public List ConvertIEnumerableToList(IEnumerable enumerable) { return new List(enumerable); }`", + "reference": "we can remove this one as this is not used any more" + }, + { + "prediction": "why is this removed?", + "reference": "we don't really need an extra error flag" + }, + { + "prediction": "I think we should use `java.util.Optional` here.", + "reference": "any chance you could just fix the processors plugin?" + }, + { + "prediction": "I think this should be `use_depthwise=True` instead of `use_depthwise=False`", + "reference": "We may keep this config unchanged since `use_depthwise=True` by default." + }, + { + "prediction": "(style) line over 80 characters", + "reference": "Maybe add i#956 in this log as well." + }, + { + "prediction": "I think we should use `storeInbox->getWeight()` instead of `storeInbox->getWeight()`", + "reference": "if (StoreInbox* storeInbox = getStoreInbox()) {" + }, + { + "prediction": "I think this should be `importAllFromMnemonic` instead of `importAllFromMnemonic`", + "reference": "what is this, is it going to be used later?" + }, + { + "prediction": "I don't think we should be using `vagrant.should_receive(:stdout)` here. I think we should be using `vagrant.should_receive(:stdout)` instead of `vagrant.should_receive(:stdout)`", + "reference": "@anodelman test failure is probably due to this, needs to be fixed to `(\"Host #{host.name}\")`" + }, + { + "prediction": "I don't think we need to add the `proposal-submodel-container` to the `cart-comments` container.", + "reference": "I'm not sure that we need this anymore, but that can be a separate discussion." + }, + { + "prediction": "I think this should be `@throws IOException`", + "reference": "The formatting seems different from the rest of the code" + }, + { + "prediction": "I think this should be `proxy_url` instead of `proxy_url`", + "reference": "Could we have a unit test for this?" + }, + { + "prediction": "Why do we need this channel?", + "reference": "nit: put params in new line" + }, + { + "prediction": "I think this should be `width=\"18\" height=\"20\" />`", + "reference": "The button for the date range selector has incorrect width since it has `padding-right: 8px` which sets the width to: `44px`. Can you review to make the button `36px` on small screens as per the AC?" + }, + { + "prediction": "(style) line over 80 characters", + "reference": "This should be inside the set routine IMHO: matches the others; all callers need it; simplifies code here." + }, + { + "prediction": "I think this should be `DEFAULT_BATCH_WRITE_LOCK_TTL`", + "reference": "MAX_RETRY_TIMES makes much more sense." + }, + { + "prediction": "Why is this needed?", + "reference": "`saveSession` allows easier mocking - just save function which You need, instead full interface" + }, + { + "prediction": "I think this should be `encoding_type` instead of `encoding_type`", + "reference": "No docs for the new param here?" + }, + { + "prediction": "I think this is a good idea to remove the Copyright Contributors from the AG.", + "reference": "This file is unrelated to the aims of this PR. Please remove. If it is needed to demonstrate Sonar Deltas then it has been proven and can be removed." + }, + { + "prediction": "Shouldn't this be `FlushAllActivityObjects`?", + "reference": "minor: `Export all ended spans to the configured Exporter that have not yet been exported.` - This is the spec description. Lets use something on that line. \"queue\" is not necessarily present for all processor." + }, + { + "prediction": "I think this should be `log.Debug(\"completed ExecuteAndWaitProgress() for %v\", target.Label)` and `log.Debug(\"completed ExecuteAndWaitProgress() for %v\", target.Label)`", + "reference": "is this deliberate? or testing?" + }, + { + "prediction": "I think this should be `readonly` and not `readonly`.", + "reference": "I want to get more perspectives regarding this one. Making it `readonly` makes me feel that we're assuming the head should never change, and my worry is that other code might assume it (e.g. they might cache the value and assume it will never change). While this is true for now, I guess in the future we might want to support something like `PrependProcessor(processor)` or `InsertProcessor(index, processor)`." + }, + { + "prediction": "Why is this change needed?", + "reference": "This isn't critical for test coverage, but it seemed off that we had disabled wrapping the reader." + }, + { + "prediction": "Why is Descriptors3D needed?", + "reference": "Please remove Descriptors3D from this file. We just did this in master." + }, + { + "prediction": "Why is this needed?", + "reference": "You could pass the MetaClient instance in ctor, and create a new instance if nullptr." + }, + { + "prediction": "I think this should be `s.interpreter.limiter <- struct{}{}{}`", + "reference": "What does this do? Seems like a poor mans mutex/semaphore?" + }, + { + "prediction": "Why is this change needed?", + "reference": "This is a breaking change, and cannot be made. We have committed to this API for v1." + }, + { + "prediction": "I think this should be `Context|null`", + "reference": "Can also drop corresponding types from docblock here" + }, + { + "prediction": "I think this should be `log.finest(\"Got a request to create a new session: \" + new DesiredCapabilities(request.getDesiredCapabilities()));`", + "reference": "This change is unhelpful to users." + }, + { + "prediction": "I think this should be `var _test3_a = _o.Test3.A; var _test3_b = _o.Test3.B;` and `var _test3_b = _o.Test3.B;`", + "reference": "why is this variable introduced? Please stick `_o.Test3.A` directly in the call below." + }, + { + "prediction": "I think this should be `app.post('/:providerName/get/:id', middlewares.hasSessionAndProvider, middlewares.cookieAuthToken, middlewares.verifyToken, controllers.get)`", + "reference": "do you mind sharing what is the reason for this change?" + }, + { + "prediction": "Layout/MultilineMethodCallBraceLayout: Closing method call brace must be on the same line as the first argument.", + "reference": "thoughts on putting `alter_query { |rel| rel.limit(@closed_proposal_limit) }` in a method that we can call here? That way we can have a test for this logic without needing a controller spec." + }, + { + "prediction": "Align the elements of a hash literal if they span more than one line.
    Prefer single-quoted strings when you don't need string interpolation or special symbols.", + "reference": "Perhaps `@node` throughout" + }, + { + "prediction": "Do we need to change this to something like `(default: 'aggressive')` or something like `(default: 'normal')` or `(default: 'aggressive')`?", + "reference": "Shouldn't this default be 'normal' ?" + }, + { + "prediction": "I think this is a bit confusing, but I think it would be better to have a `num_sensors_in_repo` and `num_sensors_in_repo` and `num_sensors_in_repo` and `num_sensors_in_repo` as well.", + "reference": "nit: type this" + }, + { + "prediction": "I think this should be `SELECT_CAST_SINK_TO_USE` instead of `SELECT_CAST_SINK_TO_USE`", + "reference": "These command names are specific to Chromium-based browsers. Please move to `ChromiumDriverCommand`" + }, + { + "prediction": "I think this should be `bd.Object.Spec.NodeAttributes.NodeName` and `bd.Object.Spec.NodeName`", + "reference": "lets print nodeName that got passed also" + }, + { + "prediction": "I think this should be `long` instead of `int`.", + "reference": "Should be `if sys.version_info[0] > 2:`" + }, + { + "prediction": "(style) line over 80 characters", + "reference": "Is there any need to pass this through `string_metric_parse`? I believe you can either create an off_t or just pass 0, with no need to added a string conversion into the mix." + }, + { + "prediction": "I think this should be `self.execute(Command.PRINT_PAGE, options=print_option_arg.print_options)['value']`", + "reference": "Let's not use a form of hungarian notation in naming our variables" + }, + { + "prediction": "Shouldn't this be `H2O_PROBE_CONN(RECEIVE_REQUEST_HEADERS, &conn->req.input.path, &conn->req.version, &conn->req.headers.entries, &conn->req.headers.size);`?", + "reference": "Seems like we are calling the probe twice?" + }, + { + "prediction": "I think this should be `[app_name] [environment_name] [cmd]`.", + "reference": "I think we'll want @rickmanelius (or somebody) to go through all the help and make it more accessible. Probably later in the cycle. But \"Run a command in an app container\" doesn't do it for me :)" + }, + { + "prediction": "I think this is the only place where we set the IPFamilies for the service, but I think it would be better to just set the IPFamilies for the service. I think it would be better to just set the IPFamilies for the service.", + "reference": "Have not tested this yet, lets see if tests complain, but I suspect it should be as easy as this " + }, + { + "prediction": "I think this should be `NATURAL_ORDER_COLUMN_NAME_HIDDEN_COLUMNS`", + "reference": "no big deal but we don't we just use a list to keep the order? I don't think it's likely to have a duplicated columns if that was the concern." + }, + { + "prediction": "I don't think this is needed anymore.", + "reference": "See above, same for all similar cases below." + }, + { + "prediction": "I think this should be `enable_snapshot_annotations = true` instead of `disable_snapshot_annotations = true`", + "reference": "where is this coming from?" + }, + { + "prediction": "I think this should be `say_with_time` instead of `say_with_time`", + "reference": "We can also drop `plans.includes_screencasts`, right?" + }, + { + "prediction": "I think this should be `bfh(\"%064x\" % counter)[::-1]` instead of `bfh(\"%064x\" % counter)[::-1]`", + "reference": "wouldn't `int.to_bytes(counter, 32, 'little')` be equivalent, clearer and faster?" + }, + { + "prediction": "I think we should add a `ValidateStoragePaymentCondition` function to the `ValidateStoragePaymentCondition` function.", + "reference": "I don't see why this is in porcelain since it's just a free function, with no dependency on plumbing or the `a` receiver. I think it should be moved to `protocol/storage`. It's exposed unnecessarily widely here." + }, + { + "prediction": "I think we should move this to the `create_messages` function, since it's only used in the `create_messages` function.", + "reference": "Could we only do this for all time? Because that's what is causing problems rn?" + }, + { + "prediction": "Why is this change needed?", + "reference": "This looks better than before, but we'll now likely run into issues with `'` characters in the spec. Maybe we can just use `manager.call_strings` instead?" + }, + { + "prediction": "I think this should be `SparkReadOptions.SPLIT_SIZE` instead of `SparkReadOptions.SPLIT_SIZE`.", + "reference": "Should this replace `splitSize` instead of adding a parallel call? The `SparkReadConf` is not yet released, so we can change it still." + }, + { + "prediction": "I think this should be `os.makedirs(path)` instead of `os.makedirs(path)`", + "reference": "To reduce complexity, please use OSError on Python3 as well." + }, + { + "prediction": "I think this should be `@cmdutils.register` instead of `@cmdutils.register`", + "reference": "That seems wrong." + }, + { + "prediction": "I don't think we need to configure the session timeout here.", + "reference": "Yes, this is needed here. This is a builtin user who just reset their password." + }, + { + "prediction": "I think this should be `self._obj_path('.' + buildfile)`", + "reference": "This seems to move the storage of temporary files to the CWD. Is that right? I don't think we should do that. If the process gets interrupted, we should try our best to clean up, but if even that fails, it'd be nice if the mess was left in a different directory. Maybe we should have a directory explicitly for builds?" + }, + { + "prediction": "I think this should be `bool` instead of `bool`.", + "reference": "Please explain why a user would enable this (space savings), and the requirements for this option to be safe." + }, + { + "prediction": "I think we should use `select( STORE_NAME ).hasFinishedResolution( 'getAccounts', [accountID] )` instead of `select( STORE_NAME ).hasFinishedResolution( 'getContainers', [accountID])`", + "reference": "I think the `undefined` checks still need to be removed from here." + }, + { + "prediction": "I think this should be `max_retrials`?", + "reference": "Is there any particular reason to have 6? " + }, + { + "prediction": "I think this should be `chunk = chunk.BiggestPow2AlignedRange()`.", + "reference": "The biggest chunk does not guarantee that it contains the biggest CIDR-aligned range. If we don't care too much about a few CPU cycles being wasted, then I'd suggest to merge the if-statements." + }, + { + "prediction": "I think this should be `validateVarsSubbed` instead of `substituteSourceVars`", + "reference": "instead of doing the if err := __; err != nil { return err } thing, you can do errs = addErrs(errs, ___). If you want." + }, + { + "prediction": "I think this should be `fmt.Sprintf(fmt.Fmt(fmt.Fmt(fmt.Fmt(fmt.Fmt(fmt.Fmt(fmt.Fmt(fmt.Fmt(fmt.Fmt(fmt.Fmt(fmt.Fmt(fmt.Fmt(fmt.Fmt(fmt.Fmt(fmt.Fmt(fmt.Fmt(fmt.Fmt(fmt.Fmt(fmt.Fmt)))), fmt.Fmt(fmt.Fmt(fmt.Fmt(fmt.Fmt(fmt.Fmt(fmt.Fmt(fmt.Fmt(fmt.Fmt(fmt.Fmt(fmt.Fmt(fmt.Fmt(fmt.Fmt(fmt.Fmt(fmt.Fmt(fmt.Fmt(fmt.Fmt(fmt.Fmt(fmt.Fmt(fmt.Fmt(fmt.Fmt)))))))))))))))))), fmt.Fmt(fmt.Fmt(fmt.Fmt(fmt.Fmt(fmt.Fmt(fmt.Fmt(fmt.Fmt(fmt.Fmt(fmt.F", + "reference": "nit: Is this error message accurate?" + }, + { + "prediction": "(style) line over 80 characters", + "reference": "Ouch! :man_facepalming: And of course, this worked for me because that evaluated to false when I was testing the bare-user path." + }, + { + "prediction": "I think this should be `if (len(statusParts) > 0) {` or `if (len(statusParts) > 0) {`", + "reference": "Parentheses aren't needed here. `if len(statusParts) > 0 {` will suffice." + }, + { + "prediction": "I think this should be `SkipOnServers []string`", + "reference": "// the test is skipped on given servers because it will fail." + }, + { + "prediction": "Metrics/LineLength: Line is too long. [92/80]", + "reference": "The name of the test should be updated to \"it 'should return bad_request if api key is invalid\"" + }, + { + "prediction": "I think this should be `jobInfo.cancel is 1`.", + "reference": "Use `==` in this case instead of `is`." + }, + { + "prediction": "I think this should be `CStorPoolPhase` instead of `CStorPoolPhase`", + "reference": "Please put it like this: `CStorPoolPhase is a typed string for phase field of CStorPool`" + }, + { + "prediction": "Shouldn't this be `if ($cartItem->getQuantity() > $pse->getQuantity() && ConfigQuery::checkAvailableStock()) {` ?", + "reference": "variable must be in camelCase => $newStock" + }, + { + "prediction": "I think this should be `int(syscall.Stdin)` instead of `int(syscall.Stdin)`", + "reference": "unnecessary conversion (from `unconvert`)" + }, + { + "prediction": "I think this should be `visit(index, leaf, start, end)` instead of `visit(index, leaf, start, end)` and `visit(index, leaf, start, end)`", + "reference": "... is probably automatically vectorized, since it has the same speed as `System.arraycopy`" + }, + { + "prediction": "I think this should be `cgroup.Control` instead of `cgroup.Control`", + "reference": "Is there anyway to get rid of the global variable, if it is specific for each task, can you add it to the `mtask` struct?" + }, + { + "prediction": "Why is this change needed?", + "reference": "Surprised to see this old syntax here, but not _that_ surprised." + }, + { + "prediction": "I think this method should be `removeAll(Predicate predicate)` instead of `reject(Predicate predicate)`", + "reference": "It is good to mark it! Maybe we can remove the method for Vavr 1.0.0 - but for now it can stay as-is. Thx!" + }, + { + "prediction": "I think this should be `types` instead of `types`", + "reference": "exported func New returns unexported type *pool.pool, which can be annoying to use" + }, + { + "prediction": "I think this should be `transports` instead of `transports`", + "reference": "Sorry, I feel like I'm missing something - where does this get called?" + }, + { + "prediction": "why is this removed?", + "reference": "@guihecheng Thanks for the fixing! Actually this is not the dup codes, when we first registerNode, then update the nodestatus immediately, or the node will keep not ready for 10s. And do you have other ways to refactor it?" + }, + { + "prediction": "I think this should be `#include `.", + "reference": "How portable is this? (e.g., Windows). I'm relaunching tests of windows because they failed for other reasons." + }, + { + "prediction": "Why is this needed?", + "reference": "What this does is narrow down what we are saying the descriptor set is requiring. This is a good thing, but doesn't go far enough, we are still potentially setting unused bindings to either a required state or an invalid one. set_binding_pair.second is a map of the binding/requirements from the bound shaders... and instead of marking all bindings, looking at that will mark only the used ones. Will open a new PR" + }, + { + "prediction": "Why is this change needed?", + "reference": "should use `codes.InvalidArgument`, same as above line 1033 and 1036" + }, + { + "prediction": "Why is this change needed?", + "reference": "Please revert this file." + }, + { + "prediction": "I don't think this is necessary.", + "reference": "Probably in another PR, I think the package should be renamed to `servicebus` to be consistent." + }, + { + "prediction": "I think this should be a `string` instead of a `string`.", + "reference": "curious: are we planning to add link to each of the rules in the message?" + }, + { + "prediction": "Shouldn't this be `settleDeposit`?", + "reference": "line is 123 characters" + }, + { + "prediction": "Why not just `array`?", + "reference": "same here; `@param array $user Array of user data`" + }, + { + "prediction": "Why is this changed?", + "reference": "A quick read of this test indicates that we're changing the behavior of this api, and so the test needs updating. Is that right?" + }, + { + "prediction": "Why is this needed?", + "reference": "Register needs lowercasing" + }, + { + "prediction": "I think this should be `true` instead of `false`?", + "reference": "This should belong to FlowContainer class." + }, + { + "prediction": "I think this should be `if vision._isDebug():`", + "reference": "I think there is a chance that on disable/enable cycling, referring to `self.window` is problematic. In the `__init__` method `self.window` is set to None. If `__init__` gets called before `_run` exits the `while` loop then we wont call `self.window.destroy()`. Can you use non-instance variables after this point? I don't think `self.timer` is used outside this function, if so, then I'd prefer it also be a local variable." + }, + { + "prediction": "I think this should be `assert.NoError(err)` instead of `assert.NoError(err)`", + "reference": "I was confused by this env name variable, assuming it was the value, not the name. Silly nit, but maybe name it noninteractiveEnv?" + }, + { + "prediction": "I think this should be `write.parquet.write-mode` instead of `write.avro.write-mode`", + "reference": " nice, having the \"overwrite\" default makes this change backwards compatible, right?" + }, + { + "prediction": "Why is this change needed?", + "reference": "It doesn't make sense to accept all 2xx status code. For example, `203 Non-Authoritative Information` or `205 Reset Content`, etc." + }, + { + "prediction": "Why is this change needed?", + "reference": "Found a better choice here that doesn't involve object creation: StringHelper.startsWith()" + }, + { + "prediction": "Why do we need to check if attestedData.Type == attestedData.PluginName?", + "reference": "Shouldn't we consider the situation where it doesn't find a plugin?" + }, + { + "prediction": "Why is this needed?", + "reference": "Do not understand why this needed for table. All new classes defined in the `preview` namespace." + }, + { + "prediction": "I think this should be `athenz.zms.notification_service_factory_class`", + "reference": "Kept the same property value even though it is now in Common to avoid breaking existing clients." + }, + { + "prediction": "Why is this needed? I think it's better to use `public InclusiveMetricsEvaluator(Schema schema, Expression unbound) { return new InclusiveMetricsEvaluator(schema, unbound, true); }`", + "reference": "TODO: this is temporary until we figure out case sensitivity for metrics evaluators." + }, + { + "prediction": "why is this change needed?", + "reference": "can we just kill this TODO?" + }, + { + "prediction": "I think this is a bug, but I think it would be better to have a test for `encoding not supported` as well.", + "reference": "This appears to be a change in error handling due to a dag upgrade." + }, + { + "prediction": "Align the elements of a hash literal if they span more than one line.", + "reference": "These changes look like a hosts file _must_ be provided?" + }, + { + "prediction": "I don't think we need to change this to `fmt[] = \"O\";`", + "reference": "@akohlmey Just make it a cast like the others. I dislike it either way, but that's the price we pay for Python 2 support." + }, + { + "prediction": "I think this should be `beta|dev|nightly|release`", + "reference": "I wonder if the default here should be nightly? I won't block on that though just a question for a follow up." + }, + { + "prediction": "Why is this change needed?", + "reference": "Also not for merge to master." + }, + { + "prediction": "I think this should be `self._cron_schedule.split(\" \"), 5`", + "reference": "nit `non-standard` might be a bit subjective - maybe \"Cron schedule {blah} is in an unrecognized format. Dagster cron strings must consist of five characters separated by a single space chacater\"." + }, + { + "prediction": "Why was this removed?", + "reference": "ARM emulator gets tripped up on the copy/paste menu when tapping the text. Tapping on the text field isn't necessary for setting text." + }, + { + "prediction": "I think this should be `checkWord(wordChars, wordChars.length, null);`", + "reference": "extra word lookup removed" + }, + { + "prediction": "I don't think this is a good idea, but I think it would be better to add a `@return Promise` to the `wait` method.", + "reference": "Will you link to {!webdriver.promise.Promise} here?" + }, + { + "prediction": "Layout/MultilineMethodCallBraceLayout: Closing method call brace must be on the same line as the first argument.", + "reference": "Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping." + }, + { + "prediction": "Why is this change needed?", + "reference": "@AdrianLxM finally found some your bug too :)" + }, + { + "prediction": "I think this should be `if (image_view_ && !image_layout_) {`", + "reference": "This crashed in an app using descriptor_indexing with some unbound descriptors." + }, + { + "prediction": "I think this should be `# pylint: disable=unused-variable`", + "reference": "I think we might want to keep these marks separate? Then we can create a new `workflow` file with 3 jobs: 1) Prime stdlib 2) Prime batch 1 of external 2) Prime batch 2 of external" + }, + { + "prediction": "I think this should be `if (!childViewModelCache.Exists(fragInfo.CachedFragment.ViewModel.GetType()))`", + "reference": "Throw `fragInfo.CachedFragment.ViewModel.GetType()` into a variable so it's not evaluated each time." + }, + { + "prediction": "Line is too long. [92/80]", + "reference": "Rather than just getting rid of the memoization maybe we should use an `after_save` filter to set it to `nil` so that it will be recomputed on next read?" + }, + { + "prediction": "I don't think we need to do this.", + "reference": "JS abstraction leaks so this should be `if (el.parentNode !== null) { el.parentNode.removeChild(el) }` @developit " + }, + { + "prediction": "I think this should be `string` instead of `string`", + "reference": "nit: change it to `Exchange: unexpected status 0x%x` so that we'll know where this issue came from as well as making it easier to decode." + }, + { + "prediction": "I think this should be `cstorVolumeRunTask`", + "reference": "Name of constant is not appropriate. Name of constant should make use of version no. as suffix. The constant can be a typed string versus a string." + }, + { + "prediction": "I think this should be `command_options.concat(envs)` instead of `command_options.concat(envs)`", + "reference": "@glennsarti you want to validate this on Windows? IIRC this won't work" + }, + { + "prediction": "I think this should be `0` or `-1`.", + "reference": "ps I'm ok to add this as a elasticsearch property instead. ex zipkin.storage.elasticsearch.names-lookback (we have similar things in cassandra)" + }, + { + "prediction": "Why is this change needed?", + "reference": "Curly brackets here `{ (breakLine) xx (breakLine)}`" + }, + { + "prediction": "I think we should use `$(\".username-check\").remove();` instead of `$(\".username-check\").remove();`", + "reference": "Can you check this case Assuming you have a dashboard with 2 users, test1 and test2 Currently logged in user is test1. You should not be able to change it to test2. You open dev console and paste in `countlyGlobal[\"member\"].username = \"test2\";` then you enter value test2 in the input and it is allowed and form would be submitted. Would server side validation deal with such case?" + }, + { + "prediction": "I think this should be `org.apache.commons.jdbc.Driver` instead of `org.apache.commons.jdbc.Driver`", + "reference": "since we're changing this class, let's fix the default class name as well. it should be com.mysql.cj.jdbc.Driver" + }, + { + "prediction": "Do we need to check if system roles exist in the system roles table?", + "reference": "At load time, we ensure the config'd objects exist." + }, + { + "prediction": "Shouldn't this be `StringComparison.OrdinalIgnoreCase` instead of `StringComparison.OrdinalIgnoreCase`?", + "reference": "Is there a test for this case?" + }, + { + "prediction": "I think we should use `pluralize` instead of `pluralize`", + "reference": "This copy doesn't match what I had in my mockup. I think it's better to call them episodes." + }, + { + "prediction": "I think this is a good idea, but I think it would be better to have a `servicePortMap[common.FrontendServiceName] = svcCfg.RPC.GRPCPort` and not a `servicePortMap[common.MatchingServiceName] = svcCfg.RPC.Port`", + "reference": "For some reason it worked for frontend even before this change." + }, + { + "prediction": "This should be `std::lock_guard`", + "reference": "Can we encapsulate this in a function so if we want to change it against we don't have to change all call sites?" + }, + { + "prediction": "Why is this change needed?", + "reference": "Maybe a good opportunity to do a related improvement: The parameter `total_blocks` in `bootstrap_attempt::process_block` shadows a field with the same name, so maybe rename the parameter to `total_blocks_a` The parameter and field are incremented at the same time, but the field is used by `populate_connections` as well, so I assume they mean different things. Other than that, LGTM" + }, + { + "prediction": "I think this should be `default_space_sum`?", + "reference": "Please revise the naming of these two flags. _**default**_ is the value we take when user doesn't provide. You could infer from the fact how `default_parts_num` are used." + }, + { + "prediction": "Why is this needed?", + "reference": "I don't think we should have separate \"transformer\" and \"generator\" terms. I would suggest renaming this existing class `ImportTypeTransformer` to `StandardImportTypeTransformer` and renaming the interface `ImportGenerator` to `ImportTypeTransformer`." + }, + { + "prediction": "why is this change needed?", + "reference": "I believe `tag-matchers` is the proper form for this filename. Only components should use pascal case, I believe everything else should continue to use kabob-case." + }, + { + "prediction": "I think this should be `duck/v1alpha1`", + "reference": "same here, move this one down" + }, + { + "prediction": "Why not use `AdministratorDataFixture::ADMINISTRATOR` here?", + "reference": "Some could be created as superadmin instead, to add more special cases. Also, the reason behind this change should be described in the commit msg and the PR description." + }, + { + "prediction": "I think we should use `from databricks import koalas as ks` instead of `from databricks.koalas.dask.utils import derived_from`", + "reference": "Is this required?" + }, + { + "prediction": "Why is this needed?", + "reference": "`--public-volume-create-allowed=true` and set the default to `true`, then use `!c.Bool('...')`" + }, + { + "prediction": "I think this should be `conn->push_stream_ids.max_open = INT32_MAX(conn->push_stream_ids.max_open);` or `conn->push_stream_ids.max_open = INT32_MAX(conn->push_stream_ids.max_open);`", + "reference": "Could we use `0x7ffffffe` instead, since `INT32_MAX` is an ID of a _pull_ stream? Other than that the PR seems ready for merge. Thank you for working on the fix." + }, + { + "prediction": "Line is too long. [92/80]", + "reference": "Might as well add a docstring for the new `exit_code` parameter too." + }, + { + "prediction": "Why is this change needed?", + "reference": "`poll` and `remove` have different meanings." + }, + { + "prediction": "I think this should be \"write.parquet.bloom-filter-enabled\" or \"write.parquet.bloom-filter-expected-ndv\"", + "reference": "What's the perf impact of writing bloom filer? Does it make sense to enable it by default if the perf impact is minor? Would be nice to include benchmarks?" + }, + { + "prediction": "I think we should remove the `AWS SDK for Java v2` keyword and remove the `AWS SDK for Java v2` keyword.", + "reference": "AWS Identity and Access Management (IAM)" + }, + { + "prediction": "I think this should be `CUDA_DRIVER_FUNCTION_MAP`", + "reference": "Remove `HIP_UNSUPPORTED` - it is an alias" + }, + { + "prediction": "I think this method should be called `fetchRecentlyFinishedFlows(long lifeTimeMs)` and not `fetchRecentlyFinishedFlows(long lifeTimeMs)`", + "reference": "i think we should return an empty list instead of null here." + }, + { + "prediction": "I think this should be `PREF_SOCKS_PROXY_HOST` and `PREF_SOCKS_PROXY_PORT`", + "reference": "Is it really necessary to store them in a new setting? I think it should be enough to store the credentials in `ProxyConfig.direct()`. Then AntennaPod does not need to store multiple different proxy settings. Also, it will not change existing users' settings (currently the proxy settings would be lost on upgrade)." + }, + { + "prediction": "I don't think you need to use `nodeTran.ExplicitValues.CollisionEnergy ?? null` here.", + "reference": "This is a mess. Can it be broken out as a separate function using ifs and return statements, which would also make it more debuggable." + }, + { + "prediction": "I think this should be `clone=False` instead of `clone=False`", + "reference": "This stuff is a bit ugly and should probably become a utility. The main problem is that ``.map`` is being abused a bit." + }, + { + "prediction": "I think this should be `None` if `forced_empty_list` is set to `False`.", + "reference": "Maybe there is a better way here so that we don't even bother triggering a storage query since we want an empty list here." + }, + { + "prediction": "I think we should use `aws.NewRegionalClient` instead of `aws.NewRegionalClient`", + "reference": "just curious, `region` is not used in the AWS IAM client, afaik. But I see this is a general field for clutch clients, is it just ignored internally?" + }, + { + "prediction": "I think we should remove this line.", + "reference": "Why are we doing that change?" + }, + { + "prediction": "Why is this change needed?", + "reference": "Why && changed to || ?" + }, + { + "prediction": "I think this should be `collection_to_single_partition`", + "reference": "can you please change this to `_collection_to_single_partition()`, like we've done for alll other helper methods defined in this module?" + }, + { + "prediction": "I think this should be `use Propel\\Runtime\\ServiceContainer\\StandardServiceContainer;`", + "reference": "This class is never used, don't import it." + }, + { + "prediction": "I think this should be `#if DEBUG` instead of `#else`", + "reference": "Missing a `return`. Either way, I think it's better to add a `#if DEBUG throw;` in the catch block instead (so we keep the log in debug mode)" + }, + { + "prediction": "I don't think we need to do this, but I think it's a good idea to make sure that we don't have to change the `accept` method to `accept` and `accept` methods.", + "reference": "Files should have an extra line at the end of them." + }, + { + "prediction": "I think this should be `internal List GetLoggingRulesThreadSafe() { return LoggingRules.ToList(); }`", + "reference": "I think we could replace this (well the backing field) with `BlockingCollection` when we drop NET35?" + }, + { + "prediction": "I think this should be `pser_or_pdf.drop(input_groupnames, axis=1)` instead of `pser_or_pdf.index.names`", + "reference": "Can you show before/after output in the PR description? From a cursory look, seems like it will just drop the duplicated column which isn't consistent with pandas' results." + }, + { + "prediction": "Do we need this?", + "reference": "Added validation that `config: transports` isn't used @adreyer @katelopresti Curious what you think about having Bolt link directly to the docs site." + }, + { + "prediction": "This should be `_UnknownUrlSchemePolicy`", + "reference": "This probably isn't needed anymore now?" + }, + { + "prediction": "`Array` should be `Array` instead of `Array`", + "reference": "Would it be easier to kick this import to the top of the file? It'll get stripped out anyway." + }, + { + "prediction": "I think this should be `verifyPrivacyGroupContainsEnclavePublicKey(String privacyGroupId, String enclavePublicKey)` instead of `verifyPrivacyGroupContainsEnclavePublicKey(String privacyGroupId, String enclavePublicKey)`", + "reference": "are you sure that the privacyGroup cannot be null?" + }, + { + "prediction": "I think this should be `list(range(reference.GetNumAtoms(onlyExplicit=True)))`.", + "reference": "Wrapped with list" + }, + { + "prediction": "I think this function should be called `DivideFloat64` instead of `DivideFloat64`", + "reference": "Please move this to `pkg/stats/v1alpha1`" + }, + { + "prediction": "Line is too long. [89/80]", + "reference": "a small nit pick ...this can go into `lib/patterns.rb` ?" + }, + { + "prediction": "I think this should be `mdc-tab--active` instead of `mdc-tab--danger`", + "reference": "The above TODO is no longer necessary I believe " + }, + { + "prediction": "Why is this change needed?", + "reference": "Why is this change required ?" + }, + { + "prediction": "I don't think we need this function. I think we should use `bytes.Fields(blackfriday.Markdown(input, Renderer{}, 0))` instead of `bytes.Join(blackfriday.Fields(input, Renderer{}, 0))` instead of `bytes.Join(blackfriday.Fields(blackfriday.Markdown(input, Renderer{}, 0))`", + "reference": "This really is an excerpt. ;-)" + }, + { + "prediction": "Why is this change needed?", + "reference": "@acud The reason why the default is now `true` is because the chunk must be in the neighborhood of the storer peer with this change. The majority of the tests expect a valid receipt so the closest peers in the tests must be in the neighborhood. As of writing this, there is only one test that expects a peer to be out of depth." + }, + { + "prediction": "I think this should be `go.temporal.io/server/common/persistence/sql/sqlplugin/sqlite`", + "reference": "This is what breaks the build. Apparently w/o this line, `sqlite` package is not even compiled. With this line it gets compiled but compilation fails because we don't use CGO for our production Linux builds and > ***Important: because this is a `CGO` enabled package you are required to set the environment variable `CGO_ENABLED=1` and have a `gcc` compile present within your path.***" + }, + { + "prediction": "Why is this change needed?", + "reference": "This should be all slots" + }, + { + "prediction": "I think this is a good idea to remove the `destory` method from the `RegistryUtils` class.", + "reference": "Need to add deprecated annotation and call the new fixed method to avoid the API broken issue." + }, + { + "prediction": "Why is this change needed?", + "reference": "This was just fixed in mozilla-mobile/android-components#4892. @pocmo is cutting a new Android Components 19 dot release today, so you'll be able to jump to the new version and restore the build type." + }, + { + "prediction": "I think this should be `info` instead of `info`.", + "reference": "Leaving this log line because it helped me to diagnose that the reconciler client was using a different cache than the event sources, so not always seeing the injectable that triggered the reconcile." + }, + { + "prediction": "I think this should be `mset.mu.RLock()` instead of `mset.mu.RUnlock()`", + "reference": "Do we need also to protect access to `mset.js` and `mset.jsa` or even `mset.store` down below? (not sure if those are immutable or not)." + }, + { + "prediction": "Why do we need this?", + "reference": "I'd rather you do this under `if info.filledInMerkle {` since that's the only place it's relevant." + }, + { + "prediction": "why is this change needed?", + "reference": "*NULL_DEREFERENCE:* object `leaderUrl` last assigned on line 348 could be null and is dereferenced at line 351." + }, + { + "prediction": "I think this should be `@plan.principal_investigator_identifier = current_user.identifier_for(IdentifierScheme.find_by(name: 'orcid'))`", + "reference": "Since the IdentifierScheme's don't change without us making additional code changes, perhaps this should be added as a constant as we previously did with Perms?" + }, + { + "prediction": "I don't think we need to import os here.", + "reference": "nit: We can revert this now." + }, + { + "prediction": "I don't think we need to import `java.util.WeakReference`.", + "reference": "Oh, that's the reason why you have two different data structures here. Does the order of the `selectedItems` list matter? If not, I think it would be more clear if both would be a Set." + }, + { + "prediction": "I think this should be `LuaScriptInterface::luaContainerGetContentDescription`", + "reference": "Should be named getDescription, since the other description functions are named that." + }, + { + "prediction": "I think this should be `mType = 1; // Neo2` instead of `mType = 2; // Neo2`", + "reference": "Don't we want to do this for g2 4k also?" + }, + { + "prediction": "I think this should be `const str2ab = require('string-to-arraybuffer');`", + "reference": "I would prefer if we don't add this package as it's unsupported, and I expect not necessary. Node buffer supports many formats - is it not possible to use one of its helper functions to load the content?" + }, + { + "prediction": "This is a bit confusing, but I think it would be better to use `chainToDataplaneHashes` instead of `chainToDataplaneHashes` and `hashToFullRules` to make it easier to read.", + "reference": "I don't think this is used any more, please remove." + }, + { + "prediction": "I think this should be `List of config values` instead of `List of config values`.", + "reference": "actually use type_name=print_config_type_to_string(self, with_lines=False) to populate this" + }, + { + "prediction": "I think this should be `deleteRecursive` instead of `deleteRecursive`.", + "reference": "We should be using dependency injection here, instead of fetching the config factory at the last minute from the container. That would allow us to more easily overwrite the \"delete_local_resource\" setting in tests." + }, + { + "prediction": "I think this should be `final`", + "reference": "everywhere else in the project, `LOGGER` is used" + }, + { + "prediction": "I don't think we need to change the API_VERSION here, but I think it would be better to use `.min_by(&:to_f).to_json` instead of `.min_by(&:to_f).to_json`", + "reference": "Why is this value set to \"min_by\", and what are the implications of it? Does `&:to_f` play nice with semver (e.g. 1.2.0)?" + }, + { + "prediction": "I don't think we need this file anymore, but I think it's a good idea to add it to the `enzyme-adapter-react-16.js` file.", + "reference": "typo --> gloabl" + }, + { + "prediction": "I think this should be `context.WithValue(r.Context(), ReplacerCtxKey, replacer)` and not `context.WithValue(r.Context(), ReplacerCtxKey, replacer)`", + "reference": "Wanted to double-check: does the `log` middleware still set its own \"empty\" value (should default to `-` at least for the default log format)?" + }, + { + "prediction": "I don't think we need to check if the session ID is null. If the session ID is null, then the session ID will not be null.", + "reference": "It would be better to just change RWD to throw IllegalStateException if you attempt to execute a command after quit (unless it's a second call to quit())" + }, + { + "prediction": "Do we need this? I don't think it's a good idea to use `spin` here.", + "reference": "Is this going to be configurable? If not, it should just be removed for now." + }, + { + "prediction": "I think this should be `from collections import OrderedDict`", + "reference": "Maybe just one import line - `from collections import OrderedDict, Mapping` ?" + }, + { + "prediction": "I think this should be `List` instead of `List`", + "reference": "Btw this class probably doesn't belong in PMD. It says it's there to test UIs, but arguably UIs can use their own test fixtures, and this in in src/test so probably not even shipped anywhere." + }, + { + "prediction": "I think we should use `finishResolution` instead of `finishResolution`", + "reference": "Maybe we can group each `finishResolution` call with the corresponding `receiveGet...` call? That would make the connection more clear when reading the code." + }, + { + "prediction": "`source_address` should be `None`", + "reference": "Can we take this out of the constructor here and just use the config value? (This would also make the other proxy mode cases obsolete)" + }, + { + "prediction": "I think this should be `if (field.required) { ... } else { ... }`", + "reference": "Please flip the conditional to be `if (field.required) { ... }`." + }, + { + "prediction": "I think we should use `new_user.email_address` instead of `new_user.first_name`", + "reference": "should we create a fixture without first name and last name and have a spec like this one that uses it to make sure nothing errors out when they are not present?" + }, + { + "prediction": "I think this should be `generateMethodSampleCode(PythonDocConfig config)` instead of `generateMethodSampleCode(PythonDocConfig config)`", + "reference": "It seems odd to require all Python snippets to have this method when it's not relevant for messages.snip or the discovery snippets. (I see that we're already doing something similar with generateModule/generateBody where some of the implementations are empty. This also seems strange to me.)" + }, + { + "prediction": "I think it would be better to add a `privateTransaction.getPMTHash()` method to the `PrivateTransactionSimulator` class. I think it would be better to add a `privateTransaction.getPMTHash()` method to the `PrivateTransactionSimulator` class.", + "reference": "What about this: \"// Corresponding PMT does not exist.\"" + }, + { + "prediction": "I think this should be `os.path.isfile(config_file)`", + "reference": "You don't need af ormat specified here." + }, + { + "prediction": "I think we should use `sync` instead of `sync` here.", + "reference": "Nitpick: import ordering" + }, + { + "prediction": "Why is this needed?", + "reference": "code smell here, a function that create a reward calculator from transaction processor?" + }, + { + "prediction": "I think this should be `runtimevarManagerClient`", + "reference": "I don't think the `A` is idomatic is it?" + }, + { + "prediction": "I think it would be better to use `removeReachableFilesFromMetadataLocation` instead of `removeReachableFilesFromMetadataLocation`", + "reference": "nit: the others use the method name in the api and not the class name of the api" + }, + { + "prediction": "I think this should be `runSILMandatoryOptPreDiffPasses(sil_module);`", + "reference": "Does it work to run all the sil diagnostic passes before we serialize? That would be more consistent with what the normal compiler does in `FrontendTool.cpp : performCompileStepsPostSILGen()`" + }, + { + "prediction": "Layout/EmptyLinesAroundBlockBody: Extra empty line detected at block body end.", + "reference": "You left in a puts." + }, + { + "prediction": "I think this should be `final`.", + "reference": "Hmm, should we also cache the `smoothingScore` for this hit? Or, if we will keep it at returning `0`, couldn't we remove this impl and inherit the default from `Scorable`?" + }, + { + "prediction": "I don't think this is needed anymore.", + "reference": "I removed that from here because I am hoping that will stop the random unwanted updates to the website with unstable versions." + }, + { + "prediction": "I think this should be `ProcessState` instead of `ProcessState`.", + "reference": "Nit: missing period." + }, + { + "prediction": "I think this should be `s3.ruby.s3_add_bucket_ssekms_encryption_policy`", + "reference": "how **to** deny Simple Storage **Service**" + }, + { + "prediction": "Why is this timeout changed?", + "reference": "Were you having trouble with timeouts in general acceptance tests or only the editor test? It's possible to set timeouts on a per-test basis by using `this.timeout(25000)` within the `it()` function. I'd like to drop the global timeout in the future if possible rather than increase it - in some circumstances a failing test can have a knock-on effect which makes all later tests timeout so Travis can get hung up for a long time if no one notices and cancels the build." + }, + { + "prediction": "I think this should be `if os.path.relpath(curSourceDir, fromPath) == \"addons\":`", + "reference": "I don't think this is necessary." + }, + { + "prediction": "I think this should be `snaps := make([]*api.Volume, 0, len(resp.GetVolumeSnapshotIds()))` instead of `snaps = make([]*api.Volume, 0, len(resp.GetVolumeSnapshotIds()))`", + "reference": "Instead of blindly ignoring all errors, this should just ignore the volume not found error." + }, + { + "prediction": "Why do we need this?", + "reference": "The `rowPosition` will be ignored if the position column is not projected." + }, + { + "prediction": "I think this should be `timeoutSeconds: 30`", + "reference": "Is there a possibility of a clash between periodSeconds and timeoutSeconds? For instance, the current probe is not yet timed-out and the next one has started." + }, + { + "prediction": "I think this should be `CommandLine.defaultFactory().create(cls);`", + "reference": "This logic is already been performed in `CommandLine.defaultFactory().create(cls)` ... whats the point of repeating it here?" + }, + { + "prediction": "I think we should use `this.hot.countSourceCols` instead of `this.countSourceCols`", + "reference": "Please change from `let` to `const` here and above. Setting value to `this.hot.countSourceCols()` should be enought probably." + }, + { + "prediction": "I think this should be `if (u_conn->fd != -1)` instead of `if (u_conn->net_error != ETIMEDOUT)`", + "reference": "Somewhat nitpick: I see the `!=` pattern mentioned in the fluent-bit style guide, but imo, it would be safer to check that a fd is non-negative with ` > -1` or `>= 0`" + }, + { + "prediction": "Do we need this migration?", + "reference": "Use the new Ruby 1.9 hash syntax." + }, + { + "prediction": "I think this should be `strk.kbt.io/projects/go/libravatar` and not `strk.kbt.io/projects/go/libravatar`", + "reference": "Please host to a GitHub repo." + }, + { + "prediction": "I think this should be `jsonhttp.InternalServerError` instead of `jsonhttp.OK`", + "reference": "The Error log message should not expose internals. The message should be something like this `\"done split failed for address %v\", tagr.Address`. Also, the Debugf would be more informative with the address in the message." + }, + { + "prediction": "I think this should be `loglevel-driver` and `loglevel-on-instance` and `loglevel-on-instance`", + "reference": "can we rename `fileLogLevelUsage` to be more generic like `instanceLogLevelUsage`? Same goes for other var below like fileLogLevelFlagName, FileLogLevel." + }, + { + "prediction": "Is there a reason why this is removed?", + "reference": "Does this one not need the `tabContent` object used in the other files?" + }, + { + "prediction": "I think this should be `!Tags(b.Tags).HasOwned(clusterName)` instead of `!Tags(b.Tags).HasOwned(clusterName)`", + "reference": "Our use of the terms `managed` and `unmanaged` in CAPA is interesting. I think we should probably update the docs (as part of a separate PR) to explain that we are referring to whether its CAPA managed infra. As opposed to meaning AWS managed service." + }, + { + "prediction": "I think it would be better to use `key == \"api_sig\"` instead of `key == \"api_sig`", + "reference": "Looks like all of these can be put into a list." + }, + { + "prediction": "I think we should use `canonicalizeHeaderKey` instead of `canonicalizeHeaderKey`", + "reference": "nit: \"*mapping\" for a map is unnecessary. Consider calling this `originalNames` or similar." + }, + { + "prediction": "I don't think we should be using `wx.OK` and `wx.CANCEL` here. I think it would be better to use `wx.OK` and `wx.CANCEL` as well.", + "reference": "Please split this into two sentences; i.e. \"This profile will be permanently deleted. This action cannot be undone.\"" + }, + { + "prediction": "I think this should be `lastAutosensResult.sensResult = \"autosens disabled\";`", + "reference": "NPE here and in other APS plugins" + }, + { + "prediction": "I think this should be `msg.Router.Source == modules.DynamicControllerModuleName`", + "reference": "Thanks for the fixing, and could you please provide more details for this bug? Because we have the deduplication mechanism in cloudhub, so it will has no problem." + }, + { + "prediction": "I think this should be `applicationName` instead of `applicationVersion`", + "reference": "These could be final" + }, + { + "prediction": "Why is this change needed?", + "reference": "highway have the same problem we can add a new method in invocation: mergeContext 1.if new context have more items, then addAll to new context, and replace old context 2.if new context have less items, then allAll to old context directly." + }, + { + "prediction": "I think we should use `StringBuilder` instead of `StringBuilder` here.", + "reference": "Created a single error so it's not interleaved in log" + }, + { + "prediction": "Why is this change needed?", + "reference": "`isIE9` was reverted. Shouldn't this condition be reverted as well?" + }, + { + "prediction": "Shouldn't this be `protectedCall(luaState, params, -1, defaultReturn)`?", + "reference": "Sorry if I'm being too pedantic here, but wouldn't it be nice to have standard parameter name? Like using `defaultValue` everywhere." + }, + { + "prediction": "I think this should be `bserver-0.dev.keybase.io:443,bserver-1.dev.keybase.io:443,bserver-1.kbfs.keybase.io:443`", + "reference": "Remind me again: what's the point of having new clients connect to both -0 and -1? If we ever have to blackhole -0, we'd have to blackhole -1 at the same time, right? What is supposed to be the difference between the two? Is it just that someday we might want to have two ELBs, and this will help load balance between them?" + }, + { + "prediction": "Why is this needed?", + "reference": "Why not go back to `c.setPingTimer()` here instead so you don't need the new boolean in setFirstPingTimer()." + }, + { + "prediction": "Why is this removed?", + "reference": "We should figure out why so many of these files have an invisible change on the first line: Are we writing out some sort of byte order mark?" + }, + { + "prediction": "Why remove this?", + "reference": "Was this our code @csrwng" + }, + { + "prediction": "I think this should be `uname -r` instead of `uname -r`", + "reference": "I think you need `.untaint` here." + }, + { + "prediction": "I think this should be `File.directory?(@path + 'tasks') || File.directory?(@path + 'files')`", + "reference": "Why are we including the `files/` directory in this check? I know `tasks/` and `plans/` make sense, since you can reference content in those directories from the CLI, but I don't think you can for `files/` (unless I'm missing a command)." + }, + { + "prediction": "I don't think this is needed.", + "reference": "And again. The reason it's bad is that if someone uses a JDK not produced by Oracle they won't have this class." + }, + { + "prediction": "I think this should be `*X509DistinguishedName` instead of `*X509DistinguishedName`", + "reference": "Can we rename this field to `Subject`? Looking around, it seems like 'subject' is the standard terminology for this stanza " + }, + { + "prediction": "why is this change needed?", + "reference": "Remove additional whitespace." + }, + { + "prediction": "I think this should be `if len(cookies) > 0 {`", + "reference": "We should add `Secure` as well" + }, + { + "prediction": "Why is this change needed?", + "reference": "I presume this isn't a big deal" + }, + { + "prediction": "(style) line over 80 characters", + "reference": "Maybe {}, even though no multi-line body?" + }, + { + "prediction": "Line is too long. [82/80]", + "reference": "We can try something like this: response.should render_template(:partial => 'partial_name')" + }, + { + "prediction": "I don't think we need to check for `caption` here.", + "reference": "Please use `isinstance(text, bytes)` instead. Otherwise, this will lead to unnecessary decoding on python 2 unicode strings." + }, + { + "prediction": "Why is this change needed?", + "reference": "This one is unrelated to the GetSymbolVendor removal ... the API to GetValueAsData was changed." + }, + { + "prediction": "I think this should be `bridgeNetworkMode` instead of `bridgeNetworkMode`", + "reference": "can you assert the value of this field below similar to other fields?" + }, + { + "prediction": "I think this should be `ClassLiteral` instead of `ClassLiteral`.", + "reference": "I'll change that to \"linkplain\" for consistency :)" + }, + { + "prediction": "I think this should be `[a-zA-Z0-9_-]+` instead of `[a-zA-Z0-9_-]+`", + "reference": "This is fix. But since the history resource was relying on the bug to work, I had to do some changes regarding the history entries (eg. explicit declare that the permissions inherit from bucket)" + }, + { + "prediction": "Shouldn't this be `if (transformer != null) transformer.finish();`?", + "reference": "can't we leverage Closeable here and get some sugar&warns? Also, line 89 still calls setContext() .. is it right? or I'm missing something?" + }, + { + "prediction": "Why is this change needed?", + "reference": "Use explicit swarm.Address when defining peerID, by using NewAddress, and remove conversion here." + }, + { + "prediction": "I think this should be `/var/lib/rpm` and not `/var/lib/rpm`", + "reference": "`RpmDependenciesDirectory` should start with a lowercase character so it's not exported outside of this package, it looks like its only referenced in this file." + }, + { + "prediction": "I think this should be `rfp_inplanes` and `sac`", + "reference": "If we make a new backbone class, we don't need to support `BasicBlock`" + }, + { + "prediction": "Why is this removed?", + "reference": "This was an out-of-date dupe of the check on line 335" + }, + { + "prediction": "I don't think this is needed anymore.", + "reference": "Let's put this back" + }, + { + "prediction": "Why is this change needed?", + "reference": "Things like these should have been addressed before submitting a pull request." + }, + { + "prediction": "I think this should be `doesNotContain(\"prometheus_notifications\")` instead of `doesNotContain(\"prometheus_notifications\")`.", + "reference": "This one as well. Any better suggestion please?" + }, + { + "prediction": "I think this should be `c.traceInOp(fmt.Sprintf(\"PUB %s %s %d\", c.pa.subject, c.pa.reply, c.pa.size), nil)`", + "reference": "wonder if we should collect c.trace, c.pa.subject, etc.. while under the lock to prevent data races.. or simply move the tracing under the lock." + }, + { + "prediction": "I think this should be `if (!strcmp(P->short_name, \"s2\") && 0 != strcmp(P->short_name, \"s2\"))`", + "reference": "Why is this hack needed ? Ideally, we shouldn't need that." + }, + { + "prediction": "I think this should be `StatusV2` or `StatusV3`", + "reference": "Minor/Nitpick: replace `1` with a constant, esp. as used in `prog/weaver/http.go` in `{{if eq .Plugin.Version 1}}`" + }, + { + "prediction": "I think this should be `Environment.GetEnvironmentVariable(key)` instead of `Environment.GetEnvironmentVariable`.", + "reference": "nit: Looks like the whitespace got thrown off, can you fix this?" + }, + { + "prediction": "I think this should be `public static string CommandLine_ImportPeakBoundaries_Error__Failed_while_importing_boundaries_`.", + "reference": "Redo this by adding a string literal and then pressing F6 to have Resharper move it to Properties\\Resources.resx which will also create this property." + }, + { + "prediction": "I think this should be `server.Start()` instead of `server.Start()`.", + "reference": "Unless a log file has been specified, IMO you should set the server option to enable syslog (windows event log) here, or someplace along the service start code path. We shouldn't really rely on users to specify that when creating the service." + }, + { + "prediction": "Why is this change needed?", + "reference": "It's strange here, because I saw the `TableColumn` is marked as `PublicEvolving`, but after released flink 1.12.0 it did not have any Interface compatibility guarantee. At least, it should marked as `deprecated`, and keep it a major release." + }, + { + "prediction": "Why is this change needed?", + "reference": "I'm not sure regarding this approach, for me the whole text including anchors should go to resources like ` netConfigLink.setText(CoreMessages.dialog_connection_edit_wizard_conn_conf_network_link); ` You shouldn't concatenate translated values inside the code. If you need some params, please use NLS.bind()" + }, + { + "prediction": "I think this should be `c.logger.Debugf(\"In response to stream flow control window increase\", c.receiveWindowSize/(1<<10))`", + "reference": "How often do we expect this to trigger? Should we maybe put it behind an if logger.Debug()?" + }, + { + "prediction": "I think we should use `controller.Address` instead of `controller.Address`", + "reference": "How was the name `controller` arrived? Can you get a consensus for the name controller ? This may be OK for jiva. However, c-stor does not have a concept called `controller`." + }, + { + "prediction": "I think this is a good idea to check if the namespace is \"new\" or \"dedicated\" or \"dedicated\" or \"dedicated\" or \"dedicated\" or \"dedicated\" or \"dedicated\" or \"dedicated\" or \"dedicated\"?", + "reference": "i dont think we need to explicitly single out `kernel.domainname` here since its not a TODO for OCI either right ?" + }, + { + "prediction": "I think this should be `if (req->res.content_length <= self->args.min_size)`", + "reference": "Should we better change the operator to `<` since the variable defines the minimum size that gets compressed?" + }, + { + "prediction": "Shouldn't this be `assertThat(Stream.range(0, bigNum).length()).isEqualTo(bigNum);`?", + "reference": "I'm really impressed by the AppendElements addition! Very cool! :-)" + }, + { + "prediction": "Why is this change needed?", + "reference": "This change means that users can't easily see which version of the selenium server they're using. This is `info` level information." + }, + { + "prediction": "I think we should use `qtutils.version_check('5.11.2')` instead of `qtutils.version_check('5.11.2')`", + "reference": "This should be in qtutils and imported to here and the other place instead of declaring it twice." + }, + { + "prediction": "I think this should be `fetchCertAlternativesTimeout` instead of `fetchCertAlternativesTimeout`", + "reference": "Seems a bit weird to add a timeout in \"logging\" middleware, but I see that that is done elsewhere, so fine." + }, + { + "prediction": "I don't think we need to do this, but I think it's a good idea to use `delete_singular` instead of `delete_form`.", + "reference": "This code is passing a non localized string when it should be passing in a localized string or it should use the name of the item being deleted." + }, + { + "prediction": "I think we should add a `allowNewUpload: true` to the state.", + "reference": "Could we combine this with the `setState` call above, so we don't have to call it twice?" + }, + { + "prediction": "I don't think we need to check if the encoding is `UTF-8` or `UTF-16`?", + "reference": "That part that still leaves me mystified is how the String class, when populated with a value from the SQL_ASCII encoded database is set to \"UTF-8\" encoding. Since the database is SQL_ASCII, each byte in the string stored in the database is considered one character. Ruby, however, is using UTF-8, which is writing a series of one-byte code points that are only meaningful when considered in the correct encoding. When Ruby passes a string to Postgresql, the code points are essentially \"flattened\" into bytes as they are written to the DB. When Rails (through Ruby) asks for a string from the DB, where does the information about the encoding come from?" + }, + { + "prediction": "Why is this change needed?", + "reference": "Is it a doable way and does it make sense." + }, + { + "prediction": "I think this should be `LOG.warning('Query limit %d was larger than max query limit %d', limit, max_query_limit, max)`", + "reference": "max was wrong here. As its buitlt-in, not a number, and a TypeError was thrown." + }, + { + "prediction": "I think this should be `#! /usr/bin/env python` instead of `#! /usr/bin/env python`", + "reference": "This change is not needed, please revert it." + }, + { + "prediction": "I think this should be `(eval_name, eval_result, is_higher_better)` or `(eval_name, eval_result, is_higher_better)`", + "reference": "@ClimbsRocks Please add that it could be a string. `feval : callable, string or None, optional (default=None)`" + }, + { + "prediction": "I think this should be `Sports` instead of `Sports 0; i++ {`", + "reference": "You could perhaps call this `strlen` (although I don't particularly care about the name as it is an implementation detail)." + }, + { + "prediction": "Why is this change needed?", + "reference": "should we have a common `Escape()` method that can be used everywhere?" + }, + { + "prediction": "Why is this removed?", + "reference": "The whitespace removal above here is probably unintentional :slightly_smiling_face:" + }, + { + "prediction": "Why is this change needed?", + "reference": "should we start p2p even after dispatcher? b/c dispatcher handles msg from p2p" + }, + { + "prediction": "Why is this change needed?", + "reference": "Did we decide once and for all to use req/resp throughout spring?" + }, + { + "prediction": "I think we should use `I18n.t(\"videos.show.auth_to_access_callout_text\")` instead of `I18n.t(\"videos.show.auth_to_access_button_text\")`", + "reference": "Put a comma after the last parameter of a multiline method call." + }, + { + "prediction": "I think we should use `fmt.Sprintf(\"Failed to delete resources in %q. Check with the owner of %q for more information\", *scratchBucketGcsPath, scratchBucketGcsPath)` instead of `fmt.Sprintf(\"Failed to delete resources in %q. Check with the owner of %q for more information\", *scratchBucketGcsPath, scratchBucketGcsPath)`", + "reference": "This will delete the whole bucket, which could have unforseen consequences in normal use cases. We should be deleting args.SourceFile instead." + }, + { + "prediction": "I think this should be `allow.restart.on.execution.stopped`", + "reference": "Lets move the whole string to next line for better readability" + }, + { + "prediction": "I don't think we need to change the error message to `Could not save WebCal-calendar`", + "reference": "Please change this back to `Error saving WebCal-calendar` (and `Error saving WebCal-calendar` only)" + }, + { + "prediction": "Why remove this?", + "reference": "The vendor prefix is still being used on Chromium based browsers like Edge Chromium and Chrome. Did you mean to remove this?" + }, + { + "prediction": "I think this should be `[TestCaseOrderer(\"Datadog.Trace.TestHelpers.AlphabeticalOrderer\", \"Datadog.Trace.TestHelpers.AlphabeticalOrderer\")]` instead of `[TestCaseOrderer(\"Datadog.Trace.TestHelpers.AlphabeticalOrderer\", \"Datadog.Trace.TestHelpers.AlphabeticalOrderer\", \"Datadog.Trace.TestHelpers.AlphabeticalOrderer\")]`", + "reference": "Not ideal, but I used a test case orderer so I could avoid a bug that occurs when running two tracer's sequentially with different DD_LOGS_INJECTION settings." + }, + { + "prediction": "I think this should be `p.bytes >= maxHeaderSize`", + "reference": "I think the condition should be ` uint(headerLengthSize) + crypto.Extension + (len(p.blobs)+1)*uint(EntrySize) > uint(maxHeaderSize)` `headerLengthSize` is only the length field. But the pack header also includes the blob type and its ID. And the result of the check, currently seems to be inverted." + }, + { + "prediction": "Why is this change removed?", + "reference": "Remove selector if only 1 version is supported" + }, + { + "prediction": "Why is this change needed?", + "reference": "Why did you remove more than the asked command?" + }, + { + "prediction": "I think this should be `if err != nil {`", + "reference": "I just realized that we are logging time now - we shouldn't do that here, that's the logger's job. I've opened a new issue for that #444." + }, + { + "prediction": "`sanitize=True` should be `bool`", + "reference": "why is the `sanitize=True` here in the docs?" + }, + { + "prediction": "Layout/EmptyLinesAroundClassBody: Extra empty line detected at class body end.", + "reference": "Didn't end up using this, but I think it's useful anyway." + }, + { + "prediction": "I think we should use `String.Equals(\"true\", StringComparison.OrdinalIgnoreCase)` instead of `String.Equals(\"false\", StringComparison.OrdinalIgnoreCase)`", + "reference": "I'm pretty sure there's already a metadata item that contains what you're calculating here (PackageRelativePath)?" + }, + { + "prediction": "I think we should use `CGI.escape(project.name)` instead of `CGI.escape(project.uuid)`", + "reference": "We want to show this button only when there is a page for us to connect to. There is no reason to put the Browse Security Info button on the page at all unless we've identified the UUID from the KB." + }, + { + "prediction": "I think this should be `androidicon2.xpm` instead of `androidicon2.xpm`", + "reference": "Why `2` in this and others?" + }, + { + "prediction": "I think this should be `processHelper.GetCurrentProcessId();`", + "reference": "This may cause a new allocation, please consider merging the concat in above line. Same applies to change in dotnethostmanager." + }, + { + "prediction": "I think this should be `if isinstance(node, astroid.ImportFrom):` or `if isinstance(node, astroid.ImportFrom):`", + "reference": "Alternatively (and better) would be to look for the .level attribute of the node. If it's bigger or equal to 1, than that is a relative import. So \"from . import x\" should have level 1, while \"from .. import z\" should have level 2 and so on. The same should happen for \"from .c import z\"." + }, + { + "prediction": "I think this should be `public void initialize(IndependentContext context, Language language, Class functionsClass)`", + "reference": "Btw. this API must definitely change with PMD 7 - we are exposing here a implementation detail (that we use Saxon). And it happens, that the way, how custom functions are registered, changed with Saxon 9.5... which makes the need for a implementation agnostic API relevant..." + }, + { + "prediction": "Why is this needed?", + "reference": "nit: `Additional configuration used while sending notification to external services.`" + }, + { + "prediction": "Why is this change needed?", + "reference": "This should only be sent if the driver is speaking to a W3C conformant remote, so we need an if-condition check like we have in the Python bindings." + }, + { + "prediction": "Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
    Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.", + "reference": "This should have failed before." + }, + { + "prediction": "I think this should be `*paych.VoucherInfo`", + "reference": "the paymentchannel dir is where the paymentchannel manager will live. it will store the types below." + }, + { + "prediction": "I think this should be `GET_CANVAS_URL` or `GET_CANVAS_URL`", + "reference": "This is Safari specific and should be defined somewhere in the `safaridriver` namespace" + }, + { + "prediction": "Why is this change needed?", + "reference": "assignments should only be cuddled with other assignments (from `wsl`)" + }, + { + "prediction": "I don't think we need to add `fontWeight` here.", + "reference": "prefer changing the signature by adding params to the end, not the middle, I think." + }, + { + "prediction": "I think we should add a `v1.ServicePort` to the `Spec.Ports` array.", + "reference": "I guess we aim for hardcoded port for Prometheus operated ports right?" + }, + { + "prediction": "Why is this change needed?", + "reference": "This is the same effect as doing `node.parent.fromlineno` but avoids the `StatementMissing` exception from calling `statement`." + }, + { + "prediction": "I think it would be better to add a `callback=parse_list` to the help message. I think it would be better to use `callback=parse_list` instead of `callback=parse_list`.", + "reference": "I think user-ids might be better; also note that options should use - and not _ to separate words. Also, how are more than one id specified? comma seperated? I think the usage statement should indicate this." + }, + { + "prediction": "Why is this removed?", + "reference": "This code is necessary. It makes sure that you can sleep for longer durations than the timer supports." + }, + { + "prediction": "I think we should use `executeWith(ExecutorService executorService)` instead of `deleteWith`", + "reference": "Can we add the new name in parallel and deprecate this name? We should be careful about changes to the public API and give people at least a release to switch over before removing public methods." + }, + { + "prediction": "I think this should be `if (backend->impl && backend->impl->destroy) {`", + "reference": "If you're going to start testing that impl itself is not NULL you should probably be doing it everywhere." + }, + { + "prediction": "I think this should be `configFileName` instead of `configFileName`", + "reference": "`ctx` is unused in LoadPlainYAMLManifests" + }, + { + "prediction": "Why is this change needed?", + "reference": "why is this called toBuilder when the method is called fromBuilder? (I realise you did not change this...)" + }, + { + "prediction": "I think this should be `source.iceberg.reader.fetch-batch-size`", + "reference": "nit: seems rather large." + }, + { + "prediction": "I think this should be `int(time.time())` instead of `int(time.time())`.", + "reference": "I think it'd make sense to only calculate time.time() once (it's also used if max_ts and min_ts aren't set)" + }, + { + "prediction": "I think this should be `mockGrpcStubTypeName`", + "reference": "Use existing `grpcStubCallString` instead" + }, + { + "prediction": "I think this should be `maxTraceId`", + "reference": "In a recent PR, Bob added a `TracerConstants` class. Do you think this makes sense to put in that class instead so that we can consolidate?" + }, + { + "prediction": "I don't think we need to do this, but I think it would be better to use `catchpointWriteTimeout` instead of `catchpointWriteTimeout`.", + "reference": "I want to propose couple of different names for catchpointWriting: syncInterruptedWaitingCatchpointWriting syncWaitingForCatchpointWriting catchpointWriting is lacking context, and I found it difficult to understand the logic without this context." + }, + { + "prediction": "Why is this change needed?", + "reference": "Do you still need the `name` in the arg description, if this is not `str` type anymore.?" + }, + { + "prediction": "why is this removed?", + "reference": "We may raise a warning." + }, + { + "prediction": "I think this should be `name: DS.attr('string')` and `icd9CMCode: DS.attr('string')`", + "reference": "Trailing comma caused the eslint test to fail" + }, + { + "prediction": "I don't think we need to import these, but I think it would be better to use `import_string` instead of `import_string`.", + "reference": "I think you should use `app.config`. In the usual case, the config file is not overwritten, there is additional config file outside of the source of `Invenio`." + }, + { + "prediction": "Shouldn't this be `@Nullable` or `@Nullable`?", + "reference": "Will you please update the copyright message to now include `2021`?" + }, + { + "prediction": "Why do we need to use `data.begin() + offsets[index + 1]` instead of `data.begin() + offsets[index + 1]`?", + "reference": "Potential subscript out of range." + }, + { + "prediction": "why remove this?", + "reference": "please undo this change. you didn't really meant to make it, right ?" + }, + { + "prediction": "I don't think we need this test, but I think it should be `setupTimeout: 5000` and `testTimeout: 5000`", + "reference": "To check! are these millseconds or seconds :thinking: The docs aren't clear" + }, + { + "prediction": "I think this should be `int64(u.ctx.MaxUploadParts) || num > int64(MaxUploadParts) || num > int64(MaxUploadParts) || num > int64(MaxUploadParts) {`", + "reference": "Why was this moved?" + }, + { + "prediction": "I think this should be `CStorVolumeReplicaExpansion`", + "reference": "What are these object with suffix Expansion?" + }, + { + "prediction": "I think this should be `true` instead of `false`.", + "reference": "This breaks backwards compatibility, so it will have to wait for the next quarterly release of the default is to deny. I would recommend adding the flag with the default to allow and then at the next quarterly release rc cycle flip the flag to deny." + }, + { + "prediction": "Why is this needed?", + "reference": "I'm kind of surprised this doesn't require `typename`?" + }, + { + "prediction": "I think this is a bit confusing, but I don't think it's necessary to use `AC_CHECK_PROGS(YACC, 'bison -y', ...)` here.", + "reference": "I think this will break the case (you can try even with /usr/bin/bison as value): `YACC=\"/path/to/bison -y\" ./configure` I wonder if we should use AC_PROG_YACC at all or simply use AC_CHECK_PROGS since we want to use bison and not another yacc" + }, + { + "prediction": "I think this should be `PathToKeyFile` instead of `PathToKeyFile`.", + "reference": "can we explain to users in the docs what happens if they leave the field blank?" + }, + { + "prediction": "I think this should be `security_group_ids` instead of `security_group_ids`", + "reference": "We try not to change the function footprints unless absolutely necessary. Why is it necessary to have both secuirty_group_ids and security_groups?" + }, + { + "prediction": "I don't think we need to do this, but I think it would be better to use `File.separator` instead of `File.separator`.", + "reference": "Thanks! We're already replacing File.separatorChar with '/' in the call to FileUtil#toCanonicalPath above, so the correct fix here should be: `relativePath.replace('/', '.')` I'll make the change upstream." + }, + { + "prediction": "I think this should be `GoneHttpException` instead of `NotFoundHttpException`", + "reference": "It could be nice to be explicit about this change in upgrade notes, what do you think?" + }, + { + "prediction": "Why is this change needed?", + "reference": "spotted a bug." + }, + { + "prediction": "I don't think we need to change the `rowsPerAnimal/matchingRowsPerAnimal` to `rowsPerAnimal/matchingRowsPerAnimal`", + "reference": "We were always using 0000000 prefix" + }, + { + "prediction": "Why not just call `gJobMgr->shutDown()` here?", + "reference": "Here we also need to determine if gJobMgr has called the init function." + }, + { + "prediction": "I think this should be `Match.matches?(exists, value, c, '$all')` or `Match.matches?(exists, value, c, '$all')` or `Match.matches?(exists, value, c, '$all')` or `Match.matches?(exists, value, c, '$all')`", + "reference": "Out of curiosity, why is `condition.any?` also necessary here?" + }, + { + "prediction": "I think this should be `std::shared_ptr hmPtr = hostManagers_.emplace(space, hm);`", + "reference": "Always use `std::make_shared` whenever possible, it will save you one memory allocation." + }, + { + "prediction": "I don't think this is needed anymore.", + "reference": "Update to real tag before pull." + }, + { + "prediction": "I think this should be `assertThat(scrape()).doesNotContain(\"health_check\")`.", + "reference": "Is there any better string that only exposed by prometheus? We have changed the meter tags to contain method and service name. For example `scrape()` contains `method=getHealth` and `service=server.internal.health.ITzipkinHealth` which made this test failed. " + }, + { + "prediction": "Why is this change needed?", + "reference": "Adding ICoreLogger here lets us pull this into Core as a strategy" + }, + { + "prediction": "I think this should be `json:\"-\"`", + "reference": "why did you change this?" + }, + { + "prediction": "I don't think we need to wrap the exception class name here, but I think it would be better to use `RSpec.configuration.failure_color` instead of `RSpec.configuration.failure_color`.", + "reference": "This is invalid syntax on 1.8." + }, + { + "prediction": "why is this change needed?", + "reference": "This isn't part of the PR, but I can't find in the smarts definition that \"[C][C]\" == \"[C]-,:[C]\" There is a line saying essentially not to specify undefined items (but that's a bracket versus non bracket thing)." + }, + { + "prediction": "Why is this needed?", + "reference": "Is this required for tuple encoding? This is confusing." + }, + { + "prediction": "I think this should be `FlowPreparer` instead of `FlowPreparer`.", + "reference": "Does it need to be a member variable? It is currently only used in one method." + }, + { + "prediction": "Why is this change needed?", + "reference": "@MrTimscampi doesn't this need an update to apiclient?.." + }, + { + "prediction": "(style) line over 80 characters", + "reference": "This is a nop: prob best for history to not change the line" + }, + { + "prediction": "Why is this needed?", + "reference": "Can you delete this whole file now?" + }, + { + "prediction": "Why is this needed?", + "reference": "can you combine this passing test, code, solidity binary into existing ArrDelete? the function is much similar, pushing int value into an array, and delete one item in the array" + }, + { + "prediction": "I think it would be better to use `UserPreferences.isQueueLocked()` instead of `UserPreferences.isQueueKeepSorted()`", + "reference": "I think that could lead to problems when setting it to not sorted again. In that case, it will not be reset. What about using one single method for the adapter (`setDragDropEnabled`)?" + }, + { + "prediction": "I think this should be `platform.SiteRunning` instead of `platform.SiteRunning`", + "reference": "I'd say the error should be an error, not instructions to the user. So error would be something like \"site should be running and is not\"" + }, + { + "prediction": "I don't think this is needed.", + "reference": "Are you sure `v3EndpointIDToContainerName` and `v3EndpointIDToTask` are saved in the state file, can you verify that?" + }, + { + "prediction": "I think this should be a `sync.Mutex` and not a `sync.RWMutex`", + "reference": "This mutex is never used. Should it be, if users can now make calls into the crypto setup?" + }, + { + "prediction": "I think this should be `host.exec(Command.new(\"sntp #{NTPSERVER})\"))` instead of `host.exec(Command.new(\"sntp #{NTPSERVER})\"))`", + "reference": "Check here for sles-, and i'd prefer a regex since I don't know what an 'include' is going to do exactly. :)" + }, + { + "prediction": "I think this should be `self.amount = self.exchanger.exchange(1, currency) if currency else self.amount`", + "reference": "Should this be `None` instead?" + }, + { + "prediction": "Shouldn't this be `LOGGER.warn(\"Key {} with an ambiguous item {} exists, please use the same prefix or will get unexpected merged value.\", key, cseKey);`", + "reference": "Not sure if the warning message is enough for this time, if the configuration is wrong, java-chassis may need to stop working instead of sending out the warning message to let the admin know about it. BTW, we may need a default override policy here." + }, + { + "prediction": "I think we should use `list` instead of `list` here.", + "reference": "I see this getting unwieldy as we add more commands with subcommands. Can we perhaps enhance it to handle subcommands properly? Perhaps something like `\"etcd-snapshot:1\"` which would indicate that the etcd-snapshot command may have 1 subcommand after it, and if the 1 next argument after it doesn't start with `--` then the args should be appended after that subcommand." + }, + { + "prediction": "I think this should be `getActiveFlowHelper(flows, this.executorLoader.fetchUnfinishedFlows().values());`", + "reference": "why returning a string instead of a list?" + }, + { + "prediction": "I think this should be `nameof(IntegrationIds.AdoNet);` instead of `nameof(IntegrationIds.AdoNet);`", + "reference": "Was there a reason for changing all these integration names? Are they actually used for anything besides information in logs?" + }, + { + "prediction": "I think this should be `Collections.unmodifiableSet(nameToNumber.keySet())`.", + "reference": "we should not resurrect this method that we just removed" + }, + { + "prediction": "I think this should be `get_screenshot_as_file`", + "reference": "This needs to be just return self.get_screenshot_as_file(filename)" + }, + { + "prediction": "I think we should use `xhr.status === 0` instead of `xhr.status === 0`", + "reference": "Shouldn't this return false here?" + }, + { + "prediction": "I think this should be `*uint32` instead of `*uint32`.", + "reference": "Should have json tag" + }, + { + "prediction": "I think this should be `static struct errors_config { ... }`", + "reference": "Is this needed after all? Looks like the struct was re-defined inside the test file." + }, + { + "prediction": "I think this should be `removeFiles(String metadataLocation)` instead of `removeFiles(String metadataLocation)`", + "reference": "I think the name of the method should match the name of the action: `removeReachableFiles`." + }, + { + "prediction": "I don't think we need to add this link to the list, but I think it would be better to add a link to the list of consent types.", + "reference": "can you make the C in Consent lower case to match the other ones in this list?" + }, + { + "prediction": "Why is this needed?", + "reference": "fix the group" + }, + { + "prediction": "Shouldn't this be `slots.stream().anyMatch(slot -> !slot.getSession().isPresent())`?", + "reference": "Prefer `Stream.anyMatch` instead of iterating over all slots." + }, + { + "prediction": "why not use `logging.Base` here?", + "reference": "we have `logging.TestingLog()` that should be used for that purpose." + }, + { + "prediction": "I think this should be `if (i < src_len - 2 && src[i] == '%' && i < src_len - 2 && i < src_len - 2 && i < src_len - 2 && i < src_len - 2 && i < src_len - 2 && i < src_len - 2 && i < src_len - 2 && i < src_len - 2 && i < src_len - 2 && i < src_len - 1 && i < src_len - 1 && i < src_len - 2 && src[i] == '%' && i < src_len - 2 && i < src_len - 2 && i < src_len - 2 && i < src_len - 2 && i < src_len - 2 && i < src_len - 2 && i < src_len - 2 && i < src_len - 2 && i < src_len - 2 && i < src_len - 1 && i < src_len - 2 && i < src_len && i < src_len && i < src_len && i < src_len && i < src_len && i < src_len && i < src_len", + "reference": "This is also a question of style. src[i] will always be valid because of check if 'for' statement" + }, + { + "prediction": "I think this should be `pidof %s 2&>1` instead of `pidof %s 2&>1`", + "reference": "Why change it?" + }, + { + "prediction": "I think this should be `index.js` or `index.html`", + "reference": "nb: this change is unnecessary" + }, + { + "prediction": "I think this should be `publicLink` instead of `publicLink`", + "reference": "Is the publicLink mostly empty? I'm just wondering how much this will bloat memory usage as sometimes rclone has millions of Object~s in memory." + }, + { + "prediction": "I think this should be `json:\"ipAddresses\"`", + "reference": "I don't think the Internal API types need the json annotations. They are never serialised, right?" + }, + { + "prediction": "Shouldn't this be `ReportDeploymentCompletedRequest`?", + "reference": "Maybe this was added incidentally. We don't need this function in the interface." + }, + { + "prediction": "I think this should be `path.Join(replacer.Replace(v, \"?\"))` instead of `path.Join(replacer.Replace(v, \"?\"))`", + "reference": "Is this a safe/reliable way to split the URL?" + }, + { + "prediction": "I think we should use `System.currentTimeMillis()` instead of `System.currentTimeMillis()`.", + "reference": "do we also need to profile the time to getConnection()?" + }, + { + "prediction": "I think it would be better to use `decode` instead of `decode` here.", + "reference": "Should we move the decode part directly to the actual first-use of this? Or how does this affect if the value gets decoded and we need to get the bytes back later?" + }, + { + "prediction": "I think this should be `legacy-holds-list` instead of `legacy-holds-list`", + "reference": "How would you feel about continuing to point this at the MyResearchController's holdsAction, but instead changing that action to force a redirect to the new holds-list route? That way, people will get sent to the new URL instead of having two different URLs that do the same thing." + }, + { + "prediction": "I think this should be `c.noticef(\"%s connection closed: %v\", c.typeString(), reason.String())`", + "reference": "I think if yo use %s then you do not need reason.String() and can just do reason." + }, + { + "prediction": "Why is this change needed?", + "reference": "Having \"wf\" prefix doesn't make sense anymore. Please remove." + }, + { + "prediction": "I think we should use `Object.keys` instead of `Object.keys`", + "reference": "Removed this copy of the `spyAll` function and replaced it with the same function declared in `helpers.js`. Same for `sortAttributes` below" + }, + { + "prediction": "I think this should be `DEFAULT_CPU_LIMIT` and `DEFAULT_MEMORY_LIMIT`", + "reference": "Default max cpu should be 8 and memory 64GB" + }, + { + "prediction": "I think this should be `nbytes` instead of `nbytes`.", + "reference": "@itholic, can you remove `nbytes = unsupported_property('nbytes')` at `_MissingPandasLikeSeries`?" + }, + { + "prediction": "Why is this change removed?", + "reference": "What happened to the assertion on `conf.TaskCPUMemLimit`?" + }, + { + "prediction": "I think this should be `createRefRef`.", + "reference": "Just curious: Is using `Object` faster than a literal `{}`?" + }, + { + "prediction": "I think this should be `!= 0` instead of `!= 0`", + "reference": "How come we don't allow this to be configured with the ACME issuer? Happy to leave this as-is for now if there's a lot more consideration that needs to be made, but it seems like we could/should be able to allow this?" + }, + { + "prediction": "Why is this removed?", + "reference": "Should we remove the `Aliases` field as well?" + }, + { + "prediction": "I don't think we need to store samples and transcriptions here.", + "reference": "what's the effect of turning these two off? is there an issue on file for context?" + }, + { + "prediction": "I don't think we need to add the `GcloudBetaProdWrapperLatest` to the list, but I think it would be better to use `GcloudBetaProdWrapperLatest` instead of `GcloudBetaProdWrapperLatest`.", + "reference": "The format like gcloud-beta-prod is a bit hard to understand. Maybe find a a more clear way to describe it," + }, + { + "prediction": "Why is this change needed?", + "reference": "Are we renaming this too in a follow up PR?" + }, + { + "prediction": "I think this should be `ar` instead of `ar`", + "reference": "The indentation on this is off by one space to the left" + }, + { + "prediction": "I think this should be `!isExternalFormatConversion`", + "reference": "I guess nothing is wrong with this approach, but more curious if you didn't just go `|| (format != VK_FORMAT_UNDEFINED)) {` As if there ever was another external format system added in Vulkan it would need to be manually added here" + }, + { + "prediction": "I think this should be `static`.", + "reference": "Is order really irrelevant here?" + }, + { + "prediction": "I don't think we need to import the widget here.", + "reference": "I think this import will be unused now. If it is unused remove it." + }, + { + "prediction": "I think this should be `NewObjectDatabase` and `StatelessRwTx`", + "reference": "Let's change to tx" + }, + { + "prediction": "I think this should be `defaultSyncBlockCacheFraction = 0.10`", + "reference": "Looks like I was wrong about the sync cache size being 15% before. There seems to be some reporting bug related to my use of the sync cache, that makes the limit different from the working set cache limit. For now, I say we keep this at `0.10` (change the param default too), and we can change it later if needed." + }, + { + "prediction": "I think this should be `os.Getenv(\"DDEV_NO_SENTRY\") == \"\"`", + "reference": "I think it'd be a good idea to define the environment variable name as a constant in values.go because it's hard-coded in several places, but that's a small point." + }, + { + "prediction": "I think we should move this to the `AddIndexesToClassifications` migration so that we don't have to change the `classifications` table.", + "reference": "Style/SymbolArray: Use %i or %I for an array of symbols." + }, + { + "prediction": "I think this test should be in a separate PR.", + "reference": "Our habit is to go ahead and put a description line (or more) in front of every function, not just non-test or exported functions." + }, + { + "prediction": "I think this should be `Accept: application/json; charset=UTF-8`", + "reference": "I'm slightly concerned about this because doesn't ORCID use XML instead of JSON?" + }, + { + "prediction": "I think we should use `datetime.min.replace(tzinfo=timezone.utc)` instead of `datetime.min.replace(tzinfo=timezone.utc)`", + "reference": "brackets around if conditions isn't really pythonic." + }, + { + "prediction": "Why was this removed?", + "reference": "It turn out that when we close server it closed underlying listener itself, so this line always generated and error." + }, + { + "prediction": "Why is this change needed?", + "reference": "Looks like this is for debugging? Maybe just remove." + }, + { + "prediction": "Is there a reason why we don't use `count` here?", + "reference": "Same here - this code is duplicated. I think we can just remove the `exists?` method completely from `Criteria` and it should delegate to the context." + }, + { + "prediction": "I think this should be `m_indirectKernelMem.reset(m_queue, m_instance_id);`", + "reference": "I'm not quite sure that we preallocate memory. Do you have a good reason for that?" + }, + { + "prediction": "I think this should be `ok := len(s.clients) <= s.opts.MaxConn`", + "reference": "If we have added to s.clients, we could just do the following since if its a route will be ok I think. s.mu.Lock() defer s.mu.Unlock() return len(s.clients) <+ s.opts.MaxConn" + }, + { + "prediction": "I think we should use `kRandomPeer` instead of `src_` here.", + "reference": "if the targetLeader is src_ itself, it is really need call transLeader function?" + }, + { + "prediction": "I think this should be `getAndSavePagedResponseTypeName`", + "reference": "Can we remove this featureConfig since you removed in L98 (assuming it is not used else where)" + }, + { + "prediction": "I think we should remove the `using System.Linq;` from this file.", + "reference": "namespaces in this file need a sorting" + }, + { + "prediction": "Why is this change needed?", + "reference": "This line should actually be: `if c.KubernetesProvider == config.ProviderAKS && c.Wireguard.EncryptHostTraffic {` because we only need to tweak the MTU like this on AKS." + }, + { + "prediction": "Shouldn't this be `self.maxSegmentsPerCell` or `self.maxSynapsesPerSegment`?", + "reference": "`get` has an optional second parameter that is the default if the key isn't found." + }, + { + "prediction": "Why not use `$user->id` instead of `$user->id`?", + "reference": "Please also indent the new response line as was done to the existing line above." + }, + { + "prediction": "I think this should be `this->GetTarget() == this`", + "reference": "Shouldn't need this-> here." + }, + { + "prediction": "I don't think we need to change the event type here.", + "reference": "I believe this is incorrect, if I'm not wrong, MESSAGE_TRADE should be used when buying/selling items from NPC's" + }, + { + "prediction": "Is there a reason why we need to check for `DetectionsGraphController` instead of `MassErrorGraphController`?", + "reference": "Better if you give split[0], split[1], and split[2] descriptive names than using them this much through so many lines of code." + }, + { + "prediction": "Why is this removed?", + "reference": "I know we're deleting this soon but I thought I'd fix it anyway :smile:" + }, + { + "prediction": "I think this should be `ASTHelpers.isCastable(tree.getArguments().get(0)), ASTHelpers.getTypeFromString(\"org.slf4j.Marker\")`", + "reference": "I like this, makes it clearer what scope the continuation is in" + }, + { + "prediction": "I think we should use `val()` instead of `val()`", + "reference": "These test checks if the value of the merged cells is correct. Please revert the changes and set `autoWrapCol` and `autoWrapRow` to `false` to the Handsontable instance. This change applies to the entire mergeCells.e2e.js file." + }, + { + "prediction": "I think this should be `clear_bucket_hashed_changesets`", + "reference": "Don't need to clear them - because nobody have data there, also can don't delete buckets - just leave them, new nodes will not have them if remove bucket from buckets.go" + }, + { + "prediction": "I think this interface should be public.", + "reference": "Similarly, this has only one implementing class" + }, + { + "prediction": "Align the elements of a hash literal if they span more than one line.", + "reference": "Does it send requests with urlencoded bodies anywhere? I thought it sends only json. Maybe content-type should be `application/json` by default?" + }, + { + "prediction": "Why is this `?PhpParser\\NodeAbstract` needed?", + "reference": "I must have forgotten that one in previous PR" + }, + { + "prediction": "Do we need this test?", + "reference": "This test name doesn't really reflect what the test does any more... Then again I'm not really sure what it is testing now - is it actually just testing that FactoryGirl can create records? or does that itself funnel through the rails code so that we're testing rails can create records?" + }, + { + "prediction": "I think this should be `template.AsTemplatedBytes(\"UpgradeResult\", m.Runtask.Spec.Task, m.Values)` instead of `template.AsTemplatedBytes(\"UpgradeResult\", m.Runtask.Spec.Task, m.Values)`", + "reference": "Can this be `BuilderForYAMLObject`" + }, + { + "prediction": "Why do we need this?", + "reference": "better use `with mp.Pool(...) as pool:` here" + }, + { + "prediction": "Shouldn't this be `error(Response.Status.BAD_REQUEST, ex.getLocalizedMessage());`?", + "reference": "Since this is a config problem, BAD_REQUEST is probably not the right response." + }, + { + "prediction": "I think this should be `30*time.Second` instead of `30*time.Second`.", + "reference": "We could probably do 1 sec if we have time, and hence exit early if we have small number of clients. So LB = 60 sec. Grace = 10secs. So 50Sec window, if NumClients < 50, Close 1 every second. Then exit when NumClients == 0." + }, + { + "prediction": "I think this should be `if (this_column == that_col) and (this_name == that_name)`", + "reference": "can you rename `that_col` to `that_column`?" + }, + { + "prediction": "I think this should be `const Widgets = { componenets: Widgets };`", + "reference": "This is not correct, it will override everything else that is currently in `Widgets`. This file shouldn't be modified at all, we should be adding `components.Widget` in `assets/js/googlesitekit/widgets/index.js`, where the rest of that object is defined. Oh, and there's a typo here :)" + }, + { + "prediction": "I think we should use `kvstore::ResultCode::SUCCEEDED` instead of `kvstore::ResultCode::SUCCEEDED`.", + "reference": "Each task finished will result in the meta info updated?" + }, + { + "prediction": "I don't think we need to do this, but I think it's better to use `String#trim` instead of `String#trim`.", + "reference": "Quick follow-up @aaemnnosttv, why this and not `.trim()`?" + }, + { + "prediction": "I don't think this is needed.", + "reference": "I don't think we should have file-wide exceptions for this rule, let's annotate the individual instances." + }, + { + "prediction": "I think this should be `if (true) return true;`", + "reference": "@raprasad you plan to take this \"if true\" out, right?" + }, + { + "prediction": "I think we should use `list(flow.FlowReader(f))` instead of `list(flow.FlowReader(f))`", + "reference": "Could you adjust this to `with open(path, \"rb\"):` here and below? We should make sure that we close all files." + }, + { + "prediction": "I think this should be `golang.org/x/net/context`.", + "reference": "Does this need its own import block or can it be combined with the imports below as in most other files?" + }, + { + "prediction": "I think it would be better to use `compute.ops_on_diff_frames` instead of `compute.ops_on_diff_frames`.", + "reference": "It defaults to `false`." + }, + { + "prediction": "Why is this needed? I think it would be better to use `allowAllCorsActions` instead of `allowAllCorsActions`", + "reference": "Why conditional check is done? As i understand, later both `applyPreflightCorsResponse()` and `allowAllCorsActions()` does the same" + }, + { + "prediction": "I think this should be `klog.Warningf(\"Node %v/%v has not yet exit, OnRegister failed\", projectID, nodeID)`", + "reference": "has not yet exit?" + }, + { + "prediction": "I think this should be `# 2.4.3` instead of `# 2.4.3`.", + "reference": "I wonder if the version should be part of the deprecation API. It might ease our future selves while debugging issues =)" + }, + { + "prediction": "I think this should be `logger.info(\"Using delegate supplier: \" + clazz.getName());` and `logger.finest(\"Using delegate supplier: \" + clazz.getName());`", + "reference": "We chose `info` in the test code for obvious reasons. Changing to `finest` makes debugging harder and noisier." + }, + { + "prediction": "Why is this change needed?", + "reference": "This is just a rename..." + }, + { + "prediction": "I think this should be `hasher.Write(suffix)`", + "reference": "Should probably panic here. I think hashers are contracted not to return errors (and returning \"\" doesn't handle the error)" + }, + { + "prediction": "Why is this change needed?", + "reference": "Aside: this is a confusing name for an interface that contains multiple addresses." + }, + { + "prediction": "I think this should be `exit_code = 0` instead of `exit_code = 0`", + "reference": "We expect to use Bolt::CommandResult for scripts as well?" + }, + { + "prediction": "I think this should be `superclass.method(:next_runnable_index_for)` instead of `superclass.method(:next_runnable_index_for)`", + "reference": "same thing as above inre commas and args?" + }, + { + "prediction": "I think this should be `getBool(\"query/useCircuitBreakers\", false);`", + "reference": "Should we validate that this is between 0 and 100?" + }, + { + "prediction": "I think this should be `utils.SoftKiller(c.Kill)` instead of `utils.HardKiller(c.Kill)`", + "reference": "`HardKiller` doing `os.Exit()` without proper shutting down other dependencies. I think there should be a better approach for this." + }, + { + "prediction": "I think this should be `init_gles2_data_ptr_formats`", + "reference": "Why isnt the return value checked?" + }, + { + "prediction": "I think this should be `fmt.Sprintf(\"obj\", obj, \"fields\", fields)`", + "reference": "remove this debug" + }, + { + "prediction": "I think this should be `std::find(m_child_layers.begin(), std::find(m_child_layers.end(), std::find(m_child_layers.end(), std::find(m_child_layers.begin(), std::find(m_child_layers.end(), std::find(m_child_layers.end(), std::find(m_child_layers.end(), std::find(m_child_layers.end())));`", + "reference": "This should change to a call to `Layer::find_layer_index`, which should be renamed to `find_child_layer_index` and it should return a `size_t` (technically the `difference_type` for whatever iterators are going to be used)." + }, + { + "prediction": "I think this should be `if hasattr(target, \"script\"):`", + "reference": "what is this change about?" + }, + { + "prediction": "Why was this removed?", + "reference": "Why did we leave the `stderr` param in this case while we removed it from other bake methods?" + }, + { + "prediction": "I think this should be `VerifySameTrustDomain` instead of `VerifySameTrustDomain`", + "reference": "This seems to only be used by the server/ca package.... maybe this can live there instead of being lumped into these API implementation helpers?" + }, + { + "prediction": "I think this should be done in the `StartContainerExec` method.", + "reference": "hmm.. this is Hacky, the test will succeed in Windows even if you remove the calls to these, right?" + }, + { + "prediction": "I don't think we need to do this, but I think it's better to use `ENV['RUBY_VER']` instead of `ENV['RUBY_VER']`.", + "reference": "should this block be in the file `05_install_ruby.rb`?" + }, + { + "prediction": "Why is this change needed?", + "reference": "To match outbounds, let's just call this `Unary: recorder`, `Oneway: ...`." + }, + { + "prediction": "I think this should be `string.encode('utf-8')`", + "reference": "`string.encode('utf-8')` is more common but I guess this is mostly cosmetic :)" + }, + { + "prediction": "Why is this change needed?", + "reference": "Consider logging `r.Url.Path`? Either way, ship it!" + }, + { + "prediction": "Why is this needed?", + "reference": "this probably should be done lazely only if logic/app call txn in the group. Or even done in LogicSigSanityCheck?" + }, + { + "prediction": "I think this should be `enumspb.CONTINUE_AS_NEW_INITIATOR_UNSPECIFIED`", + "reference": "Please move this to `common/enums/defaults.go`." + }, + { + "prediction": "I don't think we need to import `listenbrainz.db.user` here, but I think it would be better to use `listenbrainz.db.user` instead of `listenbrainz.db.user`", + "reference": "In general, if you find unalphabetized imports, you should alphabetize them. Fine for now though." + }, + { + "prediction": "I think this should be `duraton` or `duration`", + "reference": "we should probably deprecate (and display a warning) the misspelled keyword arg here rather than removing it... and then add the new one. This changes a public API and will break any code that is currently using the misspelled version." + }, + { + "prediction": "I think this should be `!Equals(explicitIonMobility, explicitCompensationVoltage.HasValue)`", + "reference": "Is this if statement here necessary? It looks like this is the same logic that is taken care of in the setter for the property \"CompensationVoltage\"." + }, + { + "prediction": "I think we should use `os.path.splitext` instead of `os.path.splitext`", + "reference": "Eliminate this function; handled by mappings and analyzer" + }, + { + "prediction": "Why not use `$this->getDataSource()` instead of `$this->getDataSource()`?", + "reference": "I wonder if this new logic would actually fit better as a support method, both for readability and overriding... e.g.
     protected function getRouteNameFromDataSource($route) { if ($route === 'collection') { return $this->getDataSource()->getCollectionRoute(); } elseif ($route === 'record') { return $this->getDataSource()->getRecordRoute(); } return $route; } 
    That's extremely nitpicky, and you can feel free to leave this as-is if you prefer... but that feels marginally better to me." + }, + { + "prediction": "I think this should be `log.info(\"Preparing test environment\");` instead of `log.finest(\"Preparing test environment\");`", + "reference": "This is in test code: understanding what we're doing is important in this context." + }, + { + "prediction": "I think this should be `llvm` instead of `llvm`", + "reference": "This change (and a few similar ones below) are not related to rpi3 support, and should be removed." + }, + { + "prediction": "Why is this change needed?", + "reference": "Hmm, why did we come to need the `,` at the end?" + }, + { + "prediction": "I think this should be `!query._fields.hasOwnProperty(paths[i]) && !query._fields[paths[i]]`", + "reference": "I'm suspicious of this. For one thing, `query._fields[paths[i]]` may be `0`, `false`, etc. so checking for falsy will catch both cases where both the field isn't in the projection and if the field is explicitly excluded from the projection. For another, I'm not so sure that #6546 is a bug. Let's discuss that more." + }, + { + "prediction": "I think this should be `*Statement` instead of `*Statement`.", + "reference": "What is this? I'm a bit unclear why the parser would have a list of statements in it." + }, + { + "prediction": "I think we should add a description for this to make it easier to read.", + "reference": "I believe this is Prometheus name, wonder if this is descriptive enough of a label name? @nrchakradhar @simonpasquier wdyt?" + }, + { + "prediction": "I think this should be `DropVXLANPacketsFromWorkloads` instead of `DropIPIPPacketsFromWorkloads`", + "reference": "Are most of our other fields default-zero-value? Would `AllowVXLANPacketsFromWorkloads` be a better formulation of this? I think it would make it easier for golang users of the API (default value matches the type zero-value)" + }, + { + "prediction": "Shouldn't this be `removeSmallerNonces`?", + "reference": "void RemoveTransactions(Address sander, long removeBelowThisNonce) and separate these two calls" + }, + { + "prediction": "I think we should wait a bit for interest to propagate. I think we should wait a bit for interest to propagate.", + "reference": "Not sure which interest you are looking for to propagate here, but keep in mind that we have helpers (maybe not in /test package?) to check/wait for interest on a literal on a server for a given account." + }, + { + "prediction": "I think this should be set to `false` if the process is not initialized.", + "reference": "nit: should not need this." + }, + { + "prediction": "I think this should be `___azkaban_project_dir_size_in_bytes__`", + "reference": "Since this constant is an implementation detail rather than a user-facing API, is it better to define it in a place where it is used?" + }, + { + "prediction": "I think this should be `json.dumps(x, object_pairs_hook=FrozenOrderedDict)`", + "reference": "It would be nice if we have some docs explaining this. Core luigi should avoid having hard to understand code." + }, + { + "prediction": "I think this should be `stemmer = new Stemmer(loadDictionary(ignoreCase, affix, dictionaries));`", + "reference": "extract a method to call from a test" + }, + { + "prediction": "I think this should be `coreContainerWorkExecutor` instead of `collectorExecutor`.", + "reference": "nitpick: regular order is private than final." + }, + { + "prediction": "I think this should be `W9021` instead of `W9021`.", + "reference": "We could add an old names here, the ideal would be to not force to disable missing-any-param when the old one was already disabled. But they are not really equivalent so maybe you were right to not add it." + }, + { + "prediction": "Why is this change needed?", + "reference": ">public const string LINQ = \"LINQ\"; [](start = 8, length = 34) Are there duplicated benchmarks here? #Closed" + }, + { + "prediction": "I think we should use `options[:pe_ver_win] || host['pe_ver']` instead of `options[:pe_ver_win] || host['pe_ver']`", + "reference": "Probably worth taking the opportunity to add yardocs to this method now. Esp. curious about what the options hash accepts." + }, + { + "prediction": "(style) line over 80 characters", + "reference": "This is Very Meh . We want to get rid of `role_data`, and it's an internal field." + }, + { + "prediction": "I think this should be `await this.driver()['loadExtension'](path);`", + "reference": "`await this.driver().loadExtension(path);` should work" + }, + { + "prediction": "Why is this change needed?", + "reference": "Is any of this needed anymore?" + }, + { + "prediction": "(style) code indent should use tabs where possible", + "reference": "Can you add a mention here and in `ostree-repo.c` that the holes were found with `pahole`?" + }, + { + "prediction": "I don't think we need to add the `processor_chain` parameter here.", + "reference": "While we're changing this, I wonder if we can do away with `extra_controller_params`.. Maybe a new type of `solr_search_params_logic` that appends the attributes?" + }, + { + "prediction": "Use the new Ruby 1.9 hash syntax.
    Use the new Ruby 1.9 hash syntax.
    Use the new Ruby 1.9 hash syntax.
    Use the new Ruby 1.9 hash syntax.
    Use the new Ruby 1.9 hash syntax.
    Use the new Ruby 1.9 hash syntax.
    Use the new Ruby 1.9 hash syntax.
    Use the new Ruby 1.9 hash syntax.
    Use the new Ruby 1.9 hash syntax.
    Use the new Ruby 1.9 hash syntax.
    Use the new Ruby 1.9 hash syntax.
    Use the new Ruby 1.9 hash syntax.
    Use the new Ruby 1.9 hash syntax.
    Use the new Ruby 1.9 hash syntax.
    Use the new Ruby 1.9 hash syntax.
    Use the new Ruby 1.9 hash syntax.
    Use the new Ruby 1.9 hash syntax.
    Use the new Ruby 1.9 hash syntax.
    Use the new Ruby 1.9 hash syntax.
    Use the new Ruby 1.9 hash syntax.
    Use the new Ruby 1.9 hash syntax.
    Use the new", + "reference": "I believe that you only need to rescue Beaker::DSL::Assertions, as they include Minitest::Assertions." + }, + { + "prediction": "I think this should be `ActivityTraceFlags.None` instead of `ActivityTraceFlags.None`.", + "reference": "Do we need `&=` or `=` is sufficient?" + }, + { + "prediction": "Why not just use `$config_directories['CONFIG_SYNC_DIRECTORY']`?", + "reference": "Let's keep both of these here. It should work on most any version of Drupal 8 then true?" + }, + { + "prediction": "Why is this change needed?", + "reference": "@lmolkova This ok? I'm getting random failures from the build checks that don't happen locally from a few non-deterministic time related comparisons." + }, + { + "prediction": "I think we should remove this file.", + "reference": "Q: are we supposed to change this for files that already exist?" + }, + { + "prediction": "Why is this change needed?", + "reference": "I count only four times where `selection_specs` had to be specified as a keyword instead of by position! If that is how often it was used that positional argument in our own codebase, I am pretty certain users barely used it (if at all)." + }, + { + "prediction": "I don't think we need this test anymore, but I think it would be better to use `expect(output).to eq(\"a_number was changed from 456.00 to 123.00 to 456.00 to 456.00 and 123.00 to 456.00 to 123.00", + "reference": "is this test for the case above? seems to cover a numeric rather than empty val?" + }, + { + "prediction": "Shouldn't this be `response.content = str(v)`?", + "reference": "I like the general idea, but this will break: - JSON is not binary-safe, so anything binary will break this. - JSON is super slow for multiple-MB things - We want to have drag-and-drop upload - the easiest way to implement this is FormData upload, so we should have a multipart/formdata endpoint. Can we put to /flow/content?" + }, + { + "prediction": "I think this should be `dynamo_exited_synched` instead of `dynamo_exited_synched`.", + "reference": "_and_synched seems to be more consistent w/ exited_and_cleaned" + }, + { + "prediction": "I think this is the only place where the `#if NETCOREAPP3_1` is used. I think it's better to use `#if NETCOREAPP3_2` instead of `#if NETCOREAPP3_3`", + "reference": "nit: in case of whole file `ifdef` it may be helpful to have `_netcore31` suffix it in the name of the file as well." + }, + { + "prediction": "I think we should use `Integer.parseInt` instead of `Long.parseLong` here.", + "reference": "should use Number instead of Long" + }, + { + "prediction": "I think this should be `object.approvals.reorder(order_order_by_status)`", + "reference": "Had no idea that method existed!" + }, + { + "prediction": "Why is this needed? I think it would be better to use `w.tabBar().width` instead of `w.tabBar().width`", + "reference": "I wonder if we shouldn't just do `w.show()` here, which causes Qt to correctly calculate the sizes." + }, + { + "prediction": "I think this should be `obj.write.parquet('s3a://' + object_store.bucket + '/' + object_store.key_for_paths(paths))`", + "reference": "may be nice to have helper method to generate s3 paths rather than the minor code dup" + }, + { + "prediction": "Why not use `RSVP.all` here?", + "reference": "This isn't needed here, we still run `this._afterAuthentication` which loads settings & config - the reason the settings fetch is here is to make sure we have all the settings before saving the blog title rather than fetching everything once auth has completed. Probably moot anyway as the oauth code will be removed shortly " + }, + { + "prediction": "Why is this change needed?", + "reference": "This line is getting a little long; let's move the conditions to at least two lines (maybe three)." + }, + { + "prediction": "I think this should be `using` instead of `using`.", + "reference": "Don't use relative paths. src directory is already on the include search path" + }, + { + "prediction": "Align the parameters of a method call if they span more than one line.", + "reference": "Line is too long. [86/80]" + }, + { + "prediction": "I don't think we need this file anymore, but I think it's a good idea to move this file to the `app/lib/twitter_digits.rb` file.", + "reference": "We have to navigate up four directories to come down three? I see it, but it's kinda icky. Is something like `load Rails.root + 'app/lib/twitter_digits.rb'` out of fashion nowadays?" + }, + { + "prediction": "(style) line over 80 characters", + "reference": "Empty space at end." + }, + { + "prediction": "Metrics/LineLength: Line is too long. [89/80]", + "reference": "I think similar to line 176 here we'll want to call `detect_project_conflict` after overriding this." + }, + { + "prediction": "I think this should be `const readline = require('readline')`", + "reference": "How about `const { promises: fs } = require('fs')` and then replacing `fs.promises.` with `fs.`?" + }, + { + "prediction": "Why is this removed?", + "reference": "This ignores errors closing the body. Not likely to happen, but no reason to take the risk either." + }, + { + "prediction": "Why not use `String.format(query, args)` here?", + "reference": "Why was this change needed?" + }, + { + "prediction": "I think this should be `PATH_TO_FILE` instead of `PATH_TO_FILE`.", + "reference": "Needs a description added to CommandArgsUsage.resx" + }, + { + "prediction": "Shouldn't this be `String.format(context.getString(R.string.download_report_content), successfulDownloads, failedDownloads);`?", + "reference": "The line is a bit too long. That's why the test currently fails. Please break it into two lines." + }, + { + "prediction": "Shouldn't this be `slots.stream().anyMatch(slot -> !slot.getSession().isPresent())`?", + "reference": "Prefer `Stream.anyMatch` instead of iterating over all slots." + }, + { + "prediction": "I think this should be `Time.zone.local(2016, 7, 5, 0, 0, 0)`", + "reference": "Can this just be a feature flag to check if it's on? This will give us flexibility on launch date (which could be turned on July 1st) and allow us to easily revert back in case the policy is reverted." + }, + { + "prediction": "I think we should use `Bus` instead of `Bus`?", + "reference": "Due to this change, src/examples/adc needs to be modified" + }, + { + "prediction": "I think this should be `unsafe.Pointer`", + "reference": "`s/singlePointer/singlePtr` or please rename the type to `singlePointer`." + }, + { + "prediction": "I think this should be `active_elections_size` instead of `active_elections_size`.", + "reference": "Do we need it? If right now it's toml" + }, + { + "prediction": "I think this should be `if (component && component._onResolve) { oldUnmount(vnode); }`", + "reference": "You are never calling oldUnmount, this could lead to a plugin chain failing." + }, + { + "prediction": "I think this should be `TiTableInfo` instead of `TiTableInfo`", + "reference": "What does setting partitionInfo to null mean exactly?" + }, + { + "prediction": "I think this should be `if not_updated and len(data[n]) != length[0]`", + "reference": "Not sure you need the initial ``not_updated`` as ``any([])`` evaluates to false." + }, + { + "prediction": "Is there a reason why we need this migration? I don't think we need this migration anymore.", + "reference": "Since this migration hasn't been merged to master yet, what do you think about just squashing these two into the migration you really want?" + }, + { + "prediction": "I don't think we need this, but I think it would be better to use `editor.subl` instead of `editor.subl`", + "reference": "This doesn't apply to all developers" + }, + { + "prediction": "I don't think we need to add the `JMSSerializerBundle` to the `api_form.xml` file.", + "reference": "I think `serializer.xml` can be moved into condition below too" + }, + { + "prediction": "I think we should use `OpenTelemetrySdkBenchmarksActivity` instead of `OpenTelemetrySdkBenchmarksActivity`", + "reference": "Probably put this in a simple README.md file?" + }, + { + "prediction": "I think this is a bit confusing, but I think it would be better to add a `validationCategory` to the `ValidationCategory` class.", + "reference": "Super Cool bitwise Minor: Most likely you don't need `System.Collections.Generic`, `System.Linq` & `System.Threading.Tasks`" + }, + { + "prediction": "Why is this change needed?", + "reference": "If we just return the TCC, maybe we need to update the method name for it." + }, + { + "prediction": "Why is this change needed?", + "reference": "For consistency, shouldn't this use `SwaggerModeler.GetMethodNameFromOperationId(method.Name)` as above? I'd just reuse `\"Additional parameters for \" + SwaggerModeler.GetMethodNameFromOperationId(method.Name) + \" operation.\"` here, `string.Format` with `CultureInfo` is complete nonsense here anyways." + }, + { + "prediction": "Why is this change needed?", + "reference": "As this is just a backport, I guess it is fine to leave these timings, although they are not enough to make tests stable." + }, + { + "prediction": "Why is this change needed?", + "reference": "Why this way?" + }, + { + "prediction": "I think this should be `os.Getenv(\"TEST_TMPDIR\")`", + "reference": "Changing this because otherwise the second run of testExtractCompilationsEndToEndWithDatabase will try to overwrite a generated file and fail. Maybe there's a better way?" + }, + { + "prediction": "I think this should be `if (pathParam.indexOf(';') != -1) { pathParam = pathParam.substring(0, pathParam.indexOf(';')); }`", + "reference": "This modification is not correct. Suggections: 1. upgread guava to 30.0-jre will fix this issue" + }, + { + "prediction": "Why is this change needed?", + "reference": "All changes to signature code stem from here. The syscalls interfaces expects VerifySignature to return an error. I performed the change here and bubbled it up through the rest of the code - mostly mechanical." + }, + { + "prediction": "I think we should remove the `@inheritDoc` annotation here.", + "reference": "This strategy seems good. Just wondering do you think this is a good time to move stuff out of core? For example, I guess storage, since it's for use by server and not client, doesn't need to be Java 6?" + }, + { + "prediction": "I think we should be able to do this in a separate PR, but I think we should be able to do this in a separate PR.", + "reference": "We had a wrong predicate before: we compared a list to an expression." + }, + { + "prediction": "I think this should be `xattr: []byte{2, 0, 0, 0, 8, 0, 255, 0, 255, 0, 0}`", + "reference": "Name copy-pasted from above. \"empty\"?" + }, + { + "prediction": "Why is this removed?", + "reference": "May I ask why change this?" + }, + { + "prediction": "Why is this needed?", + "reference": "Does this mean we now always include the dictionaries even if they're empty? If so, we should make sure that this doesn't break the Agent (even older versions). It's possible that it doesn't handle empty dictionaries well." + }, + { + "prediction": "I think this should be `FastSyncCatchUpHeightDelta`.", + "reference": "The description and name is unclear. Typo in 'which'." + }, + { + "prediction": "I don't think we need to do this, but I think it's a good idea to make sure that we don't have to change the `accept` method to `accept` and `accept` methods.", + "reference": "Files should have an extra line at the end of them." + }, + { + "prediction": "(style) code indent should use tabs where possible", + "reference": "> i#1312 AVX-512 support: Add code cache to/from context switching. s|to/from|| (redundant and mildly confusing (called \"enter\" and \"return\" in code))." + }, + { + "prediction": "(style) line over 80 characters", + "reference": "This stat may fail, right? I think dag_file_exists does not actually check the file is there." + }, + { + "prediction": "Why is this change needed?", + "reference": "I think we can make a safe assumption that if only two values are passed in then you have `(optionsToValidate, optionsForValidation)`, if its three then you have `(optionsToValidate, overrideOptions, optionsForValidation)`" + }, + { + "prediction": "I think this should be `edges` instead of `edges`", + "reference": "If there are more items to add to what's being written out here, please add a TODO." + }, + { + "prediction": "I think this should be `__kernel_timespec` instead of `__kernel_timespec`", + "reference": "Can you add an `else:` case to handle an invalid length? That will prevent weird errors." + }, + { + "prediction": "Why is this change removed?", + "reference": "* We need to deprecate/internalize first on master. * We should directly make the AST node final now * The setter `setName()` can be package-private." + }, + { + "prediction": "Why remove this?", + "reference": "Where did this functionality move to?" + }, + { + "prediction": "I think we should use `String.format` here.", + "reference": "maybe should firstly check whether current tidb support `split table region`?" + }, + { + "prediction": "I don't think we need to import the `LegacyErrorNotification` from `../components/notifications/error-notification`.", + "reference": "Please use the same (plural) name for the new component since it renders multiple notifications." + }, + { + "prediction": "I think this should be `log.Infof(\"Failed to download block %d. %v\", topBlock.Round(), err)`.", + "reference": "Perhaps show attempt x of y in message ie: Failed to download block %d (attempt %d of %d). %v" + }, + { + "prediction": "Why is this change needed?", + "reference": "why did you took `Exception` out? Is this method only throwing runtime exceptions?" + }, + { + "prediction": "I think we should remove the BLUF part of this file.", + "reference": "please revert all of these unrelated whitespace changes" + }, + { + "prediction": "I think this is a bit confusing, but I think it would be better to have a default value for `NONE` and `INLINE` and `PGP_MIME`.", + "reference": "PGP_INLINE is clearer IMHO" + }, + { + "prediction": "I think this should be `context.Context` instead of `context.Context`.", + "reference": "Please group imports" + }, + { + "prediction": "I think this should be `10`.", + "reference": "Would it make sense to expose this as a config option in `TestHiveMetastore`? A small number of worker threads helped us to catch a few connection leaks early on." + }, + { + "prediction": "I think this is a bit confusing, but I think it would be better to use `dilation_h` and `dilation_w` here.", + "reference": "Let's fix the extra spaces above." + }, + { + "prediction": "Why is this change needed?", + "reference": "should a similar change be done for findElement?" + }, + { + "prediction": "I think this should be `keystore.Service` and not `keystore.Service`", + "reference": "// Keys are stored in an in-memory map, where the key is the name of the // private key, and the value is the structure where the actual private key and the password are // stored." + }, + { + "prediction": "This brings in CloudEventOverrides and Sink.", + "reference": "I think this needs a json inline tag here" + }, + { + "prediction": "I think this should be `t_erl_generator::render_member_type(t_erl_generator::render_member_type(t_erl_generator::render_member_type(t_erl_generator::render_member_type(t_erl_generator::render_member_type(t_erl_generator::render_member_type(t_erl_generator::render_member_type())))`", + "reference": "Hi @cjimison good point but doesn't this break the compatibility with Erlang/OTP prior to 17.0? I think this could be done over an conditional macro defined in the rebar.config: `{erl_opts, [ {platform_define, \"^R\", pre17} ]}` and some additions with `-ifdef(pre17). ... -else. ... -endif.`" + }, + { + "prediction": "Why do we need to wait for the list to start?", + "reference": "should we change/wrap the error?" + }, + { + "prediction": "Shouldn't this be `LOG.warn(\"Received invalid HELLO message, set log level to TRACE for message body\", e);`?", + "reference": "Are we sure that passing this log in warning does not risk spamming the logs of a node running on the mainnet or on ropsten etc ? Do we often receive invalid messages of this type ?" + }, + { + "prediction": "Line is too long. [89/80]", + "reference": "I'd like to avoid a method call here atm since this is an extremely hot line in the code." + }, + { + "prediction": "I think we should use `list` instead of `list` here.", + "reference": "Is this a bugfix?" + }, + { + "prediction": "Why is this removed?", + "reference": "Is this a relevant change?" + }, + { + "prediction": "Why is this change needed?", + "reference": "@dansanduleac what do you think of this one? dots were aligned and no longer are " + }, + { + "prediction": "Why remove fromAppDelete?", + "reference": "Why we dont delete app specific notes when app is deleted?" + }, + { + "prediction": "Shouldn't this be `if (plugin.pluginDescription.alwaysEnabled) plugin.setPluginEnabled(plugin.getType(), true);`?", + "reference": "The _OverviewPlugin_ is forcefully enabled without the option to disable it, using _PluginDescription.alwaysEnabled_. That should also work for this plugin?" + }, + { + "prediction": "I think this should be `externalStatus`", + "reference": "Can you facet on this new externalStatus Solr field?" + }, + { + "prediction": "I think this should be `Array.new(filter(value.pivot)).select(&:any?)`", + "reference": "I wonder if it would it make sense to push the pivot facet handling down into `FilterField` (or maybe a subclass, `PivotFilterField`?)?" + }, + { + "prediction": "I don't think we need to do this, but I think it's better to just call `call_by_name_with_scope(scope, params, true)` instead of `call_by_name_with_scope(scope, params, true)`", + "reference": "Ah I see what you were saying about making it harder to validate types. We'll have to catch the return for that." + }, + { + "prediction": "I think this should be `hideOnTouchOutside` instead of `hideOnTouchOutside`", + "reference": "Try using using `.setDismissOnTouch(true)` instead" + }, + { + "prediction": "Shouldn't this be `if (scope != null && scope.Span != null)`?", + "reference": "Zach, is `UpdateSpan` of concern too? I see that it is called from `ExecuteAsyncInternal`." + }, + { + "prediction": "I think this should be `final`.", + "reference": "Nit: its scope can be reduced to package default" + }, + { + "prediction": "I think this should be `ApplicationScheduler` instead of `ApplicationScheduler`.", + "reference": "Why is this get;set;?" + }, + { + "prediction": "I think this should be `wdata.endpoint.unicastLocatorList = wdata.endpoint.unicastLocatorList;`", + "reference": "Should we also create sender resources for unicast locators? Should we make a similar change on StatelessReader?" + }, + { + "prediction": "I don't think we need this change.", + "reference": "Can we use `dotnet` instead of `net`?" + }, + { + "prediction": "I think this should be called in a non-graceful way, not in a non-graceful way.", + "reference": "Should this be `ForceFlushAsync`? Given we have the `async` suffix elsewhere." + }, + { + "prediction": "Why is this change needed?", + "reference": "Is this change intentional?" + }, + { + "prediction": "Why is this change needed?", + "reference": "This could be an integer property if we supported explicitly setting non-string-valued properties." + }, + { + "prediction": "Why is this protected?", + "reference": "this is not consistent with the previous annotation - is it because of the usage in `Admin\\Content\\Category\\list.html.twig` twig template? Should not it be at least mentioned in the commit message? :slightly_smiling_face:" + }, + { + "prediction": "I think this should be `return` instead of `return`", + "reference": "why add `return` here?" + }, + { + "prediction": "Why not use `Bytes.FromHexString` instead of `Bytes.FromHexString`?", + "reference": "put this hash in variable" + }, + { + "prediction": "why remove this?", + "reference": "Why not use `kbfsblock.ZeroRefNonce`?" + }, + { + "prediction": "Why is this changed?", + "reference": "what mypy warning does this address? I'm confused by this change." + }, + { + "prediction": "This should be `attackedSet.remove(attacked->guid);`", + "reference": "Note that `hasAttacked` that is called before this function already performs this check. You probably don't need to check `hasAttacked` then." + }, + { + "prediction": "I think this should be `raw-loader!@salesforce/design-system-react/components/carousel/__examples__/default.jsx` or `raw-loader!@salesforce/design-system-react/components/carousel/__examples__/default.jsx`", + "reference": "Unfortunately, the site example only has access to imports from `components/index.js` that means that you can't import the items file `carousel-items.js`. You can import that file in all the other storybook files though." + }, + { + "prediction": "Why is this change needed?", + "reference": "Leave this out and move the script to the scripts folder." + }, + { + "prediction": "Why is this change needed?", + "reference": "This should only be sent if the driver is speaking to a W3C conformant remote, so we need an if-condition check like we have in the Python bindings." + }, + { + "prediction": "I think this interface should be `IConnection` instead of `IConnection`", + "reference": "TransferFormat.Text in general purpose connection interface? :/" + }, + { + "prediction": "I think we should use `executable_path` instead of `binary_path`", + "reference": "Is this `@missing_text` ?" + }, + { + "prediction": "I think this should be `c.mu.Lock()`.", + "reference": "This work for both sides?" + }, + { + "prediction": "I don't think we need to import `WordPress` from `WordPress` and `WordPress` from `WordPress`", + "reference": "`lodash` shouldn't be grouped under WordPress dependencies" + }, + { + "prediction": "I think we should use `get_global_operations` instead of `get_global_operations_response`", + "reference": "Include the standard parameterized error tests as well." + }, + { + "prediction": "I think this should be `m.Group(\"/releases\", func() { m.Combo(\"\").Get(v1.ListReleases).Get(v1.ListReleases).Get(v1.ListReleases).Get(v1.ListReleases).Get(v1.ListReleases).Get(v1.ListReleases).Group(\"/releases\", func() { m.Combo(\"\").Get(v1.ListReleases).Get(v1.ListReleases).Get(v1.ListReleases).Get(v1.Group(\"/releases\", func() { m.Combo(\"\").Get(v1.Combo(\"\").Get(v1.ListReleases.Get(v1.ListReleases.Get(v1.ListReleases.Get(v1.ListReleases))})`).Get(v1.ListReleases).Group(\"/releases\", func() { m.Combo(\"\").Get(v1.ListReleases).Get(v1.ListReleases.Get(v1.CreateRelease)) }), func() { return v1.Combo(\"\").Get(v1.Combo(\"\").Get(v1.ListReleases.Get(v1.ListReleases.Get(v1.CreateRelease", + "reference": "All lowercase in route rule." + }, + { + "prediction": "I think we should use `response.properties.length && response.properties[0].id` instead of `response.properties[0].accountId`", + "reference": "I'd suggest we use `response.profiles[ 0 ].webPropertyId` here instead, to make sure it's based on the profiles retrieved. The value _should_ be the same, but I think it's a bit more accurate like that." + }, + { + "prediction": "I think this should be `rangeToDisplay = rangeToDisplay > 24 ? 6 : rangeToDisplay;`", + "reference": "This doesn't change the default of 6h, but will increase the displayed timeframe by 3h for each long press, before wrapping around to 3h. This requires 7 long-presses - quiet a journey ..." + }, + { + "prediction": "I think this should be `SetTipSetStateRoot` instead of `GetTipSetStateRoot`", + "reference": "We still need to figure out a way to get rid of this write method. Is this still necessary?" + }, + { + "prediction": "I think this test should be `assertItemsEqual(classifier.getPartitionIdPerPattern(), [433, np.inf, np.inf, 213])`", + "reference": "`assertItemsEqual` compares the sequences after sorting them, is that intended?" + }, + { + "prediction": "Line is too long. [92/80]", + "reference": "I don't think this one needs to be changed since the only previous path is already an absolute one." + }, + { + "prediction": "I don't think we need to check if the host is a valid ARM service definition. If the host is a valid ARM service, we should check if the host is a valid ARM service definition.", + "reference": "what's the goal of this?" + }, + { + "prediction": "I think this should be `*core.MessagePool` instead of `*core.MessagePool`", + "reference": "why is this here? We already have a message pool in the node." + }, + { + "prediction": "Why is this change needed?", + "reference": "Another mess after all renames and enum conversions. Doesn't break anything though." + }, + { + "prediction": "I think this should be `storage_strict_json`", + "reference": "I don't think it's necessary to change this for the history plugin tests?" + }, + { + "prediction": "Why is this change needed?", + "reference": "In general, I suggest using the `kind()` getter inhereted from `TransportInterface`" + }, + { + "prediction": "Why is this removed?", + "reference": "Is the removal of `[AppDomainFixedOutput]` on purpose? (looks like a copy-paste...euh..remove error)" + }, + { + "prediction": "I think this should be `ListUsers.java` instead of `ListUsers.java`.", + "reference": "AWS Identity and Access Management (IAM)" + }, + { + "prediction": "I think this should be `crypto.PublicKey` instead of `crypto.PublicKey`", + "reference": "gofmt everything pls" + }, + { + "prediction": "I think this should be `action` and `duration` as well.", + "reference": "ditto, We do not need add this feature for PodXXXChaos" + }, + { + "prediction": "I think we should use `Name.lowerCamel(Name.lowerCamel(Name.upperCamel(apiTypeName)).toLowerCamel(), \"service\")` instead of `Name.lowerCamel(Name.lowerCamel(lowerCamelApiTypeName)).toLowerCamel()`", + "reference": "There is a simpler way to do this: 1. Don't bother with the whole lowerCamelApiTypeName in SampleConfig 2. Use this code: `return localVarName(Name.upperCamel(apiTypeName, \"Service\"));` Basically, each of the static creation methods of Name just need to have their arguments all be in the same casing, so you would just pass the upper camel string \"Service\" here." + }, + { + "prediction": "I think this should be `!from.CanCombineWith(to)` instead of `!from.CanCombineWith(to)`", + "reference": "Can you explain this change to me?" + }, + { + "prediction": "I think this should be `storageclass-1r-1r.yaml`", + "reference": "let us rename the artifact to `storageclass-single-replica.yaml`" + }, + { + "prediction": "Why is this change needed?", + "reference": "Nit: I should have done this before, but rename the file to LibuvFunctions.cs. Make sure no other files are misnamed." + }, + { + "prediction": "This is reserved to be used only in LogCodec", + "reference": "We should not add new types unless absolutely required. I'm not sure `UUID` is requires a new type" + }, + { + "prediction": "I think this should be `get_additional_classpath_from_files` and `get_files_from_cp`.", + "reference": "If only Gatling uses it, can we skip introducing new entity for now? Looks like overkill..." + }, + { + "prediction": "I think this should be `VersionsResponse` instead of `VersionsResponse`", + "reference": "rename -> info ?" + }, + { + "prediction": "I think this should be `upstream-status-when-all`", + "reference": "Remove the `config_path=dict(...)`, that is automatic!" + }, + { + "prediction": "I don't think we need to do this. I think we need to make sure that the `node.actualNode` is a `Node` and not a `Node`.", + "reference": "I had to create a new flattened tree to support this functionality. The only other place in which a flattened tree is created is during the audit itself. Since `axe.cleanup` can be called at any arbitrary time, we can't reuse the same tree." + }, + { + "prediction": "I think this should be `private ConfigModel model = new ConfigModel();`", + "reference": "As this method is just set the internal cofigModel, it's better to use setConfigs instead of addConfigs." + }, + { + "prediction": "I don't think we need to do this.", + "reference": "Is this line needed?" + }, + { + "prediction": "I don't think we need to import v1alpha1 and v1beta1 here.", + "reference": "nit: import formatter" + }, + { + "prediction": "I don't think we need to check if the response type is nullable or not.", + "reference": "can you use LINQ's `All` instead? Should be a side-effects free one liner with that." + }, + { + "prediction": "I think this should be `#ifndef __ANDROID__`", + "reference": "Could you please remove `#include ` as a whole and see what happens? I believe that this is no longer needed; it was necessary when we called `posix_spawnp` directly, but now we use `h2o_spawnp`." + }, + { + "prediction": "I think we should return `false` here.", + "reference": "`whether this resource is paused` to `whether this resource has been paused` ? To keep same doc style." + }, + { + "prediction": "I think this method should be `hasPermission(String userId, Type type)` instead of `hasPermission(String userId, Type type)`", + "reference": "This method is validating permission for hp flow. Can you please rename this method to convey the same?" + }, + { + "prediction": "Why is this change needed?", + "reference": "Just to confirm, do we actually want to explicitly set the `kBeforeHandshake` symbol on all network errors regardless of whether the options/property is passed in?" + }, + { + "prediction": "I think this should be `r.inSync = false`", + "reference": "How soon after this will Apply() be called? It would be a shame if there was still a significant delay before a missing or superfluous route was corrected." + }, + { + "prediction": "I think this should be `fmt.Fprintf(&buf, \"\\t%s %q\\n\", g.imports[path], path)`", + "reference": "While this is commonly correct, the more reliable check is to get the package's identifier from the type checker and check those for equality. The information should be there, just another matter of plumbing it." + }, + { + "prediction": "I think this should be `composite_root/root` instead of `composite_root/root`", + "reference": "Just to clarify, should this be 'composite_root/root/' or 'composite_root/'?" + }, + { + "prediction": "I think this should be `status.SubscriptionID = \"\"` instead of `status.SubscriptionID`", + "reference": "Any reason not to move it to after line 281? These are all pubsub related fields IIUC." + }, + { + "prediction": "`Zero is not considered negative`.", + "reference": "Checks if value is a negative `Number` primitive or object. Zero is considered neither positive nor negative." + }, + { + "prediction": "I think this should be `https` instead of `http`", + "reference": "Just a nit, but remove the empty line here. :)" + }, + { + "prediction": "I think this should be `p.ext.Rules.Apply(trimmed)` instead of `p.ext.Rules.Apply(trimmed)`", + "reference": "A `GoPackageInfo` details message should be added to the `CompilationUnit_FileInput` to ensure the import path remains the same." + }, + { + "prediction": "Why is this change needed?", + "reference": "Please don't create new fields with the `m` prefix. I'd rather mix than introduce more of these." + }, + { + "prediction": "Shouldn't this be `getBool(\"circuitBreaker/cpuCircuitBreakerEnabled\", false)`?", + "reference": "Can we please simplify these names? they are awfully verbose and repeating the parts that are already unique and obvious." + }, + { + "prediction": "Why is this change needed?", + "reference": "Flipped the logic here, was this actually wrong before?" + }, + { + "prediction": "(style) line over 80 characters", + "reference": "I think (a) should be initialized to `NAT_FE_LOOKUP_ALLOW` and (b) it should be probably the first thing in `calico_v4_nat_lookup2`" + }, + { + "prediction": "I don't think this is needed anymore.", + "reference": "I'd look as to what this class actually does... seems weird. Classpath below (under \"run\") is wrong for gradle." + }, + { + "prediction": "I think this import should be moved to `data/basics.go`", + "reference": "Group w/ algorand imports" + }, + { + "prediction": "I don't think this is needed.", + "reference": "I don't think this import is being used." + }, + { + "prediction": "I think this should be `[ProcedureKind]ProcedureKind`", + "reference": "This is an interesting way to do this. I like it. An alternative way to implement a multiple kind pattern was to have this return `AnyKind` and then have match perform an actual check to see if it matches." + }, + { + "prediction": "I think this should be `->replaceArgument(0, new Reference($config['cdn']['fallback']['primary']))`", + "reference": "You did not check this code" + }, + { + "prediction": "I think this should be `len(types) > 0`", + "reference": "This was necessary due to a bug uncovered in testing. If an actor method which requires params is called without any params at all, not returning an error here causes a panic." + }, + { + "prediction": "Why is this needed?", + "reference": "Thanks for the pr. Would you be able to edit the file to use spaces rather than tabs? Normally we have prettier run on commit, but I guess file patches don't do that." + }, + { + "prediction": "why is this test removed?", + "reference": "Is it intentional that we removed this annotation?" + }, + { + "prediction": "I think this should be `ValidationRuleMergeState` instead of `ValidationRuleMergeState`", + "reference": "should be general?" + }, + { + "prediction": "Why is this change needed?", + "reference": "if lowest inserted header is non null non zero then pivot should be higher and a better best known on the left. maybe Head?.Number ?? Math.Max(Pivot, LowestInsertedHeader))?" + }, + { + "prediction": "I think this should be `AzkabanExecutorServer` instead of `AzkabanExecutorServer`", + "reference": "Is a FakeApp class needed? Can test use a Mockito mock instance instead?" + }, + { + "prediction": "I think this should be `var_sp->SetLocationIsConstantValueData(is_constant);`", + "reference": "We should make this an enum." + }, + { + "prediction": "Why is this removed?", + "reference": "@lgolding, note I fixed the forward slashes that appeared in the VS output (which was certainly not by design)." + }, + { + "prediction": "why is this change needed?", + "reference": "Minor unrelated fix that snuck in." + }, + { + "prediction": "Why is this change removed?", + "reference": "Took the opportunity to fix the import ordering." + }, + { + "prediction": "`wavelength` should be `int` or `str`", + "reference": "I think int and float can be handled in one if statement. The subsequent calculations don't really care whether it si a float or an int." + }, + { + "prediction": "Why is this change needed?", + "reference": "Can we keep this at 10 to reduce the probability of a flake? Or are you afraid this would be too likely to give a false positive if delayed cancellation is every actually broken?" + }, + { + "prediction": "I think this should be `github.com/google/go-x-cloud/gcp`", + "reference": "nit: add a blank line under this." + }, + { + "prediction": "I think this should be `flag.NewUint64VarP(\"chainID\", 0, 0, \"set the chainID for action\")`", + "reference": "no need to add this flag query the endpoint set-up to determine the chainID" + }, + { + "prediction": "I think this should be `return node.querySelectorAll(':not(textarea)').length;`", + "reference": "Here is a few scenario - What if there is a submit button with in a form, but is always disabled?" + }, + { + "prediction": "Weh_x should be `OPSZ_half_16_vex32_evex64`", + "reference": "wrong code: should be `Wh_e`" + }, + { + "prediction": "I don't think we need to do this, but I think it would be better to use `vStringNewOrClear(label);` instead of `vStringNewOrClear(label);`", + "reference": "This leads to a small \"leak\" (mostly theoretical only though), if we don't want it this could be created in `initialize()` and destroyed in `finalize()`." + }, + { + "prediction": "I think this should be `BUILD_ID_OS_ENV`", + "reference": "BuildIDOSEnvVarName or similar, otherwise it sounds it's actually holding actual value of env var" + }, + { + "prediction": "I think this should be `info` instead of `info`.", + "reference": "I like this standard \"container has started\" message. Should we have a \"container exited because FOO\" message as well?" + }, + { + "prediction": "I don't think this is needed.", + "reference": "And again. The reason it's bad is that if someone uses a JDK not produced by Oracle they won't have this class." + }, + { + "prediction": "I think this should be `const window = require('./window');`", + "reference": "We have Vue application at our disposal, and have examples container implemented as component. Shouldn't helpers be imported instead being global? Not the best practice in Vue app I guess" + }, + { + "prediction": "I think this should be `DiskCacheClosedError` instead of `DiskCacheClosedError`.", + "reference": "No trailing punctuation in the error message." + }, + { + "prediction": "Why is this needed?", + "reference": "tested? seems like it could break" + }, + { + "prediction": "Why not just use `System.out required: command line tool` instead of `System.out required: command line tool`?", + "reference": "This have to be public because the renamed o.a.l.backward_index.TestBackwardsCompatibility refers this." + }, + { + "prediction": "I think this is a good idea to have a test for the current version, but I think it would be better to have a test for the current version. I think it would be better to have a test for the current version, but I think it would be better to have a test for the current version.", + "reference": "unrelated to your change, but I don't think that this is correct anymore. We also seen to remove application support from `primaryNodeUnupgradedProtocol` for the test to be correct." + }, + { + "prediction": "I think we should use `envCfg.AssumeRole.RoleSessionName` instead of `envCfg.IAMRoleSessionName`", + "reference": "Should this also validate that the RoleArn env var is provided, or just let the creds fail?" + }, + { + "prediction": "I think this should be `tracer.DefaultTracer`", + "reference": "fwiw, in tchannel-go I've implemented a similar method on TChannel that either returns a Tracer instance it was initialized with, or returns `opentracing.GlobalTracer()`, which by default happens to return a singleton instance of `NoopTracer`. In Go the use of global variables is not frowned upon as say in Java, so this pattern allows minimal work to enable tracing in a service, one just needs to store a real tracer in the global variable, e.g. via `opentracing.InitGlobalTracer(someTracerImpl)`, while the instances of TChannel do not need to be explicitly given any tracer since they will default to that global." + }, + { + "prediction": "I think this should be `assertRaisesRegex(TypeError, \"Series.name must be a hashable type\")`.", + "reference": "Shall we also add `ks.Series([1, 2, 3], name=[\"0\", \"1\"])`?" + }, + { + "prediction": "Why is this change needed?", + "reference": "Can this be updated?" + }, + { + "prediction": "Why did you remove this?", + "reference": "this change is to avoid duplication on the defaults. They are already on the Configuration class. (Also I removed the false default, because the admin format does not have it). This is also produces the rest of the diff, changes from false to null." + }, + { + "prediction": "I think this should be `defer containerAccess.unlockContainer(containerID)` instead of `defer containerAccess.lockContainer(containerID)`", + "reference": "What does it protect from? If it's subsequent CNI calls, won't containerID be different from the first one? or it's different in containerd? we use `getInfraContainer` to get the lock identity in CNIAdd. And this reminds me what if the first CNI call and the subquent ones run into connectInterfaceToOVSAsync, will duplicate ports being created or it has been handled?" + }, + { + "prediction": "Shouldn't this be `AdvertPositionNotKnownException`?", + "reference": "In Exceptions' constructors, we always add a optional last parameter `Exception $previous = null`. In the past, this was (still is?) a part of the coding standards." + }, + { + "prediction": "I think this should be `slowWritingPeerMonitorInterval`", + "reference": "I think more idiomatic (and consistent with elsewhere in our code base, and more natural to read as \"25 seconds\") is `25 * time.Second`" + }, + { + "prediction": "Why is this change needed?", + "reference": "Enabling `YAML` by default would be a breaking change in behavior for some applications if the struct's used by that application already include YAML tags, but their application has been (un)marshaling DynamoDB Attributes based on the struct name." + }, + { + "prediction": "Why is this change needed?", + "reference": "For the command executor, which in turn, uses the HTTP client to talk to the WebDriver, the client might have high-timeout values set, so the shutdown can take a long time if we wait for it to complete, especially if multiple-long running threads are there. I think it might be a good idea in general to couple the shutdown() with `awaitTermination()` with a timeout, if the ongoing tasks do not complete within that timeout then call `shutdownNow()`. What do you think?" + }, + { + "prediction": "why not use `new HiveConf(HiveMetastoreTest.class)` here?", + "reference": "Is this change needed? `start()` is still defined and uses `HiveMetastoreTest.class`. The only difference is that this doesn't pass a `Configuration` and the parameterless `start` passes `new Configuration()`." + }, + { + "prediction": "Why is this needed?", + "reference": "I think it is weird to store sr in protocol struct" + }, + { + "prediction": "I think it would be better to have a separate `findInCacheOnly` check for `findInCacheOnly` and `findInCacheOnly` check for `findInCacheOnly` and `findInCacheOnly` and `findInCacheOnly` and `findInCacheOnly`", + "reference": "Will this cause a reload _all_ NATable information? It's too bad we don't have some way to limit the reload to just the tables that have a metadata mismatch." + }, + { + "prediction": "Shouldn't this be \"immediately fail unless value X is zero\"?", + "reference": "'fail unless X is a non-zero number' it will also fail if X is a byte string" + }, + { + "prediction": "I think this is a good idea, but I think it would be better to use `if self.overlaid or True:` instead of `if self.overlaid or True:`", + "reference": "SyntaxError I think" + }, + { + "prediction": "I think this is the wrong VUID, but I think it would be better to use `#if 0` instead of `#if 0`?", + "reference": "I've filed an internal spec issue to add these missing VUs." + }, + { + "prediction": "I think this should be `java.io.UncheckedIOException`.", + "reference": "Can you please revert changes to files in the `thoughtworks` package? This is legacy code and we will eventually phase out RC." + }, + { + "prediction": "I don't think this is needed anymore.", + "reference": "In iceberg, we usually don't use `*` to import package, it's more clear to import the specify package one by one." + }, + { + "prediction": "I don't think this is needed.", + "reference": "And again. The reason it's bad is that if someone uses a JDK not produced by Oracle they won't have this class." + }, + { + "prediction": "I think this should be `StartTimingWrite(minDataRate, maxBufferedBytes);` and `BytesWritten(minDataRate, maxBufferedBytes);`", + "reference": "Since we now keep track of all bytes written, and extend the write timeout as needed, it's tempting to no longer add 2 times the max buffer size to the bytes written accounting for the connection drain timeout. As we've discussed before, this add several minutes to the timeout with the default 240 bytes/sec rate limit. I'm thinking instead this line changes to `timeoutControl.BytesWritten(minDataRate, 1);` to add a grace period to the drain if necessary. What do you think @Tratcher?" + }, + { + "prediction": "I think this should be `formPropsSet.has(key)` instead of `formPropsSet.has(key)`", + "reference": "Good call. Makes we wonder if we should do this with the ARIA props." + }, + { + "prediction": "I think this is not a good idea, but I think it would be better to use `import java.sql.*;` instead of `import java.sql.*;`", + "reference": "Please do not use wildcard imports." + }, + { + "prediction": "(style) line over 80 characters", + "reference": "Not sure about these added logs, as said in the commit message it's probably not something we want all the time, but it helped me debug a bit." + }, + { + "prediction": "Why is this removed?", + "reference": "Should there be an equivalent check or is it ok to remove this comparison?" + }, + { + "prediction": "I don't think we need to change the reference to `zzzcomputing.com`", + "reference": "sorry, why this change?" + }, + { + "prediction": "Shouldn't `NamedList doAnalysis` be `NamedList`?", + "reference": "I think best practice is to use `NamedList` as the return type, and `NamedList` as the argument type in methods, but I can't find a reference for it right now." + }, + { + "prediction": "Please use `Base\\CouponModule` instead of `Base\\CouponModule`.", + "reference": "Be careful, the base model is imported here !" + }, + { + "prediction": "I think this should be \"API offered over the HTTP-RPC interface\"", + "reference": "Do we want to make this part of the default? Probably not. In fact, the default should probably be eth, web3 and net (which are the standard namespaces on other nodes)." + }, + { + "prediction": "Do we need to add this to the `Clump::Base` class?", + "reference": "What is the plan when we deploy the Crawler VM project and eliminate the Clump model?" + }, + { + "prediction": "Why is this removed?", + "reference": "these two are customized config fields, if we don't need them any more, we probably can use default ControllerManagerConfiguration" + }, + { + "prediction": "I think this should be `go` instead of `gc`", + "reference": "I don't think we should be pulling the runtime name from the Compiler. There are two compiler frontends, but both of them compile the same source to generate the \"go\" runtime. I think until there is a request from an alternative implementation (the embedded world **might** have a different runtime), it's fine to hardcode this as \"go\"" + }, + { + "prediction": "I think this should be `fields = fields || this.schema.options.discriminatorKey;` or `fields = fields + ' ' + this.schema.options.discriminatorKey;`", + "reference": "fields may be an object." + }, + { + "prediction": "Why is this needed?", + "reference": "i'm not confident these are the right defaults... anybody have input?" + }, + { + "prediction": "Why is this change needed?", + "reference": "DiskGroupList can be better name" + }, + { + "prediction": "I think we should use the `metricsHandler http.Handler` instead of the `http.Handler`", + "reference": "nit: lets leave gateway options at the end of the func signature." + }, + { + "prediction": "Why is this change needed?", + "reference": "It will be better to use `commit()` on a separate thread, apart from the UI thread. The reason is `commit()` is synchronous while `apply()` is asynchronous. So in case it might not perform actions immediately as expected." + }, + { + "prediction": "Why is this `*queryResult.ErrorMessage == \"\"`?", + "reference": "Took me almost 4 hours to find this." + }, + { + "prediction": "I think this is a good idea to remove the `ExtraAugmentation` class.", + "reference": "There should be only a single blank line between imports and `__all__`." + }, + { + "prediction": "Why is this change needed?", + "reference": "Doc size increased by 1 since _root_ is also returned by queries." + }, + { + "prediction": "I think this is a bit confusing, but I think it would be better to use `np.argmin(np.array(levels) - clmin)` instead of `np.argmin(np.array(levels) - clmax)`", + "reference": "Now the return value has changed (or at least now includes `clip`) it might be worth updating the docstring..." + }, + { + "prediction": "Why is this change needed?", + "reference": "shadow: declaration of \"err\" shadows declaration at line 410 (from `govet`)" + }, + { + "prediction": "Why not use `array_unique($msg['dataset'], SORT_REGULAR);` instead of `array_unique($msg['dataset'], SORT_REGULAR);`?", + "reference": "Should we be escaping $attr and/or $value here? Seems like htmlspecialchars() might be in order to be on the safe side." + }, + { + "prediction": "I think this should be `--quiet-o` instead of `--quiet-o`.", + "reference": "why not remove the need for the `quiet_o` method and just add it similar to how the `--branch` is added? also, looks like the indenting is a little off" + }, + { + "prediction": "I think this should be `FLOW_EXECUTION_ID_INDEX`", + "reference": "These variables are already created in constants. Please reuse those." + }, + { + "prediction": "I think this should be `if self.version_id:`", + "reference": "query_args is a string, not a list. Therefore you cannot call append to it. Also, line 986-989 of key.py already have code that is appending the versionId query parameter." + }, + { + "prediction": "I think this should be `o.decodeMetaData(info)` instead of `o.readMetaData(ctx)`", + "reference": "I think this change and the one below will break the integration tests which expect a `nil` object if `NewObject` fails." + }, + { + "prediction": "I don't think we need this file anymore.", + "reference": "Looks like this isn't used in this file?" + }, + { + "prediction": "I think this should be `df.set_index([self.name])` instead of `df.set_index([self.name])`", + "reference": "why hidden name? How about `index_name`?" + }, + { + "prediction": "I think this should be `hiveScanMode = CmpCommon::getDefaultLong(HIVE_SCAN_SPECIAL_MODE);` or `hiveScanMode = CmpCommon::getDefaultLong(HIVE_SCAN_SPECIAL_MODE);`", + "reference": "Usually, CQDs are not accessed directly in executor operators directly. It should be passed as a flag in the TDB. It is possible that the query is compiled in a different process, then this CQD setting won't be available in the executor layer." + }, + { + "prediction": "I think this should be `shard-context` instead of `shard-item`", + "reference": "This tag was broken, the value write to log was the memory address. Please verify that this actually write out meaningful content in log." + }, + { + "prediction": "I don't think we need to do this, but I think it would be better to use `import sys` instead of `import sys`.", + "reference": "Why do you have to disable all of these checks?" + }, + { + "prediction": "I don't think we need to raise the window here.", + "reference": "Just a note to myself: After merging this, I should edit the line after this one to use `message.error`, as raising a `CommandError` from here seems wrong!" + }, + { + "prediction": "Why is this removed?", + "reference": "In this test, we want xax to be dead, so that aflags are not spilled to a slot." + }, + { + "prediction": "Why is this set to `true`?", + "reference": "I remember there were some misleading code about this but forgot to correct them. Although we initialize `config` here, it was discarded in `complete`, so I guess setting the default value here doesn't take effect. We should change L139-L140 as well to use the initialized `config`. So do antrea-controller." + }, + { + "prediction": "I don't think we need this test anymore, but I think it would be nice to have a test for `color_enabled?` and `color_enabled?` and `color_enabled?` and `color_enabled?` and `color_enabled?` and `color_enabled?` and `color_enabled?`", + "reference": "Stubbin a value object (like `RSpec.configuration`) is a bit of a code smell, I think. You can just set `color_enabled` and `success_color` through the configuration APIs provided by `RSpec::Configuration` -- no need to stub. The `sandboxed` thing in `spec_helper.rb` takes care of preventing changes to the configuration object in one example from leaking into other examples." + }, + { + "prediction": "I think we should use `privateKey.publicKey.toAddress().toCashAddress()` instead of `privateKey.publicKey.toAddress().toLegacyAddress()`", + "reference": "you can use `toString(true)` that will work for BTC and remove the prefix for BCH." + }, + { + "prediction": "Why do we need this?", + "reference": "This line is too long now - please break it after the comma." + }, + { + "prediction": "Why is this needed?", + "reference": "I find this addition to the interface a bit contentious. I think it would be cleaner to just return the response headers together with the new stream on `NewStream`. I.e. change the method signature for `NewStream` to be: `NewStream(ctx context.Context, overlay swarm.Address, headers p2p.Headers, protocolName, protocolVersion, streamName string) (p2p.Stream, p2p.Headers, error)`. I'd like to hear what other think. cc @zelig @janos" + }, + { + "prediction": "I think we should return `null` if the cart is empty.", + "reference": "i hope there is some magic where isEmpty or some cron can strip all non listable products from cart, but since we have the situation tested it should be OK and also we'll see during tests" + }, + { + "prediction": "why is this change needed?", + "reference": "I think we should check the type returned by `getLiteral` and handle that here. Then we won't need separate code for different versions." + }, + { + "prediction": "Why is this change needed?", + "reference": "Tests for JWT handler functionality?" + }, + { + "prediction": "Why did you remove this?", + "reference": "It's weird to set a 101 response and complete without writing anything, but this is still a valid test case right?" + }, + { + "prediction": "I think we should use `assertIn` instead of `assertIn`.", + "reference": "Should we move that information in the capability itself?" + }, + { + "prediction": "I think this should be `_auto_indexable_1d`", + "reference": "Is this needed?" + }, + { + "prediction": "I think this should be `Warningf` instead of `Warningf`", + "reference": "This log should not be an error as it communicates that we need to retry till we get the cert information for remote ingress controller." + }, + { + "prediction": "Why do we need this?", + "reference": "BlockTree alredy has a polluted API, this one seems very internal" + }, + { + "prediction": "I don't think we need to change this, but I think we should be able to change it to use `bolt_inventory['features'] = ['puppet-agent']` instead of `bolt_inventory['features'] = ['puppet-agent']`", + "reference": "Sorry, I realize my line numbers were probably off after you deleted your variables! I meant for this to go in the `before(:all) do` and `after(:all) do` blocks." + }, + { + "prediction": "I think this should be `matchesWithNoTerms(getQuery());`", + "reference": "This bit I wasn't really sure about." + }, + { + "prediction": "I don't think we need to parse checks here.", + "reference": "From the code, a check's metatdata was only added to `axe._load` if a rule used it. Since `role-none` and `role-presentation` were no longer used in any rule, their metadata was never added. This caused any translation file that passed translations for those checks to fail `axe.configure` with > \"Locale provided for unknown check: \"role-none\"\" To fix I added this line to parse all checks regardless of if a rule uses it or not." + }, + { + "prediction": "`update_policy` should be `incoming`", + "reference": "We should raise `ValueError` if `update_policy not in ['existing', 'incoming']`. (or `in Enum.__members__` or however we want to express legal values)" + }, + { + "prediction": "I think this should be `_window = window;` instead of `_applicationDelegate = applicationDelegate;`", + "reference": "`_applicationDelegate` and `_window` are already set in the call for `: this (applicationDelegate, window)`, no need to assigning them again here" + }, + { + "prediction": "I think this should be `props.selector(context)` instead of `props.selector(context)`", + "reference": "We might not have a selector prop in the consumer" + }, + { + "prediction": "I think this should be `!_blockTree.IsGenesis && toBeProcessed.Number > 1`", + "reference": "IMO == true is more readable than ?? false" + }, + { + "prediction": "Why is this change needed?", + "reference": "feel free when editing sections like this to introduce modern features like object destructuring." + }, + { + "prediction": "I think this should be `# coding: utf-8` instead of `utf-8`", + "reference": "I think the correct pragma is `# -*- coding: utf-8 -*-" + }, + { + "prediction": "I don't think we need to import iec104_fields and iec104_information_objects here.", + "reference": "This fixes some import errors, due to the fact that this file has the same name than its module." + }, + { + "prediction": "Why is this needed?", + "reference": "I think we need to clear this out on logout, and update it on login, right?" + }, + { + "prediction": "(style) line over 80 characters", + "reference": "I think normally we'd make this a precondition (using e.g. `g_return_val_if_fail`), but meh, this works too!" + }, + { + "prediction": "I think this should be `x-cse-src-microservice`", + "reference": "Is this header used by other outside service?" + }, + { + "prediction": "Why remove this test?", + "reference": "that's fine by me to have simple test for provisioning check" + }, + { + "prediction": "Why not use CronExpression here?", + "reference": "These two methods seem to be identical except the names. Any idea why two methods are needed?" + }, + { + "prediction": "I think we should use `sys.path.append(os.path.dirname(__file__))` instead of `sys.path.append(os.path.realpath(__file__))`", + "reference": "I don't see much difference between this and `create_db` module. How about having a function with a `database` argument?" + }, + { + "prediction": "`getNoDataComponent( 'analytics', _x( 'Analytics', 'Service name', 'google-site-kit' ), error, true, true, true, errorObj)`", + "reference": "See above, no need to pass the module name." + }, + { + "prediction": "Why is this change needed?", + "reference": "LightGBM supports multiple validation sets, so please leave `sets`." + }, + { + "prediction": "I think this should be `DeviceRotation` instead of `DeviceOrientation`", + "reference": "you don't need to create a enum for this, java allows you to switch on a string ;) (since java 7?)" + }, + { + "prediction": "I think we should remove the `compat-mode` attribute here.", + "reference": "What is this obscure syntax anyway? o.O" + }, + { + "prediction": "I think this should be `self._sfdr` or `self._sfdr`", + "reference": "I think we should have one for the CLA Classifier, and KNNClassifier as well. And how about RecordSensor?" + }, + { + "prediction": "I think this interface should be `ICursorContextMenuSupplier`.", + "reference": "Missing new line." + }, + { + "prediction": "I think this should be `model.schema.base.options.strictPopulate == false && options.strictPopulate == null`", + "reference": "`model.schema.base.options.strictPopulate != null`. Why hardcoding false? Also, `model.base.options` should work and be shorter. Finally, any way to move this up to the `populate()` function in `model.js` that calls `getModelsMapForPopulate()` and shallow clone the object before modifying? A bit random to modify this option here." + }, + { + "prediction": "Why is this change needed?", + "reference": "We now have Prepare.A/Build.A/Builders.Build.A - what are the differences?" + }, + { + "prediction": "Do we need to preserve backslashes here?", + "reference": "Could you reduce this to one line and change the first argument to a single quoted backslash string? Perhaps we can add this as an option named `:preserve_backslash` to the manify method. That way, we don't need an extra method in the first two cases. Obviously, we still need it for the inline case." + }, + { + "prediction": "Why is this change needed?", + "reference": "`has(default)` i think is the preferred way of doing this" + }, + { + "prediction": "I think this should be `ManifestFiles.read(manifest, ops.io(), ops.current().specsById())` instead of `ManifestFiles.read(manifest, ops.io(), ops.current().specsById())`.", + "reference": "Does this mean we can only do rewrites if there are no `DeleteFile`'s?" + }, + { + "prediction": "why did you change this?", + "reference": "Actually, these are fine; we're using 110 as the max line length. (it's also set in the .pylintrc)" + }, + { + "prediction": "I don't think this is needed anymore.", + "reference": "No issue here, but what tool are you running to put these imports into the preferred organization? I have configuration to run `goimports` whenever I save a file, but it appears that that is not quite sufficient." + }, + { + "prediction": "Why is this needed?", + "reference": "guessing this method could/should close it but I didn't see where it was getting called." + }, + { + "prediction": "Shouldn't this be `executionSource`?", + "reference": "Could you please use `camelCase` in the property name to follow the naming convention used in the rest of the properties?" + }, + { + "prediction": "I think this should be `fmtErrPublicSubnetsFromEnv`", + "reference": "Can we revert this change? looks like an extra space was added at the end " + }, + { + "prediction": "I think this should be `surfaceNamer.getVersionNamespace()`", + "reference": "This just grabs any one of the proto services defined in the API, right? What happens when there are multiple (like with PubSub)?" + }, + { + "prediction": "Why is this disabled?", + "reference": "Remove the pylint disable and remove the .format() from the string. The tablename is just 'violations'" + }, + { + "prediction": "Do we need this method?", + "reference": "Will this implementation allow you to add new exercises to the trail?" + }, + { + "prediction": "I think we should be able to keep the old event hooks in a separate PR.", + "reference": "Actually there is race condition here, because pointer assignment isn't atomic on some platform. But this is a rare case we should hit, we can just let it go for now. Maybe this is one of the TODO list." + }, + { + "prediction": "Shouldn't this be `if (data_reader->is_partitioned())`?", + "reference": "We should check somewhere here and in the partitioned_io_buffer that the max_mini_batch_size is properly computed for each model and that it is not aggregate (sum) for all models. The global/max_mini_batch_size should be as specified by the user in the prototext/cmd line." + }, + { + "prediction": "I think this should be `UNEXPECTED_ALERT_BEHAVIOUR_BEHAVIOR`.", + "reference": "you can change the string value, but not the code constant" + }, + { + "prediction": "Why is this removed?", + "reference": "File is not `goimports`-ed" + }, + { + "prediction": "Why do we need this TODO?", + "reference": "Is this Todo necessary?" + }, + { + "prediction": "Why is this change needed?", + "reference": "I would recommend to leave out `None` because None is already the default." + }, + { + "prediction": "I think this should be `cli-input-yaml` instead of `cli-input-yaml`.", + "reference": "I may have missed previous discussion on this; apologies if that's the case. What do you think about just `input-yaml`, without the `cli-`?" + }, + { + "prediction": "I think this should be `Task sendTask = DoSend();`", + "reference": "Nit: rename to sendError." + }, + { + "prediction": "I think this should be `ignore` instead of `ignore`.", + "reference": "`pylint` wants to know why this `import` isn't at the top of the file; and it's kinda right" + }, + { + "prediction": "I think this class should be `FeedUrlNotFoundException` instead of `FeedUrlNotFoundException`.", + "reference": "To me, using a `RuntimeException` for this feels a bit weird. I would just extend `Exception`, or maybe even `IoException`. Could you also please overwrite the `getMessage` function to return something like `\"Result does not specify a feed url\"`?" + }, + { + "prediction": "Why do we need this?", + "reference": "what was the issue here? why did you have to directly set?" + }, + { + "prediction": "Why is this change needed?", + "reference": "I'm confusied - Isn't `countryString` left empty if `len(country)` != 0?" + }, + { + "prediction": "Why is this change needed? I think it would be better to use `QOverload::of(&QSignalMapper::mapped)` instead of `QOverload::of(&QSignalMapper::mapped)` instead of `QOverload::of(&QSignalMapper::mapped)`", + "reference": "Would you please update this by using `#if (QT_VERSION >= QT_VERSION_CHECK(5,15,0))` and `QSignalMapper::mappedInt` for Qt >= 5.15?" + }, + { + "prediction": "I think this should be `defer stopGPGAgent(installChroot)` instead of `defer stopGPGAgent(installChroot)`", + "reference": "This type of change opens a question on how we can cleanly shutdown or prevent all running agents so we do not run the risk of an agent holding kernel mountpoints, which can cause unsafe unmount/chroot exit. Will open a github issue to track this. This specific change itself is fine. It is a pointed change specifically for stopping the offending agent." + }, + { + "prediction": "I think this should be `com.google.protobuf.CodedOutputStream` and not `com.google.protobuf.CodedOutputStream`.", + "reference": "this file is model generated by protobuf, just for compatible test it's better not change it." + }, + { + "prediction": "I think this should be `track_cancelled_with_reason` instead of `track_cancelled_with_reason`", + "reference": "It turns out we can send the reason as the property to Segment on the event. Then we can do whatever we want with it. In this case, I think we'll fire a web hook to Zapier which will add a note or message on the user in Intercom." + }, + { + "prediction": "I think this should be `method_missing?(message, **arguments)` instead of `method_missing?(message, **arguments)`", + "reference": "This class is very similar to `Catalog`. Is there a way to have this class compose a `Catalog` instance or extract a common class which they can both compose?" + }, + { + "prediction": "Why is this change needed?", + "reference": "Why did you decide to drop the `queue` from parameters of `wrap` function? The agreement was that all functions for DPC++ case that accept non-host-accessible memory shall accept the queue directly." + }, + { + "prediction": "I think this should be `true` instead of `false`.", + "reference": "I think this is a bad name, as its not clear what it does by name alone. If we merge this it should be something like `use_links_to_files_in_output` and should take either a custom scheme like `rspec` or default to `file`" + }, + { + "prediction": "I think this should be `errorProneOptions.check(\"Slf4jConstantLogMessage\", CheckSeverity.OFF);`", + "reference": "Arguably this is actually still valuable for perf, maybe it should just be a warning?" + }, + { + "prediction": "I think this should be `debug api: topologyDriver.AddPeer(address, err)`", + "reference": "didn't way say that the topology driver will actually insert the entries to the address book?" + }, + { + "prediction": "This is a compression of oldParentVNode and oldParentVNode!=EMPTY_OBJ && oldParentVNode._children should be `EMPTY_ARR`.", + "reference": "This seems safe to me. My guess is the original checks were a combination of before + after `oldParentVNode` became reliably a `(vnode | null)`." + }, + { + "prediction": "This should be `--filename-suffix` and `--filename-ext`", + "reference": "also in the `.md` please." + }, + { + "prediction": "I think this should be `if self['platform'] =~ /(fedora)|(centos)|(redhat)`", + "reference": "RHEL is an acronym and is usually all caps. Why are you adding a redhat regex matcher?" + }, + { + "prediction": "Why is this removed?", + "reference": "Maybe I am daft but it looks like you removed fixed width readers but I don't see where you added any readers?" + }, + { + "prediction": "I think this should be `WebsiteIndexDocumentSuffixKey` and `WebsiteErrorDocumentPathKey`", + "reference": "@acud The reason I moved these here is because I need them in the traversal tests. The traversal package doesn't need this. I don't see any particular reason why any package apart from api would need this. api package imports traversal, so I cannot import api in traversal pkg. Also if these change in future, the traversal tests need to change. So maybe enough reason to move these here? That way both packages can access these as they both depend on manifest" + }, + { + "prediction": "I think this should be `self.pin = False` instead of `self.pin = False`", + "reference": "I'd prefer this to be called `pinned` - also it should probably be in the `TabData` class instead, which is accessible as the `.data` attribute of the `BrowserTab` object - otherwise, `BrowserTab` would have a lot of quite \"random\" attributes :wink:" + }, + { + "prediction": "I think this should be `SEND_COMMANDS_FOR_DOWNLOAD_CHROME_HEAD_LESS`.", + "reference": "Nit: `Headless` is one word, not two, and so doesn't need camelcasing in this way." + }, + { + "prediction": "Why is this needed?", + "reference": "Why not import audit as well?" + }, + { + "prediction": "Why not use `$categoryElectronics` instead of `$categoryData->parent`?", + "reference": "OK, i think there will be more of those..." + }, + { + "prediction": "I don't think this is a good idea.", + "reference": "Can you add : 'password' => 'The provided password is incorrect.', ?" + }, + { + "prediction": "I think this should be `win8.UIA` or `win8.UIA`", + "reference": "Extraneous blank line." + }, + { + "prediction": "I don't think we need this change.", + "reference": "nitpick: use `const virtualTree`, I know it was `let` earlier." + }, + { + "prediction": "I think this should be `FlushListener` instead of `mdFlushListener`.", + "reference": "Actually, I think it might be easier to do it here. Rough outline: 1. Save a list of the md cache keys and new brmd while looping. 2. After the loop, for each entry: 2a. Look up the old cache entry. If it doesn't exist, continue. 2b. Otherwise, make a deep copy of it, and replace its brmd with the newly-generated one. 2c. Delete the old cache entry, put the new cache entry. What do you think? The problem with the current approach is that the gap between dropping the old version and putting the new version is large enough that when we put the new version, we may be kicking out hotter cache entries. In this case, we'd be doing so to a lesser extent. Ideally, we'd be able to replace the entry in the MDCache LRU without changing the LRU info." + }, + { + "prediction": "I think this should be `FileHelper.IsRootedPath(source)` instead of `FileHelper.CombinePath`.", + "reference": "We need tests for this" + }, + { + "prediction": "Why is this change needed?", + "reference": "NewExporter takes in two arguments: a configuration for the metrics connection and one for the traces" + }, + { + "prediction": "I think we should use `parseInt(item.RunTimeTicks / 10000)` instead of `parseInt(item.RunTimeTicks / 10000)`", + "reference": "Why not use currentPlayer instead of playbackManager.getCurrentPlayer()?" + }, + { + "prediction": "Layout/MultilineMethodCallBraceLayout: Closing method call brace must be on the same line as the first argument.
    Layout/MultilineMethodCallBraceLayout: Closing method call brace must be on the same line as the last argument.
    Layout/MultilineMethodCallBraceLayout: Closing method call brace must be on the same line as the first argument.", + "reference": "Avoid comma after the last parameter of a method call, unless each item is on its own line." + }, + { + "prediction": "I think this should be `DataDirOnHost` or `DataDirOnHost`?", + "reference": "You should remove the outdated sentence." + }, + { + "prediction": "I think this should be `firstTimeEmptySubject`", + "reference": "Please restore the empty line after the group of `STATE_*` constants. This visual separation makes the code easier to read." + }, + { + "prediction": "I think this should be `this.core.log('RestoreFiles: removed ${fileIDs.length} files that finished uploading')`", + "reference": "Unsure why this is `RestoreFiles` now vs `GoldenRetriever`, thought we deprecated the first?" + }, + { + "prediction": "I think this should be `SystemInformation.VerticalScrollBarWidth` instead of `SystemInformation.VerticalScrollBarWidth`", + "reference": "Not sure what this is. Bad merge?" + }, + { + "prediction": "Why is this change needed?", + "reference": "I'm confused, what did this actually fix? Is there a reason we are setting `err` in the parent scope to `nil` in this round-about way?" + }, + { + "prediction": "I think this should be `TestApplyEnv_Entrypoint` and `TestApplyEnv_Image_HealthCheck`", + "reference": "Can we remove this ?" + }, + { + "prediction": "I think this should be a `redirect_to_upcase_path`", + "reference": "Put a comma after the last parameter of a multiline method call." + }, + { + "prediction": "Why is this change needed?", + "reference": "line is 195 characters (from `lll`)" + }, + { + "prediction": "I think this should be `k8s.io/apimachinery/pkg/util/slice`", + "reference": "could not import k8s.io/kubernetes/pkg/util/slice (invalid package name: \"\") (from `typecheck`)" + }, + { + "prediction": "Why remove this line?", + "reference": "@disordinary would you be able to configure your editor to use the `.editorconfig` file so that we can avoid final newline changes?" + }, + { + "prediction": "Why do we need a `Map` here?", + "reference": "I really think we should not use this style where unused arguments are named with underscore. While this eases the person writing the function it does it at an expense of readability and debugging. So next person who needs to actually use this argument will need to check the spec and rename this to `obj` and then use it or if he is debugging it he will is not able to watch for a meaningful variable name and will need to inspect `_` which is weird and uncomfortable. We have not used this style anywhere in the code while I agree its very tempting to use it :)" + }, + { + "prediction": "Why is this change needed?", + "reference": "Thanks for avoiding the default value for the param. But, I think sending heap as NULL might make this program to fail. Have you tested this program? If you have tested this program already, then this PR is ready to be merged." + }, + { + "prediction": "I think this should be `public MvxModalViewPresentationPlacement Placement { get; set; }`", + "reference": "Don't make it sealed" + }, + { + "prediction": "Why is this change needed?", + "reference": "Did we miss that for jwt before?" + }, + { + "prediction": "Why is this change needed?", + "reference": "It appears that using SERCOM1 was a bug: the only SERCOM that is supported on the TX/RX pins is SERCOM0. Previous UART support wouldn't have worked on the Trinket M0 TX/RX pins anyway (`PA06`/`PA07`). This PR fixes that, and should thereby add support for UART on the Trinket M0." + }, + { + "prediction": "I think this should be `ar` instead of `ar`", + "reference": "Spaces for indentation, not tabs" + }, + { + "prediction": "I think this should be `binding_to_global_index_range_map_.reserve(binding_count_);` and `binding_to_global_index_range_map_.emplace_back(binding_index, final_index);`", + "reference": "doing this as a binding map was insane, but with the ConstBindingIterator to hide the binding->index gunk and avoid the hashes during access it sticks out." + }, + { + "prediction": "I think this should be `[0, '1']`", + "reference": "nitpick: I'd rather move this into the test method directly (we should avoid variables at the root scope if they are not reused in multiple places). (not critical, though - shouldn't hold back the merge..)" + }, + { + "prediction": "Shouldn't this be `AssertEx.IsTrue(importPeptideSearchDlg.CurrentPage == ImportPeptideSearchDlg.Pages.match_modifications_page);`?", + "reference": "You should do: AssertEx.AreEqual(importPeptideSearchDlg.CurrentPage, ImportPeptideSearchDlg.Pages.match_modifications_page);" + }, + { + "prediction": "I don't think we need to check if the summary is not null?", + "reference": "SC support batch register schemas we should swtich to new api be careful that maybe will send too big request, need to split to multi request by max size of limit." + }, + { + "prediction": "I think we should be able to use `1.15` as the default value for `1.14` and `1.15` as the default value for `1.15` is the default value for `1.14`.", + "reference": "At this point, maybe it would make more sense to write this as a range rather than listing specific versions?" + }, + { + "prediction": "I think this should be `expectedStatus` instead of `expectErr`", + "reference": "I guess we can start by putting the `const StatusContextCancelled = 499` at the bottom of this file" + }, + { + "prediction": "I think this test should be `assert.Equal(expectedVoucher.Channel, voucher.Channel)`.", + "reference": "Blocking: populate a non-empty value and check it below." + }, + { + "prediction": "I don't think we need this permission, but I think it would be better to use `IMAGE_TYPE_ADD_MEMBER` and `IMAGE_TYPE_DELETE_MEMBER`.", + "reference": "What is this number value for? How is it used?" + }, + { + "prediction": "I don't think this is necessary.", + "reference": "This needs an end keyword" + }, + { + "prediction": "I think this should be `DependencyTelemetryData.Name` and `DependencyTelemetryData.Version`.", + "reference": "I think this is the first record type in Datadog.Trace! " + }, + { + "prediction": "Why is this removed?", + "reference": "Nit: missing newline above." + }, + { + "prediction": "I think this should be `kube-proxy` instead of `kube-proxy`", + "reference": "Since it's a one-off, worth putting an info log before and after." + }, + { + "prediction": "I think we should use `.split(\".\").forEach((token) => { $scope.calendars.push(calendar); } )` instead of `.split(\".\").forEach((token) => { $scope.calendarsPromise = CalendarService.getPublicCalendar(token);`", + "reference": "I'm sorry, but the indentation is still wrong. This should be indented by one tab." + }, + { + "prediction": "I think this should be `df.dtype` or `df.index`", + "reference": "can we add an example?" + }, + { + "prediction": "I think this should be `getExtendedIdentify(ctx, keybase1.TLFIdentifyBehavior_CHAT_SKIP)` instead of `getExtendedIdentify(ctx, keybase1.TLFIdentifyBehavior_CHAT_SKIP)`", + "reference": "We usually avoid blank lines at the start of functions." + }, + { + "prediction": "I think this should be `static`", + "reference": "I dont think this line is needed" + }, + { + "prediction": "I think this should be `glog.Fatalf(\"invalid feature gate value for %s\", util.CASTemplateFeatureGateENVK)` instead of `glog.Fatalf(\"invalid feature gate value for %s\", util.CASTemplateFeatureGateENVK)`", + "reference": "We should not panic here !!! We return error i.e. 500 http code" + }, + { + "prediction": "I think this should be `conf.l2types.get(type(p), None)`", + "reference": "To avoid useless calls to `conf.l2types.get()` we could have a `set()` of types that are OK in this PCAP files. We could check if `p.__class__ not in self.l2_types_seen` first, only run this code block in that case, and add `self.l2_types_seen.add(p.__class__)`. I'm not sure if I'm clear here... let me know what you think." + }, + { + "prediction": "I think this should be `EXECUTION_SOURCE_ADHOC` and `EXECUTION_SOURCE_SCHEDULED`", + "reference": "Shouldn't \"source\" be a noun? How about? -EXECUTION_SOURCE_USER -EXECUTION_SOURCE_SCHEDULE -EXECUTION_SOURCE_EVENT (because it's an event based trigger mechanism)" + }, + { + "prediction": "I think this should be `lvis_v1_instance.py`", + "reference": "Should not switch to `lvis_v1_instance` here because that base config uses ClassBalancedDataset to oversample the data." + }, + { + "prediction": "I think this should be `
    `", + "reference": "Last time I checked, this technique did not work on all major screen reader - browser combinations. What screen readers have you tested?" + }, + { + "prediction": "I think this should be `IsFeatureFlagEnabled(ConfigurationKeys.FeatureFlags.AspnetRouteTemplateResourceNamesEnabled)` instead of `IsFeatureFlagEnabled(ConfigurationKeys.FeatureFlags.AspnetRouteTemplateResourceNamesEnabled)`", + "reference": "Most tracer settings can be set in several ways: environment variables, `app.config`/`web.config` file, or in a json file (`~/datadog.json` by default). Most exceptions to this rule are settings in native code (where we use env vars only). Currently, `DD_TRACE_ASPNET_ROUTE_TEMPLATE_RESOURCE_NAMES_ENABLED` will only work as an env var. Was this limitation intentional?" + }, + { + "prediction": "I think this should be `true` or `false`?", + "reference": "Would \"DisableIID\" be a better name? For example, we used DisableMetrics, ImageCleanupDisabled, ... etc. for other similar fields." + }, + { + "prediction": "(style) line over 80 characters", + "reference": "So this is a swing of 2: but I think we only need to reduce by 1? The artificial jump added on truncation is not passed to clients: it's like other mangling added later. So if `-max_bb_instrs 4` means 4 app instrs passed to clients, we'd want ==, not ==-1, right? Plus, if we did want -1 and to stop at 3 instead of 4, this is not sufficient: the inner loop above currently has `total_instrs <= cur_max_bb_instrs`." + }, + { + "prediction": "I think this should be `BOOLEAN` instead of `BOOLEAN`.", + "reference": "Does Tinyint belong to this set of types? I suppose the answer is No, but thought it safer to check." + }, + { + "prediction": "I think this should be `mousePoint.x < mousePoint.x;`", + "reference": "I'm a bit leery of this implementation, because it assumes that the only \"outside\" is to the right side. Note that Blockly assumes that there's nothing useful to the \"outside\" of the toolbox, based on the configuration of the workspace, so it's not like we're doing the right thing either. I think this will break in RTL. If you keep the editor in the same place but inject with RTL, everything you're looking for will be in the delete area. If the editor and stage swap places, this will just be looking on the wrong side." + }, + { + "prediction": "I think this should be `natportrange-list` instead of `natportrange-list`", + "reference": "Just spotted the `local` on here; that shouldn't be needed - no reason to limit this config to env vars only" + }, + { + "prediction": "Why is this change needed?", + "reference": "That's a tricky one, as the variable is indeed used in line 2346, which is a `logInfo` message that is not compiled unless `INTERNAL_DEBUG` is set or `CMAKE_BUILD_TYPE` is set to `Debug`. Our CI builds with `INTERNAL_DEBUG` to verify that all `logInfo` are correct, and thus we don't get the warning. The best is probably to remove the iterator (as you did), as well as the part of the log that uses it." + }, + { + "prediction": "I think this should be `network_name(conf.iface)` instead of `network_name(conf.iface)`", + "reference": "I suspect L2Socket needs a similar change (line 502) for the case where `iface` is None (line 479)" + }, + { + "prediction": "I don't think we need to add the permission here.", + "reference": "Was this all that was needed to add CRUD operations for the LicensePermission model? :-)" + }, + { + "prediction": "Please use `str.lower()` instead of `str.lower()`", + "reference": "Did you look for other locations that compare name? I expected there to be more." + }, + { + "prediction": "I think this should be `enableJUnit5ForAllTestTasks(project);`", + "reference": "There were some requests internally to allow users to opt out of this behaviour. We could expose a property that allows people to toggle ti" + }, + { + "prediction": "Why not use a mock merge policy here?", + "reference": "Nice -- this forced `merge-on-getReader/commit` to be used more often in this test?" + }, + { + "prediction": "I think this should be `SupportAssetsPrecision` instead of `SupportAssetsPrecision`", + "reference": "Instead of a `bool`, can we just call this `MaxAssetDecimals` and have it be a `uint8`/`uint16`/`uint32` whose value is 0 before the upgrade and 19 after (2**64 - 1 is 20 decimal digits)? We'll need to set a maximum value anyway, and that way there's only one new proto variable instead of two." + }, + { + "prediction": "Why not use `array_key_exists` instead of `array_key_exists`?", + "reference": "where `$aliases` is defined ? @javiereguiluz" + }, + { + "prediction": "Why is this removed?", + "reference": "what is the justification for the removal of the registered label? it doesn't seem to have high cardinality nor is it redundant. Seems useful to shed insight into understand situations where workloads aren't registered...." + }, + { + "prediction": "I think this should be `NotImplemented`", + "reference": "`ctx` is unused in ListEvents" + }, + { + "prediction": "I think this test should be `public void testSQLCipherVersion(String sqlCipherVersion, String sqlCipherVersion) {`", + "reference": "We've had that test on iOS for years." + }, + { + "prediction": "I think this should be `-bl:benchmarkdotnet.binlog` instead of `-bl:benchmarkdotnet.binlog`", + "reference": "This is for creating binlog file for building bdn generated template project. I feel that it's may be helpful in general for bdn diagnostic purpose." + }, + { + "prediction": "Shouldn't this be `new_tab` or `new_window`?", + "reference": "Can you adjust `open_path` to simply call `path_to_url` and then `open_url` instead of duplicating the code?" + }, + { + "prediction": "I don't think we need to change the timeout here.", + "reference": "I'm curious -- do we have information on the upper bound of the delay we would expect with high probability from a peer with no network issues? My intuition is that we want to set this as low as we can reasonably get away with before we start killing productive connections. My uninformed intuition is also that 10 seconds is probably higher than we need and I'd love to know if this is wrong and 10 seconds is already pushing the limit." + }, + { + "prediction": "I think this should be `if (shiftAmountInt >= 0 && shiftAmountInt < 0)`", + "reference": "what happens if it's == 0" + }, + { + "prediction": "Why remove this?", + "reference": "We could potentially log a message here instead that indicates the transport does not support `run-as` on Windows and will be ignored, just in case users expect it to and are surprised. Since it would _always_ be logged when using `--run-as` on Windows, even when the transport isn't being used, it would probably want to be either at debug or trace level." + }, + { + "prediction": "Why is this needed?", + "reference": "Did we need this alias? Or is it just a holdout from development?" + }, + { + "prediction": "Line is too long. [98/80]", + "reference": "This should have failed before." + }, + { + "prediction": "I think this should be `RegexOptions.Compiled` instead of `RegexOptions.Compiled`.", + "reference": "Slower construction, faster matching. I wonder if this will be noticeable in the relenv?" + }, + { + "prediction": "I think this should be `std::cout << std::cout << std::endl << std::cout << std::cout << std::endl;`", + "reference": "I think that if `data_discovery_count_ > static_cast(throughput_publisher_.subscribers_)`, then we should not proceed, since we have discovered some unexpected subscriber that can affect the test results. I'd change the comparison to `==` and have and `else if` contemplating the `>` case" + }, + { + "prediction": "I don't think we need to include `Cuda/Kokkos_Cuda_Error.hpp`.", + "reference": "Remove that include" + }, + { + "prediction": "I think this should be `class-form` instead of `class-form`", + "reference": "IMO this should be defined in the form theme instead. This class should always be there. If the user configured additional css classes, it should be appended instead of replacing the `{view}-form` css class." + }, + { + "prediction": "I don't think we need to import JSONObjectHelper here. I think it's better to use `org.json.JSONObjectHelper` instead of `org.json.JSONObjectHelper`. I think it would be better to use `org.json.JSONObjectHelper` instead of `com.salesforce.json.JSONObjectHelper`.", + "reference": "These tests actually go to the server." + }, + { + "prediction": "I think we should use `Task.Run(() => onCompletedCalled = true);` instead of `Task.Run(() => onCompletedCalled = true);`", + "reference": "This test modification isn't correct. This task could run immediately and you wouldn't be able to tell if OnCompleted was called or not." + }, + { + "prediction": "I think this should be `if (typeof component.constructor.getDerivedStateFromProps !== 'undefined') {`", + "reference": "I'd be open to loosening this check if it can help offset the size." + }, + { + "prediction": "I don't think you need to add the `transform_apply.html` link here.", + "reference": "I'm wondering which we should use, stable or latest?" + }, + { + "prediction": "I don't think we need to change the BftExtraDataCodec base class.", + "reference": "possibly extending EncodingType enum?" + }, + { + "prediction": "I don't think we need this test anymore, but I think it would be better to use `should_switch_to_frame` instead of `should_switch_to_parent_frame`", + "reference": "I tested it only in Firefox (`./go //rb:firefox-test`)" + }, + { + "prediction": "I think this should be `IProviderContainer`.", + "reference": "can we do this in the baseexporter itself? So that exporters just access this.Provider.Resource, and baseexporters take care of populating Provider?" + }, + { + "prediction": "I think this should be `frontend/express/public/core/events/javascripts/countly.views.js`", + "reference": "what is the difference between `/core/events/javascripts/countly.views.js` and `/core/events/javascripts/countly.events.views.js`" + }, + { + "prediction": "I think this should be `options.iframes = true;`", + "reference": "We should make sure this is also supported by `axe.run`. Perhaps moving it into run-rules would cover both API methods more easily?" + }, + { + "prediction": "Why do we need this?", + "reference": "If the `MemoryBasedStorage` relies on a `self._bump_and_store_timestamp()`, then every child class will have to implement it. So it should not be prefixed with `_`. And should raise `NotImplementedError` etc. :)" + }, + { + "prediction": "Why is this removed?", + "reference": "why removed the MemoryDiagnoser attribute?" + }, + { + "prediction": "I think we should use `utils.getValue(localField, doc)` instead of `utils.getValue(localField, doc)`", + "reference": "Why do this instead of `localFieldPath.applyGetters(doc[localField], doc)` ?" + }, + { + "prediction": "Why remove this?", + "reference": "Just for a check. Do you really want to delete this?" + }, + { + "prediction": "I think this should be `action.Action`", + "reference": "github.com/golang/protobuf/proto group in next group" + }, + { + "prediction": "I think we need to add this to the `rootSubcmdsDaemon` as well.", + "reference": "Nit: what about just `pay`? Is there some other subcommand that would conflict with?" + }, + { + "prediction": "Shouldn't this be `StringUtils.startsWith(inputValue, \"0x\")`?", + "reference": "Just for the sake of keeping things logically co-located, I'd like to see this functionality in `Quantity.java` which has a lot of utility methods related to this. Maybe a `static` method like `Quantity.isValid(String string)`?" + }, + { + "prediction": "I think this method should be renamed to `public List sql(String query, Object[] args) { return getTableEnv().executeSql(String.format(query, args));`", + "reference": "How about use `protected` ?" + }, + { + "prediction": "I think this should be `if len(prefixAsNibbles) == len(common.HashLength*2)`", + "reference": "Should it not be `common.HashLength*2 + common.IncarnationLength` ?" + }, + { + "prediction": "I think this is a good idea to remove the `node.isKilledBySLA()` check.", + "reference": "those change are done by save plugin." + }, + { + "prediction": "Why not use UTF-8 instead of UTF-8?", + "reference": "There were problems with NullPointerException and with german Umlauts in message titles (I know they're not allowed in the specifiation but they caused my K-9-Inbox to not work at all) I don't know if this is related to PGP/Mime" + }, + { + "prediction": "I think this interface should be `IEvent` instead of `IEvent`", + "reference": "This is an appsec concept right? Should it live in the Appsec namespace?" + }, + { + "prediction": "Why is this needed?", + "reference": "I'd personally recommend having the demo check for error, unless it's worthless." + }, + { + "prediction": "I think this should be `LOG.info(String.format(\"Firefox Session %d assigned to %s\", i, chromeSession.getUri()));` and `LOG.finer(String.format(\"Firefox Session %d assigned to %s\", i, chromeSession.getUri()));`", + "reference": "Since this is in a test, I imagine that the choice of `info` level was deliberate." + }, + { + "prediction": "Why not use `toArray` here?", + "reference": "good call swapping these names! makes more sense this way i think" + }, + { + "prediction": "I think this should be `if (replaceNode !== null) {`", + "reference": "Maybe leaving this out will save some bytes as in let `let isHydrating = replaceNode === null`" + }, + { + "prediction": "I think this should be `GenNamespaceImports(0);` instead of `GenNamespaceImports(0);`", + "reference": "Let's manually create one extra whitespace line here (code_ += \"\")" + }, + { + "prediction": "Why is this needed?", + "reference": "nit: copy or clone" + }, + { + "prediction": "I think this should be `d.fields.MatchFold(revField)` instead of `d.fields.MatchFold(revField)`", + "reference": "I think this can be called `HasField`, because that's what it's doing. It really is independent of revision." + }, + { + "prediction": "I think this should be `MatchTest_DeveloperPatterns.Developer` instead of `MatchTest_DeveloperPatterns.Developer`", + "reference": "Is this to avoid collisions?" + }, + { + "prediction": "Why is this changed?", + "reference": "nit: a better name for this variable would be enableLogStats, but it's beyond the scope of your change." + }, + { + "prediction": "Why is this removed?", + "reference": "Because linters don't handle reports now, this was breaking the setup for _all_ tests. I deleted it so I could run my tests, but I didn't check the impact on other tests as many tests are failing at the moment." + }, + { + "prediction": "I think this should be `if logrus.StandardLogger().Out != logrus.New().Out { return nil }`", + "reference": "I'm not really a fan of this -- why not set up logging for `init` here (or setting a global flag) rather than doing it this way?" + }, + { + "prediction": "I think this should be `@namespace axe.imports` instead of `@memberof axe.imports`", + "reference": "This is my favorite part of this PR. Being able to `import` 3rd party tools will hugely improve our workflows. :heart:" + }, + { + "prediction": "I think this rule should be `static` and not `static`.", + "reference": "having this extend `UnsynchronizedStaticFormatterRule` seems semantically incorrect even if it works we should probably refactor `UnsynchronizedStaticFormatterRule` into a `UnsynchronizedStaticAccessRule` which can be configured through properties to track unsynchronized static access to any given types (with proper defaults to include `Formatter` and `MessageDigest`). This will also scale better as new types are suggested to have a thread-safe access enforced. The `UnsynchronizedStaticFormatterRule` can be marked as deprecated at the ruleset level, point to the new implementation, overriding the property defaults to keep just looking for `Formatter`. Moreover, the `THREAD_SAFE_FORMATTER` static should probably be replaced with a property of thread-safe classes to ignore, once again with proper defaults." + }, + { + "prediction": "Why not use `Keccak.Zero` instead of `Keccak.Zero`?", + "reference": "Keccak.Zero should not be used to mean null" + }, + { + "prediction": "I think this should be `public static IEnumerable InvalidHistogramBounds => new List { new double[] { 0, 1 } }`", + "reference": "perhaps add a couple more edge cases." + }, + { + "prediction": "I think this should be `ColorRed` and `ColorGreen`", + "reference": "Is this blank line needed, or typo?" + }, + { + "prediction": "Why is this removed?", + "reference": "This was a major PitA to find: it was causing some huge goroutine leaks and unfinished prefetches." + }, + { + "prediction": "Do we need to do this? I think it's better to use `Array.new(MODULES).map do |mod| mod.instance_methods.map do |mod| mod.instance_methods.map(mod.to_sym).map do |mod| mod.instance_methods.map(mod.to_sym)`", + "reference": "you can use Enum#flat_map here." + }, + { + "prediction": "I think this should be `@SuppressWarnings(\"PMD.CloseResource\")` instead of `@SuppressWarnings(\"PMD.CloseResource\")`.", + "reference": "Same potential FP: The stream is provided from outside (here as a method parameter), so we should not be responsible here to close it, should we?" + }, + { + "prediction": "I think this should be `ENV[\"APP_DOMAIN\"]` instead of `ENV[\"APP_DOMAIN\"]`.", + "reference": "Put a comma after the last parameter of a multiline method call." + }, + { + "prediction": "Why is this change needed?", + "reference": "It seems like this is the only way to access javascript `static` methods from Java." + }, + { + "prediction": "Why is this removed?", + "reference": "Why was this removed here?" + }, + { + "prediction": "Why is this removed?", + "reference": "i am aware that you did not add these, but might i ask why we need these one-liner funcs instead of just exporting the struct fields in the first place?" + }, + { + "prediction": "I think this should be `TypeUtil.project(schema, requiredFieldIds);` and `TypeUtil.select(schema, requiredFieldIds);`", + "reference": "I agree with this because it is the opposite of `GetProjectedIds` used above." + }, + { + "prediction": "I think this should be `ebsOptimized`", + "reference": "add 'sriovNetSupport' also to this list" + }, + { + "prediction": "I think this should be `if (!accountsInOrder.contains(newAccount)) { accountsInOrder.add(newAccount); }`", + "reference": "Code style issue: `if` body is not wrapped in braces." + }, + { + "prediction": "I think this should be `adapter.addAll(result);`", + "reference": "Call requires API level 11 (we are on 10)" + }, + { + "prediction": "Why is this change needed?", + "reference": "do we need to pass the DB if it is the same" + }, + { + "prediction": "I think this should be `if op.IsGCOp() { return nil }`", + "reference": "Might be a good idea to rename the variable so it doesn't shadow the type." + }, + { + "prediction": "Why not use `parent_of(id, child_id)` instead of `parent_of(id, child_id)`?", + "reference": "Again I'd prefer if this is done in JavaScript rather than in SQL." + }, + { + "prediction": "I think this should be `@final`.", + "reference": "there is still `2` spaces after `a` here.. :P" + }, + { + "prediction": "I think this should be `if m.Device == \"bind\" && m.Destination == \"/dev\"`", + "reference": "What we did in docker before, when working directly with libcontainer, is check if the source is `/dev` and the destination has a `/dev/` prefix. This implementation is probably ok. If someone is mounting their own `/dev` I would expect it to be pre-configured and not need the extra check for if it's the host's `/dev`. (that said, I've not tested yet, just reading through the code)" + }, + { + "prediction": "This is a bit confusing, but I think it would be better to have a `JavaBinaryExecutableByDefault` flag in the `Configuration` struct.", + "reference": "you should add some help on the struct too so that `plz halp featureflags` has a bit of explanation. Might be worth mentioning that these generally won't remain around very long relative to other config options (i.e. they're typically enabling \"preview\" features for the next major)." + }, + { + "prediction": "Why is this change needed?", + "reference": "Maybe `consumerID, receiverID, issuerID`, at least it's a convension in overal repo" + }, + { + "prediction": "I think this should be `s3://mybucket?region=us-east-1` instead of `us-east-1`", + "reference": "Where does the auth go?" + }, + { + "prediction": "I think this should be `if payloadGas == 0 || (math.MaxUint64-baseIntrinsicGas)/payloadSize < payloadSize`", + "reference": "0 < minimum gas price, `ErrUnderpriced` is more proper" + }, + { + "prediction": "I think this should be `TOKEN_EXP_MINUTES`", + "reference": "these should be alphabetized" + }, + { + "prediction": "Why is this change needed?", + "reference": "These changes look concerning. It looks like the old offset (only index) must not have been correct. If so, there are places where `getDataBuffer().setLong(...)` and similar methods are called but aren't updated like these. Are those cases bugs as well?" + }, + { + "prediction": "Why is this change needed?", + "reference": "the CAS call here is now wrong since dirty will never be 3 anymore. it might be useful to sweep through the entire usage of this field to see that everything is correct" + }, + { + "prediction": "I think this should be `use Thelia\\Module\\ModuleQuery;`", + "reference": "Base model is imported here" + }, + { + "prediction": "I don't think this is needed.", + "reference": "import but not used" + }, + { + "prediction": "Why is this change needed?", + "reference": "What about the call in `case PACKED` just below? Does that also need to use the `typeWidth`?" + }, + { + "prediction": "Why is this needed? I think it's better to use `swarm.EncryptedReferenceSize * 2` instead of `encryption.ReferenceSize * 2`.", + "reference": "not sure i like this change. The encryption package does not need to know about references" + }, + { + "prediction": "I don't think this is needed.", + "reference": "This shouldn't be added. It's not supported. It's not event the default. If we are going to support this, we need to have CI for it." + }, + { + "prediction": "Why is this removed?", + "reference": "omg only four left!!!!" + }, + { + "prediction": "I think this should be `err := fmt.Errorf(\"Unknown consensus protocol %s\", protocol.ConsensusCurrentVersion)` instead of `err = fmt.Errorf(\"Unknown consensus protocol %s\", protocol.ConsensusCurrentVersion)`", + "reference": "I'm not really sure how this would happen. once the binary is already compiled, the config.Consensus should already have the entry for protocol.ConsensusCurrentVersion." + }, + { + "prediction": "Why is this change needed?", + "reference": "Is there a reason for the order swap here?" + }, + { + "prediction": "I think this should be `ResourceNotFoundException` instead of `FileNotFoundException`.", + "reference": "Where will this exception get caught ?" + }, + { + "prediction": "Why is this needed?", + "reference": "Why this field is made public?" + }, + { + "prediction": "I don't think we need to change this to `vmultiplier` here.", + "reference": "Is the `vmultiplier` only used here for checking if a grid value is nodata?" + }, + { + "prediction": "Why is this change needed?", + "reference": "Is this deliberate? If so, why?" + }, + { + "prediction": "Why is this change needed?", + "reference": "both URL works. I corrected it anyway." + }, + { + "prediction": "Why is this change needed?", + "reference": "Rather than have another member and and if/else statement, if the user passes in `PreInvocationAuthorizationAdvice` it could be adapted to match `PreInvocationAuthorizationReactiveAdvice`" + }, + { + "prediction": "I don't think we need to change this.", + "reference": "The callback get the log level as a number." + }, + { + "prediction": "I don't think this is needed.", + "reference": "Is there any issue with 2.2.3? If not this should be `<2.3`. " + }, + { + "prediction": "Why did you remove this?", + "reference": "Shall we keep this test?" + }, + { + "prediction": "I think this should be `class_exists('TYPO3\\\\CMS\\\\Backend\\\\Form\\\\Element\\\\SelectElement')`", + "reference": "When would this be the case? / When would SelectElement not be available? Is this change compatible with 6.2? (I'd like to roll a release that works with 6.2+ first, before moving on to 7.x)" + }, + { + "prediction": "I think this should be `isSameCatalog(other)` instead of `isSameCatalog(other)`", + "reference": "how about rename to shouldNarrowDataTypeTo?" + }, + { + "prediction": "I think this should be `if len(Store.renderers) == 1`", + "reference": "Why not check that the one available renderer is 'bokeh'?" + }, + { + "prediction": "I think this error should be in the error message, not in the error message.", + "reference": "Can you import `bundler.ErrOverflow` rather than redefine it here?" + }, + { + "prediction": "I don't think we need to change the `ResourceReference` type to `ResourceType`.", + "reference": "This is just a renaming of the function getResourceType() to getResourceReference()" + }, + { + "prediction": "I think we should remove this line.", + "reference": "Seems like this might need to allow for `\"`s to be used here?" + }, + { + "prediction": "I think this should be `Combat_ptr` instead of `Combat_ptr`", + "reference": "here you assigning it to a local variable, in the original code it assigned to combat(CombatSpell member). Not sure if CombatSpell needs to use a shared_ptr since currently it does not and it works \"good\"." + }, + { + "prediction": "Why did you remove this?", + "reference": "Should we also remove this? This applies to subscriptions in general, but it seems sort of weird in the context of products now." + }, + { + "prediction": "Why is this removed?", + "reference": "I think we should keep these, o.w. our examples will be wrong (where we're importing from `dagster.utils`). Also, we might break folks who've imported following our docs." + }, + { + "prediction": "Why is this needed?", + "reference": "This is good and something that I think opens a lot of possibilities. I think what would be even better is to change up `TracerProviderSdk` to take factories for the processors just like it already does for the instrumentations. Should probably use use a factory for the sampler. If we made those 2 changes then we could actually split this all up into the config and the build phase and we could use the factory methods in the hosting version to call into the IServiceProvider to get those instances." + }, + { + "prediction": "I think this should be `values.NewNull(flux.SemanticType(t.ColMeta[idx].Type))`", + "reference": "Is there a way to make it so `values.New(nil)` works instead of adding a new function?" + }, + { + "prediction": "I think this should be `method_exists('Symfony\\Component\\Form\\AbstractType', 'getBlockPrefix')`", + "reference": "> when requirement of Symfony **will be** >= 2.8 Same for others." + }, + { + "prediction": "I think this should be `iam.serviceAccountTokenCreator` instead of `iam.serviceAccountTokenCreator`", + "reference": "I'd like to see if this can just be set on the service account instead of the project. Using the SVC_ACCT_ROLES (which should otherwise be deleted as I don't think anything else is using it.)" + }, + { + "prediction": "I don't think this is needed anymore.", + "reference": "Please remove the unused imports :)" + }, + { + "prediction": "I think we should remove the `commentable_id` field from the `comments` table as well.", + "reference": "Were these local edits? There doesn't appear to be a change here. If so, let's remove this from the commit." + }, + { + "prediction": "I think this should be `net/http/pprof` and not `net/http/pprof`.", + "reference": "nit: this should be further down w/ the rest of the github imports" + }, + { + "prediction": "I don't think you need to change this to `100`", + "reference": "I don't know if this is something we should address now, but we have a cents_to_dollars private method in both `SubscriptionCoupon` and `Invoice`." + }, + { + "prediction": "I think this should be `if (stream != nullptr || stream->getCtx()->_defaultStream != stream->getCtx()->getCtx()->defaultStream)`", + "reference": "Formatting here and all below: missing space before open bracket for the compound statement." + }, + { + "prediction": "Why is this removed?", + "reference": "Avoid using old mortbay utilities for converting JSON. Uses existing Solr Utils to convert from JSON string." + }, + { + "prediction": "I think this should be `CommandDirect.execute` instead of `CommandDirect.execute`.", + "reference": "I actually think this wrapping is great, but let's call it `RunCommandOperation`?" + }, + { + "prediction": "I think this should be `handler.GenericErrorPage = where` instead of `handler.ErrorPages[whatInt] = where`", + "reference": "Maybe it is better to add checking for status code duplications? It can prevent some stupid copy-paste user errors." + }, + { + "prediction": "I don't think we need this test anymore, but I think it would be better to use `expect(Invoice.find_all_by_stripe_customer_id(nil).length).to eq 0`", + "reference": "Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping." + }, + { + "prediction": "(style) line over 80 characters", + "reference": "This lea should match instr_check_xsp_mangling and be undone. I don't think i#3307 applies here." + }, + { + "prediction": "I think this should be `ipldStateThing`", + "reference": "I like the idea of this being an interface as it makes the test setup a bit easier, thoughts?" + }, + { + "prediction": "I think we should use `bytes.fromhex` instead of `bytes.fromhex` here.", + "reference": "Nit: I believe the electrum convention is to use `bfh` instead of `bytes.fromhex`. Great catch on this bug!" + }, + { + "prediction": "I think this should be `assert` instead of `raise Exception`.", + "reference": "Use a more granular error type. I would recommend `ValueError` in this case." + }, + { + "prediction": "I think this should be `if (g_events->eventPlayerOnTradeRequest(player, tradePartner, tradeItem)) { return; }`", + "reference": "A space after each argument, and an empty line above this if-statement." + }, + { + "prediction": "Why is this change needed?", + "reference": "Things like this make me wonder whether we should ship a \"development\" and a \"production\" version. I remember the discussions about making things more complex bundling wise but couldn't we omit this line in a \"production\" or \"minimal\" variant of our build? That would save us some bytes here and there. Or are we somehow able to move this line to debug? I though about monkey patching the exported function but that only works in CJS and not ESM AFAIK." + }, + { + "prediction": "This should be `void AddScopeListener(IScopeListener listener)`", + "reference": "Maybe rename to `RegisterListener` or `RegisterSubscriber`?" + }, + { + "prediction": "I think this should be `let refs = [];`", + "reference": "My one concern here is that we are adding a new array allocation for each depth of the tree which could add some non-trivial GC churn. Perhaps this would be okay if we think that refs are used through a tree commonly enough such that they'll get allocated anyway but I'm not sure refs are *that* often used. Every app has a couple, but probably not at every level of their app :/ So maybe the extra bytes are worth it in this case? Though I have no data to back up my hypothesis so I could way off lol." + }, + { + "prediction": "Line is too long. [98/80]", + "reference": "We should get rid of this big array and think about a better way to check this." + }, + { + "prediction": "I think we should use `Mvx.Resolve().Cache(request.ViewModelInstance);` instead of `Mvx.Resolve().Cache(request.ViewModelInstance);`", + "reference": "Should we cache the result of `Mvx.Resolve()` to avoid a lookup each time?" + }, + { + "prediction": "I think this should be `exc_info=True` instead of `exc_info=True`", + "reference": "If you get to this line avg_size_of_message is an undefined value, yet you use it below. You you should set this value to something in the exception block." + }, + { + "prediction": "I think this should be `/debug/pprof/`", + "reference": "let's just fold this inline in mux.go, no need for the indirection to this new file" + }, + { + "prediction": "I think this should be `BlockStmt` instead of `BlockStmt`.", + "reference": "This bit confused me just now as I was reading through -- turns out this is due to the `{@link}` on line 316. Reading up on this, the alternative seems to be to state the fully qualified name instead. Happy to edit if requested as I don't have a strong view either way (perhaps a small leaning towards keeping the import)." + }, + { + "prediction": "I think this test should be `assertEquals(0, tokens.size());`", + "reference": "There's a unnecessary System.out." + }, + { + "prediction": "I think we should add a `c.arpNodePortVirtualResponderFlow()` to the list of flows. I think we should add a `c.serviceGatewayFlow(true)` to the list of flows.", + "reference": "Should we add the flows only when NodePort is enabled?" + }, + { + "prediction": "I think this should be `m4_define([release_version], [3])` instead of `m4_define([release_version], [3])`", + "reference": "ITYM to flip this one..." + }, + { + "prediction": "I think this should be `plugin:@typescript-eslint/recommended`", + "reference": "What's the difference between typescript-eslint/eslint-recommended and typescript-eslint/recommended? I really can't get it." + }, + { + "prediction": "I think it would be better to have a default value for `IdleTimeout` and `AttackTimeout` for `AttackTimeout` and `AttackTimeout` for `IdleTimeout` and `AttackTimeout` for `AttackTimeout` and `AttackTimeout` for `IdleTimeout` and `AttackTimeout` for `AttackTimeout`.", + "reference": "Thinking: Maybe it would be more useful to define this in terms of RTTs. That would also make it easier to switch this to a bool, since we could then pick a reasonable default value. Unless of course an attacker could influence our RTT estimate. Is that the case?" + }, + { + "prediction": "Why is this removed?", + "reference": "Why is this line deleted?" + }, + { + "prediction": "I think this is a bit confusing, but I think it would be better to use `node.store.block_count(transaction).sum() >= node.ledger.bootstrap_weight_max_blocks` instead of `node.store.block_count(transaction).sum() >= node.ledger.bootstrap_weight_max_blocks`.", + "reference": "minor type `boostrap`" + }, + { + "prediction": "Why is this needed? I think it would be better to use `java.util.Iterator` instead of `java.util.Iterator`.", + "reference": "Nit: please don't separate imports into groups." + }, + { + "prediction": "I think this should be `allCategoryButton.setSelectedElement(event -> getControl().getOnAllCategorySelection().run());` and `allCategoryButton.setSelectedElement(null);`", + "reference": "Thinking if it would be nice to have something like `setNothingSelected`." + }, + { + "prediction": "Why is this change removed?", + "reference": "I think this is a useful InfoLevel message. In production, if webhook client connections suddenly start failing due to change of serving cert, you'd want to see this information in the logs." + }, + { + "prediction": "Why is this change needed?", + "reference": "Generally, if cast from int to char*, you could cast directly. Because no errors should happen." + }, + { + "prediction": "I think this should be `1000*60*10`", + "reference": "Is 10 min too long? What do you think about 1 minute? Unless there are many jobs in this state, I don't expect the CPU overhead to be too high." + }, + { + "prediction": "I think this should be `*BackendServiceConfig`", + "reference": "can you remind me why we keep the pointer if it's a `map[string]`? are there other scenarios where the pointer is kept?" + }, + { + "prediction": "I think this method should be `public RewriteDataFilesAction maxParallelism(int parallelism) { return this; }`", + "reference": "Would it make sense to also add `setMaxParallelism` in addition to this to match the Flink API?" + }, + { + "prediction": "I think this is a good idea to move the action to the parent component. I think we should move the action to the parent component.", + "reference": "Not needed for actions. `_super(...arguments)` is only needed when you're extending from a base class and want to run the logic in the base class before your own logic" + }, + { + "prediction": "I don't think we need to set `suspended: false` here.", + "reference": "I still need to run this code to verify my understanding, but my first reading through makes me think this may need to be `suspendingComponent._vnode` since we set `vnode._hydrating` on the vnode that threw the error (diff/index.js:275), not on `Suspense._vnode` (though we could in Suspense's `_catchError` implementation at the top of this file)." + }, + { + "prediction": "I think this should be `if os.path.exists(path)` instead of `if path is not None`", + "reference": "I think it's a good idea to log this as debug, the same way the other branch gets logged." + }, + { + "prediction": "Why is this change needed?", + "reference": "1:D100: Docstring missing 35:D101: Docstring missing 37:D102: Docstring missing 42:D101: Docstring missing 44:D102: Docstring missing 57:D102: Docstring missing 66:D101: Docstring missing 69:D102: Docstring missing" + }, + { + "prediction": "I think this should be `systemGuestRoleName`", + "reference": "keeping this as an unexported constant, as importing the role pkg creates a cyclic dependency." + }, + { + "prediction": "I think this should be `if a.Doc.RevisionOn(c.RevisionField()) { rev = a.Doc.RevisionOn(c.RevisionField()) }`", + "reference": "Why `c.RevisionField()` here but `c.opts.RevisionField` just below?" + }, + { + "prediction": "Why is this removed?", + "reference": "nit: this file diff seems unrelated and probably should have been a separate PR" + }, + { + "prediction": "I think this should be `bool *` instead of `bool *`.", + "reference": "@sjplimp just checked this API in the latte repository master branch (which is what Install.py downloads) and this still does not provide the 18th argument. We cannot merge this pull request until this is available. i would also suggest to implement a second binding, a function called latte_abiversion() returning an int with an ABI version number (starting with 1). This way, it can be tested, whether the ABI expected by the LAMMPS interface and provided by the library is compatible *before* calling the `latte()` function and risking a segmentation fault." + }, + { + "prediction": "I think this should be `_logger.Warn($\"{address} nonce is {nonce}\");`", + "reference": "Is this from debugging?" + }, + { + "prediction": "Why not use `new CategoryId('cde02652-70ce-484e-bc9d-3bf61391522d');` instead of `new CategoryId('cde02652-70ce-484e-bc9d-3bf61391522d');`?", + "reference": "Its betet use MockedObject" + }, + { + "prediction": "I think this should be `UpdateBlockMetadata` instead of `UpdateBlockMetadata`.", + "reference": "\"including\"? Since it doesn't take any parameters, I'm not sure how it can update anything else..." + }, + { + "prediction": "I think this should be `SupportedSchemesWarningMessage` instead of `SupportedSchemesWarningMessage`.", + "reference": "nit: I'm assuming you have verified this is what the error message should read like" + }, + { + "prediction": "I think this is a good idea to remove the `sys.exit` call from the `main` function.", + "reference": "Why do you need that? (real question)" + }, + { + "prediction": "I think this should be `if (CollectingSignature && c == '>')`", + "reference": "If I understand the patch correctly the `else` is no longer required." + }, + { + "prediction": "I think it would be better to add a `--blacklist-type` flag to `dealListCmd` and `--blacklist-type` to `dealListCmd` and `--blacklist-type` to `dealListCmd` and `--blacklist-type` to `dealListCmd` and `--blacklist-type` to `dealListCmd` and `dealListCmd`.", + "reference": "Properly describe valid flag values here: `neither` should be replaced with `none` as they parsed below." + }, + { + "prediction": "Shouldn't this be `logger.error(String.format(\"Exception when removing executor...\", host, port, ex));`?", + "reference": "Can we escalate this to `warn`. It is a major event." + }, + { + "prediction": "I think this should be `stateOffICMPType` and `stateOffICMPCode`", + "reference": "Please move these up to line 86 so the numbers are in order." + }, + { + "prediction": "I think this should be `self.train_cfg` and `self.test_cfg`", + "reference": "Add a docstring to contain the paper link." + }, + { + "prediction": "I think this should be `--targ=\"--target\"` instead of `--targ=\"--target=\"\"`", + "reference": "Instead of adding the `--target` flag here, the `Target` struct should be set up correctly. Assuming this is for the Raspberry Pi 3, adding it to the `cflags` key of the JSON file should be enough (if not, you can print `config.CFlags()` here to check whether `--target` is already included)." + }, + { + "prediction": "Why is this needed?", + "reference": "The changes in this file look unnecessary since `rpccontext.AuditRPCWithTypesStatus()` already does this check. Was there a reason you needed to add them?" + }, + { + "prediction": "I think this should be `batchstore.StateKey` and `batchstore.BatchKey`.", + "reference": "you could probably use `const` for both?" + }, + { + "prediction": "I don't think we need this, but I think it would be better to use `!isFocusable(node)` instead of `!isDataTable(node)`", + "reference": "This looks like an \"ES Module\" to me. I do not understand this TODO." + }, + { + "prediction": "Why is this change needed?", + "reference": "Iceberg doesn't use `final` because it is unlikely that this actually helps. In Java 8, final detection is quite good, which is why non-final variables can be used in closures and lambdas. And final doesn't produce different byte code so it can't do much to help at runtime." + }, + { + "prediction": "I think this should be `lua_pushstring(L, player->getIP().to_string().c_str());`", + "reference": "There's `pushString` to use with C++ strings." + }, + { + "prediction": "I think it would be better to have a test for `iptables-save` as well.", + "reference": "qq: Should this include the iptables6-save sim. to the inverse checks above?" + }, + { + "prediction": "I think this should be `if (!is_builtin) {`", + "reference": "What about async user writers? We could be checking `param.mode == ASYNCHRONOUS_WRITER`" + }, + { + "prediction": "I think this should be `parent.getAnnotation(\"lombok.NoArgsConstructor\")` instead of `parent.getAnnotation(\"lombok.NoArgsConstructor\")`.", + "reference": "this double check for lombok annotation + specific lombok annotation seems pointless, just keep the second (specific) check. Moreover, since we have a property with ignored annotations... why don't we use it? a user may setup the property and it will be ignored here. Also, this class should probably not extend `AbstractLombokAwareRule` anymore. We have a configurable set of annotations that suppress the warning, defaulting to ALL lombok annotations, yet we only check for `lombok.NoArgsConstructor`... Maybe directly extending `AbstractIgnoredAnnotRule` and settig the default property to `lombok.NoArgsConstructor`? Or, to avoid a breaking API change, keep extending it, but override the default. For 7.0.0 we can change the class hierarchy." + }, + { + "prediction": "I don't think we need to add the `interceptor` to the `interceptors` list, but I think it would be better to add the `interceptor` to the `interceptors` list, and then add the `interceptor` to the `interceptors` list.", + "reference": "nit: the ordering may be misunderstood, as \"invoked in the same order\" could suggest the passed-in functions are called in-order, but the actual wrapping is LIFO. Some other ways to describe it (don't think any of these are ideal, but maybe it will help you come up with something better), * the handled returned by the first interceptor is executed first * interceptors are applied outside-in (don't like the terms outside/in though) * interceptors are applied in LIFO order, leading to an earlier interceptor's handler being executed before latter interceptor handlers" + }, + { + "prediction": "I don't think this is needed.", + "reference": "We should not use a static import to be consistent with other existing use of the QueryElevationParams." + }, + { + "prediction": "(style) line over 80 characters", + "reference": "No need to check return value?" + }, + { + "prediction": "I think this should be `import importlib.resources as importlib_resources`", + "reference": "~~Feel free to ignore that one, I'll fix things up when regenerating the `requirements.txt`.~~ As for the one below, this smells like a pylint bug..." + }, + { + "prediction": "I think this should be `cpInput.NumExtraElements = len(antreaSourceStatsElementList) + len(antreaDestinationStatsElementList) + len(antreaLabelsElementList) + len(antreaLabelsElementList) + len(antreaLabelsElementList) + len(antreaLabelsElementList) + len(antreaLabelsElementList) + len(antreaLabelsElementList)", + "reference": "it's a bit strange that this doesn't match `aggregationElements` which is what I would expect. I guess I am not familiar enough with go-ipfix." + }, + { + "prediction": "(style) line over 80 characters", + "reference": "Same thing: `num_simd_registers`. Ditto below." + }, + { + "prediction": "I think this should be `2.2.0.dev0`", + "reference": "Should be 2.1.1" + }, + { + "prediction": "I think this should be `required_subject_name_for_sqs_to_sqs`", + "reference": "nitpick: `required_subject` doesn't seem to be used here" + }, + { + "prediction": "Please remove empty line.", + "reference": "We can revert this to reduce the diff of the PR." + }, + { + "prediction": "I think this should be `if presentationType == self.presType_content and not (self.presType_layout and self.presType_content)`", + "reference": "Extraneous blank line." + }, + { + "prediction": "I think we should move this to `result_handler_clang_tidy`", + "reference": "Is this the same import as in the line 20?" + }, + { + "prediction": "I think this should be `template.published? && template.version > 0`", + "reference": "why those additional checks after published? template.version should always be present and greater than zero" + }, + { + "prediction": "I think this should be `EntityReference` instead of `ExternalEntityReference`.", + "reference": "I did not see this is used in the controlplane API? Is it for internal use only? Then no need to define it here?" + }, + { + "prediction": "I think this should be `gcnArchName: \" + props.gcnArchName + endl;`", + "reference": "Should we also add a line to print gcnArch?" + }, + { + "prediction": "I don't think we need to add the `bravePageVisibility` to the `settings_brave_strings.grdp` file.", + "reference": "I merged already so need another PR, but I think this needs to be at the bottom." + }, + { + "prediction": "Shouldn't this be `HOUSE_OWNED_BY_ACCOUNT`?", + "reference": "space in key string?" + }, + { + "prediction": "I think this should be `nsexecPath` instead of `nsexecPath`", + "reference": "The commends of this function should be updated" + }, + { + "prediction": "I think this should be `reg_decoded_bbox=False` instead of `reg_decoded_bbox=False`", + "reference": "The docstring is outdated." + }, + { + "prediction": "I think this should be `dd.service` and `dd.version` and `dd.env`", + "reference": "Could rename to `ServiceVersionKey` for consistency with the suggestion to rename the TracerSetting." + }, + { + "prediction": "I think you should use `input(\"Overwrite? (y/n) \")` instead of `input(\"Overwrite? (y/n)`.", + "reference": "I seem to recall a UI issue with this... @akarve I think you didn't like this for some reason..." + }, + { + "prediction": "Why is this change needed?", + "reference": "The `MediaBlockService` commit must be remove" + }, + { + "prediction": "I think this test should be `assertEqual(len(rre.SUPPORTED_RETENTION_RES_TYPES) == len(rre.SUPPORTED_RETENTION_RES_TYPES))`", + "reference": "Use a literal constant here, and use `assertEqual`, e.g. `self.assertEqual(2, len(...))` You should also check that the number of rules is correct, i.e. 1 rule for buckets, 0 rules for tables." + }, + { + "prediction": "I don't think we need to do this.", + "reference": "@Murderlon Should it just say `some future version`?" + }, + { + "prediction": "I think this should be `c.populateVersion(cspcObj, openebsNameSpace)` instead of `c.NewPoolConfig(openebsNameSpace, openebsNameSpace)`", + "reference": "change looks good.. but, better to make populateVersion to return same object in the case of error.. that avoids lot of complex logic and probable issues" + }, + { + "prediction": "I think this should be `explorer.GetBlockOrActionByHash(hashStr)`", + "reference": "invalid operation: exp (variable of type *Service) has no field or method getAddressDetails (from `typecheck`)" + }, + { + "prediction": "Why is this change needed?", + "reference": "Probably overkill, but maybe we should be using a fake clock here. I won't push on whatever you decide though." + }, + { + "prediction": "Why is this change needed?", + "reference": "If you feel like it, may as well apply all the suggestions below to this test too." + }, + { + "prediction": "I think this should be `newPointQuery(field, queryRelation, minLatitude, maxLatitude, minLongitude, maxLongitude)`", + "reference": "do we really need a relation or can we just assume INTERSECTS?" + }, + { + "prediction": "Why is this changed?", + "reference": "Is this a `MetricKey` ?" + }, + { + "prediction": "I think this should be `2524608000000L` instead of `2524608000000L`", + "reference": "what's your rationale to pick up this date?" + }, + { + "prediction": "I think this should be `cgroups/fscommon.go`", + "reference": "NIT: I'd have preferred that the new package be called \"utils\", but that's not a big deal." + }, + { + "prediction": "I think this should be `s3.ruby.s3_add_default_sse_encryption`", + "reference": "Simple Storage **Service**" + }, + { + "prediction": "Why not use `$solrConfiguration->getEnableCommits()`?", + "reference": "I think, retrieving the setting could also be done outside the loop. What do you think?" + }, + { + "prediction": "I don't think we need to do the validation here.", + "reference": "This TODO isn't related to this change. We should remove it." + }, + { + "prediction": "I think this should be `logger.info(\"Using delegate supplier: \" + clazz.getName());` and `logger.finest(\"Using delegate supplier: \" + clazz.getName());`", + "reference": "We chose `info` in the test code for obvious reasons. Changing to `finest` makes debugging harder and noisier." + }, + { + "prediction": "I think this should be `if subscript.as_string() == subscript.parent.value.as_string():`", + "reference": "I'm not really sure this is worth it. Keep in mind that every special case we add has the potential to introduce new errors and complicates the code further. For common cases that is acceptable, but in this instance I don't think it's beneficial." + }, + { + "prediction": "I think this should be `if agent.Selectors != nil { env.Printf(\"Selectors: %s:%s\\n\", s.Type, s.Value)`", + "reference": "nit: this `if` isn't necessary since we immediately follow it up with a range over the slice, which works fine with a `nil` slice." + }, + { + "prediction": "I think this should be `const Outfit* playerOutfit = Game::getInstance()->getOutfitByLookType(player->getSex(), outfit.lookType);`", + "reference": "Remove this line please." + }, + { + "prediction": "I think this should be `eligibleTemplatesForAutoUpdate` instead of `eligibleTemplatesForAutoUpdate`", + "reference": "why is this is class field? it should be something local within the auto apply template method since we only need this once to process templates and never use again." + }, + { + "prediction": "I don't think we need to do this, but I think it's a good idea to use `getAriaRoles` and `getAriaAttrs` to get rid of `getAriaRoles` and `getAriaAttrs`", + "reference": "I agree with Stephen it's better to invoke getStandards() only once." + }, + { + "prediction": "I think this should be `irregular_dims`", + "reference": "After discussing what ``irregular_dims`` really is, we agreed that we need a better name that makes it clearer that this is more of an xarray concept of irregular dimensions than a holoviews one." + }, + { + "prediction": "I think this should be `LOG.finest(\"Created container \" + id);`", + "reference": "This code is new and not tested well. While we may drop the log level before we ship 4.0, right now this is extremely helpful to users." + }, + { + "prediction": "I think this should be `th:nth-child(2)` instead of `th:nth-child(2)`", + "reference": "this makes sure there is some padding space around the size column" + }, + { + "prediction": "I think this should be `#include \"Util/LuaUtil.h\"`.", + "reference": "Put these includes in alphabetical order" + }, + { + "prediction": "I think we should use `isinstance(parent, JAB)` instead of `isinstance(parent, JAB)`", + "reference": "Can this just be an else?" + }, + { + "prediction": "I think this should be `mmdet.utils.get_root_logger`", + "reference": "Merge this line with Line7" + }, + { + "prediction": "I think this should be `clearfix` instead of `clearfix`", + "reference": "`clearfix` is needed to stop the `float:right` content overflowing the list item container." + }, + { + "prediction": "I think this should be `[ParameterizedJobConfig(typeof(CoreConfig))]` instead of `[ParameterizedJobConfig(typeof(CoreConfig))]`", + "reference": "Can this be put on the assembly?" + }, + { + "prediction": "Shouldn't this be `Boolean.parseBoolean(req.getParameter(\"alwaysOk\"));`?", + "reference": "Could we rename the parameter to `overrideStatusCode`? The name `alwaysOk` implies that the health check result would be always healthy. " + }, + { + "prediction": "I don't think we need the `/schedpolicy/{name}/` route here.", + "reference": "\"/schedpolicy\" is repeated, i would make it a constant and use it here and cluster client.go" + }, + { + "prediction": "I don't think we need to do this, but I think it would be better to have a method named `order_built_in?` and `order_built_in?` and `order_built_in?` and `order_built_in?` and `order_built_in?` and `order_built_in?` and `order_built_in?`", + "reference": "Having a second `configuration` arg seems kinda odd to me as an interface. It looks like you're just using it as a form of dependency injection for the tests, right? Part of what makes it seem weird is that it's leaked into all the other orderers where they don't use `configuration` at all. Instead, what do you think about accepting the configuration in `initialize` (and having it default to `RSpec.configuration` in the same way)? To me, the config feels like a bit of state the instance should hold onto rather than being given each time `order` is called. It also means the other orderers wouldn't need to take the odd second argument. Thoughts?" + }, + { + "prediction": "I think this should be `if not globalVars.appArgs.secure:`", + "reference": "This button should also be disabled when in secure mode since it opens a web browser from which you can easily do a lot of insecure stuff." + }, + { + "prediction": "nit: I think we should add a `@see ExpireTableMetadata#expireAPI()` method to the `Table` class.", + "reference": "Should this be done as part of `expireSnapshots`? I'd like to avoid adding a lot of operations to `Table` because it is already a large API." + }, + { + "prediction": "I think this should be `*network.Stream` instead of `*network.Stream`.", + "reference": "I do not think that this type (and its constructor) have to be exported." + }, + { + "prediction": "I think this should be `if err != nil && skipLogOnErr { return nil }`", + "reference": "why add this? don't think it's correct? for instance, it returns ErrCandidateNotExist (not critical), in this case we should return a receipt with corresponding status" + }, + { + "prediction": "I think this should be `acme.ChallengeProvider` instead of `acme.ChallengeProvider`", + "reference": "Instead of creating a new file, put this in tls.go, like right after or before DNSProviderConstructor is defined." + }, + { + "prediction": "I think this should be `OC.getLocale()`", + "reference": "Instead of OC.getLocale() for the default value the default should be the value of the user value 'core' 'lang'. When loading the page this can be added to the parameters by retrieving $this->config->getUserValue($user->getUID(), 'core', 'lang'); in viewcontroller.php." + }, + { + "prediction": "I think this should be `interface1::interface1::interface1::interface1::interface1::interface1::interface1::interface1::interface1::interface1::interface1::interface1::interface1::interface1::interface1::interface1::interface1::interface1::interface1::interface1::interface1::interface1::interface1::interface1::interface1::interface1::interface1::interface1::interface1::interface1::interface1`", + "reference": "Why interface1 ? It should be in inner so." + }, + { + "prediction": "I think this should be `self.to_dict()`.", + "reference": "Ideally, I'd have converted dicts to object but this way was less changes so this way for now." + }, + { + "prediction": "This should be `if (tbase != t_base_type::TYPE_STRING && allocate) {`", + "reference": "Why is that test different to line 4022 (allocate is not tested there)? Shouldn't that be consistent?" + }, + { + "prediction": "I think this should be `else if (rc == -1 && evalInsDelPreCondExpr())`", + "reference": "Should we consider move this expression evaluation to SETUP_INSERT step since it evaluates from queue entry. Also, this expression is not evaluated in ExHbaseAccessVsbbUpsertTcb." + }, + { + "prediction": "I don't think we need this TODO.", + "reference": "Don't see any more TODOs here.." + }, + { + "prediction": "I think we should use `strings.HasPrefix(dockerImage, \"s3://\")` instead of `strings.Split(slice[len(slice)-1])`", + "reference": "Can you extract this out to a constant?" + }, + { + "prediction": "I think this should be `LOG.debug(\"Calling LOG with args:\")`.", + "reference": "any testcase for saargs, and tidyargs argument processing?" + }, + { + "prediction": "I think this should be `_platformNotSupportedExceptionMessage` instead of `_platformNotSupportedExceptionMessage`.", + "reference": "@ericstj do you think it is worth combining these two? With the presence of the message meaning it is enabled?" + }, + { + "prediction": "I think this should be `if devName == \"/dev/xvda\" || devName == \"/dev/xvda\"`", + "reference": "why not use instance.RootDeviceName ?" + }, + { + "prediction": "I don't think this is necessary.", + "reference": "not needed, ADIOS2 also needs to check for subfiles. ADIOS2 tries to remove dependency on serial `fstream`." + }, + { + "prediction": "Is there a reason we don't have a `loadExtension` method?", + "reference": "no need to wrap in new Promise - you can simply throw the exception" + }, + { + "prediction": "I think this should be `TestOCSPManualConfig(t *testing.T)` instead of `TestOCSPManualConfig(t *testing.T)`", + "reference": "Isn't this testing an implicit config, not a manual config?" + }, + { + "prediction": "This is a bit confusing, but I think it would be better to use `chainToDataplaneHashes` instead of `chainToDataplaneHashes` and `hashToFullRules` to make it easier to read.", + "reference": "I don't think this is used any more, please remove." + }, + { + "prediction": "Why not use `myId` instead of `myId`?", + "reference": "shouldn't we name abbreviations up-cased? `myId` -> `myID`?" + }, + { + "prediction": "I think this should be `if (node[ATTR_KEY] != null) applyRef(node[ATTR_KEY].ref, null);`", + "reference": "This just always calls refs. I think we need to either hoist ref invocation back out of `setProperty()` (it used to happen during rendering), or wait for component recycling to go away." + }, + { + "prediction": "I think this should be `t.Errorf(\"Error registering the controller: %v\", err)`", + "reference": "Oof. I may have missed this while reviewing #3805" + }, + { + "prediction": "I think this should be `#include ` instead of `#include `", + "reference": "why the NOLINTs here? please just alphabetize the headers (should be easier than adding NOLINTs) unless there's a good reason not to..." + }, + { + "prediction": "I think this should be `const ReactComponent = () => ReactComponent;`", + "reference": "Should we maybe return `` instead?" + }, + { + "prediction": "I don't think this is needed anymore.", + "reference": "Please use camelCase in new code" + }, + { + "prediction": "I think this should be `contact-us` or `contact-places`", + "reference": "Looks like the whitespace is off here. Not sure if there's a space or two too many or if there is an issue with tabs vs. spaces, but you probably want to fix this :)" + }, + { + "prediction": "I don't think we need to add a note here.", + "reference": "This was just my laziness and I didn't copy the first line. Just remove it together with one empty line. Thanks" + }, + { + "prediction": "Shouldn't this be `use Shopsys\\FrameworkBundle\\Model\\Product\\ProductDataFactoryInterface;`?", + "reference": "Why did you decide to change CartItemTest but you didnt change QueryBuilderWithRowManipulatorDataSourceTest?" + }, + { + "prediction": "I think this is a bit confusing, but I think it would be better to just check if the pollForKID is the same as the cachedUserInfo.VerifyingKeys.", + "reference": "This was sort of a pre-existing bug -- we should be busting our local cache if the key isn't present. However, `KBPKIClient.HasVerifyingKey` already took care of it on that path. This way is better though." + }, + { + "prediction": "I think this should be `go1.15 && integration`", + "reference": "Should this tag addition for generated files be handled explicitly in `private/model/cli/gen-api/main.go`" + }, + { + "prediction": "Is there a reason why we don't show a notification if quiet time is enabled?", + "reference": "You want to return if it's quiet time and notifications during quiet time are **not** enabled. So this is either a logic error or it's bad naming of the setting/field/method." + }, + { + "prediction": "Line is too long. [89/80]", + "reference": "Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping." + }, + { + "prediction": "I think this should be `repo_private? && custom_ssh_key?` instead of `force_private?`", + "reference": "cool, here (L146 && L148) maybe (repo_private? || force_private?) && !installation? to prevent double call of installation?" + }, + { + "prediction": "I think this should be `err: %v` instead of `err: %v`", + "reference": "this error carries a bit more meaning for us, but less meaning for users. we also lose the context of what command produced the failure. I'd prefer to keep the original error message. If we need better identification of GetActiveApp errors, maybe we could address that in the error messages it returns?" + }, + { + "prediction": "I don't think we need to do this, but I think it would be better to use `clusterTLSInsecureWarning = \"TLS certificate chain and hostname of solicited routes will not be verified, do not use in production!\"`", + "reference": "Same: DO NOT USE IN PRODUCTION. Yes we should shout ;)" + }, + { + "prediction": "Why is this change needed?", + "reference": "This change may be hiding more errors, if we continue to see more." + }, + { + "prediction": "I think this should be `ConnectionFeatures[typeof(TFeature)]` instead of `ConnectionFeatures[typeof(TFeature)]`.", + "reference": "Beware of exposing the underlying features directly. Any mutable fields should be reset per request." + }, + { + "prediction": "I don't think this is needed.", + "reference": "This is probably more nuanced than I can feasibly check in a PR review, haha. Was the issue here that `replaceChild()` removes `initialBase` from the DOM before `recollectNodeTree()` invokes `componentWillUnmount()` on the owning component?" + }, + { + "prediction": "I think this should be `testCannotClickDisabledButton` instead of `testCannotClickDisabledButton`", + "reference": "I believe it's misleading name for the condition. I prefer \"element_to_be_disable\" We can have a condition, when element is enabled but we can't click it, because another element overlays above it. So, If we use \"unclickable\" we might mislead people, who use that condition to verify if element can be clicked" + }, + { + "prediction": "I think this should be `FileAppender` instead of `FileAppender`", + "reference": "Do we need to expose it? It looks like it is only used in tests and only to obtain the final metrics. I think you can get the same by using `DataFile#lowerBounds` and `DataFile#upperBounds`. It seems `DataWriter` already exposes `toDataFile` that you can use." + }, + { + "prediction": "Why did you change this?", + "reference": "the test was failing likely due to locale issue. had to increment the date by 1 to make it pass" + }, + { + "prediction": "Why is this removed?", + "reference": "The changes below here can also be undone." + }, + { + "prediction": "I think this should be `beehiveContext`", + "reference": "Instead of importing context besides beehivecontext, I'd suggest include golang context functionalities into beehivecontext. To keep channelq only rely on beehive." + }, + { + "prediction": "I think this should be `private AddProductNutritionFactsData addProductNutritionFactsData(CustomValidatingEditTextView editText) {`", + "reference": "I'm not sure about this one. Are you sure we don't need to initialize this fragment anywhere else?" + }, + { + "prediction": "I think it would be better to use the same `detailedBolusInfo.carbs > 0` as `detailedBolusInfo.carbs > 0` as `detailedBolusInfo.carbs > 0`", + "reference": "You didn't set a source here, so it will probably fail." + }, + { + "prediction": "Why is this change needed?", + "reference": "Might be easier to just do `handler{Handler: rpcHandler}` since zero-value of `Deps` is now valid." + }, + { + "prediction": "I think this should be `fetch('movie.title')` instead of `fetch('movie.title')`", + "reference": "Could you please add docs for this method?" + }, + { + "prediction": "I think this method should be `final` and not `final`.", + "reference": "we should probably `@Deprecated` this implementation to be removed in PMD 7.0.0" + }, + { + "prediction": "I think we should use `Bash::Powershell.new(target, self)` instead of `Bash::Powershell.new(target, self)`", + "reference": "I wonder if 'unix' makes more sense for this now? I was thinking of putting up a 'cleanup' PR - I think I missed a few \"remote\" var names in the first PR, and want to reassess unifying the transport classes that just define `with_connection`. Renaming this could be part of that." + }, + { + "prediction": "I think we should be able to change this to `1.0.0-beta.5`", + "reference": "Do something similar to what was done in JsonTests (can you derive from JsonTests?)" + }, + { + "prediction": "I think this should be `# type: ignore`.", + "reference": "Yes, not much we can do here." + }, + { + "prediction": "I think this should be `go.uber.org/zap/testing`", + "reference": "Why do we need this?" + }, + { + "prediction": "I think this should be `var address = new Address(network.addressScript, network.addressScript);`", + "reference": "Would prefer to see an actual script here." + }, + { + "prediction": "I think this should be `String.format(\"Could not transfer all bytes of \" + from.toPath());`", + "reference": "seems reasonable to also want to include the 'to' location?" + }, + { + "prediction": "why remove this?", + "reference": "This change is unnecessary." + }, + { + "prediction": "I don't think we need to do `unselectAll()` here.", + "reference": "Just as a note: Is it possible that the select css class is the same as the hover one? If this is true we should choose a different style for the selection css class, to make it more clear to the user I think." + }, + { + "prediction": "I think this should be `[]string` instead of `[]string`", + "reference": "What about Secrets, are we not also trying to cover those?" + }, + { + "prediction": "Why is this needed?", + "reference": "(commit messge): how about > update internal commit API for RFC 11" + }, + { + "prediction": "I think this is a bit confusing, but I think it would be better to use `request.ConstantWaiterDelay(5 * time.Second)` instead of `request.ConstantWaiterDelay(5 * time.Second)`", + "reference": "This will now wait for 2.5 hours, not 90 minutes, if the waiter delay is 5s" + }, + { + "prediction": "I think this should be `if (!event)` instead of `if (!event)`", + "reference": "See this error on console too so I don't think it's just test simulation. For some reason event doesn't show up sometimes" + }, + { + "prediction": "I think we should be able to remove the `etcdsnapshotCommand` from the `cmd.go` file.", + "reference": "We're passing the same thing twice?" + }, + { + "prediction": "I think this is a good idea to use `StringPtr(\"dXNlci1kYXRhCg==\")` instead of `StringPtr(\"dXNlci1kYXRhCg==\")`", + "reference": "Shouldn't the value in Bootstrap.Data be just a plain string?" + }, + { + "prediction": "I think this should be `SamplingPriority.UserKeep` instead of `SamplingPriority.AutoReject`.", + "reference": "@robertpi Isn't this changing the sampling priority when `KeepTraces==false`? The sampling priority could be `AutoReject` or `AutoKeep`, based on the sampling decision (or the user may have specified something else). Seems like we shouldn't be changing it in this case?" + }, + { + "prediction": "I think this should be `/readyz.crt` or `/readyz.crt`", + "reference": "The const can also be used in cloud/pkg/cloudhub/servers/httpserver/server.go L46-47?" + }, + { + "prediction": "I think we should remove the `if (blocks[i].type === 'procedures_prototype') {` check here.", + "reference": "Use a constant for `procedures_prototype`." + }, + { + "prediction": "I think this should be `f'Bad key: {arg!r}'`", + "reference": "This file should probably not be touched as the formatting of the string seems to be a test in itself ?" + }, + { + "prediction": "I think this should be `#if defined(X64) && !defined(LINUX) && !defined(LINUX)`", + "reference": "style nit: missing leading '*'" + }, + { + "prediction": "Why is this change needed?", + "reference": "The operationTracer is passed into the processTransaction() method. We should probably pass the no tracing in one in from where it is called." + }, + { + "prediction": "Why is this change needed?", + "reference": "I believe this line was an error, it should have been `sercomRXPad1` to be consistent with the pin numbers. Resolving this ambiguity by following the pin numbers." + }, + { + "prediction": "I think we should add a `View This Request` link to the `view_this_request` link to the `view_this_request` link to the `view_this_request` link to the `view_this_request` link to the `view_this_request` link to the `view_this_request` link to the `view_this_request` link to the `view_this_request` link.", + "reference": "May be useful to have the reason here, though clearly not pressing." + }, + { + "prediction": "I don't think we need to do this, but I think it would be better to use `np.stack` instead of `np.stack`.", + "reference": "These were inverted before" + }, + { + "prediction": "I think this method should be called `getViewMembers` instead of `getViewMembers`", + "reference": "DB is implemented in PR 951" + }, + { + "prediction": "I don't think we need to change this to `bytesToGB` and `bytesToMB`?", + "reference": "move all constants to `pkg/util/constants.go`, these constants had been used in `volume_stats.go` file too. So better to import them." + }, + { + "prediction": "I think we should remove the copyright header here.", + "reference": "Could you revisit the full header and add appropriate spaces after the hashes?" + }, + { + "prediction": "I think this should be `@var string Hint to show above the code editor`.", + "reference": "This should either be `hint` that takes a string to render inside of the partial container or probably better you should just render a separate hint field above the code field in the same tab." + }, + { + "prediction": "Why is this change needed?", + "reference": "this was flapping" + }, + { + "prediction": "I think this should be moved to the `CenterView` method.", + "reference": "Please add a check to see if SafeAreaInsets is available. It isn't on all iOS versions." + }, + { + "prediction": "I don't think we should use `%` here.", + "reference": "interpolation here was causing the translation to not get picked up" + }, + { + "prediction": "Why not just remove the writer from AsyncWriterThread?", + "reference": "We don't need to disable the flow controller here as in `StatefulWriter`s destructor?" + }, + { + "prediction": "I think this should be `create_no_window=False` instead of `create_no_window`", + "reference": "I would rather no have this as a `kwarg` as it encourages \"growth\" which lead to an unweildy constructor in other classes. Let's add a method or property to take care of this instead as I think it's usage is going to be quite low." + }, + { + "prediction": "I think this should be `ChainToWorkloadDispatch` instead of `ChainToWorkloadDispatch`", + "reference": "I just noticed that we use Return here, when we have logically allowed a packet, whereas in the forward chain we use AcceptAction. Do you know why that is?" + }, + { + "prediction": "I think this should be `if x < y { return y } { return x } }`", + "reference": "There's one for floats but not for ints. The float implementation is non-trivial though which I guess is the argument there." + }, + { + "prediction": "I think this should be `DCRedirectionPolicySelectedAPIsForwarding` and `DCRedirectionPolicyAllAPIsForwarding`", + "reference": "If we have a redirection policy for Selected API forwarding, why isn't \"redirect all\" just a special case where they are all Selected?" + }, + { + "prediction": "I think this should be `FrameworkCustom` instead of `FrameworkOpentelemetry`", + "reference": "I wouldn't add this. Just completely ignore config if custom reporter is not `nil` in server options." + }, + { + "prediction": "I think we should use `std::stringPrintf(\"%s/%s\", paths[0].c_str(), \"/storage.cluster.id\");` instead of `std::stringPrintf(\"%s/%s\", paths[0].c_str(), \"/storage.cluster.id\", paths[0].c_str(), paths[0].c_str(), paths[0].c_str(), paths[0].c_str(), paths[0].c_str(), paths[0].c_", + "reference": "What's the meaning about the code?" + }, + { + "prediction": "I think we should use `StringUtils.contains(loadingUrl.getHost(), bridge.getServerUrl())` instead of `StringUtils.contains(loadingUrl.getHost(), bridge.getServerUrl()).contains(bridge.getHost())`", + "reference": "Would this incorrectly trigger if `loadingUrl.getHost() = \"something.app\"` and `bridge.getHost() = \"app\"`?" + }, + { + "prediction": "I think this should be `True` when using `IoULoss`, `GIoULoss`, or `DIoULoss`", + "reference": "Note generally it -> It" + }, + { + "prediction": "Why do we need this?", + "reference": "Does this mean that every call to `configSet.getIndexSchema()` will create a new schema object (if shared schema is not enabled)?" + }, + { + "prediction": "I don't think we need to change this file.", + "reference": "License header should use the Apache one." + }, + { + "prediction": "I think this should be `fmt.Errorf(\"No matches found for this glob\")`", + "reference": "I think this makes more sense to be applied within the parser code where we evaluate the `glob` builtin? This function looks generic in the sense of where it can be used, and perhaps no matches is fine in other cases?" + }, + { + "prediction": "I think this should be `if config.AWSRegion == \"\" {`", + "reference": "should we validate that AWSRegion has also been set here so that we don't get into the if-block that relies on the ec2 metadata client below?" + }, + { + "prediction": "I think we should add a `__version_info` argument to the `__queryReport` method.", + "reference": "maybe naming `version` to `package_version` or something similar can be more descriptive" + }, + { + "prediction": "Why is this change needed?", + "reference": "Why was this changed?" + }, + { + "prediction": "I think this should be `!arm64` and not `!arm64`.", + "reference": "Should not have snuck in here right? This is a golang 1.17 feature, wii definitely want to update these" + }, + { + "prediction": "I think this should be `current_user.can_org_admin?` instead of `current_user.can_org_admin?`", + "reference": "Pundit is unaware of namespacing, however you can still create the class under policies/org_admin/plans_policy.rb. That means, the condition for the unless can be reused in other places too. You would call the policy as OrgAdmin::PlansPolicy.new(current_user).index? after that unless" + }, + { + "prediction": "I think this should be `LOG.warning(\"This analysis could be faster, please consider using Incremental Analysis: \" + version + \"/pmd_userdocs_getting_started.html#incremental-analysis\");` and `LOG.warning(\"This analysis could be faster, please consider using Incremental Analysis: \" + version + \"/pmd_userdocs_getting_started.html#incremental-analysis\");` and `LOG.warning(\"This analysis could be faster, please consider using Incremental Analysis: \" + version + \"/pmd_userdocs_getting_started.html#incremental-analysis\");`", + "reference": "this warning shouldn't be produced if we configured a cache either" + }, + { + "prediction": "I think we should use `deleteMany` instead of `deleteMany`.", + "reference": "what if the collection is already there?" + }, + { + "prediction": "Why is this change removed?", + "reference": "instead of removing can you reference org.openqa.selenium.TakesScreenshot ?" + }, + { + "prediction": "I don't think this is needed anymore.", + "reference": "Please revert unrelated changes" + }, + { + "prediction": "I think this should be `if (countlyGlobal.company && jQuery.i18n.map[key].replace(\"Countly\", countlyGlobal.company));`", + "reference": "As far as I know, this will replace only first occurance of Countly, not others, if there are more than one Countly word in localized string" + }, + { + "prediction": "Why is this change needed?", + "reference": "I suggest, that we move the regex (`[^a-zA-Z0-9_]`) to a separate constant field, because we're using it in multiple places and I think it's quite prone to misspellings." + }, + { + "prediction": "Why is this needed?", + "reference": "Feel free to disregard, but I've been trying to use `Mapping` and `Sequence` instead of `Dict` and `List` when possible, because they communicate that the type is immutable, and also are covariant." + }, + { + "prediction": "I think this should be `github.com/nats-io/jwt/v2` and `github.com/nats-io/nkeys`", + "reference": "No need for blank line here. This block will then be reordered alphabatically." + }, + { + "prediction": "I think this should be `cluster` instead of `cluster`", + "reference": "let's call it `in-cluster` instead of `local`. less chance of confusion." + }, + { + "prediction": "Why do we need to set the `prev_ref` here?", + "reference": "Please use camelCase instead of underscore_case" + }, + { + "prediction": "I think this should be `info = extract_parquet(get_bytes(obj[\"Body\"], compression), as_html=False)[0]`", + "reference": "Ideally, we'd fold the schema into an expanded system_meta, but this is a good first step." + }, + { + "prediction": "Shouldn't this be \"fields\"?", + "reference": "Is this used?" + }, + { + "prediction": "Why is this needed?", + "reference": "Should we use `#if NETFRAMEWORK` for consistency with the other projects?" + }, + { + "prediction": "I think we should add a TODO to the error message.", + "reference": "If it parses failed, both of the `containerName` and `podId` should be the empty strings, it's non-sense to define this error, I suggest just return it." + }, + { + "prediction": "Why did you remove this?", + "reference": "line 26 can be removed i think > applicationId: or('config.unsplashAPI.applicationId', 'settings.unsplash.applicationId')," + }, + { + "prediction": "I think it would be better to use `std::string(\"gpu\") == std::string(\"cpu\")` instead of `std::string(\"gpu\") == std::string(\"cpu\")`", + "reference": "To generalize for possible future new enum options." + }, + { + "prediction": "I think this should be `os.environ.get(\"PWD\", os.getcwd())` instead of `os.environ.get(\"PWD\", os.getcwd())`", + "reference": "Shall we remove this variable at the end of UTScapy execution?" + }, + { + "prediction": "I think it would be better to use `model.getSymbolTable().getInterfaces().asList();` instead of `model.getSymbolTable().getInterfaces().asList();`", + "reference": "What is this checking for? Why is returning the list of interfaces the correct behaviour in this case?" + }, + { + "prediction": "I think this should be `HMBSync` or `FastSync`.", + "reference": "Please name it correctly as Beam ;)" + }, + { + "prediction": "I think this should be `return ok && tkValid`", + "reference": "After chatting with Andrew, we think it's better to look for this particular error string that is causing issues (\"connection reset by peer\") instead of blindly retrying on any error we don't know about." + }, + { + "prediction": "Why is this abstract?", + "reference": "any reason to not have defaults here like you had before? (ARM)?" + }, + { + "prediction": "I don't think we need to do this, but I think it's better to use `page_info.limit_value` instead of `@response.limit_value`.", + "reference": "This is a change. The old code was just wrong before, but now here (and one other machine-readable place) we expose the start index as 0 for the first item." + }, + { + "prediction": "Why is this change needed?", + "reference": "This changes the behavior of the parser, right? Any particular reason to do this aside from the fact that you have to since the function takes a const?" + }, + { + "prediction": "I think this is a bit confusing, but I don't think we need to do this.", + "reference": "Given how simple the Portal implementation is, I wonder if we should move it core... Though we'd have to export it which would be more bytes we can't crawl back..." + }, + { + "prediction": "I think this should be `s.hooks = utils.clone(this.s.hooks);`", + "reference": "The more correct way of doing this is `this.s.hooks.clone()` but either way works. Thanks for finding this :+1:" + }, + { + "prediction": "Why is this change removed?", + "reference": "Can we update bool to an enum instead of a string? This helps future extensibility" + }, + { + "prediction": "Use Time.zone.parse('2015-10-01') instead of Time.zone.parse('2015-10-01') instead of Time.zone.parse('2015-10-01')", + "reference": "Should we share, since this is also being used with gsa18f?" + }, + { + "prediction": "I think we should add a `id=\"crash-data-subrow\" class=\"datatablesubrow\">", + "reference": "There can be multiple subrows, so it is not a good idea to use `id` there, as id should identify single unique element. Instead you could just add the id of whole table or of whole crash plugin view" + }, + { + "prediction": "Why was this removed?", + "reference": "Why was this assert removed? Shouldn't we check if the file is in the zip?" + }, + { + "prediction": "I think this should be `glog.V(4).Infof(\"spc %s is not reconciled reason upgrade value: %s\", spc.Name, spc.Labels[string(apis.OpenEBSUpgradeKey))`", + "reference": "This logic should be handled at informer handle functions i.e. AddFunc, UpdateFunc, DeleteFunc" + }, + { + "prediction": "I think this should be `IsStripePoolSpec(poolSpec *apisv1alpha1.PoolSpec)` instead of `IsStripePoolSpec(poolSpec *apisv1alpha1.PoolSpec)`", + "reference": "S1008: should use 'return ' instead of 'if { return }; return ' (from `gosimple`)" + }, + { + "prediction": "I think this should be `title` instead of `prevTitle`", + "reference": "Just to remove branching, use `defaultTitle` explicitly in the test cases. (Is this gofmt'd?)" + }, + { + "prediction": "I think this should be `SampleTransformer.create(SampleType.IN_CODE)` instead of `SampleTransformer.create(SampleType.IN_CODE)`", + "reference": "I don't think you use this variable anywhere. (You call `SampleTransformer.newBuilder()` below)" + }, + { + "prediction": "I think this should be `chirp_reli_hash(hostname, path, algorithm, digest, stoptime);` or `chirp_reli_hash(hostname, path, algorithm, digest, stoptime);`", + "reference": "The digest is in binary and variable size (the digest size is result if > 0). So we can't use xxstrdup." + }, + { + "prediction": "Shouldn't this be `long timestamp`?", + "reference": "We don't need this additional method." + }, + { + "prediction": "I think this should be `GetStreamOutbound() StreamOutbound`", + "reference": "We can't do this. Adding a method to an interface is a breaking change. This was an oversight on our part when we converted ClientConfig from a struct to an interface. OutboundConfig was introduced to fix this, the idea being that we should use OutboundConfig everywhere instead of ClientConfig. In case of Dispatcher, we want to use the OutboundConfig and MustOutboundConfig methods instead of ClientConfig, and for streaming, the client needs to attempt to upcast a ClientConfig to OutboundConfig and error out if that's not possible." + }, + { + "prediction": "I think this should be `get_default_participant_qos()` instead of `get_default_participant_qos()`.", + "reference": "Why not using the constant `PARTICIPANT_QOS_DEFAULT` here?" + }, + { + "prediction": "I think this should be \"cpp\" instead of \"cpp\"", + "reference": "Shouldn't this be `tm_cpp` to match `temporalImp`? (There are multiple CPP implementations, so 'cpp' is ambiguous.)" + }, + { + "prediction": "Line is too long. [98/80]", + "reference": "Need to remove this empty line for rubocop to be happy." + }, + { + "prediction": "Why is this removed?", + "reference": "just checking: do we need to remove this because otherwise the `List` operations may not return the entire set of Pods / Namespaces? do you know why we used `alwaysReady` in the first place, I can't remember?" + }, + { + "prediction": "Why not just use `mongoClient.s.options.autoEncryption.cryptdConnectionString`?", + "reference": "maybe we can replace `mongoClient.s.options.autoEncryption.cryptdConnectionString` with `options.autoEncryption.cryptdConnectionString`?" + }, + { + "prediction": "(style) line over 80 characters", + "reference": "But we're already doing os_switch_lib_tls to app a few lines above, so there is now redundancy we should alleviate." + }, + { + "prediction": "I think this should be `spanId`?", + "reference": "Under what circumstance would we have a span id already? Is this for testing purposes?" + }, + { + "prediction": "Is there a reason for this change?", + "reference": "The original text can be read to say \"not waited on by queue ...\" meaing that the second queue was supposed to have *waited* for the signal... which is especially confusing when it's the same queue that has signalled the semaphore *twice* without a wait." + }, + { + "prediction": "why is this change needed?", + "reference": "just clarifying the error messages a bit." + }, + { + "prediction": "I think this should be \"app-started\" and \"app-dependencies-loaded\" and \"app-integrations-changed\"", + "reference": "Have those (and other data like conf...) shared across tracers?" + }, + { + "prediction": "I think this is a good idea, but I don't think we need to add the `!windows` package here.", + "reference": "could we add this file only when we need one?" + }, + { + "prediction": "I think this should be `acmeDNS01ConfFile`", + "reference": "This may not even be needed." + }, + { + "prediction": "I think this should be `Debug.Command` instead of `Debug.tools`.", + "reference": "Capitalisation seems inconsistent here?" + }, + { + "prediction": "I think this should be `ILogger` instead of `ILogger`", + "reference": "maybe better Error(string text) and Error(Exception ex) separately?" + }, + { + "prediction": "I think this should be `lps` instead of `langserver`", + "reference": "can you leave the old one in too please? at least for now, otherwise anyone using it now will break." + }, + { + "prediction": "I think this should be `if (target && target->getZone() == ZONE_PVP) { return; }`", + "reference": "Trailing tab, remove it in another PR." + }, + { + "prediction": "I think this should be `w.tlMgr.errShouldUnload(err)` instead of `w.tlMgr.errShouldUnload(err)`", + "reference": "what about merging the error checking logic to within `errShouldUnload`?" + }, + { + "prediction": "I think this should be `@topic.articles.by_published` instead of `@topic.articles.by_published`", + "reference": "Probably want Topic.find_by_slug! to handle bogus topics. The next line will try to load articles off of nil otherwise." + }, + { + "prediction": "I think this should be `std::is_same_v`.", + "reference": "Should it really be done on test side?" + }, + { + "prediction": "I think this should be `cleanupTask` instead of `cleanupTask`", + "reference": "Can we elaborate on why? I'm guessing because we need the execution role to call FE stopTask during `cleanupTask`, but would be good if we make it clear here." + }, + { + "prediction": "I think we should be able to pass args again as they are already validated and are not used in flow exporter config.", + "reference": "is there a reason why this is not called from inside `validate`?" + }, + { + "prediction": "I think we should use `rwTimeout` here.", + "reference": ":+1: I much prefer this style for functions with more than a few arguments." + }, + { + "prediction": "Why is this change needed?", + "reference": "Are these mutually exclusive options (parameters vs qualifiers)? If parameters aren't supported, may want to consider throwing an exception for \"hasParameters\". If parameters and qualifiers are both legit options, then maybe change this to `if (hasQualifiers) { ... } if(!hasQualifiers && !hasParameters)`" + }, + { + "prediction": "why remove this?", + "reference": "Why did you remove this line?" + }, + { + "prediction": "I think this should be `invalid_indices`.", + "reference": "Very unclear error message. Remember that these are messages that your users see. Please be more specific" + }, + { + "prediction": "I think this should be `WINDOWS_SERVER_2019_CORE` instead of `WINDOWS_SERVER_2019_FULL`.", + "reference": "Can we add these when we need them " + }, + { + "prediction": "Why do we need this?", + "reference": "I believe you can simplify this to simply `return array_unique(array_filter($authors));` -- the default behavior of array_filter is to filter out empty elements, so the callback should not be required in this situation. Do you mind giving it a try and updating the PR if it works?" + }, + { + "prediction": "I think this should be `if not obj:`", + "reference": "Would it make sense to log a debug warning here?" + }, + { + "prediction": "Why remove this?", + "reference": "\"in the keystore\", but nevermind" + }, + { + "prediction": "why not use `node.config.online_weight_minimum.number()` here?", + "reference": "This should be done in a separate PR." + }, + { + "prediction": "I think this should be `if (player.getName().equalsIgnoreCase(playerName)) { log.error(\"found running player\"); break; }`", + "reference": "Rather than this maybe `Text.sanitize` would be better here" + }, + { + "prediction": "Why is this change needed?", + "reference": "lot of places setting default 'false' to static value - noise in PR" + }, + { + "prediction": "Why do we need this?", + "reference": "I think you should use `$event->getOriginalFileUrl()` instead of `$sourceFilePath` here." + }, + { + "prediction": "I think this should be `notifier_configs.get('api_quota')`", + "reference": "nit: It's a matter of taste, but it would be tighter if this is called `api_quota`." + }, + { + "prediction": "Why is this change needed?", + "reference": "I noticed in all of these we now have to import the PrecompiledContract under testing. Could also rename the package these are in s/precompiles/precompile to keep them in the same package as they are elsewhere." + }, + { + "prediction": "I think we should use `iteritems` instead of `iteritems` here.", + "reference": "doubt this matters..." + }, + { + "prediction": "I don't think this is needed.", + "reference": "Gets updated versions of `LOOPBACK_INTERFACE`, `LOOPBACK_NAME` when importing scapy." + }, + { + "prediction": "I think this is a good idea to check if `spec == PartitionSpec.unpartitioned()` and `spec == PartitionSpec.unpartitioned()`. I think it would be better to check if `spec == PartitionSpec.unpartitioned()` and `spec == PartitionSpec.unpartitioned()` and `spec == PartitionSpec.unpartitioned()`.", + "reference": "checking for ref. equality is probably fine here, but it takes a reader longer to navigate the code and figure out whether ref equality is really wanted here vs just using `equals()`" + }, + { + "prediction": "Why is this needed?", + "reference": "looks like it's not used? Do we plan to use it in the future?" + }, + { + "prediction": "Why is this change needed?", + "reference": "I think this is an unrelated remark. I thought we had moved toward the practice of using \"Config\" as the structure name, and Option as a functional argument (`func(*Config)`), and Options as a `[]Option`. See api/trace `StartConfig` and `StartOption`, for example. That's why I prefer this struct be called Config." + }, + { + "prediction": "I think this should be `http_notfound`", + "reference": "nitpick: superfluous parenthesis" + }, + { + "prediction": "I think this should be `1` instead of `1`.", + "reference": "If, for a given integration, the tag/measure is always set, it should be added to the strongly-typed tags (here for instance, in GraphQLTags). This way, the underlying dictionary is allocated only in the rare case where users add custom tags" + }, + { + "prediction": "Why is this change needed?", + "reference": "The position change of this line may be a hard fork." + }, + { + "prediction": "Why is this change needed?", + "reference": "id is unsigned " + }, + { + "prediction": "I think this should be `_env_vars` instead of `_env_vars`.", + "reference": "It looks like Puppet doesn't provide type validation for options and we don't provide it ourselves as part of the function. Is that something we'd want to do at some point?" + }, + { + "prediction": "I think this should be `TableScan` instead of `TableScan`", + "reference": "Looks like this didn't need to change." + }, + { + "prediction": "I think this should be `if config_parser.has_option('MESSAGES CONTROL', 'disable')`", + "reference": "I don't understand why this is here and what's the intention with it? Can you elaborate what's the reasoning behind this change?" + }, + { + "prediction": "Why is this change needed?", + "reference": "I think @sergeybykov converted (wanted to convert) all `shardID` to `int32` from `int64`. Please check with him." + }, + { + "prediction": "Shouldn't this be `std::max(creature->getMaxHealth(), 1)`?", + "reference": "This will only fix client side (so showing it in-game) server still gonna hold invalid values I guess?" + }, + { + "prediction": "I think this should be `cls.warning(cls, msg)` instead of `cls.warning(cls, msg)`", + "reference": "Shouldn't this be `cls.param.warning`?" + }, + { + "prediction": "I think we should remove the `goog:chromeOptions` option from the test.", + "reference": "This spec can be modified, giving you extra strength (Check this fetch key doesn't work and therefore returns `nil`)" + }, + { + "prediction": "I think this should be `forbidden_hosts = [\"localhost\", \"127.0.0.1\", \"::1\"]`", + "reference": "Could we not just always include `self.config.options.listen_host`? If that is empty, the `address[0]` check should also never be true." + }, + { + "prediction": "Why not use `tableOps().current().propertyAsLong(TableProperties.METADATA_SPLIT_SIZE, TableProperties.METADATA_SPLIT_SIZE_DEFAULT)` instead of `tableOps().current().propertyAsLong(TableProperties.METADATA_SPLIT_SIZE_DEFAULT)`?", + "reference": "Why not just access `ops` directly like before?" + }, + { + "prediction": "Why is this removed?", + "reference": "Is there even a need to keep the bool?" + }, + { + "prediction": "I think we should use `os.path.normpath` instead of `os.path.join`.", + "reference": "wrap to stay under 80 characters" + }, + { + "prediction": "Shouldn't this be `LOG(FATAL)`?", + "reference": "`return NULL` is more clear than `throw` at least in my reading, and consistent with #3362." + }, + { + "prediction": "Why did you remove this?", + "reference": "Both of these are important. Without it, locust won't find my libraries in the cloud." + }, + { + "prediction": "I think we should use `ListWorkloads` instead of `ListServices` and `ListWorkloads`", + "reference": "This should remain as `ListServices`" + }, + { + "prediction": "I think this package should be `package v2`", + "reference": "If no tests, remove this file." + }, + { + "prediction": "Why is this change needed?", + "reference": "This will require changes to the docs. I suggest searching the gh-pages branch for the previous variable name." + }, + { + "prediction": "I think this should be `os.path.join(globalVars.appDir, \"lib\", buildVersion.version, nvdaHelperRemote.dll)`", + "reference": "`RemoteHandler` is used in nvda_slave and slave does not have access to `globalVars` currently. Perhaps `globalVars.appDir` should be set to `None` in `globalVarrs by default and set to NVDA directory when they're imported for the first time." + }, + { + "prediction": "I think this should be `DisableInMem` and not `DisableInMem`", + "reference": "In case there is more configuration to be added to the \"inmem\" metrics later (however unlikely that is), we may want to play it safe and create an `InMemConfig` struct and include the disabled flag there. This also gives the config symmetry across the plugins." + }, + { + "prediction": "Use the new Ruby 1.9 hash syntax.
    Prefer single-quoted strings when you don't need string interpolation or special symbols.
    Prefer single-quoted strings when you don't need string interpolation or special symbols.
    Prefer single-quoted strings when you don't need string interpolation or special symbols.
    Prefer single-quoted strings when you don't need string interpolation or special symbols.
    Prefer single-quoted strings when you don't need string interpolation or special symbols.", + "reference": "I'll need to pull this out of here since we're sharing this in other tests. Same for `procurement_spec.rb`" + }, + { + "prediction": "I think this should be `flash[:success] = \"#{obs.user.full_name} has been added as an observer\"`", + "reference": "what about `observer` as a var name here (and below) rather than `obs` ? -- would be clearer, imo!" + }, + { + "prediction": "Why is this change needed?", + "reference": "could you change this to instead of being a `try.. except` be `message = message.get('message')`" + }, + { + "prediction": "This file is not used anymore.", + "reference": "Add space between License and nameapace" + }, + { + "prediction": "I think this should be `flash[:success] = \"Your profile is updated!\"`", + "reference": "should we have a `before_filter` for auth here?" + }, + { + "prediction": "I think this should be `if !registered { return nil }`", + "reference": "@vincepri I know we discussed moving this up and only calling it once, but I didn't (quickly) see an easy way to generate the right event based on the appropriate action (attach vs detach). Happy to move it around if you have suggestions." + }, + { + "prediction": "Do we need to do this in the `after_save` hook?", + "reference": "Can we use record.update here?" + }, + { + "prediction": "I think this should be `writeHeaders(rw.format, rw.headers.Items(), rw.response.Arg2Writer)`", + "reference": "Shouldn't the exact case option matter here?" + }, + { + "prediction": "Why is this change needed?", + "reference": "Errr, why haven't we noticed this until now?" + }, + { + "prediction": "I think this should be `if (previous != null && previous.equals(fstLoadMode.name()) == false)`", + "reference": "It's a little spooky that this method throws exception if you try to set the attribute to a different value than it was set before, but then does leave the new value set in the attributes?" + }, + { + "prediction": "I think this should be `1091000` instead of `1091000`", + "reference": "Please only increment by 1." + }, + { + "prediction": "I don't think we need to change this to `org.joda.time.Period`", + "reference": "Sorry I might have missed some context, but what's the reason you choose `Period` over `Duration` or `Interval`? (Thumbs up for using `org.joda.time` instead!)" + }, + { + "prediction": "I think this should be `@type {Boolean}`.", + "reference": "Please check if is it possible to mark it as private. What's more please add this to the TypeScript definition file." + }, + { + "prediction": "I think this should be `static_cast(char::toUpperCase(c));`", + "reference": "Maybe move this to `util.h` ?" + }, + { + "prediction": "I think this should be `import github.com/google/flatbuffers/go`", + "reference": "oops. this won't work will it" + }, + { + "prediction": "Why not just use `h.TypeForKeying() != tlf.SingleTeam`?", + "reference": "@strib I assumed this is what you meant; but let me know if I'm wrong!" + }, + { + "prediction": "I think this is a good idea, but I think it would be better to have a `StartWorkflowExecution` method that returns an error if the instance already exists with the same workflowId.", + "reference": "I believe the error has changed" + }, + { + "prediction": "I don't think we need this method, but I think it should be `has_constraints?` instead of `has_constraints?`", + "reference": "Lint/UnneededDisable: Unnecessary disabling of Naming/PredicateName." + }, + { + "prediction": "Shouldn't this be `flaky spec` instead of `flaky spec`?", + "reference": "Should this be removed now?" + }, + { + "prediction": "I think this should be `streamHandle` instead of `streamHandle`", + "reference": "streamHandle sounds vague to me. Can you be more specific?" + }, + { + "prediction": "I think this should be `cursor.cursorState` instead of `cursor.cursorState`.", + "reference": "Does everything on cursorState belong in the command options?" + }, + { + "prediction": "I think this should be `for d.NextArg() || d.NextBlock(0)`", + "reference": "This is clever, but I do admit I think it's kinda weird. We can go with it for now and fix it later if people complain." + }, + { + "prediction": "I think this should be `bucketRegex = regexp.MustCompile(fmt.Sprintf(fmt.Sprintf(fmt.Sprintf(fmt.Sprintf(fmt.Sprintf(fmt.Sprintf(fmt.Sprintf(fmt.Sprintf(fmt.Sprintf(fmt.Sprintf(fmt.Sprintf(fmt.Sprintf(bucket))))), bucket))))`), bucketRegex = regexp.MustCompile(fmt.Sprintf(fmt.Sprintf(fmt.Sprintf(fmt.Sprintf(bucketRegex, bucket))`", + "reference": "the variable names are not entirely clear. \"bucket\" is essentially the regex that follows gcs naming pattern, right? if so, it should be changed to bucketregex. and then bucketregex, gsregex should be changed to something more specific to what pattern the regex is supposed to match." + }, + { + "prediction": "Why not use `ModelToViewTransformer`?", + "reference": "I think `ApiModelT` would be clearer than `T`" + }, + { + "prediction": "I think this should be `2014-2016`", + "reference": "Shouldn't this be 2019?" + }, + { + "prediction": "I think this should be `POD_FAILED_TERMINATED`", + "reference": "We should consider giving this state a more generic name which could be used for flows in similar state in non-containerized Azkban. For instance in the event of a bare-metal executor crashing we could the switch any flows assigned to that executor to this state. Something like `EXECUTE_INFRA_FAILED`, better alternatives should be possible though." + }, + { + "prediction": "I think we should add `role` attribute to the bad list.", + "reference": "This should allow `role=definition` and `role=term`, possibly also `role=list`?" + }, + { + "prediction": "I think this method should be called `propertyAsBoolean(String property, Boolean defaultValue)`", + "reference": "Should this use `boolean` instead of `Boolean`?" + }, + { + "prediction": "Why was this removed?", + "reference": "Currently in our Zipkin tests, only one passed parameter would instantiate a Resource and checks for its tags populating. I left the If(UseTestResource) clause in the code in case we would like to return to the old resource tag checking, but if it makes more sense I can remove that parameter entirely." + }, + { + "prediction": "I think this method should return true if the node is live, otherwise it will return false if the node is not live.", + "reference": "While this is potentially convenient it seems off topic for the PR/Issue. Also if it is kept, in the realm of taste/style I tend to not use get/set/is for things that are not properties of the object. maybe hasLiveNode(String node) thus someone using it might write `if (zkReader.hasLiveNode(\"foo\")) ...` which reads quite nicely." + }, + { + "prediction": "I think this should be `blogCSRPath` and `blogSvidPath`.", + "reference": "What's the difference between blogSvid and the SVID above? Looks like the functions that use these aren't being called currently - can they be removed?" + }, + { + "prediction": "Why do we need this cast?", + "reference": "can you add numbers with this change? the CLI is a javascript engine and it can worh number - java adds strings vi concatenation" + }, + { + "prediction": "I think we should use `cast as TEXT or CHAR` instead of `cast as CHAR`.", + "reference": "Shouldn't this `TEXT` also be dependent on the platform, then?" + }, + { + "prediction": "I think this should be `TableObject` instead of `TableObject`", + "reference": "Can we name this `TableObject`? I'm not a big fan of the `I` prefix for interfaces and that's not really used in Go. Is it also possible to have the method be unexported? I don't know if that's possible. If it's not, this is good. If it is possible, I'd prefer this method to be unexported." + }, + { + "prediction": "I think this is a bit confusing, but I think it would be better to have a `#if defined(TBB_INTERFACE_VERSION) && defined(TBB_INTERFACE_VERSION >= 12002)` in the `#if defined(TBB_INTERFACE_VERSION) && defined(TBB_INTERFACE_VERSION) && defined(TBB_INTERFACE_VERSION) && defined(TBB_INTERFACE_VERSION) && defined(TBB_INTERFACE_VERSION) && defined(TBB_INTERFACE_VERSION) && defined(TBB_INTERFACE_VERSION)", + "reference": "If tbb.h is included, there is no big sense to include other TBB headers." + }, + { + "prediction": "I think this should be `r'^(.+)\\.s3[.\\-][a-z]{2}-[a-z]+-[0-9]{1,}.*'`", + "reference": "Let's use the same `S3_HOSTNAME_PATTERN` as above here." + }, + { + "prediction": "I think this should be `console.log(\"R: \", r);`", + "reference": "This shouldn't be here." + }, + { + "prediction": "Do we need to check if `val` is a `TimeWithZone`?", + "reference": "A `case` statement may be simpler here." + }, + { + "prediction": "I think we should use `getDomainTagsCount(domainId)` instead of `calculateTagCount`", + "reference": "why are we adding the current tag count to new tag count ?" + }, + { + "prediction": "Why is this change needed?", + "reference": "Are you writing \"none\" to file content? no good" + }, + { + "prediction": "I think we should use `setTemplate` instead of `$this->setName`", + "reference": "Should we allow `string|string[]` here?" + }, + { + "prediction": "I don't think we need to do this, but I think it's better to use `log` instead of `info`.", + "reference": "Is there a reason for logging `error.message` specifically, maybe log the whole error object?" + }, + { + "prediction": "I think this should be `new AspNetInstrumentation(new AspNetInstrumentation(activitySource, aspnetOptions));`", + "reference": "Why is this needed?" + }, + { + "prediction": "I think this should be `proxy.attach(ident)` instead of `proxy.attach(ident)`", + "reference": "Nothing. We only expect container-connected events when going via the plugin, not the proxy." + }, + { + "prediction": "I think this should be `const rootId = 0;`", + "reference": "We might want to introduce some randomness here in case there are multiple completely separate Preact installations running, i.e. 2 widgets as those will be two roots with a resetting `_domDepth`" + }, + { + "prediction": "Why is this change needed?", + "reference": "this seems a bit wrong no? why is this change needed?" + }, + { + "prediction": "Why is this change needed?", + "reference": "Still confusing. Why don't we return something like `'Fee too low: expected X but found Y'`?" + }, + { + "prediction": "I think this should be `Ports[]int` instead of `[]int`", + "reference": "Should be from lowercase `json:\"ports\"` the same is defined in MarshalJSON" + }, + { + "prediction": "I think this should be `ruby` instead of `ruby`", + "reference": "Simple Notification **Service** (singular)" + }, + { + "prediction": "I think this should be `Packages.org.phoenicis.configuration.localisation.Localisation.tr`", + "reference": "This code should be executed in NashornEngineFactory" + }, + { + "prediction": "Why not use `time.Now().UnixNano()` here?", + "reference": "this is not so great as it sets the global rand seed. in tests that invoke this method multiple times for whatever reason, the global seed would be overridden every time the constructor would be called and the instances would have a different seed after every constructor call. it would be better to just pass a new source here as a parameter and do the same within the test. it should simplify things and clean this up" + }, + { + "prediction": "I think this should be `true` or `false`.", + "reference": "This looks inverted to me: if `--rpc-require-chainid-in-txs=true`, then shouldn't `unprotectedTransactionsAllowed == false`? Suggest changing this variable to `requireTxReplayProtection` or similar. I think the flag name could be clearer as well, maybe: `--require-tx-replay-protection`." + } + ] +} \ No newline at end of file
    hello hi hi hi hi