text:
require_dependency 'search'

class UserSearch

  def initialize(term, opts={})
    @term = term
    @term_like = "#{term.downcase.gsub("_", "\\_")}%"
    @topic_id = opts[:topic_id]
    @topic_allowed_users = opts[:topic_allowed_users]
    @searching_user = opts[:searching_user]
    @limit = opts[:limit] || 20
    @group = opts[:group]
    @guardian = Guardian.new(@searching_user)
    @guardian.ensure_can_see_group!(@group) if @group
  end

  def scoped_users
    users = User.where(active: true, staged: false)

    if @group
      users = users.where('users.id IN (
        SELECT user_id FROM group_users WHERE group_id = ?
      )', @group.id)
    end

    unless @searching_user && @searching_user.staff?
      users = users.not_suspended
    end

    # Only show users who have access to private topic
    if @topic_id && @topic_allowed_users == "true"
      topic = Topic.find_by(id: @topic_id)

      if topic.category && topic.category.read_restricted
        users = users.includes(:secure_categories)
                     .where("users.admin = TRUE OR categories.id = ?", topic.category.id)
                     .references(:categories)
      end
    end

    users.limit(@limit)
  end

  def filtered_by_term_users
    users = scoped_users

    if @term.present?
      if SiteSetting.enable_names? && @term !~ /[_\.-]/
        query = Search.ts_query(@term, "simple")

        users = users.includes(:user_search_data)
                     .references(:user_search_data)
                     .where("user_search_data.search_data @@ #{query}")
                     .order(User.sql_fragment("CASE WHEN username_lower LIKE ? THEN 0 ELSE 1 END ASC", @term_like))

      else
        users = users.where("username_lower LIKE :term_like", term_like: @term_like)
      end
    end

    users
  end

  def search_ids
    users = Set.new

    # 1. exact username matches
    if @term.present?
      scoped_users.where(username_lower: @term.downcase)
                  .limit(@limit)
                  .pluck(:id)
                  .each { |id| users << id }

    end

    return users.to_a if users.length >= @limit

    # 2. in topic
    if @topic_id
      filtered_by_term_users.where('users.id IN (SELECT p.user_id FROM posts p WHERE topic_id = ?)', @topic_id)
                            .order('last_seen_at DESC')
                            .limit(@limit - users.length)
                            .pluck(:id)
                            .each { |id| users << id }
    end

    return users.to_a if users.length >= @limit

    # 3. global matches
    filtered_by_term_users.order('last_seen_at DESC')
                            .limit(@limit - users.length)
                            .pluck(:id)
                            .each { |id| users << id }

    users.to_a
  end

  def search
    ids = search_ids
    return User.where("0=1") if ids.empty?

    User.joins("JOIN (SELECT unnest uid, row_number() OVER () AS rn
      FROM unnest('{#{ids.join(",")}}'::int[])
    ) x on uid = users.id")
        .order("rn")
  end

end


text:
package org.dozer.functional_tests;

import java.util.List;

import org.dozer.DozerBeanMapper;
import org.dozer.metadata.ClassMappingMetadata;
import org.dozer.metadata.FieldMappingMetadata;
import org.dozer.metadata.MappingMetadata;
import org.dozer.metadata.MetadataLookupException;
import org.junit.Before;
import org.junit.Test;

import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;

/**
 * Tests for the new mapping catalogue interfaces.
 * @author  florian.kunz
 */
public class MetadataFieldTest extends AbstractFunctionalTest {

    private static final String MAPPING_FILE = "metadataTest.xml";
    private static final String CLASS_A = "org.dozer.vo.metadata.ClassA";
    private static final String CLASS_B = "org.dozer.vo.metadata.ClassB";
    private static final String NONEXISTENTFIELD = "noField";
    private static final String AUTOFIELD = "autoField";
    private static final String CUSTOM_FIELD_A = "customFieldA";
    private static final String CUSTOM_FIELD_B = "customFieldB";

    private MappingMetadata mapMetadata;

    @Before
    public void setup() {
        DozerBeanMapper beanMapper = (DozerBeanMapper) getMapper(MAPPING_FILE);
        mapMetadata = beanMapper.getMappingMetadata();
    }

    @Test
    public void testFieldMaps() {
        ClassMappingMetadata classMetadata = mapMetadata.getClassMappingByName(CLASS_A, CLASS_B);
        List<FieldMappingMetadata> fieldMetadata = classMetadata.getFieldMappings();
        assertTrue(AUTOFIELD, fieldMetadata.size() == 3);
    }

    @Test
    public void testAutoFieldMap() {
        ClassMappingMetadata classMetadata = mapMetadata.getClassMappingByName(CLASS_A, CLASS_B);
        FieldMappingMetadata fieldMetadata = classMetadata.getFieldMappingBySource(AUTOFIELD);
        assertEquals(AUTOFIELD, fieldMetadata.getDestinationName());
    }

    @Test
    public void testCustomFieldMap() {
        ClassMappingMetadata classMetadata = mapMetadata.getClassMappingByName(CLASS_A, CLASS_B);
        FieldMappingMetadata fieldMetadata = classMetadata.getFieldMappingBySource(CUSTOM_FIELD_A);
        assertEquals(CUSTOM_FIELD_B, fieldMetadata.getDestinationName());
    }

    @Test
    public void testFieldMapByDestination() {
        ClassMappingMetadata classMetadata = mapMetadata.getClassMappingByName(CLASS_A, CLASS_B);
        classMetadata.getFieldMappingByDestination(CUSTOM_FIELD_B);
    }

    @Test
    public void testCustomFieldMapBack() {
        ClassMappingMetadata classMetadata = mapMetadata.getClassMappingByName(CLASS_A, CLASS_B);
        FieldMappingMetadata fieldMetadata = classMetadata.getFieldMappingByDestination(CUSTOM_FIELD_B);
        assertEquals(CUSTOM_FIELD_A, fieldMetadata.getSourceName());
    }

    @Test(expected=MetadataLookupException.class)
    public void testFieldMapNonExistantSource() {
        ClassMappingMetadata classMetadata = mapMetadata.getClassMappingByName(CLASS_A, CLASS_B);
        classMetadata.getFieldMappingBySource(NONEXISTENTFIELD);
    }

    @Test(expected=MetadataLookupException.class)
    public void testFieldMapNonExistantDestination() {
        ClassMappingMetadata classMetadata = mapMetadata.getClassMappingByName(CLASS_A, CLASS_B);
        classMetadata.getFieldMappingByDestination(NONEXISTENTFIELD);
    }

}

redpajama_set_name: RedPajamaGithub


text:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>scanu</title>
    <link rel="stylesheet" type="text/css" href="csound.css" />
    <meta name="generator" content="DocBook XSL Stylesheets V1.78.1" />
    <link rel="home" href="index.html" title="Manuel de référence canonique de Csound" />
    <link rel="up" href="OpcodesTop.html" title="Opcodes et opérateurs de l'orchestre" />
    <link rel="prev" href="scantable.html" title="scantable" />
    <link rel="next" href="schedkwhen.html" title="schedkwhen" />

          scanu

          Précédent
          Opcodes et opérateurs de l'orchestre
           Suivant

          scanu

scanu —
      Calcule la forme d'onde et la table d'onde à utiliser dans la synthèse par
      balayage.

Description

      Calcule la forme d'onde et la table d'onde à utiliser dans la synthèse par
      balayage.

Syntaxe

scanu init, irate, ifnvel, ifnmass, ifnstif, ifncentr, ifndamp, kmass, \
      kstif, kcentr, kdamp, ileft, iright, kpos, kstrngth, ain, idisp, id

Initialisation

      init -- la position initiale des masses. Si c'est un
      nombre négatif, alors la valeur absolue de init indique
      la table à utiliser pour la forme du marteau. Si init
      > 0, il représente le nombre de masses attendu.

      ifnvel -- ftable contenant la vitesse initiale de
      chaque masse. Sa taille est le nombre de masses attendu.

      ifnmass -- ftable contenant la valeur de chaque masse.
      Sa taille est le nombre de masses attendu.

      ifnstif -- ftable contenant la raideur du ressort de
      chaque connexion. Sa taille est le carré du nombre de masses attendu. Ses
      données sont ordonnées selon la succession des lignes de la matrice de
      connexion du système.

      ifncentr -- ftable contenant la force de centrage de chaque
      masse. Sa taille est le nombre de masses attendu.

      ifndamp -- ftable contenant le facteur d'amortissement de
      chaque masse. Sa taille est le nombre de masses attendu.

      ileft -- si init < 0, position
      du marteau de gauche (ileft = 0 frappe complètement
      à gauche, ileft = 1 frappe complètement à droite).

      iright -- si init < 0, position
      du marteau de droite (iright = 0 frappe complètement à
      gauche, iright = 1 frappe complètement à droite).

      idisp -- s'il vaut 0, il n'y a pas d'affichage des masses.

      id -- s'il est positif, c'est l'ID de l'opcode. Il est
      utilisé pour relier l'opcode de balayage au bon générateur de forme d'onde.
      S'il est négatif, sa valeur absolue indique la table d'onde dans laquelle
      sera écrite la forme d'onde. Cette forme d'onde peut être utilisée par la
      suite par un autre opcode pour générer du son. Le contenu initial de cette
      table sera écrasé.

Exécution

      kmass -- pondère les masses

      kstif -- pondère la raideur des ressorts

      kcentr -- pondère la force de centrage

      kdamp -- pondère l'amortissement

      kpos -- position d'un marteau actif le long de la corde
      (kpos = 0 est complètement à gauche,
      kpos = 1 est complètement à droite). La forme du marteau
      est déterminée par init et sa puissance de percussion
      est kstrngth.

      kstrngth -- puissance utilisée par le marteau actif

      ain -- entrée audio qui s'ajoute à la vélocité des
      masses. L'amplitude ne doit pas être trop grande.

Exemples

      Pour une exemple, voir la documentation de
      scans.

Voir aussi

Plus d'information sur cet opcode :

    http://www.csounds.com/stevenyi/scanned/yi_scannedSynthesis.html
    , écrit par Steven Yi.

Crédits

            Auteur : Paris Smaragdis

            MIT Media Lab

            Boston, Massachussetts USA

            Mars 2000

Nouveau dans la version 4.05 de Csound

          Précédent

            Niveau supérieur

           Suivant

          scantable

            Sommaire

           schedkwhen


