<commit_before>module.exports = function (grunt) {

    grunt.registerTask('newsBanner', function () {
        var pkg         = grunt.file.readJSON('package.json');
        var config      = grunt.config.get('config');
        var languageConfig      = grunt.config.get('languageConfig');
        var done        = this.async();
        var fs          = require('fs');
        var _           = require('lodash');
        var directory   = require('path');

            grunt.log.writeln('Adding news banner tmpl file');

            var bannerImgHost = 'http://news.bbcimg.co.uk/news/special/2015/newsspec_12021/';
            var defualtLanguageimgPath = bannerImgHost + 'news.png';
            var defualtLanguageBannerUrl = 'http://www.bbc.co.uk/news';
            if (languageConfig.languageLookup[config.services.default]) {
                defualtLanguageimgPath = bannerImgHost + languageConfig.languageLookup[config.services.default].bannerImgPath;
                defualtLanguageBannerUrl = languageConfig.languageLookup[config.services.default].url;
            }

            var rtlStyle = (languageConfig.languageLookup[config.services.default].direction == 'rtl') ? 'text-align:right; direction:rtl;' : '';
            var newsHeaderStyleStr = '<style type="text/css">.full-frame-scaffold-news-banner{' + rtlStyle + '-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box;position:relative;width:100%;padding:0 0 0 16px;background-color:#bb1919; height:38px;}.full-frame-scaffold-news-banner__logo{width:100%;max-width:976px;margin-left:auto;margin-right:auto;height:38px;}.full-frame-scaffold-news-banner__btn {text-decoration:none; position:relative;}.full-frame-scaffold-news-banner__img {position:absolute; height:20px; width:auto; margin-top:9px;}@media (min-width:1009px){.full-frame-scaffold-news-banner{padding:0}}</style>';<commit_msg>fixed newsbanner styling<commit_after>module.exports = function (grunt) {

    grunt.registerTask('newsBanner', function () {
        var pkg         = grunt.file.readJSON('package.json');
        var config      = grunt.config.get('config');
        var languageConfig      = grunt.config.get('languageConfig');
        var done        = this.async();
        var fs          = require('fs');
        var _           = require('lodash');
        var directory   = require('path');

            grunt.log.writeln('Adding news banner tmpl file');

            var bannerImgHost = 'http://news.bbcimg.co.uk/news/special/2015/newsspec_12021/';
            var defualtLanguageimgPath = bannerImgHost + 'news.png';
            var defualtLanguageBannerUrl = 'http://www.bbc.co.uk/news';
            if (languageConfig.languageLookup[config.services.default]) {
                defualtLanguageimgPath = bannerImgHost + languageConfig.languageLookup[config.services.default].bannerImgPath;
                defualtLanguageBannerUrl = languageConfig.languageLookup[config.services.default].url;
            }

            var rtlStyle = (languageConfig.languageLookup[config.services.default].direction == 'rtl') ? 'text-align:right; direction:rtl;' : '';
            var newsHeaderStyleStr = '<style type="text/css">.full-frame-scaffold-news-banner{' + rtlStyle + '-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box;position:relative;width:100%;padding:0 0 0 8px;background-color:#bb1919; height:38px;}.full-frame-scaffold-news-banner__logo{width:100%;max-width:976px;margin-left:auto;margin-right:auto;height:38px;}.full-frame-scaffold-news-banner__btn {text-decoration:none; position:relative;}.full-frame-scaffold-news-banner__img {position:absolute; height:20px; width:auto; margin-top:9px;}@media (min-width:400px){.full-frame-scaffold-news-banner{padding:0 0 0 16px;}}@media (min-width:1009px){.full-frame-scaffold-news-banner{padding:0}}</style>';
{'fraction_non_alphanumeric': 0.14459704586680489, 'fraction_numerical': 0.022026431718061675, 'mean_word_length': 3.472769409038239, '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': '1961324', 'n_tokens_mistral': 1262, 'n_tokens_neox': 1173, 'n_words': 145}