<commit_before># Copyright (c) 2005 Ruby-GNOME2 Project Team
# This program is licenced under the same licence as Ruby-GNOME2.
#
# $Id: cairo-operator.rb,v 1.1 2005/10/12 05:38:30 ktou Exp $
=begin
= cairo/Operator

This demo shows how to use GDK and cairo to use Cairo::OPERATOR_*
From http://cairographics.org/samples/operator_add.html,
     http://cairographics.org/samples/operator_atop.html,
     http://cairographics.org/samples/operator_atop_reverse.html,
     http://cairographics.org/samples/operator_in.html,
     http://cairographics.org/samples/operator_in_reverse.html,
     http://cairographics.org/samples/operator_out.html,
     http://cairographics.org/samples/operator_out_reverse.html,
     http://cairographics.org/samples/operator_over.html,
     http://cairographics.org/samples/operator_over_reverse.html,
     http://cairographics.org/samples/operator_saturate.html and
     http://cairographics.org/samples/operator_xor.html
=end
require 'common'

module Demo
  class CairoOperator < CairoWindow
    def initialize
      super('cairo operator')
      @operator = Cairo::OPERATOR_ADD

      set_default_size(400, 400)

      @drawing_area = child
      remove(@drawing_area)<commit_msg>gtk3 sample: use " (double quote) for string literal<commit_after># Copyright (c) 2005 Ruby-GNOME2 Project Team
# This program is licenced under the same licence as Ruby-GNOME2.
#
# $Id: cairo-operator.rb,v 1.1 2005/10/12 05:38:30 ktou Exp $
=begin
= cairo/Operator

This demo shows how to use GDK and cairo to use Cairo::OPERATOR_*
From http://cairographics.org/samples/operator_add.html,
     http://cairographics.org/samples/operator_atop.html,
     http://cairographics.org/samples/operator_atop_reverse.html,
     http://cairographics.org/samples/operator_in.html,
     http://cairographics.org/samples/operator_in_reverse.html,
     http://cairographics.org/samples/operator_out.html,
     http://cairographics.org/samples/operator_out_reverse.html,
     http://cairographics.org/samples/operator_over.html,
     http://cairographics.org/samples/operator_over_reverse.html,
     http://cairographics.org/samples/operator_saturate.html and
     http://cairographics.org/samples/operator_xor.html
=end
require "common"

module Demo
  class CairoOperator < CairoWindow
    def initialize
      super("cairo operator")
      @operator = Cairo::OPERATOR_ADD

      set_default_size(400, 400)

      @drawing_area = child
      remove(@drawing_area)
{'fraction_non_alphanumeric': 0.11142740951606345, 'fraction_numerical': 0.023180154534363562, 'mean_word_length': 3.9898580121703855, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, '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': '916284', 'n_tokens_mistral': 842, 'n_tokens_neox': 821, 'n_words': 146}