text:
  <title>Grassroot - Record an action</title>

  <meta name="_csrf" th:content="${_csrf.token}"/>
  <meta name="_csrf_header" th:content="${_csrf.headerName}"/>

Record an action

Record a decision and to-do for the group

        <form th:object="${actionTodo}" th:action="@{/todo/record}" method="post" class="form-vertical">
          <input type="hidden" th:field="*{parentEntityType}" />

            Group:

              <select th:unless="${parentSpecified}" th:field="*{parentUid}" id="groupSelector" class="form-control input-lg">
                <option th:each="group: ${possibleGroups}"
                        th:value="${group.Uid}"
                        th:text="${group.getName('')}"
                        th:attr="data-mins=#{web.meeting.reminder.group.__${group.reminderMinutes}__}">Groupname</option>
              </select>
              <input type="hidden" th:value="${userUid}" id="userUid" />

              <input class="form-control input-lg" readonly="true" th:placeholder="${parent.name}" id="group" />
              <input type="hidden" th:field="*{parentUid}" th:value="${parent.uid}" />

            Title:
            <input th:field="*{message}" type="text" class="form-control input-lg" maxlength="35" data-toggle="tooltip"
                     title="Description may not be longer than 35 characters." id="name"
                   placeholder="A short summary of the action or decision to record" />

            Deadline:

              <input th:field="*{actionByDate}" type="text" class="form-control input-lg" />

            Notes? Please enter any further description:
            <textarea class="form-control input-lg" rows="1" maxlength="250"
                      placeholder="This will not be sent with the SMS, but will be seen by app and web users"></textarea>

            Send a reminder:
            <select th:field="*{reminderType}" class="form-control input-lg" id="reminderType">
              <option th:if="${parentSpecified}" value="GROUP_CONFIGURED" selected="true">
                Group default (X ahead)
              </option>
              <option th:unless="${parentSpecified}" value="GROUP_CONFIGURED" id="groupOption">
                Group default (X ahead)
              </option>
              <option value="CUSTOM">Set custom</option>
            </select>

              <input type="radio" th:field="*{reminderMinutes}" value="-60"/>On due date
              <input type="radio" th:field="*{reminderMinutes}" value="-1440"/>One day before
              <input type="radio" th:field="*{reminderMinutes}" value="-2880"/>Two days before
              <lable class="radio-inline"><input type="radio" th:field="*{reminderMinutes}" value="-10080"/>One week before</lable>

            Who has responsibility for completing the action?

              <input type="radio" th:field="*{assignmentType}" value="group" id="wholeGroup" />The whole group
              <input type="radio" th:field="*{assignmentType}" value="members" id="pickMembers" />Pick members

Number of members picked

              Cancel
              Cancel
              <button type="submit" class="btn btn-primary btn-lg">Record</button>

                  <button type="button" class="close" data-dismiss="modal" aria-label="Close">×</button>

Assign members to action

                        <input type="checkbox" th:field="*{memberPicker.listOfMembers[__${iterStat.index}__].selected}" class="pull-right"/>
                        <input type="hidden" th:field="*{memberPicker.listOfMembers[__${iterStat.index}__].userUid}" />
                        Name

                  <button type="button" class="btn btn-default" data-dismiss="modal">Done</button>

        </form>


text:
module.exports = function(grunt) {
  'use strict';

  // Project configuration.
  grunt.initConfig({
    test_vars: {
      name: 'grunt-contrib-compress',
      version: '0.1.0'
    },

    lint: {
      all: ['grunt.js', 'tasks/*.js', '<config:nodeunit.tasks>']
    },

    jshint: {
      options: {
        curly: true,
        eqeqeq: true,
        immed: true,
        latedef: true,
        newcap: true,
        noarg: true,
        sub: true,
        undef: true,
        boss: true,
        eqnull: true,
        node: true,
        es5: true
      }
    },

    // Before generating any new files, remove any previously-created files.
    clean: {
      test: ['tmp']
    },

    files: {
      compress_test: 'test/fixtures/folder_one'
    },

    // Configuration to be run (and then tested).
    compress: {
      main: {
        files: {
          'tmp/compress_test_files.zip': ['test/fixtures/*'],
          'tmp/compress_test_v<%= test_vars.version %>.zip': ['test/fixtures/**'],
          'tmp/compress_test_files_template.zip': ['<%= files.compress_test %>/**'],

          'tmp/compress_test_files.tar': ['test/fixtures/*'],
          'tmp/compress_test_v<%= test_vars.version %>.tar': ['test/fixtures/**'],
          'tmp/compress_test_files_template.tar': ['<%= files.compress_test %>/**'],

          'tmp/compress_test_files.tgz': ['test/fixtures/*'],
          'tmp/compress_test_v<%= test_vars.version %>.tgz': ['test/fixtures/**'],
          'tmp/compress_test_files_template.tgz': ['<%= files.compress_test %>/**'],

          'tmp/compress_test_file.gz': ['test/fixtures/test.js'],
          'tmp/compress_test_file2.gz': ['test/fixtures/folder_one/one.js']
        }
      },

      flatten: {
        options: {
          flatten: true
        },
        files: {
          'tmp/compress_test_flatten.zip': ['test/fixtures/**'],
          'tmp/compress_test_flatten.tar': ['test/fixtures/**'],
          'tmp/compress_test_flatten.tgz': ['test/fixtures/**']
        }
      },

      rootdir: {
        options: {
          rootDir: 'abc123'
        },
        files: {
          'tmp/compress_test_rootdir.zip': ['test/fixtures/**'],
          'tmp/compress_test_rootdir.tar': ['test/fixtures/**'],
          'tmp/compress_test_rootdir.tgz': ['test/fixtures/**']
        }
      }
    },

    // Unit tests.
    nodeunit: {
      tasks: ['test/*_test.js']
    }
  });

  // Actually load this plugin's task(s).
  grunt.loadTasks('tasks');

  // The clean plugin helps in testing.
  grunt.loadNpmTasks('grunt-contrib-clean');

  // Whenever the "test" task is run, first clean the "tmp" dir, then run this
  // plugin's task(s), then test the result.
  grunt.renameTask('test', 'nodeunit');
  grunt.registerTask('test', 'clean compress nodeunit');

  // By default, lint and run all tests.
  grunt.registerTask('default', 'lint test');
};

redpajama_set_name: RedPajamaGithub


text:
package com.planet_ink.coffee_mud.Abilities.Spells;
import com.planet_ink.coffee_mud.core.interfaces.*;
import com.planet_ink.coffee_mud.core.*;
import com.planet_ink.coffee_mud.core.collections.*;
import com.planet_ink.coffee_mud.Abilities.interfaces.*;
import com.planet_ink.coffee_mud.Areas.interfaces.*;
import com.planet_ink.coffee_mud.Behaviors.interfaces.*;
import com.planet_ink.coffee_mud.CharClasses.interfaces.*;
import com.planet_ink.coffee_mud.Commands.interfaces.*;
import com.planet_ink.coffee_mud.Common.interfaces.*;
import com.planet_ink.coffee_mud.Exits.interfaces.*;
import com.planet_ink.coffee_mud.Items.interfaces.*;
import com.planet_ink.coffee_mud.Libraries.interfaces.*;
import com.planet_ink.coffee_mud.Locales.interfaces.*;
import com.planet_ink.coffee_mud.MOBS.interfaces.*;
import com.planet_ink.coffee_mud.Races.interfaces.*;

