<commit_before>/*
 * Copyright (C) 2009-2011 by <NAME> (benedictpaten (at) gmail.com) and <NAME> (dearl (at) soe.ucsc.edu)
 *
 * Released under the MIT license, see LICENSE.txt
 */

#include <ctype.h>
#include "sonLib.h"
#include "cactus.h"

double bitsScoreFn(char guess, char answer) {
    guess = toupper(guess);
    answer = toupper(answer);
    double f = 0.415037499278844; //-log_2(3/4)
    assert(answer == 'A' || answer == 'C' || answer == 'G' || answer == 'T' || answer == 'N');
    if(answer == 'N') {
        return 0;
    }
    switch (guess) {
        case 'A':
        case 'C':
        case 'G':
        case 'T':
            return guess == answer ? 2 : 0;
        case 'W':
            return (answer == 'A' || answer == 'T') ? 1 : 0;
        case 'S':
            return (answer == 'C' || answer == 'G') ? 1 : 0;
        case 'M':
            return (answer == 'A' || answer == 'C') ? 1 : 0;
        case 'K':
            return (answer == 'G' || answer == 'T') ? 1 : 0;<commit_msg>Updating to work with restructured workflow<commit_after>/*
 * Copyright (C) 2009-2011 by <NAME> (benedictpaten (at) gmail.com) and <NAME> (dearl (at) soe.ucsc.edu)
 *
 * Released under the MIT license, see LICENSE.txt
 */

#include <ctype.h>
#include "sonLib.h"
#include "cactus.h"

double bitsScoreFn(char guess, char answer) {
    guess = toupper(guess);
    answer = toupper(answer);
    double f = 0.415037499278844; //-log_2(3/4)
    //assert(answer == 'A' || answer == 'C' || answer == 'G' || answer == 'T' || answer == 'N');
    if(answer == 'N') {
        return 0;
    }
    switch (guess) {
        case 'A':
        case 'C':
        case 'G':
        case 'T':
            return guess == answer ? 2 : 0;
        case 'W':
            return (answer == 'A' || answer == 'T') ? 1 : 0;
        case 'S':
            return (answer == 'C' || answer == 'G') ? 1 : 0;
        case 'M':
            return (answer == 'A' || answer == 'C') ? 1 : 0;
        case 'K':
            return (answer == 'G' || answer == 'T') ? 1 : 0;
{'fraction_non_alphanumeric': 0.1927236971484759, 'fraction_numerical': 0.03736479842674533, 'mean_word_length': 2.0555555555555554, 'pattern_counts': {'":': 0, '<': 9, '<?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': '1326351', 'n_tokens_mistral': 781, 'n_tokens_neox': 721, 'n_words': 214}