text:
<!DOCTYPE html>

    <meta charset="UTF-8">
    <link rel="stylesheet" type="text/css" href="css/bootstrap.min.css">
    <title>optional class</title>

hello world


text:
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  <modelVersion>4.0.0</modelVersion>
  <parent>
    <groupId>com.thinkbiganalytics.datalake</groupId>
    <artifactId>kylo</artifactId>
    <version>0.8.1-SNAPSHOT</version>
  </parent>
  <properties>
    <plugin.license.parentRelative>../</plugin.license.parentRelative>
  </properties>
  <artifactId>kylo-commons</artifactId>
  <packaging>pom</packaging>

  <modules>
    <module>commons-util</module>
    <module>commons-feed-util</module>
    <module>commons-rest-model</module>
    <module>commons-rest-client</module>
    <module>commons-jdbc</module>
    <module>commons-jpa</module>
    <module>commons-spark</module>
    <module>commons-hive</module>
    <module>commons-test-persistence</module>
    <module>commons-test</module>
  </modules>
</project>


text:
import * as React from "react";
import * as PopperJS from "popper.js";

interface ManagerProps {
  children: React.ReactNode;
}
export class Manager extends React.Component<ManagerProps, {}> { }

interface ReferenceChildrenProps {
  // React refs are supposed to be contravariant (allows a more general type to be passed rather than a more specific one)
  // However, Typescript currently can't infer that fact for refs
  // See https://github.com/microsoft/TypeScript/issues/30748 for more information
  ref: React.Ref<any>;
}

interface ReferenceProps {
  children: (props: ReferenceChildrenProps) => React.ReactNode;
  innerRef?: React.Ref<any>;
}
export class Reference extends React.Component<ReferenceProps, {}> { }

export interface PopperArrowProps {
  ref: React.Ref<any>;
  style: React.CSSProperties;
}

export interface PopperChildrenProps {
  arrowProps: PopperArrowProps;
  outOfBoundaries: boolean | null;
  placement: PopperJS.Placement;
  ref: React.Ref<any>;
  scheduleUpdate: () => void;
  style: React.CSSProperties;
}

export interface PopperProps {
  children: (props: PopperChildrenProps) => React.ReactNode;
  eventsEnabled?: boolean;
  innerRef?: React.Ref<any>;
  modifiers?: PopperJS.Modifiers;
  placement?: PopperJS.Placement;
  positionFixed?: boolean;
  referenceElement?: PopperJS.ReferenceObject;
}
export class Popper extends React.Component<PopperProps, {}> { }


text:
package org.vaadin.maps.client.geometry;

/**
 * Basic implementation of LineString.
 *
 * @version 1.7
 */
public class LineString extends Point {

    public LineString(Coordinate... coordinates) {
        this(coordinates, 0);
    }

    public LineString(Coordinate[] coordinates, int SRID) {
        this(new CoordinateSequence(coordinates), SRID);
    }

    public LineString(CoordinateSequence coordinates) {
        this(coordinates, 0);
    }

    public LineString(CoordinateSequence coordinates, int SRID) {
        super(SRID);
        init(coordinates);
    }

    public LineString(LineString lineString) {
        this(lineString.coordinates, lineString.SRID);
    }

    private void init(CoordinateSequence coordinates) {
        if (coordinates != null) {
            this.coordinates = new CoordinateSequence(coordinates);
        }
    }

    public Coordinate getCoordinate(int index) {
        return coordinates.get(index);
    }

    public Point getPoint(int index) {
        return new Point(new Coordinate(coordinates.get(index)));
    }

    public Point getStartPoint() {
        if (isEmpty()) {
            return null;
        }
        return getPoint(0);
    }

    public Point getEndPoint() {
        if (isEmpty()) {
            return null;
        }
        return getPoint(getNumPoints() - 1);
    }

    public boolean isClosed() {
        if (isEmpty()) {
            return false;
        }
        return getCoordinate(0).equals(getCoordinate(getNumPoints() - 1));
    }

    @Override
    public String getGeometryType() {
        return "LineString";
    }

    /**
     * Creates a {@link LineString} whose coordinates are in the reverse order
     * of this objects
     *
     * @return a {@link LineString} with coordinates in the reverse order
     */
    public LineString reverse() {
        LineString lineString = new LineString(this);
        CoordinateSequence.reverse(lineString.coordinates);
        return lineString;
    }

    public LineString getClosed() {
        if (!isEmpty()) {
            LineString lineString = new LineString(this);

            if (!lineString.isClosed()) {
                lineString.coordinates.add(new Coordinate(getStartPoint().getCoordinate()));
            }

            return lineString;
        }
        return null;
    }

    public void close() {
        if (!isEmpty() && !isClosed()) {
            coordinates.add(new Coordinate(getStartPoint().getCoordinate()));
        }
    }

    /**
     * Returns true if the given point is a vertex of this
     * LineString.
     *
     * @param pt the Coordinate to check
     * @return true if pt is one of this
     * LineString 's vertices
     */
    public boolean isVertex(Coordinate coordinate) {
        return coordinates.coordinates.contains(coordinate);
    }

    @Override
    public boolean equals(Object other) {
        if (!(other instanceof LineString)) {
            return false;
        }
        LineString otherLineString = (LineString) other;

        return coordinates.equals(otherLineString.coordinates);
    }

}


text:
package org.wso2.developerstudio.eclipse.carbonserver.base.utils;

import java.io.BufferedInputStream;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.net.MalformedURLException;
import java.net.URL;
import java.util.Arrays;
import java.util.Enumeration;

import javax.activation.DataHandler;

import org.apache.axis2.AxisFault;
import org.apache.axis2.transport.http.HTTPConstants;
import org.eclipse.core.resources.IWorkspace;
import org.eclipse.core.resources.IWorkspaceRoot;
import org.eclipse.core.resources.ResourcesPlugin;
import org.eclipse.core.runtime.IPath;
import org.eclipse.core.runtime.Platform;
import org.eclipse.core.runtime.preferences.IPreferencesService;
import org.wso2.developerstudio.eclipse.carbonserver.base.Activator;
import org.wso2.developerstudio.eclipse.carbonserver.base.capp.uploader.CarbonAppUploaderStub;
import org.wso2.developerstudio.eclipse.carbonserver.base.capp.uploader.CarbonAppUploaderStub.UploadedFileItem;
import org.wso2.developerstudio.eclipse.carbonserver.base.carbon.application.ApplicationAdminStub;
import org.wso2.developerstudio.eclipse.logging.core.IDeveloperStudioLog;
import org.wso2.developerstudio.eclipse.logging.core.Logger;
import org.wso2.developerstudio.eclipse.platform.ui.preferences.ClientTrustStorePreferencePage;
import org.wso2.developerstudio.eclipse.platform.ui.utils.SSLUtils;

public class CAppDeployer {

	private static IDeveloperStudioLog log=Logger.getLog(Activator.PLUGIN_ID);
	private static IPreferencesService preferenceStore;

	/**
	 * This method is used to upload car files in to your carbon server instances and to a tanent in the cloud platform.
	 * @param username Username to access your server/tanent
	 * @param pwd Password to access your server/tanent
	 * @param url URL of the server/tanent
	 * @param carFile File reference to the actual Car File.
	 * @throws Exception
	 */
	public void deployCApp(String username, String pwd, String url, File carFile) throws Exception{
		CarbonAppUploaderStub carbonAppUploaderStub = getCarbonAppUploaderStub(username, pwd, url);
		UploadedFileItem uploadedFileItem = new UploadedFileItem();
		DataHandler param=new DataHandler(carFile.toURI().toURL());
		uploadedFileItem.setDataHandler(param);
		uploadedFileItem.setFileName(carFile.getName());
		uploadedFileItem.setFileType("jar");
		UploadedFileItem[] fileItems=new UploadedFileItem[]{uploadedFileItem};
		carbonAppUploaderStub.uploadApp(fileItems);
	}

	private CarbonAppUploaderStub getCarbonAppUploaderStub(String username,
			String pwd, String url) throws Exception, AxisFault,
			MalformedURLException {
		String sessionCookie = CarbonServerUtils.createSessionCookie(url, username, pwd);
		CarbonAppUploaderStub carbonAppUploaderStub = new CarbonAppUploaderStub(CarbonServerUtils.getURL(url) + "/services/CarbonAppUploader");
		SSLUtils.setSSLProtocolHandler(carbonAppUploaderStub);
		carbonAppUploaderStub._getServiceClient().getOptions().setManageSession(true);
		carbonAppUploaderStub._getServiceClient().getOptions().setProperty(HTTPConstants.COOKIE_STRING, sessionCookie);
		return carbonAppUploaderStub;
	}

	static {
		preferenceStore = Platform.getPreferencesService();

		String clientTrustStoreLocation = preferenceStore
				.getString("org.wso2.developerstudio.eclipse.platform.ui",
						ClientTrustStorePreferencePage.TRUST_STORE_LOCATION,
						null, null);
		String clientTrustStoreType = preferenceStore.getString(
				"org.wso2.developerstudio.eclipse.platform.ui",
				ClientTrustStorePreferencePage.TRUST_STORE_TYPE, null, null);
		String clientTrustStorePassword = preferenceStore
				.getString("org.wso2.developerstudio.eclipse.platform.ui",
						ClientTrustStorePreferencePage.TRUST_STORE_PASSWORD,
						null, null);

		System.setProperty("javax.net.ssl.trustStoreType", "JKS");
		if (clientTrustStoreLocation != null
				&& clientTrustStorePassword != null
				&& clientTrustStoreLocation.endsWith(".jks")
				&& !clientTrustStorePassword.equals("")) {
			System.setProperty("javax.net.ssl.trustStore",
					clientTrustStoreLocation);
			System.setProperty("javax.net.ssl.trustStorePassword",
					clientTrustStorePassword);
		} else {
			System.setProperty("javax.net.ssl.trustStore", getJKSPath());
			System.setProperty("javax.net.ssl.trustStorePassword", "wso2carbon");
		}
	}

	private static String getJKSPath() {
		extractFilesToLocation("resources/security",
				new File(getMetaDataPath()));
		String path = getMetaDataPath() + File.separator + "security"
				+ File.separator + "wso2carbon.jks";
		return path;
	}

