text:
import numpy as np
from gym.spaces import Box

from metaworld.envs.asset_path_utils import full_v1_path_for
from metaworld.envs.mujoco.sawyer_xyz.sawyer_xyz_env import SawyerXYZEnv, _assert_task_is_set

class SawyerStickPullEnv(SawyerXYZEnv):

    def __init__(self):

        liftThresh = 0.04
        hand_low = (-0.5, 0.35, 0.05)
        hand_high = (0.5, 1, 0.5)
        obj_low = (-0.1, 0.55, 0.02)
        obj_high = (0., 0.65, 0.02)
        goal_low = (0.3, 0.4, 0.0199)
        goal_high = (0.4, 0.5, 0.0201)

        super().__init__(
            self.model_name,
            hand_low=hand_low,
            hand_high=hand_high,
        )

        self.init_config = {
            'stick_init_pos': np.array([0, 0.6, 0.02]),
            'hand_init_pos': np.array([0, 0.6, 0.2]),
        }
        self.goal = self.init_config['stick_init_pos']
        self.stick_init_pos = self.init_config['stick_init_pos']
        self.hand_init_pos = self.init_config['hand_init_pos']

        self.liftThresh = liftThresh

        # Fix object init position.
        self.obj_init_pos = np.array([0.2, 0.69, 0.04])
        self.obj_init_qpos = np.array([0., 0.09])
        self.obj_space = Box(np.array(obj_low), np.array(obj_high))
        self.goal_space = Box(np.array(goal_low), np.array(goal_high))
        self._random_reset_space = Box(
            np.hstack((obj_low, goal_low)),
            np.hstack((obj_high, goal_high)),
        )

    @property
    def model_name(self):
        return full_v1_path_for('sawyer_xyz/sawyer_stick_obj.xml')

    @_assert_task_is_set
    def step(self, action):
        ob = super().step(action)
        reward, _, reachDist, pickRew, _, pullDist, _ = self.compute_reward(action, ob)

        info = {
            'reachDist': reachDist,
            'pickRew': pickRew,
            'epRew': reward,
            'goalDist': pullDist,
            'success': float(pullDist <= 0.08 and reachDist <= 0.05)
        }

        return ob, reward, False, info

    def _get_pos_objects(self):
        return np.hstack((
            self.get_body_com('stick').copy(),
            self.data.site_xpos[self.model.site_name2id('insertion')],
        ))

    def _get_obs_dict(self):
        obs_dict = super()._get_obs_dict()
        obs_dict['state_achieved_goal'] = self.data.site_xpos[self.model.site_name2id('insertion')]
        return obs_dict

    def _set_stick_xyz(self, pos):
        qpos = self.data.qpos.flat.copy()
        qvel = self.data.qvel.flat.copy()
        qpos[9:12] = pos.copy()
        qvel[9:15] = 0
        self.set_state(qpos, qvel)

    def _set_obj_xyz(self, pos):
        qpos = self.data.qpos.flat.copy()
        qvel = self.data.qvel.flat.copy()
        qpos[16:18] = pos.copy()
        qvel[16:18] = 0
        self.set_state(qpos, qvel)

    def reset_model(self):
        self._reset_hand()
        self.obj_init_pos = np.array([0.2, 0.69, 0.04])
        self.obj_init_qpos = np.array([0., 0.09])
        self.stick_init_pos = self.init_config['stick_init_pos']
        self.stickHeight = self.get_body_com('stick').copy()[2]
        self.heightTarget = self.stickHeight + self.liftThresh
        self._target_pos = np.array([0.3, 0.4, self.stick_init_pos[-1]])

        if self.random_init:
            goal_pos = self._get_state_rand_vec()
            while np.linalg.norm(goal_pos[:2] - goal_pos[-3:-1]) < 0.1:
                goal_pos = self._get_state_rand_vec()
            self.stick_init_pos = np.concatenate((goal_pos[:2], [self.stick_init_pos[-1]]))
            self._target_pos = np.concatenate((goal_pos[-3:-1], [self.stick_init_pos[-1]]))

        self._set_stick_xyz(self.stick_init_pos)
        self._set_obj_xyz(self.obj_init_qpos)
        self.obj_init_pos = self.get_body_com('object').copy()
        self.maxPullDist = np.linalg.norm(self.obj_init_pos[:2] - self._target_pos[:-1])
        self.maxPlaceDist = np.linalg.norm(np.array([self.obj_init_pos[0], self.obj_init_pos[1], self.heightTarget]) - np.array(self.stick_init_pos)) + self.heightTarget

        return self._get_obs()

    def _reset_hand(self):
        super()._reset_hand(10)
            #self.do_simulation(None, self.frame_skip)
        rightFinger, leftFinger = self._get_site_pos('rightEndEffector'), self._get_site_pos('leftEndEffector')
        self.init_fingerCOM  =  (rightFinger + leftFinger)/2
        self.pickCompleted = False

    def compute_reward(self, actions, obs):

        stickPos = obs[3:6]
        objPos = obs[6:9]

        rightFinger, leftFinger = self._get_site_pos('rightEndEffector'), self._get_site_pos('leftEndEffector')
        fingerCOM  =  (rightFinger + leftFinger)/2

        heightTarget = self.heightTarget
        pullGoal = self._target_pos[:-1]

        pullDist = np.linalg.norm(objPos[:2] - pullGoal)
        placeDist = np.linalg.norm(stickPos - objPos)
        reachDist = np.linalg.norm(stickPos - fingerCOM)

        def reachReward():
            reachRew = -reachDist

            # incentive to close fingers when reachDist is small
            if reachDist < 0.05:
                reachRew = -reachDist + max(actions[-1],0)/50

            return reachRew, reachDist

        def pickCompletionCriteria():
            tolerance = 0.01
            return stickPos[2] >= (heightTarget - tolerance)

        self.pickCompleted = pickCompletionCriteria()

        def objDropped():
            return (stickPos[2] < (self.stickHeight + 0.005)) and (pullDist >0.02) and (reachDist > 0.02)
            # Object on the ground, far away from the goal, and from the gripper
            # Can tweak the margin limits

        def orig_pickReward():
            hScale = 100
            if self.pickCompleted and not(objDropped()):
                return hScale*heightTarget
            elif (reachDist < 0.1) and (stickPos[2]> (self.stickHeight + 0.005)):
                return hScale* min(heightTarget, stickPos[2])
            else:
                return 0

        def pullReward():
            c1 = 1000
            c2 = 0.01
            c3 = 0.001
            cond = self.pickCompleted and (reachDist < 0.1) and not(objDropped())
            if cond:
                pullRew = 1000*(self.maxPlaceDist - placeDist) + c1*(np.exp(-(placeDist**2)/c2) + np.exp(-(placeDist**2)/c3))
                if placeDist < 0.05:
                    c4 = 2000
                    pullRew += 1000*(self.maxPullDist - pullDist) + c4*(np.exp(-(pullDist**2)/c2) + np.exp(-(pullDist**2)/c3))

                pullRew = max(pullRew,0)
                return [pullRew , pullDist, placeDist]
            else:
                return [0 , pullDist, placeDist]

        reachRew, reachDist = reachReward()
        pickRew = orig_pickReward()
        pullRew , pullDist, placeDist = pullReward()
        assert ((pullRew >=0) and (pickRew>=0))
        reward = reachRew + pickRew + pullRew

        return [reward, reachRew, reachDist, pickRew, pullRew, pullDist, placeDist]


text:
/*jshint ignore:start,-W101*/ // allow long lines
////////////////////////////////////////////////////////////////////////////////
// Velocity to destination calculation
////////////////////////////////////////////////////////////////////////////////

/**
 * Calculate the end position of the transition based on the velocity given
 * by user input.
 * @param  {ScrollPosition}
 * @param  {Object}
 * @param  {Object}
 * @param  {Boolean}
 * @param  {Number}
 * @return {ScrollPosition}
 */
var getVelocityDestination = function (current, velocity, paginated, resistance) {
  // Distance to travel
  var dX = -velocity.x / resistance;
  var dY = -velocity.y / resistance;
  var x = current.x + dX;
  var y = current.y + dY;

  if (paginated) {

    var page = new ScrollPosition({
      x: x + (current.width / 2),
      y: y + (current.height / 2)
    }, current.size());

    // Target something like modulus zero on client height/width
    x = page.index().x * current.width;
    y = page.index().y * current.height;

  }

  return new ScrollPosition({ x: x, y: y }, current.size());
};

////////////////////////////////////////////////////////////////////////////////
// ScrollView
////////////////////////////////////////////////////////////////////////////////

// The infinite date scroller
ScrollView = function ScrollView(options) {
  var self = this;

  // Make sure an instance is returned
  if (!(self instanceof ScrollView))
    return new ScrollView(options);

  // Destroyed flag
  self.isDestroyed = false;

  // Set default options
  self.options = _.extend({
    resistance: 0.001,
    minimumDuration: 200, // Minimum animation at scroll end
    scrollWeight: 10, // Weight to calculate momentum
    releaseLimit: 200, // threshold from last move to release - above this velocity is set to 0
    offset: [0, 0],
    pagePeriod: 200,
    preload: {
      x: 1,
      y: 0
    },
    direction: 0, // 0 = Horisontal, 1 = Vertically
    ease: 'linear', // iosScroll
    handleEvents: true,
    eventsEnabled: true,
    index: {
      x: 0,
      y: 0
    }
  }, options || {});

  // Check options
  if (typeof self.options.container === 'undefined')
    throw new Error('ScrollView: Requires option "container" as dom container element');

  if (typeof self.options.template === 'undefined')
    throw new Error('ScrollView: Requires option "template"');

  self.height = $(self.options.container).height();
  self.width = $(self.options.container).width();
  self.child = {
    height: self.height,
    width: self.width,
    offset: {
      x: 0,
      y: 0
    }
  };

  if (typeof self.options.size === 'undefined' || self.options.size.length !== 2)
    throw new Error('ScrollView: Requires option "size" of children');

  // Ajust self.child{height, width} accordingly to the self.options.size[]
  self.child.width = calcValue(self.options.size[0], self.child.width);
  self.child.height = calcValue(self.options.size[1], self.child.height);

  // Ajust self.child.offset{x, y} accordingly to the self.options.offset[]
  self.child.offset.x = calcValue(self.options.offset[0], self.child.offset.x, self.child.width);
  self.child.offset.y = calcValue(self.options.offset[1], self.child.offset.y, self.child.height);

  var initialPosition = {
    x: self.options.index.x * self.child.width,
    y: self.options.index.y * self.child.height
  };

  // These functions will help us keep track of animation
  self.current = new ScrollPosition(initialPosition, self.child);
  self.last = new ScrollPosition(initialPosition, self.child);
  self.destination = new ScrollPosition(initialPosition, self.child);

  // Dom elements
  self.items = [];

  // Initialize the current time stamp
  self.currentTime = null;
  // Destination for the animation / time to end
  self.destinationTime = null;
  // Default duration of animation
  self.duration = 0;

  self.eventsEnabled = self.options.eventsEnabled;

  self.interpolator = new Interpolator(self.options.ease);

  _constructor.call(this, options);
};

var Tools = {
  transform: function(el, transform) {
    el.style.transform = transform;
  }
};

// Detect transform
_.each([
  'MozTransform',
  'msTransform',
  'webkit',
  'OTransform',
  'WebkitTransform',
  'webkitTransform',
  'transform'
  ], function(name) {
  // Check if prefix is found
  if (name in document.documentElement.style) {
    // Set the transform function
    Tools.transform = function(el, transform) {
      el.style[name] = transform;
    };
  }
});

var translateElement = function translateElement(el, x, y) {
  Tools.transform(el, 'translate3d(' + x + 'px,' + y + 'px, 0)');
};

// var transitionElement = function transitionElement(el, ease) {
//   el.style[usePrefix('transition')] = ease;
// };

