<commit_before>#include "zset.h"

/* ====================================================================
 * Direct Redis DB Interaction
 * ==================================================================== */

/* zset access is mostly a copy/paste from zscoreCommand() */
double zsetScore(robj *zobj, robj *member, double *score) {
    if (!zobj || !member)
        return false;

    if (zobj->encoding == REDIS_ENCODING_ZIPLIST) {
        if (zzlFind(zobj->ptr, member, score) == NULL)
            return false;
    } else if (zobj->encoding == REDIS_ENCODING_SKIPLIST) {<commit_msg>Add t_zset.c prototypes directly to zset.c<commit_after>#include "zset.h"

/* t_zset.c prototypes (there's no t_zset.h) */
unsigned char *zzlFirstInRange(unsigned char *zl, zrangespec *range);
unsigned char *zzlFind(unsigned char *zl, robj *ele, double *score);
int zzlLexValueLteMax(unsigned char *p, zlexrangespec *spec);

/* Converted from static in t_zset.c: */
int zslValueLteMax(double value, zrangespec *spec);

/* ====================================================================
 * Direct Redis DB Interaction
 * ==================================================================== */

/* zset access is mostly a copy/paste from zscoreCommand() */
double zsetScore(robj *zobj, robj *member, double *score) {
    if (!zobj || !member)
        return false;

    if (zobj->encoding == REDIS_ENCODING_ZIPLIST) {
        if (zzlFind(zobj->ptr, member, score) == NULL)
            return false;
    } else if (zobj->encoding == REDIS_ENCODING_SKIPLIST) {
{'fraction_non_alphanumeric': 0.2827630729502905, 'fraction_numerical': 0.0, 'mean_word_length': 4.615942028985507, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '2786407', 'n_tokens_mistral': 491, 'n_tokens_neox': 452, 'n_words': 122}