<commit_before>import Ember from 'ember';
import HasGraphParent from '../mixins/graph-has-graph-parent';
import RequiresScaleSource from '../mixins/graph-requires-scale-source';
import { normalizeScale } from '../utils/nf/scale-utils';

/**
	Draws a basic line between two points on the graph. 
	@namespace components
	@class nf-svg-line
	@extends Ember.Component
	@uses mixins.graph-has-graph-parent
	@uses mixins.graph-requires-scale-source
*/
export default Ember.Component.extend(HasGraphParent, RequiresScaleSource, {
	tagName: 'line',

	classNames: ['nf-svg-line'],

	attributeBindings: ['svgX0:x0', 'svgX1:x1', 'svgY0:y0', 'svgY1:y1'],

	/**
		The domain value to plot the SVGLineElement's x0 at.
		@property x0
		@default null
	*/
	x0: null,

	/**
		The domain value to plot the SVGLineElement's x1 at.
		@property x1
		@default null
	*/
	x1: null,

	/**
		The domain value to plot the SVGLineElement's y0 at.
		@property y0
		@default null
	*/
	y0: null,

	/**
		The domain value to plot the SVGLineElement's y1 at.
		@property y1
		@default null
	*/
	y1: null,

	/**
		The pixel value to plot the SVGLineElement's x0 at.
		@property svgX0
		@type Number
	*/
	svgX0: function(){
		return normalizeScale(this.get('xScale'), this.get('x0'));
	}.property('x0', 'xScale'),
	
	/**
		The pixel value to plot the SVGLineElement's x1 at.
		@property svgX1
		@type Number
	*/
	svgX1: function(){
		return normalizeScale(this.get('xScale'), this.get('x1'));
	}.property('x1', 'xScale'),

	/**
		The pixel value to plot the SVGLineElement's y0 at.
		@property svgY0
		@type Number
	*/
	svgY0: function(){
		return normalizeScale(this.get('yScale'), this.get('y0'));
	}.property('y0', 'yScale'),
	
	/**
		The pixel value to plot the SVGLineElement's y1 at.
		@property svgY1
		@type Number
	*/
	svgY1: function(){
		return normalizeScale(this.get('yScale'), this.get('y1'));
	}.property('y1', 'yScale'),
});
<commit_msg>rename x0,y0,x1,y1 to x1,y1,x2,y2<commit_after>import Ember from 'ember';
import HasGraphParent from '../mixins/graph-has-graph-parent';
import RequiresScaleSource from '../mixins/graph-requires-scale-source';
import { normalizeScale } from '../utils/nf/scale-utils';

/**
	Draws a basic line between two points on the graph. 
	@namespace components
	@class nf-svg-line
	@extends Ember.Component
	@uses mixins.graph-has-graph-parent
	@uses mixins.graph-requires-scale-source
*/
export default Ember.Component.extend(HasGraphParent, RequiresScaleSource, {
	tagName: 'line',

	classNames: ['nf-svg-line'],

	attributeBindings: ['svgX1:x1', 'svgX2:x2', 'svgY1:y1', 'svgY2:y2'],

	/**
		The domain value to plot the SVGLineElement's x1 at.
		@property x1
		@default null
	*/
	x1: null,

	/**
		The domain value to plot the SVGLineElement's x2 at.
		@property x2
		@default null
	*/
	x2: null,

	/**
		The domain value to plot the SVGLineElement's y1 at.
		@property y1
		@default null
	*/
	y1: null,

	/**
		The domain value to plot the SVGLineElement's y2 at.
		@property y2
		@default null
	*/
	y2: null,

	/**
		The pixel value to plot the SVGLineElement's x1 at.
		@property svgX1
		@type Number
	*/
	svgX1: function(){
		return normalizeScale(this.get('xScale'), this.get('x1'));
	}.property('x1', 'xScale'),
	
	/**
		The pixel value to plot the SVGLineElement's x2 at.
		@property svgX2
		@type Number
	*/
	svgX2: function(){
		return normalizeScale(this.get('xScale'), this.get('x2'));
	}.property('x2', 'xScale'),

	/**
		The pixel value to plot the SVGLineElement's y1 at.
		@property svgY1
		@type Number
	*/
	svgY1: function(){
		return normalizeScale(this.get('yScale'), this.get('y1'));
	}.property('y1', 'yScale'),
	
	/**
		The pixel value to plot the SVGLineElement's y2 at.
		@property svgY2
		@type Number
	*/
	svgY2: function(){
		return normalizeScale(this.get('yScale'), this.get('y2'));
	}.property('y2', 'yScale'),
});

{'fraction_non_alphanumeric': 0.1525687597301505, 'fraction_numerical': 0.022833419823559936, 'mean_word_length': 3.8921319796954315, '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': '229372', 'n_tokens_mistral': 1512, 'n_tokens_neox': 1400, 'n_words': 381}