text:
#pragma warning disable 1591
//------------------------------------------------------------------------------
// <auto-generated>
//     This code was generated by a tool.
//     Runtime Version:4.0.30319.42000
//
//     Changes to this file may cause incorrect behavior and will be lost if
//     the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------

namespace ASP
{
    using System;
    using System.Collections.Generic;
    using System.IO;
    using System.Linq;
    using System.Net;
    using System.Text;
    using System.Web;
    using System.Web.Helpers;
    using System.Web.Mvc;
    using System.Web.Mvc.Ajax;
    using System.Web.Mvc.Html;
    using System.Web.Routing;
    using System.Web.Security;
    using System.Web.UI;
    using System.Web.WebPages;
    using Paladino.Web;

    [System.CodeDom.Compiler.GeneratedCodeAttribute("RazorGenerator", "2.0.0.0")]
    [System.Web.WebPages.PageVirtualPathAttribute("~/Areas/Manager/Views/Settings/User.cshtml")]
    public partial class _Areas_Manager_Views_Settings_User_cshtml : System.Web.Mvc.WebViewPage<Paladino.Models.Manager.SettingModels.UserEditModel>
    {
        public _Areas_Manager_Views_Settings_User_cshtml()
        {
        }
        public override void Execute()
        {
DefineSection("Styles", () => {

WriteLiteral("\r\n    \r\n    <link");

WriteLiteral(" rel=\"stylesheet\"");

WriteAttribute("href", Tuple.Create(" href=\"", 142), Tuple.Create("\"", 225)
, Tuple.Create(Tuple.Create("", 149), Tuple.Create<System.Object, System.Int32>(Href("~/res.ashx/Areas/Manager/Content/template/plugins/datepicker/datepicker3.css")
, 149), false)
);

WriteLiteral(">\r\n");

});

WriteLiteral("\r\n");

DefineSection("Scripts", () => {

WriteLiteral("\r\n    \r\n    \r\n    \r\n");

});

WriteLiteral("\r\n
\r\n
\r\n
\r\n
\r\n                <form");

WriteAttribute("action", Tuple.Create(" action=\"", 2537), Tuple.Create("\"", 2565)

            #line 71 "..\..\Areas\Manager\Views\Settings\User.cshtml"
, Tuple.Create(Tuple.Create("", 2546), Tuple.Create<System.Object, System.Int32>(Url.Action("User")

            #line default
            #line hidden
, 2546), false)
);

WriteLiteral(" method=\"post\"");

WriteLiteral(" class=\"form-horizontal\"");

WriteLiteral(">\r\n");

WriteLiteral("                    ");

            #line 72 "..\..\Areas\Manager\Views\Settings\User.cshtml"
               Write(Html.HiddenFor(m => m.User.Id));

            #line default
            #line hidden
WriteLiteral("\r\n");

WriteLiteral("                    ");

            #line 73 "..\..\Areas\Manager\Views\Settings\User.cshtml"
               Write(Html.HiddenFor(m => m.User.IsNew));

            #line default
            #line hidden
WriteLiteral("\r\n");

WriteLiteral("                    ");

            #line 74 "..\..\Areas\Manager\Views\Settings\User.cshtml"
               Write(Html.HiddenFor(m => m.User.Created));

            #line default
            #line hidden
WriteLiteral("\r\n");

WriteLiteral("                    ");

            #line 75 "..\..\Areas\Manager\Views\Settings\User.cshtml"
               Write(Html.HiddenFor(m => m.User.CreatedBy));

            #line default
            #line hidden
WriteLiteral("\r\n");

WriteLiteral("                    ");

            #line 76 "..\..\Areas\Manager\Views\Settings\User.cshtml"
               Write(Html.HiddenFor(m => m.Password.Id));

            #line default
            #line hidden
WriteLiteral("\r\n");

WriteLiteral("                    ");

            #line 77 "..\..\Areas\Manager\Views\Settings\User.cshtml"
               Write(Html.HiddenFor(m => m.Password.IsNew));

            #line default
            #line hidden
WriteLiteral("\r\n\r\n
\r\n
\r\n
");

            #line 81 "..\..\Areas\Manager\Views\Settings\User.cshtml"
                           Write(Paladino.Resources.Settings.UserInfo);

            #line default
            #line hidden
WriteLiteral("
\r\n\r\n
\r\n");

WriteLiteral("                                ");

            #line 84 "..\..\Areas\Manager\Views\Settings\User.cshtml"
                           Write(Html.LabelFor(m => m.User.Login, new { @class = "col-sm-2 control-label" }));

            #line default
            #line hidden
WriteLiteral("\r\n
\r\n");

WriteLiteral("                                    ");

            #line 86 "..\..\Areas\Manager\Views\Settings\User.cshtml"
                               Write(Html.TextBoxFor(m => m.User.Login, new { @class = "form-control" }));

            #line default
            #line hidden
WriteLiteral("\r\n");

WriteLiteral("                                    ");

            #line 87 "..\..\Areas\Manager\Views\Settings\User.cshtml"
                               Write(Html.ValidationMessageFor(m => m.User.Login));

            #line default
            #line hidden
WriteLiteral("\r\n
\r\n
\r\n   " +
"
\r\n");

WriteLiteral("                                ");

            #line 91 "..\..\Areas\Manager\Views\Settings\User.cshtml"
                           Write(Html.LabelFor(m => m.User.Firstname, new { @class = "col-sm-2 control-label" }));

            #line default
            #line hidden
WriteLiteral("\r\n
\r\n");

WriteLiteral("                                    ");

            #line 93 "..\..\Areas\Manager\Views\Settings\User.cshtml"
                               Write(Html.TextBoxFor(m => m.User.Firstname, new { @class = "form-control" }));

            #line default
            #line hidden
WriteLiteral("\r\n");

WriteLiteral("                                    ");

            #line 94 "..\..\Areas\Manager\Views\Settings\User.cshtml"
                               Write(Html.ValidationMessageFor(m => m.User.Firstname));

            #line default
            #line hidden
WriteLiteral("\r\n
\r\n
\r\n   " +
"
\r\n");

WriteLiteral("                                ");

            #line 98 "..\..\Areas\Manager\Views\Settings\User.cshtml"
                           Write(Html.LabelFor(m => m.User.Surname, new { @class = "col-sm-2 control-label" }));

            #line default
            #line hidden
WriteLiteral("\r\n
\r\n");

WriteLiteral("                                    ");

            #line 100 "..\..\Areas\Manager\Views\Settings\User.cshtml"
                               Write(Html.TextBoxFor(m => m.User.Surname, new { @class = "form-control" }));

            #line default
            #line hidden
WriteLiteral("\r\n");

WriteLiteral("                                    ");

            #line 101 "..\..\Areas\Manager\Views\Settings\User.cshtml"
                               Write(Html.ValidationMessageFor(m => m.User.Surname));

            #line default
            #line hidden
WriteLiteral("\r\n
\r\n
\r\n   " +
"
\r\n");

WriteLiteral("                                ");

            #line 105 "..\..\Areas\Manager\Views\Settings\User.cshtml"
                           Write(Html.LabelFor(m => m.User.Email, new { @class = "col-sm-2 control-label" }));

            #line default
            #line hidden
WriteLiteral("\r\n
\r\n");

WriteLiteral("                                    ");

            #line 107 "..\..\Areas\Manager\Views\Settings\User.cshtml"
                               Write(Html.TextBoxFor(m => m.User.Email, new { @class = "form-control" }));

            #line default
            #line hidden
WriteLiteral("\r\n");

WriteLiteral("                                    ");

            #line 108 "..\..\Areas\Manager\Views\Settings\User.cshtml"
                               Write(Html.ValidationMessageFor(m => m.User.Email));

            #line default
            #line hidden
WriteLiteral("\r\n
\r\n
\r\n   " +
"
\r\n");

WriteLiteral("                                ");

            #line 112 "..\..\Areas\Manager\Views\Settings\User.cshtml"
                           Write(Html.LabelFor(m => m.User.GroupId, new { @class = "col-sm-2 control-label" }));

            #line default
            #line hidden
WriteLiteral("\r\n
\r\n");

WriteLiteral("                                    ");

            #line 114 "..\..\Areas\Manager\Views\Settings\User.cshtml"
                               Write(Html.DropDownListFor(m => m.User.GroupId, Model.Groups, new { @class = "form-control" }));

            #line default
            #line hidden
WriteLiteral("\r\n");

WriteLiteral("                                    ");

            #line 115 "..\..\Areas\Manager\Views\Settings\User.cshtml"
                               Write(Html.ValidationMessageFor(m => m.User.GroupId));

            #line default
            #line hidden
WriteLiteral("\r\n
\r\n
\r\n   " +
"
\r\n
\r\n
");

            #line 120 "..\..\Areas\Manager\Views\Settings\User.cshtml"
                            Write(Model.User.IsNew ? @Paladino.Resources.Settings.CreatePassword : @Paladino.Resources.Settings.ChangePassword);

            #line default
            #line hidden
WriteLiteral("
\r\n\r\n
\r\n");

WriteLiteral("                                ");

            #line 123 "..\..\Areas\Manager\Views\Settings\User.cshtml"
                           Write(Html.LabelFor(m => m.Password.Password, new { @class = "col-sm-2 control-label" }));

            #line default
            #line hidden
WriteLiteral("\r\n
\r\n");

WriteLiteral("                                    ");

            #line 125 "..\..\Areas\Manager\Views\Settings\User.cshtml"
                               Write(Html.PasswordFor(m => m.Password.Password, new { @class = "form-control" }));

            #line default
            #line hidden
WriteLiteral("\r\n
\r\n
\r\n   " +
"
\r\n");

WriteLiteral("                                ");

            #line 129 "..\..\Areas\Manager\Views\Settings\User.cshtml"
                           Write(Html.LabelFor(m => m.Password.PasswordConfirm, new { @class = "col-sm-2 control-label" }));

            #line default
            #line hidden
WriteLiteral("\r\n
\r\n");

WriteLiteral("                                    ");

            #line 131 "..\..\Areas\Manager\Views\Settings\User.cshtml"
                               Write(Html.PasswordFor(m => m.Password.PasswordConfirm, new { @class = "form-control" }));

            #line default
            #line hidden
WriteLiteral("\r\n");

WriteLiteral("                                    ");

            #line 132 "..\..\Areas\Manager\Views\Settings\User.cshtml"
                               Write(Html.ValidationMessageFor(m => m.Password.PasswordConfirm));

            #line default
            #line hidden
WriteLiteral("\r\n
\r\n
\r\n   " +
"
\r\n
\r\n                    <di" +
"v");

WriteLiteral(" class=\"row\"");

WriteLiteral(">\r\n
\r\n
");

            #line 139 "..\..\Areas\Manager\Views\Settings\User.cshtml"
                           Write(Paladino.Resources.Settings.Account);

            #line default
            #line hidden
WriteLiteral("
\r\n\r\n
\r\n");

WriteLiteral("                                ");

            #line 142 "..\..\Areas\Manager\Views\Settings\User.cshtml"
                           Write(Html.Label(Paladino.Resources.Settings.APIKey, new { @class = "col-sm-2 control-label" }));

            #line default
            #line hidden
WriteLiteral("\r\n
\r\n");

WriteLiteral("                                    ");

            #line 144 "..\..\Areas\Manager\Views\Settings\User.cshtml"
                               Write(Html.HiddenFor(m => m.User.APIKey));

            #line default
            #line hidden
WriteLiteral("\r\n
\r\n                                        <input");

WriteLiteral(" type=\"text\"");

WriteLiteral(" id=\"apikey\"");

WriteAttribute("value", Tuple.Create(" value=\"", 7450), Tuple.Create("\"", 7538)

            #line 146 "..\..\Areas\Manager\Views\Settings\User.cshtml"
, Tuple.Create(Tuple.Create("", 7458), Tuple.Create<System.Object, System.Int32>(Model.User.APIKey != Guid.Empty ? Model.User.APIKey.ToString() : string.Empty

            #line default
            #line hidden
, 7458), false)
);

WriteLiteral(" class=\"form-control\"");

WriteLiteral(" readonly=\"readonly\"");

WriteLiteral(" />\r\n                                        \r\n                                            <button");

WriteLiteral(" id=\"btnGenerate\"");

WriteLiteral(" type=\"button\"");

WriteLiteral(" class=\"btn btn-info btn-flat\"");

WriteLiteral(">");

            #line 148 "..\..\Areas\Manager\Views\Settings\User.cshtml"
                                                                                Write(Paladino.Resources.Settings.Generate);

            #line default
            #line hidden
WriteLiteral("</button>\r\n                                        \r\n                     " +
"
\r\n
\r\n                 " +
"
\r\n
\r\n");

WriteLiteral("                                ");

            #line 154 "..\..\Areas\Manager\Views\Settings\User.cshtml"
                           Write(Html.LabelFor(m => m.User.IsLocked, new { @class = "col-sm-2 control-label" }));

            #line default
            #line hidden
WriteLiteral("\r\n
\r\n
\r\n                                        \r\n");

WriteLiteral("                                            ");

            #line 158 "..\..\Areas\Manager\Views\Settings\User.cshtml"
                                       Write(Html.CheckBoxFor(m => m.User.IsLocked));

            #line default
            #line hidden
WriteLiteral(" (");

            #line 158 "..\..\Areas\Manager\Views\Settings\User.cshtml"
                                                                                Write(Paladino.Resources.Settings.LockedInfo);

            #line default
            #line hidden
WriteLiteral(")\r\n                                        \r\n                            " +
"
\r\n
\r\n                        " +
"
\r\n
\r\n");

WriteLiteral("                                ");

            #line 164 "..\..\Areas\Manager\Views\Settings\User.cshtml"
                           Write(Html.LabelFor(m => m.User.LockedUntil, new { @class = "col-sm-2 control-label" }));

            #line default
            #line hidden
WriteLiteral("\r\n
\r\n
\r\n
\r\n                                            \r\n
\r\n");

WriteLiteral("                                        ");

            #line 170 "..\..\Areas\Manager\Views\Settings\User.cshtml"
                                   Write(Html.EditorFor(m => m.User.LockedUntil, new { htmlAttributes = new { @class = "form-control pull-right" } }));

            #line default
            #line hidden
WriteLiteral("\r\n
\r\n                                </d" +
"iv>\r\n
\r\n
\r\n       " +
"
\r\n                </form>\r\n
\r\n            <d" +
"iv");

WriteLiteral(" class=\"box-footer\"");

WriteLiteral(">\r\n                <a");

WriteAttribute("href", Tuple.Create(" href=\"", 9541), Tuple.Create("\"", 9571)

            #line 179 "..\..\Areas\Manager\Views\Settings\User.cshtml"
, Tuple.Create(Tuple.Create("", 9548), Tuple.Create<System.Object, System.Int32>(Url.Action("userlist")

            #line default
            #line hidden
, 9548), false)
);

WriteLiteral(" class=\"btn btn-default\"");

WriteLiteral(">");

            #line 179 "..\..\Areas\Manager\Views\Settings\User.cshtml"
                                                                     Write(Paladino.Resources.Global.ToolbarBack);

            #line default
            #line hidden
WriteLiteral("\r\n\r\n                ");

            #line 181 "..\..\Areas\Manager\Views\Settings\User.cshtml"
                                                     Write(Paladino.Resources.Global.ToolbarSave);

            #line default
            #line hidden
WriteLiteral("\r\n                <a");

WriteAttribute("href", Tuple.Create(" href=\"", 9763), Tuple.Create("\"", 9823)

            #line 182 "..\..\Areas\Manager\Views\Settings\User.cshtml"
, Tuple.Create(Tuple.Create("", 9770), Tuple.Create<System.Object, System.Int32>(Url.Action("deleteuser", new { id = Model.User.Id })

            #line default
            #line hidden
, 9770), false)
);

WriteLiteral(" class=\"btn btn-danger pull-right margin-r-5\"");

WriteLiteral(">");

            #line 182 "..\..\Areas\Manager\Views\Settings\User.cshtml"
                                                                                Write(Paladino.Resources.Global.ToolbarDelete);

            #line default
            #line hidden
WriteLiteral("\r\n
\r\n
\r\n
\r\n
");

        }
    }
}
#pragma warning restore 1591


text:
from django.utils.translation import ugettext_lazy as _

import horizon

class AuthPanels(horizon.PanelGroup):
    slug = "auth"
    name = _("Auth")
    panels = ('auth',)

class ModuleDashboard(horizon.Dashboard):
    name = _("Modules")
    slug = "module"  # this map all to /

    panels = (AuthPanels,)
    public = True
    default_panel = 'auth'

#horizon.register(ModuleDashboard)

redpajama_set_name: RedPajamaGithub


text:
package unit.com.bitdubai.fermat_api.layer.all_definition.resources_structure.Skin;

import com.bitdubai.fermat_api.layer.all_definition.exceptions.InvalidParameterException;
import com.bitdubai.fermat_api.layer.all_definition.navigation_structure.MainMenu;
import com.bitdubai.fermat_api.layer.all_definition.navigation_structure.MenuItem;
import com.bitdubai.fermat_api.layer.all_definition.navigation_structure.SideMenu;
import com.bitdubai.fermat_api.layer.all_definition.navigation_structure.StatusBar;
import com.bitdubai.fermat_api.layer.all_definition.navigation_structure.Tab;
import com.bitdubai.fermat_api.layer.all_definition.navigation_structure.TabStrip;
import com.bitdubai.fermat_api.layer.all_definition.navigation_structure.TitleBar;
import com.bitdubai.fermat_api.layer.all_definition.navigation_structure.Wizard;
import com.bitdubai.fermat_api.layer.all_definition.navigation_structure.WizardPage;
import com.bitdubai.fermat_api.layer.all_definition.navigation_structure.enums.Activities;
import com.bitdubai.fermat_api.layer.all_definition.navigation_structure.enums.Fragments;
import com.bitdubai.fermat_api.layer.all_definition.navigation_structure.enums.WizardPageTypes;
import com.bitdubai.fermat_api.layer.all_definition.navigation_structure.enums.WizardTypes;
import com.bitdubai.fermat_api.layer.all_definition.resources_structure.Layout;
import com.bitdubai.fermat_api.layer.all_definition.resources_structure.Resource;
import com.bitdubai.fermat_api.layer.all_definition.resources_structure.Skin;
import com.bitdubai.fermat_api.layer.all_definition.resources_structure.enums.ResourceDensity;
import com.bitdubai.fermat_api.layer.all_definition.resources_structure.enums.ResourceType;
import com.bitdubai.fermat_api.layer.all_definition.resources_structure.enums.ScreenSize;
import com.bitdubai.fermat_api.layer.all_definition.util.Version;
import com.bitdubai.fermat_api.layer.all_definition.util.VersionCompatibility;
import com.bitdubai.fermat_api.layer.all_definition.util.XMLParser;

import junit.framework.TestCase;
import junit.framework.TestResult;

import org.junit.Ignore;
import org.junit.Test;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.UUID;

import org.junit.Test;

/**
 * Created by rodrigo on 2015.07.24..
 */
public class xmlConversionTest extends TestCase {

    public void testcreateResult() {

//        RuntimeSubApp runtimeSubApp = new RuntimeSubApp();
//        runtimeSubApp.setType(SubApps.CWP_SHELL);
//        TitleBar runtimeTitleBar;
//        SideMenu runtimeSideMenu;
//        MainMenu runtimeMainMenu;
//        MenuItem runtimeMenuItem;
//        TabStrip runtimeTabStrip;
//        StatusBar statusBar;
//
//        Tab runtimeTab;
//
//
//        //wallet factory app
//        runtimeSubApp = new RuntimeSubApp();
//        runtimeSubApp.setType(SubApps.CWP_WALLET_FACTORY);
//        runtimeApp.addSubApp(runtimeSubApp);
//        listSubApp.put(SubApps.CWP_WALLET_FACTORY, runtimeSubApp);
//
//        runtimeActivity = new Activity();
//        runtimeActivity.setType(Activities.CWP_WALLET_FACTORY_MAIN);
//        runtimeActivity.setColor("#b46a54");
//        //runtimeActivity.setStatusBarColor("");
//
//        statusBar = new com.bitdubai.fermat_api.layer.all_definition.navigation_structure.StatusBar();
//        statusBar.setColor("#b46a54");
//
//        runtimeTitleBar = new TitleBar();
//        runtimeTitleBar.setLabel("Wallet Factory");
//        runtimeActivity.setTitleBar(runtimeTitleBar);
//
//        runtimeTabStrip = new TabStrip();
//        runtimeTabStrip.setTabsColor("#d07b62");
//        runtimeTabStrip.setTabsTextColor("#FFFFFF");
//        runtimeTabStrip.setTabsIndicateColor("#b46a54");
//
//        runtimeTab = new Tab();
//        runtimeTab.setLabel("Developer Projects");
//        runtimeTab.setFragment(Fragments.CWP_WALLET_FACTORY_MANAGER);
//
//        runtimeTabStrip.addTab(runtimeTab);
//
//        runtimeTab = new Tab();
//        runtimeTab.setLabel("Wallet Projects");
//        runtimeTab.setFragment(Fragments.CWP_WALLET_FACTORY_PROJECTS);
//
//        runtimeTabStrip.addTab(runtimeTab);
//
//        runtimeTab = new Tab();
//        runtimeTab.setLabel("EditMode");
//        runtimeTab.setFragment(Fragments.CWP_WALLET_FACTORY_EDIT_MODE);
//
//        runtimeTabStrip.addTab(runtimeTab);
//
//        runtimeActivity.setTabStrip(runtimeTabStrip);
//        runtimeSubApp.addActivity(runtimeActivity);
//
//        runtimeFragment = new Fragment();
//        runtimeFragment.setType(Fragments.CWP_WALLET_FACTORY_MANAGER);
//        runtimeActivity.addFragment(Fragments.CWP_WALLET_FACTORY_MANAGER, runtimeFragment);
//
//        runtimeFragment = new Fragment();
//        runtimeFragment.setType(Fragments.CWP_WALLET_FACTORY_PROJECTS);
//        runtimeActivity.addFragment(Fragments.CWP_WALLET_FACTORY_PROJECTS, runtimeFragment);
//
//        runtimeFragment = new Fragment();
//        runtimeFragment.setType(Fragments.CWP_WALLET_FACTORY_EDIT_MODE);
//        runtimeActivity.addFragment(Fragments.CWP_WALLET_FACTORY_EDIT_MODE, runtimeFragment);
//
//    /* Adding WizardTypes */
//        Wizard runtimeWizard = new Wizard();
//        // step 1 wizard create from scratch
//        WizardPage runtimeWizardPage = new WizardPage();
//        runtimeWizardPage.setType(WizardPageTypes.CWP_WALLET_FACTORY_CREATE_STEP_1);
//        runtimeWizard.addPage(runtimeWizardPage);
//        //step 2 wizard
//        runtimeWizardPage = new WizardPage();
//        runtimeWizardPage.setType(WizardPageTypes.CWP_WALLET_FACTORY_CREATE_STEP_2);
//        runtimeWizard.addPage(runtimeWizardPage);
//            /* Adding wizard */
//        runtimeActivity.addWizard(WizardTypes.CWP_WALLET_FACTORY_CREATE_NEW_PROJECT, runtimeWizard);
//
//        /**
//         *  Edit Activity
//         */
//        runtimeActivity = new Activity();
//        runtimeActivity.setType(Activities.CWP_WALLET_FACTORY_EDIT_WALLET);
//        runtimeActivity.setColor("#b46a54");
//
//        statusBar = new com.bitdubai.fermat_api.layer.all_definition.navigation_structure.StatusBar();
//        statusBar.setColor("#b46a54");
//
//        runtimeTitleBar = new TitleBar();
//        runtimeTitleBar.setLabel("Edit Wallet");
//        runtimeActivity.setTitleBar(runtimeTitleBar);
//
//        runtimeTabStrip = new TabStrip();
//
//        runtimeTabStrip.setTabsColor("#8bba9e");
//
//        runtimeTabStrip.setTabsTextColor("#FFFFFF");
//
//        runtimeTabStrip.setTabsIndicateColor("#72af9c");
//
//        runtimeTab = new Tab();
//        runtimeTab.setLabel("Balance");
//        runtimeTab.setFragment(Fragments.CWP_WALLET_RUNTIME_WALLET_BITCOIN_ALL_BITDUBAI_BALANCE);
//        runtimeTabStrip.addTab(runtimeTab);
//
//        runtimeTab = new Tab();
//        runtimeTab.setLabel("Contacts");
//        runtimeTab.setFragment(Fragments.CWP_WALLET_RUNTIME_WALLET_BITCOIN_ALL_BITDUBAI_CONTACTS);
//        runtimeTabStrip.addTab(runtimeTab);
//
//        runtimeTabStrip.setDividerColor(0x72af9c);
//        //runtimeTabStrip.setBackgroundColor("#72af9c");
//        runtimeActivity.setTabStrip(runtimeTabStrip);
//
//        runtimeFragment = new Fragment();
//        runtimeFragment.setType(Fragments.CWP_WALLET_RUNTIME_WALLET_BITCOIN_ALL_BITDUBAI_BALANCE);
//        runtimeActivity.addFragment(Fragments.CWP_WALLET_RUNTIME_WALLET_BITCOIN_ALL_BITDUBAI_BALANCE, runtimeFragment);
//
//        runtimeFragment = new Fragment();
//        runtimeFragment.setType(Fragments.CWP_WALLET_RUNTIME_WALLET_BITCOIN_ALL_BITDUBAI_CONTACTS);
//        runtimeActivity.addFragment(Fragments.CWP_WALLET_RUNTIME_WALLET_BITCOIN_ALL_BITDUBAI_CONTACTS, runtimeFragment);
//
//
//        runtimeSubApp.addActivity(runtimeActivity);

        /**End Wallet Factory*/

        Skin skin = new Skin();

        skin.setId(UUID.randomUUID());

        skin.setName("default");

        skin.setScreenSize(ScreenSize.MEDIUM);

        skin.setVersion(new Version(1, 0, 0));

        Map<String,Layout> layoutHashMap = new HashMap<String,Layout>();
        Layout layout;

        layout = new Layout(UUID.randomUUID(),"payment_request_base.xml","payment_request_base");

        layoutHashMap.put("payment_request_base",layout);

        layout = new Layout(UUID.randomUUID(),"pending_request_row.xml","pending_request_row");

        layoutHashMap.put("pending_request_row",layout);

        layout = new Layout(UUID.randomUUID(),"pending_request_row2.xml","pending_request_row2");

        layoutHashMap.put("pending_request_row2", layout);

        skin.setPortraitLayouts(layoutHashMap);

        Map<String,Resource> resourceHashMap = new HashMap<String,Resource>();

        Resource resource;

        resource = new Resource();

        resource.setId(UUID.randomUUID());
        resource.setName("person1");
        resource.setFileName("person1.png");
        resource.setResourceDensity(ResourceDensity.MDPI);
        resource.setResourceType(ResourceType.IMAGE);

        resourceHashMap.put("person1", resource);

        skin.setResources(resourceHashMap);

        try {
            skin.setNavigationStructureCompatibility(new VersionCompatibility(new Version(1,0,0),new Version(1,0,0)));
        } catch (InvalidParameterException e) {
            e.printStackTrace();
        }

        System.out.println(XMLParser.parseObject(skin));

    }

}


text:
package com.travelport.schema.air_v29_0;

import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlEnumValue;
import javax.xml.bind.annotation.XmlType;

/**
 *
Java class for typeInventoryRequest.
 *
 *
The following schema fragment specifies the expected content contained within this class.
 *

 *

 * <simpleType name="typeInventoryRequest">
 *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
 *     <enumeration value="Seamless"/>
 *     <enumeration value="DirectAccess"/>
 *     <enumeration value="Basic"/>
 *   </restriction>
 * </simpleType>
 *

 *
 */
@XmlType(name = "typeInventoryRequest")
@XmlEnum
public enum TypeInventoryRequest {

    @XmlEnumValue("Seamless")
    SEAMLESS("Seamless"),
    @XmlEnumValue("DirectAccess")
    DIRECT_ACCESS("DirectAccess"),
    @XmlEnumValue("Basic")
    BASIC("Basic");
    private final String value;

    TypeInventoryRequest(String v) {
        value = v;
    }

    public String value() {
        return value;
    }

    public static TypeInventoryRequest fromValue(String v) {
        for (TypeInventoryRequest c: TypeInventoryRequest.values()) {
            if (c.value.equals(v)) {
                return c;
            }
        }
        throw new IllegalArgumentException(v);
    }

}


text:
<?php
require_once('include/connection.php');

$username = $_GET['username'];
$gid = $_GET['uid'];
$sql = "select user_id from GGUser where username = '$username'";
$uid = $db_connection->select($sql)[0]['user_id'];
$sql = "insert into User_User_friends values ($uid, $gid, SYSDATE)";
$db_connection->insert($sql);

?>


text:
use std::{fmt, env};

use hir::map::definitions::DefPathData;
use mir;
use ty::{self, Ty, layout};
use ty::layout::{Size, Align, LayoutError};
use rustc_target::spec::abi::Abi;

use super::{RawConst, Pointer, InboundsCheck, ScalarMaybeUndef};

use backtrace::Backtrace;

use ty::query::TyCtxtAt;
use errors::DiagnosticBuilder;

use syntax_pos::{Pos, Span};
use syntax::ast;
use syntax::symbol::Symbol;

#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub enum ErrorHandled {
    /// Already reported a lint or an error for this evaluation
    Reported,
    /// Don't emit an error, the evaluation failed because the MIR was generic
    /// and the substs didn't fully monomorphize it.
    TooGeneric,
}

impl ErrorHandled {
    pub fn assert_reported(self) {
        match self {
            ErrorHandled::Reported => {},
            ErrorHandled::TooGeneric => bug!("MIR interpretation failed without reporting an error \
                                              even though it was fully monomorphized"),
        }
    }
}

pub type ConstEvalRawResult<'tcx> = Result<RawConst<'tcx>, ErrorHandled>;
pub type ConstEvalResult<'tcx> = Result<&'tcx ty::Const<'tcx>, ErrorHandled>;

#[derive(Clone, Debug, RustcEncodable, RustcDecodable)]
pub struct ConstEvalErr<'tcx> {
    pub span: Span,
    pub error: ::mir::interpret::EvalErrorKind<'tcx, u64>,
    pub stacktrace: Vec<FrameInfo<'tcx>>,
}

#[derive(Clone, Debug, RustcEncodable, RustcDecodable)]
pub struct FrameInfo<'tcx> {
    pub call_site: Span, // this span is in the caller!
    pub instance: ty::Instance<'tcx>,
    pub lint_root: Option<ast::NodeId>,
}

impl<'tcx> fmt::Display for FrameInfo<'tcx> {
    fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
        ty::tls::with(|tcx| {
            if tcx.def_key(self.instance.def_id()).disambiguated_data.data
                == DefPathData::ClosureExpr
            {
                write!(f, "inside call to closure")?;
            } else {
                write!(f, "inside call to `{}`", self.instance)?;
            }
            if !self.call_site.is_dummy() {
                let lo = tcx.sess.source_map().lookup_char_pos_adj(self.call_site.lo());
                write!(f, " at {}:{}:{}", lo.filename, lo.line, lo.col.to_usize() + 1)?;
            }
            Ok(())
        })
    }
}

impl<'a, 'gcx, 'tcx> ConstEvalErr<'tcx> {
    pub fn struct_error(&self,
        tcx: TyCtxtAt<'a, 'gcx, 'tcx>,
        message: &str)
        -> Result<DiagnosticBuilder<'tcx>, ErrorHandled>
    {
        self.struct_generic(tcx, message, None)
    }

    pub fn report_as_error(&self,
        tcx: TyCtxtAt<'a, 'gcx, 'tcx>,
        message: &str
    ) -> ErrorHandled {
        let err = self.struct_error(tcx, message);
        match err {
            Ok(mut err) => {
                err.emit();
                ErrorHandled::Reported
            },
            Err(err) => err,
        }
    }

    pub fn report_as_lint(&self,
        tcx: TyCtxtAt<'a, 'gcx, 'tcx>,
        message: &str,
        lint_root: ast::NodeId,
    ) -> ErrorHandled {
        let lint = self.struct_generic(
            tcx,
            message,
            Some(lint_root),
        );
        match lint {
            Ok(mut lint) => {
                lint.emit();
                ErrorHandled::Reported
            },
            Err(err) => err,
        }
    }

    fn struct_generic(
        &self,
        tcx: TyCtxtAt<'a, 'gcx, 'tcx>,
        message: &str,
        lint_root: Option<ast::NodeId>,
    ) -> Result<DiagnosticBuilder<'tcx>, ErrorHandled> {
        match self.error {
            EvalErrorKind::Layout(LayoutError::Unknown(_)) |
            EvalErrorKind::TooGeneric => return Err(ErrorHandled::TooGeneric),
            EvalErrorKind::Layout(LayoutError::SizeOverflow(_)) |
            EvalErrorKind::TypeckError => return Err(ErrorHandled::Reported),
            _ => {},
        }
        trace!("reporting const eval failure at {:?}", self.span);
        let mut err = if let Some(lint_root) = lint_root {
            let node_id = self.stacktrace
                .iter()
                .rev()
                .filter_map(|frame| frame.lint_root)
                .next()
                .unwrap_or(lint_root);
            tcx.struct_span_lint_node(
                ::rustc::lint::builtin::CONST_ERR,
                node_id,
                tcx.span,
                message,
            )
        } else {
            struct_error(tcx, message)
        };
        err.span_label(self.span, self.error.to_string());
        // Skip the last, which is just the environment of the constant.  The stacktrace
        // is sometimes empty because we create "fake" eval contexts in CTFE to do work
        // on constant values.
        if self.stacktrace.len() > 0 {
            for frame_info in &self.stacktrace[..self.stacktrace.len()-1] {
                err.span_label(frame_info.call_site, frame_info.to_string());
            }
        }
        Ok(err)
    }
}

pub fn struct_error<'a, 'gcx, 'tcx>(
    tcx: TyCtxtAt<'a, 'gcx, 'tcx>,
    msg: &str,
) -> DiagnosticBuilder<'tcx> {
    struct_span_err!(tcx.sess, tcx.span, E0080, "{}", msg)
}

#[derive(Debug, Clone)]
pub struct EvalError<'tcx> {
    pub kind: EvalErrorKind<'tcx, u64>,
    pub backtrace: Option<Box<Backtrace>>,
}

impl<'tcx> EvalError<'tcx> {
    pub fn print_backtrace(&mut self) {
        if let Some(ref mut backtrace) = self.backtrace {
            print_backtrace(&mut *backtrace);
        }
    }
}

fn print_backtrace(backtrace: &mut Backtrace) {
    backtrace.resolve();
    eprintln!("\n\nAn error occurred in miri:\n{:?}", backtrace);
}

impl<'tcx> From<EvalErrorKind<'tcx, u64>> for EvalError<'tcx> {
    fn from(kind: EvalErrorKind<'tcx, u64>) -> Self {
        let backtrace = match env::var("RUST_CTFE_BACKTRACE") {
            // matching RUST_BACKTRACE, we treat "0" the same as "not present".
            Ok(ref val) if val != "0" => {
                let mut backtrace = Backtrace::new_unresolved();

                if val == "immediate" {
                    // Print it now
                    print_backtrace(&mut backtrace);
                    None
                } else {
                    Some(Box::new(backtrace))
                }
            },
            _ => None,
        };
        EvalError {
            kind,
            backtrace,
        }
    }
}

pub type AssertMessage<'tcx> = EvalErrorKind<'tcx, mir::Operand<'tcx>>;

#[derive(Clone, RustcEncodable, RustcDecodable)]
pub enum EvalErrorKind<'tcx, O> {
    /// This variant is used by machines to signal their own errors that do not
    /// match an existing variant
    MachineError(String),

    FunctionAbiMismatch(Abi, Abi),
    FunctionArgMismatch(Ty<'tcx>, Ty<'tcx>),
    FunctionRetMismatch(Ty<'tcx>, Ty<'tcx>),
    FunctionArgCountMismatch,
    NoMirFor(String),
    UnterminatedCString(Pointer),
    DanglingPointerDeref,
    DoubleFree,
    InvalidMemoryAccess,
    InvalidFunctionPointer,
    InvalidBool,
    InvalidDiscriminant(ScalarMaybeUndef),
    PointerOutOfBounds {
        ptr: Pointer,
        check: InboundsCheck,
        allocation_size: Size,
    },
    InvalidNullPointerUsage,
    ReadPointerAsBytes,
    ReadBytesAsPointer,
    ReadForeignStatic,
    InvalidPointerMath,
    ReadUndefBytes(Size),
    DeadLocal,
    InvalidBoolOp(mir::BinOp),
    Unimplemented(String),
    DerefFunctionPointer,
    ExecuteMemory,
    BoundsCheck { len: O, index: O },
    Overflow(mir::BinOp),
    OverflowNeg,
    DivisionByZero,
    RemainderByZero,
    Intrinsic(String),
    InvalidChar(u128),
    StackFrameLimitReached,
    OutOfTls,
    TlsOutOfBounds,
    AbiViolation(String),
    AlignmentCheckFailed {
        required: Align,
        has: Align,
    },
    ValidationFailure(String),
    CalledClosureAsFunction,
    VtableForArgumentlessMethod,
    ModifiedConstantMemory,
    ModifiedStatic,
    AssumptionNotHeld,
    InlineAsm,
    TypeNotPrimitive(Ty<'tcx>),
    ReallocatedWrongMemoryKind(String, String),
    DeallocatedWrongMemoryKind(String, String),
    ReallocateNonBasePtr,
    DeallocateNonBasePtr,
    IncorrectAllocationInformation(Size, Size, Align, Align),
    Layout(layout::LayoutError<'tcx>),
    HeapAllocZeroBytes,
    HeapAllocNonPowerOfTwoAlignment(u64),
    Unreachable,
    Panic {
        msg: Symbol,
        line: u32,
        col: u32,
        file: Symbol,
    },
    ReadFromReturnPointer,
    PathNotFound(Vec<String>),
    UnimplementedTraitSelection,
    /// Abort in case type errors are reached
    TypeckError,
    /// Resolution can fail if we are in a too generic context
    TooGeneric,
    /// Cannot compute this constant because it depends on another one
    /// which already produced an error
    ReferencedConstant,
    GeneratorResumedAfterReturn,
    GeneratorResumedAfterPanic,
    InfiniteLoop,
}

pub type EvalResult<'tcx, T = ()> = Result<T, EvalError<'tcx>>;

impl<'tcx, O> EvalErrorKind<'tcx, O> {
    pub fn description(&self) -> &str {
        use self::EvalErrorKind::*;
        match *self {
            MachineError(ref inner) => inner,
            FunctionAbiMismatch(..) | FunctionArgMismatch(..) | FunctionRetMismatch(..)
            | FunctionArgCountMismatch =>
                "tried to call a function through a function pointer of incompatible type",
            InvalidMemoryAccess =>
                "tried to access memory through an invalid pointer",
            DanglingPointerDeref =>
                "dangling pointer was dereferenced",
            DoubleFree =>
                "tried to deallocate dangling pointer",
            InvalidFunctionPointer =>
                "tried to use a function pointer after offsetting it",
            InvalidBool =>
                "invalid boolean value read",
            InvalidDiscriminant(..) =>
                "invalid enum discriminant value read",
            PointerOutOfBounds { .. } =>
                "pointer offset outside bounds of allocation",
            InvalidNullPointerUsage =>
                "invalid use of NULL pointer",
            ValidationFailure(..) =>
                "type validation failed",
            ReadPointerAsBytes =>
                "a raw memory access tried to access part of a pointer value as raw bytes",
            ReadBytesAsPointer =>
                "a memory access tried to interpret some bytes as a pointer",
            ReadForeignStatic =>
                "tried to read from foreign (extern) static",
            InvalidPointerMath =>
                "attempted to do invalid arithmetic on pointers that would leak base addresses, \
                e.g., comparing pointers into different allocations",
            ReadUndefBytes(_) =>
                "attempted to read undefined bytes",
            DeadLocal =>
                "tried to access a dead local variable",
            InvalidBoolOp(_) =>
                "invalid boolean operation",
            Unimplemented(ref msg) => msg,
            DerefFunctionPointer =>
                "tried to dereference a function pointer",
            ExecuteMemory =>
                "tried to treat a memory pointer as a function pointer",
            BoundsCheck{..} =>
                "array index out of bounds",
            Intrinsic(..) =>
                "intrinsic failed",
            NoMirFor(..) =>
                "mir not found",
            InvalidChar(..) =>
                "tried to interpret an invalid 32-bit value as a char",
            StackFrameLimitReached =>
                "reached the configured maximum number of stack frames",
            OutOfTls =>
                "reached the maximum number of representable TLS keys",
            TlsOutOfBounds =>
                "accessed an invalid (unallocated) TLS key",
            AbiViolation(ref msg) => msg,
            AlignmentCheckFailed{..} =>
                "tried to execute a misaligned read or write",
            CalledClosureAsFunction =>
                "tried to call a closure through a function pointer",
            VtableForArgumentlessMethod =>
                "tried to call a vtable function without arguments",
            ModifiedConstantMemory =>
                "tried to modify constant memory",
            ModifiedStatic =>
                "tried to modify a static's initial value from another static's initializer",
            AssumptionNotHeld =>
                "`assume` argument was false",
            InlineAsm =>
                "miri does not support inline assembly",
            TypeNotPrimitive(_) =>
                "expected primitive type, got nonprimitive",
            ReallocatedWrongMemoryKind(_, _) =>
                "tried to reallocate memory from one kind to another",
            DeallocatedWrongMemoryKind(_, _) =>
                "tried to deallocate memory of the wrong kind",
            ReallocateNonBasePtr =>
                "tried to reallocate with a pointer not to the beginning of an existing object",
            DeallocateNonBasePtr =>
                "tried to deallocate with a pointer not to the beginning of an existing object",
            IncorrectAllocationInformation(..) =>
                "tried to deallocate or reallocate using incorrect alignment or size",
            Layout(_) =>
                "rustc layout computation failed",
            UnterminatedCString(_) =>
                "attempted to get length of a null terminated string, but no null found before end \
                of allocation",
            HeapAllocZeroBytes =>
                "tried to re-, de- or allocate zero bytes on the heap",
            HeapAllocNonPowerOfTwoAlignment(_) =>
                "tried to re-, de-, or allocate heap memory with alignment that is not a power of \
                two",
            Unreachable =>
                "entered unreachable code",
            Panic { .. } =>
                "the evaluated program panicked",
            ReadFromReturnPointer =>
                "tried to read from the return pointer",
            PathNotFound(_) =>
                "a path could not be resolved, maybe the crate is not loaded",
            UnimplementedTraitSelection =>
                "there were unresolved type arguments during trait selection",
            TypeckError =>
                "encountered constants with type errors, stopping evaluation",
            TooGeneric =>
                "encountered overly generic constant",
            ReferencedConstant =>
                "referenced constant has errors",
            Overflow(mir::BinOp::Add) => "attempt to add with overflow",
            Overflow(mir::BinOp::Sub) => "attempt to subtract with overflow",
            Overflow(mir::BinOp::Mul) => "attempt to multiply with overflow",
            Overflow(mir::BinOp::Div) => "attempt to divide with overflow",
            Overflow(mir::BinOp::Rem) => "attempt to calculate the remainder with overflow",
            OverflowNeg => "attempt to negate with overflow",
            Overflow(mir::BinOp::Shr) => "attempt to shift right with overflow",
            Overflow(mir::BinOp::Shl) => "attempt to shift left with overflow",
            Overflow(op) => bug!("{:?} cannot overflow", op),
            DivisionByZero => "attempt to divide by zero",
            RemainderByZero => "attempt to calculate the remainder with a divisor of zero",
            GeneratorResumedAfterReturn => "generator resumed after completion",
            GeneratorResumedAfterPanic => "generator resumed after panicking",
            InfiniteLoop =>
                "duplicate interpreter state observed here, const evaluation will never terminate",
        }
    }
}

impl<'tcx> fmt::Display for EvalError<'tcx> {
    fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
        write!(f, "{}", self.kind)
    }
}

impl<'tcx> fmt::Display for EvalErrorKind<'tcx, u64> {
    fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
        write!(f, "{:?}", self)
    }
}

impl<'tcx, O: fmt::Debug> fmt::Debug for EvalErrorKind<'tcx, O> {
    fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
        use self::EvalErrorKind::*;
        match *self {
            PointerOutOfBounds { ptr, check, allocation_size } => {
                write!(f, "Pointer must be in-bounds{} at offset {}, but is outside bounds of \
                           allocation {} which has size {}",
                       match check {
                           InboundsCheck::Live => " and live",
                           InboundsCheck::MaybeDead => "",
                       },
                       ptr.offset.bytes(), ptr.alloc_id, allocation_size.bytes())
            },
            ValidationFailure(ref err) => {
                write!(f, "type validation failed: {}", err)
            }
            NoMirFor(ref func) => write!(f, "no mir for `{}`", func),
            FunctionAbiMismatch(caller_abi, callee_abi) =>
                write!(f, "tried to call a function with ABI {:?} using caller ABI {:?}",
                    callee_abi, caller_abi),
            FunctionArgMismatch(caller_ty, callee_ty) =>
                write!(f, "tried to call a function with argument of type {:?} \
                           passing data of type {:?}",
                    callee_ty, caller_ty),
            FunctionRetMismatch(caller_ty, callee_ty) =>
                write!(f, "tried to call a function with return type {:?} \
                           passing return place of type {:?}",
                    callee_ty, caller_ty),
            FunctionArgCountMismatch =>
                write!(f, "tried to call a function with incorrect number of arguments"),
            BoundsCheck { ref len, ref index } =>
                write!(f, "index out of bounds: the len is {:?} but the index is {:?}", len, index),
            ReallocatedWrongMemoryKind(ref old, ref new) =>
                write!(f, "tried to reallocate memory from {} to {}", old, new),
            DeallocatedWrongMemoryKind(ref old, ref new) =>
                write!(f, "tried to deallocate {} memory but gave {} as the kind", old, new),
            Intrinsic(ref err) =>
                write!(f, "{}", err),
            InvalidChar(c) =>
                write!(f, "tried to interpret an invalid 32-bit value as a char: {}", c),
            AlignmentCheckFailed { required, has } =>
               write!(f, "tried to access memory with alignment {}, but alignment {} is required",
                      has.bytes(), required.bytes()),
            TypeNotPrimitive(ty) =>
                write!(f, "expected primitive type, got {}", ty),
            Layout(ref err) =>
                write!(f, "rustc layout computation failed: {:?}", err),
            PathNotFound(ref path) =>
                write!(f, "Cannot find path {:?}", path),
            MachineError(ref inner) =>
                write!(f, "{}", inner),
            IncorrectAllocationInformation(size, size2, align, align2) =>
                write!(f, "incorrect alloc info: expected size {} and align {}, \
                           got size {} and align {}",
                    size.bytes(), align.bytes(), size2.bytes(), align2.bytes()),
            Panic { ref msg, line, col, ref file } =>
                write!(f, "the evaluated program panicked at '{}', {}:{}:{}", msg, file, line, col),
            InvalidDiscriminant(val) =>
                write!(f, "encountered invalid enum discriminant {}", val),
            _ => write!(f, "{}", self.description()),
        }
    }
}


text:
namespace base {
namespace android {

bool WriteJavaHeapDumpToPath(base::StringPiece filePath) {
  JNIEnv* env = AttachCurrentThread();
  return Java_JavaHeapDumpGenerator_generateHprof(
      env, base::android::ConvertUTF8ToJavaString(env, filePath));
}

}  // namespace android
}  // namespace base