<commit_before>"use strict";

var app = app || {};

$(document).ready(function () {
    app.init();
});



// Start
app.init = function () {

    // Create portfolio items
    var link;
    var portfolioItem;
    var img;
    for (var i = 0; i < app.portfolioData.length; i++) {
        portfolioItem = $("#portfolio-item-template").clone();

        img = portfolioItem.find("img").first();
        img.attr("src", app.portfolioData[i].imgSrc);
        img.attr("alt", "image for website " + app.portfolioData[i].title);
        portfolioItem.find("h3").first().text(app.portfolioData[i].title);
        portfolioItem.find(".portfolio-item-right").first().append(app.portfolioData[i].content);

        if (app.portfolioData[i].linkWebsite.length > 0) {
            link = portfolioItem.find(".porfolio-item-link").first();
            link.attr("href", app.portfolioData[i].linkWebsite);
            link.show();
        }

        if (app.portfolioData[i].linkDownload.length > 0) {
            link = portfolioItem.find(".porfolio-item-download").first();
            link.attr("href", app.portfolioData[i].linkDownload);
            link.show();
        }

        if (app.portfolioData[i].linkSource.length > 0) {
            link = portfolioItem.find(".porfolio-item-source").first();
            link.attr("href", app.portfolioData[i].linkSource);
            link.show();
        }

        $("#portfolio-items").append(portfolioItem.html());
    }

}




