<commit_before>var d = new Date();

document.getElementById("id_logic_level_version").innerHTML="Business level version" + d.getFullYear() + "." + d.getMonth() + "." + d.getDate() + ".0";

var constraints = {audio:false, video:{facingMode:"environment"}};
navigator.mediaDevices.getUserMedia(constraints).then(on_success).catch(on_error);


var video = document.getElementById("id_video");

function on_success(stream)
{
    video.srcObject = stream;
}

function on_error(error)
{
    alert("Error");
}<commit_msg>take picture<commit_after>var d = new Date();

document.getElementById("id_logic_level_version").innerHTML="Business level version" + d.getFullYear() + "." + d.getMonth() + "." + d.getDate() + ".0";

var constraints = {audio:false, video:{facingMode:"environment"}};
navigator.mediaDevices.getUserMedia(constraints).then(on_success).catch(on_error);


var video = document.getElementById("id_video");
video.addEventListener("touchstart", snap);

function on_success(stream)
{
    video.srcObject = stream;
}

function on_error(error)
{
    alert("Error");
}

function snap()
{
    var canvas = document.getElementById("id_canvas");
    var context = canvas.getContext("2D");
    context.drawImage(video, 0, 0, 640, 480);
    
}

{'fraction_non_alphanumeric': 0.16666666666666666, 'fraction_numerical': 0.008856682769726247, 'mean_word_length': 5.829670329670329, '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': '1384127', 'n_tokens_mistral': 408, 'n_tokens_neox': 387, 'n_words': 68}