	public static void extractFilesToLocation(String resourcePath,
			File destination) {
		URL resource = Activator.getDefault().getBundle().getResource(
				resourcePath);
		if (isResourceFolder(resource)) {
			Enumeration confFolder = Activator.getDefault().getBundle()
					.getEntryPaths(resourcePath);
			String[] filePath = resource.getFile().split("/");
			File newDestinationPath = new File(destination,
					filePath[filePath.length - 1]);
			newDestinationPath.mkdirs();
			while (confFolder != null && confFolder.hasMoreElements()) {
				String newResourcefile = confFolder.nextElement().toString();
				extractFilesToLocation(newResourcefile, newDestinationPath);
			}

		} else {
			copyResourceToDestination(resource, destination);
		}
	}

	private static boolean isResourceFolder(URL url) {
		boolean result = true;
		try {
			InputStream openStream = url.openStream();
			if (openStream.available() > 0)
				result = false;
			openStream.close();
		} catch (IOException e) {
			// error
		}
		return result;
	}

	private static void copyResourceToDestination(URL url, File destination) {
		String[] filePath = url.getFile().split("/");
		File destinationFile = new File(destination,
				filePath[filePath.length - 1]);

		InputStream confOpenStream;
		try {
			confOpenStream = url.openStream();
			BufferedInputStream confBufferedInStream = null;
			confBufferedInStream = new BufferedInputStream(confOpenStream);
			FileOutputStream out = new FileOutputStream(destinationFile);
			byte[] buf = new byte[1024];
			int len;
			while ((len = confBufferedInStream.read(buf)) > 0) {
				out.write(buf, 0, len);
			}

			confOpenStream.close();
			out.close();
		} catch (IOException e) {
			log.error(e);
		}
	}

	public static String getMetaDataPath() {
		IWorkspace workspace = ResourcesPlugin.getWorkspace();
		IWorkspaceRoot root = workspace.getRoot();
		IPath location = root.getLocation();
		String metadataPath = location.toOSString() + File.separator + ".metadata";
		return metadataPath;
	}

	/**
	 * This method is used to remove car files from your carbon server instances and from tanent in the cloud platform.
	 * @param serverURL Server instance URI or the tanent url
	 * @param username Username
	 * @param pwd Password
	 * @param carName Car file name without extension.
	 * @throws Exception
	 */
	public static void unDeployCAR(String serverURL, String username, String pwd, String carName) throws Exception{
		ApplicationAdminStub appAdminStub = getApplicationAdminStub(serverURL, username, pwd);
		try{
            appAdminStub.deleteApplication(carName);
        }catch(Exception e){
        	log.error(e);
        }
	}

	private static ApplicationAdminStub getApplicationAdminStub(
			String serverURL, String username, String pwd) throws Exception,
			AxisFault, MalformedURLException {
		String sessionCookie = CarbonServerUtils.createSessionCookie(serverURL, username, pwd);
		ApplicationAdminStub appAdminStub = new ApplicationAdminStub(CarbonServerUtils.getURL(serverURL) + "/services/ApplicationAdmin");
		SSLUtils.setSSLProtocolHandler(appAdminStub);
		appAdminStub._getServiceClient().getOptions().setManageSession(true);
		appAdminStub._getServiceClient().getOptions().setProperty(HTTPConstants.COOKIE_STRING, sessionCookie);
		return appAdminStub;
	}
}


text:
<?php

namespace backend\modules\galleries\models;

use Yii;
use yii\db\Expression;
use yii\behaviors\TimestampBehavior;
use yii\behaviors\BlameableBehavior;

/**
 * This is the model class for table "gallery_photo".
 *
 * @property integer $id
 * @property string $url
 * @property string $description
 * @property string $location
 * @property string $photo_date
 * @property integer $created_at
 * @property integer $created_by
 * @property integer $updated_at
 * @property integer $updated_by
 * @property integer $status
 *
 * @property GalleryPhotoAlbumDetail[] $galleryPhotoAlbumDetails
 */
class GalleryPhoto extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'gallery_photo';
    }

    public function behaviors()
	{
		return [
			[
				'class'=>TimestampBehavior::className(),
				'createdAtAttribute'=>'created_at',
				'updatedAtAttribute'=>'updated_at',
				'value'=> new Expression('UNIX_TIMESTAMP(NOW())'),
			],
			[
				'class' =>BlameableBehavior::className(),
				'createdByAttribute' => 'created_by',
				'updatedByAttribute' => 'updated_by',
			]
		];
	}

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['url','thumb_url','photo_date','status'], 'required'],
            [['description','title'], 'string'],
            [['created_at','updated_at', 'photo_date'], 'safe'],
            [['created_by', 'updated_by',  'status'], 'integer'],
            [['url','thumb_url'], 'string', 'max' => 500],
            [['location'], 'string', 'max' => 50]
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id'            => 'ID',
            'url'           => 'Url',
            'description'   => 'Description',
            'location'      => 'Location',
            'photo_date'    => 'Photo Date',
            'created_at'    => 'Created At',
            'created_by'    => 'Created By',
            'updated_at'    => 'Updated At',
            'updated_by'    => 'Updated By',
            'status'        => 'Status',
        ];
    }

    /**
     * @return \yii\db\ActiveQuery
     */
    public function getGalleryPhotoAlbumDetails()
    {
        return $this->hasMany(GalleryPhotoAlbumDetail::className(), ['gallery_photo_id' => 'id']);
    }
}


