text:
<?php

use Symfony\Component\Routing\Exception\MethodNotAllowedException;
use Symfony\Component\Routing\Exception\ResourceNotFoundException;
use Symfony\Component\Routing\RequestContext;

/**
 * appProdUrlMatcher
 *
 * This class has been auto-generated
 * by the Symfony Routing Component.
 */
class appProdUrlMatcher extends Symfony\Bundle\FrameworkBundle\Routing\RedirectableUrlMatcher
{
    /**
     * Constructor.
     */
    public function __construct(RequestContext $context)
    {
        $this->context = $context;
    }

    public function match($pathinfo)
    {
        $allow = array();
        $pathinfo = rawurldecode($pathinfo);
        $context = $this->context;
        $request = $this->request;

        // ynov_labs_homepage
        if (0 === strpos($pathinfo, '/hello') && preg_match('#^/hello/(?P<name>[^/]++)$#s', $pathinfo, $matches)) {
            return $this->mergeDefaults(array_replace($matches, array('_route' => 'ynov_labs_homepage')), array (  '_controller' => 'Ynov\\LabsBundle\\Controller\\DefaultController::indexAction',));
        }

        if (0 === strpos($pathinfo, '/contact')) {
            // contact
            if (rtrim($pathinfo, '/') === '/contact') {
                if (substr($pathinfo, -1) !== '/') {
                    return $this->redirect($pathinfo.'/', 'contact');
                }

                return array (  '_controller' => 'Ynov\\LabsBundle\\Controller\\ContactController::indexAction',  '_route' => 'contact',);
            }

            // contact_show
            if (preg_match('#^/contact/(?P<id>[^/]++)/show$#s', $pathinfo, $matches)) {
                return $this->mergeDefaults(array_replace($matches, array('_route' => 'contact_show')), array (  '_controller' => 'Ynov\\LabsBundle\\Controller\\ContactController::showAction',));
            }

            // contact_new
            if ($pathinfo === '/contact/new') {
                return array (  '_controller' => 'Ynov\\LabsBundle\\Controller\\ContactController::newAction',  '_route' => 'contact_new',);
            }

            // contact_create
            if ($pathinfo === '/contact/create') {
                if ($this->context->getMethod() != 'POST') {
                    $allow[] = 'POST';
                    goto not_contact_create;
                }

                return array (  '_controller' => 'Ynov\\LabsBundle\\Controller\\ContactController::createAction',  '_route' => 'contact_create',);
            }
            not_contact_create:

            // contact_edit
            if (preg_match('#^/contact/(?P<id>[^/]++)/edit$#s', $pathinfo, $matches)) {
                return $this->mergeDefaults(array_replace($matches, array('_route' => 'contact_edit')), array (  '_controller' => 'Ynov\\LabsBundle\\Controller\\ContactController::editAction',));
            }

            // contact_update
            if (preg_match('#^/contact/(?P<id>[^/]++)/update$#s', $pathinfo, $matches)) {
                if (!in_array($this->context->getMethod(), array('POST', 'PUT'))) {
                    $allow = array_merge($allow, array('POST', 'PUT'));
                    goto not_contact_update;
                }

                return $this->mergeDefaults(array_replace($matches, array('_route' => 'contact_update')), array (  '_controller' => 'Ynov\\LabsBundle\\Controller\\ContactController::updateAction',));
            }
            not_contact_update:

            // contact_delete
            if (preg_match('#^/contact/(?P<id>[^/]++)/delete$#s', $pathinfo, $matches)) {
                if (!in_array($this->context->getMethod(), array('POST', 'DELETE'))) {
                    $allow = array_merge($allow, array('POST', 'DELETE'));
                    goto not_contact_delete;
                }

                return $this->mergeDefaults(array_replace($matches, array('_route' => 'contact_delete')), array (  '_controller' => 'Ynov\\LabsBundle\\Controller\\ContactController::deleteAction',));
            }
            not_contact_delete:

        }

        if (0 === strpos($pathinfo, '/e')) {
            if (0 === strpos($pathinfo, '/ecole')) {
                // ecole
                if (rtrim($pathinfo, '/') === '/ecole') {
                    if (substr($pathinfo, -1) !== '/') {
                        return $this->redirect($pathinfo.'/', 'ecole');
                    }

                    return array (  '_controller' => 'Ynov\\LabsBundle\\Controller\\EcoleController::indexAction',  '_route' => 'ecole',);
                }

                // ecole_show
                if (preg_match('#^/ecole/(?P<id>[^/]++)/show$#s', $pathinfo, $matches)) {
                    return $this->mergeDefaults(array_replace($matches, array('_route' => 'ecole_show')), array (  '_controller' => 'Ynov\\LabsBundle\\Controller\\EcoleController::showAction',));
                }

                // ecole_new
                if ($pathinfo === '/ecole/new') {
                    return array (  '_controller' => 'Ynov\\LabsBundle\\Controller\\EcoleController::newAction',  '_route' => 'ecole_new',);
                }

                // ecole_create
                if ($pathinfo === '/ecole/create') {
                    if ($this->context->getMethod() != 'POST') {
                        $allow[] = 'POST';
                        goto not_ecole_create;
                    }

                    return array (  '_controller' => 'Ynov\\LabsBundle\\Controller\\EcoleController::createAction',  '_route' => 'ecole_create',);
                }
                not_ecole_create:

                // ecole_edit
                if (preg_match('#^/ecole/(?P<id>[^/]++)/edit$#s', $pathinfo, $matches)) {
                    return $this->mergeDefaults(array_replace($matches, array('_route' => 'ecole_edit')), array (  '_controller' => 'Ynov\\LabsBundle\\Controller\\EcoleController::editAction',));
                }

                // ecole_update
                if (preg_match('#^/ecole/(?P<id>[^/]++)/update$#s', $pathinfo, $matches)) {
                    if (!in_array($this->context->getMethod(), array('POST', 'PUT'))) {
                        $allow = array_merge($allow, array('POST', 'PUT'));
                        goto not_ecole_update;
                    }

                    return $this->mergeDefaults(array_replace($matches, array('_route' => 'ecole_update')), array (  '_controller' => 'Ynov\\LabsBundle\\Controller\\EcoleController::updateAction',));
                }
                not_ecole_update:

                // ecole_delete
                if (preg_match('#^/ecole/(?P<id>[^/]++)/delete$#s', $pathinfo, $matches)) {
                    if (!in_array($this->context->getMethod(), array('POST', 'DELETE'))) {
                        $allow = array_merge($allow, array('POST', 'DELETE'));
                        goto not_ecole_delete;
                    }

                    return $this->mergeDefaults(array_replace($matches, array('_route' => 'ecole_delete')), array (  '_controller' => 'Ynov\\LabsBundle\\Controller\\EcoleController::deleteAction',));
                }
                not_ecole_delete:

            }

            if (0 === strpos($pathinfo, '/evenement')) {
                // evenement
                if (rtrim($pathinfo, '/') === '/evenement') {
                    if (substr($pathinfo, -1) !== '/') {
                        return $this->redirect($pathinfo.'/', 'evenement');
                    }

                    return array (  '_controller' => 'Ynov\\LabsBundle\\Controller\\EvenementController::indexAction',  '_route' => 'evenement',);
                }

                // evenement_show
                if (preg_match('#^/evenement/(?P<id>[^/]++)/show$#s', $pathinfo, $matches)) {
                    return $this->mergeDefaults(array_replace($matches, array('_route' => 'evenement_show')), array (  '_controller' => 'Ynov\\LabsBundle\\Controller\\EvenementController::showAction',));
                }

                // evenement_new
                if ($pathinfo === '/evenement/new') {
                    return array (  '_controller' => 'Ynov\\LabsBundle\\Controller\\EvenementController::newAction',  '_route' => 'evenement_new',);
                }

                // evenement_create
                if ($pathinfo === '/evenement/create') {
                    if ($this->context->getMethod() != 'POST') {
                        $allow[] = 'POST';
                        goto not_evenement_create;
                    }

                    return array (  '_controller' => 'Ynov\\LabsBundle\\Controller\\EvenementController::createAction',  '_route' => 'evenement_create',);
                }
                not_evenement_create:

                // evenement_edit
                if (preg_match('#^/evenement/(?P<id>[^/]++)/edit$#s', $pathinfo, $matches)) {
                    return $this->mergeDefaults(array_replace($matches, array('_route' => 'evenement_edit')), array (  '_controller' => 'Ynov\\LabsBundle\\Controller\\EvenementController::editAction',));
                }

                // evenement_update
                if (preg_match('#^/evenement/(?P<id>[^/]++)/update$#s', $pathinfo, $matches)) {
                    if (!in_array($this->context->getMethod(), array('POST', 'PUT'))) {
                        $allow = array_merge($allow, array('POST', 'PUT'));
                        goto not_evenement_update;
                    }

                    return $this->mergeDefaults(array_replace($matches, array('_route' => 'evenement_update')), array (  '_controller' => 'Ynov\\LabsBundle\\Controller\\EvenementController::updateAction',));
                }
                not_evenement_update:

                // evenement_delete
                if (preg_match('#^/evenement/(?P<id>[^/]++)/delete$#s', $pathinfo, $matches)) {
                    if (!in_array($this->context->getMethod(), array('POST', 'DELETE'))) {
                        $allow = array_merge($allow, array('POST', 'DELETE'));
                        goto not_evenement_delete;
                    }

                    return $this->mergeDefaults(array_replace($matches, array('_route' => 'evenement_delete')), array (  '_controller' => 'Ynov\\LabsBundle\\Controller\\EvenementController::deleteAction',));
                }
                not_evenement_delete:

            }

        }

        if (0 === strpos($pathinfo, '/labs')) {
            // labs
            if (rtrim($pathinfo, '/') === '/labs') {
                if (substr($pathinfo, -1) !== '/') {
                    return $this->redirect($pathinfo.'/', 'labs');
                }

                return array (  '_controller' => 'Ynov\\LabsBundle\\Controller\\LabsController::indexAction',  '_route' => 'labs',);
            }

            // labs_show
            if (preg_match('#^/labs/(?P<id>[^/]++)/show$#s', $pathinfo, $matches)) {
                return $this->mergeDefaults(array_replace($matches, array('_route' => 'labs_show')), array (  '_controller' => 'Ynov\\LabsBundle\\Controller\\LabsController::showAction',));
            }

            // labs_new
            if ($pathinfo === '/labs/new') {
                return array (  '_controller' => 'Ynov\\LabsBundle\\Controller\\LabsController::newAction',  '_route' => 'labs_new',);
            }

            // labs_create
            if ($pathinfo === '/labs/create') {
                if ($this->context->getMethod() != 'POST') {
                    $allow[] = 'POST';
                    goto not_labs_create;
                }

                return array (  '_controller' => 'Ynov\\LabsBundle\\Controller\\LabsController::createAction',  '_route' => 'labs_create',);
            }
            not_labs_create:

            // labs_edit
            if (preg_match('#^/labs/(?P<id>[^/]++)/edit$#s', $pathinfo, $matches)) {
                return $this->mergeDefaults(array_replace($matches, array('_route' => 'labs_edit')), array (  '_controller' => 'Ynov\\LabsBundle\\Controller\\LabsController::editAction',));
            }

            // labs_update
            if (preg_match('#^/labs/(?P<id>[^/]++)/update$#s', $pathinfo, $matches)) {
                if (!in_array($this->context->getMethod(), array('POST', 'PUT'))) {
                    $allow = array_merge($allow, array('POST', 'PUT'));
                    goto not_labs_update;
                }

                return $this->mergeDefaults(array_replace($matches, array('_route' => 'labs_update')), array (  '_controller' => 'Ynov\\LabsBundle\\Controller\\LabsController::updateAction',));
            }
            not_labs_update:

            // labs_delete
            if (preg_match('#^/labs/(?P<id>[^/]++)/delete$#s', $pathinfo, $matches)) {
                if (!in_array($this->context->getMethod(), array('POST', 'DELETE'))) {
                    $allow = array_merge($allow, array('POST', 'DELETE'));
                    goto not_labs_delete;
                }

                return $this->mergeDefaults(array_replace($matches, array('_route' => 'labs_delete')), array (  '_controller' => 'Ynov\\LabsBundle\\Controller\\LabsController::deleteAction',));
            }
            not_labs_delete:

        }

        if (0 === strpos($pathinfo, '/p')) {
            if (0 === strpos($pathinfo, '/photo')) {
                // photo
                if (rtrim($pathinfo, '/') === '/photo') {
                    if (substr($pathinfo, -1) !== '/') {
                        return $this->redirect($pathinfo.'/', 'photo');
                    }

                    return array (  '_controller' => 'Ynov\\LabsBundle\\Controller\\PhotoController::indexAction',  '_route' => 'photo',);
                }

                // photo_show
                if (preg_match('#^/photo/(?P<id>[^/]++)/show$#s', $pathinfo, $matches)) {
                    return $this->mergeDefaults(array_replace($matches, array('_route' => 'photo_show')), array (  '_controller' => 'Ynov\\LabsBundle\\Controller\\PhotoController::showAction',));
                }

                // photo_new
                if ($pathinfo === '/photo/new') {
                    return array (  '_controller' => 'Ynov\\LabsBundle\\Controller\\PhotoController::newAction',  '_route' => 'photo_new',);
                }

                // photo_create
                if ($pathinfo === '/photo/create') {
                    if ($this->context->getMethod() != 'POST') {
                        $allow[] = 'POST';
                        goto not_photo_create;
                    }

                    return array (  '_controller' => 'Ynov\\LabsBundle\\Controller\\PhotoController::createAction',  '_route' => 'photo_create',);
                }
                not_photo_create:

                // photo_edit
                if (preg_match('#^/photo/(?P<id>[^/]++)/edit$#s', $pathinfo, $matches)) {
                    return $this->mergeDefaults(array_replace($matches, array('_route' => 'photo_edit')), array (  '_controller' => 'Ynov\\LabsBundle\\Controller\\PhotoController::editAction',));
                }

                // photo_update
                if (preg_match('#^/photo/(?P<id>[^/]++)/update$#s', $pathinfo, $matches)) {
                    if (!in_array($this->context->getMethod(), array('POST', 'PUT'))) {
                        $allow = array_merge($allow, array('POST', 'PUT'));
                        goto not_photo_update;
                    }

                    return $this->mergeDefaults(array_replace($matches, array('_route' => 'photo_update')), array (  '_controller' => 'Ynov\\LabsBundle\\Controller\\PhotoController::updateAction',));
                }
                not_photo_update:

                // photo_delete
                if (preg_match('#^/photo/(?P<id>[^/]++)/delete$#s', $pathinfo, $matches)) {
                    if (!in_array($this->context->getMethod(), array('POST', 'DELETE'))) {
                        $allow = array_merge($allow, array('POST', 'DELETE'));
                        goto not_photo_delete;
                    }

                    return $this->mergeDefaults(array_replace($matches, array('_route' => 'photo_delete')), array (  '_controller' => 'Ynov\\LabsBundle\\Controller\\PhotoController::deleteAction',));
                }
                not_photo_delete:

            }

            if (0 === strpos($pathinfo, '/projet')) {
                // projet
                if (rtrim($pathinfo, '/') === '/projet') {
                    if (substr($pathinfo, -1) !== '/') {
                        return $this->redirect($pathinfo.'/', 'projet');
                    }

                    return array (  '_controller' => 'Ynov\\LabsBundle\\Controller\\ProjetController::indexAction',  '_route' => 'projet',);
                }

                // projet_show
                if (preg_match('#^/projet/(?P<id>[^/]++)/show$#s', $pathinfo, $matches)) {
                    return $this->mergeDefaults(array_replace($matches, array('_route' => 'projet_show')), array (  '_controller' => 'Ynov\\LabsBundle\\Controller\\ProjetController::showAction',));
                }

                // projet_new
                if ($pathinfo === '/projet/new') {
                    return array (  '_controller' => 'Ynov\\LabsBundle\\Controller\\ProjetController::newAction',  '_route' => 'projet_new',);
                }

                // projet_create
                if ($pathinfo === '/projet/create') {
                    if ($this->context->getMethod() != 'POST') {
                        $allow[] = 'POST';
                        goto not_projet_create;
                    }

                    return array (  '_controller' => 'Ynov\\LabsBundle\\Controller\\ProjetController::createAction',  '_route' => 'projet_create',);
                }
                not_projet_create:

                // projet_edit
                if (preg_match('#^/projet/(?P<id>[^/]++)/edit$#s', $pathinfo, $matches)) {
                    return $this->mergeDefaults(array_replace($matches, array('_route' => 'projet_edit')), array (  '_controller' => 'Ynov\\LabsBundle\\Controller\\ProjetController::editAction',));
                }

                // projet_update
                if (preg_match('#^/projet/(?P<id>[^/]++)/update$#s', $pathinfo, $matches)) {
                    if (!in_array($this->context->getMethod(), array('POST', 'PUT'))) {
                        $allow = array_merge($allow, array('POST', 'PUT'));
                        goto not_projet_update;
                    }

                    return $this->mergeDefaults(array_replace($matches, array('_route' => 'projet_update')), array (  '_controller' => 'Ynov\\LabsBundle\\Controller\\ProjetController::updateAction',));
                }
                not_projet_update:

                // projet_delete
                if (preg_match('#^/projet/(?P<id>[^/]++)/delete$#s', $pathinfo, $matches)) {
                    if (!in_array($this->context->getMethod(), array('POST', 'DELETE'))) {
                        $allow = array_merge($allow, array('POST', 'DELETE'));
                        goto not_projet_delete;
                    }

                    return $this->mergeDefaults(array_replace($matches, array('_route' => 'projet_delete')), array (  '_controller' => 'Ynov\\LabsBundle\\Controller\\ProjetController::deleteAction',));
                }
                not_projet_delete:

            }

        }

        if (0 === strpos($pathinfo, '/site')) {
            // site
            if (rtrim($pathinfo, '/') === '/site') {
                if (substr($pathinfo, -1) !== '/') {
                    return $this->redirect($pathinfo.'/', 'site');
                }

                return array (  '_controller' => 'Ynov\\LabsBundle\\Controller\\SiteController::indexAction',  '_route' => 'site',);
            }

            // site_show
            if (preg_match('#^/site/(?P<id>[^/]++)/show$#s', $pathinfo, $matches)) {
                return $this->mergeDefaults(array_replace($matches, array('_route' => 'site_show')), array (  '_controller' => 'Ynov\\LabsBundle\\Controller\\SiteController::showAction',));
            }

            // site_new
            if ($pathinfo === '/site/new') {
                return array (  '_controller' => 'Ynov\\LabsBundle\\Controller\\SiteController::newAction',  '_route' => 'site_new',);
            }

            // site_create
            if ($pathinfo === '/site/create') {
                if ($this->context->getMethod() != 'POST') {
                    $allow[] = 'POST';
                    goto not_site_create;
                }

                return array (  '_controller' => 'Ynov\\LabsBundle\\Controller\\SiteController::createAction',  '_route' => 'site_create',);
            }
            not_site_create:

            // site_edit
            if (preg_match('#^/site/(?P<id>[^/]++)/edit$#s', $pathinfo, $matches)) {
                return $this->mergeDefaults(array_replace($matches, array('_route' => 'site_edit')), array (  '_controller' => 'Ynov\\LabsBundle\\Controller\\SiteController::editAction',));
            }

            // site_update
            if (preg_match('#^/site/(?P<id>[^/]++)/update$#s', $pathinfo, $matches)) {
                if (!in_array($this->context->getMethod(), array('POST', 'PUT'))) {
                    $allow = array_merge($allow, array('POST', 'PUT'));
                    goto not_site_update;
                }

                return $this->mergeDefaults(array_replace($matches, array('_route' => 'site_update')), array (  '_controller' => 'Ynov\\LabsBundle\\Controller\\SiteController::updateAction',));
            }
            not_site_update:

            // site_delete
            if (preg_match('#^/site/(?P<id>[^/]++)/delete$#s', $pathinfo, $matches)) {
                if (!in_array($this->context->getMethod(), array('POST', 'DELETE'))) {
                    $allow = array_merge($allow, array('POST', 'DELETE'));
                    goto not_site_delete;
                }

                return $this->mergeDefaults(array_replace($matches, array('_route' => 'site_delete')), array (  '_controller' => 'Ynov\\LabsBundle\\Controller\\SiteController::deleteAction',));
            }
            not_site_delete:

        }

        throw 0 < count($allow) ? new MethodNotAllowedException(array_unique($allow)) : new ResourceNotFoundException();
    }
}