var _updateMasterTranslate = function translateMasterLayer() {
  var self = this;
  // Calculate the offset position
  var offsetPosition = new ScrollPosition({
    x: self.current.x + self.child.offset.x,
    y: self.current.y + self.child.offset.y,
  }, self.current.size());

  // Make sure our elements contain the correct data
  self.sequence.setIndex(offsetPosition.index().x);

  var o = offsetPosition.offset();

  // Calculate the main offset
  var mainOffset = {
    x: -o.x -self.options.preload.x * self.child.width,
    y: -o.y -self.options.preload.y * self.child.height
  };

  // Calculate the main x, y
  var x = mainOffset.x + self.child.offset.x + (self.child.width / 2);
  var y = self.child.offset.y; // TODO: Add support for y axis
  //mainOffset.y + self.child.offset.y + (self.child.height / 2);

  self.sequence.forEach(function(item, index, i) {
    var elementX = i * self.child.width;

    // Translate each item
    translateElement(item.firstNode(), x + elementX, y);
  });
};

var _constructor = function () {
  var self = this;
  var container = self.options.container;

  // Track last coordinate
  var lX = 0;
  var lY = 0;

  //////////////
  // SEQUENCE //
  //////////////
  var calculateSequenceSize = function() {
    return Math.round(self.width / self.child.width) + 2 * self.options.preload.x;
  };

  // Define our template sequence
  self.sequence = new TemplateSequence({
    template: self.options.template,
    index: self.options.index.x,
    offset: self.options.preload.x,
    container: container,
    size: calculateSequenceSize(),
    eventsEnabled: false
  });

  // Define resize event
  var resizeEvent = function(evt) {
    self.height = $(container).height();
    self.width = $(container).width();

    self.sequence.resize(calculateSequenceSize());

    _updateMasterTranslate.call(self);
  };

  // Add event listener
  $(window).resize(resizeEvent)

  self.destroy = function() {
    // Decouple event listener
    $(window).off('resize', resizeEvent);

    // Destroy sequence
    self.sequence.destroy();

    // Destroy events
    self.panEvents && self.panEvents.destroy();
  };

  // Update translation
  _updateMasterTranslate.call(self);

  ///////////////
  // RENDERING //
  ///////////////

  var ScrollViewRender = function ScrollViewRender(timestamp) {

    // Set the currentTime
    self.currentTime = timestamp;
    // Render this scroll

    if (self.transition) {
      // Progress factor
      var factor = (self.duration - (self.destinationTime - timestamp)) / self.duration;
      // factor interval: [0..1]
      factor = Math.max(0, Math.min(1, factor));
      // Do animation
      // XXX: We can make other more natural animations - this is just for test
      self.last = self.current;
      var currentPosition = self.transition(factor);
      self.current = new ScrollPosition(currentPosition, self.child);

      if (factor == 1) {
        // Stop transition when done
        self.transition = null;
        // Trigger snap event
        self.emit('snapEnd', self.destination.toObject());
      }

    } else {
      // Get diff to see if we need to move anything
      var diffMove = self.current.diff(self.destination);
      if (diffMove.position.x || diffMove.position.y) {
        // Something have changed
        self.last = self.current;
        self.current = self.destination.clone();
      }
    }

    // XXX: We should have a package that detects device density in order for us
    // to calculate the proper accuratcy of position
    var X = Math.round(self.current.x * 10) / 10;
    var Y = Math.round(self.current.y * 10) / 10;

    // Break from animation loop - nothing need to be updated on screen if
    // coordinates are not updated
    if (X !== lX || Y !== lY) {

      lX = X;
      lY = Y;

      // Set the modulus position on the container div - we dont change
      // positions of the child containers them self

      var diff = self.last.diff(self.current);

      if (Math.abs(diff.position.x) > 0 || Math.abs(diff.position.y) > 0) {
        // We need to animate

        if (Math.abs(diff.index.y) > 0) {
          // XXX: vertical scroll not implemented
        }

        if (Math.abs(diff.offset.x) > 0 || Math.abs(diff.offset.y) > 0) {
          // Update container position
          _updateMasterTranslate.call(self);
        }

      } // EO Animate

    }

    // Render this view in next tick
    if (!self.isDestroyed)
      Kernel.onRender(ScrollViewRender);

  }; // EO Render function

  // Start rendering this view
  if (!self.isDestroyed)
    Kernel.onRender(ScrollViewRender);

  ////////////
  // EVENTS //
  ////////////

  if (self.options.handleEvents) {

    // Add pan event listener on the container
    self.panEvents = new Events.Pan(container);

    // Pan start event
    self.panEvents.on('start', function () {
      // Stop any transition animations
      self.destinationTime = 0;
    });
    // Pan move event
    self.panEvents.on('move', function (evt) {
      // XXX: Accellerate mass

      // Move the scroller
      if (self.options.direction === 0) {
        self.destination.x -= evt.delta.x;
      } else {
        self.destination.y -= evt.delta.y;
      }
    });

    // Pan end event
    self.panEvents.on('end', function (evt) {
      // A slow release triggers a stop and we go to the nearst index
      if (evt.releaseTime > self.options.releaseLimit) {
        evt.velocity.x = 0;
        evt.velocity.y = 0;
      }

      // Lock direction
      if (self.options.direction === 0) {
        evt.velocity.y = 0;
      } else {
        evt.velocity.x = 0;
      }

      var velocity = {
        x: evt.velocity.x * Math.abs(evt.velocity.x),
        y: evt.velocity.y * Math.abs(evt.velocity.y)
      };

      // Get the active velocity
      var v = (self.options.direction === 0) ? Math.abs(evt.velocity.x) : Math.abs(evt.velocity.y);

      // Change duration depending on velocity
      self.duration = Math.min(Math.max(self.options.minimumDuration, self.options.pagePeriod * v * self.options.scrollWeight), self.options.maximumDuration);

      // Calculate destination time
      self.destinationTime = self.currentTime + self.duration;

      // Get the destination
      self.destination = getVelocityDestination(self.current, velocity, true, self.options.resistance);

      // Set the transition function
      self.transition = self.interpolator.create(self.current.position(), self.destination.position(), self.duration);

      // XXX: We can use css transitions instead:
      // transitionElement(self.container, 'all ' + self.duration + 'ms ease-in-out');
      // translateElement(self.container, -self.destination.x, 0);

      // Emit index changed event
      self.emit('indexChanged', self.destination.toObject());

    });

  }
  // var i = 0;
  // Meteor.setInterval(function triggerScrollTo() {
  //   i += self.child.width * 10;
  //   self.scrollTo(i, 5000);
  // }, 5000);

  // Set events enabled
  this.sequence.eventsEnabled = self.eventsEnabled;

};

/*jshint ignore:end,-W101*/

redpajama_set_name: RedPajamaGithub


text:
rd Release /s /q
rd Debug /s /q
rd Source\FreeImageLib\Debug /s /q
rd Source\FreeImageLib\Release /s /q
rd Source\Source\Release /s /q
rd Source\Source\Debug /s /q
rd Source\LibJPEG\Debug /s /q
rd Source\LibJPEG\Release /s /q
rd Source\LibPNG\Debug /s /q
rd Source\LibPNG\Release /s /q
rd Source\LibMNG\Debug /s /q
rd Source\LibMNG\Release /s /q
rd Source\LibTIFF\Debug /s /q
rd Source\LibTIFF\Release /s /q
rd Source\LibTIFF4\Debug /s /q
rd Source\LibTIFF4\Release /s /q
rd Source\Zlib\Debug /s /q
rd Source\Zlib\Release /s /q
rd Source\OpenEXR\Debug /s /q
rd Source\OpenEXR\Release /s /q
rd Source\LibOpenJPEG\Debug /s /q
rd Source\LibOpenJPEG\Release /s /q
rd Source\LibRawLite\Debug /s /q
rd Source\LibRawLite\Release /s /q
rd Source\LibWebP\Debug /s /q
rd Source\LibWebP\Release /s /q
rd Source\LibJXR\Debug /s /q
rd Source\LibJXR\Release /s /q
rd TestAPI\Debug /s /q
rd TestAPI\Release /s /q
rd x64 /s /q
rd Source\FreeImageLib\x64 /s /q
rd Source\LibJPEG\x64 /s /q
rd Source\LibPNG\x64 /s /q
rd Source\LibMNG\x64 /s /q
rd Source\LibTIFF\x64 /s /q
rd Source\LibTIFF4\x64 /s /q
rd Source\ZLib\x64 /s /q
rd Source\OpenEXR\x64 /s /q
rd Source\LibOpenJPEG\x64 /s /q
rd Source\LibRawLite\x64 /s /q
rd Source\LibWebP\x64 /s /q
rd Source\LibJXR\x64 /s /q
rd TestAPI\x64 /s /q
del TestAPI\blob.png
del TestAPI\buffer.png
del TestAPI\dump.png
del TestAPI\TestImageType.tif
del TestAPI\zoneplate.png
del TestAPI\sample.ico
del TestAPI\sample.tif
del TestAPI\sample.gif
del TestAPI\test.jpg
del TestAPI\*.tif
del TestAPI\raw_exif.jpg
del TestAPI\exif_new_thumb.jpg
del Dist\FreeImage.h
del *.pch /s /q
del *.ncb /s /q
del *.opt /s /q
del *.plg /s /q
del *.obj /s /q
del *.dll /s /q
del *.exe /s /q
del *.bsc /s /q
del *.bak /s /q
del *.pdb /s /q
del *.sql /s /q
del *.mdb /s /q
del *.lib /s /q
del *.exp /s /q
del *.ilk /s /q
del *.idb /s /q
del *.aps /s /q
del *.suo /s /q /a:h
del *.o /s /q
del *.user /s /q


text:
package org.skylight1;

import android.app.Activity;
import android.content.ComponentName;
import android.content.Intent;
import android.content.ServiceConnection;
import android.os.Bundle;
import android.os.IBinder;
import android.view.Menu;
import android.view.MenuInflater;
import android.view.MenuItem;

/**
 * Activity showing the options menu.
 */
public class MenuActivity extends Activity {

    private Brain mBrain;
    private boolean mResumed;

    private ServiceConnection mConnection = new ServiceConnection() {
        @Override
        public void onServiceConnected(ComponentName name, IBinder service) {
            if (service instanceof BrainService.BrainBinder) {
                mBrain = ((BrainService.BrainBinder) service).getBrain();
                openOptionsMenu();
            }
            // No need to keep the service bound.
            unbindService(this);
        }

        @Override
        public void onServiceDisconnected(ComponentName name) {
            // Nothing to do here.
        }
    };

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        bindService(new Intent(this, BrainService.class), mConnection, 0);
    }

    @Override
    public void onResume() {
        super.onResume();
        mResumed = true;
        openOptionsMenu();
    }

    @Override
    public void onPause() {
        super.onPause();
        mResumed = false;
    }

    @Override
    public void openOptionsMenu() {
        if (mResumed && mBrain != null) {
            super.openOptionsMenu();
        }
    }

    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        MenuInflater inflater = getMenuInflater();
        inflater.inflate(R.menu.brain, menu);
        return true;
    }

    @Override
    public boolean onPrepareOptionsMenu(Menu menu) {
        menu.findItem(R.id.start).setVisible(!mBrain.isRunning());
        return true;
    }

    @Override
    public boolean onOptionsItemSelected(MenuItem item) {
        // Handle item selection.
        switch (item.getItemId()) {
            case R.id.start:
                mBrain.start();
                return true;
            case R.id.stop:
                stopService(new Intent(this, BrainService.class));
                return true;
            default:
                return super.onOptionsItemSelected(item);
        }
    }

    @Override
    public void onOptionsMenuClosed(Menu menu) {
        finish();
    }

}


text:
<form [ngFormModel]="form" (ngSubmit)="login()">

Check your username & password. Use test/test

        Username
        <input id="username" type="text" class="form-control" ngControl="username" #username="ngForm">

Username or password is invalid.

Username is required.