text:
interface(root).
interface(node).
interface(rowi).
interfaceAttribute(node, w).
interfaceAttribute(node, lineh).
interfaceAttribute(node, metrics).
interfaceAttribute(node, canvas).
interfaceAttribute(node, textrequests).
interfaceAttribute(node, absy).
interfaceAttribute(node, rely).
interfaceAttribute(node, h).
interfaceAttribute(node, x).
interfaceAttribute(node, render).
interfaceAttribute(rowi, w).
interfaceAttribute(rowi, metrics).
interfaceAttribute(rowi, endy).
interfaceAttribute(rowi, canvas).
interfaceAttribute(rowi, textrequests).
interfaceAttribute(rowi, absy).
interfaceAttribute(rowi, h).
interfaceAttribute(rowi, rely).
interfaceAttribute(rowi, render).
interfaceAttribute(rowi, x).
class(row, rowi).
class(rows, node).
class(top, root).
class(leaf, node).
class(hbox, node).
class(vbox, node).
class(wrapbox, node).
class(listbox, node).
class(textbox, node).
classChild(row, childs, node).
classChild(rows, footer, node).
classChild(rows, header, node).
classChild(rows, rows, rowi).
classChild(top, child, node).
classChild(hbox, childs, node).
classChild(vbox, childs, node).
classChild(wrapbox, childs, node).
classChild(listbox, childs, node).
classField(gensymattrib, gensymattrib) :- false.
classField(row, gensymattrib).
classField(row, borderc).
classField(rows, gensymattrib).
classField(rows, borderc).
classField(top, gensymattrib).
classField(top, borderc).
classField(leaf, gensymattrib).
classField(leaf, borderc).
classField(hbox, gensymattrib).
classField(hbox, borderc).
classField(vbox, gensymattrib).
classField(vbox, borderc).
classField(wrapbox, gensymattrib).
classField(wrapbox, width).
classField(wrapbox, borderc).
classField(listbox, gensymattrib).
classField(listbox, borderc).
classField(textbox, gensymattrib).
classField(textbox, text).
classField(textbox, color).
classField(textbox, borderc).
classField(textbox, fontfamily).
classField(textbox, fontsize).
interfaceField(root, w).
interfaceField(root, display).
interfaceField(root, refname).
interfaceField(root, h).
interfaceField(node, display).
interfaceField(node, refname).
interfaceField(node, bgc).
interfaceField(rowi, display).
interfaceField(rowi, refname).
interfaceField(rowi, bgc).
assignment(row, self, render, self, w).
assignment(row, self, render, self, borderc).
assignment(row, self, render, self, canvas).
assignment(row, self, render, self, bgc).
assignment(row, self, render, self, absy).
assignment(row, self, render, self, h).
assignment(row, self, render, self, x).
assignment(row, self, childs_absy_step, self, absy).
assignment(row, self, childs_absy_step, self, childs_rely_step).
assignment(row, self, childs_absy_step, self, gensymattrib).
assignment(row, self, childs_absy_last, self, childs_absy_step).
assignment(row, childs, absy, self, childs_absy_step).
assignment(row, self, childs_x_step, self, x).
assignment(row, self, childs_x_step, self, childs_w_step).
assignment(row, self, childs_x_step, self, gensymattrib).
assignment(row, self, childs_x_last, self, childs_x_step).
assignment(row, childs, x, self, childs_x_step).
assignment(row, self, w_step, self, numchilds).
assignment(row, self, w_step, self, childs_w_step).
assignment(row, self, w_step, self, gensymattrib).
assignment(row, self, w_last, self, w_step).
assignment(row, self, w, self, w_step).
assignment(row, self, numchilds_step, self, gensymattrib).
assignment(row, self, numchilds_last, self, numchilds_step).
assignment(row, self, numchilds, self, numchilds_step).
assignment(row, self, childs_metrics_step, self, metrics).
assignment(row, self, childs_metrics_step, self, gensymattrib).
assignment(row, self, childs_metrics_last, self, childs_metrics_step).
assignment(row, childs, metrics, self, childs_metrics_step).
assignment(row, self, childs_lineh_step, self, gensymattrib).
assignment(row, self, childs_lineh_last, self, childs_lineh_step).
assignment(row, childs, lineh, self, childs_lineh_step).
assignment(row, self, textrequests_step, self, childs_textrequests_step).
assignment(row, self, textrequests_step, self, gensymattrib).
assignment(row, self, textrequests_last, self, textrequests_step).
assignment(row, self, textrequests, self, textrequests_step).
assignment(row, self, childs_rely_step, self, gensymattrib).
assignment(row, self, childs_rely_last, self, childs_rely_step).
assignment(row, childs, rely, self, childs_rely_step).
assignment(row, self, childs_canvas_step, self, gensymattrib).
assignment(row, self, childs_canvas_last, self, childs_canvas_step).
assignment(row, childs, canvas, self, childs_canvas_step).
assignment(row, self, h_step, self, childs_h_step).
assignment(row, self, h_step, self, gensymattrib).
assignment(row, self, h_last, self, h_step).
assignment(row, self, h, self, h_step).
assignment(row, self, childs_h_step, childs, h).
assignment(row, self, childs_w_step, childs, w).
assignment(row, self, childs_textrequests_step, childs, textrequests).
assignment(rows, footer, rely, self, lastrowy).
assignment(rows, footer, rely, header, rely).
assignment(rows, footer, rely, header, h).
assignment(rows, footer, rely, self, numrows).
assignment(rows, footer, metrics, self, metrics).
assignment(rows, header, lineh, self, gensymattrib).
assignment(rows, header, absy, header, rely).
assignment(rows, header, absy, self, absy).
assignment(rows, header, canvas, self, render).
assignment(rows, header, metrics, self, metrics).
assignment(rows, footer, absy, self, absy).
assignment(rows, footer, absy, footer, rely).
assignment(rows, header, rely, self, gensymattrib).
assignment(rows, footer, x, self, x).
assignment(rows, footer, lineh, self, gensymattrib).
assignment(rows, header, x, self, x).
assignment(rows, self, h_step, footer, h).
assignment(rows, self, h_step, header, h).
assignment(rows, self, h_step, self, rows_h_step).
assignment(rows, self, h_step, self, gensymattrib).
assignment(rows, self, h_last, self, h_step).
assignment(rows, self, h, self, h_step).
assignment(rows, self, footer_canvas_step, self, rows_render_step).
assignment(rows, self, footer_canvas_step, self, gensymattrib).
assignment(rows, self, footer_canvas_last, self, footer_canvas_step).
assignment(rows, footer, canvas, self, footer_canvas_step).
assignment(rows, self, rows_endy_step, header, rely).
assignment(rows, self, rows_endy_step, header, h).
assignment(rows, self, rows_endy_step, self, rows_h_step).
assignment(rows, self, rows_endy_step, self, gensymattrib).
assignment(rows, self, rows_endy_last, self, rows_endy_step).
assignment(rows, rows, endy, self, rows_endy_step).
assignment(rows, self, textrequests_step, footer, textrequests).
assignment(rows, self, textrequests_step, header, textrequests).
assignment(rows, self, textrequests_step, self, rows_textrequests_step).
assignment(rows, self, textrequests_step, self, gensymattrib).
assignment(rows, self, textrequests_last, self, textrequests_step).
assignment(rows, self, textrequests, self, textrequests_step).
assignment(rows, self, rows_canvas_step, self, gensymattrib).
assignment(rows, self, rows_canvas_last, self, rows_canvas_step).
assignment(rows, rows, canvas, self, rows_canvas_step).
assignment(rows, self, rows_metrics_step, self, metrics).
assignment(rows, self, rows_metrics_step, self, gensymattrib).
assignment(rows, self, rows_metrics_last, self, rows_metrics_step).
assignment(rows, rows, metrics, self, rows_metrics_step).
assignment(rows, self, numrows_step, self, gensymattrib).
assignment(rows, self, numrows_last, self, numrows_step).
assignment(rows, self, numrows, self, numrows_step).
assignment(rows, self, render_step, self, w).
assignment(rows, self, render_step, header, rely).
assignment(rows, self, render_step, header, h).
assignment(rows, self, render_step, self, borderc).
assignment(rows, self, render_step, self, canvas).
assignment(rows, self, render_step, self, bgc).
assignment(rows, self, render_step, self, absy).
assignment(rows, self, render_step, self, h).
assignment(rows, self, render_step, self, x).
assignment(rows, self, render_step, self, w).
assignment(rows, self, render_step, self, rows_endy_step).
assignment(rows, self, render_step, self, borderc).
assignment(rows, self, render_step, self, absy).
assignment(rows, self, render_step, self, x).
assignment(rows, self, render_step, self, gensymattrib).
assignment(rows, self, render_last, self, render_step).
assignment(rows, self, render, self, render_step).
assignment(rows, self, rows_x_step, self, x).
assignment(rows, self, rows_x_step, self, gensymattrib).
assignment(rows, self, rows_x_last, self, rows_x_step).
assignment(rows, rows, x, self, rows_x_step).
assignment(rows, self, rows_rely_step, self, rows_endy_step).
assignment(rows, self, rows_rely_step, self, rows_h_step).
assignment(rows, self, rows_rely_step, self, gensymattrib).
assignment(rows, self, rows_rely_last, self, rows_rely_step).
assignment(rows, rows, rely, self, rows_rely_step).
assignment(rows, self, lastrowy_step, header, rely).
assignment(rows, self, lastrowy_step, header, h).
assignment(rows, self, lastrowy_step, self, rows_endy_step).
assignment(rows, self, lastrowy_step, self, gensymattrib).
assignment(rows, self, lastrowy_last, self, lastrowy_step).
assignment(rows, self, lastrowy, self, lastrowy_step).
assignment(rows, self, w_step, footer, w).
assignment(rows, self, w_step, header, w).
assignment(rows, self, w_step, self, rows_w_step).
assignment(rows, self, w_step, self, gensymattrib).
assignment(rows, self, w_last, self, w_step).
assignment(rows, self, w, self, w_step).
assignment(rows, self, rows_absy_step, self, rows_rely_step).
assignment(rows, self, rows_absy_step, self, absy).
assignment(rows, self, rows_absy_step, self, gensymattrib).
assignment(rows, self, rows_absy_last, self, rows_absy_step).
assignment(rows, rows, absy, self, rows_absy_step).
assignment(rows, self, rows_textrequests_step, rows, textrequests).
assignment(rows, self, rows_h_step, rows, h).
assignment(rows, self, rows_render_step, rows, render).
assignment(rows, self, rows_w_step, rows, w).
assignment(top, child, absy, self, gensymattrib).
assignment(top, child, rely, self, gensymattrib).
assignment(top, child, lineh, self, gensymattrib).
assignment(top, child, canvas, child, w).
assignment(top, child, canvas, child, h).
assignment(top, child, x, self, gensymattrib).
assignment(leaf, self, w, self, gensymattrib).
assignment(leaf, self, h, self, gensymattrib).
assignment(leaf, self, textrequests, self, gensymattrib).
assignment(leaf, self, render, self, w).
assignment(leaf, self, render, self, borderc).
assignment(leaf, self, render, self, canvas).
assignment(leaf, self, render, self, bgc).
assignment(leaf, self, render, self, absy).
assignment(leaf, self, render, self, h).
assignment(leaf, self, render, self, x).
assignment(hbox, self, render, self, w).
assignment(hbox, self, render, self, borderc).
assignment(hbox, self, render, self, canvas).
assignment(hbox, self, render, self, bgc).
assignment(hbox, self, render, self, absy).
assignment(hbox, self, render, self, h).
assignment(hbox, self, render, self, x).
assignment(hbox, self, textrequests_step, self, childs_textrequests_step).
assignment(hbox, self, textrequests_step, self, gensymattrib).
assignment(hbox, self, textrequests_last, self, textrequests_step).
assignment(hbox, self, textrequests, self, textrequests_step).
assignment(hbox, self, h_step, self, childs_h_step).
assignment(hbox, self, h_step, self, gensymattrib).
assignment(hbox, self, h_last, self, h_step).
assignment(hbox, self, h, self, h_step).
assignment(hbox, self, w_step, self, numchilds_last).
assignment(hbox, self, w_step, self, childs_w_step).
assignment(hbox, self, w_step, self, gensymattrib).
assignment(hbox, self, w_last, self, w_step).
assignment(hbox, self, w, self, w_step).
assignment(hbox, self, childs_metrics_step, self, metrics).
assignment(hbox, self, childs_metrics_step, self, gensymattrib).
assignment(hbox, self, childs_metrics_last, self, childs_metrics_step).
assignment(hbox, childs, metrics, self, childs_metrics_step).
assignment(hbox, self, childs_rely_step, self, gensymattrib).
assignment(hbox, self, childs_rely_last, self, childs_rely_step).
assignment(hbox, childs, rely, self, childs_rely_step).
assignment(hbox, self, numchilds_step, self, gensymattrib).
assignment(hbox, self, numchilds_last, self, numchilds_step).
assignment(hbox, self, numchilds, self, numchilds_step).
assignment(hbox, self, childs_x_step, self, x).
assignment(hbox, self, childs_x_step, self, childs_w_step).
assignment(hbox, self, childs_x_step, self, gensymattrib).
assignment(hbox, self, childs_x_last, self, childs_x_step).
assignment(hbox, childs, x, self, childs_x_step).
assignment(hbox, self, childs_absy_step, self, absy).
assignment(hbox, self, childs_absy_step, self, childs_rely_step).
assignment(hbox, self, childs_absy_step, self, gensymattrib).
assignment(hbox, self, childs_absy_last, self, childs_absy_step).
assignment(hbox, childs, absy, self, childs_absy_step).
assignment(hbox, self, childs_lineh_step, self, gensymattrib).
assignment(hbox, self, childs_lineh_last, self, childs_lineh_step).
assignment(hbox, childs, lineh, self, childs_lineh_step).
assignment(hbox, self, childs_h_step, childs, h).
assignment(hbox, self, childs_w_step, childs, w).
assignment(hbox, self, childs_textrequests_step, childs, textrequests).
assignment(vbox, self, render, self, w).
assignment(vbox, self, render, self, borderc).
assignment(vbox, self, render, self, canvas).
assignment(vbox, self, render, self, bgc).
assignment(vbox, self, render, self, absy).
assignment(vbox, self, render, self, h).
assignment(vbox, self, render, self, x).
assignment(vbox, self, w_step, self, childs_w_step).
assignment(vbox, self, w_step, self, gensymattrib).
assignment(vbox, self, w_last, self, w_step).
assignment(vbox, self, w, self, w_step).
assignment(vbox, self, childs_x_step, self, x).
assignment(vbox, self, childs_x_step, self, gensymattrib).
assignment(vbox, self, childs_x_last, self, childs_x_step).
assignment(vbox, childs, x, self, childs_x_step).
assignment(vbox, self, numchilds_step, self, gensymattrib).
assignment(vbox, self, numchilds_last, self, numchilds_step).
assignment(vbox, self, numchilds, self, numchilds_step).
assignment(vbox, self, childs_absy_step, self, absy).
assignment(vbox, self, childs_absy_step, self, childs_rely_step).
assignment(vbox, self, childs_absy_step, self, gensymattrib).
assignment(vbox, self, childs_absy_last, self, childs_absy_step).
assignment(vbox, childs, absy, self, childs_absy_step).
assignment(vbox, self, childs_lineh_step, self, gensymattrib).
assignment(vbox, self, childs_lineh_last, self, childs_lineh_step).
assignment(vbox, childs, lineh, self, childs_lineh_step).
assignment(vbox, self, childs_canvas_step, self, render).
assignment(vbox, self, childs_canvas_step, self, gensymattrib).
assignment(vbox, self, childs_canvas_last, self, childs_canvas_step).
assignment(vbox, childs, canvas, self, childs_canvas_step).
assignment(vbox, self, h_step, self, numchilds_last).
assignment(vbox, self, h_step, self, childs_h_step).
assignment(vbox, self, h_step, self, gensymattrib).
assignment(vbox, self, h_last, self, h_step).
assignment(vbox, self, h, self, h_step).
assignment(vbox, self, childs_metrics_step, self, metrics).
assignment(vbox, self, childs_metrics_step, self, gensymattrib).
assignment(vbox, self, childs_metrics_last, self, childs_metrics_step).
assignment(vbox, childs, metrics, self, childs_metrics_step).
assignment(vbox, self, childs_rely_step, self, childs_h_step).
assignment(vbox, self, childs_rely_step, self, gensymattrib).
assignment(vbox, self, childs_rely_last, self, childs_rely_step).
assignment(vbox, childs, rely, self, childs_rely_step).
assignment(vbox, self, textrequests_step, self, childs_textrequests_step).
assignment(vbox, self, textrequests_step, self, gensymattrib).
assignment(vbox, self, textrequests_last, self, textrequests_step).
assignment(vbox, self, textrequests, self, textrequests_step).
assignment(vbox, self, childs_h_step, childs, h).
assignment(vbox, self, childs_w_step, childs, w).
assignment(vbox, self, childs_textrequests_step, childs, textrequests).
assignment(wrapbox, self, render, self, w).
assignment(wrapbox, self, render, self, borderc).
assignment(wrapbox, self, render, self, canvas).
assignment(wrapbox, self, render, self, bgc).
assignment(wrapbox, self, render, self, absy).
assignment(wrapbox, self, render, self, h).
assignment(wrapbox, self, render, self, x).
assignment(wrapbox, self, w, self, width).
assignment(wrapbox, self, childs_x_step, self, x).
assignment(wrapbox, self, childs_x_step, self, w).
assignment(wrapbox, self, childs_x_step, self, childs_w_step).
assignment(wrapbox, self, childs_x_step, self, childs_w_step).
assignment(wrapbox, self, childs_x_step, self, x).
assignment(wrapbox, self, childs_x_step, self, gensymattrib).
assignment(wrapbox, self, childs_x_last, self, childs_x_step).
assignment(wrapbox, childs, x, self, childs_x_step).
assignment(wrapbox, self, childs_metrics_step, self, metrics).
assignment(wrapbox, self, childs_metrics_step, self, gensymattrib).
assignment(wrapbox, self, childs_metrics_last, self, childs_metrics_step).
assignment(wrapbox, childs, metrics, self, childs_metrics_step).
assignment(wrapbox, self, textrequests_step, self, childs_textrequests_step).
assignment(wrapbox, self, textrequests_step, self, gensymattrib).
assignment(wrapbox, self, textrequests_last, self, textrequests_step).
assignment(wrapbox, self, textrequests, self, textrequests_step).
assignment(wrapbox, self, h_step, self, childs_lineh_step).
assignment(wrapbox, self, h_step, self, childs_rely_step).
assignment(wrapbox, self, h_step, self, gensymattrib).
assignment(wrapbox, self, h_last, self, h_step).
assignment(wrapbox, self, h, self, h_step).
assignment(wrapbox, self, childs_lineh_step, self, childs_x_step).
assignment(wrapbox, self, childs_lineh_step, self, childs_h_step).
assignment(wrapbox, self, childs_lineh_step, self, x).
assignment(wrapbox, self, childs_lineh_step, self, gensymattrib).
assignment(wrapbox, self, childs_lineh_last, self, childs_lineh_step).
assignment(wrapbox, childs, lineh, self, childs_lineh_step).
assignment(wrapbox, self, childs_absy_step, self, absy).
assignment(wrapbox, self, childs_absy_step, self, childs_rely_step).
assignment(wrapbox, self, childs_absy_step, self, gensymattrib).
assignment(wrapbox, self, childs_absy_last, self, childs_absy_step).
assignment(wrapbox, childs, absy, self, childs_absy_step).
assignment(wrapbox, self, childs_rely_step, self, childs_x_step).
assignment(wrapbox, self, childs_rely_step, self, childs_lineh_step).
assignment(wrapbox, self, childs_rely_step, self, x).
assignment(wrapbox, self, childs_rely_step, self, gensymattrib).
assignment(wrapbox, self, childs_rely_last, self, childs_rely_step).
assignment(wrapbox, childs, rely, self, childs_rely_step).
assignment(wrapbox, self, childs_canvas_step, self, render).
assignment(wrapbox, self, childs_canvas_step, self, gensymattrib).
assignment(wrapbox, self, childs_canvas_last, self, childs_canvas_step).
assignment(wrapbox, childs, canvas, self, childs_canvas_step).
assignment(wrapbox, self, childs_h_step, childs, h).
assignment(wrapbox, self, childs_w_step, childs, w).
assignment(wrapbox, self, childs_textrequests_step, childs, textrequests).
assignment(listbox, self, textrequests_step, self, childs_textrequests_step).
assignment(listbox, self, textrequests_step, self, gensymattrib).
assignment(listbox, self, textrequests_last, self, textrequests_step).
assignment(listbox, self, textrequests, self, textrequests_step).
assignment(listbox, self, childs_x_step, self, x).
assignment(listbox, self, childs_x_step, self, gensymattrib).
assignment(listbox, self, childs_x_last, self, childs_x_step).
assignment(listbox, childs, x, self, childs_x_step).
assignment(listbox, self, render_step, self, w).
assignment(listbox, self, render_step, self, borderc).
assignment(listbox, self, render_step, self, canvas).
assignment(listbox, self, render_step, self, bgc).
assignment(listbox, self, render_step, self, absy).
assignment(listbox, self, render_step, self, h).
assignment(listbox, self, render_step, self, x).
assignment(listbox, self, render_step, self, childs_absy_step).
assignment(listbox, self, render_step, self, borderc).
assignment(listbox, self, render_step, self, x).
assignment(listbox, self, render_step, self, gensymattrib).
assignment(listbox, self, render_last, self, render_step).
assignment(listbox, self, render, self, render_step).
assignment(listbox, self, w_step, self, childs_w_step).
assignment(listbox, self, w_step, self, gensymattrib).
assignment(listbox, self, w_last, self, w_step).
assignment(listbox, self, w, self, w_step).
assignment(listbox, self, childs_metrics_step, self, metrics).
assignment(listbox, self, childs_metrics_step, self, gensymattrib).
assignment(listbox, self, childs_metrics_last, self, childs_metrics_step).
assignment(listbox, childs, metrics, self, childs_metrics_step).
assignment(listbox, self, h_step, self, childs_h_step).
assignment(listbox, self, h_step, self, gensymattrib).
assignment(listbox, self, h_last, self, h_step).
assignment(listbox, self, h, self, h_step).
assignment(listbox, self, childs_lineh_step, self, gensymattrib).
assignment(listbox, self, childs_lineh_last, self, childs_lineh_step).
assignment(listbox, childs, lineh, self, childs_lineh_step).
assignment(listbox, self, childs_rely_step, self, childs_h_step).
assignment(listbox, self, childs_rely_step, self, gensymattrib).
assignment(listbox, self, childs_rely_last, self, childs_rely_step).
assignment(listbox, childs, rely, self, childs_rely_step).
assignment(listbox, self, childs_absy_step, self, absy).
assignment(listbox, self, childs_absy_step, self, childs_rely_step).
assignment(listbox, self, childs_absy_step, self, gensymattrib).
assignment(listbox, self, childs_absy_last, self, childs_absy_step).
assignment(listbox, childs, absy, self, childs_absy_step).
assignment(listbox, self, childs_canvas_step, self, render).
assignment(listbox, self, childs_canvas_step, self, gensymattrib).
assignment(listbox, self, childs_canvas_last, self, childs_canvas_step).
assignment(listbox, childs, canvas, self, childs_canvas_step).
assignment(listbox, self, childs_h_step, childs, h).
assignment(listbox, self, childs_w_step, childs, w).
assignment(listbox, self, childs_textrequests_step, childs, textrequests).
assignment(textbox, self, linespacing, self, lineheight).
assignment(textbox, self, lineheight, self, text).
assignment(textbox, self, lineheight, self, metrics).
assignment(textbox, self, lineheight, self, renderfontsize).
assignment(textbox, self, lineheight, self, fontfamily).
assignment(textbox, self, maxw, self, text).
assignment(textbox, self, maxw, self, metrics).
assignment(textbox, self, maxw, self, renderfontsize).
assignment(textbox, self, maxw, self, fontfamily).
assignment(textbox, self, textrequests, self, text).
assignment(textbox, self, textrequests, self, renderfontsize).
assignment(textbox, self, textrequests, self, fontfamily).
assignment(textbox, self, w, self, maxw).
assignment(textbox, self, h, self, lineheight).
assignment(textbox, self, h, self, numberlines).
assignment(textbox, self, h, self, linespacing).
assignment(textbox, self, rendercolor, self, color).
assignment(textbox, self, rendercolor, self, inhcolor).
assignment(textbox, self, render, self, w).
assignment(textbox, self, render, self, rendercolor).
assignment(textbox, self, render, self, lineheight).
assignment(textbox, self, render, self, text).
assignment(textbox, self, render, self, linespacing).
assignment(textbox, self, render, self, overflow).
assignment(textbox, self, render, self, renderfontsize).
assignment(textbox, self, render, self, canvas).
assignment(textbox, self, render, self, absy).
assignment(textbox, self, render, self, fontfamily).
assignment(textbox, self, render, self, x).
assignment(textbox, self, renderfontsize, self, inhfontsize).
assignment(textbox, self, renderfontsize, self, fontsize).
assignment(textbox, self, numberlines, self, w).
assignment(textbox, self, numberlines, self, text).
assignment(textbox, self, numberlines, self, metrics).
assignment(textbox, self, numberlines, self, overflow).
assignment(textbox, self, numberlines, self, renderfontsize).
assignment(textbox, self, numberlines, self, fontfamily).
assignment(textbox, self, metrics, self, gensymattrib).
assignment(textbox, self, inhfontsize, self, gensymattrib).
assignment(textbox, self, overflow, self, gensymattrib).
assignment(textbox, self, inhcolor, self, gensymattrib).
classAttribute(row, numchilds).
classAttribute(row, childs_h_step).
classAttribute(row, childs_absy_step).
classAttribute(row, childs_canvas_step).
classAttribute(row, childs_w_step).
classAttribute(row, childs_x_step).
classAttribute(row, childs_lineh_step).
classAttribute(row, childs_rely_step).
classAttribute(row, childs_textrequests_step).
classAttribute(row, childs_metrics_step).
classAttribute(row, childs_rely_step).
classAttribute(row, childs_rely_last).
classAttribute(row, childs_lineh_step).
classAttribute(row, childs_lineh_last).
classAttribute(row, childs_x_step).
classAttribute(row, childs_x_last).
classAttribute(row, childs_absy_step).
classAttribute(row, childs_absy_last).
classAttribute(row, textrequests_step).
classAttribute(row, textrequests_last).
classAttribute(row, h_step).
classAttribute(row, h_last).
classAttribute(row, childs_metrics_step).
classAttribute(row, childs_metrics_last).
classAttribute(row, childs_canvas_step).
classAttribute(row, childs_canvas_last).
classAttribute(row, numchilds_step).
classAttribute(row, numchilds_last).
classAttribute(row, w_step).
classAttribute(row, w_last).
classAttribute(rows, lastrowy).
classAttribute(rows, numrows).
classAttribute(rows, rows_textrequests_step).
classAttribute(rows, rows_absy_step).
classAttribute(rows, rows_h_step).
classAttribute(rows, rows_render_step).
classAttribute(rows, rows_w_step).
classAttribute(rows, rows_x_step).
classAttribute(rows, rows_metrics_step).
classAttribute(rows, rows_endy_step).
classAttribute(rows, rows_rely_step).
classAttribute(rows, rows_canvas_step).
classAttribute(rows, rows_canvas_step).
classAttribute(rows, rows_canvas_last).
classAttribute(rows, numrows_step).
classAttribute(rows, numrows_last).
classAttribute(rows, h_step).
classAttribute(rows, h_last).
classAttribute(rows, render_step).
classAttribute(rows, render_last).
classAttribute(rows, lastrowy_step).
classAttribute(rows, lastrowy_last).
classAttribute(rows, rows_absy_step).
classAttribute(rows, rows_absy_last).
classAttribute(rows, textrequests_step).
classAttribute(rows, textrequests_last).
classAttribute(rows, footer_canvas_step).
classAttribute(rows, footer_canvas_last).
classAttribute(rows, rows_endy_step).
classAttribute(rows, rows_endy_last).
classAttribute(rows, w_step).
classAttribute(rows, w_last).
classAttribute(rows, rows_metrics_step).
classAttribute(rows, rows_metrics_last).
classAttribute(rows, rows_x_step).
classAttribute(rows, rows_x_last).
classAttribute(rows, rows_rely_step).
classAttribute(rows, rows_rely_last).
classAttribute(hbox, numchilds).
classAttribute(hbox, childs_h_step).
classAttribute(hbox, childs_absy_step).
classAttribute(hbox, childs_w_step).
classAttribute(hbox, childs_x_step).
classAttribute(hbox, childs_lineh_step).
classAttribute(hbox, childs_rely_step).
classAttribute(hbox, childs_textrequests_step).
classAttribute(hbox, childs_metrics_step).
classAttribute(hbox, childs_lineh_step).
classAttribute(hbox, childs_lineh_last).
classAttribute(hbox, childs_absy_step).
classAttribute(hbox, childs_absy_last).
classAttribute(hbox, childs_x_step).
classAttribute(hbox, childs_x_last).
classAttribute(hbox, childs_rely_step).
classAttribute(hbox, childs_rely_last).
classAttribute(hbox, textrequests_step).
classAttribute(hbox, textrequests_last).
classAttribute(hbox, h_step).
classAttribute(hbox, h_last).
classAttribute(hbox, childs_metrics_step).
classAttribute(hbox, childs_metrics_last).
classAttribute(hbox, numchilds_step).
classAttribute(hbox, numchilds_last).
classAttribute(hbox, w_step).
classAttribute(hbox, w_last).
classAttribute(vbox, numchilds).
classAttribute(vbox, childs_h_step).
classAttribute(vbox, childs_absy_step).
classAttribute(vbox, childs_canvas_step).
classAttribute(vbox, childs_w_step).
classAttribute(vbox, childs_x_step).
classAttribute(vbox, childs_lineh_step).
classAttribute(vbox, childs_rely_step).
classAttribute(vbox, childs_textrequests_step).
classAttribute(vbox, childs_metrics_step).
classAttribute(vbox, childs_rely_step).
classAttribute(vbox, childs_rely_last).
classAttribute(vbox, childs_lineh_step).
classAttribute(vbox, childs_lineh_last).
classAttribute(vbox, childs_absy_step).
classAttribute(vbox, childs_absy_last).
classAttribute(vbox, childs_x_step).
classAttribute(vbox, childs_x_last).
classAttribute(vbox, textrequests_step).
classAttribute(vbox, textrequests_last).
classAttribute(vbox, h_step).
classAttribute(vbox, h_last).
classAttribute(vbox, childs_metrics_step).
classAttribute(vbox, childs_metrics_last).
classAttribute(vbox, childs_canvas_step).
classAttribute(vbox, childs_canvas_last).
classAttribute(vbox, numchilds_step).
classAttribute(vbox, numchilds_last).
classAttribute(vbox, w_step).
classAttribute(vbox, w_last).
classAttribute(wrapbox, childs_h_step).
classAttribute(wrapbox, childs_absy_step).
classAttribute(wrapbox, childs_canvas_step).
classAttribute(wrapbox, childs_w_step).
classAttribute(wrapbox, childs_x_step).
classAttribute(wrapbox, childs_lineh_step).
classAttribute(wrapbox, childs_rely_step).
classAttribute(wrapbox, childs_textrequests_step).
classAttribute(wrapbox, childs_metrics_step).
classAttribute(wrapbox, childs_rely_step).
classAttribute(wrapbox, childs_rely_last).
classAttribute(wrapbox, childs_absy_step).
classAttribute(wrapbox, childs_absy_last).
classAttribute(wrapbox, childs_lineh_step).
classAttribute(wrapbox, childs_lineh_last).
classAttribute(wrapbox, childs_x_step).
classAttribute(wrapbox, childs_x_last).
classAttribute(wrapbox, textrequests_step).
classAttribute(wrapbox, textrequests_last).
classAttribute(wrapbox, h_step).
classAttribute(wrapbox, h_last).
classAttribute(wrapbox, childs_metrics_step).
classAttribute(wrapbox, childs_metrics_last).
classAttribute(wrapbox, childs_canvas_step).
classAttribute(wrapbox, childs_canvas_last).
classAttribute(listbox, childs_h_step).
classAttribute(listbox, childs_absy_step).
classAttribute(listbox, childs_canvas_step).
classAttribute(listbox, childs_w_step).
classAttribute(listbox, childs_x_step).
classAttribute(listbox, childs_lineh_step).
classAttribute(listbox, childs_rely_step).
classAttribute(listbox, childs_textrequests_step).
classAttribute(listbox, childs_metrics_step).
classAttribute(listbox, childs_absy_step).
classAttribute(listbox, childs_absy_last).
classAttribute(listbox, childs_rely_step).
classAttribute(listbox, childs_rely_last).
classAttribute(listbox, childs_lineh_step).
classAttribute(listbox, childs_lineh_last).
classAttribute(listbox, childs_x_step).
classAttribute(listbox, childs_x_last).
classAttribute(listbox, textrequests_step).
classAttribute(listbox, textrequests_last).
classAttribute(listbox, h_step).
classAttribute(listbox, h_last).
classAttribute(listbox, childs_metrics_step).
classAttribute(listbox, childs_metrics_last).
classAttribute(listbox, render_step).
classAttribute(listbox, render_last).
classAttribute(listbox, childs_canvas_step).
classAttribute(listbox, childs_canvas_last).
classAttribute(listbox, w_step).
classAttribute(listbox, w_last).
classAttribute(textbox, inhfontsize).
classAttribute(textbox, rendercolor).
classAttribute(textbox, lineheight).
classAttribute(textbox, numberlines).
classAttribute(textbox, linespacing).
classAttribute(textbox, renderfontsize).
classAttribute(textbox, overflow).
classAttribute(textbox, maxw).
classAttribute(textbox, inhcolor).