text:
package ag5ct.cs4720.virginia.edu.mapstutorial;

import android.location.Location;
import android.support.v4.app.FragmentActivity;
import android.os.Bundle;
import android.util.Log;

import com.google.android.gms.common.ConnectionResult;
import com.google.android.gms.common.api.GoogleApiClient;
import com.google.android.gms.location.LocationServices;
import com.google.android.gms.maps.CameraUpdateFactory;
import com.google.android.gms.maps.GoogleMap;
import com.google.android.gms.maps.OnMapReadyCallback;
import com.google.android.gms.maps.SupportMapFragment;
import com.google.android.gms.maps.model.LatLng;
import com.google.android.gms.maps.model.MarkerOptions;

    public class MapsActivity extends FragmentActivity implements OnMapReadyCallback, GoogleApiClient.ConnectionCallbacks, GoogleApiClient.OnConnectionFailedListener {

    private GoogleMap mMap;
    //Added afterwards
    private GoogleApiClient mGoogleApiClient;
    public static final String TAG = MapsActivity.class.getSimpleName();

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_maps);
        // Obtain the SupportMapFragment and get notified when the map is ready to be used.
        SupportMapFragment mapFragment = (SupportMapFragment) getSupportFragmentManager()
                .findFragmentById(R.id.map);
        mapFragment.getMapAsync(this);

        mGoogleApiClient = new GoogleApiClient.Builder(this) //create a new GoogleApiClient object using the Builder pattern
                .addConnectionCallbacks(this) //Handle connection
                .addOnConnectionFailedListener(this)
                .addApi(LocationServices.API) //Adds LocationServices API from GooglePlayServices
                .build();
    }

    @Override
    protected void onResume() {
        super.onResume();
        //setUpMapIfNeeded();
        mGoogleApiClient.connect();
    }

    @Override
    protected void onPause() {
        super.onPause();
        if (mGoogleApiClient.isConnected()) {
            mGoogleApiClient.disconnect();
        }
    }

    /**
     * Manipulates the map once available.
     * This callback is triggered when the map is ready to be used.
     * This is where we can add markers or lines, add listeners or move the camera. In this case,
     * we just add a marker near Sydney, Australia.
     * If Google Play services is not installed on the device, the user will be prompted to install
     * it inside the SupportMapFragment. This method will only be triggered once the user has
     * installed Google Play services and returned to the app.
     */
    @Override
    public void onMapReady(GoogleMap googleMap) {
        mMap = googleMap;

        // Add a marker in Sydney and move the camera
        LatLng sydney = new LatLng(-34, 151);
        mMap.addMarker(new MarkerOptions().position(sydney).title("Marker in Sydney"));
        mMap.moveCamera(CameraUpdateFactory.newLatLng(sydney));
    }

        @Override
        public void onConnected(Bundle bundle) {
//            Location location = LocationServices.FusedLocationApi.getLastLocation(mGoogleApiClient);
//
//            if (location == null) {
//                // Blank for a moment...
//
//            }
//            else {
//                //handleNewLocation(location);
//                ;
//            }

            Log.i(TAG, "Location services connected");
        }

        @Override
        public void onConnectionSuspended(int i) {
            Log.i(TAG, "Location services suspended. Reconnect onegaishimasu");
        }

        @Override
        public void onConnectionFailed(ConnectionResult connectionResult) {
            Log.i(TAG, "Location services failed. Lmao gurl bye");
        }
    }

