<commit_before>package org.mangui.HLS.muxing {
   import flash.utils.ByteArray;
   import org.mangui.HLS.utils.Log;

   public class ID3
   {
      public var len:Number;
      public var hasTimestamp:Boolean = false;
      public var timestamp:Number;
    
      /* create ID3 object by parsing ByteArray, looking for ID3 tag length, and timestamp */
      public function ID3(data:ByteArray) {
         var tagSize:uint = 0;
         try {
            var pos:Number = data.position;
            do {
              if(data.readUTFBytes(3) == 'ID3') {
                // skip 24 bits
                data.position += 3;
                // retrieve tag length
                var byte1:uint = data.readUnsignedByte() & 0x7f;
                var byte2:uint = data.readUnsignedByte() & 0x7f;
                var byte3:uint = data.readUnsignedByte() & 0x7f;
                var byte4:uint = data.readUnsignedByte() & 0x7f;
                tagSize = (byte1 << 21) + (byte2 << 14) + (byte3 << 7) + byte4;

                var end_pos:Number = data.position + tagSize;
                // read tag
                _parseFrame(data);<commit_msg>remove unused import<commit_after>package org.mangui.HLS.muxing {
   import flash.utils.ByteArray;
   //import org.mangui.HLS.utils.Log;

   public class ID3
   {
      public var len:Number;
      public var hasTimestamp:Boolean = false;
      public var timestamp:Number;
    
      /* create ID3 object by parsing ByteArray, looking for ID3 tag length, and timestamp */
      public function ID3(data:ByteArray) {
         var tagSize:uint = 0;
         try {
            var pos:Number = data.position;
            do {
              if(data.readUTFBytes(3) == 'ID3') {
                // skip 24 bits
                data.position += 3;
                // retrieve tag length
                var byte1:uint = data.readUnsignedByte() & 0x7f;
                var byte2:uint = data.readUnsignedByte() & 0x7f;
                var byte3:uint = data.readUnsignedByte() & 0x7f;
                var byte4:uint = data.readUnsignedByte() & 0x7f;
                tagSize = (byte1 << 21) + (byte2 << 14) + (byte3 << 7) + byte4;

                var end_pos:Number = data.position + tagSize;
                // read tag
                _parseFrame(data);
{'fraction_non_alphanumeric': 0.10162067455102934, 'fraction_numerical': 0.02715724923346474, 'mean_word_length': 1.690223792697291, 'pattern_counts': {'":': 0, '<': 15, '<?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': '2865344', 'n_tokens_mistral': 716, 'n_tokens_neox': 661, 'n_words': 169}