text:
<definitions
  xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL"
  xmlns:activiti="http://activiti.org/bpmn"
  targetNamespace="Examples">

  <process id="skipExpressionUserTask">
    <startEvent id="theStart" name="Start Event"/>
    <sequenceFlow sourceRef="theStart" targetRef="userTask1" />
    <userTask id="userTask1" name="Task1" activiti:skipExpression="${execution.getVariable('skip')}" activiti:candidateGroups="sales"/>
    <sequenceFlow sourceRef="userTask1" targetRef="theEnd" />
    <endEvent id="theEnd" name="End Event"/>
  </process>
</definitions>


text:
{% extends "registration/base.html" %}
{% load i18n crispy_forms_tags %}
{% load url from future %}

{% block content %}

{% trans "Login" %}

            <form method="post" action="." class="simple">

                    {% crispy form %}

                        {% comment %}
{% trans "Forgot password" %}? {% trans "Reset it" %}!
{% endcomment %}

{% trans "Not member" %}? {% trans "Register" %}!

                        <input type="submit" class="submit button" value="{% trans 'Log in' %}">
                        <input type="hidden" name="next" value="{{ next }}">

            </form>

{% endblock %}


text:
``pronto`` |Stars|
==================

.. |Stars| image:: https://img.shields.io/github/stars/althonos/pronto.svg?style=social&maxAge=3600&label=Star
   :target: https://github.com/althonos/pronto/stargazers

