<commit_before>import React, { Component } from 'react';
import { Route, Link } from 'react-router-dom';
import { uxToHex } from '/lib/util.js';

export class GroupDetail extends Component {
  render() {
    const { props } = this;

    let responsiveClass =
      props.activeDrawer === "detail" ? "db" : "dn db-ns";

    let groupPath = props.path || "";
    let channelsForGroup = (groupPath in props.associations) ?
      props.associations[groupPath] : {};
    

    let isEmpty = Object.keys(channelsForGroup).length === 0;
    let channelList = (<div />);

    channelList = Object.keys(channelsForGroup).map((key) => {
      let channel = channelsForGroup[key];
      if (!('metadata' in channel)) {
        return (<div />);
      }
      let title = channel.metadata.title || channel["app-path"] || "";
      let color = uxToHex(channel.metadata.color) || "000000";<commit_msg>groups: exclude group metadata from channels list<commit_after>import React, { Component } from 'react';
import { Route, Link } from 'react-router-dom';
import { uxToHex } from '/lib/util.js';

export class GroupDetail extends Component {
  render() {
    const { props } = this;

    let responsiveClass =
      props.activeDrawer === "detail" ? "db" : "dn db-ns";

    let groupPath = props.path || "";
    let channelsForGroup = (groupPath in props.associations) ?
      props.associations[groupPath] : {};


    let isEmpty = (Object.keys(channelsForGroup).length === 0) ||
      ((Object.keys(channelsForGroup).length === 1) &&
      (Object.keys(channelsForGroup)[0].includes("contacts")));

    let channelList = (<div />);

    channelList = Object.keys(channelsForGroup).map((key) => {
      let channel = channelsForGroup[key];
      if (!('metadata' in channel)) {
        return <div key={channel} />;
      }

      if (channel["app-name"] === "contacts") {
        return <div key={channel} />;
      }

      let title = channel.metadata.title || channel["app-path"] || "";
      let color = uxToHex(channel.metadata.color) || "000000";
{'fraction_non_alphanumeric': 0.16094210009813542, 'fraction_numerical': 0.007850834151128557, 'mean_word_length': 3.1697341513292434, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 10, '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': '2889399', 'n_tokens_mistral': 626, 'n_tokens_neox': 596, 'n_words': 145}