<commit_before>using CoinClient.Model;
using Microsoft.Azure.WebJobs;
using Microsoft.Azure.WebJobs.Host;
using Microsoft.WindowsAzure.Storage;
using Microsoft.WindowsAzure.Storage.Table;
using Newtonsoft.Json.Linq;
using System;
using System.Linq;
using System.Net.Http;
using System.Text;
using System.Threading.Tasks;

namespace LbCoinValue
{
    public static class CoinValueSaver
    {
        private const string Url = "https://api.coinmarketcap.com/v1/ticker/";
        public const string ConnectionString = "DefaultEndpointsProtocol=https;AccountName=lbhackfest;AccountKey=<KEY>;BlobEndpoint=https://lbhackfest.blob.core.windows.net/;QueueEndpoint=https://lbhackfest.queue.core.windows.net/;TableEndpoint=https://lbhackfest.table.core.windows.net/;FileEndpoint=https://lbhackfest.file.core.windows.net/;";
        public const string TableName = "coins";

        [FunctionName("CoinValueSaver")]
        public static async Task Run(
            //[TimerTrigger("*/5 * * * * *")] // For debug only, every 5 minutes
            [TimerTrigger("0 0 */1 * * *")] // For production, every 1 hour
            TimerInfo myTimer,
            TraceWriter log)
        {
            // Every hour: 0 0 */1 * * *
            // See https://codehollow.com/2017/02/azure-functions-time-trigger-cron-cheat-sheet/

            log.Info($"CoinValueSaver executed at: {DateTime.Now}");

            // Create account, client and table
            var account = CloudStorageAccount.Parse(ConnectionString);
            var tableClient = account.CreateCloudTableClient();<commit_msg>Removed connection string (storage account has been deleted)<commit_after>using CoinClient.Model;
using Microsoft.Azure.WebJobs;
using Microsoft.Azure.WebJobs.Host;
using Microsoft.WindowsAzure.Storage;
using Microsoft.WindowsAzure.Storage.Table;
using Newtonsoft.Json.Linq;
using System;
using System.Linq;
using System.Net.Http;
using System.Text;
using System.Threading.Tasks;

namespace LbCoinValue
{
    public static class CoinValueSaver
    {
        private const string Url = "https://api.coinmarketcap.com/v1/ticker/";
        public const string ConnectionString = "[YOUR CONNECTION STRING HERE]";
        public const string TableName = "coins";

        [FunctionName("CoinValueSaver")]
        public static async Task Run(
            //[TimerTrigger("*/5 * * * * *")] // For debug only, every 5 minutes
            [TimerTrigger("0 0 */1 * * *")] // For production, every 1 hour
            TimerInfo myTimer,
            TraceWriter log)
        {
            // Every hour: 0 0 */1 * * *
            // See https://codehollow.com/2017/02/azure-functions-time-trigger-cron-cheat-sheet/

            log.Info($"CoinValueSaver executed at: {DateTime.Now}");

            // Create account, client and table
            var account = CloudStorageAccount.Parse(ConnectionString);
            var tableClient = account.CreateCloudTableClient();
{'fraction_non_alphanumeric': 0.11668372569089049, 'fraction_numerical': 0.010917775503241215, 'mean_word_length': 2.9568151147098516, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 8, 'lorem ipsum': 0, 'www.': 0, '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': '6802907', 'n_tokens_mistral': 852, 'n_tokens_neox': 814, 'n_words': 189}