Print method for projects.
427954
def print_projects(self, projects):
        
        for project in projects:
            print('{}: {}'.format(project.name, project.id))
1310827
def print(self, *objects, **kwargs):
		""""""
		file = kwargs.get("file")

		if file is not None and file is not sys.stdout:
			PRINT(*objects, **kwargs)

		else:
			sep = STR(kwargs.get("sep", " "))
			end = STR(kwargs.get("end", "\n"))

			text = sep.join(STR(o) for o in objects)

			self.imp_print(text, end)

		for callback in self.listeners:
			callback(text)
380792
def mdprint(*values, plain=None, **options):
    
    print(*[mdrender(x, plain=plain) for x in values], **options)
568993
def print_results(self):
        """"""
        # Updates
        if self.package_data.get('updates'):
            print('\n{}{}Updates:'.format(c.Style.BRIGHT, c.Fore.BLUE))
            for p in self.package_data['updates']:
                print(
                    '{!s:<20}{}{} {!s:<50}'.format(
                        p.get('action'), c.Style.BRIGHT, c.Fore.CYAN, p.get('output')
                    )
                )

        # Packaging
        print('\n{}{}Package:'.format(c.Style.BRIGHT, c.Fore.BLUE))
        for p in self.package_data['package']:
            if isinstance(p.get('output'), list):
                n = 5
                list_data = p.get('output')
                print(
                    '{!s:<20}{}{} {!s:<50}'.format(
                        p.get('action'), c.Style.BRIGHT, c.Fore.CYAN, ', '.join(p.get('output')[:n])
                    )
                )
                del list_data[:n]
                for data in [
                    list_data[i : i + n] for i in range(0, len(list_data), n)  # noqa: E203
                ]:
                    print(
                        '{!s:<20}{}{} {!s:<50}'.format(
                            '', c.Style.BRIGHT, c.Fore.CYAN, ', '.join(data)
                        )
                    )

            else:
                print(
                    '{!s:<20}{}{} {!s:<50}'.format(
                        p.get('action'), c.Style.BRIGHT, c.Fore.CYAN, p.get('output')
                    )
                )

        # Bundle
        if self.package_data.get('bundle'):
            print('\n{}{}Bundle:'.format(c.Style.BRIGHT, c.Fore.BLUE))
            for p in self.package_data['bundle']:
                print(
                    '{!s:<20}{}{} {!s:<50}'.format(
                        p.get('action'), c.Style.BRIGHT, c.Fore.CYAN, p.get('output')
                    )
                )

        # ignore exit code
        if not self.args.ignore_validation:
            print('\n')  # separate errors from normal output
            # print all errors
            for error in self.package_data.get('errors'):
                print('{}{}'.format(c.Fore.RED, error))
                self.exit_code = 1
766888
def OnPrint(self, event):
        """"""

        print_area = self._get_print_area()
        print_data = self.main_window.print_data

        self.main_window.actions.printout(print_area, print_data)
298384
def projects(logfile, time_format):
  ""

  print '\n'.join(server.list_projects(read(logfile, time_format)))
75106
def debug_print(*message):
    """"""
    warnings.warn("debug_print is deprecated; use the logging module instead.")
    if get_debug_level():
        ss = STDOUT
        if PY3:
            # This is needed after restarting and using debug_print
            for m in message:
                ss.buffer.write(str(m).encode('utf-8'))
            print('', file=ss)
        else:
            print(*message, file=ss)
883828
def print_statements(self):
        """"""
        for i, stmt in enumerate(self.statements):
            print("%s: %s" % (i, stmt))