import java.util.*;

@SuppressWarnings("rawtypes")
public class Spell_Dream extends Spell
{
	@Override public String ID() { return "Spell_Dream"; }
	private final static String localizedName = CMLib.lang().L("Dream");
	@Override public String name() { return localizedName; }
	@Override public int classificationCode(){ return Ability.ACODE_SPELL|Ability.DOMAIN_ILLUSION;}
	@Override public int abstractQuality(){ return Ability.QUALITY_INDIFFERENT;}

	@Override
	public boolean invoke(MOB mob, Vector commands, Physical givenTarget, boolean auto, int asLevel)
	{

		if(commands.size()<1)
		{
			mob.tell(L("Invoke a dream about what?"));
			return false;
		}
		if(!super.invoke(mob,commands,givenTarget,auto,asLevel))
			return false;

		final boolean success=proficiencyCheck(mob,0,auto);

		if(success)
		{
			CMMsg msg=CMClass.getMsg(mob,null,this,verbalCastCode(mob,null,auto),L("^S<S-NAME> invoke(s) a dreamy spell.^?"));
			if(mob.location().okMessage(mob,msg))
			{
				mob.location().send(mob,msg);
				try
				{
					for(final Enumeration r=CMLib.map().rooms();r.hasMoreElements();)
					{
						final Room R=(Room)r.nextElement();
						if(CMLib.flags().canAccess(mob,R))
						for(int i=0;i<R.numInhabitants();i++)
						{
							final MOB inhab=R.fetchInhabitant(i);
							if((inhab!=null)&&(CMLib.flags().isSleeping(inhab)))
							{
								msg=CMClass.getMsg(mob,inhab,this,verbalCastCode(mob,inhab,auto),null);
								if(R.okMessage(mob,msg))
									inhab.tell(L("You dream @x1.",CMParms.combine(commands,0)));
							}
						}
					}
				}catch(final NoSuchElementException nse){}
			}

		}
		else
			beneficialVisualFizzle(mob,null,L("<S-NAME> attempt(s) to invoke a dream, but fizzle(s) the spell."));

		// return whether it worked
		return success;
	}
}


text:
int main()
{
	ge::runtime r;

	r.add_subsystem<ge::actor_ticker_subsystem>({});
	r.add_subsystem<ge::input_subsystem>({});

	r.add_subsystem<ge::sdl_subsystem>({
		"hello ge!",  // title of the window
		{720, 1280},  // the size of the window
		{},		// location on the screen, {} for OS defined (it's a boost::optional<glm::uvec2>)
		false,  // fullscreen or not
		true	// if the window should be decorated (border etc).
	});

	while (r.tick())
		;
}


text:
import { ModuleWithProviders } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';

import { SearchComponent } from './search.component';

export const searchRoutes: Routes = [
  { path: '', component: SearchComponent }
];

export const searchRouting: ModuleWithProviders = RouterModule.forChild(searchRoutes);


text:
from __future__ import unicode_literals

from django.core.management import call_command
from django.db import migrations

def load_fixture(apps, schema_editor):
    call_command(
        'loaddata',
        'initial_sourcetypes',
        app_label='footnotes'
    )

class Migration(migrations.Migration):

    dependencies = [
        ('footnotes', '0002_add_unique'),
    ]

    operations = [
        migrations.RunPython(load_fixture, reverse_code=migrations.RunPython.noop),
    ]


text:
package com.twitter.elephantbird.pig.load;

import java.io.IOException;

import com.twitter.elephantbird.mapreduce.input.RCFileThriftTupleInputFormat;
import com.twitter.elephantbird.util.HadoopCompat;
import org.apache.hadoop.mapreduce.InputFormat;
import org.apache.hadoop.mapreduce.Job;
import org.apache.hadoop.mapreduce.RecordReader;
import org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.PigSplit;
import org.apache.pig.data.Tuple;
import org.apache.thrift.TBase;
import org.apache.thrift.TException;

import com.twitter.elephantbird.util.RCFileUtil;

/**
 * Pig loader for Thrift object stored in RCFiles.
 */
public class RCFileThriftPigLoader extends ThriftPigLoader<TBase<?,?>> {

  private RCFileThriftTupleInputFormat.TupleReader thriftReader;

  /**
   * @param thriftClassName fully qualified name of the thrift class
   */
  public RCFileThriftPigLoader(String thriftClassName) {
    super(thriftClassName);
  }

  @Override @SuppressWarnings("unchecked")
  public InputFormat getInputFormat() throws IOException {
    return new RCFileThriftTupleInputFormat(typeRef);
  }

  @Override
  public Tuple getNext() throws IOException {
    if (thriftReader.isReadingUnknonwsColumn()) {
      //do normal bytes -> thrift -> tuple
      return super.getNext();
    }

    // otherwise bytes -> tuple
    try {
      if (thriftReader.nextKeyValue()) {
        return thriftReader.getCurrentTupleValue();
      }
    } catch (TException e) {
      throw new IOException(e);
    } catch (InterruptedException e) {
      throw new IOException(e);
    }

    return null;
  }

  @Override @SuppressWarnings("unchecked")
  public void prepareToRead(RecordReader reader, PigSplit split) {
    super.prepareToRead(reader, split);
    thriftReader = (RCFileThriftTupleInputFormat.TupleReader) reader;
  }

  @Override
  public void setLocation(String location, Job job) throws IOException {
    super.setLocation(location, job);
    RCFileUtil.setRequiredFieldConf(HadoopCompat.getConfiguration(job),
                                    requiredFieldList);
  }

}


text:
package org.broad.igv.gs.dm;

import org.broad.igv.AbstractHeadlessTest;
import org.broad.igv.prefs.Constants;
import org.broad.igv.gs.GSTestAuthenticator;
import org.broad.igv.gs.GSUtils;
import org.broad.igv.prefs.PreferencesManager;
import org.broad.igv.track.Track;
import org.broad.igv.track.TrackLoader;
import org.broad.igv.util.HttpUtils;
import org.broad.igv.util.ResourceLocator;
import org.broad.igv.util.TestUtils;
import org.junit.*;
import org.junit.rules.TestRule;
import org.junit.rules.Timeout;

import java.io.File;
import java.io.IOException;
import java.net.Authenticator;
import java.net.MalformedURLException;
import java.net.URL;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import static junit.framework.Assert.*;

/**
 * @author Jim Robinson
 * @date 1/16/12
 */

public class DMUtilsTest extends AbstractHeadlessTest{

    @Rule
    public TestRule testTimeout = new Timeout((int) 30e4);

    private static final String IGV_TEST_DIR = "/Home/igvtest/";
    private URL defaultURL;
    private URL personaldirectoryURL;
    private static URL fileURL;

    private static String delDirName = "testdir_deleteme";
    private static String fullPath = IGV_TEST_DIR + delDirName;

