<commit_before># Copyright 2014 Google Inc. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.


require "gcloud/storage/file/acl"
require "gcloud/storage/file/list"
require "gcloud/storage/file/verifier"

module Gcloud
  module Storage
    ##
    # # File
    #
    # Represents a File
    # ([Object](https://cloud.google.com/storage/docs/json_api/v1/objects)) that
    # belongs to a {Bucket}. Files (Objects) are
    # the individual pieces of data that you store in Google Cloud Storage. A
    # file can be up to 5 TB in size. Files have two components:
    # data and metadata. The data component is the data from an external file or
    # other data source that you want to store in Google Cloud Storage. The
    # metadata component is a collection of name-value pairs that describe
    # various qualities of the data.
    #
    # @see https://cloud.google.com/storage/docs/concepts-techniques Concepts
    #   and Techniques
    #
    # @example
    #   require "gcloud"
    #
    #   gcloud = Gcloud.new
    #   storage = gcloud.storage
    #
    #   bucket = storage.bucket "my-bucket"
    #
    #   file = bucket.file "path/to/my-file.ext"
    #   file.download "/downloads/#{bucket.name}/#{file.name}"
    #
    class File
      ##
      # @private The Connection object.
      attr_accessor :connection<commit_msg>Update File docs<commit_after># Copyright 2014 Google Inc. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.


require "gcloud/storage/file/acl"
require "gcloud/storage/file/list"
require "gcloud/storage/file/verifier"

module Gcloud
  module Storage
    ##
    # # File
    #
    # Represents a File
    # ([Object](https://cloud.google.com/storage/docs/json_api/v1/objects)) that
    # belongs to a {Bucket}. Files (Objects) are
    # the individual pieces of data that you store in Google Cloud Storage. A
    # file can be up to 5 TB in size. Files have two components:
    # data and metadata. The data component is the data from an external file or
    # other data source that you want to store in Google Cloud Storage. The
    # metadata component is a collection of name-value pairs that describe
    # various qualities of the data.
    #
    # @see https://cloud.google.com/storage/docs/concepts-techniques Concepts
    #   and Techniques
    #
    # @example
    #   require "gcloud"
    #
    #   gcloud = Gcloud.new
    #   storage = gcloud.storage
    #
    #   bucket = storage.bucket "my-bucket"
    #
    #   file = bucket.file "path/to/my-file.ext"
    #   file.download "path/to/downloaded/file.ext"
    #
    class File
      ##
      # @private The Connection object.
      attr_accessor :connection
{'fraction_non_alphanumeric': 0.08713355048859935, 'fraction_numerical': 0.0054288816503800215, 'mean_word_length': 2.945396145610278, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1431451', 'n_tokens_mistral': 1050, 'n_tokens_neox': 1027, 'n_words': 411}