1199145
private static void printUsage() {
        final StringBuilder msg = new StringBuilder();
        msg.append("Usage: dita -i <file> -f <name> [options]\n");
        msg.append("   or: dita --project=<file> [options]\n");
        msg.append("   or: dita --propertyfile=<file> [options]\n");
        msg.append("   or: dita --install [=<file> | <url> | <id>]\n");
        msg.append("   or: dita --uninstall <id>\n");
        msg.append("   or: dita --plugins\n");
        msg.append("   or: dita --transtypes\n");
        msg.append("   or: dita --deliverables\n");
        msg.append("   or: dita --help\n");
        msg.append("   or: dita --version\n");
        msg.append("Arguments: \n");
        msg.append("  -i <file>, --input=<file>   input file\n");
        msg.append("  -f <name>, --format=<name>  output format (transformation type)\n");
        msg.append("  -p <name>, --project=<name> run project file\n");
        msg.append("  --install [<file>]          install plug-in from a local ZIP file\n");
        msg.append("  --install [<url>]           install plug-in from a URL\n");
        msg.append("  --install [<id>]            install plug-in from plugin registry\n");
        msg.append("  --install                   reload plug-ins\n");
        msg.append("  --uninstall <id>            uninstall plug-in with the ID\n");
        msg.append("  --plugins                   print list of installed plug-ins\n");
        msg.append("  --transtypes                print list of installed transtypes\n");
        msg.append("  --deliverables              print list of deliverables in project\n");
        msg.append("  -h, --help                  print this message\n");
        msg.append("  --version                   print version information and exit\n");
        msg.append("Options: \n");
        msg.append("  -o, --output=<dir>          output directory\n");
        // msg.append("  -diagnostics           print information that might be helpful to"
        // + lSep);
        // msg.append("                         diagnose or report problems." +
        // lSep);
        // msg.append("  -quiet, -q             be extra quiet" + lSep);
        msg.append("  --filter=<files>            filter and flagging files\n");
        msg.append("  --force                     force install plug-in\n");
        msg.append("  -t, --temp=<dir>            temporary directory\n");
        msg.append("  -v, --verbose               verbose logging\n");
        msg.append("  -d, --debug                 print debugging information\n");
        // msg.append("  -emacs, -e             produce logging information without adornments"
        // + lSep);
        // msg.append("  -lib <path>            specifies a path to search for jars and classes"
        // + lSep);
        msg.append("  -l, --logfile=<file>        use given file for log\n");
        // msg.append("  -logger <classname>    the class which is to perform logging"
        // + lSep);
        // msg.append("  -listener <classname>  add an instance of class as a project listener"
        // + lSep);
        // msg.append("  -noinput               do not allow interactive input"
        // + lSep);
        // msg.append("  -buildfile <file>      use given buildfile" + lSep);
        // msg.append("    -file    <file>              ''" + lSep);
        // msg.append("    -f       <file>              ''" + lSep);
        msg.append("  --<property>=<value>        use value for given property\n");
        msg.append("  --propertyfile=<name>       load all properties from file\n");
        // msg.append("  -keep-going, -k        execute all targets that do not depend"
        // + lSep);
        // msg.append("                         on failed target(s)" + lSep);
        // msg.append("  -inputhandler <class>  the class which will handle input requests"
        // + lSep);
        // msg.append("  -nice  number          A niceness value for the main thread:"
        // + lSep
        // +
        // "                         1 (lowest) to 10 (highest); 5 is the default"
        // + lSep);
        // msg.append("  -nouserlib             Run ant without using the jar files from"
        // + lSep
        // + "                         ${user.home}/.ant/lib" + lSep);
        // msg.append("  -noclasspath           Run ant without using CLASSPATH"
        // + lSep);
        // msg.append("  -autoproxy             Java1.5+: use the OS proxy settings"
        // + lSep);
        // msg.append("  -main <class>          override Ant's normal entry point");
        System.out.println(msg.toString());
    }
297191
def Print(self):
        """"""
        for hypo, prob in sorted(self.Items()):
            print(hypo, prob)
1177080
def printData(self, output = sys.stdout):
		""""""
		self.printDatum("Name          : ", self.fileName, output)
		self.printDatum("Author        : ", self.author, output)
		self.printDatum("Repository    : ", self.repository, output)
		self.printDatum("Category      : ", self.category, output)
		self.printDatum("Downloads     : ", self.downloads, output)
		self.printDatum("Date Uploaded : ", self.fileDate, output)
		self.printDatum("File Size     : ", self.fileSize, output)
		self.printDatum("Documentation : ", self.documentation, output)
		self.printDatum("Source Code   : ", self.sourceCode, output)
		self.printDatum("Description   : ", self.description, output)
#		print("\n", output)
		print >> output, "\n\n"
716426
def fprint(self, obj, stream=None, **kwargs):
        """"""
        if stream is None:
            stream = sys.stdout

        options = self.options
        options.update(kwargs)

        if isinstance(obj, dimod.SampleSet):
            self._print_sampleset(obj, stream, **options)
            return

        raise TypeError("cannot format type {}".format(type(obj)))
