<commit_before>import DateTime from './lib/DateTime/index.jsx';
import Battery from './lib/Battery/index.jsx';
import Cpu from './lib/Cpu/index.jsx';
import Memory from './lib/Memory/index.jsx';
import Wifi from './lib/Wifi/index.jsx';
import Weather from './lib/Weather/index.jsx';
import Error from './lib/Error/index.jsx';
import { rightSide } from './lib/style.jsx';
import parse from './lib/parse.jsx';

export const refreshFrequency = 100

export const command = './status-right.sh'

export const render = ({output}) => {
  // console.log(`Right bar output: ${output}`);
  const data = parse(output);
  if (typeof data === 'undefined') {
    return (
      <div style={rightSide}>
        <Error msg="Error: unknown script output" side="right"/>
      </div>
    )
  }
  return (
    <div style={rightSide}>
	<Wifi output={data.wifi}/>
	{/* <Memory output={data.memory}/> */}
	<Battery output={data.battery}/>
	<Cpu output={data.cpu}/>
	<Weather output={data.weather}/>
	<DateTime output={data.datetime}/>
    </div><commit_msg>bump right side refresh frequency to 2s from 100ms<commit_after>import DateTime from './lib/DateTime/index.jsx';
import Battery from './lib/Battery/index.jsx';
import Cpu from './lib/Cpu/index.jsx';
// import Memory from './lib/Memory/index.jsx';
import Wifi from './lib/Wifi/index.jsx';
import Weather from './lib/Weather/index.jsx';
import Error from './lib/Error/index.jsx';
import { rightSide } from './lib/style.jsx';
import parse from './lib/parse.jsx';

export const refreshFrequency = 2000

export const command = './status-right.sh'

export const render = ({output}) => {
  // console.log(`Right bar output: ${output}`);
  const data = parse(output);
  if (typeof data === 'undefined') {
    return (
      <div style={rightSide}>
        <Error msg="Error: unknown script output" side="right"/>
      </div>
    )
  }
  return (
    <div style={rightSide}>
	<Wifi output={data.wifi}/>
	{/* <Memory output={data.memory}/> */}
	<Battery output={data.battery}/>
	<Cpu output={data.cpu}/>
	<Weather output={data.weather}/>
	<DateTime output={data.datetime}/>
    </div>
{'fraction_non_alphanumeric': 0.18397344713134187, 'fraction_numerical': 0.005215742057847321, 'mean_word_length': 3.606986899563319, 'pattern_counts': {'":': 0, '<': 25, '<?xml version=': 0, '>': 27, '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': '5859100', 'n_tokens_mistral': 709, 'n_tokens_neox': 691, 'n_words': 177}