abir18/sample_suggestion_acceptance huggingface dataset:
Original:  DataPath string
Modified: type DataGatherer struct {     Kind     string `yaml:"kind"` Name     string `yaml:"name"` DataPath string `yaml:"data_path"`
Suggestion accepted: True
Original: func AgentRB(RB []rbac.RoleBinding) string {
Modified: func agentRB(roleBindings []rbac.RoleBinding) string {
Suggestion accepted: True
Original: func AgentCLRB(CLRB []rbac.ClusterRoleBinding) string {
Modified: func agentCLRB(clusterRoleBindings []rbac.ClusterRoleBinding) string {
Suggestion accepted: True
Original:         Short: "print RBAC",
Modified:        Short: "print the agent's minimal RBAC manifest",
Suggestion accepted: True
Original:        Long:  `Print RBAC string by reading GVRs`,
Modified:   Long:  `Print the agent's minimal RBAC manifest depending on the agent's configuration`,
Suggestion accepted: False
Original:                 }
Modified:              b, err := ioutil.ReadFile(agent.ConfigFilePath)         if err != nil {                 log.Fatalf("Failed to load config file for agent from: %s", agent.ConfigFilePath)             }
Suggestion accepted: False
Original: func AgentRB(RoleBindings []rbac.RoleBinding) string {
Modified: func AgentRB(roleBindings []rbac.RoleBinding) string {
Suggestion accepted: False
Original:        verbs: ["get", "list", "watch"]
Modified: - apiGroups: [""]  resources: ["pods"]  verbs: ["get", "list", "watch"]
Suggestion accepted: False
Original:          // AgentRBACManifests.RoleBindings = append(...)
Suggestion accepted: True
Original:                  metav1.TypeMeta{
Modified:                        TypeMeta: metav1.TypeMeta{
Suggestion accepted: True
Original:                  metav1.ObjectMeta{
Modified:                      ObjectMeta: metav1.ObjectMeta{
Suggestion accepted: True
Original:                  []rbac.PolicyRule{
Modified:                      Rules: []rbac.PolicyRule{
Suggestion accepted: True
Original:                                 APIVersion: "v1",
Modified:                           APIVersion: "rbac.authorization.k8s.io/v1",
Suggestion accepted: True
Original:        DataGatherers []DataGatherer `yaml:"data-gatherers"`
Modified:        DataGatherers []DataGatherer `yaml:"data_gatherers"`
Suggestion accepted: False
Original:                 "Time between scans (given as XhYmZs).",
Modified:            "Override time between scans in the configuration file (given as XhYmZs).",
Suggestion accepted: True
Original: // Fetch retrieves information from GKE.
Modified: // Fetch retrieves Istio resources from the K8s API and runs istio analysis
Suggestion accepted: False
Original: package isito
Modified: package istio
Suggestion accepted: True
Original:  var dynamics []datagatherer.DataGatherer
Modified:        var dynamicDataGatherers []datagatherer.DataGatherer
Suggestion accepted: True
Original:                dynamics: dynamics,
Modified:           dynamicDataGatherers: dynamics,
Suggestion accepted: False
Original:                sa:       sa,
Modified:                 sourceAnalyzer:       sa,
Suggestion accepted: False
Original:         content := fmt.Sprintf(kuebConfigString, server)
Modified:      content := fmt.Sprintf(kubeConfigString, server)
Suggestion accepted: True
Original: var kuebConfigString = `
Modified: var kubeConfigString = `
Suggestion accepted: True
Original:         c.DynamicNode.ExcludeNamespaces = make([]string, 0)
Modified:    c.DynamicNode.ExcludeNamespaces = []string{}
Suggestion accepted: True
Original:                "Max time for retrying failed data gatherers. ",
Modified:            "Max time for retrying failed data gatherers (in seconds).",
Suggestion accepted: False
Original:                         return err
Modified:                     return postData(config, preflightClient, readings)
Suggestion accepted: False
Original:                "server_version": data,
Modified:                 // data has type Info: https://godoc.org/k8s.io/apimachinery/pkg/version#Info               "server_version": data,
Suggestion accepted: False
Original: // This variables are injected at build time.
Modified: // These variables are injected at build time.
Suggestion accepted: True
Original:                 errors = append(errors, "cannot set excluded an included namespaces")
Modified:               errors = append(errors, "cannot set excluded and included namespaces")
Suggestion accepted: True
Original: package checkconfig
Modified: // Package checkconfig provides all the necessary for the `check` command to load its configuration.package checkconfig
Suggestion accepted: False
Original:                         // provide fake data.
Modified:                   // provide local data.
Suggestion accepted: False
Original:         return fmt.Sprintf("the following rules from the package %q are missing its Rego definition: %s", e.pkg, strings.Join(e.ids, ", "))
Modified:       return fmt.Sprintf("the following rules from the package %q are missing their Rego definitions: %s", e.pkg, strings.Join(e.ids, ", "))
Suggestion accepted: True
Original: // freshly generated report set
Modified: // freshly generated slice of reports.
Suggestion accepted: True
Original:  // Missing indicated wherer the Rego rule was missing or not.
Modified:   // Missing indicates whether the Rego rule was missing or not.
Suggestion accepted: True
Original:  Long: `This uses OPA's engine to run all the testsuites
Modified:         Long: `This uses OPA's engine to run all the test suites
Suggestion accepted: True
Original: // Gets the specified ERL
Modified: // GetERL returns the specified ERL.
Suggestion accepted: True
Original:     end
Modified:     end if Method.instance_methods.include?(:===)
Suggestion accepted: True
Original:       remote.run "journalctl -q --user-unit=#{service.name.shellescape} -f"
Modified:       remote.attach "journalctl -q --user-unit=#{service.name.shellescape} -f"
Suggestion accepted: True
Original:       return RUBY_VERSION.inspect if dry_run?
Modified:       return RUBY_VERSION if dry_run?
Suggestion accepted: True
Original:       return File.read(path).strip if File.exist?(path)
Modified:       version = remote.capture("cat", path, raise_on_error: false).strip      return version unless version.empty?
Suggestion accepted: True
Original:         remote.run "CFLAGS=-O3 nodenv install #{node_version.shellescape}"
Modified:         remote.run "nodenv install #{node_version.shellescape}"
Suggestion accepted: False
Original:     if (node.type === 'decl' && node.prop === 'content') {
Modified:     if (node.prop === 'content') {
Suggestion accepted: False
Original: let list = require('postcss').list
Modified: let { list } = require('postcss')
Suggestion accepted: True
Original: func createFile(namePattern string, content []byte, mode os.FileMode) (filename string, err error) {
Modified: func createFile(namePattern string, content []byte) (filename string, err error) {
Suggestion accepted: False
Original:         raise ::JWT::DecodeError, 'Invalid type for kid header parameter' unless kid.nil? || kid.is_a?(String)
Modified:         raise ::JWT::DecodeError, 'Invalid type for kid header parameter' unless kid.is_a?(String)
Suggestion accepted: False
Original:           RSA_KEY_ELEMENTS.each { |e| parameters.delete e }
Modified:           RSA_KEY_ELEMENTS.each { |e| parameters.delete(e) }
Suggestion accepted: True
Original:           @cert_chain = x5c[1...len].map do |b64der|
Modified:           @cert_chain = x5c[1..-1].map do |b64der|
Suggestion accepted: False
Original:             OpenSSL::X509::Certificate.new(::Base64.decode64(b64der))
Modified:             OpenSSL::X509::Certificate.new(::Base64.strict_decode64(b64der))
Suggestion accepted: False
Original:           signing_der = ::Base64.decode64 x5c.first
Modified:           signing_der = ::Base64.strict_decode64(x5c.first)
Suggestion accepted: False
Original:             "hooks": [
Modified:         cmd_str = "pre-commit install " + " ".join(            f"--hook-type {ty}" for ty in hook_types        )
Suggestion accepted: True
Original:                         "name": "--signoff",
Modified:                         "name": ["s", "--signoff"],
Suggestion accepted: False
Original:         res := suite.doRequest("cache-internal", "GET", "/api/charts/mychart/0.1.0", nil, "")
Modified:         res := suite.doRequest("cache-interval", "GET", "/api/charts/mychart/0.1.0", nil, "")
Suggestion accepted: True
Original:         case "cache-internal":
Modified:      case "cache-interval":
Suggestion accepted: True
Original:                         Usage:  "always regenerate the chart index and ignore the chart cache , it will cost the even more disk I/O",
Modified:                       Usage:  "always regenerate the chart index and ignore the chart cache (this will result in decreased performance and an increase in resource consumption)",
Suggestion accepted: True
Original:                AlwaysRegenerateIndex:  conf.GetBool("always-regenerate-index"),
Modified:            AlwaysRegenerateIndex:  conf.GetBool("always-regenerate-chart-index"),
Suggestion accepted: False
Original:         suite.Equal(404, res.Status(), fmt.Sprintf("200 GET %s/charts/mychart/0.1.1/templates", apiPrefix))
Modified:         suite.Equal(404, res.Status(), fmt.Sprintf("404 GET %s/charts/mychart/0.1.1/templates", apiPrefix))
Suggestion accepted: True
Original:         suite.Equal(404, res.Status(), fmt.Sprintf("200 GET %s/charts/fakechart/0.1.0/templates", apiPrefix))
Modified:       suite.Equal(404, res.Status(), fmt.Sprintf("404 GET %s/charts/fakechart/0.1.0/templates", apiPrefix))
Suggestion accepted: True
Original:         suite.Equal(404, res.Status(), fmt.Sprintf("200 GET %s/charts/mychart/0.1.1/values", apiPrefix))
Modified:    suite.Equal(404, res.Status(), fmt.Sprintf("404 GET %s/charts/mychart/0.1.1/values", apiPrefix))
Suggestion accepted: True
Original:         suite.Equal(404, res.Status(), fmt.Sprintf("200 GET %s/charts/fakechart/0.1.0/values", apiPrefix))
Modified:  suite.Equal(404, res.Status(), fmt.Sprintf("404 GET %s/charts/fakechart/0.1.0/values", apiPrefix))
Suggestion accepted: True
Original:                return "", &HTTPError{http.StatusNotFound, "not found chart filename"}
Modified:            return "", &HTTPError{http.StatusNotFound, "chart filename not found"}
Suggestion accepted: False
Original:                 }
Modified:              if err = close(err); err != nil {                       e.Logger.Errf(logger.Red, "task: unable to close writer: %v", err)            }
Suggestion accepted: False
Original: // dst and any error that occured during the transformation. If dst is returned
Modified: // dst and any error that occurred during the transformation. If dst is returned
Suggestion accepted: True
Original:         if c > threshold {
Modified:      if c < threshold {
Suggestion accepted: False
Original: // rowAllocator is a memory allocator used to make copy of rows referencing
Modified: // rowAllocator is a memory allocator used to make a copy of rows referencing
Suggestion accepted: False
Original: // This type is used in the implementation of a various readers and writers that
Modified: // This type is used in the implementation of various readers and writers that
Suggestion accepted: False
Original:  // GetPageBuffer is called when a parquet writer needs to acquires a new
Modified:        // GetPageBuffer is called when a parquet writer needs to acquire a new
Suggestion accepted: True
Original:                                         // A second optimization consist in passing the column type
Modified:                                     // A second optimization is to pass the column type
Suggestion accepted: False
Original: // BooleamValue constructs a BOOLEAN parquet value from the bool passed as
Modified: // BooleanValue constructs a BOOLEAN parquet value from the bool passed as
Suggestion accepted: False
Original:          if t.Implements(deprecated.MapGroupI) {
Modified:                 if deprecated.IsMap(t) {
Suggestion accepted: True
Original: func SetPageReadMode(mode PageReadMode) FileOption {
Modified: func FileReadMode(mode ReadMode) FileOption {
Suggestion accepted: True
Original: func (w *Writer) KeyValueMetadata(key, value string) {
Modified: func (w *Writer) SetKeyValueMetadata(key, value string) {
Suggestion accepted: False
Original:         return val, nil
Modified:       return val, checkTypeKindEqual(t, typ)
Suggestion accepted: True
Original: }
Modified:       v := src.Boolean()      switch dst.Kind() {     case reflect.Bool:              dst.SetBool(v)  default:                dst.Set(reflect.ValueOf(v))     }       return nil}
Suggestion accepted: False
Original:          }
Modified:               dst.SetBytes(copyBytes(v))              return nil
Suggestion accepted: True
Original: // Usage of this is optional and with Retain, is intended to allow finer grain
Modified: // Usage of this is optional and with Retain, is intended to allow finer grained
Suggestion accepted: True
Original:                 // Copy all the non-zero values in this run
Modified:             // Copy all the non-zero values in this run.
Suggestion accepted: False
Original:                 // Get the length of the run of non-zero values to be copied
Modified:            // Get the length of the run of non-zero values to be copied.
Suggestion accepted: False
Original:                 // returned in this run
Modified:                // While we haven't exceeded the output buffer and we haven't exceeded the              // page size AND the current element's definitionLevel is not the               // maxDefinitionLevel (this is a null value), Create the zero values to be              // returned in this run.
Suggestion accepted: False
Original:         // while we haven't exceeded the output buffer and we haven't exceeded the page size
Modified:    // While we haven't exceeded the output buffer and we haven't exceeded the page size.
Suggestion accepted: False
Original: // asynchronoulsy in a separate goroutine.
Modified: // asynchronously in a separate goroutine.
Suggestion accepted: False
Original: // be reading pages from a high latency backend, and processing of the last
Modified: // be reading pages from a high latency backend, and the last
Suggestion accepted: False
Original: // When configuring a Parquet map, the `parquet` tag will configure map itself.
Modified: // When configuring a Parquet map, the `parquet` tag will configure the map itself.
Suggestion accepted: True
Original:         // The offsets have the total length as last item. Since we are about to
Modified:        // The offsets have the total length as the last item. Since we are about to
Suggestion accepted: False
Original:         // the last offset is the total length of of values.
Modified:    // the last offset is the total length of (all?) values.
Suggestion accepted: False
Original: // gather128 to lookup string values, the memory layout of the arguments being
Modified: // gather128 to lookup string values, since the memory layout of the arguments is
Suggestion accepted: False
Original: // Conversion between array types are supported when converting integers to a
Modified: // Conversion between array types is supported when converting integers to a
Suggestion accepted: False
Original: // All array types can be converted to a generic Array type can be used to erase
Modified: // All array types can be converted to a generic Array type that can be used to erase
Suggestion accepted: False
Original:         // caches  when large number of values are inserted into the dictionary with
Modified:    // caches when a large number of values are inserted into the dictionary with
Suggestion accepted: False
Original:         // operation iterate through the array. The subsequent scan of the indexes
Modified:      // operation iterates through the array. The subsequent scan of the indexes
Suggestion accepted: False
Original: // a cache line can hold four 16 bytes keys.
Modified: // a cache line can hold four 16 byte keys.
Suggestion accepted: False