Add the alignment and model_state data table..
        
        :param data: Alignment and model_state table to be written.
8818
def add_2d_call_alignment(self, data):
        
        path = 'Analyses/{}'.format(self.group_name)
        if 'BaseCalled_2D' not in self.handle.handle[path]:
            self.handle.add_analysis_subgroup(self.group_name, 'BaseCalled_2D')

        path = '{}/BaseCalled_2D'.format(self.group_name)
        self.handle.add_analysis_dataset(path, 'Alignment', data)
529448
def add_perfdata(self, *args, **kwargs):
        
        self._perfdata.append(Perfdata(*args, **kwargs))
1271241
def append_to_table(self, table):
        
        table.add_row(dict(path=self.path,
                           key=self.key,
                           creator=self.creator,
                           timestamp=self.timestamp,
                           status=self.status,
                           flags=self.flags))
1284217
def create_model(cls, data: dict, fields=None):
        '''
        
        '''
        if fields is None:
            fields = set(cls._fields.keys())
        else:
            if not isinstance(fields, set):
                fields = set(fields)
        new_keys = set(data.keys()) - fields
        if new_keys:
            for new_key in new_keys:
                del data[new_key]
        return cls(data)
606964
def setData(self, data):
        
        try:
            bytestream = pickle.dumps(data)
            super(MimeData, self).setData(self._mimeType, bytestream)
        except TypeError:
            raise TypeError(self.tr("can not pickle added data"))
        except:
            raise
1278099
def add(self, data):
		
		if len(self) + len(data) > self.sizelimit:
			raise OmapiSizeLimitError()
		self.buff.write(data)
		return self
133981
def add_new_fields(data, data_to_add):
        
        for key, value in data_to_add.items():
            if not data.get(key):
                data[key] = value

        return data
248993
def import_data(self, data):
        
        if self.get_read_only() and self.is_locked():
            return

        if isinstance(data, BaseModel):
            data = data.export_data()

        if not isinstance(data, (dict, Mapping)):
            raise TypeError('Impossible to import data')

        self._import_data(data)
1286596
private void addShape(String data)
	{
		if (faces.size() != 0)
		{
			Shape s = new Shape(faces);
			shapes.put(currentShape.toLowerCase(), s);
			faces.clear();
		}

		if (data != "")
			currentShape = data.indexOf('_') != -1 ? data.substring(0, data.indexOf('_')) : data;
	}
1242636
def _loadData(self, data):
        
        self._data = data
        self.fastKey = data.attrib.get('fastKey')
        self.key = data.attrib.get('key')
        self.thumb = data.attrib.get('thumb')
        self.title = data.attrib.get('title')
        self.type = data.attrib.get('type')
639417
def Update(self, data):
        
        m = len(data)
        self.params[:m] += data
334913
def _load_child_state_models(self, load_meta_data):
        
        self.states = {}
        # Create model for each child class
        child_states = self.state.states
        for child_state in child_states.values():
            # Create hierarchy
            model_class = get_state_model_class_for_state(child_state)
            if model_class is not None:
                self._add_model(self.states, child_state, model_class, child_state.state_id, load_meta_data)
            else:
                logger.error("Unknown state type '{type:s}'. Cannot create model.".format(type=type(child_state)))
995119
def add(self, **args):
        
        kwargs = self.getKwargs(args)
        if kwargs:
            self.model.add(**kwargs)
455641
public void addRow(String[] data) {

        if (data.length != iColCount) {
            return;
        }

        String[] row = new String[iColCount];

        for (int i = 0; i < iColCount; i++) {
            row[i] = data[i];

            if (row[i] == null) {
                row[i] = "(null)";
            }
        }

        vData.addElement(row);

        iRowCount++;
    }
646099
public void addData(final char[] data, final int off, final int size) {
        if(size<1){
            return;
        }
        final String str = new String(data, off, size);
        if (str.contains("\n")) {
            final String[] lines = str.split("\\r?\\n", -1);
            for (int i = 0 ; i < lines.length - 1 ; i++) {
                appendString(lines[i], true);
            }
            if (lines.length > 0) {
                final String last = lines[lines.length - 1];
                if ("".equals(last)) {
                    //end of previous line
                } else {
                    appendString(last, false);
                }
            }
        } else if (str.contains("\r")) {
            final String[] lines = str.split("\\r", -1);
            for (int i = 0 ; i < lines.length - 2 ; i++) {
                appendString(lines[i], true);
            }
            //last two split strings
            //a: 1,1: yes,no
            //b: 0,1: yes,no
            //c: 0,0: yes(pass),no
            //d: 1,0: yes(pass),
            if (lines.length >= 2) {
                final String last2 = lines[lines.length - 2];

                final String last = lines[lines.length - 1];
                if (!"".equals(last)) {
                    appendString(last2, true);
                    appendString(last, false);
                } else {
                    //pass \r for later \r\n resolution
                    appendString(last2 + "\r", false);
                }
            }
        } else {
            appendString(str, false);
        }
    }
362607
def add_table(self, table):
        

        # theses library must be installed, and are used in votable operations
        # http://www.astropy.org/
        import astropy
        
        table_array = table.__array__()
        self.table_keys= table.keys()
        table_columns= []
        for i in range(0,len(table.columns[0])):
            row_data = []

            # this step is needed in order to properly retrieve strings data
            # (otherwise, Aladin Lite shows these values as DataView object)
            for item in table_array[i]:
                if isinstance(item, bytes):
                    row_data.append(item.decode('utf-8'))
                else:
                    row_data.append(item)
            table_columns.append(row_data)

        self.table_columns = table_columns
        self.table_flag= not self.table_flag
735649
public void addData(final Data DATA) {
        sum += DATA.getValue();
        window.add(DATA);
        if (window.size() > numberPeriod) {
            sum -= window.remove().getValue();
        }
    }