<commit_before># -*- coding: utf-8 -*-
"""
Created on Fri Mar 27 13:11:26 2015

@author: mcgibbon
"""
import numpy as np
from equations import quantities
import re

derivative_prog = re.compile(r'd(.+)d(p|x|y|theta|z|sigma|t|lat|lon)')


def parse_derivative_string(string):
    '''
    Assuming the string is of the form d(var1)d(var2), returns var1, var2.<commit_msg>added atmos to equations reference<commit_after># -*- coding: utf-8 -*-
"""
Created on Fri Mar 27 13:11:26 2015

@author: mcgibbon
"""
import numpy as np
from atmos.equations import quantities
import re

derivative_prog = re.compile(r'd(.+)d(p|x|y|theta|z|sigma|t|lat|lon)')


def parse_derivative_string(string):
    '''
    Assuming the string is of the form d(var1)d(var2), returns var1, var2.
{'fraction_non_alphanumeric': 0.1450980392156863, 'fraction_numerical': 0.044444444444444446, 'mean_word_length': 4.892307692307693, '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': '5672723', 'n_tokens_mistral': 307, 'n_tokens_neox': 270, 'n_words': 77}