    @Before
    public void setUp() throws Exception{
        super.setUp();
        GSUtils.logout();
        //This is pretty dumb. The reason is that initializing HttpUtils sets the authenticator,
        //and we need to overwrite it in initAuth. It's not actually important which method we call,
        //as long as HttpUtils is initialized so it doesn't get initialized later
        HttpUtils.getInstance().resetAuthenticator();

        Authenticator.setDefault(new GSTestAuthenticator());

        try {
            String defaultURLStr = PreferencesManager.getPreferences().get(Constants.GENOME_SPACE_DM_SERVER);
            defaultURL = new URL(defaultURLStr);
            personaldirectoryURL = new URL(defaultURLStr + DMUtils.PERSONAL_DIRECTORY);
            fileURL = new URL(defaultURL + "file");
            System.out.println("Genome space URL: " + defaultURL);
        } catch (MalformedURLException e) {
            e.printStackTrace();
            Assume.assumeTrue(false);
        }

        //We test creating this directory later
//        try{
//            DMUtils.deleteFileOrDirectory(fileURL + fullPath);
//        }catch(FileNotFoundException e){
//            //totally fine, in fact expected
//        }
    }

    @After
    public void tearDown() {
        GSUtils.logout();
        HttpUtils.getInstance().resetAuthenticator();
    }

    @Test
    public void noOpTest() {
        assertTrue(true);
    }

    @Ignore
    public void testGetDirectoryListing() throws Exception {
        final String testFileName = "Broad.080528.subtypes.seg.gz";
        boolean found = dirContainsFile(personaldirectoryURL, testFileName);
        assertTrue("Test file not found: " + testFileName, found);

    }

    protected boolean dirContainsFile(URL dirURL, String testFileName) throws Exception{
        GSDirectoryListing dirListing = DMUtils.getDirectoryListing(dirURL);

        assertNotNull("Directory listing", dirListing);

        List<GSFileMetadata> gsFiles = dirListing.getContents();

        //Search for known test file
        boolean found = false;
        for (GSFileMetadata fileMetadata : gsFiles) {
            if (fileMetadata.getName().equals(testFileName)) {
                found = true;
                String path = IGV_TEST_DIR + testFileName;
                assertEquals("Test file path not expected", path, fileMetadata.getPath());
            }
        }
        return found;
    }

    /**
     * Upload a file, check it got uploaded, delete it, check it was deleted
     * Not really ideal, but since we need to check that the file doesn't exist before
     * uploading and delete it afterwards anyway, figured we might as well combine these.
     * @throws Exception
     */
    @Ignore
    public void testUploadDeleteFile() throws Exception {

        String locName = "test2.bed";
        File localFile = new File(TestUtils.DATA_DIR + "bed", locName);
        String remPath = IGV_TEST_DIR + locName;

        // Delete, in case the file is there from a previous test run
        try {
            DMUtils.deleteFileOrDirectory(fileURL + remPath);
        } catch (IOException e) {
            // Ignore -- expected
        }

        assertFileStatus(locName, false);

        DMUtils.uploadFile(localFile, remPath);

        assertFileStatus(locName, true);

        DMUtils.deleteFileOrDirectory(fileURL + remPath);

        assertFileStatus(locName, false);
    }

    //@Test
    public void testCreateDeleteDirectory() throws Exception {

        assertFileStatus(delDirName, false);

        DMUtils.createDirectory(fileURL + fullPath);

        assertFileStatus(delDirName, true);

        DMUtils.deleteFileOrDirectory(fileURL + fullPath);

        assertFileStatus(delDirName, false);
    }

    protected void assertFileStatus(String objName, boolean expExists) throws Exception{
        boolean found = dirContainsFile(personaldirectoryURL, objName);
        if(expExists){
            assertEquals("Object not found: " + objName, expExists, found);
        }else{
            assertEquals("Object exists, but it shouldn't: " + objName, expExists, found);
        }
    }

    /**
     * Test that we can actually load files. More of an functional test than unit test.
     * We also make sure to use token authentication
     * @throws Exception
     */
    @Ignore
    public void testLoadFiles() throws Exception{

        GSDirectoryListing dirListing = DMUtils.getDirectoryListing(personaldirectoryURL);

        TrackLoader loader = new TrackLoader();
        Map<String, Exception> exceptions = new HashMap<String, Exception>();

        for(GSFileMetadata md: dirListing.getContents()){
            String mdurl = md.getUrl();
            if(!md.isDirectory() && (mdurl.endsWith(".bed") || mdurl.endsWith(".bam"))){
                System.out.println("Loading file " + mdurl);
                try{
                    List<Track> tracks = loader.load(new ResourceLocator(mdurl), genome);
                    assertNotNull(tracks);
                    assertNotSame(0, tracks.size());
                }catch(Exception e){
                    exceptions.put(mdurl, e);
                }
            }
        }

        for(Map.Entry<String, Exception> entry: exceptions.entrySet()){
            System.out.println("Exception loading Path: " + entry.getKey());
            System.out.println("StackTrace: ");
            for (StackTraceElement el : entry.getValue().getStackTrace()) {
                System.out.println(el);
            }
        }
        assertEquals(0, exceptions.size());
    }

}


text:
require_relative '../../spec_helper'
require 'spectrum/config/metadata_component'
require 'spectrum/config/icon_metadata_component'

describe Spectrum::Config::IconMetadataComponent do
  subject { described_class.new('Name', {'type' => 'icon'}) }

  let(:true_result) {{
    term: 'Name',
    termPlural: 'Names',
    description: [{text: 'true'}]
  }}

  let(:false_result) {{
    term: 'Name',
    termPlural: 'Names',
    description: [{text: 'false'}]
  }}

  let(:book_result) {{
    term: 'Name',
    termPlural: 'Names',
    description: [{text: 'Book', icon: 'book'}]
  }}

  context "#resolve" do
    it "returns nil when given nil" do
      expect(subject.resolve(nil)).to be(nil)
    end

    it "returns a text description when given true" do
      expect(subject.resolve(true)).to eq(true_result)
    end

    it "returns a text description when given false" do
      expect(subject.resolve(false)).to eq(false_result)
    end

    it "returns nil when given []" do
      expect(subject.resolve([])).to be(nil)
    end

    it "returns an icon  when given 'Book'" do
      expect(subject.resolve('Book')).to eq(book_result)
    end
  end
end


text:
package java.util.zip;

import java.io.EOFException;
import java.io.IOException;
import java.io.InputStream;
import java.io.RandomAccessFile;
import java.nio.charset.Charsets;
import java.util.Calendar;
import java.util.Date;
import java.util.GregorianCalendar;

/**
 * An instance of {@code ZipEntry} represents an entry within a
 * ZIP-archive. An entry has attributes such as name (= path) or the size
 * of its data. While an entry identifies data stored in an archive, it does not
 * hold the data itself. For example when reading a ZIP-file you will
 * first retrieve all its entries in a collection and then read the data for a
 * specific entry through an input stream.
 *
 * @see ZipFile
 * @see ZipOutputStream
 */
public class ZipEntry implements ZipConstants, Cloneable {
	String name, comment;

	long compressedSize = -1, crc = -1, size = -1;

	int compressionMethod = -1, time = -1, modDate = -1;

	byte[] extra;

	int nameLen = -1;
	long mLocalHeaderRelOffset = -1;

