Prints the.

@param name the name
@param map  the map
493717
public static void print(String name, Map<?, ?> map) {
		JK.line();
		print(String.format("Map (%s): ", name));
		Set<?> keySet = map.keySet();
		int index = 1;
		for (Object key : keySet) {
			JK.print(String.format("\t%d) Key(%s): Value (%s)", index++, key, map.get(key)));
		}
		JK.line();
	}
1019665
public static void setClassName(Map<String, Object> map, String className) {

        String processedClassName = className;

        if (processedClassName != null) {
            // it is highly unlikely that class name would contain ".", but we are cleaning it just in case
            processedClassName = processedClassName.replaceAll("\\.", "_");
        }

        map.put(MAP_CLASS_NAME, processedClassName);
    }
321417
public static void printCode(Method[] methods) {
        for (Method m : methods) {
            System.out.println(m);
            Code code = m.getCode();
            if (code != null) {
                System.out.println(code);
            }

        }
    }
219420
@Override
	public void formatMap(Map<Object,Object> map) throws FormatException
	{
		if (map == null || map.isEmpty())
			return;// nothing to process

		// format properties
		Object key = null;
		Object value = null;
		String text = null;

		for (Map.Entry<Object, Object> entry :map.entrySet())
		{
			key = entry.getKey();
			value = entry.getValue();

			if (!(value instanceof String))
				continue; // skip

			text = (String) value;

			// overwrite value with formatted version
			if (text.indexOf(getTemplatePrefix()) > -1)
				map.put(key, format(text, map));
		}

	}
380085
public SIBUuid8 mapMeNameToUuid(String name) {
        SIBUuid8 result = null;

        if (TraceComponent.isAnyTracingEnabled()
            && tc.isEntryEnabled())
            SibTr.entry(tc, "mapMeNameToUuid", name);

        // Be tolerant of bad args
        if (name != null) {
            // First, short circuit the local ME
            if (name.equals(getMessagingEngineName()))
                result = getMessagingEngineUuid();
            else
                ;// Venu liberty change. Here the code was going to TrmMeMain
        }

        if (TraceComponent.isAnyTracingEnabled()
            && tc.isEntryEnabled())
            SibTr.exit(tc, "mapMeNameToUuid", result);

        return result;
    }
892802
final public function printHtml($name) {
		
		// print standard ascii one or a predefined icon HTML as constant
		$printBoolean = function ($value) {
			if ($value) {
				print (defined('PAIR_CHECK_ICON') ? PAIR_CHECK_ICON : '<span style="color:green">√</span>');
			} else {
				print (defined('PAIR_TIMES_ICON') ? PAIR_TIMES_ICON : '<span style="color:red">×</span>');
			}
		};
		
		// print the class property in the proper way
		if (property_exists($this, $name)) {
		
			switch ($this->getPropertyType($name)) {
				
				case 'bool':
					$printBoolean($this->$name);
					break;
					
				case 'DateTime':
					print $this->formatDateTime($this->$name);
					break;
					
				case 'csv':
					print implode(', ', $this->$name);
					break;
					
				default:
					print htmlspecialchars($this->$name);
					break;
					
			}
			
		// name is a method with or without parentheses
		} else if ('()' == substr($name, -2) or method_exists($this, $name)) {
			
			$methodName = '()' == substr($name, -2) ? substr($name, 0, -2) : $name;
		
			if (!method_exists($this, $methodName)) {
				$this->addError('The ' . $methodName . '() method to printHtml was not found in the ' . get_called_class() . ' class');
				return;
			}
			
			// run the method
			$result = $this->$methodName();
			
			switch (gettype($result)) {
				
				case 'boolean':
					$printBoolean($result);
					break;

				case 'array':
					htmlspecialchars(implode(', ', $result));
					break;
					
				// integer, double, string, object, resource, NULL, unknown type
				default:
					print htmlspecialchars($result);
					break;
						
			}
			
		// property not found
		} else {
			
			$this->addError('You can not printHtml for the ' . $name . ' property of the class ' . get_called_class());
			
		}
			
	}
450523
public static void print(final PrintStream out, final String name, final Percentile p) {
        if(p.isReady()) {
            try {
                final StringBuilder sb = new StringBuilder(512);
                final float[] q = p.getQuantiles();
                final float[] e = p.getEstimates();
                final int SCREENWIDTH = 80;

                sb.append(name);
                sb.append(", min(");
                sb.append(p.getMin());
                sb.append("), max(");
                sb.append(p.getMax());
                sb.append(')');
                sb.append("\n");

                final float max = e[e.length-1];
                for(int i = 0; i<q.length; i++) {
                    sb.append(String.format("%4.3f", q[i]));
                    sb.append(": ");
                    final int len = (int) (e[i]/max*SCREENWIDTH);
                    for(int j = 0; j<len; j++) {
                        sb.append('#');
                    }
                    sb.append(" ");
                    sb.append(String.format("%4.3f\n", e[i]));
                }

                out.println(sb.toString());
            } catch(InsufficientSamplesException e) {
                // this can never occur
            }
        }
    }
51293
private PrintStream newStream(String name) throws IOException {
    if(LOG.isDebuggingFiner()) {
      LOG.debugFiner("Requested stream: " + name);
    }
    // Ensure the directory exists:
    if(!basename.exists()) {
      basename.mkdirs();
    }
    String fn = basename.getAbsolutePath() + File.separator + name + EXTENSION;
    fn = usegzip ? fn + GZIP_EXTENSION : fn;
    OutputStream os = new FileOutputStream(fn);
    if(usegzip) {
      // wrap into gzip stream.
      os = new GZIPOutputStream(os);
    }
    PrintStream res = new PrintStream(os);
    if(LOG.isDebuggingFiner()) {
      LOG.debugFiner("Opened new output stream:" + fn);
    }
    // cache.
    return res;
  }
91024
public void addValueToIn(Object value, String name, Map<String, Object> map) {
        getMapHelper().addValueToIn(value, name, map);
    }
858447
static Map<String, Object> simplePayload(final String name) {
		if (name == null) {
			return null;
		}
		Map<String, Object> payload = new LinkedHashMap<>();
		payload.put("message", MSG_PREFIX + name);
		return payload;
	}
424478
public Object getValue(Map<String, Object> map, String name) {
        String cleanName = htmlCleaner.cleanupValue(name);
        return getValueImpl(map, cleanName, true);
    }
226975
public synchronized String getValue(String name) {
        if (map == null) {
            return null;
        }
        return map.get(name);
    }
643932
protected function printContent(string $name)
    {
        fwrite($this->out, str_repeat('  ', $this->depth) . '- ' . $name . "\n");
    }
238359
public void into(Map<String, String> map) {
        for (String name : properties.stringPropertyNames()) {
            map.put(name, properties.getProperty(name));
        }
    }
1228911
private int attributeMap(String name) {
        Integer num = map.get(name);
        if (num == null) {
            return 0;
        }
        return num.intValue();
    }
1360410
private void writeName(String name) throws IOException
   {
      m_writer.write('"');
      m_writer.write(name);
      m_writer.write('"');
      m_writer.write(":");
   }
1205452
public void setIntValueForIn(int value, String name, Map<String, Object> map) {
        setValueForIn(Integer.valueOf(value), name, map);
    }