Username cannot contain space.

        Password
        <input id="password" type="password" class="form-control" ngControl="password" #password="ngForm">

Password is required.

        <button class="btn btn-primary" type="submit" [disabled]="!form.valid">Login</button>

</form>


text:
package listagem;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import report.Ireport;
import report.ListagemReport;

public class ListagemFornecedores extends Ireport implements ListagemReport {

	private Long fornecedorId;

	private Date dataCadastro;

	private String razaoSocial;

	private String cpf_cnpj = "";

	private String inscricaoEstadualRg = "";

	private String telefone;

	private String celular;

	private String email;

	private String nome;

	private String tipoPessoa = "pj";

	private String observacoes;

	// Dados do Endereço

	private String endereco = "";

	private String bairro = "";

	private String complemento = "";

	private String numero = "";

	private String cep = "";

	private String cidade = "";

	public ListagemFornecedores(String url, Object list) {
		super(url, list);
	}

	public ListagemFornecedores() {
		super();
	}

	@Override
	public Object getList() {

		List<ListagemFornecedores> lista = new ArrayList<ListagemFornecedores>();
		lista = (List<ListagemFornecedores>) getListaObject();
		return lista;
	}

	public Long getFornecedorId() {
		return fornecedorId;
	}

	public void setFornecedorId(Long fornecedorId) {
		this.fornecedorId = fornecedorId;
	}

	public Date getDataCadastro() {
		return dataCadastro;
	}

	public void setDataCadastro(Date dataCadastro) {
		this.dataCadastro = dataCadastro;
	}

	public String getRazaoSocial() {
		return razaoSocial;
	}

	public void setRazaoSocial(String razaoSocial) {
		this.razaoSocial = razaoSocial;
	}

	public String getCpf_cnpj() {
		return cpf_cnpj;
	}

	public void setCpf_cnpj(String cpf_cnpj) {
		this.cpf_cnpj = cpf_cnpj;
	}

	public String getInscricaoEstadualRg() {
		return inscricaoEstadualRg;
	}

	public void setInscricaoEstadualRg(String inscricaoEstadualRg) {
		this.inscricaoEstadualRg = inscricaoEstadualRg;
	}

	public String getTelefone() {
		return telefone;
	}

	public void setTelefone(String telefone) {
		this.telefone = telefone;
	}

	public String getCelular() {
		return celular;
	}

	public void setCelular(String celular) {
		this.celular = celular;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getNome() {
		return nome;
	}

	public void setNome(String nome) {
		this.nome = nome;
	}

	public String getTipoPessoa() {
		return tipoPessoa;
	}

	public void setTipoPessoa(String tipoPessoa) {
		this.tipoPessoa = tipoPessoa;
	}

	public String getObservacoes() {
		return observacoes;
	}

	public void setObservacoes(String observacoes) {
		this.observacoes = observacoes;
	}

	public String getEndereco() {
		return endereco;
	}

	public void setEndereco(String endereco) {
		this.endereco = endereco;
	}

	public String getBairro() {
		return bairro;
	}

	public void setBairro(String bairro) {
		this.bairro = bairro;
	}

	public String getComplemento() {
		return complemento;
	}

	public void setComplemento(String complemento) {
		this.complemento = complemento;
	}

	public String getNumero() {
		return numero;
	}

	public void setNumero(String numero) {
		this.numero = numero;
	}

	public String getCep() {
		return cep;
	}

	public void setCep(String cep) {
		this.cep = cep;
	}

	public String getCidade() {
		return cidade;
	}

	public void setCidade(String cidade) {
		this.cidade = cidade;
	}

}


text:
import exec from 'cordova/exec'

import { wrapCallbacks, translateOptions } from './utils'

import { Banner } from './banner'
import { Interstitial } from './interstitial'
import { RewardVideo } from './reward-video'

/**
 * @type {Banner}
 * @since 0.6
 * @emits {admob.banner.events.LOAD}
 * @emits {admob.banner.events.LOAD_FAIL}
 * @emits {admob.banner.events.OPEN}
 * @emits {admob.banner.events.CLOSE}
 * @emits {admob.banner.events.EXIT_APP}
 * @example
 * admob.banner.config({
 *  id: 'ca-app-pub-xxx/xxx',
 * })
 *
 * // Create banner
 * admob.banner.prepare()
 *
 * // Show the banner
 * admob.banner.show()
 *
 * // Hide the banner
 * admob.banner.hide()
 *
 * // Remove the banner
 * admob.banner.remove()
 */
export const banner = new Banner()

/**
 * @type {Interstitial}
 * @since 0.6
 * @emits {admob.interstitial.events.LOAD}
 * @emits {admob.interstitial.events.LOAD_FAIL}
 * @emits {admob.interstitial.events.OPEN}
 * @emits {admob.interstitial.events.CLOSE}
 * @emits {admob.interstitial.events.EXIT_APP}
 * @example
 * admob.interstitial.config({
 *  id: 'ca-app-pub-xxx/xxx',
 * })
 *
 * admob.interstitial.prepare()
 *
 * admob.interstitial.show()
 */
export const interstitial = new Interstitial()

/**
 * @external {cordova-admob-mediation} https://github.com/rehy/cordova-admob-mediation
 */
/**
 * Reward video requires mediation SDK to be installed,
 * see {@link cordova-admob-mediation} for list of supported networks.
 * @type {RewardVideo}
 * @since 0.6
 * @emits {admob.rewardvideo.events.LOAD}
 * @emits {admob.rewardvideo.events.LOAD_FAIL}
 * @emits {admob.rewardvideo.events.OPEN}
 * @emits {admob.rewardvideo.events.CLOSE}
 * @emits {admob.rewardvideo.events.EXIT_APP}
 * @emits {admob.rewardvideo.events.START}
 * @emits {admob.rewardvideo.events.REWARD}
 * @example
 * admob.rewardvideo.config({
 *  id: 'ca-app-pub-xxx/xxx',
 * })
 *
 * admob.rewardvideo.prepare()
 *
 * admob.rewardvideo.show()
 */
export const rewardvideo = new RewardVideo()

// Old APIs

/**
 * Set options.
 *
 * @deprecated since version 0.6
 * @param {Object} options
 * @param {string} options.publisherId
 * @param {string} options.interstitialAdId
 *
 * @param {boolean} [options.bannerAtTop=false]
 * Set to true, to put banner at top.
 * @param {boolean} [options.overlap=true]
 * Set to true, to allow banner overlap webview.
 * @param {boolean} [options.offsetTopBar=false]
 * Set to true to avoid ios7 status bar overlap.
 * @param {boolean} [options.isTesting=false]    Receiving test ad.
 * @param {boolean} [options.autoShow=true]
 * Auto show interstitial ad when loaded.
 *
 * @param {boolean|null} [options.forChild=null]
 * Default is not calling `tagForChildDirectedTreatment`.
 * Set to "true" for `tagForChildDirectedTreatment(true)`.
 * Set to "false" for `tagForChildDirectedTreatment(false)`.
 *
 * @param {boolean|null} [options.forFamily=null]
 * Android-only.
 * Default is not calling `setIsDesignedForFamilies`.
 * Set to "true" for `setIsDesignedForFamilies(true)`.
 * Set to "false" for `setIsDesignedForFamilies(false)`.
 *
 * @param {function()} [successCallback]
 * @param {function()} [failureCallback]
 */
export function setOptions(options, successCallback, failureCallback) {
  if (typeof options === 'object') {
    Object.keys(options).forEach(k => {
      switch (k) {
        case 'publisherId':
          banner._config.id = options[k]
          break
        case 'bannerAtTop':
        case 'overlap':
        case 'offsetTopBar':
          banner._config[k] = options[k]
          break
        case 'interstitialAdId':
          interstitial._config.id = options[k]
          break
        case 'rewardVideoId':
          rewardvideo._config.id = options[k]
          break
        case 'isTesting':
        case 'autoShow':
          banner._config[k] = options[k]
          interstitial._config[k] = options[k]
          rewardvideo._config[k] = options[k]
          break
        default:
      }
    })
    exec(successCallback, failureCallback, 'AdMob', 'setOptions', [
      translateOptions(options),
    ])
  } else if (typeof failureCallback === 'function') {
    failureCallback('options should be specified.')
  }
}

/**
 * Ad sizes.
 * @constant
 * @type {BANNER_SIZE}
 * @deprecated since version 0.6
 */
export const AD_SIZE = Banner.sizes

/* eslint-disable no-console */
/**
 * @deprecated since version 0.6
 */
export function createBannerView(
  options = {},
  successCallback,
  failureCallback,
) {
  console.warn('Use admob.banner.prepare() instead.')
  exec(successCallback, failureCallback, 'AdMob', 'createBannerView', [
    translateOptions(options),
  ])
}

/**
 * @deprecated since version 0.6
 */
export function destroyBannerView(options, successCallback, failureCallback) {
  console.warn('Use admob.banner.remove() instead.')
  exec(successCallback, failureCallback, 'AdMob', 'destroyBannerView', [])
}

/**
 * @deprecated since version 0.6
 */
export function showAd(show = true, successCallback, failureCallback) {
  console.warn('Use admob.banner.show() and admob.banner.hide() instead.')
  exec(successCallback, failureCallback, 'AdMob', 'showAd', [show])
}

/**
 * @deprecated since version 0.6
 */
export function createInterstitialView(
  options,
  successCallback,
  failureCallback,
) {
  console.warn(
    'Use admob.interstitial.prepare() instead, it will do both createInterstitialView() and requestInterstitialAd().',
  )
  exec(successCallback, failureCallback, 'AdMob', 'createInterstitialView', [
    translateOptions(options),
  ])
}

/**
 * @deprecated since version 0.6
 */
export function requestInterstitialAd(
  options = {},
  successCallback,
  failureCallback,
) {
  console.warn(
    'Use admob.interstitial.prepare() instead, it will do both createInterstitialView() and requestInterstitialAd().',
  )
  exec(successCallback, failureCallback, 'AdMob', 'requestInterstitialAd', [
    translateOptions(options),
  ])
}

/**
 * @deprecated since version 0.6
 */
export function prepareInterstitial(
  options = {},
  successCallback,
  failureCallback,
) {
  console.warn('Use admob.interstitial.prepare() instead.')
  exec(successCallback, failureCallback, 'AdMob', 'prepareInterstitial', [
    translateOptions(options),
  ])
}

/**
 * @deprecated since version 0.6
 */
export function showInterstitial(successCallback, failureCallback) {
  console.warn('Use admob.interstitial.show() instead.')
  wrapCallbacks(interstitial.show(), successCallback, failureCallback)
}

/**
 * @deprecated since version 0.6
 */
export function showInterstitialAd(
  show = true,
  successCallback,
  failureCallback,
) {
  console.warn('Use admob.interstitial.show() instead.')
  exec(successCallback, failureCallback, 'AdMob', 'showInterstitialAd', [show])
}
/* eslint-enable no-console */


text:
import DatatipAdapter from 'atom-languageclient/build/lib/adapters/datatip-adapter'
// tslint:disable-next-line: no-import-side-effect
import 'reflect-metadata'
import { container } from 'tsyringe'
import { GoDatatipAdapter } from './datatip-adapter'
import { GoLanguageClient } from './language-client'

const client: GoLanguageClient = container
    .register<DatatipAdapter>(DatatipAdapter, {
        useClass: GoDatatipAdapter,
    })
    .resolve(GoLanguageClient)

module.exports = client


text:
=begin

https://github.com/bitboxer/simple_progressbar.git

Copyright (c) 2010 Bodo Tasche

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

=end

class SimpleProgressbar
  def initialize
    @last_length = 0
    @title = ""
    @progress = 0
  end

  def show(title, &block)
    @title = title
    print @title + " "
    start_progress
    # thanks to http://www.dcmanges.com/blog/ruby-dsls-instance-eval-with-delegation
    @self_before_instance_eval = eval "self", block.binding
    instance_eval(&block)
    finish_progress
  end

