<commit_before>{
	"includes": [
		"mongo_src_list.gypi",
		"libstemmer_src_list.gypi",
		"s2_src_list.gypi",
	],
	"variables": {
		"third_party_src_dir": "third_party/mongo/src/third_party",
		"third_party_dest_dir": "<(LIB_DIR)/third_party",
		"mongo_src_dir": "third_party/mongo/src/mongo",
		"mongo_dest_dir": "<(LIB_DIR)/mongo",
		"mongo_generate_src_dir": "third_party/need_to_generate/mongo",
		"boost_dir": "<(third_party_dest_dir)/boost",
		"libstemmer_dir": "<(third_party_dest_dir)/libstemmer_c",
		"murmurhash3_dir": "<(third_party_dest_dir)/murmurhash3",
		"s2_dir": "<(third_party_dest_dir)/s2",
		# TEMP TODO: get the compiler flags by using mongo's buildinfo.cpp.
		# TEMP TODO: make sure we are using the same allocator.
		"mongo_cflags_cc": [
			"-Wnon-virtual-dtor",
			"-Woverloaded-virtual",
		],
		"mongo_cflags": [
			"-Wno-ignored-qualifiers",
			"-Wno-extra",
			"-fPIC",
			"-fno-strict-aliasing",
			"-ggdb",
			"-pthread",
			"-Wall",
			"-Wsign-compare",
			"-Wno-unknown-pragmas",
			"-Winvalid-pch",
			"-pipe",
			"-Werror",
			"-Wno-unused-local-typedefs",
			"-Wno-unused-function",
			"-Wno-deprecated-declarations",
			"-fno-builtin-memcmp",
		],
		"mongo_cflags_exclude": [
			"-fno-exceptions", "-fno-rtti", # These are macos/xcode defaults and need to be put in an appropriate block.
			"-Wextra"										# Somehow this is getting set and overriding the -Wno-extra in mongo_cflags
		],
		"mongo_cflags_exclude_cc": [ "<@(mongo_cflags_exclude)" ], # These are macos/xcode defaults and need to be put in an appropriate block.
		"mongo_defines": [],# "MONGO_EXPOSE_MACROS=1", "LIBMONGOCLIENT_BUILDING=1" ],
		"mongo_defines_exclude": [ "_DEBUG" ],  # Prevent mutexDebugger from being included.  Debug build of mongo doesn"t seem to include it.

	},
	"target_defaults": {
		"defines": [
			"<@(mongo_defines)",
			"MONGO_EXPOSE_MACROS=1", "LIBMONGOCLIENT_BUILDING=1"
		],
		"defines!": [ "<@(mongo_defines_exclude)" ],
		"cflags": [ "<@(mongo_cflags)" ],
		"cflags!": [ "<@(mongo_cflags_exclude)" ],
		"cflags_cc": [ "<@(mongo_cflags_cc)" ],
		"cflags_cc!": [ "<@(mongo_cflags_exclude_cc)" ],
		"include_dirs": [
			"<(boost_dir)",
			"<(mongo_dest_dir)",
			"<(s2_dir)",
			"<(LIB_DIR)",	# It uses mongo/util/log.h
		],
		"configurations": {
			"Debug": {
				"cflags!": [ "-O2" ],
				"cflags": [
					"-ggdb",
					"-g3", "-O0"
				]
			},
			"Release": {
				"cflags": [
					"-O2"
				]
			}
		},
		"conditions": [
			["OS=='mac'", {
				"xcode_settings": {
					"GCC_ENABLE_CPP_EXCEPTIONS": "YES",
					"GCC_ENABLE_CPP_RTTI": "YES"
				}
			}],
			["OS=='linux'", {
				"defines":[
					"MONGO_HAVE_EXECINFO_BACKTRACE=1",  # TODO: need to only set this if <execinfo.h> is present on the system.
				],
			}]
		],
	},
	"targets": [
		{
			"target_name": "clone_mongo_src",
			"type": "none",
			"actions": [
				{
					"action_name": "clone",<commit_msg>Use the right OS name for OS X.<commit_after>{
	"includes": [
		"mongo_src_list.gypi",
		"libstemmer_src_list.gypi",
		"s2_src_list.gypi",
	],
	"variables": {
		"third_party_src_dir": "third_party/mongo/src/third_party",
		"third_party_dest_dir": "<(LIB_DIR)/third_party",
		"mongo_src_dir": "third_party/mongo/src/mongo",
		"mongo_dest_dir": "<(LIB_DIR)/mongo",
		"mongo_generate_src_dir": "third_party/need_to_generate/mongo",
		"boost_dir": "<(third_party_dest_dir)/boost",
		"libstemmer_dir": "<(third_party_dest_dir)/libstemmer_c",
		"murmurhash3_dir": "<(third_party_dest_dir)/murmurhash3",
		"s2_dir": "<(third_party_dest_dir)/s2",
		# TEMP TODO: get the compiler flags by using mongo's buildinfo.cpp.
		# TEMP TODO: make sure we are using the same allocator.
		"mongo_cflags_cc": [
			"-Wnon-virtual-dtor",
			"-Woverloaded-virtual",
		],
		"mongo_cflags": [
			"-Wno-ignored-qualifiers",
			"-Wno-extra",
			"-fPIC",
			"-fno-strict-aliasing",
			"-ggdb",
			"-pthread",
			"-Wall",
			"-Wsign-compare",
			"-Wno-unknown-pragmas",
			"-Winvalid-pch",
			"-pipe",
			"-Werror",
			"-Wno-unused-local-typedefs",
			"-Wno-unused-function",
			"-Wno-deprecated-declarations",
			"-fno-builtin-memcmp",
		],
		"mongo_cflags_exclude": [
			"-fno-exceptions", "-fno-rtti", # These are macos/xcode defaults and need to be put in an appropriate block.
			"-Wextra"										# Somehow this is getting set and overriding the -Wno-extra in mongo_cflags
		],
		"mongo_cflags_exclude_cc": [ "<@(mongo_cflags_exclude)" ], # These are macos/xcode defaults and need to be put in an appropriate block.
		"mongo_defines": [],# "MONGO_EXPOSE_MACROS=1", "LIBMONGOCLIENT_BUILDING=1" ],
		"mongo_defines_exclude": [ "_DEBUG" ],  # Prevent mutexDebugger from being included.  Debug build of mongo doesn"t seem to include it.

	},
	"target_defaults": {
		"defines": [
			"<@(mongo_defines)",
			"MONGO_EXPOSE_MACROS=1", "LIBMONGOCLIENT_BUILDING=1"
		],
		"defines!": [ "<@(mongo_defines_exclude)" ],
		"cflags": [ "<@(mongo_cflags)" ],
		"cflags!": [ "<@(mongo_cflags_exclude)" ],
		"cflags_cc": [ "<@(mongo_cflags_cc)" ],
		"cflags_cc!": [ "<@(mongo_cflags_exclude_cc)" ],
		"include_dirs": [
			"<(boost_dir)",
			"<(mongo_dest_dir)",
			"<(s2_dir)",
			"<(LIB_DIR)",	# It uses mongo/util/log.h
		],
		"configurations": {
			"Debug": {
				"cflags!": [ "-O2" ],
				"cflags": [
					"-ggdb",
					"-g3", "-O0"
				]
			},
			"Release": {
				"cflags": [
					"-O2"
				]
			}
		},
		"conditions": [
			["OS=='darwin' or OS=='mac'", {
				"xcode_settings": {
					"GCC_ENABLE_CPP_EXCEPTIONS": "YES",
					"GCC_ENABLE_CPP_RTTI": "YES"
				}
			}],
			["OS=='linux'", {
				"defines":[
					"MONGO_HAVE_EXECINFO_BACKTRACE=1",  # TODO: need to only set this if <execinfo.h> is present on the system.
				],
			}]
		],
	},
	"targets": [
		{
			"target_name": "clone_mongo_src",
			"type": "none",
			"actions": [
				{
					"action_name": "clone",
{'fraction_non_alphanumeric': 0.19254551700446582, 'fraction_numerical': 0.005152868430092752, 'mean_word_length': 3.6771084337349396, 'pattern_counts': {'":': 82, '<': 39, '<?xml version=': 0, '>': 5, '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': '6367987', 'n_tokens_mistral': 2845, 'n_tokens_neox': 2389, 'n_words': 390}