<commit_before><html>
<head>
<title><NAME></title>
</head>
<body>
  <h4>Фото</h4>
  <input type="file" value="upload" id="fileUpload" multiple="multiple"/>
  <div class="progresses">
  </div>  
    
  <script src="https://www.gstatic.com/firebasejs/3.6.4/firebase.js"></script>
<script>
  // Initialize Firebase
  var config = {
    apiKey: "<KEY>",
    authDomain: "sdai-parkuna.firebaseapp.com",
    databaseURL: "https://sdai-parkuna.firebaseio.com",
    storageBucket: "sdai-parkuna.appspot.com",
    messagingSenderId: "967884969000"
  };
  firebase.initializeApp(config);
</script>

<script>
  //File upload script to Firebase storage
  var uploader = document.getElementById('uploader');
  var fileButton = document.getElementById('fileUpload');

  //File selection listener
  fileButton.addEventListener('change', function(a) {
    //Get image        
    for (var i = 0; i < a.target.files.length; i++) {
      const file = files.item(i)
      var storageRef = firebase.storage().ref('images/' + file.name);
      
      var progress = document.createElement("progress")
      progress.value = 0
  	  progress.max = 100
      
      document.queryElementSelector("progresses")
      	.appendChild(progress)
      
      //store the image
      var task = storageRef.put(file);
      //notify the user of upload status
      task.on('state_changed',
        function progress(snapshot) {
          var percentage = (snapshot.bytesTransferred/snapshot.totalBytes) * 100
          progress.value = percentage
        },
        function error(err) { console.error(err) },
        function complete() {
          console.log('Completed ', file.name)
          progress.classList.push('done')<commit_msg>Fix #2 by using correct name of FileList<commit_after><html>
<head>
<title><NAME></title>
</head>
<body>
  <h4>Фото</h4>
  <input type="file" value="upload" id="fileUpload" multiple="multiple"/>
  <div class="progresses">
  </div>  
    
  <script src="https://www.gstatic.com/firebasejs/3.6.4/firebase.js"></script>
<script>
  // Initialize Firebase
  var config = {
    apiKey: "<KEY>",
    authDomain: "sdai-parkuna.firebaseapp.com",
    databaseURL: "https://sdai-parkuna.firebaseio.com",
    storageBucket: "sdai-parkuna.appspot.com",
    messagingSenderId: "967884969000"
  };
  firebase.initializeApp(config);
</script>

<script>
  //File upload script to Firebase storage
  var uploader = document.getElementById('uploader');
  var fileButton = document.getElementById('fileUpload');

  //File selection listener
  fileButton.addEventListener('change', function(a) {
    //Get image        
    for (var i = 0; i < a.target.files.length; i++) {
      const file = a.target.files.item(i)
      var storageRef = firebase.storage().ref('images/' + file.name);
      
      var progress = document.createElement("progress")
      progress.value = 0
  	  progress.max = 100
      
      document.queryElementSelector("progresses")
      	.appendChild(progress)
      
      //store the image
      var task = storageRef.put(file);
      //notify the user of upload status
      task.on('state_changed',
        function progress(snapshot) {
          var percentage = (snapshot.bytesTransferred/snapshot.totalBytes) * 100
          progress.value = percentage
        },
        function error(err) { console.error(err) },
        function complete() {
          console.log('Completed ', file.name)
          progress.classList.push('done')
{'fraction_non_alphanumeric': 0.14165701042873696, 'fraction_numerical': 0.01477404403244496, 'mean_word_length': 2.9689655172413794, 'pattern_counts': {'":': 0, '<': 41, '<?xml version=': 0, '>': 39, 'https://': 4, 'lorem ipsum': 0, 'www.': 2, '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': '441163', 'n_tokens_mistral': 1070, 'n_tokens_neox': 1053, 'n_words': 216}