{
"test_bleu_4": 0.020400991667966724,
"test_exact_match": 0.0,
"test_rouge": {
"rouge1": 0.12946423544226396,
"rouge2": 0.020207727828718262,
"rougeL": 0.11198333262416457,
"rougeLsum": 0.11192157274377995
},
"test_bertscore": {
"precision": 0.8442566235317032,
"recall": 0.8410992779226731,
"f1": 0.842264587278504
},
"test_meteor": 0.09102937949338932,
"raw_data": [
{
"prediction": "Why is this needed?",
"reference": "can we also test for `transport=rest`?"
},
{
"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 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": "`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 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` instead of `AbsMat`.",
"reference": "I think im2col should only accommodate CPUMat."
},
{
"prediction": "I don't think we need to import email_violations here.",
"reference": "alpha sort the imports"
},
{
"prediction": "(style) line over 80 characters",
"reference": "Can you explain why is this necessary? Is `snprintf()` with four integer arguments unsafe?"
},
{
"prediction": "I don't think this is 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 `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 `keys.join('')` instead of `keys.join('')`",
"reference": "Also update line 2205 below"
},
{
"prediction": "I think this should be `shared := volumeConfig.GetSharedMountValue()`.",
"reference": "n_: It is a good practice to name the variable to indicate what they contain. In this case since `shared` is supposed to have boolean, calling it: `isShared` can help in the readability of the code."
},
{
"prediction": "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": "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.Error(\"no image to be updated\", provider.Name()),`",
"reference": "`zap.String(\"image-provider\", provider.Name())` should be in a same line."
},
{
"prediction": "Why is this removed?",
"reference": "Why this deletion?"
},
{
"prediction": "I think this should be `self.assertIn(check.cache_control, 'public,%20max-age=500', 'public, max-age=500')`",
"reference": "This change looks unrelated to the CL description?"
},
{
"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 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) return;`",
"reference": "Merge with next condition"
},
{
"prediction": "I think this should be `DeleteTask` instead of `TaskStackInfo`",
"reference": "Maybe add it when it is used."
},
{
"prediction": "I don't think we need to add this to the list.",
"reference": "More clear naming: NONEXISTENT_ENABLED"
},
{
"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": "Why is this removed?",
"reference": "make a SchemaTypeNameConverter.getTypeNameForEmptyType() and call that here."
},
{
"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"
},
{
"prediction": "I think this should be `true` instead of `false`.",
"reference": "Great God, I have a question. This \".nebula_history\" file is used to save history commands. Is there a file size limit? When the file is large, does it take a long time to start initialization (loadHistory)? How did you think about this? Thx."
},
{
"prediction": "I think this should be `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` instead of `options.CA_DIR`.",
"reference": "Don't redefine, just import the existing one in `cmdline.py`. :)"
},
{
"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);`",
"reference": "This was properly set above as `.runfiles/` (with a fallback to workspace root dir) but never used past this line."
},
{
"prediction": "I don't think this is needed.",
"reference": "Are all these namespaces required for this attribute?"
},
{
"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 `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 change needed?",
"reference": "why named alters? how about this.alerts = alerts?"
},
{
"prediction": "why is this change needed?",
"reference": "not sure if this has to be here or not tbh"
},
{
"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."
},
{
"prediction": "Why is this change needed?",
"reference": "Use swarm.Address not []byte as type, and construct it from actual byteslice or use swarm.NewAddress if it is constructed from hex-encoded string."
},
{
"prediction": "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 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 `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 this line should be removed.",
"reference": "This shouldn't be changed."
},
{
"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 this is needed anymore.",
"reference": "Are these imports needed (BiConsumer and Consumer)? If they are unused imports, then precommit will fail."
},
{
"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 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": "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": "I don't think you need wildcard imports.",
"reference": "Spotless is configured to reject star imports. Please replace with explicit imports."
},
{
"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 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."
},
{
"prediction": "Why is this change needed?",
"reference": "this is a behavior change. solid_subset=[] represents an empty pipeline where as solid_subset=None is the full pipeline"
},
{
"prediction": "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` 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 `lowestTriggerPrefetchPriority` instead of `highestTriggerPrefetchPriority`",
"reference": "The PR description says the lowest on-demand request priority is `2^30`. Why the `-1` here?"
},
{
"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.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 `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": "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 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 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`?"
},
{
"prediction": "Why is this removed?",
"reference": "This obviously won't work for all the other platforms."
},
{
"prediction": "Why is this change needed?",
"reference": "Isn't he diamond operator Java7+?"
},
{
"prediction": "I think 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."
},
{
"prediction": "I think this should be `*int` instead of `*int`",
"reference": "This pattern, where we add a new parameter without using it, often indicates to me that we've got a leaky interface or abstraction. I see this pattern _a lot_ in this patch, so wondering you have thoughts about it."
},
{
"prediction": "I think this should be `if err != nil { return err }`",
"reference": "This seems like an improved pattern :)"
},
{
"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": "I think this should be `Balance: ...` instead of `Balance: ...`",
"reference": "This didn't require corresponding changes to the test case(s)?"
},
{
"prediction": "I think this should be `env_file` instead of `env_file`",
"reference": "A question! I think `string` totally works, but what do you think of `*string` for consistency?"
},
{
"prediction": "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 don't think z/x are needed anymore.",
"reference": "Not clear on why this change is correct."
},
{
"prediction": "I think this should be `isMapped` instead of `isMapped`.",
"reference": "Hi Simon. Whether this should return true depends on what byte buffers are used? The same applies to ByteBufferIndexInput, actually... I don't think you can generally tell whether the ByteBuffers the input operates on come from a mmap call or from somewhere else (even direct buffers don't have to be a result of mmap)."
},
{
"prediction": "I think this should be `padding: 0` instead of `0`",
"reference": "All stories in this file also need to have the default padding."
},
{
"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 beginning.",
"reference": "Should this be `number` instead of `id`?"
},
{
"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) code indent should use tabs where possible",
"reference": "Should most of these non-globals be static?"
},
{
"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": "Why is this needed?",
"reference": "Now that you handle this in `webenginetab.py` you can undo all the changes in this file."
},
{
"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 `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."
},
{
"prediction": "I think this should be `null` instead of `null`",
"reference": "do you really want to change the behavior on foreign key ?"
},
{
"prediction": "(style) code indent should use tabs where possible",
"reference": "Looks like my bad. Thanks for fixing!"
},
{
"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": "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 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 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 resume begin\");`",
"reference": "These logs should probably use the `LOGTAG`"
},
{
"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."
},
{
"prediction": "Why is this change needed?",
"reference": "Any particular reason for this? This potentially will make harder to investigate users issues"
},
{
"prediction": "I think this should be `Blockly.highlightedConnection_ != closestConnection && Blockly.localConnection_ != localConnection`",
"reference": "Do you also need to check if Blockly.localConnection_ is non-null?"
},
{
"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 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": "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": "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": "Is there a reason we don't need to lock here?",
"reference": "Same trick here IMO."
},
{
"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 think this should be `if len(args) > 0`",
"reference": "this example needs a fix?"
},
{
"prediction": "(style) code indent should use tabs where possible",
"reference": "Is it safe to assume this surface is a toplevel?"
},
{
"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 `Windows` instead of `Windows`",
"reference": "we'll also have to think about adding \"Windows Server 2014\" or whatever they come up with later."
},
{
"prediction": "Why do we need this method?",
"reference": "curious do we have an API to fetch an inactive flow?"
},
{
"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 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": "Why is this needed?",
"reference": "Please import modules and not classes (except for Qt stuff)."
},
{
"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 removed.",
"reference": "This seems meaningless. If we cannot add any info let us remove this."
},
{
"prediction": "I don't think we need a lock here.",
"reference": "Can you rename `Ports` to `PortsUnsafe`?"
},
{
"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 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 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": "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`.",
"reference": "Why are we not wrapping here?"
},
{
"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?"
},
{
"prediction": "Why is this changed?",
"reference": "Does this file actually need to be committed to git? Having to run `make generate` is rather tedious on each PR and it conflicts easily."
},
{
"prediction": "Why 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 `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 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 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 `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": "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/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`.",
"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 `std::distance(first, last) > 9`",
"reference": "Nice use of std::distance. I'm a bit worried about first += 9 though."
},
{
"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": "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 don't think we need to import `xrc20` here.",
"reference": "No need to have `xrc20` alias"
},
{
"prediction": "I think this should be `context_cls_inst` instead of `context_cls_inst`.",
"reference": "the naming convention I'm been adopting if `_type` for instances of these classes. So maybe `context_config_type` is a better name for this fn"
},
{
"prediction": "I think this should be `true` instead of `false`.",
"reference": "Don't call it GPU mining, call it `externalMining`, here and throughout."
},
{
"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=false`",
"reference": "how come this is false?"
},
{
"prediction": "I think this should be `typeOf(args[i]) === typeOf(args[i])`",
"reference": "How about `Object.prototype.toString`? Or using the `typeof` operator?"
},
{
"prediction": "I think this should be `context.Background()`.",
"reference": "I know @jzila suggested this, but I disagree: you're really not supposed to save a context in a struct. Can you get by with just saving the `Done()` channel instead? The `ctx` should continue to be passed around explicitly."
},
{
"prediction": "I think this should be `!IsWindows && PlatformApis.IsDarwin;` instead of `!IsWindows && PlatformApis.IsDarwin;`",
"reference": "This check isn't right though."
},
{
"prediction": "I think this should be `codeGenVersion` instead of `codeGenVersion`",
"reference": "maybe `toolkitVersion` instead? It doesn't necessarily have to be called that in the generated code, but in the view model classes, I think it makes it clearer that it is the version of toolkit itself."
},
{
"prediction": "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 "
},
{
"prediction": "Why is this change needed?",
"reference": "This isn't really easy to read."
},
{
"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 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 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": "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": "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 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 include this in the collection.",
"reference": "Can you please change the name of this class to be something else?"
},
{
"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 `,`."
},
{
"prediction": "Why is this change needed?",
"reference": "why not recycling? I Lru cache now recycling?"
},
{
"prediction": "Why is this change needed?",
"reference": "Why it is now called `PaymentVersionV3`?"
},
{
"prediction": "I 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?",
"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 && !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 elements of a hash literal if they span more than one line. Space inside } missing.",
"reference": "where does `master_certname` come from?"
},
{
"prediction": "why is this needed?",
"reference": "The line breaking is unnecessary."
},
{
"prediction": "Why is this change needed?",
"reference": "why not enable split by space here ?"
},
{
"prediction": "I don't think we need to check for `FPGA_DISCRETE_DEVICEID` here.",
"reference": "Shouldn't the operator be && ?"
},
{
"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 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": "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 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 don't think this is needed.",
"reference": "`ctx` is unused in GenerateAPIKey"
},
{
"prediction": "Why is this fatal?",
"reference": "Can you judge the type of error?"
},
{
"prediction": "why not use `np.diff(data)/2.0`?",
"reference": "Much simpler than a weird and confusing ``convolve`` call!"
},
{
"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": "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 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": "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 `var block = memory.Lease();` instead of `var returnedBlock = task.Result?.Pool?.Return(block);`",
"reference": "Why can the pool be null?"
},
{
"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 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": "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\"`.",
"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` 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."
},
{
"prediction": "Why is this removed?",
"reference": "Same change just above?"
},
{
"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": "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": "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."
},
{
"prediction": "Why is this change needed?",
"reference": "We should have a rule to detect identical catch branches"
},
{
"prediction": "Why is this removed?",
"reference": "remove these from the targets file."
},
{
"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 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": "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|`",
"reference": "Where is host['ips'] coming from?"
},
{
"prediction": "Why is this removed?",
"reference": "oh! missed a `:` here; let me fix that; also can get rid of the intermediate variable"
},
{
"prediction": "Prefer single-quoted strings when you don't need string interpolation or special symbols.",
"reference": "Is this necessary?"
},
{
"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 `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": "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() && 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": "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 `*` instead of `*`",
"reference": "nit: this is a package-wide constant so better to narrow the scope like `allEventsSign`."
},
{
"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?"
},
{
"prediction": "I think this should be `isHydrating = true` instead of `isHydrating = false`",
"reference": "Might be cheaper to reuse the `null` assignment of line 313 and set `isHydrating` to null instead WDYT?"
},
{
"prediction": "Please revert this change.",
"reference": "Revert this blank line"
},
{
"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 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, '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 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": "Why is this needed?",
"reference": "Why do you think that it is necessary to create this class?"
},
{
"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 `*jose.JSONWebKeySet` instead of `*jose.JSONWebKeySet`",
"reference": "nit: perhaps this file would be better named `jwks_source.go` ?"
},
{
"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 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` 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 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": "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 `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]);` 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": "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": "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 `@Nullable` instead of `@Nullable`.",
"reference": "s/for use/to use for/"
},
{
"prediction": "I think this should be `avatar_filename` instead of `avatar_id`",
"reference": "` $event->getAvatarFilename()` this function return `string` or `null`. In this place ` $event->getAvatarFilename()->getValue()` return `Fatal error `"
},
{
"prediction": "I think we should 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 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": "remove empty line",
"reference": "Unrelated file. Please remove from PR."
},
{
"prediction": "(style) line over 80 characters",
"reference": "Careful: you only want two newlines after the final header message. (That indicates the end of headers and the start of data.)"
},
{
"prediction": "I think this should be `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\"`)?"
},
{
"prediction": "Why is this change needed?",
"reference": "This was to allow the tests to pass when the order of the required was different. Silly, but we don't have an easy way to check for \"equal but order doesn't matter\" in chai."
},
{
"prediction": "I think this should be `const 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 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 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": "Why is this change needed?",
"reference": "Are you sure? We've changed it during an introduction of the IME support."
},
{
"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 changed?",
"reference": "this is golang's named return, err is defined, `return` is equivalent to `return err` the current code has no problem"
},
{
"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 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?"
},
{
"prediction": "I think this should be `FileServer.getBaseDir()` instead of `FileServer.getBaseDir()`",
"reference": "This is very-very bad idea because of its performance impact"
},
{
"prediction": "I think this should be `github.com/sonm-io/core/proto` instead of `github.com/sonm-io/core/proto`",
"reference": "WHY U NOT SORT IMPORTS?"
},
{
"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": "Why is this needed?",
"reference": "How come we need ``Dimensioned`` in the top-level namespace?"
},
{
"prediction": "I don't think we need to change the name of the plugin.",
"reference": "excess whitespace through plugin."
},
{
"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 is this removed?",
"reference": "Update the docstring."
},
{
"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": "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 this should be `abort` instead of `finish`",
"reference": "Is this a breaking change, or is the API private?"
},
{
"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 `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 `/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 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 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 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 don't think this is needed.",
"reference": "You can safely revert changes to this file."
},
{
"prediction": "why remove this?",
"reference": "This deletion is unnecessary."
},
{
"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 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 `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": "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 think it would be better to use `std::invalid_argument` instead of `std::invalid_argument`.",
"reference": "Use `UpperCamelCase` for function names"
},
{
"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 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 `ch == '/' || ch == ','`",
"reference": "this change should be reverted"
},
{
"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 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 think this should be `luaA_object_push(L, swap);`",
"reference": "Wouldn't a single signal call be enough? (without the boolean even)"
},
{
"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 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.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": "I think this should be a constant, not a constant.",
"reference": "delete this line"
},
{
"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 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 `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": "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:downloading` instead of `chromium:downloading`",
"reference": "The name `enableDownloading` implies this is a boolean capability. How about `downloadDir`?"
},
{
"prediction": "Why is this deprecated?",
"reference": "Found one internal team is using this method. Will coordinate with them about the migration solution."
},
{
"prediction": "I think this should be `DD_HTTP_SERVER_ERROR_STATUSES`",
"reference": "The field `HttpServerErrorCodes` should be called `HttpServerErrorStatuses`"
},
{
"prediction": "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 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 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 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": "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 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 remove this?",
"reference": "this is redundant because it gets logged immediately on entering the handleContainerChange function"
},
{
"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 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."
},
{
"prediction": "Why remove this?",
"reference": "It's fine to leave these checks in. It'll make the exception come from `FirefoxDriver`, and that's probably clearer to a user."
},
{
"prediction": "I 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": "Why is this needed?",
"reference": "Please check the return on these."
},
{
"prediction": "I think this should be `uplink.config.cache` instead of `self.config.cache`",
"reference": "Do we need `==` for true?"
},
{
"prediction": "why change this to 0.0001?",
"reference": "Changing the default value may cause BC-breaking. Suggest changing this value in config."
},
{
"prediction": "why do we need `int(slider_pos)` here?",
"reference": "how does that happen?"
},
{
"prediction": "I don't think we need to import `exec_` here.",
"reference": "This is gross/clever. :-)"
},
{
"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 util.PageNotFound` instead of `return util.PageNotFound`",
"reference": "Can you check with @mahebbar how to work this error. Should be different from 404."
},
{
"prediction": "I don't think this is needed anymore.",
"reference": "Do we still need the upper bound `<3.9`?"
},
{
"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 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 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 `eval.totalTxBytes = 0` instead of `eval.totalTxBytes = eval.totalTxBytes`",
"reference": "should this increment eval.Round somehow?"
},
{
"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": "Layout/TrailingWhitespace: Trailing whitespace detected.",
"reference": "This is a way better method name."
},
{
"prediction": "Layout/TrailingWhitespace: Trailing whitespace detected.",
"reference": "Prefer single-quoted strings when you don't need string interpolation or special symbols."
},
{
"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'] }`."
},
{
"prediction": "I think this should be `wasHiveString_(FALSE)` instead of `wasHiveString_(FALSE)`",
"reference": "I'm confused by the name. The string was a Hive string but it isn't any longer? Why should we care? (I imagine I'll find the answer later... there is some different semantic that we want downstream...)"
},
{
"prediction": "I don't think we need wildcard imports.",
"reference": "Could you please leave the explicit imports?"
},
{
"prediction": "I don't think this is needed anymore.",
"reference": "Why need alias?"
},
{
"prediction": "Why is this needed?",
"reference": "Shouldn't this be a `libfs.nullIDGetter` (exported, of course)?"
},
{
"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."
},
{
"prediction": "Why is this removed?",
"reference": "Seems we don't need it anymore."
},
{
"prediction": "Align the elements of a hash literal if they span more than one line. 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 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 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": "Why is this change needed?",
"reference": "Why change the port from 0 to getAvailablePort()?"
},
{
"prediction": "Why is this change needed?",
"reference": "For me would be great don't repeat timeout sending in every get_locator call. Looks like it should be sent into LocatorsManager init. And possibly it should me non mandatory, something like that: `def __init__ (self, locators, timeout=60):`"
},
{
"prediction": "I think we 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` 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": "I think this should be `return;` instead of `return;`",
"reference": "nit: can remove this `else` since we return from the condition above."
},
{
"prediction": "Why is this removed?",
"reference": "You missed `Write(...)`! I'm kidding ofc."
},
{
"prediction": "I think we should check 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": "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 method should be renamed to `attachFile` or something like that.",
"reference": "it's better to be : void attach(String name, Part part);"
},
{
"prediction": "Why is this change needed?",
"reference": "I didn't see where the IOException can get thrown, is this just to match the V1 reader?"
},
{
"prediction": "Why is this needed?",
"reference": "We normally suppress this warning with `RDUSED_PARAM(forceRDKit)`"
},
{
"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 don't think we need to change the name of the field.",
"reference": "Why upper case \"R\"?"
},
{
"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`?"
},
{
"prediction": "Why is this protected?",
"reference": "Can you not change those scopes in public API classes? This applies here and in other places -- protected changed to package-scope for source is not really an API-compatible change."
},
{
"prediction": "I think this should be `1` instead of `1`.",
"reference": "this parameter is only used in POST, please use `getRequest()->request->get('...');` Thanks"
},
{
"prediction": "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 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": "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 `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 to pass `paginated` to `DepotChest::queryAdd` instead of `items[type].maxItems`?",
"reference": "here shouldn't we use `depotFreeLimit`?"
},
{
"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 should be `assertRaises(TypeError, lambda: kdf.a.groupby(by='a', axis=1))`",
"reference": "so should be fixed here also"
},
{
"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/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 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 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 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 a note?",
"reference": "This seems like a more appropriate message under `ListenAndServe`. WDYT?"
},
{
"prediction": "Why did you remove this?",
"reference": "Is this not required?"
},
{
"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(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."
},
{
"prediction": "Why is this change needed?",
"reference": "rename? MiningCoordinator always exists"
},
{
"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.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 necessary?",
"reference": "Does anyone still use the cst out of this method? If not consider deleting"
},
{
"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` here.",
"reference": "This seems unused."
},
{
"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\""
},
{
"prediction": "why do we need this?",
"reference": "should probably be called `_DeleteFpInfoAttr` because it removes it. Cleaning gives the impression it is still there. I would also move this to the end of the function `GetAtomicWeightsForFingerprint`."
},
{
"prediction": "I think this should be `std::map`.",
"reference": "nit, can we use `VK_PIPELINE_BIND_POINT_RAY_TRACING_KHR` here (granted it isn't else where, maybe worth fixing here or in separate PR)"
},
{
"prediction": "Layout/MultilineMethodCallBraceLayout: Closing method call brace must be on the 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": "Layout/SpaceInsideHashLiteralBraces: Space inside { missing. Layout/SpaceInsideHashLiteralBraces: Space inside } missing.",
"reference": "Think it's worth extracting this to `Exercise#complete?`?"
},
{
"prediction": "Why is this removed?",
"reference": "This is still a potentially useful public method - should we remove such methods?"
},
{
"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])`",
"reference": "I think its worth stating this is `versionMajor`"
},
{
"prediction": "why do we need this?",
"reference": "rebuild: say loads and merges"
},
{
"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 remove this line?",
"reference": "I'd prefer to have a blank line between the class declaration and its first member. Is it possible?"
},
{
"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?"
},
{
"prediction": "(style) line over 80 characters",
"reference": "I am afraid this is going to cause problems on Windows where it is not uncommon to have injected threads (CTRL_SHUTDOWN, CTRL_LOGOFF, etc.) we have no privileges to suspend -- and thus retrying will just fail again, and with the new \"synchall failure is fatal and should kill the process\" approach it turns what used to work for us on Windows into process death."
},
{
"prediction": "I 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)`.",
"reference": "Do you plan to support Pod spec change? Like hostPort is added/removed later after Pod creation?"
},
{
"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 `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."
},
{
"prediction": "why is this removed?",
"reference": "I looked and couldn't find any usage of `container` in any of the editor component files (js or hbs), so I assume this was used once and didn't get removed?"
},
{
"prediction": "Why 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`.",
"reference": "Fixes test failed in some cases"
},
{
"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.ignore.args` instead of `azkaban.jvm.ignore.args`.",
"reference": "Can you please change this to azkaban.jobs.java.opts?"
},
{
"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 `#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 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": "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": "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 is this change needed?",
"reference": "assignments should only be cuddled with other assignments (from `wsl`)"
},
{
"prediction": "I think this should be `return FirstValidDataVer` instead of `DefaultBlockDataVersion`",
"reference": "Please move this to `block_types.go`."
},
{
"prediction": "Why is this removed?",
"reference": "So this is not needed anymore for all attributes?"
},
{
"prediction": "I 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 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`)"
},
{
"prediction": "Why do we need this?",
"reference": "With this fix, I am not even sure we need to overwrite this function."
},
{
"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": "I don't think we should remove this line.",
"reference": "You've got an absolute path here referencing your home dir :-)."
},
{
"prediction": "Why is this change needed?",
"reference": "Maybe I should do some sorting so that these properties don't keep moving around..."
},
{
"prediction": "Why remove this?",
"reference": "Can we keep this test anyway, as it's part of the spec?"
},
{
"prediction": "I think this should be `static` instead of `static`.",
"reference": "Can be removed"
},
{
"prediction": "Why is this needed?",
"reference": "It's a minor quibble I know, but I like having the imports ordered by lengt"
},
{
"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."
},
{
"prediction": "Why is this change needed?",
"reference": "this filename as well needs change"
},
{
"prediction": "I think this should be `SecretAccessKeyIDRef`",
"reference": "I think we want to remove `omitempty` here"
},
{
"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"
},
{
"prediction": "Why is this removed?",
"reference": "I updated only the implicit roles who needed a update for this new rule to validate."
},
{
"prediction": "nit: remove empty line",
"reference": "> // Code generated by protoc-gen-go. DO NOT EDIT."
},
{
"prediction": "I don't think this is needed.",
"reference": "minor: skipOSConfigMetadata, otherwise, the name sounds like a boolean"
},
{
"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 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 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 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 don't think we need to escape the `id` attribute here.",
"reference": "Indentation is mixed up here due to spaces/tabs, I'm guessing."
},
{
"prediction": "(style) line over 80 characters",
"reference": "Should we provide a little more context in the error message? Maybe throw in something about what operation was being performed?"
},
{
"prediction": "I think this should be `return $this->getConfigurationFromYaml()`",
"reference": "Project standard is spaces, not tabs. Please fix and then we can merge this."
},
{
"prediction": "Why is this needed?",
"reference": "@hgtw is there anything we're worried about with regards to using this cache? Do we want to do staged testing around expeditions before we merge? Curious your thoughts here"
},
{
"prediction": "Why is this change needed?",
"reference": "The purpose of this was to allow pushing filters into the manifest files if we ever use a format other than Parquet. I think overall this is a good change because we can add it back later. Just wanted to note why the unused argument was there."
},
{
"prediction": "I think this should be `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_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 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": "Please remove this empty line.",
"reference": "can just remove it ?"
},
{
"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": "why do we need this?",
"reference": "@shannonwells is there still something missing here?"
},
{
"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`"
},
{
"prediction": "Why is this removed?",
"reference": "Shouldn't we do a `reader_payload_pool_.reset()` here?"
},
{
"prediction": "why is this change needed?",
"reference": "I'd prefer the nomenclature less tightly coupled to DRAND throughout. I played with renaming the `drand` package to `beacon` but it was too much noise in this change."
},
{
"prediction": "I think this should be `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` instead of `rawMode`",
"reference": "I guess I like the name `mode` okay. I can't think of anything better."
},
{
"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": "@deads2k I think this should be \"The max length of events list\"",
"reference": "Are these limit changes related?"
},
{
"prediction": "I don't think this is needed anymore.",
"reference": "Don't you mean `import scapy.consts`?"
},
{
"prediction": "I think this should be `rollbackPrimary` instead of `rollbackPrimary`.",
"reference": "`ctx` is unused in rollbackPrimary"
},
{
"prediction": "why is this change needed?",
"reference": "This is not what title says."
},
{
"prediction": "I don't think this interface should be used.",
"reference": "a fix applies several fixes? maybe this should simply be `applyToNode`"
},
{
"prediction": "I don't think this is needed.",
"reference": "U1000: func `fakeGetOk` is unused (from `unused`)"
},
{
"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 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 also check if the secret is empty.",
"reference": "Do we not have tests for pipeline delete "
},
{
"prediction": "I think this should be `-appendToFile` instead of `-appendToFile`",
"reference": "Good that you mention this constraint in the docstring :)"
},
{
"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)`.",
"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 this is needed.",
"reference": "Please remove this blank line - those are only used to group Python/third-party/qutebrowser imports."
},
{
"prediction": "I don't think this is needed.",
"reference": "`insecure` is a global variable (from `gochecknoglobals`)"
},
{
"prediction": "I think this should be `HTTP/1.1` instead of `HTTP/1.1`.",
"reference": "Same as above (HTTP in upper-case)"
},
{
"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 `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 use `dom.getAttribute('name')` here.",
"reference": "Does this work for Custom Elements? iirc we're lacking test cases for them. /cc @andrewiggins @developit"
},
{
"prediction": "Why is this removed?",
"reference": "Same change just above?"
},
{
"prediction": "I think this should be `self.Promise = undefined` 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 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 `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 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": "I think this should be `DeleteWorkspaceFile` instead of `DeleteWorkspaceFile`",
"reference": "nit: can we rename the interface to `wsFileDeleter`"
},
{
"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_config_elements` instead of `.auto_config_elements`.",
"reference": "We use a suffix \".AUTOCREATED\" for configsets, maybe we can use the same here?"
},
{
"prediction": "Why is this change needed?",
"reference": "This one won't be disposed. Should be (something like) `using var openTelemetry = OpenTelemetrySdk.EnableOpenTelemetry(` no?"
},
{
"prediction": "I don't think we need to remove this line.",
"reference": "Why this is in the diff?"
},
{
"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 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": "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 `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": "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 don't think this is necessary.",
"reference": "nit: 200 is superfluous"
},
{
"prediction": "Why is this change needed?",
"reference": "This is testing `unreserved keyword`"
},
{
"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": "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": "Nit: remove trailing whitespace",
"reference": "AWS Identity and Access Management (IAM)"
},
{
"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 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 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": "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 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 `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."
},
{
"prediction": "Why is this removed?",
"reference": "`-Wstringop-truncation` is a new kind of error detector introduced in GCC 8. As for this patch, these are two false-positives though."
},
{
"prediction": "I don't think we need to change the error 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."
},
{
"prediction": "I think this should be `const { ReadPreference } = require('../..');`",
"reference": "The convention so far has been to require directly from the defining file (in this case `../../read_preference') . I think the concern has been mostly about the potential for circular dependency cycles"
},
{
"prediction": "I think this should be `self.to_float32 = to_float32, color_type='color'`",
"reference": "I suggest expanding dims here to simplify the formatting."
},
{
"prediction": "Why is this change needed?",
"reference": "Why do you need to specify the kinto prefix here?"
},
{
"prediction": "This should be `print('outputs[{i}].shape = {outputs[i].shape!r}')`",
"reference": "The `!r` is unnecessary."
},
{
"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."
},
{
"prediction": "I think this should be `public bool PreparerNeeded;`",
"reference": "Should we default to `true` ?"
},
{
"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 `@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 don't think we need to log the reason here.",
"reference": "Nit: We can use `%s` since `disconnectReason` is a string."
},
{
"prediction": "why do you need this?",
"reference": "I think it's better to create a new example"
},
{
"prediction": "Why is this change needed?",
"reference": "The stages are correct, but the more forgiving `kAttachmentRasterOrder` should be used, based on a review of the spec. That should give the same effect of suppressing the false positive conflict between the DEPTH R/W and resolve. > End-of-subpass multisample resolves are treated as color attachment writes for the purposes of synchronization. This applies to resolve operations for both color and depth/stencil attachments. That is, they are considered to execute in the VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT pipeline stage and their writes are synchronized with VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT. Synchronization between rendering within a subpass and any resolve operations at the end of the subpass occurs automatically, without need for explicit dependencies or pipeline barriers."
},
{
"prediction": "I think this should be `--SO3H` instead of `--SO3H`",
"reference": "To be consistent, I think it should actually just be a single `-`"
},
{
"prediction": "I don't think this is needed. `current_app` is a `flask` module.",
"reference": "this seems extraneous."
},
{
"prediction": "I think this should be `featureset.LongDomainFeatureSet` instead of `featureset.LongDomainFeatureSet`",
"reference": "Ah, I see here that 'LongDomain' is defined as something that contains a subdomain segment that is `maxLengthOfDomainSegment` long (which I think is 63 characters) - I don't think any public ACME servers/Let's Encrypt's staging environment has a restriction on this? if it does, and the 'pebble' based ACME server does not, then Pebble needs modifying to also fail in these cases as it aims to replicate the ACME RFC as closely as possible"
},
{
"prediction": "I don't think 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 = 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 don't think this is needed anymore.",
"reference": "right URL is like in cmdrunner, using search.maven .org"
},
{
"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 don't think this is needed.",
"reference": "Shouldn't it be more specific, like \"gcppubsub supports all UTF-8 strings\"?"
},
{
"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": "Why is this removed?",
"reference": "Could just assign directly and eliminate the `newval` var."
},
{
"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/Datadog.Trace.ClrProfiler.Managed.Core.csproj`",
"reference": "We'll want to remove this one if we make the assembly version constant."
},
{
"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 = 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 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?",
"reference": "Migrate the spec.Labels to locator.Labels ?"
},
{
"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."
},
{
"prediction": "Why is this change needed?",
"reference": "I'm okay with this, but I don't see a lot of benefit to removing unnecessary parens. If extra parens make something more readable (like this) or clarify order of operations even when matching the default, I would say we should keep them."
},
{
"prediction": "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 class should be `InstanceRegistryFailedEvent`",
"reference": "template is not correct?"
},
{
"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 `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 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": "I think this should be `ASSERT_NOT_IMPLEMENTED(false);`",
"reference": "Convention is \"FIXME: i#2144\" or \"XXX: i#2144\""
},
{
"prediction": "I think this should be `IHasHttpMethod`",
"reference": "This should probably be a property instead of a method."
},
{
"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": "I don't think we need to add the `:add_group_config_to_solr` here.",
"reference": "Line is too long. [82/80]"
},
{
"prediction": "This file is not used anymore.",
"reference": "Add blank line below license header."
},
{
"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": "nit: remove empty line",
"reference": "Just run a global replacement for all `executionproto`."
},
{
"prediction": "I think we should add the `options` argument to the constructor.",
"reference": "@AutomatedTester @davehunt thoughts on a new keyword argument?"
},
{
"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.Duration(time.Duration(time.Second))`",
"reference": "Not necessary, just write `time.Time{}`"
},
{
"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()`",
"reference": "What about integrations where we don't plug ourselved on OnMethodBegin?"
},
{
"prediction": "I think this should be `any_elements_located`",
"reference": "shouldn't **call** return a boolean?"
},
{
"prediction": "I think this should be `Interface` instead of `Interface`.",
"reference": "ViewModel classes should not expose any classes from framework.model."
},
{
"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": "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 don't think this is the right change.",
"reference": "why update Copyright ?"
},
{
"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 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 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'; `"
},
{
"prediction": "Why is this removed?",
"reference": "the latter part can go but isn't the first part of this still sound -- that we assume \"id\"?"
},
{
"prediction": "Why is this removed?",
"reference": "Why is the escaping of @ and $ removed?"
},
{
"prediction": "I think this should be `IHasHttpUrl`",
"reference": "Nit: `Http` is redundant in this interface's name."
},
{
"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 `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 don't think this is needed.",
"reference": "This is done automatically, you can skip it next time ;)"
},
{
"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": "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?`",
"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 should use `protocol.ConsensusCurrentVersion` instead of `protocol.ConsensusCurrentVersion`",
"reference": "We could avoid passing proto since threshold isn't needed."
},
{
"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."
},
{
"prediction": "Why is this change needed?",
"reference": "why can this modification avoid crash?"
},
{
"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 we should add a `@type {Set.}`.",
"reference": "The line exceeds 120 characters."
},
{
"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."
},
{
"prediction": "Why is this removed?",
"reference": "I am for this change iff we are sure the information is no longer helpful. I think this could still be valuable for certain scenarios, wbu?"
},
{
"prediction": "I 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 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 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 is this mock needed?",
"reference": "Do we need `schema manager` at here ?"
},
{
"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.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 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": "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": "Layout/TrailingWhitespace: Trailing whitespace detected.",
"reference": "thanks for moving these over. makes more sense for them to be in the exports_helper"
},
{
"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.`",
"reference": "Can you update the `Usage` to be an absolute path as well? Something like `/path/to/firebug.xpi`"
},
{
"prediction": "I think this should be `MvxWindowsCommonAccelerometer`",
"reference": "This class is missing the `MvxPlugin` attribute"
},
{
"prediction": "I think this should be `core.getWxLang(languageHandler.getLanguage())`",
"reference": "What if `wxLang` is returned `None` from `getWxLang`"
},
{
"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\");`",
"reference": "This is in test code: understanding what we're doing is important in this context."
},
{
"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": "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`.",
"reference": "stylistic nitpick: I _feel_ like we've largely shown errors like this as \"error: \" vs. \"error=\". IMO colon/space reads better."
},
{
"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 don't think this is needed.",
"reference": "should this file ends with _test.go?"
},
{
"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": "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 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": "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 this is needed.",
"reference": "Could you please end the file with an empty line?"
},
{
"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": "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 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 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": "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": "Why is this change needed?",
"reference": "did you remove **params.qstring.method** intentionally? if so why?"
},
{
"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 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 `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 think this should be `RSERVE_PASSWORD = System.getProperty(\"dataverse.rserve.pwrd\");`",
"reference": "Nice to see this `dataverse.rserve.password` fix rolled in."
},
{
"prediction": "(style) line over 80 characters",
"reference": "How about the following faster alternative that doesn't need `strlen()` at all: if (*tmp_optarg == '\\0' || *endptr != '\\0') { fprintf(...) ... This would treat the bus argument as invalid if it's either empty (`tmp_optarg` points to '\\0') or invalid (`endptr` points to something other that a '\\0'). Actually, the existing code would accept an empty argument and set the bus to `0`, so if (*endptr != '\\0') { fprintf(...) ... would be enough. The check for an empty argument doesn't hurt, though."
},
{
"prediction": "I think 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 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 (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 don't think this is needed.",
"reference": "looks like this should be `return array(LegacyFormHelper::getType('form'));`"
},
{
"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 change needed?",
"reference": "Where was `name` being declared before?"
},
{
"prediction": "I think this should be `UnknownDeployment` instead of `UnknownDeployment`",
"reference": "nit: use `corev1.ConditionUnknown`"
},
{
"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": "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": "Why is this change needed?",
"reference": "[0] Not suggesting you change it here, but....kindof weird that there's just not an `assertFuncNotEquals`"
},
{
"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": "Why is this change needed?",
"reference": "`.` at the end of the sentence"
},
{
"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": "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": "Why is this needed?",
"reference": "line is 138 characters"
},
{
"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 this is needed.",
"reference": "Nit: each field can be on a separate line to make it visually easier to read."
},
{
"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`",
"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": "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 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_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).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 we should remove this line.",
"reference": "why is this needed?"
},
{
"prediction": "Why is this change needed?",
"reference": "I wonder if it'd be possible to autogenerate a key from the name within this function if one is not provided explicitly, rather than having all the callsites pass both the name and key (and usually as the same value)? Might give us a good place to implement a `name->key` function that isn't 1:1."
},
{
"prediction": "I think this should be `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?"
},
{
"prediction": "Why is this change needed?",
"reference": "spelling (variable name, all three changes)"
},
{
"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 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 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 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": "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?"
},
{
"prediction": "I think this should be `log.Printf(\"iptables output='%s'\", out)`",
"reference": "Since we're using Logrus, probably best to use `Infof` to avoid confusion (Logrus' Printf behaves differently to the built in one)"
},
{
"prediction": "I think this should be `this.width += 2 * Blockly.FlyoutButton.MARGIN;`",
"reference": "Hm, this looks like a change that should go upstream as well."
},
{
"prediction": "why remove this?",
"reference": "let's keep ActionByActionHash and delete getActionByActionHash"
},
{
"prediction": "I think this should be `@return \\Shopsys\\FrameworkBundle\\Model\\Pricing\\Group\\PricingGroup`",
"reference": "please use return type"
},
{
"prediction": "I think this should be `info` or `fine`.",
"reference": "This is deliberately at this level."
},
{
"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 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`.",
"reference": "will change to `storage_target`"
},
{
"prediction": "Why is this change needed?",
"reference": "This would be better as `cls.securitycenter_client`, to match what is being instantiated."
},
{
"prediction": "I think 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 `inject.controller('patients/edit')`",
"reference": "This line should be removed as editController is not used from this context anymore."
},
{
"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 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 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 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)` 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 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 this is needed.",
"reference": "Is this supported by every implementation of Java (and Android)? Should it be conditional upon `gen_nullable`?"
},
{
"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 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 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 `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 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 not just use `actualErr` here?",
"reference": "Maybe we should call this something like `errToReturn`?"
},
{
"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 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."
},
{
"prediction": "Why is this needed?",
"reference": "Duplication of line 28 Please refer your tox -e flake8 It seems that XStrField, XShortField, FieldLenField are not used"
},
{
"prediction": "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": "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 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": "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 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": "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 check if the job name is not empty.",
"reference": "Is `o.name` always set here?"
},
{
"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": "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: 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": "I think this should be `c.config.Namespaces.AlertmanagerConfigAllowList` instead of `c.config.Namespaces.DenyList`",
"reference": "L171 needs to be modified too?"
},
{
"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": "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": "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.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 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 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": "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 remove this?",
"reference": "Are you sure that this is no longer needed?"
},
{
"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": "I think we should remove the `ReportStat` method entirely, since it's not used anywhere else.",
"reference": "`ctx` is unused in ReportStat"
},
{
"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 `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 `sched.GetPolicy(clusterPath + SchedPath + \"/\" + name)`",
"reference": "if name is empty will this become enumerate ? (and cause the unmarshal to fail ?)"
},
{
"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 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 don't think we need to register an interceptor here.",
"reference": "Freeze mutable objects assigned to constants."
},
{
"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 `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 `/status`",
"reference": "`status` is just one of the features, named as status is not suitable."
},
{
"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": "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."
},
{
"prediction": "Why is this removed?",
"reference": "move the constructor to down the `namespace`"
},
{
"prediction": "I think this should be `*corev1.ObjectReference` instead of `*corev1.ObjectReference`",
"reference": "Nit: ending with a '.' looks consistent with the fields around it."
},
{
"prediction": "Why is this change needed?",
"reference": "Audit log will not have a warning about they are using a deprecated path, is it something we must care about?"
},
{
"prediction": "I think this should be `TypeMemberVisibility.FamilyOrAssembly` instead of `TypeMemberVisibility.FamilyOrAssembly`.",
"reference": "I think you also want to update the condition to add ` || impl.Visibility == TypeMemberVisibility.FamilyOrAssembly`."
},
{
"prediction": "I think this should be `uint64(100)`.",
"reference": "`DepositToRewardingFundBaseGas` is a global variable (from `gochecknoglobals`)"
},
{
"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 the `tagline` tag here.",
"reference": "I like the word \"give\" here. Feels like I'm giving a gift to my team."
},
{
"prediction": "why do we need this?",
"reference": "Is it possible to use `np.random` module instead?"
},
{
"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 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 change needed?",
"reference": "File is not `goimports`-ed (from `goimports`)"
},
{
"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 removed?",
"reference": "Why is this needed here?"
},
{
"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?"
},
{
"prediction": "Why is this change needed?",
"reference": "nit: any reason you swapped the ordering?"
},
{
"prediction": "Why is this removed?",
"reference": "can you de-uglify at least this line?.. hard to tell what changed..."
},
{
"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": "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": "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 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 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 don't think we need to import `gcp_clients` here.",
"reference": "You imports are out of order"
},
{
"prediction": "Why is this public?",
"reference": "This should not be called Flow Trigger. FlowTrigger should has its own flowTrigger job name, for instance, \"flowtrigger\""
},
{
"prediction": "I think this should be `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`.",
"reference": "Why do we need `\\n` if we already use `WriteLine`? (and `\\n` is not cross platform)"
},
{
"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 disabled?",
"reference": "@kristofgazso could you review these warnings?"
},
{
"prediction": "I think this should be `console.log(\"hi\")`",
"reference": "will delete this."
},
{
"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 this should be `!item.getType().isRepeated()`",
"reference": "What was the bug that this is fixing?"
},
{
"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_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` would be better than `date_utc`",
"reference": "Not an expert of ES, so not sure of the impact here."
},
{
"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 do we need to do this?",
"reference": "This loop is missing a lock on subscriptions_mutex."
},
{
"prediction": "Layout/EmptyLinesAroundRouteBody: Extra empty line detected at block body beginning.",
"reference": "shouldn't clearance be setting these up for us?"
},
{
"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": "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 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 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": "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 `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 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"
},
{
"prediction": "I think this should be `if (beforeChangeResult.length === 0 || beforeChangeResult[0] === null)`",
"reference": "Please check also whether `null` occurs in the rest of `beforeChangeResult` array."
},
{
"prediction": "I think this should be `// Filter defines transport-level middleware for `UnaryOutbound`s.",
"reference": "Outdated docs. There is no response, there's an ack."
},
{
"prediction": "Why is this change needed?",
"reference": "I'd rather have the container process remove the FIFO after it unblocks. Then `start` can always `Exec()`, and you can catch the \"FIFO does not exist\" error and translate it to a prettier \"someone must have already started the container\"."
},
{
"prediction": "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 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": "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 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.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": "(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": "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();`",
"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 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": "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 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` 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` instead of `final`.",
"reference": "If there is a reference to other fields or methods, please do the initialization in the constructor."
},
{
"prediction": "I don't think this is needed.",
"reference": "These should be importing from `pill-container`"
},
{
"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 `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?"
},
{
"prediction": "I think this should be `this.state = {};`",
"reference": "Nit: Past tense of `reset` is also `reset`."
},
{
"prediction": "I think this should be `self.fee_per_kilobyte()`.",
"reference": "Shouldn't this use `'n'` instead?"
},
{
"prediction": "I think this should be `ActivityTaskTimeout` instead of `DecisionTimeout`",
"reference": "revert back to 'TASK_TYPE_ACTIVITY_TIMEOUT'"
},
{
"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 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 `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?"
},
{
"prediction": "I think this should be `true` instead of `false`",
"reference": "would use an empty string here as default and then check for emptiness in the twig template. I dont like mixing types @core23 what do you think?"
},
{
"prediction": "I think this should be `pageTokenName(Name.lowerCamel(methodInfo.requestPageTokenName()).toUpperCamel());`",
"reference": "How come we need case manipulation for the nextPageToken and not for pageToken?"
},
{
"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 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 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 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."
},
{
"prediction": "Why is this removed?",
"reference": "App cache size is now managed dynamically by the `WebView`. This statement has no effect in the new framework."
},
{
"prediction": "I 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": "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 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 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": "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 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 `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": "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": "Why is this removed?",
"reference": "Are you sure the namespace should change?"
},
{
"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": "I think this should be `TimeType.TIME`.",
"reference": "why do we create a time type here?"
},
{
"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": "I don't think this is needed.",
"reference": "import but not used so you did not resolve compile warnings?"
},
{
"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`.",
"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 `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 `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`",
"reference": "`published.recently_published_first` reads a little oddly to me. Is this the same thing as `Video.published.ordered`?"
},
{
"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 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 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."
},
{
"prediction": "I think this should be `#include \"../Util/Lua.h\"`.",
"reference": "The naming of the include file appears to be unlucky."
},
{
"prediction": "Why do you need to update `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 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": "Why is this needed?",
"reference": "Do we require the specific implementation information here?"
},
{
"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.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 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": "I think this should be `let` instead of `let`",
"reference": "Shouldn't we import `default`? I can't get here to test."
},
{
"prediction": "Why is this change needed?",
"reference": "!!!!!!!!!!!!! @graingert, does this mean that tests haven't been running???"
},
{
"prediction": "I think this should be `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": "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": "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": "why is this change needed?",
"reference": "Consider making a constant (e.g. `MetricStreamConfiguration.Drop`)."
},
{
"prediction": "I don't think this is needed.",
"reference": "same question: why not just switch this to range too?"
},
{
"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": "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?",
"reference": "As long as you are sure this is definitely correct now... :-)"
},
{
"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 `",
"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` instead of `*transport.Request`.",
"reference": "I hate this name, open to suggestions."
},
{
"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 don't think we need to pass `c.MetricsProcessors` to the `NewAccumulator` function.",
"reference": "The pull controller would need similar updates."
},
{
"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` 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 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 it would be better to use `!inputs->hasData()` instead of `!inputs->hasData()`.",
"reference": "after ||, no need inputs != nullptr"
},
{
"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 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 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": "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 `yarpcerrors.CodeUnavailable` function.",
"reference": "\"peer\" has its own meaning within YARPC with its own class of objects. This should probably be \"dispatcher\" too?"
},
{
"prediction": "I think this should be `experimental-enable-naive-ctu-analysis` instead of `experimental-enable-naive-ctu-analysis`.",
"reference": "I do not like this line break before `=true`. Maybe starting the list in the next line would help to reduce the indent? This way we could keep this string together."
},
{
"prediction": "why is this removed?",
"reference": "_plugins should be removed too"
},
{
"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": "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 `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": "nit: remove empty line",
"reference": "Let's remove this change."
},
{
"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 `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."
},
{
"prediction": "Why is this change needed?",
"reference": "It does not recommend capitalization"
},
{
"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 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 `IOException` instead of `IOException`.",
"reference": "seems reasonable to also want to include the 'to' location?"
},
{
"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 `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 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 `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."
},
{
"prediction": "I think this should be `const bool confirmed_frontiers = request.get(\"confirmed_frontiers\", false);`",
"reference": "I think `bypass_frontier_confirmation` conveys the intention better (default false as well)"
},
{
"prediction": "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": "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 file?",
"reference": "@csrwng what should we do here? This one is from origin."
},
{
"prediction": "I think this should be `#include `",
"reference": "Follow alphabetical order."
},
{
"prediction": "I 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": "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": "This should be `azkaban.security.credential.name`",
"reference": "Where would this be configured? In azkaban.properties?"
},
{
"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 `#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."
},
{
"prediction": "I think this should be `final`",
"reference": "This field could be `final`."
},
{
"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 don't think we need to set async operations on insert?",
"reference": "Does upsert pass this check also?"
},
{
"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` 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": "Line is too long. [89/80]",
"reference": "Metrics/LineLength: Line is too long. [85/80]"
},
{
"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."
},
{
"prediction": "(style) line over 80 characters",
"reference": "thanks. Note that returning at this point might leak memory from the allocations above, so the PR will need to take care of that too."
},
{
"prediction": "I 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": "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 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 "
},
{
"prediction": "I think this should be `SecretTargetLogDriver` instead of `SecretTargetLogDriver`",
"reference": "where is the default being set?"
},
{
"prediction": "I think this should be `vStringNCopyS(name, line + matches[1].start, matches[1].length);`",
"reference": "these changes should likely be in the next commit instead"
},
{
"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 = true;`",
"reference": "The field name doesn't really capture what this option does. I think `mConfirmDiscardMessage` would be a better choice."
},
{
"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 removed?",
"reference": "maybe rather than `bool` make this field a `StructDef *` ?"
},
{
"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 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 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": "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": "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 line?",
"reference": "don't we need to remove the project version from installedVersions?"
},
{
"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 `return nil, err` instead of `return nil, err`.",
"reference": "This is intended. Pls revert this."
},
{
"prediction": "I think this should be `Comparators.naturalComparator().compareTo(values)`",
"reference": "Something wrong with cast to `(Comparator<> & Serializable)`, need to be investigated"
},
{
"prediction": "why remove this?",
"reference": "I think we need this. Not sure, I'll test."
},
{
"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 we should remove this line.",
"reference": "Did go change their tags with the new version?"
},
{
"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."
},
{
"prediction": "Why is this change needed?",
"reference": "I think it should still panic for when there are no outputs; might be nice to special-case that though so the message is more explicit."
},
{
"prediction": "I think this should be `new MetricsConfig.MetricsConfigBuilder().build();`",
"reference": "*NULL_DEREFERENCE:* object `null` is dereferenced by call to `meterSupplier(...)` at line 122."
},
{
"prediction": "Why is this change needed?",
"reference": "switch over to .mode"
},
{
"prediction": "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": "Why is this needed?",
"reference": "This is an unused import failing recommit still."
},
{
"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 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": "`SamplesGenerator` and `SamplesGenerator` are not used anymore.",
"reference": "Should these link be removed?"
},
{
"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)`",
"reference": "didn't quite follow what this code block is doing."
},
{
"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 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 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 `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": "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_ERROR` instead of `PJ_LOG_NONE`.",
"reference": "this change should be reverted"
},
{
"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 is this change needed?",
"reference": "Revert this change and see below why..."
},
{
"prediction": "I think this should be `lvis_v1_instance.py`",
"reference": "Should not switch to `lvis_v1_instance` here because that base config uses ClassBalancedDataset to oversample the data."
},
{
"prediction": "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."
},
{
"prediction": "Why is this needed?",
"reference": "This doesn't make sense to me. What does RaiseSingleton mean? To me it sounds like a single object is being.. raised? Not sure."
},
{
"prediction": "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": "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 `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."
},
{
"prediction": "I think this should be `AWSEcsApp` instead of `AWSEcsApp`.",
"reference": "should be `ECSApp` "
},
{
"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 remove this?",
"reference": "should we make a dir named controllers/scheduler/podchaos"
},
{
"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": "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 `FRIENDSCHAT` instead of `MODPRIVATECHAT`.",
"reference": "Don't think this belongs in this pr"
},
{
"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 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 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 private?",
"reference": "Since this is private and single use it should be un-wrapped inside of the two-arg dagSeed method."
},
{
"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` 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());`",
"reference": "I don't think this needs to change. Can you go back to the previous implementation?"
},
{
"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 `#include \"parser/AstTypes.h\"`.",
"reference": "Please do not add author here"
},
{
"prediction": "Why is this import needed?",
"reference": "Similarly, we should be able to persist action uniformly"
},
{
"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(fullPath, 0755)`",
"reference": "This would be better with context added via wrapping or fmt.errorf()"
},
{
"prediction": "I think this should be `assert.FailFast` instead of `assert.FailFast`.",
"reference": "What's the purpose of this file?"
},
{
"prediction": "I think this should be `if (hasStoredPasscode(ctx) && passcodeLengthKnown) {`",
"reference": "@bhariharan Why was passcode length requirement allowed to be lowered?"
},
{
"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": "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": "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 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 `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 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": "I think this should be `using namespace dal;`",
"reference": "Do not do that even in example, we demonstrate bad practice"
},
{
"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": "I think this should be `FlushAsync` instead of `Complete`.",
"reference": "We have to `.Complete` now because of empty/null string test cases."
},
{
"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 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 is this change needed?",
"reference": "I think we have to keep this as a fallback for now, else it's a small breaking change :("
},
{
"prediction": "Why is this change needed?",
"reference": "nit: shouldn't be part of this PR."
},
{
"prediction": "Why is this change needed?",
"reference": "this change looks wrong to me. I think the test is trying to signal that something went wrong by throwing the `Error` here, otherwise the `catch` below will swallow it."
},
{
"prediction": "I think 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 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)`",
"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('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": "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 `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": "Shouldn't this be `if (slaOptions != null && slaOptions.size() > 0)`?",
"reference": "@chengren311 : where does this logic move to?"
},
{
"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 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": "I think this should be `str_replace(\"_\", \" \", $property);`",
"reference": "wrap, single line"
},
{
"prediction": "I think this should be `returnType.isEmpty() ? \"Void\" : \"Void\";`",
"reference": "always use brackets for if statements"
},
{
"prediction": "Why is this change needed?",
"reference": "`NUnitIntegration` doesn't need to cache this anymore."
},
{
"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": "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 don't think this is needed.",
"reference": "This require isn't need anymore, right?"
},
{
"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": "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 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 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 `gocloud.dev/secrets/gcpkms`",
"reference": "? The package is named `hashivault`."
},
{
"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": "I don't think we need to remove this line.",
"reference": "Remove this line by accident?"
},
{
"prediction": "I don't think this is needed anymore.",
"reference": "Calling `.stream()` on a `DomainObjectCollection` is pretty much always a bug, as it doesn't include objects added later (and encourages people to use afterEvaluate). I wonder if we should make this an error prone check?"
},
{
"prediction": "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 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` instead of `cxSmiles`",
"reference": "I'm assuming that asSmarts & cxSmiles == asSmarts"
},
{
"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": "Why is this readonly?",
"reference": "Curious, do we consider this as pedantic for example code?"
},
{
"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 `GetIP` instead of `GetOutboundIP`",
"reference": "Should be `client.outboundIp`"
},
{
"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 change needed?",
"reference": "Why? I thought the previous way was idiomatic. (Same with the `MetadataVer` stuff above.)"
},
{
"prediction": "I think we should keep the `Promise.resolve()`.",
"reference": "shouldn't we `reject` here instead?"
},
{
"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"
},
{
"prediction": "Why is this change needed?",
"reference": "Just curious, was wait not used at all before?"
},
{
"prediction": "I think we should remove this line.",
"reference": "nit: can we remove this?"
},
{
"prediction": "Why is this synchronized?",
"reference": "is it not a problem when one synchronized function is called by other?"
},
{
"prediction": "I don't think we need 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": "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 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 line?",
"reference": "This error was unused"
},
{
"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 `<%= render \"completed_trails/trail\", trail: trail %>`",
"reference": "Does this make more sense as `trails/_trail` now?"
},
{
"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` instead of `Python::Install.new`",
"reference": "Too much indentation here. Should match the lines above, which have four spaces."
},
{
"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 `MvxBasePresentationAttribute`",
"reference": "I'm wondering if we can actually base this on a `IMvxPresentationAttribute` instead of the base one."
},
{
"prediction": "Why is this change needed?",
"reference": "could we switch to `undefined` here?"
},
{
"prediction": "I think this should be `SyncState.cleanupSyncsSoupIfNeeded(smartStore);`",
"reference": "The cleanup call"
},
{
"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 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 `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() + self._get_firefox_profile() + [self._get_firefox_webdriver()])`",
"reference": "1 - create browser specific options class: - chromeoptions - firefoxoptions - argsoptions"
},
{
"prediction": "I don't think this is correct. The `Content-Type` header should be `text/html` and `content-type` should be `text/html`.",
"reference": "should be a case insensitive match though no? DOCTYPE and doctype are both widely used"
},
{
"prediction": "I think this should be `@account = Account.from_param(params[:account_id]).first!`",
"reference": "We must have a `fail ParamNotFound` here for cases where `@account.nil?`."
},
{
"prediction": "Why is this needed?",
"reference": "How come this change was needed?"
},
{
"prediction": "I don't think this is needed.",
"reference": "Why are there only 6 pins here, while below it appears to have 8 ADC inputs? Are pin 2 and 5 used for something else on this board?"
},
{
"prediction": "I think this should be `efsb.Insert(\"secpRoot\", gsf.ssb.Matcher())` instead of `messagesSelector.Insert(\"secpRoot\", gsf.ssb.Matcher())`",
"reference": "I think we need an issue to track that chain sync omits BLS messages, and then to fix and test it!"
},
{
"prediction": "I think this should be `2c429f18.ngrok.io` or `2c429f18.ngrok.io`",
"reference": "what is this default about? I am not using ngrok atm so would prefer an env var."
},
{
"prediction": "I think it would be better to add a `runUpdateManagerAfterBackendLogin` method to the `UpdateManager` class. It's recommended to set this value to 'false' in production enviroments.",
"reference": "@Samuell1 Might be better to say \"Automatically check for plugin updates on login\"."
},
{
"prediction": "I think this should be `using System.Runtime.CompilerServices;`",
"reference": "Thanks for the additional Process helper! Can we also cache the first `Process.GetCurrentProcess()` result in a static field so we don't have to repeatedly call it? It means we would also need to dispose it when the static `_runtimeMetricsWriter` instance is disposed"
},
{
"prediction": "I think this test should be moved to the `TestStartMetricsSession` function.",
"reference": "just wondering what is the result of breaking the logic we test here? it seems that in that case we will just not return immediately, but i'm not sure whether the test will fail?"
},
{
"prediction": "I think this should be done in the `TestProcessContext` and not in the `TestProcessContext`.",
"reference": "We should fail the test if this returns `err != nil`."
},
{
"prediction": "I think this variable should be `updated = false`",
"reference": "What is the drawback of not having this flag as a gating condition to report the metric?"
},
{
"prediction": "I think this should be `return filepath.Base(os.Args[0])` instead of `return filepath.Base(os.Args[0])`",
"reference": "`getProcessName()` will be less ambiguous, since Caddy has \"apps\" that it runs internally."
},
{
"prediction": "(style) line over 80 characters",
"reference": "Is there any way to not hardcode this given we know the size in bytes? The public API has the flexibility of being a Span. Should we maybe not do anything printing DML? The runtime allocates the buffer, but it's a \"scratch memory\" area, The delegate gets it passed in and they decide how to use it. Also, how is DML used if the feature is for macOS support?"
},
{
"prediction": "I think this should be `std::string*` instead of `std::string*`.",
"reference": "How about just override the `buildFilter`? Passing another function here is a little weird."
},
{
"prediction": "I think this should be \"Is this just a testRPM build with all RPMs hydrated?\"",
"reference": "This should just be a `.Bool()` flag I think, we don't encode anything beyond y/n here. See `$(RUN_CHECK)` and `$(STOP_ON_PKG_FAIL)` for examples of how to pass those in."
},
{
"prediction": "I think this should be `SwiftLanguageRuntime::GetDynamicTypeAndAddress_Promise` instead of `SwiftLanguageRuntime::GetDynamicTypeAndAddress_Promise`",
"reference": "Is this needed?"
},
{
"prediction": "I think this should be `admin.lookup.messages.delete_singular`.",
"reference": "This code is passing a non localized string when it should be passing in a localized string or it should use the name of the item being deleted."
},
{
"prediction": "I don't think this is needed.",
"reference": "how about moving it under L26"
},
{
"prediction": "I don't think we need to do this, but I think it's better to just call `axe.imports.memoize(fn);` instead of `axe.imports.memoize(fn);`",
"reference": "I think this needs to be tested"
},
{
"prediction": "I don't think this is needed.",
"reference": "Style/MutableConstant: Freeze mutable objects assigned to constants."
},
{
"prediction": "I think we can remove the `final` part of the constructor.",
"reference": "Just a thought, really. If it's a bug that can be probed for (and it can be - see Adrian's repro) then it could as well be a static initialization of a supplier of Deflater instances; if we probe for a buggy JVM, we return the wrapper. If we don't we return the Deflater. This way on non-affected JVMs nothing happens and if we do use the wrapper, we know the JVM is broken."
},
{
"prediction": "Why is this public?",
"reference": "Looks like this should be publicly accessible for tests in any modules?"
},
{
"prediction": "Why is this change needed?",
"reference": "Allow putenv is necessary to be able to get environment variables with `getenv`?"
},
{
"prediction": "I think this should be `if (year%4==0 && year%100!=0 && year%400!=0) {`",
"reference": "use function to check it. - don't do everything in main"
},
{
"prediction": "I don't think we need to pass `global_configs` to the `BaseRulesEngine` constructor.",
"reference": "Sorry I'm confused. Why not kwarg this like the others?"
},
{
"prediction": "Why is this removed?",
"reference": "First, any changes here should be synchronized with instr_compute_VSIB_index(). Second, the original looks correct to me: the first letter of the opcode name suffix is the index size, while the second is the memory size. So \"vpgatherdq\" is a d-sized index and q-sized memory. The operand size we store for memory accesses is always the memory size, not the address size, and for VSIB we store a single memory element size. It looks like we have no inside-opnd_t storage of the index size: that's done by dispatch on opcode it seems. I have a bunch of notes of discussions on how to handle VSIB: we decided to bail on encoding too much inside the opnd_t I guess."
},
{
"prediction": "I think this should be `self.build_tracking_url(self, logs_output)`",
"reference": "Sorry for going back and forth. Adding docstring here would be very helpful for others to understand the need of this method."
},
{
"prediction": "Why did you remove this?",
"reference": "You introduced a bug here."
},
{
"prediction": "I think this should be `!string.IsNullOrEmpty(oldValue) && !string.IsNullOrEmpty(newValue)`",
"reference": "Should we log a warning/error if only one is specified and not the other?"
},
{
"prediction": "I think this should be `logger.Info(\"fake client received GetLatestEvent rpc\", zap.Any(\"request\", req))`",
"reference": "`ctx` is unused in GetLatestEvent"
},
{
"prediction": "Why not just use the network_params.network.default_node_port?",
"reference": "This looks good to me. Personally, I would have the following for maximum flexibility: * convert peering_port from uint64_t to int. * Set the default value to \"-1\" to specify the value is not set * if the value is -1 then do `config.node.peering_port = network_params.network.default_node_port` That would allow for 0 to mean, select the port number yourself and be more consistent. But I am happy with the change as is, as well."
},
{
"prediction": "Please revert this change.",
"reference": "The blank line between the summary and detailed description is better to be kept."
},
{
"prediction": "Why do we need to do this if `NoRemoveUnusedShapes` is true?",
"reference": "Curiously, are these indents intended or should they be aligned?"
},
{
"prediction": "Why not just use `attrs.get('roleText')`?",
"reference": "What if we changed this to this? roleText=attrs.get('roleText', lambda:getSpeechTextForProperties(reason=reason,role=role)) That will prevent the function from ever needing called in the roletext case, and removes that if."
},
{
"prediction": "(style) code indent should use tabs where possible",
"reference": "This will still result in a safe_read_tls_magic on AMD in tls_thread_preinit()."
},
{
"prediction": "nit: remove empty line",
"reference": "Can you remove this change?"
},
{
"prediction": "Why is this change needed?",
"reference": "Oh, was that a bug in the validation?"
},
{
"prediction": "I don't think we need to do this in the `onlineFeedViewActivity` class.",
"reference": "Please use the Google java code style. Basically, add more space characters like in the statements below. Next to method arguments and curly braces. This is currently not checked on CI because it is too inconsistent in the code base but I would prefer new code to be consistent."
},
{
"prediction": "Why is this change needed?",
"reference": "Actually, I don't think we need to create object on heap."
},
{
"prediction": "Why is this change needed?",
"reference": "this is a file we copy from gRPC, sp ideally it be fixed upstream as well.."
},
{
"prediction": "I think we should remove this line.",
"reference": "changes like this, just strangle guava usages to be replaced by DelayLimiter into one place"
},
{
"prediction": "Why is this change needed?",
"reference": "PropTypes need to be updated accordingly here. Note that the type also needs updating, not just the case. That is, these should both expect a `PropTypes.elementType` now instead of an `element`."
},
{
"prediction": "I think this should be `std::strcmp(resource_str, \"id:\", 3) != 0`",
"reference": "maybe extra paren around `strncmp(...) != 0`"
},
{
"prediction": "I think this should be `GleanMetricsService.resetOpenedWindowsCount(mRegularWindows.size(), true);`",
"reference": "We should call `Windows.onResume `: - When the app is launched for the first time - When the app is resumed after being paused (home button and resume or device goes to sleep) - After a permission prompt is displayed"
},
{
"prediction": "Why is this change needed?",
"reference": "Rename to ForksSchedule? Maybe in separate PR."
},
{
"prediction": "nit: remove empty line",
"reference": "Why a blank line here?"
},
{
"prediction": "I think this should be `active?` instead of `deactivated_on.nil?`",
"reference": "I have a sense that this will actually eventually change to check the actual date so that subscriptions can be deactivated in the future. But I mention that here just to keep you in the loop. We should not make that change now, because it's not needed functionality."
},
{
"prediction": "I think this should be `return argSpec.getDefault() ? null : argSpec.getDefault() ? null : argSpec.getDefault() ? null : argSpec.getDefault() ? null : argSpec.getDefault() ? null : argSpec.getDefault() ? null : argSpec.getDefault() ? null : argSpec.getDefault() ? null : argSpec.getDefault() : argSpec.getDefault() ? null : argSpec.getDefault() ? null : argSpec.getDefault() ? null : argSpec.getDefault() ? null : argSpec.getDefault() : null;",
"reference": "What is the reasoning for using the negation of `isOption()` instead of simply using `isPositional()` to identify a positional param?"
},
{
"prediction": "I think this should be `0x01` instead of `0x00`.",
"reference": "Why would you add those if client version min is set to 1100?"
},
{
"prediction": "nit: remove empty line",
"reference": "You can delete this, it will now need to live in `gointerfaces` package"
},
{
"prediction": "Align the elements of a hash literal if they span more than one line. 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 && !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` instead of `DefaultSamplingProbability`",
"reference": "Could you also remove the `defaultSamplingProbability` constant from `sampling.go`? It seems to became unused with this change."
},
{
"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.info(String.format(\"Connecting to %s and %s\", publishConnection, subscribeConnection));`",
"reference": "I'd keep this at `info` level..."
},
{
"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."
},
{
"prediction": "Why is this removed?",
"reference": "You should return null here instead. Null is an acceptable default value for the image attribute."
},
{
"prediction": "I think this should be `return false;` instead of `return true;`",
"reference": "react bails as well?"
},
{
"prediction": "Why is this removed?",
"reference": "Can you please tell me why you did this?"
},
{
"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 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 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 multierr.Append(err, t.Stop())`",
"reference": "The nil check is not necessary for these. Append checks both sides for nil."
},
{
"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 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.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": "why not use `uint64(10000)`?",
"reference": "`ClaimFromRewardingFundBaseGas` is a global variable (from `gochecknoglobals`)"
},
{
"prediction": "Why is this change needed?",
"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 `BlockHeight(uint64, error)`",
"reference": "blockheighter would be more clear"
},
{
"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 we should use `.ConsistentRead` instead of `.ConsistentRead` here.",
"reference": "Why? What would happen if you did not?"
},
{
"prediction": "I think this should be `o = soup.opt(pathElement);` instead of `o = soup.opt(pathElement);`",
"reference": "Unrelated bugfix for NPE."
},
{
"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 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 don't think we should change this.",
"reference": "Do you think we want to move the call to `generateWorkerServiceRecommendedActions` inside `RecommandedActions()`?"
},
{
"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": "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?",
"reference": "x.tbk is the \"index\" below, and is done in Start()"
},
{
"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) code indent should use tabs where possible",
"reference": "this assignment is not necessary if the offsetof() is used in the configmap"
},
{
"prediction": "Why is this removed?",
"reference": "I'd rather leave a TODO here at least."
},
{
"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`?"
},
{
"prediction": "Why is this change needed?",
"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 `super.setup` instead of `super.setup`.",
"reference": "Do we need to change occurences where `setup` was called before?"
},
{
"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 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": "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 `uint8` instead of `uint8`.",
"reference": "ScoreFunc is not used in this PR. Maybe to add it later when needed?"
},
{
"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`"
},
{
"prediction": "Why is this removed?",
"reference": "Need to include \"common/base/Base.h\" in front of this line"
},
{
"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(String, StringComparison.class, StringComparison.class)`",
"reference": "Please ensure that this will not start putting single quotes where double quotes are expected."
},
{
"prediction": "Why is this change needed?",
"reference": "`ProvideConfig` was changed, looks like it will not compile for windows, and should be changed too."
},
{
"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": "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..."
},
{
"prediction": "Shouldn't this be `width` or `height`?",
"reference": "you need to add the content type"
},
{
"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": "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": "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. 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 `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": "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": "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 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": "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 `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."
},
{
"prediction": "Why is this change needed?",
"reference": "Does codecov not run this test? Not sure how else it would not be covered."
},
{
"prediction": "I think this should be `json_data` instead of `JSON_DATA`.",
"reference": "can we add some sample of JSON_DATA format in the usage?"
},
{
"prediction": "Why is this needed?",
"reference": "Using `Tracer.Instance` in here is problematic for testing It will likely cause some other tests to break I think - that's why we started passing in `IScopeManager` EDIT: I see you used `[TracerRestore]` - maybe that'll be enough!"
},
{
"prediction": "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 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 `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 `_stateProvider.ResetStateTo(newHeadBlock!.Header, finalizedHeader);`",
"reference": "finalizedHeader should be saved in FinalizationManager when we have FinalizationBlockHash != Keccak.Zero"
},
{
"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) 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": "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": "Why is this needed?",
"reference": "sorry for nitpicking but I would love a new line under this line"
},
{
"prediction": "Why is this change needed?",
"reference": "ChannelImplementation field naming is not clear, is it some kind of standard? Maybe it can be named ChannelID?"
},
{
"prediction": "I think 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": "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` 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 don't think this is needed.",
"reference": "Should this be boost logged?"
},
{
"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 `field.getName()` instead of `fieldSchemas.get(i)`",
"reference": "This calls sanitize twice if the name isn't valid."
},
{
"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() && 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 do we need to cast to int?",
"reference": "unnecessary conversion (from `unconvert`)"
},
{
"prediction": "Why is this removed?",
"reference": "typo in commit message `openening`"
},
{
"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 `"
},
{
"prediction": "Why is this change needed?",
"reference": "nit: I guess we can omit this (unless you had a reason to specify it)"
},
{
"prediction": "I don't think we need to check if the remote is a hub or not.",
"reference": "Why is Hub public?"
},
{
"prediction": "I think this should be removed.",
"reference": "why is this deleted?"
},
{
"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 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 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."
},
{
"prediction": "I think this should be `logEvery.C` instead of `logEvery.C`.",
"reference": "this default is kinda superfluous (although i see it was already there before PR )"
},
{
"prediction": "Why is this removed?",
"reference": "How is this related?"
},
{
"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 `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."
},
{
"prediction": "Why is this change needed?",
"reference": "Why are you setting the CacheChange as REQUESTED when it is not valid (it was erased from history)?"
},
{
"prediction": "I don't think we need to import `lodash` here.",
"reference": "`lodash` shouldn't be grouped under WordPress dependencies"
},
{
"prediction": "Why is this change needed?",
"reference": "This needs to be public so that Avro can call it."
},
{
"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": "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 `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 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 is this removed?",
"reference": "Similar to the above, put this setting back but keep the value as `'{}'`"
},
{
"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"
},
{
"prediction": "Why is this removed?",
"reference": "I'm curious about why this needed to be removed."
},
{
"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?",
"reference": "Is there any reason that we don't add a similar condition like `ChannelConditionTopic` to the channel?"
},
{
"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": "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 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"
},
{
"prediction": "Why is this change needed?",
"reference": "We're already matching +. Not sure why this changed."
},
{
"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": "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": "Why is this change needed?",
"reference": "I'm not sure how this one didn't segfault before."
},
{
"prediction": "I think this should be `ProtoIPIP` and `ProtoIPIP`",
"reference": "Same points as in other test file."
},
{
"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": "Layout/SpaceInsideHashLiteralBraces: Space inside { missing. Layout/SpaceInsideHashLiteralBraces: Space inside } missing.",
"reference": "Put a comma after the last parameter of a multiline method call."
},
{
"prediction": "I 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 {`",
"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 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 `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 are these errors removed?",
"reference": "oh come on :("
},
{
"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 a service account, not a service account.",
"reference": "Remove as this is not needed anymore."
},
{
"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 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": "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 `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."
},
{
"prediction": "Why is this change needed?",
"reference": "Why not use StatusOr ? We can't ensure spaceId is greater than zero, especially when AdHocSchemaManager is used."
},
{
"prediction": "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": "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?"
},
{
"prediction": "Why is this removed?",
"reference": "Doesn't the snapshot ID start off as null? It seems like we don't need to set it here."
},
{
"prediction": "Why is this change needed?",
"reference": "I wondered why `buffer` was passed into `LookupPath`. What is happening here? Is `buffer[:0]` equivalent to `[]V4TrieEntry{}`, and hence `buffer` isn't needed any more?"
},
{
"prediction": "Why is this needed?",
"reference": "nit: Ideally we would would use this abstraction everywhere we need this translation. I believe it's needed in the mining worker and the storage and market connectors."
},
{
"prediction": "I think this should be done in the `UpdateHash` function, not in the `cStorPoolAddEventHandler` function.",
"reference": "need to fix the error message here"
},
{
"prediction": "Why is this not fixed?",
"reference": "Unsure of how to handle this one."
},
{
"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 `DefaultRetryPolicy` instead of `DefaultRetrySettings`.",
"reference": "replace \"Child Workflow\" with \"any workflow\""
},
{
"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`",
"reference": "Please add back the description of the parameter"
},
{
"prediction": "I think this should be `this.trees = { }`",
"reference": "Superfluous space inserted."
},
{
"prediction": "I think this should be `!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."
},
{
"prediction": "I think this should be `238` instead of `238`.",
"reference": "This seems like a strange change ... I wouldn't think that a change to access tags in the profiles would result in different bearings in this tests?"
},
{
"prediction": "I think this should be `isFocus=False` instead of `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 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 don't think we need to sort the array here.",
"reference": "Why is this needed?"
},
{
"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 this should be `if (addrs.value().empty())`",
"reference": "If FLAGS_meta_server_addrs is not empty, in which case \"toHosts\" return empty array?"
},
{
"prediction": "I think this should be `Settings.JSONBoolWithQuotes(DEFAULT_JSON_USE_QUOTES);`",
"reference": "There is a function to output a \"JSONBool\" string. That would be a good start for finding uses. But maybe just have a look at where we decide whether it is a numerical or not, thus wrapping quotes around its value. Then you have it all I guess."
},
{
"prediction": "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 check for administerable_by?",
"reference": "Thanks for moving this up with the rest of the variables. Much tidier :)"
},
{
"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": "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": "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": "I think this should be `k8s.io/klog/v2`",
"reference": "Any specific reason for this change? klog should work correctly 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 this is needed anymore.",
"reference": "same deal about the global state maybe interfering as in ActionBrowseTagline"
},
{
"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 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 is this change needed?",
"reference": "Can you throw an exception if width or height are both null"
},
{
"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 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` instead of `Divide`",
"reference": "wait a sec, shouldn't this be `'*'`?"
},
{
"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` instead of `SET`",
"reference": "Nit: Group this with the other commands by moving it down one line."
},
{
"prediction": "I think this should be `UnsupportedOperationException` instead of `UnsupportedOperationException`.",
"reference": "I would like to emphasize that a user can use non-vectorized reads to handle this file so maybe something like \"Cannot perform a vectorized read of ParquetV2 File with encoding %s, disable vectorized reading with $param to read this table/file\""
},
{
"prediction": "I think 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 don't think we need to change this file.",
"reference": "Since we're here, can we use a template?"
},
{
"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?"
},
{
"prediction": "Why is this change needed?",
"reference": "`has(default)` i think is the preferred way of doing this"
},
{
"prediction": "Why is this change needed?",
"reference": "always put a space after a comma"
},
{
"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 we should add the `options` argument to the constructor.",
"reference": "@AutomatedTester @davehunt thoughts on a new keyword argument?"
},
{
"prediction": "Why change the type of `maxSessionCount` to `Integer`?",
"reference": "This change shouldn't be necessary for this PR. Please remove it."
},
{
"prediction": "Why is this change needed?",
"reference": "This variable is mostly unused, how about we make `NewTestCtx` return a pointer?"
},
{
"prediction": "I think this should be `1 << 20`",
"reference": "What is the basis of this value?"
},
{
"prediction": "I think this should be `#include \"gce_metadata.h\"`.",
"reference": "Nit: was this extra blank line added intentionally?"
},
{
"prediction": "I think this should be `STATUS_GUARD_PAGE_VIOLATION` instead of `STATUS_GUARD_PAGE_VIOLATION`",
"reference": "nit: inconsistent spacing around ="
},
{
"prediction": "Why is this removed?",
"reference": "We still need this import"
},
{
"prediction": "Why is this change needed?",
"reference": "We are pulling this because we removed \"groupID\" state and put it into the strategy implementations"
},
{
"prediction": "why is this removed?",
"reference": "Is this file actually related to PCA?"
},
{
"prediction": "I think this should be `isFirstAdmin` or `isOwner`",
"reference": "See above, this should probably remain `isFirstAdmin`."
},
{
"prediction": "Why is this change needed?",
"reference": "Why the change to make it public? The expression interface has the `TypeOf` method?"
},
{
"prediction": "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`",
"reference": "`Id` defines REST resource address and should not be in payload"
},
{
"prediction": "why do you need to add `--class-wise` to `coco_eval`?",
"reference": "We can omit the underscore and just use `classwise`."
},
{
"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());`",
"reference": "Looks like this doesn't need to change. Can you revert this?"
},
{
"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(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 `grpc.reflection` instead of `grpc.reflection`",
"reference": "File is not `goimports`-ed (from `goimports`)"
},
{
"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 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 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 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 this is needed anymore.",
"reference": "i think this should get put into its own file. This could start to grow :)"
},
{
"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 remove this line?",
"reference": "Is there any value in setting the process to null like this?"
},
{
"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 `#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 this should be `Globalize.translate(\"ListPaging\").replace(\"{0}\", totalRecordCount);`",
"reference": "The translate library has a method to replace the variables."
},
{
"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.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?"
},
{
"prediction": "Why do we need to flush here?",
"reference": "it introduces a lot of complexity to the state, can we flush straightaway or create a two level flush store where the questions are read form unflushed data?"
},
{
"prediction": "`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 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?"
},
{
"prediction": "I think this should be `log.L().Info(err.Error())`",
"reference": "Change this to Debug Level"
},
{
"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 remove this?",
"reference": "This is now done in the after method, so this test won't pass any more."
},
{
"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 remove this?",
"reference": "@ueshin, I thought we can remove this entire file. Does that require some more works?"
},
{
"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": "I think this should be `resources:quizzes, only: [:show] do`",
"reference": "1 trailing blank lines detected."
},
{
"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."
},
{
"prediction": "Why is this change needed?",
"reference": "Is this thread-safe? (If not, and if the solution is to introduce locking, let's reconsider how we do the scheme changing instead...)"
},
{
"prediction": "Why is this change needed?",
"reference": "Looks like this file has tabs instead of spaces."
},
{
"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 line should be removed.",
"reference": "Please undo this :wink:"
},
{
"prediction": "Layout/SpaceInsideHashLiteralBraces: Space inside { missing. Layout/SpaceInsideHashLiteralBraces: Space inside } missing.",
"reference": "thanks for adding this missing association"
},
{
"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": "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": "Is this needed?",
"reference": "Spaces not tabs"
},
{
"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": "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 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 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 `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. 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 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": "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 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 `200*time.Millisecond` instead of `200*time.Millisecond`",
"reference": "1000 -> 100 maybe too much, 200 ish to 500ish maybe a good option"
},
{
"prediction": "Why is this change needed?",
"reference": "Any reason we need to keep this package's `ChecksumAddress` type or can we get rid of it too?"
},
{
"prediction": "I don't think we need to 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": "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 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": "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": "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 this should be `if ($localPath === '/') return $asset;`",
"reference": "Add a space between if and opening parenthesis please (i.e. `if (`)"
},
{
"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/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 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 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": "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 `IAccessible` instead of `ReadOnlyEditBox`.",
"reference": "Please follow the naming convention for variables, i.e. `windowText`."
},
{
"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`",
"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 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": "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 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."
},
{
"prediction": "Why is this change needed?",
"reference": "Should these assert that the extracted `SpanContext` is remote?"
},
{
"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 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 `aria-label: icon_label` or `aria-label: icon_label`",
"reference": "Can we add the `if label` conditional to this please?"
},
{
"prediction": "I don't think this is needed.",
"reference": "@thunterdb, can we increase the minimal version to almost the latest ones? I was thinking people will mostly use the latest version of mlflow"
},
{
"prediction": "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": "I think this should be `FileSystemIntermediatesManager` instead of `InMemoryIntermediatesManager`.",
"reference": "`Intermediates` or `Intermediate`"
},
{
"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 think this should be `Debug` instead of `Info`.",
"reference": "If this code isn't needed, it should be removed."
},
{
"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 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 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 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.go`",
"reference": "Hah I had `gorename` failing without this too."
},
{
"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`",
"reference": "nit: this should be down further with the other github imports"
},
{
"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": "I don't think we need to add the `-` here.",
"reference": "Hm, I wonder if the `see:` prefix is even necessary?"
},
{
"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": "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."
},
{
"prediction": "Line is too long. [89/80]",
"reference": "These changes are just to make cli_spec a little more readable for VS Code users, as there's a bug with the Ruby plugin's syntax highlighting when you use multi-line regex literals."
},
{
"prediction": "I don't think we need to 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 this should be `assert_consumers(0)`",
"reference": "kinesis-mock applies KINESIS_LATENCY to RegisterStreamConsumer actions so I added a sleep here."
},
{
"prediction": "Why is this removed?",
"reference": "Only V1 or V3 is return from `getMetaVersionFromKV`. So where do we call `updateMetaV2ToV3`?"
},
{
"prediction": "Why is this change needed?",
"reference": "I think that V0 is missing here, which will prevent plugins that haven't been converted to work."
},
{
"prediction": "I think this should be `[uri: \"/wow\", type: \"pages\", verb: \"get\"}]`",
"reference": "Should we remove this?"
},
{
"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 `analytics-component`",
"reference": "See above, this shouldn't be added."
},
{
"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 `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": "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 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 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 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": "Metrics/LineLength: Line is too long. [89/80]",
"reference": "You have deleted :attribute"
},
{
"prediction": "I think this should be `Copyright 2017 Huawei Technologies Co., Ltd`",
"reference": "The license header should be updated to the Apache one."
},
{
"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 don't think this is needed.",
"reference": "Not sure about this one -- did you check somehow?"
},
{
"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 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?",
"reference": "Why delete `StartTime`? This `StartTime` was used to avoid the PID was reused."
},
{
"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 do you need to cast to `size_t`?",
"reference": "Should it be `int64_t`?"
},
{
"prediction": "I think this should be a constant, not a constant.",
"reference": "is this value related to something ?"
},
{
"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)` 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": "Why is this cast needed?",
"reference": "Huh? The point is that a cast isn't necessary"
},
{
"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 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 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 `# 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**"
},
{
"prediction": "I think this should be `validIndex.Sub(r.idx.Obsolete())` instead of `validIndex.Sub(r.idx.Obsolete())`.",
"reference": "Wouldn't that cause the obsolete indexes to be downloaded over and over again? After all these are still stored in the repository."
},
{
"prediction": "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_) {`",
"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 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 don't think this is needed anymore.",
"reference": "Let's not create new connection, but rather user `common.db` one"
},
{
"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 `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 `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_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 update the state of active_execution.",
"reference": "Could also consider modifying the ActiveExecution..."
},
{
"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?",
"reference": "I guess this will need to change soon."
},
{
"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 `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": "I think this should be `(loopBody != getDst) ? loopBody->outputVar() : sampleLimit->outputVar() : sampleLimit->outputVar();`",
"reference": "Why not delete these codes?"
},
{
"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 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 a TODO here.",
"reference": "FYI, visibility task processing is local only, meaning pushing something to local ES cluster / local archival endpoint"
},
{
"prediction": "I don't think this is needed.",
"reference": "This import can be removed."
},
{
"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 think this should be `S3ControlStubber` instead of `S3ControlStubber`.",
"reference": "is this phrase completed in a next line? Or forgot to add... what?"
},
{
"prediction": "I think this should be `model_base_` instead of `model_base_`",
"reference": "`('train', 5)` and `('train', 1)` are actually the same."
},
{
"prediction": "Why is this change needed?",
"reference": "Would it be too complicated to refactor `currLimit` to be an `int64`?"
},
{
"prediction": "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 `instance` instead of `instances`",
"reference": "Should be podiochaos?"
},
{
"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 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 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 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 `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 this should be `Failed because: ${err.message}` instead of `${err.message}`",
"reference": "I guess this assignment is now redundant?"
},
{
"prediction": "I think this should be `var blockNum uint64` instead of `var blockNum uint64`",
"reference": "See above note re: blockNum synchronization."
},
{
"prediction": "I think this should be `spire_backoff_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": "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()` 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 `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 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": "I don't think we need wildcard imports.",
"reference": "Could you please leave the explicit imports?"
},
{
"prediction": "I think this should be `methodConfigMap.get(methodConfigProto.getName()) == null`",
"reference": "Can we check for containsKey here?"
},
{
"prediction": "I think this should be `fmt.Fprintln(os.Stderr, usage)`.",
"reference": "Exit successfully. We served the help the user wanted."
},
{
"prediction": "I think this should be `InitialWorkingDirPath` instead of `InitialPackagePath`.",
"reference": "Had to rename this because `InitialPackage()` already existed."
},
{
"prediction": "Line is too long. [89/80]",
"reference": "Can we put this in a different helper?"
},
{
"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(\"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 `onConfigurationChanged(Configuration newConfig)`",
"reference": "Why do we need to override this if all we're doing is passing it up?"
},
{
"prediction": "I think this should be `sendAllControls(FALSE, FALSE, TRUE);`",
"reference": "Just wondering whether it's safe to send all CQDs to the child compiler. As this missing CQD is causing trouble, maybe some other user CQDs that now get sent could also cause the statement to fail? Also, if I have a table with a nullable unique column, should I have to set this CQD to create another table like it, or should the CREATE TABLE LIKE work without the CQD?"
},
{
"prediction": "I don't think this is needed.",
"reference": "EARLIEST_TESTED_RELEASE might be slightly more clear"
},
{
"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 `true` or `false`.",
"reference": "interesting .. did not know varint tag covered bool as well"
},
{
"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": "Why is this change needed?",
"reference": "getHash should be a public and without an `_` if used here."
},
{
"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(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": "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 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": "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": "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": "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)`",
"reference": "Make this a public attribute (remove the leading `_`) if you want to access it from the outside."
},
{
"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+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 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 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 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 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() 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 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 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 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 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": "Is this needed?",
"reference": "folly library should be put on the top."
},
{
"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 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;` 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 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": "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 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": "Why is this change needed?",
"reference": "Should this be `codes.Error`? `codes.Internal` was an error status before."
},
{
"prediction": "Layout/EmptyLinesAroundBlockBody: Extra empty line detected at block body beginning.",
"reference": "I don't think you need these lines."
},
{
"prediction": "Why is this change needed?",
"reference": "You didn't mean to export this, right?"
},
{
"prediction": "I think this should be `# - 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)"
},
{
"prediction": "why is this needed?",
"reference": "Do we still need this?"
},
{
"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?"
},
{
"prediction": "Why is this change needed?",
"reference": "This is a bit inconsistent with the `ErrorStartHourGreaterThanEnd` in the previous file. Wouldn't `ErrorDefault``fit better here?"
},
{
"prediction": "I don't think this is needed anymore.",
"reference": "I think it will revert the change @antoninbas did on purpose 05eee251c9c53400277def576f92d614ca234898"
},
{
"prediction": "I think this should be `wireguard.cali` instead of `wireguard.cali`",
"reference": "nit: a switch perhaps?"
},
{
"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?"
},
{
"prediction": "I think this should be `errTLFJournalDisabled` instead of `errTLFJournalDisabled`.",
"reference": "Just noticed this while debugging -- it's unlikely to be causing issues in practice."
},
{
"prediction": "I don't think we need to 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 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_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` instead of `@classmethod`.",
"reference": "Unrelated but shouldn't this raise `attribute-defined-outside-init`?"
},
{
"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/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` to the `form-group` tag.",
"reference": "do you mean 'clearfix' class?"
},
{
"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": "I don't think this is needed.",
"reference": "This should not be included since there are no code changes."
},
{
"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 `v1.KindNode` instead of `v1.KindNode`",
"reference": "Should be checking for error here"
},
{
"prediction": "Why do you need to cast to array?",
"reference": "Put a space between `(array)` and `$this` and I'll merge it"
},
{
"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 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": "I don't think you need wildcard imports.",
"reference": "Avoid wildcard imports"
},
{
"prediction": "Why is this change needed?",
"reference": "Need to do this to unblock mockgen. The interface method needs to be public to be visible in another package. The right fix is to delete this test only interface method"
},
{
"prediction": "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": "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 remove this?",
"reference": "this is used as important way of mocking for unit tests, FYI"
},
{
"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."
},
{
"prediction": "Why is this change needed?",
"reference": "Just ignorance on my part, but what is the significance of the change from C23NHe2 to C23NHx2?"
},
{
"prediction": "I think this should be `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 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": "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 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 check for `options.include?(k)` here.",
"reference": "This is kind of confusing with the other `filter_options`."
},
{
"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."
},
{
"prediction": "I think this should be `int64_t rowCount = 0;`",
"reference": "It doesn't look like this particular \"rowCount\" variable is used anywhere. I suppose we could delete it. The code change is harmless though."
},
{
"prediction": "I think this should be `http.StatusOK` instead of `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 `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: 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": "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 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();`",
"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": "Why is this change needed?",
"reference": "This is equivalent to stdout. Why not just replace stdin with stdout in `IsProcessBackground`?"
},
{
"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` 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 don't think this is needed.",
"reference": "nitpick: _and collections_"
},
{
"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 `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 `@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 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 (!isEmptyLine(path)) { continue; }`",
"reference": "FYI: inlined this method in the internal review."
},
{
"prediction": "why is this removed?",
"reference": "Werid, the checksum between this file and the one on branch `develop` is the same not sure why it's showing a diff"
},
{
"prediction": "I think 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": "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.",
"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 for `user.first_name` and `user.last_name` here.",
"reference": "I'm surprised rubocop isn't picking up singe quotes?"
},
{
"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 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 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."
},
{
"prediction": "Why is this removed?",
"reference": "Why are we removing the option to skip machine pool generation?"
},
{
"prediction": "I don't think we need this interface anymore.",
"reference": "\"Request line\" here too."
},
{
"prediction": "I think this should be `if (ruleB(Zone, UseZoneController)) {`",
"reference": "Please remove this."
},
{
"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": "Layout/EmptyLinesAroundClassBody: Extra empty line detected at class body end.",
"reference": "This can be simplified as discussed before."
},
{
"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 test should be `Transaction(hexa).serialize(true).should.equal(hexa);`",
"reference": "does this boolean indicate unsafe serialization?"
},
{
"prediction": "I think this should be `copyBundledRealmFiles` instead of `copyBundledRealmFiles`",
"reference": "Maybe rewrite to `Is only implemented for React Native`? (I assume that is the case)."
},
{
"prediction": "I 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 `False` instead of `True`.",
"reference": "Maybe \"For configuring which scheduler messages can be received.\"?"
},
{
"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 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 this is needed.",
"reference": "This code is a bit confusing. Should HttpParameterType set to the original one or it is always BODY?"
},
{
"prediction": "Why is this change needed?",
"reference": "Why did this change?"
},
{
"prediction": "I think we should move this to the `DescribeTable` function.",
"reference": "nit: `status` collides with imported package named `status`"
},
{
"prediction": "I think this should be `return l.accts.IsWritingCatchpointFile()`.",
"reference": "\"memory pressure could be decreased\" --> \"to avoid memory pressure\""
},
{
"prediction": "I think we should use `random.randint(2000, 1 << 31)` instead of `random.randint(2000, 1 << 31)`",
"reference": "I think it would make sense to fetch the cache values after deleting the listens and making sure they are what we expect."
},
{
"prediction": "I think this should be `this.headerStateManager.mergeStateWith(collapsibleColumns);`",
"reference": "I'm thinking about covering this change with the test. Can you do that?"
},
{
"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 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 `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?"
},
{
"prediction": "I think this should be `!spec.description.match(/type=regex/);`",
"reference": "Can you leave a note about why we are skipping regex tests?"
},
{
"prediction": "I think this should be `return repo.OpenRepo(repoDir, newConfig);`",
"reference": "This was the only caller of CreateRepo, so I inlined it."
},
{
"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 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`.",
"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. [89/80]",
"reference": "I don't think this one needs to be changed since the only previous path is already an absolute one."
},
{
"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 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": "nit: remove empty line",
"reference": "This should be in the last group."
},
{
"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 don't think this is needed.",
"reference": "I've gone with this group name, however I'm open to suggestions on alternatives!"
},
{
"prediction": "I think this should be `QUORUM` instead of `QUORUM`",
"reference": "should this be GOQUORUM"
},
{
"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."
},
{
"prediction": "Why is this change needed?",
"reference": "same here, move it out"
},
{
"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": "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?`"
},
{
"prediction": "I think this should be `golang.org/x/net/context`",
"reference": "why not context from stdlib?"
},
{
"prediction": "why is this change needed?",
"reference": "Just saw this and wasn't able to hold myself from renaming :-)."
},
{
"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 <<-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 `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 `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 `final`",
"reference": "m prefix no longer in code style"
},
{
"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.core.glide.FastBlurTransformation`",
"reference": "Please add spaces before and after the equals sign"
},
{
"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": "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=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 should be `&& true` instead of `|| true`",
"reference": "Should this be `OS_VOLUME_SUPPORT` to match the symbol key names?"
},
{
"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 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": "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`",
"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 = \"%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 don't think we should return an error here.",
"reference": "expected statement, found 'else' (and 1 more errors)"
},
{
"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": "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 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) 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.go`",
"reference": "Should the API have a dependency on the SDK?"
},
{
"prediction": "I don't think we need to skip this test.",
"reference": "Is this a sometimes leaky test?"
},
{
"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 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": "Layout/EmptyLinesAroundBlockBody: Extra empty line detected at block body beginning.",
"reference": "Line is too long. [84/80]"
},
{
"prediction": "I think this should be `goog:chromeOptions` instead of `goog:chromeOptions`",
"reference": "nice touch since Google likes to change things every now and then."
},
{
"prediction": "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": "This should be `BACKEND_SERVICE`",
"reference": "nit: Would you mind alpha-sorting this?"
},
{
"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": "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 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 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": "Why is this needed?",
"reference": "the `if` isn't necessary here; it's safe to call `delete` on `nullptr`"
},
{
"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": "Why is this change needed?",
"reference": "can this one also be moved to the top of the file?"
},
{
"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": "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 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": "Why is this change needed?",
"reference": "bad line wrap"
},
{
"prediction": "Why is this needed?",
"reference": "What does the `8` here represent? Can you give it a name?"
},
{
"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": "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": "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 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": "Nit: I think this should be `delete(oldAWSMachineSpec, \"instanceID\")`",
"reference": "instanceID should stay the same for a AWSMachine?"
},
{
"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_HOST = 'localhost'`",
"reference": "what's the reason you had to add the `host` argument to all `get_work` calls?"
},
{
"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 `blockProcessor.skipZeroBlockRewards`",
"reference": "This should be moved into the PrivacyBlockProcessor instead of adding the constructor here."
},
{
"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 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": "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."
},
{
"prediction": "Why is this change needed?",
"reference": "why remove `Symbol`?"
},
{
"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 `Pierre LALET, Guillaume VALADON`",
"reference": "You have forgotten a coma `,`"
},
{
"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 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": "I think this should be `true` instead of `false`",
"reference": "nit: can this be a primitive value?"
},
{
"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`."
},
{
"prediction": "why is this change needed?",
"reference": "Why change this?"
},
{
"prediction": "Why is this change needed?",
"reference": " _nitpick_ Isn't it now actually NotLogFakeHttpExceptions**Error**Listener ?"
},
{
"prediction": "I think this should be `JsonSchema.CreateStringEnum(resourceType, true);`",
"reference": "Why not just look for the \"type\" property instead of creating a ResourceType property?"
},
{
"prediction": "Why is this needed?",
"reference": "should use `bc.config.Blockchain.ChainID`"
},
{
"prediction": "Why is this change needed?",
"reference": "this doesn't need to know about NativeClient"
},
{
"prediction": "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."
},
{
"prediction": "I don't think this is needed.",
"reference": "The variable name is also misleading imo. The width from the buffer comes from `wl_shm_buffer_get_width` (or a similar EGL thing), which is what gets encoded into `surface->texture->width`."
},
{
"prediction": "I think this should be `recording_msid` instead of `recording_msid`",
"reference": "Why are you using these tags to carry these msids?"
},
{
"prediction": "(style) line over 80 characters",
"reference": "flb_strdup() should do the work here. note: use Fluent Bit memory wrappers"
},
{
"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."
},
{
"prediction": "Why is this change needed?",
"reference": "shadow: declaration of \"err\" shadows declaration at line 410 (from `govet`)"
},
{
"prediction": "I think this should be `time.Duration` instead of `time.Duration`",
"reference": "Maybe next time better to make separate PR?"
},
{
"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 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": "This should be `std::chrono::duration_cast(max_blocking_time_point - std::chrono::steady_clock::now());`",
"reference": "Line too long"
},
{
"prediction": "I think this should be `CONST_ME_DODGE` and `CONST_ME_HOURGLASS`",
"reference": "This isn't aligned though."
},
{
"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 `from invenio.legacy.bibdocfile.registry import plugins`",
"reference": "@lnielsen-cern thanks. I missed it :("
},
{
"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": "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 it would be better to add a `TODO` to the `enableAdminAPI` field to the `PrometheusSpec` as well.",
"reference": "This should be a bool"
},
{
"prediction": "Why is this change needed?",
"reference": "`if (llvm::dyn_cast_or_null(GetSwiftType(compiler_type).getPointer())` ?"
},
{
"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 needed?",
"reference": "are this docs neccesary ?"
},
{
"prediction": "Why is this change needed?",
"reference": "Can you please revert changes to files in the `thoughtworks` package? This is legacy code and we will eventually phase out RC."
},
{
"prediction": "I think this should be `softmax_param.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 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 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`"
},
{
"prediction": "I think this should be `autoFocus(page);` instead of `autoFocus(page);`",
"reference": "do you have any idea on how to fix it?"
},
{
"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 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 don't think this is needed.",
"reference": "There are enums for genders + `PLAYERSEX_LAST`."
},
{
"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 `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 removed?",
"reference": "I think we should keep this dynamic config knob for operations purpose."
},
{
"prediction": "Why was this removed?",
"reference": "Was this intentional? Perhaps this could be replaced with another way to check the offsets?"
},
{
"prediction": "I think this should be `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 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 don't think this is needed.",
"reference": "This should be ` /$(ghc_find #{config[:ghc]})/ ` instead of ` /#{ghc_version}/ `, I think."
},
{
"prediction": "I think this should be `dots-horiz` instead of `dots-horiz`.",
"reference": "We should deprecate this at some point."
},
{
"prediction": "I think this should be `center_sample_radius=1.5`",
"reference": "Move these two arguments before `loss_cls`."
},
{
"prediction": "I think this should be `var i int64` instead of `var serialNumber int64`",
"reference": "[Super NIT]: i := serialNumber if i == 0 { i = mathrand.Int63n(...) }"
},
{
"prediction": "I think this should be `ToolFormat` instead of `ToolFormat`.",
"reference": "-f short form here collided with --force. :)"
},
{
"prediction": "Why was this removed?",
"reference": "I think it is better to describe in the release note that `rerender()` was removed."
},
{
"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 `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."
},
{
"prediction": "why is this change needed?",
"reference": "I know this is after the fact but imo blockAPI should be blockMiningAPI."
},
{
"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 `#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 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 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 `#ifdef DESUL_ENSURE_HIP_LOCK_ARRAYS_ON_DEVICE`",
"reference": "Again, we can also guard `g_host_hip_lock_arrays.atomic`, can't we?"
},
{
"prediction": "I think this should be `false` instead of `true`",
"reference": "Variable name should start from lowercase latter"
},
{
"prediction": "Why is this change needed?",
"reference": "Why has this timeout doubled?"
},
{
"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 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": "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 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 `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 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."
},
{
"prediction": "Why is this change needed?",
"reference": "I have a question? How do I construct a indexManager for testcase?"
},
{
"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": "Why is this removed?",
"reference": "Please take a care about prefixing."
},
{
"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 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 == \"\" {`",
"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 think we should use `getModificationDateFieldName()` instead of `getModificationDateFieldName()`.",
"reference": "Unrelated bug fix"
},
{
"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": "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": "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 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 think this should be `today.setHours(0, 0, 0, 0);`",
"reference": "I think this if should be removed (see issue)"
},
{
"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."
},
{
"prediction": "I don't think we need to import `List` and `Tuple` here.",
"reference": "nitpick: Please move this down to the other imports, as it's a Python stdlib import."
},
{
"prediction": "I 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 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 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."
},
{
"prediction": "Why is this change needed?",
"reference": "if you are not dealing with cache now, please revert these changes. On their own they make little sense"
},
{
"prediction": "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 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 this should be `null: true` instead of `false`",
"reference": "I think we have to manually write a down for this migration."
},
{
"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 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 `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": "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": "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 `_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": "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": "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`",
"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()).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)"
},
{
"prediction": "(style) line over 80 characters",
"reference": "It looks good overall! The only issue I have is that the description string is now duplicated twice right? Once in the struct and once in the parameter string? Maybe let's pass the struct to the command so that `ostree_option_context_parse` can set it as the summary? Similar to what we do in rpm-ostree."
},
{
"prediction": "Why is this 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 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": "I think this should be `@classmethod` instead of `@classmethod`.",
"reference": "Please use `{}` instead of `dict()`"
},
{
"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 `BlockHeight` instead of `GasConsumed`",
"reference": "new field needs to be asserted"
},
{
"prediction": "I think this should be `self->lastLogIdSent_ = self->logIdToSend_;`",
"reference": "when send log failed, why update the last sent log id?"
},
{
"prediction": "Why is this change needed?",
"reference": "what was the problem with the previous order? `prepend` comes conceptually before `append`, i.e. `insert before` should be before `insert after`, I think"
},
{
"prediction": "I think this should be 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`",
"reference": "Is there a recommended quote style for attributes? I see single and double here, double further down."
},
{
"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 don't think this is needed.",
"reference": "Consider naming this class `SpanExtensions` to follow C# conventions."
},
{
"prediction": "Why is this removed?",
"reference": "FYI @lucaspimentel and @colin-higgins since you have already approved, I wanted to point out this required change. By fixing `FrameworkDescription` to use the correct logger, it created a cycle between these two static constructors, so I'm removing this log line and delaying it to when it's actually constructed later in the Tracer. Let me know if you find that acceptable or have any suggestions."
},
{
"prediction": "I 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 `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": "Layout/SpaceInsideHashLiteralBraces: Space inside { missing. Layout/SpaceInsideHashLiteralBraces: Space inside } missing.",
"reference": "used named path (`proposals_path`) instead?"
},
{
"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 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 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 don't think this is needed.",
"reference": "Add docs to the new methods here"
},
{
"prediction": "I think this should be `_enabled = Enabled;`",
"reference": "what does it mean enabled?"
},
{
"prediction": "I think we should use `db.execSQL` instead of `db.query`",
"reference": "Getting an error when calling with db.execSQL (in sqlcipher 4.3.0, pragma returns ok)."
},
{
"prediction": "Why not use `ctxUser.DisplayName() + \" \" + ctxUser.DisplayName() + \" \" ?",
"reference": "Maybe we could remove `\" \" + ctx.Tr(\"dashboard\")` completely?"
},
{
"prediction": "I think we should remove the `# Purpose` line.",
"reference": "Simple Storage **Service**"
},
{
"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 `TimeSpan.FromSeconds(30);`",
"reference": "Where did we take this default from?"
},
{
"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 != 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 needed?",
"reference": "did you mean to delete this line?"
},
{
"prediction": "I think this should be `System.out.println(\"getDataverseException: \" + this.datasetFieldType.getDisplayName());`",
"reference": "Should we use logger instead?"
},
{
"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": "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."
},
{
"prediction": "Why is this change needed?",
"reference": "If there any other tests, I would make it optional there also."
},
{
"prediction": "Metrics/LineLength: Line is too long. [89/80]",
"reference": "This can be removed too, right?"
},
{
"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 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 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?"
},
{
"prediction": "Why is this TODO removed?",
"reference": "This TODO can be removed"
},
{
"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 the context here?",
"reference": "Should we print this error?"
},
{
"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 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": "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 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.",
"reference": "Are these imports needed?"
},
{
"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 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": "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": "I think this should be `http.ProxyPort` instead of `https.ProxyPort`",
"reference": "I think convention is snake case for import naming?"
},
{
"prediction": "I think this should be `if (!tableInfo.isCommonHandle()) {`",
"reference": "i think haspk is false?"
},
{
"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": "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 `repr(sorted(obj.to_dict().items()))`",
"reference": "A fair bit faster, although still not great, hence also adding a hashkey."
},
{
"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": "Why is this change needed?",
"reference": "This `context` is used correctly, there is nothing left TO DO."
},
{
"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:\")`",
"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": "I think this should be `http2/5.1/8` instead of `http2/5.1/8`",
"reference": "just remove the entire variable."
},
{
"prediction": "Line is too long. [89/80]",
"reference": "Maybe we should put that in the option description?"
},
{
"prediction": "Why is this change needed?",
"reference": "Why do we need to make this optional? Isn't the idea of the builder that if you don't need this value you just don't call the `keyFilePath ` method?"
},
{
"prediction": "Why is this change needed?",
"reference": "Shall we do the same for ORC and Avro?"
},
{
"prediction": "This file should be deleted.",
"reference": "Should be a space between line"
},
{
"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 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": "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 add `gt_bboxes_group_of` here.",
"reference": "I recommend move all openimage related logic to a new function"
},
{
"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 `@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 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 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.storage.memory`",
"reference": "So, why everything is in memory but the permission backend?"
},
{
"prediction": "`allowedExtensions != null && allowedExtensions != null ? allowedExtensions : null;`",
"reference": "Are you sure it should be null and not an empty List?"
},
{
"prediction": "I think this should be `[Required]` instead of `[Required]`.",
"reference": "Unfortunately I think the assumption of \"empty\" means the default dependency section is not correct. For a project.json file the default dependencies section is a shared section between all the different target frameworks and our TargetGroup being empty may map to many different target frameworks so they aren't really equated."
},
{
"prediction": "I think 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`.",
"reference": "pls pr a name change fro muon here too separately."
},
{
"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": "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 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."
},
{
"prediction": "I think this should be `None fatal crash per session`",
"reference": "We would need to localize them eventually too, just FYI"
},
{
"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": "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 `#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 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 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 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 `$em` here?",
"reference": "i hope there is some extension in phpstan for this"
},
{
"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 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 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": "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 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 `if not dataset._virtual_vdims:`",
"reference": "Why not make the ``derived_vdims`` flag (or similar, ``validate_vdims`` maybe?) an explicit argument to ``validate``?"
},
{
"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": "I don't think this is needed.",
"reference": "please update the year. it can be setup in intellij template."
},
{
"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 `bool` instead of `bool`.",
"reference": "nit: `as_index must be an boolean` -> `as_index must be a boolean`"
},
{
"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 `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": "Why is this change needed?",
"reference": "Fix for URISyntaxException."
},
{
"prediction": "I think this should be `if routeUpd.Dst == nil {`",
"reference": "Would be good to UT this case"
},
{
"prediction": "I don't think this is needed.",
"reference": "Why we need to add this?"
},
{
"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": "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 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 `_issueLogJsonWriter.WriteConfigurationNotifications(_run.ConfigurationNotifications);`",
"reference": "_jaw drops_ I would have sworn I wrote those lines. Good catch."
},
{
"prediction": "I think this should be `axe._memoizedFns.forEach(fn => fn.clear());`",
"reference": "This needs to be tested."
},
{
"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 we should check if the error is not ErrNotExist.",
"reference": "move 103~105 to in front of 97?"
},
{
"prediction": "I think this should be `java.io.FileOutputStream` instead of `java.io.FileOutputStream`.",
"reference": "Lots of unnecessary imports left in this file."
},
{
"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 `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 `routetable.TargetTypeNoEncap` and `routetable.TargetTypeBlackhole`",
"reference": "I don't think we need these. Simpler just to put `routetable.TargetType...` inline below."
},
{
"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 `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 needed?",
"reference": "For your reference in future, I sugguest to use the `ASSERT_*` family."
},
{
"prediction": "I think this should be `fmt/format.h`",
"reference": "no need to import `fmt/format.h` here since the `KimInit` class is derived from `Pointers`. Any class derived from `Pointers` can assumed that `lmptype.h`, `mpi.h`, `cstddef`, `cstdio`, `string`, `utils.h` and `fmt/format.h` are already included through `pointers.h`."
},
{
"prediction": "nit: remove empty line",
"reference": "Can we have prefix of `OPENEBS_IO` e.g.: `OPENEBS_IO_INSTANCE_NAME`"
},
{
"prediction": "Why not just `GetRootNode`?",
"reference": "Might as well fix these bare returns by making them `return errors.New(...` directly."
},
{
"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"
},
{
"prediction": "Why is this removed?",
"reference": "thx for removing these"
},
{
"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 we should use `testCase2` instead of `testCase3` here.",
"reference": "How is this different than \"good case\"?"
},
{
"prediction": "Why is this change needed?",
"reference": "the last parameter name should be `serviceName` as is in the implementation "
},
{
"prediction": "Why is this change needed?",
"reference": "@ftomassetti - okay, this is a little meh."
},
{
"prediction": "I think 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 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`",
"reference": "please keep alphabetical ordering :)"
},
{
"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 `\"\"`",
"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 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 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 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": "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 `DebugSimulateDataRace` or `DebugSimulateCalcGraphHangAfter`",
"reference": "Are all fields beginning with \"Debug\" automatically `;local` ? (I guess so, but just checking.)"
},
{
"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."
},
{
"prediction": "I think this should be `getStatsMergeTimeout()` instead of `getStatsMergeTimeout()`.",
"reference": "We would want ssmp to wake up every 3 seconds if there are no other requests to it and do some cleanup tasks. So, it is not clear why do you want to set this to 0."
},
{
"prediction": "I think this should be `_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 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 to forget vendor prefixes here.",
"reference": "Looks like you've covered `-webkit-transform`, but what about `-ms-transform`?"
},
{
"prediction": "I think this should be `MvxBindingLog.Error(\"All collection changes\")`",
"reference": "Is there something missing from the message here?"
},
{
"prediction": "I don't think we need to add these to the list.",
"reference": "Hmm, what does this syntax mean?"
},
{
"prediction": "I don't think we need to pass `callerTypeAPI` here.",
"reference": "should this be callerTypeTask?"
},
{
"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`.",
"reference": "Maybe make it configurable? Or store the actual level index in DB, making this binary search obsolete?"
},
{
"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 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": "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": "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 `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": "Why is this removed?",
"reference": "All the callers of `ExtractSomeIfAny`, always pass `true` to `synthetic_value`. Can we get rid of the extra argument?"
},
{
"prediction": "I think this should be `meta['config_dict'] = dict(cfg)`.",
"reference": "Better to use the absolute path."
},
{
"prediction": "Why is this change needed?",
"reference": "this is 16 hours, is that enough?"
},
{
"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 := uint64(0)`",
"reference": "Can you replace these single letter variables with full names?"
},
{
"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 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 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": "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 should be `ArrayInitializationVerbosenessRuleTest`",
"reference": "this class should be named `ArrayInitializationVerbosenessTest` to work"
},
{
"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": "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 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": "Why is this needed?",
"reference": "Should we be doing this with `make_unique` or something?"
},
{
"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": "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."
},
{
"prediction": "Why is this change needed?",
"reference": "It's unnecessary to duplicate the `name`."
},
{
"prediction": "Why is this change needed?",
"reference": "this was a mistake when adding phpstan strict plugin"
},
{
"prediction": "I think this should be `if (oldDom.parentNode != parentDom && oldDom.parentNode != parentDom)`",
"reference": "Nit: I think it should be `to handle` here."
},
{
"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 change needed?",
"reference": "`numAccounts` is a global variable (from `gochecknoglobals`)"
},
{
"prediction": "Why is this needed?",
"reference": "Is the ID correctly normalized at this point?"
},
{
"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 :)"
},
{
"prediction": "Why is this change needed?",
"reference": "Curious about the reason behind this change"
},
{
"prediction": "why is this change needed?",
"reference": "wait, i thought the cborstore was for state tree?"
},
{
"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": "I think this should be `@Nullable` instead of `@Nullable`.",
"reference": "How about name it with NullResponseTypeProcessor"
},
{
"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 `_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 `node.Role` instead of `node.Role`",
"reference": "Let's use this constant when ASG is created as well (currently hardcoded)."
},
{
"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": "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.IAccessible`, not `NVDAObjects.UIA`.",
"reference": "How did you determine these - and how can we be confident that nothing is missing?"
},
{
"prediction": "How about \"Workshops\"?",
"reference": "What is this page going to do that is different than the products index we already have?"
},
{
"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 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."
},
{
"prediction": "Why is this change needed?",
"reference": "These changes, while harmless, were no longer needed with newer versions of System.Console thanks to @ianhays"
},
{
"prediction": "I think this should be `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 `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 `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 removed?",
"reference": "This change is causing tests to fail because users sits at `/app/users`, not `/app/admin/users`"
},
{
"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": "Why is this change needed?",
"reference": "Why this line break?"
},
{
"prediction": "I don't think this is needed anymore.",
"reference": "We're importing this twice with different aliases."
},
{
"prediction": "I think this should be `<0.8.0`",
"reference": "We should avoid adding a pandera dependency to Dagster itself."
},
{
"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": "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 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 `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=%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`",
"reference": "Maybe 2 host/ip values could be used in the example?"
},
{
"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": "(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.hash()`.",
"reference": "Wondering if we can directly put types here & for other similar ledger_processor items like rai::block_type::state"
},
{
"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": "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;`",
"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 don't think we need to change the implementation of TreeMap.",
"reference": "'A' instead of 'An' here"
},
{
"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 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 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": "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`",
"reference": "`short_version` and `version_info`"
},
{
"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 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`.",
"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 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\"`"
},
{
"prediction": "I think this should be `@JsonProperty(\"appName\")`.",
"reference": "I'd actually recommend not putting this in the `SampleConfig`, it's intended more for properties that are inherent of the discovery format. Add a method `getSampleAppName(String apiTypeName)` to `SampleNamer` and override it in the language specific `SampleNamer`s if needed. Then assign it in the transformer."
},
{
"prediction": "I think this should be `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": "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().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."
},
{
"prediction": "(style) code indent should use tabs where possible",
"reference": "What if .. appears, but not as the first character, eg \"errors/../../../../../../../../../../../\"?"
},
{
"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": "Why is this deprecated?",
"reference": "why not removing it?"
},
{
"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 done in a separate PR.",
"reference": "Nit: other statements use all caps for SQL reserved words. Should this be `SHOW TABLES`?"
},
{
"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": "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 `svc` instead of `app`",
"reference": "Do we need to change this flag as well?"
},
{
"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": "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 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": "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 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": "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 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 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 `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 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."
},
{
"prediction": "Why is this change needed?",
"reference": "I think we can just change this to `Split` instead of `SplitN`. I don't think we need to limit the number of parts in the tag."
},
{
"prediction": "I think 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."
},
{
"prediction": "Why is this change needed?",
"reference": "An alternate approach would be to always initialize shardInfo with a dummy (non-nil) value, which could protect against other uses before it's initialized (I couldn't find any though). But I can change it to do it that way instead."
},
{
"prediction": "I think this 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": "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."
},
{
"prediction": "Why is this removed?",
"reference": "Why did you remove these packages from the prelude, will your new functions not work without this change?"
},
{
"prediction": "I think 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 should be `GetNodeHostname`",
"reference": "would it make sense to return empty or error if label doesn't exists?"
},
{
"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": "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": "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 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": "Why not just `time.Now()`?",
"reference": "out of curiosity, why creating another struct to wrap it?"
},
{
"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 `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 = \"0\"`.",
"reference": "How about `SPARK_DEFAULT_SERIES_NAME`?"
},
{
"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 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."
},
{
"prediction": "Line is too long. [89/80]",
"reference": "In the case of accounts generated by API clients, what name gets put for the `inviter_name` or `invited_by` record?"
},
{
"prediction": "I 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": "I think this should be `ExecutionError` instead of `TracerTimeout`.",
"reference": "what is the number thrown by Geth?"
},
{
"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 `context.WithValue(ctx, pluginNameKey, ok)`.",
"reference": "it is not an interface, maybe we can move to another package?"
},
{
"prediction": "Why is this needed?",
"reference": "Same here. Can we use `this.instance.getSettings()` to get `tableMeta`?"
},
{
"prediction": "I think 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 `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?"
},
{
"prediction": "I think this should be `logger_.info(\"select progress: %s\", event['Progress'].get('Details'))`",
"reference": "If this is needed for testing, you should use `pytest --log-cli-level=INFO` instead."
},
{
"prediction": "I don't think we need to change the URL here.",
"reference": "We should drop ipify in all places i guess"
},
{
"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 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 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 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."
},
{
"prediction": "Why is this change needed?",
"reference": "I don't like this helper func :-). Yeah, definitely don't like."
},
{
"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 don't think this is needed. `options.ignoreUndefined = this.s.options.ignoreUndefined;`",
"reference": "@kvwalker should this method have `ignoreUndefined` supported as an `option`?"
},
{
"prediction": "Why is this change needed?",
"reference": "we dont use a `sugaredlogger` anywhere else in clutch, just curious why were using it here?"
},
{
"prediction": "Why remove this line?",
"reference": "Not evident from looking at this diff but the queue is already being cleared four lines below."
},
{
"prediction": "I think this should be `if len(txgroup) == 1 {`",
"reference": "Why is this a 'transaction' and not in the block header?"
},
{
"prediction": "I think this should be `public X509Certificate2 ClientCertificate { get; set; }`",
"reference": "This doesn't fit the abstraction level. Should we have a property bag for extra stuff?"
},
{
"prediction": "I 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": "Why do we need this?",
"reference": "do we really need the `Ready` call if startup fails midway?"
},
{
"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 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 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": "Nit: remove empty line",
"reference": "AWS Identity and Access Management (IAM)"
},
{
"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 `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 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": "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` annotation here.",
"reference": "Feel free to use the full notation with my email address: `Maxime Steinhausser ` :smile:"
},
{
"prediction": "Why is this removed?",
"reference": "This was unused across the codebase"
},
{
"prediction": "I think this should be `Debugf` instead of `Warnf`.",
"reference": "Should we put in which account we were trying to look up?"
},
{
"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`",
"reference": "This is not going to work. You need to add a migration to the database."
},
{
"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 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 `LoadFromAssemblyPath` instead of `LoadFromAssemblyPath`.",
"reference": "Please run Platform tests `DiaSessionTests`."
},
{
"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 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."
},
{
"prediction": "Why is this change needed?",
"reference": "Does the name suffix hardcode something? Not clear how changing the name fixes this."
},
{
"prediction": "I think this should be `getQueueProcessorThreadState`",
"reference": "Is undispatched same as queued? getQueuedFlows?"
},
{
"prediction": "I don't think we need to change this file.",
"reference": "See above, same for all similar cases below."
},
{
"prediction": "Why is this needed?",
"reference": "Why is this done twice?"
},
{
"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` 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 `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 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": "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": "`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/address.go`",
"reference": "File is not `gofmt`-ed with `-s` (from `gofmt`)"
},
{
"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`",
"reference": "I don't think you can call this optional unless it's a pointer - remove this?"
},
{
"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 `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?",
"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": "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 `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": "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 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 think this should be `java.util.List`.",
"reference": "can use `getParamTypeName` instead"
},
{
"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 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 `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": "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 `CloudBackupGroupID`",
"reference": "Change this to IDs too?"
},
{
"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": "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 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 in a separate PR.",
"reference": "Please remove all these debug prints. It doesn't look good."
},
{
"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 `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 `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": "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."
},
{
"prediction": "Why not use `searcher.getCore().getCoreContainer().getSolrClientCache()`?",
"reference": "Need the `solrClientCache.close();` further down in the method be removed since a shared cache is now used?"
},
{
"prediction": "I think this should be `int64` instead of `int64`.",
"reference": "according to the PR (schema changes?) these 2 field should be removed?"
},
{
"prediction": "why is this removed?",
"reference": "Panic here if `exp.Target.StressChaos.CintainerName` is nil."
},
{
"prediction": "I think 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 `DEBUG.debug(\"Opening [{}] for read\", file);`",
"reference": "Aren't there already logs for this from the underlying file system implementation?"
},
{
"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 `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": "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 is this change needed?",
"reference": "line is 133 characters (from `lll`)"
},
{
"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 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` here.",
"reference": "should this really be multiple IPs?"
},
{
"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 this should be `mockgen.go`",
"reference": "Should be 2014-2016"
},
{
"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();` instead of `cursors[0].next(function(err, cursors[0])`.",
"reference": "similarly here, are the these cursors not being closed when the client is closed?"
},
{
"prediction": "Why is this change needed?",
"reference": "Or maybe `func(args ...string) Policy` to make it dynamic in case of any future policy that may require more than one args."
},
{
"prediction": "I think this should be done in the `config.MakeFBOsForExistingJournals` function.",
"reference": "Should this happen even if the above failed?"
},
{
"prediction": "I don't think we need to update the copyright year.",
"reference": "Please dont change this ."
},
{
"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 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 done in a separate PR.",
"reference": "It is `$JAVA_HOME/bin`, not `$JAVA_HOME`, which should be added."
},
{
"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 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": "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 `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 `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 needed?",
"reference": "This seems like a more interesting change. Maybe we should re-name the PR"
},
{
"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 `.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 `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 `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/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": "I think this should be `defer udpConn.Close()`",
"reference": "does this line cause a panic if it is above the if condition ?"
},
{
"prediction": "I don't think this is needed.",
"reference": "Maybe `LibraryDetailsPanelType` would be clearer."
},
{
"prediction": "Why is this removed?",
"reference": "minor nit - add \"persist-filesystem\" and \"persist-directory\" into commit message, as its something people may search on (maybe applies to a few other commit messages)"
},
{
"prediction": "Why remove this?",
"reference": "I verified offline with @jeremyg-lunarg this should be removed."
},
{
"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 `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 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 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.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 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`",
"reference": "Are there tests for this? What happens when you get to limit?"
},
{
"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 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 `IsEip1344Enabled` instead of `IsEip1344Enabled`",
"reference": "Can we add Istanbul with this first EIP please? (or as a separate issue)"
},
{
"prediction": "Why is this change needed?",
"reference": "I don't understand this change"
},
{
"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 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."
},
{
"prediction": "I think this should be `if (localConnection && localConnection.type == Blockly.OUTPUT_VALUE)`",
"reference": "This should be before the if on line 1028, which should turn into an else if"
},
{
"prediction": "I think this should be `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 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 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": "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 in a separate PR.",
"reference": "Small formatting thing, but can you remove the space before the semicolon?"
},
{
"prediction": "I think this should be `int` instead of `long`.",
"reference": "Not new, but nit: _writeLeng*th*."
},
{
"prediction": "I think this test should be in a separate PR.",
"reference": "Our habit is to go ahead and put a description line (or more) in front of every function, not just non-test or exported functions."
},
{
"prediction": "nit: remove empty line",
"reference": "Remove this file from the PR"
},
{
"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 `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": "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": "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": "why is this changed?",
"reference": "No pb please"
},
{
"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 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 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(properties).withSpec(spec)`.",
"reference": "Thanks for the contribution, @coolderli ! I also think the newPosDeleteWriter need the properties setting ..."
},
{
"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` 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 is this removed?",
"reference": "The related statements should also be deleted."
},
{
"prediction": "I think this should be `params[\"PolicyNames\"] = \"\"` instead of `params[\"PolicyNames\"] = \"\"`",
"reference": "Shouldn't this line be removed?"
},
{
"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."
},
{
"prediction": "I think this should be `setMode(PasscodeMode.Check);`",
"reference": "Issue is that `currentMode = newMode;` is called at the end of the method. Passcode screen will come up, but since the activity thinks current mode is biometric check we don't check passcode when submitted."
},
{
"prediction": "Why is this change needed?",
"reference": "Need change it back?"
},
{
"prediction": "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 this should be `using Datadog.Trace.ExtensionMethods;`",
"reference": "nit: Looks like this can be removed now"
},
{
"prediction": "Why is this removed?",
"reference": "Can probably remove the lines above it too (L60-62), since ProvisionDefaultCA() makes sure the map isn't nil."
},
{
"prediction": "I 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 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.AllowAttrs(\"type\").Match(regexp.MustCompile(`^checkbox$`)`.",
"reference": "Why this to be a public function?"
},
{
"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"
},
{
"prediction": "I don't think this is needed anymore.",
"reference": "wrong import grouping"
},
{
"prediction": "I think we can remove the `System.arraycopy` here.",
"reference": "There is a doubled semicolon ;)"
},
{
"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": "I think this should be `any_elements_located`",
"reference": "shouldn't **call** return a boolean?"
},
{
"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": "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{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}",
"reference": "should the 'Receiver' be the clawback address in case of clawback transaction?"
},
{
"prediction": "I think this should be `controllerStatusOK` and `volumeStatusOK`.",
"reference": "@ashishranjan738 -- Where are these consts used? in which pkg?"
},
{
"prediction": "I think this should be `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 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 `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": "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 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."
},
{
"prediction": "Why is this change needed?",
"reference": "Hello @jDolba, I have reviewed your PR and I found one problem. `$step->getFormType()` can return `FormTypeInterface`. You cannot use interface as key for an array. Can you find some better way to fix this? Thank you."
},
{
"prediction": "I 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": "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": "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 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": "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": "remove empty line",
"reference": "Unnecessary new line"
},
{
"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 don't think this is needed anymore.",
"reference": "What changed in the styles that means we don't need this?"
},
{
"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 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 this is needed anymore.",
"reference": "What does this contain? Is it PVC namespace or is it openebs?"
},
{
"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": "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 ($mediaContext !== null) {` instead of `if (null !== $mediaContext) {`",
"reference": "Shouldn't we throw an exception if the context is null instead ?"
},
{
"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 `build_match_cost_from_cfg` instead of `build_from_cfg`.",
"reference": "Rename the directory, match_costers -> match_costs"
},
{
"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 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 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": "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 don't think we need to cast to `int` here.",
"reference": "Remove this since it always has to be set afterwards."
},
{
"prediction": "Why is this change needed?",
"reference": "These two tests were causing us to use too many goroutines with `-race` using the default block change size, I think due to prefetching."
},
{
"prediction": "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 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 `DEFAULT_BATCH_SIZE_EXCEPTION = 'InvalidParameterValueException'`",
"reference": "nit: I'd probably rename this to `BATCH_SIZE_RANGES`, to use a slightly more descriptive name."
},
{
"prediction": "Why is this change needed?",
"reference": "aren't these the wrong way around?"
},
{
"prediction": "Why is this needed?",
"reference": "Lets call this getConfigSetService and maybe rename the field now (or later)"
},
{
"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 think this should be `platformUnknown`",
"reference": "lets stick with lowercase for consistency."
},
{
"prediction": "I don't think this is needed anymore.",
"reference": "ordering of imports went wrong"
},
{
"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 `TypeDoesNotContainType` instead of `TypeDoesNotContainType`",
"reference": "Is this a good place for these test cases?"
},
{
"prediction": "I think this should be removed.",
"reference": "Did you mean to leave the print statement?"
},
{
"prediction": "why not use `Interpreter.LOCKTIME_THRESHOLD = 500000000;`?",
"reference": "I would do `new BN(Interpreter.LOCKTIME_THRESHOLD)`"
},
{
"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": "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.info(\"Building \" + target + \" ...\");`",
"reference": "This is to let people know that the tooling is doing something during a build. Please leave."
},
{
"prediction": "Why is this change needed?",
"reference": "Why is the principal changing here?"
},
{
"prediction": "I think 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 `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 this is needed.",
"reference": "can we use `github.com/pkg/errors`?"
},
{
"prediction": "Why is this change needed?",
"reference": "I changed the name of the arguments here just to help make the code clearer."
},
{
"prediction": "I 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."
},
{
"prediction": "Why is this change needed?",
"reference": "@sfricke-samsung -- thanks. saves a few atomic ops which is always good :) The TODO is there to track that this object is storing *both* vectors of shared_ptr and plain pointers to the same data. The shared are to ensure scope, and the plain are for backwards compatibility with existing code that consumed a plain pointer vector (and some code that still does). That should be cleaned up."
},
{
"prediction": "I think this should be `using Nethermind.Metrics;`",
"reference": "minor: typo (knowMetricsTypes -> knownMetricsTypes)"
},
{
"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 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 is this removed?",
"reference": "if remove `dt.skipLoad` - then this tests will run. You probably mean opposite?"
},
{
"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": "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 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 `num_stages` instead of `num_stages`.",
"reference": "Single quote is used by default in this project."
},
{
"prediction": "I think we can remove the `isPoolPending` check here.",
"reference": "S1023: redundant `return` statement (from `gosimple`)"
},
{
"prediction": "I think this should be `Close` instead of `Close`",
"reference": "`ctx` is unused in Close"
},
{
"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 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 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`?"
},
{
"prediction": "Why is this change needed?",
"reference": "Add a GetSerialPortOutput method to Instance that way you don't need to access the client, also it makes the call cleaner as you don't have the odd i.Client and path.Base(i.Project), path.Base(i.Zone)"
},
{
"prediction": "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": "Why is this needed?",
"reference": "Since CD updates (assignment & power state) are now done in this controller..."
},
{
"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 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"
},
{
"prediction": "I think this should be `history_depth(10)` instead of `history_depth(10)`",
"reference": "This line is too long"
},
{
"prediction": "I think this should be `logger.Fatalf(err.Error())` 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"
},
{
"prediction": "Why is this change needed?",
"reference": "I wondered why `buffer` was passed into `LookupPath`. What is happening here? Is `buffer[:0]` equivalent to `[]V4TrieEntry{}`, and hence `buffer` isn't needed any more?"
},
{
"prediction": "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 `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 this should be `if (!readonly && spaceId_ != 0) {`",
"reference": "use `NebulaKeyUtilsV3::dataVersionValue()` to replace the literal value?"
},
{
"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."
},
{
"prediction": "I think this should be `` instead of ``",
"reference": "This doesn't seem like the right expected result... it should be the same as the `clientCert` var defined above."
},
{
"prediction": "Why is this removed?",
"reference": "need to rename this now."
},
{
"prediction": "I don't think we should be able to ignore these fields.",
"reference": "NIT: This shouldn't be a TODO. It is just a note isn't it?"
},
{
"prediction": "I think this should be `message.warning('Edited element vanished')`",
"reference": "I changed this to an error, that seems more appropriate than a warning here."
},
{
"prediction": "I think this should be `!action.IsSystemLog(l)`",
"reference": "This change could mute unit test failure, but it is better to update unit tests"
},
{
"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 removed?",
"reference": "keep as `ErrNotFound`, it is the same convention as in other packages"
},
{
"prediction": "I don't think this is needed anymore.",
"reference": "Same here, we need to call `callback` in else branch"
},
{
"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 `@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 think this should be done in a separate PR.",
"reference": "why not do it in `reclaimExpiredSessions`? and `pushSessionToCache` can delete"
},
{
"prediction": "why not use `_base_`?",
"reference": "out_channels/num_outs/type are unnecessary"
},
{
"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))`",
"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 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 `TxHeaderFields` instead of `TxHeaderFields`.",
"reference": "Let's add fee recipient as well."
},
{
"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`",
"reference": "I think there's another spot for this in DefaultCapabilityMatcher"
},
{
"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": "Why is this change needed?",
"reference": "what changed in this line?"
},
{
"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 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 `defer errCh <- err`",
"reference": "This looks like you're not collecting everything from the error channel."
},
{
"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": "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\")`",
"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 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 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 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 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": "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": "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 `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`",
"reference": "I prefer starts with `Failed to xxx`, how about `Failed to perform health check on xxx`?"
},
{
"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": "Why is this change needed?",
"reference": "This file shouldn't be in this PR"
},
{
"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": "I think this should be `info` instead of `trace`.",
"reference": "Are you going to change that back?"
},
{
"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": "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 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 `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": "nit: remove empty line",
"reference": "Can you move this up along with the other builtin libraries?"
},
{
"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 `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 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. :)"
},
{
"prediction": "Why is this change needed?",
"reference": "Why local and not UTC?"
},
{
"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() ?"
},
{
"prediction": "I think this should be `github.com/iotexproject/iotex-address/address`",
"reference": "move to line 14 below"
},
{
"prediction": "I think this should be `intersects` instead of `crosses`.",
"reference": "the method name should match teh docs"
},
{
"prediction": "Why is this TODO removed?",
"reference": "Won't this happen automatically when we flip the default version in the config?"
},
{
"prediction": "Why is this change needed?",
"reference": "This would also change back to /var/www/html/docroot if we go that way."
},
{
"prediction": "I 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 `None` instead of `False`?",
"reference": "We are no longer including file name in the source files."
},
{
"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 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": "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 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 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": "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": "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 `sys` here.",
"reference": "Can we grab it directly from `__pkginfo__` as that is the source of truth for the version?"
},
{
"prediction": "nit: remove empty line",
"reference": "We can revert this to reduce the diff of the PR."
},
{
"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 `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.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 `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?",
"reference": "`readActiveBlockProducersByHeightTests` is a global variable (from `gochecknoglobals`)"
},
{
"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 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 `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.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 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 `/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 `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 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"
},
{
"prediction": "Why remove this?",
"reference": "Let's keep this line in the docstring, to let end users know they shouldn't be using this directly."
},
{
"prediction": "Why is this removed?",
"reference": "can do the same for other validateXXX()"
},
{
"prediction": "I think this should be `const_cast(participant_)`.",
"reference": "Why is this necessary?"
},
{
"prediction": "I don't think we need to import datetime here.",
"reference": "Please move this import upper to other similar imports"
},
{
"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": "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": "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."
},
{
"prediction": "I think this should be `from kinto.core.storage.postgresql.migrator import Migrator`",
"reference": "ditto about use of `abspath`"
},
{
"prediction": "I don't think this is needed.",
"reference": "this reduces the runtime by 50 times"
},
{
"prediction": "I think this class should be renamed to `RemoteDistributorTest`",
"reference": "Probably best not to have an empty test...."
},
{
"prediction": "Why is this change needed?",
"reference": "direct `newInstance` call is also deprecated now"
},
{
"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 protected?",
"reference": "Why was this change needed?"
},
{
"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": "Layout/SpaceInsideHashLiteralBraces: Space inside } missing.",
"reference": "Why does this check differ from `plan_ssh.rb`?"
},
{
"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": "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."
},
{
"prediction": "(style) line over 80 characters",
"reference": "We have cli --online_weight_clear in cli.cpp"
},
{
"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 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 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 it would be better to use `
Watch or Download Video
` instead of `
Watch or Download Video
`",
"reference": "Space after `=`."
},
{
"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": "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": "Why is this necessary?",
"reference": "I'm not sure about that... This line can produce ClassCastException if Comparator do not check this."
},
{
"prediction": "I think this should be `*BareTlfHandle`",
"reference": "There wasn't any special reason for this to return a pointer, right?"
},
{
"prediction": "I don't think you need to use `ConcurrentHashMap` here.",
"reference": "Why the need for a `ConcurrentHashMap`?"
},
{
"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": "Layout/TrailingWhitespace: Trailing whitespace detected.",
"reference": "`expect(resources['Notify[local pid]']['events'][0]['desired_value']).to match(/(\\d+)/)` seems clearer."
},
{
"prediction": "Why is this changeMd needed?",
"reference": "Removed now-unneeded param."
},
{
"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 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 `WaitForClosedForm(propDialog);`",
"reference": "This is functionally equivalent to the code it replaces."
},
{
"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": "I don't think we need to change this file.",
"reference": "See above, same for the other cases."
},
{
"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 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 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": "Why is this `strict_types=1`?",
"reference": "I think it should been in `SharedKernel` module."
},
{
"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.class`.",
"reference": "Should its name be Time or Duration? I can see them both."
},
{
"prediction": "I don't think we need this function anymore.",
"reference": "Is this used anywhere?"
},
{
"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": "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 `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 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 `org.apache.commons.commons.commons.constants.Constants.GROUP_ID`",
"reference": "are you sure you can read version by this artifactid?"
},
{
"prediction": "I don't think this is needed anymore.",
"reference": "We can get rid of this import then."
},
{
"prediction": "I think we should move this logic to `processGatewaySubjectSub` as well.",
"reference": "Should we do our own vtable?"
},
{
"prediction": "I think we should remove the `exceptions_app` variable.",
"reference": "This is the actual fix."
},
{
"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 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"
},
{
"prediction": "why is this change needed?",
"reference": "not sure whether we should do this. It may cause problem that delegates upgrade their nodes at different time, that they will have different \"last block time\", some use \"commit time\", some use \"block time\". Potential solution: Only use block time after berling, and then delete it in the next version after berling. Open to discussion."
},
{
"prediction": "Why not just throw the exception here?",
"reference": "So one question I have is why is the error coming back from `buildReplicaPositions` not an `Assign.AssignmentException`? Is it because it is wrapped in a `SolrException` from the remote node?"
},
{
"prediction": "Why is this change needed?",
"reference": "`dt` won't work for some reason?"
},
{
"prediction": "Why is this change needed?",
"reference": "Is this because \"KOALAS_USAGE_LOGGER\" can be `None` ??"
},
{
"prediction": "I think this should be `TxLimitFromABlock` instead of `TxLimitFromABlock`",
"reference": "I like it but maybe the better name will be EthGasPriceConstants or EthGasPriceEstimatorConstants? but Constants not Config"
},
{
"prediction": "Why is this needed?",
"reference": "I would inline the constructor as well"
},
{
"prediction": "Why 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\")`",
"reference": "There is also `v1alpha1.CertificateRequestKind` I think?"
},
{
"prediction": "I think this should be `sender_gcpbroker` instead of `sender_gcpbroker`",
"reference": "Can we rename it to make it less confusing? Instead of \"sender-gcpbroker\", maybe name it to \"retryable-sender\""
},
{
"prediction": "I think this 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."
},
{
"prediction": "I think this test should be `assertTrue(abs(nrmse.getMetric()[\"value\"]-target))`",
"reference": "Why did you break the line? It looks like it is under 80 characters without the break and it is inside parens so no need for backslash anyway"
},
{
"prediction": "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. 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 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.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 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 needed?",
"reference": "detectStaleEndpoints to be more specific?"
},
{
"prediction": "I think this test should be done in C++ too.",
"reference": "Please create a new issue for addressing this (if there isn't one already), so it doesn't get lost."
},
{
"prediction": "Why is this 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": "Nit: remove trailing whitespace",
"reference": "AWS Identity and Access Management (IAM)"
},
{
"prediction": "I think this should be `info` or `fine`.",
"reference": "This is deliberately at this level."
},
{
"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": "I think you can use `reset($alreadyCreatedDemoPricingGroupsByDomain);` instead of `reset($alreadyCreatedDemoPricingGroupsByDomain);`",
"reference": "should this be kept in the `else` branch?"
},
{
"prediction": "nit: remove empty line",
"reference": "Why not put this below \"strings\"?"
},
{
"prediction": "I think this should be `_dispatchPipes.Count` instead of `_dispatchPipes.Count`.",
"reference": "Make it `internal` if it's just for testing."
},
{
"prediction": "I think this should be `logical-tautology` instead of `logical-tautology`",
"reference": "What is triggering this message in this file?"
},
{
"prediction": "why is this change needed?",
"reference": "Are you sure this should be removed?"
},
{
"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."
},
{
"prediction": "Why is this change needed?",
"reference": "This shouldn't be necessary (same below). Do you have a traceback for me?"
},
{
"prediction": "nit: remove empty line",
"reference": "No newline needed here."
},
{
"prediction": "nit: remove empty line",
"reference": "Why a separate block?"
},
{
"prediction": "(style) line over 80 characters",
"reference": "Probably better to ask @AssadHashmi or another AArch64 expert for a review rather than me -- @AssadHashmi if you could confirm that these status registers are 64-bit despite having only a few fields?"
},
{
"prediction": "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": "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 `hivev1vsphere.OSDiskSizeGB` instead of `hivev1vsphere.OSDiskSizeGB`",
"reference": "Seems a little low, but is this an installer default?"
},
{
"prediction": "I think this should be `logger._logger = None` instead of `logger._logger = None`",
"reference": "Maybe we could provide our own `configure` function that includes `logger._logger = None` because I don't see a use case in kinto for using `reset_logger` besides configuring the logger."
},
{
"prediction": "Why is this 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": "why is this change necessary?",
"reference": "Fixed the test; @strib want to validate that this is okay? Seems to be consistent new GC behavior."
},
{
"prediction": "Why is this change needed?",
"reference": "Afaict, nothing cares"
},
{
"prediction": "I 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": "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 change needed?",
"reference": "These are just aliases now"
},
{
"prediction": "I think this should be `@video.title.html_safe`",
"reference": "Does this mean we can remove `raw` from `_head_contents` partial?"
},
{
"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.31`",
"reference": "Why are we adding these versions?"
},
{
"prediction": "I think this should be `logger.info('imported %d listens for %s' % (len(listens), str(user)))`",
"reference": "fyi, you can do this by doing `.info(\"string %s %s\", formatparam, formatparam2)` instead of doing a string format with `\"str\" % (params)` the idea is that it'll only do the string interpolation if logging is enabled for this level, which theoretically is an optimisation, but in this case probably isn't important"
},
{
"prediction": "I don't think we need a timeout here.",
"reference": "Would this work, as a one liner? `setTimeout(window.location.reload, 5000);`"
},
{
"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": "I think this should be `anomalyScore` instead of `multiStepBestPredictions`",
"reference": "What is the motivation for this change?"
},
{
"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 `Status::SemanticError(\"Multiple paths not supported.\");`",
"reference": "The data structure of `MatchClauseContext` may need to be redesigned."
},
{
"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": "Metrics/LineLength: Line is too long. [92/80]",
"reference": "how do we know that the step in question is an approval type step?"
},
{
"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."
},
{
"prediction": "I think this should be `require io.vavr.match;`",
"reference": "Is this still Java 8 compatible? @danieldietrich do we need a separate, modularized Java 9 release also?"
},
{
"prediction": "I think this should be `HSA_EXT_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 `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 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": "nit: remove empty line",
"reference": "File is not `goimports`-ed"
},
{
"prediction": "I don't think this test is necessary.",
"reference": "why should unknown raise a 403?"
},
{
"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 `500` instead of `500`.",
"reference": "nit: align the leftmost quotes"
},
{
"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 is this needed?",
"reference": "can you use FilterCodec instead?"
},
{
"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": "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": "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 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 public?",
"reference": "This is used in o.a.l.sandbox.search.PhraseWildcardQuery."
},
{
"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": "I think this should be `private static readonly Task _readInputContinuation;`",
"reference": "Why rename? Just curious..."
},
{
"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": "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": "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": "why not use static imports?",
"reference": "Looks like glassfish went a bit nuts doing a refactor"
},
{
"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": "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. [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 done in the `onCreate` method.",
"reference": "Setting browser based login as the default for `RestAPIExplorer`."
},
{
"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 `len(request.GetRequestId()) > wh.config.MaxIDLengthLimit()`",
"reference": "How about if request ID not set, service should generate a random uuid?"
},
{
"prediction": "Why is this change needed?",
"reference": "minor: this is an opportunity for you to split these long lines into multiple lines :)"
},
{
"prediction": "I 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(m *Message, i interface{})`",
"reference": "So I don't think this is right, as discussed on #657."
},
{
"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 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`",
"reference": "@bennothommo can you revert this section? It shouldn't be required."
},
{
"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 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."
},
{
"prediction": "Why is this change needed?",
"reference": "I think we don't need synchronization here."
},
{
"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.persisted?`",
"reference": "Maybe this `if` should be on line 118?"
},
{
"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 we need to freeze the interpreters here.",
"reference": "I intend to do this as soon as I have tests passing."
},
{
"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": "(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 && !batchReadsSparkSessionConf`",
"reference": "Looks like these 4 lines didn't actually change. Can you revert the whitespace changes here?"
},
{
"prediction": "I don't think this is needed anymore.",
"reference": "This can't be merged with any usage of `require 'pathname'` in lib, it's not always available and we don't want false positives for people (where they don't realise they needed to requite it). Its also unnecessary, no other formatter uses it to look up failure locations. See the exception presenter etc for how we format lines."
},
{
"prediction": "I think 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 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(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 `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."
},
{
"prediction": "why is this needed?",
"reference": "`StressChaos` does not contains a field .spec.action"
},
{
"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) / sizeof(a[0])`",
"reference": "I this used anyplace?"
},
{
"prediction": "Why is this change needed?",
"reference": "Why was this change required?"
},
{
"prediction": "I think this should be `@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.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 think this should be `DATE_RANGE_OFFSET` instead of `DATE_RANGE_OFFSET`.",
"reference": "Same here re: `STORE_NAME` to `MODULES_SEARCH_CONSOLE`."
},
{
"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?"
},
{
"prediction": "Why is this change needed?",
"reference": "This attribute was intentionally private. - lets force usage of factory `NewIdentityManager()` - lets ramake to `NewIdentityManager(keydir string)` -> `NewIdentityManager(keystore keystoreManager)`"
},
{
"prediction": "I think this should be `10 * time.Millisecond` instead of `10 * time.Millisecond`.",
"reference": "Is this too frequent?"
},
{
"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 don't think we need to import `SocksClientLayer` here.",
"reference": "Needs to be mentioned in `__all__` below."
},
{
"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 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.\""
},
{
"prediction": "I think this should be `io/ioutil`",
"reference": "Can you remove this blank line and put the added import in sorted order (likely your editor will do this)"
},
{
"prediction": "I think this should be `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 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 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": "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."
},
{
"prediction": "I think this should be `NoHeaderSupport`",
"reference": "Do you envision \"new\" servers not supporting header, or is it more a way to test mix of old and new? If so, we could make it a \"private\" (non exported) option."
},
{
"prediction": "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": "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 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`",
"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.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 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": "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 `if tls_start.context.client.sni is not None`",
"reference": "Do we still support handshakes without SNI present?"
},
{
"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 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` 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 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).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 remove this?",
"reference": "We need to do the same for edgecore"
},
{
"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."
},
{
"prediction": "Why is this TODO removed?",
"reference": "Don't know what should be the default. Lets keep BatchingProcessor for now. And revisit the area after beta."
},
{
"prediction": "I don't think this is needed anymore.",
"reference": "Ah that's how it's happening, it's probably using the `require_relative` in the optimised one and that counts as a different require to the bare one."
},
{
"prediction": "I think this should be in the base class.",
"reference": "What happens if there is no NIB/XIB with that name?"
},
{
"prediction": "Why is this change needed?",
"reference": "this is not necessary?"
},
{
"prediction": "I don't think we need to import the `asmauthres` and `asmsecretres` here.",
"reference": "typo: `asmsecrets \"github...`"
},
{
"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{}`",
"reference": "Should we put a TODO here to route the http.Transport through here?"
},
{
"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 `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 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 `public static final`",
"reference": "Why does VirtualMachineMetrics have to implement Metric?"
},
{
"prediction": "Why is this change necessary?",
"reference": "line is 121 characters"
},
{
"prediction": "I think this should be `if (name.slice(0, 2) === 'on')`",
"reference": "How's that linked esbench looking with slice?"
},
{
"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 `-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 `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?",
"reference": "I don't understand the reason for the changes from unique_ptr to ROMOL_SPTR that you made in this file. The pointers aren't being shared or used elsewhere so I don't think there's any reason to make them shared. Did I miss something?"
},
{
"prediction": "Why is this change needed?",
"reference": "why change the variable name at all?"
},
{
"prediction": "I 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": "I think this should be `mAccount != null && !mAccount.getReportSpamRecipient().isEmpty();`",
"reference": "Prefer TextUtils.isEmpty() which handles getReportSpamRecipient() being null"
},
{
"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, Exclude]` instead of `[Exclude]`.",
"reference": "Do we actually use Include anywhere yet or is this just for completion?"
},
{
"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": "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 `iota.WorkflowType` instead of `iota.WorkflowType`",
"reference": "i guess these types & cron / retry specific belong to a dedicated util / struct"
},
{
"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: {default: \"vertical\", type: String}`.",
"reference": "`direction` is referenced nowhere. Do I miss something?"
},
{
"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": "I don't think this is needed anymore.",
"reference": "This is a duplicate generation of the same file as below."
},
{
"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.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": "Why do you need this?",
"reference": "unnecessary spaces here are doubling the size of this otherwise extremely useful addition"
},
{
"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."
},
{
"prediction": "I think this should be `std::cout << \"test3_5\" << std::endl;`",
"reference": "this should probably be removed"
},
{
"prediction": "Why is this change needed?",
"reference": "Nit: I would actually prefer that pretty JSON is the default, with a flag for compressed JSON. Can we acheive that easily?"
},
{
"prediction": "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 public?",
"reference": "Can we avoid making this public with the other updates?"
},
{
"prediction": "I think this should be `CHECK_EQ(datum_num, num)`",
"reference": "Why did you change this equal instead of less or equal?"
},
{
"prediction": "Why is this change needed?",
"reference": "missing final for the blockHash field"
},
{
"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 = 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 this is needed anymore.",
"reference": "Is this for `No Babel config ...` from ESLint? If so, it will be fixed in my ES6 PR."
},
{
"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 `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) 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 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 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 snapshot.",
"reference": "..., ...will be posted."
},
{
"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 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."
},
{
"prediction": "Why is this change needed?",
"reference": "unrelated but just changing for consistency with code below it"
},
{
"prediction": "Why is this change needed?",
"reference": "This will call `componentWillUpdate()` for mounts because the else clause is removed. It should only be called for updates."
},
{
"prediction": "I 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', '').strip()`",
"reference": "Please rename this to `LAMBDA_JAVA_OPTS`, and add a short description to the README."
},
{
"prediction": "remove empty line",
"reference": "Should be in the same import group."
},
{
"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 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 `STATISTICAL_FILE_FORMATS_RETEST`",
"reference": "Why not just retest all? it's not expensive (I think)."
},
{
"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 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": "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 `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 we should remove this line.",
"reference": "The right-hand part shouldn't use `__proto__`. Should be just `PersonObject.__proto__ = Realm.Object`."
},
{
"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": "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 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 `hasLongRunningReturnValue`",
"reference": "`LongRunningOperationDetailView` already has `isEmptyOperation`."
},
{
"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": "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).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": "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 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": "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": "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": "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 is the only place where `attachStdin` is used.",
"reference": "Should there still be a ` bool` trailing `showOutput`?"
},
{
"prediction": "I don't think this is needed.",
"reference": "Did we can change to v1"
},
{
"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?"
},
{
"prediction": "Why is this needed?",
"reference": "optionals, shouldn't need to be stated explicitly"
},
{
"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 `self.repr` instead of `self.repr`",
"reference": "Why is this needed ?"
},
{
"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 `protocol.ProposalPayloadTag` instead of `protocol.ProposalPayloadTag`.",
"reference": "nit: use %s for strings and %v for objects."
},
{
"prediction": "Why is this removed?",
"reference": "Same as before, the properties already exists in parent"
},
{
"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) {`",
"reference": "Maybe we should only set active = false if `strcmp(type, \"pause\") == 0`?"
},
{
"prediction": "I think this should be `Array(options[:page_ranges])` instead of `Array(options[:page_ranges])`",
"reference": "Same here. and all others."
},
{
"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`."
},
{
"prediction": "Why is this change needed?",
"reference": "I think this blank line may be removed"
},
{
"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`.",
"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 in the `CloudTag.list` class, since it's only used in the `CloudTag::CloudTag` class.",
"reference": "How about YAML.load_file()"
},
{
"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);` and `drmgr_unregister_delete_event(tls_idx);`",
"reference": "Check the return value of the drmgr ones."
},
{
"prediction": "I think this should be `data-cfasync` instead of `false`",
"reference": "This should be `'cache'`"
},
{
"prediction": "Why is this change needed?",
"reference": "The name \"old\" might cause confusion here. After installation, the \"old\" repo is at an archived path, and the new migrated repo is at the old path. Maybe something like \"target\" or \"canonical\"?"
},
{
"prediction": "I think this should be `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 `to + s.BlockNumber` instead of `to + s.BlockNumber`",
"reference": "During genesis sync it can unwind 5M blocks?"
},
{
"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 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 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 `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": "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 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 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 we should check if the root chunk is encrypted or not.",
"reference": "typo in `weather` (should be `whether`)"
},
{
"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 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 `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, 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."
},
{
"prediction": "I think this should be `path.Join(dir, \"testdata\", name)`",
"reference": "Would it make sense to create an empty file here, perhaps in a tmp dir, instead of checking empty files into Git?"
},
{
"prediction": "Why is this change needed?",
"reference": "This change is due to `clang_format` and is not related to this PR."
},
{
"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 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": "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 `AddTxResult.Invalid` instead of `AddTxResult.Invalid`.",
"reference": "can we do that in TxValidator?"
},
{
"prediction": "Why is this change needed?",
"reference": "We definitely want some detailed and thoughtful docs being added to this type."
},
{
"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": "(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 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 `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`.",
"reference": "I don't know if there are strict conventions about this, but I think the name of the warning should be the diagnosis, not the suggested course of action. In this case, that would mean changing the name of the warning to `interactive-exit` or something like that."
},
{
"prediction": "Why is this change needed?",
"reference": "If `crt.Spec.CommonName` is not set, and `cert.Subject.CommonName` *is* set, we are not correctly handling it here."
},
{
"prediction": "I think this 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 `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": "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 you need wildcard imports.",
"reference": "please inline imports"
},
{
"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."
},
{
"prediction": "I think this should be \"aggregates changed to operate on just a single columnm.\"",
"reference": "Should we update integral to operate on a single column as well?"
},
{
"prediction": "I think this should be `KOKKOS_IMPL_CUDA_CALL(cudaMemcpyAsync(dst, src, n, cudaMemcpyDefault, s));`",
"reference": "Doesn't belong to this PR"
},
{
"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` or `SF_APP_FEATURE_CODE_USER_AUTH`",
"reference": "Could we shorten this constant to maybe `FEATURE_USER_AUTH`?"
},
{
"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": "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": "I think we should add a `cancelled` class here.",
"reference": "Should the \"cancelled\" class be added regardless of the proposal's state?"
},
{
"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 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 to pass `prune.Mode{}` here?",
"reference": "set real one plz (get it from DB)."
},
{
"prediction": "why is this change needed?",
"reference": "Should this be initialized to zeroes?"
},
{
"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": "Please remove this empty line.",
"reference": "re-add the type in the annotation here"
},
{
"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 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 change needed?",
"reference": "File is not `goimports`-ed (from `goimports`)"
},
{
"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)."
},
{
"prediction": "Why is this change needed?",
"reference": "Be careful. This is not a preference but an option in a dialog."
},
{
"prediction": "I think this should be `if deployment.ClusterName == \"\" {`",
"reference": "this will modify the incoming object, which may not be desirable in some cases. i think we should stick with the local var, override it with deployment.ClusterName if deployment.ClusterName not empty"
},
{
"prediction": "Why did you remove this?",
"reference": "Is this not required?"
},
{
"prediction": "I think this should be `this.inputShapes_ = {};`",
"reference": "You're using scare quotes on these terms instead of defining them."
},
{
"prediction": "I 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": "Why is this change needed?",
"reference": "Can you catch a more specific exception here? Thanks :-)"
},
{
"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 `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": "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 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 `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 `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 don't think we need to add `W3C_MINIMIZE_WINDOW` here.",
"reference": "Update after command rename"
},
{
"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 `flow.node.type` instead of `flow.node.type`",
"reference": "isn't AZKABAN_FLOW_VERSION_2_0 more explicit?"
},
{
"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 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 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 remove this line?",
"reference": "what's the reason for this moved line?"
},
{
"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": "I think this should be `OrderByDescending(s => s.IsHidden == false);`",
"reference": "`s => s.IsHidden == false` What's the purpose of adding this?"
},
{
"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 is this skipped?",
"reference": "you can just remove this"
},
{
"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 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-`",
"reference": "As discussed in IRC (just so it doesn't get lost): This probably should be `-basedir-`, not `-prefix-`"
},
{
"prediction": "I think this should be `PathUtils.GetExecutingDirectory();`",
"reference": "basepath can be absoluta path and this needs to be supported"
},
{
"prediction": "Why is this change needed?",
"reference": "Didn't get to the commit message"
},
{
"prediction": "Layout/EmptyLinesAroundClassBody: Extra empty line detected at class body beginning.",
"reference": "What about raising `ActionView::MissingTemplate` instead? That's what HighVoltage does."
},
{
"prediction": "I think this should be `receivable` instead of `receivable`",
"reference": "Is it kept for compatibility?"
},
{
"prediction": "I think we should 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 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": "Why is this change needed?",
"reference": "What about method name itself? Do we run this for SQL too?"
},
{
"prediction": "I don't think this is needed.",
"reference": "`instanceUrl` should be `cs1.salesforce.com`. `communityUrl` would be `mobilesdk.cs1.my.salesforce.com`."
},
{
"prediction": "Why is this needed?",
"reference": "Let's use `if(name != nullptr)` to remove ambiguity"
},
{
"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 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 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 `if response_headers is not None`",
"reference": "we can replace `for` with `params.update(response_headers)`"
},
{
"prediction": "Why is this removed?",
"reference": "Any chance this is available in .NET Core 2.0 now?"
},
{
"prediction": "why is this 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": "I think this should be `#include \"lbann/execution_contexts/sgd_execution_context.hpp\"`.",
"reference": "Why do we need both includes here?"
},
{
"prediction": "Why is this change needed?",
"reference": "SmartStoreInspectorTest expected results in a certain order"
},
{
"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 `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": "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 `fmt.Sprintf(\"%q\", len(msg)-len_CR_LF)`",
"reference": "Not sure what is this change doing?"
},
{
"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": "I think we should check for `AbstractRememberMeServices` instead of `AbstractRememberMeServices`",
"reference": "Please use a tab for indentation instead of spaces."
},
{
"prediction": "Why is this change needed?",
"reference": "I can't believe we didn't see this typo before :))"
},
{
"prediction": "I think this should be `logging.get_logger(__name__)`.",
"reference": "If the logger isn't used, it probably doesn't need to be added."
},
{
"prediction": "I think this should be `script.src = '{}'`",
"reference": "These files should in `/javascript/brython`"
},
{
"prediction": "I don't think we need to check `imageAlpha.Deprecated != nil` here.",
"reference": "minor, you can squash these into one `if`"
},
{
"prediction": "Why is this change needed?",
"reference": "Used regexes to do most of this, hence different methods of string creation of UUIDs. I plan to follow up with an additional change to remove direct references to google/pborman UUID so `uuid.New()` and `uuid.NewRandom()` will instead use our `primitives.UUID`."
},
{
"prediction": "I think this should be `!GraphSummary.Disposing && !GraphSummary.Disposing`",
"reference": "Add a TODO here to revisit if this was problematic."
},
{
"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": "Why is this removed?",
"reference": "Is this relevant to this PR?"
},
{
"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 `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 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."
},
{
"prediction": "Why is this needed?",
"reference": "this looks already too complicated..."
},
{
"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 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 needed?",
"reference": "This can be inlined below as `GoogleSitekitDashboardDetails` is an unnecessary wrapper now."
},
{
"prediction": "Why is this change needed?",
"reference": "NewVHS -> NewVersionHistories this one looks better"
},
{
"prediction": "I don't think we need to set `missing_text` to `nil` here.",
"reference": "Is this `@missing_text` ?"
},
{
"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": "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": "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."
},
{
"prediction": "Why is this change needed?",
"reference": "This was on purpose that I would set logging (NoLog=false) and a dummy logger below. The idea is to have better code coverage and test of debug/trace statements. Any reason you have removed this?"
},
{
"prediction": "I think this should be `Stream.empty()` instead of `Stream.empty()`.",
"reference": "does adding a `Stream.empty()` help here?"
},
{
"prediction": "I don't think this is needed.",
"reference": "This is not being used anymore, so can be removed."
},
{
"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 `reflect` instead of `_`.",
"reference": "Please remove this extra blank line."
},
{
"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 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": "Is this needed?",
"reference": "nit: please move these inside namespace."
},
{
"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 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`",
"reference": "Can we remove this other line now then?"
},
{
"prediction": "I think this should be `qutebrowser/misc/cmdhistory.py`",
"reference": "There's a comma missing here at the end :wink:"
},
{
"prediction": "Why is this removed?",
"reference": "Why is this not required any longer?"
},
{
"prediction": "Why is this needed?",
"reference": "Indentation seems a bit fucked up here. Run `go fmt`."
},
{
"prediction": "Shouldn't this be `status.Error(codes.InvalidArgument, \"empty filter\")`?",
"reference": "any chance in == nil? same below"
},
{
"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 `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 `Optional[Percentiles]` instead of `Optional[Percentiles]`.",
"reference": "Could you add a type hint? `percentiles: Optional[List[float]] = None`"
},
{
"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 `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 do this in the `if cart.proposal.client_data_legacy.client == \"ncr\"` block.",
"reference": "Why this instead of the old way?"
},
{
"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 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 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 `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?"
},
{
"prediction": "I think this should be `public static class Class1 { }`",
"reference": "This class can be removed?"
},
{
"prediction": "nit: remove empty line",
"reference": "File is not `goimports`-ed (from `goimports`)"
},
{
"prediction": "Why is this TODO removed?",
"reference": "To minimize the possibility of regret, perhaps we name this `ZapLogger`."
},
{
"prediction": "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": "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 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 "
},
{
"prediction": "Why is this change needed?",
"reference": "line is 161 characters (from `lll`)"
},
{
"prediction": "nit: remove empty line",
"reference": "Please re-format/groupimport this line. You might need a little manual work."
},
{
"prediction": "Why do we need to call `ApplyWorkerCustomizations` here?",
"reference": "minor, you can just use `wf` instead of `worker.wf`"
},
{
"prediction": "Why is this change needed?",
"reference": "I would suggest putting this in the resources directory with the same package as of this test class. Then you can utilize the method azkaban.utils.TestUtils#readResource to read it as string."
},
{
"prediction": "I 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 this is correct. The `OTel Exporter` is the only one that is used.",
"reference": "a official -> an official"
},
{
"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 change this?",
"reference": "White space boya?"
},
{
"prediction": "Nit: I think this should be `StackSummary` instead of `StackDescription`.",
"reference": "Maybe ditch these since `StackSummary` is not used anymore."
},
{
"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/` 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 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` 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 this should be `var dotRegex = /\\{\\{\\{.+?\\}\\}\\}/g;`",
"reference": "IMO `dot` should be preferred. Remember `aXe`?"
},
{
"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 2?",
"reference": "Could you make it a local constant for now ?"
},
{
"prediction": "Shouldn't this be `str(value)`?",
"reference": "What is this `collection_id` field here?"
},
{
"prediction": "I think this should be `print(msg)`.",
"reference": "Is there a reason why we don't use logging for this?"
},
{
"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"
},
{
"prediction": "I think this should be `C0301` instead of `C0301`",
"reference": "IIRC issue mentioned reporting _symbolic message_ - so in this case it would be `line-too-long`."
},
{
"prediction": "I 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": "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 `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 removed?",
"reference": "I hate then some internal process specific middleware leaks into connection manager :( todo later."
},
{
"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 don't think we need to use `computed` here.",
"reference": "This should be computed('i18n.locale'...."
},
{
"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 don't think this is needed anymore.",
"reference": "We can get rid of this import then."
},
{
"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` 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);`?",
"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": "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 `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": "I think this should be `_context.DbProvider.BlockInfosDb` instead of `_context.SpecProvider`",
"reference": "we can just use read env here, pretty sure"
},
{
"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 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": "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": "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.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 don't think this is needed.",
"reference": "I will add the following to the list: - api.SpecScale - api.SpecSticky"
},
{
"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": "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 `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": "I don't think this is needed anymore.",
"reference": "Do you know why do we need this?"
},
{
"prediction": "I don't think this is needed.",
"reference": "I guess this using is what causes the build to fail"
},
{
"prediction": "Why is this needed?",
"reference": "I like the explicit unregister approach."
},
{
"prediction": "I think this should be `ExponentialHistogramWithMinMax(reserved)` instead of `ExponentialHistogramWithMinMax(reserved)`",
"reference": "We should able to use 0x30 as summary, and make 0x80 reserved for future."
},
{
"prediction": "I don't think we need to check for `ActiveScope` here.",
"reference": "This allows strategic exclusion of http spans."
},
{
"prediction": "I think this should be `@var string[] $strictTextSearchFields` instead of `@var string[] $strictTextSearchFields`",
"reference": "why not just `string[]` instead of nullable"
},
{
"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-AzureAppServicesResourceId` instead of `Datadog-AzureAppServicesResourceId`",
"reference": "This key is actually yet to be determined. Meeting with the backend team and Garner to discuss."
},
{
"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 `XFRAMES_OPTIONS` instead of `XFRAMES_OPTIONS`.",
"reference": "Maybe be consistent and name it `FRAME_OPTIONS`."
},
{
"prediction": "Why is this removed?",
"reference": "This check/exception is a guard for the next few lines of code. It shouldn't be necessary now. In fact, I don't think you need the if (parentConnection.type == Blockly.INPUT_VALUE) branch at all."
},
{
"prediction": "remove empty line",
"reference": "Could probably move these constants too?"
},
{
"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 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 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": "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 this is needed anymore.",
"reference": "Oh interesting - does web-test-runner not resolve package.json files?"
},
{
"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 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` instead of `SOUPS_QUERY`.",
"reference": "Use `String.format(Locale.US, ...) to avoid the `Lint` warning."
},
{
"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`",
"reference": "since it changes to the array, how about change the name to `DeviceNames`"
},
{
"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 don't think this is a good default value.",
"reference": "should also be alphabetized or at least grouped and alphabetized within group"
},
{
"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 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.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 don't think this is needed anymore.",
"reference": "Rename this as KubernetesGPGURL - >KubernetesUbuntuGPGURL , Modify it where ever it is used."
},
{
"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 we need to add `sup` here.",
"reference": "oh yeah, `tail`, `update`, `prepend`, `append`, `subSequence`, `trim` just became effectively constant (without memory leak) :)"
},
{
"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 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 `rtps::RTPSParticipantAttributes` instead of `rtps::RTPSParticipantAttributes`.",
"reference": "Why do you need to include this using declaration?"
},
{
"prediction": "I don't think we need to do this change.",
"reference": "@halter73 where is this file generated from?"
},
{
"prediction": "Why is this `#if TRUE` needed?",
"reference": "What do these `#if TRUE` accomplish?"
},
{
"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 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 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": "I don't think this is needed anymore.",
"reference": "hmm, we actually should _add_ `'use strict'` everywhere "
},
{
"prediction": "I think this should be `debug` instead of `debug`.",
"reference": "it's not just fetching override properties here, right?"
},
{
"prediction": "I think this should be `Debug` instead of `Info`.",
"reference": "Is it worth logging the error?"
},
{
"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": "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 don't think we need to import `sysPath` from `libkbfs.go`.",
"reference": "Please put this down with the other \"github.com\" imports."
},
{
"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": "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": "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 `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 don't think we need to register the metrics here.",
"reference": "Why gauges, not counters?"
},
{
"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."
},
{
"prediction": "I think this should be `POD_FAILED` instead of `POD_FAILED`.",
"reference": "Shall we rename this status to CONTAINER_FAILED? ^^ cc: @sshardool"
},
{
"prediction": "I think this should be `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).`",
"reference": "I know it has no effect but my eyes can't help. Is that line not too long?"
},
{
"prediction": "Why is this removed?",
"reference": "Does that mean we disable service loop prevention for packet generated by local host?"
},
{
"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?"
},
{
"prediction": "I don't think we need to preserve sequence numbers here.",
"reference": "Does this mean manifests will be written with the v2 schema (i.e. with sequence numbers) even though `TableMetadata` is v1 and the manifest list is written with v1? And this should work because we do a projection on read and sequence number is optional?"
},
{
"prediction": "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": "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": "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 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": "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 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": "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 `FORBIDDEN_FORBIDDEN` instead of `FORBIDDEN_FORBIDDEN`.",
"reference": "Extend Unit test for this class"
},
{
"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 renamed to `VariableVariable`.",
"reference": "this package has to be renamed to `typeinference`"
},
{
"prediction": "I think this should be `TestCase.assertEqual(user.providerType, \"anon-user\");`",
"reference": "This cancels the above null-check I guess."
},
{
"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 `None` or `None_comment`.",
"reference": "`any rules` should be `any roles`"
},
{
"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)` 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": "Why remove this?",
"reference": "@tmetzke shouldn't we replace this library with the `2.12.1` instead of removing it?"
},
{
"prediction": "why not just use the `Power` field?",
"reference": "uint64 seems excessive here. Should we reduce to a uint32 @whyrusleeping ?"
},
{
"prediction": "Why is this removed?",
"reference": "Hmm, I thought this was getting used. These are used elsewhere as a cached value (in `svc deploy` it's `o.targetApp`) but I guess since storage doesn't actually need to validate that the app exists, just that there are local services, we never used it."
},
{
"prediction": "I think this should be `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 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": "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 \"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": "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 `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_was_finalized = false;`",
"reference": "Why do we need both `HPX::m_hpx_initialized` and `HPX:: m_was_initialized`?"
},
{
"prediction": "why is this change needed?",
"reference": "also check RPCName?"
},
{
"prediction": "I think we should move this to the `ServerOAuth2ServerAuthorizationRequestRepository` as well.",
"reference": "Remove unused import"
},
{
"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());`",
"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": "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 `cleanArguments(args);`",
"reference": "Why do this rather than `args = []` in the function signature?"
},
{
"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 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."
},
{
"prediction": "Why is this change needed?",
"reference": "Why the space?"
},
{
"prediction": "Why is this change needed?",
"reference": "please resolve the extra indentation"
},
{
"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 is this removed?",
"reference": "`m_al_comms` now contains smart pointers."
},
{
"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.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": "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 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 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 `caddytls.AutomationPolicy`",
"reference": "The only field being used is the KeyType; Instead, we can probably just make a `keyType` variable here."
},
{
"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]`",
"reference": "Cleaned up when I originally added support for passing `screenContext` here (and later `viewContext`) but that was removed."
},
{
"prediction": "Why is this removed?",
"reference": "This looks like a bunch of whitespace fixing that's unrelated. Can you revert?"
},
{
"prediction": "Why is this removed?",
"reference": "should be removed instead"
},
{
"prediction": "I think this test should be in a separate PR.",
"reference": "should use randomization ?"
},
{
"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."
},
{
"prediction": "I think this should be `application/json; charset=utf-8`",
"reference": "Is this change relevant to the PR? (and I believe we should use `text/plain` considering the fact that it can be displayed using web browsers...)"
},
{
"prediction": "I think 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 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 `fmt.Sprintf(\"%s\", pdata)`",
"reference": "Why using `fmt.Sprintf` where `fmt.Sprint` would do the work (notice no `f` in function name)?"
},
{
"prediction": "I think this should be `attrs.get(\"current\")` instead of `attrs[\"current\"]`",
"reference": "Extraneous blank line."
},
{
"prediction": "why do we need both Sender and AuthAddr?",
"reference": "nit: syntax : neither -> nor"
},
{
"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 \"Execution not created\"?",
"reference": "Is the `flowDefinitionId` sufficient to uniquely identify the flow or does it need to be the tuple `` ?"
},
{
"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": "Why remove this?",
"reference": "this check is now redundant. The rest of the function downwards basically does the same thing but with safer checks."
},
{
"prediction": "Why is this change needed?",
"reference": "Please could you remove the useless space."
},
{
"prediction": "I don't think we need to check if `arc.target < 0`",
"reference": "What's the point of this block (and isn't it effectively dead code)?"
},
{
"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())`",
"reference": "Newline at end of file plz"
},
{
"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": "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": "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 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 `@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."
},
{
"prediction": "I think this should be `dumpConfig().Sdump(keys)` instead of `dumpConfig().Sdump(keys)`",
"reference": "Do we really need this? Seems like it would pollute the logs pretty badly."
},
{
"prediction": "I think this should be `Vector.Count`.",
"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": "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": "This should be `#=> 1968353479` instead of `#=> 1968353479`.",
"reference": "Missing version tags"
},
{
"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 change needed?",
"reference": "unrelated, but required fix as metrics branch got broken with the latest main->metrics merge and conflict resolution."
},
{
"prediction": "I don't think this file is needed.",
"reference": "Feel free to remove this line"
},
{
"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": "Why is this needed?",
"reference": "`gofmt` allows a more compact form `defer func() { _ = f.Close() }()` or just add `// nolint:errcheck` before `defer`."
},
{
"prediction": "Why is this change needed?",
"reference": "collateral is in FIL"
},
{
"prediction": "why not use `q.getRChannel(nodeID, rChanBufSize)`?",
"reference": "We should not create channel of node which are not connected."
},
{
"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 `otherInformation` instead of `otherInformation`",
"reference": "Please use properties without suffix `_fr` so they can work across different languages as @teolemon mentioned"
},
{
"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`",
"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 don't think we need to check if nodeConfig.NodeTransportIPv4Addr is not nil?",
"reference": "Was it a bug?"
},
{
"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 `_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 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": "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(volumeHandle, dir, csiDriverName(driverName))`",
"reference": "Is it possible to import from k8s instead of copy in? :)"
},
{
"prediction": "Why not use `float` instead of `int`?",
"reference": "`@param float` can be dropped here."
},
{
"prediction": "Why is this change needed?",
"reference": "maybe we can leave this change un-reverted."
},
{
"prediction": "Why is this change needed?",
"reference": "I wouldn't make MethodDeclarator an AccessNode, nor an Annotatable. It's the MethodDeclaration that can be annotated, and has info about the modifiers, and is already an AccessNode"
},
{
"prediction": "I think this should be `final` instead of `final`.",
"reference": "delete this class"
},
{
"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": "Why is this needed?",
"reference": "I've been meaning to fix this for a while. Thanks."
},
{
"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 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 `3600` instead of `3600000`.",
"reference": "3.6 seconds? what does it stand for?"
},
{
"prediction": "Style/EmptyMethod: Put empty method definitions on a single line.",
"reference": "If the command fails, is stdout nil or \"\"?"
},
{
"prediction": "Why is this change needed?",
"reference": "Why is api-version now removed in the generated code?"
},
{
"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` instead of `&ns->components`.",
"reference": "No need for this new variable."
},
{
"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"
},
{
"prediction": "Why is this change needed?",
"reference": "But now you may get DATA RACE reports because c.acc is sometimes changed. I wonder if we should not rework that whole sending subs through route."
},
{
"prediction": "I think this should be `#ifdef ADIOS_HAVE_PHDF5`",
"reference": "Use `ADIADIOS2_HAVE_HDF5`, not `ADIOS_HAVE_PHDF5`"
},
{
"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": "I think this should be `MAX_MASTERSTATS_ENTRY` instead of `MAX_PERTABLE_STATS_DESC`.",
"reference": "Should MAX_PERTABLE_ENTRY here be 10 ?"
},
{
"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 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?"
},
{
"prediction": "Why is this removed?",
"reference": "no need to move here, iotex-proto is outside of iotex-core and considered same as iotex-address, go-pkgs"
},
{
"prediction": "I think this should be `#if defined(LINUX) && defined(X86_64)` instead of `#if defined(LINUX) && defined(X86_64)`",
"reference": "Looks like a clang-format style violation: should turn Travis red."
},
{
"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 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-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 `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": "Why is this needed?",
"reference": "Was this done automatically or by hand?"
},
{
"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 `UNASSIGNED-cache-file-error`",
"reference": "Should this be a constant somewhere?"
},
{
"prediction": "I think this should be `OpenTelemetry.Instrumentation.GrpcNetClient`",
"reference": "nit: sort alphabetically."
},
{
"prediction": "I think this should be `JsonQueryConverter.class.getSimpleName()`",
"reference": "Now, It's redundant, I suppose."
},
{
"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 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 `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 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": "(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": "Why is this change needed?",
"reference": "This one was wrong."
},
{
"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": "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 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": "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 `PolicyName` and `PolicyNamespace`",
"reference": "Question - do we cache NetworkPolicy itself? If so, here we can point to NetworkPolicy?"
},
{
"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 `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; } }`",
"reference": "please use new line to maintain reasonable line width"
},
{
"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 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"
},
{
"prediction": "Why is this change needed?",
"reference": "This is odd because it's actually in our generated SiteSettingsPath, not in the SiteLocalSettingsPath (wp-config-ddev.php). Are these two files swapped somehow? I'd expect SiteSettingsPath to be wp-config.php and SiteLocalSettingsPath to be wp-config-ddev.php. BTW, I'm *way* ok with renaming that to SiteDdevSettingsPath."
},
{
"prediction": "I 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": "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": "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.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\", \"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 `./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": "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 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 `_reverse_selection` instead of `_reverse_selection`",
"reference": "This could probably use `const` as well?"
},
{
"prediction": "Why is this change needed?",
"reference": "it doesn't look like these need to be exported?"
},
{
"prediction": "I think this should be `fmt.txt`",
"reference": "I think you should remove \"fmt\" here. And change `fmt.Errorf` to `errors.Errorf`."
},
{
"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 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 `FRAGALIGNISMINIMUM`.",
"reference": "very minor: I'd prefer these two added rows are switched so that fragsizeIsMinimum directly follows fragsize"
},
{
"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 the `oauth2LoginConfigurer` class.",
"reference": "Please move this test method just below `oauth2LoginWithOneClientConfiguredThenRedirectForAuthorization()`"
},
{
"prediction": "I think this should be `c_TimeInfinite` instead of `c_TimeInfinite`.",
"reference": "Why this new configuration?"
},
{
"prediction": "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": "I think this should be `SpanReference` instead of `SpanContext`.",
"reference": "`spanReference` -> `baggage` "
},
{
"prediction": "I think this should be `verdaccio/logo.png` instead of `verdaccio/logo.png`",
"reference": "Why the `/-/verdaccio/` ?"
},
{
"prediction": "Why is this removed?",
"reference": "Has been waiting for a million years "
},
{
"prediction": "I think this should be `Date.min` and `Date.max`.",
"reference": "Minor grammar detail: the 'than' is unnecessary"
},
{
"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 `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 `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 `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 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 think this should be `min_items_error` instead of `min_items_error`.",
"reference": "The error should be `At least :number items are required`"
},
{
"prediction": "why is this change needed?",
"reference": "singleCaseSwitch: should rewrite switch statement to if statement (from `gocritic`)"
},
{
"prediction": "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": "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": "I think this should be `readConcern` instead of `writeConcern`",
"reference": "Does this mean we do not support writeConcern on `createCollection`?"
},
{
"prediction": "Why is this change needed?",
"reference": "I guess `sid` was for `sessionID`, but now it looks strange: `sid.ID`."
},
{
"prediction": "I think this should be `[infrav1.SecurityGroupAPIServerLB]` instead of `[infrav1.SecurityGroupControlPlane]`",
"reference": "We'll need `infrav1.SecurityGroupBastion` as well"
},
{
"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."
},
{
"prediction": "Why is this change needed?",
"reference": "That way we are back to having just one index on k_0 So we can really compare the execution times with and without re-indexing"
},
{
"prediction": "I think this should be `[a-zA-Z0-9_-]+`",
"reference": "Expression that uses a negation pattern to exclude all characters that aren't in the expression."
},
{
"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 `serviceDirOnHost[0:1] == \".\"`",
"reference": "The serviceDirOnHost[0:1] was completely wrong. It wasn't just Windows, glad you got this fixed!"
},
{
"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 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(paths, \".mysterium\")` instead of `path.Join(paths...)`",
"reference": "This function does not need to be public"
},
{
"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 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 remove this?",
"reference": "Moving this code from compat to core shaves 47 bytes out of compat and only adds 6 bytes to core so I thought it was worth it."
},
{
"prediction": "Why is this removed?",
"reference": "Please use \".NET Core 3\" - i'm trying hard to use one form, and this is the one MS advices"
},
{
"prediction": "I 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 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."
},
{
"prediction": "I think this should be `std::int64_t` instead of `std::int64_t`.",
"reference": "Does this changes affect process building dynamic libraries anyhow?"
},
{
"prediction": "I don't think this is needed anymore.",
"reference": "Could you limit what is imported here?"
},
{
"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 this function anymore.",
"reference": "Golang naming convention is to use camel case `icmpPktWithTypeCode` Often the linter will complain"
},
{
"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 correct. `newViewportHeight = naturalHeight + 3;` is the same as `newViewportHeight + extraHeight`",
"reference": "Bumping the newViewportHeight"
},
{
"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 `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": "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 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 the `ResourceInstance` here.",
"reference": "It seems like most of these will never be nil, are they optional just in case?"
},
{
"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 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 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 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 `AnswerToLife`, `AnswerToUniverse`, `AnswerToLife`, `AnswerToEverything`, and `AnswerToEverything`.",
"reference": "ultra nit: missing Oxford comma :P"
},
{
"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, method string, params ... interface{})`",
"reference": "BLOCKING: Why does `Query` return an `*exec.FunctionSignature`?"
},
{
"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 example should be in a separate PR.",
"reference": "Don't need the `, err` part since you've already handled it."
},
{
"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 `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 `introspection.PeerStatus{Name: \"Single\", State: \"uninitialized\"},`",
"reference": "does this change belong here?"
},
{
"prediction": "Why not use `w.workflowDir`?",
"reference": "This returns an error"
},
{
"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 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 {`",
"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": "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 specify the public subnet here.",
"reference": "Should we say \"specifying two public subnets\"?"
},
{
"prediction": "I don't think we need to revisit this.",
"reference": "Issue number? When? Why?"
},
{
"prediction": "why is this needed?",
"reference": "You should not rely on `PitchCommand` being imported into speech. Please import it from `speech.commands`."
},
{
"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": "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 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."
},
{
"prediction": "Why is this change needed?",
"reference": "Originally the DenyExport was a subscribe permission because it meant that if on this LN connection, if we deny export of \"foo\" it means that it would reject a subscription (hence subscribe permission) on \"foo\" from the other side. Now you are changing to simply not allowing this server to publish on \"foo\". I am not saying this is wrong, but we completely flip the meaning."
},
{
"prediction": "(style) 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), change to (%o)`",
"reference": "I believe that you meant to have the following on the second one, right ? `dataDirStat.Mode()^0077`"
},
{
"prediction": "Why is this change needed?",
"reference": "The reason a `ByteCount` is used here, is that the H2 mapping in gQUIC requires this layer violation, which is why `CloseRemote` is not part of the public API. This layer violation will be resolved in IETF QUIC"
},
{
"prediction": "I think this should be `IsEffectInSpell(uint16 spell_id, SE_InvisVsAnimals)`",
"reference": "I dig the helper function!"
},
{
"prediction": "why is this package needed?",
"reference": "Please add the Copyright header."
},
{
"prediction": "I think this should be `..target` instead of `..target`.",
"reference": "Is this the best way to import `FileSystemTarget`?"
},
{
"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": "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 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) code indent should use tabs where possible",
"reference": "Does this need to be global?"
},
{
"prediction": "Why is this change needed?",
"reference": "Yep, could be simplified. Now looks like other *Map.values() impls"
},
{
"prediction": "I think this should be `@Return` instead of `@Return`",
"reference": "This method will be for debug?"
},
{
"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": "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 think this should be `add_prefix` and `add_suffix`",
"reference": "These two functions should be available now."
},
{
"prediction": "I think this should be `err != nil`",
"reference": "`fi` is what the result of Stat is called elsewhere in this file not `finfo`"
},
{
"prediction": "why remove this?",
"reference": "I'm confused; are we just dropping these methods without deprecation?"
},
{
"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 this is necessary. `user_full_name` can be nil if `c.user.nil?` is true.",
"reference": "is this \"unless\" actually needed?"
},
{
"prediction": "Is there a reason for this change?",
"reference": "We don't accept empty words for lookup anymore, again"
},
{
"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": "W3C_MINIMIZE_WINDOW = \"w3cMinimizeWindow\"",
"reference": "No need for this to be `W3C_` since there is no JWP equivalent"
},
{
"prediction": "I think this should be `RSpec::Core::Backports::Random` instead of `RSpec::Core::Backports::Random`",
"reference": "As far as I can tell, there's nothing that creates an instance of `Random` or that calls `rand` or `seed`. Am I missing it? If not, let's remove the `Random` class since we don't really need it and we can move the definitions of `shuffle` into `RSpec::Core::Ordering`. One less type :)."
},
{
"prediction": "I think this should be `return s.listener.Addr()`.",
"reference": "Is this ever actually used?"
},
{
"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": "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": "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`",
"reference": "is this wanted?"
},
{
"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": "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`.",
"reference": "I'm not sure about adding more flags here when we're trying to simplify things, I thought we were going to check for patches changes to decide if we needed to update or not?"
},
{
"prediction": "why is this change needed?",
"reference": "`testExecutionPb` is a global variable (from `gochecknoglobals`)"
},
{
"prediction": "why 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: %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": "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."
},
{
"prediction": "I think this should be `fmt.Errorf(\"open bucket %q: invalid query parameter %q\", u, param)`",
"reference": "Should unsupported query parameters just be ignored? I think that's more common than error out."
},
{
"prediction": "I don't think 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 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 `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."
},
{
"prediction": "Why is this needed?",
"reference": "nit: we could remove the `config` field as it is a duplicate of the `provider.config` field."
},
{
"prediction": "I think this should be `forseti-server-allow-grpc-internal` instead of `forseti-server-allow-grpc-internal`",
"reference": "Nit: from the Internet."
},
{
"prediction": "I think this should be moved to `iotexproject/iotex-ethereum/ethereum.go`",
"reference": "this is internal package, move to bottom and run 'make fmt'"
},
{
"prediction": "I think this should be `IConnectionLifetimeNotificationFeature` instead of `IConnectionLifetimeNotificationFeature`.",
"reference": "Why is this better than ApplicationStopping?"
},
{
"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": "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 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 `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": "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?",
"reference": "It looks like the UID is the only other thing that we use from `namespace`, so I suggest to copy that out and lose `namespace`, so we don't have to worry about setting it to nil."
},
{
"prediction": "I think this should be `aws/codebuild/amazonlinux2-x86_64-standard:3.0`",
"reference": "Can we define this constant in the`deploy` pkg instead? this would allow us to keep it private"
},
{
"prediction": "I think this should be `mydir/toto` instead of `mydir/toto`",
"reference": "I don't like this fixture name, should be a noun like `initialized_linter` ? But it's outside of the scope of this MR."
},
{
"prediction": "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 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 `SetSyncBlockCacheFraction`",
"reference": "This should go in `ConfigLocal` (and then re-generate the mocks)."
},
{
"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 `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.\");`",
"reference": "nit: add new line after this block"
},
{
"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 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 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 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": "Why did you remove this line?",
"reference": "this is a existing file so let's keep 2019"
},
{
"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)"
},
{
"prediction": "Why is this change needed?",
"reference": "AsReadOnly() would be better here"
},
{
"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 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 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": "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?"
},
{
"prediction": "Why is this change needed?",
"reference": "Why do we have to change the test dir?"
},
{
"prediction": "I think this should be `return !el.querySelector('summary')`",
"reference": "This should test the flattened tree instead. details > summary works across shadow tree boundaries."
},
{
"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 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": "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) 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": "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 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 `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 `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 ",
"reference": "Seems likely to confuse people. What if we moved it into ActivitySourceAdapter and made it private?"
},
{
"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 `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` 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 add this to the list.",
"reference": "This already exists under the `theme` lang key, please remove this."
},
{
"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)."
},
{
"prediction": "I think this should be `host['netmask'] ||= \"255.255.0.0\"`",
"reference": "I believe that you end up printing out the result of the assignment here instead of the netmask."
},
{
"prediction": "I don't think this is needed.",
"reference": "We have to update the filename here."
},
{
"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 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": "Why is this needed?",
"reference": "In my opinion I think it is possible to add `private final` here"
},
{
"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": "(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 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": "Why is this change needed?",
"reference": "Is this reasonable?"
},
{
"prediction": "I don't think this is needed.",
"reference": "We may move this TODO to Line15."
},
{
"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 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 `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 needed?",
"reference": "Why did this need to change?"
},
{
"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 `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(String.valueOf(\"zipkin\")).isTrue()).isTrue();`",
"reference": "in preparation of directly writing the /health endpoint one day.. we should have content checks."
},
{
"prediction": "Why is this change needed?",
"reference": "question (non-blocking): Is there a benefit from using `%q` instead of `%s`?"
},
{
"prediction": "Why remove this line?",
"reference": "I would suggest to keep two empty lines between functions in cpp files"
},
{
"prediction": "Why is this change needed?",
"reference": "This change causes the test to fail on both rocm-1.9.x and rocm-head."
},
{
"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 it would be better to use `entry['directory']` instead of `entry['directory']`.",
"reference": "Use `os.path.join` for path concatenation."
},
{
"prediction": "I don't think we need to add the `YolactSegmHead` to the list.",
"reference": "Use upper case: YOLACTHead, YOLACTProtonet, YOLACTSegmHead"
},
{
"prediction": "Why is this change needed?",
"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 `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": "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 `[/lib/rspec/(core|expectations|matchers|mocks)` instead of `[/lib/rspec/(mocks|mocks)`",
"reference": "The `[] +` seems weird to me. Why is it there?"
},
{
"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(\"#\"))` 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": "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 a message string, not a message string.",
"reference": "Don't need this-> here."
},
{
"prediction": "I don't think we need to import `_metadata` here.",
"reference": "I'm a little concerned about relying on a private module, as they could change the implementation at some point, I'd like to have some test to validate this is working as intended."
},
{
"prediction": "I 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 `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` 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 `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": "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 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)."
},
{
"prediction": "Why is this removed?",
"reference": "Why 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 || {}`",
"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 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)."
},
{
"prediction": "Why is this change needed?",
"reference": "From the context, should it say \"Flags defined in this class must be used with caution...\" ?"
},
{
"prediction": "I 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: \\\"%s\\\"\"",
"reference": "\"Exported key for account\"?"
},
{
"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 remove this?",
"reference": "why did you remove `verifyHeaders`?"
},
{
"prediction": "I think this should be `deliver_now` instead of `deliver_now`",
"reference": "Thanks for cleaning up these deprecated calls"
},
{
"prediction": "Why is this change needed?",
"reference": "@akarve this breaks error catching logic on the front end, I'll fix this. That's why I prefer to use some machine-friendly error codes that won't change frequently."
},
{
"prediction": "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 `/500_error` instead of `/500_error`",
"reference": "This is specifically for testing?"
},
{
"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 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.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)`",
"reference": "unknown field AddressDetails in struct literal (from `typecheck`)"
},
{
"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 `ScanIndex = Math.Min(ScanIndex, oldTimeIntensities.NumPoints - 1);`",
"reference": "Not sure what this is. Bad merge?"
},
{
"prediction": "I think this should be `ErrAccountResolverSameClaims` instead of `ErrAccountResolverSameClaims`",
"reference": "I think this may be a RW lock."
},
{
"prediction": "I don't think this is needed anymore.",
"reference": "Perhaps we should tuck this away into a dedicated subdir and name it `config` or something similar? Or maybe it would be happy living in `common`?"
},
{
"prediction": "I 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": "I think this should be `copy=False`",
"reference": "too long here. (104 > 100)"
},
{
"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/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": "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 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 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": "Why is this change needed?",
"reference": "Please avoid committing build artifacts, as they produce unnecessary conflicts and noise."
},
{
"prediction": "Why is this change needed?",
"reference": "this is vendored code so i would hesitate to make random changes to it"
},
{
"prediction": "Why is this needed?",
"reference": "We are using a different style for JSON tags. `ethAddress` - camalCase `referral_code` - snake_case"
},
{
"prediction": "I think this should be `IntegrationName` instead of `DefaultHttpContextTypeName`.",
"reference": "Should this be `\"Microsoft.AspNetCore.Http.DefaultHttpContext\"`?"
},
{
"prediction": "Why 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 cache here.",
"reference": "Do we want to raise on the function or on the decorator?"
},
{
"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?"
},
{
"prediction": "Why is this change needed?",
"reference": "You haven't changed any of the callers of `.Add` to check the return value, so we're now ignoring duplicates. Please fix that."
},
{
"prediction": "I think this should be `return _isHiddenWithCSS(el, descendentVisibilityValue);` instead of `return _isHiddenWithCSS(el, descendentVisibilityValue);`",
"reference": "@straker should this not push to `vnode._cache.isHiddenWithCSS`?"
},
{
"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 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": "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_product` instead of `download_file_name`",
"reference": "Tab inconsistency here (3 spaces instead of 2 spaces)"
},
{
"prediction": "Why is this change needed?",
"reference": "these change means we are changing epoch to 1 hour?"
},
{
"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 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 `repo` instead of `owner`.",
"reference": "Is there a test that'd have caught this?"
},
{
"prediction": "Why is this change needed?",
"reference": "ListWorkflowExecutionsRequest <- this can be nil?"
},
{
"prediction": "Layout/SpaceInsideHashLiteralBraces: Space inside { missing. Layout/SpaceInsideHashLiteralBraces: Space inside } missing.",
"reference": "Do we need to continue to support the old link, or is it dead dead dead?"
},
{
"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 we should use `aws.StringValue(config.GetOSFamilyType())` instead of `aws.StringValue(config.GetOSFamilyType())`",
"reference": "this seems like more of a Debugf statement"
},
{
"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 `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": "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."
},
{
"prediction": "I think this should be `return nil` instead of `return nil`.",
"reference": "I think this is added to wrong file. You wanted to add to cmd/agent/, right?"
},
{
"prediction": "I think this should be `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."
},
{
"prediction": "I think this should be `DeviceID` instead of `DeviceID`",
"reference": "Could we consider a more explicit name, like `devicePciAddress`?"
},
{
"prediction": "I think this should be `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": "Why not use `response->getRawResponse()` instead of `response->getRawResponse()`?",
"reference": "Is this supposed to be part of this PR?"
},
{
"prediction": "I think we should use `getComputedStyle(actualNode, null).getPropertyValue('display') === 'none'` instead of `getComputedStyle(actualNode, null).getPropertyValue('display') === 'none'`",
"reference": "DRY, worth extracting this method to axe.utils"
},
{
"prediction": "I think this should be `APPLICATION_NAME`",
"reference": "I think there's another spot for this in DefaultCapabilityMatcher"
},
{
"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."
},
{
"prediction": "Why is this removed?",
"reference": "Instead of patching vendor, let's update the version of sdk-go to a more recent one that doesn't have this line."
},
{
"prediction": "I think this should be `BUILD_FILE_NAME` instead of `BUILD_FILE_NAME`",
"reference": "Don't think this should be here. The default is set somewhere else."
},
{
"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 `null` instead of `default`.",
"reference": "nit: `
` after the line"
},
{
"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"
},
{
"prediction": "Why is this removed?",
"reference": "i think it's OK to leave this?"
},
{
"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": "This should be `\\n` instead of `\\n`",
"reference": "No line at end of file warning"
},
{
"prediction": "Why is this needed?",
"reference": "This looks unused, shouldn't it point to inner processor in any way?"
},
{
"prediction": "Why is this removed?",
"reference": "There may be a few isolated cases where the FirstN node is added during preCodeGen. Please see GenPreCode.cpp RelRoot::preCodeGen(). The example given there about Order by where sort is added in optimizer, or a FirstN where the N value is to be specified with a param seem to be cases where we would add the FirstN later. Will current change cause such views to marked as updateable? This is minor and could be resolved later, if any change is necessary."
},
{
"prediction": "I think this should be `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?"
},
{
"prediction": "I think this should be `padding: 0` instead of `padding: 0`",
"reference": "All stories in this file also need the default padding."
},
{
"prediction": "I think this should be `public static readonly string MeterName = Utils.GetCurrentMethodName();`",
"reference": "Curious - what would be the actual value? "
},
{
"prediction": "why do you need to add PALETTE here?",
"reference": "Is it necessary to record the palette in the checkpoint? Any reason?"
},
{
"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": "Layout/EmptyLinesAroundBlockBody: Extra empty line detected at block body beginning.",
"reference": "should we have a similar test for gsa18f procurements?"
},
{
"prediction": "Why is this change needed?",
"reference": "change `v.recipient` to address.Address, so can use `AccountState(v,recipient)`"
},
{
"prediction": "Layout/EmptyLinesAroundClassBody: Extra empty line detected at class body 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 \"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` 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 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 `return deltas.new_tensor(stds).unsqueeze(0)`",
"reference": "Is this still necessary?"
},
{
"prediction": "Why is this change needed?",
"reference": "Interesting! Happen to catch an exception message or anything I can look into?"
},
{
"prediction": "Why is this removed?",
"reference": "did this get moved to mpromise? I don't recall if it's in that lib or not."
},
{
"prediction": "Why is this change needed?",
"reference": "json objects should be `camelCase`"
},
{
"prediction": "I think this should be `SectorSize(iota)` instead of `SectorSize(iota)`",
"reference": "QuarterGiBSectorSize? SectorSize265MiB? Spelling out 256 seems overly verbose."
},
{
"prediction": "Why is this change needed?",
"reference": "Maybe with this change we can remove `using OpenTelemetry.Logs`."
},
{
"prediction": "Why is this change needed?",
"reference": "Fix this name too."
},
{
"prediction": "I think this should be `int(record_get_field_value(self.record, \"001\") or None)`",
"reference": "why this is an issue?"
},
{
"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`",
"reference": "this seems to be a property key name, so should it be a inside configurationkey.java?"
},
{
"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 `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": "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 `nil` instead of `nil`",
"reference": "let's do a pointer cast of nil, similar to the `MapRouter` above"
},
{
"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 `_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": "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.go`",
"reference": "I don't think you need the blank import here. This one uses awsdynamodb directly."
},
{
"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 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`.",
"reference": "will your editor integrate `gofmt`, `goimports`, etc...?"
},
{
"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 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": "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 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 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": "I don't think we should remove this flag.",
"reference": "Flag is removed because it is only gRPC now."
},
{
"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 `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": "why is this import needed?",
"reference": "why depend on recovery???"
},
{
"prediction": "Why is this change needed?",
"reference": "the done channel only aims to be closed, so `chan struct{}` is better then `chan interface{}`"
},
{
"prediction": "I think we should use `wrapErr` instead of `wrapErr`.",
"reference": "Do you mean to have gas_oracle changes in this PR?"
},
{
"prediction": "I don't think this is needed anymore.",
"reference": "Is this effectively requiring browsers support javascript?"
},
{
"prediction": "I think this should be `android.R.style.Theme_Material_Light_Dialog`",
"reference": "Lowercase `boolean` - use the primitive type."
},
{
"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 `xsurface->fullscreen = true` instead of `xsurface->maximized_horz = true`",
"reference": "Can you replace these by `else if` please?"
},
{
"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": "`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 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 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` 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 `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 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 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 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 `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. 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 removed?",
"reference": "Can you put spaces after the `{`and before the `}`"
},
{
"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": "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 `interface{}`",
"reference": "can we make use of storagepoolclaim type rather than the generic interface{} type?"
},
{
"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": "Why is this change needed?",
"reference": "Is this actually a lint related change?"
},
{
"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 `raise_with_traceback(obj, str, param_name=param_name)`.",
"reference": "what does this do that str_param does not?"
},
{
"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?"
},
{
"prediction": "I don't think we need to import `botocore` here.",
"reference": "what would you think about doing this include on-demand within S3ObjectStore methods and then failing in a loud way?"
},
{
"prediction": "I think this should be `if (stopped) { break; } 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": "Why is this change needed?",
"reference": "In `src/storage/InternalStorageServiceHandler.h ` file, the client in `client->future_chainAddEdges ` should be InterStorageServiceAsyncClient?"
},
{
"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 `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 removed.",
"reference": "Same thing with the OtlpExporter"
},
{
"prediction": "Why remove this?",
"reference": "Should not be removed."
},
{
"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 `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": "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": "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 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 `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 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?",
"reference": "Shouldn't this be called `hp` instead of `life`?"
},
{
"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": "This line should be removed.",
"reference": "Undo this modification"
},
{
"prediction": "Why is this change needed?",
"reference": "Please check my thoughts here... I changed the test to not `ToString()` attribute values. This was important to test things when `net.peer.port` was both an int or a string, but I was unsure if Zipkin supported non-string attributes."
},
{
"prediction": "I don't think we need to 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": "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": "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;`",
"reference": "Looks like this will make the check in every loop. Consider extracting the null check."
},
{
"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` instead of `factory`.",
"reference": "naming: please use `asmfactory`"
},
{
"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 test should be in a separate PR.",
"reference": "2 blank lines here (between functions)"
},
{
"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, $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!"
},
{
"prediction": "I think this should be `equals(o)` instead of `equals(o)`",
"reference": "Don't forget the {} symbols, and please use EqualsBuilder and HashcodeBuilder as possible"
},
{
"prediction": "Why is this change necessary?",
"reference": "Allocate buffer once outside loop."
},
{
"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 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 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": "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 `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 `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": "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": "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": "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 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": "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 &`.",
"reference": "Even though the debug parameter is effectively ignored, should this default to `false` instead of `true`?"
},
{
"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` 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?"
},
{
"prediction": "Why is this change needed?",
"reference": "Shouldn't this be `i * Interval`? You're multiplying nanos with a Duration, I'm not sure what's the result :)"
},
{
"prediction": "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 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 `n_running_tasks`?",
"reference": "Add trailing comma"
},
{
"prediction": "Why is this change needed?",
"reference": "I see someone say SIGKILL can not be caught by process. The original code here about `SIGKILL` is useless?"
},
{
"prediction": "I think this should be `OLED_DARK` instead of `OLED_DARK`.",
"reference": "As it is a mobile only theme, please make sure the option appears only on mobile"
},
{
"prediction": "I think this should be `param_list = param_list.split(\",\")`",
"reference": "Would like a docstring and type annotations here"
},
{
"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?"
},
{
"prediction": "I think this should be `using System;` instead of `using System;`",
"reference": "Please move using inside namespace."
},
{
"prediction": "Why is this `poSEnabled` needed?",
"reference": "shall we create some enum flags for setasmain shouldprocess and pos?"
},
{
"prediction": "I don't think we need to do this in `install` or `install`?",
"reference": "Should this `PUPPET_AGENT_STARTUP_MODE` have a corresponding yardoc change?"
},
{
"prediction": "Why is this removed?",
"reference": "Why not simply remove the `pytest` import now that it's not needed anymore? :wink:"
},
{
"prediction": "I think this should be `[TestClass]` instead of `[TestClass]`",
"reference": "Yeah, not filled in yet."
},
{
"prediction": "I think this should be `col-xs-12`",
"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 this should be `if (table == null || table == metaCache.getTable(database, tableName)) {`",
"reference": "should we also do `reloadCache` when database is null?"
},
{
"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[1:])`",
"reference": "Could you add a docstring?"
},
{
"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 removed?",
"reference": "@jlerbsc 's fix in #2918 in action - thanks! :smiling_face_with_three_hearts:"
},
{
"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."
},
{
"prediction": "Why is this change needed?",
"reference": "change the name of the function to match its functionality? account IsIssuing?"
},
{
"prediction": "I think this should be `if len(by) == 0`",
"reference": "for later: add docstring (can just copy paste Pandas')"
},
{
"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 we should remove the `errRouterHasNoProcedures` field from the error message.",
"reference": "Ugh I'm stupid, can you change this to `yarpc.InternalErrorf`?"
},
{
"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": "`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": "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 class should be renamed to `RemoteDistributorTest`",
"reference": "Probably best not to have an empty test...."
},
{
"prediction": "I think it would be better to use `
` instead of `
`",
"reference": "`image_tag` in the `testimonials` files?"
},
{
"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