Write your forwards methods here.
513902
def forwards(self, orm):
        ""
        orm['samples.Cohort'].objects.filter(autocreated=True, batch__isnull=False).delete()
155926
def forwards(self, orm):
        ""

        projects = orm['samples.Project'].objects.exclude(name=DEFAULT_PROJECT_NAME)
        for project in projects:
            cohort = orm['samples.Cohort'](name=project.label, autocreated=True)
            cohort.project = project
            cohort.save()
            cohort_bulk_add(orm, cohort, orm['samples.Sample'].objects.filter(project=project).distinct())

        batches = orm['samples.Batch'].objects.select_related('project')
        for batch in batches:
            cohort = orm['samples.Cohort'](name=batch.label, autocreated=True)
            cohort.project = batch.project
            cohort.save()
            cohort_bulk_add(orm, cohort, orm['samples.Sample'].objects.filter(batch=batch).distinct())

        # Populate the default cohort with all samples
        default_cohort = orm['samples.Cohort'].objects.get(name=DEFAULT_COHORT_NAME)
        cohort_bulk_add(orm, default_cohort, orm['samples.Sample'].objects.all())
1202912
public function advance() : void
    {
        if ($this->cursor < count($this->stream->getTokens()) - 1) {
            ++$this->cursor;
        }
    }
655822
def forward_word(self, e): # (M-f)
        """
        self.l_buffer.forward_word(self.argument_reset)
        self.finalize()
643518
def forward(self, x):
        ''''''
        N,C,H,W = x.size()
        g = self.groups
        return x.view(N,g,C/g,H,W).permute(0,2,1,3,4).contiguous().view(N,C,H,W)
721819
public void forward(ServletRequest servletRequest,
                        ServletResponse servletResponse)
        throws ServletException,IOException
    {
        dispatch(servletRequest,servletResponse,Dispatcher.__FORWARD);
    }
94225
def forwards(self, orm):
        ""
        orm['avocado.DataField'].objects.filter(app_name='samples', model_name='cohort',
            field_name__in=['investigator', 'notes']).delete()
151347
def forwards(self, orm):
        ""
        samples = orm['samples.Sample'].objects.select_related('batch__project')
        for sample in samples:
            sample.project = sample.batch.project
            sample.save()
1273499
public void forward(MessageEnvelope envelope) {
		List<FbBot> bots = FbBotMillContext.getInstance().getRegisteredBots();
		for (FbBot b : bots) {
			b.processMessage(envelope);
		}
	}
899536
def forwards(self, orm):
        ""
        for doc in orm['document_library.Document'].objects.all():
            for title in doc.documenttitle_set.all():
                title.is_published = doc.is_published
                title.save()
1269309
def forward_all(collection)
      newcollection = collection.dup.clear
      collection.each do |point|
        newcollection << forward(point)
      end
      newcollection
    end
246256
def forward(self, is_train=False):
        """"""
        for texec in self.train_execs:
            texec.forward(is_train=is_train)
937403
def write(self, fh):
        
        fh.write(GFF3_HEADER+"\n")
        for root in sorted(self.roots, key=self._recSortKey):
            self._writeRec(fh, root)
430532
def forwards(self, orm):
        ""
        # Note: Don't use "from appname.models import ModelName". 
        # Use orm.ModelName to refer to models in this application,
        # and orm['appname.ModelName'] for models in other applications.
        from account_keeping.models import Invoice
        for invoice in Invoice.objects.all():
            invoice.save()
161305
def forward_list(self):
        '''
        
        '''
        version = self.version()
        if int(version[1]) <= 1 and int(version[2]) <= 0 and int(version[3]) < 31:
            raise EnvironmentError("Low adb version.")
        lines = self.run_cmd("forward", "--list").strip().splitlines()
        return [line.strip().split() for line in lines]
102225
def forwards(self, orm):
        ""
        for category in orm['document_library.DocumentCategory'].objects.all():
            category.is_published = True
            category.save()
28078
def forwards(self, orm):
        ""
        # Note: Don't use "from appname.models import ModelName".
        # Use orm.ModelName to refer to models in this application,
        # and orm['appname.ModelName'] for models in other applications.
        other = orm['assessments.AssessmentCategory'].objects.get(id=7)
        for assessment in orm['assessments.Assessment'].objects.filter(
                assessment_category__isnull=True):
            assessment.assessment_category = other
            assessment.save()