<commit_before>{
  'variables': {
    'conditions': [
      ['OS == "win"', {
        'asm_format': 'peobj',
          'lj_vm': '<(INTERMEDIATE_DIR)/luajit/src/lj_vm.obj',
      }],
      ['OS == "mac"', {
        'asm_format': 'machasm',
        'lj_vm': '<(INTERMEDIATE_DIR)/luajit/src/lj_vm.s',
      }],
      ['OS == "linux" or OS == "freebsd" or OS == "solaris"', {
        'asm_format': 'elfasm',
        'lj_vm': '<(INTERMEDIATE_DIR)/luajit/src/lj_vm.s',
      }]
    ]
  },
    'target_defaults': {
      'defines': [
        'LUAJIT_ENABLE_LUA52COMPAT',
      'LUA_USE_APICHECK',
      ],
      'conditions': [
        ['target_arch=="x64"', {
          'defines': [
            'LUAJIT_TARGET=LUAJIT_ARCH_x64',
          ],
        }],
      ['target_arch=="ia32"', {
        'defines': [
          'LUAJIT_TARGET=LUAJIT_ARCH_x86',
        ],
      }],
      ['OS != "win"', {
        'defines': [
          '_LARGEFILE_SOURCE',
          '_FILE_OFFSET_BITS=64',
          '_GNU_SOURCE',
        ],
      }],
      ['OS == "win"', {
        'defines': [
          'LUA_BUILD_AS_DLL',
        ],
      }],
      ['OS=="solaris"', {
        'cflags': ['-pthreads'],
        'ldflags': ['-pthreads'],
      }],
      ['OS=="freebsd"', {
        'cflags': ['-pthread'],
        'ldflags': ['-pthread'],
      }],
      ],
    },

    'targets': [
    {
      'target_name': 'luajit',
      'type': 'executable',
      'dependencies': [
        'buildvm',
        'libluajit',
        'luajit-datafiles',
      ],
      'conditions': [
        ['OS == "linux"', { 'libraries': ['-ldl'] }, ],
      ],
      'sources': [
        'luajit/src/luajit.c',
      ]
    },
  {
    'target_name': 'luajit-datafiles',
    'type': 'none',
    'copies': [
     {
       'destination': '<(PRODUCT_DIR)/lua/jit',
       'files': [
          '../deps/luajit/src/jit/bc.lua',
          '../deps/luajit/src/jit/bcsave.lua',
          '../deps/luajit/src/jit/dis_arm.lua',
          '../deps/luajit/src/jit/dis_ppc.lua',
          '../deps/luajit/src/jit/dis_x86.lua',
          '../deps/luajit/src/jit/dis_x64.lua',
          '../deps/luajit/src/jit/dump.lua',
          '../deps/luajit/src/jit/v.lua',
      ]
    }],
  },
    {
      'target_name': 'libluajit',
      'conditions': [
        ['OS == "win"', { 'type': 'shared_library' },
          { 'type': 'static_library' } ],
      ],
      'dependencies': [
        'buildvm',
      ],
      'variables': {
        'lj_sources': [
          'luajit/src/lib_base.c',
          'luajit/src/lib_math.c',
          'luajit/src/lib_bit.c',
          'luajit/src/lib_string.c',
          'luajit/src/lib_table.c',
          'luajit/src/lib_io.c',
          'luajit/src/lib_os.c',
          'luajit/src/lib_package.c',
          'luajit/src/lib_debug.c',
          'luajit/src/lib_jit.c',
          'luajit/src/lib_ffi.c',
        ]
      },
      'include_dirs': [
        '<(INTERMEDIATE_DIR)',
        'luajit/src',
      ],
      'direct_dependent_settings': {
        'include_dirs': [
          '<(INTERMEDIATE_DIR)',
          'luajit/src',
        ]
      },
      'sources': [
        '<(lj_vm)',
        'luajit/src/lib_aux.c',
        'luajit/src/lib_init.c',
        'luajit/src/lib_base.c',
        'luajit/src/lib_math.c',
        'luajit/src/lib_string.c',
        'luajit/src/lib_table.c',
        'luajit/src/lib_io.c',
        'luajit/src/lib_os.c',
        'luajit/src/lib_package.c',
        'luajit/src/lib_debug.c',
        'luajit/src/lib_bit.c',
        'luajit/src/lib_jit.c',
        'luajit/src/lib_ffi.c',
        'luajit/src/lj_gc.c',
        'luajit/src/lj_alloc.c',
        'luajit/src/lj_api.c',
        'luajit/src/lj_asm.c',
        'luajit/src/lj_bc.c',
        'luajit/src/lj_bcread.c',
        'luajit/src/lj_bcwrite.c',
        'luajit/src/lj_carith.c',
        'luajit/src/lj_ccall.c',
        'luajit/src/lj_ccallback.c',
        'luajit/src/lj_cconv.c',
        'luajit/src/lj_cdata.c',
        'luajit/src/lj_char.c',
        'luajit/src/lj_clib.c',
        'luajit/src/lj_cparse.c',
        'luajit/src/lj_crecord.c',
        'luajit/src/lj_ctype.c',
        'luajit/src/lj_debug.c',
        'luajit/src/lj_dispatch.c',
        'luajit/src/lj_err.c',
        'luajit/src/lj_ffrecord.c',
        'luajit/src/lj_func.c',
        'luajit/src/lj_gdbjit.c',
        'luajit/src/lj_ir.c',
        'luajit/src/lj_lex.c',
        'luajit/src/lj_lib.c',
        'luajit/src/lj_mcode.c',
        'luajit/src/lj_meta.c',
        'luajit/src/lj_obj.c',
        'luajit/src/lj_opt_dce.c',
        'luajit/src/lj_opt_fold.c',
        'luajit/src/lj_opt_loop.c',
        'luajit/src/lj_opt_mem.c',
        'luajit/src/lj_opt_narrow.c',
        'luajit/src/lj_opt_split.c',
        'luajit/src/lj_parse.c',
        'luajit/src/lj_record.c',
        'luajit/src/lj_snap.c',
        'luajit/src/lj_state.c',
        'luajit/src/lj_str.c',
        'luajit/src/lj_tab.c',
        'luajit/src/lj_trace.c',<commit_msg>deps: luajit.gyp: fixup to include new sources<commit_after>{
  'variables': {
    'conditions': [
      ['OS == "win"', {
        'asm_format': 'peobj',
          'lj_vm': '<(INTERMEDIATE_DIR)/luajit/src/lj_vm.obj',
      }],
      ['OS == "mac"', {
        'asm_format': 'machasm',
        'lj_vm': '<(INTERMEDIATE_DIR)/luajit/src/lj_vm.s',
      }],
      ['OS == "linux" or OS == "freebsd" or OS == "solaris"', {
        'asm_format': 'elfasm',
        'lj_vm': '<(INTERMEDIATE_DIR)/luajit/src/lj_vm.s',
      }]
    ]
  },
    'target_defaults': {
      'defines': [
        'LUAJIT_ENABLE_LUA52COMPAT',
      'LUA_USE_APICHECK',
      ],
      'conditions': [
        ['target_arch=="x64"', {
          'defines': [
            'LUAJIT_TARGET=LUAJIT_ARCH_x64',
          ],
        }],
      ['target_arch=="ia32"', {
        'defines': [
          'LUAJIT_TARGET=LUAJIT_ARCH_x86',
        ],
      }],
      ['OS != "win"', {
        'defines': [
          '_LARGEFILE_SOURCE',
          '_FILE_OFFSET_BITS=64',
          '_GNU_SOURCE',
        ],
      }],
      ['OS == "win"', {
        'defines': [
          'LUA_BUILD_AS_DLL',
        ],
      }],
      ['OS=="solaris"', {
        'cflags': ['-pthreads'],
        'ldflags': ['-pthreads'],
      }],
      ['OS=="freebsd"', {
        'cflags': ['-pthread'],
        'ldflags': ['-pthread'],
      }],
      ],
    },

    'targets': [
    {
      'target_name': 'luajit',
      'type': 'executable',
      'dependencies': [
        'buildvm',
        'libluajit',
        'luajit-datafiles',
      ],
      'conditions': [
        ['OS == "linux"', { 'libraries': ['-ldl'] }, ],
      ],
      'sources': [
        'luajit/src/luajit.c',
      ]
    },
  {
    'target_name': 'luajit-datafiles',
    'type': 'none',
    'copies': [
     {
       'destination': '<(PRODUCT_DIR)/lua/jit',
       'files': [
          '../deps/luajit/src/jit/bc.lua',
          '../deps/luajit/src/jit/bcsave.lua',
          '../deps/luajit/src/jit/dis_arm.lua',
          '../deps/luajit/src/jit/dis_ppc.lua',
          '../deps/luajit/src/jit/dis_x86.lua',
          '../deps/luajit/src/jit/dis_x64.lua',
          '../deps/luajit/src/jit/dump.lua',
          '../deps/luajit/src/jit/v.lua',
      ]
    }],
  },
    {
      'target_name': 'libluajit',
      'conditions': [
        ['OS == "win"', { 'type': 'shared_library' },
          { 'type': 'static_library' } ],
      ],
      'dependencies': [
        'buildvm',
      ],
      'variables': {
        'lj_sources': [
          'luajit/src/lib_aux.c',
          'luajit/src/lib_base.c',
          'luajit/src/lib_bit.c',
          'luajit/src/lib_debug.c',
          'luajit/src/lib_ffi.c',
          'luajit/src/lib_math.c',
          'luajit/src/lib_init.c',
          'luajit/src/lib_io.c',
          'luajit/src/lib_jit.c',
          'luajit/src/lib_os.c',
          'luajit/src/lib_package.c',
          'luajit/src/lib_string.c',
          'luajit/src/lib_table.c',
        ]
      },
      'include_dirs': [
        '<(INTERMEDIATE_DIR)',
        'luajit/src',
      ],
      'direct_dependent_settings': {
        'include_dirs': [
          '<(INTERMEDIATE_DIR)',
          'luajit/src',
        ]
      },
      'sources': [
        '<(lj_vm)',
        'luajit/src/lj_alloc.c',
        'luajit/src/ljamalg.c',
        'luajit/src/lj_api.c',
        'luajit/src/lj_asm.c',
        'luajit/src/lj_bc.c',
        'luajit/src/lj_bcread.c',
        'luajit/src/lj_bcwrite.c',
        'luajit/src/lj_carith.c',
        'luajit/src/lj_ccallback.c',
        'luajit/src/lj_ccall.c',
        'luajit/src/lj_cconv.c',
        'luajit/src/lj_cdata.c',
        'luajit/src/lj_char.c',
        'luajit/src/lj_clib.c',
        'luajit/src/lj_cparse.c',
        'luajit/src/lj_crecord.c',
        'luajit/src/lj_ctype.c',
        'luajit/src/lj_debug.c',
        'luajit/src/lj_dispatch.c',
        'luajit/src/lj_err.c',
        'luajit/src/lj_ffrecord.c',
        'luajit/src/lj_func.c',
        'luajit/src/lj_gc.c',
        'luajit/src/lj_gdbjit.c',
        'luajit/src/lj_ir.c',
        'luajit/src/lj_lex.c',
        'luajit/src/lj_lib.c',
        'luajit/src/lj_load.c',
        'luajit/src/lj_mcode.c',
        'luajit/src/lj_meta.c',
        'luajit/src/lj_obj.c',
        'luajit/src/lj_opt_dce.c',
        'luajit/src/lj_opt_fold.c',
        'luajit/src/lj_opt_loop.c',
        'luajit/src/lj_opt_mem.c',
        'luajit/src/lj_opt_narrow.c',
        'luajit/src/lj_opt_sink.c',
        'luajit/src/lj_opt_split.c',
        'luajit/src/lj_parse.c',
        'luajit/src/lj_record.c',
        'luajit/src/lj_snap.c',
        'luajit/src/lj_state.c',
        'luajit/src/lj_str.c',
        'luajit/src/lj_strscan.c',
        'luajit/src/lj_tab.c',
        'luajit/src/lj_trace.c',
{'fraction_non_alphanumeric': 0.19954950342991706, 'fraction_numerical': 0.0032763386915122352, 'mean_word_length': 1.64, 'pattern_counts': {'":': 0, '<': 17, '<?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': '2680980', 'n_tokens_mistral': 4091, 'n_tokens_neox': 4098, 'n_words': 354}