<commit_before>import queryString from 'query-string';
import { MEETUP_AUTH_URL, CLIENT_ID, MEETUP_REDIRECT_URI } from './constants';
import ls from 'local-storage';

export const loginURL = () =>
  `${MEETUP_AUTH_URL}?${queryString.stringify({
    client_id: CLIENT_ID,
    response_type: 'token',
    redirect_uri: MEETUP_REDIRECT_URI,
    scope: 'basic rsvp group_content_edit ageless',
  })}`;

export const commentsStreamURL = (eventId) =>
  `ws://stream.meetup.com/2/event_comments?${queryString.stringify({
    event_id: eventId,
    access_token: ls('access_token'),
  })}`;

export const eventURI = (eventId) => `/events/${eventId}`

export const eventRsvpsURI = (eventId) => `${eventURI(eventId)}/rsvps`;

export const eventCommentsURI = (eventId) => `${eventURI(eventId)}/comments`;

export const selfURI = () => '/members/self';

export const groupURI = () => '/group';
<commit_msg>Adding wss:// protocol<commit_after>import queryString from 'query-string';
import { MEETUP_AUTH_URL, CLIENT_ID, MEETUP_REDIRECT_URI } from './constants';
import ls from 'local-storage';

export const loginURL = () =>
  `${MEETUP_AUTH_URL}?${queryString.stringify({
    client_id: CLIENT_ID,
    response_type: 'token',
    redirect_uri: MEETUP_REDIRECT_URI,
    scope: 'basic rsvp group_content_edit ageless',
  })}`;

export const commentsStreamURL = (eventId) =>
  `wss://stream.meetup.com/2/event_comments?${queryString.stringify({
    event_id: eventId,
    access_token: ls('access_token'),
  })}`;

export const eventURI = (eventId) => `/events/${eventId}`

export const eventRsvpsURI = (eventId) => `${eventURI(eventId)}/rsvps`;

export const eventCommentsURI = (eventId) => `${eventURI(eventId)}/comments`;

export const selfURI = () => '/members/self';

export const groupURI = () => '/group';

{'fraction_non_alphanumeric': 0.160734149054505, 'fraction_numerical': 0.0011123470522803114, 'mean_word_length': 5.312280701754386, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 17, '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': '1311591', 'n_tokens_mistral': 623, 'n_tokens_neox': 619, 'n_words': 124}