*A Python frontend to ontologies.*

|Actions| |License| |Source| |Docs| |Coverage| |Sanity| |PyPI| |Bioconda| |Versions| |Wheel| |Changelog| |Issues| |DOI| |Downloads|

.. |Actions| image:: https://img.shields.io/github/workflow/status/althonos/pronto/Test/master?style=flat-square&maxAge=300
   :target: https://github.com/althonos/pronto/actions

.. |License| image:: https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square&maxAge=2678400
   :target: https://choosealicense.com/licenses/mit/

.. |Source| image:: https://img.shields.io/badge/source-GitHub-303030.svg?maxAge=2678400&style=flat-square
   :target: https://github.com/althonos/pronto/

.. |Docs| image:: https://img.shields.io/readthedocs/pronto?style=flat-square&maxAge=3600
   :target: http://pronto.readthedocs.io/en/stable/?badge=stable

.. |Coverage| image:: https://img.shields.io/codecov/c/gh/althonos/pronto?style=flat-square&maxAge=3600
   :target: https://www.codecov.com/gh/althonos/pronto/

.. |Sanity| image:: https://img.shields.io/codacy/grade/157b5fd24e5648ea80580f28399e79a4.svg?style=flat-square&maxAge=3600
   :target: https://codacy.com/app/althonos/pronto

