<commit_before>﻿using System.Collections.Generic;
using System.Data;
using System.Data.SqlClient;
using System.Net.Http;
using System.Text;
using DbUp.Engine;
using Newtonsoft.Json;
using SQLAzureDemo.Database.Models;

namespace SQLAzureDemo.Database.Migrations
{
    public class Migration20130505180800_PopulateMoviesTable : IScript
    {
        public string ProvideScript(IDbConnection connection)
        {
            var client = new HttpClient();
            var titleSearches = new[] {"0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z"};
            var movies = new List<Movie>();
            foreach (var titleSearch in titleSearches)
            {
                var result = client.GetStringAsync(string.Format("http://imdbapi.org/?limit=10&title={0}&type=json", titleSearch)).Result;<commit_msg>Fixing incorrect migration due to API moving domain<commit_after>﻿using System.Collections.Generic;
using System.Data;
using System.Data.SqlClient;
using System.Net.Http;
using System.Text;
using DbUp.Engine;
using Newtonsoft.Json;
using SQLAzureDemo.Database.Models;

namespace SQLAzureDemo.Database.Migrations
{
    public class Migration20130505180800_PopulateMoviesTable : IScript
    {
        public string ProvideScript(IDbConnection connection)
        {
            var client = new HttpClient();
            var titleSearches = new[] {"0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z"};
            var movies = new List<Movie>();
            foreach (var titleSearch in titleSearches)
            {
                var result = client.GetStringAsync(string.Format("http://omdbapi.org/?limit=10&title={0}&type=json", titleSearch)).Result;
{'fraction_non_alphanumeric': 0.19102296450939457, 'fraction_numerical': 0.028183716075156576, 'mean_word_length': 3.4375, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5454719', 'n_tokens_mistral': 673, 'n_tokens_neox': 649, 'n_words': 170}