<commit_before>using System;
using MonoTouch.UIKit;
using Eto.Forms;

namespace Eto.Platform.iOS.Forms.Controls
{
	public class SliderHandler : iosControl<UISlider, Slider>, ISlider
	{
		public override UISlider CreateControl ()
		{
			return new UISlider ();
		}

		public override void Initialize ()
		{
			base.Initialize ();
			MaxValue = 100;
		}

		public int MaxValue {
			get { return (int)Control.MaxValue; }
			set { Control.MaxValue = value; }
		}

		public int MinValue {
			get { return (int)Control.MinValue; }
			set { Control.MinValue = value; }
		}

		public int Value {
			get { return (int)Control.Value; }
			set { Control.Value = value; }
		}

		public int TickFrequency {
			get;
			set;
		}

		public bool SnapToTick {
			get;
			set;
		}

		public SliderOrientation Orientation {
			get;
			set;
		}
	}
}

<commit_msg>iOS: Slider implements orientation<commit_after>using System;
using MonoTouch.UIKit;
using Eto.Forms;
using MonoTouch.CoreGraphics;

namespace Eto.Platform.iOS.Forms.Controls
{
	public class SliderHandler : iosControl<UISlider, Slider>, ISlider
	{
		SliderOrientation orientation;

		public override UISlider CreateControl ()
		{
			return new UISlider ();
		}

		public override void Initialize ()
		{
			base.Initialize ();
			MaxValue = 100;
		}

		public int MaxValue {
			get { return (int)Control.MaxValue; }
			set { Control.MaxValue = value; }
		}

		public int MinValue {
			get { return (int)Control.MinValue; }
			set { Control.MinValue = value; }
		}

		public int Value {
			get { return (int)Control.Value; }
			set { Control.Value = value; }
		}

		public int TickFrequency {
			get;
			set;
		}

		public bool SnapToTick {
			get;
			set;
		}

		public SliderOrientation Orientation {
			get { return orientation; }
			set {
				if (orientation != value) {
					orientation = value;
					switch (value) {
					case SliderOrientation.Horizontal:
						Control.Transform = new CGAffineTransform();
						break;
					case SliderOrientation.Vertical:
						Control.Transform = CGAffineTransform.MakeRotation ((float)Math.PI * -0.5f);
						break;
					default:
						throw new NotSupportedException ();
					}
				}
			}
		}
	}
}


{'fraction_non_alphanumeric': 0.10251716247139588, 'fraction_numerical': 0.0036613272311212816, 'mean_word_length': 2.8690265486725663, 'pattern_counts': {'":': 0, '<': 5, '<?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': '4819741', 'n_tokens_mistral': 902, 'n_tokens_neox': 712, 'n_words': 173}