text:
package rocks.xmpp.extensions.muc;

import org.testng.Assert;
import org.testng.annotations.Test;
import rocks.xmpp.addr.Jid;
import rocks.xmpp.core.session.TestXmppSession;
import rocks.xmpp.core.session.XmppSession;
import rocks.xmpp.extensions.disco.ServiceDiscoveryManager;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

/**
 * @author Christian Schudt
 */
public class ChatServiceTest {

    @Test
    public void testComparable() {
        XmppSession xmppSession = new TestXmppSession();
        ServiceDiscoveryManager serviceDiscoveryManager = xmppSession.getManager(ServiceDiscoveryManager.class);
        ChatService chatService1 = new ChatService(Jid.of("aaa"), "aaa", xmppSession, serviceDiscoveryManager, null);
        ChatService chatService2 = new ChatService(Jid.of("bbb"), "bbb", xmppSession, serviceDiscoveryManager,null);
        ChatService chatService3 = new ChatService(Jid.of("ccc"), "aaa", xmppSession, serviceDiscoveryManager,null);
        ChatService chatService4 = new ChatService(Jid.of("ddd"), "bbb", xmppSession, serviceDiscoveryManager,null);
        ChatService chatService5 = new ChatService(Jid.of("ddd"), null, xmppSession, serviceDiscoveryManager,null);
        ChatService chatService6 = new ChatService(null, "aaa", xmppSession, serviceDiscoveryManager,null);

        List<ChatService> chatServices = new ArrayList<>();
        chatServices.add(chatService1);
        chatServices.add(chatService2);
        chatServices.add(chatService3);
        chatServices.add(chatService4);
        chatServices.add(chatService5);
        chatServices.add(chatService6);

        Collections.shuffle(chatServices);
        chatServices.sort(null);

        Assert.assertEquals(chatServices.get(0), chatService1);
        Assert.assertEquals(chatServices.get(1), chatService3);
        Assert.assertEquals(chatServices.get(2), chatService6);
        Assert.assertEquals(chatServices.get(3), chatService2);
        Assert.assertEquals(chatServices.get(4), chatService4);
        Assert.assertEquals(chatServices.get(5), chatService5);
    }

    @Test
    public void testChatRoomsComparable() {
        XmppSession xmppSession = new TestXmppSession();
        ServiceDiscoveryManager serviceDiscoveryManager = xmppSession.getManager(ServiceDiscoveryManager.class);
        ChatRoom chatRoom1 = new ChatRoom(Jid.of("aaa@domain"), "aaa", xmppSession, serviceDiscoveryManager,null);
        ChatRoom chatRoom2 = new ChatRoom(Jid.of("bbb@domain"), "bbb", xmppSession, serviceDiscoveryManager,null);
        ChatRoom chatRoom3 = new ChatRoom(Jid.of("ccc@domain"), "aaa", xmppSession, serviceDiscoveryManager,null);
        ChatRoom chatRoom4 = new ChatRoom(Jid.of("ddd@domain"), "bbb", xmppSession, serviceDiscoveryManager,null);
        ChatRoom chatRoom5 = new ChatRoom(Jid.of("ddd@domain"), null, xmppSession, serviceDiscoveryManager,null);
        ChatRoom chatRoom6 = new ChatRoom(Jid.of("aaa@domain"), "aaa@domain", xmppSession, serviceDiscoveryManager,null);

        List<ChatRoom> chatRooms = new ArrayList<>();
        chatRooms.add(chatRoom1);
        chatRooms.add(chatRoom2);
        chatRooms.add(chatRoom3);
        chatRooms.add(chatRoom4);
        chatRooms.add(chatRoom5);
        chatRooms.add(chatRoom6);

        Collections.shuffle(chatRooms);
        chatRooms.sort(null);

        Assert.assertEquals(chatRooms.get(0), chatRoom1);
        Assert.assertEquals(chatRooms.get(1), chatRoom3);
        Assert.assertEquals(chatRooms.get(2), chatRoom6);
        Assert.assertEquals(chatRooms.get(3), chatRoom2);
        Assert.assertEquals(chatRooms.get(4), chatRoom4);
        Assert.assertEquals(chatRooms.get(5), chatRoom5);
    }
}


text:
import os
from setuptools import setup, find_packages

version = '0.17'

def read(*rnames):
    return open(os.path.join(os.path.dirname(__file__), *rnames)).read()

long_description = (
    read('LICENSE.txt')
    + '\n' +
    'Detailed Documentation\n'
    '**********************\n'
    + '\n' +
    read('README.txt')
    + '\n' +
    'Contributors\n'
    '************\n'

    + '\n' +
    read('Contributors.txt')
    + '\n' +
    'Change history\n'
    '**************\n'
    + '\n' +
    read('CHANGES.txt')
    + '\n' +
   'Download\n'
    '********\n'
    )

install_requires = [
        'setuptools',
        'docutils',
        'reportlab>=2.1',
        'Pygments'
        ]

try:
    import json
except ImportError:
    install_requires.append('simplejson')

tests_require = ['pyPdf']
sphinx_require = ['sphinx']
hyphenation_require = ['wordaxe>=1.0']
images_require = ['PIL']
pdfimages_require = ['pyPdf','PythonMagick']
pdfimages2_require = ['pyPdf','SWFTools']
svgsupport_require = ['svglib']
sk1support_require = ['uniconvertor']
aafiguresupport_require = ['aafigure>=0.4']
mathsupport_require = ['matplotlib']

