<commit_before>(function() {

  var sayCheese;

  function userMediaFeatureExists() {
    return 'webkitGetUserMedia' in navigator ||  'getUserMedia' in navigator;
  };

  sayCheese = function sayCheese(options) {
    if (userMediaFeatureExists()) {
      // do something
    } else {
      // should make this more graceful in future
      throw new Error("getUserMedia() is not supported in this browser");
    }<commit_msg>removed redundant argument, added some comments<commit_after>/*
 * Say Cheese!
 * <NAME>, 2012
 * http://leemach.in, http://new-bamboo.co.uk
 * 
 * Minimal javascript library for integrating a webcam and snapshots into your app.
 *
 * Handles starting up the webcam and rendering the element, and also capturing shots
 * in a separate canvas element.
 *
 * Depends on video and canvas, and of course, getUserMedia. It's unlikely to work
 * on anything but the newest browsers.
 */
(function() {

  var sayCheese;

  function userMediaFeatureExists() {
    return 'webkitGetUserMedia' in navigator ||  'getUserMedia' in navigator;
  };

  sayCheese = function sayCheese() {
    if (userMediaFeatureExists()) {
      // do something
    } else {
      // should make this more graceful in future
      throw new Error("getUserMedia() is not supported in this browser");
    }
{'fraction_non_alphanumeric': 0.0962278675904542, 'fraction_numerical': 0.003079291762894534, 'mean_word_length': 3.406779661016949, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, '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': '53160', 'n_tokens_mistral': 381, 'n_tokens_neox': 355, 'n_words': 133}