<commit_before># AWS SDK for Ruby Sample Project

A simple Ruby application illustrating usage of the AWS SDK for Ruby (aws-sdk gem).

## Requirements

The only requirement of this application is bundler. All other dependencies can be installed with:
    
    bundle install

## Basic Configuration

You need to set your AWS security credentials in `samples/config.yml` before the sample
is able to connect to AWS. This file should contain:

    access_key_id: <your access key id>
    secret_access_key: <your secret key>

See the [Security Credentials](http://aws.amazon.com/security-credentials) page
for more information on getting your keys.

## Running the S3 sample

This sample application connects to Amazon's [Simple Storage Service (S3)](http://aws.amazon.com/s3),
creates a bucket, and uploads a file to that bucket. We've already included a
file for you to upload (`samples/s3/hello_world.txt`) and the `upload_file.rb`
script will generate a unique bucket name for you. The S3 documentation has a
good overview of the [restrictions for bucket names](http://docs.aws.amazon.com/AmazonS3/latest/dev/BucketRestrictions.html)
for when you start making your own buckets.

To run the sample:

    ruby upload_file.rb hello_world.txt

## License

The SDK and this sample application are distributed under the
[Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0).

```no-highlight
Copyright 2013. Amazon Web Services, 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.<commit_msg>Minor updates in README<commit_after># AWS SDK for Ruby Sample Project

A simple Ruby application illustrating usage of the AWS SDK for Ruby (aws-sdk gem).

## Requirements

The only requirement of this application is bundler. All other dependencies can be installed with:
    
    bundle install

## Basic Configuration

You need to set your AWS security credentials in `config.yml` before the sample
is able to connect to AWS. This file should contain:

    access_key_id: <your access key id>
    secret_access_key: <your secret key>

See the [Security Credentials](http://aws.amazon.com/security-credentials) page
for more information on getting your keys.

## Running the S3 sample

This sample application connects to Amazon's [Simple Storage Service (S3)](http://aws.amazon.com/s3),
creates a bucket, and uploads a file to that bucket. We've already included a
file to upload (`hello_world.txt`) and the `upload_file.rb` script will generate
a unique bucket name for you. All you need to do is run it:

    ruby upload_file.rb hello_world.txt

The S3 documentation has a good overview of the [restrictions for bucket names](http://docs.aws.amazon.com/AmazonS3/latest/dev/BucketRestrictions.html)
for when you start making your own buckets.

## License

This sample application is distributed under the
[Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0).

```no-highlight
Copyright 2013. Amazon Web Services, 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.
{'fraction_non_alphanumeric': 0.07457098283931357, 'fraction_numerical': 0.009672386895475818, 'mean_word_length': 4.397306397306397, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7071393', 'n_tokens_mistral': 903, 'n_tokens_neox': 849, 'n_words': 411}