<commit_before>CXXFLAGS := -Werror \
	-pthread \
	-fno-exceptions \
	-fno-strict-aliasing \
	-Wall \
	-Wno-unused-parameter \
	-Wno-missing-field-initializers \
	-fvisibility=hidden \
	-pipe \
	-fPIC \
	-pthread \
	-D_REENTRANT \
	-I/usr/include/gtk-2.0 \
	-I/usr/lib/gtk-2.0/include \
	-I/usr/include/atk-1.0 \
	-I/usr/include/cairo \
	-I/usr/include/pango-1.0 \
	-I/usr/include/gio-unix-2.0/ \
	-I/usr/include/glib-2.0 \
	-I/usr/lib/glib-2.0/include \
	-I/usr/include/pixman-1 \
	-I/usr/include/freetype2 \
	-I/usr/include/directfb \
	-I/usr/include/libpng12 \
	-I../cef \
	-O2 \
	-fno-ident \
	-fdata-sections \
	-ffunction-sections \
	-fno-rtti \
	-fno-threadsafe-statics \
	-fvisibility-inlines-hidden \
	-Wsign-compare

LDFLAGS := -pthread \
	-Wl,-z,noexecstack \
	-fPIC \
	-Llib \
	-Wl,-O1 \
	-Wl,--as-needed \
	-Wl,--gc-sections \

LIBS := -lX11 \
	-lgtk-x11-2.0 \
	-lgdk-x11-2.0 \
	-latk-1.0 \
	-lgio-2.0 \
	-lpangoft2-1.0 \
	-lgdk_pixbuf-2.0 \
	-lm \
	-lpangocairo-1.0 \
	-lcairo \
	-lpango-1.0 \
	-lfreetype \
	-lfontconfig \
	-lgobject-2.0 \
	-lgmodule-2.0 \
	-lgthread-2.0 \
	-lrt \
	-lglib-2.0 \
	-lcef \
	-lcef_dll_wrapper

SOURCES=atom.cpp cefclient.cpp native_handler.cpp cefclient_switches.cpp client_handler.cpp client_handler_gtk.cpp
OBJECTS=$(SOURCES:.cpp=.o)
INSTALLDIR=/usr/local/atom

all:
	g++ $(CXXFLAGS) -c $(SOURCES)
	mkdir -p bin
	cp chrome.pak bin/
	cp -R locales bin/
	cp atom.png bin/
	g++ -o bin/atom $(OBJECTS) $(LDFLAGS) $(LIBS)

clean:
	rm -rf bin *.o

install:
	sudo mkdir -p $(INSTALLDIR)
	sudo cp -R bin $(INSTALLDIR)
	sudo cp -R lib $(INSTALLDIR)
	sudo cp atom $(INSTALLDIR)
	sudo cp -R ../src $(INSTALLDIR)
	sudo cp -R ../static $(INSTALLDIR)
	sudo cp -R ../vendor $(INSTALLDIR)
	sudo cp ../index.html $(INSTALLDIR)
	sudo ln -sf $(INSTALLDIR)/atom /usr/local/bin/atom
<commit_msg>Don't do the sudo'ing in the Makefile<commit_after>CXXFLAGS := -Werror \
	-pthread \
	-fno-exceptions \
	-fno-strict-aliasing \
	-Wall \
	-Wno-unused-parameter \
	-Wno-missing-field-initializers \
	-fvisibility=hidden \
	-pipe \
	-fPIC \
	-pthread \
	-D_REENTRANT \
	-I/usr/include/gtk-2.0 \
	-I/usr/lib/gtk-2.0/include \
	-I/usr/include/atk-1.0 \
	-I/usr/include/cairo \
	-I/usr/include/pango-1.0 \
	-I/usr/include/gio-unix-2.0/ \
	-I/usr/include/glib-2.0 \
	-I/usr/lib/glib-2.0/include \
	-I/usr/include/pixman-1 \
	-I/usr/include/freetype2 \
	-I/usr/include/directfb \
	-I/usr/include/libpng12 \
	-I../cef \
	-O2 \
	-fno-ident \
	-fdata-sections \
	-ffunction-sections \
	-fno-rtti \
	-fno-threadsafe-statics \
	-fvisibility-inlines-hidden \
	-Wsign-compare

LDFLAGS := -pthread \
	-Wl,-z,noexecstack \
	-fPIC \
	-Llib \
	-Wl,-O1 \
	-Wl,--as-needed \
	-Wl,--gc-sections \

LIBS := -lX11 \
	-lgtk-x11-2.0 \
	-lgdk-x11-2.0 \
	-latk-1.0 \
	-lgio-2.0 \
	-lpangoft2-1.0 \
	-lgdk_pixbuf-2.0 \
	-lm \
	-lpangocairo-1.0 \
	-lcairo \
	-lpango-1.0 \
	-lfreetype \
	-lfontconfig \
	-lgobject-2.0 \
	-lgmodule-2.0 \
	-lgthread-2.0 \
	-lrt \
	-lglib-2.0 \
	-lcef \
	-lcef_dll_wrapper

SOURCES=atom.cpp cefclient.cpp native_handler.cpp cefclient_switches.cpp client_handler.cpp client_handler_gtk.cpp
OBJECTS=$(SOURCES:.cpp=.o)
INSTALLDIR=/usr/local/atom

all:
	g++ $(CXXFLAGS) -c $(SOURCES)
	mkdir -p bin
	cp chrome.pak bin/
	cp -R locales bin/
	cp atom.png bin/
	g++ -o bin/atom $(OBJECTS) $(LDFLAGS) $(LIBS)

clean:
	rm -rf bin *.o

install:
	mkdir -p $(INSTALLDIR)
	cp -R bin $(INSTALLDIR)
	cp -R lib $(INSTALLDIR)
	cp atom $(INSTALLDIR)
	cp -R ../src $(INSTALLDIR)
	cp -R ../static $(INSTALLDIR)
	cp -R ../vendor $(INSTALLDIR)
	cp ../index.html $(INSTALLDIR)
	ln -sf $(INSTALLDIR)/atom /usr/local/bin/atom

{'fraction_non_alphanumeric': 0.1927644297155482, 'fraction_numerical': 0.028169014084507043, 'mean_word_length': 2.251346499102334, 'pattern_counts': {'":': 0, '<': 3, '<?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': '3580572', 'n_tokens_mistral': 1846, 'n_tokens_neox': 1750, 'n_words': 283}