redpajama_set_name: RedPajamaGithub


text:
package alien4cloud.rest.application.model;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
public class UpdateApplicationRequest {
    private String name;
    private String description;
}


text:
package com.google.security.zynamics.binnavi.Gui.HotkeyDialog;

import java.awt.Color;
import java.awt.Graphics;

import javax.swing.JComponent;

import com.google.common.base.Preconditions;

/**
 * Component that is shown in the cells that display the right half of hotkey section titles.
 */
public final class CRightTitleComponent extends JComponent {
  /**
   * Used for serialization.
   */
  private static final long serialVersionUID = -6268634847281874601L;

  /**
   * Background color of hotkey section title rows.
   */
  public static final Color DEFAULT_BACKGROUND_COLOR = new Color(231, 237, 227);

  /**
   * The string to display.
   */
  private final String m_string;

  /**
   * Creates a new rendering component.
   *
   * @param string The string to display.
   */
  public CRightTitleComponent(final String string) {
    Preconditions.checkNotNull(string, "IE01819: String argument can not be null");

    m_string = string;
  }

  @Override
  public void paintComponent(final Graphics graphics) {
    super.paintComponents(graphics);

    graphics.setColor(DEFAULT_BACKGROUND_COLOR);
    graphics.fillRect(0, 0, getWidth(), getHeight());

    graphics.setColor(Color.BLACK);
    graphics.drawString(m_string, 0, 12);
  }
}


text:
package Creator;

import java.util.ArrayList;
import java.util.Objects;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
/**
 * Rack class holds information about the rack update
 *
 * @author EricGummerson
 */

@XmlAccessorType(XmlAccessType.FIELD)
public class Rack implements java.io.Serializable {

    private static final long serialVersionUID = 022L;
    public String name;
    public int numSuctionGroups;
    public int numCondenserFans;

    public boolean condVFDActive;
    public boolean condSplit;
    public ArrayList<SuctionGroup> suctionGroup;

    /**
     * Empty contructor
     */
    public Rack() {
        this.name = "Rack _";

        this.condSplit = false;
        this.condVFDActive = false;
        this.numSuctionGroups = 1;
        this.numCondenserFans = 1;
        this.suctionGroup = new ArrayList<>();
        this.suctionGroup.add(new SuctionGroup("SGr1()"));
    }

    /**
     * Rack constructor only reqires a name
     *
     * @param name String name
     */
    public Rack(String name) {
        this.name = name;
        this.condSplit = false;
        this.condVFDActive = false;
        this.numSuctionGroups = 1;
        this.numCondenserFans = 1;
        this.suctionGroup = new ArrayList<>();
        this.suctionGroup.add(new SuctionGroup("SGr1()"));

    }

    /**
     * to string method
     *
     * @return a string of object information
     */
    @Override
    public String toString() {
        return "Rack{" + "name=" + name + ", numSuctionGroups=" + numSuctionGroups
                + ", numCondenserFans=" + numCondenserFans
                + "\nsuctionGroup=" + suctionGroup + '}';
    }

