<commit_before>#!/usr/bin/env python
#-*- coding: utf-8 -*-

import numpy as np
import matplotlib.pyplot as plt
import gsw

def ts(salt, temp, p=0, **kw):
    """
    Plot a Temperature-Salinity diagram (a.k.a TS-diagram).

    Argument
    --------
        salt : Absolute salinity (in PSU), numpy array or python list
        temp : Conservative temperaure (in  degree C), numpy array or python list
        p    : sea pressure (in dbar),[ i.e. absolute pressure - 10.1325 dbar ]
               This is scalar value.

    Options
    -------
        rholevels: numpy.array object or python list. A series of scalar value of
            density anomaly contours to be displayed  on the TS-diagram.

    """
    salt = np.array(salt)
    temp = np.array(temp)
    p    = np.array(p)
    rholevels = kw.pop('rholevels', None)
    if len(salt.shape) == 2 and len(temp.shape)==2:
        ms, ns = salt.shape
        mt, nt = temp.shape<commit_msg>Add author information to source code file.<commit_after>#!/usr/bin/env python
#-*- coding: utf-8 -*-

import numpy as np
import matplotlib.pyplot as plt
import gsw

def ts(salt, temp, p=0, **kw):
    """
    Plot a Temperature-Salinity diagram (a.k.a TS-diagram).

    Argument
    --------
        salt : Absolute salinity (in PSU), numpy array or python list
        temp : Conservative temperaure (in  degree C), numpy array or python list
        p    : sea pressure (in dbar),[ i.e. absolute pressure - 10.1325 dbar ]
               This is scalar value.

    Options
    -------
        rholevels: numpy.array object or python list. A series of scalar value of
            density anomaly contours to be displayed  on the TS-diagram.

    Author
    ------
        <NAME>

    License
    -------
        BSD License, See the license
    """
    salt = np.array(salt)
    temp = np.array(temp)
    p    = np.array(p)
    rholevels = kw.pop('rholevels', None)
    if len(salt.shape) == 2 and len(temp.shape)==2:
        ms, ns = salt.shape
        mt, nt = temp.shape
{'fraction_non_alphanumeric': 0.12245909766980664, 'fraction_numerical': 0.00991571641051066, 'mean_word_length': 2.0209580838323356, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, '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': '6458109', 'n_tokens_mistral': 663, 'n_tokens_neox': 623, 'n_words': 219}