<commit_before>import React, {
    Component,
    PropTypes
} from 'react-native';
import {NativeGroup} from './G';
import extractProps from '../lib/extract/extractProps';
import {ImageAttributes} from '../lib/attributes';
import Rect from './Rect';
import {numberProp} from '../lib/props';
import resolveAssetSource from 'react-native/Libraries/Image/resolveAssetSource';
import createReactNativeComponentClass from 'react-native/Libraries/ReactNative/createReactNativeComponentClass';
import formatPercentageProps from '../lib/formatPercentageProps';

class Image extends Component{
    static displayName = 'Image';
    static propTypes = {
        x: numberProp,
        y: numberProp,
        width: numberProp,
        height: numberProp,
        href: PropTypes.number.isRequired
        //preserveAspectRatio: PropTypes.string
    };


    render() {
        return <RNSVGImage
            {...extractProps(this.props, {transform: true})}
            layout={formatPercentageProps(this.props, ['x', 'y', 'width', 'height'])}
            src={resolveAssetSource(this.props.href)}
        />;
    }
}

let RNSVGImage = createReactNativeComponentClass({
    validAttributes: ImageAttributes,
    uiViewClassName: 'RNSVGImage'
});
<commit_msg>fix lint warnings<commit_after>import React, {
    Component,
    PropTypes
} from 'react-native';
import extractProps from '../lib/extract/extractProps';
import {ImageAttributes} from '../lib/attributes';
import {numberProp} from '../lib/props';
import resolveAssetSource from 'react-native/Libraries/Image/resolveAssetSource';
import createReactNativeComponentClass from 'react-native/Libraries/ReactNative/createReactNativeComponentClass';
import formatPercentageProps from '../lib/formatPercentageProps';

class Image extends Component{
    static displayName = 'Image';
    static propTypes = {
        x: numberProp,
        y: numberProp,
        width: numberProp,
        height: numberProp,
        href: PropTypes.number.isRequired
        //preserveAspectRatio: PropTypes.string
    };


    render() {
        return <RNSVGImage
            {...extractProps(this.props, {transform: true})}
            layout={formatPercentageProps(this.props, ['x', 'y', 'width', 'height'])}
            src={resolveAssetSource(this.props.href)}
        />;
    }
}

let RNSVGImage = createReactNativeComponentClass({
    validAttributes: ImageAttributes,
    uiViewClassName: 'RNSVGImage'
});

{'fraction_non_alphanumeric': 0.12059064807219032, 'fraction_numerical': 0.0, 'mean_word_length': 3.541899441340782, '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': '7202297', 'n_tokens_mistral': 661, 'n_tokens_neox': 668, 'n_words': 150}