    @Override
    public int hashCode() {
        int hash = 7;
        hash = 11 * hash + Objects.hashCode(this.name);
        hash = 11 * hash + this.numSuctionGroups;
        hash = 11 * hash + this.numCondenserFans;
        hash = 11 * hash + (this.condVFDActive ? 1 : 0);
        hash = 11 * hash + (this.condSplit ? 1 : 0);
        hash = 11 * hash + Objects.hashCode(this.suctionGroup);
        return hash;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final Rack other = (Rack) obj;
        if (!Objects.equals(this.name, other.name)) {
            return false;
        }
        if (this.numSuctionGroups != other.numSuctionGroups) {
            return false;
        }
        if (this.numCondenserFans != other.numCondenserFans) {
            return false;
        }
        if (this.condVFDActive != other.condVFDActive) {
            return false;
        }
        if (this.condSplit != other.condSplit) {
            return false;
        }
        if (!Objects.equals(this.suctionGroup, other.suctionGroup)) {
            return false;
        }
        return true;
    }

    //===================================================
    //                  getters and setters
    //===================================================
    /**
     * get name
     *
     * @return string name of rack
     */
    public String getName() {
        return name;
    }

    /**
     * sets the name
     *
     * @param name string
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * get number of suction groups
     *
     * @return int
     */
    public int getNumSuctionGroups() {
        return numSuctionGroups;
    }

    /**
     * set number of suction groups
     *
     * @param numSuctionGroups int
     */
    public void setNumSuctionGroups(int numSuctionGroups) {
        if (numSuctionGroups > this.numSuctionGroups) {
            this.numSuctionGroups = numSuctionGroups;
            this.addSuctionGroup(numSuctionGroups);
        }else {
            this.numSuctionGroups = numSuctionGroups;
        }
    }

    /**
     * get number of condenser fans
     *
     * @return int
     */
    public int getNumCondenserFans() {
        return numCondenserFans;
    }

    /**
     * set number of condenser fans
     *
     * @param numCondenserFans int
     */
    public void setNumCondenserFans(int numCondenserFans) {
        this.numCondenserFans = numCondenserFans;
    }

    /**
     * get suction group as an arraylist
     *
     * @return ArrayList of suctiongroups
     */
    public ArrayList<SuctionGroup> getSuctionGroup() {
        return suctionGroup;
    }

    /**
     * get suction group index
     *
     * @param index int is the index to find a suctiongroup from an arraylist
     * @return SuctionGroup at the index
     */
    public SuctionGroup getSuctionGroupIndex(int index) {
        try {
            if (suctionGroup.get(index) != null) {
                return suctionGroup.get(index);
            } else {
                System.out.println("Suction group at " + index + " does not exist.");
                return null;
            }
        } catch (IndexOutOfBoundsException e) {
            System.out.println("Index out of bounds for suction group on rack " + this.getName());
            return null;
        }
    }

    /**
     * set suction group arraylist
     *
     * @param suctionGroup ArrayList of suctiongroup
     */
    public void setSuctionGroup(ArrayList<SuctionGroup> suctionGroup) {
        this.suctionGroup = suctionGroup;
    }

    /**
     * set suction group at index
     *
     * @param suctionGroup suctiongroup
     * @param index int
     */
    public void setSuctionGroupIndex(SuctionGroup suctionGroup, int index) {
        if (suctionGroup != null) {
            this.suctionGroup.set(index, suctionGroup);
        } else {
            System.out.println("Suction group was null, trying to be added to index " + index);
        }
    }

    /**
     * gets the suctiongroup name at index
     *
     * @param index int
     * @return String suctiongroup name at index
     */
    public String getSuctionGroupNameIndex(int index) {
        String name;
        if (this.suctionGroup.get(index) != null) {
            name = this.suctionGroup.get(index).getName();
        } else {
            name = "Name not found";
        }
        return name;
    }

    /**
     * gets the list of suctiongroup names
     *
     * @return string array of the suction group names
     */
    public String[] getSuctionGroupNames() {
        String[] names = new String[this.numSuctionGroups];

        for (int i = 0; i < this.numSuctionGroups; i++) {
            names[i] = this.suctionGroup.get(i).getName();
        }

        return names;
    }

    /**
     * add a suctiongroup to the list
     *
     * @param num
     */
    public void addSuctionGroup(int num) {
        int size = this.suctionGroup.size();
        int toAdd = num - size;

        for (int i = 0; i < toAdd; i++) {
            //System.out.println("Adding Suction Group " + (size + i+1));
            this.suctionGroup.add(new SuctionGroup("SGr" + (size + i + 1)+"()"));
        }
    }

    /**
     * get the number of compressors
     *
     * @return int
     */
    public int getNumCompressors() {
        int numComp = 0;
        for (int i = 0; i < this.numSuctionGroups; i++) {
            numComp += this.getSuctionGroupIndex(i).getNumCompressors();
        }
        return numComp;
    }

    /**
     * get number of systems
     *
     * @return int
     */
    public int getNumSystems() {
        int numSys = 0;
        for (int i = 0; i < this.numSuctionGroups; i++) {
            numSys += this.getSuctionGroupIndex(i).getNumSystems();
        }
        return numSys;
    }

    public boolean isCondVFDActive() {
        return condVFDActive;
    }

    public void setCondVFDActive(boolean condVFD) {
        this.condVFDActive = condVFD;
    }

    public boolean isCondSplit() {
        return condSplit;
    }

    public void setCondSplit(boolean condSplit) {
        this.condSplit = condSplit;
    }
}


text:
<?php include 'include/head.php'; ?>

layout: two columns

            main

            aside: 200px

.example-two-columns {
  @include two-columns(right 200px gutter 2%);
  @include breakpoint('min' 800) {
    @include two-columns(left 300px gutter 2%);
  }
}

    <?php include "include/more-demos.php" ?>

  <?php include "include/site-footer.php" ?>


text:
import { Configuration } from 'webpack';
import { WebpackConfigOptions } from '../build-options';
export declare function getWorkerConfig(wco: WebpackConfigOptions): Configuration;


text:
<?php require_once('../Connections/laligastats.php'); ?>
<?php
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
{
  if (PHP_VERSION < 6) {
    $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
  }

  $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);

  switch ($theType) {
    case "text":
      $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
      break;
    case "long":
    case "int":
      $theValue = ($theValue != "") ? intval($theValue) : "NULL";
      break;
    case "double":
      $theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
      break;
    case "date":
      $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
      break;
    case "defined":
      $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
      break;
  }
  return $theValue;
}
}

if ((isset($_GET['id_jugador'])) && ($_GET['id_jugador'] != "")) {
  $deleteSQL = sprintf("DELETE FROM jugadores WHERE id_jugador=%s",
                       GetSQLValueString($_GET['id_jugador'], "int"));

  mysql_select_db($database_laligastats, $laligastats);
  $Result1 = mysql_query($deleteSQL, $laligastats) or die(mysql_error());

  $deleteGoTo = "list-players.php";
  if (isset($_SERVER['QUERY_STRING'])) {
    $deleteGoTo .= (strpos($deleteGoTo, '?')) ? "&" : "?";
    $deleteGoTo .= $_SERVER['QUERY_STRING'];
  }
  header(sprintf("Location: %s", $deleteGoTo));
}
?>
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Documento sin título</title>
</head>

<body>
</body>
</html>


text:
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Text;

namespace SIPSorcery.Sys
{
    public class SIPSorceryConfiguration
    {
        public const string PERSISTENCE_STORAGETYPE_KEY = "PersistenceStorageType";
        public const string PERSISTENCE_STORAGECONNSTR_KEY = "PersistenceConnStr";

        public StorageTypes PersistenceStorageType { get; private set; }
        public string PersistenceConnStr { get; private set;}

        public SIPSorceryConfiguration()
        {
            PersistenceStorageType = (ConfigurationManager.AppSettings[PERSISTENCE_STORAGETYPE_KEY] != null) ? StorageTypesConverter.GetStorageType(ConfigurationManager.AppSettings[PERSISTENCE_STORAGETYPE_KEY]) : StorageTypes.Unknown;
            PersistenceConnStr = ConfigurationManager.AppSettings[PERSISTENCE_STORAGECONNSTR_KEY];
        }

        public string GetAppSetting(string key)
        {
            return ConfigurationManager.AppSettings[key];
        }
    }
}


text:
angular.module('app')
.factory('TaskFactory', function($http,$rootScope,$log,$q){

  function get() {
    var defer = $q.defer();

    $http.get($rootScope.baseURL+'tasks')
    .success(function(response) {
      defer.resolve(response);
    });
    return defer.promise;
  }

  return {
    get:get
  };

});


text:
/*!
 * \file iter_sparse_batchloader.h
 * \brief define a batch adapter to create sparse tblob batch
 */
#ifndef MXNET_IO_ITER_SPARSE_BATCHLOADER_H_
#define MXNET_IO_ITER_SPARSE_BATCHLOADER_H_

#include <mxnet/io.h>
#include <mxnet/base.h>
#include <dmlc/logging.h>
#include <mshadow/tensor.h>
#include <utility>
#include <vector>
#include <string>
#include "./inst_vector.h"
#include "./image_iter_common.h"
#include "./iter_batchloader.h"
#include "./iter_sparse.h"

namespace mxnet {
namespace io {

/*! \brief create a batch iterator from single instance iterator */
class SparseBatchLoader : public BatchLoader, public SparseIIterator<TBlobBatch> {
 public:
  explicit SparseBatchLoader(SparseIIterator<DataInst> *base):
      BatchLoader(base), sparse_base_(base) {
  }