  def interrupt
    # TODO: Make some of the strings constants so we don't have to use a magic number here.
    progressbar_length = 16 + @last_length + @title.length
    move_cursor = "\e[#{progressbar_length}D"
    print move_cursor + (" " * progressbar_length) + move_cursor
    STDOUT.flush
    yield
    puts
    print @title + " "
    render_progress(@progress)
  end

  def progress(percent)
    print "\e[#{15 + @last_length}D"
    render_progress(percent)
  end

  def method_missing(method, *args, &block)
    @self_before_instance_eval.send method, *args, &block
  end

  private

  def render_progress(percent)
    @progress = percent
    print "["

    print "*" * [(percent/10).to_i, 10].min
    print " " * [10 - (percent/10).to_i, 0].max

    if percent.class != Float
      printable_percent = "%3s" % percent
    else
      non_decimal_digits = (Math.log(percent) / Math.log(10)).truncate + 1
      printable_percent = (non_decimal_digits < 3 ? " " * (3 - non_decimal_digits) : "") + percent.to_s
    end

    print "]\e[32m #{printable_percent}\e[0m %"

    new_length = printable_percent.length
    if @last_length > new_length
      print " " * (@last_length - new_length)
      print "\e[#{@last_length - new_length}D"
    end
    @last_length = new_length

    STDOUT.flush
  end

  def start_progress
    render_progress(0)
  end

  def finish_progress
    puts
  end
end


text:
<?php

$a = array('one','two');
$b = array('three','four','five');

/*
 * El operador + devuelve el array del lado derecho añadido al array del lado izquierdo;
 * para las claves que existan en ambos arrays, serán utilizados los elementos del array de la izquierda y
 * serán ignorados los elementos correspondientes del array de la derecha.
 */

//print_r($a+$b);
print_r(array_merge($a,$b));


text:
package network

import (
	"errors"
	"flag"
	"fmt"

	"github.com/vmware/govmomi/govc/cli"
	"github.com/vmware/govmomi/govc/flags"
)

type change struct {
	*flags.VirtualMachineFlag
	*flags.NetworkFlag
}

func init() {
	cli.Register("vm.network.change", &change{})
}

func (cmd *change) Register(f *flag.FlagSet) {}

func (cmd *change) Process() error { return nil }

func (cmd *change) Run(f *flag.FlagSet) error {
	vm, err := cmd.VirtualMachineFlag.VirtualMachine()
	if err != nil {
		return err
	}

	if vm == nil {
		return errors.New("please specify a vm")
	}

	name := f.Arg(0)

	if name == "" {
		return errors.New("please specify a device name")
	}

	// Set network if specified as extra argument.
	if f.NArg() > 1 {
		_ = cmd.NetworkFlag.Set(f.Arg(1))
	}

	devices, err := vm.Device()
	if err != nil {
		return err
	}

	net := devices.Find(name)

	if net == nil {
		return fmt.Errorf("device '%s' not found", name)
	}

	backing, err := cmd.NetworkFlag.Device()
	if err != nil {
		return err
	}

	net.GetVirtualDevice().Backing = backing.GetVirtualDevice().Backing

	return vm.EditDevice(net)
}


text:
.class Landroid/net/wifi/WifiStateMachine$ObtainingIpState;
.super Lcom/android/internal/util/State;
.source "WifiStateMachine.java"

# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Landroid/net/wifi/WifiStateMachine;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = "ObtainingIpState"
.end annotation

# instance fields
.field final synthetic this$0:Landroid/net/wifi/WifiStateMachine;

# direct methods
.method constructor <init>(Landroid/net/wifi/WifiStateMachine;)V
    .locals 0

    .prologue
    .line 5578
    iput-object p1, p0, Landroid/net/wifi/WifiStateMachine$ObtainingIpState;->this$0:Landroid/net/wifi/WifiStateMachine;

    invoke-direct {p0}, Lcom/android/internal/util/State;-><init>()V

    return-void
.end method

# virtual methods
.method public enter()V
    .locals 9

    .prologue
    const v8, 0x20010

    .line 5583
    iget-object v5, p0, Landroid/net/wifi/WifiStateMachine$ObtainingIpState;->this$0:Landroid/net/wifi/WifiStateMachine;

    # getter for: Landroid/net/wifi/WifiStateMachine;->mWifiConfigStore:Landroid/net/wifi/WifiConfigStore;
    invoke-static {v5}, Landroid/net/wifi/WifiStateMachine;->access$1300(Landroid/net/wifi/WifiStateMachine;)Landroid/net/wifi/WifiConfigStore;

    move-result-object v5

    iget-object v6, p0, Landroid/net/wifi/WifiStateMachine$ObtainingIpState;->this$0:Landroid/net/wifi/WifiStateMachine;

    # getter for: Landroid/net/wifi/WifiStateMachine;->mLastNetworkId:I
    invoke-static {v6}, Landroid/net/wifi/WifiStateMachine;->access$7100(Landroid/net/wifi/WifiStateMachine;)I

    move-result v6

    invoke-virtual {v5, v6}, Landroid/net/wifi/WifiConfigStore;->isUsingStaticIp(I)Z

    move-result v5

    if-nez v5, :cond_0

    .line 5584
    const-string v5, "WifiStateMachine"

    new-instance v6, Ljava/lang/StringBuilder;

    invoke-direct {v6}, Ljava/lang/StringBuilder;-><init>()V

    const-string v7, "Supplicant state is "

    invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v6

    iget-object v7, p0, Landroid/net/wifi/WifiStateMachine$ObtainingIpState;->this$0:Landroid/net/wifi/WifiStateMachine;

    # getter for: Landroid/net/wifi/WifiStateMachine;->mWifiInfo:Landroid/net/wifi/WifiInfo;
    invoke-static {v7}, Landroid/net/wifi/WifiStateMachine;->access$7300(Landroid/net/wifi/WifiStateMachine;)Landroid/net/wifi/WifiInfo;

    move-result-object v7

    invoke-virtual {v7}, Landroid/net/wifi/WifiInfo;->getSupplicantState()Landroid/net/wifi/SupplicantState;

    move-result-object v7

    invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v6

    const-string v7, " before start DHCP."

    invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v6

    invoke-virtual {v6}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v6

    invoke-static {v5, v6}, Lcom/mediatek/xlog/Xlog;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 5588
    :try_start_0
    iget-object v5, p0, Landroid/net/wifi/WifiStateMachine$ObtainingIpState;->this$0:Landroid/net/wifi/WifiStateMachine;

    # getter for: Landroid/net/wifi/WifiStateMachine;->mNwService:Landroid/os/INetworkManagementService;
    invoke-static {v5}, Landroid/net/wifi/WifiStateMachine;->access$500(Landroid/net/wifi/WifiStateMachine;)Landroid/os/INetworkManagementService;

    move-result-object v5

    iget-object v6, p0, Landroid/net/wifi/WifiStateMachine$ObtainingIpState;->this$0:Landroid/net/wifi/WifiStateMachine;

    # getter for: Landroid/net/wifi/WifiStateMachine;->mInterfaceName:Ljava/lang/String;
    invoke-static {v6}, Landroid/net/wifi/WifiStateMachine;->access$000(Landroid/net/wifi/WifiStateMachine;)Ljava/lang/String;

    move-result-object v6

    invoke-interface {v5, v6}, Landroid/os/INetworkManagementService;->enableIpv6(Ljava/lang/String;)V
    :try_end_0
    .catch Landroid/os/RemoteException; {:try_start_0 .. :try_end_0} :catch_0
    .catch Ljava/lang/IllegalStateException; {:try_start_0 .. :try_end_0} :catch_1

    .line 5596
    :goto_0
    iget-object v5, p0, Landroid/net/wifi/WifiStateMachine$ObtainingIpState;->this$0:Landroid/net/wifi/WifiStateMachine;

    invoke-virtual {v5}, Landroid/net/wifi/WifiStateMachine;->startDhcp()V

    .line 5624
    :goto_1
    return-void

    .line 5589
    :catch_0
    move-exception v4

    .line 5590
    .local v4, "re":Landroid/os/RemoteException;
    const-string v5, "WifiStateMachine"

    new-instance v6, Ljava/lang/StringBuilder;

    invoke-direct {v6}, Ljava/lang/StringBuilder;-><init>()V

    const-string v7, "Failed to enable IPv6: "

    invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v6

