<commit_before>var args = arguments[0] || {};

function rbsClicked(){
	var xpng=require('xpng');
	xpng.openWin(Alloy.CFG.nav,'refillDetails');
}

function scanClicked(){
	    Barcode.capture({
        animate: true,
        overlay: overlay,
        showCancel: true,
        showRectangle: true,
        keepOpen: true
        /*,
        acceptedFormats: [
            Barcode.FORMAT_QR_CODE
        ]*/
    });

}

var Barcode = require('ti.barcode');
Barcode.allowRotation = true;
Barcode.displayedMessage = '';
Barcode.allowMenu = false;
Barcode.allowInstructions = true;
Barcode.useLED = false;

var overlay = Ti.UI.createView({
    backgroundColor: 'transparent',
    top: 0, right: 0, bottom: 0, left: 0
});

var lblInsructionTop = Ti.UI.createLabel({
    text: 'Show us the prescription you want to refill.', textAlign: 'center',
    color: '#fff', backgroundColor: 'transparent',
    font: { fontWeight: 'bold', fontSize: 16 },
    borderColor: 'transparent',
    opacity: 1,
    width: 400, height: 30,
    top: 10
});
overlay.add(lblInsructionTop);

var lblInsructionBottom = Ti.UI.createLabel({
    text: "Center the bar code within the rectangle. Hold the phone still from 6-8 inches away until it's scanned.", textAlign: 'center',
    color: '#fff', backgroundColor: 'transparent',
    font: {fontSize: 14 },
    borderColor: 'transparent', 
    opacity: 1,
    width: 450, height: 40,
    bottom: 0
});
overlay.add(lblInsructionBottom);

Barcode.addEventListener('success', function(e){
	Barcode.cancel();
	alert('Success called with barcode: ' + e.result);
	loadNextPage();
});

Barcode.addEventListener('error', function(e){
	Barcode.cancel();
	alert('No valid barcode found. Please scan again.');
});

function loadNextPage(){
		var xpng=require('xpng');
	xpng.openWin(Alloy.CFG.nav,'refillDetails');

}<commit_msg>Saved changes in landing page.<commit_after>var args = arguments[0] || {};

function rbsClicked(){
	var xpng=require('xpng');
	xpng.openWin(Alloy.CFG.nav,'refillDetails');
}

function scanClicked(){
	    Barcode.capture({
        animate: true,
        overlay: overlay,
        showCancel: true,
        showRectangle: true,
        keepOpen: true
        /*,
        acceptedFormats: [
            Barcode.FORMAT_QR_CODE
        ]*/
    });

}

var Barcode = require('ti.barcode');
Barcode.allowRotation = true;
Barcode.displayedMessage = '';
Barcode.allowMenu = false;
Barcode.allowInstructions = true;
Barcode.useLED = false;

var overlay = Ti.UI.createView({
    backgroundColor: 'transparent',
    top: 0, right: 0, bottom: 0, left: 0
});

var lblInsructionTop = Ti.UI.createLabel({
    text: 'Show us the prescription you want to refill.', textAlign: 'center',
    color: '#fff', backgroundColor: 'transparent',
    font: { fontWeight: 'bold', fontSize: 16 },
    borderColor: 'transparent',
    opacity: 1,
    width: 400, height: 30,
    top: 10
});
overlay.add(lblInsructionTop);

var lblInsructionBottom = Ti.UI.createLabel({
    text: "Center the bar code within the rectangle. Hold the phone still from 6-8 inches away until it's scanned.", textAlign: 'center',
    color: '#fff', backgroundColor: 'transparent',
    font: {fontSize: 14 },
    borderColor: 'transparent', 
    opacity: 1,
    width: 450, height: 40,
    bottom: 0
});
overlay.add(lblInsructionBottom);

Barcode.addEventListener('success', function(e){
	Barcode.cancel();
	alert('Success called with barcode: ' + e.result);
	loadNextPage();
});

Barcode.addEventListener('error', function(e){
	Barcode.cancel();
	alert('No valid barcode found. Please scan again.');
});

function loadNextPage(){
	var xpng=require('xpng');
	xpng.openWin(Alloy.CFG.nav,'refillDetails');

}
{'fraction_non_alphanumeric': 0.1452225841476656, 'fraction_numerical': 0.014115092290988056, 'mean_word_length': 3.7795071335927366, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, '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': '3070210', 'n_tokens_mistral': 1231, 'n_tokens_neox': 1194, 'n_words': 300}