// Portfolio items
app.portfolioData = [{
    "imgSrc": "../res/images/thingz.jpg",
    "linkWebsite": "http://thingz.azurewebsites.net",
    "linkDownload": "",
    "linkSource": "https://github.com/jamesryan83/thingz",
    "title": "Thingz",
    "content": "<p>Demo homepage.  Similar setup to Galaxi (below)</p>" +
        "<p>Probably won't work on Internet Explorer, because it uses webm format videos</p>"
}, {
    "imgSrc": "../res/images/galaxi.png",
    "linkWebsite": "http://galaxi.azurewebsites.net",
    "linkDownload": "",
    "linkSource": "https://github.com/jamesryan83/galaxi",
    "title": "Galaxi",
    "content": "<p>This is a demo home page.  It uses Greensock and ScrollMagic for animations.  Art was made in Inkscape.  Code is html, sass and jQuery</p>"
}, {
    "imgSrc": "../res/images/snappi.png",
    "linkWebsite": "http://snappi.azurewebsites.net",
    "linkDownload": "",
    "linkSource": "https://github.com/jamesryan83/snappi",
    "title": "Snappi",
    "content": "<p>I wanted to try out Xamarin and made a small app/website for posting images. Code is Xamarin.Forms, Node.js and jQuery</p>"
}, {
    "imgSrc": "../res/images/neeonn.png",
    "linkWebsite": "http://shoteratetest.azurewebsites.net",
    "linkDownload": "",
    "linkSource": "https://github.com/jamesryan83/Neeonn",
    "title": "Neeonn",
    "content": "<p>Neeonn is a concept/prototype for a social storyboard sharing platform.  It consists of a website and an Android app</p><p>The website is made with PHP and Laravel on the server, with Backbone and jQuery on the frontend.  The Android app is made with Apache Cordova, Backbone and jQuery</p><p>You can log in with un: <EMAIL> and pw: neeonn if you want to have a look at the storyboard creating tools inside.  Same login credentials for the app too</p>"
}, {
    "imgSrc": "../res/images/technicorp.png",
    "linkWebsite": "http://technicorp.azurewebsites.net",
    "linkDownload": "",
    "linkSource": "https://github.com/jamesryan83/technicorp",
    "title": "Technicorp",
    "content": "<p>This is a demo home page.  It has a parallax scrolling background and I was also trying out using svg images for slanted backgrounds which you can see in the navbar and login dialogs.  Made with html, sass and jQuery</p>"
}, {
    "imgSrc": "../res/images/tasktime.png",
    "linkWebsite": "http://task-time.azurewebsites.net",
    "linkDownload": "",
    "linkSource": "https://github.com/jamesryan83/tasktime",
    "title": "Tasktime",
    "content": "<p>Tasktime is a todo list website.  You can create Tasks which are grouped into what are called Timeline Items.  It's a simple way to keep a list of the days tasks</p><p>It's made with SQL Server, PHP and Laravel, html/sass/javascript and Twitter bootstrap</p>"<commit_msg>remove website link<commit_after>"use strict";

var app = app || {};

$(document).ready(function () {
    app.init();
});



// Start
app.init = function () {

    // Create portfolio items
    var link;
    var portfolioItem;
    var img;
    for (var i = 0; i < app.portfolioData.length; i++) {
        portfolioItem = $("#portfolio-item-template").clone();

        img = portfolioItem.find("img").first();
        img.attr("src", app.portfolioData[i].imgSrc);
        img.attr("alt", "image for website " + app.portfolioData[i].title);
        portfolioItem.find("h3").first().text(app.portfolioData[i].title);
        portfolioItem.find(".portfolio-item-right").first().append(app.portfolioData[i].content);

        if (app.portfolioData[i].linkWebsite.length > 0) {
            link = portfolioItem.find(".porfolio-item-link").first();
            link.attr("href", app.portfolioData[i].linkWebsite);
            link.show();
        }

        if (app.portfolioData[i].linkDownload.length > 0) {
            link = portfolioItem.find(".porfolio-item-download").first();
            link.attr("href", app.portfolioData[i].linkDownload);
            link.show();
        }

        if (app.portfolioData[i].linkSource.length > 0) {
            link = portfolioItem.find(".porfolio-item-source").first();
            link.attr("href", app.portfolioData[i].linkSource);
            link.show();
        }

        $("#portfolio-items").append(portfolioItem.html());
    }

}




// Portfolio items
app.portfolioData = [{
    "imgSrc": "../res/images/thingz.jpg",
    "linkWebsite": "http://thingz.azurewebsites.net",
    "linkDownload": "",
    "linkSource": "https://github.com/jamesryan83/thingz",
    "title": "Thingz",
    "content": "<p>Demo homepage.  Similar setup to Galaxi (below)</p>" +
        "<p>Probably won't work on Internet Explorer, because it uses webm format videos</p>"
}, {
    "imgSrc": "../res/images/galaxi.png",
    "linkWebsite": "http://galaxi.azurewebsites.net",
    "linkDownload": "",
    "linkSource": "https://github.com/jamesryan83/galaxi",
    "title": "Galaxi",
    "content": "<p>This is a demo home page.  It uses Greensock and ScrollMagic for animations.  Art was made in Inkscape.  Code is html, sass and jQuery</p>"
}, {
    "imgSrc": "../res/images/snappi.png",
    "linkWebsite": "http://snappi.azurewebsites.net",
    "linkDownload": "",
    "linkSource": "https://github.com/jamesryan83/snappi",
    "title": "Snappi",
    "content": "<p>I wanted to try out Xamarin and made a small app/website for posting images. Code is Xamarin.Forms, Node.js and jQuery</p>"
}, {
    "imgSrc": "../res/images/neeonn.png",
    "linkWebsite": "http://shoteratetest.azurewebsites.net",
    "linkDownload": "",
    "linkSource": "https://github.com/jamesryan83/Neeonn",
    "title": "Neeonn",
    "content": "<p>Neeonn is a concept/prototype for a social storyboard sharing platform.  It consists of a website and an Android app</p><p>The website is made with PHP and Laravel on the server, with Backbone and jQuery on the frontend.  The Android app is made with Apache Cordova, Backbone and jQuery</p><p>You can log in with un: <EMAIL> and pw: <PASSWORD> if you want to have a look at the storyboard creating tools inside.  Same login credentials for the app too</p>"
}, {
    "imgSrc": "../res/images/technicorp.png",
    "linkWebsite": "http://technicorp.azurewebsites.net",
    "linkDownload": "",
    "linkSource": "https://github.com/jamesryan83/technicorp",
    "title": "Technicorp",
    "content": "<p>This is a demo home page.  It has a parallax scrolling background and I was also trying out using svg images for slanted backgrounds which you can see in the navbar and login dialogs.  Made with html, sass and jQuery</p>"
}, {
    "imgSrc": "../res/images/tasktime.png",
    "linkWebsite": "",
    "linkDownload": "",
    "linkSource": "https://github.com/jamesryan83/tasktime",
    "title": "Tasktime",
    "content": "<p>Tasktime is a todo list website.  You can create Tasks which are grouped into what are called Timeline Items.  It's a simple way to keep a list of the days tasks</p><p>It's made with SQL Server, PHP and Laravel, html/sass/javascript and Twitter bootstrap</p>"
{'fraction_non_alphanumeric': 0.161198961529384, 'fraction_numerical': 0.00401227283455275, 'mean_word_length': 3.191394658753709, 'pattern_counts': {'":': 72, '<': 48, '<?xml version=': 0, '>': 52, 'https://': 12, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 18, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5750256', 'n_tokens_mistral': 2744, 'n_tokens_neox': 2635, 'n_words': 696}