<commit_before>goog.provide('ol.Layer');

goog.require('ol.Object');
goog.require('ol.Store');


/**
 * @enum {string}
 * @private
 */
ol.LayerRendererOptionsProperty_ = {
  OPACITY: 'opacity',
  VISIBLE: 'visible'
};



/**
 * @constructor
 * @extends {ol.Object}
 * @param {ol.Store} store Store.
 */
ol.Layer = function(store) {

  goog.base(this);

  /**
   * @private
   * @type {ol.Store}
   */
  this.store_ = store;

  this.setVisible(true);
  this.setOpacity(1);

};
goog.inherits(ol.Layer, ol.Object);


/**
 * @return {number} Opacity.
 */
ol.Layer.prototype.getOpacity = function() {
  return /** @type {number} */ (
      this.get(ol.LayerRendererOptionsProperty_.OPACITY));
};


/**
 * @return {ol.Store} Store.
 */
ol.Layer.prototype.getStore = function() {
  return this.store_;
};<commit_msg>Allow values to be passed to ol.Layer<commit_after>goog.provide('ol.Layer');

goog.require('ol.Object');
goog.require('ol.Store');


/**
 * @enum {string}
 * @private
 */
ol.LayerRendererOptionsProperty_ = {
  OPACITY: 'opacity',
  VISIBLE: 'visible'
};



/**
 * @constructor
 * @extends {ol.Object}
 * @param {ol.Store} store Store.
 * @param {Object.<string, *>} opt_values Values.
 */
ol.Layer = function(store, opt_values) {

  goog.base(this);

  /**
   * @private
   * @type {ol.Store}
   */
  this.store_ = store;

  this.setVisible(true);
  this.setOpacity(1);

  if (goog.isDef(opt_values)) {
    this.setValues(opt_values);
  }

};
goog.inherits(ol.Layer, ol.Object);


/**
 * @return {number} Opacity.
 */
ol.Layer.prototype.getOpacity = function() {
  return /** @type {number} */ (
      this.get(ol.LayerRendererOptionsProperty_.OPACITY));
};


/**
 * @return {ol.Store} Store.
 */
ol.Layer.prototype.getStore = function() {
  return this.store_;
};
{'fraction_non_alphanumeric': 0.19684151156232374, 'fraction_numerical': 0.0011280315848843769, 'mean_word_length': 3.457286432160804, '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': '5747784', 'n_tokens_mistral': 675, 'n_tokens_neox': 641, 'n_words': 106}