import * as fs from 'fs' ; import * as path from 'path' ; export function generateGithubCodeTable ( lines ) { const code = lines . map ( ( line , i ) => `<tr>
         <td id="L${ i + 1 }" class="blob-num js-line-number" data-line-number="${ i + 1 }"></td>
        <td id="LC${ i + 1 }" class="blob-code blob-code-inner js-file-line">${ line }</td>
      </tr>` ) . join ( '\n' ) ; const styles = fs . readFileSync ( path . join ( __dirname , 'styles.css' ) , 'utf-8' ) ; return `<div class="github-testcase">
      <style>
          ${ styles }
      </style>
      <div class="container">
          <div class="file">
              <div class="file-header sticky-file-header"></div>
              <div itemprop="text" class="blob-wrapper data">
                  <table><tbody>${ code }</tbody></table>
              </div>
          </div>
      </div>
  </div>` ; }