<commit_before>FROM rocker/hadleyverse
MAINTAINER <NAME> <<EMAIL>>

## Install OHDSI R packages
RUN installGithub.r \
	OHDSI/SqlRender \
	OHDSI/DatabaseConnector \
	OHDSI/Cyclops \
	OHDSI/CohortMethod \
	OHDSI/PublicOracle \
&& rm -rf /tmp/downloaded_packages/ /tmp/*.rds

## Install Rserve
RUN install2.r \
	Rserve \
	RSclient \
&& rm -rf /tmp/download_packages/ /tmp/*.rds

COPY Rserv.conf /etc/Rserv.conf
COPY startRserve.R /usr/local/bin/startRserve.R

EXPOSE 6311

RUN echo "" >> /etc/supervisor/conf.d/supervisord.conf \
	&& echo "[program:Rserve]" >> /etc/supervisor/conf.d/supervisord.conf \
	&& echo "command=/usr/local/bin/startRserve.R" >> /etc/supervisor/conf.d/supervisord.conf \
	&& echo "stdout_logfile=/var/log/supervisor/%(program_name)s.log" >> /etc/supervisor/conf.d/supervisord.conf \
	&& echo "stderr_logfile=/var/log/supervisor/%(program_name)s.log" >> /etc/supervisor/conf.d/supervisord.conf

CMD ["/usr/bin/supervisord", "-c", "/etc/supervisor/conf.d/supervisord.conf"]

<commit_msg>updated CohortMethod dependencies<commit_after>FROM rocker/hadleyverse
MAINTAINER <NAME> <<EMAIL>>

## Install OHDSI R packages
RUN installGithub.r \
	OHDSI/SqlRender \
	OHDSI/DatabaseConnector \
	OHDSI/Cyclops \
	OHDSI/OhdsiRTools \
	OHDSI/PatientLevelPrediction \
	OHDSI/CohortMethod \
	OHDSI/PublicOracle \
&& rm -rf /tmp/downloaded_packages/ /tmp/*.rds

## Install Rserve
RUN install2.r \
	Rserve \
	RSclient \
&& rm -rf /tmp/download_packages/ /tmp/*.rds

COPY Rserv.conf /etc/Rserv.conf
COPY startRserve.R /usr/local/bin/startRserve.R

EXPOSE 6311

RUN echo "" >> /etc/supervisor/conf.d/supervisord.conf \
	&& echo "[program:Rserve]" >> /etc/supervisor/conf.d/supervisord.conf \
	&& echo "command=/usr/local/bin/startRserve.R" >> /etc/supervisor/conf.d/supervisord.conf \
	&& echo "stdout_logfile=/var/log/supervisor/%(program_name)s.log" >> /etc/supervisor/conf.d/supervisord.conf \
	&& echo "stderr_logfile=/var/log/supervisor/%(program_name)s.log" >> /etc/supervisor/conf.d/supervisord.conf

CMD ["/usr/bin/supervisord", "-c", "/etc/supervisor/conf.d/supervisord.conf"]


{'fraction_non_alphanumeric': 0.1638715860086248, 'fraction_numerical': 0.004791566842357451, 'mean_word_length': 4.0071942446043165, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 29, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1391592', 'n_tokens_mistral': 839, 'n_tokens_neox': 816, 'n_words': 118}