<commit_before>﻿using UnityEngine;
using UnityEngine.Networking;
using System.Collections.Generic;

#if UNITY_EDITOR
using UnityEditor;
#endif

public class CameraPanning : MonoBehaviour {
	[SerializeField]
	private bool panningEnableFlag;
	[SerializeField]
	private bool mouseInFocusFlag;
	[SerializeField]
	private bool cameraZoomingFlag;

	public readonly float aspectRatio = (float) Screen.currentResolution.width / (float) Screen.currentResolution.height;
	public int marginSize = 15;
	public bool useDebugSceneCameraBorder = true;
	public float cameraSpeed = 1f;
	public int zoomLevel = 3;

	//Some fancy way of using the C# setter/getter code design pattern. Note that the actual variables for storing data has FLAG suffixes.

	public bool cameraPanning {
		set {
			this.panningEnableFlag = value;
		}
		get {
			return this.panningEnableFlag;
		}
	}

	public bool cameraZooming {
		set {
			this.cameraZoomingFlag = value;
		}
		get {
			return this.cameraZoomingFlag;
		}
	}

	public bool mouseInFocus {
		set {
			this.mouseInFocusFlag = value;
		}
		get {
			return this.mouseInFocusFlag;
		}
	}

	public float aspectRatioMarginSize {
		get {
			return this.marginSize * this.aspectRatio;
		}
	}

	public void Start() {
		this.mouseInFocusFlag = true;
		this.cameraZoomingFlag = true;
	}

	public void OnApplicationFocus(bool focus) {
		this.mouseInFocus = focus;
		this.cameraPanning = focus;
		this.cameraZooming = focus;
	}

	public void Update() {
		CameraZoomMethod();
		CameraPanMethod();
	}

	public void CameraPanMethod() {
		if (this.panningEnableFlag && this.mouseInFocusFlag) {
			Vector2 mousePosition = Input.mousePosition;<commit_msg>Making sure this is commited.<commit_after>﻿using UnityEngine;
using UnityEngine.Networking;
using System.Collections.Generic;

#if UNITY_EDITOR
using UnityEditor;
#endif

public class CameraPanning : MonoBehaviour {
	[SerializeField]
	private bool panningEnableFlag;
	[SerializeField]
	private bool mouseInFocusFlag;
	[SerializeField]
	private bool cameraZoomingFlag;

	public readonly float aspectRatio = (float) Screen.currentResolution.width / (float) Screen.currentResolution.height;
	public int marginSize = 15;
	public bool useDebugSceneCameraBorder = true;
	public float cameraSpeed = 1f;
	public int zoomLevel = 3;

	//Some fancy way of using the C# setter/getter code design pattern. Note that the actual variables for storing data has FLAG suffixes.

	public bool cameraPanning {
		set {
			this.panningEnableFlag = value;
		}
		get {
			return this.panningEnableFlag;
		}
	}

	public bool cameraZooming {
		set {
			this.cameraZoomingFlag = value;
		}
		get {
			return this.cameraZoomingFlag;
		}
	}

	public bool mouseInFocus {
		set {
			this.mouseInFocusFlag = value;
		}
		get {
			return this.mouseInFocusFlag;
		}
	}

	public float aspectRatioMarginSize {
		get {
			return this.marginSize * this.aspectRatio;
		}
	}

	public void Start() {
		this.mouseInFocusFlag = true;
		this.cameraZoomingFlag = true; 
	}

	public void OnApplicationFocus(bool focus) {
		this.mouseInFocus = focus;
		this.cameraPanning = focus;
		this.cameraZooming = focus;
	}

	public void Update() {
		CameraZoomMethod();
		CameraPanMethod();
	}

	public void CameraPanMethod() {
		if (this.panningEnableFlag && this.mouseInFocusFlag) {
			Vector2 mousePosition = Input.mousePosition;
{'fraction_non_alphanumeric': 0.08181000899011087, 'fraction_numerical': 0.0029967036260113876, 'mean_word_length': 4.127496159754224, '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': '4016167', 'n_tokens_mistral': 1148, 'n_tokens_neox': 1044, 'n_words': 279}