<commit_before>/* Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file.
 */

#include <stddef.h>

/* Default to 1dB per tick.  Volume level 100 = 0dB level 0 = -100dB. */
long cras_volume_curve_get_db_for_index(size_t volume)
{
	/* dB to cut * 100 */
	return (volume - 100) * 100;
}<commit_msg>CRAS: Fix poorly worded volume comment.<commit_after>/* Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file.
 */

#include <stddef.h>

/* Default to 1dB per tick.
 * Volume = 100 -> 0dB.
 * Volume = 0 -> -100dB. */
long cras_volume_curve_get_db_for_index(size_t volume)
{
	/* dB to cut * 100 */
	return (volume - 100) * 100;
}
{'fraction_non_alphanumeric': 0.10928319623971798, 'fraction_numerical': 0.05170387779083431, 'mean_word_length': 3.3469387755102042, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '5306361', 'n_tokens_mistral': 334, 'n_tokens_neox': 278, 'n_words': 114}