Write your forwards methods here.
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()
392740
def forwards(self, orm):
        ""
        from avocado.core import backup
        backup.safe_load(u'0002_avocado_metadata', backup_path=None,
            using='default')
400375
def goForward(self):
        
        index = self.indexOf(self.currentEditor())
        if index == -1:
            return
        
        next = self.editorAt(index + 1)
        if next:
            next.setFocus()
            next.setCursorPosition(0)
820528
def Forward(self, duration=0):
        '''
        
        '''
        for voice in self.GetChildrenIndexes():
            voice_obj = self.getVoice(voice)
            if voice_obj.GetChild(self.index) is None:
                voice_obj.AddChild(NoteNode.NoteNode(duration=duration))
        self.index += 1
823707
def write(self, fp):
        """"""
        if self._defaults:
            fp.write("[%s]\n" % DEFAULTSECT)
            for (key, value) in self._defaults.items():
                fp.write("%s = %s\n" % (key, str(value).replace('\n', '\n\t')))
            fp.write("\n")
        for section in self._sections:
            fp.write("[%s]\n" % section)
            for (key, value) in self._sections[section].items():
                if key == "__name__":
                    continue
                if (value is not None) or (self._optcre == self.OPTCRE):
                    key = " = ".join((key, str(value).replace('\n', '\n\t')))
                fp.write("%s\n" % (key))
            fp.write("\n")
663216
def forwards(self, orm):
        ""
        # Note: Remember to use orm['appname.ModelName'] rather than "from appname.models..."
        for entry_title in orm.NewsEntryTitle.objects.all():
            entry = NewsEntry.objects.get(pk=entry_title.entry.pk)
            entry.translate(entry_title.language)
            entry.title = entry_title.title
            entry.slug = entry_title.slug
            entry.is_published = entry_title.is_published
            entry.save()
1286026
def forwards(self, orm):
        ""
        # Note: Remember to use orm['appname.ModelName'] rather than "from appname.models..."
        for c in orm["contenttypes.contenttype"].objects.all():
            if c.app_label == "DublinCore":
                c.app_label = "dublincore"
                c.save()
1110992
public static void Forward(double[][] data) {
        double[][] result = new double[data.length][data[0].length];

        for (int m = 0; m < data.length; m++) {
            for (int n = 0; n < data[0].length; n++) {
                double sum = 0;
                for (int i = 0; i < result.length; i++) {
                    for (int k = 0; k < data.length; k++) {
                        sum += data[i][k] * cas(((2.0 * Math.PI) / data.length) * (i * m + k * n));
                    }
                    result[m][n] = (1.0 / data.length) * sum;
                }
            }
        }

        for (int i = 0; i < data.length; i++) {
            for (int j = 0; j < data[0].length; j++) {
                data[i][j] = result[i][j];
            }
        }
    }
1084797
def move_forward(self, seconds=None):
        """"""
        self._move(speed=SPEED_MAX, steering=0, seconds=seconds)
1085979
def forwards(self, orm):
        ""
        fields = orm['avocado.DataField'].objects.filter(app_name='variants',
            model_name='evs', field_name__in=('all_maf', 'aa_maf', 'ea_maf'))
        for f in fields:
            f.field_name = f.field_name.replace('maf', 'af')
            f.save()
817334
def forwards(self, orm):
        ""
        for document in orm['document_library.Document'].objects.all():
            self.migrate_placeholder(
                orm, document, 'content', 'document_library_content', 'content')
180569
def forwards(self, orm):
        ""

        rows = db.execute("select distinct feature_type from content_content")
        for row in rows:
            feature_type = row[0]
            try:
                ft = orm.FeatureType.objects.get(slug=slugify(feature_type))
            except orm.FeatureType.DoesNotExist:
                ft = orm.FeatureType.objects.create(
                    name=feature_type,
                    slug=slugify(feature_type)
                )
            db.execute("update content_content set feature_type_id = %s where feature_type = %s", [ft.id, feature_type])
986848
def forwards(apps, schema_editor):
    
    Event = apps.get_model('spectator_events', 'Event')

    for event in Event.objects.all():
        if event.venue is not None:
            event.venue_name = event.venue.name
            event.save()
133229
def forward_message(self, *args, **kwargs):
        """"""
        return forward_message(*args, **self._merge_overrides(**kwargs)).run()
485698
def forwards(self, orm):
        ""
        # Note: Remember to use orm['appname.ModelName'] rather than "from appname.models..."
        for category in Category.objects.all():
            category.slug = category._generate_slug()
            category.save()
513902
def forwards(self, orm):
        ""
        orm['samples.Cohort'].objects.filter(autocreated=True, batch__isnull=False).delete()
270036
public void forward() {

        m_context.getSetupBean().prepareStep10();
        CmsSetupBean bean = m_context.getSetupBean();
        VaadinServletRequest request = (VaadinServletRequest)(VaadinRequest.getCurrent());
        String servletMapping = bean.getServletMapping();
        String openLink = null;

        if (!servletMapping.startsWith("/")) {
            servletMapping = "/" + servletMapping;
        }
        if (servletMapping.endsWith("/*")) {
            // usually a mapping must be in the form "/opencms/*", cut off all slashes
            servletMapping = servletMapping.substring(0, servletMapping.length() - 2);
        }
        openLink = request.getContextPath() + servletMapping + (bean.hasIndexHtml() ? "/index.html" : "/system/login");

        A_CmsUI.get().getPage().setLocation(openLink);
    }