785048
def print_collection(self, c, h, n):
        """"""
        if c in h:
            return "[]..."
        h.append(c)
        s = []
        for item in c:
            s.append("\n")
            s.append(self.indent(n))
            s.append(self.process(item, h, n - 2))
            s.append(",")
        h.pop()
        return "".join(s)
7095
public void print(ProjectModel project, Writer w, boolean includeClasses) {
		PrintWriter out = new PrintWriter(w);

		out.println("digraph ModuleGraph {");
		if (includeClasses) {
			out.println("ratio=1;");
		} else {
			out.println("overlap=false;");
			out.println("spline=true;");
		}

		if (layoutHorizontal) {
			out.println("rankdir=\"LR\";");
		}

		int i = 0;
		// print nodes
		for (ModuleModel module : project.getModules().values()) {
			if (module.isHideFromDependencyGraphOutput()) {
				continue;
			}

			if (includeClasses) {
				out.printf("subgraph cluster%d {\n", i++);
			}

			out.printf(
					"  \"MODULE$%s\" [label=\"%s\", shape=box, tooltip=\"%s\"%s];\n",
					module.getQualifiedNameOfRepresentingClass(),
					module.getIdentification(),
					(module.getDescription() != null && !module
							.getDescription().isEmpty()) ? module
							.getDescription() : "No Description",
					includeClasses ? ", color=green" : "");

			if (includeClasses) {
				for (ClassModel clazz : module.getClasses()) {
					out.printf("  \"CLASS$%s\" [label=\"%s\"];\n",
							clazz.getQualifiedName(), clazz.getSimpleName());
				}
			}

			if (includeClasses) {
				out.printf("}\n");
			}
		}

		// print edges

		for (ModuleModel module : project.getModules().values()) {
			if (module.isHideFromDependencyGraphOutput()) {
				continue;
			}
			for (ModuleModel imported : module.getImportedModules()) {
				if (imported.isHideFromDependencyGraphOutput()) {
					continue;
				}
				out.printf("\"MODULE$%s\"->\"MODULE$%s\"%s;\n",
						module.getQualifiedNameOfRepresentingClass(),
						imported.getQualifiedNameOfRepresentingClass(),
						includeClasses ? " [color=green]" : "");
			}
			for (ModuleModel exported : module.getExportedModules()) {
				if (exported.isHideFromDependencyGraphOutput()) {
					continue;
				}
				out.printf("\"MODULE$%s\"->\"MODULE$%s\" [color=green];\n",
						module.getQualifiedNameOfRepresentingClass(),
						exported.getQualifiedNameOfRepresentingClass());
			}

		}

		if (includeClasses) {
			for (ClassModel clazz : project.getClasses().values()) {
				for (ClassModel used : clazz.getUsesClasses()) {
					if (used.equals(clazz)) {
						continue;
					}
					out.printf("\"CLASS$%s\"->\"CLASS$%s\";\n",
							clazz.getQualifiedName(), used.getQualifiedName());
				}
			}
		}

		out.println("}");
		out.flush();
	}
730306
def print_table(lines, separate_head=True):
	""""""
	#Count the column width
	widths = []
	for line in lines:
			for i,size in enumerate([len(x) for x in line]):
					while i >= len(widths):
							widths.append(0)
					if size > widths[i]:
							widths[i] = size
	   
	#Generate the format string to pad the columns
	print_string = ""
	for i,width in enumerate(widths):
			print_string += "{" + str(i) + ":" + str(width) + "} | "
	if (len(print_string) == 0):
			return
	print_string = print_string[:-3]
	   
	#Print the actual data
	for i,line in enumerate(lines):
			print(print_string.format(*line))
			if (i == 0 and separate_head):
					print("-"*(sum(widths)+3*(len(widths)-1)))
337939
public void printUsage() {
        String name = mainClass == null ? "<MainClass>" : mainClass.getName();
        String usage = "java " + name + " [OPTIONS]";
        final HelpFormatter formatter = new HelpFormatter();
        formatter.setWidth(120);
        formatter.printHelp(usage, options, true);
    }
836284
public void print() {
    Iterator<String> iter = getKeys();
    while (iter.hasNext()) {
      String key = iter.next();
      log.info(key + " = " + getRawString(key));
    }
  }