  virtual ~SparseBatchLoader(void) {}

  inline void Init(const std::vector<std::pair<std::string, std::string> >& kwargs) {
    BatchLoader::Init(kwargs);
    data_stype_ = sparse_base_->GetStorageType(true);
    label_stype_ = sparse_base_->GetStorageType(false);
    if (param_.round_batch == 0) {
      LOG(FATAL) << "sparse batch loader doesn't support round_batch == false yet";
    }
  }

  virtual void BeforeFirst(void) {
    BatchLoader::BeforeFirst();
  }

  virtual bool Next(void) {
    out_.num_batch_padd = 0;
    out_.batch_size = param_.batch_size;
    this->head_ = 0;
    // if overflown from previous round, directly return false, until before first is called
    if (num_overflow_ != 0) return false;
    index_t top = 0;
    offsets_.clear();
    while (sparse_base_->Next()) {
      const DataInst& inst = sparse_base_->Value();
      // initialize the data buffer, only called once
      if (data_.size() == 0) this->InitData(inst);
      // initialize the number of elements in each buffer, called once per batch
      if (offsets_.size() == 0) offsets_.resize(inst.data.size(), 0);
      CopyData(inst, top);
      if (++top >= param_.batch_size) {
        SetOutputShape();
        return true;
      }
    }
    if (top != 0) {
      CHECK_NE(param_.round_batch, 0)
        << "round_batch = False is not supported for sparse data iterator";
      num_overflow_ = 0;
      sparse_base_->BeforeFirst();
      for (; top < param_.batch_size; ++top, ++num_overflow_) {
        CHECK(sparse_base_->Next()) << "number of input must be bigger than batch size";
        const DataInst& inst = sparse_base_->Value();
        // copy data
        CopyData(inst, top);
      }
      SetOutputShape();
      out_.num_batch_padd = num_overflow_;
      return true;
    }
    // no more data instance
    return false;
  }

  virtual const TBlobBatch &Value(void) const {
    return BatchLoader::Value();
  }

  virtual const NDArrayStorageType GetStorageType(bool is_data) const {
    return sparse_base_->GetStorageType(is_data);
  }

  virtual const mxnet::TShape GetShape(bool is_data) const {
    mxnet::TShape inst_shape = sparse_base_->GetShape(is_data);
    std::vector<index_t> shape_vec;
    shape_vec.push_back(param_.batch_size);
    for (index_t dim = 0; dim < inst_shape.ndim(); ++dim) {
      shape_vec.push_back(inst_shape[dim]);
    }
    return mxnet::TShape(shape_vec.begin(), shape_vec.end());
  }

 private:
  /*! \brief base sparse iterator */
  SparseIIterator<DataInst> *sparse_base_;
  /*! \brief data storage type */
  NDArrayStorageType data_stype_;
  /*! \brief data label type */
  NDArrayStorageType label_stype_;
  /*! \brief tensor offsets for slicing */
  std::vector<size_t> offsets_;
  /*! \brief tensor dtypes */
  std::vector<int> dtypes_;
  /*! \brief whether the offset correspond to an indptr array */
  std::vector<bool> indptr_;

  // check whether ith position is the indptr tensor for a CSR tensor
  inline bool IsIndPtr(size_t i) {
    auto data_num_aux = num_aux_data(data_stype_);
    auto label_num_aux = num_aux_data(label_stype_);
    auto label_indptr_offset = data_num_aux + 1 + label_num_aux;
    // data indptr
    if (i == data_num_aux && data_stype_ == kCSRStorage) {
      return true;
    }
    // label indptr
    if (i == label_indptr_offset && label_stype_ == kCSRStorage &&
        data_stype_ == kCSRStorage) {
      return true;
    }
    return false;
  }

  // initialize the data holder by using from the batch
  inline void InitData(const DataInst& first_inst) {
    CHECK(data_stype_ == kCSRStorage || label_stype_ == kCSRStorage);
    out_.data.clear();
    data_.clear();
    offsets_.clear();
    indptr_.clear();

    // num_arrays is the number of arrays in inputs
    // if both data and label are in the csr format,
    // num_arrays will be 3 + 3 = 6.
    size_t num_arrays = first_inst.data.size();
    data_.resize(num_arrays);
    offsets_.resize(num_arrays, 0);
    indptr_.resize(num_arrays, false);
    // tensor buffer sizes
    std::vector<size_t> buff_sizes(num_arrays, 0);
    dtypes_.resize(num_arrays);
    out_.data.resize(num_arrays);
    // estimate the memory required for a batch
    for (size_t i = 0; i < num_arrays; ++i) {
      // shape for indptr
      if (IsIndPtr(i)) {
        buff_sizes[i] = param_.batch_size + 1;
        indptr_[i] = true;
      } else {
        // estimated the size for the whole batch based on the first instance
        buff_sizes[i] = first_inst.data[i].Size() * param_.batch_size;
        indptr_[i] = false;
      }
      dtypes_[i] = first_inst.data[i].type_flag_;
    }

    CHECK_EQ(buff_sizes[0], buff_sizes[1]);
    // allocate buffer
    for (size_t i = 0; i < num_arrays; ++i) {
      // init object attributes
      mxnet::TShape dst_shape(mshadow::Shape1(buff_sizes[i]));
      data_[i].resize(mshadow::Shape1(buff_sizes[i]), dtypes_[i]);
      CHECK(data_[i].dptr_ != nullptr);
    }
  }

  /* \brief set the shape of the outputs based on actual shapes */
  inline void SetOutputShape() {
    for (size_t i = 0; i < out_.data.size(); i++) {
      out_.data[i] = TBlob(data_[i].dptr_, mshadow::Shape1(offsets_[i]),
                           Context::kCPU, dtypes_[i]);
    }
  }

  /* \brief increase the size of i-th data buffer by a factor of 2, while retaining the content */
  inline void ResizeBuffer(size_t src_size, size_t i) {
    MSHADOW_TYPE_SWITCH(data_[i].type_flag_, DType, {
      TBlobContainer temp;
      temp.resize(mshadow::Shape1(src_size), dtypes_[i]);
      mshadow::Copy(temp.get<cpu, 1, DType>(), data_[i].get<cpu, 1, DType>().Slice(0, src_size));
      // increase the size of space exponentially
      size_t capacity = data_[i].Size();
      capacity = capacity * 2 + 1;
      data_[i] = TBlobContainer();
      data_[i].resize(mshadow::Shape1(capacity), dtypes_[i]);
      // copy back
      mshadow::Copy(data_[i].get<cpu, 1, DType>().Slice(0, src_size), temp.get<cpu, 1, DType>());
    });
  }

  /* \brief copy the data instance to data buffer */
  void CopyData(const DataInst& inst, const size_t top) {
    int64_t unit_size = 0;
    out_.inst_index[top] = inst.index;
    for (size_t i = 0; i < inst.data.size(); ++i) {
      if (!indptr_[i]) {
        // indices and values tensor
        unit_size = inst.data[i].shape_.Size();
        MSHADOW_TYPE_SWITCH(data_[i].type_flag_, DType, {
          const size_t begin = offsets_[i];
          const size_t end = offsets_[i] + unit_size;
          size_t capacity = data_[i].Size();
          // resize the data buffer if estimated space is not sufficient
          while (capacity < end) {
            ResizeBuffer(begin, i);
            capacity = data_[i].Size();
          }
          mshadow::Copy(data_[i].get<cpu, 1, DType>().Slice(begin, end),
                        inst.data[i].get_with_shape<cpu, 1, DType>(mshadow::Shape1(unit_size)));
        });
        offsets_[i] += unit_size;
      } else {
        // indptr placeholder
        auto indptr = data_[i].get<cpu, 1, int64_t>();
        // initialize the first indptr, which is always 0
        if (top == 0) indptr[0] = 0;
        indptr[top + 1] = indptr[top] + unit_size;
        offsets_[i] = top + 2;
      }
    }
  }
};  // class BatchLoader
}  // namespace io
}  // namespace mxnet
#endif  // MXNET_IO_ITER_SPARSE_BATCHLOADER_H_


text:
package util;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.UnsupportedEncodingException;
import java.net.HttpURLConnection;
import java.net.MalformedURLException;
import java.net.URL;
import java.net.URLEncoder;

import activity.ChooseAreaActivity;
import android.content.Context;

import model.Weather;

