<commit_before>#!/bin/sh
#
#  get-pubkey.sh
#  Install the public key for the select user
#
#  Copyright 2008-2013, <NAME> (http://mbrooks.info)
#  Licensed under the MIT license:
#  http://www.opensource.org/licenses/mit-license.php
#
#  Dependencies:
#    ec2-metadata
#
#  Notes:
#   - This script has been tested to work with RHEL & CentOS
#   - This script must be run as root
#   - This script can be installed in /etc/init.d or run from the command-line
#   - The authorized_keys outfile requires local user permissions
#
#  chkconfig: 3 97 97
#  description: Account update script
#

. /etc/init.d/functions

OUTFILE=~/.ssh/authorized_keys

if [ -f $OUTFILE ]; then
    action $"Public key installed:" `/usr/local/bin/ec2-metadata -u | tail -1 > $OUTFILE`
else
    exit 1
fi

exit 0<commit_msg>Replaced ec2-metadata dependency with standard curl command<commit_after>#!/bin/sh
#
#  get-pubkey.sh
#  Install the public key for the select user
#
#  Copyright 2008-2013, <NAME> (http://mbrooks.info)
#  Licensed under the MIT license:
#  http://www.opensource.org/licenses/mit-license.php
#
#  Notes:
#   - This script has been tested to work with RHEL & CentOS
#   - This script must be run as root
#   - This script can be installed in /etc/init.d or run from the command-line
#   - The authorized_keys outfile requires local user permissions
#
#  chkconfig: 3 97 97
#  description: Account update script
#

. /etc/init.d/functions

OUTFILE=~/.ssh/authorized_keys

if [ -f $OUTFILE ]; then
    action $"Public key installed:" `curl http://1172.16.17.32/latest/meta-data/public-keys/0/openssh-key > $OUTFILE`
else
    exit 1
fi

exit 0
{'fraction_non_alphanumeric': 0.1157830591102986, 'fraction_numerical': 0.027422303473491772, 'mean_word_length': 3.309711286089239, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 1, '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': '1021279', 'n_tokens_mistral': 593, 'n_tokens_neox': 551, 'n_words': 177}