.. |PyPI| image:: https://img.shields.io/pypi/v/pronto.svg?style=flat-square&maxAge=3600
   :target: https://pypi.python.org/pypi/pronto

.. |Bioconda| image:: https://img.shields.io/conda/vn/bioconda/pronto?style=flat-square&maxAge=3600
   :target: https://anaconda.org/bioconda/pronto

.. |Versions| image:: https://img.shields.io/pypi/pyversions/pronto.svg?style=flat-square&maxAge=3600
   :target: https://pypi.org/project/pronto/#files

.. |Wheel| image:: https://img.shields.io/pypi/wheel/pronto?style=flat-square&maxAge=3600
   :target: https://pypi.org/project/pronto/#files

.. |Changelog| image:: https://img.shields.io/badge/keep%20a-changelog-8A0707.svg?maxAge=2678400&style=flat-square
   :target: https://github.com/althonos/pronto/blob/master/CHANGELOG.md

.. |Issues| image:: https://img.shields.io/github/issues/althonos/pronto.svg?style=flat-square&maxAge=600
   :target: https://github.com/althonos/pronto/issues

.. |DOI| image:: https://img.shields.io/badge/doi-10.5281%2Fzenodo.595572-purple?style=flat-square&maxAge=2678400
   :target: https://doi.org/10.5281/zenodo.595572

.. |Downloads| image:: https://img.shields.io/badge/dynamic/json?style=flat-square&color=303f9f&maxAge=86400&label=downloads&query=%24.total_downloads&url=https%3A%2F%2Fapi.pepy.tech%2Fapi%2Fprojects%2Fpronto
   :target: https://pepy.tech/project/pronto

``pronto`` is a Python agnostic library designed to work with ontologies. At the
moment, it can parse `OBO`_, `OBO Graphs`_ or
`OWL in RDF/XML format <https://www.w3.org/TR/2012/REC-owl2-mapping-to-rdf-20121211/>`_,
ntologies on the local host or from an network location, and export
ontologies to `OBO`_ or `OBO Graphs`_ (in `JSON`_ format).

.. _OBO: https://owlcollab.github.io/oboformat/doc/GO.format.obo-1_4.html
.. _OBO Graphs: https://github.com/geneontology/obographs
.. _JSON: http://www.json.org/

Setup
-----

Run ``pip install pronto`` in a shell to download the latest release and all
its dependencies from PyPi, or have a look at the
:doc:`Installation page <install>` to find other ways to install ``pronto``.

.. note::

    ``pronto`` requires ``fastobo``, an efficient and faultless parser
    for the OBO language implemented in Rust. Most platforms, such as Linux
    x86-64, OSX and Windows x86-64 provide precompiled packages, but other
    less frequent platforms will require a working Rust toolchain. See the
    ``fastobo``
    `Installation page <https://fastobo.readthedocs.io/en/latest/install.html>`_
    and the `Rust Forge tutorial <https://forge.rust-lang.org/other-installation-methods.html>`_
    for more information about this topic.

Library
-------

.. toctree::
   :maxdepth: 2

   Installation <install>
   Examples <examples/index>
   Update Guide <updating>
   API Reference <api>
   To-do <todo>
   Changelog <changes>
   About <about>

Indices and tables
------------------

* :ref:`genindex`
* :ref:`search`


text:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace Bitcraft.StateMachine.UnitTests.AutoGenerated
{
    partial class TestAutoEndState
    {
        protected override void OnEnter(StateEnterEventArgs e)
        {
            base.OnEnter(e);

            var context = (StateMachineTestContext)Context;

            Assert.AreEqual(context.TestStatus, 4);
            context.TestStatus++;
        }

        private void OnTestAutoFinalizeAction(object data, Action<StateToken> callback)
        {
            callback(null);
        }

        protected override void OnExit(StateExitEventArgs e)
        {
            base.OnExit(e);

            var context = (StateMachineTestContext)Context;

            Assert.AreEqual(context.TestStatus, 5);
            context.TestStatus++;
        }
    }
}


text:
<!DOCTYPE html>

    <meta charset="utf-8">
    <title>[Polymer] WebAudio-Controls Live Demo</title>

    <link rel="import" href="webaudio-controls.html">

WebAudio-Controls Live Demo

        <webaudio-knob id="knob1" diameter="48" style="position:absolute;left:50px;top:20px"></webaudio-knob>
        <webaudio-knob id="knob2" diameter="48" style="position:absolute;left:120px;top:20px"></webaudio-knob>
        <webaudio-param link="knob1" style="position:absolute;left:60px;top:75px"></webaudio-param>
        <webaudio-param link="knob2" style="position:absolute;left:130px;top:75px"></webaudio-param>
        <webaudio-slider id="slider1" width="16" height="80" style="position:absolute;left:380px;top:50px"></webaudio-slider>
        <webaudio-slider id="slider2" direction="horz" style="position:absolute;left:240px;top:50px"></webaudio-slider>
        <webaudio-switch id="switch1" style="position:absolute;left:220px;top:90px"></webaudio-switch>
        <webaudio-switch id="switch2" style="position:absolute;left:260px;top:90px"></webaudio-switch>
        <webaudio-keyboard id="key" width="400" height="100" min="48" keys="25" style="position:absolute;left:48px;top:160px"></webaudio-keyboard>
        <webaudio-keyboard id="key2" width="160" height="20" min="36" keys="61" enable="0" colors="#000;#ccf;;#000;;#0fc;;#0fc" style="position:absolute;left:48px;top:270px"></webaudio-keyboard>
        <webaudio-knob>
        <webaudio-param>
        <webaudio-slider>
        <webaudio-switch>
        <webaudio-keyboard>


text:
// Generated by scalaxb.
package eveapi.xml.account.char.Blueprints

import scala.concurrent.Future

/**
usage:
val obj = scalaxb.fromXML[eveapi.xml.account.char.Blueprints.Foo](node)
val document = scalaxb.toXML[eveapi.xml.account.char.Blueprints.Foo](obj, "foo", eveapi.xml.account.char.Blueprints.defaultScope)
**/
object `package` extends XMLProtocol { }

trait XMLProtocol extends scalaxb.XMLStandardTypes {
  implicit lazy val executionContext = scala.concurrent.ExecutionContext.Implicits.global

  val defaultScope = scalaxb.toScope(Some("xs") -> "http://www.w3.org/2001/XMLSchema",
    Some("xsi") -> "http://www.w3.org/2001/XMLSchema-instance")
  implicit lazy val BlueprintsEveapiFormat: scalaxb.XMLFormat[eveapi.xml.account.char.Blueprints.Eveapi] = new DefaultBlueprintsEveapiFormat {}
  implicit lazy val BlueprintsResultFormat: scalaxb.XMLFormat[eveapi.xml.account.char.Blueprints.Result] = new DefaultBlueprintsResultFormat {}
  implicit lazy val BlueprintsRowsetFormat: scalaxb.XMLFormat[eveapi.xml.account.char.Blueprints.Rowset] = new DefaultBlueprintsRowsetFormat {}
  implicit lazy val BlueprintsRowFormat: scalaxb.XMLFormat[eveapi.xml.account.char.Blueprints.Row] = new DefaultBlueprintsRowFormat {}

  trait DefaultBlueprintsEveapiFormat extends scalaxb.ElemNameParser[eveapi.xml.account.char.Blueprints.Eveapi] {
    val targetNamespace: Option[String] = None

    def parser(node: scala.xml.Node, stack: List[scalaxb.ElemName]): Parser[eveapi.xml.account.char.Blueprints.Eveapi] =
      phrase((scalaxb.ElemName(None, "currentTime")) ~
      (scalaxb.ElemName(None, "result")) ~
      (scalaxb.ElemName(None, "cachedUntil")) ^^
      { case p1 ~ p2 ~ p3 =>
      eveapi.xml.account.char.Blueprints.Eveapi(scalaxb.fromXML[String](p1, scalaxb.ElemName(node) :: stack),
        scalaxb.fromXML[eveapi.xml.account.char.Blueprints.Result](p2, scalaxb.ElemName(node) :: stack),
        scalaxb.fromXML[String](p3, scalaxb.ElemName(node) :: stack),
        scala.collection.immutable.ListMap(List(
        (node \ "@version").headOption map { x => scalaxb.DataRecord(x, node, scalaxb.fromXML[BigInt](x, scalaxb.ElemName(node) :: stack)) } map { "@version" -> _ }
        ).flatten[(String, scalaxb.DataRecord[Any])]: _*)) })

    override def writesAttribute(__obj: eveapi.xml.account.char.Blueprints.Eveapi, __scope: scala.xml.NamespaceBinding): scala.xml.MetaData = {
      var attr: scala.xml.MetaData  = scala.xml.Null
      __obj.attributes.toList map {
        case ("@version", _) => attr = scala.xml.Attribute(null, "version", __obj.version.toString, attr)
        case (key, x) => attr = scala.xml.Attribute((x.namespace map { __scope.getPrefix(_) }).orNull, x.key.orNull, x.value.toString, attr)
      }
      attr
    }

    def writesChildNodes(__obj: eveapi.xml.account.char.Blueprints.Eveapi, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
      Seq.concat(scalaxb.toXML[String](__obj.currentTime, None, Some("currentTime"), __scope, false),
        scalaxb.toXML[eveapi.xml.account.char.Blueprints.Result](__obj.result, None, Some("result"), __scope, false),
        scalaxb.toXML[String](__obj.cachedUntil, None, Some("cachedUntil"), __scope, false))

  }