public class HttpUtil {
	public static void requestHttp(final String address, final HttpRequestListener listener, final Context context) {
		new Thread (new Runnable() {

			@Override
			public void run() {
				// TODO Auto-generated method stub
				HttpURLConnection httpURLConnection = null;
				StringBuffer sb ;
				try {
					URL url = new URL(address);
					httpURLConnection = (HttpURLConnection)url.openConnection();
					httpURLConnection.setDoInput(true);
					httpURLConnection.setDoOutput(true);
					httpURLConnection.setConnectTimeout(8000);
					httpURLConnection.setReadTimeout(8000);
					httpURLConnection.setRequestMethod("GET");
					InputStream inputStream = httpURLConnection.getInputStream();
					BufferedReader bufferedReader =  new BufferedReader(new InputStreamReader(inputStream));
					String temp = "init";
					temp = bufferedReader.readLine();
					//System.out.println(temp);
					sb = new StringBuffer();
					while (temp != null) {
						sb.append(temp);
						temp = bufferedReader.readLine();
						//System.out.println(temp);
					}
					//System.out.println(sb.toString());
					LogUtil.d("HttpUtil.class GET", sb.toString());
					if (listener != null) {
						//listener.onFinish(sb.toString(), ChooseAreaActivity.getInstance());
						listener.onFinish(sb.toString(), context);
					}
				} catch (MalformedURLException e) {
					// TODO Auto-generated catch block
					e.printStackTrace();
				} catch (IOException e) {
					// TODO Auto-generated catch block
					e.printStackTrace();
					if (listener != null) {
						listener.onError(e);
					}
				} finally {
					if (httpURLConnection != null) {
						httpURLConnection.disconnect();
					}
				}
			}

		}).start();
	}
	/**
	 * 传入县的名字,得到可以向新浪天气接口申请的address
	 * @param countyName
	 */
	public static String countyToSinaWeatherAddress(String countyName) {
		String ret = null;
		String encodeCountyName = null;
		try {
			encodeCountyName = URLEncoder.encode(countyName, "GBK");
		} catch (UnsupportedEncodingException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		ret = "http://php.weather.sina.com.cn/xml.php?city="
				+ encodeCountyName + "&password=DJOYnieT8234jlsK&day=0";
		return ret;
	}
	public static void main(String []args) {
		String address = countyToSinaWeatherAddress("永宁");
//		HttpUtil.requestHttp(address, new HttpRequestListener() {
//
//			@Override
//			public void onError(Exception e) {
//				// TODO Auto-generated method stub
//
//			}
//
//			@Override
//			public void onFinish(String response) {
//				// TODO Auto-generated method stub
//				Weather.parseXMLWithPull(response);
//			}
//
//		});
	}
}


text:
/*
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
 * in compliance with the License. You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software distributed under the License
 * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
 * or implied. See the License for the specific language governing permissions and limitations under
 * the License.
 */
/*
 * This code was generated by https://github.com/googleapis/google-api-java-client-services/
 * Modify at your own risk.
 */

package com.google.api.services.vmmigration.v1alpha1.model;

/**
 * ReplicationCycle contains information about the current replication cycle status.
 *
 *
 This is the Java data model class that specifies how to parse/serialize into the JSON that is
 * transmitted over HTTP when working with the Migrate to Virtual Machines API. For a detailed
 * explanation see:
 * https://developers.google.com/api-client-library/java/google-http-java-client/json
 *

 *
 * @author Google, Inc.
 */
@SuppressWarnings("javadoc")
public final class ReplicationCycle extends com.google.api.client.json.GenericJson {

  /**
   * The cycle's ordinal number.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.Integer cycleNumber;

  /**
   * The time the replication cycle has ended.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private String endTime;

  /**
   * Provides details on the state of the cycle in case of an error.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private Status error;

  /**
   * The identifier of the ReplicationCycle.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String name;

  /**
   * The current progress in percentage of this cycle.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.Integer progress;

  /**
   * The current progress in percentage of this cycle. Was replaced by 'steps' field, which breaks
   * down the cycle progression more accurately.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.Integer progressPercent;

  /**
   * The time the replication cycle has started.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private String startTime;

  /**
   * State of the ReplicationCycle.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String state;

  /**
   * The cycle's steps list representing its progress.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.util.List<CycleStep> steps;

  static {
    // hack to force ProGuard to consider CycleStep used, since otherwise it would be stripped out
    // see https://github.com/google/google-api-java-client/issues/543
    com.google.api.client.util.Data.nullOf(CycleStep.class);
  }

  /**
   * The accumulated duration the replication cycle was paused.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private String totalPauseDuration;

  /**
   * The cycle's ordinal number.
   * @return value or {@code null} for none
   */
  public java.lang.Integer getCycleNumber() {
    return cycleNumber;
  }

  /**
   * The cycle's ordinal number.
   * @param cycleNumber cycleNumber or {@code null} for none
   */
  public ReplicationCycle setCycleNumber(java.lang.Integer cycleNumber) {
    this.cycleNumber = cycleNumber;
    return this;
  }

  /**
   * The time the replication cycle has ended.
   * @return value or {@code null} for none
   */
  public String getEndTime() {
    return endTime;
  }

  /**
   * The time the replication cycle has ended.
   * @param endTime endTime or {@code null} for none
   */
  public ReplicationCycle setEndTime(String endTime) {
    this.endTime = endTime;
    return this;
  }

  /**
   * Provides details on the state of the cycle in case of an error.
   * @return value or {@code null} for none
   */
  public Status getError() {
    return error;
  }

  /**
   * Provides details on the state of the cycle in case of an error.
   * @param error error or {@code null} for none
   */
  public ReplicationCycle setError(Status error) {
    this.error = error;
    return this;
  }

  /**
   * The identifier of the ReplicationCycle.
   * @return value or {@code null} for none
   */
  public java.lang.String getName() {
    return name;
  }

  /**
   * The identifier of the ReplicationCycle.
   * @param name name or {@code null} for none
   */
  public ReplicationCycle setName(java.lang.String name) {
    this.name = name;
    return this;
  }

  /**
   * The current progress in percentage of this cycle.
   * @return value or {@code null} for none
   */
  public java.lang.Integer getProgress() {
    return progress;
  }

  /**
   * The current progress in percentage of this cycle.
   * @param progress progress or {@code null} for none
   */
  public ReplicationCycle setProgress(java.lang.Integer progress) {
    this.progress = progress;
    return this;
  }

  /**
   * The current progress in percentage of this cycle. Was replaced by 'steps' field, which breaks
   * down the cycle progression more accurately.
   * @return value or {@code null} for none
   */
  public java.lang.Integer getProgressPercent() {
    return progressPercent;
  }

  /**
   * The current progress in percentage of this cycle. Was replaced by 'steps' field, which breaks
   * down the cycle progression more accurately.
   * @param progressPercent progressPercent or {@code null} for none
   */
  public ReplicationCycle setProgressPercent(java.lang.Integer progressPercent) {
    this.progressPercent = progressPercent;
    return this;
  }

  /**
   * The time the replication cycle has started.
   * @return value or {@code null} for none
   */
  public String getStartTime() {
    return startTime;
  }

  /**
   * The time the replication cycle has started.
   * @param startTime startTime or {@code null} for none
   */
  public ReplicationCycle setStartTime(String startTime) {
    this.startTime = startTime;
    return this;
  }

  /**
   * State of the ReplicationCycle.
   * @return value or {@code null} for none
   */
  public java.lang.String getState() {
    return state;
  }

  /**
   * State of the ReplicationCycle.
   * @param state state or {@code null} for none
   */
  public ReplicationCycle setState(java.lang.String state) {
    this.state = state;
    return this;
  }

  /**
   * The cycle's steps list representing its progress.
   * @return value or {@code null} for none
   */
  public java.util.List<CycleStep> getSteps() {
    return steps;
  }

  /**
   * The cycle's steps list representing its progress.
   * @param steps steps or {@code null} for none
   */
  public ReplicationCycle setSteps(java.util.List<CycleStep> steps) {
    this.steps = steps;
    return this;
  }

  /**
   * The accumulated duration the replication cycle was paused.
   * @return value or {@code null} for none
   */
  public String getTotalPauseDuration() {
    return totalPauseDuration;
  }

  /**
   * The accumulated duration the replication cycle was paused.
   * @param totalPauseDuration totalPauseDuration or {@code null} for none
   */
  public ReplicationCycle setTotalPauseDuration(String totalPauseDuration) {
    this.totalPauseDuration = totalPauseDuration;
    return this;
  }

  @Override
  public ReplicationCycle set(String fieldName, Object value) {
    return (ReplicationCycle) super.set(fieldName, value);
  }

  @Override
  public ReplicationCycle clone() {
    return (ReplicationCycle) super.clone();
  }

}


text:
var keyMirror = require('keymirror')

module.exports = keyMirror({
  API_FETCH_SUCCESS: null,
  API_FETCH_START: null,
  API_FETCH_FAIL: null,

  API_SAVE_SUCCESS: null,
  API_SAVE_START: null,
  API_SAVE_FAIL: null,

  API_DELETE_SUCCESS: null,
  API_DELETE_START: null,
  API_DELETE_FAIL: null,
})


text:
package ru.job4j.tracker;

/**
 * Task Tracker.
 */
public class Item {
    /**
     * Class item, describe ticket.
     */

    /**
     * Private fields.
     */
    private String id;
    /**
     * Private fields.
     */
    private String name;
    /**
     * Private fields.
     */
    private String desc;
    /**
     * Private fields.
     */
    private long created;
    /**
     * Private fields.
     */
//    private String comments;

    /**
     * Constructor for Item.
     * @param id id.
     * @param name name.
     * @param created created.
     */
    public Item(String id, String name, long created) {
        this.id = id;
        this.name = name;
        this.created = created;
    }
    /**
     * Constructor for Item.
     * @param id id.
     * @param name name.
     * @param desc description.
     */
    public Item(String id, String name, String desc) {
        this.id = id;
        this.name = name;
        this.desc = desc;
    }

