<commit_before>/*
 * LayeredImage.h
 *
 *  Created on: Jul 11, 2017
 *      Author: kbmod-usr
 */

#ifndef LAYEREDIMAGE_H_
#define LAYEREDIMAGE_H_

#include <vector>
#include <fitsio.h>
#include <iostream>
#include <string>
#include <random>
#include <assert.h>
#include <stdexcept>
#include "RawImage.h"
#include "common.h"

namespace kbmod {

class LayeredImage : public ImageBase {
public:
	LayeredImage(std::string path);
	LayeredImage(std::string name, int w, int h,
			float noiseStDev, float variance, double time);
	void applyMaskFlags(int flag, std::vector<int> exceptions);
	void applyMasterMask(RawImage masterMask);
	void subtractTemplate(RawImage subTemplate);
	void addObject(float x, float y, float flux, PointSpreadFunc psf);
	void maskObject(float x, float y, PointSpreadFunc psf);
	void saveLayers(std::string path);
	void saveSci(std::string path);
 	void saveMask(std::string path);
	void saveVar(std::string path);
	void setScience(RawImage& im);
	void setMask(RawImage& im);
	void setVariance(RawImage& im);
	RawImage& getScience();
	RawImage& getMask();
	RawImage& getVariance();<commit_msg>added spacing<commit_after>/*
 * LayeredImage.h
 *
 *  Created on: Jul 11, 2017
 *      Author: kbmod-usr
 */

#ifndef LAYEREDIMAGE_H_
#define LAYEREDIMAGE_H_

#include <vector>
#include <fitsio.h>
#include <iostream>
#include <string>
#include <random>
#include <assert.h>
#include <stdexcept>
#include "RawImage.h"
#include "common.h"

namespace kbmod {

class LayeredImage : public ImageBase {
public:
	LayeredImage(std::string path);
	LayeredImage(std::string name, int w, int h,
		float noiseStDev, float pixelVariance, double time);
	void applyMaskFlags(int flag, std::vector<int> exceptions);
	void applyMasterMask(RawImage masterMask);
	void subtractTemplate(RawImage subTemplate);
	void addObject(float x, float y, float flux, PointSpreadFunc psf);
	void maskObject(float x, float y, PointSpreadFunc psf);
	void saveLayers(std::string path);
	void saveSci(std::string path);
 	void saveMask(std::string path);
	void saveVar(std::string path);
	void setScience(RawImage& im);
	void setMask(RawImage& im);
	void setVariance(RawImage& im);
	RawImage& getScience();
	RawImage& getMask();
	RawImage& getVariance();
{'fraction_non_alphanumeric': 0.12275985663082438, 'fraction_numerical': 0.005376344086021506, 'mean_word_length': 6.088888888888889, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 19, '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': '7117811', 'n_tokens_mistral': 800, 'n_tokens_neox': 763, 'n_words': 212}