<commit_before>{
  'variables': {
    'warning_cflags%': [
      '-Wall -Wextra',
      '-Werror',
      '-Wcast-align -Wcast-qual',
      # '-Wconversion',
      '-Wdisabled-optimization',
      '-Wfloat-equal -Wformat=2',
      '-Winit-self -Winvalid-pch',
      # '-Wmissing-format-attribute',
      '-Wmissing-include-dirs -Wmissing-noreturn',
      '-Wpacked -Wpointer-arith',
      '-Wswitch-default',
      # '-Wswitch-enum',
      '-Wvolatile-register-var',
      '-Wwrite-strings',
      # '-Wlogical-op -Woverlength-strings -Wstrict-overflow=5 -Wvla',
      # '-Waggregate-return -Winline -Wpadded -Wunreachable-code -Wunsafe-loop-optimizations',
      # '-Wlarger-than-XXXXXX',
      '-Wno-unused-parameter',
    ],
    'warning_cflags_c%': [
      '-Wbad-function-cast',
      '-Wmissing-declarations -Wmissing-prototypes',
      '-Wnested-externs',
      '-Wold-style-definition',
      '-Wstrict-prototypes',
      '-Wno-sign-compare',
      '-Wstrict-aliasing',
    ],
    'other_cflags%': [
      '-ftrapv -D_FORTIFY_SOURCE=2',
      '-fstack-protector-all -Wstack-protector',
      # '-fmudflapth -lmudflapth',
      '-fstrict-aliasing -Wstrict-aliasing=2',
      '-fno-omit-frame-pointer',
    ],
    'other_cflags_c%': [
      '-pedantic',
      '-std=gnu99',
    ],
  },
  'target_defaults': {
    'defines': [ '_GNU_SOURCE' ],
    'cflags': [ '<@(warning_cflags)', '<@(other_cflags)' ],
    'cflags_c': [ '<@(warning_cflags_c)', '<@(other_cflags_c)' ],
    'xcode_settings': {
      'GCC_GENERATE_DEBUGGING_SYMBOLS': 'NO',
      'GCC_OPTIMIZATION_LEVEL': '0',
      'WARNING_CFLAGS': [ '<@(warning_cflags)', '<@(warning_cflags_c)' ],
      'OTHER_CFLAGS': [ '<@(other_cflags)', '<@(other_cflags_c)' ],
      'OTHER_CPLUSPLUSFLAGS': [ '<@(other_cflags)' ],
    },
  },
  'targets': [
    {
      'target_name': 'liblinear',
      'type': '<(linear_library)',
      'include_dirs': [
        'include',
        'src/',
        'deps/msgpack/include',
      ],
      'dependencies': [
        'deps/libtv/deps/libuv/uv.gyp:libuv',
        'deps/libtv/tv.gyp:libtv',
      ],
      'direct_dependent_settings': {
        'include_dirs': [
          'include',
          'deps/msgpack/include',
        ],
      },
      'sources': [
        'src/addrinfo.cpp',
        'src/any.cpp',
        'src/auth_context.cpp',
        'src/auth_context_impl.cpp',
        'src/condition_variable.cpp',
        'src/error.cpp',
        'src/event_loop.cpp',
        'src/event_loop_impl.cpp',
        'src/group.cpp',
        'src/handler_delegate.cpp',
        'src/log.cpp',
        'src/log_file.cpp',
        'src/log_function.cpp',
        'src/log_stderr.cpp',
        'src/message.cpp',
        'src/mutex.cpp',
        'src/server.cpp',
        'src/socket.cpp',
        'src/socket_impl.cpp',
        'src/tcp_client.cpp',
        'src/tcp_server.cpp',
        'src/tcp_server_impl.cpp',
        'src/tcp_socket.cpp',
        'src/tcp_socket_impl.cpp',
        'src/timer.cpp',
        'src/timer_impl.cpp',
        'src/ws_client.cpp',
        'src/ws_server.cpp',
        'src/ws_server_impl.cpp',
        'src/ws_socket.cpp',
        'src/ws_socket_impl.cpp',
      ],
      'actions': [
        {
          'action_name': 'create_version_h',
          'inputs': [ 'tools/create_version_h.py', 'include/linear/version.h.in' ],
          'outputs': [ 'include/linear/version.h' ],
          'action': [ 'python', 'tools/create_version_h.py' ],
        },
        {
          'action_name': 'create_memory_h',
          'inputs': [ 'tools/create_memory_h.py', 'include/linear/memory.h.in' ],
          'outputs': [ 'include/linear/memory.h' ],
          'action': [ 'python', 'tools/create_memory_h.py' ],
        },
      ],
      'conditions': [
        [ 'with_ssl != "false"', {
          'defines': [
            'WITH_SSL',
          ],
          'sources': [
            'src/ssl_client.cpp',
            'src/ssl_context.cpp',
            'src/ssl_server.cpp',
            'src/ssl_server_impl.cpp',
            'src/ssl_socket.cpp',
            'src/ssl_socket_impl.cpp',
            'src/wss_client.cpp',
            'src/wss_server.cpp',
            'src/wss_server_impl.cpp',
            'src/wss_socket.cpp',
            'src/wss_socket_impl.cpp',
            'src/x509_certificate.cpp',
          ],
        }],
        ['OS=="win"', {
          'defines': [
            # https://msdn.microsoft.com/en-US/library/windows/desktop/aa383745(v=vs.85).aspx
            '_WIN32_WINNT=0x0600', # supports after Windows Vista
          ],
        }, { # Not Windows i.e. POSIX
          'conditions': [
            ['_type == "shared_library" and OS != "mac"', {<commit_msg>allows to run w/o hermetic cygwin on windows<commit_after>{
  'variables': {
    'warning_cflags%': [
      '-Wall -Wextra',
      '-Werror',
      '-Wcast-align -Wcast-qual',
      # '-Wconversion',
      '-Wdisabled-optimization',
      '-Wfloat-equal -Wformat=2',
      '-Winit-self -Winvalid-pch',
      # '-Wmissing-format-attribute',
      '-Wmissing-include-dirs -Wmissing-noreturn',
      '-Wpacked -Wpointer-arith',
      '-Wswitch-default',
      # '-Wswitch-enum',
      '-Wvolatile-register-var',
      '-Wwrite-strings',
      # '-Wlogical-op -Woverlength-strings -Wstrict-overflow=5 -Wvla',
      # '-Waggregate-return -Winline -Wpadded -Wunreachable-code -Wunsafe-loop-optimizations',
      # '-Wlarger-than-XXXXXX',
      '-Wno-unused-parameter',
    ],
    'warning_cflags_c%': [
      '-Wbad-function-cast',
      '-Wmissing-declarations -Wmissing-prototypes',
      '-Wnested-externs',
      '-Wold-style-definition',
      '-Wstrict-prototypes',
      '-Wno-sign-compare',
      '-Wstrict-aliasing',
    ],
    'other_cflags%': [
      '-ftrapv -D_FORTIFY_SOURCE=2',
      '-fstack-protector-all -Wstack-protector',
      # '-fmudflapth -lmudflapth',
      '-fstrict-aliasing -Wstrict-aliasing=2',
      '-fno-omit-frame-pointer',
    ],
    'other_cflags_c%': [
      '-pedantic',
      '-std=gnu99',
    ],
  },
  'target_defaults': {
    'defines': [ '_GNU_SOURCE' ],
    'cflags': [ '<@(warning_cflags)', '<@(other_cflags)' ],
    'cflags_c': [ '<@(warning_cflags_c)', '<@(other_cflags_c)' ],
    'xcode_settings': {
      'GCC_GENERATE_DEBUGGING_SYMBOLS': 'NO',
      'GCC_OPTIMIZATION_LEVEL': '0',
      'WARNING_CFLAGS': [ '<@(warning_cflags)', '<@(warning_cflags_c)' ],
      'OTHER_CFLAGS': [ '<@(other_cflags)', '<@(other_cflags_c)' ],
      'OTHER_CPLUSPLUSFLAGS': [ '<@(other_cflags)' ],
    },
  },
  'targets': [
    {
      'target_name': 'liblinear',
      'type': '<(linear_library)',
      'include_dirs': [
        'include',
        'src/',
        'deps/msgpack/include',
      ],
      'dependencies': [
        'deps/libtv/deps/libuv/uv.gyp:libuv',
        'deps/libtv/tv.gyp:libtv',
      ],
      'direct_dependent_settings': {
        'include_dirs': [
          'include',
          'deps/msgpack/include',
        ],
      },
      'sources': [
        'src/addrinfo.cpp',
        'src/any.cpp',
        'src/auth_context.cpp',
        'src/auth_context_impl.cpp',
        'src/condition_variable.cpp',
        'src/error.cpp',
        'src/event_loop.cpp',
        'src/event_loop_impl.cpp',
        'src/group.cpp',
        'src/handler_delegate.cpp',
        'src/log.cpp',
        'src/log_file.cpp',
        'src/log_function.cpp',
        'src/log_stderr.cpp',
        'src/message.cpp',
        'src/mutex.cpp',
        'src/server.cpp',
        'src/socket.cpp',
        'src/socket_impl.cpp',
        'src/tcp_client.cpp',
        'src/tcp_server.cpp',
        'src/tcp_server_impl.cpp',
        'src/tcp_socket.cpp',
        'src/tcp_socket_impl.cpp',
        'src/timer.cpp',
        'src/timer_impl.cpp',
        'src/ws_client.cpp',
        'src/ws_server.cpp',
        'src/ws_server_impl.cpp',
        'src/ws_socket.cpp',
        'src/ws_socket_impl.cpp',
      ],
      'actions': [
        {
          'action_name': 'create_version_h',
          'inputs': [ 'tools/create_version_h.py', 'include/linear/version.h.in' ],
          'outputs': [ 'include/linear/version.h' ],
          'action': [ 'python', 'tools/create_version_h.py' ],
          'msvs_cygwin_shell': 0,
        },
        {
          'action_name': 'create_memory_h',
          'inputs': [ 'tools/create_memory_h.py', 'include/linear/memory.h.in' ],
          'outputs': [ 'include/linear/memory.h' ],
          'action': [ 'python', 'tools/create_memory_h.py' ],
          'msvs_cygwin_shell': 0,
        },
      ],
      'conditions': [
        [ 'with_ssl != "false"', {
          'defines': [
            'WITH_SSL',
          ],
          'sources': [
            'src/ssl_client.cpp',
            'src/ssl_context.cpp',
            'src/ssl_server.cpp',
            'src/ssl_server_impl.cpp',
            'src/ssl_socket.cpp',
            'src/ssl_socket_impl.cpp',
            'src/wss_client.cpp',
            'src/wss_server.cpp',
            'src/wss_server_impl.cpp',
            'src/wss_socket.cpp',
            'src/wss_socket_impl.cpp',
            'src/x509_certificate.cpp',
          ],
        }],
        ['OS=="win"', {
          'defines': [
            # https://msdn.microsoft.com/en-US/library/windows/desktop/aa383745(v=vs.85).aspx
            '_WIN32_WINNT=0x0600', # supports after Windows Vista
          ],
        }, { # Not Windows i.e. POSIX
          'conditions': [
            ['_type == "shared_library" and OS != "mac"', {
{'fraction_non_alphanumeric': 0.18238331050468864, 'fraction_numerical': 0.005478874723422189, 'mean_word_length': 1.946910897236883, 'pattern_counts': {'":': 0, '<': 23, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '4753559', 'n_tokens_mistral': 3414, 'n_tokens_neox': 3351, 'n_words': 377}