    /**
     * Getter fot desc.
     * @return desc.
     */
    public String getDesc() {
        return desc;
    }

    /**
     * Getter for id.
     * @return id.
     */
    public String getId() {
        return this.id;
    }

    /**
     * Getter for name.
     * @return name.
     */
    public String getName() {
        return this.name;
    }

    /**
     * Setter for id.
     * @param id item.
     */
    public void setId(String id) {
        this.id = id;
    }
}


text:
<?php
/**
 * deploy.php
 */
require_once(__DIR__ . '/autoload.php');

$args = new \Jerv\ServerEnvironment\Service\Args($argv);

if ($args->get('-h', false) || $args->get('--help', false)) {
    echo file_get_contents(__DIR__ . '/../docs/deploy-help.md');
    exit(0);
}

$deploy = new \Jerv\ServerEnvironment\Service\Deploy(
    $args->get('path-app-data', \Jerv\ServerEnvironment\Data\PathData::PATH_DEFAULT),
    $args->get('permissions-app-data-folder', \Jerv\ServerEnvironment\Service\Permissions::DEFAULT_FOLDER),
    $args->get('permissions-app-data-file', \Jerv\ServerEnvironment\Service\Permissions::DEFAULT_FILE),
    $args->get('server-config-filename', \Jerv\ServerEnvironment\Data\Env::SERVER_CONFIG_FILE),
    $args->get('server-config-key', \Jerv\ServerEnvironment\Data\Env::SERVER_CONFIG_KEY),
    $args->get('path-app-config', \Jerv\ServerEnvironment\Data\PathConfig::PATH_DEFAULT),
    $args->get('permissions-app-config-folder', \Jerv\ServerEnvironment\Service\Permissions::DEFAULT_FOLDER),
    $args->get('permissions-app-config-file', \Jerv\ServerEnvironment\Service\Permissions::DEFAULT_FILE)
);

echo $deploy->main(
    $args
);

echo $deploy->getServerOutput();


text:
package org.apache.flink.streaming.util.serialization;

import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.apache.flink.api.common.typeinfo.TypeInformation;
import org.apache.flink.api.java.typeutils.TypeExtractor;
import org.apache.flink.types.Row;
import org.apache.flink.api.java.typeutils.RowTypeInfo;
import org.apache.flink.util.Preconditions;

import java.io.IOException;

/**
 * Deserialization schema from JSON to {@link Row}.
 *
 *
Deserializes the byte[] messages as a JSON object and reads
 * the specified fields.
 *
 *
Failure during deserialization are forwarded as wrapped IOExceptions.
 */
public class JsonRowDeserializationSchema implements DeserializationSchema<Row> {

	/** Field names to parse. Indices match fieldTypes indices. */
	private final String[] fieldNames;

	/** Types to parse fields as. Indices match fieldNames indices. */
	private final TypeInformation<?>[] fieldTypes;

	/** Object mapper for parsing the JSON. */
	private final ObjectMapper objectMapper = new ObjectMapper();

	/** Flag indicating whether to fail on a missing field. */
	private boolean failOnMissingField;

	/**
	 * Creates a JSON deserialization schema for the given fields and type classes.
	 *
	 * @param fieldNames Names of JSON fields to parse.
	 * @param fieldTypes Type classes to parse JSON fields as.
	 */
	public JsonRowDeserializationSchema(String[] fieldNames, Class<?>[] fieldTypes) {
		this.fieldNames = Preconditions.checkNotNull(fieldNames, "Field names");

		this.fieldTypes = new TypeInformation[fieldTypes.length];
		for (int i = 0; i < fieldTypes.length; i++) {
			this.fieldTypes[i] = TypeExtractor.getForClass(fieldTypes[i]);
		}

		Preconditions.checkArgument(fieldNames.length == fieldTypes.length,
				"Number of provided field names and types does not match.");
	}

	/**
	 * Creates a JSON deserialization schema for the given fields and types.
	 *
	 * @param fieldNames Names of JSON fields to parse.
	 * @param fieldTypes Types to parse JSON fields as.
	 */
	public JsonRowDeserializationSchema(String[] fieldNames, TypeInformation<?>[] fieldTypes) {
		this.fieldNames = Preconditions.checkNotNull(fieldNames, "Field names");
		this.fieldTypes = Preconditions.checkNotNull(fieldTypes, "Field types");

		Preconditions.checkArgument(fieldNames.length == fieldTypes.length,
				"Number of provided field names and types does not match.");
	}

	@Override
	public Row deserialize(byte[] message) throws IOException {
		try {
			JsonNode root = objectMapper.readTree(message);

			Row row = new Row(fieldNames.length);
			for (int i = 0; i < fieldNames.length; i++) {
				JsonNode node = root.get(fieldNames[i]);

				if (node == null) {
					if (failOnMissingField) {
						throw new IllegalStateException("Failed to find field with name '"
								+ fieldNames[i] + "'.");
					} else {
						row.setField(i, null);
					}
				} else {
					// Read the value as specified type
					Object value = objectMapper.treeToValue(node, fieldTypes[i].getTypeClass());
					row.setField(i, value);
				}
			}

			return row;
		} catch (Throwable t) {
			throw new IOException("Failed to deserialize JSON object.", t);
		}
	}

	@Override
	public boolean isEndOfStream(Row nextElement) {
		return false;
	}

	@Override
	public TypeInformation<Row> getProducedType() {
		return new RowTypeInfo(fieldTypes);
	}

	/**
	 * Configures the failure behaviour if a JSON field is missing.
	 *
	 *
By default, a missing field is ignored and the field is set to null.
	 *
	 * @param failOnMissingField Flag indicating whether to fail or not on a missing field.
	 */
	public void setFailOnMissingField(boolean failOnMissingField) {
		this.failOnMissingField = failOnMissingField;
	}

}


text:
package org.fuwjax.oss.test;

import static java.util.stream.Collectors.joining;

import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.Reader;
import java.nio.CharBuffer;
import java.nio.charset.Charset;

import org.fuwjax.oss.gild.Gild;
import org.fuwjax.oss.gild.proxy.http.HttpClientProxy;
import org.junit.AfterClass;
import org.junit.BeforeClass;
import org.junit.Ignore;
import org.junit.Rule;
import org.junit.Test;

import io.undertow.Undertow;
import io.undertow.server.HttpHandler;
import io.undertow.server.HttpServerExchange;
import io.undertow.util.Headers;

public class HttpProxyTest {
	private final HttpClientProxy http = new HttpClientProxy("localhost", 8080);
	@Rule
	public final Gild gild = new Gild().with("http", http);
	private static Undertow server;

	@BeforeClass
	public static void setupServer() {
		server = Undertow.builder().addHttpListener(8080, "localhost").setHandler(new HttpHandler() {
			@Override
			public void handleRequest(final HttpServerExchange exchange) throws Exception {
				if (exchange.isInIoThread()) {
					exchange.dispatch(this);
					return;
				}
				exchange.getResponseHeaders().put(Headers.CONTENT_TYPE, "text/plain");
				final StringBuilder responseBody = new StringBuilder();
				if (exchange.getQueryString().isEmpty()) {
					responseBody.append(exchange.getRequestURI()).append('\n');
				} else {
					responseBody.append(exchange.getRequestURI() + "?" + exchange.getQueryString()).append('\n');
				}
				exchange.getRequestHeaders().forEach((h) -> {
					responseBody.append(h.getHeaderName()).append(": ");
					responseBody.append(h.stream().collect(joining(", ")));
					responseBody.append('\n');
				});
				responseBody.append("----\n");
				exchange.startBlocking();
				final InputStream is = exchange.getInputStream();
				String charsetName = exchange.getRequestCharset();
				if (charsetName == null) {
					charsetName = "UTF-8";
				}
				final Reader r = new InputStreamReader(is, Charset.forName(charsetName));
				final CharBuffer cbuf = CharBuffer.allocate(4096);
				while (true) {
					final int numChars = r.read(cbuf);
					if (numChars < 0) {
						break;
					}
					cbuf.flip();
					responseBody.append(cbuf);
					cbuf.clear();
				}

				exchange.getResponseSender().send(responseBody.toString());
			}
		}).build();
		server.start();
	}

	@AfterClass
	public static void stopServer() {
		server.stop();
	}

	//currently unicode input is not supported by Jodd.
	@Ignore
	@Test
	public void debug() {
		http.send();
	}

	@Test
	public void request() {
		http.send();
	}
}


text:
require 'file_size_validator'

class Document < ActiveRecord::Base

  # From system config. This is the maximum document size that can be uploaded
  MAX_UPLOAD_FILE_SIZE = Rails.application.config.max_upload_file_size

  # Include the object key mixin
  include TransamObjectKey

  # Use the carrierway uploader
  mount_uploader :document,   DocumentUploader

  # Callbacks
  after_initialize  :set_defaults
  before_save       :update_file_attributes

  # Associations
  belongs_to :documentable,  :polymorphic => true

  # Each comment was created by a user
  belongs_to :creator, -> { unscope(where: :active) }, :class_name => "User", :foreign_key => "created_by_id"

  default_scope { order('created_at DESC') }

  validates :original_filename,   :presence => true
  validates :document,            :presence => true, :file_size => { :maximum => MAX_UPLOAD_FILE_SIZE.megabytes.to_i }
  validates :created_by_id,       :presence => true

