Print some information contained in a PCM
@param pcm: PCM to print
324837
public void print(PCM pcm) {

        // We start by listing the names of the products
        System.out.println("--- Products ---");
        for (Product product : pcm.getProducts()) {
            System.out.println(product.getKeyContent());
        }

        // Then, we use a visitor to print the content of the cells that represent a boolean value
       // System.out.println("--- Boolean values ---");
        pcm.accept(this);

    }
80901
def print_partlist(input, timeout=20, showgui=False):
    '''
    '''
    print raw_partlist(input=input, timeout=timeout, showgui=showgui)
597594
def Printf(params, ctxt, scope, stream, coord, interp):
    
    if len(params) == 1:
        if interp._printf:
            sys.stdout.write(PYSTR(params[0]))
        return len(PYSTR(params[0]))

    parts = []
    for part in params[1:]:
        if isinstance(part, pfp.fields.Array) or isinstance(part, pfp.fields.String):
            parts.append(PYSTR(part))
        else:
            parts.append(PYVAL(part))

    to_print = PYSTR(params[0]) % tuple(parts)
    res = len(to_print)

    if interp._printf:
        sys.stdout.write(to_print)
        sys.stdout.flush()
    return res
779905
def show_info(self):
        
        bytecode._PrintSubBanner("Method Information")
        bytecode._PrintDefault("%s->%s%s [access_flags=%s]\n" % (
            self.get_class_name(), self.get_name(), self.get_descriptor(),
            self.get_access_flags_string()))
537752
public void calculate_pcm_samples(Obuffer buffer)
	{
		compute_new_v();
		compute_pcm_samples(buffer);

		actual_write_pos = (actual_write_pos + 1) & 0xf;
		actual_v = (actual_v == v1) ? v2 : v1;

		// initialize samples[]:
		// for (register float *floatp = samples + 32; floatp > samples; )
		// *--floatp = 0.0f;

		// MDM: this may not be necessary. The Layer III decoder always
		// outputs 32 subband samples, but I haven't checked layer I & II.
		for (int p = 0; p < 32; p++)
			samples[p] = 0.0f;
	}
441544
public Map<String, String> completeByFeature(PCM pcm, String ftName) throws Exception {
		
		Map<String, String> ftNames2Images = new HashMap<>();
		
		List<Feature> fts = pcm.getConcreteFeatures();
		Feature ft = null;
		for (Feature feature : fts) {
			if (feature.getName().equals(ftName)) {
				ft = feature;
				break;
			}
		}
		
		if (ft == null) // not found 
			return ftNames2Images;
		
		assert(ft != null);
		
		
		
		List<Cell> cells = ft.getCells();
		for (Cell cell : cells) {
			
			String valueName = cell.getContent();
			
			// TODO compute entityID
			try {
				String entityID = computeEntityWikidataID(valueName);
							
				String propertyID = "P41"; //"P154" ; // "P18" 
				String wikidataImage = "";
				try {
					wikidataImage = new WikidataImageRetrieval().retrieve(entityID, propertyID);
				}
				catch (Exception e) {
					try {
					wikidataImage = new WikidataImageRetrieval().retrieve(entityID, "P18");
					}
					catch (Exception e1) {					
					}				
				}
				
				if (!wikidataImage.isEmpty()) {
					ftNames2Images.put(valueName, wikidataImage);
				}
				else {
					System.err.println("Image unfound for " + valueName);
				}
			}
			catch (Exception e) {
				System.err.println("Image unfound for " + valueName + " because unable to found entity");
			}
			
		}
		return ftNames2Images;
	}
448236
def dcm(self, dcm):
        
        assert(len(dcm) == 3)
        for sub in dcm:
            assert(len(sub) == 3)

        self._dcm = np.array(dcm)

        # mark other representations as outdated, will get generated on next
        # read
        self._q = None
        self._euler = None
691474
def print_vm_info(vm):
    '''
    
    '''
    summary = vm.summary
    print('Name  : ', summary.config.name)
    print('Path  : ', summary.config.vmPathName)
    print('Guest : ', summary.config.guestFullName)
    annotation = summary.config.annotation
    if annotation is not None and annotation != '':
        print('Annotation : ', annotation)
    print('State : ', summary.runtime.powerState)
    if summary.guest is not None:
        ip = summary.guest.ipAddress
        if ip is not None and ip != '':
            print('IP    : ', ip)
    if summary.runtime.question is not None:
        print('Question : ', summary.runtime.question.text)
    print('')
172053
def print_info(self):
        ""
        "           pts/34       2013-06-12 15:04             26396 id=s/34  term=0 exit=0"
#        if self.ut_type not in [6,7]:
#            return
        print("%-10s %-12s %15s %15s %-8s" % (
                    str_from_c(self.ut_user),
                    str_from_c(self.ut_line),
                    time.strftime("%Y-%m-%d %H:%M", time.gmtime(self.ut_tv.tv_sec)),
                    self.ut_pid,
                    str_from_c(self.ut_host) and "(%s)" % str_from_c(self.ut_host) or str_from_c(self.ut_id) and "id=%s" % str_from_c(self.ut_id) or ""))
544960
def print_equations(self):
        
        print("P_static: ", self.eqn_st)
        print("P_thermal: ", self.eqn_th)
        print("P_anharmonic: ", self.eqn_anh)
        print("P_electronic: ", self.eqn_el)
893440
def dump(self):
        
        for seg in self.seglist:
            print("==== %08x-%08x" % (seg.startea, seg.endea))
            if seg.endea - seg.startea < 30:
                for ea in range(seg.startea, seg.endea):
                    print("    %08x: %08x" % (ea, self.getFlags(ea)))
            else:
                for ea in range(seg.startea, seg.startea + 10):
                    print("    %08x: %08x" % (ea, self.getFlags(ea)))
                print("...")
                for ea in range(seg.endea - 10, seg.endea):
                    print("    %08x: %08x" % (ea, self.getFlags(ea)))
443093
public final void pcmpestri(XMMRegister dst, XMMRegister src, Immediate imm8)
  {
    emitX86(INST_PCMPESTRI, dst, src, imm8);
  }
548865
def information_content(self):
        
        ic = 0
        for row in self.pwm:
            ic += 2.0 + np.sum([row[x] * log(row[x])/log(2) for x in range(4) if row[x] > 0])
        return ic
376489
def print_contents(self):
        
        print "\t\t\t".join(self.columns)
        temp_list = []
        for i in self.columns:
            temp_list.append(self.get_column(i))
        for i in zip(*(temp_list)):
            print "\t\t\t".join(map(str, i))
1011202
def show(self):
        """"""
        for entry in self._entries:
            print "{'%s': %s, 'records': %s}" % (
                entry._record_type, entry.host, entry.records)
        print
218831
def _output_current_byte(self):
        
        if self.tape[self.pointer] is None:
            print "{}".format(chr(0)),
        else:
            print "{}".format(chr(int(self.tape[self.pointer]))),
1244983
def dcm(self, dcm):
        
        assert(isinstance(dcm, Matrix3))
        self._dcm = dcm.copy()

        # mark other representations as outdated, will get generated on next
        # read
        self._q = None
        self._euler = None