<commit_before><!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="//cdn.rawgit.com/nutritionix/nutrition-label/master/nutritionLabel-min.css" />
<script src="//code.jquery.com/jquery-1.11.3.min.js"></script>
<script src="//code.jquery.com/jquery-migrate-1.2.1.min.js"></script>
<script src="//cdn.rawgit.com/nutritionix/nutrition-label/master/nutritionLabel-min.js"></script>
<style>
.nutritionLabel .title {
  font-family: serif, 'Times', 'Times New Roman'!important;
  font-weight:bold!important;
  font-size: 20pt;
}
.nutritionLabel {
  font-size: 10pt!important;
  font-family: 'Helvetica', 'Arial', sans-serif!important;
}

.name {
  font-size: 11pt!important;
  line-height: 110%!important;
}

.servingSizeText {
  font-size: 10pt!important;
}

.serving {
  line-height: 100%!important;
}

.servingUnit {
  font-size: 10pt!important;
}

#label {
  font-size: 9.5pt!important;
}

.nutritionLabel .line {
  font-size: 9.5pt!important;
}

.calorieNote {
  font-size: 8pt!important;
}
</style>
</head>
<body>
<div id="label">
</div>
<script>
$.getJSON(location.pathname.substring(1).split(".")[0]+".json", function (data) {
  console.log(data);
  var sUnit = data.servingReference.split(" ");
  sUnit.splice(0, 1);

  var fibers = false;
  var transfat = false;
  var vitamina = false;
  var vitaminc = false;
  var iron = false;
  var calcium = false;
  var satFat = false;
  var sugar = false;
  var cholesterol = false;
  var sodium = false;
  if (data.fiberContent) {
    fibers = true;
  }
  if (data.transFatContent) {
    transfat = true;
  }
  if (data.vitaminA) {
    vitamina = true;
  }
  if (data.vitaminC) {
    vitaminc = true;
  }
  if (data.iron) {
    iron = true;
  }
  if (data.calcium) {
    calcium = true;
  }
  if (data.saturatedFatContent) {
    satFat = true;
  }
  if (data.sugarContent) {
    sugar = true;
  }
  if (data.cholesterolContent) {
    cholesterol = true;
  }
  if (data.sodiumContent) {
    sodium = true;
  }

  $('#label').nutritionLabel({
    'showItemName' : true,
    'showServingsPerContainer' : false,

    'showPolyFat' : false,
    'showMonoFat' : false,


    'showTransFat' : transfat,
    'showFibers' : fibers,
    'showVitaminA' : vitamina,
    'showVitaminC' : vitaminc,
    'showCalcium' : calcium,
    'showIron' : iron,
    'showSatFat': satFat,
    'showSugars': sugar,
    'showCholesterol': cholesterol,
    'showSodium':sodium,

    'itemName': data.name,
    'valueServingUnitQuantity' : data.servingReference.split(" ")[0],
    'valueServingSizeUnit' : sUnit.join(" "),


    'valueCalories' : data.calories.amount,
    'valueFatCalories' : data.caloriesFromFat.amount,
    'valueTotalFat' : data.fatContent.amount,
    'valueSatFat' : (data.saturatedFatContent ? data.saturatedFatContent.amount : null),
    'valueCholesterol' : (data.cholesterolContent ? data.cholesterolContent.amount : null),
    'valueSodium' : (data.sodiumContent.amount ? data.sodiumContent.amount : null),
    'valueTotalCarb' : data.carbohydrateContent.amount,
    'valueSugars' : (data.sugarContent ? data.sugarContent.amount : null),
    'valueProteins' : data.proteinContent.amount,
    // optionals
    'valueFibers': (data.fiberContent ? data.fiberContent.amount : null),
    'valueTransFat': (data.transFatContent ? data.transFatContent.amount : null),
    'valueVitaminA': parseInt((data.vitaminA ? data.vitaminA.dv : 0), 10),
    'valueVitaminC': parseInt((data.vitaminA ? data.vitaminA.dv : 0), 10),
    'valueCalcium': parseInt((data.calcium ? data.calcium.dv : 0), 10),
    'valueIron': parseInt((data.iron ? data.iron.dv : 0), 10)
  });

  //injecty
  $(".setter").remove(); var q = $("input").val(); $("input").remove(); $(".servingSizeField").remove(); $(".servingSizeText").append(" "+q); $(".ingredientListDiv").remove();

});
</script>
</body>
</html><commit_msg>you can take a picture of pizza right now<commit_after><!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="//cdn.rawgit.com/nutritionix/nutrition-label/master/nutritionLabel-min.css" />
<script src="//code.jquery.com/jquery-1.11.3.min.js"></script>
<script src="//code.jquery.com/jquery-migrate-1.2.1.min.js"></script>
<script src="//cdn.rawgit.com/nutritionix/nutrition-label/master/nutritionLabel-min.js"></script>
<style>
.nutritionLabel .title {
  font-family: serif, 'Times', 'Times New Roman'!important;
  font-weight:bold!important;
  font-size: 20pt;
}
.nutritionLabel {
  font-size: 10pt!important;
  font-family: 'Helvetica', 'Arial', sans-serif!important;
}