	/**
	 * Zip entry state: Deflated.
	 */
	public static final int DEFLATED = 8;

	/**
	 * Zip entry state: Stored.
	 */
	public static final int STORED = 0;

	/**
	 * Constructs a new {@code ZipEntry} with the specified name.
	 *
	 * @param name
	 *            the name of the ZIP entry.
	 * @throws IllegalArgumentException
	 *             if the name length is outside the range (> 0xFFFF).
	 */
	public ZipEntry(String name) {
		if (name == null) {
			throw new NullPointerException();
		}
		if (name.length() > 0xFFFF) {
			throw new IllegalArgumentException();
		}
		this.name = name;
	}

	/**
	 * Gets the comment for this {@code ZipEntry}.
	 *
	 * @return the comment for this {@code ZipEntry}, or {@code null} if there
	 *         is no comment. If we're reading an archive with
	 *         {@code ZipInputStream} the comment is not available.
	 */
	public String getComment() {
		return comment;
	}

	/**
	 * Gets the compressed size of this {@code ZipEntry}.
	 *
	 * @return the compressed size, or -1 if the compressed size has not been
	 *         set.
	 */
	public long getCompressedSize() {
		return compressedSize;
	}

	/**
	 * Gets the checksum for this {@code ZipEntry}.
	 *
	 * @return the checksum, or -1 if the checksum has not been set.
	 */
	public long getCrc() {
		return crc;
	}

	/**
	 * Gets the extra information for this {@code ZipEntry}.
	 *
	 * @return a byte array containing the extra information, or {@code null} if
	 *         there is none.
	 */
	public byte[] getExtra() {
		return extra;
	}

	/**
	 * Gets the compression method for this {@code ZipEntry}.
	 *
	 * @return the compression method, either {@code DEFLATED}, {@code STORED}
	 *         or -1 if the compression method has not been set.
	 */
	public int getMethod() {
		return compressionMethod;
	}

	/**
	 * Gets the name of this {@code ZipEntry}.
	 *
	 * @return the entry name.
	 */
	public String getName() {
		return name;
	}

	/**
	 * Gets the uncompressed size of this {@code ZipEntry}.
	 *
	 * @return the uncompressed size, or {@code -1} if the size has not been
	 *         set.
	 */
	public long getSize() {
		return size;
	}

	/**
	 * Gets the last modification time of this {@code ZipEntry}.
	 *
	 * @return the last modification time as the number of milliseconds since
	 *         Jan. 1, 1970.
	 */
	public long getTime() {
		if (time != -1) {
			GregorianCalendar cal = new GregorianCalendar();
			cal.set(Calendar.MILLISECOND, 0);
			cal.set(1980 + ((modDate >> 9) & 0x7f), ((modDate >> 5) & 0xf) - 1,
					modDate & 0x1f, (time >> 11) & 0x1f, (time >> 5) & 0x3f,
					(time & 0x1f) << 1);
			return cal.getTime().getTime();
		}
		return -1;
	}

	/**
	 * Determine whether or not this {@code ZipEntry} is a directory.
	 *
	 * @return {@code true} when this {@code ZipEntry} is a directory,
	 *         {@code false} otherwise.
	 */
	public boolean isDirectory() {
		return name.charAt(name.length() - 1) == '/';
	}

	/**
	 * Sets the comment for this {@code ZipEntry}.
	 *
	 * @param string
	 *            the comment for this entry.
	 */
	public void setComment(String string) {
		if (string == null || string.length() <= 0xFFFF) {
			comment = string;
		} else {
			throw new IllegalArgumentException();
		}
	}

	/**
	 * Sets the compressed size for this {@code ZipEntry}.
	 *
	 * @param value
	 *            the compressed size (in bytes).
	 */
	public void setCompressedSize(long value) {
		compressedSize = value;
	}

	/**
	 * Sets the checksum for this {@code ZipEntry}.
	 *
	 * @param value
	 *            the checksum for this entry.
	 * @throws IllegalArgumentException
	 *             if {@code value} is < 0 or > 0xFFFFFFFFL.
	 */
	public void setCrc(long value) {
		if (value >= 0 && value <= 0xFFFFFFFFL) {
			crc = value;
		} else {
			throw new IllegalArgumentException();
		}
	}

	/**
	 * Sets the extra information for this {@code ZipEntry}.
	 *
	 * @param data
	 *            a byte array containing the extra information.
	 * @throws IllegalArgumentException
	 *             when the length of data is greater than 0xFFFF bytes.
	 */
	public void setExtra(byte[] data) {
		if (data == null || data.length <= 0xFFFF) {
			extra = data;
		} else {
			throw new IllegalArgumentException();
		}
	}

	/**
	 * Sets the compression method for this {@code ZipEntry}.
	 *
	 * @param value
	 *            the compression method, either {@code DEFLATED} or
	 *            {@code STORED}.
	 * @throws IllegalArgumentException
	 *             when value is not {@code DEFLATED} or {@code STORED}.
	 */
	public void setMethod(int value) {
		if (value != STORED && value != DEFLATED) {
			throw new IllegalArgumentException();
		}
		compressionMethod = value;
	}

	/**
	 * Sets the uncompressed size of this {@code ZipEntry}.
	 *
	 * @param value
	 *            the uncompressed size for this entry.
	 * @throws IllegalArgumentException
	 *             if {@code value} < 0 or {@code value} > 0xFFFFFFFFL.
	 */
	public void setSize(long value) {
		if (value >= 0 && value <= 0xFFFFFFFFL) {
			size = value;
		} else {
			throw new IllegalArgumentException();
		}
	}

	/**
	 * Sets the modification time of this {@code ZipEntry}.
	 *
	 * @param value
	 *            the modification time as the number of milliseconds since Jan.
	 *            1, 1970.
	 */
	public void setTime(long value) {
		GregorianCalendar cal = new GregorianCalendar();
		cal.setTime(new Date(value));
		int year = cal.get(Calendar.YEAR);
		if (year < 1980) {
			modDate = 0x21;
			time = 0;
		} else {
			modDate = cal.get(Calendar.DATE);
			modDate = (cal.get(Calendar.MONTH) + 1 << 5) | modDate;
			modDate = ((cal.get(Calendar.YEAR) - 1980) << 9) | modDate;
			time = cal.get(Calendar.SECOND) >> 1;
			time = (cal.get(Calendar.MINUTE) << 5) | time;
			time = (cal.get(Calendar.HOUR_OF_DAY) << 11) | time;
		}
	}

	/**
	 * Returns the string representation of this {@code ZipEntry}.
	 *
	 * @return the string representation of this {@code ZipEntry}.
	 */
	@Override
	public String toString() {
		return name;
	}

	/**
	 * Constructs a new {@code ZipEntry} using the values obtained from
	 * {@code ze}.
	 *
	 * @param ze
	 *            the {@code ZipEntry} from which to obtain values.
	 */
	public ZipEntry(ZipEntry ze) {
		name = ze.name;
		comment = ze.comment;
		time = ze.time;
		size = ze.size;
		compressedSize = ze.compressedSize;
		crc = ze.crc;
		compressionMethod = ze.compressionMethod;
		modDate = ze.modDate;
		extra = ze.extra;
		nameLen = ze.nameLen;
		mLocalHeaderRelOffset = ze.mLocalHeaderRelOffset;
	}

