<commit_before>package com.ephox.argonaut

import Json._

trait AsJsons {
  def asJson[A](f: => Json) = new {
    def json = f
  }

  implicit def IntAsJson(v: Int) =
    asJson(jNumber(v.toDouble))

  implicit def LongAsJson(v: Long) =
    asJson(jNumber(v.toDouble))

  implicit def DoubleAsJson(v: Double) =
    asJson(jNumber(v))

  implicit def StringAsJson(v: String) =
    asJson(jString(v))<commit_msg>Add converters for boxed primitives<commit_after>package com.ephox.argonaut

import Json._

trait AsJsons {
  def asJson[A](f: => Json) = new {
    def json = f
  }

  implicit def JIntegerAsJson(v: java.lang.Integer) =
    IntAsJson(v.intValue)

  implicit def JLongAsJson(v: java.lang.Long) =
    LongAsJson(v.longValue())

  implicit def JBooleanAsJson(v: java.lang.Boolean) =
    BooleanAsJson(v.booleanValue)

  implicit def BooleanAsJson(v: Boolean) =
    asJson(jBool(v))

  implicit def IntAsJson(v: Int) =
    asJson(jNumber(v.toDouble))

  implicit def LongAsJson(v: Long) =
    asJson(jNumber(v.toDouble))

  implicit def DoubleAsJson(v: Double) =
    asJson(jNumber(v))

  implicit def StringAsJson(v: String) =
    asJson(jString(v))
{'fraction_non_alphanumeric': 0.12197231833910034, 'fraction_numerical': 0.0, 'mean_word_length': 3.902542372881356, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '1554449', 'n_tokens_mistral': 435, 'n_tokens_neox': 435, 'n_words': 89}