<commit_before>//
//  TileImageContribution.hpp
//  G3MiOSSDK
//
//  Created by <NAME> on 4/22/14.
//
//

#ifndef __G3MiOSSDK__TileImageContribution__
#define __G3MiOSSDK__TileImageContribution__

#include "Sector.hpp"
#include "RCObject.hpp"

class TileImageContribution : public RCObject {
private:
  static const TileImageContribution* FULL_COVERAGE_OPAQUE;

  static TileImageContribution* _lastFullCoverageTransparent;

  const bool   _isFullCoverage;
  const Sector _sector;
  const bool   _isTransparent;

  TileImageContribution(const Sector& sector,
                        bool isTransparent,
                        float alpha) :
  _isFullCoverage(false),
  _sector(sector),
  _isTransparent(isTransparent),
  _alpha(alpha)
  {
  }

  TileImageContribution& operator=(const TileImageContribution& that);

//  void _retain() const {
//    RCObject::_retain();
//  }
//
//  void _release() const {
//    RCObject::_release();
//  }


protected:
  TileImageContribution(bool isTransparent,
                        float alpha) :
  _isFullCoverage(true),
  _sector(Sector::fullSphere()),
  _isTransparent(isTransparent),
  _alpha(alpha)
  {
  }

  virtual ~TileImageContribution() {
    printf("******* deleting contribution %p\n", this);
#ifdef JAVA_CODE
    super.dispose();
#endif
  }
<commit_msg>Tile's image creation refactoring - NOT YET USABLE<commit_after>//
//  TileImageContribution.hpp
//  G3MiOSSDK
//
//  Created by <NAME> on 4/22/14.
//
//

#ifndef __G3MiOSSDK__TileImageContribution__
#define __G3MiOSSDK__TileImageContribution__

#include "Sector.hpp"
#include "RCObject.hpp"

class TileImageContribution : public RCObject {
private:
  static const TileImageContribution* FULL_COVERAGE_OPAQUE;

  static TileImageContribution* _lastFullCoverageTransparent;

  const bool   _isFullCoverage;
  const Sector _sector;
  const bool   _isTransparent;

  TileImageContribution(const Sector& sector,
                        bool isTransparent,
                        float alpha) :
  _isFullCoverage(false),
  _sector(sector),
  _isTransparent(isTransparent),
  _alpha(alpha)
  {
  }

  TileImageContribution& operator=(const TileImageContribution& that);

//  void _retain() const {
//    RCObject::_retain();
//  }
//
//  void _release() const {
//    RCObject::_release();
//  }


protected:
  TileImageContribution(bool isTransparent,
                        float alpha) :
  _isFullCoverage(true),
  _sector(Sector::fullSphere()),
  _isTransparent(isTransparent),
  _alpha(alpha)
  {
  }

  virtual ~TileImageContribution() {
//    printf("******* deleting contribution %p\n", this);
#ifdef JAVA_CODE
    super.dispose();
#endif
  }

{'fraction_non_alphanumeric': 0.11299435028248588, 'fraction_numerical': 0.006026365348399247, 'mean_word_length': 3.4193011647254576, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '4887748', 'n_tokens_mistral': 959, 'n_tokens_neox': 865, 'n_words': 166}