<commit_before>{
 "cells": [
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# Sample tree plots"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {
    "collapsed": true
   },
   "outputs": [],
   "source": [
    "import numpy as np\n",
    "import pandas as pd\n",
    "\n",
    "%matplotlib inline\n",
    "import matplotlib.pyplot as plt\n",
    "\n",
    "from crossing_tree import fbm, crossings, crossing_tree"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "Set the path length and the Hurst exponent"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {
    "collapsed": true
   },
   "outputs": [],
   "source": [
    "N, H = 2**21+1, 0.55\n",
    "\n",
    "gen = fbm(N, H, time=True)\n",
    "gen.initialize(np.random.RandomState(123))\n",
    "\n",
    "## Generate a sample path\n",
    "T, X = gen()"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "Get the crossing times, levels and offspring structure"
   ]
  },
  {
   "cell_type": "code",<commit_msg>Moved to the new process interface<commit_after>{
 "cells": [
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# Sample tree plots"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {
    "collapsed": true
   },
   "outputs": [],
   "source": [
    "import numpy as np\n",
    "import pandas as pd\n",
    "\n",
    "%matplotlib inline\n",
    "import matplotlib.pyplot as plt\n",
    "\n",
    "from crossing_tree import crossings, crossing_tree\n",
    "from crossing_tree.processes import FractionalBrownianMotion as FBM\n",
    "from crossing_tree.processes import WeierstrassFunction as WEI\n",
    "from crossing_tree.processes import HermiteProcess as HRP"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "Set the path length and the Hurst exponent"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {
    "collapsed": false
   },
   "outputs": [],
   "source": [
    "N, H = 2**21+1, 0.55\n",
    "\n",
    "gen_ = FBM(N, hurst=H, random_state=123, n_threads=2)\n",
    "gen_.start()\n",
    "\n",
    "## Generate a sample path\n",
    "T, X = gen_.draw()"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "Get the crossing times, levels and offspring structure"
   ]
  },
  {
   "cell_type": "code",
{'fraction_non_alphanumeric': 0.19224555735056542, 'fraction_numerical': 0.008481421647819063, 'mean_word_length': 2.58465991316932, 'pattern_counts': {'":': 46, '<': 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': '6861271', 'n_tokens_mistral': 954, 'n_tokens_neox': 922, 'n_words': 208}