	/**
	 * Returns a shallow copy of this entry.
	 *
	 * @return a copy of this entry.
	 */
	@Override
	public Object clone() {
		return new ZipEntry(this);
	}

	/**
	 * Returns the hash code for this {@code ZipEntry}.
	 *
	 * @return the hash code of the entry.
	 */
	@Override
	public int hashCode() {
		return name.hashCode();
	}

	/*
	 * Internal constructor. Creates a new ZipEntry by reading the Central
	 * Directory Entry from "in", which must be positioned at the CDE signature.
	 *
	 * On exit, "in" will be positioned at the start of the next entry.
	 */
	ZipEntry(LittleEndianReader ler, InputStream in) throws IOException {

		/*
		 * We're seeing performance issues when we call readShortLE and
		 * readIntLE, so we're going to read the entire header at once and then
		 * parse the results out without using any function calls. Uglier, but
		 * should be much faster.
		 *
		 * Note that some lines look a bit different, because the corresponding
		 * fields or locals are long and so we need to do & 0xffffffffl to avoid
		 * problems induced by sign extension.
		 */

		byte[] hdrBuf = ler.hdrBuf;
		myReadFully(in, hdrBuf);

		long sig = (hdrBuf[0] & 0xff) | ((hdrBuf[1] & 0xff) << 8)
				| ((hdrBuf[2] & 0xff) << 16)
				| ((hdrBuf[3] << 24) & 0xffffffffL);
		if (sig != CENSIG) {
			throw new ZipException("Central Directory Entry not found");
		}

		compressionMethod = (hdrBuf[10] & 0xff) | ((hdrBuf[11] & 0xff) << 8);
		time = (hdrBuf[12] & 0xff) | ((hdrBuf[13] & 0xff) << 8);
		modDate = (hdrBuf[14] & 0xff) | ((hdrBuf[15] & 0xff) << 8);
		crc = (hdrBuf[16] & 0xff) | ((hdrBuf[17] & 0xff) << 8)
				| ((hdrBuf[18] & 0xff) << 16)
				| ((hdrBuf[19] << 24) & 0xffffffffL);
		compressedSize = (hdrBuf[20] & 0xff) | ((hdrBuf[21] & 0xff) << 8)
				| ((hdrBuf[22] & 0xff) << 16)
				| ((hdrBuf[23] << 24) & 0xffffffffL);
		size = (hdrBuf[24] & 0xff) | ((hdrBuf[25] & 0xff) << 8)
				| ((hdrBuf[26] & 0xff) << 16)
				| ((hdrBuf[27] << 24) & 0xffffffffL);
		nameLen = (hdrBuf[28] & 0xff) | ((hdrBuf[29] & 0xff) << 8);
		int extraLen = (hdrBuf[30] & 0xff) | ((hdrBuf[31] & 0xff) << 8);
		int commentLen = (hdrBuf[32] & 0xff) | ((hdrBuf[33] & 0xff) << 8);
		mLocalHeaderRelOffset = (hdrBuf[42] & 0xff)
				| ((hdrBuf[43] & 0xff) << 8) | ((hdrBuf[44] & 0xff) << 16)
				| ((hdrBuf[45] << 24) & 0xffffffffL);

		byte[] nameBytes = new byte[nameLen];
		myReadFully(in, nameBytes);

		byte[] commentBytes = null;
		if (commentLen > 0) {
			commentBytes = new byte[commentLen];
			myReadFully(in, commentBytes);
		}

		if (extraLen > 0) {
			extra = new byte[extraLen];
			myReadFully(in, extra);
		}

		// The RI has always assumed UTF-8. (If GPBF_UTF8_FLAG isn't set, the
		// encoding is
		// actually IBM-437.)
		name = new String(nameBytes, 0, nameBytes.length, Charsets.UTF_8);
		if (commentBytes != null) {
			comment = new String(commentBytes, 0, commentBytes.length,
					Charsets.UTF_8);
		} else {
			comment = null;
		}
	}

	private void myReadFully(InputStream in, byte[] b) throws IOException {
		int len = b.length;
		int off = 0;

		while (len > 0) {
			int count = in.read(b, off, len);
			if (count <= 0) {
				throw new EOFException();
			}
			off += count;
			len -= count;
		}
	}

	/*
	 * Read a four-byte int in little-endian order.
	 */
	static long readIntLE(RandomAccessFile raf) throws IOException {
		int b0 = raf.read();
		int b1 = raf.read();
		int b2 = raf.read();
		int b3 = raf.read();

		if (b3 < 0) {
			throw new EOFException("in ZipEntry.readIntLE(RandomAccessFile)");
		}
		return b0 | (b1 << 8) | (b2 << 16) | (b3 << 24); // ATTENTION: DOES SIGN
															// EXTENSION: IS
															// THIS WANTED?
	}

	static class LittleEndianReader {
		private byte[] b = new byte[4];
		byte[] hdrBuf = new byte[CENHDR];

		/*
		 * Read a two-byte short in little-endian order.
		 */
		int readShortLE(InputStream in) throws IOException {
			if (in.read(b, 0, 2) == 2) {
				return (b[0] & 0XFF) | ((b[1] & 0XFF) << 8);
			} else {
				throw new EOFException("in ZipEntry.readShortLE(InputStream)");
			}
		}

		/*
		 * Read a four-byte int in little-endian order.
		 */
		long readIntLE(InputStream in) throws IOException {
			if (in.read(b, 0, 4) == 4) {
				return (((b[0] & 0XFF)) | ((b[1] & 0XFF) << 8)
						| ((b[2] & 0XFF) << 16) | ((b[3] & 0XFF) << 24)) & 0XFFFFFFFFL; // Here
																						// for
																						// sure
																						// NO
																						// sign
																						// extension
																						// is
																						// wanted.
			} else {
				throw new EOFException("in ZipEntry.readIntLE(InputStream)");
			}
		}
	}
}


text:
$(document).bind("mobileinit", function(){
    //apply overrides here
    $.support.cors = true;
    $.mobile.allowCrossDomainPages = true;
});

testData = [];

$(document).ready(function() {
    initToasting();
    ajaxRetrieve("getAllWishes", showList, null);

    // setup up click listeners
    $("#myList").click(function() {
        ajaxRetrieve("getAllWishes", showList, null);
    });
    $("#friendsList").click(function(){
        ajaxRetrieve("getAllFriends", friendsListView, null);
    });
    $("#reservedWishes").click(function(){
        //reservedWishes();
        ajaxRetrieve("getReservedWishes", reservedWishes, null);
    });
    $("#addWish").click(function(){
        //$("#wishId").val(-1);
        console.log("----------------------  addWish Click "+ $("#wishId").val() +"----------------------");
        ajaxRetrieve("wishEdit", addWish, -1);
    });
    $("#addWishSubmit").click(function () {
        ajaxAddWish($("#wishId").val());
    });
    $("#addWishCancel").click(function () {
        hideAllViews();
        emptyAddWishForm();
        ajaxRetrieve("getAllWishes", showList, null);
        //$("#myListView").show();
    });
    $("#editWish").click(function(){
        $("#editDeleteDialog").popup("close");
        ajaxRetrieve("wishEdit", addWish, $("#wishId").val());

    });
    $("#deleteWish").click(function() {
        $("#editDeleteDialog").popup("close");
        hideAllViews();
        ajaxDelete($("#wishId").val());
    });
    $("#backFriendsListView").click(function() {
        hideAllViews();
        $("#friendsListViewContainer").show();
    });
    $("#cancelReserve").click(function() {
        $("#reserveWishDialog").popup("close");
    });
    $("#confirmReserve").click(function() {
        $("#reserveWishDialog").popup("close");
        //alert($("#reserveWishId").val());
        ajaxReserveItem($("#reserveWishId").val());
    });

    hideAllViews();
});

