text:
/* global create */
QUnit.module("mutator.alias");

QUnit.test("alias properties", function() {
	QUnit.expect(8);
	// testing basic alias methods
	var test = create({
		$$alias$$z : "a",
		x : 0,
		y : 0,
		a : function() {
			return ++this.x;
		},
		b : function() {
			return ++this.y;
		}
	});

	var test_instance = new test();
	// call the main function
	QUnit.equal(test_instance.x, 0, "Initial value of counter is 0.");

	// call defined function
	QUnit.equal(test_instance.a(), 1, "Calling original function.");

	// call aliased function
	QUnit.equal(test_instance.z(), 2, "Calling alias calls original function.");

	// test aliases working against inheritance
	var subclass = create(test, {
		$$alias$$y : "b",
		$$alias$$b : "a",
		c : function() {
			return 3;
		},
		z : function() {
			return this.$$parent();
		}
	});

	var subclass_instance = new subclass();
	// call the main function
	QUnit.equal(subclass_instance.x, 0, "Initial value of counter is 0.");

	// call defined function
	QUnit.equal(subclass_instance.a(), 1, "Calling original function.");

	// call defined function
	QUnit.equal(subclass_instance.b(), 2, "Calling overridden aliased function.");

	// call aliased function
	QUnit.equal(subclass_instance.z(), 3, "Calling alias calls original function's parent.");

	// test aliases working against inheritance
	var test2 = create({
		$$alias$$ : {
			z : "a"
		},
		x : 0,
		a : function() {
			return ++this.x;
		}
	});

	var test2_instance = new test2();
	// call defined function
	test2_instance.a();

	// call aliased function
	QUnit.equal(test2_instance.z(), 2, "Calling alias defined in object calls original function's parent.");
});

QUnit.test("adding new aliased properties after class definition", function() {
	QUnit.expect(3);
	// testing class for known properties in every defined class
	var test = create({});

	// adding properties to the prototype
	test.prototype.b = function() {
		return 1;
	};

	// testing adding aliases
	test.addAliasedProperty("j", "b");
	QUnit.equal((new test()).j(), 1, "invoking a method added using addAliasedProperty method.");

	// test adding multiple properties
	test.addProperty({
		e : function() {
			return 1;
		}
	});

	// testing adding aliases
	test.addAliasedProperty({
		k : "e"
	});
	QUnit.equal((new test()).k(), 1, "adding multiple aliased properties to the class with addAliasedProperty.");

	// test adding properties to parent classes
	var subclass = create(test, {
		g : function() {
			return 3;
		},
		h : function() {
			return this.$$parent();
		}
	});

	// testing adding aliases
	test.addAliasedProperty("l", "b");
	QUnit.equal((new subclass()).l(), 1, "invoking a method added using addAliasedProperty to parent prototype after definition with existing child method.");
});


text:
require_relative 'base'

module Whois
  class Parsers

    #
    # = whois.nic.coop parser
    #
    # Parser for the whois.nic.coop server.
    #
    # NOTE: This parser is just a stub and provides only a few basic methods
    # to check for domain availability and get domain status.
    # Please consider to contribute implementing missing methods.
    # See WhoisNicIt parser for an explanation of all available methods
    # and examples.
    #
    class WhoisNicCoop < Base

      property_supported :status do
        content_for_scanner.scan(/Status:\s+(.+?)\n/).flatten
      end

      property_supported :available? do
        !!(content_for_scanner =~ /No domain records were found to match/)
      end

      property_supported :registered? do
        !available?
      end

      property_supported :created_on do
        if content_for_scanner =~ /Created:\s+(.*)\n/
          parse_time(::Regexp.last_match(1))
        end
      end

      property_supported :updated_on do
        if content_for_scanner =~ /Last updated:\s+(.*)\n/
          parse_time(::Regexp.last_match(1))
        end
      end

      property_supported :expires_on do
        if content_for_scanner =~ /Expiry Date:\s+(.*)\n/
          parse_time(::Regexp.last_match(1))
        end
      end

      property_supported :nameservers do
        content_for_scanner.scan(/Host Name:\s+(.+)\n/).flatten.map do |name|
          Parser::Nameserver.new(:name => name)
        end
      end

    end

  end
end

redpajama_set_name: RedPajamaGithub


text:
  <link rel="stylesheet" href="divinations/css/style.css" />
  <title>
   Chia Jên - The Family [The Clan]
  </title>

   Chia Jên - The Family [The Clan]

   37.  Chia Jên - The Family [The Clan]

          -----
          -----     above     Sun    The Gentle, Wind
          -- --
          -----
          -- --     below     Li     The Clinging, Flame
          -----

     The Judgement

          The Family. The perseverance of the woman furthers.

     The Image

          Wind comes forth from fire:
          The image of the Family.
          Thus the superior man has substance in his words
          And duration in his way of life.

     The Lines

          Nine at the beginning means:
          Firm seclusion within the family.
          Remorse disappears.

     ()   Six in the second place means:
          She should not follow her whims.
          She must attend within to the food.
          Perseverance brings good fortune.

          Nine in the third place means:
          When tempers flare up in the family,
          Too great severity brings remorse.
          Good fortune nonetheless.
          When woman and child dally and laugh,
          It leads in the end to humiliation.

          Six in the fourth place means:
          She is the treasure of the house.
          Great good fortune.

     ()   Nine in the fifth place means:
          As a king he approaches his family.
          Fear not.
          Good fortune.

          Nine at the top means:
          His work commands respect.
          In the end good fortune comes.