diff --git "a/codet5_lora_official_0.001/complete_results.json" "b/codet5_lora_official_0.001/complete_results.json"
--- "a/codet5_lora_official_0.001/complete_results.json"
+++ "b/codet5_lora_official_0.001/complete_results.json"
@@ -1,45 +1,45 @@
{
- "test_bleu_4": 0.022109387045582494,
+ "test_bleu_4": 0.020400991667966724,
"test_exact_match": 0.0,
"test_rouge": {
- "rouge1": 0.128356058855296,
- "rouge2": 0.020107472538261055,
- "rougeL": 0.11113163508823323,
- "rougeLsum": 0.11123477592971223
+ "rouge1": 0.12946423544226396,
+ "rouge2": 0.020207727828718262,
+ "rougeL": 0.11198333262416457,
+ "rougeLsum": 0.11192157274377995
},
"test_bertscore": {
- "precision": 0.8409174459441736,
- "recall": 0.8414276271914882,
- "f1": 0.8407734651541637
+ "precision": 0.8442566235317032,
+ "recall": 0.8410992779226731,
+ "f1": 0.842264587278504
},
- "test_meteor": 0.08969289084186825,
+ "test_meteor": 0.09102937949338932,
"raw_data": [
{
- "prediction": "I don't think we need to change the transport here.",
+ "prediction": "Why is this needed?",
"reference": "can we also test for `transport=rest`?"
},
{
- "prediction": "Why not use `$config->Index->record_batch_size` here?",
+ "prediction": "Why not use `$this->config->get($this->mainConfig);`?",
"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.",
+ "prediction": "I think this should be `<%= ENV['SEGMENT_KEY']%>` instead of `<%= ENV['SEGMENT_KEY']%>`",
"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`",
+ "prediction": "`isNaN` is a better name than `isNaN`",
"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()`",
+ "prediction": "I don't think we need to use `select( CORE_LOCATION ).isNavigating()` here.",
"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`.",
+ "prediction": "I think this should be `AbsMat` instead of `AbsMat`.",
"reference": "I think im2col should only accommodate CPUMat."
},
{
- "prediction": "I don't think we need to import email_factory here.",
+ "prediction": "I don't think we need to import email_violations here.",
"reference": "alpha sort the imports"
},
{
@@ -47,15 +47,15 @@
"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)`.",
+ "prediction": "I don't think this is the right thing to do, but I think it would be better to just use `_lastDetectedKeyboardLayoutChange` instead of `_lastDetectedKeyboardLayoutChange`.",
"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(); }`",
+ "prediction": "I think this should be `service = getDefaultService();` instead of `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(' '))`",
+ "prediction": "I think this should be `keys.join('')` instead of `keys.join('')`",
"reference": "Also update line 2205 below"
},
{
@@ -63,15 +63,15 @@
"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.",
+ "prediction": "nit: I think this should be `@private`",
"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\")`",
+ "prediction": "Why is this change needed?",
"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\")",
+ "prediction": "I think this should be `zap.Error(\"no image to be updated\", provider.Name()),`",
"reference": "`zap.String(\"image-provider\", provider.Name())` should be in a same line."
},
{
@@ -79,39 +79,39 @@
"reference": "Why this deletion?"
},
{
- "prediction": "I think this should be `assertIn` instead of `assertIn`.",
+ "prediction": "I think this should be `self.assertIn(check.cache_control, 'public,%20max-age=500', 'public, max-age=500')`",
"reference": "This change looks unrelated to the CL description?"
},
{
- "prediction": "Why is this changed?",
+ "prediction": "I don't think this is correct. The `DEDUP_RESUTL_CHECK` is used in the `QueryTestBase` class.",
"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`.",
+ "prediction": "I think this should be `Status.EXECUTION_STOPPED.getNumVal()` instead of `Status.SUCCEEDED.getNumVal()`",
"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)`",
+ "prediction": "I think this should be `if (!dev) return;`",
"reference": "Merge with next condition"
},
{
- "prediction": "I think this should be `DeleteTask` instead of `DeployTask`",
+ "prediction": "I think this should be `DeleteTask` instead of `TaskStackInfo`",
"reference": "Maybe add it when it is used."
},
{
- "prediction": "I think this should be `ALL_EXIST_SCANNERS`",
+ "prediction": "I don't think we need to add this to the list.",
"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());`",
+ "prediction": "I think we should use `to.equals(Types.LongType.get());` instead of `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()`.",
+ "prediction": "Why is this removed?",
"reference": "make a SchemaTypeNameConverter.getTypeNameForEmptyType() and call that here."
},
{
- "prediction": "Why not use Lang::getDefaultLanguage() instead of Lang::getDefaultLanguage() ?",
+ "prediction": "I think this should be `if ($request->getSession() != null && $request->getSession()->getLang()->getLocale() != Lang::getDefaultLanguage()->getLocale())`",
"reference": "Use braces on your conditional structures please"
},
{
@@ -119,43 +119,43 @@
"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;`",
+ "prediction": "I think this should be `Assert(isType(token, TOKEN_OPEN_PAREN));`",
"reference": "Isn't this the same check as two lines above?"
},
{
- "prediction": "I think this should be `options.CA_DIR` or `options.CONFIG_PATH`",
+ "prediction": "I think this should be `options.CA_DIR` instead of `options.CA_DIR`.",
"reference": "Don't redefine, just import the existing one in `cmdline.py`. :)"
},
{
- "prediction": "Shouldn't this be `!responds`?",
+ "prediction": "Line is too long. [89/80]",
"reference": "why not call `respond_to?(\"#{name}=\")` from the `if` line?"
},
{
- "prediction": "I think this should be `withWorkDirectory(workingDir);`.",
+ "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`",
+ "prediction": "I don't think this is needed.",
"reference": "Are all these namespaces required for this attribute?"
},
{
- "prediction": "Metrics/LineLength: Line is too long. [98/80]",
+ "prediction": "Metrics/LineLength: Line is too long. [92/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`",
+ "prediction": "I think this should be `defer ioutil.RemoveAll(s.dir)`",
"reference": "Looks like this is unused? Did you mean to call it when clearing the block journal?"
},
{
- "prediction": "Why is this needed?",
+ "prediction": "Why is this change needed?",
"reference": "why named alters? how about this.alerts = alerts?"
},
{
- "prediction": "I think this should be `sourcesInfo` instead of `mirrorInfo`",
+ "prediction": "why is this change needed?",
"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]`",
+ "prediction": "I think this should be `len(topicName) > 50` instead of `len(topicName) > 50`",
"reference": "There's a better fix for this in #1741, which should replace this."
},
{
@@ -163,51 +163,51 @@
"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)`",
+ "prediction": "Why is this needed?",
"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`.",
+ "prediction": "I don't think we need this interface. I think it should be `UriParser.parseUri(String text, int startPos, StringBuffer outputBuffer)`",
"reference": "There's no need for `final` in interfaces."
},
{
- "prediction": "I think this should be `SetTag(Tags.Version, value);`",
+ "prediction": "I think this should be `if (key == global::OpenTracing.Tag.Tags.Error.Key) return this;`",
"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.",
+ "prediction": "I think this line should be removed.",
"reference": "This shouldn't be changed."
},
{
- "prediction": "This file is not part of Invenio.",
+ "prediction": "Why is this change needed?",
"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.",
+ "prediction": "I don't think this is needed anymore.",
"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`",
+ "prediction": "I don't think this job should be in the `ApplicationJob` class.",
"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`?",
+ "prediction": "Why do we need to check if the cart is not null?",
"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`",
+ "prediction": "I think this should be `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?",
+ "prediction": "I don't think you need wildcard imports.",
"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`.",
+ "prediction": "This should be `sycl::info::device::max_work_group_size`.",
"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())`.",
+ "prediction": "I think this should be `feeds.remove(feeds.get(feeds.get(feeds.get(feeds.get(feeds.get(feeds.get(feeds.get(feeds.get(feeds.get(i)))))`",
"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."
},
{
@@ -215,39 +215,39 @@
"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?",
+ "prediction": "I think this should be `Logger.LogWarning(Resources.ParameterIsNotValid, unmatchedSetting);`",
"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)`",
+ "prediction": "I think this should be `PutTipSetAndState` instead of `PutTipSetAndState`",
"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`.",
+ "prediction": "I think this should be `lowestTriggerPrefetchPriority` instead of `highestTriggerPrefetchPriority`",
"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)`",
+ "prediction": "Why do you need to check if the creature is removed?",
"reference": "checking health again? I think it is not necessary."
},
{
- "prediction": "I think this should be `time.Duration(startTime) < 30*time.Second`",
+ "prediction": "I think this should be `time.Sleep(1 * 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`",
+ "prediction": "I think this should be `require('assert');`",
"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`?",
+ "prediction": "Is there a reason why we need to queue this dependency if it's not needed?",
"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'`",
+ "prediction": "I don't think we need to check for `pks.__class__.__name__ == 'StreamSocket'` here.",
"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())`",
+ "prediction": "I don't think we need to do this. The `VIDEO` and `AUDIO` elements should be lower-cased.",
"reference": "Why should audio and video elements always return `false` for `isHidden`?"
},
{
@@ -259,7 +259,7 @@
"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)`",
+ "prediction": "I think this should be `throw new IllegalArgumentException(argName + \" must be greater than 0\");`",
"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."
},
{
@@ -267,15 +267,15 @@
"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 }",
+ "prediction": "I think this should be `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?`.",
+ "prediction": "I think we can remove the `using_open_id?` check from the `if using_federated_login?` block.",
"reference": "`open_id_authentication` is no longer the name of the function, and it's not OpenID specific"
},
{
- "prediction": "why is this change needed?",
+ "prediction": "I think this should be `Balance: ...` instead of `Balance: ...`",
"reference": "This didn't require corresponding changes to the test case(s)?"
},
{
@@ -283,11 +283,11 @@
"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`",
+ "prediction": "Nit: I think this should be `aws.cluster.sigs.k8s.io/control-plane-ready` instead of `aws.cluster.sigs.k8s.io/infrastructure-ready`",
"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;`",
+ "prediction": "I don't think z/x are needed anymore.",
"reference": "Not clear on why this change is correct."
},
{
@@ -295,39 +295,39 @@
"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`?",
+ "prediction": "I think this should be `padding: 0` instead of `0`",
"reference": "All stories in this file also need to have the default padding."
},
{
- "prediction": "(style) line over 80 characters",
+ "prediction": "Why is this assert needed?",
"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.",
+ "prediction": "Layout/EmptyLinesAroundClassBody: Extra empty line detected at class body beginning.",
"reference": "Should this be `number` instead of `id`?"
},
{
- "prediction": "I don't think this is necessary.",
+ "prediction": "How about `HBASE` instead of `HIVE`?",
"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",
+ "prediction": "(style) code indent should use tabs where possible",
"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.",
+ "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": "Please do not approve PRs without tests!!!!"
},
{
- "prediction": "I think this should be `win_id` instead of `win_id`",
+ "prediction": "Why is this needed?",
"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);`?",
+ "prediction": "I think this should be `e.printStackTrace()` instead of `e.printStackTrace()`",
"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`.",
+ "prediction": "I think this should be `Warn` instead of `Warn`.",
"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."
},
{
@@ -335,31 +335,31 @@
"reference": "do you really want to change the behavior on foreign key ?"
},
{
- "prediction": "Why is this change needed?",
+ "prediction": "(style) code indent should use tabs where possible",
"reference": "Looks like my bad. Thanks for fixing!"
},
{
- "prediction": "I think this should be `True` or `False`.",
+ "prediction": "I don't think this is a good idea, but I think it would be better to add `no_replace_variables` to `Command` as well.",
"reference": "I think \"Don't replace variables ...\" would be cleaner."
},
{
- "prediction": "I think this should be `object_selector` instead of `object_selector`.",
+ "prediction": "why is this removed?",
"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?",
+ "prediction": "Why is this change needed?",
"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)`",
+ "prediction": "I think this method should be `@Nullable` instead of `@Nullable`.",
"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\")`.",
+ "prediction": "I think this should be `Log.d(LOGTAG, \"Compositor resume begin\");`",
"reference": "These logs should probably use the `LOGTAG`"
},
{
- "prediction": "Why is this needed?",
+ "prediction": "I think this should be `golang.zx2c4.com` instead of `golang.zx2c4.com`.",
"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."
},
{
@@ -367,99 +367,99 @@
"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_`.",
+ "prediction": "I think this should be `Blockly.highlightedConnection_ != closestConnection && Blockly.localConnection_ != localConnection`",
"reference": "Do you also need to check if Blockly.localConnection_ is non-null?"
},
{
- "prediction": "I think this should be `global` and not `global`",
+ "prediction": "I think this should be `global` instead of `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`",
+ "prediction": "I think this should be `@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()))`",
+ "prediction": "why is this copy needed?",
"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`",
+ "prediction": "Why do we need to set the global tracer here?",
"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`",
+ "prediction": "Is there a reason we don't need to lock here?",
"reference": "Same trick here IMO."
},
{
- "prediction": "I think this should be `@origin = element || POINTER`",
+ "prediction": "I don't think this is necessary. `element` can be nil if `origin` is nil.",
"reference": "Should be `@origin = element || origin || POINTER`"
},
{
- "prediction": "I don't think we need to check if the spc name is empty.",
+ "prediction": "I think this should be `if len(args) > 0`",
"reference": "this example needs a fix?"
},
{
- "prediction": "(style) line over 80 characters",
+ "prediction": "(style) code indent should use tabs where possible",
"reference": "Is it safe to assume this surface is a toplevel?"
},
{
- "prediction": "(style) line over 80 characters",
+ "prediction": "I think this should be `std::nothrow` instead of `std::nothrow`.",
"reference": "we don't need that function"
},
{
- "prediction": "I think this should be `WIN10` instead of `WIN10`.",
+ "prediction": "I think this should be `Windows` instead of `Windows`",
"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)`",
+ "prediction": "Why do we need this method?",
"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.",
+ "prediction": "Why remove this?",
"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;`",
+ "prediction": "I don't think this is necessary. `getComposedParent` returns `null` if `aria-hidden` is not set.",
"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`",
+ "prediction": "Why is this needed?",
"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)`",
+ "prediction": "Why is this needed?",
"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`",
+ "prediction": "I think this should be removed.",
"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`",
+ "prediction": "I don't think we need a lock here.",
"reference": "Can you rename `Ports` to `PortsUnsafe`?"
},
{
- "prediction": "Line is too long. [92/80]",
+ "prediction": "Use 2 (not 4) spaces for indentation. Space inside { missing. Space inside } missing.",
"reference": "This feels like it could be moved out to your first gem!"
},
{
- "prediction": "Why not use `Optional poll(RequestId requestId)` here?",
+ "prediction": "Why is this change needed?",
"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)`",
+ "prediction": "I think this should be `Array.isArray(arr1).includes(arr2).filter(elem => elem.indexOf(elem) === pos)`",
"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",
+ "prediction": "I don't think we need to use `MAXIMUM_PATH` here.",
"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`",
+ "prediction": "I think this should be `ImmutableSet`.",
"reference": "Why are we not wrapping here?"
},
{
- "prediction": "Why not use `\\Shopsys\\FrameworkBundle\\Model\\Product\\Parameter\\Parameter`?",
+ "prediction": "Why is this change needed?",
"reference": "I though that all data objects are being unified in the fashion where all default values are initialized in constructor, are not they?"
},
{
@@ -467,51 +467,51 @@
"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?",
+ "prediction": "Why is this removed?",
"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`",
+ "prediction": "I think this should be `var/lib/docker-volumes` instead of `var/lib/docker-volumes`",
"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.",
+ "prediction": "I think this should be `using System.Linq;` instead of `using System.Linq;`",
"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`",
+ "prediction": "I don't think we need to add the `User-Agent` header here.",
"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\"))`",
+ "prediction": "I think this should be `breakpoint = 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?",
+ "prediction": "I don't think we need to return `self.size` and `self.location` here.",
"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`",
+ "prediction": "I think this should be `pkg/store/secretsmanager`",
"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`",
+ "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:\")",
+ "prediction": "I think this should be `std::distance(first, last) > 9`",
"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`?",
+ "prediction": "I think this should be `app.kubernetes.io/part-of` instead of `app.kubernetes.io/part-of`.",
"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`",
+ "prediction": "Why is this change needed?",
"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`",
+ "prediction": "I don't think we need to import `xrc20` here.",
"reference": "No need to have `xrc20` alias"
},
{
@@ -519,19 +519,19 @@
"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`.",
+ "prediction": "I think this should be `true` instead of `false`.",
"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.",
+ "prediction": "I don't think this is correct. You can also specify: `imageMaxWidth` and `imageMaxHeight`",
"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`",
+ "prediction": "I think this should be `+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)`",
+ "prediction": "I think this should be `typeOf(args[i]) === typeOf(args[i])`",
"reference": "How about `Object.prototype.toString`? Or using the `typeof` operator?"
},
{
@@ -539,7 +539,7 @@
"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?",
+ "prediction": "I think this should be `!IsWindows && PlatformApis.IsDarwin;` instead of `!IsWindows && PlatformApis.IsDarwin;`",
"reference": "This check isn't right though."
},
{
@@ -547,7 +547,7 @@
"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?",
+ "prediction": "I don't think we need the `response` variable anymore.",
"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 "
},
{
@@ -555,35 +555,35 @@
"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)`",
+ "prediction": "I think this should be `glog.Error`",
"reference": "This line changed due to go formatting. Format was not there earlier."
},
{
- "prediction": "Why is this needed?",
+ "prediction": "Why is this removed?",
"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`",
+ "prediction": "I think it would be better to use `UtilIT.linkDataset(datasetPid, dataverse2Alias, superuserApiToken);` instead of `UtilIT.linkDataset(datasetPid, dataverse2Alias, superuserApiToken);`",
"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`.",
+ "prediction": "Why is this change needed?",
"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])`",
+ "prediction": "Layout/SpaceInsideHashLiteralBraces: Space inside { missing. Layout/SpaceInsideHashLiteralBraces: Space inside } missing.",
"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!')`",
+ "prediction": "I don't think we need to add a timeout here.",
"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.",
+ "prediction": "I don't think we need to include this in the collection.",
"reference": "Can you please change the name of this class to be something else?"
},
{
- "prediction": "(style) line over 80 characters",
+ "prediction": "I don't think we need to pass the coma_separator here.",
"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 `,`."
},
{
@@ -595,19 +595,19 @@
"reference": "Why it is now called `PaymentVersionV3`?"
},
{
- "prediction": "I don't think we need to log the error here.",
+ "prediction": "I think this should be `klog.V(4).Infof(\"there are %d nodes need to sync secret, operation: %s\", len(nodes), e.Type)`.",
"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);`",
+ "prediction": "Why is this needed?",
"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`",
+ "prediction": "I think this should be `from_motorway && !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.",
+ "prediction": "Align the elements of a hash literal if they span more than one line. Space inside } missing.",
"reference": "where does `master_certname` come from?"
},
{
@@ -615,79 +615,79 @@
"reference": "The line breaking is unnecessary."
},
{
- "prediction": "I think this change should be reverted.",
+ "prediction": "Why is this change needed?",
"reference": "why not enable split by space here ?"
},
{
- "prediction": "I think this should be `value != FPGA_DISCRETE_DEVICEID` or `value != FPGA_INTEGRATED_DEVICEID`",
+ "prediction": "I don't think we need to check for `FPGA_DISCRETE_DEVICEID` here.",
"reference": "Shouldn't the operator be && ?"
},
{
- "prediction": "I think this should be `snapshot_create` instead of `snapshot_rollback`.",
+ "prediction": "I don't think we need to add the `--name` argument to the `vagrant_cmd` method.",
"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?",
+ "prediction": "Why is this removed?",
"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`?",
+ "prediction": "I don't think we need to check if `showAutoDownloadReport` is true. I think we should check if `userPreferences.showDownloadReport()` is true.",
"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{}`",
+ "prediction": "I don't think we need to return `nil` here.",
"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`",
+ "prediction": "I don't think this is needed.",
"reference": "`ctx` is unused in GenerateAPIKey"
},
{
- "prediction": "I think this should be `log.L().Fatal(err.Error(), zap.Any(\"cfg\", cfg))`",
+ "prediction": "Why is this fatal?",
"reference": "Can you judge the type of error?"
},
{
- "prediction": "why not use `np.diff(data)/2`?",
+ "prediction": "why not use `np.diff(data)/2.0`?",
"reference": "Much simpler than a weird and confusing ``convolve`` call!"
},
{
- "prediction": "Why is this change needed?",
+ "prediction": "Why did you change this?",
"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.",
+ "prediction": "Layout/SpaceInsideHashLiteralBraces: Space inside { missing. Layout/SpaceInsideHashLiteralBraces: Space inside } missing.",
"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=`",
+ "prediction": "I don't think we need to do this. The `msg_id` should be `{path}:{line:3d}:{column}: {msg}`.",
"reference": "Will this mess up parsing the messages by other editors? (vscode, vim ...)"
},
{
- "prediction": "Line is too long. [89/80]",
+ "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": "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)`",
+ "prediction": "I think this should be `var block = memory.Lease();` instead of `var returnedBlock = task.Result?.Pool?.Return(block);`",
"reference": "Why can the pool be null?"
},
{
- "prediction": "I don't think we need to add the `READONLY` state here.",
+ "prediction": "I think this should be `StateList` instead of `PresentationalList`.",
"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>`",
+ "prediction": "I don't think this is correct. `data` should be a `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?",
+ "prediction": "I don't think we need to lock here.",
"reference": "There doesn't seem to be a reason to copy this here."
},
{
- "prediction": "I think this should be `include/h2o/ebpf.h`.",
+ "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`",
+ "prediction": "I think this should be `alert.query-url` or `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."
},
{
@@ -695,15 +695,15 @@
"reference": "Same change just above?"
},
{
- "prediction": "I think this should be `assert.not.not.mistake.cyrillic(\"latin n\", '\u043b')`",
+ "prediction": "I think this test should be `not mistake`",
"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`?",
+ "prediction": "I think this should be `agentlessID` instead of `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.",
+ "prediction": "Layout/EmptyLinesAroundClassBody: Extra empty line detected at class body beginning.",
"reference": "Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping."
},
{
@@ -711,59 +711,59 @@
"reference": "We should have a rule to detect identical catch branches"
},
{
- "prediction": "Why did you remove this?",
+ "prediction": "Why is this removed?",
"reference": "remove these from the targets file."
},
{
- "prediction": "I think this should be `bzz` and not `bzz`",
+ "prediction": "why is this removed?",
"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.",
+ "prediction": "I don't think this is needed anymore.",
"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?",
+ "prediction": "I don't think we need wildcard imports.",
"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|`",
+ "prediction": "I think this should be `host['ips'].each do |ip|`",
"reference": "Where is host['ips'] coming from?"
},
{
- "prediction": "Why is this change needed?",
+ "prediction": "Why is this removed?",
"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`?",
+ "prediction": "Prefer single-quoted strings when you don't need string interpolation or special symbols.",
"reference": "Is this necessary?"
},
{
- "prediction": "I don't think this is needed.",
+ "prediction": "I don't think we need to import `makeLogin` and `isTokenExpire` here.",
"reference": "I'd create a different method for each render section."
},
{
- "prediction": "I think this should be `isReverted = false;`",
+ "prediction": "I think this should be `true` instead of `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?",
+ "prediction": "I think this is the right place to use `SparkOrcReader::new` instead of `SparkOrcReader::new`",
"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()) {`",
+ "prediction": "I think this should be `if (fields.get(i).fieldId() == ManifestFile.SPEC_ID.fieldId() && fields.get(i).fieldId() == ManifestFile.SPEC_ID.fieldId() && fields.get(i).fieldId() == ManifestFile.SPEC_ID.fieldId() && fields.get(i).fieldId() == ManifestFile.SPEC_ID.fieldId() && fields.get(i).fieldId() == ManifestFile.SPEC_ID.fieldId() == ManifestFile.SPEC_ID.fieldId()) == ManifestFile.SPEC_ID.fieldId() && fields.get(i).fieldId() == ManifestFile.SPEC_ID.fieldId() && fields.get(i).fieldId() == ManifestFile.SPEC_ID.fieldId() && fields.get(i).fieldId() == ManifestFile.SPEC_ID.fieldId() && fields.get(i).fieldId() == ManifestFile.SPEC_ID.fieldId())) { found = true; }`",
"reference": "These modifications allow BaseFile to translate into a SparkRow with the specID as a column"
},
{
- "prediction": "This should be `new ReadPreference(readPreference);`",
+ "prediction": "I think this should be `typeof readPreference === 'string'`",
"reference": "is this something we've been missing this whole time?"
},
{
- "prediction": "I think this should be `allEvents` instead of `allEvents`",
+ "prediction": "I think this should be `*` instead of `*`",
"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`.",
+ "prediction": "I don't think this is necessary. The `thrift_files_dir` is the same as the `thrift_files_dir`.",
"reference": "There seems to be some repetition. Does a local function make this code shorter overall?"
},
{
@@ -771,75 +771,75 @@
"reference": "Might be cheaper to reuse the `null` assignment of line 313 and set `isHydrating` to null instead WDYT?"
},
{
- "prediction": "Why is this removed?",
+ "prediction": "Please revert this change.",
"reference": "Revert this blank line"
},
{
- "prediction": "I don't think we need to clear the property here.",
+ "prediction": "I think this should be `System.setProperty(\"solr.hdfs.blockcache.blocksperbank\", \"512\");`",
"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`",
+ "prediction": "I don't think this is needed anymore.",
"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)`",
+ "prediction": "I think this test should be `assertIn('Content-Length', resp.headers, 'Content-Length')`",
"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)`",
+ "prediction": "I don't think we need to call this `apply_helpers`.",
"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;`",
+ "prediction": "Why is this needed?",
"reference": "Why do you think that it is necessary to create this class?"
},
{
- "prediction": "Why is this change needed?",
+ "prediction": "I think this is the only place where `r.Seek(0, 1)` is called.",
"reference": "replacing the `1` with `io.SeekCurrent` may be good here"
},
{
- "prediction": "I think this should be `FetchJWKS`?",
+ "prediction": "I think this should be `*jose.JSONWebKeySet` instead of `*jose.JSONWebKeySet`",
"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`",
+ "prediction": "This should be `azkaban.plugin.load.override.properties`",
"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)`",
+ "prediction": "I don't think this is needed.",
"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`",
+ "prediction": "I think this should be `/user/trafodion/hive/tpcds/customer/customer.dat` instead of `/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\");`",
+ "prediction": "I don't think this is correct. The `HOME` environment variable should be set to `/home/DDITAdministrator/myagent/_work/_temp` instead of `/home/DDITAdministrator/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?",
+ "prediction": "I think this should be `v2/generated` instead of `v2/generated`",
"reference": "nit- would be cleaner to import it once"
},
{
- "prediction": "I think this should be `headers` instead of `headers`",
+ "prediction": "I think this should be `x-amz-content-sha256` instead of `x-amz-user-agent`",
"reference": "Looks like there is a closing parenthesis `)` missing here."
},
{
- "prediction": "I think this should be `snprintf(str, 128, \"unknown *KEYWORD: %s\", arg[ioffset]);`",
+ "prediction": "I think this should be `snprintf(str, 128, \"unknown *KEYWORD: %s\", arg[ioffset]);` and not `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()`",
+ "prediction": "Why do we need this?",
"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",
+ "prediction": "I think this should be `#ifdef ARM_32` instead of `#endif`",
"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;`",
+ "prediction": "I think this should be `@Nullable` instead of `@Nullable`.",
"reference": "s/for use/to use for/"
},
{
@@ -847,15 +847,15 @@
"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.\")`",
+ "prediction": "I think we should be able to use `serviceerror.NewResourceExhausted` instead of `serviceerror.NewUnavailable`.",
"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))))))`",
+ "prediction": "I don't think we should be using `Propagators.DefaultTextMapPropagator` here.",
"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?",
+ "prediction": "remove empty line",
"reference": "Unrelated file. Please remove from PR."
},
{
@@ -863,7 +863,7 @@
"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`.",
+ "prediction": "I think this should be `Upgrade-Insecure-Requests` instead of `Upgrade-Insecure-Requests`.",
"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\"`)?"
},
{
@@ -871,35 +871,35 @@
"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)`",
+ "prediction": "I think this should be `const THREAD_P CostMethodHbaseDelete = new (GetCliGlobals()->exCollHeap()) CostMethodHbaseDelete();`",
"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.",
+ "prediction": "I don't think we need to pass the IP in the IP in the IP in the VXLAN VXLAN VXLAN VXLAN VXLAN VXLAN VXLAN VXLAN VXLAN VXLAN VXLAN VXLAN VXLAN VXLAN VXLAN VXLAN VXLAN VXLAN VXLAN VXLAN VXLAN VXLAN VXLAN VXLAN VXLAN VXLAN VXLAN VXLAN VXLAN VXLAN IP in the IP in the IPin IP in the VXLAN VXLAN VXLAN VXLAN VXLAN VXLAN VXLAN VXLAN VXLAN VXLAN VXLAN VXLAN VXLAN VXLAN VXLAN VXLAN VXLAN VXLAN VXLAN VXLAN VXLAN VXLAN VXLAN VXLAN VXLAN VXLAN VXLAN VXLAN VXLAN VXLAN VXLAN VXLAN VXLAN VXLAN VXLAN VXLAN VXLAN VXLAN VXLAN VXLAN VXLAN VXLAN VXLAN VXLAN VXLAN V",
"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());`",
+ "prediction": "I think we should use `response.fullResponseAsJSONObject()` instead of `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.",
+ "prediction": "Why is this change needed?",
"reference": "Are you sure? We've changed it during an introduction of the IME support."
},
{
- "prediction": "Why is this change needed?",
+ "prediction": "I think this should be `!empty($dqlFilter))`",
"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?",
+ "prediction": "why is this changed?",
"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`",
+ "prediction": "This should be `(out): a #GString to hold the description`",
"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`.",
+ "prediction": "I don't think this is correct. `labels < label_channels` is the same as `label_channels`",
"reference": "If the label is not binary, should we rename this function?"
},
{
@@ -907,151 +907,151 @@
"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`",
+ "prediction": "I think this should be `github.com/sonm-io/core/proto` instead of `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`",
+ "prediction": "I don't think we need to do this in the `sign_in_as` method, since it's only used in the `sign_in_as` method.",
"reference": "Put a comma after the last item of a multiline hash."
},
{
- "prediction": "What is the difference between `Dimensioned` and `OrderedDict`?",
+ "prediction": "Why is this needed?",
"reference": "How come we need ``Dimensioned`` in the top-level namespace?"
},
{
- "prediction": "Why is this change needed?",
+ "prediction": "I don't think we need to change the name of the plugin.",
"reference": "excess whitespace through plugin."
},
{
- "prediction": "`std::size_t` should be `std::size_t` instead of `std::size_t`",
+ "prediction": "I think this should be `const const size_t geometry_size = (size_t) geometry_size;`",
"reference": "What is the problem here? I feel we used this in a lot of places."
},
{
- "prediction": "why do you need this?",
+ "prediction": "why is this removed?",
"reference": "Update the docstring."
},
{
- "prediction": "I think this should be `github.com/pkg/errors` instead of `github.com/pkg/errors`",
+ "prediction": "nit: remove empty line",
"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?",
+ "prediction": "I think this should be `ImmutableCapabilities.EMPTY`.",
"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`.",
+ "prediction": "I think this should be `abort` instead of `finish`",
"reference": "Is this a breaking change, or is the API private?"
},
{
- "prediction": "I don't think we need to import pandas here.",
+ "prediction": "`test_data = pd.read_json(\"./dumps/courseData.json\");`",
"reference": "I don't think we need this dependency in this project right now"
},
{
- "prediction": "I think this should be `BrokerSystemNamespace`",
+ "prediction": "I think this should be `cloud-run-events` instead of `cloud-run-events`",
"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]`",
+ "prediction": "I think this should be `/usr/bin/puppet` instead of `/usr/bin/python3`",
"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`.",
+ "prediction": "I don't think we need to update the above map.",
"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?",
+ "prediction": "Why is this change needed?",
"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`.",
+ "prediction": "I don't think this is 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 `org.openqa.selenium.grid.sessionmap.SessionMap`",
+ "prediction": "I don't think this is needed.",
"reference": "You can safely revert changes to this file."
},
{
- "prediction": "Why is this removed?",
+ "prediction": "why remove this?",
"reference": "This deletion is unnecessary."
},
{
- "prediction": "I think this should be `!isEmpty(smallImage)`",
+ "prediction": "Why is this needed?",
"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;`",
+ "prediction": "I don't think we need wildcard imports.",
"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`.",
+ "prediction": "I think this should be `vk_format_utils.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.",
+ "prediction": "Why is this 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.",
+ "prediction": "I think it would be better to use `std::invalid_argument` instead of `std::invalid_argument`.",
"reference": "Use `UpperCamelCase` for function names"
},
{
- "prediction": "`Number(value) >= 275761 || Number(value) < 0`",
+ "prediction": "I think this should be `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.",
+ "prediction": "I don't think we need to pass the state format to the constructor. I think we should just pass the state format to the constructor.",
"reference": "Remember to close SOLR-11877 after this"
},
{
- "prediction": "I think this should be `isIgnoredChar(ch)` instead of `isIgnoredChar(ch)`",
+ "prediction": "I think this should be `ch == '/' || ch == ','`",
"reference": "this change should be reverted"
},
{
- "prediction": "I think this should be `WaitForRegistrationEvent` instead of `WaitForRegistrationEvent`",
+ "prediction": "Why is this mocked?",
"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`",
+ "prediction": "I don't think this is correct. It's not a copy, but it's not a copy.",
"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);`",
+ "prediction": "I think this should be `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.",
+ "prediction": "Use && instead of &&. 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 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`",
+ "prediction": "I don't think this is needed anymore.",
"reference": "Should we expose this attribute in the Asciidoctor.js API ?"
},
{
- "prediction": "I think this should be `Objects.isEqual(v, element._2)`",
+ "prediction": "I think this should be `Objects.equals(element._1, element._2)` instead of `Objects.equals(element._1, element._2).getOrElse(false);`",
"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`?",
+ "prediction": "I think this should be a constant, not a constant.",
"reference": "delete this line"
},
{
- "prediction": "Line is too long. [92/80]",
+ "prediction": "Metrics/LineLength: Line is too long. [89/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`.",
+ "prediction": "I don't think we need to check for NULL here.",
"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.",
+ "prediction": "I don't think we need to add the `help_url` 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?",
+ "prediction": "I don't think we need to acquire the 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`",
+ "prediction": "I think this should be `chromium:downloading` instead of `chromium:downloading`",
"reference": "The name `enableDownloading` implies this is a boolean capability. How about `downloadDir`?"
},
{
@@ -1063,39 +1063,39 @@
"reference": "The field `HttpServerErrorCodes` should be called `HttpServerErrorStatuses`"
},
{
- "prediction": "Shouldn't this be `forseti_rules.yaml` or `forseti_rules.yaml`?",
+ "prediction": "I don't think we need to add these files to the list.",
"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",
+ "prediction": "I don't think we need the `singleFilePath.isEmpty()` check here.",
"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)`",
+ "prediction": "I don't think this is correct. The `archive.File[0].Name` is the root of the archive, so it should be `archive.File[0].Name` instead of `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?`",
+ "prediction": "I don't think this is necessary. `current_page?(me_path) && current_user && 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)`",
+ "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": "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.",
+ "prediction": "I think we should use `Long.valueOf(granularity.between(EPOCH, timestamp).intValue()).intValue()` instead of `Long.valueOf(granularity.between(EPOCH, timestamp).intValue()).intValue()`",
"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?",
+ "prediction": "Why remove this?",
"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()`",
+ "prediction": "I don't think we need to do this in the `ReportRequiringApproval` function.",
"reference": "`ds.GenericDeploymentConfig.DeploymentNotification` in L128 is nullable."
},
{
- "prediction": "I think this method should be `getProtocolContext`",
+ "prediction": "I think this should be `public ProtocolContext getProtocolContext(BlockHeader header, BlockHeader localAddress, BlockHeader localAddress, BlockHeader localAddress, BlockHeader localAddress, BlockHeader localAddress, BlockHeader localAddress, BlockHeader localAddress, BlockHeader localAddress, BlockHeader localAddress, BlockHeader localAddress, BlockHeader localAddress, BlockHeader localAddress, BlockHeader localAddress, BlockHeader localAddress, BlockHeader localAddress, BlockHeader localAddress, BlockHeader localAddress);`",
"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."
},
{
@@ -1103,15 +1103,15 @@
"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.",
+ "prediction": "I think this should be `RequestSpecHelper` instead of `EnvironmentSpecHelper`",
"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)`",
+ "prediction": "Why is this needed?",
"reference": "Please check the return on these."
},
{
- "prediction": "Why not use `self.config.cache` here?",
+ "prediction": "I think this should be `uplink.config.cache` instead of `self.config.cache`",
"reference": "Do we need `==` for true?"
},
{
@@ -1119,55 +1119,55 @@
"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?",
+ "prediction": "why do we need `int(slider_pos)` here?",
"reference": "how does that happen?"
},
{
- "prediction": "I don't think we need to import doctest here.",
+ "prediction": "I don't think we need to import `exec_` here.",
"reference": "This is gross/clever. :-)"
},
{
- "prediction": "Line is too long. [89/80]",
+ "prediction": "Layout/EmptyLinesAroundClassBody: Extra empty line detected at class body beginning.",
"reference": "Take a look at the name of this file. Definitely copy and "
},
{
- "prediction": "I think this should be `return` instead of `return`",
+ "prediction": "I think this should be `return util.PageNotFound` instead of `return util.PageNotFound`",
"reference": "Can you check with @mahebbar how to work this error. Should be different from 404."
},
{
- "prediction": "Why is this needed?",
+ "prediction": "I don't think this is needed anymore.",
"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')`",
+ "prediction": "Why not use `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`",
+ "prediction": "I think we should remove this line.",
"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?",
+ "prediction": "why remove this?",
"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`",
+ "prediction": "I think this should be `eval.totalTxBytes = 0` instead of `eval.totalTxBytes = eval.totalTxBytes`",
"reference": "should this increment eval.Round somehow?"
},
{
- "prediction": "I think this should be `Rails.logger.warn` instead of `Rails.logger.warn`",
+ "prediction": "I don't think we should be using Rails.logger.warn here.",
"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`",
+ "prediction": "Layout/TrailingWhitespace: Trailing whitespace detected.",
"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])`",
+ "prediction": "Layout/TrailingWhitespace: Trailing whitespace detected.",
"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)`",
+ "prediction": "I think this should be `options = Array.isArray(options) ? 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'] }`."
},
{
@@ -1175,19 +1175,19 @@
"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?",
+ "prediction": "I don't think we need wildcard imports.",
"reference": "Could you please leave the explicit imports?"
},
{
- "prediction": "Why is this needed?",
+ "prediction": "I don't think this is needed anymore.",
"reference": "Why need alias?"
},
{
- "prediction": "I think this should be `tlf.IDGetter` instead of `tlf.IDGetter`",
+ "prediction": "Why is this needed?",
"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`",
+ "prediction": "why not \"logicsig program size too large\"?",
"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."
},
{
@@ -1195,19 +1195,19 @@
"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.",
+ "prediction": "Align the elements of a hash literal if they span more than one line. Space inside } missing.",
"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?",
+ "prediction": "Why is this 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 != \"\" {`",
+ "prediction": "I think we should use `iss.Email == \"\"` instead of `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()`?",
+ "prediction": "Why is this change needed?",
"reference": "Why change the port from 0 to getAvailablePort()?"
},
{
@@ -1215,15 +1215,15 @@
"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.",
+ "prediction": "I think we can remove the `projectName` field from the `GlobalOpts` struct, since it's not used anywhere else.",
"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`",
+ "prediction": "I think `bytes` can be 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?",
+ "prediction": "I think this should be `return;` instead of `return;`",
"reference": "nit: can remove this `else` since we return from the condition above."
},
{
@@ -1231,15 +1231,15 @@
"reference": "You missed `Write(...)`! I'm kidding ofc."
},
{
- "prediction": "I think we should check if `subscription.stripe_customer_id` is present?",
+ "prediction": "I think we should check for `subscription.stripe_customer_id.present?` instead of `subscription.stripe_customer_id.blank?`",
"reference": "Was there a customer who had this set to an empty string?"
},
{
- "prediction": "Shouldn't this be `current_approver_email_address`?",
+ "prediction": "I think we should move this method to the `Ncr::Proposal` class, since it's only used in the `Ncr::Proposal` class.",
"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`",
+ "prediction": "I think this method should be renamed to `attachFile` or something like that.",
"reference": "it's better to be : void attach(String name, Part part);"
},
{
@@ -1247,19 +1247,19 @@
"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`",
+ "prediction": "Why is this needed?",
"reference": "We normally suppress this warning with `RDUSED_PARAM(forceRDKit)`"
},
{
- "prediction": "I think this should be `mappedPlayerGuids.find(guid)` instead of `mappedPlayerGuids.end()`",
+ "prediction": "I think this should be `return nullptr;` instead of `return nullptr;`",
"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\"));`",
+ "prediction": "I don't think we need to change the name of the field.",
"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)`",
+ "prediction": "Is there a reason why we don't need the `BuildRequired` method?",
"reference": "Does this need to return an error or could it return `false, nil`?"
},
{
@@ -1271,67 +1271,67 @@
"reference": "this parameter is only used in POST, please use `getRequest()->request->get('...');` Thanks"
},
{
- "prediction": "I think this should be `validateFilename` instead of `validatePackage`.",
+ "prediction": "Why is this change needed?",
"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`",
+ "prediction": "I don't think this is correct. I think it would be better to use a `KeyError` instead of a `KeyError`.",
"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`",
+ "prediction": "Why not use `registry.Chain()[req.ChainID]`?",
"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()`.",
+ "prediction": "I think this should be `return ContextWithRemoteSpanContext(ctx, tc.extract(supplier))`",
"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?",
+ "prediction": "Why do we need to pass `paginated` to `DepotChest::queryAdd` instead of `items[type].maxItems`?",
"reference": "here shouldn't we use `depotFreeLimit`?"
},
{
- "prediction": "I don't think we need to use `SecureRandom.hex(64)` here.",
+ "prediction": "This should be `<%= SecureRandom.hex(64)`",
"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))`",
+ "prediction": "I think this should be `assertRaises(TypeError, lambda: kdf.a.groupby(by='a', axis=1))`",
"reference": "so should be fixed here also"
},
{
- "prediction": "(style) line over 80 characters",
+ "prediction": "I don't think this is correct. The mcontext is a pointer to a pointer to a pointer to a pointer to a pointer to a pointer to a pointer to a pointer to a pointer to a pointer to a pointer to a pointer to a pointer to a pointer to a pointer to a pointer to a pointer.",
"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`",
+ "prediction": "I think this should be `/var/lib/ecs/ecs`",
"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.",
+ "prediction": "I think it would be better to have a constant for this.",
"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)`",
+ "prediction": "I don't think this is needed anymore.",
"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`",
+ "prediction": "I don't think we need to import `path/filepath` here.",
"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?",
+ "prediction": "Why is this a note?",
"reference": "This seems like a more appropriate message under `ListenAndServe`. WDYT?"
},
{
- "prediction": "Why was this removed?",
+ "prediction": "Why did you remove this?",
"reference": "Is this not required?"
},
{
- "prediction": "Why not use `$this->entity['search']['sort']['field']` here?",
+ "prediction": "Why not use `isset($this->entity['search']['sort']['field']) ? $this->request->query->get('sortField') : $this->request->query->get('sortDirection') : $this->request->query->get('sortDirection') : $this->request->query->get('sortField') : $this->request->query->get('sortDirection')`?",
"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`",
+ "prediction": "I think this should be `vkCmdPipelineBarrier(m_commandBuffer->handle(), VK_PIPELINE_STAGE_HOST_BIT, VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT, VK_PIPELINE_STAGE_HOST_BIT, VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT, VK_PIPELINE_STAGE_HOST_BIT);`",
"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."
},
{
@@ -1339,27 +1339,27 @@
"reference": "rename? MiningCoordinator always exists"
},
{
- "prediction": "I think we should use `getConfig(\"api\").offline_mode` instead of `getConfig(\"api\").offline_mode`",
+ "prediction": "I don't think this is needed. `offline_mode` is already defined in `plugins.js`.",
"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()`",
+ "prediction": "I think this should be `defer d.folder.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?",
+ "prediction": "Why is this change necessary?",
"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`",
+ "prediction": "I don't think this is needed.",
"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`",
+ "prediction": "I don't think we need to import `io` here.",
"reference": "This seems unused."
},
{
- "prediction": "I think this should be `panic(\"unsupport os-release\")` instead of `panic(\"unsupport os-release\")`",
+ "prediction": "I think this should be `panic(\"unsupport os-release\")` or `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\""
},
{
@@ -1371,39 +1371,39 @@
"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.",
+ "prediction": "Layout/MultilineMethodCallBraceLayout: Closing method call brace must be on the line after the last argument when opening brace is on a separate line from the first argument when opening brace is on a separate line from 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.",
+ "prediction": "Layout/SpaceInsideHashLiteralBraces: Space inside { missing. Layout/SpaceInsideHashLiteralBraces: Space inside } missing.",
"reference": "Think it's worth extracting this to `Exercise#complete?`?"
},
{
- "prediction": "Why did you remove this?",
+ "prediction": "Why is this removed?",
"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`.",
+ "prediction": "I don't think this is needed anymore.",
"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])`",
+ "prediction": "I think this should be `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`",
+ "prediction": "why do we need this?",
"reference": "rebuild: say loads and merges"
},
{
- "prediction": "Why is this removed?",
+ "prediction": "I think we should remove the `Page` and `ElementHandle` from `expect-puppeteer.js`.",
"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?",
+ "prediction": "Why remove this line?",
"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?",
+ "prediction": "I think this should be `mock.HELLO_36` instead of `mock.HELLO_36`",
"reference": "Is it really LEGACY_HELLO if we are using the most up to date HELLO? Perhaps `MONGOS_HELLO` would work here?"
},
{
@@ -1411,19 +1411,19 @@
"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.",
+ "prediction": "I think this should be `--mac_installer_signing_identifier `",
"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)`",
+ "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`",
+ "prediction": "Why is this change needed?",
"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())`",
+ "prediction": "I think this should be `osrm::util::Log() << \"No shared memory regions found. Try running osrm-datastore\"`.",
"reference": "What about just printing an empty list in this case? That would make the output more predictable."
},
{
@@ -1431,47 +1431,47 @@
"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`?",
+ "prediction": "Why did you remove the `if ($argument === '')` check?",
"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`",
+ "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.",
+ "prediction": "I don't think this is needed anymore.",
"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`",
+ "prediction": "I think this should be `azkaban.jvm.ignore.args` instead of `azkaban.jvm.ignore.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' )`",
+ "prediction": "I think you can remove the `sourceMessage` part from the string.",
"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);`",
+ "prediction": "I think this should be `#if NETSTANDARD1_3`",
"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)`",
+ "prediction": "I think we should check if the swapchain is not NULL.",
"reference": "Would it be equivalent to check if `chain != nullptr` below? Not suggesting a change, just curious."
},
{
- "prediction": "Why is this change needed?",
+ "prediction": "I think this should be `std::chrono::steady_clock::now()` instead of `std::chrono::steady_clock::now()`.",
"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.",
+ "prediction": "nit: \"The first word in a function's description should be a third-person verb (eg \"runs\" not \"run\").\"",
"reference": "And here. Please, use `'` for apostrophes in changed strings in this file."
},
{
- "prediction": "Why do we need to simulate execution?",
+ "prediction": "Why is this change needed?",
"reference": "assignments should only be cuddled with other assignments (from `wsl`)"
},
{
- "prediction": "I think this should be `DefaultBlockDataVersion(c *Config, holes bool)`",
+ "prediction": "I think this should be `return FirstValidDataVer` instead of `DefaultBlockDataVersion`",
"reference": "Please move this to `block_types.go`."
},
{
@@ -1479,11 +1479,11 @@
"reference": "So this is not needed anymore for all attributes?"
},
{
- "prediction": "I think this should be `FailedToGetOpenTelemetrySDK` instead of `FailedOpenTelemetrySDK`.",
+ "prediction": "I don't think we need to add this event to the ServiceCollection.",
"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.",
+ "prediction": "I don't think we need this function anymore. I think it should be `start_moto_server('ses', port=port, name='SES', asynchronous=asynchronous, update_listener=update_listener)`.",
"reference": "I think we can remove this function, right? (duplicate with `ses_starter.py`)"
},
{
@@ -1491,11 +1491,11 @@
"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'`",
+ "prediction": "I don't think this is necessary. `QUILT_USE_TQDM` should be set to `False` if `QUILT_USE_TQDM` is not set.",
"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.",
+ "prediction": "I don't think we should remove this line.",
"reference": "You've got an absolute path here referencing your home dir :-)."
},
{
@@ -1503,19 +1503,19 @@
"reference": "Maybe I should do some sorting so that these properties don't keep moving around..."
},
{
- "prediction": "Why is this removed?",
+ "prediction": "Why remove this?",
"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;`",
+ "prediction": "I think this should be `static` instead of `static`.",
"reference": "Can be removed"
},
{
- "prediction": "I think this should be `use Config;` instead of `use Request;`",
+ "prediction": "Why is this needed?",
"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.",
+ "prediction": "I think this should be `charset=utf-8` instead of `charset=utf-8`",
"reference": "It's better to get the charset from context or other setting to let the user override it."
},
{
@@ -1523,11 +1523,11 @@
"reference": "this filename as well needs change"
},
{
- "prediction": "Why is this change needed?",
+ "prediction": "I think this should be `SecretAccessKeyIDRef`",
"reference": "I think we want to remove `omitempty` here"
},
{
- "prediction": "I think this should be `defer handler.Close()`.",
+ "prediction": "Why do we need to close the handler here?",
"reference": "You cannot move this here because it breaks detach. Just call `tty.Close()` before returning the error from start"
},
{
@@ -1535,31 +1535,31 @@
"reference": "I updated only the implicit roles who needed a update for this new rule to validate."
},
{
- "prediction": "Why is this needed?",
+ "prediction": "nit: remove empty line",
"reference": "> // Code generated by protoc-gen-go. DO NOT EDIT."
},
{
- "prediction": "I think this should be `skipOSConfig = map[string]string{\"osconfig_not_supported\": \"true\"}`",
+ "prediction": "I don't think this is needed.",
"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)`",
+ "prediction": "I think we should check if the type is valid and then check if it is valid.",
"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{})`",
+ "prediction": "I think we should use `defer response.Body.Close()` instead of `defer response.Body.Close()`",
"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.",
+ "prediction": "I think this should be `ASSERT(dcontext->is_exiting == GLOBAL_DCONTEXT || dcontext->is_exiting == GLOBAL_DCONTEXT || dcontext->is_exiting == GLOBAL_DCONTEXT || dcontext->is_exiting == GLOBAL_DCONTEXT)`",
"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)`",
+ "prediction": "I don't think this is needed. The `ConfigureKestrel` method should be called before the `SampleApp` is created.",
"reference": "Why not change the other samples?"
},
{
- "prediction": "I think we should use `getAttribute` instead of `getAttribute`",
+ "prediction": "I don't think we need to escape the `id` attribute here.",
"reference": "Indentation is mixed up here due to spaces/tabs, I'm guessing."
},
{
@@ -1567,7 +1567,7 @@
"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);`",
+ "prediction": "I think this should be `return $this->getConfigurationFromYaml()`",
"reference": "Project standard is spaces, not tabs. Please fix and then we can merge this."
},
{
@@ -1579,31 +1579,31 @@
"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`",
+ "prediction": "I think this should be `obj.is_a?(::BigDecimal)` instead of `obj.to_s`",
"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`",
+ "prediction": "I think this should be `plan_creator_spec` instead of `plan_creator_spec`",
"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.",
+ "prediction": "I don't think we need to do this, but I don't think we want to run more than 20 iterations. I don't think we want 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`",
+ "prediction": "Please remove this empty line.",
"reference": "can just remove it ?"
},
{
- "prediction": "I think this should be `FinishMigrateRepository(repo *Repository, repoPath string)` instead of `FinishMigrateRepository(repo *Repository, repoPath string)`",
+ "prediction": "I think this is a good idea, but I don't think we need to do this for mirrors. I think it would be better to just call `FinishUpdateRepository(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`",
+ "prediction": "why do we need this?",
"reference": "@shannonwells is there still something missing here?"
},
{
- "prediction": "I don't think we need to add this to the config file.",
+ "prediction": "I don't think this is a good idea, but I think it would be better to add a `default: nil` option to the `StressTest` class. I think it would be better to add a `default: nil` option to the `StressTest` class.",
"reference": "This could be more indicative of what it is... e.g... `stresstest_time_limit`"
},
{
@@ -1611,91 +1611,91 @@
"reference": "Shouldn't we do a `reader_payload_pool_.reset()` here?"
},
{
- "prediction": "Why is this change needed?",
+ "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`?",
+ "prediction": "I think this should be `getattr(self, '_current_key', None)`.",
"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`",
+ "prediction": "I think this should be `annotationMode` instead of `rawMode`",
"reference": "I guess I like the name `mode` okay. I can't think of anything better."
},
{
- "prediction": "Shouldn't this be `defaultTimeout`?",
+ "prediction": "Why not just use `w.DefaultTimeout` instead of `w.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\"",
+ "prediction": "@deads2k I think this should be \"The 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`",
+ "prediction": "I don't think this is needed anymore.",
"reference": "Don't you mean `import scapy.consts`?"
},
{
- "prediction": "I think this should be `rollbackPrimary(ctx context.Context)` instead of `rollbackPrimary(ctx context.Context)`",
+ "prediction": "I think this should be `rollbackPrimary` instead of `rollbackPrimary`.",
"reference": "`ctx` is unused in rollbackPrimary"
},
{
- "prediction": "Why is this changed?",
+ "prediction": "why is this change needed?",
"reference": "This is not what title says."
},
{
- "prediction": "I don't think this interface is needed.",
+ "prediction": "I don't think this interface should be used.",
"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)`",
+ "prediction": "I don't think this is needed.",
"reference": "U1000: func `fakeGetOk` is unused (from `unused`)"
},
{
- "prediction": "I think this should be `k8s.io/client-go/util/retry`",
+ "prediction": "I don't think this is needed.",
"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`",
+ "prediction": "I think this should be `github.com/aws/aws-sdk-go/aws`",
"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.",
+ "prediction": "I think we should also check if the secret is empty.",
"reference": "Do we not have tests for pipeline delete "
},
{
- "prediction": "I think this should be `-appendToFile`.",
+ "prediction": "I think this should be `-appendToFile` instead of `-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.",
+ "prediction": "I think this should be `apierrors` instead of `apierrors`",
"reference": "remove this blank?"
},
{
- "prediction": "I think this should be `computedNumOfActivePartiions_(-1)` instead of `computedNumOfActivePartiions_(-1)`",
+ "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.",
+ "prediction": "I don't think this is needed.",
"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`",
+ "prediction": "I don't think this is needed.",
"reference": "`insecure` is a global variable (from `gochecknoglobals`)"
},
{
- "prediction": "I think this should be `if setting.Repository.DisableHttpGit {`",
+ "prediction": "I think this should be `HTTP/1.1` instead of `HTTP/1.1`.",
"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));`?",
+ "prediction": "I think we should use `assertEquals` instead of `assertEquals`.",
"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{}`",
+ "prediction": "I think this should be `func(args []Value, results []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.",
+ "prediction": "I don't think we need to use `dom.getAttribute('name')` here.",
"reference": "Does this work for Custom Elements? iirc we're lacking test cases for them. /cc @andrewiggins @developit"
},
{
@@ -1703,31 +1703,31 @@
"reference": "Same change just above?"
},
{
- "prediction": "I think this should be `self.Promise = undefined;`",
+ "prediction": "I think this should be `self.Promise = undefined` instead of `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.",
+ "prediction": "I think we should keep this test as well, since it's not used anywhere else.",
"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`",
+ "prediction": "I think we should use `lambda_function_arn` instead of `arn_to_lambda_function_arn` here.",
"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.",
+ "prediction": "I think this should be `return stop` instead of `return stop`",
"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?",
+ "prediction": "I think this should be `DeleteWorkspaceFile` instead of `DeleteWorkspaceFile`",
"reference": "nit: can we rename the interface to `wsFileDeleter`"
},
{
- "prediction": "Why is this change needed?",
+ "prediction": "I don't think we need to add the `GroupMembers` field to the `CompletedRule` struct.",
"reference": "Why target cannot be external endpoints?"
},
{
- "prediction": "I think this should be `.auto_`",
+ "prediction": "I think this should be `.auto_config_elements` instead of `.auto_config_elements`.",
"reference": "We use a suffix \".AUTOCREATED\" for configsets, maybe we can use the same here?"
},
{
@@ -1735,31 +1735,31 @@
"reference": "This one won't be disposed. Should be (something like) `using var openTelemetry = OpenTelemetrySdk.EnableOpenTelemetry(` no?"
},
{
- "prediction": "why is this changed?",
+ "prediction": "I don't think we need to remove this line.",
"reference": "Why this is in the diff?"
},
{
- "prediction": "I think this should be `CloudBackupGroupCreate` or `CloudBackupGroupCreateRequest`",
+ "prediction": "I think this should be `CloudBackupCreate` instead of `CloudBackupGroupCreate`",
"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.",
+ "prediction": "I don't think we should unmount the excess dom children 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()));`",
+ "prediction": "Why not use `call_user_func_array('array_merge', $this->getFilters());` instead of `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 }`",
+ "prediction": "I think this should be `ctxWithRemoteSpanContext(ctx, sc)`",
"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]",
+ "prediction": "I don't think we need to change this, it's a good idea to change it to `weitere hinzuf\u00fcgen` to `weitere hinzuf\u00fcgen` and not `weitere hinzuf\u00fcgen` to `weitere hinzuf\u00fcgen`",
"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`",
+ "prediction": "I don't think this is necessary.",
"reference": "nit: 200 is superfluous"
},
{
@@ -1767,39 +1767,39 @@
"reference": "This is testing `unreserved keyword`"
},
{
- "prediction": "I think this should be `projectionMethodMappings[0]` instead of `projectionMethodMappings[1]`",
+ "prediction": "I think this should be `S2` instead of `S2`.",
"reference": "paramsNatOrigin doesn't include sUVtoST. I would just remove that definition for now"
},
{
- "prediction": "I think this should be `testBlockRetrievalQueueTest(t *testing.T)`",
+ "prediction": "Why is this needed?",
"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`.",
+ "prediction": "Nit: remove trailing whitespace",
"reference": "AWS Identity and Access Management (IAM)"
},
{
- "prediction": "I think this should be `cloudsql_project_resource_name`",
+ "prediction": "I think this should be `cloudsql_project_iam_policies` instead of `cloudsql_project_iam_policies`",
"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')`",
+ "prediction": "I don't think we need the `headers` attribute anymore.",
"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()`",
+ "prediction": "I don't think we need to do this. The `getAllprojects` method returns a `Set`. I think it would be better to just return `Collections.emptySet()` if `getResolvedArtifacts` returns an empty set.",
"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`.",
+ "prediction": "This should be `data-lists` instead of `data-lists`.",
"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`",
+ "prediction": "I don't think we need to import `scapy.arch.windows.disable_sendrecv` here.",
"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`",
+ "prediction": "I think this should be `ForeignAsset` instead of `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."
},
{
@@ -1807,7 +1807,7 @@
"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`.",
+ "prediction": "I don't think we need to change the error message to \"only one credential type may be specified per profile\"",
"reference": "Can we port this error msg to v2 too? This one is better, as it explicitly states what sources are allowed."
},
{
@@ -1815,19 +1815,19 @@
"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`",
+ "prediction": "I think this should be `self.to_float32 = to_float32, color_type='color'`",
"reference": "I suggest expanding dims here to simplify the formatting."
},
{
- "prediction": "Why is this needed?",
+ "prediction": "Why is this change needed?",
"reference": "Why do you need to specify the kinto prefix here?"
},
{
- "prediction": "`f` should be `f` instead of `f`",
+ "prediction": "This should be `print('outputs[{i}].shape = {outputs[i].shape!r}')`",
"reference": "The `!r` is unnecessary."
},
{
- "prediction": "I think this should be `if accountKey != \"\" || sasToken != \"\" {`",
+ "prediction": "Why is this needed?",
"reference": "I didn't see existing tests for this `OpenBucketURL`. Not sure if it's easy to do without mocking these `opener` calls."
},
{
@@ -1835,19 +1835,19 @@
"reference": "Should we default to `true` ?"
},
{
- "prediction": "I think this should be `consensus/fsm.go` and not `consensus/fsm.go`.",
+ "prediction": "I think this should be `consensus.fsm` instead of `consensus.fsm`",
"reference": "File is not `goimports`-ed (from `goimports`)"
},
{
- "prediction": "I think this should be `@wordpress/default` instead of `@wordpress/default`.",
+ "prediction": "I think this should be `@babel/preset-react` 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`",
+ "prediction": "I don't think we need to log the reason here.",
"reference": "Nit: We can use `%s` since `disconnectReason` is a string."
},
{
- "prediction": "why is this needed?",
+ "prediction": "why do you need this?",
"reference": "I think it's better to create a new example"
},
{
@@ -1855,11 +1855,11 @@
"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`",
+ "prediction": "I think this should be `--SO3H` instead of `--SO3H`",
"reference": "To be consistent, I think it should actually just be a single `-`"
},
{
- "prediction": "Why do we need to import `current_app`?",
+ "prediction": "I don't think this is needed. `current_app` is a `flask` module.",
"reference": "this seems extraneous."
},
{
@@ -1867,59 +1867,59 @@
"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`",
+ "prediction": "I don't think this is needed anymore.",
"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`.",
+ "prediction": "I think this should be `dynamo_avx512_code_in_use = false;`",
"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`",
+ "prediction": "I don't think this is needed anymore.",
"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\");`",
+ "prediction": "I don't think this is correct. The endpoint value should start with http or https. The endpoint value should start with http or https. The endpoint value should start with http or https. The endpoint value should start with http or https. The endpoint value should start with http or https. The endpoint value should start with http or https. The endpoint value should start with http or https. The endpoint value should start with http or https. The endpoint should start with http or https.",
"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`.",
+ "prediction": "I don't think this is needed.",
"reference": "Shouldn't it be more specific, like \"gcppubsub supports all UTF-8 strings\"?"
},
{
- "prediction": "I think this test should be removed.",
+ "prediction": "I think this is a good idea, but I don't think we need to test the slave and secondary, right?",
"reference": "Everything in this class is SolrCloud-related, not legacy replication"
},
{
- "prediction": "(style) line over 80 characters",
+ "prediction": "Why is this removed?",
"reference": "Could just assign directly and eliminate the `newval` var."
},
{
- "prediction": "I think this should be `pullRequestTitleComment` instead of `pullRequestTitleComment`",
+ "prediction": "I think this should be `blob/gcsblob: not blobby enough`",
"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`",
+ "prediction": "I think this should be `src/Datadog.Trace.ClrProfiler.Managed.Core/Datadog.Trace.ClrProfiler.Managed.Core.csproj`",
"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()`",
+ "prediction": "This should be `setup_single_post_style()` instead of `setup_single_page_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`",
+ "prediction": "I think this should be `HIP_STARTUP_LOADER = 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`",
+ "prediction": "I don't think this is needed.",
"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?",
+ "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())`.",
+ "prediction": "I think this test should be `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."
},
{
@@ -1927,39 +1927,39 @@
"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`.",
+ "prediction": "Why is this 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`",
+ "prediction": "I think this class should be `InstanceRegistryFailedEvent`",
"reference": "template is not correct?"
},
{
- "prediction": "I don't think this is needed anymore.",
+ "prediction": "I don't think this is needed.",
"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`",
+ "prediction": "I think this should be `FakeFS.activate!` instead of `FakeFS.activate!`.",
"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]`.",
+ "prediction": "I think we should add `/admin/status` to the `/admin/status` endpoint, since it's only used in the `/admin/status` endpoint.",
"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);`?",
+ "prediction": "I think this should 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`",
+ "prediction": "I think this should be `IHasHttpMethod`",
"reference": "This should probably be a property instead of a method."
},
{
- "prediction": "I think this should be `state: RECONCILED`.",
+ "prediction": "I think this should be `current: {{ .CAST.version }}` instead of `desired: {{ .CAST.version }}`.",
"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.",
+ "prediction": "I don't think we need to add the `:add_group_config_to_solr` here.",
"reference": "Line is too long. [82/80]"
},
{
@@ -1967,63 +1967,63 @@
"reference": "Add blank line below license header."
},
{
- "prediction": "I think we should use `ops.current().location()` instead of `ops.current().buildReplacement()`",
+ "prediction": "I don't think we need the `ops.current() != null` check here.",
"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`",
+ "prediction": "nit: remove empty line",
"reference": "Just run a global replacement for all `executionproto`."
},
{
- "prediction": "I think this should be `options=None` instead of `options=None`",
+ "prediction": "I think we should add the `options` argument to the constructor.",
"reference": "@AutomatedTester @davehunt thoughts on a new keyword argument?"
},
{
- "prediction": "I think this should be `FPGA_NOT_SUPPORTED` instead of `FPGA_NOT_SUPPORTED`.",
+ "prediction": "I don't think this is correct. The error code should be `FPGA_NOT_SUPPORTED` instead of `FPGA_INVALID_PARAM`.",
"reference": "Should line 47 be OPAE_ERR?"
},
{
- "prediction": "I think this should be `time.Time` or `time.Time`",
+ "prediction": "I think this should be `time.Duration(time.Duration(time.Second))`",
"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')`",
+ "prediction": "I think this should be `tabbar-size` instead of `tabbar-size`.",
"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();`",
+ "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?",
+ "prediction": "I think this should be `any_elements_located`",
"reference": "shouldn't **call** return a boolean?"
},
{
- "prediction": "I think this should be `Service` instead of `Interface`",
+ "prediction": "I think this should be `Interface` instead of `Interface`.",
"reference": "ViewModel classes should not expose any classes from framework.model."
},
{
- "prediction": "Why did you remove this?",
+ "prediction": "why was this removed?",
"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`",
+ "prediction": "Line is too long. [89/80]",
"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.",
+ "prediction": "I don't think this is the right change.",
"reference": "why update Copyright ?"
},
{
- "prediction": "I think this should be `DgSqlCode(-4322)` instead of `DgTableName(naTable->getTableName().getQualifiedNameAsAnsiString());`",
+ "prediction": "I think this should be `DgSqlCode(-4322)` instead of `DgTableName(-4322)`",
"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`.",
+ "prediction": "I don't think this is a good idea, but I think it would be better to have `OnClear` and `OnInitialize` in the `WrapperLayoutRendererBase` class.",
"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`",
+ "prediction": "I don't think we need to check if `row.treeNode.children.length > 0`",
"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'; `"
},
{
@@ -2031,43 +2031,43 @@
"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');`",
+ "prediction": "Why is this removed?",
"reference": "Why is the escaping of @ and $ removed?"
},
{
- "prediction": "I think this interface should be `IHasHttpUrl` and not `IHasHttpUrl`",
+ "prediction": "I think this should be `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)`",
+ "prediction": "Shouldn't this be `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`.",
+ "prediction": "I think this should be `return fmt.Errorf(\"dockerfile path expected, got %s\", opts.DockerfilePath)`.",
"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.",
+ "prediction": "I don't think this is needed.",
"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()`.",
+ "prediction": "I think this should be `log.webelem.debug(\"Firing event on {!r} via javascript.\".format(self))`",
"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`",
+ "prediction": "why not just `profiling_enabled`?",
"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?`",
+ "prediction": "I think this should be `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`",
+ "prediction": "I think we should use `protocol.ConsensusCurrentVersion` instead of `protocol.ConsensusCurrentVersion`",
"reference": "We could avoid passing proto since threshold isn't needed."
},
{
- "prediction": "I think this should be `false && config.GetBool(config.FlagKeepConnectedOnFail)`",
+ "prediction": "I don't think we need to check for `false` here.",
"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."
},
{
@@ -2075,15 +2075,15 @@
"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`",
+ "prediction": "I think `current_user.id` should be `current_user.id` instead of `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`",
+ "prediction": "I think we should add a `@type {Set.}`.",
"reference": "The line exceeds 120 characters."
},
{
- "prediction": "I think we should use `uitable.New()` instead of `uitable.New()`",
+ "prediction": "I think this should be `siteInfo.AddRow(\"PHP version:\", desc[\"php_version\"])`",
"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."
},
{
@@ -2091,143 +2091,143 @@
"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))`",
+ "prediction": "I don't think this is the right place to get the rampup percentage from the list. I think it would be better to use a `Comparator.comparing(ImageRampup::getRampupPercentage)` instead of a `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\")`.",
+ "prediction": "I think this should be `return fmt.Errorf(\"No existing public subnets were found in VPC %s.\", o.importVPC.ID, color.HighlightUserInput(\"ctrl-c\"), color.HighlightUserInput(\"ctrl-c\"), color.HighlightUserInput(\"ctrl-c\"), color.HighlightUserInput(\"ctrl-c\"), color.HighlightUserInput(\"ctrl-c\"), color.HighlightUserInput(\"ctrl-c\"), color.HighlightUserInput(\"ctrl-c\")`",
"reference": "can we update this to a `log.Warningf`?"
},
{
- "prediction": "I think this should be `# pylint: disable=subprocess-run-check`",
+ "prediction": "I don't think this is a good idea, but I don't think it's a good idea to have a `check_call` in the `connect_container_to_network` function. I think it's a good idea to have a `disconnect_container_from_network` function that will fail if the network is not connected to the network.",
"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?",
+ "prediction": "Why is this mock needed?",
"reference": "Do we need `schema manager` at here ?"
},
{
- "prediction": "I don't think this is needed.",
+ "prediction": "I think this should be `C.CString(input)` instead of `C.CString(input)`",
"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());`",
+ "prediction": "I think this should be `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.",
+ "prediction": "I don't think we need to set this in the `NewStatefulSetService` function.",
"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`",
+ "prediction": "Why is this `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?",
+ "prediction": "Layout/TrailingWhitespace: Trailing whitespace detected.",
"reference": "thanks for moving these over. makes more sense for them to be in the exports_helper"
},
{
- "prediction": "Why is this needed?",
+ "prediction": "I don't think this is needed anymore.",
"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`.",
+ "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?",
+ "prediction": "I think this should be `MvxWindowsCommonAccelerometer`",
"reference": "This class is missing the `MvxPlugin` attribute"
},
{
- "prediction": "I think we should use `core.getWxLang(languageHandler.getLanguage())` instead of `core.getWxLang(languageHandler.getLanguage())`.",
+ "prediction": "I think this should be `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`.",
+ "prediction": "Why is this change needed?",
"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\");`",
+ "prediction": "I think this should be `log.info(\"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`.",
+ "prediction": "I don't think this is correct. `--goquorum-compatibility-enabled` should be `true` and `--miner-enabled` should be `false` and `--miner-enabled` should be `true`.",
"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.",
+ "prediction": "Layout/SpaceInsideHashLiteralBraces: Space inside { missing. Layout/SpaceInsideHashLiteralBraces: Space inside } missing.",
"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=\"`",
+ "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?",
+ "prediction": "I think this should be `#include `.",
"reference": "We could put this implementation in `RTPSWriter::create_change_pool` and avoid an extra function."
},
{
- "prediction": "I think this should be `fmt.fmt`",
+ "prediction": "I don't think this is needed.",
"reference": "should this file ends with _test.go?"
},
{
- "prediction": "Why is this change needed?",
+ "prediction": "I don't think this is correct. `self.src` should be the same as `self.src`.",
"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`?",
+ "prediction": "I think this should be `const flattenIndex = this.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`.",
+ "prediction": "I don't think we need to freeze the array here.",
"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`",
+ "prediction": "I think this should be `s3.MakePublicS3SessionForDownload`",
"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.",
+ "prediction": "I don't think this is needed.",
"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));`",
+ "prediction": "I think this should be `LOG.info(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`",
+ "prediction": "Why do we need a mutex here?",
"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`",
+ "prediction": "I think we should check for `gcerrors.Code(err) == gcerrors.Unknown` instead of checking for `c == gcerrors.Unknown`.",
"reference": "Nit: this is just `return gcerrors.Code(err)`, isn't it?"
},
{
- "prediction": "Why is this removed?",
+ "prediction": "Why was 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?",
+ "prediction": "I think we should use `os.path.join` instead of `os.path.join` here.",
"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.",
+ "prediction": "Why is this change needed?",
"reference": "did you remove **params.qstring.method** intentionally? if so why?"
},
{
- "prediction": "Shouldn't this be \"read.locality.task.initialize.threads\"?",
+ "prediction": "I think this should be `read.locality.threads.enabled` instead of `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`",
+ "prediction": "I think we should just set the app name to `previouslyDeployedConfig.App = appConfig.Name` instead of `previouslyDeployedConfig.App = appConfig.Name`",
"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());`",
+ "prediction": "I think this should be `VK_DEBUG_REPORT_ERROR_BIT_EXT` instead of `VK_DEBUG_REPORT_ERROR_BIT_EXT`.",
"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`.",
+ "prediction": "I think this should be `RSERVE_PASSWORD = System.getProperty(\"dataverse.rserve.pwrd\");`",
"reference": "Nice to see this `dataverse.rserve.password` fix rolled in."
},
{
@@ -2235,23 +2235,23 @@
"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.",
+ "prediction": "I think this should be `from_email` instead of `cc`",
"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?",
+ "prediction": "Why did you change this?",
"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()) {`",
+ "prediction": "I think this should be `if (block_a->hash() == block_a->hash() && block_a->hash() == block_a->hash() && block_a->hash() == block_a->hash() && block_a->hash() == block_a->hash() && block_a->hash() == block_a->hash() && block_a->hash() == block_a->hash() && block_a->hash() == block_a->hash() || block_a->hash() == block_a->hash() == block_a->hash() && block_a->hash() == block_a->hash() && block_a->hash() == block_a->hash() == block_a->hash() && block_a->hash() == block_a->hash() == block_a->hash() && block_a->hash() == block_a->hash() && block_a->hash() == block_a->hash() == block_a->hash() && block_a->hash() == block_a->hash() == block_a->hash() && block_a->hash() == block_a->hash() == block_",
"reference": "Could use election from `info_a.election`, or is this deliberate?"
},
{
- "prediction": "I think this should be `@deprecated` instead of `@deprecated`",
+ "prediction": "I don't think this is needed.",
"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)?');`?",
+ "prediction": "I think this should be `assert(typeof opt_port === 'function', 'not port(mocha callback)?');`",
"reference": "Maybe it would simpler to ignore opt_port if type !== 'number'?"
},
{
@@ -2259,75 +2259,75 @@
"reference": "Where was `name` being declared before?"
},
{
- "prediction": "I think this should be `d.Status.Conditions = []appsv1.DeploymentCondition{...}`",
+ "prediction": "I think this should be `UnknownDeployment` instead of `UnknownDeployment`",
"reference": "nit: use `corev1.ConditionUnknown`"
},
{
- "prediction": "I think we should use `/^[a-f0-9]*$/` instead of `/^[a-f0-9]*$/`",
+ "prediction": "I think this should be `/^[a-f0-9]*$/.test(v)`",
"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?",
+ "prediction": "I think we should use `Optional.ofNullable(validatorProvider.getVoteProvider().get()).isPresent()` instead of `Optional.ofNullable(validatorProvider.getVoteProvider().get()).isPresent()`.",
"reference": "nit: can extract the voteProvider as a local variable"
},
{
- "prediction": "I think we should use `assertEquals` instead of `assertEquals`",
+ "prediction": "Why is this change needed?",
"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)`",
+ "prediction": "why not use `context.WithCancel(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.",
+ "prediction": "Why is this change needed?",
"reference": "`.` at the end of the sentence"
},
{
- "prediction": "I think this should be `time.Since(start).Milliseconds()` instead of `time.Since(start).Milliseconds()`",
+ "prediction": "why not use `time.Since(start).Milliseconds()` instead of `time.Since(time.Since(start).Milliseconds()).Milliseconds()`?",
"reference": "wouldn't it be useful to split this into an error metric for the timing?"
},
{
- "prediction": "Line is too long. [89/80]",
+ "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": "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()`.",
+ "prediction": "Why is this needed?",
"reference": "line is 138 characters"
},
{
- "prediction": "I think this should be `func() error`.",
+ "prediction": "I think this should be a function that calls Close on the returned database. The second return value is a Wire cleanup.",
"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.",
+ "prediction": "I don't think this is needed.",
"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`",
+ "prediction": "This should be `compiler_info.json` instead of `compiler_info.json`",
"reference": "Do we still have these files? Shouldn't we remove these?"
},
{
- "prediction": "I think this should be `ErrDurationInvalid` instead of `ErrDurationInvalid`.",
+ "prediction": "I think this should be `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?",
+ "prediction": "I think this should be `SyncChanSize` instead of `SyncChanSize`",
"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']`",
+ "prediction": "I don't think we need to reject private plans here.",
"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`",
+ "prediction": "I think this should be `UART_RX_PIN` or `UART_TX_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)`",
+ "prediction": "I think this should be `Optional.ofNullable(dnsDiscoveryUrl).orElse(null);`",
"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`.",
+ "prediction": "I think we should remove this line.",
"reference": "why is this needed?"
},
{
@@ -2335,7 +2335,7 @@
"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`",
+ "prediction": "I think this should be `TYPE_I16` instead of `TYPE_I32`.",
"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?"
},
{
@@ -2343,23 +2343,23 @@
"reference": "spelling (variable name, all three changes)"
},
{
- "prediction": "why not just `desiredUser keybase1.UserVersion`?",
+ "prediction": "I don't think we need to pass `desiredUser` to `LoadTeamPlusKeys`.",
"reference": "I believe you meant \"specify `desiredUID` and `desiredRole`\"?"
},
{
- "prediction": "I don't think this is needed anymore.",
+ "prediction": "I don't think we need to remove the `v1beta1` package from the `openflow.go` package.",
"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))`",
+ "prediction": "I don't think we need to pass the `req.Encoding` as an argument to `IsUnrecognizedEncodingError`.",
"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?",
+ "prediction": "Why is this removed?",
"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)`?",
+ "prediction": "Why not use `String#Equals(String, StringComparison)`?",
"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?"
},
{
@@ -2367,11 +2367,11 @@
"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;`",
+ "prediction": "I think this should be `this.width += 2 * Blockly.FlyoutButton.MARGIN;`",
"reference": "Hm, this looks like a change that should go upstream as well."
},
{
- "prediction": "Why is this removed?",
+ "prediction": "why remove this?",
"reference": "let's keep ActionByActionHash and delete getActionByActionHash"
},
{
@@ -2379,19 +2379,19 @@
"reference": "please use return type"
},
{
- "prediction": "I think this should be `LOG.info(\"edgedriver will log to \" + logFile);`",
+ "prediction": "I think this should be `info` or `fine`.",
"reference": "This is deliberately at this level."
},
{
- "prediction": "I think this should be `self._retry_exceptions` instead of `self._num_retries`",
+ "prediction": "I think this should be `as msg: %s` instead of `as msg: %s`",
"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`",
+ "prediction": "I don't think this is correct. The current app domain is the currnent of the current app domain.",
"reference": "> specialised This isn't a typo in my neck of the woods "
},
{
- "prediction": "I think this should be `storageTarget` instead of `storageTarget`",
+ "prediction": "I think this should be `storageTarget` instead of `storageTarget`.",
"reference": "will change to `storage_target`"
},
{
@@ -2399,71 +2399,71 @@
"reference": "This would be better as `cls.securitycenter_client`, to match what is being instantiated."
},
{
- "prediction": "I think this should be `hasSeparateSyswow64` or `hasSeparateSyswow64Sys32`?",
+ "prediction": "I think it would be better to use `isSyswow64` instead of `isSyswow64`?",
"reference": "Could we have this initialization as part of the initialize method?"
},
{
- "prediction": "I think this should be `null`",
+ "prediction": "I think this should be `inject.controller('patients/edit')`",
"reference": "This line should be removed as editController is not used from this context anymore."
},
{
- "prediction": "I think this should be `RetractTable` and `Process`",
+ "prediction": "I think it would be better to make this `RetractTable` and `RetractOutputTable` as well.",
"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:`",
+ "prediction": "I don't think this is correct. `init_cfg['checkpoint']` should be `None` if `init_cfg` is None.",
"reference": "For insurance, it's best not to take it directly"
},
{
- "prediction": "I think this method should be `beforeChangeValueOf` and `afterChangeValueOf`",
+ "prediction": "I think this should be `CharSequence[]` instead of `CharSequence[]`.",
"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)`",
+ "prediction": "I think this should be done in the `saveTaskData` function.",
"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)`",
+ "prediction": "I think this should be `rgb(220,220,220)` and not `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`",
+ "prediction": "I don't think this is needed.",
"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.",
+ "prediction": "I don't think this is needed.",
"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.",
+ "prediction": "Layout/MultilineMethodCallIndentation: Align the parameters of a method call if they span more than one line. Layout/MultilineMethodCallIndentation: Align the parameters of a method call if they span more than one line. Layout/MultilineMethodCallIndentation: Align the parameters of a method call if they span more than one line. Layout/MultilineMethodCallIndentation: Align the parameters of a method call if they span more than one line. Layout/MultilineMethodCallIndentation: Align the parameters of a method call if they span more than one line.",
"reference": "@briri Thanks! I just caught this too updating my feature branch"
},
{
- "prediction": "I think this should be `if len(configKey) == 0 && envpw != \"\" {`",
+ "prediction": "I think this should be `if envpw != \"\" && 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`",
+ "prediction": "I don't think we need to test the status of the draining node.",
"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;",
+ "prediction": "I think this should be `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`.",
+ "prediction": "I don't think we need to add the `PlanResult` to the `TargetSpec` and `PlanResult` here.",
"reference": "Do we expect people to use PlanResult directly?"
},
{
- "prediction": "Why is this change needed?",
+ "prediction": "Why not just use `actualErr` here?",
"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`.",
+ "prediction": "I think this should be `if epochNum >= a.foundationBonusLastEpoch || (epochNum <= a.foundationBonusLastEpoch && epochNum <= 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.",
+ "prediction": "I don't think this is correct. It's not a good idea to add a space between an img's accessible name and other elements. I think it's a good idea 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."
},
{
@@ -2471,131 +2471,131 @@
"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)`?",
+ "prediction": "I think this should 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`",
+ "prediction": "This should be `minQueryLength` and `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}`",
+ "prediction": "I don't think this is correct. The `if` statement should be `when:when='${ndc:topframes=1}' == '':inner=:else=${ndc}|}`.",
"reference": ":+1: that's a easier example :)"
},
{
- "prediction": "This method should be `findProductIdsWithBoundAttributeByAttributeId`",
+ "prediction": "I think we should add `@return array[]` to `ProductQueryInterface` as well.",
"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)`",
+ "prediction": "I don't think this is correct. The `jobtap_remove` function is called with a `jobtap_plugin_name(p)` argument, and the `jobtap_plugin_name(p)` function is called with a `jobtap_plugin_name(p)` argument. The `jobtap_remove` function is called with a `jobtap_plugin_name(p)` argument, which is called with a `jobtap_plugin_name(p)`. The `jobtap_plugin_name` function is called with a `jobtap_remove` function, which is called with a `jobtap_plugin_name(p)` argument, which is called with a `jobtap_plugin_name(p)` argument. The `jobtap_plugin_name(p)` function is called with a `jobtap_plugin_name(p))` argument, which is called with a `jobtap_plugin_name(p)`. The `jobtap_plugin_name(p)` argument, which is called with a `jobtap_remove()` function, which is called with a `jobtap_plugin_name(p)` argument, which is called with a `jobtap_",
"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`",
+ "prediction": "Why is this change needed?",
"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`.",
+ "prediction": "I think we should check if the job name is not empty.",
"reference": "Is `o.name` always set here?"
},
{
- "prediction": "I think this should be `target.SteadyStateDependencies` instead of `target.SteadyStateDependencies`",
+ "prediction": "I don't think we need to pass the `onSteadyStateCanResolve` argument to `verifyStatusResolvable`.",
"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?`?",
+ "prediction": "Layout/EmptyLinesAroundClassBody: Extra empty line detected at class body beginning.",
"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`",
+ "prediction": "I think this should be `# pylint: enable=too-many-locals` instead of `# pylint: enable=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?",
+ "prediction": "I think this should be `c.config.Namespaces.AlertmanagerConfigAllowList` instead of `c.config.Namespaces.DenyList`",
"reference": "L171 needs to be modified too?"
},
{
- "prediction": "(style) space required around that '=' (ctx:VxV)",
+ "prediction": "(style) code indent should use tabs where possible",
"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`",
+ "prediction": "why do we need this?",
"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?",
+ "prediction": "I think this should be `json:\"DesiredStatus,omitempty\"` instead of `json:\"DesiredStatus,omitempty\"`",
"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))`",
+ "prediction": "I think this should be `return buildRequired(s.Image.Image, 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.",
+ "prediction": "I don't think you 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.",
+ "prediction": "I don't think this is correct. The `param_1` parameter should be `param_2`. The `param_3` parameter should be `param_4` instead of `param_5`.",
"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?",
+ "prediction": "I think this should be `public IEnumerable SelectTransactions(long gasLimit, long stateRoot, long gasLimit);`",
"reference": "stateRoot or maybe ParentHeader would make more sense from API point of view?"
},
{
- "prediction": "Why is this removed?",
+ "prediction": "why remove this?",
"reference": "Are you sure that this is no longer needed?"
},
{
- "prediction": "I think this should be `SCAN_WITH_STATS_COLUMNS`.",
+ "prediction": "I think this should be `SCAN_COLUMNS` instead of `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.",
+ "prediction": "I think we should remove the `ReportStat` method entirely, since it's not used anywhere else.",
"reference": "`ctx` is unused in ReportStat"
},
{
- "prediction": "Why is this needed?",
+ "prediction": "I think this should be `#include `.",
"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;`",
+ "prediction": "I think this should be `speedChange = 0` instead of `minSpeedChange = 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`",
+ "prediction": "I think this should be `sched.GetPolicy(clusterPath + SchedPath + \"/\" + name)`",
"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.",
+ "prediction": "Layout/MultilineMethodCallBraceLayout: Closing method call brace must be on the line after the last argument when opening brace is on a separate line from the first argument when opening brace is on a separate line from the first argument.",
"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.",
+ "prediction": "I think this should be `modeman.leave(self._win_id, usertypes.KeyMode.command, 'prefix deleted')`",
"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\"]`.",
+ "prediction": "I don't think we need to register an interceptor here.",
"reference": "Freeze mutable objects assigned to constants."
},
{
- "prediction": "I think this should be `await pageWait();` instead of `await pageWait();`",
+ "prediction": "I think this should be `Promise.all([...]).then((res) => res.url().match( 'wp/v2/users/me'))`",
"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))`",
+ "prediction": "I think this should be `string.IsNullOrEmpty(request.Headers[\"X-Forwarded-For\"])` instead of `string.IsNullOrEmpty(request.Headers[\"X-Forwarded-For\"])`",
"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`",
+ "prediction": "I think this should be `/status` instead of `/status`",
"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); }`",
+ "prediction": "I don't think we need to set the visibility here.",
"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);`?",
+ "prediction": "I think it would be better to use `Integer.MAX_VALUE` instead of `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."
},
{
@@ -2603,7 +2603,7 @@
"reference": "move the constructor to down the `namespace`"
},
{
- "prediction": "I think this should be `*corev1.ObjectReference` and not `*corev1.ObjectReference`.",
+ "prediction": "I think this should be `*corev1.ObjectReference` instead of `*corev1.ObjectReference`",
"reference": "Nit: ending with a '.' looks consistent with the fields around it."
},
{
@@ -2615,43 +2615,43 @@
"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.",
+ "prediction": "I think this should be `uint64(100)`.",
"reference": "`DepositToRewardingFundBaseGas` is a global variable (from `gochecknoglobals`)"
},
{
- "prediction": "I think this should be `Operational`.",
+ "prediction": "I don't think this is a good idea, but I think it's a good idea to keep it as `GetStarted` and `GetStarted` and `Operational` as it is.",
"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.",
+ "prediction": "I don't think we need the `tagline` tag 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`",
+ "prediction": "why do we need this?",
"reference": "Is it possible to use `np.random` module instead?"
},
{
- "prediction": "I think this should be `allow_None=True` instead of `allow_None=False`",
+ "prediction": "Why is this change needed?",
"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.",
+ "prediction": "I don't think this is the right thing to do, but I think it's better to use `version.Program` instead of `version.Program`?",
"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?",
+ "prediction": "Why is this change needed?",
"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; }`",
+ "prediction": "I don't think this is needed.",
"reference": "nit: all other types in this project have full names, so maybe a better name would be `OperatingSystem`?"
},
{
- "prediction": "Why is this changed?",
+ "prediction": "Why is this removed?",
"reference": "Why is this needed here?"
},
{
- "prediction": "I think this should be `Optional.empty()` instead of `Optional.empty()`",
+ "prediction": "I think this should be `Optional.of(methodUsage).orElse(Optional.empty());`",
"reference": "mmm, why a method declaration should not have the TypeVariableResolutionCapability? Is this ok?"
},
{
@@ -2659,31 +2659,31 @@
"reference": "nit: any reason you swapped the ordering?"
},
{
- "prediction": "Why is this change needed?",
+ "prediction": "Why is this removed?",
"reference": "can you de-uglify at least this line?.. hard to tell what changed..."
},
{
- "prediction": "Why remove this?",
+ "prediction": "Why is this removed?",
"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?",
+ "prediction": "I think this should be `type(self).__a()`.",
"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?",
+ "prediction": "I don't think this is correct. `recids` is a list of records, so I think it should be a list of records, not a list of records.",
"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.",
+ "prediction": "I think we should check if `len(realOpts.ContentMD5) == 0` instead of checking if `len(realOpts.ContentMD5) == 0`",
"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):`",
+ "prediction": "I think this should be `if eventName==\"gainFocus\" and obj.focusRedirect:`",
"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`",
+ "prediction": "I don't think we need to import `gcp_clients` here.",
"reference": "You imports are out of order"
},
{
@@ -2691,19 +2691,19 @@
"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`.",
+ "prediction": "I think this should be `db.NewSQLBase(cfg.SQLite3File, config.SQLite3File, config.SQLite3File)`",
"reference": "File is not `goimports`-ed (from `goimports`)"
},
{
- "prediction": "I think this should be `#if DEBUG` instead of `#endif`",
+ "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`",
+ "prediction": "I think this should be `besu` or `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?",
+ "prediction": "Why is this disabled?",
"reference": "@kristofgazso could you review these warnings?"
},
{
@@ -2711,63 +2711,63 @@
"reference": "will delete this."
},
{
- "prediction": "Align the parameters of a method call if they span more than one line.",
+ "prediction": "Layout/MultilineMethodCallIndentation: Align the parameters of a method call if they span more than one line. Layout/MultilineMethodCallIndentation: Align the parameters of a method call if they span more than one line. Layout/MultilineMethodCallIndentation: Align the parameters of a method call if they span more than one line. Layout/MultilineMethodCallIndentation: 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()`",
+ "prediction": "I think this should be `!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))`",
+ "prediction": "I think this should be `Authorization: Basic %s`",
"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`.",
+ "prediction": "I think this should be `/com_google_flatbuffers/tests/`",
"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`",
+ "prediction": "`date_utc` would be better than `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);`",
+ "prediction": "I think this should be `granteeList` instead of `granteeList`",
"reference": "Who deletes the memory for the granteeList? (or the roleList for that matter)"
},
{
- "prediction": "Why is this needed?",
+ "prediction": "Why do we need to do this?",
"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.",
+ "prediction": "Layout/EmptyLinesAroundRouteBody: Extra empty line detected at block body beginning.",
"reference": "shouldn't clearance be setting these up for us?"
},
{
- "prediction": "I think this should be `noOp` instead of `noOp`",
+ "prediction": "I don't think this is needed.",
"reference": "Need to update the doc for `TelemetrySDK` and `Host` structs deleting references from removed functions."
},
{
- "prediction": "Why is this removed?",
+ "prediction": "I think we can remove this method entirely.",
"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) {`",
+ "prediction": "I don't think we need to do this. If the gridCol.colDef.enableCellEditOnFocus is true, we need to make sure the scrollbarWidth and footerHeight are accounted for to not cause a loop.",
"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`",
+ "prediction": "I don't think this is needed.",
"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?",
+ "prediction": "I think this should be `workflow_id = VALUES(workflow_id), start_time = VALUES(start_time), execution_time = VALUES(execution_time), start_time = VALUES(start_time), execution_time = VALUES(execution_time), start_time = VALUES(start_time), execution_time = VALUES(execution_time), start_time = VALUES(start_time), execution_time = VALUES(execution_time), start_time = VALUES(start_time),`",
"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)`",
+ "prediction": "I think this should be `FALSE` instead of `FALSE`.",
"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`",
+ "prediction": "I don't think this is needed anymore.",
"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"
},
{
@@ -2775,7 +2775,7 @@
"reference": "Please check also whether `null` occurs in the rest of `beforeChangeResult` array."
},
{
- "prediction": "I think this should be `UnaryOutbound` instead of `UnaryOutbound`.",
+ "prediction": "I think this should be `// Filter defines transport-level middleware for `UnaryOutbound`s.",
"reference": "Outdated docs. There is no response, there's an ack."
},
{
@@ -2783,67 +2783,67 @@
"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`",
+ "prediction": "Is there a reason why we don't return an error here?",
"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)`",
+ "prediction": "I don't think this is necessary. `commonname is not None` is a valid common name.",
"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)`",
+ "prediction": "Layout/EmptyLinesAroundClassBody: Extra empty line detected at class body end.",
"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`",
+ "prediction": "I think this should be `Optional`.",
"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);`",
+ "prediction": "I think this should be `value.startsWith(\"/\") || value.endsWith(\"-\") || value.endsWith(\".\")`",
"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`.",
+ "prediction": "(style) code indent should use tabs where possible",
"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.",
+ "prediction": "Line is too long. [89/80] 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": "Tabs and a space, again."
},
{
- "prediction": "I think this should be `std::string(taskmanager->GetTaskName(task_id));` or `std::string(taskmanager->GetTaskName(task_id));`",
+ "prediction": "I think this should be `std::string();`",
"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`",
+ "prediction": "I think we can remove the `approver_action: 'approve'` here.",
"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`.",
+ "prediction": "I don't think we need to import _dbmField here.",
"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.",
+ "prediction": "I don't think we need to include this in the `respond_to?(:helper_method)` block.",
"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 {`",
+ "prediction": "I think this should be `for` instead of `for`",
"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`.",
+ "prediction": "I think this should be `final` instead of `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 = [...]`",
+ "prediction": "I don't think this is needed.",
"reference": "These should be importing from `pill-container`"
},
{
- "prediction": "This should be `RETURNVALUE_NOTPOSSIBLE`.",
+ "prediction": "This should be `RETURNVALUE_DESTINATIONOUTOFREACH` instead of `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 `\"\"`",
+ "prediction": "I think this should be `field_value(f, except_operations: [Rendering::HelperMethod])` or `field_value(f, except_operations: [Rendering::HelperMethod])`",
"reference": "Does this need to allocate a string or would a nil value (indicating no header) be a better?"
},
{
@@ -2851,23 +2851,23 @@
"reference": "Nit: Past tense of `reset` is also `reset`."
},
{
- "prediction": "I think this should be `return self.config.fee_per_kb()`.",
+ "prediction": "I think this should be `self.fee_per_kilobyte()`.",
"reference": "Shouldn't this use `'n'` instead?"
},
{
- "prediction": "Why is this change needed?",
+ "prediction": "I think this should be `ActivityTaskTimeout` instead of `DecisionTimeout`",
"reference": "revert back to 'TASK_TYPE_ACTIVITY_TIMEOUT'"
},
{
- "prediction": "This should be `std::map::Info>>`.",
+ "prediction": "I think this should be `GetBlock(const std::string &, const std::vector &, const Mode);`",
"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)`",
+ "prediction": "I don't think we need to do this in the `toAntreaPeerForCRD` function. I think we should do it in the `toAntreaPeerForCRD` function.",
"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`",
+ "prediction": "I think this should be `apis.ReconcilePending` instead of `ReconcilePending`",
"reference": "Pending has been set only for SPC.. why? for other CRs as well, this need to be done.. right?"
},
{
@@ -2875,23 +2875,23 @@
"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()`",
+ "prediction": "I think this should be `pageTokenName(Name.lowerCamel(methodInfo.requestPageTokenName()).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`",
+ "prediction": "Align the parameters of a method call if they span more than one line. Space inside } missing.",
"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]`",
+ "prediction": "I don't think we need to add the `format` option here.",
"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`",
+ "prediction": "I don't think this script is needed. It is used to generate candidate sets for all users.",
"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.",
+ "prediction": "I think we should use `expect_authed_to_access_event_fired_for(video)` instead of `expect_authed_to_access_event_fired_for(video)`",
"reference": "Put a comma after the last parameter of a multiline method call."
},
{
@@ -2899,87 +2899,87 @@
"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')`",
+ "prediction": "I don't think we need to check if `node.hasAttribute('alt')` is true.",
"reference": "VirtualNode has a `hasAttr` function, any reason why you're not using it?"
},
{
- "prediction": "Why was this removed?",
+ "prediction": "I don't think this assert is necessary.",
"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] }`",
+ "prediction": "I think this is a good idea, but I don't think it's worth it.",
"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`",
+ "prediction": "I don't think this is a good name, but I think it would be better to say \"Cannot add the file %{fileName}, it already exists\" or \"Cannot add the file %{fileName}, it already exists\"",
"reference": "this one should also have quotes i guess :)"
},
{
- "prediction": "Why is this change needed?",
+ "prediction": "I think this should be `mock.unstruct.Object.GetName()` instead of `mock.expectedName`",
"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()));`",
+ "prediction": "I don't think this is correct. `isWorkflow` is a workflow, so it should be `isCompleted` and `isWorkflow` is not a workflow.",
"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`",
+ "prediction": "I think this should be `ORDER_PATH` instead of `ORDER_PATH`.",
"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?",
+ "prediction": "I don't think we need to change this. The `preactElement` is the same as the `preactElement`.",
"reference": "VIM didn't like your whitespace."
},
{
- "prediction": "I think this should be `using Datadog.Trace.ClrProfiler;` instead of `using Datadog.Trace.ClrProfiler;`",
+ "prediction": "Why is this removed?",
"reference": "Are you sure the namespace should change?"
},
{
- "prediction": "Why is this change needed?",
+ "prediction": "I think this should be `void Startup(object hint)`",
"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`?",
+ "prediction": "I think this should be `TimeType.TIME`.",
"reference": "why do we create a time type here?"
},
{
- "prediction": "This should be `css!components/listview/listview` instead of `css!components/listview/listview`",
+ "prediction": "I don't think we should be using `listViewStyle` here.",
"reference": "Does this style actually need to get loaded in all of these components?"
},
{
- "prediction": "Why is this needed?",
+ "prediction": "I don't think this is needed.",
"reference": "import but not used so you did not resolve compile warnings?"
},
{
- "prediction": "This should be `if (armor > 3) {`",
+ "prediction": "I think this should be `std::ceil(armorFormula * 0.475);`",
"reference": "This is so much more concise and beautiful than the previous formula "
},
{
- "prediction": "I think this should be `org.apache.logging.log4j.Logger`",
+ "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`",
+ "prediction": "I think this should be `ConsumerConfig` instead of `ConsumerConfig`",
"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`",
+ "prediction": "I think this should be `logger.Debug` or `logger.DebugDebug` instead of `logger.DebugDebug`",
"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`",
+ "prediction": "I think this should be `@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);`?",
+ "prediction": "I think this should be `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.",
+ "prediction": "I don't think we need to wait for the `iptables-save` flag to be set to `0.5s`?",
"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\"`",
+ "prediction": "I think we should check for `null` instead of `null` here.",
"reference": "im open to explicitly checking NotSet value here but json logic already handles it so kept it this way."
},
{
@@ -2987,31 +2987,31 @@
"reference": "The naming of the include file appears to be unlucky."
},
{
- "prediction": "why do you need to update `legend_opts` here?",
+ "prediction": "Why do you need to update `self.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.",
+ "prediction": "I think this should be `PruneLaunchTemplateVersions(machinePoolScope.AWSMachinePool.Status.LaunchTemplateID);`",
"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`",
+ "prediction": "Why is this needed?",
"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}%\"])`",
+ "prediction": "I don't think we need the `contains?` method anymore.",
"reference": "How about `exists?(['domain ~* ?', domain.downcase])` ?"
},
{
- "prediction": "I think this should be `c.GlobalInt(FlagContextTimeout) * time.Second` or `c.GlobalInt(FlagContextTimeout) * time.Second`",
+ "prediction": "I think this should be `c.GlobalBool(FlagContextTimeout)`, not `c.GlobalInt(FlagContextTimeout)`.",
"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?",
+ "prediction": "Why is this removed?",
"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?",
+ "prediction": "I think this should be `let` instead of `let`",
"reference": "Shouldn't we import `default`? I can't get here to test."
},
{
@@ -3019,91 +3019,91 @@
"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 */ }",
+ "prediction": "I think this should be `type != null && type.Equals(\"console\") ? \"\" : value`",
"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?",
+ "prediction": "I don't think we need to check if the role is list or not.",
"reference": "This doesn't follow our spacing convention. It's also a little hard to read. Can you reformat?"
},
{
- "prediction": "Why is this changed?",
+ "prediction": "I think we can remove this line.",
"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`.",
+ "prediction": "why is this change needed?",
"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`",
+ "prediction": "I don't think this is needed.",
"reference": "same question: why not just switch this to range too?"
},
{
- "prediction": "This should be `const std::string type(m_IO->InquireVariableType(name));`",
+ "prediction": "Why is this change needed?",
"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_));`",
+ "prediction": "This should be `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?",
+ "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`",
+ "prediction": "I don't think this is correct. `\\n` is a newline.",
"reference": "... so that all action buttons have the same height :-)"
},
{
- "prediction": "I think this should be `#include `",
+ "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`",
+ "prediction": "I think this should be `*transport.Request` instead of `*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)`",
+ "prediction": "I don't think we need to store the metadata in the cache.",
"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...`",
+ "prediction": "I don't think we need to pass `c.MetricsProcessors` to the `NewAccumulator` function.",
"reference": "The pull controller would need similar updates."
},
{
- "prediction": "I think we should remove this file.",
+ "prediction": "I don't think we need to change the copyright year.",
"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`",
+ "prediction": "I think this should be `/cygdrive/c/Windows/Temp` instead of `/cygdrive/c/Windows/Temp`",
"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`",
+ "prediction": "I don't think this is necessary. `fields.has_key?(self.discriminator_key)` will return `nil` if `descendants.length == 0`",
"reference": "Can this condition be reworded using `if` please?"
},
{
- "prediction": "I think this should be `if (inputs != nullptr && !inputs->hasData()) {`",
+ "prediction": "I think it would be better to use `!inputs->hasData()` instead of `!inputs->hasData()`.",
"reference": "after ||, no need inputs != nullptr"
},
{
- "prediction": "I think this should be `AppInStage` instead of `IntegTestBuildspecPath`",
+ "prediction": "I think this should be `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.",
+ "prediction": "I don't think this is correct. `oldDom` is a `null` value, so it should be `null`.",
"reference": "This line always confused me anyway. Good catch!"
},
{
- "prediction": "Why do we need to call `context.Background()` here?",
+ "prediction": "Why do we need 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?",
+ "prediction": "I think this should be `CDRMessage::addUInt32(msg, period.nanosec);`",
"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.",
+ "prediction": "I don't think we need to add this to the `yarpcerrors.CodeUnavailable` function.",
"reference": "\"peer\" has its own meaning within YARPC with its own class of objects. This should probably be \"dispatcher\" too?"
},
{
@@ -3111,31 +3111,31 @@
"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?",
+ "prediction": "why is this removed?",
"reference": "_plugins should be removed too"
},
{
- "prediction": "I think we should use `node.hasAttribute('alt')` instead of `node.hasAttribute('alt')`",
+ "prediction": "I don't think we need to check for `img` and `input` attributes here.",
"reference": "The rule selector will not include `` and `` elements. Why not make this a new, separate rule altogether?"
},
{
- "prediction": "Why is this change needed?",
+ "prediction": "I think this should be `userscripts.NotFoundError`.",
"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`",
+ "prediction": "I think this should be `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?",
+ "prediction": "nit: remove empty line",
"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.",
+ "prediction": "I think it would be better to use `STATE_TABLECELL` instead of `ROLE_TABLECOLUMNHEADER`",
"reference": "Could you split this into multiple lines?"
},
{
- "prediction": "I think this should be `useSelect( (select) => select( STORE_NAME ).getCurrentEntityURL() );`",
+ "prediction": "I think this should be `global.googlesitekit.permaLink ? __( 'How fast your home page is.', 'google-site-kit' ) : __( 'How fast your home page is.', 'google-site-kit' );`",
"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."
},
{
@@ -3143,31 +3143,31 @@
"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')`",
+ "prediction": "Layout/EmptyLinesAroundBlockBody: Extra empty line detected at block body beginning.",
"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`",
+ "prediction": "I think this should be `Util.format_windows_path(lambda_cwd)` instead of `Util.format_windows_path(lambda_cwd)`",
"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());`",
+ "prediction": "I think this should be `IOException` instead of `IOException`.",
"reference": "seems reasonable to also want to include the 'to' location?"
},
{
- "prediction": "I don't think this is needed anymore.",
+ "prediction": "I think this should be `os.environ.get('NUPIC', \"\")`.",
"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))`",
+ "prediction": "I think this should be `pthread_attr_init(&attr, PTHREAD_SCOPE_SYSTEM)` instead of `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[] {}`",
+ "prediction": "I think this should be `CollectionsUtils.validateCollections(cli.getOptionValue(\"collections\").split(\",\"))` instead of `CollectionsUtils.validateCollections(cli.getOptionValue(\"collections\").split(\",\"))`",
"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) {`",
+ "prediction": "I think this should be `return 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."
},
{
@@ -3175,15 +3175,15 @@
"reference": "I think `bypass_frontier_confirmation` conveys the intention better (default false as well)"
},
{
- "prediction": "Why is this needed?",
+ "prediction": "I think this should be `address` instead of `address`",
"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?",
+ "prediction": "I think this should be `self._tab = tab`",
"reference": "You'll also need to adjust `FakeWebTabAudio` in `tests/helpers/stubs.py`."
},
{
- "prediction": "Why remove this?",
+ "prediction": "why remove this file?",
"reference": "@csrwng what should we do here? This one is from origin."
},
{
@@ -3191,23 +3191,23 @@
"reference": "Follow alphabetical order."
},
{
- "prediction": "I think this interface should be `ICommonTracer` instead of `ICommonTracer`",
+ "prediction": "I don't think we need this interface anymore.",
"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?",
+ "prediction": "I think this should be `{}` instead of `{}`",
"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`",
+ "prediction": "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.",
+ "prediction": "Is there a reason we don't call `this.s.promiseLibrary.reject(err);` here?",
"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`",
+ "prediction": "I think this should be `#if defined(__linux__) && LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 27)`",
"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."
},
{
@@ -3215,27 +3215,27 @@
"reference": "This field could be `final`."
},
{
- "prediction": "I think this should be `@ssh.close` instead of `@ssh.shutdown!`",
+ "prediction": "I don't think we should log the error here.",
"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_`",
+ "prediction": "I don't think we need to set async operations on 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\")`",
+ "prediction": "I think this should be `Debug` instead of `Info`.",
"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`.",
+ "prediction": "I think this should be `_kbfs_config` instead of `_kbfs_config`.",
"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.",
+ "prediction": "Line is too long. [89/80]",
"reference": "Metrics/LineLength: Line is too long. [85/80]"
},
{
- "prediction": "I don't think this is needed.",
+ "prediction": "I don't think this is needed anymore.",
"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."
},
{
@@ -3243,15 +3243,15 @@
"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:`",
+ "prediction": "I don't think we need to check if `config.val.content.desktop_fullscreen` is set.",
"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.",
+ "prediction": "I think this should be `@OneToOne(cascade = {CascadeType.REMOVE, CascadeType.MERGE, CascadeType.PERSIST})`",
"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())`",
+ "prediction": "I think this should be `EXP:%+v\\n` instead of `ACT:%+v\\n`",
"reference": "Do we need these changes? If so, can you tidy up the messages? Looks like it might have been your testing/debugging changes "
},
{
@@ -3259,75 +3259,75 @@
"reference": "where is the default being set?"
},
{
- "prediction": "I think this should be `vStringNCopyS(name, line + matches[1].start, matches[2].length);`",
+ "prediction": "I think this should be `vStringNCopyS(name, line + matches[1].start, matches[1].length);`",
"reference": "these changes should likely be in the next commit instead"
},
{
- "prediction": "I think this should be `Foobar` instead of `Foo string`",
+ "prediction": "Why is this needed?",
"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`",
+ "prediction": "I think this should be `mConfirmMenuDiscard = true;`",
"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())`?",
+ "prediction": "I think this should be `\\Symfony\\Component\\HttpFoundation\\Request` instead of `Symfony\\Component\\HttpFoundation\\Request`",
"reference": "what if `$media->getBinaryContent() == Symfony\\Component\\HttpFoundation\\File\\File` does `is_string()` return `true`? ping @greg0ire"
},
{
- "prediction": "Why is this change needed?",
+ "prediction": "Why is this removed?",
"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)`",
+ "prediction": "I think this should be a `defer time.AfterFunc(10*time.Millisecond, fbm.blocksToDeleteChan <- toDelete)`",
"reference": "Shall we maybe put this in a `const` like `backgroundTaskTimeout`?"
},
{
- "prediction": "I don't think we need this catch.",
+ "prediction": "I don't think this is right. I think it would be better to just ignore the exception and just ignore it.",
"reference": "CI is complaining about this."
},
{
- "prediction": "I think this method should be called `calculateRemovalTime` instead of `calculateRemovalTime`.",
+ "prediction": "I think this should be `new Date(initTime, timeToLive);`",
"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') ?",
+ "prediction": "I think this should be `(bool)$attributes['lazy']` instead of `(bool)$attributes['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() <<\"]\"`?",
+ "prediction": "I don't think this is correct. The type should be \"setence type[\" << sentence_->getType() <<\"]\"",
"reference": "when Op is illegal should return here?"
},
{
- "prediction": "Why remove this?",
+ "prediction": "Why remove this line?",
"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])`",
+ "prediction": "I think this should be `Array(options[:page_ranges])` instead of `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)`",
+ "prediction": "I think this should be `return nil, err` instead of `return nil, err`.",
"reference": "This is intended. Pls revert this."
},
{
- "prediction": "Why is this change needed?",
+ "prediction": "I think this should be `Comparators.naturalComparator().compareTo(values)`",
"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.",
+ "prediction": "why remove this?",
"reference": "I think we need this. Not sure, I'll test."
},
{
- "prediction": "Why is this removed?",
+ "prediction": "I don't think this is needed anymore.",
"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`",
+ "prediction": "I think we should remove this line.",
"reference": "Did go change their tags with the new version?"
},
{
- "prediction": "Why is this change needed?",
+ "prediction": "I think this should be `s.config.Log.WithField(telemetry.SubsystemName, \"bundle_client\")`",
"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."
},
{
@@ -3335,7 +3335,7 @@
"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`",
+ "prediction": "I think this should be `new MetricsConfig.MetricsConfigBuilder().build();`",
"reference": "*NULL_DEREFERENCE:* object `null` is dereferenced by call to `meterSupplier(...)` at line 122."
},
{
@@ -3343,63 +3343,63 @@
"reference": "switch over to .mode"
},
{
- "prediction": "Why change this?",
+ "prediction": "I think this is a breaking change, but I don't think we need to change this.",
"reference": "I guess your IDE did some auto-fixing here "
},
{
- "prediction": "I think this should be `PhraseQuery` instead of `PhraseQuery`.",
+ "prediction": "Why is this needed?",
"reference": "This is an unused import failing recommit still."
},
{
- "prediction": "Metrics/LineLength: Line is too long. [98/80]",
+ "prediction": "Prefer single-quoted strings when you don't need string interpolation or special symbols.",
"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\"`",
+ "prediction": "I don't think we should be using `aria-label` here.",
"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.",
+ "prediction": "`SamplesGenerator` and `SamplesGenerator` are not used anymore.",
"reference": "Should these link be removed?"
},
{
- "prediction": "`add_undo` should be `True` instead of `False`",
+ "prediction": "I think it would be better to make this `False` if `add_undo` is set to `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)`",
+ "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(); }`",
+ "prediction": "I think this should be `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) {`",
+ "prediction": "I don't think this is necessary. `value` is already set in `dom.props` and `checked` is already set in `dom.props`.",
"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`.",
+ "prediction": "I think it would be better to move this to the top of the file.",
"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`",
+ "prediction": "I think this should be `default` or `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.",
+ "prediction": "I think we should add a `@Nullable` annotation to the `RowKey` class.",
"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`.",
+ "prediction": "I think this should be `PJ_LOG_ERROR` instead of `PJ_LOG_NONE`.",
"reference": "this change should be reverted"
},
{
- "prediction": "I think this should be `qutebrowser.appdata.xml` instead of `qutebrowser.appdata.xml`",
+ "prediction": "I think this should be `int(part) for part in __version__.split('.')`",
"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?",
+ "prediction": "Why is this change needed?",
"reference": "Revert this change and see below why..."
},
{
@@ -3407,7 +3407,7 @@
"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?",
+ "prediction": "I think this should be `LOG.info(String.format(\"Adding %s %d times\", caps, info.getMaximumSimultaneousSessions()));`",
"reference": "This is an informational message that allows someone to read the console output and understand how the grid node is configured. Please leave."
},
{
@@ -3415,15 +3415,15 @@
"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`.",
+ "prediction": "I think 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.",
+ "prediction": "Nit: `check` should be on the next line, not on the next line.",
"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());`",
+ "prediction": "I think this should be `const` instead of `const`",
"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."
},
{
@@ -3431,127 +3431,127 @@
"reference": "should be `ECSApp` "
},
{
- "prediction": "I think this should be `self.size.copy()` instead of `self.location.copy()`",
+ "prediction": "I don't think we need to copy `self.size` here.",
"reference": "flake8 is going to fail on this having 2 lines"
},
{
- "prediction": "Why is this removed?",
+ "prediction": "Why remove this?",
"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\"",
+ "prediction": "I don't think we need to change the name of the `KeyNode` to `KeyNodeHostname`.",
"reference": "there seems to be one KeyNode in kubernetes.go of PV.. would it make sense to use it?"
},
{
- "prediction": "Why is this needed?",
+ "prediction": "remove empty line",
"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`",
+ "prediction": "I think this should be `FRIENDSCHAT` instead of `MODPRIVATECHAT`.",
"reference": "Don't think this belongs in this pr"
},
{
- "prediction": "I think this should be `outbounds := make(Outbounds, len(d.outbounds))`",
+ "prediction": "I think we should use `OutboundsMap` instead of `Outbounds` here.",
"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;`",
+ "prediction": "I think this should be `TaskCompletionSource closeCompletionSource = TaskCompletionSource closeCompletionSource = TaskCompletionSource closeCompletionSource = TaskCompletionSource closeCompletionSource = TaskCompletionSource closeCompletionSource = TaskCompletionSource closeCompletionSource = TaskCompletionSource closeCompletionSource = TaskCompletionSource closeCompletionSource = TaskCompletionSource closeCompletionSource = TaskCompletionSource closeCompletionSource = TaskCompletionSource closeCompletionSource = TaskCompletionSource closeCompletionSource = TaskCompletionSource closeCompletionSource = TaskCompletionSource closeCompletionSource = TaskCompletionSource closeCompletionSource = TaskCompletionSource closeCompletionSource = TaskCompletionSource closeCompletionSource = TaskCompletionSource closeCompletionSource = TaskCompletionSource closeCompletionSource = TaskCompletionSource closeCompletionSource = TaskCompletionSource closeCompletionSource = TaskCompletionSource closeCompletionSource = TaskCompletionSource close",
"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:])`",
+ "prediction": "I don't think we need to do this. The `input_img_shape` is the shape of the image.",
"reference": "Are these modification duplicate? Or should we move it into base detector."
},
{
- "prediction": "Why is this change needed?",
+ "prediction": "Why is this private?",
"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`?",
+ "prediction": "I think we should use `\\TYPO3\\CMS\\Core\\Utility\\ArrayUtility::mergeRecursiveWithOverrule` instead of `\\TYPO3\\CMS\\Core\\Utility\\ArrayUtility`",
"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`",
+ "prediction": "I think this should be `[]string` instead of `[]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());`",
+ "prediction": "I think this should be `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`.",
+ "prediction": "I think this should be `from molecule.core import Molecule`",
"reference": "Bump it 2 lines higher, 'c' > 'u'."
},
{
- "prediction": "I think this should be `parser/AstTypes.h` and not `parser/AstTypes.h`.",
+ "prediction": "I think this should be `#include \"parser/AstTypes.h\"`.",
"reference": "Please do not add author here"
},
{
- "prediction": "I think this should be `github.com/iotexproject/iotex-core/action`",
+ "prediction": "Why is this import needed?",
"reference": "Similarly, we should be able to persist action uniformly"
},
{
- "prediction": "Line is too long. [89/80]",
+ "prediction": "Prefer single-quoted strings when you don't need string interpolation or special symbols.",
"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)`",
+ "prediction": "I think this should be `os.MkdirAll(fullPath, 0755)`",
"reference": "This would be better with context added via wrapping or fmt.errorf()"
},
{
- "prediction": "I think this should be `package assert`.",
+ "prediction": "I think this should be `assert.FailFast` instead of `assert.FailFast`.",
"reference": "What's the purpose of this file?"
},
{
- "prediction": "Why is this change needed?",
+ "prediction": "I think this should be `if (hasStoredPasscode(ctx) && passcodeLengthKnown) {`",
"reference": "@bhariharan Why was passcode length requirement allowed to be lowered?"
},
{
- "prediction": "Why is this removed?",
+ "prediction": "I think we can remove these unused imports.",
"reference": "This file needs a license header, too. Sorry I didn't catch that earlier."
},
{
- "prediction": "Why is this change needed?",
+ "prediction": "I think this should be `string(genesisText[:])` instead of `string(genesisText[:])`",
"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?",
+ "prediction": "I think it would be better to use `dal::detail::homogen_table_builder{}` instead of `dal::detail::homogen_table_builder{}`",
"reference": "Why reference is converted to table?"
},
{
- "prediction": "I think it would be better to return a `*datastore.ListRegistrationEntriesResponse` instead of a `*datastore.ListRegistrationEntriesResponse`",
+ "prediction": "I think this should be `if req.Pagination != nil {`",
"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 }`",
+ "prediction": "I think this should be `f = f.Vectorized` instead of `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`",
+ "prediction": "I think we can remove the `notice` part from the `render` method since it's only used in the `build_new_topic` method.",
"reference": "Can we remove respond_to block its not required here"
},
{
- "prediction": "why do you need this?",
+ "prediction": "I think this should be `using namespace dal;`",
"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`",
+ "prediction": "Line is too long. [89/80]",
"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?",
+ "prediction": "I think this should be `FlushAsync` instead of `Complete`.",
"reference": "We have to `.Complete` now because of empty/null string test cases."
},
{
- "prediction": "Line is too long. [92/80]",
+ "prediction": "Style/IfUnlessModifier: Favor modifier if usage when having a single-line body. Another good alternative is the usage of control flow &&/||.",
"reference": "Is there still a way to specify no recursion?"
},
{
- "prediction": "I think this should be `HumanReadableName` or `URISafeName`.",
+ "prediction": "I don't think this is a good name, but I think it would be better to use `human_readable_name` instead of `uri_safe_name`.",
"reference": "How is this name being URI safe and being used programmatically related?"
},
{
- "prediction": "why not use `smart_count` here?",
+ "prediction": "Why is this change needed?",
"reference": "I think we have to keep this as a fallback for now, else it's a small breaking change :("
},
{
@@ -3563,91 +3563,91 @@
"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;`",
+ "prediction": "I think we should check if _layout.IsThreadAgnostic is true.",
"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);`",
+ "prediction": "I don't think we need this logger anymore.",
"reference": "Please use only `Logger` instead of `org.slf4j.Logger`"
},
{
- "prediction": "I think this should be `if (!node.flags.disable_block_processor_republishing) {`",
+ "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);`",
+ "prediction": "I think this should be `console.log('Account alias ' + process.argv[2] + ' deleted.');`",
"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`",
+ "prediction": "I don't think this is correct. `os.path.exists()` will return `False` if `os.path.exists()` fails.",
"reference": "Could you simply add it to the previous clause ?"
},
{
- "prediction": "I think this should be `sensitivity: 'base'`",
+ "prediction": "I think this should be `procCodeA.localeCompare(procCodeB, undefined, { 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); }`",
+ "prediction": "Shouldn't this be `if (slaOptions != null && slaOptions.size() > 0)`?",
"reference": "@chengren311 : where does this logic move to?"
},
{
- "prediction": "I think this should be `if !s.scope.AllowAdditionalRoles() { return ErrCannotUseAdditionalRoles()`",
+ "prediction": "I think we should check if the role has additional policies and if the role is not attached.",
"reference": "Can we have a `nil` exception check at `s.scope.ManagedMachinePool`"
},
{
- "prediction": "Why did you remove this?",
+ "prediction": "Why is this removed?",
"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);`?",
+ "prediction": "I think this should be `str_replace(\"_\", \" \", $property);`",
"reference": "wrap, single line"
},
{
- "prediction": "I think this should be `String.valueOf(returnType).toString();`",
+ "prediction": "I think this should be `returnType.isEmpty() ? \"Void\" : \"Void\";`",
"reference": "always use brackets for if statements"
},
{
- "prediction": "I think this should be `FrameworkDescription.Instance` instead of `FrameworkDescription.Instance`",
+ "prediction": "Why is this change needed?",
"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'`",
+ "prediction": "I think we should use `element_at(parts, -2)` instead of `lower(element_at(parts, -1)) = 'gz'`",
"reference": "Why did you change it to `>=` here?"
},
{
- "prediction": "I think this should be `tableName.replaceFirst(\"(hadoop\\\\.)|(hive\\\\.)\", \"\");`",
+ "prediction": "How about `HiveTable.location()`?",
"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'`",
+ "prediction": "I don't think this is needed.",
"reference": "This require isn't need anymore, right?"
},
{
- "prediction": "I think this should be `payments/crypto`",
+ "prediction": "I think this should be `payments/crypto` instead of `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.",
+ "prediction": "Why did you remove the Bibliographic attribute?",
"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.",
+ "prediction": "I think this should be `10` instead of `50`.",
"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:`",
+ "prediction": "I don't think this is needed.",
"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`",
+ "prediction": "I think this should be `gocloud.dev/secrets/gcpkms`",
"reference": "? The package is named `hashivault`."
},
{
- "prediction": "I don't think this is needed.",
+ "prediction": "(style) code indent should use tabs where possible",
"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?",
+ "prediction": "I don't think we need to remove this line.",
"reference": "Remove this line by accident?"
},
{
@@ -3655,47 +3655,47 @@
"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 }`",
+ "prediction": "Is there a reason why we don't check the error here?",
"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`",
+ "prediction": "I don't think this is needed.",
"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`",
+ "prediction": "I think this should be `cxSmiles` instead of `cxSmiles`",
"reference": "I'm assuming that asSmarts & cxSmiles == asSmarts"
},
{
- "prediction": "I think this should be `self.param = type(self.__class__, self=self)`",
+ "prediction": "I think this should be `self.param = type(self.param)(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();`",
+ "prediction": "Why is this readonly?",
"reference": "Curious, do we consider this as pedantic for example code?"
},
{
- "prediction": "Why not use `strtolower($this->entity['name'])` here?",
+ "prediction": "Why is this change needed?",
"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`",
+ "prediction": "I think this should be `GetIP` instead of `GetOutboundIP`",
"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.",
+ "prediction": "I think this should be `using System.IO;` and `using System.Threading.Tasks;`",
"reference": "Must these `using` statements not go inside the `namespace` block?"
},
{
- "prediction": "Why is this changed?",
+ "prediction": "Why is this change needed?",
"reference": "Why? I thought the previous way was idiomatic. (Same with the `MetadataVer` stuff above.)"
},
{
- "prediction": "Why is this needed?",
+ "prediction": "I think we should keep the `Promise.resolve()`.",
"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.",
+ "prediction": "I think this should be `ioctl action should display IOTX unit instead Raul`",
"reference": "check err or use gasPriceUnitIOTX, _ := if we are sure action.Core.GasPrice is correct"
},
{
@@ -3703,7 +3703,7 @@
"reference": "Just curious, was wait not used at all before?"
},
{
- "prediction": "I think this should be `//` instead of `//`",
+ "prediction": "I think we should remove this line.",
"reference": "nit: can we remove this?"
},
{
@@ -3711,43 +3711,43 @@
"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.",
+ "prediction": "I don't think we need the `:update` 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]",
+ "prediction": "I don't think this is correct. The attribute is already attached. The attribute is already attached.",
"reference": "\"Este :attribute j est anexado.\" sounds better."
},
{
- "prediction": "I think we should use `testmod` instead of `testmod`.",
+ "prediction": "I don't think this is needed.",
"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?",
+ "prediction": "Why remove this line?",
"reference": "This error was unused"
},
{
- "prediction": "I think this should be `CloseShardRequest` or `AddTasksRequest`",
+ "prediction": "I think this should be `CloseShardRequest`",
"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`",
+ "prediction": "I think this should be `<%= render \"completed_trails/trail\", trail: trail %>`",
"reference": "Does this make more sense as `trails/_trail` now?"
},
{
- "prediction": "I think this should be `err := agent.ec2MetadataClient.GetOutpostARN()`",
+ "prediction": "I think we should log the error here.",
"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`",
+ "prediction": "I think this should be `Python::Install.new` instead of `Python::Install.new`",
"reference": "Too much indentation here. Should match the lines above, which have four spaces."
},
{
- "prediction": "Why remove this?",
+ "prediction": "Why is this removed?",
"reference": "Same here we still need this test to make sure the fallback works."
},
{
- "prediction": "I think this should be `IMvxOverridePresentationAttribute` instead of `IMvxBasePresentationAttribute`",
+ "prediction": "I think this should be `MvxBasePresentationAttribute`",
"reference": "I'm wondering if we can actually base this on a `IMvxPresentationAttribute` instead of the base one."
},
{
@@ -3755,107 +3755,107 @@
"reference": "could we switch to `undefined` here?"
},
{
- "prediction": "I think this should be `cleanupSyncsSoupIfNeeded` instead of `setupSyncsSoupIfNeeded`",
+ "prediction": "I think this should be `SyncState.cleanupSyncsSoupIfNeeded(smartStore);`",
"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`.",
+ "prediction": "I don't think this is a good idea, but I think it would be better to use `item.AlbumArtists.length` instead of `item.AlbumArtists.length`.",
"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)`",
+ "prediction": "I don't think this is necessary. `Puppet::Pops::Types::Sensitive` is a `Pops::Types::PSensitiveType::Sensitive` instance variable.",
"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()`.",
+ "prediction": "I think this should be `if __name__ == \"__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())`.",
+ "prediction": "I think this should be `body.append(self._get_selenium_options() + self._get_firefox_profile() + [self._get_firefox_webdriver()])`",
"reference": "1 - create browser specific options class: - chromeoptions - firefoxoptions - argsoptions"
},
{
- "prediction": "I think we should use `response_content_str.startswith('Layout/SpaceInsideHashLiteralBraces: Space inside } missing.",
"reference": "Okay, I still don't understand why you have to add `html_safe` here, and it still seems like a very bad idea. It will allow html tags in the title, and keep Rails from escaping literal greater-than or less-than chars not intended as HTML tags. It ought to work to just let Rails do HTML-escaing as normal, without any manual `html_safe` or `strip_tags` or whatever. I am not clear on what problem you are trying to solve, why the straightfoward approach does not work."
},
{
- "prediction": "I think this should be `if (mDisplayMode == DisplayMode.MESSAGE_VIEW)` instead of `if (mDisplayMode == DisplayMode.MESSAGE_VIEW)`",
+ "prediction": "I think this should be `if (mDisplayMode == DisplayMode.MESSAGE_VIEW && !mDisplayMode == DisplayMode.MESSAGE_VIEW)`",
"reference": "What is is subject when it's not the email subject. Why are we having to do this crap? What's calling this with an empty string?"
},
{
- "prediction": "I think this should be `DefaultSamplingProbability`.",
+ "prediction": "I think this should be `DefaultSamplingProbability` instead of `DefaultSamplingProbability`",
"reference": "Could you also remove the `defaultSamplingProbability` constant from `sampling.go`? It seems to became unused with this change."
},
{
- "prediction": "Why is this change needed?",
+ "prediction": "I don't think we need to pass `appsv1.Deployment{}` to the `GenerateDeploymentStrategicPatch` function.",
"reference": "can you delete the `generateDeploymentStrategicPatch` function as well?"
},
{
- "prediction": "I think this should be `LOG.finest(String.format(\"Connecting to %s and %s\", publishConnection, subscribeConnection));`",
+ "prediction": "I think this should be `LOG.info(String.format(\"Connecting to %s and %s\", publishConnection, subscribeConnection));`",
"reference": "I'd keep this at `info` level..."
},
{
- "prediction": "Why not use DCHECK here?",
+ "prediction": "I think this should be `DCHECK(graph::ExpressionUtils::isEvaluableExpr(limit->countExpr()));`",
"reference": "Don't use DCHECK to debug your code if it's the regular branch you need to handle."
},
{
@@ -4003,43 +4003,43 @@
"reference": "You should return null here instead. Null is an acceptable default value for the image attribute."
},
{
- "prediction": "I think this should be `catch(e)` instead of `catch(e)`",
+ "prediction": "I think this should be `return false;` instead of `return true;`",
"reference": "react bails as well?"
},
{
- "prediction": "Why was this removed?",
+ "prediction": "Why is this removed?",
"reference": "Can you please tell me why you did this?"
},
{
- "prediction": "I think we should use `this.opts.facingMode` instead of `this.opts.facingMode`",
+ "prediction": "I don't think we need to pass `this.opts.videoConstraints` here.",
"reference": "Reading this again it should prob prefer the `videoConstraints.facingMode` value over `facingMode` if the former was already set"
},
{
- "prediction": "I don't think we need this, but I think it's a good idea to add a `belongs_to` to the `Video` model, but I think it would be better to add a `belongs_to` to the `Video` model and add a `belongs_to` to the `Video` model.",
+ "prediction": "I don't think we should add this to the `Video` model.",
"reference": "There's a good bit of class-level stuff that's repeated in our various product types. Think it's worth extracting a...dare I say it...module?"
},
{
- "prediction": "I think we should use `config.Target.WasmAbi = config.Options.WasmAbi` instead of `config.Target.WasmAbi`",
+ "prediction": "I think this is a good idea, but I don't think we need to do this.",
"reference": "Please do not modify the `config.Target` field, it should contain exactly what is extracted from the JSON files. Instead, you can either: * Add a getter to the `config` variable (`*compileopts.Config`), so you can simply call `config.WasmAbi()` to get the value. * Use a local variable instead. The getter would be slightly cleaner, as it matches the pattern of other configurations (`CGO_ENABLED`, `GC`, `NeedsStackObjects`, etc)."
},
{
- "prediction": "I think this should be `defer t.Stop()`.",
+ "prediction": "I think this should be `defer multierr.Append(err, t.Stop())`",
"reference": "The nil check is not necessary for these. Append checks both sides for nil."
},
{
- "prediction": "I think this should be `span.SetAttributes(entries ...)`",
+ "prediction": "I don't think we need to set the attributes here.",
"reference": "Shouldn't we instead have the SDK apply these, internally? I.e., I would expect to see the dctx entries included in the span as first-class distributed correlations, not as span attributes."
},
{
- "prediction": "I think this should be `nil` instead of `nil`?",
+ "prediction": "I don't think we should return an error here.",
"reference": "nit: rename this in proto and update impl to `Search` to avoid stutter"
},
{
- "prediction": "I think this should be `s.position` instead of `s.id`",
+ "prediction": "I think this should be `s.position` instead of `s.position`",
"reference": "is it necessary to order by id as a second ordering? this will take place only when several new slider items are created without reordering (position is then null). Wouldn't be better to recalculate position after creating a new item? (right now items with null in position behave differently in administration and on frontend)"
},
{
- "prediction": "I think this should be `claimFromRewardingFundGasPerByte`",
+ "prediction": "why not use `uint64(10000)`?",
"reference": "`ClaimFromRewardingFundBaseGas` is a global variable (from `gochecknoglobals`)"
},
{
@@ -4047,59 +4047,59 @@
"reference": "How about modifying the NOGIL definition so that it only does anything if the thread safety flag (RDK_BUILD_THREADSAFE_SSS) is set?"
},
{
- "prediction": "I think this should be `BlockTimer`",
+ "prediction": "I think this should be `BlockHeight(uint64, error)`",
"reference": "blockheighter would be more clear"
},
{
- "prediction": "I think we should use `std::compareAndSwapBound` instead of `std::compareAndSwapBound`",
+ "prediction": "I don't think you need to do this. It's not a big deal, but it's not a big deal.",
"reference": "This is so weird as a utility function."
},
{
- "prediction": "I think this should be `cmp.FilterPath(func(p cmp.Path) bool { return p.Last().String() == \".ConsistentRead\" }, cmp.Ignore())`",
+ "prediction": "I think we should use `.ConsistentRead` instead of `.ConsistentRead` here.",
"reference": "Why? What would happen if you did not?"
},
{
- "prediction": "I think this should be `if (o != null) { o = (JSONObject) o.opt(pathElement); }`",
+ "prediction": "I think this should be `o = soup.opt(pathElement);` instead of `o = soup.opt(pathElement);`",
"reference": "Unrelated bugfix for NPE."
},
{
- "prediction": "I think we should check for `canBeSet` and `isWritable` as well.",
+ "prediction": "I think this should be `!$propertyMetadata['canBeSet'] && !$propertyMetadata['isWritable']`",
"reference": "What if some extended the `AdminController` and had a check for the old option name? Could that be a valid use case?"
},
{
- "prediction": "I think this should be `fetchSegmentMap` instead of `fetchSegmentMap`",
+ "prediction": "I don't think this is needed anymore.",
"reference": "This will be only available when data-manager is enabled, is there a fallback in case data manager is disabled?"
},
{
- "prediction": "I think we should remove this line.",
+ "prediction": "I don't think we should change this.",
"reference": "Do you think we want to move the call to `generateWorkerServiceRecommendedActions` inside `RecommandedActions()`?"
},
{
- "prediction": "Why is this change needed?",
+ "prediction": "I don't think this is the right place to do this, but I think it would be better to use `VUID-vkGetQueryPoolResults-flags-02827` instead of `VUID-vkGetQueryPoolResults-flags-00814`",
"reference": "The VUIDs in this area are not great, but I think `ValidateQueryPoolStride` should probably be skipped if the query pool was created with type `VK_QUERY_TYPE_PERFORMANCE_QUERY`. VUID-02828 might be a better fit, but again, the existing VUIDs step on each other so it requires a bit of interpretation."
},
{
- "prediction": "Why is this needed?",
+ "prediction": "I think this should be `public static byte[] ToDbKey(this Keccak key) => key.Bytes;`",
"reference": "Iguess you should use ToDbKey here"
},
{
- "prediction": "Why is this removed?",
+ "prediction": "why is this removed?",
"reference": "x.tbk is the \"index\" below, and is done in Start()"
},
{
- "prediction": "I think this should be `DD_IsAppInsightKey`.",
+ "prediction": "I think this should be `DD_IsAppInsightKey` instead of `DD_IsAppInsightKey`.",
"reference": "Do we already have a convention for this? If not, would we consider \"DataDog.IsAppInsights\". And then use \"DataDog.\" prefix for all this settings, environment variables etc..? Such settings are, essentially, public APIs because they may conflict with customer data. Regardless of that , AppInsights has an s at the end :)"
},
{
- "prediction": "(style) line over 80 characters",
+ "prediction": "(style) code indent should use tabs where possible",
"reference": "this assignment is not necessary if the offsetof() is used in the configmap"
},
{
- "prediction": "Why remove this?",
+ "prediction": "Why is this removed?",
"reference": "I'd rather leave a TODO here at least."
},
{
- "prediction": "Why did you change this test?",
+ "prediction": "I think this test should be `assertEqual(collection[\"path\"], \"/v0/mushrooms/\")` and not `assertEqual(objects[\"path\"], \"/v0/mushrooms/\")`",
"reference": "Shouldn't this be `resource`?"
},
{
@@ -4107,27 +4107,27 @@
"reference": "Why does this become blocking for the CPU path? Shouldn't it remain independent of the GPU path?"
},
{
- "prediction": "I think this should be `setup_rvm` instead of `configure`",
+ "prediction": "I think this should be `super.setup` instead of `super.setup`.",
"reference": "Do we need to change occurences where `setup` was called before?"
},
{
- "prediction": "I think this should be `case \"list\":` and `case \"map\":`",
+ "prediction": "I think this should be `list` or `map` instead of `list`.",
"reference": "Is this TODO still valid? Or are we going to put this somewhere else later?"
},
{
- "prediction": "I think this should be `from_ts += 1` instead of `from_ts + 1`",
+ "prediction": "I don't think this is correct. `from_ts` is a `datetime.utcfromtimestamp(from_ts)` and `from_ts` is a `datetime.utcfromtimestamp(from_ts)`",
"reference": "We generally don't do parantheses in if conditions in Python. :) this could be better written as `if from_ts is None`"
},
{
- "prediction": "(style) line over 80 characters",
+ "prediction": "I think this should be `tname[299] = '\\0';`",
"reference": "Odd that we'd set just element 299 of a 2000-byte buffer to null. But I see that this is the way it was before."
},
{
- "prediction": "I think this should be `Score`",
+ "prediction": "I think this should be `uint8` instead of `uint8`.",
"reference": "ScoreFunc is not used in this PR. Maybe to add it later when needed?"
},
{
- "prediction": "I think this should be `isBrowser(copyRequestHeadersFromResponseWriter(w))`",
+ "prediction": "Is there a reason why we don't copy the headers from the response writer?",
"reference": "super nit: I think this might be easier to read as `requestHeadersFromResponseWriter`"
},
{
@@ -4135,11 +4135,11 @@
"reference": "Need to include \"common/base/Base.h\" in front of this line"
},
{
- "prediction": "I don't think this is needed anymore.",
+ "prediction": "I think this should be moved to `src/commons/commons/commons.js`",
"reference": "Changes in this file should go into a separate PR."
},
{
- "prediction": "I think this should be `String.format(quoted(token));` and `String.format(quoted(token));`",
+ "prediction": "I think this should be `String.format(String, StringComparison.class, StringComparison.class)`",
"reference": "Please ensure that this will not start putting single quotes where double quotes are expected."
},
{
@@ -4147,11 +4147,11 @@
"reference": "`ProvideConfig` was changed, looks like it will not compile for windows, and should be changed too."
},
{
- "prediction": "Why is this change needed?",
+ "prediction": "I think we should use `models.User` instead of `*models.User`.",
"reference": "This does not look right, you're listing all private repositories.."
},
{
- "prediction": "I think this route should be `/xss_options_request` instead of `/xss_options_request`",
+ "prediction": "Align the elements of a hash literal if they span more than one line. Space inside } missing.",
"reference": "An OPTIONS request should respond from _any_ path? Seems weird to me..."
},
{
@@ -4159,43 +4159,43 @@
"reference": "you need to add the content type"
},
{
- "prediction": "Is there a reason we don't need this method?",
+ "prediction": "I don't think we need to call `StopSubProcesses` here, since it's only used in the `StartStandaloneAgentProcessesWhenConfigured` method.",
"reference": "Do we need to distinguish between these two processes? I'm thinking maybe we can have a list of processes and treat them all equally."
},
{
- "prediction": "(style) line over 80 characters",
+ "prediction": "I don't think this is correct. The stack size is aligned on ARM and x64. The stack size is aligned on ARM and x64. The stack size is aligned on ARM and x64. The stack size is aligned on ARM and x64. The stack size is aligned on ARM and x64. The stack size is aligned on ARM and x64. The stack size is aligned on ARM and x64. The stack size is aligned on ARM and x64. The stack size is aligned on ARM and x64. The stack size is aligned on ARM and x64. The stack size is aligned on ARM and x64. The stack size is aligned on ARM and x64. The stack size is aligned on ARM and x64. The stack size is aligned on ARM and x64. The stack size is aligned on ARM and x64. The stack size is aligned on ARM and x64. The stack size is aligned on ARM and x64. The stack size is aligned on ARM and x64. The stack size is aligned on ARM and x64. The stack size is aligned on ARM and x64.",
"reference": "This is used only for out-of-line -- so yes this seems right to do for x64. Inlined is aligned separately at the end of prepare_for_clean_call(). There the ifdef is x86_64 or MACOS -- no ARM, why not? Also, please add || MACOS here to match the inlined."
},
{
- "prediction": "Why is this change needed?",
+ "prediction": "Shouldn't this be `and(ZIPKIN_SPANS.TRACE_ID.eq(ZIPKIN_ANNOTATIONS.TRACE_ID_HIGH))`?",
"reference": "guess I'm wondering if this needs to be refactored to use Schema.joinCondition() or similar?"
},
{
- "prediction": "Align the elements of a hash literal if they span more than one line.",
+ "prediction": "Align the elements of a hash literal if they span more than one line. Space inside } missing.",
"reference": "Does it make sense to restrict this option to `exec` only? You could add it specific to that subcommand using the `method_option`...method. There's an example of it for hosts in the `init` function."
},
{
- "prediction": "I think we should use `WebUtility.UrlDecode` instead of `WebUtility.UrlDecode`",
+ "prediction": "I think we should use `Uri.EscapeDataString` instead of `Uri.EscapeDataString`.",
"reference": "This is very expensive (lots of allocations, lots of data copying). Could we do something like check IndexOf('%') and bypass if no hit?"
},
{
- "prediction": "I think this should be `client.getWorldType().contains(WorldType.DEADMAN)`",
+ "prediction": "why do you need to check if `client.getVar(Varbits.IN_WILDERNESS) == 1`?",
"reference": "This should be `WorldType.isDeadmanWorld(client.getWorldType())` to be inline with the other WorldType calls."
},
{
- "prediction": "Why not use `bbox_preds.contiguous()` here?",
+ "prediction": "I think this should be `mlvl_confids = torch.cat(mlvl_bboxes, max_shape=img_shape)`.",
"reference": "do we also need to change `mlvl_confid` -> `mlvl_confidences`>"
},
{
- "prediction": "I think this should be `kube-ipvs0` instead of `kube-ipvs0`",
+ "prediction": "I don't think this is needed.",
"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?",
+ "prediction": "I don't think this is correct. `re.fullmatch` will return `None` if the path is invalid.",
"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`?",
+ "prediction": "I think this should be `KindDestinationRule` instead of `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."
},
{
@@ -4203,7 +4203,7 @@
"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`.",
+ "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?"
},
{
@@ -4211,35 +4211,35 @@
"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\"?",
+ "prediction": "This should be `project_id` instead of `project_id`",
"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]`.",
+ "prediction": "I don't think you need to do this. The `aabonuses.MitigateDotRune[SBIndex::MITIGATE_RUNE_PERCENT] + itembonuses.DoTShielding + aabonuses.MitigateDotRune[SBIndex::MITIGATE_RUNE_PERCENT] + aabonuses.MitigateDotRune[SBIndex::MITIGATE_RUNE_PERCENT] + aabonuses.MitigateDotRune[SBIndex::MitigateDotRune[SBIndex::MITIGATE_RUNE_PERCENT] + itembonuses.MitigateDotRune[SBIndex::MITIGATE_RUNE_PERCENT] + aabonuses.MitigateDotRune[SBIndex::MITIGATE_RUNE_PERCENT] + aabonuses.MitigateDotRune[SBIndex::MITIGATE_RUNE_PERCENT] + aabonuses.MitigateDotRune[SBIndex::MITIGATE_RUNE_PERCENT] + aabonuses.MitigateDotRune[SBIndex::MIT",
"reference": "No possible chance for weird overflows here, right?"
},
{
- "prediction": "I think this should be a constant.",
+ "prediction": "I think this should be `final`.",
"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`",
+ "prediction": "I think this should be `_stateProvider.ResetStateTo(newHeadBlock!.Header, 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`",
+ "prediction": "I think this should be `diskImporterDiskName := fmt.Sprintf(\"disk-importer-scratch-%v-%v\", w.ID(), dataDiskIndex)`",
"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)`",
+ "prediction": "I think this should be `scol_for(sdf, col) for col in zip(self._internal.column_scols, data_columns)`",
"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{}`",
+ "prediction": "Nitpick: I think we should use `map[string]interface{}` instead of `map[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) { ... }`",
+ "prediction": "Why is this needed?",
"reference": "sorry for nitpicking but I would love a new line under this line"
},
{
@@ -4247,39 +4247,39 @@
"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)`",
+ "prediction": "I think it would be better to call this `RemoveFiles` instead of `RemoveFiles`.",
"reference": "Looks like there is a typo: `expireSnapshots` -> `removeFiles` or whatever name we go with."
},
{
- "prediction": "Why is this change needed?",
+ "prediction": "I don't think this is correct. `currentSortOrder == null` would be better.",
"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`",
+ "prediction": "I think this should be `OMNIPOD_POD_ALERTS_UPDATED` instead of `OMNIPOD_POD_SUSPENDED`.",
"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.",
+ "prediction": "I don't think this is needed.",
"reference": "Should this be boost logged?"
},
{
- "prediction": "I think this should be `session_object` or `session_object`.",
+ "prediction": "`session` -> `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)`",
+ "prediction": "I think this should be `field.getName()` instead of `fieldSchemas.get(i)`",
"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.",
+ "prediction": "Layout/SpaceInsideHashLiteralBraces: Space inside { missing. Layout/SpaceInsideHashLiteralBraces: Space inside } missing.",
"reference": "Is there an equivalent that'd allow zero or one?"
},
{
- "prediction": "I think this should be `if rwExec.isTaskObjectNameRepeat() {`",
+ "prediction": "I think this should be `if rwExec.isTaskObjectNameRepeat() && m.metaTaskExec.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?",
+ "prediction": "why do we need to cast to int?",
"reference": "unnecessary conversion (from `unconvert`)"
},
{
@@ -4287,7 +4287,7 @@
"reference": "typo in commit message `openening`"
},
{
- "prediction": "I don't think this is needed.",
+ "prediction": "I think this should be `#define ADIOS_HAVE_PHDF5 #define ADIOS_HAVE_PHDF5 #define ADIOS_HAVE_PHDF5 #define ADIOS_HAVE_PHDF5 #define ADIOS_HAVE_PHDF5 #define ADIOS_HAVE_PHDF5 #define ADIOS_HAVE_PHDF5 #define ADIOS_HAVE_PHDF5 #define ADIOS_HAVE_PHDF5 #define ADIOS_HAVE_PHDF5 #define ADIOS_HAVE_PHDF5 #define ADIOS_HAVE_PHDF5 #define ADIOS_HAVE_PHDF5 #define ADIOS_HAVE_PHDF5 #define ADIOS_HAVE_PHDF5 #define ADIOS_HAVE_PHDF5 #define ADIOS_HAVE_PHDF5 #define ADIOS_HAVE_PHDF5 #define ADIOS_HAVE_PHDF5 #define ADIOS_HAVE_PHDF5 #define ADIOS_HAVE_",
"reference": "User-code doesn't see the internal ADIOS headers anymore. This whole include block should just be `#include `"
},
{
@@ -4295,23 +4295,23 @@
"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`",
+ "prediction": "I don't think we need to check if the remote is a hub or not.",
"reference": "Why is Hub public?"
},
{
- "prediction": "Why is this removed?",
+ "prediction": "I think this should be 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?
",
+ "prediction": "I don't think this link should be in the `Intro to Rails tutorial?
tutorial?",
"reference": "Maybe move that into a partial"
},
{
- "prediction": "Why is this change needed?",
+ "prediction": "Why not use `config.Default.DB` here?",
"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.",
+ "prediction": "I don't think this is a good idea, but I think it would be better to use `output.UserOut.Warnf(\"Warning: the provided docroot at %s does not currently exist.\", docrootRelPath)`.",
"reference": "util.Warning()? Easier to say."
},
{
@@ -4319,15 +4319,15 @@
"reference": "this default is kinda superfluous (although i see it was already there before PR )"
},
{
- "prediction": "Why is this change needed?",
+ "prediction": "Why is this removed?",
"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.",
+ "prediction": "Layout/MultilineMethodCallIndentation: Align the parameters of a method call if they span more than one line. Layout/MultilineMethodCallIndentation: Align the parameters of a method call if they span more than one line. Layout/MultilineMethodCallIndentation: Align the parameters of a method call if they span more than one line. Layout/MultilineMethodCallIndentation: Align the parameters of a method call if they span more than one line.",
"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)`",
+ "prediction": "I think this should be `expect(sexp).to include_sexp[:cmd, disable_ssh_roaming]` instead of `expect(sexp).to not include_sexp[:cmd, disable_ssh_roaming]`",
"reference": "The use of `#should` was triggering an rspec depracation warning for me, which is why I switched this to the rspec 3 style."
},
{
@@ -4339,31 +4339,31 @@
"reference": "`lodash` shouldn't be grouped under WordPress dependencies"
},
{
- "prediction": "I think this method should not be public.",
+ "prediction": "Why is this change needed?",
"reference": "This needs to be public so that Avro can call it."
},
{
- "prediction": "Why is this needed?",
+ "prediction": "Why is this removed?",
"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`",
+ "prediction": "I think this should be `assert not copy` instead of `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,",
+ "prediction": "I think this should be `return Files.newInputStream(Paths.get(path));`",
"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.",
+ "prediction": "I don't think this is the right place to do this.",
"reference": "It would probably be better to do: const SecurityProtocolType Tls13 = (SecurityProtocolType)12288"
},
{
- "prediction": "Why did you remove this?",
+ "prediction": "Why is this removed?",
"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:\")`.",
+ "prediction": "I don't think this is a good idea, but I think it should be `info` or `info`.",
"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"
},
{
@@ -4371,23 +4371,23 @@
"reference": "I'm curious about why this needed to be removed."
},
{
- "prediction": "Why is this needed?",
+ "prediction": "I don't think we need to import `scapy.extlib` here.",
"reference": "why did you remove `zip`? It is used!"
},
{
- "prediction": "Why is this needed?",
+ "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?",
+ "prediction": "I think this should be `namespace TestVendor\\_Goto;`",
"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.",
+ "prediction": "Why is this needed?",
"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())`.",
+ "prediction": "I think we should check if the response body is empty.",
"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"
},
{
@@ -4395,71 +4395,71 @@
"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`",
+ "prediction": "I think this should be `if you 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?",
+ "prediction": "I don't think you need to pass the `ActivitySourceAdapter` as an argument to `OpenTelemetry.Instrumentation.AspNetCoreInstrumentationOptions`.",
"reference": "I initially thought (inccoreclty) this is a breaking change! The public api analyzer is a gift!"
},
{
- "prediction": "(style) line over 80 characters",
+ "prediction": "Why is this change needed?",
"reference": "I'm not sure how this one didn't segfault before."
},
{
- "prediction": "I think this should be `VXLANPort` or `VXLANVNI`.",
+ "prediction": "I think this should be `ProtoIPIP` and `ProtoIPIP`",
"reference": "Same points as in other test file."
},
{
- "prediction": "I don't think this is needed anymore.",
+ "prediction": "I don't think this is a good idea. I think it should be `import java.io.BufferedInputStream;` or `import java.io.BufferedOutputStream;`",
"reference": "Did you run gradlew tidy? Wildcard imports shouldn't be there, hence the question."
},
{
- "prediction": "Line is too long. [89/80]",
+ "prediction": "Layout/SpaceInsideHashLiteralBraces: Space inside { missing. Layout/SpaceInsideHashLiteralBraces: Space inside } missing.",
"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\");`",
+ "prediction": "I don't think we need to do this. The `fpga_properties_setInterface` function is already called in the `fpga_properties_set_interface` function.",
"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 }`",
+ "prediction": "I think this should be `if signer.Protocol() == address.ID {`",
"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.",
+ "prediction": "I don't think this is a good idea, but I don't think it's worth it.",
"reference": "electronic medical record file system (EMRFS)"
},
{
- "prediction": "I think this should be `maxrequestbody`",
+ "prediction": "I think this should be `max-request-body` instead of `max-request-body`.",
"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?",
+ "prediction": "Why are these errors removed?",
"reference": "oh come on :("
},
{
- "prediction": "I think this should be `LOG.finest(String.format(\"Detected dialect: %s\", toReturn.dialect));`",
+ "prediction": "I think this should be `LOG.info(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`.",
+ "prediction": "I think this should be a service account, not a service account.",
"reference": "Remove as this is not needed anymore."
},
{
- "prediction": "I think this should be `DoSomething2`",
+ "prediction": "I think this should be `int` instead of `int`",
"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`",
+ "prediction": "I don't think this is a good idea, but I don't think it's a good idea to have a default for web facing certificates as per 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); }`",
+ "prediction": "I don't think we need to free the tmp here.",
"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()`",
+ "prediction": "I think this should be `valueProjection.schema() != keyField.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."
},
{
@@ -4467,11 +4467,11 @@
"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`",
+ "prediction": "nit: I think this should be `github.com/ethereum/go-ethereum/rpc`",
"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)`?",
+ "prediction": "I think it would be better to use `role in (controlTypes.ROLE_DELETED_CONTENT, controlTypes.ROLE_INSERTED_CONTENT)` instead of `role in (controlTypes.ROLE_DELETED_CONTENT, controlTypes.ROLE_INSERTED_CONTENT, controlTypes.ROLE_INSERTED_CONTENT)`",
"reference": "Could you split this into multiple lines?"
},
{
@@ -4487,35 +4487,35 @@
"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) == \"\"`",
+ "prediction": "I think this should be done in the `UpdateHash` function, not in the `cStorPoolAddEventHandler` function.",
"reference": "need to fix the error message here"
},
{
- "prediction": "I think this should be fixed as well.",
+ "prediction": "Why is this not fixed?",
"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.\");`",
+ "prediction": "I think this should be `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`",
+ "prediction": "I think this should be `DefaultRetryPolicy` instead of `DefaultRetrySettings`.",
"reference": "replace \"Child Workflow\" with \"any workflow\""
},
{
- "prediction": "I think this should be `if .IsSymlink` instead of `if .IsDir`",
+ "prediction": "I don't think this is correct. The `&mdash` is the same as `&mdash` but the `&mdash` is the same as `&mdash`.",
"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`.",
+ "prediction": "I think this should be `@internal`",
"reference": "Please add back the description of the parameter"
},
{
- "prediction": "I think this should be `this.trees = {}`",
+ "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);`",
+ "prediction": "I think this should be `!node.ownerSVGElement` instead of `!node.ownerSVGElement`",
"reference": "Didn't fix the problem. `href=\"\"` for SVG will still result in `undefined` getting returned by this function."
},
{
@@ -4523,23 +4523,23 @@
"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`",
+ "prediction": "I think this should be `isFocus=False` instead of `isFocus=True`",
"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]`.",
+ "prediction": "I think this is a good idea, but I don't think we need to do this.",
"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) }`",
+ "prediction": "I don't think we need to sort the array here.",
"reference": "Why is this needed?"
},
{
- "prediction": "I think this should be `/users/:username/orgs/:org/repos`",
+ "prediction": "I think this should be `/orgs/:org/repos` instead of `/users/:username/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.",
+ "prediction": "I think this should be `if (addrs.value().empty())`",
"reference": "If FLAGS_meta_server_addrs is not empty, in which case \"toHosts\" return empty array?"
},
{
@@ -4547,67 +4547,67 @@
"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]`?",
+ "prediction": "I think this should be `scol = data._internal.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.",
+ "prediction": "I don't think we need to check for administerable_by?",
"reference": "Thanks for moving this up with the rest of the variables. Much tidier :)"
},
{
- "prediction": "I think this should be `dto.PaymentPerTime`",
+ "prediction": "I think this should be `0.001` instead of `1 * time.Minute`.",
"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`",
+ "prediction": "Why is this change needed?",
"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()`?",
+ "prediction": "I think this should be `ConfigQuery::checkAvailableStock()` instead of `ConfigQuery::checkAvailableStock()`.",
"reference": "if `checkStockNotEmpty` returns a reponse, you must return it or your script will continue its execution."
},
{
- "prediction": "Why is this changed?",
+ "prediction": "I think this should be `k8s.io/klog/v2`",
"reference": "Any specific reason for this change? klog should work correctly here."
},
{
- "prediction": "Why do we need to update `data` here?",
+ "prediction": "I think this should be `ON CONFLICT (id, parent_id, collection_id) ON CONFLICT (id, parent_id, collection_id) ON CONFLICT (id, parent_id, collection_id) ON CONFLICT (id, parent_id, collection_id) ON CONFLICT (id, parent_id, collection_id) ON CONFLICT (id, parent_id, collection_id) ON CONFLICT (id, parent_id, collection_id) ON CONFLICT (id, parent_id, collection_id, collection_id) ON CONFLICT (id, parent_id, collection_id) ON CONFLICT (id, parent_id, collection_id) ON CONFLICT (id, parent_id, collection_id) ON CONFLICT (id, parent_id, collection_id, collection_id) ON CONFLICT (id, parent_id, collection_id) ON CONFLICT (id, parent_id, collection_id, collection_id) ON CONFLICT (id, collection_id, collection_id) ON CONFLICT (id, parent_id, collection_id, collection_id) ON CONFLICT (id, parent_id",
"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`.",
+ "prediction": "I don't think this is needed anymore.",
"reference": "same deal about the global state maybe interfering as in ActionBrowseTagline"
},
{
- "prediction": "Shouldn't this be `Assert.Throws(() => new LruCache(maxCapacity, \"test\");`?",
+ "prediction": "I think this should 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.",
+ "prediction": "I don't think this is correct. The default value of `http_proxy` is `\"\"` and the default value of `HTTP_PROXY` is set to `\"\"`.",
"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`?",
+ "prediction": "Why is this change needed?",
"reference": "Can you throw an exception if width or height are both null"
},
{
- "prediction": "Why is this change needed?",
+ "prediction": "I don't think we need to change this file. I think it's a good idea to change it to `httpSchemeHTTP` and `httpSchemeHTTPS` to `httpSchemeHTTP`.",
"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`.",
+ "prediction": "I don't think we need to do this in the `TableScan` class, since it's only used in the `BaseTableScan` class. I think we should just do `TableScan.METADATA_SPLIT_SIZE = options.get(TableProperties.METADATA_SPLIT_SIZE);` instead of `TableProperties.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'`.",
+ "prediction": "I think this should be `Divide` instead of `Divide`",
"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 != \"\" {`",
+ "prediction": "I think this should be `varMap[\"compute_service_account\"] = 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)`",
+ "prediction": "I think this should be `GET` instead of `SET`",
"reference": "Nit: Group this with the other commands by moving it down one line."
},
{
@@ -4615,15 +4615,15 @@
"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`?",
+ "prediction": "I think it would be better to add a `default=None` to `RangeBase` as well.",
"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`.",
+ "prediction": "I don't think we need to change this file.",
"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)`",
+ "prediction": "I think it would be better to use `__name__ == '__main__'` instead of `__name__ == '__main__'`",
"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?"
},
{
@@ -4631,19 +4631,19 @@
"reference": "`has(default)` i think is the preferred way of doing this"
},
{
- "prediction": "why not use `clipInput=False`?",
+ "prediction": "Why is this change needed?",
"reference": "always put a space after a comma"
},
{
- "prediction": "Is there a reason to use `selectAllPhotosUpToFav` instead of `selectAllPhotosUpTo`?",
+ "prediction": "I don't think we need to call `getImagePosition(m.getPath()), mediaAdapter` here.",
"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`",
+ "prediction": "I think we should add the `options` argument to the constructor.",
"reference": "@AutomatedTester @davehunt thoughts on a new keyword argument?"
},
{
- "prediction": "why is this change needed?",
+ "prediction": "Why change the type of `maxSessionCount` to `Integer`?",
"reference": "This change shouldn't be necessary for this PR. Please remove it."
},
{
@@ -4651,15 +4651,15 @@
"reference": "This variable is mostly unused, how about we make `NewTestCtx` return a pointer?"
},
{
- "prediction": "I think this should be 32Mi, not 32Mi.",
+ "prediction": "I think this should be `1 << 20`",
"reference": "What is the basis of this value?"
},
{
- "prediction": "I think this should be `gce_metadata.h` instead of `gce_metadata.h`.",
+ "prediction": "I think this should be `#include \"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`?",
+ "prediction": "I think this should be `STATUS_GUARD_PAGE_VIOLATION` instead of `STATUS_GUARD_PAGE_VIOLATION`",
"reference": "nit: inconsistent spacing around ="
},
{
@@ -4671,11 +4671,11 @@
"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`",
+ "prediction": "why is this removed?",
"reference": "Is this file actually related to PCA?"
},
{
- "prediction": "I think this should be `isFirstAdmin` and `isOwner`",
+ "prediction": "I think this should be `isFirstAdmin` or `isOwner`",
"reference": "See above, this should probably remain `isFirstAdmin`."
},
{
@@ -4683,83 +4683,83 @@
"reference": "Why the change to make it public? The expression interface has the `TypeOf` method?"
},
{
- "prediction": "Why is this change needed?",
+ "prediction": "I think this is a good idea, but I don't think it's necessary to make sure that this is the right thing to do here.",
"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`",
+ "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.",
+ "prediction": "why do you need to add `--class-wise` to `coco_eval`?",
"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.",
+ "prediction": "I think this should be safe as the root category has to exist for a given context but I do not like fatal errors.",
"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());`",
+ "prediction": "I think this should be `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.",
+ "prediction": "I don't think we need to import `config` here.",
"reference": "please import it like `from kinto.config import template`"
},
{
- "prediction": "I think this should be `Boolean.parseBoolean(Boolean.parseBoolean(String.valueOf(true)));`",
+ "prediction": "I think this should be `Boolean.parseBoolean(getStringProperty(\"false\", \"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`",
+ "prediction": "I think this should be `grpc.reflection` instead of `grpc.reflection`",
"reference": "File is not `goimports`-ed (from `goimports`)"
},
{
- "prediction": "Shouldn't this be `boolToStaticNodes`?",
+ "prediction": "I don't think we need to pass `false` as an argument to `AddPeer` and `RemovePeer` as an argument to `AddPeer`.",
"reference": "parameter should be called removeFromStaticNodes"
},
{
- "prediction": "I think this should be `override: bool=True`",
+ "prediction": "I don't think this is needed. The `override` argument should be `True` if `operation` is `None` and `context` is `False`.",
"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.",
+ "prediction": "I think this should be `Date.today.new(Date.today)`",
"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`",
+ "prediction": "I don't think we need to check if `bodyParameterType.IsReadOnly` is true.",
"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.",
+ "prediction": "I don't think this is needed anymore.",
"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`",
+ "prediction": "I think this should be `~internal~ecs~pause`",
"reference": "Can you add a TODO for loading the tarball of the pause image into Docker?"
},
{
- "prediction": "Why did you remove this?",
+ "prediction": "Why remove this line?",
"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())`",
+ "prediction": "Please use `CHECK_EQ(outer_num_ * inner_num_, bottom[0]->count(0, softmax_axis_ + 1));` instead of `CHECK_EQ(outer_num_ * inner_num_, bottom[1]->count(0, softmax_axis_ + 1));`",
"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)`",
+ "prediction": "I think this should be `#ifdef AARCH64` instead of `#endif`.",
"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);`",
+ "prediction": "I think this should be `Globalize.translate(\"ListPaging\").replace(\"{0}\", 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))`",
+ "prediction": "I think we should test that `s_nan` is non-empty.",
"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`",
+ "prediction": "I think this should be `tls.TlsClientHelloHook` and `tls.TlsStartServerHook`",
"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?"
},
{
@@ -4767,11 +4767,11 @@
"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);`",
+ "prediction": "`urlencode` 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.",
+ "prediction": "I think this should be `this.activeEditor.prepare(row, col, prop, originalValue, cellProperties);`",
"reference": "Maybe we can use `this.instance.getCell` with `topMost` flag to get `TD` element?"
},
{
@@ -4779,31 +4779,31 @@
"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);`",
+ "prediction": "I don't think we need to do this. I think it's better to do this in a separate PR.",
"reference": "I refactored the Aggregate, those are hard to read"
},
{
- "prediction": "Why did you remove this?",
+ "prediction": "Why 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]",
+ "prediction": "Layout/EmptyLinesAroundBlockBody: Extra empty line detected at block body beginning.",
"reference": "What was the point of creating `user_block` if you're then not going to use it ;-)"
},
{
- "prediction": "Why is this removed?",
+ "prediction": "why remove this?",
"reference": "@ueshin, I thought we can remove this entire file. Does that require some more works?"
},
{
- "prediction": "Why is this change needed?",
+ "prediction": "I think this should be `unicode(tokens.string)[1:-1]` or `unicode(tokens.string)[1:-1]`",
"reference": "Just `return tokens.string[1:-1]` is enough"
},
{
- "prediction": "This should be `resources:quizzes, only: [:show]`.",
+ "prediction": "I think this should be `resources:quizzes, only: [:show] do`",
"reference": "1 trailing blank lines detected."
},
{
- "prediction": "Why is this change needed?",
+ "prediction": "I think this should be `this.setPrefWidth(Double.MAX_VALUE);`",
"reference": "Isn't this the default max width? In any case I would prefer to see these definitions in the css files."
},
{
@@ -4811,63 +4811,63 @@
"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.",
+ "prediction": "Why is this change needed?",
"reference": "Looks like this file has tabs instead of spaces."
},
{
- "prediction": "Is there a reason why we don't need to do this?",
+ "prediction": "I think this should be `warnf` instead of `infof`",
"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.",
+ "prediction": "I think this line should be removed.",
"reference": "Please undo this :wink:"
},
{
- "prediction": "Align the elements of a hash literal if they span more than one line.",
+ "prediction": "Layout/SpaceInsideHashLiteralBraces: Space inside { missing. Layout/SpaceInsideHashLiteralBraces: Space inside } missing.",
"reference": "thanks for adding this missing association"
},
{
- "prediction": "I think this should be `app.UseKestrelHttps(new HttpsConnectionFilterOptions { ServerCertificate = cert});`",
+ "prediction": "I think this should be `public static IApplicationBuilder UseKestrelHttps(IApplicationBuilder app, X509Certificate2 cert, X509Certificate2 serverCertificate, X509Certificate2 cert, X509Certificate2 serverCertificate, X509Certificate2 cert, X509Certificate2 serverCertificate, X509Certificate2 cert, X509Certificate2 serverCertificate, X509Certificate2 cert, X509Certificate2 serverCertificate, X509Certificate2 cert, X509Certificate2 serverCertificate);`",
"reference": "Should I remove this in favor of the HttpsConnectionFilterOptions overload?"
},
{
- "prediction": "I think we should use `getMaxIndex` instead of `getMaxIndex`",
+ "prediction": "Shouldn't this be `?int` instead of `?int`?",
"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.",
+ "prediction": "Is this needed?",
"reference": "Spaces not tabs"
},
{
- "prediction": "I think this should be `this.fsErrorToJsError_(error, path);`",
+ "prediction": "I think this should be `return fs.readdirSync(path, {withFileTypes: true}).map(e => e.name).map(e => e.name).map(e => e.name).map(e => e.name).map(e => e.name).map(e => e.name).map(e => e.name).map(e => e.name).map(e => e.name).map(e => e.name).map(e => e.name)).map(e => e.name));`",
"reference": "To get the files inside a directory, please use `readDirStats()`."
},
{
- "prediction": "Why is this needed?",
+ "prediction": "I think this should be `ContainerImplementationNone` instead of `ContainerImplementationPlz`",
"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`",
+ "prediction": "I think this file should be renamed to `batchstore_test_test_batchstore_test_test_batchstore_test_batchstore_test_batchstore_test_batchstore_test_batchstore_test_batchstore_test_batchstore_test_batchstore_test_batchstore_test_batchstore_test_batchstore_test_batchstore_test_batchstore_test_test_batchstore_test_batchstore_test_test_test_batchstore_test_batchstore_test_test_batchstore_test_batchstore_test_batchstore_test_batchstore_test_batchstore_test_batchstore_test_batchstore_test_batchstore_test_batchstore_test_batchstore_test_batchstore_test_batchstore_test_batchstore_test_batchstore_test_batchstore_test_batchstore_test_batchstore_test_test_batchstore_test_batchstore_test_test_test_batchstore_test_batchstore_test_test_batchstore_test_test_batchstore_test_test_batchstore_test_batchstore_test_test_",
"reference": "File is empty, consider removing?"
},
{
- "prediction": "I think we should use `_load_auth` instead of `_load_auth`",
+ "prediction": "I don't think we need to return `None` here.",
"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`",
+ "prediction": "I think this should be `L1ETHGatewayAddress` instead of `L1StandardBridgeAddress`",
"reference": "Was the addition of `GasPriceOracleAddress` here erroneous?"
},
{
- "prediction": "Align the elements of a hash literal if they span more than one line.",
+ "prediction": "Align the elements of a hash literal if they span more than one line. Space inside } missing.",
"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);`",
+ "prediction": "I think this should be `for (int i=0; iStyle/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.",
"reference": "Please update the yard docs to indicate this new option."
},
{
- "prediction": "I think this should be `*ClassicELBScheme` or `*ClassicELBScheme`",
+ "prediction": "Nit: I think we should add a `// +optional` here.",
"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()`",
+ "prediction": "I think we should use `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`",
+ "prediction": "I think this should be `200*time.Millisecond` instead of `200*time.Millisecond`",
"reference": "1000 -> 100 maybe too much, 200 ish to 500ish maybe a good option"
},
{
@@ -4919,71 +4919,71 @@
"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.",
+ "prediction": "I don't think we need to translate 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?",
+ "prediction": "I think this should be `BestSuggestedHeader` instead of `Head?.Hash`",
"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`.",
+ "prediction": "I don't think we need to preserve unknown fields here.",
"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]",
+ "prediction": "I don't think we need to add these to the `Topic` table.",
"reference": "Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping."
},
{
- "prediction": "Why is this change needed?",
+ "prediction": "I don't think this is needed anymore.",
"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`",
+ "prediction": "I think this should be `if ($localPath === '/') return $asset;`",
"reference": "Add a space between if and opening parenthesis please (i.e. `if (`)"
},
{
- "prediction": "Why is this change needed?",
+ "prediction": "I think this should be `return self._internal.copy(scol=self._scol.alias(index))`",
"reference": "nit: `rename` instead of `alias`?"
},
{
- "prediction": "I think this should be `/dev/sd` instead of `/dev/sda1`",
+ "prediction": "I think this should be `/dev/sda1` instead of `/dev/sd`",
"reference": "Per AWS docs EC instances have the root mounted at /dev/sda1. This label should be skipped."
},
{
- "prediction": "Why is this removed?",
+ "prediction": "why remove this line?",
"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`",
+ "prediction": "I don't think this is correct. `p.len is not None and p.value_size is not None` is the same as `p.value_size is not None`",
"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`?",
+ "prediction": "I think this should be `int64` instead of `int64`.",
"reference": "Can we make sure ECS service treats it as int64 as well?"
},
{
- "prediction": "I think this should be `super(ReadOnlyEditBox, self).windowText`",
+ "prediction": "I think this should be `IAccessible` instead of `ReadOnlyEditBox`.",
"reference": "Please follow the naming convention for variables, i.e. `windowText`."
},
{
- "prediction": "I think this should be `castv1alpha1` instead of `castv1alpha1`",
+ "prediction": "I don't think this is needed anymore.",
"reference": "alias can be `cast`"
},
{
- "prediction": "I think this should be `(uint64_t)mmap_errors` instead of `(uint64_t)mmap_errors`.",
+ "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`.",
+ "prediction": "I don't think we need to change the severity here.",
"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?",
+ "prediction": "I think this should be `flatbuffers::StripExtension(it->first)` instead of `flatbuffers::StripExtension(it->second)`",
"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`.",
+ "prediction": "I think this should be `self.num_of_searches -= 1`",
"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."
},
{
@@ -4991,15 +4991,15 @@
"reference": "Should these assert that the extracted `SpanContext` is remote?"
},
{
- "prediction": "I think this should be `match_high_quality` or `match_low_quality`",
+ "prediction": "I think it would be better to make this `match_low_quality_matches` instead of `match_low_quality`.",
"reference": "typo: allow low quality matches."
},
{
- "prediction": "Why is this change needed?",
+ "prediction": "Why is this 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`.",
+ "prediction": "I think this should be `aria-label: icon_label` or `aria-label: icon_label`",
"reference": "Can we add the `if label` conditional to this please?"
},
{
@@ -5007,63 +5007,63 @@
"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`.",
+ "prediction": "nit: I think this should be `true` instead of `false`.",
"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`.",
+ "prediction": "I think this should be `FileSystemIntermediatesManager` instead of `InMemoryIntermediatesManager`.",
"reference": "`Intermediates` or `Intermediate`"
},
{
- "prediction": "Shouldn't this be `isinstance(element, str)` or `isinstance(element, dict)`?",
+ "prediction": "I think this should be `ElementReferenceException` instead of `StaleElementReferenceException`.",
"reference": "This is not the right exception class. There is an InvalidSelectorException class that covers bad locators."
},
{
- "prediction": "Why is this change needed?",
+ "prediction": "I think this should be `Debug` instead of `Info`.",
"reference": "If this code isn't needed, it should be removed."
},
{
- "prediction": "I think we should use `retrySettings` here instead of `retrySettings`",
+ "prediction": "I don't think we need to pass `ctx` here.",
"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`.",
+ "prediction": "I don't think we need to change the environment name to `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`.",
+ "prediction": "I think this should be `Dns.GetHostName()`, not `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`)",
+ "prediction": "I think this should be `SELECT DISTINCT(trigger_instance_id) FROM execution_dependencies WHERE dep_status = 3`",
"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",
+ "prediction": "I think this should be `libdokan/libdokan/libdokan.go`",
"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)\"`",
+ "prediction": "This should be `Security.Instance.Settings.Rules?.ToString() ?? \"(none)\"`",
"reference": "maybe prefix these with `appsec_` for consistency?"
},
{
- "prediction": "I think this should be `golang.org/x/net/trace`.",
+ "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:`",
+ "prediction": "I think this should be `log.debug(\"Freed from parent console process.\")`",
"reference": "Why is this change necessary or related to the rest of the PR?"
},
{
- "prediction": "Why not just `- see:`?",
+ "prediction": "I don't think we need to add the `-` here.",
"reference": "Hm, I wonder if the `see:` prefix is even necessary?"
},
{
- "prediction": "Shouldn't this be `item.UserData.PlaybackPositionTicks - item.RunTimeTicks / 600000000`?",
+ "prediction": "I think it would be better to use `Math.round(item.RunTimeTicks - item.UserData.PlaybackPositionTicks) / 600000000` instead of `Math.round(item.RunTimeTicks - item.UserData.PlaybackPositionTicks) / 600000000`",
"reference": "This should be translated."
},
{
- "prediction": "Why is this change needed?",
+ "prediction": "I think this should be `new_config.num_class != config_.num_class`",
"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."
},
{
@@ -5071,15 +5071,15 @@
"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`.",
+ "prediction": "I don't think we need to pass constants.HiveNamespace here.",
"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)`",
+ "prediction": "I think this should be `assert_consumers(0)`",
"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\"",
+ "prediction": "Why is this removed?",
"reference": "Only V1 or V3 is return from `getMetaVersionFromKV`. So where do we call `updateMetaV2ToV3`?"
},
{
@@ -5087,107 +5087,107 @@
"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`",
+ "prediction": "I think this should be `[uri: \"/wow\", type: \"pages\", verb: \"get\"}]`",
"reference": "Should we remove this?"
},
{
- "prediction": "I think this should be `io.io`",
+ "prediction": "I think this should be `io.io` instead of `io.io`",
"reference": "Put on top of the import."
},
{
- "prediction": "I think this should be `analyticsName` instead of `analyticsName`",
+ "prediction": "I think this should be `analytics-component`",
"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),`",
+ "prediction": "I think this should be `ITE_AMULET_OF_FURY`",
"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`",
+ "prediction": "I think this should be `libp2p.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?",
+ "prediction": "I don't think we need this function anymore.",
"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\"]`",
+ "prediction": "I don't think we need to set the language if it's not set.",
"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`",
+ "prediction": "I don't think we need to change this, but I don't think we need to change it.",
"reference": "why is this changed ?"
},
{
- "prediction": "I think this should be `TODO(jba): test that doc's revision field is updated`.",
+ "prediction": "I think we should be able to test that doc's revision field is updated. I think we should also 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.",
+ "prediction": "Metrics/LineLength: Line is too long. [89/80]",
"reference": "You have deleted :attribute"
},
{
- "prediction": "I don't think we need to change this file.",
+ "prediction": "I think this should be `Copyright 2017 Huawei Technologies Co., Ltd`",
"reference": "The license header should be updated to the Apache one."
},
{
- "prediction": "Shouldn't this be `int expectedSpanCount = EnvironmentHelper.IsCoreClr() ? 2 : 1;`?",
+ "prediction": "I think this should 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);`",
+ "prediction": "I don't think this is needed.",
"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']`",
+ "prediction": "Line is too long. [89/80] Prefer single-quoted strings when you don't need string interpolation or special symbols.",
"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]);`",
+ "prediction": "I think we should move this fragment to the `ProductFragmentPagerAdapter`",
"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?",
+ "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?",
+ "prediction": "I think this should be `if !host.is_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?",
+ "prediction": "why do you need to cast to `size_t`?",
"reference": "Should it be `int64_t`?"
},
{
- "prediction": "Why is this constant set to 8?",
+ "prediction": "I think this should be a constant, not a constant.",
"reference": "is this value related to something ?"
},
{
- "prediction": "I think this should be `AddTxResult` instead of `AddTxResult`",
+ "prediction": "Shouldn't this be `ValueTask SendTransaction(Transaction tx, TxHandlingOptions txHandlingOptions);`?",
"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))));`",
+ "prediction": "I think this should be `replaceAcronyms(namePiece)` instead of `replaceAcronyms(namePiece)`",
"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);`",
+ "prediction": "Why is this cast needed?",
"reference": "Huh? The point is that a cast isn't necessary"
},
{
- "prediction": "I think this should be `InstallCRD` instead of `InstallCRD`",
+ "prediction": "I think this should be `OpenEBS_IO_INSTALL_CRD` instead of `OPENEBS_IO_INSTALL_CRD`",
"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.",
+ "prediction": "I think this should be `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:`",
+ "prediction": "I don't think this is needed.",
"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]`.",
+ "prediction": "I think this should be `# snippet-start: [s3.s3_ruby_bucket_cors.rb] # snippet-end: [s3.s3_ruby_bucket_cors.rb] # snippet-end: [s3.s3_ruby_bucket_cors.rb] # snippet-start: [s3.s3_ruby_bucket_cors.rb] # snippet-end: [s3.s3_ruby_bucket_cors.rb] # snippet-start: [s3.s3_ruby_bucket_cors.rb] # snippet-end: [s3.s3_ruby_bucket_cors.rb] # snippet-end: [s3.s3_ruby_bucket_cors.rb] # snippet-start: [s3.s3_ruby_bucket_cors.rb] # snippet-end: [s3.s3_ruby_bucket_cors.rb] # snippet-end: [s3.s3_ruby_bucket_cors.rb] # snippet-end: [s3.s3_ruby_bucket_cors",
"reference": "Simple Storage **Service**"
},
{
@@ -5195,87 +5195,87 @@
"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]",
+ "prediction": "Layout/EmptyLinesAroundClassBody: Extra empty line detected at class body end.",
"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()) {`",
+ "prediction": "I think this should be `if (this.toolbox_ && this.toolbox_) {`",
"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?",
+ "prediction": "Why is this disabled?",
"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();`",
+ "prediction": "I don't think this is needed anymore.",
"reference": "Let's not create new connection, but rather user `common.db` one"
},
{
- "prediction": "Do we need this?",
+ "prediction": "I think you can use `image_url` instead of `image_path`",
"reference": "Can this use asset_path rather than defining an image_url helper?"
},
{
- "prediction": "I think this should be `@return {''}`",
+ "prediction": "I think this should be `RA.stubString(1, 2, 3);` and `RA.stubString(1, 2, 3);`",
"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`",
+ "prediction": "I think this should be `ofPolicyRule` or `ofPolicyRuleNamespace`",
"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`",
+ "prediction": "I think this should be `opcache_invalidate` and `opcache_reset` instead of `opcache_invalidate`",
"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.",
+ "prediction": "I don't think we need to update the state of active_execution.",
"reference": "Could also consider modifying the ActiveExecution..."
},
{
- "prediction": "I think this should be `safe_infer(node.slice)` instead of `safe_infer(node.slice)`",
+ "prediction": "I think this should be `astroid.Const` instead of `astroid.Const`",
"reference": "Does it make sense to change that to a custom error instead of `ValueError`?"
},
{
- "prediction": "why is this change needed?",
+ "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`",
+ "prediction": "I don't think we need to keep this as it's a 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`.",
+ "prediction": "I think this should be `200112L` instead of `200809L`.",
"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?",
+ "prediction": "I think this should be `(loopBody != getDst) ? loopBody->outputVar() : sampleLimit->outputVar() : sampleLimit->outputVar();`",
"reference": "Why not delete these codes?"
},
{
- "prediction": "Why is this change needed?",
+ "prediction": "I think this should be `FLAGS_meta_client_retry_times` instead of `FLAGS_meta_client_retry_times`.",
"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`.",
+ "prediction": "I don't think we need to pass `first` and `count` here.",
"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.",
+ "prediction": "I think we should add a TODO here.",
"reference": "FYI, visibility task processing is local only, meaning pushing something to local ES cluster / local archival endpoint"
},
{
- "prediction": "Why is this needed?",
+ "prediction": "I don't think this is 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\")`",
+ "prediction": "I think we should also check for `-fips` instead of `-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.",
+ "prediction": "I think this should be `S3ControlStubber` instead of `S3ControlStubber`.",
"reference": "is this phrase completed in a next line? Or forgot to add... what?"
},
{
- "prediction": "why do you need this?",
+ "prediction": "I think this should be `model_base_` instead of `model_base_`",
"reference": "`('train', 5)` and `('train', 1)` are actually the same."
},
{
@@ -5283,35 +5283,35 @@
"reference": "Would it be too complicated to refactor `currLimit` to be an `int64`?"
},
{
- "prediction": "Do we need this method?",
+ "prediction": "I don't think we need to call `self.instance_method(:skip)` here.",
"reference": "Would it be more performant to just `include ::RSpec::Core::Pending` here? /cc @myronmarston"
},
{
- "prediction": "I think this should be `instances`?",
+ "prediction": "I think this should be `instance` instead of `instances`",
"reference": "Should be podiochaos?"
},
{
- "prediction": "I don't think we need to fix this issue.",
+ "prediction": "I don't think this is needed.",
"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)) {`",
+ "prediction": "I think this should be in the `if` block.",
"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`.",
+ "prediction": "I think this should be `const paramName = this.driver_.getExecutor().w3c ? 'handle' : 'name';`",
"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)`",
+ "prediction": "I don't think this is needed. The model should be in `cascade_mask_rcnn_r50_fpn_20e_coco.py`",
"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`.",
+ "prediction": "I think this should be `DATA_SRC_MOBILE` and `DATA_SRC_DESKTOP`",
"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}`",
+ "prediction": "I think this should be `Failed because: ${err.message}` instead of `${err.message}`",
"reference": "I guess this assignment is now redundant?"
},
{
@@ -5319,55 +5319,55 @@
"reference": "See above note re: blockNum synchronization."
},
{
- "prediction": "I think this should be `spire_backoff` instead of `spire_backoff`",
+ "prediction": "I think this should be `spire_backoff_v3` 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?",
+ "prediction": "Please remove this empty line.",
"reference": "Or maybe put into alphabetical order with the other #includes."
},
{
- "prediction": "I think this should be `defer ticker.Stop()`.",
+ "prediction": "I think this should be `defer ticker.Stop()` instead of `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`",
+ "prediction": "I think this should be `false` instead of `true`",
"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`",
+ "prediction": "I don't think this is correct. The `clang-format on` is the same as `clang-format on` but the `clang-format on` is the same as `clang-format on` but the `clang-format on` is the same as `clang-format on`.",
"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?",
+ "prediction": "I don't think we need wildcard imports.",
"reference": "Could you please leave the explicit imports?"
},
{
- "prediction": "I think this should be `if (methodConfigMap.get(methodConfigProto.getName()) == null)`",
+ "prediction": "I think this should be `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)`",
+ "prediction": "I think this should be `fmt.Fprintln(os.Stderr, usage)`.",
"reference": "Exit successfully. We served the help the user wanted."
},
{
- "prediction": "What's the difference between `InitialWorkingDir` and `InitialPackagePath`?",
+ "prediction": "I think this should be `InitialWorkingDirPath` instead of `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.",
+ "prediction": "Line is too long. [89/80]",
"reference": "Can we put this in a different helper?"
},
{
- "prediction": "(style) line over 80 characters",
+ "prediction": "(style) code indent should use tabs where possible",
"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\")`?",
+ "prediction": "Shouldn't this be `@Path(\"apiTermsOfUse\")`?",
"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);`",
+ "prediction": "I think this should be `onConfigurationChanged(Configuration newConfig)`",
"reference": "Why do we need to override this if all we're doing is passing it up?"
},
{
@@ -5375,135 +5375,135 @@
"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\"`",
+ "prediction": "I don't think this is needed.",
"reference": "EARLIEST_TESTED_RELEASE might be slightly more clear"
},
{
- "prediction": "I think this should be `\\bpylint:\\s*([^;#]+)[;#]{0,1}`",
+ "prediction": "I think this should be `#.*\\s*pylint:\\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`",
+ "prediction": "I think this should be `true` or `false`.",
"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",
+ "prediction": "I think this should be `H2O_VECTOR(uint64_t) evloop_latency_ms;`",
"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()`",
+ "prediction": "Why is this change needed?",
"reference": "getHash should be a public and without an `_` if used here."
},
{
- "prediction": "I think this should be `blk.Height == 0`",
+ "prediction": "Why is this needed?",
"reference": "Unrelated to these changes -- we will probably want some special handling for genesis block validation."
},
{
- "prediction": "I think this should be `SetDiskBlockCacheFraction`",
+ "prediction": "I think this should be `SetDiskBlockCacheFraction(float64)` and not `SetDiskBlockCacheFraction(float64)`",
"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{}{}",
+ "prediction": "Is there a reason we don't need this?",
"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`",
+ "prediction": "I don't think we need to add the `class` here, since it's not a `form-button`.",
"reference": "Minor: can we put the conditional outside of the partial?"
},
{
- "prediction": "Why is this change needed?",
+ "prediction": "I don't think this is correct. If `offline` is a `PacketList`, then it should be `PacketList`. If `offline` is a `PacketList`, then it should be `PacketList`. If `offline` is a `PacketList`, then it should be `PacketList`.",
"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`.",
+ "prediction": "nit: `A %s is a task which can be programmatically run, either on a schedule or via service code in response to events.`",
"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?",
+ "prediction": "Please remove this empty line.",
"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)`",
+ "prediction": "I think this should be `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) {`",
+ "prediction": "I think this should be `!browser.firefox` instead of `!browser.firefox`",
"reference": "this conditional is useless now so it should be removed"
},
{
- "prediction": "I think this should be `static_cast(i);`",
+ "prediction": "I think this should be `static_cast(i+1);`",
"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()`.",
+ "prediction": "I don't think we need to expose command-line option for toggling proto annotations parsing when no GAPIC config is given.",
"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?",
+ "prediction": "Why is this 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`",
+ "prediction": "I don't think we need the `Skip to first result` tag.",
"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)`",
+ "prediction": "I don't think this is correct. If the result is `VK_INCOMPLETE` then it should be `VK_SUCCESS` or `VK_INCOMPLETE`.",
"reference": "This was already in vkGetPhysicalDeviceDisplayProperties2KHR..."
},
{
- "prediction": "I think this should be `IsDockerEngineRunning` instead of `IsDockerEngineRunning`",
+ "prediction": "I think this should be `IsDockerEngineRunning() bool`",
"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?",
+ "prediction": "Why is this change 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)`",
+ "prediction": "I don't think this is needed.",
"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`.",
+ "prediction": "I think it would be better to add `act_cfg = None` to `BasicResBlock` as well.",
"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.",
+ "prediction": "I don't think this is necessary. `options` is an array of options, not an array of options. I think it would be better to just do `options['args'] ||= []` instead of `options['args'].none?`.",
"reference": "`options['binary'] = WebDriver::Chrome.path` if set?"
},
{
- "prediction": "I think this should be `#include ` instead of `#include `",
+ "prediction": "Is this needed?",
"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.",
+ "prediction": "I think this should be `const ns = name.replace(/^xlink:?/, '');`",
"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));`",
+ "prediction": "I think this should be `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;`",
+ "prediction": "I think this should be `var shadowSupport = axe.testUtils.shadowSupport;` instead of `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!`",
+ "prediction": "I think this should be `render json: Chart.new(@account).commits_by_language(params[:scope])` instead of `render json: Chart.new(@account).commits_by_language(params[:scope])`.",
"reference": "Is this access protected so that only admins can access this route?"
},
{
- "prediction": "(style) line over 80 characters",
+ "prediction": "I think this should be `min_x = 0, min_y = 0, min_distance = DBL_MAX;`",
"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`.",
+ "prediction": "I don't think we should send an error if the maxp is greater than 0.",
"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`.",
+ "prediction": "Why is this change needed?",
"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`?",
+ "prediction": "Layout/EmptyLinesAroundBlockBody: Extra empty line detected at block body beginning.",
"reference": "I don't think you need these lines."
},
{
@@ -5511,7 +5511,7 @@
"reference": "You didn't mean to export this, right?"
},
{
- "prediction": "I think this should be `Ruby` instead of `Ruby`",
+ "prediction": "I think this should be `# - REGION: # - REGION: # - REGION: # - REGION: # - REGION: # - REGION: # - REGION: # - REGION: # - REGION: # - REGION: # - REGION: # - REGION: # - REGION: # - REGION: # - REGION: # - REGION: # - REGION: # - REGION: # - REGION: # The AWS SDK for Ruby (v3). # - REGION: # - REGION: # - REGION: # - REGION: # - REGION: # - REGION: # - REGION: # - REGION: # - REGION: # - REGION: # - REGION: # - REGION: # - REGION: # - REGION: # - REGION: # - REGION: # - REGION: # - REGION: # The AWS SDK for Ruby (v3). # - REGION: # - REGION: # - REGION: # - REGION: # - REGION: # - REGION: # - REGION: # - REGION: # - REGION",
"reference": "Simple Notification **Service** (singular)"
},
{
@@ -5519,7 +5519,7 @@
"reference": "Do we still need this?"
},
{
- "prediction": "Why is this removed?",
+ "prediction": "Why was 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?"
},
{
@@ -5527,15 +5527,15 @@
"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`",
+ "prediction": "I don't think this is needed anymore.",
"reference": "I think it will revert the change @antoninbas did on purpose 05eee251c9c53400277def576f92d614ca234898"
},
{
- "prediction": "why not use wireguard.cali instead of wireguard.cali?",
+ "prediction": "I think this should be `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.",
+ "prediction": "Use the new Ruby 1.9 hash syntax.",
"reference": "Would it make sense for `opensearch_description_tag` to have default values for the title and href attributes?"
},
{
@@ -5543,63 +5543,63 @@
"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.",
+ "prediction": "I don't think we need to wait for the page to click, right?",
"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)`",
+ "prediction": "I don't think we need to check if base is 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`",
+ "prediction": "I think this should be `collect_mlvl_tensor_single` instead of `collect_mlvl_tensor_single`",
"reference": "We need to know why all the tensors are detached in `get_bboxed`."
},
{
- "prediction": "I think this should be `@classmethod`",
+ "prediction": "I think this should be `@classmethod` instead of `@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`",
+ "prediction": "I think we should add `create_no_window=False` to the docstring.",
"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.",
+ "prediction": "Layout/SpaceInsideHashLiteralBraces: Space inside { missing. Layout/SpaceInsideHashLiteralBraces: Space inside } missing.",
"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.",
+ "prediction": "I don't think we need to add the `clear-fix` to the `form-group` tag.",
"reference": "do you mean 'clearfix' class?"
},
{
- "prediction": "I think this should be `causalConsistency=true` instead of `causalConsistency=false`",
+ "prediction": "I don't think this is correct. `causalConsistency=true` is the default value for `causalConsistency`.",
"reference": "`causalConsistency` is already defined on `SessionOptions`. We do not need to duplicate it here."
},
{
- "prediction": "Why is this needed?",
+ "prediction": "I don't think this is 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)`",
+ "prediction": "I don't think we need to set the `Access-Control-Allow-Origin` header here.",
"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,",
+ "prediction": "I think this should be `v1.KindNode` instead of `v1.KindNode`",
"reference": "Should be checking for error here"
},
{
- "prediction": "Why is this change needed?",
+ "prediction": "Why do you need to cast to array?",
"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) }`",
+ "prediction": "This is a stub, not implemented.",
"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`",
+ "prediction": "I think this class should be public.",
"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?",
+ "prediction": "I don't think you need wildcard imports.",
"reference": "Avoid wildcard imports"
},
{
@@ -5607,19 +5607,19 @@
"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.",
+ "prediction": "Is there a reason we don't need to check for `loadbalanced` here?",
"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.",
+ "prediction": "Is this needed?",
"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?",
+ "prediction": "Why remove this?",
"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`",
+ "prediction": "I don't think this is needed anymore.",
"reference": "Sorry, should have been clearer, I meant adding this to the ``Histogram`` options one line above."
},
{
@@ -5627,27 +5627,27 @@
"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)`",
+ "prediction": "I think this should be `Optional[np.ndarray]` instead of `List[np.ndarray]`.",
"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?",
+ "prediction": "Why remove this?",
"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]",
+ "prediction": "Layout/EmptyLinesAroundBlockBody: Extra empty line detected at block body beginning.",
"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.",
+ "prediction": "I don't think this is the right thing to do with Bolt 3.0",
"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)`",
+ "prediction": "I don't think we need to check for `options.include?(k)` here.",
"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.",
+ "prediction": "I don't think we need to handle the delete 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."
},
{
@@ -5655,95 +5655,95 @@
"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`.",
+ "prediction": "I think this should be `http.StatusOK` instead of `http.StatusNoContent`.",
"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}}`",
+ "prediction": "I think this should be `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.",
+ "prediction": "Layout/MultilineMethodCallBraceLayout: Closing method call brace must be on the line after the last argument when opening brace is on a separate line from the first argument when opening brace is on a separate line from the first argument.",
"reference": "why this recursive relationship definition?"
},
{
- "prediction": "Is there a reason why this is optional? I don't think it's necessary.",
+ "prediction": "I don't think we need the `optional` here, since it's only used for introspection.",
"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`",
+ "prediction": "I don't think we need to add this to the `gocloud.dev/blob/bytes_read` file.",
"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();`",
+ "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)`",
+ "prediction": "Why is this change needed?",
"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)`",
+ "prediction": "I don't think we need to check if `p_jmsg[\"compress_method\"] != nullptr` here.",
"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`",
+ "prediction": "I think we should use `Platform.runLater` instead of `Platform.runLater` here.",
"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`.",
+ "prediction": "I don't think this is needed.",
"reference": "nitpick: _and collections_"
},
{
- "prediction": "(style) line over 80 characters",
+ "prediction": "I don't think we need to set req_done and res_done here.",
"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()`",
+ "prediction": "I think this should be `t0 = time.time() # Failed task start 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`",
+ "prediction": "I think this should be `@beautiful.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)`",
+ "prediction": "I don't think this is needed anymore.",
"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)) {`",
+ "prediction": "I think this should be `if (!isEmptyLine(path)) { continue; }`",
"reference": "FYI: inlined this method in the internal review."
},
{
- "prediction": "Why is this removed?",
+ "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`",
+ "prediction": "I think this should be `metric.Meter.Name + metric.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?",
+ "prediction": "I think this should be `!empty( $config->Catalog->auth_based_library_cards )`",
"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.",
+ "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.",
+ "prediction": "I don't think we need to check for `user.first_name` and `user.last_name` here.",
"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)`",
+ "prediction": "I think we can remove the `ParseTime` function entirely, since it's not used anywhere else.",
"reference": "Is this line still needed?"
},
{
- "prediction": "Why is this change needed?",
+ "prediction": "Why did you remove this?",
"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`",
+ "prediction": "I don't think this is needed anymore.",
"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."
},
{
@@ -5751,27 +5751,27 @@
"reference": "Why are we removing the option to skip machine pool generation?"
},
{
- "prediction": "I think this interface should be `IHttpStartLineHandler` instead of `IHttpStartLineHandler`",
+ "prediction": "I don't think we need this interface anymore.",
"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.",
+ "prediction": "I think this should be `if (ruleB(Zone, UseZoneController)) {`",
"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)`",
+ "prediction": "I think we should use `Account.paginate_by_sql` instead of `Account.paginate_by_sql`",
"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]",
+ "prediction": "Layout/EmptyLinesAroundClassBody: Extra empty line detected at class body end.",
"reference": "This can be simplified as discussed before."
},
{
- "prediction": "Why is this needed?",
+ "prediction": "I think we should move this to `execute.go` as well.",
"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);`",
+ "prediction": "I think this test should be `Transaction(hexa).serialize(true).should.equal(hexa);`",
"reference": "does this boolean indicate unsafe serialization?"
},
{
@@ -5779,23 +5779,23 @@
"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());`",
+ "prediction": "I don't think we need to check for `resourcesField != null` here.",
"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`",
+ "prediction": "I think this should be `False` instead of `True`.",
"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.",
+ "prediction": "I don't think we need to clear the entity manager here.",
"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`",
+ "prediction": "I think this should be `Azure.Client`.",
"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.",
+ "prediction": "I don't think this is needed.",
"reference": "This code is a bit confusing. Should HttpParameterType set to the original one or it is always BODY?"
},
{
@@ -5803,11 +5803,11 @@
"reference": "Why did this change?"
},
{
- "prediction": "I think this should be `newProtoForTableStatus(result.Table.TableStatus)` instead of `newProtoForTableStatus(result.Table.TableStatus)`",
+ "prediction": "I think we should move this to the `DescribeTable` function.",
"reference": "nit: `status` collides with imported package named `status`"
},
{
- "prediction": "I think we should use `IsWritingCatchpointFile` instead of `IsWritingCatchpointFile`",
+ "prediction": "I think this should be `return l.accts.IsWritingCatchpointFile()`.",
"reference": "\"memory pressure could be decreased\" --> \"to avoid memory pressure\""
},
{
@@ -5815,19 +5815,19 @@
"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 }; });`",
+ "prediction": "I think this should be `this.headerStateManager.mergeStateWith(collapsibleColumns);`",
"reference": "I'm thinking about covering this change with the test. Can you do that?"
},
{
- "prediction": "I think this should be `*net.UDPConn`",
+ "prediction": "Why is this change needed?",
"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`",
+ "prediction": "I don't think we need to pass `docker.AuthConfiguration` directly to `getAuthdata`.",
"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; }`",
+ "prediction": "I think this should be `ITaskItem[]` instead of `ITaskItem[]`.",
"reference": "Is there a scenario were we want to get an arbitrary set of blobs that don't share a common root?"
},
{
@@ -5835,51 +5835,51 @@
"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)`",
+ "prediction": "I think this should be `return repo.OpenRepo(repoDir, newConfig);`",
"reference": "This was the only caller of CreateRepo, so I inlined it."
},
{
- "prediction": "I think this should be `authPath`",
+ "prediction": "I think this should be `authPathPath` instead of `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):`",
+ "prediction": "I don't think we need to check for `COMError` here.",
"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`",
+ "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]",
+ "prediction": "Line is too long. [89/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()`?",
+ "prediction": "I think we should use `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);`",
+ "prediction": "I think we should log the full table name, not the full table name, not the full table name.",
"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`",
+ "prediction": "nit: remove empty line",
"reference": "This should be in the last group."
},
{
- "prediction": "Shouldn't this be `_statsd?.Send()`?",
+ "prediction": "I think this should be `_statsd?.Send();` instead of `_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`",
+ "prediction": "I don't think this is needed.",
"reference": "I've gone with this group name, however I'm open to suggestions on alternatives!"
},
{
- "prediction": "Why is this needed?",
+ "prediction": "I think this should be `QUORUM` instead of `QUORUM`",
"reference": "should this be GOQUORUM"
},
{
- "prediction": "I think this should be `checkCoinbase` and not `checkCoinbase`",
+ "prediction": "why is this needed?",
"reference": "I think checkCoinbase is not skipping checking coinbase. Instead, true-> checking num(coinbase tx) = 1, false -> checking num(coinbase tx) = 0."
},
{
@@ -5887,11 +5887,11 @@
"reference": "same here, move it out"
},
{
- "prediction": "I think this should be `#define KOKKOS_TOOLS_INDEPENDENT_BUILD` instead of `#define KOKKOS_TOOLS_INDEPENDENT_BUILD`",
+ "prediction": "I think this should be `#if defined(KOKKOS_ENABLE_LIBDL) || defined(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.",
+ "prediction": "Layout/MultilineMethodCallIndentation: Closing method call brace must be on the line after the last argument when opening brace is on a separate line from the first argument when opening brace is on a separate line from the first argument.",
"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?`"
},
{
@@ -5899,111 +5899,111 @@
"reference": "why not context from stdlib?"
},
{
- "prediction": "I think we should add the `FlavorIEEECRC32OverProto3Binary` to the checksum.",
+ "prediction": "why is this change needed?",
"reference": "Just saw this and wasn't able to hold myself from renaming :-)."
},
{
- "prediction": "Why is this change needed?",
+ "prediction": "I think we should keep the `acquirer[0].mocks.uninstall.mock.calls.length` here.",
"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`",
+ "prediction": "I think this should be `RSpec.warn_with <<-WARNING.gsub(/^ +\\|/, '')` instead of `RSpec.warn_with <<-WARNING.gsub(/^ +\\|/, '')`",
"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)`",
+ "prediction": "I think this should be `time.Duration(time.Second)`",
"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)`",
+ "prediction": "I think this should be `response.status_code = 200` instead of `response.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`.",
+ "prediction": "I think this should be `final`",
"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)`",
+ "prediction": "I think this should be `[][][]byte, [][]byte, error`",
"reference": "need to filter the entities in buffer as well"
},
{
- "prediction": "I think this should be `de.danoeh.antennapod.antennapod.core.glide.FastBlurTransformation`",
+ "prediction": "I think this should be `de.danoeh.antennapod.core.glide.FastBlurTransformation`",
"reference": "Please add spaces before and after the equals sign"
},
{
- "prediction": "Why remove this line?",
+ "prediction": "Why is this removed?",
"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]",
+ "prediction": "I think this is a bit confusing, but I don't think it's necessary to test for an exception, but it doesn't test for an exception, but it doesn't test for an exception.",
"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`",
+ "prediction": "I think this should be `create_no_window=False`",
"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`?",
+ "prediction": "I think this should be `&& true` instead of `|| true`",
"reference": "Should this be `OS_VOLUME_SUPPORT` to match the symbol key names?"
},
{
- "prediction": "Why is this needed?",
+ "prediction": "I think this should be `static`.",
"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.",
+ "prediction": "I don't think this is necessary. `getRootNode` will return `null` if `node.nodeType === 'element'`",
"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`?",
+ "prediction": "I think this should be `string.Format(CultureInfo.InvariantCulture, \"milliseconds must be between {0} and {1}\", MinMilliseconds, MaxMilliseconds)`.",
"reference": "nit: just to be similar to others, can you change to interpolation?"
},
{
- "prediction": "I think this should be `FullCertChain` instead of `FullCertChain`",
+ "prediction": "I think this should be `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`",
+ "prediction": "I think this should be `SERVER_TIME_F = \"%Y-%m-%dT%H:%M:%S\"`.",
"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 }`",
+ "prediction": "I don't think we should return an error here.",
"reference": "expected statement, found 'else' (and 1 more errors)"
},
{
- "prediction": "I think this should be `MakeRandomID(public)` instead of `MakeRandomID`",
+ "prediction": "I think this should be `return id.id[0]`",
"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`",
+ "prediction": "Is there a reason we don't need these constants?",
"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.",
+ "prediction": "I think this should be `using System.Security.Cryptography;` instead of `using System.Security.Cryptography;`",
"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",
+ "prediction": "(style) code indent should use tabs where possible",
"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`",
+ "prediction": "I think this should be `go.opentelemetry.io/otel/sdk/instrumentation.go`",
"reference": "Should the API have a dependency on the SDK?"
},
{
- "prediction": "I think this should be `it.skip` instead of `it.skip`",
+ "prediction": "I don't think we need to skip this test.",
"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.",
+ "prediction": "I don't think we need to do this in the loop, but I think it's better to do `f := v.cs.f.Fresh() for f := range ftv.contains(f) { subst[tv] = v.cs.f.Fresh() }`",
"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`",
+ "prediction": "I don't think we should be able to know the language at all. I don't think we should be able to know the language at all. I don't think we should be able to know the language at all.",
"reference": "It might make sense to log this."
},
{
- "prediction": "Do we need to do this in the `deep_dup` method?",
+ "prediction": "Layout/EmptyLinesAroundBlockBody: Extra empty line detected at block body beginning.",
"reference": "Line is too long. [84/80]"
},
{
@@ -6011,55 +6011,55 @@
"reference": "nice touch since Google likes to change things every now and then."
},
{
- "prediction": "Do we need this?",
+ "prediction": "Metrics/LineLength: Line is too long. [122/120]",
"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`",
+ "prediction": "This should be `BACKEND_SERVICE`",
"reference": "nit: Would you mind alpha-sorting this?"
},
{
- "prediction": "Shouldn't this be `manifest.content() == ManifestContent.DATA`?",
+ "prediction": "I think this should be `Preconditions.checkArgument(manifest.content() == ManifestContent.DATA, \"Cannot read a delete manifest with a ManifestReader: %s\" , manifest);`",
"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]",
+ "prediction": "I don't think this is necessary. `contact_us_url` can be `nil` if `contact_us_url` is `nil`.",
"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`.",
+ "prediction": "I don't think we should be able to add the element to the list. I don't think we should add the element to the list.",
"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();`",
+ "prediction": "I don't think we need to add the `GrpcStreamingDetailView` to the `DynamicLangXApiView`",
"reference": "Is PHP the first dynamic MVVM language with grpc streaming support?"
},
{
- "prediction": "Shouldn't this be `if (tmpStream && !tmpStream->bad()) {`?",
+ "prediction": "Why is this needed?",
"reference": "the `if` isn't necessary here; it's safe to call `delete` on `nullptr`"
},
{
- "prediction": "Shouldn't this be `size_t* removed`?",
+ "prediction": "This should be `size_t* removed` instead of `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.",
+ "prediction": "Why is this change needed?",
"reference": "can this one also be moved to the top of the file?"
},
{
- "prediction": "I think this should be `GroupMemberPod` or `GroupMemberGroup`.",
+ "prediction": "I think this should be `ListGroups` instead of `ListGroups`.",
"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?",
+ "prediction": "I think this should be `Datadog.SpanType` instead of `Datadog.SpanType`.",
"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']`",
+ "prediction": "I think this should be `GOOGLE_APPLICATION_CREDENTIALS_FILE = 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)`",
+ "prediction": "Why is this change needed?",
"reference": "bad line wrap"
},
{
@@ -6067,51 +6067,51 @@
"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\"])`",
+ "prediction": "I don't think this is needed.",
"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.",
+ "prediction": "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?",
+ "prediction": "I think this should be `continue` instead of `continue`",
"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()`",
+ "prediction": "I don't think we need to import `os/exec` here.",
"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\")`",
+ "prediction": "Nit: I think this should be `delete(oldAWSMachineSpec, \"instanceID\")`",
"reference": "instanceID should stay the same for a AWSMachine?"
},
{
- "prediction": "I think this should be `NO_DOWNLOAD` instead of `NO_DOWNLOAD`",
+ "prediction": "I think this should be `DEFAULT_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`",
+ "prediction": "I think this should be `HOST_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.",
+ "prediction": "I don't think this is a good idea, but I think it would be better to just call `dataverses().index(r, true);` instead of `dataverses().index(r, true);`",
"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)`",
+ "prediction": "I think this should be `blockProcessor.skipZeroBlockRewards`",
"reference": "This should be moved into the PrivacyBlockProcessor instead of adding the constructor here."
},
{
- "prediction": "I think this should be `insightfilestore` and `insightstore`",
+ "prediction": "I think this should be `insightfilestore` instead of `insightfilestore`",
"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`.",
+ "prediction": "I think this should be `@round_count == 3`",
"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?",
+ "prediction": "I think this should be `-1` instead of `-1`.",
"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."
},
{
@@ -6119,27 +6119,27 @@
"reference": "why remove `Symbol`?"
},
{
- "prediction": "This should be `\u00a3\u00a2\u00a5\u00a7\u20ac`",
+ "prediction": "I don't think this is correct. The `\u00a3\u00a2\u00a5\u00a7\u20ac\u20ac\u20ac\u20ac\u20ac\u20ac\u20ac\u20ac\u20ac\u20ac\u20ac\u20ac\u20ac\u20ac\u20ac\u20ac\u20ac\u20ac\u20ac\u20ac\u20ac\u20ac\u20ac\u20ac\u20ac\u20ac\u20ac\u20ac\u20ac\u20ac\u20ac\u20ac\u20ac\u20ac\u20ac\u20ac\u20ac\u20ac\u20ac\u20ac\u20ac\u20ac\u20ac\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`",
+ "prediction": "I think this should be `Pierre LALET, Guillaume VALADON`",
"reference": "You have forgotten a coma `,`"
},
{
- "prediction": "`osp.join(out_dir, os.path.basename(img_meta['filename']))`",
+ "prediction": "I don't think this is correct. `out_dir` should be `os.path.join(out_dir, 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') {`",
+ "prediction": "I don't think this is correct. I think it would be better to use `c1 - c2` instead of `c1 - c2`",
"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?",
+ "prediction": "I think this should be `true` instead of `false`",
"reference": "nit: can this be a primitive value?"
},
{
- "prediction": "I think this should be `httpserver.RedirectToDir(r, r.Context().Value(httpserver.OriginalURLCtxKey).(url.URL))`",
+ "prediction": "I don't think this is correct. `u.Path` is a `string` so it should be a `string` instead of a `string`.",
"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`."
},
{
@@ -6151,7 +6151,7 @@
"reference": " _nitpick_ Isn't it now actually NotLogFakeHttpExceptions**Error**Listener ?"
},
{
- "prediction": "I think this should be `resourceDefinition.ResourceType = resourceType;`",
+ "prediction": "I think this should be `JsonSchema.CreateStringEnum(resourceType, true);`",
"reference": "Why not just look for the \"type\" property instead of creating a ResourceType property?"
},
{
@@ -6163,7 +6163,7 @@
"reference": "this doesn't need to know about NativeClient"
},
{
- "prediction": "Why is this change needed?",
+ "prediction": "I think this should be `rule_name` instead of `resource_name`",
"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."
},
{
@@ -6171,15 +6171,15 @@
"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`",
+ "prediction": "I think this should be `recording_msid` instead of `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`",
+ "prediction": "(style) line over 80 characters",
"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`",
+ "prediction": "I don't think this is needed.",
"reference": "This line should be separated from the package declaration by one line as it is not the package description."
},
{
@@ -6187,43 +6187,43 @@
"reference": "shadow: declaration of \"err\" shadows declaration at line 410 (from `govet`)"
},
{
- "prediction": "Why is this needed?",
+ "prediction": "I think this should be `time.Duration` instead of `time.Duration`",
"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()`.",
+ "prediction": "I don't think this is correct. `self.mask_head.num_classes` is the same as `self.mask_head.num_classes`",
"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`",
+ "prediction": "I don't think we need to check if the bucket is empty. I think we should check if the bucket is empty.",
"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.",
+ "prediction": "This should be `std::chrono::duration_cast(max_blocking_time_point - std::chrono::steady_clock::now());`",
"reference": "Line too long"
},
{
- "prediction": "I think we should use `CONST_ME_FINE` here.",
+ "prediction": "I think this should be `CONST_ME_DODGE` and `CONST_ME_HOURGLASS`",
"reference": "This isn't aligned though."
},
{
- "prediction": "`mean PAAHead does not support test-time augmentation`",
+ "prediction": "I don't think this is a good idea, but I think it would be better to use `assert with_nms == True` instead of `assert with_nms == True`",
"reference": "it is mean -> it means PAAHead does not support test-time augmentation."
},
{
- "prediction": "I think this should be `plugins` instead of `plugins`",
+ "prediction": "I think this should be `from invenio.legacy.bibdocfile.registry import plugins`",
"reference": "@lnielsen-cern thanks. I missed it :("
},
{
- "prediction": "I think we should use `analytics.pagePath` instead of `analytics.pagePath`",
+ "prediction": "why is this change needed?",
"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.",
+ "prediction": "nit: remove empty line",
"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`.",
+ "prediction": "I think it would be better to add a `TODO` to the `enableAdminAPI` field to the `PrometheusSpec` as well.",
"reference": "This should be a bool"
},
{
@@ -6231,11 +6231,11 @@
"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)`",
+ "prediction": "Why is this change needed?",
"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?",
+ "prediction": "Why is this needed?",
"reference": "are this docs neccesary ?"
},
{
@@ -6243,15 +6243,15 @@
"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();`",
+ "prediction": "I think this should be `softmax_param.set_type(\"Softmax\");`",
"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, \"._\")`.",
+ "prediction": "I don't think this is a good idea, but I think it would be better to do `strings.HasPrefix(base, \"._\")` instead of `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`",
+ "prediction": "I don't think we need to call `apply_prep.get_validated_task` here.",
"reference": "`apply_prep.run_task` also seems like it can just use `@context.run_task`"
},
{
@@ -6259,27 +6259,27 @@
"reference": "do you have any idea on how to fix it?"
},
{
- "prediction": "Why do we need this test?",
+ "prediction": "I think this test should be `assert dst.closed == False`",
"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)`",
+ "prediction": "I think this should be a `defer eni.guard.RUnlock()` instead of a `defer eni.guard.RUnlock()`",
"reference": "When does 'expiresAt' change? Do you need this?"
},
{
- "prediction": "I think this should be `const outfit = outfits[sex];`",
+ "prediction": "I don't think this is needed.",
"reference": "There are enums for genders + `PLAYERSEX_LAST`."
},
{
- "prediction": "Why is this change needed?",
+ "prediction": "why not use `tt.dataPrice` instead of `tt.gasUsed`?",
"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)`",
+ "prediction": "I think this should be `len(self.best)` instead of `len(self.best)`.",
"reference": "The case of a negative size (= keep all elements) was not handled in this function."
},
{
- "prediction": "Why is this changed?",
+ "prediction": "Why is this removed?",
"reference": "I think we should keep this dynamic config knob for operations purpose."
},
{
@@ -6287,19 +6287,19 @@
"reference": "Was this intentional? Perhaps this could be replaced with another way to check the offsets?"
},
{
- "prediction": "I think this should be `ArtifactBuckets`?",
+ "prediction": "I think this should be `artifact_buckets.go` or `artifact_buckets.go`",
"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)`",
+ "prediction": "I think we can remove the `params` argument from the `send_and_receive` call.",
"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`",
+ "prediction": "I don't think this is needed.",
"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`.",
+ "prediction": "I think this should be `dots-horiz` instead of `dots-horiz`.",
"reference": "We should deprecate this at some point."
},
{
@@ -6307,23 +6307,23 @@
"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) }`",
+ "prediction": "I think this should be `var i int64` instead of `var serialNumber int64`",
"reference": "[Super NIT]: i := serialNumber if i == 0 { i = mathrand.Int63n(...) }"
},
{
- "prediction": "I think this option should be \"tool\" instead of \"format\".",
+ "prediction": "I think this should be `ToolFormat` instead of `ToolFormat`.",
"reference": "-f short form here collided with --force. :)"
},
{
- "prediction": "Why did you remove this?",
+ "prediction": "Why was this removed?",
"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`.",
+ "prediction": "I don't think this is needed.",
"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 }`",
+ "prediction": "I think this should be `reflect.TypeOf(val)` instead of `reflect.TypeOf(reflect.TypeOf(val))`.",
"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."
},
{
@@ -6331,27 +6331,27 @@
"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`.",
+ "prediction": "I think this should be `[a-zA-Z0-9_]+` instead of `[a-zA-Z0-9_]+`",
"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;`",
+ "prediction": "I think this should be `#include \"LookUpEdgeIndexProcessor.h\"`.",
"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`.",
+ "prediction": "I think we should check if the scheduler is not ready. I think we should check if the scheduler is not ready. I think we should check if the scheduler is not ready.",
"reference": "I think `Duration` is useful for this action and we shouldn't ignore it."
},
{
- "prediction": "Why do we need this?",
+ "prediction": "Why is this change necessary?",
"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()`.",
+ "prediction": "I think this should be `#ifdef 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());`?",
+ "prediction": "I think this should be `false` instead of `true`",
"reference": "Variable name should start from lowercase latter"
},
{
@@ -6359,27 +6359,27 @@
"reference": "Why has this timeout doubled?"
},
{
- "prediction": "Why is this change needed?",
+ "prediction": "Why is this 0?",
"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\" ]`",
+ "prediction": "I don't think this is necessary. `tab` is a `WebEngineElement` object, so I think it should be `Qt.ControlModifier` instead of `Qt.ControlModifier`.",
"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`.",
+ "prediction": "Why is this change needed?",
"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')`",
+ "prediction": "I think this should be `service.collection_path.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)`",
+ "prediction": "I think this should be `if self.respond_to?(:_clear_types)` instead of `if self.respond_to?(:_clear_types)`",
"reference": "Why is the respond_to check here?"
},
{
- "prediction": "Why did you remove this?",
+ "prediction": "Why did you change this to `if ($chars[$i] === '\\\\' || preg_match('/\\w/', $char)) {`?",
"reference": "@orklah are you sure it's the same as `$chars[$i]`? It looks like `$i` is changed above, after `$char` assignment."
},
{
@@ -6387,51 +6387,51 @@
"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;`",
+ "prediction": "I don't think we need to check if the adapter is NULL.",
"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`",
+ "prediction": "Why is this removed?",
"reference": "Please take a care about prefixing."
},
{
- "prediction": "I think this should be `getOrCreateSenderAccount(Address address)`",
+ "prediction": "I think this method should be renamed to `getOrCreateSenderAccount`",
"reference": "this line doesn't match what the rest says"
},
{
- "prediction": "I think this should be `!linux` and `!windows`",
+ "prediction": "I think this should be `!linux linux,android`",
"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 }`",
+ "prediction": "I think this should be `if v == \"\" {`",
"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`",
+ "prediction": "I think we should 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);`",
+ "prediction": "I think this should be `failed` instead of `failed`.",
"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.",
+ "prediction": "Why is this removed?",
"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?`?",
+ "prediction": "I think this should be `!@proposal.currently_awaiting_approvers.include? @user`",
"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`.",
+ "prediction": "I think this should be `AWS_CREDENTIAL_RESPONSE_ACCESS_KEY` instead of `AWS_CREDENTIAL_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')`.",
+ "prediction": "I think this should be `today.setHours(0, 0, 0, 0);`",
"reference": "I think this if should be removed (see issue)"
},
{
- "prediction": "I don't think we need to import `felix/ipsets` here.",
+ "prediction": "I think this should be `github.com/projectcalico/felix/ipsets` instead of `github.com/projectcalico/felix/ipsets`",
"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."
},
{
@@ -6439,15 +6439,15 @@
"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`.",
+ "prediction": "I don't think we need to add this to the package.",
"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?`?",
+ "prediction": "Why is this change needed?",
"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))`",
+ "prediction": "I think we should use `values.NewInt(int64(col))` instead of `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."
},
{
@@ -6455,55 +6455,55 @@
"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?",
+ "prediction": "Please remove this empty line.",
"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`.",
+ "prediction": "I think this class should be renamed to `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\"]`",
+ "prediction": "I think this should be `null: true` instead of `false`",
"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)`?",
+ "prediction": "Why is this change needed?",
"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`",
+ "prediction": "I don't think we need to do this in the `Cart::Version` class, since it's only used in the `Cart::Version` class.",
"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);`",
+ "prediction": "I think this should be `Path.Join(workingDir, appExe);` instead of `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\");`?",
+ "prediction": "I don't think we should log the error here.",
"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?",
+ "prediction": "I don't think we need to import `brain_dataclasses` here.",
"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();`",
+ "prediction": "I think this should be `_corruptedRequest = false;`",
"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?",
+ "prediction": "I think this should be `resource_group` instead of `resource_group`",
"reference": "Please make the change in the CAI inventory, rather than changing the scanner."
},
{
- "prediction": "I think this should be `AbstractNode` instead of `AbstractNode`.",
+ "prediction": "Why is this abstract?",
"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`.",
+ "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())`",
+ "prediction": "I think this should be `nano::transport::is_ipv4_or_v4_mapped_address(new_connection->remote.address()).to_v6()`",
"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)"
},
{
@@ -6511,23 +6511,23 @@
"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?",
+ "prediction": "Why is this public?",
"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())`",
+ "prediction": "I think it would be better to check for `java.lang.Enum.class` instead of `java.lang.Enum.class`",
"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)`.",
+ "prediction": "I think this should be `@classmethod` instead of `@classmethod`.",
"reference": "Please use `{}` instead of `dict()`"
},
{
- "prediction": "I think this should be `useEffect` instead of `useEffect`.",
+ "prediction": "I don't think we need to add this to the `react-intersection-observer` package.",
"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`",
+ "prediction": "I think this should be `BlockHeight` instead of `GasConsumed`",
"reference": "new field needs to be asserted"
},
{
@@ -6539,19 +6539,19 @@
"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`",
+ "prediction": "I think this should be a `map[string]string` instead of a `map[string]string`",
"reference": "Why is this necessary? Could you provide some context?"
},
{
- "prediction": "I think this should be `\\n` instead of ``",
+ "prediction": "I think this should be `\\n`",
"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`",
+ "prediction": "I think this test should be in a separate PR. I think it should be in a separate PR.",
"reference": "Please use an atomic bool."
},
{
- "prediction": "I think this should be `SpanTypes.Web` instead of `SpanTypes.Web`",
+ "prediction": "I don't think this is needed.",
"reference": "Consider naming this class `SpanExtensions` to follow C# conventions."
},
{
@@ -6559,35 +6559,35 @@
"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`.",
+ "prediction": "I don't think we need to add `/ec2/` here.",
"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);`",
+ "prediction": "I think this should be `info` or `finest`.",
"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)`",
+ "prediction": "Layout/SpaceInsideHashLiteralBraces: Space inside { missing. Layout/SpaceInsideHashLiteralBraces: Space inside } missing.",
"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`?",
+ "prediction": "Please use `item_view.is_suppressed = false` instead of `item_view.is_suppressed = false`",
"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`",
+ "prediction": "I don't think we should return an error if the service name doesn't match the service name.",
"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.",
+ "prediction": "I think this should be `self.options[\"protocol\"] = kwargs.get(\"protocol\") or \"https\"`",
"reference": "if using dict.get, this could just be `kwargs.get('protocol', 'https')`"
},
{
- "prediction": "I think this should be `getStreamingApiMethodExampleName(Interface interfaze, Method method)`",
+ "prediction": "I don't think this is needed.",
"reference": "Add docs to the new methods here"
},
{
- "prediction": "Why is this needed?",
+ "prediction": "I think this should be `_enabled = Enabled;`",
"reference": "what does it mean enabled?"
},
{
@@ -6595,43 +6595,43 @@
"reference": "Getting an error when calling with db.execSQL (in sqlcipher 4.3.0, pragma returns ok)."
},
{
- "prediction": "Why is this change needed?",
+ "prediction": "Why not use `ctxUser.DisplayName() + \" \" + ctxUser.DisplayName() + \" \" ?",
"reference": "Maybe we could remove `\" \" + ctx.Tr(\"dashboard\")` completely?"
},
{
- "prediction": "I don't think this is needed anymore.",
+ "prediction": "I think we should remove the `# Purpose` line.",
"reference": "Simple Storage **Service**"
},
{
- "prediction": "I think this should be `h.handler.Call([]reflect.Value{reflect.ValueOf(ctx, reqBody)})`",
+ "prediction": "I think this should be `reflect.Value{reflect.ValueOf(reqBody)}.(error)`",
"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);`",
+ "prediction": "I think this should be `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.`?",
+ "prediction": "`startDate` and `endDate` should be `startDate` and `endDate`",
"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(); }`",
+ "prediction": "I think this should be `if (_sharedStringMap != null && _sharedStringMap != null && _sharedStringMap != null && _sharedStringMap != null && _sharedStringMap != null && _sharedStringMap != null && _sharedStringMap != null && _sharedStringMap != null && _sharedStringMap != null && _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?",
+ "prediction": "Why is this 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());`",
+ "prediction": "I think this should be `System.out.println(\"getDataverseException: \" + this.datasetFieldType.getDisplayName());`",
"reference": "Should we use logger instead?"
},
{
- "prediction": "I don't think we need this test anymore.",
+ "prediction": "I think this test should be `expect(analytics?).to be true` instead of `expect(analytics?).to be true`",
"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`",
+ "prediction": "Why is this change needed?",
"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."
},
{
@@ -6639,19 +6639,19 @@
"reference": "If there any other tests, I would make it optional there also."
},
{
- "prediction": "Layout/EmptyLinesAroundRouteBody: Extra empty line detected at body beginning.",
+ "prediction": "Metrics/LineLength: Line is too long. [89/80]",
"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));`",
+ "prediction": "I don't think we need to do this, but I don't think we need to do this.",
"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`",
+ "prediction": "I don't think we need to add these metrics to the `RuntimeMetrics` class, since they are only used in the `RuntimeMetrics` class. I think we should add them to the `RuntimeMetrics` class as well.",
"reference": "nit: Can we prefix these variables with `AspNetCore`?"
},
{
- "prediction": "I think this should be `yaml::conversion -m` instead of `yaml::conversion`",
+ "prediction": "I think this test should be `expect (yaml::conversion -m #{plan_path}).to equal(output_plan).to_stdout` instead of `expect (yaml::conversion -m #{plan_path}).to equal(output_plan).to_stdout`",
"reference": "Can this also include a quick test for transpiling by name?"
},
{
@@ -6659,87 +6659,87 @@
"reference": "This TODO can be removed"
},
{
- "prediction": "Why is this change needed?",
+ "prediction": "I think this should be `string tabAccessibilityIdentifier` instead of `string tabAccessibilityIdentifier`",
"reference": "can we make tabAccessibilityIdentifier = null as default?"
},
{
- "prediction": "Why do we need this?",
+ "prediction": "Why do we need the context here?",
"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)`",
+ "prediction": "I think this should be `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\")`",
+ "prediction": "I don't think we should return an error here.",
"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?",
+ "prediction": "I think we should remove the `is_test` check in the `plan.visibility == 'is_test'` block.",
"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\"`",
+ "prediction": "I think we should keep the `PublicLoadBalancer: true` flag in the `TestEnvAdd_Execute` function.",
"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.",
+ "prediction": "I don't think this is needed.",
"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')`",
+ "prediction": "I don't think we need to check for `text` here.",
"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)`",
+ "prediction": "I don't think we need to reverse the checksum here.",
"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?",
+ "prediction": "I think this should be `DeleteIndexFiles(repo, obsoleteIndexes, restic.IndexFile)` instead of `DeleteFiles(repo, obsoleteIndexes, restic.IndexFile)`",
"reference": "I think we also need something similar for `rebuild-index`?"
},
{
- "prediction": "Why is this needed?",
+ "prediction": "I think this should be `http.ProxyPort` instead of `https.ProxyPort`",
"reference": "I think convention is snake case for import naming?"
},
{
- "prediction": "I think we should use `tableInfo.getPrimaryKey().getIndexColumns()` instead of `tableInfo.getPrimaryKey().getIndexColumns()`",
+ "prediction": "I think this should be `if (!tableInfo.isCommonHandle()) {`",
"reference": "i think haspk is false?"
},
{
- "prediction": "I think this should be `SurefireReportDir` instead of `SurefireReportDir`.",
+ "prediction": "This should be `plz-out/surefire-reports` instead of `plz-out/surefire-reports`.",
"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`",
+ "prediction": "Why do we need to pass `clientConfig` here?",
"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')`",
+ "prediction": "I think this should be `repr(sorted(obj.to_dict().items()))`",
"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)`",
+ "prediction": "I think this should be `
<%= trail.name %> remaining %>`",
"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",
+ "prediction": "Why is this change needed?",
"reference": "This `context` is used correctly, there is nothing left TO DO."
},
{
- "prediction": "I think we should use `result.toArray` instead of `result.toArray`",
+ "prediction": "Why did you remove the `result` argument?",
"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:\")",
+ "prediction": "I think this should be `!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?",
+ "prediction": "I think this should be `http2/5.1/8` instead of `http2/5.1/8`",
"reference": "just remove the entire variable."
},
{
- "prediction": "Do we need to do this?",
+ "prediction": "Line is too long. [89/80]",
"reference": "Maybe we should put that in the option description?"
},
{
@@ -6751,47 +6751,47 @@
"reference": "Shall we do the same for ORC and Avro?"
},
{
- "prediction": "This file is not used anymore.",
+ "prediction": "This file should be deleted.",
"reference": "Should be a space between line"
},
{
- "prediction": "I think this method should be `public static byte[] GeneratePrivateKey() { return SecureRandom.GetBytes(lenght);}`",
+ "prediction": "I think this should be `public static byte[] GeneratePrivateKey(int 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.",
+ "prediction": "I don't think we need to add the card to the tile.",
"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`.",
+ "prediction": "Why is this removed?",
"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.",
+ "prediction": "I don't think we need to add `gt_bboxes_group_of` here.",
"reference": "I recommend move all openimage related logic to a new function"
},
{
- "prediction": "I think this should be `external_cgroup`?",
+ "prediction": "I think it would be better to have a `cgroup.ExternalCgroup` field in the `cgroup.go` struct. It would be better to have a `cgroup.ExternalCgroup` field in the `cgroup.go` struct and have a `cgroup.go` field in the `cgroup.go` struct.",
"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`",
+ "prediction": "I don't think we need to add the `@section_teacher.section.name` to the `section_teacher.teacher`",
"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`",
+ "prediction": "I think this should be `!empty($this->fieldsToHighlight))`",
"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.*`",
+ "prediction": "I don't think this is needed.",
"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`",
+ "prediction": "I think this should be `cliquet.storage.memory`",
"reference": "So, why everything is in memory but the permission backend?"
},
{
- "prediction": "Shouldn't this be `allowedExtensions != null ? allowedExtensions : null`?",
+ "prediction": "`allowedExtensions != null && allowedExtensions != null ? allowedExtensions : null;`",
"reference": "Are you sure it should be null and not an empty List?"
},
{
@@ -6799,23 +6799,23 @@
"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`",
+ "prediction": "I think we should be able to use `not-localhost` here.",
"reference": "This test was verifying the wrong thing."
},
{
- "prediction": "I think this should be `brave` instead of `brave`",
+ "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`",
+ "prediction": "I think this should be done in `InitAppOpts`",
"reference": "nit: we can use `defer opts.spinner.Stop(\"Error!\")` after l.180 to make it slightly neater"
},
{
- "prediction": "(style) line over 80 characters",
+ "prediction": "I think it would be better to use `is_allocated_mem` instead of `is_allocated_mem`.",
"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)`",
+ "prediction": "I don't think this is a good idea, but I think it would be better to just log the message if it's sync or not.",
"reference": "In fact it would be useful for debug, i prefer combine them into one debug level log."
},
{
@@ -6823,87 +6823,87 @@
"reference": "We would need to localize them eventually too, just FYI"
},
{
- "prediction": "Why is this change needed?",
+ "prediction": "I think this should be `proto->set_name(type());`",
"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.",
+ "prediction": "I think this should be `mock_factory_mocks.go`",
"reference": "I think we can avoid using this pattern for this use case."
},
{
- "prediction": "I think this should be `#ifndef __ANDROID__`",
+ "prediction": "I think this should be `#ifdef __ANDROID__` instead of `#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`",
+ "prediction": "I don't think this is a good idea. I think it would be better if the session limit is exceeded and the session limit is exceeded.",
"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)`",
+ "prediction": "I don't think this is needed.",
"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`",
+ "prediction": "I don't think we need the `@alert_partial` argument anymore.",
"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`?",
+ "prediction": "Why not use `$em` here?",
"reference": "i hope there is some extension in phpstan for this"
},
{
- "prediction": "I don't think we need to check if sep is 0.",
+ "prediction": "I think this should be `if (sep == 0) return 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)`?",
+ "prediction": "I think this should be `!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)`",
+ "prediction": "I don't think we need to pass `tagKey` and `tagValue` to `getRoles`",
"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?",
+ "prediction": "I think this should be `RSpec.configuration.deprecation_io.puts(message)` instead of `RSpec.configuration.deprecation_io.puts(message)`",
"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')`",
+ "prediction": "I think this should be `process.argv.push(blitzPath, 'start');` instead of `process.argv.push(blitzPath, 'start');`",
"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')`",
+ "prediction": "I think this should be `if not dataset._virtual_vdims:`",
"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())`.",
+ "prediction": "Is there a reason why we don't need to create a snapshot for a Pure FA volume?",
"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.",
+ "prediction": "I don't think this is needed.",
"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);`",
+ "prediction": "I think this should be `log.trace(message, arg1, null);` instead of `log.trace(message, arg1, 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)`",
+ "prediction": "I think this should be `bool` instead of `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);`",
+ "prediction": "I think this should be `updateVersion` instead of `updateVersion`",
"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`",
+ "prediction": "I think this should be `const VERSION = require('../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());`",
+ "prediction": "Why is this change needed?",
"reference": "Fix for URISyntaxException."
},
{
- "prediction": "I think this should be `logrus.WithField(\"route\", routeUpd).Debug(\"Ignoring route with no destination\")`.",
+ "prediction": "I think this should be `if routeUpd.Dst == nil {`",
"reference": "Would be good to UT this case"
},
{
@@ -6911,59 +6911,59 @@
"reference": "Why we need to add this?"
},
{
- "prediction": "Align the elements of a hash literal if they span more than one line.",
+ "prediction": "Metrics/LineLength: 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 `current_api_calls` instead of `current_api_calls`",
+ "prediction": "why is this change needed?",
"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.",
+ "prediction": "I think this should be `pubsubServiceAccount` instead of `pubsubServiceAccount`",
"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) {`",
+ "prediction": "I think this should be `_issueLogJsonWriter.WriteConfigurationNotifications(_run.ConfigurationNotifications);`",
"reference": "_jaw drops_ I would have sworn I wrote those lines. Good catch."
},
{
- "prediction": "I think this should be `forEach(fn => fn.clear());`",
+ "prediction": "I think this should be `axe._memoizedFns.forEach(fn => fn.clear());`",
"reference": "This needs to be tested."
},
{
- "prediction": "Shouldn't this be `building_address = BuildingAddress.new`?",
+ "prediction": "I think we should test that the child is not an invalid child.",
"reference": "I believe you're missing the comparison after 'be'"
},
{
- "prediction": "I think this should be `ErrAlreadyDeleted`.",
+ "prediction": "I think we should check if the error is not ErrNotExist.",
"reference": "move 103~105 to in front of 97?"
},
{
- "prediction": "I don't think we need to use `FileOutputStream` here.",
+ "prediction": "I think this should be `java.io.FileOutputStream` instead of `java.io.FileOutputStream`.",
"reference": "Lots of unnecessary imports left in this file."
},
{
- "prediction": "Why is this change needed?",
+ "prediction": "I think this should be `const auto descriptor_class = descriptor_set->GetDescriptorFromGlobalIndex(i);` instead of `const auto descriptor_class = descriptor_set->GetDescriptorFromGlobalIndex(i);`",
"reference": "Does this actually produce different code?"
},
{
- "prediction": "I think this should be `return node.getAttribute('onFocus') === 'this.blur()'`",
+ "prediction": "I think this should be `typeof(this.blur()) === 'function'`",
"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`",
+ "prediction": "I think this should be `routetable.TargetTypeNoEncap` and `routetable.TargetTypeBlackhole`",
"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'`",
+ "prediction": "I think it would be better to use `stripped.startswith('/')` instead of `stripped.startswith('/')`",
"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.\")`",
+ "prediction": "I think this should be `jdkVersion.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?",
+ "prediction": "Why is this needed?",
"reference": "For your reference in future, I sugguest to use the `ASSERT_*` family."
},
{
@@ -6971,15 +6971,15 @@
"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.",
+ "prediction": "nit: remove empty line",
"reference": "Can we have prefix of `OPENEBS_IO` e.g.: `OPENEBS_IO_INSTANCE_NAME`"
},
{
- "prediction": "I think this should be `GetOrCreateRootNode` instead of `GetOrCreateRootNode`",
+ "prediction": "Why not just `GetRootNode`?",
"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`",
+ "prediction": "I think this should be `org.hyperledger.besu.datatypes.Hash.EMPTY` instead of `org.hyperledger.besu.datatypes.Hash.EMPTY`",
"reference": "we can use import here"
},
{
@@ -6987,11 +6987,11 @@
"reference": "thx for removing these"
},
{
- "prediction": "Shouldn't this be `RuntimeException`?",
+ "prediction": "I don't think this is correct. The exception is thrown by the `XmlUtils.parseXml` method, and the exception is thrown by the `XmlUtils.parseXml` method. The exception is thrown by the `XmlUtils.parseXml` method, and the exception is thrown by the `XmlUtils.parseXml` method. The exception is thrown by the `XmlUtils.parseXml` method, and the exception is thrown by the `XmlUtils.parseXml` method.",
"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`",
+ "prediction": "I think we should use `testCase2` instead of `testCase3` here.",
"reference": "How is this different than \"good case\"?"
},
{
@@ -7003,47 +7003,47 @@
"reference": "@ftomassetti - okay, this is a little meh."
},
{
- "prediction": "I think this should be `os: not supported`",
+ "prediction": "I think we should use `errors.New(\"os: not implemented\")` instead of `errors.New(\"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`",
+ "prediction": "I think this should be `typeof window === 'object' ? window : this;`",
"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`",
+ "prediction": "I think this should be `bitcore.unit`",
"reference": "please keep alphabetical ordering :)"
},
{
- "prediction": "I think we should use `java.nio.charset.StandardCharsets` instead of `java.nio.charset.StandardCharsets`.",
+ "prediction": "I don't think this is needed.",
"reference": "Selenium must compile against Java 6. Revert this line."
},
{
- "prediction": "I think this should be `resourceGroup` instead of `resourceGroup`",
+ "prediction": "I think this should be `resourceGroup` instead of `\"\"`",
"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`.",
+ "prediction": "I think this should be `typeof _this.getValue(path) === 'boolean'`",
"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))`",
+ "prediction": "I don't think we need to check `tabIndex >= 0` here.",
"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`",
+ "prediction": "I don't think this is correct. The `body[:target]['host-key-check'] = false` is the default value for `ssh`.",
"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`?",
+ "prediction": "I think this should be `?bool` instead of `?bool`",
"reference": "Why is that? Should be redundant as the default value exists."
},
{
- "prediction": "I think this should be `bool` instead of `bool`.",
+ "prediction": "I think this should be `DebugSimulateDataRace` or `DebugSimulateCalcGraphHangAfter`",
"reference": "Are all fields beginning with \"Debug\" automatically `;local` ? (I guess so, but just checking.)"
},
{
- "prediction": "nit: `@return a new {@link UpdateNameMapping}`",
+ "prediction": "I think this should be `UpdateSchema` instead of `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."
},
{
@@ -7051,55 +7051,55 @@
"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()`",
+ "prediction": "I think this should be `_interface` and `_string` instead of `_string`.",
"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`",
+ "prediction": "I think this should be `if (BitConverter.IsLittleEndian)` instead of `if (BitConverter.IsLittleEndian)`",
"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`",
+ "prediction": "I don't think we need to forget vendor prefixes here.",
"reference": "Looks like you've covered `-webkit-transform`, but what about `-ms-transform`?"
},
{
- "prediction": "Why is this change needed?",
+ "prediction": "I think this should be `MvxBindingLog.Error(\"All collection changes\")`",
"reference": "Is there something missing from the message here?"
},
{
- "prediction": "I think this should be `RPCError` and not `RPCError`.",
+ "prediction": "I don't think we need to add these to the list.",
"reference": "Hmm, what does this syntax mean?"
},
{
- "prediction": "Why is callerTypeAPI needed?",
+ "prediction": "I don't think we need to pass `callerTypeAPI` here.",
"reference": "should this be callerTypeTask?"
},
{
- "prediction": "Do we need to check if the plan is administerable by the user?",
+ "prediction": "Metrics/CyclomaticComplexity: Cyclomatic complexity for set_test? is too high. [8/7] Metrics/PerceivedComplexity: Perceived complexity for set_test? is too high. [8/7] Metrics/PerceivedComplexity: Perceived complexity for set_test? is too high. [8/7] Metrics/PerceivedComplexity: Perceived complexity for set_test? is too high. [8/7] Metrics/PerceivedComplexity: Perceived complexity for set_test? is too high. [8/7]",
"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`",
+ "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)`",
+ "prediction": "nit: remove empty line",
"reference": "Nit: this file doesn't need to change. Can you revert this to avoid git conflicts?"
},
{
- "prediction": "Why is this needed?",
+ "prediction": "Why is this change 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?",
+ "prediction": "I think this should be `LO` instead of `LO`",
"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`",
+ "prediction": "I think this should be `BaseTestCase` instead of `BaseTestCase`.",
"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])`",
+ "prediction": "I think this should be `Array(options[:page_ranges])` instead of `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."
},
{
@@ -7107,63 +7107,63 @@
"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)`",
+ "prediction": "I think this should be `meta['config_dict'] = dict(cfg)`.",
"reference": "Better to use the absolute path."
},
{
- "prediction": "Why is this changed?",
+ "prediction": "Why is this change needed?",
"reference": "this is 16 hours, is that enough?"
},
{
- "prediction": "I think this should be `span.AddAttributes(trace.StringAttribute(\"error\", *err.Error()))`",
+ "prediction": "I think we should add `err.Error()` to the `Span` if `err` is nil.",
"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()`.",
+ "prediction": "I think this should be `v := uint64(0)`",
"reference": "Can you replace these single letter variables with full names?"
},
{
- "prediction": "I think this should be `Action PrepareRequest`",
+ "prediction": "I think this should be `public Action PrepareRequest{ get; set; }`",
"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'])`",
+ "prediction": "I don't think we need to check for `\\d+\\.?+` here.",
"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`",
+ "prediction": "I think this should be `getClusterState().getCollection(collection).getConfigName()`",
"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?",
+ "prediction": "I think this should be `CloseableIterable.empty()` instead of `CloseableIterable.empty()`.",
"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.",
+ "prediction": "I think this should be `ArrayInitializationVerbosenessRuleTest`",
"reference": "this class should be named `ArrayInitializationVerbosenessTest` to work"
},
{
- "prediction": "Do we need to check if `val.is_a?(Hash)`?",
+ "prediction": "I don't think we need to check for `val.is_a?(Hash)` here.",
"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`.",
+ "prediction": "why is this 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`.",
+ "prediction": "I don't think we need to pass `handleDataSuccess` here.",
"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)}`.",
+ "prediction": "Why is this needed?",
"reference": "Should we be doing this with `make_unique` or something?"
},
{
- "prediction": "I don't think we need to change this to `@changes`",
+ "prediction": "Layout/SpaceInsideHashLiteralBraces: Space inside { missing. Layout/SpaceInsideHashLiteralBraces: Space inside } missing.",
"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`",
+ "prediction": "nit: remove empty line",
"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."
},
{
@@ -7175,23 +7175,23 @@
"reference": "this was a mistake when adding phpstan strict plugin"
},
{
- "prediction": "I think this should be `if (oldVNode._dom == oldDom && oldVNode._parentNode != parentDom)`",
+ "prediction": "I think this should be `if (oldDom.parentNode != parentDom && oldDom.parentNode != parentDom)`",
"reference": "Nit: I think it should be `to handle` here."
},
{
- "prediction": "I think this should be `message == null && message.getId() == 0`",
+ "prediction": "I think this should be `throw new IllegalArgumentException(\"Message not found: folder=\" + folder + \", uid=\" + uid);`",
"reference": "Please don't make unrelated changes or let your tools make unrelated changes."
},
{
- "prediction": "Why is this changed?",
+ "prediction": "Why is this change needed?",
"reference": "`numAccounts` is a global variable (from `gochecknoglobals`)"
},
{
- "prediction": "I think this should be `unset($this->plugins[$id]);` instead of `unset($this->plugins[$id]);`",
+ "prediction": "Why is this needed?",
"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)`",
+ "prediction": "I think this should be `ethBackend.NodeInfo(ctx, 0)`",
"reference": "if 0 is a special constant meaning \"no limit\" let's make it a constant and name it correctly :)"
},
{
@@ -7199,51 +7199,51 @@
"reference": "Curious about the reason behind this change"
},
{
- "prediction": "I think we should use `cborStore.Put(ctx, b)` instead of `onlineStore.Put(ctx, b)`",
+ "prediction": "why is this change needed?",
"reference": "wait, i thought the cborstore was for state tree?"
},
{
- "prediction": "I think this should be `self.get('KEY', '')` instead of `self.get('KEY', '')`",
+ "prediction": "I don't think this is necessary. `file_is_local` will return False if the file is not local.",
"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?",
+ "prediction": "I think this should be `@Nullable` instead of `@Nullable`.",
"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`",
+ "prediction": "I think this check should be done in a separate PR.",
"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`?",
+ "prediction": "I think this should be `_apply` instead of `_process`.",
"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`.",
+ "prediction": "I think this should be `node.Role` instead of `node.Role`",
"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`",
+ "prediction": "I don't think this is a good idea, but I think it would be better to use `SELECT` instead of `GROUP BY`.",
"reference": "Oh is `bucket` actually higher cardinality than `eventname`?"
},
{
- "prediction": "Why is this needed?",
+ "prediction": "I think this should be `# pylint: disable=unused-import` instead of `# pylint: disable=unused-import`",
"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`",
+ "prediction": "I think this should be `NVDAObjects.IAccessible`, not `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.",
+ "prediction": "How about \"Workshops\"?",
"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']`",
+ "prediction": "I don't think this is necessary. `manifest['application']['gecko']['id']` will always be `nil` if `manifest['application']['gecko']['id']` is `nil` and `manifest['application']['gecko']['id']` will be `nil` if `manifest['application']['gecko']['id']` is `nil`.",
"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]`.",
+ "prediction": "I don't think we need to add `go` to the list.",
"reference": "Is this intended to be here? Seems it belongs to a different PR."
},
{
@@ -7251,123 +7251,123 @@
"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`",
+ "prediction": "I think this should be `logger.warning('Your AWS config is missing Region information, ECSTask requires a working config.')`",
"reference": "Umm... this isn't relevant to this PR"
},
{
- "prediction": "I think this should be `~0` instead of `~0`",
+ "prediction": "I think this should be `All = ~0` instead of `All = ~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`.",
+ "prediction": "I think this should be `main` instead of `main`.",
"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?",
+ "prediction": "Why is this removed?",
"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`",
+ "prediction": "I don't think we should be using `strict` here.",
"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; } }`",
+ "prediction": "Why is this change needed?",
"reference": "Why this line break?"
},
{
- "prediction": "I think this should be `k8s.io/apimachinery/pkg/apis/apiextensions/v1`",
+ "prediction": "I don't think this is needed anymore.",
"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`",
+ "prediction": "I think this should be `<0.8.0`",
"reference": "We should avoid adding a pandera dependency to Dagster itself."
},
{
- "prediction": "Why not use `permission.getGrantor()` here?",
+ "prediction": "Why not use `this.permissions.length+1` instead of `this.permissions[i] = this.permissions[i];`?",
"reference": "Can be replaced with `org.jkiss.utils.ArrayUtils#add`."
},
{
- "prediction": "Is there a reason to use `Collections.unmodifiableCollection(electionContexts)` here?",
+ "prediction": "I think this should be `Collections.synchronized(electionContexts).forEach(IOUtils::closeQuietly);`",
"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`",
+ "prediction": "I don't think we need to check for empty values here.",
"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)`",
+ "prediction": "I think this should be `http.Request` instead of `http.Request`.",
"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`",
+ "prediction": "I think this should be `--domain-filter=%s` instead of `--domain-filter=%s`",
"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`",
+ "prediction": "I think this should be `host1.example.com`",
"reference": "Maybe 2 host/ip values could be used in the example?"
},
{
- "prediction": "Why is this change needed?",
+ "prediction": "Why is this 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?",
+ "prediction": "(style) line over 80 characters",
"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()`.",
+ "prediction": "I think this should be `block_a.type()` instead of `block_a.hash()`.",
"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?",
+ "prediction": "I think this should be `Verbosef` instead of `Verbose`",
"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]",
+ "prediction": "I think this should be `\u5df2\u7ecf\u5b58\u5728\u3002`",
"reference": "It should be simplified character. `` -> ``"
},
{
- "prediction": "I think this should be `int ParallelLevels = -1;` instead of `int ParallelLevels = -1;`",
+ "prediction": "I think this should be `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`.",
+ "prediction": "I don't think we need to change the implementation of TreeMap.",
"reference": "'A' instead of 'An' here"
},
{
- "prediction": "Why is this changed?",
+ "prediction": "Why is this change needed?",
"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?",
+ "prediction": "why not use `_create_data` here?",
"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)`.",
+ "prediction": "I don't think this is a good idea, but I think it would be better to use `@purchaseable.github_repo` instead of `@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.",
+ "prediction": "Please remove this empty line.",
"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`",
+ "prediction": "I think this should be `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.",
+ "prediction": "I think we can remove the status field from the struct.",
"reference": "This is supposed to be `status`. Why did you change this?"
},
{
- "prediction": "I don't think we need this file anymore.",
+ "prediction": "I think this file should be deleted.",
"reference": "I will change all of these at some point next week."
},
{
- "prediction": "I think this should be `string.Empty` instead of `string.Empty`",
+ "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`",
+ "prediction": "I don't think this is the right change, but I think it would be better to use `status = model.KubernetesResourceState_UNKNOWN` instead of `status = model.KubernetesResourceState_UNKNOWN`",
"reference": "nit: `\"Unexpected error while calculating: unable to convert %T to %T: %v\"`"
},
{
@@ -7375,15 +7375,15 @@
"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`.",
+ "prediction": "I think this should be `convert-array-to-keyed-object-map`",
"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.",
+ "prediction": "Layout/EmptyLinesAroundClassBody: Extra empty line detected at class body beginning.",
"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`",
+ "prediction": "I think this should be `methodName().upperCase()`.",
"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."
},
{
@@ -7391,71 +7391,71 @@
"reference": "What if .. appears, but not as the first character, eg \"errors/../../../../../../../../../../../\"?"
},
{
- "prediction": "I think this should be `owned by the default organisation`",
+ "prediction": "I don't think this is needed anymore.",
"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.",
+ "prediction": "Why is this deprecated?",
"reference": "why not removing it?"
},
{
- "prediction": "I think this should be `flagTLSEnableHostVerification` or `flagTLSDisableHostVerification`",
+ "prediction": "I think this should be `--enable-host-verification` or `--disable-host-verification`",
"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`",
+ "prediction": "I think this test should be done in a separate PR.",
"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 == '=')`",
+ "prediction": "I don't think this is correct. `c == '.' || c == ':'` should be `c == '.'` instead of `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?",
+ "prediction": "I don't think this is needed anymore.",
"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`",
+ "prediction": "I think this should be `svc` instead of `app`",
"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);`",
+ "prediction": "I think this is a good idea, but I don't think we need to do this. I think it's a good idea to use `grunt.file.write(fileset.dest, file + 'module.exports.source = ' + JSON.stringify(source));` instead of `grunt.file.write(fileset.dest, file + 'module.exports.source = ' + JSON.stringify(source));`",
"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?",
+ "prediction": "I think this should be `setParameter('name', nameOrHandle, 'WebDriver.switchTo().window(' + nameOrHandle + ')');`",
"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`.",
+ "prediction": "I don't think this is correct. The plan variables are moved before the variables that appear earlier in a plan. The plan variables are moved before the variables that appear earlier in a plan. The plan variables are moved before the variables that appear earlier in a plan. The plan variables are moved before the variables that appear earlier in a plan. The plan variables are moved before the variables that appear earlier in a plan. The plan variables are moved before the variables that appear earlier in a plan.",
"reference": "Only one line of code? What a simple issue!"
},
{
- "prediction": "Why is this change needed?",
+ "prediction": "I think this should be `NewDefaultIncomingRateLimiter` instead of `NewDefaultIncomingRateLimiter`",
"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`",
+ "prediction": "I don't think this is necessary. It's fine to skip processing this CNP as addCNP will create it eventually.",
"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?`?",
+ "prediction": "I don't think we need to do this in the `current_linear_approval?` method. I think we can just do `cart.ncr? && user == cart.requester && (cart.pending? || cart.rejected?)` instead of `cart.ncr? && user == cart.requester && (cart.pending? || 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)`",
+ "prediction": "I think this is the only place where `attributes.respond_to?(:keys)` is true, but I think it would be better to do `attributes = attributes.to_h.merge(attributes.to_h).sort do |a, b| attributes.to_h.sort do |a, b| attributes.to_h.sort do |a, b| attributes.to_h.sort do |a, b| attributes.to_h.to_i <=> a[0].to_i <=> b[0].to_i if attributes.respond_to?(:keys) attributes = attributes.to_h attributes = attributes.to_h attributes = attributes.to_h attributes.sort do |a, b| attributes.to_h.sort do |a, b| attributes.to_h.to_h.sort do |a, b| attributes.to_h.to_h.to_i <=> a[0].to_i <=> a[0].to_i end end end end attributes = attributes.to_h attributes = attributes.to_h attributes = attributes.to_h attributes.to_h attributes = attributes.",
"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]+$/`",
+ "prediction": "I think we should use `/^[a-zA-Z0-9]+$/.test(webDataStreamID );` instead of `/^[a-zA-Z0-9]+$/.test(webDataStreamID );`",
"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)`",
+ "prediction": "I think this should be `return 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`",
+ "prediction": "I think it would be better to do `obj.selectionContainer.getSelectedItemsCount(2) == 1` instead of `obj.selectionContainer.getSelectedItemsCount(2) == 1`",
"reference": "Could you split these conditions up over multiple lines please."
},
{
@@ -7463,7 +7463,7 @@
"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 }}`",
+ "prediction": "I think we can remove the `.mailhogport` from the list.",
"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."
},
{
@@ -7471,11 +7471,11 @@
"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.",
+ "prediction": "I think this should be `LastWriter` instead of `LastWriter`",
"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?",
+ "prediction": "I think this should be `if(c->maximized_vertical || c->maximized)`",
"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."
},
{
@@ -7483,51 +7483,51 @@
"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))`",
+ "prediction": "I think this should be `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`",
+ "prediction": "I think this should be `GetNodeHostname`",
"reference": "would it make sense to return empty or error if label doesn't exists?"
},
{
- "prediction": "Shouldn't this be `maxAttempts`?",
+ "prediction": "I don't think this is a good idea, but I think it would be better to use `attemptRmTimeout` instead of `attemptRmTimeout`.",
"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())`",
+ "prediction": "This is a bit confusing, but I think it would be better to use `fmt.Sprintf(\"%s %s\", s.Value().String())` instead of `fmt.Sprintf(\"%s %s %s\", s.Value().String(), s.Value().String())`",
"reference": "Probably want a space after the second %s?"
},
{
- "prediction": "I think we should return `serviceerror.NewUnavailable` instead of `serviceerror.NewInternal`.",
+ "prediction": "why not just return `serviceerror.NewInternal(err.Error())` instead of `serviceerror.NewUnavailable(err.Error())`?",
"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)`",
+ "prediction": "I think we should use `expect(FakeStripe).to have_charged(1500).to_not_equal(1500)` instead of `expect(FakeStripe).to have_charged(1500).to_not_equal(1500).to_not_equal(1500).to_equal(1500)`",
"reference": "Line is too long. [94/80]"
},
{
- "prediction": "I think this should be `ClusterIdentity` instead of `ClusterIdentityProvider`",
+ "prediction": "Why not just `time.Now()`?",
"reference": "out of curiosity, why creating another struct to wrap it?"
},
{
- "prediction": "I don't think you need to change the format here.",
+ "prediction": "I think this should be `fmt::format`",
"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()`.",
+ "prediction": "I think this should be `setAssignedProtoFile(protoFile)`",
"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`",
+ "prediction": "This should be `SERIES_DEFAULT_NAME = \"0\"`.",
"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`",
+ "prediction": "I think this should be `commit.status-check.max-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()`",
+ "prediction": "I don't think we need to skip the test if the unified topology is not supported.",
"reference": "Side note: I'd love to see more of these fields exposed on configuration."
},
{
@@ -7535,19 +7535,19 @@
"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.",
+ "prediction": "I think this should be `Optional.ofNullable(getStartBlock()).orElse(getStartBlock()).orElse(getStartBlock()).orElse(getStartBlock()).orElse(getStartBlock()).orElse(getStartBlock());`",
"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`?",
+ "prediction": "I think this should be `ExecutionError` instead of `TracerTimeout`.",
"reference": "what is the number thrown by Geth?"
},
{
- "prediction": "I don't think we need the `?` here.",
+ "prediction": "I think this should be `apiConfig.split(\"/\")[3].split('?')[0];`",
"reference": "This would still crash on malformed database connection string like \"test\""
},
{
- "prediction": "I think this should be `PluginNameFromHostServiceContext(ctx context.Context, name string)`",
+ "prediction": "I think this should be `context.WithValue(ctx, pluginNameKey, ok)`.",
"reference": "it is not an interface, maybe we can move to another package?"
},
{
@@ -7555,11 +7555,11 @@
"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 != \"\"`.",
+ "prediction": "I think it would be better to use `!isCpuSet(cgroup)` instead of `!isCpuSet(cgroup)`",
"reference": "Not sure whether this validation is useful."
},
{
- "prediction": "I think this should be `prompt_yanked_download_url` or `prompt_yanked_download_url`",
+ "prediction": "I think this should be `message.info(\"Yanked download URL to clipboard: {}\".format(question.yank_text))`",
"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?"
},
{
@@ -7567,23 +7567,23 @@
"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`",
+ "prediction": "I don't think we need to change the URL here.",
"reference": "We should drop ipify in all places i guess"
},
{
- "prediction": "Why is this change needed?",
+ "prediction": "I think this should be `AgreementFilterTimeoutPeriod0`, not `AgreementFilterTimeoutPeriod0`.",
"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`",
+ "prediction": "Do we need to call `add_to_i18n` here?",
"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`.",
+ "prediction": "I think it would be better to have a default value for `true` and `false` for `true` and `false` for `true` and `false` for `true` and `false` for `true` and `false` for `true` and `false` for `true` and `false` for `true` and `false` for `true` and `false` for `true` and `false` for `true` and `false` for `true` and `false` for `true` and `false`.",
"reference": "To much tabs here (1 tab)"
},
{
- "prediction": "I think we should add a `recordCleanupLimit` parameter to the sql statement.",
+ "prediction": "I think we should use `recordCleanupLimit` instead of `recordCleanupLimit`",
"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."
},
{
@@ -7591,11 +7591,11 @@
"reference": "I don't like this helper func :-). Yeah, definitely don't like."
},
{
- "prediction": "Why is this change removed?",
+ "prediction": "I think we can remove the `google-site-kit/v1/modules/pagespeed-insights/data/pagespeed` file entirely.",
"reference": "Same here. This should remain unchanged. Please, add it back."
},
{
- "prediction": "I think this should be `options.ignoreUndefined = this.s.options.ignoreUndefined;`",
+ "prediction": "I don't think this is needed. `options.ignoreUndefined = this.s.options.ignoreUndefined;`",
"reference": "@kvwalker should this method have `ignoreUndefined` supported as an `option`?"
},
{
@@ -7603,11 +7603,11 @@
"reference": "we dont use a `sugaredlogger` anywhere else in clutch, just curious why were using it here?"
},
{
- "prediction": "Why did you remove this?",
+ "prediction": "Why remove this line?",
"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()`",
+ "prediction": "I think this should be `if len(txgroup) == 1 {`",
"reference": "Why is this a 'transaction' and not in the block header?"
},
{
@@ -7615,47 +7615,47 @@
"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`",
+ "prediction": "I don't think this is correct. I think it should be `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()`",
+ "prediction": "Why do we need this?",
"reference": "do we really need the `Ready` call if startup fails midway?"
},
{
- "prediction": "I think this should be `int32_t {0, network::NetworkUtils::getAvailablePort()}`.",
+ "prediction": "I think this should be `constexpr int32_t partitions = 6;`",
"reference": "You can avoid changing the code if there are parameter defaults. right ?"
},
{
- "prediction": "Why is this change needed?",
+ "prediction": "Why did you change this?",
"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) {`",
+ "prediction": "I don't think this is correct. The command_corpsefix() function is called with a single argument, so it should be called with a single argument, not a single argument.",
"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.",
+ "prediction": "Nit: remove empty line",
"reference": "AWS Identity and Access Management (IAM)"
},
{
- "prediction": "Shouldn't this be `InvalidElementStateException`?",
+ "prediction": "I think this class should be `InvalidElementStateException` instead of `InvalidElementStateException`.",
"reference": "We keep who wrote the code anonymous."
},
{
- "prediction": "I think this should be `let decimal = formatedParts.find( part => 'decimal' === part.type ).value;`",
+ "prediction": "I think this should be `if (Number.isInteger(number)) {` instead of `if (Number.isInteger(number)) {`",
"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`?",
+ "prediction": "I don't think this is a good idea, but I think it would be better to have `Transports() []transport.Transport` and `Transports() []transport.Transport` instead of `Transports() []transport.Transport` and `Transports() []transport.Transport` and `Transports() []transport.Transport` and `Transports() []transport.Transport` and `Transports() []transport.Transport` and `Transports() []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?",
+ "prediction": "nit: remove empty line",
"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.",
+ "prediction": "I don't think we need to add the `@author` annotation here.",
"reference": "Feel free to use the full notation with my email address: `Maxime Steinhausser ` :smile:"
},
{
@@ -7663,35 +7663,35 @@
"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)`",
+ "prediction": "I think this should be `Debugf` instead of `Warnf`.",
"reference": "Should we put in which account we were trying to look up?"
},
{
- "prediction": "I think this should be `supported_type_class`",
+ "prediction": "I don't think this is needed.",
"reference": "either SUPPORTED_TYPECLASS or supported_typeclass. Camelcase only for class names."
},
{
- "prediction": "I think this should be `pinned` as well.",
+ "prediction": "I think this should be `pinned`",
"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.",
+ "prediction": "I don't think this method is needed anymore.",
"reference": "Should these methods be renamed in this PR?"
},
{
- "prediction": "I think this should be `if (!this.metricStreamNames.ContainsKey(metricStreamName)) {`",
+ "prediction": "I think this should be in the `if` block.",
"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));`",
+ "prediction": "I think this should be `LoadFromAssemblyPath` instead of `LoadFromAssemblyPath`.",
"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`.",
+ "prediction": "(style) line over 80 characters",
"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.",
+ "prediction": "I don't think we need to 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."
},
{
@@ -7699,135 +7699,135 @@
"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\")`",
+ "prediction": "I think this should be `getQueueProcessorThreadState`",
"reference": "Is undispatched same as queued? getQueuedFlows?"
},
{
- "prediction": "What's the reason for this change?",
+ "prediction": "I don't think we need to change this file.",
"reference": "See above, same for all similar cases below."
},
{
- "prediction": "Why is this change needed?",
+ "prediction": "Why is this 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)`",
+ "prediction": "I think this should be `ConditionEqualsTo(node.Status, v1alpha1.ConditionDeadlineExceed, corev1.ConditionTrue)` instead of `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`",
+ "prediction": "I think this should be `DEBUG_TEST_FAILURE` instead of `DEBUG_TEST_FAILURE`.",
"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);`",
+ "prediction": "I think this should be `Math.min(val.length(), 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.",
+ "prediction": "I think this should be `evb.CreateEnumerator(\"NONE\", BASE_TYPE_NONE);`",
"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`",
+ "prediction": "nit: I think this should be `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?",
+ "prediction": "`mask` is a `np.array` object, not a `np.array`.",
"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`",
+ "prediction": "I think this should be `iotex-address/address.go`",
"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));`",
+ "prediction": "This should be `boost::str(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`.",
+ "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()`?",
+ "prediction": "I think this should be `List listSaveProduct = SendProduct.listAll(SendProduct.class);`",
"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);`",
+ "prediction": "I think this should be `orc::createLambdaResolver(local_lookup, external_lookup);`",
"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`",
+ "prediction": "Why is this needed?",
"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?",
+ "prediction": "I don't think we need to call `this.model(model).syncIndexes()` here.",
"reference": "Love how we can finally use async/await in the codebase."
},
{
- "prediction": "I think this should be `bool` instead of `bool`.",
+ "prediction": "I think this should be `true` instead of `false`.",
"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?",
+ "prediction": "I think we can remove the `IsActive` flag from the `Connection` struct.",
"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()) {`",
+ "prediction": "I think it would be better to use `isRollup()` instead of `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.",
+ "prediction": "I think this should be `java.util.List`.",
"reference": "can use `getParamTypeName` instead"
},
{
- "prediction": "I think we should use the `isXmlHttpRequest()` method instead of the `isXmlHttpRequest()` method.",
+ "prediction": "I don't think this is necessary. The `ajaxEdit` method should be called only if `property` is not set.",
"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)`",
+ "prediction": "I don't think we need to do this in the `_handle_multiple_files` method, since it's only used in the `_handle_multiple_files` method.",
"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]`",
+ "prediction": "I think this should be `return errors.New(\"Failed to join etcd cluster due to duplicate node names, please use unique node name for the server\")`",
"reference": "How will this code behave with hostnames that contain hyphens?"
},
{
- "prediction": "Shouldn't this be `kegg.Trim()`?",
+ "prediction": "I don't think we need to trim here.",
"reference": "I think this is redundant since \"NullForEmpty\" already calls \"Trim()\"."
},
{
- "prediction": "I think this should be `GroupCloudBackupID`",
+ "prediction": "I think this should be `CloudBackupGroupID`",
"reference": "Change this to IDs too?"
},
{
- "prediction": "I think we should use `ImmutableSet.of()` instead of `ImmutableSet.of()`",
+ "prediction": "I think this should be `list_of_DC_SCOUT_RAIDS` instead of `list_of_DC_SCOUT_RAIDS`.",
"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",
+ "prediction": "I don't think this is correct. `fscanf` returns `-1` and `-2` returns `-1` and `-1` returns `-1` if `fscanf(file, \"%s\", attr_value) != 1`",
"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\")`",
+ "prediction": "I don't think we need to check for the variable pattern here.",
"reference": "if it's unpredictable - why uppercase it at all?"
},
{
- "prediction": "I think this should be `beforeinstallkubeedge` instead of `beforeinstallkubeedge`",
+ "prediction": "I think this should be in a separate PR.",
"reference": "Please remove all these debug prints. It doesn't look good."
},
{
- "prediction": "I think this should be `SampleChainRandomness`",
+ "prediction": "I think this should be a `*types.BlockHeight` instead of a `*types.BlockHeight`",
"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 }`",
+ "prediction": "I think this should be `startTime.Before(closeTi)`.",
"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`",
+ "prediction": "I think this should be `CloudBackupStatusType` instead of `CloudBackupStatusType`",
"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?",
+ "prediction": "I think this should be `true` instead of `false`",
"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."
},
{
@@ -7835,63 +7835,63 @@
"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`",
+ "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?",
+ "prediction": "why is this removed?",
"reference": "Panic here if `exp.Target.StressChaos.CintainerName` is nil."
},
{
- "prediction": "I think this should be `@Nullable`.",
+ "prediction": "I think it would be better to make this `@Nullable` instead of `@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);`",
+ "prediction": "I think this should be `DEBUG.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?",
+ "prediction": "Why is this change needed?",
"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`",
+ "prediction": "I think this should be `None` instead of `0`.",
"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.'`?",
+ "prediction": "I think it should 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?",
+ "prediction": "why is this change needed?",
"reference": "line is 133 characters (from `lll`)"
},
{
- "prediction": "I don't think we need personal_options here.",
+ "prediction": "I think we can remove `personal_options` from `RSpec::Options` as it's not used anywhere else.",
"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]`.",
+ "prediction": "I think this should be `connection_config.merge(adapter: 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`",
+ "prediction": "I think we should use `nodeIP` instead of `nodeIP` here.",
"reference": "should this really be multiple IPs?"
},
{
- "prediction": "I don't think this is needed anymore.",
+ "prediction": "I think this should be `render_proposal`",
"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`.",
+ "prediction": "I think this should be `mockgen.go`",
"reference": "Should be 2014-2016"
},
{
- "prediction": "I think this should be `value.EndsWith(quote)` instead of `value.Substring(1, value.Length - 2)`",
+ "prediction": "I think this should be `value.StartsWith(quote) && value.EndsWith(quote)`.",
"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();`",
+ "prediction": "I think this should be `cursors[0].close();` instead of `cursors[0].next(function(err, cursors[0])`.",
"reference": "similarly here, are the these cursors not being closed when the client is closed?"
},
{
@@ -7899,75 +7899,75 @@
"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)`",
+ "prediction": "I think this should be done in the `config.MakeFBOsForExistingJournals` function.",
"reference": "Should this happen even if the above failed?"
},
{
- "prediction": "I don't think we need to change the copyright.",
+ "prediction": "I don't think we need to update the copyright year.",
"reference": "Please dont change this ."
},
{
- "prediction": "Why not use `%2$b` instead of `%2$b`?",
+ "prediction": "I think this should be `boost::str(boost::format(\"Election erased for root %1%, confirmed: %2$b\") % election.qualified_root.to_string () % election.confirmed());`",
"reference": "There is a strange $b that looks wrong."
},
{
- "prediction": "I think this should be `containerContainsText` instead of `containerContainsText`",
+ "prediction": "I don't think we need to set this here.",
"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'`",
+ "prediction": "I think this should be done in a separate PR.",
"reference": "It is `$JAVA_HOME/bin`, not `$JAVA_HOME`, which should be added."
},
{
- "prediction": "I think this should be `#include ` instead of `#include `.",
+ "prediction": "I think this should be `#ifdef assert.h` instead of `#else`",
"reference": "Should move this to within the `#else` block as it's only used there."
},
{
- "prediction": "Why not use `waitForAjax` instead of `waitForAjax`?",
+ "prediction": "Why do we need to wait for ajax?",
"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']);`?",
+ "prediction": "I think this should be `unset($properties['site'], $properties['logger']);`",
"reference": "Maybe you can correct the typo \"if\" too :)"
},
{
- "prediction": "I think this should be `IdentifyForChat` instead of `IdentifyForChat`",
+ "prediction": "I think this should be `IdentifyTrackBreaks` instead of `IdentifyTrackBreaks`",
"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()`",
+ "prediction": "I think this should be `ERROR: mpi4py not loaded correctly\\n`",
"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?",
+ "prediction": "Why is this 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`",
+ "prediction": "I think this feature should be added to the `TransportConnection` interface.",
"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()`.",
+ "prediction": "I think this should be `.addCallName(\"\")`",
"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`",
+ "prediction": "I think this should be `NABoolean` instead of `NABoolean`.",
"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)`",
+ "prediction": "I think this should be `std::string key = key.reserve(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`.",
+ "prediction": "I think this should be `/home/user/runtime/src/coreclr/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?",
+ "prediction": "I think this should be `defer udpConn.Close()`",
"reference": "does this line cause a panic if it is above the if condition ?"
},
{
- "prediction": "I think this should be `LibraryDetailsPanels` instead of `LibraryDetailsPanels`",
+ "prediction": "I don't think this is needed.",
"reference": "Maybe `LibraryDetailsPanelType` would be clearer."
},
{
@@ -7975,59 +7975,59 @@
"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?",
+ "prediction": "Why remove this?",
"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)`",
+ "prediction": "I think this should be `fmt.Println(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",
+ "prediction": "I think this should be `buttonsStyle` instead of `buttonStyles`",
"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`",
+ "prediction": "I don't think this is a good idea, but I think it would be better to use `json:\"split_path,omitempty\"` instead of `json:\"split_path,omitempty\"` and `json:\"split_path,omitempty\"` instead of `json:\"split_path,omitempty\"`",
"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`.",
+ "prediction": "I don't think we need to check if the URL starts with \"resource:\" or \"data:\"?",
"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`.",
+ "prediction": "I think this should be `long.MAX_VALUE` instead of `long.MAX_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`",
+ "prediction": "I don't think this is correct. `int_version` should be `int` instead of `unsigned`",
"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`?",
+ "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.",
+ "prediction": "I don't think we need to check for windows?",
"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; }`",
+ "prediction": "I don't think this is needed.",
"reference": "maybe throw in `&& mServiceConnection.isBound()`, there are cases where the connection might die"
},
{
- "prediction": "I think this should be `true` instead of `false`",
+ "prediction": "I think this should be `IsEip1344Enabled` instead of `IsEip1344Enabled`",
"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`",
+ "prediction": "Why is this change needed?",
"reference": "I don't understand this change"
},
{
- "prediction": "I think this should be `self.show_warning(\"Invalid Public key\")`",
+ "prediction": "I think this should be \"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; }`",
+ "prediction": "I don't think we need to check for `form` as well, but I think we should check for `form` as well.",
"reference": "This needs to work with `role=form` too."
},
{
@@ -8035,27 +8035,27 @@
"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`",
+ "prediction": "I think this should be `PodSelectorMatchExp` instead of `NSSelectorMatchRequirement`",
"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`",
+ "prediction": "I don't think this is correct. The RTT sample should be at least as large as minRTT. The RTT sample should be at least as large as minRTT. The RTT sample should be at least as large as minRTT. The RTT sample is at least as large as minRTT. The RTT sample is at least as large as minRTT. The RTT sample is at least as large as minRTT. The RTT sample is at least as large as minRTT.",
"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\")]`",
+ "prediction": "I think we can remove the `public` method from `SarifLogEqualityComparer` as it's not used anywhere else.",
"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?",
+ "prediction": "Layout/EmptyLinesAroundClassBody: Extra empty line detected at class body end.",
"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)`",
+ "prediction": "I think this test should be in a separate PR.",
"reference": "Small formatting thing, but can you remove the space before the semicolon?"
},
{
- "prediction": "Why is this change needed?",
+ "prediction": "I think this should be `int` instead of `long`.",
"reference": "Not new, but nit: _writeLeng*th*."
},
{
@@ -8063,63 +8063,63 @@
"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?",
+ "prediction": "nit: remove empty line",
"reference": "Remove this file from the PR"
},
{
- "prediction": "Is this change needed?",
+ "prediction": "Why 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`",
+ "prediction": "I think this should be `wlr_pointer_init(wlr_pointer, NULL, NULL);`",
"reference": "I think I would rather fish this interface through than use it as the basis for heuristics."
},
{
- "prediction": "Why is this changed?",
+ "prediction": "I don't think we need to change this.",
"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",
+ "prediction": "I think this should be `OPSZ_CACHE_LINE == 64`",
"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.",
+ "prediction": "why is this changed?",
"reference": "No pb please"
},
{
- "prediction": "Layout/EmptyLinesAroundTableBody: Extra empty line detected at class body beginning.",
+ "prediction": "Layout/MultilineMethodCallIndentation: Align the parameters of a method call if they span more than one line. Layout/MultilineMethodCallIndentation: Align the parameters of a method call if they span more than one line. Layout/MultilineMethodCallIndentation: Align the parameters of a method call if they span more than one line. Layout/MultilineMethodCallIndentation: Align the parameters of a method call if they span more than one line. Layout/MultilineMethodCallIndentation: Align the parameters of a method call if they span more than one line.",
"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))`",
+ "prediction": "I don't think this is needed.",
"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`.",
+ "prediction": "I don't think this is a good idea, but I think it would be better to say \"Does the given object (maybe an instance or class) implements the interface.\"",
"reference": "\"not to be used elsewhere other than\""
},
{
- "prediction": "I think this should be `setAll(properties)` instead of `setAll`",
+ "prediction": "I think this should be `.setAll(properties)` instead of `.setAll(properties).withSpec(spec)`.",
"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.",
+ "prediction": "I think this index should be `user_id`, `team_id`, `plan_id`, `plan_type`",
"reference": "These additions seem unrelated to this change?"
},
{
- "prediction": "I think this should be \"iceberg.engine.hive.enabled\"",
+ "prediction": "I think this should be `iceberg.engine.hive.enabled` instead of `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?",
+ "prediction": "why is this removed?",
"reference": "The related statements should also be deleted."
},
{
- "prediction": "I think this should be `if policies:`.",
+ "prediction": "I think this should be `params[\"PolicyNames\"] = \"\"` instead of `params[\"PolicyNames\"] = \"\"`",
"reference": "Shouldn't this line be removed?"
},
{
- "prediction": "I think this should be `whitelisted_name`",
+ "prediction": "I don't think this is a good idea, but I don't think it's a good idea to use `set` here.",
"reference": "Just move this into `const.py`. It already has similar stuff. Also, make it uppercase since it's a const."
},
{
@@ -8131,11 +8131,11 @@
"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.",
+ "prediction": "Line is too long. [89/80]",
"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.",
+ "prediction": "I think this should be `using Datadog.Trace.ExtensionMethods;`",
"reference": "nit: Looks like this can be removed now"
},
{
@@ -8143,19 +8143,19 @@
"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;`",
+ "prediction": "I don't think this is needed.",
"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.",
+ "prediction": "I don't think this is broken.",
"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()`.",
+ "prediction": "I think this should be `p.AllowAttrs(\"type\").Match(regexp.MustCompile(`^checkbox$`)`.",
"reference": "Why this to be a public function?"
},
{
- "prediction": "I think this should be `timing: false` instead of `timing: false`",
+ "prediction": "I don't think we need to add the `timing: false` option to the `export` command.",
"reference": "I think we can remove the timing for export env vars"
},
{
@@ -8163,51 +8163,51 @@
"reference": "wrong import grouping"
},
{
- "prediction": "Why is this removed?",
+ "prediction": "I think we can remove the `System.arraycopy` here.",
"reference": "There is a doubled semicolon ;)"
},
{
- "prediction": "I think this should be `#include \"openssl/md5.h\"`.",
+ "prediction": "I think this should be `#include \"zlib/sha.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?",
+ "prediction": "I think this should be `any_elements_located`",
"reference": "shouldn't **call** return a boolean?"
},
{
- "prediction": "I think this should be `!PassCharmTargetRestriction(entity_list.GetMobID(target_id))`",
+ "prediction": "I think this should be `if (IsEffectInSpell(spell_id, SE_Charm)) && !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`",
+ "prediction": "Shouldn't this be `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{}`",
+ "prediction": "I think this should be `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`.",
+ "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/`",
+ "prediction": "I think this should be `python-api.rst` instead of `Python-API.rst`",
"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?",
+ "prediction": "Why is this change needed?",
"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.",
+ "prediction": "I think we can remove the `input_method` argument from the `execute_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?",
+ "prediction": "I think this should be `chan struct{}{}`",
"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);`",
+ "prediction": "I don't think this is needed.",
"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."
},
{
@@ -8215,87 +8215,87 @@
"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`.",
+ "prediction": "I don't think this is needed.",
"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`?",
+ "prediction": "I think this should be `TIMEOUTS` instead of `IMPLICIT_TIMEOUT`.",
"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?",
+ "prediction": "I don't think this is 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`",
+ "prediction": "I don't think this is a good idea, but I think it would be better to use `timeReorderingFraction = 1.0 / 8` instead of `timeReorderingFraction = 1.0 * time.Millisecond`",
"reference": "Maybe move all the Loss Recovery constants to a separate file."
},
{
- "prediction": "Why is this change needed?",
+ "prediction": "I think this should be `diskAttachmentName` or `diskAttachmentName`",
"reference": "this field is added so that we can find disk name by device name from attachments"
},
{
- "prediction": "Please remove empty line.",
+ "prediction": "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)`",
+ "prediction": "Why is this change needed?",
"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`",
+ "prediction": "I don't think this is needed anymore.",
"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\");`",
+ "prediction": "I think we should be able to use `string.IsNullOrWhiteSpace(framework)` instead of `string.IsNullOrWhiteSpace(framework)`.",
"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.",
+ "prediction": "I don't think this is a good idea, but I think it would be better to use `warning` instead of `warning`.",
"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.",
+ "prediction": "I don't think this is needed anymore.",
"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.",
+ "prediction": "I don't think this feature is needed.",
"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?",
+ "prediction": "I think this should be `R_GET_PTR(handle, &data_idx, &len);`",
"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) {`",
+ "prediction": "I think this should be `if ($mediaContext !== null) {` instead of `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`",
+ "prediction": "I don't think this is the right version of docker-compose. I think it should be `>= 17.05.0-ce` or `>= 17.05.0-ce`",
"reference": "These should both be const, not var right?"
},
{
- "prediction": "I think this should be `registry_match_cost`",
+ "prediction": "I think this should be `build_match_cost_from_cfg` instead of `build_from_cfg`.",
"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')`",
+ "prediction": "I think this test should be `test_delete_collection_gives_number_of_deletable_records_in_headers`",
"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.",
+ "prediction": "I don't think this is correct. I think it should be `new SessionNotFoundException(\"Session ID is null. Using WebDriver after calling quit()?\");`",
"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?",
+ "prediction": "Why is this TODO removed?",
"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?",
+ "prediction": "I think we can remove this test as well.",
"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;`",
+ "prediction": "I don't think we need to cast to `int` here.",
"reference": "Remove this since it always has to be set afterwards."
},
{
@@ -8303,15 +8303,15 @@
"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`?",
+ "prediction": "I think this should be `self.reader.fetch(startTime, endTime, now=None, requestContext=None)`",
"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`.",
+ "prediction": "I don't think this is correct. `**.test.js` should be `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 }`",
+ "prediction": "I think this should be `DEFAULT_BATCH_SIZE_EXCEPTION = 'InvalidParameterValueException'`",
"reference": "nit: I'd probably rename this to `BATCH_SIZE_RANGES`, to use a slightly more descriptive name."
},
{
@@ -8319,47 +8319,47 @@
"reference": "aren't these the wrong way around?"
},
{
- "prediction": "I think this method should be `getCoreConfigService`",
+ "prediction": "Why is this needed?",
"reference": "Lets call this getConfigSetService and maybe rename the field now (or later)"
},
{
- "prediction": "Why is this needed?",
+ "prediction": "I think this should be `k8s.io/klog/v2/klogr`",
"reference": "Could / should we make these constants and give them a type?"
},
{
- "prediction": "I don't think we need this annotation.",
+ "prediction": "I think this should be `platformUnknown`",
"reference": "lets stick with lowercase for consistency."
},
{
- "prediction": "Why is this removed?",
+ "prediction": "I don't think this is needed anymore.",
"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)`",
+ "prediction": "I think this should be `MetadataTableType.ALL_DATA_FILES` instead of `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`",
+ "prediction": "I think this should be `TypeDoesNotContainType` instead of `TypeDoesNotContainType`",
"reference": "Is this a good place for these test cases?"
},
{
- "prediction": "why is this print needed?",
+ "prediction": "I think this should be removed.",
"reference": "Did you mean to leave the print statement?"
},
{
- "prediction": "I think we should use `new BN(500000000);` instead of `new BN(500000000);`",
+ "prediction": "why not use `Interpreter.LOCKTIME_THRESHOLD = 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;`",
+ "prediction": "I don't think we need wildcard imports.",
"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`",
+ "prediction": "Why is this change needed?",
"reference": "Need to add type name here to be compatible with proto string representation."
},
{
- "prediction": "I think this should be `log.finest(\"Building \" + target + \" ...\");`",
+ "prediction": "I think this should be `log.info(\"Building \" + target + \" ...\");`",
"reference": "This is to let people know that the tooling is doing something during a build. Please leave."
},
{
@@ -8367,15 +8367,15 @@
"reference": "Why is the principal changing here?"
},
{
- "prediction": "I think this should be `blob.core.windows.net` instead of `blob.core.windows.net`",
+ "prediction": "I think we should add a `AZURE_BLOB_DOMAIN = \"blob.core.windows.net\"` to the `AZURE_BLOB_DOMAIN` section.",
"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`",
+ "prediction": "I think this should be `progressbar-progress-indicator` instead of `progressindicator-progress-indicator`",
"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.",
+ "prediction": "I don't think this is needed.",
"reference": "can we use `github.com/pkg/errors`?"
},
{
@@ -8383,7 +8383,7 @@
"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`.",
+ "prediction": "I don't think this is a good idea, but I think it would be better to just call `_memoize_last_value` instead of `_memoize_last_value`.",
"reference": "I think either 'avoiding calls to the function' or 'to avoid calling the function ...' would be read better."
},
{
@@ -8391,55 +8391,55 @@
"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;`",
+ "prediction": "I think this should be `using Nethermind.Metrics;`",
"reference": "minor: typo (knowMetricsTypes -> knownMetricsTypes)"
},
{
- "prediction": "I think this should be `static_cast(right)` instead of `static_cast`",
+ "prediction": "I think this should be `(CharType *)getType() ->isCaseinsensitive();`",
"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`.",
+ "prediction": "I don't think this method is used anywhere else. I think it should be in a separate PR.",
"reference": "I would throw an exception if the type is not solved"
},
{
- "prediction": "Why did you remove this?",
+ "prediction": "Why is this removed?",
"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`",
+ "prediction": "I don't think this is needed.",
"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?",
+ "prediction": "I don't think we should be using async here.",
"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.",
+ "prediction": "I don't think this is correct. I think it would be better to use `remove it and 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]`",
+ "prediction": "I think this should be `num_stages` instead of `num_stages`.",
"reference": "Single quote is used by default in this project."
},
{
- "prediction": "Why do we need to reconcile on the new SPC?",
+ "prediction": "I think we can remove the `isPoolPending` check here.",
"reference": "S1023: redundant `return` statement (from `gosimple`)"
},
{
- "prediction": "Shouldn't this be `Run`?",
+ "prediction": "I think this should be `Close` instead of `Close`",
"reference": "`ctx` is unused in Close"
},
{
- "prediction": "I think we should use `HttpKernel\\Exception\\NotFoundHttpException` instead of `HttpKernel\\Exception\\NotFoundHttpException`",
+ "prediction": "This class should be renamed to `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`",
+ "prediction": "I don't think this is needed.",
"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`.",
+ "prediction": "I don't think this is needed.",
"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`?"
},
{
@@ -8447,19 +8447,19 @@
"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.",
+ "prediction": "I think this route should be `/products/1-backbone-js-on-rails` or `/products/2-backbone-js-on-rails`",
"reference": "Line is too long. [104/80]"
},
{
- "prediction": "I think this should be `expectedRunningCDs` instead of `expectedAssignedClaims`",
+ "prediction": "Why is this needed?",
"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');`",
+ "prediction": "I don't think we need to know if this is the best way to do this.",
"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`.",
+ "prediction": "I don't think we need to create an instance of `CommentCreator` here.",
"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"
},
{
@@ -8467,7 +8467,7 @@
"reference": "This line is too long"
},
{
- "prediction": "I think this should be `logger.Fatalf(err.Error())`",
+ "prediction": "I think this should be `logger.Fatalf(err.Error())` and `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"
},
{
@@ -8475,19 +8475,19 @@
"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.",
+ "prediction": "Use the new Ruby 1.9 hash syntax. 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 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`",
+ "prediction": "I think this should be `true` or `false`.",
"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.",
+ "prediction": "I think this should be `if (!readonly && spaceId_ != 0) {`",
"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)`",
+ "prediction": "I don't think this is necessary. `os.path.exists` returns `None` if `path` is not `None`.",
"reference": "No need for the `\\` here, inside parentheses whitespace is ignored by Python."
},
{
@@ -8499,7 +8499,7 @@
"reference": "need to rename this now."
},
{
- "prediction": "I don't think we need to add a TODO here.",
+ "prediction": "I don't think we should be able to ignore these fields.",
"reference": "NIT: This shouldn't be a TODO. It is just a note isn't it?"
},
{
@@ -8507,171 +8507,171 @@
"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()`.",
+ "prediction": "I think this should be `!action.IsSystemLog(l)`",
"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);`",
+ "prediction": "I think this should be `notificationIdsInUse.remove(holder.notificationId);` instead of `notificationIdsInUse.remove(holder.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?",
+ "prediction": "Why is this removed?",
"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`",
+ "prediction": "I don't think this is needed anymore.",
"reference": "Same here, we need to call `callback` in else branch"
},
{
- "prediction": "Why not just use `StringUtils.emptyToNull(certRecord.getHostName())`?",
+ "prediction": "I think this should be `String.valueOf(certRecord.getHostName()).equals(\"\")`.",
"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\"`.",
+ "prediction": "I think this should be `@title = 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.",
+ "prediction": "I think this should be done in a separate PR.",
"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),`",
+ "prediction": "why not use `_base_`?",
"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.",
+ "prediction": "I don't think we need to check for `Object.values(dict).length` here.",
"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))`",
+ "prediction": "I think this should be `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)`",
+ "prediction": "I think this is the only place where `PackageFormat.HDF5` is used. I think it should be `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`?",
+ "prediction": "I think this should be `TxHeaderFields` instead of `TxHeaderFields`.",
"reference": "Let's add fee recipient as well."
},
{
- "prediction": "I think this should be `pylint: disable=not-called`.",
+ "prediction": "I think this should be `# pylint: disable=super-init-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`.",
+ "prediction": "I think this should be `APPLICATION_NAME`",
"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`",
+ "prediction": "Layout/EmptyLinesAroundClassBody: Extra empty line detected at class body end.",
"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\">`",
+ "prediction": "Why is this change needed?",
"reference": "what changed in this line?"
},
{
- "prediction": "Shouldn't this be `const reportArgs = {};`?",
+ "prediction": "I think we can remove the `reportArgs` variable entirely.",
"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?",
+ "prediction": "Why is this removed?",
"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`",
+ "prediction": "I think this should be `defer errCh <- err`",
"reference": "This looks like you're not collecting everything from the error channel."
},
{
- "prediction": "Why is this change needed?",
+ "prediction": "I think we can remove the `@checkout` variable from the `CheckoutMailer` class.",
"reference": "This currently violates the Law of Demeter. Using `checkout.plan_name` is the quick resolution."
},
{
- "prediction": "Why is this change needed?",
+ "prediction": "I think this should be `@param string|null $temporaryFilename`",
"reference": "is there any scenario when `$temporaryFilename` can be null?"
},
{
- "prediction": "I think this should be `@SuppressWarnings(\"ReferenceEquality\")` instead of `@SuppressWarnings(\"ReferenceEquality\")`.",
+ "prediction": "I think this should be `@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`.",
+ "prediction": "I think this should be done in the `wl_handle_surface_commit` function.",
"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 ``",
+ "prediction": "I think it would be better to use `torch.device('cpu')` instead of `torch.device('CUDA')`",
"reference": "Have you tested exporting to ONNX with `device=cuda`?"
},
{
- "prediction": "I think we should use `o.name` instead of `o.appName`",
+ "prediction": "I think we should check that `o.name` is not empty.",
"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);`",
+ "prediction": "I think it would be better to 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?",
+ "prediction": "I don't think we need to update the `acnpInformer` here.",
"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?",
+ "prediction": "I don't think we need to change this, but I think it's a good idea to change it to `Chrome 82: This is ARIA Label everything`.",
"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()`.",
+ "prediction": "I think this should be `return 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`",
+ "prediction": "I think this should be `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`",
+ "prediction": "I don't think this tag is needed.",
"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`",
+ "prediction": "Why is this change needed?",
"reference": "This file shouldn't be in this PR"
},
{
- "prediction": "I think this should be `LessSpecificReturnStatement` instead of `LessSpecificReturnStatement`.",
+ "prediction": "I think this should be `LessSpecificReturnStatement` instead of `SKIPPED-nonEmptyAssignmentToListElementChangeType`",
"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?",
+ "prediction": "I think this should be `info` instead of `trace`.",
"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))`",
+ "prediction": "I don't think this is correct. If you set staticbuild to true, you will set staticbuild to false. If you set staticbuild to false, you will set staticbuild to false.",
"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`",
+ "prediction": "Please enter the number of steps to delay.",
"reference": "Note this should be `delay` instead of `scale` here. I'll fix this in my branch."
},
{
- "prediction": "Why did you remove this?",
+ "prediction": "Why 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.",
+ "prediction": "I don't think we need to import `torch.nn.functional` 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`",
+ "prediction": "nit: remove empty line",
"reference": "Can you move this up along with the other builtin libraries?"
},
{
- "prediction": "I think this should be `if globalVars.appArgs.secure:`",
+ "prediction": "I don't think this is needed.",
"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`.",
+ "prediction": "I think this should be `git checkout` instead of `git checkout`.",
"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`",
+ "prediction": "I don't think this is needed.",
"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. :)"
},
{
@@ -8679,7 +8679,7 @@
"reference": "Why local and not UTC?"
},
{
- "prediction": "Why is this change needed?",
+ "prediction": "I think this should be `diagArea_->contains(-2013) && !diagArea_->contains(-2012))`",
"reference": "2012 is a retryable error. Will avoiding rgenerating it here cause a difference in behavior in createServer() ?"
},
{
@@ -8687,11 +8687,11 @@
"reference": "move to line 14 below"
},
{
- "prediction": "`crosses` should be `crosses`",
+ "prediction": "I think this should be `intersects` instead of `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)`",
+ "prediction": "Why is this TODO removed?",
"reference": "Won't this happen automatically when we flip the default version in the config?"
},
{
@@ -8699,99 +8699,99 @@
"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;`",
+ "prediction": "I don't think this is needed.",
"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:`",
+ "prediction": "I think this should be `None` instead of `False`?",
"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.",
+ "prediction": "Layout/SpaceInsideHashLiteralBraces: Space inside { missing. Layout/SpaceInsideHashLiteralBraces: Space inside } missing.",
"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())`",
+ "prediction": "I think this should be `isEth66Compatible(final Capability capability)` instead of `isEth66Compatible(final Capability capability)`",
"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`",
+ "prediction": "Line is too long. [89/80]",
"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)`",
+ "prediction": "I think we should check if the `APIURL` is valid.",
"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`",
+ "prediction": "I think we should use `t.Errorf(\"got: %q, want: %q\", s, want)` instead of `t.Errorf(\"got: %q, want: %q\", s, want)`",
"reference": "TestNormalize... I would also split them"
},
{
- "prediction": "Why do we need to use `indexGen.next()` instead of `indexGen.next()`?",
+ "prediction": "I think this should be `next(indexGen)` instead of `next(indexGen)`",
"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`",
+ "prediction": "Why is this not thread safe?",
"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.",
+ "prediction": "I don't think we need to import `sys` here.",
"reference": "Can we grab it directly from `__pkginfo__` as that is the source of truth for the version?"
},
{
- "prediction": "Please remove empty line.",
+ "prediction": "nit: 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\")`",
+ "prediction": "I think this should be `protoPkg.contains(\"cloud\")` instead of `protoPkg.contains(\"cloud\")`.",
"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`",
+ "prediction": "I think this should be `Lob_Error_Or_Create` instead of `Lob_Error_Or_Error`.",
"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))))))))));`), ...)), ...).).",
+ "prediction": "I think this should be `LOG.info(String.format(String.format(String.format(String.format(String.format(String.format(String.format(String.format)))))`",
"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)`",
+ "prediction": "I think this should be `SSL_set_tlsext_host_name(ssl_, getHost().c_str());` instead of `SSL_set_tlsext_host_name(ssl_, getHost().c_str());`",
"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?",
+ "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()`",
+ "prediction": "I don't think we need to pass the `idField` to the `saveRecordsToSmartStore` method.",
"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());`",
+ "prediction": "I don't think we need to skip the file if the offset is 0. I think we should skip the file if the offset is 0.",
"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()`.",
+ "prediction": "I think this should be `ASTPrimitiveType` instead of `ASTPrimitiveType`.",
"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{}`",
+ "prediction": "I think this should be `yarpc.Interceptors{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()))`",
+ "prediction": "I think we should use `os.Rename(etcdDBDir(e.config) + \"-old-\" + strconv.Itoa(time.Now().Unix()))` instead of `os.Rename(etcdDBDir(e.config) + \"-old-\" + strconv.Itoa(time.Now()));`",
"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`",
+ "prediction": "I think this should be `/var/run/cloud-run-events/broker/targets` instead of `/var/run/cloud-run-events/broker/targets`",
"reference": "How is this env var populated? Can this be retrieved from cluster metadata?"
},
{
- "prediction": "I think this should be `FailedToTagInternetGateway` instead of `FailedToTagInternetGateway`",
+ "prediction": "I think this should be `record.Eventf(s.scope.Cluster, \"FailedTagInternetGateway\", \"Tagged managed Internet Gateway %q: %v\", gateway.InternetGatewayId, err)`",
"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`",
+ "prediction": "I think this should be `imageBlurHashes` instead of `imageBlurhashes`.",
"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"
},
{
@@ -8799,27 +8799,27 @@
"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?",
+ "prediction": "Why is this removed?",
"reference": "can do the same for other validateXXX()"
},
{
- "prediction": "I think this should be `const_cast(participant_)`",
+ "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`",
+ "prediction": "I don't think we need to import datetime here.",
"reference": "Please move this import upper to other similar imports"
},
{
- "prediction": "(style) code indent should use tabs where possible",
+ "prediction": "I think this should be `IF_ARM(ASSERT_NOT_TESTED());`",
"reference": "Include the key word \"translated\". Otherwise the reader will find this confusing."
},
{
- "prediction": "Why is this a singleton?",
+ "prediction": "I don't think we need to do this anymore, since it's only used in the `ElasticsearchSpanStore` class.",
"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?",
+ "prediction": "I think this should be `options.filter(option => option.actualNode.selected)`.",
"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."
},
{
@@ -8827,39 +8827,39 @@
"reference": "ditto about use of `abspath`"
},
{
- "prediction": "I don't think you need to use `Math.pow` here.",
+ "prediction": "I don't think this is needed.",
"reference": "this reduces the runtime by 50 times"
},
{
- "prediction": "I think this test should be in `org.openqa.selenium.grid.distributor.remote.RemoteDistributorTest`",
+ "prediction": "I think this class should be renamed to `RemoteDistributorTest`",
"reference": "Probably best not to have an empty test...."
},
{
- "prediction": "I think this should be `throw new IllegalStateException(\"Error instantiating \" + exceptionType);`",
+ "prediction": "Why is this change needed?",
"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`.",
+ "prediction": "I think this should be `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?",
+ "prediction": "Why is this protected?",
"reference": "Why was this change needed?"
},
{
- "prediction": "This should be `warning(\"No IPv4 address found on %s !\" % ifname)`.",
+ "prediction": "I don't think this is a good idea, but I think it's a good idea to use `warning` instead of `warning`.",
"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]",
+ "prediction": "Layout/SpaceInsideHashLiteralBraces: Space inside } missing.",
"reference": "Why does this check differ from `plan_ssh.rb`?"
},
{
- "prediction": "Why is this needed?",
+ "prediction": "I think this should be `github.com/iotexproject/go-fsm` instead of `github.com/iotexproject/go-fsm`",
"reference": "File is not `goimports`-ed (from `goimports`)"
},
{
- "prediction": "Why did you remove this?",
+ "prediction": "I think this should be `_maxPendingWrites` instead of `_maxBytesPreCompleted`.",
"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."
},
{
@@ -8867,139 +8867,139 @@
"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], \",\")`",
+ "prediction": "I don't think we need to do this, but I don't think we need to do it in the `httpServerAttributesFromHTTPRequest` function.",
"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`.",
+ "prediction": "I don't think this is a good idea, but I think it would be better to use `EXECUTION_STARTED` 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`.",
+ "prediction": "I don't think we need to add the `HEAP_SNAPSHOT` property to the `HttpCommandExecutor` as well.",
"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
`",
+ "prediction": "I think it would be better to use `
Watch or Download Video
` instead of `
Watch or Download Video
`",
"reference": "Space after `=`."
},
{
- "prediction": "Shouldn't this be `setAfterCreateInvocationHandler(invocation -> context.put(RestConst.REST_INVOCATION_CONTEXT, invocation));`?",
+ "prediction": "I think this should 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]",
+ "prediction": "I don't think we need to remove the `jdk` test here.",
"reference": "By the way, I fixed `announce` method (missing `super` call to announce JDK version)"
},
{
- "prediction": "I think this should be `@SuppressWarnings(\"unchecked\")`.",
+ "prediction": "Why is this necessary?",
"reference": "I'm not sure about that... This line can produce ClassCastException if Comparator do not check this."
},
{
- "prediction": "Why is this change needed?",
+ "prediction": "I think this should be `*BareTlfHandle`",
"reference": "There wasn't any special reason for this to return a pointer, right?"
},
{
- "prediction": "I think this should be `ConcurrentHashMap` instead of `ConcurrentHashMap`.",
+ "prediction": "I don't think you need to use `ConcurrentHashMap` here.",
"reference": "Why the need for a `ConcurrentHashMap`?"
},
{
- "prediction": "Why not use `this.naturalSortCompare(aProp, bProp, false);` instead of `this.naturalSortCompare(aProp, bProp, false);`?",
+ "prediction": "I think this should be `if (order.by == 'title' && Setting.value('titleNaturalSort') && Setting.value('titleNaturalSort') && Setting.value('titleNaturalSort') && Setting.value('titleNaturalSort') && Setting.value('titleNaturalSort') && Setting.value('titleNaturalSort') && Setting.value('titleNaturalSort') && Setting.value('titleNaturalSort') && setting.value('titleNaturalSort') || setting.value('titleNaturalSort')) { r = -1; }`",
"reference": "New code should use strict equality `===`"
},
{
- "prediction": "Line is too long. [82/80]",
+ "prediction": "Layout/TrailingWhitespace: Trailing whitespace detected.",
"reference": "`expect(resources['Notify[local pid]']['events'][0]['desired_value']).to match(/(\\d+)/)` seems clearer."
},
{
- "prediction": "Why is this changed?",
+ "prediction": "Why is this changeMd needed?",
"reference": "Removed now-unneeded param."
},
{
- "prediction": "I think this should be `bitswap` instead of `bitswap`",
+ "prediction": "I don't think this is needed.",
"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' )`",
+ "prediction": "I don't think we should be using `_x` here.",
"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));`",
+ "prediction": "I think this should be `WaitForClosedForm(propDialog);`",
"reference": "This is functionally equivalent to the code it replaces."
},
{
- "prediction": "I think we should use `json:\"default\",omitempty\"` instead of `json:\",omitempty\"`",
+ "prediction": "I think it would be better to 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?",
+ "prediction": "I don't think we need to change this file.",
"reference": "See above, same for the other cases."
},
{
- "prediction": "I think this should be `MetricBuilder.GAUGES`.",
+ "prediction": "I think this should be `@Nullable` instead of `@Nullable`.",
"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?",
+ "prediction": "Why is this disabled?",
"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`.",
+ "prediction": "I don't think we need to change the URL to `https://news.google.com/news/rss?`",
"reference": "The tests should be fixed in #4841, so this is no longer needed"
},
{
- "prediction": "I think this should be `SerializerException` instead of `SerializerException`",
+ "prediction": "Why is this `strict_types=1`?",
"reference": "I think it should been in `SharedKernel` module."
},
{
- "prediction": "I think this should be `string` instead of `omitempty`",
+ "prediction": "I don't think this is a good idea, but I think it would be better to add a `// +optional` field to the `ACMEChallengeSolverHTTP01IngressObjectMeta` as well.",
"reference": "Can we add some description for this field? "
},
{
- "prediction": "I think this should be `DurationType` instead of `TimeType`.",
+ "prediction": "I think this should be `DurationType.class`.",
"reference": "Should its name be Time or Duration? I can see them both."
},
{
- "prediction": "I think this should be `asGRPCOptions`",
+ "prediction": "I don't think we need this function anymore.",
"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))`",
+ "prediction": "I think this test should be `require.Equal(t, []attribute.KeyValue(nil, res.Attributes()))`",
"reference": "I believe that you can use `assert` instead of `require` here and in the following lines"
},
{
- "prediction": "Why is this change needed?",
+ "prediction": "I think we should be able to use `&PaymentChannel{}` instead of `&PaymentChannel{}`",
"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`.",
+ "prediction": "I think this should be `trojan.trojan.trojan.trojan.trojan.trojan.trojan.trojan.trojan.trojan.trojan.trojan.trojan.trojan.trojan.trojan.trojan.trojan.trojan` and `trojan.trojan.trojan.trojan.trojan.trojan.trojan.trojan.trojan.trojan.trojan.trojan.trojan.trojan.trojan.trojan.trojan.trojan.trojan.trojan.trojan.trojan.trojan.trojan.trojan.trojan.trojan.trojan.trojan.trojan.tro",
"reference": "is this a new pattern we use in bee? interesting"
},
{
- "prediction": "I think this should be `err.Code == \"BucketAlreadyOwnedByYou\"`.",
+ "prediction": "I think we should just return `err.Code == \"BucketAlreadyOwnedByYou\"` instead of `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\".",
+ "prediction": "I think this should be `org.apache.commons.commons.commons.constants.Constants.GROUP_ID`",
"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`",
+ "prediction": "I don't think this is needed anymore.",
"reference": "We can get rid of this import then."
},
{
- "prediction": "Why is this change needed?",
+ "prediction": "I think we should move this logic to `processGatewaySubjectSub` as well.",
"reference": "Should we do our own vtable?"
},
{
- "prediction": "I think this should be `exceptions_app = Rails.root.join('lib')`",
+ "prediction": "I think we should remove the `exceptions_app` variable.",
"reference": "This is the actual fix."
},
{
- "prediction": "Why is this changed?",
+ "prediction": "I think this should be `60 * time.Second`",
"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`",
+ "prediction": "I don't think we need to call the callback on each with the field name and a bool for the field name.",
"reference": "should be called => will be called"
},
{
@@ -9015,7 +9015,7 @@
"reference": "`dt` won't work for some reason?"
},
{
- "prediction": "I think this should be `is not None` instead of `!= \"\"`",
+ "prediction": "Why is this change needed?",
"reference": "Is this because \"KOALAS_USAGE_LOGGER\" can be `None` ??"
},
{
@@ -9027,11 +9027,11 @@
"reference": "I would inline the constructor as well"
},
{
- "prediction": "Why is this change needed?",
+ "prediction": "Why did you change this to `dummyyylval` and `dummyyyloc`?",
"reference": "I'm not confident about this..."
},
{
- "prediction": "I think this should be `v1alpha1.SchemeGroupVersion.WithKind(\"CertificateRequest\")` instead of `v1alpha1.SchemeGroupVersion.WithKind(\"CertificateRequest\")`.",
+ "prediction": "I think this should be `v1alpha1.SchemeGroupVersion.WithKind(\"CertificateRequest\")`",
"reference": "There is also `v1alpha1.CertificateRequestKind` I think?"
},
{
@@ -9039,7 +9039,7 @@
"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.",
+ "prediction": "I think this should be `String.format(String.format(String.format(String.format(String.format(String.format(String.format(String.format(String.format)))));`",
"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."
},
{
@@ -9047,27 +9047,27 @@
"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`",
+ "prediction": "why do we need this?",
"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.",
+ "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": "We're fine with double quotes here. Just for future reference."
},
{
- "prediction": "Why is this change needed?",
+ "prediction": "Why is this removed?",
"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`",
+ "prediction": "I think this should be `graphicsPipelineCI.topology_at_rasterizer = 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`.",
+ "prediction": "I don't think this is needed.",
"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?",
+ "prediction": "Why is this change needed?",
"reference": "detectStaleEndpoints to be more specific?"
},
{
@@ -9075,43 +9075,43 @@
"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?",
+ "prediction": "Why is this change 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.",
+ "prediction": "Nit: remove trailing whitespace",
"reference": "AWS Identity and Access Management (IAM)"
},
{
- "prediction": "I think this should be `LOG.info(\"edgedriver will log to \" + logFile);`",
+ "prediction": "I think this should be `info` or `fine`.",
"reference": "This is deliberately at this level."
},
{
- "prediction": "I think this should be `err := output.NewError(output.ConvertError, \"failed to decode data\", err)`.",
+ "prediction": "I think this should be `return output.NewError(output.ConvertError, \"failed to decode data\", \"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`?",
+ "prediction": "I think you can use `reset($alreadyCreatedDemoPricingGroupsByDomain);` instead of `reset($alreadyCreatedDemoPricingGroupsByDomain);`",
"reference": "should this be kept in the `else` branch?"
},
{
- "prediction": "I think this should be `sync` instead of `sync`",
+ "prediction": "nit: remove empty line",
"reference": "Why not put this below \"strings\"?"
},
{
- "prediction": "I think this should be `public int DispatchPipesCount` instead of `_dispatchPipes.Count`",
+ "prediction": "I think this should be `_dispatchPipes.Count` instead of `_dispatchPipes.Count`.",
"reference": "Make it `internal` if it's just for testing."
},
{
- "prediction": "Why is this change needed?",
+ "prediction": "I think this should be `logical-tautology` instead of `logical-tautology`",
"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')`.",
+ "prediction": "why is this change needed?",
"reference": "Are you sure this should be removed?"
},
{
- "prediction": "Why is this needed?",
+ "prediction": "I think this should be `ProxySettings.DEFAULT_PROXY_DEFAULT_PROXY_DEFAULT`",
"reference": "What's that good for? The field is initialized in the constructor."
},
{
@@ -9119,11 +9119,11 @@
"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`",
+ "prediction": "nit: remove empty line",
"reference": "No newline needed here."
},
{
- "prediction": "Why is this needed?",
+ "prediction": "nit: remove empty line",
"reference": "Why a separate block?"
},
{
@@ -9131,15 +9131,15 @@
"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?",
+ "prediction": "I think this should be `bip44_derivation(account_id, segwit=False)`",
"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?",
+ "prediction": "I think this should be `rbQValue01.Checked = qValue == .01f ? true : false;`",
"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`.",
+ "prediction": "I think this should be `hivev1vsphere.OSDiskSizeGB` instead of `hivev1vsphere.OSDiskSizeGB`",
"reference": "Seems a little low, but is this an installer default?"
},
{
@@ -9147,11 +9147,11 @@
"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?",
+ "prediction": "Why is this removed?",
"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.",
+ "prediction": "why is this change necessary?",
"reference": "Fixed the test; @strib want to validate that this is okay? Seems to be consistent new GC behavior."
},
{
@@ -9159,63 +9159,63 @@
"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.",
+ "prediction": "I think this should be `KBFS-2026` instead of `KBFS-2026`.",
"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`",
+ "prediction": "Why is this `readonly`?",
"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?",
+ "prediction": "Why is this change 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`",
+ "prediction": "I think this should be `@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) {`",
+ "prediction": "Why do we need to check if the splash window is destroyed?",
"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`",
+ "prediction": "I think this should be `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))`",
+ "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.",
+ "prediction": "I don't think we need a timeout 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`",
+ "prediction": "I think we should remove the `crypto/tls` package from the `agent.go` package.",
"reference": "Can you move `crypto/tls` into the block at the top with all the other stdlib imports?"
},
{
- "prediction": "why is this change needed?",
+ "prediction": "I think this should be `anomalyScore` instead of `multiStepBestPredictions`",
"reference": "What is the motivation for this change?"
},
{
- "prediction": "I think this should be `retry` instead of `retry`?",
+ "prediction": "I don't think we should retry if there is a transient failure.",
"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);`",
+ "prediction": "I think this should be `Status::SemanticError(\"Multiple paths not supported.\");`",
"reference": "The data structure of `MatchClauseContext` may need to be redesigned."
},
{
- "prediction": "Why is this change needed?",
+ "prediction": "why not use `go chan` here?",
"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.",
+ "prediction": "Metrics/LineLength: Line is too long. [92/80]",
"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`.",
+ "prediction": "I think this should be `org.sun.glassfish.gmbal.ManagedObject`",
"reference": "JMX offers normal APIs for this. I don't think you want the glassfish one."
},
{
@@ -9223,107 +9223,107 @@
"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`",
+ "prediction": "I think this should be `HSA_EXT_SAMPLER_ADDRESSING_MODE_NEAREST` instead of `HSA_EXT_SAMPLER_ADDRESSING_MODE_CLAMP_TO_EDGE`",
"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`",
+ "prediction": "I think this should be `fetch` instead of `fetch`",
"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.",
+ "prediction": "I think we should also check for `task.supports_noop?` instead of checking for `task.supports_noop?`",
"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?",
+ "prediction": "nit: remove empty line",
"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`",
+ "prediction": "I don't think this test is necessary.",
"reference": "why should unknown raise a 403?"
},
{
- "prediction": "I think this should be `if (c._nextState == c.state) s = assign({}, c.state, c._nextState);`",
+ "prediction": "I don't think this is correct. `c._nextState = c.state;` is the same as `c._nextState = c.state;`",
"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`",
+ "prediction": "I think this should be `500` instead of `500`.",
"reference": "nit: align the leftmost quotes"
},
{
- "prediction": "I think this should be `10351` instead of `10351`.",
+ "prediction": "I don't think we need to add this to the `AgentConfig` struct, since it's only used by the agent to run a gossip-based cluster membership protocol.",
"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`",
+ "prediction": "Why is this needed?",
"reference": "can you use FilterCodec instead?"
},
{
- "prediction": "I think this should be `A4` instead of `Letter`",
+ "prediction": "I don't think this is a good idea, but I think it would be better to use `Setting.TYPE_STRING` instead of `Setting.TYPE_STRING`.",
"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.",
+ "prediction": "I think this should be `db_schema_version_2`",
"reference": "I think this migration should fail for MDBX if it uses old table names"
},
{
- "prediction": "Line is too long. [92/80]",
+ "prediction": "I think we should check if the file exists and if it does not exist.",
"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`",
+ "prediction": "I think we should add a `LoadConfiguration` method to the `SetupLoadConfigurationBuilder` class, so that we don't need to pass `true` to the `LoadConfigurationBuilder` class.",
"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?",
+ "prediction": "Why is this public?",
"reference": "This is used in o.a.l.sandbox.search.PhraseWildcardQuery."
},
{
- "prediction": "I think this should be `protocolView` instead of `protocolView`",
+ "prediction": "I think this should be `protocol.Dock` instead of `protocol.Dock`",
"reference": "view should be loaded on start for both statedb and factory"
},
{
- "prediction": "Why is this removed?",
+ "prediction": "I think this should be `private static readonly Task _readInputContinuation;`",
"reference": "Why rename? Just curious..."
},
{
- "prediction": "I think this should be `View.VISIBLE`.",
+ "prediction": "I think this should be `View.GONE` instead of `GONE`.",
"reference": "Is this needed? I think it calls the super function that already does that."
},
{
- "prediction": "Why do we need this?",
+ "prediction": "I think this should be `if self.reg_class_agnostic else bboxes`",
"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.",
+ "prediction": "This example is used in `gocloud.dev/howto/sql/#aws` but not in `gocloud.dev/howto/sql/#aws`",
"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.",
+ "prediction": "why not use static imports?",
"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));`",
+ "prediction": "I don't think we need to do this in the base class, since it's only used in the base class.",
"reference": "nit: allocate the list using the number of processors."
},
{
- "prediction": "Why is this change needed?",
+ "prediction": "I think this should be `javaClasses.length` instead of `initializedClasses.length`",
"reference": "Was this change triggered by baseline?"
},
{
- "prediction": "Metrics/LineLength: Line is too long. [132/120]",
+ "prediction": "Metrics/LineLength: Line is too long. [89/80]",
"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)`",
+ "prediction": "I think this should be done in the `onCreate` method.",
"reference": "Setting browser based login as the default for `RestAPIExplorer`."
},
{
- "prediction": "I think this should be `SplitInfo::Size(max_cat_threshold);`",
+ "prediction": "I think this should be `input_buffer_.resize(splitInfoSize * 2);`",
"reference": "maybe we can do this in Init function?"
},
{
- "prediction": "I think this should be `request.GetRequestId() > wh.config.MaxIDLengthLimit()`",
+ "prediction": "I think this should be `len(request.GetRequestId()) > wh.config.MaxIDLengthLimit()`",
"reference": "How about if request ID not set, service should generate a random uuid?"
},
{
@@ -9331,31 +9331,31 @@
"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)`",
+ "prediction": "I don't think this is right, but I think it would be better to raise a `TaurusConfigError` instead of a `TaurusConfigError`.",
"reference": "It would be nice to have exception dumped somewhere (debug logs, info logs)."
},
{
- "prediction": "I think this should be `MessageAs` instead of `MessageAs`.",
+ "prediction": "I think this should be `MessageAs(m *Message, i interface{})`",
"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`.",
+ "prediction": "I think this should be `GROUP_MEMBERS` instead of `GROUP_USERS`.",
"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\"])`",
+ "prediction": "I don't think we need to do this, but I think it's better to do `file_dict.get(\"path\", path_exc)`. I think it's better to do `file_dict[\"path\"] = file_dict.get(\"path\", file_dict.get(\"path\", file_dict.get(\"path\", file_dict.get(\"path\", file_dict.get(\"path\", file_dict.get(\"path\", path_exc))`",
"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']; }`",
+ "prediction": "I think this should be `public`",
"reference": "@bennothommo can you revert this section? It shouldn't be required."
},
{
- "prediction": "Do we need this?",
+ "prediction": "I think we should use `self.created_at.month >= 10` instead of `self.created_at.month >= 10`",
"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)`",
+ "prediction": "I think this should be `assert not os.path.exists(buildfilepath)` and not `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."
},
{
@@ -9363,31 +9363,31 @@
"reference": "I think we don't need synchronization here."
},
{
- "prediction": "I don't think we need to change this to `unauthenticated`",
+ "prediction": "I don't think this is correct. The `unauthenticated` request should be a valid request, not an unauthenticated request.",
"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?`",
+ "prediction": "I think this should be `unless record.frozen?` instead of `unless record.persisted?`",
"reference": "Maybe this `if` should be on line 118?"
},
{
- "prediction": "I think this should be `int64` instead of `int64`.",
+ "prediction": "I think we should use `int64` instead of `int64` here.",
"reference": "Cool. (I thought I had fixed this already in #812.)"
},
{
- "prediction": "I don't think this is needed anymore.",
+ "prediction": "I don't think we need to freeze the interpreters here.",
"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']`",
+ "prediction": "I think this should be `fifo.write(message-info \"stdin closed\\n\")`",
"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`",
+ "prediction": "(style) code indent should use tabs where possible",
"reference": "Did you file a bug to follow up on this?"
},
{
- "prediction": "I think this should be `!batchReadsSparkSessionConf ? false : batchReadsSparkSessionConf;`",
+ "prediction": "I think this should be `!batchReadsSparkSessionConf && !batchReadsSparkSessionConf`",
"reference": "Looks like these 4 lines didn't actually change. Can you revert the whitespace changes here?"
},
{
@@ -9395,19 +9395,19 @@
"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()`",
+ "prediction": "I think we should use `UtilIT.publishDataverseViaNativeApi(dataverseAlias, apiToken);` instead of `UtilIT.publishDatasetViaNativeApi(dataverseAlias, apiToken);`",
"reference": "It would be nice to fix the indentation above."
},
{
- "prediction": "I think this should be `[OpenSSLCertificate|false, 'short_names='=>'bool|null]'`",
+ "prediction": "I don't think this is correct. `OpenSSLCertificate|string` is a `string` object, so I think it should be `OpenSSLCertificate|string|null` instead of `OpenSSLCertificate|string`",
"reference": "`short_names` is still optional, so `=` that indicates it has to stay there."
},
{
- "prediction": "I think this should be `appendEFSCapabilities`",
+ "prediction": "I think this should be `appendEFSCapabilities(capabilities []*ecs.Attribute) []*ecs.Attribute` instead of `appendEFSCapabilities(capabilities []*ecs.Attribute) []*ecs.Attribute`",
"reference": "missing calling of this method"
},
{
- "prediction": "I think this should be `deployCfn` instead of `archerCfn`",
+ "prediction": "I think this should be `aws/aws-sdk-go/service/cloudformation`",
"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."
},
{
@@ -9415,11 +9415,11 @@
"reference": "`StressChaos` does not contains a field .spec.action"
},
{
- "prediction": "Why is this change needed?",
+ "prediction": "I think this should be `a([\"a\" => b(\"hello\")]);`",
"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])`",
+ "prediction": "I think this should be `sizeof(a) / sizeof(a[0])`",
"reference": "I this used anyplace?"
},
{
@@ -9427,19 +9427,19 @@
"reference": "Why was this change required?"
},
{
- "prediction": "I think this should be `protected final boolean missingAdminRole;` or `protected final boolean missingAdminRole;`",
+ "prediction": "I think this should be `@Nullable`.",
"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?",
+ "prediction": "Why not use `_bb.order(ByteOrder.LITTLE_ENDIAN);` instead of `_bb.position(4);`?",
"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`.",
+ "prediction": "I think this should be `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'`",
+ "prediction": "I don't think we need to change this. It's not related to this PR, but it's not related to this PR, but it's not related to this PR, but it's not related to this PR.",
"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?"
},
{
@@ -9447,23 +9447,23 @@
"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`",
+ "prediction": "I think this should be `10 * time.Millisecond` instead of `10 * time.Millisecond`.",
"reference": "Is this too frequent?"
},
{
- "prediction": "I think this should be `zip` instead of `csv`",
+ "prediction": "I think this should be `[csv, zip]`",
"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`",
+ "prediction": "I don't think we need to import `SocksClientLayer` here.",
"reference": "Needs to be mentioned in `__all__` below."
},
{
- "prediction": "(style) line over 80 characters",
+ "prediction": "I think this should be `is_repeat_handle_pre_extended_syscall_sigmask`",
"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`",
+ "prediction": "I think this should be `List splitOffsets()` instead of `List splitOffsets()`.",
"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.\""
},
{
@@ -9471,19 +9471,19 @@
"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`",
+ "prediction": "I think this should be `if (err != 0) { fprintf(stderr, \"[OCSP Stapling] pthread_create for ocsp_updater_thread failed. errno:%d\\n\", err); }`",
"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.",
+ "prediction": "I don't think we need to add these to the `TagmanagerSetup` class.",
"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')`",
+ "prediction": "I think we should use `Blockly.compareStrings(str1, str2, sensitivity: 'base')` instead of `Blockly.compareStrings(str1, str2, 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?",
+ "prediction": "I don't think we need to check if `DbCfg.Host` is empty.",
"reference": "1. `0` is redundant. 2. We should save result of `strings.LastIndex(DbCfg.Host, \":\")` to a variable and reuse."
},
{
@@ -9491,63 +9491,63 @@
"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?",
+ "prediction": "I think we should use `errors.Wrapf(err, \"failed to unmarshal connection config\")` instead of `errors.Wrapf(err, \"failed to unmarshal connection config\")`",
"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`",
+ "prediction": "why is this change needed?",
"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)`",
+ "prediction": "I don't think we need to call `GetConsoleWindow` here.",
"reference": "Which windows gets activated? A random other window?"
},
{
- "prediction": "I think this should be `if event.SpecVersion() != cloudevents.VersionV03 {`",
+ "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`",
+ "prediction": "I think this should be `write.watermark.field.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`.",
+ "prediction": "I don't think we need to return a `ResolvedReadersMap` here.",
"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?",
+ "prediction": "I don't think we need to check `mongoClient.s.options.cryptdConnectionString != null` here.",
"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()`",
+ "prediction": "I think this should be `if tls_start.context.client.sni is not None`",
"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.",
+ "prediction": "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)`",
+ "prediction": "I don't think this is needed.",
"reference": "it have no sense in python -> it makes no sense in python"
},
{
- "prediction": "I think this should be `openvpnPort` or `openvpnPort`?",
+ "prediction": "I think this should be `openvpnPort` instead of `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?",
+ "prediction": "Why is this change needed?",
"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')`",
+ "prediction": "I think this should be `expect(PlanFinder).to have_received(:where).with(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?",
+ "prediction": "why remove this?",
"reference": "We need to do the same for edgecore"
},
{
- "prediction": "I think this should be `waitHandle.Set(true);`",
+ "prediction": "I think this should be done in a separate PR.",
"reference": "This fix has nothing to do with the product change. Just a fix I am making for the test issue."
},
{
@@ -9559,7 +9559,7 @@
"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));`",
+ "prediction": "I think this should be in the base class.",
"reference": "What happens if there is no NIB/XIB with that name?"
},
{
@@ -9567,55 +9567,55 @@
"reference": "this is not necessary?"
},
{
- "prediction": "I think this should be `asmauthres` and `asmsecretres`",
+ "prediction": "I don't think we need to import the `asmauthres` and `asmsecretres` here.",
"reference": "typo: `asmsecrets \"github...`"
},
{
- "prediction": "Why not just return `wp_json_decode( $allowed );`?",
+ "prediction": "I think we should use `wp_json_decode` instead of `wp_json_encode` here.",
"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{}`",
+ "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`",
+ "prediction": "I don't think we need the `hostname` argument anymore.",
"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) }`",
+ "prediction": "I think this should be `log.Errorf` instead of `log.Errorf`",
"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`",
+ "prediction": "I don't think we should return an error if the address is invalid.",
"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`.",
+ "prediction": "I think this should be `public static final`",
"reference": "Why does VirtualMachineMetrics have to implement Metric?"
},
{
- "prediction": "Why is this change needed?",
+ "prediction": "Why is this change necessary?",
"reference": "line is 121 characters"
},
{
- "prediction": "I think we should use `name.slice(0, 2) === 'on'` instead of `name.slice(0, 2) === 'on'`",
+ "prediction": "I think this should be `if (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))`",
+ "prediction": "Why is this change needed?",
"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; }`",
+ "prediction": "I think this should be `-1` instead of `-10`.",
"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{})`",
+ "prediction": "I think this should be `time.Duration{}` instead of `time.Duration{}`.",
"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`.",
+ "prediction": "Why is this change needed?",
"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?"
},
{
@@ -9623,63 +9623,63 @@
"reference": "why change the variable name at all?"
},
{
- "prediction": "I think this should be `if (vNode.actualNode === node) { return vNode; }`",
+ "prediction": "I don't think we need to check for `actualNode === node` here.",
"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`?",
+ "prediction": "I think this should be `mAccount != null && !mAccount.getReportSpamRecipient().isEmpty();`",
"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']`",
+ "prediction": "I don't think this is necessary. `manifest['application']['gecko']['id']` will always be `nil` if `manifest['application']['gecko']['id']` is `nil` and `manifest['application']['gecko']['id']` will be `nil` if `manifest['application']['gecko']['id']` is `nil`.",
"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`.",
+ "prediction": "I think this should be `[Include, Exclude]` instead of `[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`",
+ "prediction": "I think it would be better to use `None` instead of `None` here.",
"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?",
+ "prediction": "I think this should be `material-icons` instead of `material-icons`",
"reference": "seems we missed de-uglifying this one"
},
{
- "prediction": "I think this should be `NewWorkflowRetry` or `NewWorkflowCron`",
+ "prediction": "I think this should be `iota.WorkflowType` instead of `iota.WorkflowType`",
"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(' '))`",
+ "prediction": "I think this should be `keys.join('')` instead of `keys.join('')`",
"reference": "Also update line 2205 below"
},
{
- "prediction": "I think this should be `direction: \"vertical\"`.",
+ "prediction": "I think this should be `direction: {default: \"vertical\", type: String}`.",
"reference": "`direction` is referenced nowhere. Do I miss something?"
},
{
- "prediction": "I don't think we need to remove the deparam from `ember-cli-mirage`",
+ "prediction": "I don't think this is needed anymore.",
"reference": "The two places this was used have been removed so we can fully remove this dependency."
},
{
- "prediction": "Why is this removed?",
+ "prediction": "I don't think this is needed anymore.",
"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`",
+ "prediction": "I don't think we need to check if `cfg.gpu_ids` is not None.",
"reference": "We may deprecate `gpus` if `gpu_ids` is specified."
},
{
- "prediction": "I think this should be `LOG.finest(JSON.toJson(serialized.build()));`",
+ "prediction": "I think this should be `LOG.info(JSON.toJson(serialized.build()));` and not `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.",
+ "prediction": "Why do you need this?",
"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`.",
+ "prediction": "I think this should be `DirectoryExistsPolicy.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."
},
{
@@ -9691,63 +9691,63 @@
"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`",
+ "prediction": "Nit: I think we should add a `// +optional` to the end of the line.",
"reference": "Will need to think about this one. `additionalIngressRules` feels a bit opaque in terms of eventual outcome."
},
{
- "prediction": "Why is this method needed?",
+ "prediction": "Why is this public?",
"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`.",
+ "prediction": "I think this should be `CHECK_EQ(datum_num, num)`",
"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)`",
+ "prediction": "Why is this change needed?",
"reference": "missing final for the blockHash field"
},
{
- "prediction": "Line is too long. [89/80]",
+ "prediction": "I think this should be `FactoryGirl::Syntax::Methods` instead of `FactoryBot::Syntax`",
"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()`",
+ "prediction": "`float_x = x.float()` -> `float_x.pow(2).sum(1, keepdim=True).sqrt() + self.eps`",
"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`.",
+ "prediction": "I don't think this is needed anymore.",
"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)`",
+ "prediction": "Why not just `return 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`",
+ "prediction": "I think this should be `docker/api/types/volume` instead of `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",
+ "prediction": "(style) code indent should use tabs where possible",
"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\")`",
+ "prediction": "I think this method should be `@Path(\"/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`",
+ "prediction": "I think we can remove this.",
"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.",
+ "prediction": "This command should be used cautiously and only when there is an issue with the current state of the snapshot.",
"reference": "..., ...will be posted."
},
{
- "prediction": "Why is this change needed?",
+ "prediction": "I think we need to add a `header` argument to the `ShowBlock` command, since the `block` command is only used in the `ShowBlock` command.",
"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`.",
+ "prediction": "I think this should be `QUILT_DISABLE_TQDM = os.getenv('QUILT_USE_TQDM', '').lower() != '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."
},
{
@@ -9759,107 +9759,107 @@
"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']`",
+ "prediction": "I don't think we need to add `read` to `collection` as well.",
"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', '')`",
+ "prediction": "I think we should use `os.environ.get('JAVA_OPTS', '').strip()` instead of `os.environ.get('JAVA_OPTS', '').strip()`",
"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.",
+ "prediction": "remove empty line",
"reference": "Should be in the same import group."
},
{
- "prediction": "I think this should be `pkt.tls_session.tls_version or 0x0303 > 0x0200`",
+ "prediction": "I don't think this is correct. `pkt.tls_session.tls_version` should be `0x0303` and `0x0200` should be `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.",
+ "prediction": "I think this should be `org.apache.log4j.Logger` instead of `org.apache.log4j.Logger`.",
"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`.",
+ "prediction": "I think this should be `STATISTICAL_FILE_FORMATS_RETEST`",
"reference": "Why not just retest all? it's not expensive (I think)."
},
{
- "prediction": "Why is this changed?",
+ "prediction": "I don't think we need to change this file, but I think we should change it to `ecr0` and `ecr0` to `ecr0`",
"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`",
+ "prediction": "I don't think this is correct. The `/opt/R` path is the same as the `/opt/R` path.",
"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?",
+ "prediction": "I think it would be better to do `traceparentCollection.First();` instead of `traceparentCollection?.First();`",
"reference": "I don't understand why this change is in this PR?"
},
{
- "prediction": "I think this should be `self.deprecation_horizon = 'blacklight 8.0'`",
+ "prediction": "I think this should be `blacklight 8.0` instead of `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)`",
+ "prediction": "I think we should remove this line.",
"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))`?",
+ "prediction": "I think this should be `panic(fmt.Sprintf(taskManagerImpl encountered MinTaskID >= MaxTaskID: %v vs %v`",
"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);`",
+ "prediction": "Why is this change needed?",
"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`.",
+ "prediction": "I think this should be disabled once MemberHidesStaticFromOuterClass is called.",
"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();`",
+ "prediction": "I think this should be `hasLongRunningReturnValue`",
"reference": "`LongRunningOperationDetailView` already has `isEmptyOperation`."
},
{
- "prediction": "I think this should be `base64.b64encode('%s:%s' % (parsed_url.username, parsed_url.password))`",
+ "prediction": "I think this should be `Authorization: Basic %s`",
"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]",
+ "prediction": "Layout/SpaceInsideHashLiteralBraces: Space inside { missing. Layout/SpaceInsideHashLiteralBraces: Space inside } missing.",
"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)`",
+ "prediction": "I think this should be `Base.rand(0..9).round(0..9)` instead of `Base.rand(0..9).round(0..9).round`",
"reference": "I believe `Base.` is unnecessary in this case, as the class already extends `Base`."
},
{
- "prediction": "Shouldn't this be `width`?",
+ "prediction": "I think we should keep the `width` and `height` in the `getImageUrl` function.",
"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`",
+ "prediction": "I don't think this is needed. `plugins.getConfig(\"api\").offline_mode` should be `undefined`.",
"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`?",
+ "prediction": "I think this should be `isset($config->Catalog->shibboleth_library_cards) && $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)`?",
+ "prediction": "I don't think we need to check `int64(o.MaxPayload) > int64(o.MaxPending)` here.",
"reference": "Should we add a warning for anything over say 8M? Just suggesting that is not recommended?"
},
{
- "prediction": "Why is this change needed?",
+ "prediction": "I think this is the only place where we use `kbpki` and not `kbpki` anymore.",
"reference": "Looks like there are no callers left of this function."
},
{
- "prediction": "I think this should be `attachStdin` instead of `attachStdin`",
+ "prediction": "I think this is the only place where `attachStdin` is used.",
"reference": "Should there still be a ` bool` trailing `showOutput`?"
},
{
- "prediction": "I think this should be `api/v1alpha1` instead of `api/v1alpha1`",
+ "prediction": "I don't think this is needed.",
"reference": "Did we can change to v1"
},
{
- "prediction": "I don't think this is needed.",
+ "prediction": "I don't think we need to pass `_ancestorComponent` to the `diffChildren` function.",
"reference": "Can you please double check that this won't break anything?"
},
{
@@ -9867,39 +9867,39 @@
"reference": "optionals, shouldn't need to be stated explicitly"
},
{
- "prediction": "I think this should be `0x51303030` and not `0x51303439`",
+ "prediction": "I think this should be `gquicVersion0 + 0x51303030 + 0x7 + iota`",
"reference": "That seems quite low - why not just 0x5130ffff?"
},
{
- "prediction": "I think this should be `repr` instead of `repr`",
+ "prediction": "I think this should be `self.repr` instead of `self.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?",
+ "prediction": "I don't think we need to check for `.first_runs_free` here, since we don't need to check for `.first_runs_free` anymore.",
"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()`",
+ "prediction": "I think this should be `protocol.ProposalPayloadTag` instead of `protocol.ProposalPayloadTag`.",
"reference": "nit: use %s for strings and %v for objects."
},
{
- "prediction": "Why did you remove this?",
+ "prediction": "Why is this removed?",
"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`",
+ "prediction": "Why is this change needed?",
"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)`",
+ "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])`",
+ "prediction": "I think this should be `Array(options[:page_ranges])` instead of `Array(options[:page_ranges])`",
"reference": "Same here. and all others."
},
{
- "prediction": "I think this should be `stacktraces/on/SIGUSR2` instead of `stacktraces/on/SIGUSR2`.",
+ "prediction": "I don't think this is needed.",
"reference": "Intentionally committed? I'm not against it, we already have a way to get goroutines without killing the process: `/keybase/.kbfs_profiles/goroutine`."
},
{
@@ -9907,23 +9907,23 @@
"reference": "I think this blank line may be removed"
},
{
- "prediction": "I don't think this is needed.",
+ "prediction": "I think it would be better to make this `return True if the bookmark was added, and False if it was removed.`",
"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`",
+ "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`.",
+ "prediction": "I don't think we need to do this in the `CloudTag.list` class, since it's only used in the `CloudTag::CloudTag` class.",
"reference": "How about YAML.load_file()"
},
{
- "prediction": "Shouldn't this be `containerDispatchStarted`?",
+ "prediction": "I think this should be `containerDispatchFail` instead of `executionStopped`.",
"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);`",
+ "prediction": "I think this should be `drmgr_unregister_tls_field(tls_idx);` and `drmgr_unregister_delete_event(tls_idx);`",
"reference": "Check the return value of the drmgr ones."
},
{
@@ -9935,59 +9935,59 @@
"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 });`",
+ "prediction": "I think this should be `command.readPreference = options.readPreference || options.readPreference || options.readPreference || options.readPreference || options.readPreference || options.readPreference || options.readPreference || options.readPreference || options.readPreference || options.readPreference || options.readPreference || options.readPreference || options.readPreference || options.readPreference || options.readPreference || options.readPreference || options.readPreference || options.readPreference;`",
"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`",
+ "prediction": "I think this should be `to + s.BlockNumber` instead of `to + s.BlockNumber`",
"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\")`",
+ "prediction": "I don't think this is a good idea, but I think it would be better to use `T().Skip(\"Racy - times out ~50% of the time running locally with --race\")` instead of `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.",
+ "prediction": "Align the elements of a hash literal if they span more than one line. Space inside } missing.",
"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.",
+ "prediction": "I don't think we need to check if the result is simulated to miss its deadline. If it is simulated to miss the result, then we don't need to schedule if the result is 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; }`",
+ "prediction": "I think this should be `lua_push(L, -1);` instead of `lua_pushnil(L, -1);`",
"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());`",
+ "prediction": "I think this should 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`",
+ "prediction": "I don't think we need to add the `-k` flag here.",
"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?",
+ "prediction": "Why is this 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)",
+ "prediction": "I think we should check if the root chunk is encrypted or not.",
"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.\")`",
+ "prediction": "This flag is for testing only. Set to true to upgrade with staging windows install media. Set to true to upgrade with 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);`",
+ "prediction": "I don't think this is needed.",
"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()}`.",
+ "prediction": "I think this should be `constexpr int32_t partitions = 6;`",
"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.",
+ "prediction": "I don't think we need to add this to the `RequestBodyTimeout` class, since it's only used in 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."
},
{
@@ -9995,47 +9995,47 @@
"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.",
+ "prediction": "Why is this change needed?",
"reference": "This change is due to `clang_format` and is not related to this PR."
},
{
- "prediction": "(style) line over 80 characters",
+ "prediction": "I don't think this is needed.",
"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`.",
+ "prediction": "I think this interface should be `@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`?",
+ "prediction": "I don't think we need to add this field to the `ManifestFileBean` as well.",
"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;`",
+ "prediction": "I think this should be `AddTxResult.Invalid` instead of `AddTxResult.Invalid`.",
"reference": "can we do that in TxValidator?"
},
{
- "prediction": "I think this should be `ServiceName string`",
+ "prediction": "Why is this change needed?",
"reference": "We definitely want some detailed and thoughtful docs being added to this type."
},
{
- "prediction": "Why is this change needed?",
+ "prediction": "I don't think we need to do this. The `NewXDPState` function is called before `NewXDPState` is called. The `NewXDPState` function is called before `NewXDPState` is called. The `NewXDPState` function is called before `NewXDPState` is called. The `NewXDPState` function is called before `NewXDPState` is called. The `NewXDPState` function is called before `NewXDPState` is called before the `NewXDPState` function is called before `NewXDPState` is called. The `NewXDPState` function is called before `NewXDPState` is called. The `NewXDPState` function is called before `NewXDPState` is called. The `NewXDPState` function is called before `NewXDPState` is called. The `NewXDPState` function is called before `NewXDPState` is called.",
"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__`?",
+ "prediction": "(style) code indent should use tabs where possible",
"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.",
+ "prediction": "I think this should be `True for ResNet, False for Houglass. Default: False`",
"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(); }`",
+ "prediction": "I think this should be `service = getDefaultService();` instead of `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`.",
+ "prediction": "I think this should be `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."
},
{
@@ -10043,23 +10043,23 @@
"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`.",
+ "prediction": "I think this should be done in a separate PR.",
"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`",
+ "prediction": "I think this should be `int(self.spark_version, \"pickle-protocol\", 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`?",
+ "prediction": "I think this should be `t.Fatalf(\"Process of options should have resolved random port to \"+ RANDOM_PORT, 0, 0, opts.Port)`",
"reference": "nit: Think it can be one line.."
},
{
- "prediction": "I don't think this is needed anymore.",
+ "prediction": "I don't think you need wildcard imports.",
"reference": "please inline imports"
},
{
- "prediction": "Why is this change needed?",
+ "prediction": "Why is this removed?",
"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."
},
{
@@ -10067,67 +10067,67 @@
"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()`",
+ "prediction": "I think this should be `KOKKOS_IMPL_CUDA_CALL(cudaMemcpyAsync(dst, src, n, cudaMemcpyDefault, s));`",
"reference": "Doesn't belong to this PR"
},
{
- "prediction": "I think this should be `registrationToken` instead of `registrationToken`",
+ "prediction": "Why is this `registrationToken` needed?",
"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`.",
+ "prediction": "I think this should be `SF_APP_FEATURE_CODE_USER_AUTH` or `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.",
+ "prediction": "I think this should be `numRekeyWorkers` instead of `8`.",
"reference": "Any particular reason for 8? I feel like we could probably handle more..."
},
{
- "prediction": "Line is too long. [82/80]",
+ "prediction": "I think this test should be `should update retry_count` instead of `retry_count`",
"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?",
+ "prediction": "I think we should add a `cancelled` class here.",
"reference": "Should the \"cancelled\" class be added regardless of the proposal's state?"
},
{
- "prediction": "Why is this removed?",
+ "prediction": "nit: remove empty line",
"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(' ');`",
+ "prediction": "I don't think this is necessary. `models = model.split(' ');` will always return `undefined` if `model` is a string.",
"reference": "Seems kinda dangerous - what if models length is different from paths length?"
},
{
- "prediction": "Why do we need prune mode here?",
+ "prediction": "Why do we need to pass `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)`",
+ "prediction": "why is this change needed?",
"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`.",
+ "prediction": "I don't think this is correct. `q == null || fcontext.base.size() == 0` is the same as `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?",
+ "prediction": "Please remove this empty line.",
"reference": "re-add the type in the annotation here"
},
{
- "prediction": "I think this should be `stderr.String()` instead of `stderr.String()`",
+ "prediction": "I think this should be `fmt.Errorf(\"%v:%v\", err, stderr.String())`",
"reference": "Could we simpify it as `cmd.Stderr = &bytes.Buffer{}`?"
},
{
- "prediction": "I think we should use `cert.NotBefore` instead of `cert.NotAfter`.",
+ "prediction": "I think this function should be renamed to `IsExpiredX509ExpiredX509`?",
"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?",
+ "prediction": "Why is this change needed?",
"reference": "File is not `goimports`-ed (from `goimports`)"
},
{
- "prediction": "I think this should be `rtol = param.Number(default=10e-6, doc=\"\"\"\")`",
+ "prediction": "I think this should be `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)."
},
{
@@ -10139,7 +10139,7 @@
"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?",
+ "prediction": "Why did you remove this?",
"reference": "Is this not required?"
},
{
@@ -10147,7 +10147,7 @@
"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`",
+ "prediction": "I don't think this is the right version of docker-compose. I think it should be `>= 17.05.0-ce` or `>= 17.05.0-ce`",
"reference": "These should both be const, not var right?"
},
{
@@ -10155,87 +10155,87 @@
"reference": "Can you catch a more specific exception here? Thanks :-)"
},
{
- "prediction": "I think this should be `ctrl.Result{}` instead of `ctrl.Result{}`",
+ "prediction": "Why is this change needed?",
"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`",
+ "prediction": "I think this should be `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.",
+ "prediction": "Why is this `site-nav`?",
"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`",
+ "prediction": "I think this should be `context.calendar.displayname` instead of `context.calendar.displayname`",
"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\")`.",
+ "prediction": "I think this should be `Swift.AnyObject` instead of `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`",
+ "prediction": "I think this should be `this.workspace_.RTL ? (marginX - this.flyoutWidth_ + statusButtonWidth) / this.workspace_.scale : this.workspace_.RTL ? (marginX - this.flyoutWidth_ + statusButtonWidth) / this.workspace_.scale : this.workspace_.RTL ? (marginX - this.flyoutWidth_ + statusButtonWidth) / this.workspace_.scale : 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`",
+ "prediction": "I don't think we need to add `W3C_MINIMIZE_WINDOW` here.",
"reference": "Update after command rename"
},
{
- "prediction": "I think we should remove the `TagManagerModuleSettings` filter from the `ModuleSettingsDetails` filter.",
+ "prediction": "I think we should remove the tagmanager filter from the list.",
"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`.",
+ "prediction": "I think this should be `flow.node.type` instead of `flow.node.type`",
"reference": "isn't AZKABAN_FLOW_VERSION_2_0 more explicit?"
},
{
- "prediction": "Why is this change needed?",
+ "prediction": "I don't think this is correct. The `default://do nothing` is the default. The `default://do nothing` is the default. The `default://do nothing` is the default. The `default://do nothing` is the default. The `default://do nothing` is the default. The `default://do nothing` is the default. The `default://do nothing` is the default.",
"reference": "Please don't leave an empty default"
},
{
- "prediction": "Please remove empty lines.",
+ "prediction": "Please remove this empty line.",
"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.",
+ "prediction": "I don't think we need the 800 lines of lines of lines of lines of lines of lines of lines of lines of lines of lines of lines of lines of lines of lines of lines of lines of lines of lines of lines of lines of lines of lines of lines of lines of lines of lines of lines of lines of lines of lines of lines of lines of lines of lines of lines of lines of lines of lines of lines of lines of lines of lines of lines of lines of lines of lines of lines of lines of lines of lines of lines of lines of lines of lines of lines of lines of lines of lines of lines of lines of lines of lines of lines of lines of lines of lines of lines of lines of lines of lines of lines of lines of lines of lines of lines of lines of lines of lines of lines of lines of lines of lines of lines of lines of lines of lines of lines of lines of lines of lines of lines of lines of lines of lines of lines of lines of lines of lines of lines of lines of lines of lines of lines of lines of lines of lines of lines of lines of lines of lines of lines of lines of lines of lines of lines of lines of lines of lines of lines of lines of lines of lines of lines of",
"reference": "You can also use `echo: false` instead. Either is fine; I'm just pointing it out."
},
{
- "prediction": "Why is this needed?",
+ "prediction": "Why remove this line?",
"reference": "what's the reason for this moved line?"
},
{
- "prediction": "I don't think we need to check if `showTitle` is true.",
+ "prediction": "I don't think we need to do this in the `getCardTextLines` function, since it's only used in the `getCardTextLines` function.",
"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?",
+ "prediction": "I think this should be `OrderByDescending(s => s.IsHidden == false);`",
"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`",
+ "prediction": "This should be `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?",
+ "prediction": "why is this skipped?",
"reference": "you can just remove this"
},
{
- "prediction": "I think we should add the `StoragePoolClaim` to the `UpgradeTask` as well.",
+ "prediction": "I think this should be `upgrade-cstor-storage-pool-claim`",
"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?`",
+ "prediction": "I think this should be `<%= render 'locked_features' %>`",
"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-'`",
+ "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`",
+ "prediction": "I think this should be `PathUtils.GetExecutingDirectory();`",
"reference": "basepath can be absoluta path and this needs to be supported"
},
{
@@ -10243,7 +10243,7 @@
"reference": "Didn't get to the commit message"
},
{
- "prediction": "Layout/EmptyLinesAroundClassBody: Extra empty line detected at class body end.",
+ "prediction": "Layout/EmptyLinesAroundClassBody: Extra empty line detected at class body beginning.",
"reference": "What about raising `ActionView::MissingTemplate` instead? That's what HighVoltage does."
},
{
@@ -10251,39 +10251,39 @@
"reference": "Is it kept for compatibility?"
},
{
- "prediction": "I think we should return `address.Undef` instead of `address.Undef` here.",
+ "prediction": "I think we should use `account.SignerAddress` instead of `account.SignerAddress`",
"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.",
+ "prediction": "I don't think this is needed.",
"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.",
+ "prediction": "Why is this change needed?",
"reference": "What about method name itself? Do we run this for SQL too?"
},
{
- "prediction": "Why is this change needed?",
+ "prediction": "I don't think this is 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) {`",
+ "prediction": "Why is this needed?",
"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\")`",
+ "prediction": "I think this should be `getNotImplementedString(\"SurfaceNamer.getMetadataIdentifier\")`",
"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);`",
+ "prediction": "I think we should make this `final` as well.",
"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()`.",
+ "prediction": "I think it would be better to throw an UnsupportedOperationException if the operation is not supported.",
"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()`",
+ "prediction": "I think this should be `if response_headers is not None`",
"reference": "we can replace `for` with `params.update(response_headers)`"
},
{
@@ -10291,11 +10291,11 @@
"reference": "Any chance this is available in .NET Core 2.0 now?"
},
{
- "prediction": "Why is this needed?",
+ "prediction": "why is this removed?",
"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?",
+ "prediction": "I think this should be `#include \"lbann/execution_contexts/sgd_execution_context.hpp\"`.",
"reference": "Why do we need both includes here?"
},
{
@@ -10303,27 +10303,27 @@
"reference": "SmartStoreInspectorTest expected results in a certain order"
},
{
- "prediction": "Shouldn't this be `LBANN_ERROR`?",
+ "prediction": "I think this should be `LBANN_ERROR(\"previously retrieved a random conduit node from data_store, so shouldn't be here\")`",
"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; }",
+ "prediction": "I think this should be `isUsedLocalVarWithoutInitializer(entry, result.usedVariables);`",
"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`",
+ "prediction": "I think this should be `Long.MAX_VALUE` instead of `Long.MAX_VALUE`.",
"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]`",
+ "prediction": "I think this should be `fmt.Sprintf(\"%q\", len(msg)-len_CR_LF)`",
"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)`",
+ "prediction": "I think this should be `timedelta(days=30) if mins is not None else timedelta(days=90) if mins is not None else timedelta(days=30) if mins is not None else timedelta(days=90) if mins is not None else timedelta(days=30)",
"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?",
+ "prediction": "I think we should check for `AbstractRememberMeServices` instead of `AbstractRememberMeServices`",
"reference": "Please use a tab for indentation instead of spaces."
},
{
@@ -10331,15 +10331,15 @@
"reference": "I can't believe we didn't see this typo before :))"
},
{
- "prediction": "I think this should be `logging.get_logger(__name__)`",
+ "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'`",
+ "prediction": "I think this should be `script.src = '{}'`",
"reference": "These files should in `/javascript/brython`"
},
{
- "prediction": "I think this should be `if imageAlpha != nil && imageAlpha.Deprecated != nil && imageAlpha.Deprecated.StateOverride != nil {`",
+ "prediction": "I don't think we need to check `imageAlpha.Deprecated != nil` here.",
"reference": "minor, you can squash these into one `if`"
},
{
@@ -10347,27 +10347,27 @@
"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) {`",
+ "prediction": "I think this should be `!GraphSummary.Disposing && !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`",
+ "prediction": "I don't think this is correct. The `reg_decoded_bbox` argument 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); }`",
+ "prediction": "Why is this removed?",
"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. ",
+ "prediction": "Metrics/LineLength: Line is too long. [89/80]",
"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\")`",
+ "prediction": "I think this should be `HTTPSchemeHTTP` or `HTTPSchemeHTTPS`",
"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`",
+ "prediction": "I think this should be `Task CopyToAsync(Stream destination);`",
"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."
},
{
@@ -10375,15 +10375,15 @@
"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());`",
+ "prediction": "I think this should be `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());`",
+ "prediction": "I think this is a good idea to remove the view table from the table map. I think it would be better to just remove the view table from the table map and then remove it from the table map.",
"reference": "should we add a TODO here?"
},
{
- "prediction": "Why is this change needed?",
+ "prediction": "Why is this needed?",
"reference": "This can be inlined below as `GoogleSitekitDashboardDetails` is an unnecessary wrapper now."
},
{
@@ -10391,19 +10391,19 @@
"reference": "NewVHS -> NewVersionHistories this one looks better"
},
{
- "prediction": "I think we should use `executable_path` instead of `binary_path`",
+ "prediction": "I don't think we need to set `missing_text` to `nil` here.",
"reference": "Is this `@missing_text` ?"
},
{
- "prediction": "I think this should be `subpackage_name_format = r\"[\\w-]+/[\\w-]+)(?:/(.+))?$\"",
+ "prediction": "I don't think this is correct. `subpackage_name_format` should be `subpackage_name_format` and `subpackage_subpackage_name_format` should be `subpackage_name_format`",
"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')`?",
+ "prediction": "I think we should use `this.props.i18n('editing')` instead of `this.props.i18n('finishEditingFile')`",
"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;`",
+ "prediction": "I don't think this is correct. The `pglob.gl_pathv[i]` will be NULL if `pglob.gl_pathc == 0` and `pglob.gl_pathv[i] == NULL`.",
"reference": "Probably want break instead of continue."
},
{
@@ -10411,47 +10411,47 @@
"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()`.",
+ "prediction": "I think this should be `Stream.empty()` instead of `Stream.empty()`.",
"reference": "does adding a `Stream.empty()` help here?"
},
{
- "prediction": "I think this should be `ALL_EXIST`.",
+ "prediction": "I don't think this is needed.",
"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())`",
+ "prediction": "I think this should be `fmt.Sprintf(\"%sIP strings: %s\", p.ipStrings, p.ipv4.String())`",
"reference": "Is it called some where?"
},
{
- "prediction": "I think this should be `_` instead of `reflect`",
+ "prediction": "I think this should be `reflect` instead of `_`.",
"reference": "Please remove this extra blank line."
},
{
- "prediction": "Why is this change needed?",
+ "prediction": "I don't think we need to change input files to input files.",
"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`",
+ "prediction": "I think this test should be in a separate PR.",
"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;`",
+ "prediction": "Is this needed?",
"reference": "nit: please move these inside namespace."
},
{
- "prediction": "I think this should be `debug` instead of `debug`",
+ "prediction": "I don't think we need to add this flag to `cli.Flag` as it's not used anywhere else.",
"reference": "may users try to abuse it?"
},
{
- "prediction": "I think this should be `new_buf_size = nbb.capacity();`",
+ "prediction": "I don't think this is right. The buffer's `limit()` is the same as the buffer's `capacity()`. The buffer's `limit()` is the same as the buffer's `capacity()`. I think it should be `nbb.limit()` instead of `new_buf_size`.",
"reference": "why is this space removed?"
},
{
- "prediction": "I think this should be `go:build !windows`",
+ "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`",
+ "prediction": "I think this should be `qutebrowser/misc/cmdhistory.py`",
"reference": "There's a comma missing here at the end :wink:"
},
{
@@ -10459,51 +10459,51 @@
"reference": "Why is this not required any longer?"
},
{
- "prediction": "I think this should be `paginater` or `paginater`",
+ "prediction": "Why is this needed?",
"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\")`",
+ "prediction": "Shouldn't this be `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)`?",
+ "prediction": "Why is this change needed?",
"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;`",
+ "prediction": "I think this should be `vk_khr_timeline_semaphore ? SubmitError::kTimelineCannotBeSignalled : SubmitError::kBinaryCannotBeSignalled` instead of `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`.",
+ "prediction": "I think this should be `Optional[Percentiles]` instead of `Optional[Percentiles]`.",
"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.",
+ "prediction": "Layout/EmptyLinesAroundClassBody: Extra empty line detected at class body end.",
"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`",
+ "prediction": "I think this should be `routetable.TargetTypeNoEncap` and `routetable.TargetTypeBlackhole`",
"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.",
+ "prediction": "I don't think we need to do this in the `if cart.proposal.client_data_legacy.client == \"ncr\"` block.",
"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)`",
+ "prediction": "I don't think we need to log the rules here, but I think it would be better to use `LogRules(\"Pets:LivelikeBreakCharmOnInvis\", GetCleanName(), invisible, invisible, invisible_undead);` instead of `LogRules(\"Pets:LivelikeBreakCharmOnInvis\", GetCleanName(), invisible, invisible, invisible_undead, invisible_undead);`",
"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 `_`?",
+ "prediction": "Why is this needed?",
"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`",
+ "prediction": "I think this should be done in the `onPlaybackEnded` method, not in the `MediaBrowserServiceCompat` class.",
"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());`",
+ "prediction": "I think this should be `QX11Info::connection()` instead of `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?"
},
{
@@ -10511,7 +10511,7 @@
"reference": "This class can be removed?"
},
{
- "prediction": "Why is this needed?",
+ "prediction": "nit: remove empty line",
"reference": "File is not `goimports`-ed (from `goimports`)"
},
{
@@ -10519,15 +10519,15 @@
"reference": "To minimize the possibility of regret, perhaps we name this `ZapLogger`."
},
{
- "prediction": "Line is too long. [89/80]",
+ "prediction": "I think we can remove the `current_user.plan_name` argument from `IntercomRails.config` as well.",
"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?",
+ "prediction": "I think this should be `from nupic.algorithms import Anomaly` or `from nupic.algorithms import Anomaly`",
"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];`",
+ "prediction": "I don't think this is necessary. `target` is a `Node` object, so it should be a `Node` object, not a `Node` object.",
"reference": "We needed this testutils file after all "
},
{
@@ -10535,11 +10535,11 @@
"reference": "line is 161 characters (from `lll`)"
},
{
- "prediction": "I think this should be `pkg/controllerutils.go` and not `pkg/controllerutils.go`.",
+ "prediction": "nit: remove empty line",
"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)`",
+ "prediction": "Why do we need to call `ApplyWorkerCustomizations` here?",
"reference": "minor, you can just use `wf` instead of `worker.wf`"
},
{
@@ -10547,63 +10547,63 @@
"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`",
+ "prediction": "I don't think this is needed anymore.",
"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`.",
+ "prediction": "I don't think this is correct. The `OTel Exporter` is the only one that is used.",
"reference": "a official -> an official"
},
{
- "prediction": "Why is this needed?",
+ "prediction": "I think this should be `if action == 'RegisterStreamConsumer' and config.KINESIS_PROVIDER == 'kinesalite':`",
"reference": "I only want the proxy request for this to run for kinesalite."
},
{
- "prediction": "Why is this change needed?",
+ "prediction": "Why change this?",
"reference": "White space boya?"
},
{
- "prediction": "I think this should be `StackSummary` instead of `StackSummary`.",
+ "prediction": "Nit: I think this should be `StackSummary` instead of `StackDescription`.",
"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.",
+ "prediction": "I think this should be `label_bias`",
"reference": "suggest to indicate the value range & meaning in docstring"
},
{
- "prediction": "I think this should be `/metrics/index` instead of `/metrics/index.html`",
+ "prediction": "I think this should be `/metrics/` instead of `/metrics/`.",
"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?",
+ "prediction": "Why is this needed?",
"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)`",
+ "prediction": "I think this should be `findNvidiaContainerRuntimes` instead of `findNvidiaContainerRuntimes`",
"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`",
+ "prediction": "I think this should be `var dotRegex = /\\{\\{\\{.+?\\}\\}\\}/g;`",
"reference": "IMO `dot` should be preferred. Remember `aXe`?"
},
{
- "prediction": "I think this should be `Console.ReadLine();` instead of `Console.ReadKey();`",
+ "prediction": "I think this should be `return 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?",
+ "prediction": "Why is this 2?",
"reference": "Could you make it a local constant for now ?"
},
{
- "prediction": "I think this should be `isinstance(value, six.string_types)`",
+ "prediction": "Shouldn't this be `str(value)`?",
"reference": "What is this `collection_id` field here?"
},
{
- "prediction": "Why is this change needed?",
+ "prediction": "I think this should be `print(msg)`.",
"reference": "Is there a reason why we don't use logging for this?"
},
{
- "prediction": "Why not use `\\Throwable` instead of `\\Throwable`?",
+ "prediction": "I think this should be `Exception` instead of `Exception`.",
"reference": "Exceptions should be placed in application layer -> infrastructure is aware of application - not the other way around"
},
{
@@ -10611,107 +10611,107 @@
"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`.",
+ "prediction": "I don't think this is needed.",
"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.",
+ "prediction": "Layout/EmptyLinesAroundClassBody: Extra empty line detected at class body end.",
"reference": "How should we set this for existing teams?"
},
{
- "prediction": "I think this should be `testClusterProvisionWithInfraIDSet()`",
+ "prediction": "I think this should be `expectError: true`",
"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?",
+ "prediction": "Why is this removed?",
"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.",
+ "prediction": "I don't think this is correct. The `nupic-logging.conf` file is already in the `nupic-config.xml` file, so I think it should be `nupic-config.xml`",
"reference": "Reflects where these files were moved for `pkg_resources`."
},
{
- "prediction": "I think we should use `i18n` instead of `i18n`",
+ "prediction": "I don't think we need to use `computed` here.",
"reference": "This should be computed('i18n.locale'...."
},
{
- "prediction": "Is there a reason why we need to override it for the test?",
+ "prediction": "Is there a reason we don't need to override it for us?",
"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`",
+ "prediction": "I don't think this is needed anymore.",
"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)`",
+ "prediction": "I think this should be `(string, *metrics.Event)` instead of `(string, *metrics.Event)`.",
"reference": "Not sure how useful is unlock event."
},
{
- "prediction": "I think we should use `lowercaseFields` instead of `lowercaseFields`",
+ "prediction": "I think we should use `lowercaseFields` instead of `lowercaseFields` here.",
"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)`?",
+ "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.",
+ "prediction": "Why is this removed?",
"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`",
+ "prediction": "I think this should be `Result(bool value)` instead of `Result(bool value)`",
"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`?",
+ "prediction": "I think this should be `_context.DbProvider.BlockInfosDb` 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?",
+ "prediction": "Shouldn't this be `this.hot.selection.transformation.addLocalHook('afterTransformStart', (...args) => this.onAfterLocalTransformStart(...args));`?",
"reference": "Could you replace local hook with global hook `afterModifyTransformStart`?"
},
{
- "prediction": "I think this should be `self._files.clear()` instead of `self._files.clear()`.",
+ "prediction": "I don't think we need to call `clear()` here.",
"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)?');`?",
+ "prediction": "I think this should be `assert(typeof opt_port === 'function', 'not port(mocha callback)?');`",
"reference": "Maybe it would simpler to ignore opt_port if type !== 'number'?"
},
{
- "prediction": "Why is this `IEnumerable>` needed?",
+ "prediction": "I don't think we need to implement `IEnumerable>` here.",
"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))))))))));`), ...)), ...).).",
+ "prediction": "I think this should be `LOG.info(String.format(String.format(String.format(String.format(String.format(String.format(String.format(String.format)))))`",
"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`",
+ "prediction": "I don't think this is needed.",
"reference": "I will add the following to the list: - api.SpecScale - api.SpecSticky"
},
{
- "prediction": "Why do we need this?",
+ "prediction": "Why is this TODO removed?",
"reference": "As defaultSendPort is being removed, and I don't like TODOs on examples, please remove the whole line"
},
{
- "prediction": "Why is this removed?",
+ "prediction": "I think we should remove this test as well.",
"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`",
+ "prediction": "I think this should be `NewCounter(name, description, labels, valuesIndices)`",
"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?",
+ "prediction": "I don't think this is needed anymore.",
"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;`",
+ "prediction": "I don't think this is needed.",
"reference": "I guess this using is what causes the build to fail"
},
{
- "prediction": "I think this should be `POOL_FREE(ponyint_thread_t, b);`",
+ "prediction": "Why is this needed?",
"reference": "I like the explicit unregister approach."
},
{
@@ -10719,27 +10719,27 @@
"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)`?",
+ "prediction": "I don't think we need to check for `ActiveScope` here.",
"reference": "This allows strategic exclusion of http spans."
},
{
- "prediction": "Shouldn't this be `strictTextSearchFields`?",
+ "prediction": "I think this should be `@var string[] $strictTextSearchFields` instead of `@var string[] $strictTextSearchFields`",
"reference": "why not just `string[]` instead of nullable"
},
{
- "prediction": "I think we should use `strings.Join(e.BuildContext.BuildTags, \" \"),` instead of `\",\"`",
+ "prediction": "I don't think this is needed anymore.",
"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`",
+ "prediction": "I think this should be `Datadog-AzureAppServicesResourceId` instead of `Datadog-AzureAppServicesResourceId`",
"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);`",
+ "prediction": "Why did you remove this assert?",
"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`",
+ "prediction": "I think this should be `XFRAMES_OPTIONS` instead of `XFRAMES_OPTIONS`.",
"reference": "Maybe be consistent and name it `FRAME_OPTIONS`."
},
{
@@ -10747,159 +10747,159 @@
"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?",
+ "prediction": "remove empty line",
"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.",
+ "prediction": "I think this should be `cmd.Kill()` instead of `cmd.Kill()`.",
"reference": "Maybe 'failed' instead of 'missing'. Also do we really need to write ticket numbers here?"
},
{
- "prediction": "Why is this removed?",
+ "prediction": "Why remove this line?",
"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?",
+ "prediction": "Why not use `v.name.decode(\"UTF-8\")` instead of `v.name.decode(\"UTF-8\")`?",
"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.",
+ "prediction": "This file is not covered by the GNU General Public License.",
"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`",
+ "prediction": "I don't think this is needed anymore.",
"reference": "Oh interesting - does web-test-runner not resolve package.json files?"
},
{
- "prediction": "I think this should be `ariaMonthPrefix=\"P\u00e4iv\u00e4\"`",
+ "prediction": "I think this should be `aria-day-prefix=\"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) {`",
+ "prediction": "I don't think we need to call `component.componentWillMount()` here.",
"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`",
+ "prediction": "I think this should be `INDICES_QUERY` instead of `SOUPS_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.",
+ "prediction": "I think this should be `v1.Service` instead of `v1.Service`.",
"reference": "nit: ServiceReference represents a reference to a v1.Service."
},
{
- "prediction": "I think this should be `*[string]string` instead of `*[]string`",
+ "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\".",
+ "prediction": "I think this should be `RuntimeTLP` instead of `Runtime`",
"reference": "Can we avoid this. upgrade engine code should take care of this."
},
{
- "prediction": "I think this should be `DEFAULT_TOKEN_EXP_MINUTES`",
+ "prediction": "I don't think this is a good default value.",
"reference": "should also be alphabetized or at least grouped and alphabetized within group"
},
{
- "prediction": "Why is this needed?",
+ "prediction": "I think this should be `# pylint: enable=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 `errUnmarshalCountOpts` and `errUnmarshalBuildOpts` and `errUnmarshalCountOpts`",
+ "prediction": "I don't think we need to change the error message to something like \"can't unmarshal count field into task count or auto scaling config\" or \"can't unmarshal count field into task count or auto scaling config\"",
"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`",
+ "prediction": "I think this should be `cVR.Status.Phase = apis.CVRStatusPending` and `cVR.Status.Phase = apis.CVRStatusRecreate`",
"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`",
+ "prediction": "I don't think this is needed anymore.",
"reference": "Rename this as KubernetesGPGURL - >KubernetesUbuntuGPGURL , Modify it where ever it is used."
},
{
- "prediction": "I don't think we need this.",
+ "prediction": "I think this should be `0.0001` instead of `0.0001`",
"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 ``",
+ "prediction": "I don't think we need to add `sup` here.",
"reference": "oh yeah, `tail`, `update`, `prepend`, `append`, `subSequence`, `trim` just became effectively constant (without memory leak) :)"
},
{
- "prediction": "Why not use `is_array` here?",
+ "prediction": "I don't think we need to cast to an 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`",
+ "prediction": "I don't think we need to add this option to `caddyfile.Dispenser` as well.",
"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;`",
+ "prediction": "I think this should be `rtps::RTPSParticipantAttributes` instead of `rtps::RTPSParticipantAttributes`.",
"reference": "Why do you need to include this using declaration?"
},
{
- "prediction": "Why is this change needed?",
+ "prediction": "I don't think we need to do this change.",
"reference": "@halter73 where is this file generated from?"
},
{
- "prediction": "I think this should be `#if TRUE` instead of `#endif`",
+ "prediction": "Why is this `#if TRUE` needed?",
"reference": "What do these `#if TRUE` accomplish?"
},
{
- "prediction": "I think this should be `if (Sdk.SuppressInstrumentation && Activity.Current == null)`",
+ "prediction": "I think this should be `return;` instead of `return;`",
"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`",
+ "prediction": "I don't think this is correct. The `view_request_cta` link should be the same as the `proposal_link_text` link.",
"reference": "@jessieay Intentionally moving away from passing a param?"
},
{
- "prediction": "Why do you need this?",
+ "prediction": "Why is this change needed?",
"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?",
+ "prediction": "I don't think this is needed anymore.",
"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.\");`",
+ "prediction": "I think this should be `debug` instead of `debug`.",
"reference": "it's not just fetching override properties here, right?"
},
{
- "prediction": "I think we should log the error instead of just logging it.",
+ "prediction": "I think this should be `Debug` instead of `Info`.",
"reference": "Is it worth logging the error?"
},
{
- "prediction": "I think this should be `self.__dict__[\"ns\"]` or `self.__dict__[\"ns\"][key]`",
+ "prediction": "I don't think this is necessary. `__init__` is called from `__init__` and `__setattr__` is called from `__init__` and `__setattr__` is called from `__init__` in `__init__`.",
"reference": "What's the point of this class?"
},
{
- "prediction": "Why is this change needed?",
+ "prediction": "I think this should be `!= 'mixed'` instead of `!= 'movies'`",
"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)`",
+ "prediction": "I don't think we need to import `sysPath` from `libkbfs.go`.",
"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`",
+ "prediction": "Why is this `push_front_preference` needed?",
"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.",
+ "prediction": "Why is this change needed?",
"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?",
+ "prediction": "I don't think this is needed anymore.",
"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:`",
+ "prediction": "I think this should be `kinto.readthedocs.org/en/latest/configuration/` or `kinto.readthedocs.org/en/latest/configuration/`",
"reference": "nitpick: I wonder if we should name it `flush` only (?)"
},
{
- "prediction": "I think this should be `sonm_tasks_deals`",
+ "prediction": "I don't think we need to register the metrics here.",
"reference": "Why gauges, not counters?"
},
{
- "prediction": "why not use sysHashLen?",
+ "prediction": "I think this should be `len(sysHashLen)` instead of `len(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."
},
{
@@ -10907,19 +10907,19 @@
"reference": "Shall we rename this status to CONTAINER_FAILED? ^^ cc: @sshardool"
},
{
- "prediction": "I think this should be `Fetcher` instead of `Fetcher`",
+ "prediction": "I think this should be `FetchTipSetsList` instead of `FetchTipSetsList`",
"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)`",
+ "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?",
+ "prediction": "Why is this removed?",
"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?`",
+ "prediction": "This should be `if !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?"
},
{
@@ -10927,71 +10927,71 @@
"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`",
+ "prediction": "This should be `REWRITTEN_FILE_SCAN_TASK_SET_ID` instead of `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`.",
+ "prediction": "Is there a reason why we don't use `debug_cmd` here?",
"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 }`",
+ "prediction": "Is there a reason why we don't check the error here?",
"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`.",
+ "prediction": "I don't think we need to change the enum here.",
"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`",
+ "prediction": "Why is this needed?",
"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')`",
+ "prediction": "I think this should be `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)`?",
+ "prediction": "I think this should be `status.Error(codes.PermissionDenied, \"application cannot be synced\")` or `status.Error(codes.PermissionDenied, \"application cannot be synced\")`",
"reference": "nit: \"The current project does not have requested application\""
},
{
- "prediction": "I think this should be `[id]` instead of `[id]`.",
+ "prediction": "I think this should be `FORBIDDEN_FORBIDDEN` instead of `FORBIDDEN_FORBIDDEN`.",
"reference": "Extend Unit test for this class"
},
{
- "prediction": "I think this should be `DD_APPSEC_IPHEADER` or `DD_APPSEC_EXTRA_HEADERS`",
+ "prediction": "I think this should be `DD_APPSEC_IPHEADER`",
"reference": "This is this a copy / paste error from above."
},
{
- "prediction": "I think this class should be `VariableTypeInterference` instead of `VariableTypeInterference`.",
+ "prediction": "I think this class should be renamed to `VariableVariable`.",
"reference": "this package has to be renamed to `typeinference`"
},
{
- "prediction": "Shouldn't this be `assertEqual(user.providerType, \"anon-user\")`?",
+ "prediction": "I think this should be `TestCase.assertEqual(user.providerType, \"anon-user\");`",
"reference": "This cancels the above null-check I guess."
},
{
- "prediction": "Why is this change needed?",
+ "prediction": "I think this should be `RPOP_TIMER_INTERVAL_IN_MINIS` instead of `RPOP_TIMER_INTERVAL_IN_MILLIS`.",
"reference": "change to timerIntervalInMillis"
},
{
- "prediction": "I think this should be `role_none_comment` instead of `role_none_comment`.",
+ "prediction": "I think this should be `None` or `None_comment`.",
"reference": "`any rules` should be `any roles`"
},
{
- "prediction": "Why not use `FeedItemFilter.filter(DBReader.getRecentlyPublishedEpisodes(0, page * EPISODES_PER_PAGE, feedItemFilter));`?",
+ "prediction": "Why not use `FeedItemFilter.filter(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)`",
+ "prediction": "I think this should be `keyconf.KeyConfigParser(None, None)` instead of `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.",
+ "prediction": "Why remove this?",
"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.",
+ "prediction": "why not just use the `Power` field?",
"reference": "uint64 seems excessive here. Should we reduce to a uint32 @whyrusleeping ?"
},
{
@@ -10999,63 +10999,63 @@
"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)`",
+ "prediction": "I think this should be `remoteHost := 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)`",
+ "prediction": "I don't think we need to call `grantFoundationBonus(epochNum)` here.",
"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)`.",
+ "prediction": "Why is this change needed?",
"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`.",
+ "prediction": "I don't think we should change the error message to \"Error reloading permissions file. Please use perm_getAccountsWhitelist and perm_getNodesAllowlist to review the current state of the whitelists\"",
"reference": "Is the plan to rename this later?"
},
{
- "prediction": "Why not use `!in_array($this->strategy, $this->strategies) {` here?",
+ "prediction": "I think this should be `!empty($this->strategies))`",
"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\")`.",
+ "prediction": "I think this should be `if len(dir) == 0`",
"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;`",
+ "prediction": "I think this should be `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`",
+ "prediction": "why is this change needed?",
"reference": "also check RPCName?"
},
{
- "prediction": "I don't think we need to add this to the `WebSessionOAuth2ServerAuthorizationRequestRepository` class.",
+ "prediction": "I think we should move this to the `ServerOAuth2ServerAuthorizationRequestRepository` as well.",
"reference": "Remove unused import"
},
{
- "prediction": "why is this flag set to `false`?",
+ "prediction": "Why do we need to set restartFds 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());`",
+ "prediction": "I think this should be `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?",
+ "prediction": "I don't think this is needed anymore.",
"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 = [];`",
+ "prediction": "I think this should be `cleanArguments(args);`",
"reference": "Why do this rather than `args = []` in the function signature?"
},
{
- "prediction": "I don't think we need to freeze the features here.",
+ "prediction": "I think this should be `PROVIDED_FEATURES = ['puppet-agent']`",
"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:`",
+ "prediction": "I don't think we need to do this, but I think we should just do `self.data = [self.data, other.data]`",
"reference": "@StrikerRUS here may need to concat two data by col."
},
{
@@ -11067,59 +11067,59 @@
"reference": "please resolve the extra indentation"
},
{
- "prediction": "Why is this change needed?",
+ "prediction": "I don't think we need the `!ReferenceEquals(document.Settings.PeptideSettings.Libraries, previous.Settings.PeptideSettings.Libraries);` here.",
"reference": "More proof that this check is needed always."
},
{
- "prediction": "Why do we need to clear the al_comms?",
+ "prediction": "Why is this removed?",
"reference": "`m_al_comms` now contains smart pointers."
},
{
- "prediction": "I think this should be `Instance.QuoteValue(defaultValue);` and not `Instance.QuoteValue(defaultValue);`",
+ "prediction": "I think this should be `Instance.QuoteValue(defaultValue);` instead of `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()`.",
+ "prediction": "I think this should be `return c.nc.RemoteAddr()`.",
"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?",
+ "prediction": "I think this is a breaking change, but I don't think we need to change the test to assert that the number of partitions is equal to the number of partitions. I think we should change the test to assert that the number of partitions is equal to the number of partitions in the resultDf.javaRDD().getNumPartitions()",
"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.",
+ "prediction": "I don't think this is necessary. `@user.admin?` is `true` and `@user.admin?` is `false` and `@user.admin?` is `false`.",
"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;`",
+ "prediction": "I think this should be `radioMolecule.Enabled = radioMolecule.Checked;` instead of `radioMolecule.Checked = radioMolecule.Checked;`",
"reference": "Should there be any changes to this file at all?"
},
{
- "prediction": "I think this should be `autoPolicy` instead of `autoPolicy`.",
+ "prediction": "I think this should be `caddytls.AutomationPolicy`",
"reference": "The only field being used is the KeyType; Instead, we can probably just make a `keyType` variable here."
},
{
- "prediction": "Why is this needed?",
+ "prediction": "I think this should be `this.credentials = options || {};`",
"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]`.",
+ "prediction": "I think this should be `[options.features]`",
"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;`",
+ "prediction": "Why is this removed?",
"reference": "This looks like a bunch of whitespace fixing that's unrelated. Can you revert?"
},
{
- "prediction": "Why is this changed?",
+ "prediction": "Why is this removed?",
"reference": "should be removed instead"
},
{
- "prediction": "I think this test should be done in a separate PR.",
+ "prediction": "I think this test should be in a separate PR.",
"reference": "should use randomization ?"
},
{
- "prediction": "I think this should be `nil` instead of `nil`",
+ "prediction": "I think this should be `return err` instead of `return nil`",
"reference": "returning nil because we want to mayactl to exit with 0 status code."
},
{
@@ -11127,39 +11127,39 @@
"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.",
+ "prediction": "I think we can remove the flags from the enum.",
"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\")`",
+ "prediction": "I don't think we should be using resource updates here.",
"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`",
+ "prediction": "I think this should be `fmt.Sprintf(\"%s\", pdata)`",
"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\")`?",
+ "prediction": "I think this should be `attrs.get(\"current\")` instead of `attrs[\"current\"]`",
"reference": "Extraneous blank line."
},
{
- "prediction": "why not use `Sender` or `AuthAddr` instead of `Sender`?",
+ "prediction": "why do we need both Sender and AuthAddr?",
"reference": "nit: syntax : neither -> nor"
},
{
- "prediction": "I think this should be `if (spanContext is not null) {`",
+ "prediction": "Why is this change needed?",
"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`?",
+ "prediction": "Shouldn't this be \"Execution not created\"?",
"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.",
+ "prediction": "I think this should be `self` instead of `self`",
"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.",
+ "prediction": "Why remove this?",
"reference": "this check is now redundant. The rest of the function downwards basically does the same thing but with safer checks."
},
{
@@ -11167,35 +11167,35 @@
"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`",
+ "prediction": "I don't think we need to check if `arc.target < 0`",
"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\"]`",
+ "prediction": "I don't think we need to fetch the env variable here, since it's not used anywhere else.",
"reference": "Put a comma after the last parameter of a multiline method call."
},
{
- "prediction": "I think this should be `@job(version_strategy=SourceHashVersionStrategy())`.",
+ "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.",
+ "prediction": "I think this should be `clusterv1alpha3` instead of `clusterv1alpha3`",
"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`?",
+ "prediction": "I think this should be `time()` instead of `time()`.",
"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)`?",
+ "prediction": "I think this should be `ElementReferenceException` instead of `StaleElementReferenceException`.",
"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`.",
+ "prediction": "I think this should be `#ifdef KOKKOS_ENABLE_CUDA` instead of `#ifdef KOKKOS_ENABLE_CUDA`",
"reference": "I assume this came from format?"
},
{
- "prediction": "I think this should be `@var boolean $clearSearchIndex = true;`",
+ "prediction": "I think this should be `@private`.",
"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."
},
{
@@ -11203,35 +11203,35 @@
"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`.",
+ "prediction": "I think this should be `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?",
+ "prediction": "I think this should be `from .test_permission import PostgresqlPermissionTest` instead of `from .test_permission import PostgresqlPermissionTest`",
"reference": "Can we use a skipIf decorator instead?"
},
{
- "prediction": "I don't think we need to add a `@return` here.",
+ "prediction": "This should be `#=> 1968353479` instead of `#=> 1968353479`.",
"reference": "Missing version tags"
},
{
- "prediction": "Do we need this?",
+ "prediction": "I think this should be `plugins.delete(:validate_resolve_reference)` instead of `plugins.delete(:validate_resolve_reference)`",
"reference": "I think this should also filter out `validate_resolve_reference` hooks."
},
{
- "prediction": "Why is this needed?",
+ "prediction": "Why is this change 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.",
+ "prediction": "I don't think this file is needed.",
"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\")`",
+ "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": "~~Should this match the key updated above?~~ :+1:"
},
{
- "prediction": "I think this should be `defer f.Close()`.",
+ "prediction": "Why is this needed?",
"reference": "`gofmt` allows a more compact form `defer func() { _ = f.Close() }()` or just add `// nolint:errcheck` before `defer`."
},
{
@@ -11239,51 +11239,51 @@
"reference": "collateral is in FIL"
},
{
- "prediction": "I think we should use `q.channelPool.LoadOrStore(nodeID, rChannel)` instead of `q.channelPool.LoadOrStore(nodeID, rChannel)`",
+ "prediction": "why not use `q.getRChannel(nodeID, rChanBufSize)`?",
"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.",
+ "prediction": "I think this should be `[options.db] The database that the user should authenticate against`.",
"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`",
+ "prediction": "I think this should be `otherInformation` instead of `otherInformation`",
"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)`",
+ "prediction": "I don't think we need to call `start_request` and `destroy_request` here.",
"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`",
+ "prediction": "I think this should be `Content-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 {`",
+ "prediction": "I don't think we need to check if nodeConfig.NodeTransportIPv4Addr is not nil?",
"reference": "Was it a bug?"
},
{
- "prediction": "Why is this change needed?",
+ "prediction": "I don't think this is correct. `attr_value['string'] is not None` probably not required as `attr_value['string'] == value`",
"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`.",
+ "prediction": "I think this should be `_now_focused_link` instead of `_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`",
+ "prediction": "I think this should be `@invitation = Invitation.find(invitation_id).find(invitation_id).find(invitation_id).find(invitation_id).find(invitation_id).find(invitation_id).find(invitation_id).find(invitation_id).find(invitation_id).find(invitation_id).find(invitation_id).find(invitation_id).find(invitation_id).find_one)).first.find(invitation_id).find(invitation_id).find(invitation_id).find(invitation_id).find(invitation_id).find(invitation_id).find(invitation_id).find(invitation_id).find(invitation_id).find(invitation_id).find(invitation_id).find(invitation_id).find(invitation_id).find(invitation_id).first).first.find(invitation_id).first).find(invitation_id).find(invitation_id).find(invitation_id).find(invitation_id).find(invitation_",
"reference": "Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping."
},
{
- "prediction": "Is this needed?",
+ "prediction": "I think this should be `Microsoft.AzureTestUrlExtensions` instead of `Microsoft.AzureTestUrlExtensions`",
"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`",
+ "prediction": "I think this should be `NewMetricsCsi(volumeHandle, dir, csiDriverName(driverName))`",
"reference": "Is it possible to import from k8s instead of copy in? :)"
},
{
- "prediction": "Why is this change needed?",
+ "prediction": "Why not use `float` instead of `int`?",
"reference": "`@param float` can be dropped here."
},
{
@@ -11295,47 +11295,47 @@
"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`",
+ "prediction": "I think this should be `final` instead of `final`.",
"reference": "delete this class"
},
{
- "prediction": "I don't think we need to use `[1-9][0-9]+|0[1-9]$/` here.",
+ "prediction": "I think this should be `/^[0-9]+|0|[1-9]$/.test(s)`",
"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()`.",
+ "prediction": "Why is this needed?",
"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.",
+ "prediction": "I think you can remove the `OnEnd` and `OnEnd` from the pipeline.",
"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\"",
+ "prediction": "I don't think this is needed. `scapy.compat` is already imported from `scapy.compat` and `scapy.compat` is already imported.",
"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`.",
+ "prediction": "I think this should be `3600` instead of `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.",
+ "prediction": "Style/EmptyMethod: Put empty method definitions on a single line.",
"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`",
+ "prediction": "Why is this change needed?",
"reference": "Why is api-version now removed in the generated code?"
},
{
- "prediction": "Why is this needed?",
+ "prediction": "I don't think this is 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();",
+ "prediction": "I think this should be `&ns->components` instead of `&ns->components`.",
"reference": "No need for this new variable."
},
{
- "prediction": "Why is this change needed?",
+ "prediction": "I don't think this is correct. `c._nextState = c.state;` is the same as `c.getState(newType.getDerivedStateFromProps(newVNode.props, c._nextState));`",
"reference": "doesn't this enqueue a double render or is that safeguarded somehow"
},
{
@@ -11343,23 +11343,23 @@
"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); }`",
+ "prediction": "I think this should be `#ifdef ADIOS_HAVE_PHDF5`",
"reference": "Use `ADIADIOS2_HAVE_HDF5`, not `ADIOS_HAVE_PHDF5`"
},
{
- "prediction": "I don't think we need this test anymore.",
+ "prediction": "I think this test should be `expect(group_value_for 'group', Object).to eq(\"group Object\")`",
"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?",
+ "prediction": "I think this should be `MAX_MASTERSTATS_ENTRY` instead of `MAX_PERTABLE_STATS_DESC`.",
"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\");`",
+ "prediction": "I don't think we need to add these to the `HttpHeaders` class, since they are not used anywhere else.",
"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.",
+ "prediction": "I think this should be `if (instruction.type == TurnType::UseLane || instruction.type == TurnType::UseLane)` instead of `if (instruction.type == TurnType::Suppressed || instruction.type == TurnType::UseLane)`",
"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?"
},
{
@@ -11367,107 +11367,107 @@
"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)`",
+ "prediction": "I think this should be `#if defined(LINUX) && defined(X86_64)` instead of `#if defined(LINUX) && defined(X86_64)`",
"reference": "Looks like a clang-format style violation: should turn Travis red."
},
{
- "prediction": "Do we need this setting?",
+ "prediction": "I don't think we should be able to configure these colors in the future. I think we should be able to configure these colors in the future.",
"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`",
+ "prediction": "I don't think we need to pass `siteInfo` to the `getSiteInfoProperty` function.",
"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 -",
+ "prediction": "I think this should be `-Wno-invalid-offsetof -Wno-deprecated-declarations -Wno-invalid-offsetof -Wno-invalid-offsetof -Wno-deprecated-declarations -Wno-invalid-offsetof -Wno-invalid-offsetof -Wno-deprecated-declarations -Wno-invalid-offsetof -Wno-invalid-offsetof -Wno-invalid-offsetof -Wno-deprecated-declarations -Wno-invalid-offsetof -Wno-invalid-offsetof -Wno-invalid-offsetof -Wno-invalid-offsetof -Wno-invalid-offsetof -Wno-invalid-offsetof -Wno-deprecated-declarations -Wno-invalid-offsetof -Wno-invalid-offsetof -Wno-invalid-offsetof -Wno-invalid-offsetof -Wno-invalid-offsetof -Wno-invalid-offsetof -Wno-deprecated-declarations -Wno-invalid-offsetof -Wno-invalid-offsetof -Wno-invalid-offsetof -Wno-invalid-offsetof -Wno-invalid-offsetof -",
"reference": "The change here is to address what exactly?"
},
{
- "prediction": "I think this should be `bool` instead of `bool`.",
+ "prediction": "I think this should be `IsMSIEnvironment` instead of `IsMSIEnvironment`.",
"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;`",
+ "prediction": "Why is this needed?",
"reference": "Was this done automatically or by hand?"
},
{
- "prediction": "Layout/EmptyLinesAroundMethodBody: Extra empty line detected at method body end.",
+ "prediction": "Do we need to check for `current_group.groups.any?` here?",
"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`.",
+ "prediction": "I think this should be `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)]`",
+ "prediction": "I think this should be `OpenTelemetry.Instrumentation.GrpcNetClient`",
"reference": "nit: sort alphabetically."
},
{
- "prediction": "I think this should be `JsonQueryConverter.class.getSimpleName().equals(JsonQueryConverter.class.getSimpleName())`",
+ "prediction": "I think this should be `JsonQueryConverter.class.getSimpleName()`",
"reference": "Now, It's redundant, I suppose."
},
{
- "prediction": "I don't think we should be using the `ListImplementation` interface here.",
+ "prediction": "Why is this deprecated?",
"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)`",
+ "prediction": "I don't think this is a good idea, but I think it's a good idea to leave it as `infof` or `infof` as it is.",
"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`",
+ "prediction": "I think this should be `public static extern bool IsProfilerAttached();`",
"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();`",
+ "prediction": "I don't think this is necessary. `oldVersionCode < 1070197` will always be true.",
"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.",
+ "prediction": "(style) code indent should use tabs where possible (style) code indent should use tabs where possible",
"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));`",
+ "prediction": "Why is this change needed?",
"reference": "This one was wrong."
},
{
- "prediction": "I think this should be `allAffectedNodeIDs[]NodeID` instead of `allAffectedNodeIDs[]NodeID`",
+ "prediction": "I think this should be `allAffectedNodeIDs` instead of `allAffectedNodeIDs`",
"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?",
+ "prediction": "Please remove this empty line.",
"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`",
+ "prediction": "I don't think we need to return an array here.",
"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`",
+ "prediction": "Why is this removed?",
"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`?",
+ "prediction": "I think this should be `PolicyName` and `PolicyNamespace`",
"reference": "Question - do we cache NetworkPolicy itself? If so, here we can point to NetworkPolicy?"
},
{
- "prediction": "Why is this removed?",
+ "prediction": "Why remove this?",
"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`",
+ "prediction": "I think this should be `true` instead of `false`.",
"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); }`",
+ "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)`",
+ "prediction": "I think this should be `return nil` instead of `return nil`",
"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`",
+ "prediction": "I don't think we need to pass `notary_user` and `notary_password` here.",
"reference": "missing `{` here (and then `}` after `notary_password = config.notary_password`); it's only going to do the first one"
},
{
@@ -11475,39 +11475,39 @@
"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`",
+ "prediction": "I don't think this is needed.",
"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?",
+ "prediction": "I think this should be `if !config.DisableKubeProxy { return startKubeProxy(config) }`",
"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.",
+ "prediction": "Please remove this empty line.",
"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)`",
+ "prediction": "I think this should be `c.closeConnection(ProtocolViolation)` instead of `c.addLeafNodeConnection(c, _EMPTY_, _EMPTY_, false);`",
"reference": "Should it not be more something like: `MaxAccountConnectionsExceeded` here?"
},
{
- "prediction": "I think this should be `parseAndValidate(t, \"-compute_service_account_override\", \"http://endpoint\")`.",
+ "prediction": "I think this should be `parseAndValidate(t, \"-compute_service_account\", \"default\").ComputeServiceAccount`",
"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\")`",
+ "prediction": "I think this should be `./512` instead of `./512`",
"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]",
+ "prediction": "Style/IfUnlessModifier: Favor modifier if usage when having a single-line body. Another good alternative is the usage of control flow &&/||.",
"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`",
+ "prediction": "I don't think we need to expose the maps as public variables.",
"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(\"\"\"\")`",
+ "prediction": "I think this should be `_reverse_selection` instead of `_reverse_selection`",
"reference": "This could probably use `const` as well?"
},
{
@@ -11515,27 +11515,27 @@
"reference": "it doesn't look like these need to be exported?"
},
{
- "prediction": "I think this should be `fmt.fmt`",
+ "prediction": "I think this should be `fmt.txt`",
"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.",
+ "prediction": "I think this column should be `length_in_days_in_days` or `length_in_days_in_days_in_days_in_days`",
"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?",
+ "prediction": "Why not just `return errgroup.WithContext(ctx)`?",
"reference": "If the context is unused, this is equivalent to `var wg errgroup.Group`."
},
{
- "prediction": "I think this should be `FRAGALIGNRATIO` or `FRAGSIZEISMINIMUM`",
+ "prediction": "I think this should be `FRAGALIGNRATIO` or `FRAGALIGNISMINIMUM`.",
"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.')`",
+ "prediction": "I don't think we need to check for `host.startswith('127.')` here.",
"reference": "Given that 115 returns `True`, why would this be `False` here?"
},
{
- "prediction": "I think this test should be moved to `oauth2LoginWithOneClientConfiguredAndRequestFaviconNotAuthenticatedThenRedirectDefaultLoginPage`",
+ "prediction": "I think this test should be moved to the `oauth2LoginConfigurer` class.",
"reference": "Please move this test method just below `oauth2LoginWithOneClientConfiguredThenRedirectForAuthorization()`"
},
{
@@ -11543,15 +11543,15 @@
"reference": "Why this new configuration?"
},
{
- "prediction": "Why not use `dupe.hasArray()` here?",
+ "prediction": "I think we should use `ByteBuffer.copyOf(value)` instead of `ByteBuffer.copyOf(value).duplicate()`",
"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?",
+ "prediction": "I think this should be `SpanReference` instead of `SpanContext`.",
"reference": "`spanReference` -> `baggage` "
},
{
- "prediction": "I don't think we need to change this to `/verdaccio/logo.png`",
+ "prediction": "I think this should be `verdaccio/logo.png` instead of `verdaccio/logo.png`",
"reference": "Why the `/-/verdaccio/` ?"
},
{
@@ -11559,31 +11559,31 @@
"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`.",
+ "prediction": "I think this should be `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)`",
+ "prediction": "I don't think this is correct. `self._internal._sdf.select(scol).head(2)` is the same as `self._internal._sdf.select(scol).head(2)` and `self._internal._sdf.select(scol).head(2)` is the same as `self._internal._sdf.select(scol).head(2)` and `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/`",
+ "prediction": "I think we should use `debuggerAddress.match(\"ws:\\/\\/\", \"http:\\/\\/\")` instead of `debuggerAddress.replace(\"ws:\\/\\/\", \"http:\\/\\/\")`",
"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`",
+ "prediction": "I think this should be `googlesitekit/assets/js/googlesitekit/datastore/site` instead of `assets/js/googlesitekit/datastore/site`",
"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`",
+ "prediction": "I think this should be `LOG.trace(timestamp + \" is not sufficiently newer than parent timestamp {}\", parentTimestamp, minimumSecondsSinceParent);`",
"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)`",
+ "prediction": "I think we can remove the `extra_controller_params` argument from `search_builder.with(user_params).facet(facet_field).merge(solr_facet_params(facet_field, user_params, extra_controller_params)).merge(extra_controller_params).merge(solr_facet_params(facet_field, user_params, extra_controller_params)).merge(extra_controller_params).merge(extra_controller_params).merge(extra_controller_params).merge(extra_controller_params).merge(extra_controller_params).merge(extra_controller_params).merge(extra_controller_params).merge(extra_controller_params))).merge(extra_controller_params).merge(extra_controller_params).merge(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.",
+ "prediction": "I think this should be `min_items_error` instead of `min_items_error`.",
"reference": "The error should be `At least :number items are required`"
},
{
@@ -11591,15 +11591,15 @@
"reference": "singleCaseSwitch: should rewrite switch statement to if statement (from `gocritic`)"
},
{
- "prediction": "Why is this removed?",
+ "prediction": "I think this should be `mdDecryptionKeyGetter`",
"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?",
+ "prediction": "I think this should be `HiveClient_JNI::deleteInstance()`",
"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?",
+ "prediction": "I think this should be `readConcern` instead of `writeConcern`",
"reference": "Does this mean we do not support writeConcern on `createCollection`?"
},
{
@@ -11607,11 +11607,11 @@
"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`",
+ "prediction": "I think this should be `[infrav1.SecurityGroupAPIServerLB]` instead of `[infrav1.SecurityGroupControlPlane]`",
"reference": "We'll need `infrav1.SecurityGroupBastion` as well"
},
{
- "prediction": "I think this should be `f.Features().PublicLink(fileName)` instead of `f.Features().PublicLink(fileName)`",
+ "prediction": "I don't think we need to check for `f.Features().PublicLink` here.",
"reference": "This `fileName` should probably be `remote` and be relative to the Fs root as per normal rclone usage."
},
{
@@ -11619,39 +11619,39 @@
"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 `#\\\\$%&'`",
+ "prediction": "I think this should be `[a-zA-Z0-9_-]+`",
"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`.",
+ "prediction": "This should be `Rpc-Respond-Request-Header` instead of `Rpc-Respond-Request-Header`.",
"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 {`",
+ "prediction": "I think this should be `serviceDirOnHost[0:1] == \".\"`",
"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.",
+ "prediction": "I don't think this is a good idea, but I think it's a good idea to use a constant for the timeout.",
"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}')`",
+ "prediction": "I don't think this is necessary. `mdtext` is a `MarkdownFile` object, which is a `MarkdownFile` object, which is a `MarkdownFile` object, which is a `MarkdownFile` object, which is a `MarkdownFile` object, which is a `MakrdownFile` object, which is a `MakrdownFile` object, which is a `MakrdownFile` object, which is a `MakrdownFile` object, which is a `MakrdownFile` object, which is a `MakrdownFile` object, which is a `MakrdownFile` object, which is a `MakrdownFile` object, which is a `MakrdownFile` object, which is a `MakrdownFile` object, which is a `MakrdownFile` object, which is a `MakrdownFile` object, which is a `MakrdownFile` object, which is a `MakrdownFile` object, which is a `MakrdownFile` object, which is a `MakrdownFile` object, `MakrdownFile`",
"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\")`.",
+ "prediction": "I think this should be `path.Join(paths, \".mysterium\")` instead of `path.Join(paths...)`",
"reference": "This function does not need to be public"
},
{
- "prediction": "I don't think we need to add the `! accounts.length && !hasExistingTag` check here.",
+ "prediction": "I think we should remove the `marginBottom` attribute from the `AccountSelect` element.",
"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.",
+ "prediction": "I don't think we need to check for `this.Extensions.ContainsKey(\"nextMethodName\")` here.",
"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?",
+ "prediction": "Why 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."
},
{
@@ -11659,11 +11659,11 @@
"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()`.",
+ "prediction": "I don't think we should return here.",
"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`",
+ "prediction": "I don't think we need to import `end2end.features.test_scroll_bdd` here.",
"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."
},
{
@@ -11671,135 +11671,135 @@
"reference": "Does this changes affect process building dynamic libraries anyhow?"
},
{
- "prediction": "Why is this needed?",
+ "prediction": "I don't think this is needed anymore.",
"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`",
+ "prediction": "I don't think we need to do this in the `set_function_code` function, since it's only used in the `set_function_code` function.",
"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.",
+ "prediction": "I don't think we need this function anymore.",
"reference": "Golang naming convention is to use camel case `icmpPktWithTypeCode` Often the linter will complain"
},
{
- "prediction": "Why is this removed?",
+ "prediction": "I think we can remove this code as it's not used anywhere else.",
"reference": "We can do away with assigning the response here too."
},
{
- "prediction": "I don't think this is needed.",
+ "prediction": "I don't think this is correct. `newViewportHeight = naturalHeight + 3;` is the same as `newViewportHeight + extraHeight`",
"reference": "Bumping the newViewportHeight"
},
{
- "prediction": "I think it would be better to use `secondaryy` instead of `master`.",
+ "prediction": "Why is this change needed?",
"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`",
+ "prediction": "I think this should be `astroid.modutils.load_module_from_name(reporter_class)`",
"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?",
+ "prediction": "nit: remove empty line",
"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)`",
+ "prediction": "I don't think we need to do this in the `GetResourceModels` method. I think we should do it in the `GetResourceModels` method.",
"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`.",
+ "prediction": "I don't think we need the `ResourceInstance` here.",
"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);`",
+ "prediction": "I think this is the right fix.",
"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`",
+ "prediction": "I don't think we need to cast to `Integer` here.",
"reference": "how about `Cannot encode row key with non-integer type` directly?"
},
{
- "prediction": "I think this method should be called `fetchUnfinishedExecutions` and `fetchActiveFlowByExecId`",
+ "prediction": "I think this method should be renamed to `fetchUnfinishedFlowsByExecId`.",
"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`",
+ "prediction": "I don't think we need to install the `autogen.sh` command here.",
"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`.",
+ "prediction": "I think this should be `AnswerToLife`, `AnswerToUniverse`, `AnswerToLife`, `AnswerToEverything`, and `AnswerToEverything`.",
"reference": "ultra nit: missing Oxford comma :P"
},
{
- "prediction": "I think this should be `explain(\"analyzed\")`.",
+ "prediction": "I think this should be `# doctest: +SKIP` instead of `# doctest: +ELLIPSIS`",
"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{})`",
+ "prediction": "I think this should be `Query(ctx context.Context, from, to, method string, params ... interface{})`",
"reference": "BLOCKING: Why does `Query` return an `*exec.FunctionSignature`?"
},
{
- "prediction": "Why not use `c.dirtyBcache`?",
+ "prediction": "I think this should be `NewDirtyBlockCacheStandard(5000, MaxBlockSizeBytesDefault*1024)` instead of `NewBlockCacheStandard(5000, MaxBlockSizeBytesDefault*1024)`",
"reference": "please move this down to immediately above the assignment to `c.dirtyBcache`"
},
{
- "prediction": "I think this should be `watch` instead of `watch`",
+ "prediction": "I think this example should be in a separate PR.",
"reference": "Don't need the `, err` part since you've already handled it."
},
{
- "prediction": "I think this test should be in a separate PR.",
+ "prediction": "I don't think this test is needed.",
"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`",
+ "prediction": "I think this should be `return false` instead of `return true`",
"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() {`",
+ "prediction": "I think this should be `introspection.PeerStatus{Name: \"Single\", State: \"uninitialized\"},`",
"reference": "does this change belong here?"
},
{
- "prediction": "I think this should be `w.workflowDir` or `w.workflowDir`",
+ "prediction": "Why not use `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\"`",
+ "prediction": "I don't think we should add this to libcalico-go.",
"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?",
+ "prediction": "why do we need to pass `ctx` 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 }`",
+ "prediction": "I think this should be `if !app.DisableSettingsManagement {`",
"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]",
+ "prediction": "Metrics/LineLength: Line is too long. [89/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 {`",
+ "prediction": "I don't think we need to specify the public subnet here.",
"reference": "Should we say \"specifying two public subnets\"?"
},
{
- "prediction": "I think this should be removed.",
+ "prediction": "I don't think we need to revisit this.",
"reference": "Issue number? When? Why?"
},
{
- "prediction": "I don't think we need to import speech here.",
+ "prediction": "why is this needed?",
"reference": "You should not rely on `PitchCommand` being imported into speech. Please import it from `speech.commands`."
},
{
- "prediction": "why change this?",
+ "prediction": "Why is this change needed?",
"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?",
+ "prediction": "I think we can remove the `ReadLevel` parameter from the `GetTasks` call.",
"reference": "maybe we should rename: MinTaskID -> MinTaskIDExclusive, MaxTaskID -> MaxTaskIDInclusive,"
},
{
- "prediction": "I don't think we need to change this to `ecs-nvidia`",
+ "prediction": "I don't think we need to add this to the env var, since it's not used anywhere else.",
"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."
},
{
@@ -11807,11 +11807,11 @@
"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",
+ "prediction": "(style) code indent should use tabs where possible",
"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)`",
+ "prediction": "I think this should be `kmd data dir exists but is too permissive (%o), change to (%o)`",
"reference": "I believe that you meant to have the following on the second one, right ? `dataDirStat.Mode()^0077`"
},
{
@@ -11819,31 +11819,31 @@
"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)`",
+ "prediction": "I think this should be `IsEffectInSpell(uint16 spell_id, SE_InvisVsAnimals)`",
"reference": "I dig the helper function!"
},
{
- "prediction": "I don't think we need to change this file.",
+ "prediction": "why is this package needed?",
"reference": "Please add the Copyright header."
},
{
- "prediction": "I think this should be `target.FileSystemTarget` instead of `target.FileSystemTarget`.",
+ "prediction": "I think this should be `..target` instead of `..target`.",
"reference": "Is this the best way to import `FileSystemTarget`?"
},
{
- "prediction": "(style) line over 80 characters",
+ "prediction": "Why is this cast needed?",
"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",
+ "prediction": "I think it would be better to use `if (FAILED(Status)) {` instead of `if (FAILED(Status)) {`",
"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)`",
+ "prediction": "I don't think this is correct. `dagster_home_path` is an absolute path.",
"reference": "print out what we got here in the error"
},
{
- "prediction": "(style) line over 80 characters",
+ "prediction": "(style) code indent should use tabs where possible",
"reference": "Does this need to be global?"
},
{
@@ -11851,19 +11851,19 @@
"reference": "Yep, could be simplified. Now looks like other *Map.values() impls"
},
{
- "prediction": "Shouldn't this be `@Then`?",
+ "prediction": "I think this should be `@Return` instead of `@Return`",
"reference": "This method will be for debug?"
},
{
- "prediction": "I think this should be `Service`",
+ "prediction": "I think we should add a `IsEncrypted` method to the `ecdsa.PrivateKey` interface.",
"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`",
+ "prediction": "why not just `self.attrs` and `self.methods`?",
"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.",
+ "prediction": "I think this should be `add_prefix` and `add_suffix`",
"reference": "These two functions should be available now."
},
{
@@ -11871,27 +11871,27 @@
"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.",
+ "prediction": "why remove this?",
"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);`",
+ "prediction": "I think this should be `VLOG(4) << \"PartitionID: \" << partId << \", VertexID: \" << edge.key.src << \", EdgeRanking: \" << edge.key.ranking << \", EdgeVersion: \" << edge.key.dst << \", EdgeVersion: \" << 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?`",
+ "prediction": "I don't think this is necessary. `user_full_name` can be nil if `c.user.nil?` is true.",
"reference": "is this \"unless\" actually needed?"
},
{
- "prediction": "Why is this change needed?",
+ "prediction": "Is there a reason for this change?",
"reference": "We don't accept empty words for lookup anymore, again"
},
{
- "prediction": "I think we should use `console.log` instead of `console.log`",
+ "prediction": "I think this should be `console.log(\"We're below 30 secs. That's awesome!\")`",
"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`",
+ "prediction": "W3C_MINIMIZE_WINDOW = \"w3cMinimizeWindow\"",
"reference": "No need for this to be `W3C_` since there is no JWP equivalent"
},
{
@@ -11899,51 +11899,51 @@
"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()`.",
+ "prediction": "I think this should be `return s.listener.Addr()`.",
"reference": "Is this ever actually used?"
},
{
- "prediction": "Why is this needed?",
+ "prediction": "Why is this change 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",
+ "prediction": "I think this should be `IF_ARM(ASSERT_NOT_TESTED());`",
"reference": "Do we need to save the existing value of the stolen reg somehow?"
},
{
- "prediction": "Shouldn't this be `maxResults`?",
+ "prediction": "I think this should be `maxResults=500` instead of `maxResults=500`",
"reference": "maxResults should come from FLAGS once #244 is submitted."
},
{
- "prediction": "I think this should be `#if NETCOREAPP` instead of `#endif`",
+ "prediction": "I think this should be `#if NETCOREAPP`",
"reference": "is this wanted?"
},
{
- "prediction": "I think this should be `pytest.importorskip('linode')`",
+ "prediction": "I think this should be `pytest.importorskip('linode')` instead of `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.",
+ "prediction": "I don't think this is correct. The `Content-Type` header should be `application/x-www-form-urlencoded`.",
"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`.",
+ "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?",
+ "prediction": "why is this change needed?",
"reference": "`testExecutionPb` is a global variable (from `gochecknoglobals`)"
},
{
- "prediction": "Why did you remove this?",
+ "prediction": "why is this removed?",
"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)`.",
+ "prediction": "I think this should be `log.Debug(\"%v: %s\", err, debug.Stack())` instead of `log.Debug(\"%v: %s\", err, debug.Stack())`",
"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`.",
+ "prediction": "I think this should be `--keep-namespaces` instead of `--keep-namespaces`.",
"reference": "Can we make these more explicitly for Rust only? It seems like JS and Go use flags with their name in them."
},
{
@@ -11951,15 +11951,15 @@
"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.",
+ "prediction": "I don't think this is a good idea, but I don't think this is a good idea, but I think it would be better to just call `register.set_namespace(namespace=None)` and then call `register.set_namespace(namespace=None)`.",
"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`.",
+ "prediction": "I don't think this is a good idea, but I think it would be better to just use `exc_info=True` 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`",
+ "prediction": "I think this should be `github.com/hacdias/caddy-minify` instead of `github.com/hacdias/caddy-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."
},
{
@@ -11971,35 +11971,35 @@
"reference": "Nit: from the Internet."
},
{
- "prediction": "I think this should be `go-ethereum/iotex-address/address`",
+ "prediction": "I think this should be moved to `iotexproject/iotex-ethereum/ethereum.go`",
"reference": "this is internal package, move to bottom and run 'make fmt'"
},
{
- "prediction": "I think this interface should be `IConnectionLifetimeNotificationFeature` instead of `IConnectionLifetimeNotificationFeature`",
+ "prediction": "I think this 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\".",
+ "prediction": "I think this should be `http-01` 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`?",
+ "prediction": "I think this should be `options['src'] = $provider->generatePublicUrl($media, $format, $options);`",
"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) {`",
+ "prediction": "I don't think this is necessary. The `getAbsolutePath()` method is called from the `ProcessBesuNodeRunner` class, which is called from the `ProcessBesuNodeRunner` class.",
"reference": "What if `node.jsonRpcConfiguration().getAuthenticationPublicKeyFile()` is empty string, would that cause a problem here?"
},
{
- "prediction": "I think this should be `RenewBeforeDuration`",
+ "prediction": "I think this should be `time.Duration`",
"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?",
+ "prediction": "I think this should be `t.equals(to) ? null : t.getNext();`",
"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?",
+ "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."
},
{
@@ -12011,51 +12011,51 @@
"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);`",
+ "prediction": "Is there a reason we don't pass settingsService into the JsonPrinter constructor?",
"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`.",
+ "prediction": "I don't think this is correct. `Keys#COMMAND` is a `Keys#SHIFT`. `Keys#CONTROL` is a `Keys#COMMAND`. `Keys#SHIFT` is a `Keys#COMMAND`. `Keys#COMMAND` is a `Keys#SHIFT`. `Keys#CONTROL` is a `Keys#COMMAND`. `Keys#COMMAND` is a `Keys#SHIFT`. `Keys#CONTROL` is a `Keys#COMMAND`. `Keys#COMMAND` is a `Keys#SHIFT`. `Keys#COMMAND` is a `Keys#COMMAND`. `Keys#COMMAND` is a `Keys#SHIFT`. `Keys#CONTROL` is a `Keys#COMMAND` and `Keys#CONTROL` is a `Keys#COMMAND`.",
"reference": "Keys.COMMAND seems to be an alias to Keys.META. That isn't mentioned?"
},
{
- "prediction": "I think this should be `syncBlockCacheFractionSetter`",
+ "prediction": "I think this should be `SetSyncBlockCacheFraction`",
"reference": "This should go in `ConfigLocal` (and then re-generate the mocks)."
},
{
- "prediction": "Why is this change needed?",
+ "prediction": "I think this should be `or None` instead of `or None`",
"reference": "Nitty but entry.get for the same thing"
},
{
- "prediction": "I think this should be `if len(os.Args) > 1 && os.Args[1] == \"init\"`",
+ "prediction": "I think this should be `libcontainer/nsenter/nsenter.go`",
"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.\");`",
+ "prediction": "I think this should be `_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`",
+ "prediction": "Why is this changed?",
"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`.",
+ "prediction": "I don't think this is needed anymore.",
"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`",
+ "prediction": "I think this should be `List indexedList = Collections.singletonList(elements);`",
"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();`",
+ "prediction": "I don't think this is a good idea. I think it would be better to just use `BitmapUtils.getLastEditedStep()` instead of `BitmapUtils.getLastEditedStep()`.",
"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.",
+ "prediction": "Why did you remove this line?",
"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`.",
+ "prediction": "I think this should be `Map mode = ImmutableMap.of(\"type\", type.getBitMask());`",
"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)"
},
{
@@ -12063,19 +12063,19 @@
"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`.",
+ "prediction": "`changes`: a dictionary with keys `insertions`, `oldModifications` and `oldModifications` are indices into the collection before the change happened, while `insertions` and `oldModifications` are indices into the collection before the change happened, while `newModifications` are indices into the collection before the change happened, while `oldModifications` are indices into the collection before the change happened, while `newModifications` are indices into the new version of the collection. If partial sync is enabled, an additional key `partial_sync` is added.",
"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\".",
+ "prediction": "I don't think we need to add this.",
"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.",
+ "prediction": "I think this should be `final`",
"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?",
+ "prediction": "I don't think we need the `docstore` argument here.",
"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?"
},
{
@@ -12083,63 +12083,63 @@
"reference": "Why do we have to change the test dir?"
},
{
- "prediction": "I think this should be `return !el.querySelector('summary').length > 0;`",
+ "prediction": "I think this should be `return !el.querySelector('summary')`",
"reference": "This should test the flattened tree instead. details > summary works across shadow tree boundaries."
},
{
- "prediction": "I think this should be `MvxAndroidLog.GetLogFor(\"MvxAndroid\")`.",
+ "prediction": "I think this should be `public static IMvxLog Instance { get; } = Mvx.Resolve().GetLogFor(\"MvxAndroid\");`",
"reference": "Not sure I am a big fan of these duplicated Log classes."
},
{
- "prediction": "I think this should be `CleanUpError` or `PresentedError`.",
+ "prediction": "I don't think we need these names anymore.",
"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`.",
+ "prediction": "Why did you change this to 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",
+ "prediction": "(style) code indent should use tabs where possible",
"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`?",
+ "prediction": "I think this should be `lastPageInPaginatedResp`",
"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) {`",
+ "prediction": "I don't think we need to copy dataManifests and deleteManifests here.",
"reference": "What about using `dataManifests == null || deleteManifests == null`?"
},
{
- "prediction": "I think this should be `new GlobalHitsThresholdChecker(TOTAL_HITS_THRESHOLD);`",
+ "prediction": "I think this should be `GlobalHitsThresholdChecker` instead of `GlobalHitsThresholdChecker`.",
"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`",
+ "prediction": "I think this should be `client-go/tools/cache` instead of `client-go/tools/cache`",
"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 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 ",
"reference": "Seems likely to confuse people. What if we moved it into ActivitySourceAdapter and made it private?"
},
{
- "prediction": "I think this should be `errors.New(\"Cannot send transactions with value and calldata\")`.",
+ "prediction": "I don't think this is correct. If the value is 0, then the transaction will not be sent.",
"reference": "gas price don't need to be a multiple cuz we support allll gas prices now"
},
{
- "prediction": "I think this should be `void OnClientProcessExit()`.",
+ "prediction": "I think this should be `OnClientProcessExit` instead of `OnClientProcessExit`.",
"reference": "We are exposing implementation details in the interface. What if there is no processes involved in an implementation of `ITestRequestSender`?"
},
{
- "prediction": "I think this should be `# pylint: disable=broad-except`",
+ "prediction": "I think this should be `# pylint: disable=broad-except` instead of `# pylint: disable=broad-except`",
"reference": "It would be awesome not to handle the broad exception here. Instead, raise a custom exception, something like `ModelNotSetException`, from the `require_model()`, and then handle it here with a nicer message to tell the user to set the model first."
},
{
- "prediction": "I don't think we need to change this, but I think it's better to add a `customize_theme` to the list of themes.",
+ "prediction": "I don't think we need to add this to the list.",
"reference": "This already exists under the `theme` lang key, please remove this."
},
{
- "prediction": "I don't think we should render the HelpMenu here.",
+ "prediction": "I don't think we should be able to render the HelpMenu here. I don't think we should be able to render the HelpMenu here.",
"reference": "Let's add a simple inline HOC around the default export below to provide the value as a prop (no need to introduce a reusable function for this yet)."
},
{
@@ -12147,75 +12147,75 @@
"reference": "I believe that you end up printing out the result of the assignment here instead of the netmask."
},
{
- "prediction": "I think this should be `tarball-blahblah-file.name` instead of `tarball-blahblah-file.name`",
+ "prediction": "I don't think this is needed.",
"reference": "We have to update the filename here."
},
{
- "prediction": "This should be `--cpp-field-case STYLE Generate C++ fields using selected case style.`",
+ "prediction": "I think this should be `--cpp-field-case` instead of `--cpp-field-case`.",
"reference": "The `--cpp-field-case` looks like `--cpp-field-style` instead of `-case`. - 'unchanged' - leave unchanged (default); - 'upper_camel' -upper camel case; - 'lower_camel' - lower camel case."
},
{
- "prediction": "Why remove the hotfix here?",
+ "prediction": "Why is this removed?",
"reference": "I haven't thought about this a lot yet, but if we were to try this change, we'd still need to keep the code to delete it from the `.origin` file for backcompat."
},
{
- "prediction": "I think this should be `nodeKey` instead of `SECP256K1`",
+ "prediction": "Why is this needed?",
"reference": "In my opinion I think it is possible to add `private final` here"
},
{
- "prediction": "I think this should be `deny` instead of `exit`.",
+ "prediction": "I think this should be `exit` instead of `deny`.",
"reference": "Feel like \"exit\" doesn't convey that the packet will be dropped. \"drop-and-exit\" or \"error-exit\" maybe?"
},
{
- "prediction": "I don't think we need to change the error message here.",
+ "prediction": "(style) line over 80 characters",
"reference": "How do you feel about \"The Main actor\" instead of \"A Main actor\", while we're already here changing the message?"
},
{
- "prediction": "I think this should be `zk-read-perm` instead of `zk-read-perm`.",
+ "prediction": "I think we should add `zk-read` to the `PermissionNameProvider` as well.",
"reference": "I cannot see that this new permission is used anywhere? And if the new zk handler is covered by `zk-read`, should not also existing `ZookeeperInfoHandler` handler implement PermissionNameProvider and declare the same permission, for consistency?"
},
{
- "prediction": "I think we should use `np.ndarray` instead of `np.ndarray`.",
+ "prediction": "Why is this change needed?",
"reference": "Is this reasonable?"
},
{
- "prediction": "I think we should add a TODO for this.",
+ "prediction": "I don't think this is needed.",
"reference": "We may move this TODO to Line15."
},
{
- "prediction": "Shouldn't this be `ConfigQuery::checkAvailableStock()`?",
+ "prediction": "I think this should be `return $this->checkStockNotEmpty();`",
"reference": "You have to verify the return type. If it's a reponse, return it. Otherwise do nothing."
},
{
- "prediction": "I think this should be `int32_t` or `int64_t`.",
+ "prediction": "I don't think this is necessary. The `stride_unroll` function is called from `Kokkos_core.hpp`. The `run_stride_unroll` function is called from `Kokkos_timer.hpp`.",
"reference": "No. Keep the header include and do `extern template ...` to skip the instantiation from that compile unit. (I pushed a fix directly to your branch)"
},
{
- "prediction": "I think this should be `max(x)` and `min(x)`",
+ "prediction": "I think this should be `min({}())`.",
"reference": "these tests are currently somewhat nonsensical. This code expands to `a, b = {}.keys` when it really should be expanding to `a, b = {}.keys()` -- though fixing this causes the test to fail so I suspect something worse is going on here that I don't quite understand?"
},
{
- "prediction": "Why is this change removed?",
+ "prediction": "Why is this change needed?",
"reference": "Why did this need to change?"
},
{
- "prediction": "I think this should be `NewTransaction` and not `NewTransaction`",
+ "prediction": "I think it would be better to use `NewTransaction` instead of `NewTransaction`",
"reference": "/go/pkg/mod/golang.org/x/xerrors@v0.0.0-20190410155217-1f06c39b4373/adaptor_go1_13.go:16:21: Frame not declared by package errors (from `typecheck`)"
},
{
- "prediction": "I think this should be `collection.configName` instead of `collection.configName`.",
+ "prediction": "I think this should be `collections.configName` instead of `collections.configName`",
"reference": "Probably doesn't go here because I think it's specific to the HTTP API layer. This class is too internal to declare such a name."
},
{
- "prediction": "I think we should use `assertThat(check.body().string()).isEqualTo(\\\"InMemoryStorage\\\").isTrue();` instead of `assertThat(check.body().string()).isEqualTo(\\\"InMemoryStorage\\\").isEqualTo(\\\"InMemoryStorage\\\").isEqualTo(\\\"InMemoryStorage\\\").isEqualTo(\\\"InMemoryStorage\\\").isEqualTo(\\\"InMemoryStorage\\\").isTrue();`",
+ "prediction": "I think we should use `assertThat(check.body().string().isEqualTo(String.valueOf(\"zipkin\")).isTrue()).isTrue();`",
"reference": "in preparation of directly writing the /health endpoint one day.. we should have content checks."
},
{
- "prediction": "`%q` should be `fmt.Sprintf(\"multiple IDs with prefix %q found\", e.prefix)`",
+ "prediction": "Why is this change needed?",
"reference": "question (non-blocking): Is there a benefit from using `%q` instead of `%s`?"
},
{
- "prediction": "Why is this change removed?",
+ "prediction": "Why remove this line?",
"reference": "I would suggest to keep two empty lines between functions in cpp files"
},
{
@@ -12223,15 +12223,15 @@
"reference": "This change causes the test to fail on both rocm-1.9.x and rocm-head."
},
{
- "prediction": "I think this interface should be `AutoFixableRuleViolation` or `AutoFixableRuleViolationFixer`",
+ "prediction": "I don't think this interface is needed.",
"reference": "I'd consider moving all fix related stuff to a distinct package to avoid contaminating the base package"
},
{
- "prediction": "I think this should be `if not os.path.isdir(inc_dir):`",
+ "prediction": "I think it would be better to use `entry['directory']` instead of `entry['directory']`.",
"reference": "Use `os.path.join` for path concatenation."
},
{
- "prediction": "I think we should use `YolactSegmHead` instead of `YolactSegmHead`.",
+ "prediction": "I don't think we need to add the `YolactSegmHead` to the list.",
"reference": "Use upper case: YOLACTHead, YOLACTProtonet, YOLACTSegmHead"
},
{
@@ -12239,31 +12239,31 @@
"reference": "The driver tests should be updated to use the concrete type instead of the driver directly; right now your test coverage of the concrete type is 0%."
},
{
- "prediction": "I think this should be `throw new DocblockParseException($msg);` instead of `throw new DocblockParseException($msg);`",
+ "prediction": "I think this should be `Badly-formatted @method parameters for ' . $method_entry;`",
"reference": "I would prefer the message to be more actionable. Like 'There should be no space between & and the variable name' or something similar."
},
{
- "prediction": "I think this should be `new AntlrBaseNode();`",
+ "prediction": "Nit: I think this should be `return new AntlrBaseNode();` instead of `return new AntlrBaseNode();`",
"reference": "The image attribute is not supposed to be the text of the node. I'd rather keep it separate (the previous `@Text` attribute was fine). A practical reason for that is in the future, other languages may have a way to get the text of their node, in which case that wouldn't be fetched with `getImage`, for compatibility, but probably with a `getText` method, or `getSourceCode` like in #1728. Also we *may* deprecate or otherwise put `getImage` out of use as soon as 7.0, given its contract is super loose."
},
{
- "prediction": "I think this should be `@exclusion_patterns = [Regexp.new(s.gsub(\"/\", File::SEPARATOR))`",
+ "prediction": "I think this should be `[/lib/rspec/(core|expectations|matchers|mocks)` instead of `[/lib/rspec/(mocks|mocks)`",
"reference": "The `[] +` seems weird to me. Why is it there?"
},
{
- "prediction": "Align the parameters of a method call if they span more than one line.",
+ "prediction": "Layout/SpaceInsideHashLiteralBraces: Space inside { missing. Layout/SpaceInsideHashLiteralBraces: Space inside } missing.",
"reference": "Not sure if this constant is defined at the right place style-wise. Maybe move it up to before 'belongs_to' like DISCOUNT_TYPES in coupon.rb?"
},
{
- "prediction": "I think this should be `bytes.HasPrefix(k, []byte(\"#\")) && !bytes.HasPrefix(k, []byte(\"#\")) && !bytes.HasPrefix(k, []byte(\"#\")) && !bytes.HasPrefix(k, []byte(\"#\")) && !bytes.HasPrefix(k, []byte(\"#\"))`",
+ "prediction": "I think this should be `bytes.HasPrefix(k, []byte(\"#\"))` instead of `bytes.HasPrefix(k, []byte(\"#\"))`",
"reference": "What about a line with just spaces/tabs? Or a line with a couple spaces followed by a `#`?"
},
{
- "prediction": "Line is too long. [89/80]",
+ "prediction": "I think we should check for `org_id.blank?` instead of `org_id.blank?`",
"reference": "if funder_is is not blank (L375) there is not need to check if org_id is not blank (L379) since you will never enter in the if (L374)."
},
{
- "prediction": "I think this should be `this->GetTarget() == this`",
+ "prediction": "I think this should be a message string, not a message string.",
"reference": "Don't need this-> here."
},
{
@@ -12271,27 +12271,27 @@
"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)`",
+ "prediction": "I don't think this is correct. `value` should be a dict, not a 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\") {`",
+ "prediction": "I think this should be `std::make_move_iterator(result.begin(), result.end());`",
"reference": "FYI, It won't have any benefit to move from trivial types."
},
{
- "prediction": "I think this should be `secrets-ssm-environment-variables`",
+ "prediction": "I think this should be `secrets-ssm-environment-variables` instead of `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`",
+ "prediction": "I think this should be `github.com/gogo/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());`",
+ "prediction": "Why is this needed?",
"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`",
+ "prediction": "I don't think this is needed.",
"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)."
},
{
@@ -12299,15 +12299,15 @@
"reference": "Why remove this?"
},
{
- "prediction": "Why did you remove this?",
+ "prediction": "I think this test was removed because the `auto-open` flag was removed.",
"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 || {},`",
+ "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)`",
+ "prediction": "I think it would be better to make this a `CommandError` instead of `CommandError`.",
"reference": "Please add a space after the comma here (generally, with arguments there's always a space after commas)."
},
{
@@ -12315,23 +12315,23 @@
"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)`",
+ "prediction": "I don't think this is needed anymore.",
"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\"",
+ "prediction": "I think this should be \"Imported key for account %s: \\\"%s\\\"\"",
"reference": "\"Exported key for account\"?"
},
{
- "prediction": "I think this should be `\\r\\n` instead of `\\r\\n`",
+ "prediction": "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?",
+ "prediction": "why remove this?",
"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`",
+ "prediction": "I think this should be `deliver_now` instead of `deliver_now`",
"reference": "Thanks for cleaning up these deprecated calls"
},
{
@@ -12339,39 +12339,39 @@
"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?",
+ "prediction": "I don't think we need to check for `resourceType == constants.ResourceTypeService` here. I think we should check for `resourceType == constants.ResourceTypeEndpoints` here.",
"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`",
+ "prediction": "I think this should be `/500_error` instead of `/500_error`",
"reference": "This is specifically for testing?"
},
{
- "prediction": "Why did you remove this?",
+ "prediction": "Why remove this line?",
"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 */`",
+ "prediction": "I think we should remove the `require-description-complete-sentence` here.",
"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)`",
+ "prediction": "I think this should be `errs.Wrap(nerr)`",
"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)`",
+ "prediction": "I think this should be `explorer.GetBlockOrActionByHash(hashStr)`",
"reference": "unknown field AddressDetails in struct literal (from `typecheck`)"
},
{
- "prediction": "I think we should use `aws.Config` here.",
+ "prediction": "I think we should be able to use `aws.NewConfigWithOptions(session.Options{Region: aws.String(region)})` instead of `aws.String(region)`.",
"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); }`",
+ "prediction": "I think this should be `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`",
+ "prediction": "I think this should be `ErrAccountResolverSameClaims` instead of `ErrAccountResolverSameClaims`",
"reference": "I think this may be a RW lock."
},
{
@@ -12379,35 +12379,35 @@
"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`",
+ "prediction": "I don't think we need to learn it before sending them.",
"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`",
+ "prediction": "I think this should be `copy=False`",
"reference": "too long here. (104 > 100)"
},
{
- "prediction": "Shouldn't this be `Logger.Error(\"$There is no handler registered for this message\");`?",
+ "prediction": "I think this should 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.",
+ "prediction": "Layout/MultilineMethodCallIndentation: Align the parameters of a method call if they span more than one line. Layout/MultilineMethodCallIndentation: Align the parameters of a method call if they span more than one line. Layout/MultilineMethodCallIndentation: Align the parameters of a method call if they span more than one line. Layout/MultilineMethodCallIndentation: Align the parameters of a method call if they span more than one line. Layout/MultilineMethodCallIndentation: Align the parameters of a method call 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 `ifdef FASTDDS_STATISTICS`",
+ "prediction": "This should be `static_cast(change);`",
"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`.",
+ "prediction": "I don't think we need to call `ResetAndAbort` here.",
"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.",
+ "prediction": "I think this should be `using System.Linq;` instead of `using System.Linq;`",
"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);`",
+ "prediction": "Why is this change needed?",
"reference": "Please avoid committing build artifacts, as they produce unnecessary conflicts and noise."
},
{
@@ -12415,7 +12415,7 @@
"reference": "this is vendored code so i would hesitate to make random changes to it"
},
{
- "prediction": "I think this should be `ReferralInfoDTO`",
+ "prediction": "Why is this needed?",
"reference": "We are using a different style for JSON tags. `ethAddress` - camalCase `referral_code` - snake_case"
},
{
@@ -12423,15 +12423,15 @@
"reference": "Should this be `\"Microsoft.AspNetCore.Http.DefaultHttpContext\"`?"
},
{
- "prediction": "Why is this assert removed?",
+ "prediction": "Why was this 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.",
+ "prediction": "I don't think we need to disable the cache 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`?",
+ "prediction": "I think this should be `release_msid` instead of `album_msid`",
"reference": "How complex is to to replace `album_*` with `release_*` everywhere in the `Listen` class and places that use it?"
},
{
@@ -12439,39 +12439,39 @@
"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);`",
+ "prediction": "I think this should be `return _isHiddenWithCSS(el, descendentVisibilityValue);` instead of `return _isHiddenWithCSS(el, descendentVisibilityValue);`",
"reference": "@straker should this not push to `vnode._cache.isHiddenWithCSS`?"
},
{
- "prediction": "I think this should be `runtimevar.Provider` instead of `runtimevar.Provider`",
+ "prediction": "I think it would be better to have a `runtimevar.Driver` that defines the interface that the runtimevar package uses to interact with the underlying runtime configuration services. I think it would be better to have a `runtimevar.Driver` that defines the interface that the runtimevar package uses to interact with the underlying runtime configuration services. The `runtimevar.Driver` interface defines the interface that the runtimevar package uses to interact with the underlying runtime configuration services. The `runtimevar.Driver` interface defines the interface that the runtimevar package uses to interact with the underlying runtime configuration services. The `runtimevar.Driver` interface defines an interface that the runtimevar package uses to interact with the underlying runtime configuration services. The `runtimevar.Driver` interface defines the interface that the runtimevar package uses to interact with the underlying runtime configuration services. The `runtimevar.Driver` interface defines the interface that the runtimevar package uses to interact with the underlying runtime configuration services.",
"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.",
+ "prediction": "I don't think we need to check for `ioError` and `connectError` 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?",
+ "prediction": "I think this should be `doSync` instead of `doSync`",
"reference": "Can you make this accept an action instead?"
},
{
- "prediction": "I think this should be `download` instead of `video`",
+ "prediction": "I think this should be `download_product` instead of `download_file_name`",
"reference": "Tab inconsistency here (3 spaces instead of 2 spaces)"
},
{
- "prediction": "I think this should be `AleutianEpochRewardStr`",
+ "prediction": "Why is this change needed?",
"reference": "these change means we are changing epoch to 1 hour?"
},
{
- "prediction": "I think this should be `544`.",
+ "prediction": "I think this should be `544` instead of `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__`",
+ "prediction": "I don't think this is needed. `_backends` is already defined in `__init__.py`",
"reference": "Could you move this to the original position?"
},
{
- "prediction": "I think this should be `oAndR.owner`",
+ "prediction": "I think this should be `repo` instead of `owner`.",
"reference": "Is there a test that'd have caught this?"
},
{
@@ -12479,27 +12479,27 @@
"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.",
+ "prediction": "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))`",
+ "prediction": "I don't think we need to create a new ConcurrentDictionary here, but I think it would be better to use a `ConcurrentDictionary` instead of a `ConcurrentDictionary`.",
"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())`",
+ "prediction": "I think we should use `aws.StringValue(config.GetOSFamilyType())` instead of `aws.StringValue(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.",
+ "prediction": "I don't think we need to pass the `device_data` 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`",
+ "prediction": "I think this should be `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?",
+ "prediction": "I think this test should be `expect(fn).to.not.to.throw(/JSX twice/);`",
"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."
},
{
@@ -12507,7 +12507,7 @@
"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();`",
+ "prediction": "I think this should be `final`",
"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."
},
{
@@ -12515,11 +12515,11 @@
"reference": "Could we consider a more explicit name, like `devicePciAddress`?"
},
{
- "prediction": "I think this should be `if (!execName.endsWith(\".exe\") && !execName.endsWith(\".exe\")) {`",
+ "prediction": "I think this should be `execName.endsWith(\".exe\")` instead of `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()`",
+ "prediction": "Why not use `response->getRawResponse()` instead of `response->getRawResponse()`?",
"reference": "Is this supposed to be part of this PR?"
},
{
@@ -12527,11 +12527,11 @@
"reference": "DRY, worth extracting this method to axe.utils"
},
{
- "prediction": "I think this should be `APPLICATION_NAME_PREFIX` instead of `APPLICATION_NAME_SUFFIX`.",
+ "prediction": "I think this should be `APPLICATION_NAME`",
"reference": "I think there's another spot for this in DefaultCapabilityMatcher"
},
{
- "prediction": "I think we should use `os.error` instead of `message.error`.",
+ "prediction": "I don't think this is correct. The key config file should be written to disk, not to disk.",
"reference": "`QtOSError` inherits `OSError`, so I don't think it's needed to list them both here."
},
{
@@ -12539,19 +12539,19 @@
"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\"}`",
+ "prediction": "I think this should be `BUILD_FILE_NAME` instead of `BUILD_FILE_NAME`",
"reference": "Don't think this should be here. The default is set somewhere else."
},
{
- "prediction": "Shouldn't this be `self._last_status[\"progress\"] >= 100`?",
+ "prediction": "I think this should be `if 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`",
+ "prediction": "I think this should be `null` instead of `default`.",
"reference": "nit: `
` after the line"
},
{
- "prediction": "I think this should be `glob(\"fonts/*.ttf\")` instead of `glob(\"fonts/*.ttf\")`",
+ "prediction": "I think this should be `fonts/ttf` instead of `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"
},
{
@@ -12559,11 +12559,11 @@
"reference": "i think it's OK to leave this?"
},
{
- "prediction": "Why is this change needed?",
+ "prediction": "Why is this public?",
"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`",
+ "prediction": "This should be `\\n` instead of `\\n`",
"reference": "No line at end of file warning"
},
{
@@ -12575,7 +12575,7 @@
"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());`",
+ "prediction": "I think this should be `LibraryService_StreamShelvesClient` instead of `LibraryService_StreamShelvesClient`",
"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?"
},
{
@@ -12583,19 +12583,19 @@
"reference": "All stories in this file also need the default padding."
},
{
- "prediction": "I think this should be `private static readonly string MeterName = \"PrometheusExporterMiddlewareTests.Meter\";`",
+ "prediction": "I think this should be `public static readonly string MeterName = Utils.GetCurrentMethodName();`",
"reference": "Curious - what would be the actual value? "
},
{
- "prediction": "I think this should be `PALETTE=datasets[0].PALETTE` instead of `PALETTE`",
+ "prediction": "why do you need to add PALETTE here?",
"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`.",
+ "prediction": "I don't think we need to import `socketio` here.",
"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]",
+ "prediction": "Layout/EmptyLinesAroundBlockBody: Extra empty line detected at block body beginning.",
"reference": "should we have a similar test for gsa18f procurements?"
},
{
@@ -12603,27 +12603,27 @@
"reference": "change `v.recipient` to address.Address, so can use `AccountState(v,recipient)`"
},
{
- "prediction": "Layout/EmptyLinesAroundClassBody: Extra empty line detected at class body end.",
+ "prediction": "Layout/EmptyLinesAroundClassBody: Extra empty line detected at class body beginning.",
"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;`",
+ "prediction": "I think this should be \"5 seconds per tracer usage\".",
"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;`",
+ "prediction": "I think this should be `final` and not `final`.",
"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`",
+ "prediction": "I think it would be better to use `filter` instead of `filter`?",
"reference": "can't these just use the global `include` and `exclude` flags?"
},
{
- "prediction": "I think this should be `deltas.cuda()` instead of `deltas.cuda()`",
+ "prediction": "I think this should be `return deltas.new_tensor(stds).unsqueeze(0)`",
"reference": "Is this still necessary?"
},
{
- "prediction": "I think this should be `http://localhost:{port}/` instead of `*`.",
+ "prediction": "Why is this change needed?",
"reference": "Interesting! Happen to catch an exception message or anything I can look into?"
},
{
@@ -12631,15 +12631,15 @@
"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`",
+ "prediction": "Why is this change needed?",
"reference": "json objects should be `camelCase`"
},
{
- "prediction": "I don't think this is needed.",
+ "prediction": "I think this should be `SectorSize(iota)` instead of `SectorSize(iota)`",
"reference": "QuarterGiBSectorSize? SectorSize265MiB? Spelling out 256 seems overly verbose."
},
{
- "prediction": "I think this should be `using OpenTelemetry.Tests;` instead of `using OpenTelemetry.Tests;`",
+ "prediction": "Why is this change needed?",
"reference": "Maybe with this change we can remove `using OpenTelemetry.Logs`."
},
{
@@ -12647,199 +12647,199 @@
"reference": "Fix this name too."
},
{
- "prediction": "Why is this change needed?",
+ "prediction": "I think this should be `int(record_get_field_value(self.record, \"001\") or None)`",
"reference": "why this is an issue?"
},
{
- "prediction": "This should be `is_static`",
+ "prediction": "I think this should be `!$was_static`.",
"reference": "The condition should be inverse?"
},
{
- "prediction": "I think this should be `Azkaban-Flow-Version` instead of `Azkaban-Flow-Version`.",
+ "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`",
+ "prediction": "I think this should be `-d` instead of `-c`.",
"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`.",
+ "prediction": "I think this should be `return False` instead of `return False`",
"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`",
+ "prediction": "nit: I don't think we need to do this in `dimensions.js`",
"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`",
+ "prediction": "I think this should be `nil` instead of `nil`",
"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 );`?",
+ "prediction": "This should 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;`",
+ "prediction": "I think this should be `_options.HttpProtocols & HttpProtocols.Http2 != 0`",
"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?",
+ "prediction": "I think this should be `any_elements_located`",
"reference": "shouldn't **call** return a boolean?"
},
{
- "prediction": "This example is used in `gocloud.dev/howto/docstore#dynamodb-ctor`",
+ "prediction": "This example is used in `gocloud.dev/howto/docstore#dynamodb-ctor.go`",
"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;`",
+ "prediction": "I think this should be a `Predicate` instead of a `Predicate`.",
"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",
+ "prediction": "I think it would be better to use `config_handler.ctu_dir = os.path.join(args.output_path, args.ctu_phases)` instead of `config_handler.ctu_dir = os.path.join(args.ctu_dir, args.ctu_phases)`",
"reference": "What is this and the next entry in config_handler used for?"
},
{
- "prediction": "I think this should be `nil` instead of `nil`",
+ "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)`",
+ "prediction": "I think we should check `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.",
+ "prediction": "I think this should be `--bug-path-length` instead of `--bug-path-length`.",
"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`",
+ "prediction": "Line is too long. [89/80]",
"reference": "Is it only Symbols we're worried about converting? Is it not safe to just call `to_s` anyway?"
},
{
- "prediction": "Why remove this?",
+ "prediction": "Why is this removed?",
"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`",
+ "prediction": "I think we should use `trails.partition(&:incomplete?)` instead of `trails.select(&:incomplete?)`.",
"reference": "What about `sort_by(&:in_progress?)`? Maybe with a `.reverse` thrown in?"
},
{
- "prediction": "Why is this removed?",
+ "prediction": "I don't think we should remove this flag.",
"reference": "Flag is removed because it is only gRPC now."
},
{
- "prediction": "I think we should add a `--template` argument to the `role` class.",
+ "prediction": "I don't think you need to add this to the docstring.",
"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\":`",
+ "prediction": "I think this should be `utils.get_argument_from_call(node, position=0, keyword=\"encoding\")`",
"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.",
+ "prediction": "why is this import needed?",
"reference": "why depend on recovery???"
},
{
- "prediction": "I think this should be `doneChan <- struct{}{}`",
+ "prediction": "Why is this change needed?",
"reference": "the done channel only aims to be closed, so `chan struct{}` is better then `chan interface{}`"
},
{
- "prediction": "Why is this error being wrapped?",
+ "prediction": "I think we should use `wrapErr` instead of `wrapErr`.",
"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\">`",
+ "prediction": "I don't think this is needed anymore.",
"reference": "Is this effectively requiring browsers support javascript?"
},
{
- "prediction": "I think this should be `isDarkTheme = SalesforceSDKManager.getInstance().isDarkTheme(getActivity());`",
+ "prediction": "I think this should be `android.R.style.Theme_Material_Light_Dialog`",
"reference": "Lowercase `boolean` - use the primitive type."
},
{
- "prediction": "I think we should use `await feed.CheckIfBlobExists(relativeBlobPath);` instead of `await feed.CheckIfBlobExists(relativeBlobPath);`",
+ "prediction": "I think this should be `Log.Error` instead of `Log.LogError`.",
"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]) {`",
+ "prediction": "I think this should be `xsurface->fullscreen = true` instead of `xsurface->maximized_horz = true`",
"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') } );`",
+ "prediction": "I don't think we need to change the `fromRange` and `toRange` here.",
"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')`",
+ "prediction": "`reffedHeaders.includes(header.getAttribute('id'))` is a bit confusing. `reffedHeaders.includes(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`.",
+ "prediction": "I don't think we need to add the CRDs to the list.",
"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.",
+ "prediction": "I think this should be `machine.GP10` and not `machine.GP10`.",
"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`",
+ "prediction": "I think this should be `opae/enum.h` instead of `opae/enum.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`",
+ "prediction": "I think this should be `github.com/go-logr/logr`",
"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;`",
+ "prediction": "I don't think this is correct. The `bytes == 0` check should be done in `cuda_resize_scratch_space` and `cuda_resize_scratch_space` below.",
"reference": "Should this be using the `CUDA_SAFE_CALL` macro here?"
},
{
- "prediction": "I think we should use `ConsoleColor.Green` instead of `ConsoleColor.Yellow`",
+ "prediction": "I think this should be `Console.WriteLine(Path.GetFileNameWithoutExtension(assembly.AssemblyFilename));` and not `Console.WriteLine(Path.GetFileNameWithoutExtension(assembly.AssemblyFilename));`",
"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 {`",
+ "prediction": "I don't think this is needed.",
"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) {`",
+ "prediction": "I think this should be `pixman_region32_copy(&state->opaque, &next->opaque);`",
"reference": "`next->opaque` should not be cleared."
},
{
- "prediction": "I don't think we need to check if the issuer account is known.",
+ "prediction": "I don't think we need to check if the issuer account is known. I think we should 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?",
+ "prediction": "Why is this removed?",
"reference": "Can you put spaces after the `{`and before the `}`"
},
{
- "prediction": "I think we should use `__version__` instead of `__version__`",
+ "prediction": "I don't think we need to import the `__version__` here.",
"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]))`",
+ "prediction": "Why is this change needed?",
"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`",
+ "prediction": "I think this should be `interface{}`",
"reference": "can we make use of storagepoolclaim type rather than the generic interface{} type?"
},
{
- "prediction": "I think this should be `k.AddPeers(k.previouslyConnected()...)`.",
+ "prediction": "I think this should be `k.previouslyConnected()` instead of `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(); });`",
+ "prediction": "Why is this change needed?",
"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.",
+ "prediction": "I think this should be `cache_key` instead of `cache_key`",
"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`",
+ "prediction": "I think this should be `raise_with_traceback(obj, str, param_name=param_name)`.",
"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)`",
+ "prediction": "I think this should be `fmt.Sprintf(\"%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?"
},
{
@@ -12847,67 +12847,67 @@
"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; }`",
+ "prediction": "I think this should be `if (stopped) { break; } else { 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)`",
+ "prediction": "Why is this change needed?",
"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`",
+ "prediction": "I think we should use `storepb` instead of `storepb` here.",
"reference": "`go.sum` needs to be updated for this. Please run `go mod tidy`"
},
{
- "prediction": "I think this should be `SecretBackendSSMParameterStore` and `SecretBackendSecretsManager`",
+ "prediction": "I think this should be `secrets-manager` instead of `ssm-parameter-store`",
"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);`",
+ "prediction": "I think this should be removed.",
"reference": "Same thing with the OtlpExporter"
},
{
- "prediction": "I think this should be `JX_OP_CALL` instead of `JX_OP_LOOKUP`",
+ "prediction": "Why remove this?",
"reference": "Should not be removed."
},
{
- "prediction": "I think this is a good idea to remove the `EZBakeUtils` class from the `BeakerPuppet` class.",
+ "prediction": "I think we can remove these files from the `beaker/dsl/install_utils.rb` file.",
"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);`",
+ "prediction": "I think this should be `beforeClickOn(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]",
+ "prediction": "I think we should use `self.system_approver_emails.first.email_address` instead of `self.approving_official.email_address`",
"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.",
+ "prediction": "Why is this deprecated?",
"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`.",
+ "prediction": "I think it would be better to have a default value for `gridded` and `multi` for `gridded` and `gridded` for `multi` and `gridded` for `gridded` and `gridded` for `multi` and `gridded` for `gridded` and `gridded` for `gridded` and `gridded` for `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`",
+ "prediction": "I think this should be `true` instead of `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?",
+ "prediction": "Why is this public?",
"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?",
+ "prediction": "why is this change needed?",
"reference": "Shouldn't this be called `hp` instead of `life`?"
},
{
- "prediction": "Why is this change needed?",
+ "prediction": "I don't think we need to change this to `GET, POST, PUT, DELETE, HEAD`.",
"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?",
+ "prediction": "This line should be removed.",
"reference": "Undo this modification"
},
{
@@ -12915,43 +12915,43 @@
"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`.",
+ "prediction": "I don't think we need to pass the `u` argument to `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?",
+ "prediction": "I don't think we need to change the `Project` field here.",
"reference": "Can you explain the history of the bug a bit, and why this fixes it?"
},
{
- "prediction": "Use 2 (not 3) spaces for indentation.",
+ "prediction": "Layout/EmptyLinesAroundMethodBody: Extra empty line detected at method body beginning.",
"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);`",
+ "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.",
+ "prediction": "I think this should be `expect { Registry.clear }.to_not raise_error`",
"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`",
+ "prediction": "I think this should be `ssmfactory` instead of `factory`.",
"reference": "naming: please use `asmfactory`"
},
{
- "prediction": "I think this should be `if len(target.Outputs()) > 1 {`",
+ "prediction": "I don't think this is correct, but it's a bit confusing to me. I think it's better to just use `path.Join` instead of `path.Join`?",
"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)`",
+ "prediction": "I think this test should be in a separate PR.",
"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()`?",
+ "prediction": "I think this is the only place where we use the partition spec. I think it's better to use the partition spec instead of the current partition spec.",
"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) === '::'`?",
+ "prediction": "Why not use `substr($file_contents, $start_pos, 2) === '::'` instead of `substr($file_contents, $start_pos, 2) === '::'`?",
"reference": "As mentioned below, I'm not sure why this is only allowing refs that are tagged with `*` at the start!"
},
{
@@ -12959,63 +12959,63 @@
"reference": "Don't forget the {} symbols, and please use EqualsBuilder and HashcodeBuilder as possible"
},
{
- "prediction": "I think this should be `ch <- string(proxyBuf[:n])`",
+ "prediction": "Why is this change necessary?",
"reference": "Allocate buffer once outside loop."
},
{
- "prediction": "I think this test should be `TEST(network, fill_keepalive_self);`",
+ "prediction": "I think this should be `assert_TRUE(target[2].port() == system.nodes[1].network.port() == system.nodes[0].network.port());`",
"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.",
+ "prediction": "I don't think this is a good idea, but I think it would be better to use `Access.java` instead of `Access.java`.",
"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.\");`",
+ "prediction": "I don't think this should be necessary. The `Activity.Current == null` check should be done in the `ProcessResult` method.",
"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?",
+ "prediction": "I think this should be `return i.net.Start()`",
"reference": "what was the point in moving handlers registration into a separate method?"
},
{
- "prediction": "I think this should be `RetrieveCommandCache` instead of `RetrieveCommandCache`.",
+ "prediction": "I think this should be `newRetrieveCommandCache(state.Config.Cache.RetrieveCommand)`",
"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;`",
+ "prediction": "I think this should be `isNaN(step[step.length-1]) && step[step.length-1] == \"'\"`",
"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?",
+ "prediction": "I think this should be `throw new Exception(\"Vault message should not be in hex; message: {message}\");`",
"reference": "Don't throw base exception, specify more precise type"
},
{
- "prediction": "I think this should be `if isinstance(inputs, torch.Tensor):`",
+ "prediction": "The same type with inputs, but all contained Tensors have been cast. The same type with inputs, but all contained Tensors have been cast. The same type with inputs, but all contained Tensors have been cast. The same type with inputs, but all contained Tensors have been cast. The same type with inputs, but all contained Tensors have been cast. The same type with inputs, but all contained Tensors have been cast. The same type with inputs, but all contained Tensors have been cast.",
"reference": "Recursive -> Recursively converted -> convert"
},
{
- "prediction": "Why not use `opts.generate_object_based_api` instead of `opts.generate_object_based_api`?",
+ "prediction": "I think this should be `opts.generate_object_based_api && !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\" {`",
+ "prediction": "I don't think we need to change the `dockerVersion` parameter here.",
"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)`",
+ "prediction": "Why is this change needed?",
"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 &`",
+ "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.",
+ "prediction": "I think this should be `com.google.api.codegen.viewmodel.ParamView`",
"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`",
+ "prediction": "I think this should be `github.com/google/uuid` instead of `github.com/google/uuid`",
"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?"
},
{
@@ -13023,15 +13023,15 @@
"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?",
+ "prediction": "I think this should be `set_protection(guard, PAGE_SIZE, MEMPROT_READ);` instead of `set_protection(guard, PAGE_SIZE, MEMPROT_READ);`",
"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.",
+ "prediction": "I don't think we need to do this in the `on_approver_removal` method, since it's only called from the `on_approver_removal` method.",
"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`?",
+ "prediction": "Shouldn't this be `n_running_tasks`?",
"reference": "Add trailing comma"
},
{
@@ -13043,11 +13043,11 @@
"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())`",
+ "prediction": "I think this should be `param_list = param_list.split(\",\")`",
"reference": "Would like a docstring and type annotations here"
},
{
- "prediction": "Line is too long. [92/80]",
+ "prediction": "I think we can remove the `shard_key_fields` attribute from the `Mongoid::Base` class.",
"reference": "This is an API change. Why was it made?"
},
{
@@ -13059,7 +13059,7 @@
"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.",
+ "prediction": "I don't think we need to do this in `install` or `install`?",
"reference": "Should this `PUPPET_AGENT_STARTUP_MODE` have a corresponding yardoc change?"
},
{
@@ -13067,35 +13067,35 @@
"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]`.",
+ "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`",
+ "prediction": "I think this should be `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.",
+ "prediction": "I think this should be `if (table == null || table == metaCache.getTable(database, tableName)) {`",
"reference": "should we also do `reloadCache` when database is null?"
},
{
- "prediction": "Why not use `*mcsRes.QueryMol` instead of `*mcsRes.QueryMol`?",
+ "prediction": "I don't think you need to create a new ROMol object here.",
"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)`",
+ "prediction": "I think this should be `os.path.join(os.path.dirname(__file__), fname[1:])`",
"reference": "Could you add a docstring?"
},
{
- "prediction": "Metrics/LineLength: Line is too long. [92/80]",
+ "prediction": "Extra empty line detected at block body beginning.",
"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?",
+ "prediction": "Why is this removed?",
"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`.",
+ "prediction": "I think it would be better to add a `is_zero_count=False` argument to `ArgInfo` as well.",
"reference": "nitpick: Please lower-case `Zero_count` (as it's a literal argument name) and `Argument` here."
},
{
@@ -13103,55 +13103,55 @@
"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`",
+ "prediction": "I think this should be `if len(by) == 0`",
"reference": "for later: add docstring (can just copy paste Pandas')"
},
{
- "prediction": "I think this should be `archerMocks` instead of `archerMocks`",
+ "prediction": "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.",
+ "prediction": "I think we should 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\"`.",
+ "prediction": "nit: can we rename this to `all_data_files_table`?",
"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)`",
+ "prediction": "`limit` and `perDocumentLimit` should be `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`",
+ "prediction": "Why is this change needed?",
"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`",
+ "prediction": "I think this class should be renamed to `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.",
+ "prediction": "I think it would be better to use `
` instead of `
`",
"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());`",
+ "prediction": "I don't think this is correct. The execution must be failed. The execution must be failed. The execution must be failed.",
"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