<commit_before>import capitalize from 'capitalize';
import {compose, equals, identity, map, difference, reject} from 'ramda';
import React from 'react';
import {connect} from 'react-redux';
import {mapIndexed} from '../../tools/indexedIterators';
import Navigation from '../organisms/Navigation';
import FullSelect from '../atoms/FullSelect';
import {Cross, Down, Plus, Up} from '../atoms/IconButtons';
import {addChannelEffect,
        addChannelSource,
        moveChannelSourceDown,
        moveChannelSourceUp,
        moveChannelEffectDown,
        moveChannelEffectUp,
        removeChannelSource,
        removeChannelEffect,
        updateSelectedAddEffect,
        updateSelectedAddSource} from '../../actions';

const targetValue = e => e.target.value;

export default connect(identity)(({channels,
                                   dispatch,
                                   effect,
                                   instruments,
                                   params: {channelId}}) => {
  const appEffects = effect.effects;
  const {effects,
         selectedAddEffect,
         selectedAddSource,
         sources} = channels[channelId];
  const availableSources = difference(instruments, sources);<commit_msg>fix issue in ChannelView component<commit_after>import capitalize from 'capitalize';
import {compose, equals, identity, map, difference, reject} from 'ramda';
import React from 'react';
import {connect} from 'react-redux';
import {mapIndexed} from '../../tools/indexedIterators';
import Navigation from '../organisms/Navigation';
import FullSelect from '../atoms/FullSelect';
import {Cross, Down, Plus, Up} from '../atoms/IconButtons';
import {addChannelEffect,
        addChannelSource,
        moveChannelSourceDown,
        moveChannelSourceUp,
        moveChannelEffectDown,
        moveChannelEffectUp,
        removeChannelSource,
        removeChannelEffect,
        updateSelectedAddEffect,
        updateSelectedAddSource} from '../../actions';

const targetValue = e => e.target.value;

export default connect(identity)(({channels,
                                   dispatch,
                                   instruments,
                                   params: {channelId},
                                   ...props}) => {
  const appEffects = props.effects;
  const {effects,
         selectedAddEffect,
         selectedAddSource,
         sources} = channels[channelId];
  const availableSources = difference(instruments, sources);
{'fraction_non_alphanumeric': 0.10024154589371981, 'fraction_numerical': 0.0, 'mean_word_length': 2.4134615384615383, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 8, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6525009', 'n_tokens_mistral': 595, 'n_tokens_neox': 584, 'n_words': 159}