<commit_before>{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": [
    "from mpcontribs.client import Client\n",
    "import gzip, json, os\n",
    "import numpy as np\n",
    "from pandas import DataFrame\n",
    "from collections import defaultdict\n",
    "from tqdm.notebook import tqdm\n",
    "from unflatten import unflatten"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": [
    "name = 'carrier_transport'\n",
    "client = Client('your-api-key-here')"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "**Retrieve and update project info**"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": [
    "# client.projects.update_entry(pk=project, project={\n",
    "#     'long_title': 'Electronic Transport Properties'\n",
    "# }).result()\n",
    "client.get_project(name).pretty()"<commit_msg>minor carrier_transport nb update<commit_after>{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": [
    "from mpcontribs.client import Client\n",
    "import gzip, json, os\n",
    "import numpy as np\n",
    "from pandas import DataFrame\n",
    "from collections import defaultdict\n",
    "from tqdm.notebook import tqdm\n",
    "from unflatten import unflatten"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": [
    "name = 'carrier_transport'\n",
    "client = Client()"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "**Retrieve and update project info**"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": [
    "# client.projects.update_entry(pk=project, project={\n",
    "#     'long_title': 'Electronic Transport Properties'\n",
    "# }).result()\n",
    "client.get_project(name).pretty()"
{'fraction_non_alphanumeric': 0.19826338639652677, 'fraction_numerical': 0.0, 'mean_word_length': 3.042884990253411, 'pattern_counts': {'":': 38, '<': 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': '5630668', 'n_tokens_mistral': 746, 'n_tokens_neox': 725, 'n_words': 146}