.name {
  font-size: 11pt!important;
  line-height: 110%!important;
}

.servingSizeText {
  font-size: 10pt!important;
}

.serving {
  line-height: 100%!important;
}

.servingUnit {
  font-size: 10pt!important;
}

#label {
  font-size: 9.5pt!important;
}

.nutritionLabel .line {
  font-size: 9.5pt!important;
}

.calorieNote {
  font-size: 8pt!important;
}
</style>
</head>
<body>
<div id="label">
</div>
<script>
$.getJSON(location.pathname.substring(1).split(".")[0]+".json", function (data) {
  console.log(data);
  var sUnit = data.servingReference.split(" ");
  sUnit.splice(0, 1);

  var fibers = false;
  var transfat = false;
  var vitamina = false;
  var vitaminc = false;
  var iron = false;
  var calcium = false;
  var satFat = false;
  var sugar = false;
  var cholesterol = false;
  var sodium = false;
  if (data.fiberContent) {
    fibers = true;
  }
  if (data.transFatContent) {
    transfat = true;
  }
  if (data.vitaminA) {
    vitamina = true;
  }
  if (data.vitaminC) {
    vitaminc = true;
  }
  if (data.iron) {
    iron = true;
  }
  if (data.calcium) {
    calcium = true;
  }
  if (data.saturatedFatContent) {
    satFat = true;
  }
  if (data.sugarContent) {
    sugar = true;
  }
  if (data.cholesterolContent) {
    cholesterol = true;
  }
  if (data.sodiumContent) {
    sodium = true;
  }

  $('#label').nutritionLabel({
    'showItemName' : true,
    'showServingsPerContainer' : false,

    'showPolyFat' : false,
    'showMonoFat' : false,


    'showTransFat' : transfat,
    'showFibers' : fibers,
    'showVitaminA' : vitamina,
    'showVitaminC' : vitaminc,
    'showCalcium' : calcium,
    'showIron' : iron,
    'showSatFat': satFat,
    'showSugars': sugar,
    'showCholesterol': cholesterol,
    'showSodium':sodium,

    'itemName': data.name,
    'valueServingUnitQuantity' : data.servingReference.split(" ")[0],
    'valueServingSizeUnit' : sUnit.join(" "),


    'valueCalories' : data.calories.amount,
    'valueFatCalories' : data.caloriesFromFat.amount,
    'valueTotalFat' : data.fatContent.amount,
    'valueSatFat' : (data.saturatedFatContent ? data.saturatedFatContent.amount : null),
    'valueCholesterol' : (data.cholesterolContent ? data.cholesterolContent.amount : null),
    'valueSodium' : (data.sodiumContent ? data.sodiumContent.amount : null),
    'valueTotalCarb' : data.carbohydrateContent.amount,
    'valueSugars' : (data.sugarContent ? data.sugarContent.amount : null),
    'valueProteins' : data.proteinContent.amount,
    // optionals
    'valueFibers': (data.fiberContent ? data.fiberContent.amount : null),
    'valueTransFat': (data.transFatContent ? data.transFatContent.amount : null),
    'valueVitaminA': parseInt((data.vitaminA ? data.vitaminA.dv : 0), 10),
    'valueVitaminC': parseInt((data.vitaminA ? data.vitaminA.dv : 0), 10),
    'valueCalcium': parseInt((data.calcium ? data.calcium.dv : 0), 10),
    'valueIron': parseInt((data.iron ? data.iron.dv : 0), 10)
  });

  //injecty
  $(".setter").remove(); var q = $("input").val(); $("input").remove(); $(".servingSizeField").remove(); $(".servingSizeText").append(" "+q); $(".ingredientListDiv").remove();

});
</script>
</body>
</html>
{'fraction_non_alphanumeric': 0.1709412836870199, 'fraction_numerical': 0.011717224319750032, 'mean_word_length': 3.777363184079602, 'pattern_counts': {'":': 0, '<': 43, '<?xml version=': 0, '>': 43, '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': '6701349', 'n_tokens_mistral': 3008, 'n_tokens_neox': 2781, 'n_words': 497}