<commit_before>#
#  Copyright 2007 Google Inc.
#
#  Licensed under the Apache License, Version 2.0 (the "License");
#  you may not use this file except in compliance with the License.
#  You may obtain a copy of the License at
#
#       http://www.apache.org/licenses/LICENSE-2.0
#
#  Unless required by applicable law or agreed to in writing, software
#  distributed under the License is distributed on an "AS IS" BASIS,
#  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
#  See the License for the specific language governing permissions and
#  limitations under the License.
#

SET(SMJS_DEFINITIONS -DJS_THREADSAFE) # TODO: 
SET(SMJS_LIBRARIES smjs)  # TODO: 
SET(SMJS_LIBRARY )        # TODO:
SET(SMJS_INCLUDE_DIR /usr/include/smjs)     # TODO: 
IF(UNIX)
  SET(SMJS_DEFINITIONS ${SMJS_DEFINITIONS} -DXP_UNIX) # TODO: 
ENDIF(UNIX)

INCLUDE_DIRECTORIES(${SMJS_INCLUDE_DIR})
ADD_DEFINITIONS(${SMJS_DEFINITIONS})

ADD_SUBDIRECTORY(tests)

SET(SRCS
  converter.cc
  native_js_wrapper.cc
)<commit_msg>Modified the CMakeLists.txt so that the developer could specify the location of SpiderMonkey.<commit_after>#
#  Copyright 2007 Google Inc.
#
#  Licensed under the Apache License, Version 2.0 (the "License");
#  you may not use this file except in compliance with the License.
#  You may obtain a copy of the License at
#
#       http://www.apache.org/licenses/LICENSE-2.0
#
#  Unless required by applicable law or agreed to in writing, software
#  distributed under the License is distributed on an "AS IS" BASIS,
#  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
#  See the License for the specific language governing permissions and
#  limitations under the License.
#

SET(SMJS_THREADSAFE TRUE
  CACHE BOOL
  "Whether SpiderMonkey library is compiled with thread-safe support") # TODO: 
SET(SMJS_DEFINITIONS ""
  CACHE STRING
  "Macro definitions for SpiderMonkey") # TODO: 
SET(SMJS_LIBRARIES smjs
  CACHE STRING
  "The libraries to link when using SpiderMonkey")  # TODO: 
SET(SMJS_LIBRARY_DIR ""
  CACHE PATH
  "The location of the SpiderMonkey library directory")        # TODO:
SET(SMJS_INCLUDE_DIR /usr/include/smjs
  CACHE PATH
  "The location of the SpiderMonkey include directory")     # TODO: 
IF(SMJS_THREADSAFE)
  SET(SMJS_DEFINITIONS ${SMJS_DEFINITIONS} -DJS_THREADSAFE) # TODO: 
ENDIF(SMJS_THREADSAFE)

IF(UNIX)
  SET(SMJS_DEFINITIONS ${SMJS_DEFINITIONS} -DXP_UNIX)
ENDIF(UNIX)

INCLUDE_DIRECTORIES(${SMJS_INCLUDE_DIR})
ADD_DEFINITIONS(${SMJS_DEFINITIONS})

ADD_SUBDIRECTORY(tests)

SET(SRCS
  converter.cc
  native_js_wrapper.cc
)
{'fraction_non_alphanumeric': 0.08160123171670516, 'fraction_numerical': 0.006158583525789068, 'mean_word_length': 4.57725321888412, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, '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': '6796935', 'n_tokens_mistral': 897, 'n_tokens_neox': 846, 'n_words': 274}