  # List of hash parameters allowed by the controller
  FORM_PARAMS = [
    :documentable_id,
    :documentable_type,
    :document,
    :description,
    :original_filename,
    :content_type,
    :file_size,
    :created_by_id
  ]

  SEARCHABLE_FIELDS = [
    :object_key,
    :description,
    :original_filename,
    :content_type
  ]

  #-----------------------------------------------------------------------------
  #
  # Class Methods
  #
  #-----------------------------------------------------------------------------

  def self.allowable_params
    FORM_PARAMS
  end

  #-----------------------------------------------------------------------------
  #
  # Instance Methods
  #
  #-----------------------------------------------------------------------------

  def to_s
    name
  end

  def name
    original_filename
  end

  def searchable_fields
    SEARCHABLE_FIELDS
  end

  # Return the organization of the owning object so instances can be index using
  # the keyword indexer
  def organization
    if documentable.respond_to? :organization
      documentable.organization
    else
      creator.organization
    end
  end

  #-----------------------------------------------------------------------------
  #
  # Protected Methods
  #
  #-----------------------------------------------------------------------------
  protected

  # Set resonable defaults for a new asset event
  def set_defaults

  end

  #-----------------------------------------------------------------------------
  #
  # Private Methods
  #
  #-----------------------------------------------------------------------------
  private

  def update_file_attributes

    if document.present? && document_changed?
      self.content_type = document.file.content_type
      self.file_size = document.file.size
    end
  end

end


text:
See also https://www.elastic.co/blog/how-to-make-a-dockerfile-for-elasticsearch

Build the image

    $ docker build -t IMAGE_NAME .

Run the container

    $ docker run --rm -it IMAGE_NAME /bin/bash

Run and override command

    $ docker-compose run elasticsearch bash

List running containers

    $ docker ps

Stop a container

    $ docker stop CONTAINER_ID

Remove unused containers

    $ docker rm `docker ps -a -q`

Remove unused images

    $ docker rmi $(docker images | awk '/^<none>/ { print $3 }')

connect to a container

    $ docker exec -it --user=root CONTAINER_ID /bin/bash

compose: build

    $ docker-compose build

compose: build, pull, and run

    $ docker-compose up -d

compose: show logs

    $ docker-compose logs

compose: stop all containers

    $ docker-compose stop

compose: scale

    $ docker-compose scale web=2 worker=3

Proxy settings

See also /etc/default/docker

On docker-machine create,
you can specify environments via --engine-env options.

    --engine-env HTTP_PROXY=...
    --engine-env HTTPS_PROXY=...
    --engine-env NO_PROXY=...


text:
/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package Model;

import java.math.BigInteger;
import java.util.Date;

/**
 *
 * @author Thinkpad
 */
public class M04supl {
    Long m04_id;
    String kdsup;
    String nmsup;
    String alamat;
    String kota;
    String telp;
    String keterangan;
    Long version;
    String created_by;
    Date created_on;
    String updated_by;
    Date updated_on;

    public Long getM04_id() {
        return m04_id;
    }

    public void setM04_id(Long m04_id) {
        this.m04_id = m04_id;
    }

    public String getKdsup() {
        return kdsup;
    }

    public void setKdsup(String kdsup) {
        this.kdsup = kdsup;
    }

    public String getNmsup() {
        return nmsup;
    }

    public void setNmsup(String nmsup) {
        this.nmsup = nmsup;
    }

    public String getAlamat() {
        return alamat;
    }

    public void setAlamat(String alamat) {
        this.alamat = alamat;
    }

    public String getKota() {
        return kota;
    }

    public void setKota(String kota) {
        this.kota = kota;
    }

    public String getTelp() {
        return telp;
    }

    public void setTelp(String telp) {
        this.telp = telp;
    }

    public String getKeterangan() {
        return keterangan;
    }

    public void setKeterangan(String keterangan) {
        this.keterangan = keterangan;
    }

    public Long getVersion() {
        return version;
    }

    public void setVersion(Long version) {
        this.version = version;
    }

    public String getCreated_by() {
        return created_by;
    }

    public void setCreated_by(String created_by) {
        this.created_by = created_by;
    }

    public Date getCreated_on() {
        return created_on;
    }

    public void setCreated_on(Date created_on) {
        this.created_on = created_on;
    }

    public String getUpdated_by() {
        return updated_by;
    }

    public void setUpdated_by(String updated_by) {
        this.updated_by = updated_by;
    }

    public Date getUpdated_on() {
        return updated_on;
    }

    public void setUpdated_on(Date updated_on) {
        this.updated_on = updated_on;
    }

}


text:
var userModel = Alloy.createCollection('user');
var postModel = Alloy.createCollection('post');
/**
 * Global Navigation Handler
 */
Alloy.Globals.Navigator = {

	/**
	 * Handle to the Navigation Controller
	 */
	navGroup: $.nav,

	open: function(controller, payload){
		var win = Alloy.createController(controller, payload || {}).getView();

		if(OS_IOS){
			$.nav.openWindow(win);
		}
		else if(OS_MOBILEWEB){
			$.nav.open(win);
		}
		else {
			if(typeof payload != "undefined"){
				// added this property to the payload to know if the window is a child
				if (payload.displayHomeAsUp){

					win.addEventListener('open',function(evt){
						var activity=win.activity;
						activity.actionBar.displayHomeAsUp=payload.displayHomeAsUp;
						activity.actionBar.onHomeIconItemSelected=function(){
							evt.source.close();
						};
					});
				}
			}
			win.open();
		}
	}
};

if(OS_IOS){
	$.nav.open();
}else{
	$.index.getView().open();
}

init();

function init(){

	userModel.addColumn("status", "TEXT");
	userModel.addColumn("e_id", "TEXT");
	postModel.addColumn("published_role", "TEXT");
	postModel.addColumn("publisher_position", "TEXT");
	postModel.addColumn("published_uid", "TEXT");
	var checker = Alloy.createCollection('updateChecker');
	var isUpdate = checker.getCheckerById(1);
	var last_updated ="";

	var educationModel = Alloy.createCollection('education');
	if(isUpdate != "" ){
		last_updated = isUpdate.updated;
	}
	var param = {
		"last_updated" : last_updated,
		"session"	   : Ti.App.Properties.getString('session') || ""
	};
	API.callByPost({url:"getSchoolList", params: param}, function(responseText){
		var res = JSON.parse(responseText);
		if(res.status == "success"){
		 	/**load new set of category from API**/
		 	var arr = res.data;
		    educationModel.saveArray(arr);
			checker.updateModule(1,"education", COMMON.now());
			launchPage();
		} else{
			Alloy.Globals.Navigator.open("login");
		}

	}, function(){
		launchPage();
	});
}

function launchPage(){
	var session = Ti.App.Properties.getString('session') || "";
	var u_id = Ti.App.Properties.getString('u_id') || "";
	var user = userModel.getUserById(u_id);
	var e_id = Ti.App.Properties.getString('e_id') || "";

	if(session != "" && user != "" && e_id != ""){
		Alloy.Globals.Navigator.open("home");
	}else{
		Alloy.Globals.Navigator.open("login");
	}
}


text:
BUILD_RPATH_USE_ORIGIN
----------------------

Whether to use relative paths for the build ``RPATH``.

This property is initialized by the value of the variable
:variable:`CMAKE_BUILD_RPATH_USE_ORIGIN`.

On platforms that support runtime paths (``RPATH``) with the
``$ORIGIN`` token, setting this property to ``TRUE`` enables relative
paths in the build ``RPATH`` for executables and shared libraries that
point to shared libraries in the same build tree.

Normally the build ``RPATH`` of a binary contains absolute paths
to the directory of each shared library it links to.  The ``RPATH``
entries for directories contained within the build tree can be made
relative to enable relocatable builds and to help achieve reproducible
builds by omitting the build directory from the build environment.

This property has no effect on platforms that do not support the
``$ORIGIN`` token in ``RPATH``, or when the :variable:`CMAKE_SKIP_RPATH`
variable is set. The runtime path set through the
:prop_tgt:`BUILD_RPATH` target property is also unaffected by this
property.


text:
package com.voxelplugineering.voxelsniper.bukkit.service;

import java.io.File;

import com.voxelplugineering.voxelsniper.CommonPlatformProxyService;
import com.voxelplugineering.voxelsniper.util.Context;

/**
 * A proxy for Bukkit's platform.
 */
public class BukkitPlatformProxyService extends CommonPlatformProxyService
{

    /**
     * Creates a new {@link BukkitPlatformProxyService}.
     *
     * @param data The data folder
     */
    public BukkitPlatformProxyService(Context context, File data)
    {
        super(context, data);
    }

    @Override
    public String getPlatformName()
    {
        return org.bukkit.Bukkit.getName();
    }

    @Override
    public String getVersion()
    {
        return org.bukkit.Bukkit.getVersion();
    }

    @Override
    public String getFullVersion()
    {
        return org.bukkit.Bukkit.getBukkitVersion();
    }

    @Override
    public int getNumberOfPlayersOnline()
    {
        return org.bukkit.Bukkit.getOnlinePlayers().size();
    }

}