setup(
    name="rst2pdf",
    version=version,
    packages=find_packages(exclude=['ez_setup', 'examples', 'tests']),
    package_data=dict(rst2pdf=['styles/*.json',
	'styles/*.style',
	'images/*png',
	'images/*jpg',
	'templates/*tmpl'
	]),
    include_package_data=True,
    dependency_links=[
       # Reportlab (now on PyPI)
       #"http://ftp.schooltool.org/schooltool/eggs/3.4",
       # Wordaxe (now on PyPI)
       # "http://sourceforge.net/project/platformdownload.php?group_id=105867",
       # UniConvertor
       "http://sk1project.org/downloads/uniconvertor/v1.1.4/uniconvertor-1.1.4.tar.gz",
    ],
    install_requires=install_requires,
    tests_require=tests_require,
    extras_require=dict(
        tests=tests_require,
        sphinx=sphinx_require,
        hyphenation=hyphenation_require,
        images=images_require,
        pdfimages=pdfimages_require,
        pdfimages2=pdfimages2_require,
        svgsupport=svgsupport_require,
        sk1support=sk1support_require,
        aafiguresupport=aafiguresupport_require,
        mathsupport=mathsupport_require,
    ),
    # metadata for upload to PyPI
    # Get strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers
    classifiers=[
        'Development Status :: 4 - Beta',
        'Environment :: Console',
        'Intended Audience :: Developers',
        'License :: OSI Approved :: MIT License',
        'Operating System :: OS Independent',
        'Programming Language :: Python',
        'Topic :: Documentation',
        'Topic :: Software Development :: Libraries :: Python Modules',
        'Topic :: Text Processing',
        'Topic :: Utilities',
    ],
    author="Roberto Alsina",
    author_email="ralsina at netmanagers dot com dot ar",
    description="Convert restructured text to PDF via reportlab.",
    long_description=long_description,
    license="MIT",
    keywords="restructured convert rst pdf docutils pygments reportlab",
    url="http://rst2pdf.googlecode.com",
    download_url="http://code.google.com/p/rst2pdf/downloads/list",
    entry_points={'console_scripts': ['rst2pdf = rst2pdf.createpdf:main']},
    test_suite='rst2pdf.tests.test_rst2pdf.test_suite',
)

redpajama_set_name: RedPajamaGithub


text:
===============
salt.output.txt
===============

.. automodule:: salt.output.txt
    :members:


text:
module Awspec
  module Helper
    module Type
      require 'awspec/type/base'
      require 'awspec/type/resource_base'
      require 'awspec/type/account_attribute_base'
      require 'awspec/type/account'
      require 'awspec/type/account_attribute'

      TYPES = %w(
        alb ami autoscaling_group cloudtrail cloudwatch_alarm cloudwatch_event directconnect_virtual_interface
        ebs ec2 ecr_repository ecs_cluster ecs_container_instance ecs_service ecs_task_definition
        efs elasticache elasticache_cache_parameter_group elasticsearch elb iam_group
        iam_policy iam_role iam_user kms lambda launch_configuration nat_gateway
        network_acl network_interface rds rds_db_cluster_parameter_group rds_db_parameter_group route53_hosted_zone
        route_table s3_bucket security_group ses_identity subnet vpc cloudfront_distribution
        elastictranscoder_pipeline waf_web_acl customer_gateway vpn_gateway vpn_connection internet_gateway acm
        cloudwatch_logs dynamodb_table
      )

      ACCOUNT_ATTRIBUTES = %w(
        ec2_account_attributes rds_account_attributes lambda_account_settings ses_send_quota
      )

      TYPES.each do |type|
        require "awspec/type/#{type}"
        define_method type do |*args|
          unless Object.const_get("Awspec::Type::#{type.camelize}").superclass.to_s == 'Awspec::Type::ResourceBase'
            raise "Awspec::Type::#{type.camelize} should extend Awspec::Type::ResourceBase"
          end
          name = args.first
          eval "Awspec::Type::#{type.camelize}.new(name)"
        end
      end

      ACCOUNT_ATTRIBUTES.each do |type|
        require "awspec/type/#{type}"
        define_method type do
          unless Object.const_get("Awspec::Type::#{type.camelize}").superclass.to_s \
                 == 'Awspec::Type::AccountAttributeBase'
            raise "Awspec::Type::#{type.camelize} should extend Awspec::Type::AccountAttributeBase"
          end
          eval "Awspec::Type::#{type.camelize}.new"
        end
      end

      def account
        Awspec::Type::Account.new
      end

      def account_attribute(key)
        Awspec::Type::AccountAttribute.new(key)
      end

      def self.deprecate_resource_type(old_type, new_type)
        define_method(old_type) do |*args, &block|
          puts ''
          warn Color.on_red(Color.white("!!! `#{old_type}` type is deprecated. use `#{new_type}` !!!"))
          send(new_type, *args, &block)
        end
      end

      deprecate_resource_type :auto_scaling_group, :autoscaling_group
      deprecate_resource_type :s3, :s3_bucket
    end
  end
end