<commit_before>import { just, Stream } from 'most';
import { VNode, DOMSource } from '@motorcycle/dom';
import { Sources } from '../../components/types';

import { authenticate, AuthenticationSinks } from '../../higher-order-components/authenticate';
import isolate from '@cycle/isolate';
import { createAuthenticationMethod$ } from './createAuthenticationMethod$';
import { view } from './view';

export type LoginSinks = { DOM: Stream<VNode> } & AuthenticationSinks

export type LoginSources = Sources & {
  DOM: DOMSource;
  isAuthenticated$: Stream<boolean>;
}

export function Login(sources: LoginSources): LoginSinks {
  const authenticationMethod$ = createAuthenticationMethod$(sources.DOM);

  sources.isAuthenticated$.observe(x => console.log(x));

  return {
    DOM: just(view()),
    authenticationMethod$
  };
}

export default sources => isolate(authenticate(Login))(sources);<commit_msg>style(Login): remove extra console.log<commit_after>import { just, Stream } from 'most';
import { VNode, DOMSource } from '@motorcycle/dom';
import { Sources } from '../../components/types';

import { authenticate, AuthenticationSinks } from '../../higher-order-components/authenticate';
import isolate from '@cycle/isolate';
import { createAuthenticationMethod$ } from './createAuthenticationMethod$';
import { view } from './view';

export type LoginSinks = { DOM: Stream<VNode> } & AuthenticationSinks

export type LoginSources = Sources & {
  DOM: DOMSource;
  isAuthenticated$: Stream<boolean>;
}

export function Login(sources: LoginSources): LoginSinks {
  const authenticationMethod$ = createAuthenticationMethod$(sources.DOM);

  return {
    DOM: just(view()),
    authenticationMethod$
  };
}

export default sources => isolate(authenticate(Login))(sources);
{'fraction_non_alphanumeric': 0.1383399209486166, 'fraction_numerical': 0.0, 'mean_word_length': 5.328571428571428, 'pattern_counts': {'":': 0, '<': 7, '<?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': '2194035', 'n_tokens_mistral': 500, 'n_tokens_neox': 478, 'n_words': 126}