showList = function (data){
    hideAllViews();

    console.log(data);
    $("#myListView").show();
    var record = jQuery.parseJSON(data);
    $("#wishList").empty(); // empties list so it doesn't keep adding

    jQuery.each(record, function(i, val){
        $("#wishList").append("
"
            + val.wishName + ""
            + val.wishCategory + "
");

        $('#' + val.wishId).click(function () { editWish(val.wishId); }) ;
    });

    $("#wishList").listview("refresh"); // fixes css issues of listitems
}

addWish = function (data) {
    hideAllViews();
    console.log("----------------------  addWish function ----------------------");
    var record = jQuery.parseJSON(data);
    console.log("----------------------  addWish function AFTER PARSE----------------------");
    console.log(record);

    $("#wishName").val(record.wishName);
    $("#wishDescription").val(record.wishDescription);
    $("#wishUrl").val(record.wishUrl);
    //$("#wishCategory option:contains(" + record.wishCategory + ")").attr('selected', 'selected');
     //$( "select option:selected" )
     $("#wishCategory").val(record.wishCategory);
     $('select').selectmenu('refresh', true);
    console.log("----------------------  addWish function wishCategory = " + record.wishCategory + "----------------------");

    var wishIdValue = -1;
    if(record.wishId != null){
        wishIdValue = record.wishId;
    }

    console.log("----------------------  addWish function wishIdValue = " + wishIdValue+ "----------------------");
    $("#addWishForm").show();
    $("#wishList").listview("refresh");
}

popupWish = function(data){

    var record = jQuery.parseJSON(data);

    $("#popupName").text(record.wishName);
    $("#popupDescription").text(record.wishDescription);
}

friendsListView = function(data) {
    hideAllViews();
    //$("#friendsListView").show();
    $("#friendsListViewContainer").show();
     var record = jQuery.parseJSON(data);

     $("#friendsListView").empty(); // empties list so it doesn't keep adding

    jQuery.each(record, function(i, val){
        $("#friendsListView").append("
"
            + val.userFirstName + " " + val.userLastName + "
");

        $('#' + val.userUserName).click(function () { ajaxRetrieve("getUserWishes", friendsWishes , val.userUserName);; }) ;
    });

}

editWish = function(wishId) {
    //alert(wishId);

    $("#wishId").val(wishId);

    ajaxRetrieve("wishEdit", popupWish, wishId);
    $("#editDeleteDialog").popup("open");
   // console.log(wishId);
}

friendsWishes = function(data){
   // $("#reserveWishDialog").popup("open");
    hideAllViews();
    $("#friendsListWishesContainer").show();
    $("#friendsListWishes").empty();

    var record = jQuery.parseJSON(data);
    console.log(data);
    jQuery.each(record, function(i, val){
        $("#friendsListWishes").append("
"
        + val.wishName + ""
        + val.wishCategory + "
");

        $('#' + val.wishId).click(function () {
            $("#reserveWishId").val(val.wishId);
            $("#reserveWishDialog").popup("open");
        });
   });

}

reservedWishes = function(data) {
    //alert("Reserved Wishes");
    hideAllViews();

    var record = jQuery.parseJSON(data);
    $("#reserveList").empty(); // empties list so it doesn't keep adding

    jQuery.each(record, function(i, val){
        $("#reserveList").append("
"
            + val.wishName + " - " +  val.userUserName +""
            + val.wishCategory + "
");

        //$('#a' + val.wishId).click(function () { alert("Justin is dumb!"); }) ;
    });

    $("#wishList").listview("refresh"); // fixes css issues of listitems

    $("#usersReservedWishes").show();

}

hideAllViews = function() {
    $("#myListView").hide();
    $("#addWishForm").hide();
    //$("#friendsListContainer").hide();
    $("#friendsListViewContainer").hide();

    $("#friendsListWishesContainer").hide();
    $("#usersReservedWishes").hide();

}

ajaxRetrieve = function(siteName, myFunction, itemID){

    var url = 'http://54.186.226.137/cgi-bin/' + siteName + '.php';
     if(siteName == "wishEdit" ){
        url += "?wishId=" + itemID;
        console.log("----------------------  ajaxRetrieve function Print WISHID = " + itemID +"----------------------");

    }
    else if(siteName == "getUserWishes"){
        url += "?userUserName=" + itemID;
        console.log("----------------------  ajaxRetrieve function Print USERNAME = " + itemID +"----------------------");
    }

    //http://54.186.226.137/cgi-bin/wishEdit.php?wishId=1

    $.ajax({
        url: url,
        crossDomain: true,
        success: function(data) {
            //it works
            console.log("success");
            myFunction(data);
        },
        error: function(err) {
            // it broke
            console.log("you suck:  " + err);
        }
    });

}

ajaxReserveItem = function(currentWishId){

    var reservedItem = "wishId=" + currentWishId;
    console.log("Your wishId: " + currentWishId);

    jQuery.ajax({
            type: "POST", // HTTP method POST or GET
            url: "http://54.186.226.137/cgi-bin/wishReserve.php", //Where to make Ajax calls
            dataType:"text", // Data type, HTML, json etc.
            data:reservedItem, //post variables
            success:function(response){
                console.log(response);
                toastr.success('Wish Reserved!'); //bring up toast

                //empty fields after successful submission
                //emptyAddWishForm();
            },
            error:function (xhr, ajaxOptions, thrownError){
                alert(thrownError); //throw any errors
            }
        });

}

ajaxAddWish = function(currentWishId) {

    if ($("#wishName").val() != "") {

        console.log("----------------------  ajaxAddWish function currentWishId = "+ currentWishId + "----------------------");

        //post variables from form
        var wishData = "wishName="+ $("#wishName").val() +
                       "&wishDescription=" + $("#wishDescription").val() +
                       "&wishUrl=" + $("#wishUrl").val() +
                       "&wishCategory=" + $("#wishCategory").val()  +
                       "&wishId=" + currentWishId;

        console.log("----------------------  ajaxAddWish function URL = "+ wishData + "----------------------");

        jQuery.ajax({
            type: "POST", // HTTP method POST or GET
            url: "http://54.186.226.137/cgi-bin/wishInsert.php", //Where to make Ajax calls
            dataType:"text", // Data type, HTML, json etc.
            data:wishData, //post variables
            success:function(response){
                console.log(response);
                toastr.success('Wish Added!'); //bring up toast

                //empty fields after successful submission
                emptyAddWishForm();
            },
            error:function (xhr, ajaxOptions, thrownError){
                alert(thrownError); //throw any errors
            }
        });
    } else {
        toastr.error('Provide at Least a Name'); //bring up toast\
    }
}

ajaxDelete = function(currentWishId){

        //post variables from form
        var wishData = "wishId=" + currentWishId;

        jQuery.ajax({
            type: "POST", // HTTP method POST or GET
            url: "http://54.186.226.137/cgi-bin/wishDelete.php", //Where to make Ajax calls
            dataType:"text", // Data type, HTML, json etc.
            data:wishData, //post variables
            success:function(response){
                console.log(response);
                toastr.success('Wish Deleted!'); //bring up toast

                //empty fields after successful submission
                emptyAddWishForm();
            },
            error:function (xhr, ajaxOptions, thrownError){
                alert(thrownError); //throw any errors
            }
        });

        ajaxRetrieve("getAllWishes", showList, null);

}

initToasting = function() {
    toastr.options = {
        'closeButton': false,
        'debug': false,
        'positionClass': 'toast-bottom-full-width',
        'onclick': null,
        'showDuration': '300',
        'hideDuration': '1000',
        'timeOut': '3000',
        'extendedTimeOut': '1000',
        'showEasing': 'swing',
        'hideEasing': 'linear',
        'showMethod': 'fadeIn',
        'hideMethod': 'fadeOut'
    }
}

emptyAddWishForm = function() {
    $("#wishName").val('');
    $("#wishDescription").val('');
    $("#wishUrl").val('');
    $("#wishCategory").val('birthday').selectmenu('refresh', true);
}


text:
    using System;
    using System.Collections.Generic;
    using System.IO;
    using Amazon.DataPipeline.Model;
    using Amazon.Runtime.Internal.Transform;

    namespace Amazon.DataPipeline.Model.Internal.MarshallTransformations
    {
      /// <summary>
      /// SetTaskStatusResultUnmarshaller
      /// </summary>
      internal class SetTaskStatusResultUnmarshaller : IUnmarshaller<SetTaskStatusResult, XmlUnmarshallerContext>, IUnmarshaller<SetTaskStatusResult, JsonUnmarshallerContext>
      {
        SetTaskStatusResult IUnmarshaller<SetTaskStatusResult, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context)
        {
          throw new NotImplementedException();
        }

        public SetTaskStatusResult Unmarshall(JsonUnmarshallerContext context)
        {
            SetTaskStatusResult setTaskStatusResult = new SetTaskStatusResult();

            return setTaskStatusResult;
        }

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


text:
class OrderDetail::TransferDomain < OrderDetail
  validates :registrant_handle, presence: true

  def self.build params, partner
    new params.merge(period: 0)
  end

  def action
    'transfer_domain'
  end

  def complete! pc_transfer: nil
    domain = Domain.named(self.domain)

    if domain.transfer! to: self.order.partner, handle: self.registrant_handle
      unless pc_transfer
        self.order.partner.ledgers.create order: self.order,
                                          amount: self.price * -1,
                                          activity_type: 'use'
      end

      self.product = domain.product
      self.status = COMPLETE_ORDER_DETAIL
    else
      self.status = ERROR_ORDER_DETAIL
    end

    self.save

    complete?
  end

  def as_json options = nil
    {
      type: self.action,
      price: self.price.to_f,
      domain: self.domain,
      registrant_handle: self.registrant_handle,
      object: self.product.as_json
    }
  end
end


text:
.class Lcom/android/server/WifiService$LockList;
.super Ljava/lang/Object;
.source "WifiService.java"

# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/android/server/WifiService;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x2
    name = "LockList"
.end annotation

# instance fields
.field private mList:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List",
            "<",
            "Lcom/android/server/WifiService$WifiLock;",
            ">;"
        }
    .end annotation
.end field

.field final synthetic this$0:Lcom/android/server/WifiService;

# direct methods
.method private constructor <init>(Lcom/android/server/WifiService;)V
    .locals 1
    .parameter

    .prologue
    .line 2308
    iput-object p1, p0, Lcom/android/server/WifiService$LockList;->this$0:Lcom/android/server/WifiService;

    invoke-direct/range {p0 .. p0}, Ljava/lang/Object;-><init>()V

    .line 2309
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/android/server/WifiService$LockList;->mList:Ljava/util/List;

    .line 2310
    return-void
.end method

.method synthetic constructor <init>(Lcom/android/server/WifiService;Lcom/android/server/WifiService$1;)V
    .locals 0
    .parameter "x0"
    .parameter "x1"

    .prologue
    .line 2305
    invoke-direct {p0, p1}, Lcom/android/server/WifiService$LockList;-><init>(Lcom/android/server/WifiService;)V

    return-void
.end method

.method static synthetic access$3100(Lcom/android/server/WifiService$LockList;)Ljava/util/List;
    .locals 1
    .parameter "x0"

    .prologue
    .line 2305
    iget-object v0, p0, Lcom/android/server/WifiService$LockList;->mList:Ljava/util/List;

    return-object v0
.end method

.method static synthetic access$3200(Lcom/android/server/WifiService$LockList;)Z
    .locals 1
    .parameter "x0"

    .prologue
    .line 2305
    invoke-direct {p0}, Lcom/android/server/WifiService$LockList;->hasLocks()Z

    move-result v0

    return v0
.end method

.method static synthetic access$3300(Lcom/android/server/WifiService$LockList;)I
    .locals 1
    .parameter "x0"

    .prologue
    .line 2305
    invoke-direct {p0}, Lcom/android/server/WifiService$LockList;->getStrongestLockMode()I

    move-result v0

    return v0
.end method

.method static synthetic access$3400(Lcom/android/server/WifiService$LockList;Ljava/io/PrintWriter;)V
    .locals 0
    .parameter "x0"
    .parameter "x1"

    .prologue
    .line 2305
    invoke-direct {p0, p1}, Lcom/android/server/WifiService$LockList;->dump(Ljava/io/PrintWriter;)V

    return-void
.end method

.method static synthetic access$4100(Lcom/android/server/WifiService$LockList;Lcom/android/server/WifiService$WifiLock;)V
    .locals 0
    .parameter "x0"
    .parameter "x1"

    .prologue
    .line 2305
    invoke-direct {p0, p1}, Lcom/android/server/WifiService$LockList;->addLock(Lcom/android/server/WifiService$WifiLock;)V

    return-void
.end method

.method static synthetic access$4200(Lcom/android/server/WifiService$LockList;Landroid/os/IBinder;)I
    .locals 1
    .parameter "x0"
    .parameter "x1"

    .prologue
    .line 2305
    invoke-direct {p0, p1}, Lcom/android/server/WifiService$LockList;->findLockByBinder(Landroid/os/IBinder;)I

    move-result v0

    return v0
.end method

.method static synthetic access$4300(Lcom/android/server/WifiService$LockList;Landroid/os/IBinder;)Lcom/android/server/WifiService$WifiLock;
    .locals 1
    .parameter "x0"
    .parameter "x1"

    .prologue
    .line 2305
    invoke-direct {p0, p1}, Lcom/android/server/WifiService$LockList;->removeLock(Landroid/os/IBinder;)Lcom/android/server/WifiService$WifiLock;

    move-result-object v0

    return-object v0
.end method

.method private addLock(Lcom/android/server/WifiService$WifiLock;)V
    .locals 1
    .parameter "lock"

    .prologue
    .line 2333
    iget-object v0, p1, Lcom/android/server/WifiService$DeathRecipient;->mBinder:Landroid/os/IBinder;

    invoke-direct {p0, v0}, Lcom/android/server/WifiService$LockList;->findLockByBinder(Landroid/os/IBinder;)I

    move-result v0

    if-gez v0, :cond_0

    .line 2334
    iget-object v0, p0, Lcom/android/server/WifiService$LockList;->mList:Ljava/util/List;

    invoke-interface {v0, p1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 2336
    :cond_0
    return-void
.end method

.method private dump(Ljava/io/PrintWriter;)V
    .locals 3
    .parameter "pw"

    .prologue
    .line 2358
    iget-object v2, p0, Lcom/android/server/WifiService$LockList;->mList:Ljava/util/List;

    invoke-interface {v2}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v0

    .local v0, i$:Ljava/util/Iterator;
    :goto_0
    invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z

    move-result v2

    if-eqz v2, :cond_0

    invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/android/server/WifiService$WifiLock;

    .line 2359
    .local v1, l:Lcom/android/server/WifiService$WifiLock;
    const-string v2, "    "

    invoke-virtual {p1, v2}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V

    .line 2360
    invoke-virtual {p1, v1}, Ljava/io/PrintWriter;->println(Ljava/lang/Object;)V

    goto :goto_0

    .line 2362
    .end local v1           #l:Lcom/android/server/WifiService$WifiLock;
    :cond_0
    return-void
.end method

.method private findLockByBinder(Landroid/os/IBinder;)I
    .locals 3
    .parameter "binder"

    .prologue
    .line 2350
    iget-object v2, p0, Lcom/android/server/WifiService$LockList;->mList:Ljava/util/List;

    invoke-interface {v2}, Ljava/util/List;->size()I

    move-result v1

    .line 2351
    .local v1, size:I
    add-int/lit8 v0, v1, -0x1

    .local v0, i:I
    :goto_0
    if-ltz v0, :cond_1

    .line 2352
    iget-object v2, p0, Lcom/android/server/WifiService$LockList;->mList:Ljava/util/List;

    invoke-interface {v2, v0}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Lcom/android/server/WifiService$WifiLock;

    iget-object v2, v2, Lcom/android/server/WifiService$DeathRecipient;->mBinder:Landroid/os/IBinder;

    if-ne v2, p1, :cond_0

    .line 2354
    .end local v0           #i:I
    :goto_1
    return v0

    .line 2351
    .restart local v0       #i:I
    :cond_0
    add-int/lit8 v0, v0, -0x1

    goto :goto_0

    .line 2354
    :cond_1
    const/4 v0, -0x1

    goto :goto_1
.end method

.method private declared-synchronized getStrongestLockMode()I
    .locals 3

    .prologue
    const/4 v0, 0x1

    .line 2317
    monitor-enter p0

    :try_start_0
    iget-object v1, p0, Lcom/android/server/WifiService$LockList;->mList:Ljava/util/List;

    invoke-interface {v1}, Ljava/util/List;->isEmpty()Z
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    move-result v1

    if-eqz v1, :cond_1

    .line 2329
    :cond_0
    :goto_0
    monitor-exit p0

    return v0

    .line 2321
    :cond_1
    :try_start_1
    iget-object v1, p0, Lcom/android/server/WifiService$LockList;->this$0:Lcom/android/server/WifiService;

    #getter for: Lcom/android/server/WifiService;->mFullHighPerfLocksAcquired:I
    invoke-static {v1}, Lcom/android/server/WifiService;->access$3700(Lcom/android/server/WifiService;)I

    move-result v1

    iget-object v2, p0, Lcom/android/server/WifiService$LockList;->this$0:Lcom/android/server/WifiService;

    #getter for: Lcom/android/server/WifiService;->mFullHighPerfLocksReleased:I
    invoke-static {v2}, Lcom/android/server/WifiService;->access$3800(Lcom/android/server/WifiService;)I

    move-result v2

    if-le v1, v2, :cond_2

    .line 2322
    const/4 v0, 0x3

    goto :goto_0

    .line 2325
    :cond_2
    iget-object v1, p0, Lcom/android/server/WifiService$LockList;->this$0:Lcom/android/server/WifiService;

    #getter for: Lcom/android/server/WifiService;->mFullLocksAcquired:I
    invoke-static {v1}, Lcom/android/server/WifiService;->access$3900(Lcom/android/server/WifiService;)I

    move-result v1

    iget-object v2, p0, Lcom/android/server/WifiService$LockList;->this$0:Lcom/android/server/WifiService;

    #getter for: Lcom/android/server/WifiService;->mFullLocksReleased:I
    invoke-static {v2}, Lcom/android/server/WifiService;->access$4000(Lcom/android/server/WifiService;)I
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    move-result v2

    if-gt v1, v2, :cond_0

    .line 2329
    const/4 v0, 0x2

    goto :goto_0

    .line 2317
    :catchall_0
    move-exception v0

    monitor-exit p0

    throw v0
.end method

.method private declared-synchronized hasLocks()Z
    .locals 1

    .prologue
    .line 2313
    monitor-enter p0

    :try_start_0
    iget-object v0, p0, Lcom/android/server/WifiService$LockList;->mList:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->isEmpty()Z
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    move-result v0

    if-nez v0, :cond_0

    const/4 v0, 0x1

    :goto_0
    monitor-exit p0

    return v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0

    :catchall_0
    move-exception v0

    monitor-exit p0

    throw v0
.end method

.method private removeLock(Landroid/os/IBinder;)Lcom/android/server/WifiService$WifiLock;
    .locals 3
    .parameter "binder"

    .prologue
    .line 2339
    invoke-direct {p0, p1}, Lcom/android/server/WifiService$LockList;->findLockByBinder(Landroid/os/IBinder;)I

    move-result v0

    .line 2340
    .local v0, index:I
    if-ltz v0, :cond_0

    .line 2341
    iget-object v2, p0, Lcom/android/server/WifiService$LockList;->mList:Ljava/util/List;

    invoke-interface {v2, v0}, Ljava/util/List;->remove(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/android/server/WifiService$WifiLock;

    .line 2342
    .local v1, ret:Lcom/android/server/WifiService$WifiLock;
    invoke-virtual {v1}, Lcom/android/server/WifiService$WifiLock;->unlinkDeathRecipient()V

    .line 2345
    .end local v1           #ret:Lcom/android/server/WifiService$WifiLock;
    :goto_0
    return-object v1

    :cond_0
    const/4 v1, 0x0

    goto :goto_0
.end method


text:
FILE=/tmp/drop_create_done

if [ -f $FILE ]
then
	echo "File $FILE exists..."
else
	cd $RAILS_STACK_PATH
    bundle exec rake db:drop db:create
    touch /tmp/drop_create_done
fi


text: COPYRIGHT © {{ "now"|date("Y") }} {{ site_title|upper }}. ALL RIGHTS RESERVED.