  trait DefaultBlueprintsResultFormat extends scalaxb.ElemNameParser[eveapi.xml.account.char.Blueprints.Result] {
    val targetNamespace: Option[String] = None

    def parser(node: scala.xml.Node, stack: List[scalaxb.ElemName]): Parser[eveapi.xml.account.char.Blueprints.Result] =
      phrase((scalaxb.ElemName(None, "rowset")) ^^
      { case p1 =>
      eveapi.xml.account.char.Blueprints.Result(scalaxb.fromXML[eveapi.xml.account.char.Blueprints.Rowset](p1, scalaxb.ElemName(node) :: stack)) })

    def writesChildNodes(__obj: eveapi.xml.account.char.Blueprints.Result, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
      (scalaxb.toXML[eveapi.xml.account.char.Blueprints.Rowset](__obj.rowset, None, Some("rowset"), __scope, false))

  }

  trait DefaultBlueprintsRowsetFormat extends scalaxb.ElemNameParser[eveapi.xml.account.char.Blueprints.Rowset] {
    val targetNamespace: Option[String] = None

    def parser(node: scala.xml.Node, stack: List[scalaxb.ElemName]): Parser[eveapi.xml.account.char.Blueprints.Rowset] =
      phrase(safeRep(scalaxb.ElemName(None, "row")) ^^
      { case p1 =>
      eveapi.xml.account.char.Blueprints.Rowset(p1.toSeq map { scalaxb.fromXML[eveapi.xml.account.char.Blueprints.Row](_, scalaxb.ElemName(node) :: stack) },
        scala.collection.immutable.ListMap(List(
        (node \ "@columns").headOption map { x => scalaxb.DataRecord(x, node, scalaxb.fromXML[String](x, scalaxb.ElemName(node) :: stack)) } map { "@columns" -> _ },
        (node \ "@key").headOption map { x => scalaxb.DataRecord(x, node, scalaxb.fromXML[String](x, scalaxb.ElemName(node) :: stack)) } map { "@key" -> _ },
        (node \ "@name").headOption map { x => scalaxb.DataRecord(x, node, scalaxb.fromXML[String](x, scalaxb.ElemName(node) :: stack)) } map { "@name" -> _ }
        ).flatten[(String, scalaxb.DataRecord[Any])]: _*)) })

    override def writesAttribute(__obj: eveapi.xml.account.char.Blueprints.Rowset, __scope: scala.xml.NamespaceBinding): scala.xml.MetaData = {
      var attr: scala.xml.MetaData  = scala.xml.Null
      __obj.attributes.toList map {
        case ("@columns", _) => attr = scala.xml.Attribute(null, "columns", __obj.columns.toString, attr)
        case ("@key", _) => attr = scala.xml.Attribute(null, "key", __obj.key.toString, attr)
        case ("@name", _) => attr = scala.xml.Attribute(null, "name", __obj.name.toString, attr)
        case (key, x) => attr = scala.xml.Attribute((x.namespace map { __scope.getPrefix(_) }).orNull, x.key.orNull, x.value.toString, attr)
      }
      attr
    }

    def writesChildNodes(__obj: eveapi.xml.account.char.Blueprints.Rowset, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
      (__obj.row flatMap { scalaxb.toXML[eveapi.xml.account.char.Blueprints.Row](_, None, Some("row"), __scope, false) })

  }

  trait DefaultBlueprintsRowFormat extends scalaxb.XMLFormat[eveapi.xml.account.char.Blueprints.Row] with scalaxb.CanWriteChildNodes[eveapi.xml.account.char.Blueprints.Row] {
    val targetNamespace: Option[String] = None
    import scalaxb.ElemName._

    def reads(seq: scala.xml.NodeSeq, stack: List[scalaxb.ElemName]): Either[String, eveapi.xml.account.char.Blueprints.Row] = seq match {
      case node: scala.xml.Node => Right(eveapi.xml.account.char.Blueprints.Row(scala.collection.immutable.ListMap(List(
        (node \ "@flagID").headOption map { x => scalaxb.DataRecord(x, node, scalaxb.fromXML[BigInt](x, scalaxb.ElemName(node) :: stack)) } map { "@flagID" -> _ },
        (node \ "@itemID").headOption map { x => scalaxb.DataRecord(x, node, scalaxb.fromXML[BigInt](x, scalaxb.ElemName(node) :: stack)) } map { "@itemID" -> _ },
        (node \ "@locationID").headOption map { x => scalaxb.DataRecord(x, node, scalaxb.fromXML[BigInt](x, scalaxb.ElemName(node) :: stack)) } map { "@locationID" -> _ },
        (node \ "@materialEfficiency").headOption map { x => scalaxb.DataRecord(x, node, scalaxb.fromXML[BigInt](x, scalaxb.ElemName(node) :: stack)) } map { "@materialEfficiency" -> _ },
        (node \ "@quantity").headOption map { x => scalaxb.DataRecord(x, node, scalaxb.fromXML[BigInt](x, scalaxb.ElemName(node) :: stack)) } map { "@quantity" -> _ },
        (node \ "@runs").headOption map { x => scalaxb.DataRecord(x, node, scalaxb.fromXML[BigInt](x, scalaxb.ElemName(node) :: stack)) } map { "@runs" -> _ },
        (node \ "@timeEfficiency").headOption map { x => scalaxb.DataRecord(x, node, scalaxb.fromXML[BigInt](x, scalaxb.ElemName(node) :: stack)) } map { "@timeEfficiency" -> _ },
        (node \ "@typeID").headOption map { x => scalaxb.DataRecord(x, node, scalaxb.fromXML[BigInt](x, scalaxb.ElemName(node) :: stack)) } map { "@typeID" -> _ },
        (node \ "@typeName").headOption map { x => scalaxb.DataRecord(x, node, scalaxb.fromXML[String](x, scalaxb.ElemName(node) :: stack)) } map { "@typeName" -> _ }
        ).flatten[(String, scalaxb.DataRecord[Any])]: _*)))
      case _ => Left("reads failed: seq must be scala.xml.Node")
    }

    override def writesAttribute(__obj: eveapi.xml.account.char.Blueprints.Row, __scope: scala.xml.NamespaceBinding): scala.xml.MetaData = {
      var attr: scala.xml.MetaData  = scala.xml.Null
      __obj.attributes.toList map {
        case ("@flagID", _) => attr = scala.xml.Attribute(null, "flagID", __obj.flagID.toString, attr)
        case ("@itemID", _) => attr = scala.xml.Attribute(null, "itemID", __obj.itemID.toString, attr)
        case ("@locationID", _) => attr = scala.xml.Attribute(null, "locationID", __obj.locationID.toString, attr)
        case ("@materialEfficiency", _) => attr = scala.xml.Attribute(null, "materialEfficiency", __obj.materialEfficiency.toString, attr)
        case ("@quantity", _) => attr = scala.xml.Attribute(null, "quantity", __obj.quantity.toString, attr)
        case ("@runs", _) => attr = scala.xml.Attribute(null, "runs", __obj.runs.toString, attr)
        case ("@timeEfficiency", _) => attr = scala.xml.Attribute(null, "timeEfficiency", __obj.timeEfficiency.toString, attr)
        case ("@typeID", _) => attr = scala.xml.Attribute(null, "typeID", __obj.typeID.toString, attr)
        case ("@typeName", _) => attr = scala.xml.Attribute(null, "typeName", __obj.typeName.toString, attr)
        case (key, x) => attr = scala.xml.Attribute((x.namespace map { __scope.getPrefix(_) }).orNull, x.key.orNull, x.value.toString, attr)
      }
      attr
    }

    def writesChildNodes(__obj: eveapi.xml.account.char.Blueprints.Row, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
      Nil

  }

}


text:
<!DOCTYPE html>

    <meta charset="utf-8">
    <title>JSDoc: Source: Window.js</title>

    <link type="text/css" rel="stylesheet" href="styles/prettify-tomorrow.css">
    <link type="text/css" rel="stylesheet" href="styles/jsdoc-default.css">

Source: Window.js

/**
 * AMD abstraction of the window object
 *
 * @module Window
 */
define(function () {
    return window;
});

Home

Modules

FnUtils

Logging

OptionParser

PluginManager

StringUtils

Window

Classes

Base

Observable

Plugin

    Documentation generated by JSDoc 3.4.0 on Thu Apr 28 2016 11:56:36 GMT+0200 (CEST)


text:
from __future__ import unicode_literals

import django.utils.timezone
from django.db import migrations, models

from surveys.settings import surveys_settings

class Migration(migrations.Migration):

    replaces = [('surveys', '0001_initial'), ('surveys', '0002_auto_20151218_1000'), ('surveys', '0003_auto_20160803_1427')]

    dependencies = [
        migrations.swappable_dependency(surveys_settings.REVIEWER_MODEL),
    ]

    operations = [
        migrations.CreateModel(
            name='Rating',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('value', models.IntegerField(null=True)),
            ],
        ),
        migrations.CreateModel(
            name='RatingType',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('name', models.CharField(unique=True, max_length=30, choices=[('star-rating', 'Star Rating')])),
                ('min_value', models.IntegerField()),
                ('max_value', models.IntegerField()),
            ],
        ),
        migrations.CreateModel(
            name='Review',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('object_id', models.CharField(max_length=50, db_index=True)),
                ('timestamp', models.DateTimeField(default=django.utils.timezone.now)),
                ('comment', models.TextField(blank=True)),
                ('would_recommend', models.NullBooleanField(default=None)),
                ('content_type', models.ForeignKey(to='contenttypes.ContentType', on_delete=models.CASCADE)),
                ('rating', models.ForeignKey(related_name='reviews', to='surveys.Rating', on_delete=models.CASCADE)),
                ('user', models.ForeignKey(to=surveys_settings.REVIEWER_MODEL, on_delete=models.CASCADE)),
            ],
        ),
        migrations.AddField(
            model_name='rating',
            name='type',
            field=models.ForeignKey(related_name='values', to='surveys.RatingType', on_delete=models.CASCADE),
        ),
        migrations.CreateModel(
            name='StarRatedReview',
            fields=[
            ],
            options={
                'proxy': True,
            },
            bases=('surveys.review',),
        ),
        migrations.AlterUniqueTogether(
            name='review',
            unique_together=set([('object_id', 'content_type', 'user')]),
        ),
        migrations.AlterModelOptions(
            name='rating',
            options={'ordering': ['value']},
        ),
    ]