    invoke-virtual {v6, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v6

    invoke-virtual {v6}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v6

    invoke-static {v5, v6}, Lcom/mediatek/xlog/Xlog;->e(Ljava/lang/String;Ljava/lang/String;)I

    goto :goto_0

    .line 5591
    .end local v4    # "re":Landroid/os/RemoteException;
    :catch_1
    move-exception v2

    .line 5592
    .local v2, "e":Ljava/lang/IllegalStateException;
    const-string v5, "WifiStateMachine"

    new-instance v6, Ljava/lang/StringBuilder;

    invoke-direct {v6}, Ljava/lang/StringBuilder;-><init>()V

    const-string v7, "Failed to enable IPv6: "

    invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v6

    invoke-virtual {v6, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v6

    invoke-virtual {v6}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v6

    invoke-static {v5, v6}, Lcom/mediatek/xlog/Xlog;->e(Ljava/lang/String;Ljava/lang/String;)I

    goto :goto_0

    .line 5599
    .end local v2    # "e":Ljava/lang/IllegalStateException;
    :cond_0
    iget-object v5, p0, Landroid/net/wifi/WifiStateMachine$ObtainingIpState;->this$0:Landroid/net/wifi/WifiStateMachine;

    invoke-virtual {v5}, Landroid/net/wifi/WifiStateMachine;->stopDhcp()V

    .line 5600
    new-instance v1, Landroid/net/DhcpResults;

    iget-object v5, p0, Landroid/net/wifi/WifiStateMachine$ObtainingIpState;->this$0:Landroid/net/wifi/WifiStateMachine;

    # getter for: Landroid/net/wifi/WifiStateMachine;->mWifiConfigStore:Landroid/net/wifi/WifiConfigStore;
    invoke-static {v5}, Landroid/net/wifi/WifiStateMachine;->access$1300(Landroid/net/wifi/WifiStateMachine;)Landroid/net/wifi/WifiConfigStore;

    move-result-object v5

    iget-object v6, p0, Landroid/net/wifi/WifiStateMachine$ObtainingIpState;->this$0:Landroid/net/wifi/WifiStateMachine;

    # getter for: Landroid/net/wifi/WifiStateMachine;->mLastNetworkId:I
    invoke-static {v6}, Landroid/net/wifi/WifiStateMachine;->access$7100(Landroid/net/wifi/WifiStateMachine;)I

    move-result v6

    invoke-virtual {v5, v6}, Landroid/net/wifi/WifiConfigStore;->getLinkProperties(I)Landroid/net/LinkProperties;

    move-result-object v5

    invoke-direct {v1, v5}, Landroid/net/DhcpResults;-><init>(Landroid/net/LinkProperties;)V

    .line 5602
    .local v1, "dhcpResults":Landroid/net/DhcpResults;
    new-instance v3, Landroid/net/InterfaceConfiguration;

    invoke-direct {v3}, Landroid/net/InterfaceConfiguration;-><init>()V

    .line 5603
    .local v3, "ifcg":Landroid/net/InterfaceConfiguration;
    iget-object v5, v1, Landroid/net/DhcpResults;->linkProperties:Landroid/net/LinkProperties;

    invoke-virtual {v5}, Landroid/net/LinkProperties;->getLinkAddresses()Ljava/util/Collection;

    move-result-object v5

    invoke-interface {v5}, Ljava/util/Collection;->iterator()Ljava/util/Iterator;

    move-result-object v0

    .line 5605
    .local v0, "addrs":Ljava/util/Iterator;, "Ljava/util/Iterator<Landroid/net/LinkAddress;>;"
    invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z

    move-result v5

    if-nez v5, :cond_1

    .line 5606
    iget-object v5, p0, Landroid/net/wifi/WifiStateMachine$ObtainingIpState;->this$0:Landroid/net/wifi/WifiStateMachine;

    const-string v6, "Static IP lacks address"

    # invokes: Landroid/net/wifi/WifiStateMachine;->loge(Ljava/lang/String;)V
    invoke-static {v5, v6}, Landroid/net/wifi/WifiStateMachine;->access$25700(Landroid/net/wifi/WifiStateMachine;Ljava/lang/String;)V

    .line 5607
    iget-object v5, p0, Landroid/net/wifi/WifiStateMachine$ObtainingIpState;->this$0:Landroid/net/wifi/WifiStateMachine;

    invoke-virtual {v5, v8}, Landroid/net/wifi/WifiStateMachine;->sendMessage(I)V

    goto :goto_1

    .line 5609
    :cond_1
    invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v5

    check-cast v5, Landroid/net/LinkAddress;

    invoke-virtual {v3, v5}, Landroid/net/InterfaceConfiguration;->setLinkAddress(Landroid/net/LinkAddress;)V

    .line 5610
    invoke-virtual {v3}, Landroid/net/InterfaceConfiguration;->setInterfaceUp()V

    .line 5612
    :try_start_1
    iget-object v5, p0, Landroid/net/wifi/WifiStateMachine$ObtainingIpState;->this$0:Landroid/net/wifi/WifiStateMachine;

    # getter for: Landroid/net/wifi/WifiStateMachine;->mNwService:Landroid/os/INetworkManagementService;
    invoke-static {v5}, Landroid/net/wifi/WifiStateMachine;->access$500(Landroid/net/wifi/WifiStateMachine;)Landroid/os/INetworkManagementService;

    move-result-object v5

    iget-object v6, p0, Landroid/net/wifi/WifiStateMachine$ObtainingIpState;->this$0:Landroid/net/wifi/WifiStateMachine;

    # getter for: Landroid/net/wifi/WifiStateMachine;->mInterfaceName:Ljava/lang/String;
    invoke-static {v6}, Landroid/net/wifi/WifiStateMachine;->access$000(Landroid/net/wifi/WifiStateMachine;)Ljava/lang/String;

    move-result-object v6

    invoke-interface {v5, v6, v3}, Landroid/os/INetworkManagementService;->setInterfaceConfig(Ljava/lang/String;Landroid/net/InterfaceConfiguration;)V

    .line 5614
    iget-object v5, p0, Landroid/net/wifi/WifiStateMachine$ObtainingIpState;->this$0:Landroid/net/wifi/WifiStateMachine;

    const v6, 0x2000f

    invoke-virtual {v5, v6, v1}, Landroid/net/wifi/WifiStateMachine;->sendMessage(ILjava/lang/Object;)V
    :try_end_1
    .catch Landroid/os/RemoteException; {:try_start_1 .. :try_end_1} :catch_2
    .catch Ljava/lang/IllegalStateException; {:try_start_1 .. :try_end_1} :catch_3

    goto/16 :goto_1

    .line 5615
    :catch_2
    move-exception v4

    .line 5616
    .restart local v4    # "re":Landroid/os/RemoteException;
    iget-object v5, p0, Landroid/net/wifi/WifiStateMachine$ObtainingIpState;->this$0:Landroid/net/wifi/WifiStateMachine;

    new-instance v6, Ljava/lang/StringBuilder;

    invoke-direct {v6}, Ljava/lang/StringBuilder;-><init>()V

    const-string v7, "Static IP configuration failed: "

    invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v6

    invoke-virtual {v6, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v6

    invoke-virtual {v6}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v6

    # invokes: Landroid/net/wifi/WifiStateMachine;->loge(Ljava/lang/String;)V
    invoke-static {v5, v6}, Landroid/net/wifi/WifiStateMachine;->access$25800(Landroid/net/wifi/WifiStateMachine;Ljava/lang/String;)V

    .line 5617
    iget-object v5, p0, Landroid/net/wifi/WifiStateMachine$ObtainingIpState;->this$0:Landroid/net/wifi/WifiStateMachine;

    invoke-virtual {v5, v8}, Landroid/net/wifi/WifiStateMachine;->sendMessage(I)V

    goto/16 :goto_1

    .line 5618
    .end local v4    # "re":Landroid/os/RemoteException;
    :catch_3
    move-exception v2

    .line 5619
    .restart local v2    # "e":Ljava/lang/IllegalStateException;
    iget-object v5, p0, Landroid/net/wifi/WifiStateMachine$ObtainingIpState;->this$0:Landroid/net/wifi/WifiStateMachine;

    new-instance v6, Ljava/lang/StringBuilder;

    invoke-direct {v6}, Ljava/lang/StringBuilder;-><init>()V

    const-string v7, "Static IP configuration failed: "

    invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v6

    invoke-virtual {v6, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v6

    invoke-virtual {v6}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v6

    # invokes: Landroid/net/wifi/WifiStateMachine;->loge(Ljava/lang/String;)V
    invoke-static {v5, v6}, Landroid/net/wifi/WifiStateMachine;->access$25900(Landroid/net/wifi/WifiStateMachine;Ljava/lang/String;)V

    .line 5620
    iget-object v5, p0, Landroid/net/wifi/WifiStateMachine$ObtainingIpState;->this$0:Landroid/net/wifi/WifiStateMachine;

    invoke-virtual {v5, v8}, Landroid/net/wifi/WifiStateMachine;->sendMessage(I)V

    goto/16 :goto_1
.end method

.method public processMessage(Landroid/os/Message;)Z
    .locals 2
    .param p1, "message"    # Landroid/os/Message;

    .prologue
    .line 5628
    iget v0, p1, Landroid/os/Message;->what:I

    sparse-switch v0, :sswitch_data_0

    .line 5649
    const/4 v0, 0x0

    .line 5651
    :goto_0
    return v0

    .line 5630
    :sswitch_0
    iget-object v1, p0, Landroid/net/wifi/WifiStateMachine$ObtainingIpState;->this$0:Landroid/net/wifi/WifiStateMachine;

    iget-object v0, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    check-cast v0, Landroid/net/DhcpResults;

    # invokes: Landroid/net/wifi/WifiStateMachine;->handleSuccessfulIpConfiguration(Landroid/net/DhcpResults;)V
    invoke-static {v1, v0}, Landroid/net/wifi/WifiStateMachine;->access$23200(Landroid/net/wifi/WifiStateMachine;Landroid/net/DhcpResults;)V

    .line 5631
    iget-object v0, p0, Landroid/net/wifi/WifiStateMachine$ObtainingIpState;->this$0:Landroid/net/wifi/WifiStateMachine;

    iget-object v1, p0, Landroid/net/wifi/WifiStateMachine$ObtainingIpState;->this$0:Landroid/net/wifi/WifiStateMachine;

    # getter for: Landroid/net/wifi/WifiStateMachine;->mVerifyingLinkState:Lcom/android/internal/util/State;
    invoke-static {v1}, Landroid/net/wifi/WifiStateMachine;->access$23400(Landroid/net/wifi/WifiStateMachine;)Lcom/android/internal/util/State;

    move-result-object v1

    # invokes: Landroid/net/wifi/WifiStateMachine;->transitionTo(Lcom/android/internal/util/IState;)V
    invoke-static {v0, v1}, Landroid/net/wifi/WifiStateMachine;->access$26000(Landroid/net/wifi/WifiStateMachine;Lcom/android/internal/util/IState;)V

    .line 5651
    :goto_1
    const/4 v0, 0x1

    goto :goto_0

    .line 5634
    :sswitch_1
    iget-object v0, p0, Landroid/net/wifi/WifiStateMachine$ObtainingIpState;->this$0:Landroid/net/wifi/WifiStateMachine;

    # invokes: Landroid/net/wifi/WifiStateMachine;->handleFailedIpConfiguration()V
    invoke-static {v0}, Landroid/net/wifi/WifiStateMachine;->access$23600(Landroid/net/wifi/WifiStateMachine;)V

    .line 5635
    iget-object v0, p0, Landroid/net/wifi/WifiStateMachine$ObtainingIpState;->this$0:Landroid/net/wifi/WifiStateMachine;

    iget-object v1, p0, Landroid/net/wifi/WifiStateMachine$ObtainingIpState;->this$0:Landroid/net/wifi/WifiStateMachine;

    # getter for: Landroid/net/wifi/WifiStateMachine;->mDisconnectingState:Lcom/android/internal/util/State;
    invoke-static {v1}, Landroid/net/wifi/WifiStateMachine;->access$18700(Landroid/net/wifi/WifiStateMachine;)Lcom/android/internal/util/State;

    move-result-object v1

    # invokes: Landroid/net/wifi/WifiStateMachine;->transitionTo(Lcom/android/internal/util/IState;)V
    invoke-static {v0, v1}, Landroid/net/wifi/WifiStateMachine;->access$26100(Landroid/net/wifi/WifiStateMachine;Lcom/android/internal/util/IState;)V

    goto :goto_1

    .line 5638
    :sswitch_2
    iget-object v0, p0, Landroid/net/wifi/WifiStateMachine$ObtainingIpState;->this$0:Landroid/net/wifi/WifiStateMachine;

    # invokes: Landroid/net/wifi/WifiStateMachine;->deferMessage(Landroid/os/Message;)V
    invoke-static {v0, p1}, Landroid/net/wifi/WifiStateMachine;->access$26200(Landroid/net/wifi/WifiStateMachine;Landroid/os/Message;)V

    goto :goto_1

    .line 5642
    :sswitch_3
    iget-object v0, p0, Landroid/net/wifi/WifiStateMachine$ObtainingIpState;->this$0:Landroid/net/wifi/WifiStateMachine;

    # invokes: Landroid/net/wifi/WifiStateMachine;->deferMessage(Landroid/os/Message;)V
    invoke-static {v0, p1}, Landroid/net/wifi/WifiStateMachine;->access$26300(Landroid/net/wifi/WifiStateMachine;Landroid/os/Message;)V

    goto :goto_1

    .line 5646
    :sswitch_4
    iget-object v0, p0, Landroid/net/wifi/WifiStateMachine$ObtainingIpState;->this$0:Landroid/net/wifi/WifiStateMachine;

    # invokes: Landroid/net/wifi/WifiStateMachine;->deferMessage(Landroid/os/Message;)V
    invoke-static {v0, p1}, Landroid/net/wifi/WifiStateMachine;->access$26400(Landroid/net/wifi/WifiStateMachine;Landroid/os/Message;)V

    goto :goto_1

    .line 5628
    :sswitch_data_0
    .sparse-switch
        0x2000f -> :sswitch_0
        0x20010 -> :sswitch_1
        0x20047 -> :sswitch_4
        0x2004d -> :sswitch_3
        0x25007 -> :sswitch_2
    .end sparse-switch
.end method


text:
<repast.simphony.data2.engine.DataSetDescriptor>
  <name>Insect Species Count</name>
  <type>NON_AGGREGATE</type>
  <sourceType>plantsInsects.InsectParams</sourceType>
  <inclTick>true</inclTick>
  <inclBatchRun>false</inclBatchRun>
  <inclRandomSeed>false</inclRandomSeed>
  <scheduleParams>
    <start>1.0</start>
    <interval>1.0</interval>
    <priority>-Infinity</priority>
    <pType>LAST</pType>
    <duration>-1.0</duration>
    <frequency>REPEAT</frequency>
    <hashCode>-1301435273</hashCode>
  </scheduleParams>
  <atEnd>false</atEnd>
  <methodDataSources class="linked-hash-map">
    <entry>
      <string>InsectId</string>
      <repast.simphony.data2.engine.MethodDataSourceDefinition>
        <id>InsectId</id>
        <className>plantsInsects.InsectParams</className>
        <methodName>getInsectId</methodName>
      </repast.simphony.data2.engine.MethodDataSourceDefinition>
    </entry>
    <entry>
      <string>Count</string>
      <repast.simphony.data2.engine.MethodDataSourceDefinition>
        <id>Count</id>
        <className>plantsInsects.InsectParams</className>
        <methodName>getCount</methodName>
      </repast.simphony.data2.engine.MethodDataSourceDefinition>
    </entry>
  </methodDataSources>
  <countSources class="linked-hash-map"/>
  <customNADataSources class="linked-hash-map"/>
  <customAggDataSources class="linked-hash-map"/>
</repast.simphony.data2.engine.DataSetDescriptor>


text:
<?php

namespace BenBot\Tests;

use PHPUnit\Framework\TestCase;

/**
 * @covers BenBot\Commands\AsciiArt
 */
final class AsciiArtTest extends TestCase
{
    public function testTrueisTrue(): void
    {
        $true = true;
        $this->assertTrue($true);
        $this->assertEquals($true, true);
    }
}


text:
<?php

namespace Seeren\Database\Test\Statement;

use PHPUnit\Framework\TestCase;
use Seeren\Database\Entity\Clause\Clause;
use Seeren\Database\Manager\MySqlManager;
use Seeren\Database\Statement\MySql\CountMySqlStatement;
use Seeren\Database\Test\Mock\Product;

class CountMySqlStatementTest extends TestCase
{

    /**
     * @covers \Seeren\Database\Manager\MySqlManager::__construct
     * @covers \Seeren\Database\Entity\AbstractEntity::__construct
     * @covers \Seeren\Database\Entity\AbstractEntity::addClause
     * @covers \Seeren\Database\Entity\AbstractEntity::getClauses
     * @covers \Seeren\Database\Entity\AbstractEntity::getColumns
     * @covers \Seeren\Database\Entity\AbstractEntity::getName
     * @covers \Seeren\Database\Entity\Clause\Clause::__construct
     * @covers \Seeren\Database\Entity\Clause\Clause::getColumnName
     * @covers \Seeren\Database\Entity\Clause\Clause::getOperator
     * @covers \Seeren\Database\Entity\Clause\Clause::getType
     * @covers \Seeren\Database\Entity\Clause\Clause::getValue
     * @covers \Seeren\Database\Entity\Column\AbstractColumn::__construct
     * @covers \Seeren\Database\Entity\Column\AbstractColumn::getName
     * @covers \Seeren\Database\Entity\Column\RelationColumn::__construct
     * @covers \Seeren\Database\Entity\Column\StringColumn::getParam
     * @covers \Seeren\Database\Entity\Key\Key::__construct
     * @covers \Seeren\Database\Manager\Manager::__construct
     * @covers \Seeren\Database\Manager\Manager::getLayer
     * @covers \Seeren\Database\Statement\MySql\ClauseTrait::getClause
     * @covers \Seeren\Database\Statement\MySql\CountMySqlStatement::execute
     */
    public function testExecute()
    {
        $manager = new MySqlManager('sqlite::memory:', 'user', 'password');
        $product = new Product($manager);
        $manager->getLayer()->query('CREATE TABLE product (id INT(11) PRIMARY KEY, name CHAR (64))');
        $manager->getLayer()->query("INSERT INTO product (id, name) VALUES (1, 'Bike')");
        $product->addClause(new Clause(Clause::WHERE, 'name', Clause::OP_EQUAL, 'Bike'));
        $mock = new CountMySqlStatement();
        $this->assertEquals(1, $mock->execute($manager, $product));
    }

}


text:
set(MATURITIES EP RD RS) # ordered!
set(MATURITY_ "Exploratory") # not defined == Exploratory
set(MATURITY_EP "Exploratory")
set(MATURITY_RD "Research Development")
set(MATURITY_RS "Research Stable")


text:
Server side for AudioStation Steroids

# Service is now discontinued.

This repository contains only the source code of the backend of Audiostation steroids now but the server side of it has been now disconnected.

I recommend using any other of the many options available to scrobble your plays to last.fm. The source of the project ( both backend and frontend ) are available, so feel free to use it.


text:
using System.Collections.Generic;

using Amazon.Runtime.Internal.Transform;

namespace Amazon.Redshift.Model.Internal.MarshallTransformations
{
    /// <summary>
    ///    Result Unmarshaller for ModifyCluster operation
    /// </summary>
    internal class ModifyClusterResultUnmarshaller : IUnmarshaller<ModifyClusterResult, XmlUnmarshallerContext> {

        public ModifyClusterResult Unmarshall(XmlUnmarshallerContext context)
        {
            ModifyClusterResult result = new ModifyClusterResult();

            int originalDepth = context.CurrentDepth;
            int targetDepth = originalDepth + 1;
            if (context.IsStartOfDocument)
               targetDepth += 2;

            while (context.Read())
            {
                if (context.IsStartElement || context.IsAttribute)
                {
                    if (context.TestExpression("Cluster", targetDepth))
                    {
                        result.Cluster = ClusterUnmarshaller.GetInstance().Unmarshall(context);
                        continue;
                    }
                }
                else if (context.IsEndElement && context.CurrentDepth < originalDepth)
                {
                    return result;
                }
            }

            return result;
        }

        private static ModifyClusterResultUnmarshaller instance;

        public static ModifyClusterResultUnmarshaller GetInstance()
        {
            if (instance == null)
            {
               instance = new ModifyClusterResultUnmarshaller();
            }
            return instance;
        }
    }
}


text:
package scalaz.stream.mongodb.userguide

import org.specs2.Specification
import org.specs2.specification.Snippets
import com.mongodb.{DBCollection, WriteConcern, DBObject}
import scalaz.stream.processes._
import scalaz.stream.Process
import scalaz.stream.Process._
import java.io.File
import java.util.concurrent.ExecutorService
import scalaz.concurrent.Task

import scalaz.stream.mongodb.collectionSyntax._

class BasicUsageSpec extends Specification with Snippets {

  lazy val collection: DBCollection = ???
  lazy val users     : DBCollection = ???
  lazy val starWars     : DBCollection = ???
  lazy val collA     : DBCollection = ???
  lazy val collB     : DBCollection = ???

  lazy val document: DBObject = ???

  lazy val manyDocuments: Process[Task, DBObject] = ???

  def is = s2"""

${"Basic usage patterns".title}

Mongo Streams can be used in various ways. It is designed to inject actual dependency on collection as late as possible and provides
powerful DSL with combinator syntax to allow expressive, simple to use, readable functional way to interact with mongoDB.

Any operation on collection is implemented as `ChannelResult[A]`. `A` Type parameter may be either `DBObject` (when querying documents from
the collection), or `WriteResult` (when performing save, insert or update). Additional types depend on each operation on collection.

To start with mongo streams include the generic syntax import

`import scalaz.stream.mongodb.collectionSyntax._`

this will add to scope required implicits for Mongo Streams DSL.

### Create simple Queries

Now you can easily create simple queries. The basic directive to do so is findDocuments code:

${ snippet { query("key1" === "123") }}

This will return `Query` object that can be used to perfrom actual query on collection like below:.

${ snippet {

    def queryOnlyActive = query("active" === true)

    val allActiveUsers = (users through queryOnlyActive).runLog.run
  }}

Note you may apply process combinators on the query *BEFORE* the query is actually combined with connection:

${ snippet {

    def queryOnlyFirst50Active = query("active" === true) |> take(50)

    val first50ActiveUsers = (users through queryOnlyFirst50Active).runLog.run
  }}

In example above we also piped (|>) result to another process, which further transformed the information from mongoDB. This
essentially allows you to combine queries and build a library of your own queries that can be reused and then applied to collection
when necessary.

### Serializing and deserializing

Standard output of query operation from streams mongo is DBObject from java mongo driver.

${ "Show the example with pickling once we will have picliking library for streams ready" ! todo }

### Updating documents

Essentially there are two types of update operations that can be performed against mongo collection.

* Operations that are based on query to limit first documents that will be affected
* Operations that directly modify the collection

#### Query based updates

Query based updates are equivalents of mongoDB's _findAndModify_, _findAndRemove_ and _update_ commands.

This sets in all documents with name == luke  their ship property to falcon:

${ snippet { query("name" -> "luke") and update("ship" := "falcon") } }

This removes all documents with name == yoda from collection  (equivalent to remove in mongoDB):

${ snippet { query("name" -> "yoda") and remove } }

This modifies first document with name == yoda from collection (equivalent to findAndModify in mongodDB). In contrast with
update you may receive the original of the document updated

${ snippet { query("name" -> "yoda") and updateOne("ship" := None) } }
${ snippet { query("name" -> "yoda") and updateOne("ship" := None).returnNew(true) } }
${ snippet { query("name" -> "yoda").sort("last" Ascending) and updateOne(document) } }

This removes first document with name == yoda from collection (equivalent to findAndModify with remove == true in mongoDB. In contrast with
remove, you may receive the original document that was removed, if present.

${ snippet { query("name" -> "yoda") and removeOne } }
${ snippet { query("name" -> "yoda").sort("last" Ascending) and removeOne } }

#### Inserting documents

New documents may be inserted in the mongoDB collection with either save or insert.

${ snippet { insert(document) } }
${ snippet { save(document).ensure(WriteConcern.REPLICA_ACKNOWLEDGED) } }

### Combining actions together

All the actions in Mongo Streams can be combined together via process combinators.

#### For comprehensions

Mongo streams actions are monads, therefor they can be used in for comprehensions. Code below demonstrates one of
the possible usages where we first query all skywalkers and then we lookup all friends of the skywalkers:

${ snippet {
    def findAllSkyWalkersWithFriends =
      for {
        skywalker <- query("name" -> "luke")
        friend <- query("friendOf" -> skywalker.as[String]("name"))
      } yield (skywalker, friend)

    starWars through findAllSkyWalkersWithFriends

  }}

Now this is great if we only want to interact with mongo collections, but what if we want to query all skywalker's and then maybe read
their blogs from internet? We can still combine mongo stream with some process that fetches the blogs from the internet web site like shown below:

 ${ snippet {

    def findBlog(sw: DBObject): Process[Task, String] = ???

    def skyWalkersBlogs =
      query("name" -> "luke").flatMapProcess(sw=>
        findBlog(sw).map(blog => (sw,blog))
      )

    starWars through skyWalkersBlogs

  }}

Another example that you may often need is that you query data from one colection and with results you want to query other collection.
Of course, this can be also achieved (again, without knowing upfront on which mongo collections it will run):

${ snippet {

    def readFrom2(col1: DBCollection, col2: DBCollection): Process[Task, (DBObject, DBObject)] = {

      for {
        sw <- col1 through query("name" -> "luke")
        ship <- col2 through query("ship" -> sw.getAs[String]("like"))
      } yield (sw, ship)

    }

    // then later somewhere in your code or in test
    (readFrom2(collA, collB)): Process[Task, (DBObject, DBObject)]

  }}

#### Process combinators

Mongo Stream actions have similar combinators to the ones you will find on scalaz-stream processes. They allow you to reuse syntax from streams to
further combine the actions with processes and processes with actions

    ${ snippet {

    //queries first all lukes and then all chewaccas
    def lukeAndChewacca =
    query("name" -> "luke") ++ query("name" -> "chewacca")

    //saves all lukes to file
    def flatFileStore: Sink[Task, DBObject] = ???

    (starWars through lukeAndChewacca) to flatFileStore

    //or

    def exportLukeAndChewacca2File = lukeAndChewacca to flatFileStore

    starWars through exportLukeAndChewacca2File

  }}
 """

}


text:
This plugin makes it easy to generate [Querydsl](http://www.querydsl.com/)
classes within a project. Different annotation processors can be activated via the plugins
configuration. The plugin will not manage 3rd party libraries. It is still up to the end user
to add the required dependencies like Hibernate, Spring Data Mongo and the needed Querydsl libs.

Note: from release 1.0.6 this plugin requires Querydsl 4.x dependencies.

Please have a look at the plugins [change log](change_log.md).

#### Configuration

##### library
The artifact coordinates of the Querydsl annotation processor library.

Defaults to `com.querydsl:querydsl-apt:4.1.4`.

Note: this can only be a version supported by the current [Spring Data](http://projects.spring.io/spring-data/) project.

##### querydslSourcesDir
The project relative path to where the querydsl meta model sources are created in. It does not
matter which annotation processors are used, all meta model classes will be created within this
directory.

Defaults to `src/querydsl/java`.

##### jpa
Boolean flag to indicate if creation of meta model from JPA annotated sources
should be enabled.
If so, a java compile task that enables the `com.querydsl.apt.jpa.JPAAnnotationProcessor` will
be added and used within the project.

Defaults to `false`.

##### jdo
Boolean flag to indicate if creation of meta model from JDO annotated sources
should be enabled.
If so, a java compile task that enables the `com.querydsl.apt.jdo.JDOAnnotationProcessor` will
be added and used within the project.

Defaults to `false`.

##### hibernate
Boolean flag to indicate if creation of meta model from Hibernate annotated sources
should be enabled.
If so, a java compile task that enables the `com.querydsl.apt.hibernate.HibernateAnnotationProcessor` will
be added and used within the project.

Defaults to `false`.

##### morphia
Boolean flag to indicate if creation of meta model from Morphia annotated sources
should be enabled.
If so, a java compile task that enables the `com.querydsl.apt.morphia.MorphiaAnnotationProcessor`
will be added and used within the project.

Defaults to `false`.

##### roo
Boolean flag to indicate if creation of meta model from Spring Roo annotated sources
should be enabled.
If so, a java compile task that enables the `com.querydsl.apt.roo.RooAnnotationProcessor` will
be added and used within the project.

Defaults to `false`.

##### springDataMongo
Boolean flag to indicate if creation of meta model from Spring Data Mongo annotated sources
should be enabled.
If so, a java compile task that enables the `org.springframework.data.mongodb.repository.support.MongoAnnotationProcessor` will be added and used within the project.

Defaults to `false`.

##### querydslDefault
Boolean flag to indicate if creation of meta model from Querydsl annotated sources
should be enabled.
If so, a java compile task that enables the `com.querydsl.apt.QuerydslAnnotationProcessor` will
be added and used within the project.

Defaults to `false`.

##### aptOptions
List of APT options to customize QueryDSL generation

___Example___
```groovy
querydsl {
  aptOptions = ['querydsl.entityAccessors=true','querydsl.useFields=false']
}
```

Default to empty

[Check all available options from the QueryDSL documentation](http://www.querydsl.com/static/querydsl/4.1.4/reference/html/ch03s03.html)

#### Examples

__Mongo example__

```groovy
plugins {
  id "com.ewerk.gradle.plugins.querydsl" version "1.0.10"
}

repositories {
  mavenCentral()
}

dependencies {
  […]
  // make MongoDB annotation processor available at classpath
  compile "org.springframework.data:spring-data-mongodb:1.9.1.RELEASE"

  // use Querydsl against MongoDB
  compile "com.querydsl.apt:querydsl-mongodb:4.1.4"
  […]
}

querydsl {
  springDataMongo = true
}
```


text:
Ceibo
==========

PHP data access microframework


text:
package com.camunda.consulting.extendedSerializationProcess;

import java.util.logging.Logger;

import javax.inject.Named;

import org.camunda.bpm.engine.delegate.DelegateExecution;
import org.camunda.bpm.engine.variable.value.ObjectValue;

@Named
public class ComplexObjectLogger {

  private static final Logger log = Logger.getLogger(ComplexObjectLogger.class.getName());

  public void log(DelegateExecution execution) {
    ComplexDataObject complexObject = (ComplexDataObject) execution.getVariable("complexValue");
    log.info("Complex value: " + complexObject.getName() + " " + complexObject.getPrice() + " " + complexObject.getPurchaseDate());
    ObjectValue complexDataObjectAsJson = execution.getVariableLocalTyped("complexValue", false);
    log.info("serialized value: " + complexDataObjectAsJson.getValueSerialized());
  }
}


text:
module.exports = (router, modelName, actions, prefix, {
  beforeRestfulRoutes,
  afterRestfulRoutes
}) => {
  const modelUrl = `${prefix}/${modelName}`
  const itemUrl = `${prefix}/${modelName}/:id`

  router.get(modelUrl, ...beforeRestfulRoutes, actions.findAll, ...afterRestfulRoutes)
  router.get(itemUrl, ...beforeRestfulRoutes, actions.findById, ...afterRestfulRoutes)
  router.post(modelUrl, ...beforeRestfulRoutes, actions.create, ...afterRestfulRoutes)
  router.post(itemUrl, ...beforeRestfulRoutes, actions.updateById, ...afterRestfulRoutes)
  router.del(itemUrl, ...beforeRestfulRoutes, actions.deleteById, ...afterRestfulRoutes)
  router.put(modelUrl, ...beforeRestfulRoutes, actions.create, ...afterRestfulRoutes)
  router.put(itemUrl, ...beforeRestfulRoutes, actions.replaceById, ...afterRestfulRoutes)
  router.patch(itemUrl, ...beforeRestfulRoutes, actions.updateById, ...afterRestfulRoutes)
}


text:
var promisify = require('promisify-node')
var path = require('path')
var loaderUtils = require("loader-utils");
var selectorParser = require("./selector-parser")
var postcss = require('postcss')
var cssnano = require('cssnano')

var fs = promisify('fs')

module.exports = function (content) {
  var callback = this.async();
  var bemify = loaderUtils.stringifyRequest(this, require.resolve("./bemify.js"))
  var options = loaderUtils.parseQuery(this.query)
  var file = path.join(options.path, options.filename)
  var parseSelectors = selectorParser.bind({}, content)

  var createModule = function (bemifyParams) {
    var myContent = [
      'var bemify = require(' + bemify + ')',
      'var bem = bemify(' + JSON.stringify(bemifyParams) + ')',
      'module.exports = bem'
    ].join('\n')

    callback(null, myContent)
  }

  var saveOutput = function (css) {
    return fs.appendFile(file, css)
  }

  var processCss = function () {
    if (options.minify) {
      return postcss([cssnano])
        .process(content)
        .then(function (result) {
          return result.css
        })
    } else {
      return Promise.resolve(content)
    }
  }

  processCss()
    .then(saveOutput)
    .then(parseSelectors)
    .then(createModule)
}


text:
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:paddingBottom="@dimen/activity_vertical_margin"
    android:paddingLeft="@dimen/activity_horizontal_margin"
    android:paddingRight="@dimen/activity_horizontal_margin"
    android:paddingTop="@dimen/activity_vertical_margin"
    tools:context=".AddNewClaimNext2Activity" >

    <TextView
        android:id="@+id/addNewClaimNext2Text"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignParentLeft="true"
        android:layout_alignParentTop="true"
        android:layout_marginLeft="45dp"
        android:layout_marginTop="26dp"
        android:text="End Date (can be edited later):" />

    <DatePicker
        android:id="@+id/addNewClaimNext2Date"
        android:calendarViewShown="false"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignLeft="@+id/addNewClaimNext2Text"
        android:layout_below="@+id/addNewClaimNext2Text"
        android:layout_marginTop="30dp" />

    <Button
        android:id="@+id/addNewClaimNext2DoneButton"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignParentBottom="true"
        android:layout_centerHorizontal="true"
        android:layout_marginBottom="23dp"
        android:onClick="addClaimAction"
        android:text="Done" />

</RelativeLayout>


text:
package io.reflectoring.coderadar.graph.projectadministration.project.adapter;

import io.reflectoring.coderadar.graph.projectadministration.project.repository.ProjectRepository;
import io.reflectoring.coderadar.projectadministration.port.driven.project.ProjectStatusPort;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

@Service
@RequiredArgsConstructor
public class ProjectStatusAdapter implements ProjectStatusPort {
  private final ProjectRepository projectRepository;

  @Override
  public boolean isBeingProcessed(long projectId) {
    return projectRepository.isBeingProcessed(projectId);
  }

  @Override
  public void setBeingProcessed(long projectId, boolean isBeingProcessed) {
    projectRepository.setBeingProcessed(projectId, isBeingProcessed);
  }
}


text:
using System.Collections.Generic;

using Newtonsoft.Json;

using Pixiv.Attributes;

namespace Pixiv.Models
{
    public class NotificationSettings : ApiResponse
    {
#pragma warning disable CS8618 // Null 非許容フィールドは初期化されていません。null 許容として宣言することを検討してください。

        [ApiVersion]
        [MarkedAs("7.7.7")]
        [JsonProperty("device_registered")]
        public bool IsDeviceRegistered { get; set; }

        [ApiVersion]
        [MarkedAs("7.7.7")]
        [JsonProperty("types")]
        public IEnumerable<NotificationType> Types { get; set; }

#pragma warning restore CS8618 // Null 非許容フィールドは初期化されていません。null 許容として宣言することを検討してください。
    }
}


text:
YUI.add('series-combo-stacked', function (Y, NAME) {

/**
 * Provides functionality for creating a stacked combo series.
 *
 * @module charts
 * @submodule series-combo-stacked
 */
/**
 * The StackedComboSeries class renders a combination of lines, plots and area fills in a single series. Series
 * are stacked along the value axis to indicate each series contribution to a cumulative total. Each
 * series type has a corresponding boolean attribute indicating if it is rendered. By default, all three types are
 * rendered.
 *
 * @class StackedComboSeries
 * @extends ComboSeries
 * @uses StackingUtil
 * @constructor
 * @param {Object} config (optional) Configuration parameters.
 * @submodule series-combo-stacked
 */
Y.StackedComboSeries = Y.Base.create("stackedComboSeries", Y.ComboSeries, [Y.StackingUtil], {
    /**
     * @protected
     *
     * Calculates the coordinates for the series. Overrides base implementation.
     *
     * @method setAreaData
     */
    setAreaData: function()
    {
        Y.StackedComboSeries.superclass.setAreaData.apply(this);
        this._stackCoordinates.apply(this);
    },

    /**
     * @protected
     *
     * Draws the series.
     *
     * @method drawSeries
     */
    drawSeries: function()
    {
        if(this.get("showAreaFill"))
        {
            this.drawFill.apply(this, this._getStackedClosingPoints());
        }
        if(this.get("showLines"))
        {
            this.drawLines();
        }
        if(this.get("showMarkers"))
        {
            this.drawPlots();
        }
    }

}, {
    ATTRS : {
        /**
         * Read-only attribute indicating the type of series.
         *
         * @attribute type
         * @type String
         * @default stackedCombo
         */
        type: {
            value: "stackedCombo"
        },

        /**
         * Indicates whether a fill is displayed.
         *
         * @attribute showAreaFill
         * @type Boolean
         * @default true
         */
        showAreaFill: {
            value: true
        }
    }
});

}, '3.18.1', {"requires": ["series-stacked", "series-combo"]});


text:
libscrypt/.libs/libscrypt-1.1.6.so:
	cd libscrypt && ./configure && make


text:
require "sequel"
require "rom"

require "rom/sql/version"
require "rom/sql/errors"
require "rom/sql/plugins"
require "rom/sql/relation"
require "rom/sql/gateway"
require "rom/sql/migration"

if defined?(Rails)
  require "rom/sql/support/active_support_notifications"
  require "rom/sql/support/rails_log_subscriber"
end

ROM.register_adapter(:sql, ROM::SQL)


text:
package org.apache.spark.sql.execution.datasources.v2

import org.apache.spark.rdd.RDD
import org.apache.spark.sql.catalyst.InternalRow
import org.apache.spark.sql.catalyst.expressions._
import org.apache.spark.sql.catalyst.plans.physical
import org.apache.spark.sql.catalyst.plans.physical.SinglePartition
import org.apache.spark.sql.execution.{ColumnarBatchScan, LeafExecNode, WholeStageCodegenExec}
import org.apache.spark.sql.execution.streaming.continuous._
import org.apache.spark.sql.sources.v2.DataSourceV2
import org.apache.spark.sql.sources.v2.reader._
import org.apache.spark.sql.sources.v2.reader.streaming.{ContinuousPartitionReaderFactory, ContinuousReadSupport, MicroBatchReadSupport}

/**
 * Physical plan node for scanning data from a data source.
 */
// TODO: micro-batch should be handled by `DataSourceV2ScanExec`, after we finish the API refactor
// completely.
case class DataSourceV2StreamingScanExec(
    output: Seq[AttributeReference],
    @transient source: DataSourceV2,
    @transient options: Map[String, String],
    @transient pushedFilters: Seq[Expression],
    @transient readSupport: ReadSupport,
    @transient scanConfig: ScanConfig)
  extends LeafExecNode with DataSourceV2StringFormat with ColumnarBatchScan {

  override def simpleString: String = "ScanV2 " + metadataString

  // TODO: unify the equal/hashCode implementation for all data source v2 query plans.
  override def equals(other: Any): Boolean = other match {
    case other: DataSourceV2StreamingScanExec =>
      output == other.output && readSupport.getClass == other.readSupport.getClass &&
        options == other.options
    case _ => false
  }

  override def hashCode(): Int = {
    Seq(output, source, options).hashCode()
  }

  override def outputPartitioning: physical.Partitioning = readSupport match {
    case _ if partitions.length == 1 =>
      SinglePartition

    case s: OldSupportsReportPartitioning =>
      new DataSourcePartitioning(
        s.outputPartitioning(scanConfig), AttributeMap(output.map(a => a -> a.name)))

    case _ => super.outputPartitioning
  }

  private lazy val partitions: Seq[InputPartition] = readSupport.planInputPartitions(scanConfig)

  private lazy val readerFactory = readSupport match {
    case r: MicroBatchReadSupport => r.createReaderFactory(scanConfig)
    case r: ContinuousReadSupport => r.createContinuousReaderFactory(scanConfig)
    case _ => throw new IllegalStateException("unknown read support: " + readSupport)
  }

  override val supportsBatch: Boolean = {
    require(partitions.forall(readerFactory.supportColumnarReads) ||
      !partitions.exists(readerFactory.supportColumnarReads),
      "Cannot mix row-based and columnar input partitions.")

    partitions.exists(readerFactory.supportColumnarReads)
  }

  private lazy val inputRDD: RDD[InternalRow] = readSupport match {
    case _: ContinuousReadSupport =>
      assert(!supportsBatch,
        "continuous stream reader does not support columnar read yet.")
      EpochCoordinatorRef.get(
          sparkContext.getLocalProperty(ContinuousExecution.EPOCH_COORDINATOR_ID_KEY),
          sparkContext.env)
        .askSync[Unit](SetReaderPartitions(partitions.size))
      new ContinuousDataSourceRDD(
        sparkContext,
        sqlContext.conf.continuousStreamingExecutorQueueSize,
        sqlContext.conf.continuousStreamingExecutorPollIntervalMs,
        partitions,
        schema,
        readerFactory.asInstanceOf[ContinuousPartitionReaderFactory])

    case _ =>
      new DataSourceRDD(
        sparkContext, partitions, readerFactory.asInstanceOf[PartitionReaderFactory], supportsBatch)
  }

  override def inputRDDs(): Seq[RDD[InternalRow]] = Seq(inputRDD)

  override protected def doExecute(): RDD[InternalRow] = {
    if (supportsBatch) {
      WholeStageCodegenExec(this)(codegenStageId = 0).execute()
    } else {
      val numOutputRows = longMetric("numOutputRows")
      inputRDD.map { r =>
        numOutputRows += 1
        r
      }
    }
  }
}


text:
package com.palantir.verification.server;

import com.palantir.conjure.java.client.jaxrs.JaxRsClient;
import com.palantir.conjure.java.okhttp.NoOpHostEventsSink;
import com.palantir.conjure.verification.client.VerificationClientService;

public final class VerificationClients {
    private VerificationClients() {}

    public static VerificationClientService verificationClientService(VerificationClientRule verificationClientRule) {
        return JaxRsClient.create(
                VerificationClientService.class,
                verificationClientRule.getClientConfiguration().userAgent().orElseThrow(IllegalArgumentException::new),
                NoOpHostEventsSink.INSTANCE,
                verificationClientRule.getClientConfiguration());
    }
}


text:
;(function($) {
// Add button to show password in input field
$.fn.showPassword = function(options) {
  var opts = $.extend({}, $.fn.showPassword.defaults, options);

  return this.each(function() {
    var $this = $(this),
        elPosition = $this.position(),
        elWidth = $this.outerWidth(),
        elHeight = $this.outerHeight(),
        $parent = $this.parent(),
        parentHeight = $parent.height();

    // Support for the Metadata Plugin.
    var o = $.meta ? $.extend({}, opts, $this.data()) : opts;

    $parent.height(parentHeight);

    //Create the link
    $('<a/>', {
      href: '#',
      'class': o.linkClass,
      click: function(e) {
        var $showPassInput = $parent.find('.'+o.showPasswordInputClass);
        if($this.css('display') === 'none') { //If the regular input is hidden
          $this.val($showPassInput.val()).show();
          $showPassInput.hide();
        } else { //If the showing password input is hidden
          $showPassInput.val($this.val()).show();
          $this.hide();
        }
        e.preventDefault();
      },
      css: {
        left: elPosition.left + elWidth,
        top: elPosition.top + elHeight
      },
      text: o.linkText
    }).appendTo($parent);

    var $toggleAnchor = $parent.find('.'+o.linkClass),
        toggleAnchorWidth = $toggleAnchor.outerWidth(),
        toggleAnchorLeft = parseInt($toggleAnchor.css('left'), 10),
        toggleAnchorHeight = $toggleAnchor.outerHeight(),
        toggleAnchorTop = parseInt($toggleAnchor.css('top'), 10);

    $toggleAnchor.css({
      'left': (toggleAnchorLeft - toggleAnchorWidth - o.linkRightOffset),
      'top': (toggleAnchorTop - toggleAnchorHeight - o.linkTopOffset)
    });

    //Create the input to switch
    $('<input/>', {
      'class': o.showPasswordInputClass,
      css: {
        display: 'none',
        left: elPosition.left,
        top: elPosition.top
      },
      type: 'text'
    }).appendTo($parent);

  });
};

// default options
$.fn.showPassword.defaults = {
  linkClass: 'show-password-link',
  linkText: 'Ïîêàçàòü',
  showPasswordInputClass: 'password-showing',
  linkRightOffset: 0,
  linkTopOffset: 0
};

})(jQuery);


text:
apt-get update && \
apt-get install -y --no-install-recommends \
    git \
    zip \
    curl \
    unzip \
    wget

curl --silent --show-error https://getcomposer.org/installer | php
php composer.phar self-update

echo "---Installing dependencies ---"
echo "Removing cache/filesystem-adapter for PHP 5.4"
bash -c "if [[ $(php -r 'echo PHP_VERSION;') =~ \"5.4\" ]]; then php composer.phar remove --dev cache/filesystem-adapter; fi"
echo ${composerargs}
php $(dirname $0)/retry.php "php composer.phar update $composerargs"

echo "---Running unit tests ---"
vendor/bin/phpunit


text:
package com.github.alex.zuy.boilerplate.codegeneration;

import com.github.alex.zuy.boilerplate.sourcemodel.TypeDefinition;

public interface SourceFilePublisher {

    void publish(TypeDefinition typeDefinition);

    final class SourceFilePublishingException extends RuntimeException {

        public SourceFilePublishingException(Throwable throwable) {
            super(throwable);
        }
    }
}


text:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<title>NanoUtils (grpc-nano 0.1.0-SNAPSHOT API)</title>
<meta name="date" content="2015-03-23">
<link rel="stylesheet" type="text/css" href="../../../stylesheet.css" title="Style">

JavaScript is disabled on your browser.

Skip navigation links

Package

Class

Tree

Deprecated

Index

Help

Prev Class

Next Class

Frames

No Frames

All Classes

Summary:

Nested |

Field |

Constr |

Method

Detail:

Field |

Constr |

Method

io.grpc.nano

Class NanoUtils

java.lang.Object

io.grpc.nano.NanoUtils

public class NanoUtils
extends java.lang.Object

Utility methods for using nano proto with grpc.

Method Summary

All Methods Static Methods Concrete Methods

Modifier and Type
Method and Description

static <T extends com.google.protobuf.nano.MessageNano>
io.grpc.Marshaller<T>
marshaller(Parser<T> parser)

Adapt parser to a Marshaller.

Methods inherited from class java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Method Detail

marshaller

public static <T extends com.google.protobuf.nano.MessageNano> io.grpc.Marshaller<T> marshaller(Parser<T> parser)

Adapt parser to a Marshaller.

Skip navigation links

Package

Class

Tree

Deprecated

Index

Help

Prev Class

Next Class

Frames

No Frames

All Classes

Summary:

Nested |

Field |

Constr |

Method

Detail:

Field |

Constr |

Method


text:
package com.pinterest.deployservice.bean;

/**
 * GROUP_BY_GROUP:
 *      randomly choose X num of hosts from one group, and ONLY deploy this group,
 *      when all the hosts in this group finish, proceed to the next group
 * ALL_GROUPS_IN_PARALLEL:
 *      randomly choose X num of hosts from EACH group, and deploy at the same time
 */
public enum  DeployConstraintType {
    GROUP_BY_GROUP,
    ALL_GROUPS_IN_PARALLEL
}


text:
<?php

final class ArcanistLogMessage
  extends Phobject {

  private $label;
  private $message;
  private $color;
  private $channel;

  public function setLabel($label) {
    $this->label = $label;
    return $this;
  }

  public function getLabel() {
    return $this->label;
  }

  public function setColor($color) {
    $this->color = $color;
    return $this;
  }

  public function getColor() {
    return $this->color;
  }

  public function setChannel($channel) {
    $this->channel = $channel;
    return $this;
  }

  public function getChannel() {
    return $this->channel;
  }

  public function setMessage($message) {
    $this->message = $message;
    return $this;
  }

  public function getMessage() {
    return $this->message;
  }

}


text:
/**
 * generated by Xtext 2.9.2
 */
package xmodelica.modelica;

import org.eclipse.emf.common.util.EList;

/**
 *
 * A representation of the model object 'Class Modification'.
 *
 *
 *

 * The following features are supported:
 *

 *

 *
{@link xmodelica.modelica.ClassModification#getArgs Args}

 *

 *
 * @see xmodelica.modelica.ModelicaPackage#getClassModification()
 * @model
 * @generated
 */
public interface ClassModification extends Annotation
{
  /**
   * Returns the value of the 'Args' containment reference list.
   * The list contents are of type {@link xmodelica.modelica.ArgumentList}.
   *
   *

   * If the meaning of the 'Args' containment reference list isn't clear,
   * there really should be more of a description here...
   *

   *
   * @return the value of the 'Args' containment reference list.
   * @see xmodelica.modelica.ModelicaPackage#getClassModification_Args()
   * @model containment="true"
   * @generated
   */
  EList<ArgumentList> getArgs();

} // ClassModification


text:
<?xml version="1.0" encoding="UTF-8"?>

<entity-mappings xmlns="http://java.sun.com/xml/ns/persistence/orm"
                 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                 xsi:schemaLocation="http://java.sun.com/xml/ns/persistence/orm orm_2_0.xsd"
                 version="2.0"
        >
    <!-- foo.bar should get ignored since class is fully qualified -->
    <package>foo.bar</package>
    <entity class="org.hibernate.jpamodelgen.test.mixedmode.RentalCar">
        <attributes>
            <many-to-one name="company" access="FIELD"/>
        </attributes>
    </entity>
</entity-mappings>


text:
<!DOCTYPE html>

<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no,
		minimum-scale=1.0, maximum-scale=1.0">
<link rel="stylesheet" type="text/css" href="jsmeter-test.css">

<title>JSMeter test</title>