<commit_before>import { createSelector } from 'reselect';
import { TAG_FILTER, TYPE_FILTER, SEARCH_FILTER } from './constants';
import { MODULE_TYPE_UNTRANSLATED, MODULE_TYPE_FULL, MODULE_TYPE_SNAPSHOT, MODULE_TYPE_GALLERY } from 'components/CommonComponents/constants';
import { SORT_NEWEST, SORT_ALPHABETICAL } from 'containers/ToolsSortOptions/constants';
import {slugify} from 'utils/tags';

/**
 * Direct selector to the homePage state domain
 */
const selectHomePageDomain = () => (state) => state.get('homePage');

/**
 * Other specific selectors
 */
 const selectGlobal = (state) => { return state.get('global') };
 const selectToolsView = (state) => { return state.get('toolsView') }
 const selectLanguage = (state) => state.get('language');
 const selectSearchField = (state) => state.get('searchField');

 const selectFilter = (state, props) => { return props.params.filter; }
 const selectLabel = (state, props) => { return props.params.label; }
 const selectRegion = (state, props) => { return props.params.region; }

 const allTags = createSelector(
   [selectGlobal],
   (globalState) => {
     let appData = globalState.getIn(['appData', 'information']);

     if (appData) {
       let tags = appData.find(item => item['type'] == 'text' && item['slug'] == 'tags');
       console.log(tags);
       return tags;
     }
   }
 );

 const isFullTool = (item, lang) => {
  return item['module-type-effective'] === MODULE_TYPE_GALLERY
         || item['module-type-effective'] === MODULE_TYPE_FULL;
 }

const isSearchItem = (item, lang) => {
  return item['module-type-effective'] === MODULE_TYPE_GALLERY
         || item['module-type-effective'] === MODULE_TYPE_FULL
         || item['module-type-effective'] === MODULE_TYPE_SNAPSHOT;
}<commit_msg>Remove logs<commit_after>import { createSelector } from 'reselect';
import { TAG_FILTER, TYPE_FILTER, SEARCH_FILTER } from './constants';
import { MODULE_TYPE_UNTRANSLATED, MODULE_TYPE_FULL, MODULE_TYPE_SNAPSHOT, MODULE_TYPE_GALLERY } from 'components/CommonComponents/constants';
import { SORT_NEWEST, SORT_ALPHABETICAL } from 'containers/ToolsSortOptions/constants';
import {slugify} from 'utils/tags';

/**
 * Direct selector to the homePage state domain
 */
const selectHomePageDomain = () => (state) => state.get('homePage');

/**
 * Other specific selectors
 */
 const selectGlobal = (state) => { return state.get('global') };
 const selectToolsView = (state) => { return state.get('toolsView') }
 const selectLanguage = (state) => state.get('language');
 const selectSearchField = (state) => state.get('searchField');

 const selectFilter = (state, props) => { return props.params.filter; }
 const selectLabel = (state, props) => { return props.params.label; }
 const selectRegion = (state, props) => { return props.params.region; }

 const allTags = createSelector(
   [selectGlobal],
   (globalState) => {
     let appData = globalState.getIn(['appData', 'information']);

     if (appData) {
       let tags = appData.find(item => item['type'] == 'text' && item['slug'] == 'tags');
       return tags;
     }
   }
 );

 const isFullTool = (item, lang) => {
  return item['module-type-effective'] === MODULE_TYPE_GALLERY
         || item['module-type-effective'] === MODULE_TYPE_FULL;
 }

const isSearchItem = (item, lang) => {
  return item['module-type-effective'] === MODULE_TYPE_GALLERY
         || item['module-type-effective'] === MODULE_TYPE_FULL
         || item['module-type-effective'] === MODULE_TYPE_SNAPSHOT;
}
{'fraction_non_alphanumeric': 0.15693012600229095, 'fraction_numerical': 0.0, 'mean_word_length': 4.518167456556082, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 29, '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': '5199081', 'n_tokens_mistral': 1046, 'n_tokens_neox': 1070, 'n_words': 234}