<commit_before>/** @babel */

import { Range, Point } from 'atom'

import { client } from '../connection'
import modules from './modules'
import { scopes, words } from '../misc'

const datatip = client.import('datatip')
const { getEditorModule } = modules
const { isStringOrCommentScope } = scopes
const { isValidWord } = words

// @FIXME: This does not work with non-ascii characters
const wordRegex = /[^0-9A-Za-z_!\.´@]/
const grammar = atom.grammars.grammarForScopeName('source.julia');

/**
 * Returns `true` if the scope at `bufferPosition` in `editor` is valid code scope to be inspected
 */
function isValidScope (editor, bufferPosition) {
  const scopes = editor
    .scopeDescriptorForBufferPosition(bufferPosition)
    .getScopesArray();
  return !isStringOrCommentScope(scopes)
}

class DatatipProvider {
  providerName = "Julia-Client";

  priority = 100;

  grammarScopes = atom.config.get('julia-client.juliaSyntaxScopes');

  useAtomIDEUI = false;<commit_msg>Change datatip `providerName`<commit_after>/** @babel */

import { Range, Point } from 'atom'

import { client } from '../connection'
import modules from './modules'
import { scopes, words } from '../misc'

const datatip = client.import('datatip')
const { getEditorModule } = modules
const { isStringOrCommentScope } = scopes
const { isValidWord } = words

// @FIXME: This does not work with non-ascii characters
const wordRegex = /[^0-9A-Za-z_!\.´@]/
const grammar = atom.grammars.grammarForScopeName('source.julia');

/**
 * Returns `true` if the scope at `bufferPosition` in `editor` is valid code scope to be inspected
 */
function isValidScope (editor, bufferPosition) {
  const scopes = editor
    .scopeDescriptorForBufferPosition(bufferPosition)
    .getScopesArray();
  return !isStringOrCommentScope(scopes)
}

class DatatipProvider {
  providerName = 'julia-client-datatip-provider';

  priority = 100;

  grammarScopes = atom.config.get('julia-client.juliaSyntaxScopes');

  useAtomIDEUI = false;
{'fraction_non_alphanumeric': 0.12708018154311648, 'fraction_numerical': 0.005042864346949067, 'mean_word_length': 4.5264623955431755, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '79230', 'n_tokens_mistral': 646, 'n_tokens_neox': 617, 'n_words': 167}