<commit_before>base_digital_url = "http://localhost:5000/arduino/digital/"

function set_pin_high() {
  pin_num = $('#pin_select').val();
  console.log(pin_num);
  url = base_digital_url + pin_num
  $.ajax({
      url: url,
      type: "PATCH",
      data : JSON.stringify({value: true}),
      contentType: "application/json",
      dataType: "json",
  }).then(function(data) {
     console.log(data)
  });
}

function set_pin_low() {
  pin_num = $('#pin_select').val();
  url = base_digital_url + pin_num;
  $.ajax({
      url: url,
      type: "PATCH",
      data : JSON.stringify({value: false}),
      contentType: "application/json",
      dataType: "json",
  }).then(function(data) {
     console.log(data)
  });
}

// $(document).ready(function() {
//     $.ajax({
//         url: "http://localhost:5000/led",
//         type: "GET",
//         contentType: "application/json",
//     }).then(function(data) {
//        console.log(data)
//        $('.status').html("Status: " + String(data.status));
//     });
// });<commit_msg>remove commented-out funtion in app.js<commit_after>base_digital_url = "http://localhost:5000/arduino/digital/";

function set_pin_high() {
  pin_num = $('#pin_select').val();
  console.log(pin_num);
  url = base_digital_url + pin_num
  $.ajax({
      url: url,
      type: "PATCH",
      data : JSON.stringify({value: true}),
      contentType: "application/json",
      dataType: "json",
  }).then(function(data) {
     console.log(data)
  });
};

function set_pin_low() {
  pin_num = $('#pin_select').val();
  url = base_digital_url + pin_num;
  $.ajax({
      url: url,
      type: "PATCH",
      data : JSON.stringify({value: false}),
      contentType: "application/json",
      dataType: "json",
  }).then(function(data) {
     console.log(data)
  });
};
{'fraction_non_alphanumeric': 0.19566425792106726, 'fraction_numerical': 0.006670372429127293, 'mean_word_length': 2.8876889848812093, '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': '6828597', 'n_tokens_mistral': 633, 'n_tokens_neox': 614, 'n_words': 106}