abir18/sample_suggestion_acceptance huggingface dataset:
Original:          * Get the reason why the flag parsing failed
Modified:          * Returns the reason why the flag parsing failed.
Suggestion accepted: True
Original:      * Sets ta custom default namespace for {@link cloud.commandframework.bukkit.argument.NamespacedKeyArgument}.
Modified:      * Sets a custom default namespace for {@link cloud.commandframework.bukkit.argument.NamespacedKeyArgument}.
Suggestion accepted: True
Original:      * Set the caption variable replacement handler
Modified:      * Sets the caption variable replacement handler.
Suggestion accepted: True
Original: package cloud.commandframework.arguments.standard;
Modified: //// MIT License//// Copyright (c) 2021 Alexander S      derberg & Contributors//// Permission is hereby granted, free of charge, to any person obtaining a copy// of this software and associated documentation files (the "Software"), to deal// in the Software without restriction, including without limitation the rights// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell// copies of the Software, and to permit persons to whom the Software is// furnished to do so, subject to the following conditions://// The above copyright notice and this permission notice shall be included in all// copies or substantial portions of the Software.//// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE// SOFTWARE.//package cloud.commandframework.arguments.standard;
Suggestion accepted: True
Original:      * Create a new optional argument with a default value
Modified:      * Create a new optional {@link KeyedWorldArgument} with the specified default value.
Suggestion accepted: False
Original:      * Create a new optional argument
Modified:      * Create a new optional {@link KeyedWorldArgument}.
Suggestion accepted: False
Original:                 } catch (Exception exception) {
Modified:                 } catch (final Exception exception) {
Suggestion accepted: False
Original:      * Create a new builder
Modified:      * Create a new {@link Builder}.
Suggestion accepted: False
Original:  * cloud argument type that parses Bukkit {@link World worlds} from a namespaced key
Modified:  * Argument type that parses Bukkit {@link World worlds} from a {@link NamespacedKey}.
Suggestion accepted: False
Original:         this.<Liberal, String>registerAnnotationMapper(
Modified:         this.<Liberal, Boolean>registerAnnotationMapper(
Suggestion accepted: True
Original:     private static final Component NULL = Component.text("null");
Modified:     private static final Component NULL = text("null");
Suggestion accepted: True
Original:                 } catch (CommandExecutionException exception) {
Modified:                 } catch (final CommandExecutionException exception) {
Suggestion accepted: False
Original:  * {@link Location} which defaults the Y position to 0
Modified:  * {@link Location} projected onto the XZ-plane
Suggestion accepted: True
Original:             return suggestionsForDynamicArgument(commandContext, commandQueue,  children.get(0));
Modified:             return this.suggestionsForDynamicArgument(commandContext, commandQueue,  children.get(0));
Suggestion accepted: False
Original:                         findSyntaxFragment(tokens, argumentPair.getArgument().value()),
Modified:                         this.findSyntaxFragment(tokens, argumentPair.getArgument().value()),
Suggestion accepted: True
Original:      * @param cause cause
Modified:      * @param cause Exception thrown during the execution
Suggestion accepted: True
Original:                         } catch (CommandExecutionException exception) {
Modified:                         } catch (final CommandExecutionException exception) {
Suggestion accepted: False
Original:                         } catch (Exception exception) {
Modified:                         } catch (final Exception exception) {
Suggestion accepted: False
Original:         for (SyntaxFragment fragment : fragments) {
Modified:         for (final SyntaxFragment fragment : fragments) {
Suggestion accepted: True
Original:                                 parameter.getName(), this.methodHandle.toString()
Modified:                                 parameter.getName(),                                this.methodHandle.toString()
Suggestion accepted: True
Original:     public String getCommandPrefix(C sender) {
Modified:     public @NonNull String getCommandPrefix(final @NonNull C sender) {
Suggestion accepted: True
Original: // Input to the DeleteERL function
Modified: // DeleteERLInput is used as input to the DeleteERL function.
Suggestion accepted: True
Original:  * This should only be used on {@code String[]}
Modified:  * This should only be used on {@code String[]} *
Suggestion accepted: True
Original:             }
Modified:             if (!checkedAnnotations.add(annotation.annotationType())) {                continue;            }
Suggestion accepted: False
Original:         return member;
Modified:         return this.member;
Suggestion accepted: False
Original:         return channel;
Modified:         return this.channel;
Suggestion accepted: False
Original:         return commandPrefixMapper.apply(sender);
Modified:         return this.commandPrefixMapper.apply(sender);
Suggestion accepted: True
Original:     public DiscordApi getDiscordApi() {
Modified:     public @NonNull DiscordApi getDiscordApi() {
Suggestion accepted: True
Original:     public PrivateChannel getPrivateChannel() {
Modified:     public @NonNull PrivateChannel getPrivateChannel() {
Suggestion accepted: False
Original:                                     "node.value: "
Modified:                                     "node.value"
Suggestion accepted: True
Original:      * Default caption for {@link BungeeCaptionKeys#ARGUMENT_PARSE_FAILURE_PLAYER}
Modified:      * Default caption for {@link BungeeCaptionKeys#ARGUMENT_PARSE_FAILURE_SERVER}
Suggestion accepted: True
Original:                     suggestions.add(String.format("&s%c", c));
Modified:                     suggestions.add(String.format("&%c", c));
Suggestion accepted: False
Original:                         new LinkedList<>(Arrays.asList("other",
Modified:                         new LinkedList<>(Arrays.asList(                                "other",
Suggestion accepted: True
Original:     public void onMessageCreate(MessageCreateEvent event) {
Modified:     public void onMessageCreate(final @NonNull MessageCreateEvent event) {
Suggestion accepted: True
Original:             @NonNull C sender, @NonNull String permission) {
Modified:             final @NonNull C sender, final @NonNull String permission) {
Suggestion accepted: True
Original:         return discordApi;
Modified:         return this.discordApi;
Suggestion accepted: True
Original:     public ServerChannel getServerChannel() {
Modified:     public @NonNull ServerChannel getServerChannel() {
Suggestion accepted: False
Original:         return (ServerChannel) getTextChannel();
Modified:         return (ServerChannel) this.getTextChannel();
Suggestion accepted: False
Original:        return event.getMessage();
Modified:        return this.event.getMessage();
Suggestion accepted: False
Original:         return event.getMessageAuthor();
Modified:         return this.event.getMessageAuthor();
Suggestion accepted: False
Original:         return event.getChannel();
Modified:         return this.event.getChannel();
Suggestion accepted: False
Original:         return event;
Modified:         return this.event;
Suggestion accepted: False
Original:         return event.getChannel().sendMessage(message);
Modified:         return this.event.getChannel().sendMessage(message);
Suggestion accepted: False
Original:     public CompletableFuture<Message> sendMessage(@Nullable String message) {
Modified:     public CompletableFuture<Message> sendMessage(final @Nullable String message) {
Suggestion accepted: False
Original:         JswFormat  = "jws"
Modified:  JwsFormat  = "jws"
Suggestion accepted: True
Original:     public CompletableFuture<Message> sendErrorMessage(@Nullable String message) {
Modified:     public CompletableFuture<Message> sendErrorMessage(final @Nullable String message) {
Suggestion accepted: False
Original:     public CompletableFuture<Message> sendSuccessMessage(@Nullable String message) {
Modified:     public CompletableFuture<Message> sendSuccessMessage(final @Nullable String message) {
Suggestion accepted: False
Original:     public void mapSimpleNMS(@NonNull final Class<?> type,
Modified:     public void mapSimpleNMS(final @NonNull Class<?> type,
Suggestion accepted: True
Original:                              @NonNull final Constructor<?> constructor) {
Modified:                              final @NonNull Constructor<?> constructor) {
Suggestion accepted: True
Original:     private Class<?> getNMSArgument(@NonNull final String argument) throws Exception {
Modified:     private @NonNull Class<?> getNMSArgument(final @NonNull String argument) throws Exception {
Suggestion accepted: False
Original:     public void mapComplexNMS(@NonNull final Class<?> type,
Modified:     public void mapComplexNMS(final @NonNull Class<?> type,
Suggestion accepted: True
Original:                               @NonNull final Supplier<ArgumentType<?>> argumentTypeSupplier) {
Modified:                               final @NonNull Supplier<ArgumentType<?>> argumentTypeSupplier) {
Suggestion accepted: True
Original:         self.underlying = underlying
Modified:     def __init__(self, wrapped: BaseException):        self.wrapped = wrapped
Suggestion accepted: False
Original: // Deletes the specified ERL
Modified: // DeleteERL deletes the specified ERL.
Suggestion accepted: True
Original:     o->get_dataclass_fields = arg;
Modified:     o->get_dataclass_fields_func = arg;
Suggestion accepted: True
Original:         PyObject *el = PySequence_GetItem(o, cur);
Modified:         PyObject *el = EdgeTuple_GET_ITEM(o, i);
Suggestion accepted: True
Original:         return PySequence_GetItem(o, val);
Modified:         Py_ssize_t val = PyNumber_AsSsize_t(key, PyExc_IndexError);        if (val == -1 && PyErr_Occurred()) {            return NULL;        }        return tuple_getitem(o, val);
Suggestion accepted: True
Original:         self._ssl_ctx.check_hostname = self.tls_security == "strict"
Modified:         self._ssl_ctx.check_hostname = tls_security == "strict"
Suggestion accepted: True
Original:                     f'boundry {dir!r}'
Modified:                     f'no connection options specified'                    f'(stopped searching for `edgedb.toml` at file system'                    f'boundry {dir!r})'
Suggestion accepted: False
Original:                     f'boundry {dir!r})'
Modified:                     f'boundary {dir!r})'
Suggestion accepted: False
Original:         inner = self._connection._inner
Modified:         inner = self._connection_inner
Suggestion accepted: True
Original: class _RetryErrorInTxBegin(BaseException):
Modified: class _RetryableErrorInTxBegin(BaseException):
Suggestion accepted: False
Original:             'removed. Use the query methods on AsyncIOPool instead.',
Modified:             'removed. Use the query methods on Pool instead.',
Suggestion accepted: True
Original:             re.sub(r'$[a-zA-Z]:', '/mnt/c', status_file)
Modified:             re.sub(r'^([a-zA-Z]):', lambda m: f'{m.group(1).lower()}/mnt/', status_file)
Suggestion accepted: False
Original:     path = os.path.realpath(path)
Modified:     path = os.path.realpath(path)    if _system == 'Windows' and not path.startswith('\\\\'):        path = '\\\\?\\' + path
Suggestion accepted: True
Original:     """Options for `raw_transaction()` an `retrying_transaction()`"""
Modified:     """Options for `raw_transaction()` and `retrying_transaction()`"""
Suggestion accepted: True
Original: Capability.ALL = 0xFFFFFFFFFFFFFFFF
Modified: Capability.ALL = 0xFFFF_FFFF_FFFF_FFFF
Suggestion accepted: True
Original:         "Connection object is borrowed for the transaction. "
Modified:         "Connection object is borrowed for a transaction. "
Suggestion accepted: True
Original:             if asyncio.isfuture(res) or asyncio.iscoroutine(res):
Modified:             if inspect.isawaitable(res):
Suggestion accepted: True
Original:     tags = frozenset(())
Modified:     tags = frozenset()
Suggestion accepted: True
Original:                str := strings.TrimSuffix(string(optText), " ")
Modified:              optText = bytes.TrimSpace(optText)
Suggestion accepted: False
Original:          m.Multiline = true
Modified:              m.Multiline = true
Suggestion accepted: True
Original:                                conflictErr := errorWithPos(fldNode.Start(), "%s: %s JSON name %q conflicts with %s JSON name%s of field %s, defined at %v",
Modified:                                conflictErr := errorWithPos(fldNode.Start(), "%s: %s JSON name %q conflicts with %s JSON name %s of field %s, defined at %v",
Suggestion accepted: False
Original:         fileNode, _ := node.(*ast.FileNode)
Modified:    fileNode := res.root    if fileNode == nil {            return nil      }
Suggestion accepted: True
Original:                        return fmt.Errorf("could not convert desc %s to EnumDescriptor. TypeName: %s", desc, fd.proto.GetTypeName())
Modified:                        return fmt.Errorf("field %v indicates a type of enum, but references %q which is %T", fd.fqn, fd.proto.GetTypeName(), desc)
Suggestion accepted: False
Original: // used as value in some contexts, such as describing the default value
Modified: // used as values in some contexts, such as describing the default value
Suggestion accepted: True
Original: template <typename GraphComp>
Modified: template <typename GraphComparator>
Suggestion accepted: True
Original:                        return fmt.Errorf("could not convert desc %s to MessageDescriptor. TypeName: %s", desc, fd.proto.GetTypeName())
Modified:                     return fmt.Errorf("field %v indicates a type of message, but references %q which is %T", fd.fqn, fd.proto.GetTypeName(), desc)
Suggestion accepted: False
Original:                        return fmt.Errorf("could not convert desc %s to MessageDescriptor. TypeName: %s", desc, fd.proto.GetTypeName())
Modified:                     return fmt.Errorf("field %v extends %q which should be a message but is %T", fd.fqn, fd.proto.GetExtendee(), desc)
Suggestion accepted: False
Original:         testutil.Require(t, md.FindFieldByName("five").GetNumber() == 5)
Modified:    testutil.Require(t, md.FindFieldByName("one") != nil) testutil.Eq(t, int32(1), md.FindFieldByName("one").GetNumber())       testutil.Require(t, md.FindFieldByName("two") != nil) testutil.Eq(t, int32(2), md.FindFieldByName("two").GetNumber())       testutil.Require(t, md.FindFieldByName("three") != nil)       testutil.Eq(t, int32(3), md.FindFieldByName("three").GetNumber())     testutil.Require(t, md.FindFieldByName("four") != nil)        testutil.Eq(t, int32(4), md.FindFieldByName("four").GetNumber())      testutil.Require(t, md.FindFieldByName("five") != nil)        testutil.Eq(t, int32(5), md.FindFieldByName("five").GetNumber())
Suggestion accepted: True
Original: // Files that have syntax node are assumed to use proto2 syntax.
Modified: // Files that don't have a syntax node are assumed to use proto2 syntax.
Suggestion accepted: True
Original: // and only or the other (or neither) may be specified, not both. When public is
Modified: // and only one or the other (or neither) may be specified, not both. When public is
Suggestion accepted: True
Original: // statement means this is a weak import. When both are nil, this is a normal import.
Modified: // statement which means this is a weak import. When both are nil, this is a normal import.
Suggestion accepted: False
Original: // MessageNodesa and GroupNodes.
Modified: // MessageNodes and GroupNodes.
Suggestion accepted: True
Original:  // VisitImportNode is invoked when visiting a *ImportNode in the AST.
Modified:   // VisitImportNode is invoked when visiting an *ImportNode in the AST.
Suggestion accepted: True
Original:  // VisitOptionNode is invoked when visiting a *OptionNode in the AST.
Modified:   // VisitOptionNode is invoked when visiting an *OptionNode in the AST.
Suggestion accepted: True
Original:  // VisitOptionNameNode is invoked when visiting a *OptionNameNode in the AST.
Modified:   // VisitOptionNameNode is invoked when visiting an *OptionNameNode in the AST.
Suggestion accepted: True
Original:  // VisitExtendNode is invoked when visiting a *ExtendNode in the AST.
Modified:   // VisitExtendNode is invoked when visiting an *ExtendNode in the AST.
Suggestion accepted: True
Original:        "github.com/jhump/protoreflect/internal/testutil"
Modified:   "bytes"       "io/ioutil"   "os"  "path/filepath"       "testing"     "github.com/jhump/protoreflect/desc/protoparse/ast"   "github.com/jhump/protoreflect/internal/testutil"
Suggestion accepted: False
Original:  // VisitExtensionRangeNode is invoked when visiting a *ExtensionRangeNode in the AST.
Modified:   // VisitExtensionRangeNode is invoked when visiting an *ExtensionRangeNode in the AST.
Suggestion accepted: True
Original:  // VisitEnumNode is invoked when visiting a *EnumNode in the AST.
Modified:       // VisitEnumNode is invoked when visiting an *EnumNode in the AST.
Suggestion accepted: True
Original:  // VisitEnumValueNode is invoked when visiting a *EnumValueNode in the AST.
Modified:     // VisitEnumValueNode is invoked when visiting an *EnumValueNode in the AST.
Suggestion accepted: True
Original:  // VisitRPCNode is invoked when visiting a *RPCNode in the AST.
Modified:         // VisitRPCNode is invoked when visiting an *RPCNode in the AST.
Suggestion accepted: True
Original:  // VisitRPCTypeNode is invoked when visiting a *RPCTypeNode in the AST.
Modified:         // VisitRPCTypeNode is invoked when visiting an *RPCTypeNode in the AST.
Suggestion accepted: True
Original:  // VisitIdentNode is invoked when visiting a *IdentNode in the AST.
Modified:     // VisitIdentNode is invoked when visiting an *IdentNode in the AST.
Suggestion accepted: True
Original:         // VisitAggregateLiteralNode is invoked when visiting a *AggregateLiteralNode in the AST.
Modified:       // VisitAggregateLiteralNode is invoked when visiting an *AggregateLiteralNode in the AST.
Suggestion accepted: False
Original:         // VisitOptionDeclNode is invoked when visiting a OptionDeclNode in the AST.
Modified:    // VisitOptionDeclNode is invoked when visiting an OptionDeclNode in the AST.
Suggestion accepted: False
Original:  // VisitIdentValueNode is invoked when visiting a IdentValueNode in the AST.
Modified:    // VisitIdentValueNode is invoked when visiting an IdentValueNode in the AST.
Suggestion accepted: True
Original:  // VisitIntValueNode is invoked when visiting a IntValueNode in the AST.
Modified:        // VisitIntValueNode is invoked when visiting an IntValueNode in the AST.
Suggestion accepted: True
Original: // statement means this is a weak import. When both are nil, this is a normal import.
Modified: // statement and means this is a weak import. When both are nil, this is a normal import.
Suggestion accepted: True
Original: // ExtensionRangeNode represents a extension range declaration in an extendable
Modified: // ExtensionRangeNode represents an extension range declaration in an extendable
Suggestion accepted: True
Original: // NewServiceNode creates a new *EnumNode. All arguments must be non-nil.
Modified: // NewServiceNode creates a new *ServiceNode. All arguments must be non-nil.
Suggestion accepted: False
Original: //
Modified: // function set. So the first visitor can be used to determine the preferred// function (which should match the node's concrete type). The slice of visitors// can be used to enumerate ALL matching function calls.//
Suggestion accepted: False
Original: #endif
Modified: #if defined(FS_EXP)#include <experimental/filesystem>namespace fs = std::experimental::filesystem;#elif defined(FS_GHC)#include <ghc/filesystem.hpp>namespace fs = ghc::filesystem;#else#include <filesystem>namespace fs = std::filesystem;#endif
Suggestion accepted: False
Original:          if instance.Current == true {
Modified:           if instance.Current {
Suggestion accepted: True
Original: ROUTER_MONGO_POLL_INTERVAL=2    Interval in seconds to poll mongo for route changes
Modified: ROUTER_MONGO_POLL_INTERVAL=2s    Interval to poll mongo for route changes
Suggestion accepted: False
Original:                         Name: "router_redirect_handler_redirect_count",
Modified:                     Name: "router_redirect_handler_redirect_total",
Suggestion accepted: True
Original:                         Name: "router_backend_handler_request_count",
Modified:                       Name: "router_backend_handler_request_total",
Suggestion accepted: True
Original:                        Name: "router_internal_server_error_count",
Modified:                         Name: "router_internal_server_error_total",
Suggestion accepted: False
Original:         if (1 === $connectionCount && !isset($client['options']['cluster']) && (!isset($client['options']['replication'] ) || !$client['options']['replication'])) {
Modified:         if (1 === $connectionCount && !isset($client['options']['cluster']) && !isset($client['options']['replication'])) {
Suggestion accepted: True
Original:             $node1 = $this->getMockBuilder('\Predis\\Client')->getMock();
Modified:             $node1 = $this->getMockBuilder('\Predis\Client')->getMock();
Suggestion accepted: True
Original:             $node2 = $this->getMockBuilder('\Predis\\Client')->getMock();
Modified:             $node2 = $this->getMockBuilder('\Predis\Client')->getMock();
Suggestion accepted: True
Original:         // Determin if request comes from layout server or not
Modified:         // Determine if request comes from layout server or not
Suggestion accepted: True
Original: // Input to the GetERL function
Modified: // GetERLInput is used as input to the GetERL function.
Suggestion accepted: True
Original:             Timeout: 1
Modified:           Code: {            ZipFile: zipped          },          Description: '',          FunctionName: functionName,          Handler: 'index.handler',          MemorySize: 128,          Role: event.ResourceProperties.RoleArn,          Runtime: 'nodejs12.x',          Timeout: 1
Suggestion accepted: False
Original:                     console.log(`Adding uploadPromise for config.js file: ${configObject}`)
Modified:                     console.log(`Adding uploadPromise for config.js file: ${JSON.stringify(configObject, null, 2)}`)
Suggestion accepted: False
Original:     it 'singularizes a composed string', silence_deprecations: true do
Modified:     it 'singularizes a snake_case string', silence_deprecations: true do
Suggestion accepted: True
Original:                "profiling",
Modified:                "enable-pprof",
Suggestion accepted: False
Original:                        if err != nil && errors.Is(err, http.ErrServerClosed) {
Modified:                       if err != nil && !errors.Is(err, http.ErrServerClosed) {
Suggestion accepted: False
Original:         "spec.tls.destinationCACertificate",
Modified:        "kind",       "apiVersion", "metadata.annotations",       "metadata.name",      "metadata.namespace", "metadata.ownerReferences",   "metadata.selfLink",  "metadata.uid",       "spec.host",  "spec.to.kind",       "spec.to.port",       "spec.to.name",       "spec.to.weight",     "spec.tls.termination",       "spec.tls.certificate",       "spec.tls.caCertificate",     "spec.tls.destinationCACertificate",  "spec.tls.insecureEdgeTerminationPolicy",     "spec.wildcardPolicy",        "status",
Suggestion accepted: True
Original: func AgentCLR(clusterRole []rbac.ClusterRole) string {
Modified: func agentCLR(clusterRoles []rbac.ClusterRole) string {
Suggestion accepted: True