<commit_before>// Copyright (c) 2010 The Chromium 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 "ppapi/cpp/dev/audio_config_dev.h"

#include "ppapi/cpp/module.h"
#include "ppapi/cpp/module_impl.h"

DeviceFuncs<PPB_AudioConfig_Dev> audio_cfg_f(PPB_AUDIO_CONFIG_DEV_INTERFACE);

namespace pp {

AudioConfig_Dev::AudioConfig_Dev()
    : sample_rate_(PP_AUDIOSAMPLERATE_NONE),
      sample_frame_count_(0) {
}

AudioConfig_Dev::AudioConfig_Dev(PP_AudioSampleRate_Dev sample_rate,
                                 uint32_t sample_frame_count)
    : sample_rate_(sample_rate) {
  if (audio_cfg_f) {
    PassRefFromConstructor(audio_cfg_f->CreateStereo16Bit(
        Module::Get()->pp_module(), sample_rate, 
        sample_frame_count));
  }
}

}  // namespace pp
<commit_msg>Fix comment I forgot to address from http://codereview.chromium.org/3790003<commit_after>// Copyright (c) 2010 The Chromium 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 "ppapi/cpp/dev/audio_config_dev.h"

#include "ppapi/cpp/module.h"
#include "ppapi/cpp/module_impl.h"

DeviceFuncs<PPB_AudioConfig_Dev> audio_cfg_f(PPB_AUDIO_CONFIG_DEV_INTERFACE);

namespace pp {

AudioConfig_Dev::AudioConfig_Dev()
    : sample_rate_(PP_AUDIOSAMPLERATE_NONE),
      sample_frame_count_(0) {
}

AudioConfig_Dev::AudioConfig_Dev(PP_AudioSampleRate_Dev sample_rate,
                                 uint32_t sample_frame_count)
    : sample_rate_(sample_rate),
      sample_frame_count_(sample_frame_count) {
  if (audio_cfg_f) {
    PassRefFromConstructor(audio_cfg_f->CreateStereo16Bit(
        Module::Get()->pp_module(), sample_rate,
        sample_frame_count));
  }
}

}  // namespace pp

{'fraction_non_alphanumeric': 0.09815618221258135, 'fraction_numerical': 0.013557483731019523, 'mean_word_length': 4.082644628099174, 'pattern_counts': {'":': 0, '<': 5, '<?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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '212409', 'n_tokens_mistral': 643, 'n_tokens_neox': 618, 'n_words': 118}