text:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Index of all symbols</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
<link rel="home" href="index.html" title="Poppler Reference Manual">
<link rel="up" href="index.html" title="Poppler Reference Manual">
<link rel="prev" href="poppler-Version-and-Features-Information.html" title="Version and Features Information">
<link rel="next" href="api-index-deprecated.html" title="Index of deprecated symbols">
<meta name="generator" content="GTK-Doc V1.17 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">

Poppler Reference Manual

A
                      |
                   B
                      |
                   C
                      |
                   D
                      |
                   E
                      |
                   F
                      |
                   G
                      |
                   H
                      |
                   I
                      |
                   L
                      |
                   M
                      |
                   O
                      |
                   P
                      |
                   R
                      |
                   S
                      |
                   V
                      |
                   W

Index of all symbols

A

PopplerAction, union in PopplerAction

PopplerActionAny, struct in PopplerAction

PopplerActionGotoDest, struct in PopplerAction

PopplerActionGotoRemote, struct in PopplerAction

PopplerActionLaunch, struct in PopplerAction

PopplerActionLayer, struct in PopplerAction

PopplerActionLayerAction, enum in PopplerAction

PopplerActionMovie, struct in PopplerAction

PopplerActionMovieOperation, enum in PopplerAction

PopplerActionNamed, struct in PopplerAction

PopplerActionOCGState, struct in PopplerAction

PopplerActionRendition, struct in PopplerAction

PopplerActionType, enum in PopplerAction

PopplerActionUri, struct in PopplerAction

poppler_action_copy, function in PopplerAction

poppler_action_free, function in PopplerAction

PopplerAnnot, struct in PopplerAnnot

PopplerAnnotCalloutLine, struct in PopplerAnnot

PopplerAnnotExternalDataType, enum in PopplerAnnot

PopplerAnnotFileAttachment, struct in PopplerAnnot

PopplerAnnotFlag, enum in PopplerAnnot

PopplerAnnotFreeText, struct in PopplerAnnot

PopplerAnnotFreeTextQuadding, enum in PopplerAnnot

PopplerAnnotMapping, struct in PopplerPage

PopplerAnnotMarkup, struct in PopplerAnnot

PopplerAnnotMarkupReplyType, enum in PopplerAnnot

PopplerAnnotMovie, struct in PopplerAnnot

PopplerAnnotScreen, struct in PopplerAnnot

PopplerAnnotText, struct in PopplerAnnot

PopplerAnnotTextState, enum in PopplerAnnot

PopplerAnnotType, enum in PopplerAnnot

poppler_annot_callout_line_copy, function in PopplerAnnot

poppler_annot_callout_line_free, function in PopplerAnnot

poppler_annot_callout_line_new, function in PopplerAnnot

poppler_annot_file_attachment_get_attachment, function in PopplerAnnot

poppler_annot_file_attachment_get_name, function in PopplerAnnot

poppler_annot_free_text_get_callout_line, function in PopplerAnnot

poppler_annot_free_text_get_quadding, function in PopplerAnnot

poppler_annot_get_annot_type, function in PopplerAnnot

poppler_annot_get_color, function in PopplerAnnot

poppler_annot_get_contents, function in PopplerAnnot

poppler_annot_get_flags, function in PopplerAnnot

poppler_annot_get_modified, function in PopplerAnnot

poppler_annot_get_name, function in PopplerAnnot

poppler_annot_get_page_index, function in PopplerAnnot

poppler_annot_mapping_copy, function in PopplerPage

poppler_annot_mapping_free, function in PopplerPage

poppler_annot_mapping_new, function in PopplerPage

poppler_annot_markup_get_date, function in PopplerAnnot

poppler_annot_markup_get_external_data, function in PopplerAnnot

poppler_annot_markup_get_label, function in PopplerAnnot

poppler_annot_markup_get_opacity, function in PopplerAnnot

poppler_annot_markup_get_popup_is_open, function in PopplerAnnot

poppler_annot_markup_get_popup_rectangle, function in PopplerAnnot

poppler_annot_markup_get_reply_to, function in PopplerAnnot

poppler_annot_markup_get_subject, function in PopplerAnnot

poppler_annot_markup_has_popup, function in PopplerAnnot

poppler_annot_markup_set_label, function in PopplerAnnot

poppler_annot_markup_set_opacity, function in PopplerAnnot

poppler_annot_markup_set_popup, function in PopplerAnnot

poppler_annot_markup_set_popup_is_open, function in PopplerAnnot

poppler_annot_movie_get_movie, function in PopplerAnnot

poppler_annot_movie_get_title, function in PopplerAnnot

poppler_annot_screen_get_action, function in PopplerAnnot

poppler_annot_set_color, function in PopplerAnnot

poppler_annot_set_contents, function in PopplerAnnot

poppler_annot_text_get_icon, function in PopplerAnnot

poppler_annot_text_get_is_open, function in PopplerAnnot

poppler_annot_text_get_state, function in PopplerAnnot

POPPLER_ANNOT_TEXT_ICON_CIRCLE, macro in PopplerAnnot

POPPLER_ANNOT_TEXT_ICON_COMMENT, macro in PopplerAnnot

POPPLER_ANNOT_TEXT_ICON_CROSS, macro in PopplerAnnot

POPPLER_ANNOT_TEXT_ICON_HELP, macro in PopplerAnnot

POPPLER_ANNOT_TEXT_ICON_INSERT, macro in PopplerAnnot

POPPLER_ANNOT_TEXT_ICON_KEY, macro in PopplerAnnot

POPPLER_ANNOT_TEXT_ICON_NEW_PARAGRAPH, macro in PopplerAnnot

POPPLER_ANNOT_TEXT_ICON_NOTE, macro in PopplerAnnot

POPPLER_ANNOT_TEXT_ICON_PARAGRAPH, macro in PopplerAnnot

poppler_annot_text_new, function in PopplerAnnot

poppler_annot_text_set_icon, function in PopplerAnnot

poppler_annot_text_set_is_open, function in PopplerAnnot

PopplerAttachment, struct in PopplerAttachment

PopplerAttachmentSaveFunc, user_function in PopplerAttachment

poppler_attachment_save, function in PopplerAttachment

poppler_attachment_save_to_callback, function in PopplerAttachment

B

PopplerBackend, enum in poppler

C

POPPLER_CHECK_VERSION, macro in Version and Features Information

PopplerColor, struct in poppler

poppler_color_copy, function in poppler

poppler_color_free, function in poppler

poppler_color_new, function in poppler

D

poppler_date_parse, function in poppler

PopplerDest, struct in PopplerAction

PopplerDestType, enum in PopplerAction

poppler_dest_copy, function in PopplerAction

poppler_dest_free, function in PopplerAction

PopplerDocument, struct in PopplerDocument

PopplerDocument:author, object property in PopplerDocument

PopplerDocument:creation-date, object property in PopplerDocument

PopplerDocument:creator, object property in PopplerDocument

PopplerDocument:format, object property in PopplerDocument

PopplerDocument:format-major, object property in PopplerDocument

PopplerDocument:format-minor, object property in PopplerDocument

PopplerDocument:keywords, object property in PopplerDocument

PopplerDocument:linearized, object property in PopplerDocument

PopplerDocument:metadata, object property in PopplerDocument

PopplerDocument:mod-date, object property in PopplerDocument

PopplerDocument:page-layout, object property in PopplerDocument

PopplerDocument:page-mode, object property in PopplerDocument

PopplerDocument:permissions, object property in PopplerDocument

PopplerDocument:producer, object property in PopplerDocument

PopplerDocument:subject, object property in PopplerDocument

PopplerDocument:title, object property in PopplerDocument

PopplerDocument:viewer-preferences, object property in PopplerDocument

poppler_document_find_dest, function in PopplerDocument

poppler_document_get_attachments, function in PopplerDocument

poppler_document_get_author, function in PopplerDocument

poppler_document_get_creation_date, function in PopplerDocument

poppler_document_get_creator, function in PopplerDocument

poppler_document_get_form_field, function in PopplerDocument

poppler_document_get_id, function in PopplerDocument

poppler_document_get_keywords, function in PopplerDocument

poppler_document_get_metadata, function in PopplerDocument

poppler_document_get_modification_date, function in PopplerDocument

poppler_document_get_n_pages, function in PopplerDocument

poppler_document_get_page, function in PopplerDocument

poppler_document_get_page_by_label, function in PopplerDocument

poppler_document_get_page_layout, function in PopplerDocument

poppler_document_get_page_mode, function in PopplerDocument

poppler_document_get_pdf_version, function in PopplerDocument

poppler_document_get_pdf_version_string, function in PopplerDocument

poppler_document_get_permissions, function in PopplerDocument

poppler_document_get_producer, function in PopplerDocument

poppler_document_get_subject, function in PopplerDocument

poppler_document_get_title, function in PopplerDocument

poppler_document_has_attachments, function in PopplerDocument

poppler_document_is_linearized, function in PopplerDocument

poppler_document_new_from_data, function in PopplerDocument

poppler_document_new_from_file, function in PopplerDocument

poppler_document_save, function in PopplerDocument

poppler_document_save_a_copy, function in PopplerDocument

E

POPPLER_ERROR, macro in poppler

PopplerError, enum in poppler

F

PopplerFontInfo, struct in PopplerDocument

PopplerFontsIter, struct in PopplerDocument

poppler_fonts_iter_copy, function in PopplerDocument

poppler_fonts_iter_free, function in PopplerDocument

poppler_fonts_iter_get_file_name, function in PopplerDocument

poppler_fonts_iter_get_font_type, function in PopplerDocument

poppler_fonts_iter_get_full_name, function in PopplerDocument

poppler_fonts_iter_get_name, function in PopplerDocument

poppler_fonts_iter_is_embedded, function in PopplerDocument

poppler_fonts_iter_is_subset, function in PopplerDocument

poppler_fonts_iter_next, function in PopplerDocument

PopplerFontType, enum in PopplerDocument

poppler_font_info_free, function in PopplerDocument

poppler_font_info_new, function in PopplerDocument

poppler_font_info_scan, function in PopplerDocument

PopplerFormButtonType, enum in PopplerFormField

PopplerFormChoiceType, enum in PopplerFormField

PopplerFormField, struct in PopplerFormField

PopplerFormFieldMapping, struct in PopplerPage

PopplerFormFieldType, enum in PopplerFormField

PopplerFormTextType, enum in PopplerFormField

poppler_form_field_button_get_button_type, function in PopplerFormField

poppler_form_field_button_get_state, function in PopplerFormField

poppler_form_field_button_set_state, function in PopplerFormField

poppler_form_field_choice_can_select_multiple, function in PopplerFormField

poppler_form_field_choice_commit_on_change, function in PopplerFormField

poppler_form_field_choice_do_spell_check, function in PopplerFormField

poppler_form_field_choice_get_choice_type, function in PopplerFormField

poppler_form_field_choice_get_item, function in PopplerFormField

poppler_form_field_choice_get_n_items, function in PopplerFormField

poppler_form_field_choice_get_text, function in PopplerFormField

poppler_form_field_choice_is_editable, function in PopplerFormField

poppler_form_field_choice_is_item_selected, function in PopplerFormField

poppler_form_field_choice_select_item, function in PopplerFormField

poppler_form_field_choice_set_text, function in PopplerFormField

poppler_form_field_choice_toggle_item, function in PopplerFormField

poppler_form_field_choice_unselect_all, function in PopplerFormField

poppler_form_field_get_field_type, function in PopplerFormField

poppler_form_field_get_font_size, function in PopplerFormField

poppler_form_field_get_id, function in PopplerFormField

poppler_form_field_get_mapping_name, function in PopplerFormField

poppler_form_field_get_name, function in PopplerFormField

poppler_form_field_get_partial_name, function in PopplerFormField

poppler_form_field_is_read_only, function in PopplerFormField

poppler_form_field_mapping_copy, function in PopplerPage

poppler_form_field_mapping_free, function in PopplerPage

poppler_form_field_mapping_new, function in PopplerPage

poppler_form_field_text_do_scroll, function in PopplerFormField

poppler_form_field_text_do_spell_check, function in PopplerFormField

poppler_form_field_text_get_max_len, function in PopplerFormField

poppler_form_field_text_get_text, function in PopplerFormField

poppler_form_field_text_get_text_type, function in PopplerFormField

poppler_form_field_text_is_password, function in PopplerFormField

poppler_form_field_text_is_rich_text, function in PopplerFormField

poppler_form_field_text_set_text, function in PopplerFormField

G

poppler_get_backend, function in poppler

poppler_get_version, function in poppler

H

POPPLER_HAS_CAIRO, macro in Version and Features Information

I

PopplerImageMapping, struct in PopplerPage

poppler_image_mapping_copy, function in PopplerPage

poppler_image_mapping_free, function in PopplerPage

poppler_image_mapping_new, function in PopplerPage

PopplerIndexIter, struct in PopplerDocument

poppler_index_iter_copy, function in PopplerDocument

poppler_index_iter_free, function in PopplerDocument

poppler_index_iter_get_action, function in PopplerDocument

poppler_index_iter_get_child, function in PopplerDocument

poppler_index_iter_is_open, function in PopplerDocument

poppler_index_iter_new, function in PopplerDocument

poppler_index_iter_next, function in PopplerDocument

L

PopplerLayer, struct in PopplerLayer

PopplerLayersIter, struct in PopplerDocument

poppler_layers_iter_copy, function in PopplerDocument

poppler_layers_iter_free, function in PopplerDocument

poppler_layers_iter_get_child, function in PopplerDocument

poppler_layers_iter_get_layer, function in PopplerDocument

poppler_layers_iter_get_title, function in PopplerDocument

poppler_layers_iter_new, function in PopplerDocument

poppler_layers_iter_next, function in PopplerDocument

poppler_layer_get_radio_button_group_id, function in PopplerLayer

poppler_layer_get_title, function in PopplerLayer

poppler_layer_hide, function in PopplerLayer

poppler_layer_is_parent, function in PopplerLayer

poppler_layer_is_visible, function in PopplerLayer

poppler_layer_show, function in PopplerLayer

PopplerLinkMapping, struct in PopplerPage

poppler_link_mapping_copy, function in PopplerPage

poppler_link_mapping_free, function in PopplerPage

poppler_link_mapping_new, function in PopplerPage

M

POPPLER_MAJOR_VERSION, macro in Version and Features Information

PopplerMedia, struct in PopplerMedia

PopplerMediaSaveFunc, user_function in PopplerMedia

poppler_media_get_filename, function in PopplerMedia

poppler_media_get_mime_type, function in PopplerMedia

poppler_media_is_embedded, function in PopplerMedia

poppler_media_save, function in PopplerMedia

poppler_media_save_to_callback, function in PopplerMedia

POPPLER_MICRO_VERSION, macro in Version and Features Information

POPPLER_MINOR_VERSION, macro in Version and Features Information

PopplerMovie, struct in PopplerMovie

poppler_movie_get_filename, function in PopplerMovie

poppler_movie_need_poster, function in PopplerMovie

poppler_movie_show_controls, function in PopplerMovie

O

PopplerOrientation, enum in poppler

P

PopplerPage, struct in PopplerPage

PopplerPage:label, object property in PopplerPage

PopplerPageLayout, enum in PopplerDocument

PopplerPageMode, enum in PopplerDocument

PopplerPageTransition, struct in PopplerPage

PopplerPageTransitionAlignment, enum in PopplerPage

PopplerPageTransitionDirection, enum in PopplerPage

PopplerPageTransitionType, enum in PopplerPage

poppler_page_add_annot, function in PopplerPage

poppler_page_find_text, function in PopplerPage

poppler_page_free_annot_mapping, function in PopplerPage

poppler_page_free_form_field_mapping, function in PopplerPage

poppler_page_free_image_mapping, function in PopplerPage

poppler_page_free_link_mapping, function in PopplerPage

poppler_page_get_annot_mapping, function in PopplerPage

poppler_page_get_crop_box, function in PopplerPage

poppler_page_get_duration, function in PopplerPage

poppler_page_get_form_field_mapping, function in PopplerPage

poppler_page_get_image, function in PopplerPage

poppler_page_get_image_mapping, function in PopplerPage

poppler_page_get_index, function in PopplerPage

poppler_page_get_label, function in PopplerPage

poppler_page_get_link_mapping, function in PopplerPage

poppler_page_get_selected_region, function in PopplerPage

poppler_page_get_selected_text, function in PopplerPage

poppler_page_get_selection_region, function in PopplerPage

poppler_page_get_size, function in PopplerPage

poppler_page_get_text, function in PopplerPage

poppler_page_get_text_layout, function in PopplerPage

poppler_page_get_thumbnail, function in PopplerPage

poppler_page_get_thumbnail_pixbuf, function in PopplerPage

poppler_page_get_thumbnail_size, function in PopplerPage

poppler_page_get_transition, function in PopplerPage

poppler_page_render, function in PopplerPage

poppler_page_render_for_printing, function in PopplerPage

poppler_page_render_for_printing_with_options, function in PopplerPage

poppler_page_render_selection, function in PopplerPage

poppler_page_render_selection_to_pixbuf, function in PopplerPage

poppler_page_render_to_pixbuf, function in PopplerPage

poppler_page_render_to_pixbuf_for_printing, function in PopplerPage

poppler_page_render_to_ps, function in PopplerPage

poppler_page_selection_region_free, function in PopplerPage

poppler_page_transition_copy, function in PopplerPage

poppler_page_transition_free, function in PopplerPage

poppler_page_transition_new, function in PopplerPage

PopplerPermissions, enum in PopplerDocument

PopplerPrintFlags, enum in poppler

PopplerPSFile, struct in PopplerDocument

poppler_ps_file_free, function in PopplerDocument

poppler_ps_file_new, function in PopplerDocument

poppler_ps_file_set_duplex, function in PopplerDocument

poppler_ps_file_set_paper_size, function in PopplerDocument

R

PopplerRectangle, struct in PopplerPage

poppler_rectangle_copy, function in PopplerPage

poppler_rectangle_free, function in PopplerPage

poppler_rectangle_new, function in PopplerPage

S

PopplerSelectionStyle, enum in PopplerPage

V

PopplerViewerPreferences, enum in PopplerDocument

W

POPPLER_WITH_GDK, macro in Version and Features Information

          Generated by GTK-Doc V1.17


text:
<!DOCTYPE html>

	<meta charset="UTF-8">
	<title>07. The biggest of five numbers</title>

Problem 7. The biggest of five numbers

Write a script that finds the greatest of given 5 variables.

Use nested if statements.

		Enter first number:
		<input type="text" id="first"/>
		Enter second number:
		<input type="text" id="second" />
		Enter third number:
		<input type="text" id="third"/>

		Enter fourth number:
		<input type="text" id="fourth"/>
		Enter fifth number:
		<input type="text" id="fifth"/>
		<button onclick="test()">TEST</button>
		<button onclick="clearme()">CLEAR</button>

redpajama_set_name: RedPajamaGithub


text:
package org.eclipse.collections.impl.map.mutable.primitive;

import org.eclipse.collections.impl.test.Verify;
import org.junit.Test;

public class CharLongHashMapSerializationTest
{
    @Test
    public void serializedForm()
    {
        Verify.assertSerializedForm(
                1L,
                "rO0ABXNyAEJvcmcuZWNsaXBzZS5jb2xsZWN0aW9ucy5pbXBsLm1hcC5tdXRhYmxlLnByaW1pdGl2\n"
                        + "ZS5DaGFyTG9uZ0hhc2hNYXAAAAAAAAAAAQwAAHhwdwQAAAAAeA==",
                new CharLongHashMap());
    }
}


text:
get '/:id/feedback' do
  @tutor = User.find(params[:id])
  @feedback = @tutor.feedbacks
  erb :"/feedback/index"
end

get '/:id/feedback/new' do
  @tutor = User.find(params[:id])
  erb :"/feedback/new"
end

post '/:id/feedback/new' do
  @tutor = User.find(params[:id])
  Feedback.create(content: params[:content], user: @tutor)
  redirect "/#{@tutor.id}/feedback"
end


text:
package mud.colors;

/**
 * An enumeration of ANSI colors
 *
 * NOTE: not used, I have a hashmap instead
 *
 * @author Jeremy
 *
 */
public enum Colors {

	BLACK(30),
	RED(31),
	GREEN(32),
	YELLOW(33),
	BLUE(34),
	MAGENTA(35),
	CYAN(36),
	WHITE(37);

	private static boolean bright = true;

	private final String prefix = "\33[";
	private final String suffix = "m";

	private int num;

	private Colors(int num) {
		this.num = num;
	}

	public static void setBright(boolean bright) {
		Colors.bright = bright;
	}

	public String toString() {
		if( Colors.bright ) return prefix + this.num + ";1" + suffix;
		else return prefix + this.num + ";0" + suffix;
	}
}


text:
package org.apache.hadoop.hbase.master;

import java.io.IOException;

import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.hbase.HBaseClassTestRule;
import org.apache.hadoop.hbase.HBaseTestingUtility;
import org.apache.hadoop.hbase.MiniHBaseCluster;
import org.apache.hadoop.hbase.StartMiniClusterOption;
import org.apache.hadoop.hbase.Stoppable;
import org.apache.hadoop.hbase.testclassification.MasterTests;
import org.apache.hadoop.hbase.testclassification.MediumTests;
import org.apache.zookeeper.KeeperException;
import org.junit.After;
import org.junit.Assert;
import org.junit.Before;
import org.junit.ClassRule;
import org.junit.Test;
import org.junit.experimental.categories.Category;

/**
 * Test for Regions Recovery Config Manager
 */
@Category({MasterTests.class, MediumTests.class})
public class TestRegionsRecoveryConfigManager {

  @ClassRule
  public static final HBaseClassTestRule CLASS_RULE =
    HBaseClassTestRule.forClass(TestRegionsRecoveryConfigManager.class);

  private static final HBaseTestingUtility HBASE_TESTING_UTILITY = new HBaseTestingUtility();

  private MiniHBaseCluster cluster;

  private HMaster hMaster;

  private RegionsRecoveryChore regionsRecoveryChore;

  private RegionsRecoveryConfigManager regionsRecoveryConfigManager;

  private Configuration conf;

  @Before
  public void setup() throws Exception {
    conf = HBASE_TESTING_UTILITY.getConfiguration();
    conf.unset("hbase.regions.recovery.store.file.ref.count");
    conf.unset("hbase.master.regions.recovery.check.interval");
    StartMiniClusterOption option = StartMiniClusterOption.builder()
      .masterClass(TestHMaster.class)
      .numRegionServers(1)
      .numDataNodes(1).build();
    HBASE_TESTING_UTILITY.startMiniCluster(option);
    cluster = HBASE_TESTING_UTILITY.getMiniHBaseCluster();
  }

  @After
  public void tearDown() throws Exception {
    HBASE_TESTING_UTILITY.shutdownMiniCluster();
  }

  @Test
  public void testChoreSchedule() throws Exception {

    this.hMaster = cluster.getMaster();

    Stoppable stoppable = new StoppableImplementation();
    this.regionsRecoveryChore = new RegionsRecoveryChore(stoppable, conf, hMaster);

    this.regionsRecoveryConfigManager = new RegionsRecoveryConfigManager(this.hMaster);
    // not yet scheduled
    Assert.assertFalse(hMaster.getChoreService().isChoreScheduled(regionsRecoveryChore));

    this.regionsRecoveryConfigManager.onConfigurationChange(conf);
    // not yet scheduled
    Assert.assertFalse(hMaster.getChoreService().isChoreScheduled(regionsRecoveryChore));

    conf.setInt("hbase.master.regions.recovery.check.interval", 10);
    this.regionsRecoveryConfigManager.onConfigurationChange(conf);
    // not yet scheduled - missing config: hbase.regions.recovery.store.file.ref.count
    Assert.assertFalse(hMaster.getChoreService().isChoreScheduled(regionsRecoveryChore));

    conf.setInt("hbase.regions.recovery.store.file.ref.count", 10);
    this.regionsRecoveryConfigManager.onConfigurationChange(conf);
    // chore scheduled
    Assert.assertTrue(hMaster.getChoreService().isChoreScheduled(regionsRecoveryChore));

    conf.setInt("hbase.regions.recovery.store.file.ref.count", 20);
    this.regionsRecoveryConfigManager.onConfigurationChange(conf);
    // chore re-scheduled
    Assert.assertTrue(hMaster.getChoreService().isChoreScheduled(regionsRecoveryChore));

    conf.setInt("hbase.regions.recovery.store.file.ref.count", 20);
    this.regionsRecoveryConfigManager.onConfigurationChange(conf);
    // chore scheduling untouched
    Assert.assertTrue(hMaster.getChoreService().isChoreScheduled(regionsRecoveryChore));

    conf.unset("hbase.regions.recovery.store.file.ref.count");
    this.regionsRecoveryConfigManager.onConfigurationChange(conf);
    // chore un-scheduled
    Assert.assertFalse(hMaster.getChoreService().isChoreScheduled(regionsRecoveryChore));
  }

  // Make it public so that JVMClusterUtil can access it.
  public static class TestHMaster extends HMaster {
    public TestHMaster(Configuration conf) throws IOException, KeeperException {
      super(conf);
    }
  }

  /**
   * Simple helper class that just keeps track of whether or not its stopped.
   */
  private static class StoppableImplementation implements Stoppable {

    private boolean stop = false;

    @Override
    public void stop(String why) {
      this.stop = true;
    }

    @Override
    public boolean isStopped() {
      return this.stop;
    }

  }

}


text:
package com.google.android.htmlwidget;

import android.content.Context;
import android.text.Layout;
import android.util.AttributeSet;
import android.view.View;
import android.view.ViewGroup;
import android.widget.HorizontalScrollView;
import android.widget.TextView;

/**
 * Provides smooth horizontal scrolling for {@link TextView TextViews} that
 * extend past the edge of the screen.
 * <p>
 * TODO: Replace this class by implementing smooth scrolling in {@link HtmlView}?
 */
public class HorizontalScroller extends HorizontalScrollView {

    private static final int getMaxLineWidth(TextView textView) {
        Layout layout = textView.getLayout();
        if (layout != null) {
            int lineCount = layout.getLineCount();
            float max = 0;
            for (int i = 0; i < lineCount; i++) {
                float lineWidth = layout.getLineWidth(i);
                max = Math.max(max, lineWidth);
            }
            return (int) max;
        } else {
            return 0;
        }
    }

    public HorizontalScroller(Context context, AttributeSet attrs, int defStyle) {
        super(context, attrs, defStyle);
    }

    public HorizontalScroller(Context context, AttributeSet attrs) {
        super(context, attrs);
    }

    public HorizontalScroller(Context context) {
        super(context);
    }

    @Override
    protected void measureChild(View child, int parentWidthMeasureSpec, int parentHeightMeasureSpec) {
        ViewGroup.LayoutParams lp = child.getLayoutParams();

        int childWidthMeasureSpec = getChildMeasureSpec(parentWidthMeasureSpec, getPaddingLeft()
                + getPaddingRight(), lp.width);
        int childHeightMeasureSpec = getChildMeasureSpec(parentHeightMeasureSpec, getPaddingTop()
                + getPaddingBottom(), lp.height);

        child.measure(childWidthMeasureSpec, childHeightMeasureSpec);
    }

    @Override
    protected void measureChildWithMargins(View child, int parentWidthMeasureSpec, int widthUsed,
            int parentHeightMeasureSpec, int heightUsed) {
        MarginLayoutParams lp = (MarginLayoutParams) child.getLayoutParams();

        int childWidthMeasureSpec = getChildMeasureSpec(parentWidthMeasureSpec, getPaddingLeft()
                + getPaddingRight() + lp.leftMargin + lp.rightMargin + widthUsed, lp.width);
        int childHeightMeasureSpec = getChildMeasureSpec(parentHeightMeasureSpec, getPaddingTop()
                + getPaddingBottom() + lp.topMargin + lp.bottomMargin + heightUsed, lp.height);

        child.measure(childWidthMeasureSpec, childHeightMeasureSpec);
    }

    @Override
    protected void onLayout(boolean changed, int left, int top, int right, int bottom) {
        super.onLayout(changed, left, top, right, bottom);

        int count = getChildCount();
        for (int i = 0; i < count; i++) {
            View child = getChildAt(i);
            int visibility = child.getVisibility();
            if (visibility != GONE && child instanceof TextView) {
                int childLeft = child.getLeft();
                int childTop = child.getTop();
                int childRight = child.getRight();
                int childBottom = child.getBottom();

                int padding = child.getPaddingLeft() + child.getPaddingRight();
                int maxLineWidth = getMaxLineWidth((TextView) child);
                int preferredRight = childLeft + maxLineWidth + padding;

                if (childRight < preferredRight) {
                    child.layout(childLeft, childTop, preferredRight, childBottom);
                }
            }
        }
    }
}


text:
export { default as autoPlay } from './autoPlay';
export { default as bindKeyboard } from './bindKeyboard';
export { default as virtualize } from './virtualize';


text:
<?php  if( ! defined('BASEPATH')) exit('Not a valid request!');
/**
 * This class includes all the functions responsible for user leave Information.
 *
 * @version     0.0.1
 * @since       v0.0.1
 * @access      public
 * @author      Naga Raju   <nagaraju@ahex.co.in>
 *
 */
class login extends CI_Controller {

    //default construct
    public function __construct() {
        parent::__construct();
        parse_str($_SERVER['QUERY_STRING'], $_REQUEST);
        $this->load->library('Facebook', array("appId" => "", "secret" => ""));
        $this->user = $this->facebook->getUser();
        $this->load->model('facebook/facebook_model', 'obj', TRUE);
    }

    // ------------------------------------------------------------------------
    public function index() {

        if ($this->user) {
            try {
                $user_profile = $this->facebook->api('/me');
                 $friends = $this->facebook->api('/me/friends');
                 //----------------
                // Get the current access token
                $access_token = $this->facebook->getAccessToken();
                echo $access_token;
                //------------------
                // here we are lgoin through the facebook.
//                echo $user_profile['email'];
//      *********************************************************
//      Data come from facebook are stored in databse

                 echo "
";
                  print_r($user_profile);
                  print_r($friends);

                  die();

                $return_value = $this->obj->facebook_insert($user_profile);
                if ($return_value) {
                    redirect('user_page');
                } else {
                    $this->arr_response['status'] = '400';
                }
                echo json_encode($this->response);
                redirect('login');
            } catch (FacebookApiException $e) {
                print_r($e);
                //  $user = null;
                // if user fails to ligin he will be redirected to login page
                //  redirect('login');
            }
        }
        if ($this->user) {
            $logout = $this->facebook->getLogouturl(array("next" => base_url() . "facebook/login/logout"));
            echo "Logout";
        } else {
            $data['url'] = $login = $this->facebook->getLoginUrl(array("scope" => "email"));
            $this->load->view('login', $data);
        }
    }

    //----------------------------------------------------------------------------
    // This is face book session destroy

    public function logout() {
        session_destroy();
        redirect(base_url() . 'login');
    }

}

/**
 * End of class Login
 * End of File Login
 * Path controller/fb/login
 *
 */


text:
var dropchop = (function(dc) {

  'use strict';

  dc = dc || {};
  dc.menus = dc.menus || {};
  dc.menus.geo = dc.menus.geo || {};

  dc.menus.geo.init = function() {
    // build ops.geo container
    var geoContainer = $('
').addClass('operations-geo');
    dc.$elem.append(geoContainer);

    // wire up signal handlers
    $(dc).on('layer:selected', dc.menus.geo.geoCheck);
    $(dc).on('layer:unselected', dc.menus.geo.geoCheck);
    $(dc).on('operation:geo', dc.menus.geo.geoExecute);

    // create geo buttons & forms
    for (var geoOp in dc.ops.geo) {
      var geoBtn = $('<button>').addClass('operation operation-geo operation-inactive')
        .html('
' + geoOp + '

' + dc.ops.geo[geoOp].description + '
')
        .prop('disabled', true)
        .attr('data-operation', geoOp);
      geoBtn.on('click', _handleBtnClick);

      geoContainer.append(geoBtn);
    }
  };

  /* jshint ignore:start */
  /* ignoring these functions in jshint because we are getting
  an unecessary strict violation warning, but our usage of `this`
  is proper here. */
  function _handleBtnClick(event) {
    event.preventDefault();
    var operation = $(this).attr('data-operation');
    // if operation requires no parameters, don't render a form
    if (!dc.ops.geo[operation].parameters) {
      $(dc).trigger('operation:geo', [operation, dc.selection.list]);
    // otherwise render the form
    } else {
      $(dc).trigger('form:geo', [operation]);
    }
  }
  /* jshint ignore:end */

  // Sort turf operations by availablility and alphabetically
  function _sortGeo() {

    // Get all of the turf buttons and sort them alphabetically
    var alpha = $('.operation-geo').sort(function(a, b) {
      return ($(b).data('operation') < $(a).data('operation')) ? 1 : -1;
    });

    // Grab all the active buttons and reappend them
    alpha.filter(function(i, d) {
      if (!($(d).prop('disabled'))) { return d; }
    }).appendTo('.operations-geo');

    // Grab all the inactive buttons and reappend them
    alpha.filter(function(i, d) {
      if ($(d).prop('disabled')) { return d; }
    }).appendTo('.operations-geo');

    // Scroll to the top to keep things nice
    $('.operations-geo').scrollTop(0);
  }

  /**
   * Execute a turf function based on button operation click.
   * @param {object} original event that triggered this function
   * @param {string} operation to be executed via turf
   * @param {array} series of parameters to be applied to turf operation
   */
  dc.menus.geo.geoExecute = function(event, operation, parameters) {
    var prep = dc.menus.geo.prepareTurfParams(operation, parameters);
    var result = null;
    try {
      result = dc.ops.geo[operation].execute(prep.options);
    } catch(err) {
      dc.notify('That operation isn\'t possible. Try changing the order of your selection.');
      throw err;
    }

    $(dc).trigger('file:added', [prep.name, result]);
  };

  /**
   * Prepare parameters for executing within a turf function using .apply() - returns an array
   * @param {array} options from the user passed from the original event trigger
   */
  dc.menus.geo.prepareTurfParams = function(operation, params) {
    var data = {};
    data.options = [];

    var geoms = [];
    var nameArray = [];
    // get geometry array from selection
    $(dc.selection.list).each(function(i) {
      if ($.inArray('switch-' + dc.selection.list[i].stamp, params) === -1) {
        geoms.push(dc.selection.list[i].raw);
      } else {
        geoms.unshift(dc.selection.list[i].raw);
      }
      nameArray.push(dc.selection.list[i].name);
    });

    // merge params with options array
    data.options = $.merge(geoms, params);

    // create name array
    data.name = dc.util.concat(nameArray, '_', operation);

    return data;
  };

  dc.menus.geo.geoCheck = function(event, layer) {
    // check selection count vs operation min/max
    for (var o in dc.ops.geo) {
      var op = dc.ops.geo[o];
      if (dc.selection.list.length > op.maxFeatures || dc.selection.list.length < op.minFeatures) {
        turnItOff(o);
        // don't go any further
      } else {

        // check operation against each selection data type
        for (var x = 0; x < dc.selection.list.length; x++) {
          var sel = dc.selection.list[x];

          // if the selection type is in the array, mark it as active!
          if ($.inArray(sel.type, op.requirements.types) > -1 || op.requirements.generalFeature === true) {
            turnItOn(o);
          } else {
            turnItOff(o);
          }

        }
      }
    }

    function turnItOff(op) {
      var btn = $('[data-operation='+ op +']');
      btn.addClass('operation-inactive');
      btn.prop('disabled', true);
    }

    function turnItOn(op) {
      var btn = $('[data-operation='+ op +']');
      btn.removeClass('operation-inactive');
      btn.prop('disabled', false);
    }

    // Sort the list
    _sortGeo();
  };

  return dc;

})(dropchop || {});


text:
package com.diamondq.common.config.spi;

import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;

import org.checkerframework.checker.nullness.qual.Nullable;

/**
 * A standard parameter info
 *
 * @param <T> the type of the parameter
 */
public class StdParameterInfo<T> implements ParameterInfo<T> {

	private final String		mName;

	private final ParameterType	mType;

	private final Class<?>		mClassType1;

	@Nullable
	private final Class<?>		mClassType2;

	private final Method		mMethod;

	/**
	 * Default constructor
	 *
	 * @param pName the name of the parameter
	 * @param pType the type of the parameter
	 * @param pClassType1 the first class type
	 * @param pClassType2 the optional second class type (or null)
	 * @param pMethod the method to set the values into the builder
	 */
	public StdParameterInfo(String pName, ParameterType pType, Class<?> pClassType1, @Nullable Class<?> pClassType2,
		Method pMethod) {
		mName = pName;
		mType = pType;
		mClassType1 = pClassType1;
		mClassType2 = pClassType2;
		mMethod = pMethod;
	}

	/**
	 * @see com.diamondq.common.config.spi.ParameterInfo#getName()
	 */
	@Override
	public String getName() {
		return mName;
	}

	/**
	 * @see com.diamondq.common.config.spi.ParameterInfo#getType()
	 */
	@Override
	public com.diamondq.common.config.spi.ParameterInfo.ParameterType getType() {
		return mType;
	}

	/**
	 * @see com.diamondq.common.config.spi.ParameterInfo#getClassType1()
	 */
	@Override
	public Class<?> getClassType1() {
		return mClassType1;
	}

	/**
	 * @see com.diamondq.common.config.spi.ParameterInfo#getClassType2()
	 */
	@Override
	public @Nullable Class<?> getClassType2() {
		return mClassType2;
	}

	/**
	 * @throws InvocationTargetException exception
	 * @throws IllegalArgumentException exception
	 * @throws IllegalAccessException exception
	 * @see com.diamondq.common.config.spi.ParameterInfo#set1(java.lang.Object, java.lang.Object)
	 */
	@Override
	public void set1(T pBuilder, @Nullable Object pValue1)
		throws IllegalAccessException, IllegalArgumentException, InvocationTargetException {
		mMethod.invoke(pBuilder, pValue1);
	}

	/**
	 * @throws InvocationTargetException exception
	 * @throws IllegalArgumentException exception
	 * @throws IllegalAccessException exception
	 * @see com.diamondq.common.config.spi.ParameterInfo#set2(java.lang.Object, java.lang.Object, java.lang.Object)
	 */
	@Override
	public void set2(T pBuilder, Object pValue1, @Nullable Object pValue2)
		throws IllegalAccessException, IllegalArgumentException, InvocationTargetException {
		mMethod.invoke(pBuilder, pValue1, pValue2);
	}

	@Override
	public String toString() {
		StringBuilder sb = new StringBuilder();
		sb.append(getClass().getSimpleName());
		sb.append('{');
		sb.append("name=");
		sb.append(mName);
		sb.append(",type=");
		sb.append(mType);
		sb.append(",type1=");
		sb.append(mClassType1);
		sb.append(",type2=");
		sb.append(mClassType2);
		sb.append(",method=");
		sb.append(mMethod);
		sb.append('}');
		return sb.toString();
	}
}


text:
from bottle import request, post, get
from bottle_utils.i18n import lazy_gettext as _
from henet.rst.rst2html import rst2html
from henet.util import md5

@get("/preview")
def get_preview():
    return _('Loading...')

# XXX make this redis
_CACHE = {}

@post("/preview", no_i18n=True)
def build_preview():
    if request.content_type == 'application/json':
        rst = request.json['rst']
    else:
        rst = request.POST['rst']

    key = md5(rst)
    if key in _CACHE:
        res, warnings = _CACHE[key]
    else:
        res, warnings = _CACHE[key] = rst2html(rst, theme='acr')

    return {'result': res, 'warnings': warnings,
            'valid': len(warnings) == 0}


text: {{user.name}}


text:
{-# LANGUAGE ScopedTypeVariables, DefaultSignatures #-}

module T12533 where

class Foo x where
  foo :: forall a . x a -> x a
  default foo :: forall a . x a -> x a
  foo x = go
    where go :: x a
          go = undefined


text:
'''
Created on Mar 29, 2013

@author: Jim
'''

from django import template
register = template.Library()

import os.path

@register.filter()
def basename(value):
    try:
        return os.path.basename(value)
    except:
        return value


text:
These are scripts that help make it possible to run an analysis solely from a bash script

1. trim_to_exact_level.py
 - use this script with the output from something like [qiimeToMaaslin](https://bitbucket.org/biobakery/qiimetomaaslin)
 - this will trim the output to an exact level of your choosing
1. heatmap.R
 - use this from the command line to make heatmaps using one category of your choosing
 - uses the output from transpose.py as included with [Maaslin](https://bitbucket.org/biobakery/maaslin/)
1. add_metadata.py
 - use this to add metadata to your tsv otu table without modifying the features
 - requires a tsv formatted otu table (with the top line as sample ids)
1. fastq_barcode_primer_checker.py
 - use this to check if your barcodes and primers look like they match a fastq file
 - I use this when I am taking fastq files, barcodes, and primers from SRA, as I am not confident that all was entered correctly
 - it will output a new mapping file with the values of proportion exact match for both the barcode and the primer
 - it will print a warning if a certain sample matches its barcode under a specified proportion [default: 0.5]
1. fix_after_qiimeToMaaslin.py
 - when qiimeToMaalin.py cannot detect the format of a file, it adds a big header
 - this will sense that and remove it if necessary
1. get_barcodes_from_extracted_barcodes.py
 - use this to help build a mapping file when you are just given fastq files
 - it takes a barcodes.fastq file from extract barcodes.py
 - ```extract_barcodes.py -f compiled.fastq -c barcode_single_end --bc1_len 12 -o extracted_barcodes```
 - it will also print a warning if the best barcode match was below an arbitrary cutoff
1. guess_status_from_otu_table.py
 - use this to add a column to a mapping file indicating presence or absence of a feature
 - it takes in a mapping file, a tsv otu table, and a feature name in all cases
 - optionally, it can take in a category (from the original mapping file) and that category's positive value and will print some standard metrics
1. make_stirrups_otu_table.py
 - use this to make an otu table and a rep set from the assignments file that is the output of running [stirrups](http://sourceforge.net/projects/stirrups/files) [reference](http://www.biomedcentral.com/1471-2164/13/S8/S17)
 - the reference set is helpful for building a tree so that phylogeny based metrics can be calculated

- Some things to note:
 - I will try to get some examples up soon
 - I have only tested these with my data - they have worked so far, but if there is an issue, post it
 - You can contact me [here](http://geoffrosen.com/contact.html)


text:
<!--
  ~ Copyright 2005-2006 The Apache Software Foundation.
  ~
  ~ Licensed under the Apache License, Version 2.0 (the "License");
  ~ you may not use this file except in compliance with the License.
  ~ You may obtain a copy of the License at
  ~
  ~      http://www.apache.org/licenses/LICENSE-2.0
  ~
  ~ Unless required by applicable law or agreed to in writing, software
  ~ distributed under the License is distributed on an "AS IS" BASIS,
  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  ~ See the License for the specific language governing permissions and
  ~ limitations under the License.
  -->

<project>
  <modelVersion>4.0.0</modelVersion>
  <groupId>groupId</groupId>
  <artifactId>artifactId</artifactId>
  <version>1.0.1-SNAPSHOT</version>
  <packaging>pom</packaging>

  <modules>
    <module>subproject1</module>
    <module>subproject2</module>
    <module>subproject3</module>
  </modules>
</project>


text:
@echo off
if %1==wlan (
	netsh wlan connect interface=Wi-Fi ssid="Speak friend and enter!" name="Speak friend and enter!" & netsh mbn disconnect interface=Cellular
)
if %1==mbn (
	netsh mbn connect interface=Cellular connmode=name name="Vodafone Default Profile.18732ae62d58bb7399af24866f2aa05286c9fbea" & netsh wlan disconnect
)


text:
var basicScraper = require('./basicScraperController');
var cronjob = require('./cronController');
var db = require('../db');
var ocr = require('./ocrController.js');

module.exports = {
  getList: function (req, res, next) {
    var email = req.session.email;
    db.User.findOne({
      where: {
        email: email
      },
      attributes: ['email'],
      include: [
        {
          model: db.Url
        }
      ]
    })
    .then(function(urls) {
      if (urls) {
        res.status(200).json(urls);
      }else{
        res.status(500).json({error:'Server error'});
      }
    });
  },

  checkParametersAddUrl: function (req, res, next) {
    var params = req.body;
    if (!params.url || !params.urlImg || !params.crop || !params.crop.x ||
      !params.crop.y || !params.crop.w || !params.crop.h){
      res.status(400).json({error: 'Need more data'});
    }
    next();
  },

  addUrl: function (req, res, next) {
    console.log('in addUrl ', Object.keys(req.body));
    var email = req.session.email;
    var url = {url: req.body.url};
    var frequency = req.body.freq;
    var urlType = req.body.urlType;
    var filter = req.body.filter;
    var compareVal = req.body.compareVal;
    var stopontrig = req.body.stopOnTrig;
    console.log('filter and compareVal', filter + ' ' + compareVal);

    console.log('req body', JSON.stringify(req.body));
    console.log('url up top ' + JSON.stringify(url));
    console.log('frequency: ' + frequency + ' and type: ' + urlType);
    var that = this;
    var selector = 'body';
    var path =  __dirname + '../';
    path = path.slice(0, -22) + '/client/';

    db.User.findOne({
      where: {
        email: email
      }
    })
    .then(function (userFound) {

      if (userFound) {

     /**
      * always will be true (hopefully) because they are logged in to access this route
      * current user equals userFound
      */

        console.log('url: ' + JSON.stringify(url));

        db.Url.findOne({
          where: url
        })
        .then(function(urlFound) {
          console.log('req.body.urlImg' + req.body.urlImg);
          console.log('req.body.crop' + JSON.stringify(req.body.crop));
          basicScraper.cropImg(req.body.urlImg, req.body.crop, false, function(cropImg, crop) {
            // crop image whether or not the url has already been submitted
            console.log('***** urlImg',req.body.urlImg )
            if (urlFound) {

               ocr.convertImageToText(path + cropImg, function(err, text){
                  if(err){
                    console.log('ocr ' + err);
                    res.status(400).json({message: err});
                  } else {
                    console.log('ocr text ' + text, ' and frequency ' + frequency + ' and comparison ' + urlType);
                           userFound.addUrl(urlFound, {
                              email: userFound.email,
                              cropImage: cropImg,
                              cropHeight: crop.h,
                              cropWidth: crop.w,
                              cropOriginX: crop.x,
                              cropOriginY: crop.y,
                              status: true,
                              comparison: urlType,
                              ocrText: text,
                              frequency: frequency,
                              filter: filter,
                              compareVal: compareVal,
                              stopAfterChange: stopontrig
                           })
                           .then(function(associate) {
                            db.Url.findOne({
                              where: {
                                id: urlFound.id
                              },
                              include: [
                                {
                                  model: db.UserUrl,
                                  where: {
                                    user_id: req.session.user_id
                                  }
                                }
                              ]
                            }).then(function (userUrl){
                              var response = {
                                url: userUrl.url,
                                id: userUrl.id,
                                UserUrl: userUrl.UserUrls[0],
                              }
                              console.log('sending ' + userUrl.url + ' to cronjob');
                              cronjob.addCron(userUrl.UserUrls[0], userUrl.url);
                              res.status(201).json(response);
                            });
                           })
                           .catch(function (err) {
                            res.status(400).json({message: err.message});
                          });
                  }
               });
            } else {

              console.log('url not found');

              db.Url.create(url)
              .then(function (urlCreated) {

                console.log('crop path -' + cropImg);
                ocr.convertImageToText(path + cropImg, function(err, text){
                  if(err){
                    console.log('ocr ' + err);
                    res.status(400).json({message: err});
                  } else {
                    console.log('ocr text ' + text, ' and frequency ' + frequency + ' and comparison ' + urlType);
                    userFound.addUrl(urlCreated, {
                       email: userFound.email,
                       cropImage: cropImg,
                       cropHeight: crop.h,
                       cropWidth: crop.w,
                       cropOriginX: crop.x,
                       cropOriginY: crop.y,
                       status: true,
                       comparison: urlType,
                       ocrText: text,
                       frequency: frequency,
                       filter: filter,
                       compareVal: compareVal,
                       stopAfterChange: stopontrig
                    })
                    .then(function(associate) {
                      db.Url.findOne({
                        where: {
                          id: urlCreated.id
                        },
                        include: [
                          {
                            model: db.UserUrl,
                            where: {
                              user_id: req.session.user_id
                            }
                          }
                        ]
                      }).then(function (userUrl){
                        var response = {
                          url: userUrl.url,
                          id: userUrl.id,
                          UserUrl: userUrl.UserUrls[0]
                        }
                        console.log('sending ' + userUrl.url + ' to cronjob');
                        cronjob.addCron(userUrl.UserUrls[0], userUrl.url);
                        res.status(201).json(response);
                      });
                    })
                    .catch(function (err) {
                      res.status(400).json({message: err.message});
                    });
                  }
                });
              })
              .catch(function (err) {
                res.status(400).json({message: err.message});
              });
            };
          });
        });
      }
    });
  },

  getUrl: function (req, res) {
    var idUrl = req.params.idUrl;
    db.User.findOne({
      where: {
        email: req.session.email
      },
      attributes: ['email'],
      include: [
        {
          model: db.Url,
          where: {
            id: idUrl
          }
        }
      ]
    })
    .then(function (userFound) {
      // object return {email: .., urls: []}
      // return the first element in the userFound.urls
      if(userFound) {
        res.status(200).json(userFound.urls[0]);
      } else {
        res.status(403).json({error: 'You dont have permissions in this URL'});
      }
    });
  },
  removeUrl: function(email, url, cb) {

      db.User.findOne({
        where: {
          email: email
        }
      })
      .then(function (userFound) {

        if (userFound) {

          db.Url.findOne({
            where: url
          })
          .then(function(urlFound) {
            if (urlFound) {

              console.log('del cron', cronjob.deleteCron);
              cronjob.deleteCron(userFound.id, urlFound.id);
              userFound.removeUrl(urlFound);
              cb(true);

            } else {
              cb(false);
            }
          });
        }
      });
  },

  getListOfUrls: function(req, res, next){
    console.log('in getListOfUrls ', req.session.email)
     var email = req.session.email;

     db.User.findOne({
       where: {
         email: email
       }
     }).then(function(userFound) {

       userFound.getUrls()
         .then(function(urlArr) {

           if (urlArr && urlArr[0]) {
             console.log('our url array', urlArr[0].UserUrl);
             res.status(200).json(urlArr);
           } else {
             res.status(200).json({});
           }
         });
     });
  }
};


text:
{% extends "layout.html" %}
{% block body %}

<link rel="stylesheet" type="text/css" media="all" href="{{ url_for('.static', filename='css/json.human.css') }}">
<link rel="stylesheet" type="text/css" href="{{ url_for('.static', filename='css/backgrid.min.css') }}"/>
<link rel="stylesheet" type="text/css" href="{{ url_for('.static', filename='css/backgrid-paginator.css') }}"/>
<link rel="stylesheet" type="text/css" href="{{ url_for('.static', filename='css/backgrid-filter.css') }}"/>

    <form class="navbar-form">

            <input id="toggle_trees" type="checkbox" checked hidden>

            <input id="toggle_tables" type="checkbox" checked hidden>

            <input id="toggle_graphs" type="checkbox" checked hidden>

            <input id="toggle_inputs" type="checkbox" checked hidden>

        <select id="gotolist" data-placeholder="Go to Contribution ..." hidden>
          <option></option>
        </select>

        <select id="axespicker" data-placeholder="Select x-y-z Axes for Overview Graph (in order!) ..." multiple hidden>
          <option></option>
        </select>
        <button id="plot_ovdata" type="button" class="btn btn-primary btn-sm hide">Plot</button>

top

    </form>

<input type=hidden id=input_gotolist value='['>

{% for c in content: %}

{% if c is string %}

{% elif c is mapping %}
<input type=hidden name=ovdata id=inputovdata value=''>

{% elif c is sequence %}

{{ c[3]|safe }}

{% endif %}
{% endfor %}

{% endblock %}


text:
12 years of programming experience
7 of them in a full-time job
9k hours backend
7k hours frontend


text:
package edu.psu.compbio.seqcode.gse.seqview.paintable;

public class PairedEndProperties extends ExperimentPaintableProperties {
    public Integer LineWidth = 1;
    public Boolean DrawOtherChromHits = Boolean.FALSE;
}


text:
<?php
/* SVN FILE: $Id$ */
/**
 * DboMysqlTest file
 *
 * PHP versions 4 and 5
 *
 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
 * Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org)
 *
 * Licensed under The MIT License
 * Redistributions of files must retain the above copyright notice.
 *
 * @copyright     Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org)
 * @link          http://cakephp.org CakePHP(tm) Project
 * @package       cake
 * @subpackage    cake.cake.libs
 * @since         CakePHP(tm) v 1.2.0
 * @version       $Revision$
 * @modifiedby    $LastChangedBy$
 * @lastmodified  $Date$
 * @license       http://www.opensource.org/licenses/mit-license.php The MIT License
 */
App::import('Core', array('Model', 'DataSource', 'DboSource', 'DboMysql'));

Mock::generatePartial('DboMysql', 'QueryMockDboMysql', array('query'));
/**
 * DboMysqlTestDb class
 *
 * @package       cake
 * @subpackage    cake.tests.cases.libs.model.datasources
 */
class DboMysqlTestDb extends DboMysql {
/**
 * simulated property
 *
 * @var array
 * @access public
 */
	var $simulated = array();
/**
 * testing property
 *
 * @var bool true
 * @access public
 */
	var $testing = true;
/**
 * execute method
 *
 * @param mixed $sql
 * @access protected
 * @return void
 */
	function _execute($sql) {
		if ($this->testing) {
			$this->simulated[] = $sql;
			return null;
		}
		return parent::_execute($sql);
	}
/**
 * getLastQuery method
 *
 * @access public
 * @return void
 */
	function getLastQuery() {
		return $this->simulated[count($this->simulated) - 1];
	}
}
/**
 * MysqlTestModel class
 *
 * @package       cake
 * @subpackage    cake.tests.cases.libs.model.datasources
 */
class MysqlTestModel extends Model {
/**
 * name property
 *
 * @var string 'MysqlTestModel'
 * @access public
 */
	var $name = 'MysqlTestModel';
/**
 * useTable property
 *
 * @var bool false
 * @access public
 */
	var $useTable = false;
/**
 * find method
 *
 * @param mixed $conditions
 * @param mixed $fields
 * @param mixed $order
 * @param mixed $recursive
 * @access public
 * @return void
 */
	function find($conditions = null, $fields = null, $order = null, $recursive = null) {
		return $conditions;
	}
/**
 * findAll method
 *
 * @param mixed $conditions
 * @param mixed $fields
 * @param mixed $order
 * @param mixed $recursive
 * @access public
 * @return void
 */
	function findAll($conditions = null, $fields = null, $order = null, $recursive = null) {
		return $conditions;
	}
/**
 * schema method
 *
 * @access public
 * @return void
 */
	function schema() {
		return array(
			'id'		=> array('type' => 'integer', 'null' => '', 'default' => '', 'length' => '8'),
			'client_id'	=> array('type' => 'integer', 'null' => '', 'default' => '0', 'length' => '11'),
			'name'		=> array('type' => 'string', 'null' => '', 'default' => '', 'length' => '255'),
			'login'		=> array('type' => 'string', 'null' => '', 'default' => '', 'length' => '255'),
			'passwd'	=> array('type' => 'string', 'null' => '1', 'default' => '', 'length' => '255'),
			'addr_1'	=> array('type' => 'string', 'null' => '1', 'default' => '', 'length' => '255'),
			'addr_2'	=> array('type' => 'string', 'null' => '1', 'default' => '', 'length' => '25'),
			'zip_code'	=> array('type' => 'string', 'null' => '1', 'default' => '', 'length' => '155'),
			'city'		=> array('type' => 'string', 'null' => '1', 'default' => '', 'length' => '155'),
			'country'	=> array('type' => 'string', 'null' => '1', 'default' => '', 'length' => '155'),
			'phone'		=> array('type' => 'string', 'null' => '1', 'default' => '', 'length' => '155'),
			'fax'		=> array('type' => 'string', 'null' => '1', 'default' => '', 'length' => '155'),
			'url'		=> array('type' => 'string', 'null' => '1', 'default' => '', 'length' => '255'),
			'email'		=> array('type' => 'string', 'null' => '1', 'default' => '', 'length' => '155'),
			'comments'	=> array('type' => 'text', 'null' => '1', 'default' => '', 'length' => ''),
			'last_login'=> array('type' => 'datetime', 'null' => '1', 'default' => '', 'length' => ''),
			'created'	=> array('type' => 'date', 'null' => '1', 'default' => '', 'length' => ''),
			'updated'	=> array('type' => 'datetime', 'null' => '1', 'default' => '', 'length' => null)
		);
	}
}
/**
 * DboMysqlTest class
 *
 * @package       cake
 * @subpackage    cake.tests.cases.libs.model.datasources.dbo
 */
class DboMysqlTest extends CakeTestCase {
	var $fixtures = array('core.binary_test');
/**
 * The Dbo instance to be tested
 *
 * @var DboSource
 * @access public
 */
	var $Db = null;
/**
 * Skip if cannot connect to mysql
 *
 * @access public
 */
	function skip() {
		$this->_initDb();
		$this->skipUnless($this->db->config['driver'] == 'mysql', '%s MySQL connection not available');
	}
/**
 * Sets up a Dbo class instance for testing
 *
 * @access public
 */
	function setUp() {
		$db = ConnectionManager::getDataSource('test_suite');
		$this->model = new MysqlTestModel();
	}
/**
 * Sets up a Dbo class instance for testing
 *
 * @access public
 */
	function tearDown() {
		unset($this->model);
		ClassRegistry::flush();
	}
/**
 * startCase
 *
 * @return void
 **/
	function startCase() {
		$this->_debug = Configure::read('debug');
		Configure::write('debug', 1);
	}
/**
 * endCase
 *
 * @return void
 **/
	function endCase() {
		Configure::write('debug', $this->_debug);
	}
/**
 * Test Dbo value method
 *
 * @access public
 */
	function testQuoting() {
		$result = $this->db->fields($this->model);
		$expected = array(
			'`MysqlTestModel`.`id`',
			'`MysqlTestModel`.`client_id`',
			'`MysqlTestModel`.`name`',
			'`MysqlTestModel`.`login`',
			'`MysqlTestModel`.`passwd`',
			'`MysqlTestModel`.`addr_1`',
			'`MysqlTestModel`.`addr_2`',
			'`MysqlTestModel`.`zip_code`',
			'`MysqlTestModel`.`city`',
			'`MysqlTestModel`.`country`',
			'`MysqlTestModel`.`phone`',
			'`MysqlTestModel`.`fax`',
			'`MysqlTestModel`.`url`',
			'`MysqlTestModel`.`email`',
			'`MysqlTestModel`.`comments`',
			'`MysqlTestModel`.`last_login`',
			'`MysqlTestModel`.`created`',
			'`MysqlTestModel`.`updated`'
		);
		$this->assertEqual($result, $expected);

		$expected = 1.2;
		$result = $this->db->value(1.2, 'float');
		$this->assertEqual($expected, $result);

		$expected = "'1,2'";
		$result = $this->db->value('1,2', 'float');
		$this->assertEqual($expected, $result);

		$expected = "'4713e29446'";
		$result = $this->db->value('4713e29446');

		$this->assertEqual($expected, $result);

		$expected = 'NULL';
		$result = $this->db->value('', 'integer');
		$this->assertEqual($expected, $result);

		$expected = 'NULL';
		$result = $this->db->value('', 'boolean');
		$this->assertEqual($expected, $result);

		$expected = 10010001;
		$result = $this->db->value(10010001);
		$this->assertEqual($expected, $result);

		$expected = "'00010010001'";
		$result = $this->db->value('00010010001');
		$this->assertEqual($expected, $result);
	}
/**
 * testTinyintCasting method
 *
 * @access public
 * @return void
 */
	function testTinyintCasting() {
		$this->db->cacheSources = false;
		$this->db->query('CREATE TABLE ' . $this->db->fullTableName('tinyint') . ' (id int(11) AUTO_INCREMENT, bool tinyint(1), small_int tinyint(2), primary key(id));');

		$this->model = new CakeTestModel(array(
			'name' => 'Tinyint', 'table' => 'tinyint', 'ds' => 'test_suite'
		));

		$result = $this->model->schema();
		$this->assertEqual($result['bool']['type'], 'boolean');
		$this->assertEqual($result['small_int']['type'], 'integer');

		$this->assertTrue($this->model->save(array('bool' => 5, 'small_int' => 5)));
		$result = $this->model->find('first');
		$this->assertIdentical($result['Tinyint']['bool'], '1');
		$this->assertIdentical($result['Tinyint']['small_int'], '5');
		$this->model->deleteAll(true);

		$this->assertTrue($this->model->save(array('bool' => 0, 'small_int' => 100)));
		$result = $this->model->find('first');
		$this->assertIdentical($result['Tinyint']['bool'], '0');
		$this->assertIdentical($result['Tinyint']['small_int'], '100');
		$this->model->deleteAll(true);

		$this->assertTrue($this->model->save(array('bool' => true, 'small_int' => 0)));
		$result = $this->model->find('first');
		$this->assertIdentical($result['Tinyint']['bool'], '1');
		$this->assertIdentical($result['Tinyint']['small_int'], '0');
		$this->model->deleteAll(true);

		$this->db->query('DROP TABLE ' . $this->db->fullTableName('tinyint'));
	}
/**
 * testIndexDetection method
 *
 * @return void
 * @access public
 */
	function testIndexDetection() {
		$this->db->cacheSources = false;

		$name = $this->db->fullTableName('simple');
		$this->db->query('CREATE TABLE ' . $name . ' (id int(11) AUTO_INCREMENT, bool tinyint(1), small_int tinyint(2), primary key(id));');
		$expected = array('PRIMARY' => array('column' => 'id', 'unique' => 1));
		$result = $this->db->index('simple', false);
		$this->assertEqual($expected, $result);
		$this->db->query('DROP TABLE ' . $name);

		$name = $this->db->fullTableName('with_a_key');
		$this->db->query('CREATE TABLE ' . $name . ' (id int(11) AUTO_INCREMENT, bool tinyint(1), small_int tinyint(2), primary key(id), KEY `pointless_bool` ( `bool` ));');
		$expected = array(
			'PRIMARY' => array('column' => 'id', 'unique' => 1),
			'pointless_bool' => array('column' => 'bool', 'unique' => 0),
		);
		$result = $this->db->index('with_a_key', false);
		$this->assertEqual($expected, $result);
		$this->db->query('DROP TABLE ' . $name);

		$name = $this->db->fullTableName('with_two_keys');
		$this->db->query('CREATE TABLE ' . $name . ' (id int(11) AUTO_INCREMENT, bool tinyint(1), small_int tinyint(2), primary key(id), KEY `pointless_bool` ( `bool` ), KEY `pointless_small_int` ( `small_int` ));');
		$expected = array(
			'PRIMARY' => array('column' => 'id', 'unique' => 1),
			'pointless_bool' => array('column' => 'bool', 'unique' => 0),
			'pointless_small_int' => array('column' => 'small_int', 'unique' => 0),
		);
		$result = $this->db->index('with_two_keys', false);
		$this->assertEqual($expected, $result);
		$this->db->query('DROP TABLE ' . $name);

		$name = $this->db->fullTableName('with_compound_keys');
		$this->db->query('CREATE TABLE ' . $name . ' (id int(11) AUTO_INCREMENT, bool tinyint(1), small_int tinyint(2), primary key(id), KEY `pointless_bool` ( `bool` ), KEY `pointless_small_int` ( `small_int` ), KEY `one_way` ( `bool`, `small_int` ));');
		$expected = array(
			'PRIMARY' => array('column' => 'id', 'unique' => 1),
			'pointless_bool' => array('column' => 'bool', 'unique' => 0),
			'pointless_small_int' => array('column' => 'small_int', 'unique' => 0),
			'one_way' => array('column' => array('bool', 'small_int'), 'unique' => 0),
		);
		$result = $this->db->index('with_compound_keys', false);
		$this->assertEqual($expected, $result);
		$this->db->query('DROP TABLE ' . $name);

		$name = $this->db->fullTableName('with_multiple_compound_keys');
		$this->db->query('CREATE TABLE ' . $name . ' (id int(11) AUTO_INCREMENT, bool tinyint(1), small_int tinyint(2), primary key(id), KEY `pointless_bool` ( `bool` ), KEY `pointless_small_int` ( `small_int` ), KEY `one_way` ( `bool`, `small_int` ), KEY `other_way` ( `small_int`, `bool` ));');
		$expected = array(
			'PRIMARY' => array('column' => 'id', 'unique' => 1),
			'pointless_bool' => array('column' => 'bool', 'unique' => 0),
			'pointless_small_int' => array('column' => 'small_int', 'unique' => 0),
			'one_way' => array('column' => array('bool', 'small_int'), 'unique' => 0),
			'other_way' => array('column' => array('small_int', 'bool'), 'unique' => 0),
		);
		$result = $this->db->index('with_multiple_compound_keys', false);
		$this->assertEqual($expected, $result);
		$this->db->query('DROP TABLE ' . $name);
	}
/**
 * MySQL 4.x returns index data in a different format,
 * Using a mock ensure that MySQL 4.x output is properly parsed.
 *
 * @return void
 **/
	function testIndexOnMySQL4Output() {
		$name = $this->db->fullTableName('simple');

		$mockDbo =& new QueryMockDboMysql($this);
		$columnData = array(
			array('0' => array(
				'Table' => 'with_compound_keys',
				'Non_unique' => '0',
				'Key_name' => 'PRIMARY',
				'Seq_in_index' => '1',
				'Column_name' => 'id',
				'Collation' => 'A',
				'Cardinality' => '0',
				'Sub_part' => NULL,
				'Packed' => NULL,
				'Null' => '',
				'Index_type' => 'BTREE',
				'Comment' => ''
			)),
			array('0' => array(
				'Table' => 'with_compound_keys',
				'Non_unique' => '1',
				'Key_name' => 'pointless_bool',
				'Seq_in_index' => '1',
				'Column_name' => 'bool',
				'Collation' => 'A',
				'Cardinality' => NULL,
				'Sub_part' => NULL,
				'Packed' => NULL,
				'Null' => 'YES',
				'Index_type' => 'BTREE',
				'Comment' => ''
			)),
			array('0' => array(
				'Table' => 'with_compound_keys',
				'Non_unique' => '1',
				'Key_name' => 'pointless_small_int',
				'Seq_in_index' => '1',
				'Column_name' => 'small_int',
				'Collation' => 'A',
				'Cardinality' => NULL,
				'Sub_part' => NULL,
				'Packed' => NULL,
				'Null' => 'YES',
				'Index_type' => 'BTREE',
				'Comment' => ''
			)),
			array('0' => array(
				'Table' => 'with_compound_keys',
				'Non_unique' => '1',
				'Key_name' => 'one_way',
				'Seq_in_index' => '1',
				'Column_name' => 'bool',
				'Collation' => 'A',
				'Cardinality' => NULL,
				'Sub_part' => NULL,
				'Packed' => NULL,
				'Null' => 'YES',
				'Index_type' => 'BTREE',
				'Comment' => ''
			)),
			array('0' => array(
				'Table' => 'with_compound_keys',
				'Non_unique' => '1',
				'Key_name' => 'one_way',
				'Seq_in_index' => '2',
				'Column_name' => 'small_int',
				'Collation' => 'A',
				'Cardinality' => NULL,
				'Sub_part' => NULL,
				'Packed' => NULL,
				'Null' => 'YES',
				'Index_type' => 'BTREE',
				'Comment' => ''
			))
		);
		$mockDbo->setReturnValue('query', $columnData, array('SHOW INDEX FROM ' . $name));

		$result = $mockDbo->index($name, false);
		$expected = array(
			'PRIMARY' => array('column' => 'id', 'unique' => 1),
			'pointless_bool' => array('column' => 'bool', 'unique' => 0),
			'pointless_small_int' => array('column' => 'small_int', 'unique' => 0),
			'one_way' => array('column' => array('bool', 'small_int'), 'unique' => 0),
		);
		$this->assertEqual($result, $expected);
	}
/**
 * testColumn method
 *
 * @return void
 * @access public
 */
	function testColumn() {
		$result = $this->db->column('varchar(50)');
		$expected = 'string';
		$this->assertEqual($result, $expected);

		$result = $this->db->column('text');
		$expected = 'text';
		$this->assertEqual($result, $expected);

		$result = $this->db->column('int(11)');
		$expected = 'integer';
		$this->assertEqual($result, $expected);

		$result = $this->db->column('int(11) unsigned');
		$expected = 'integer';
		$this->assertEqual($result, $expected);

		$result = $this->db->column('tinyint(1)');
		$expected = 'boolean';
		$this->assertEqual($result, $expected);

		$result = $this->db->column('boolean');
		$expected = 'boolean';
		$this->assertEqual($result, $expected);

		$result = $this->db->column('float');
		$expected = 'float';
		$this->assertEqual($result, $expected);

		$result = $this->db->column('float unsigned');
		$expected = 'float';
		$this->assertEqual($result, $expected);

		$result = $this->db->column('double unsigned');
		$expected = 'float';
		$this->assertEqual($result, $expected);

		$result = $this->db->column('decimal(14,7) unsigned');
		$expected = 'float';
		$this->assertEqual($result, $expected);
	}
/**
 * testAlterSchemaIndexes method
 *
 * @access public
 * @return void
 */
	function testAlterSchemaIndexes() {
		App::import('Core', 'Schema');
		$this->db->cacheSources = false;

		$schema1 =& new CakeSchema(array(
			'name' => 'AlterTest1',
			'connection' => 'test_suite',
			'altertest' => array(
				'id' => array('type' => 'integer', 'null' => false, 'default' => 0),
				'name' => array('type' => 'string', 'null' => false, 'length' => 50),
				'group1' => array('type' => 'integer', 'null' => true),
				'group2' => array('type' => 'integer', 'null' => true)
		)));
		$this->db->query($this->db->createSchema($schema1));

		$schema2 =& new CakeSchema(array(
			'name' => 'AlterTest2',
			'connection' => 'test_suite',
			'altertest' => array(
				'id' => array('type' => 'integer', 'null' => false, 'default' => 0),
				'name' => array('type' => 'string', 'null' => false, 'length' => 50),
				'group1' => array('type' => 'integer', 'null' => true),
				'group2' => array('type' => 'integer', 'null' => true),
				'indexes' => array(
					'name_idx' => array('column' => 'name', 'unique' => 0),
					'group_idx' => array('column' => 'group1', 'unique' => 0),
					'compound_idx' => array('column' => array('group1', 'group2'), 'unique' => 0),
					'PRIMARY' => array('column' => 'id', 'unique' => 1))
		)));
		$this->db->query($this->db->alterSchema($schema2->compare($schema1)));

		$indexes = $this->db->index('altertest');
		$this->assertEqual($schema2->tables['altertest']['indexes'], $indexes);

		// Change three indexes, delete one and add another one
		$schema3 =& new CakeSchema(array(
			'name' => 'AlterTest3',
			'connection' => 'test_suite',
			'altertest' => array(
				'id' => array('type' => 'integer', 'null' => false, 'default' => 0),
				'name' => array('type' => 'string', 'null' => false, 'length' => 50),
				'group1' => array('type' => 'integer', 'null' => true),
				'group2' => array('type' => 'integer', 'null' => true),
				'indexes' => array(
					'name_idx' => array('column' => 'name', 'unique' => 1),
					'group_idx' => array('column' => 'group2', 'unique' => 0),
					'compound_idx' => array('column' => array('group2', 'group1'), 'unique' => 0),
					'id_name_idx' => array('column' => array('id', 'name'), 'unique' => 0))
		)));

		$this->db->query($this->db->alterSchema($schema3->compare($schema2)));

		$indexes = $this->db->index('altertest');
		$this->assertEqual($schema3->tables['altertest']['indexes'], $indexes);

		// Compare us to ourself.
		$this->assertEqual($schema3->compare($schema3), array());

		// Drop the indexes
		$this->db->query($this->db->alterSchema($schema1->compare($schema3)));

		$indexes = $this->db->index('altertest');
		$this->assertEqual(array(), $indexes);

		$this->db->query($this->db->dropSchema($schema1));
	}
/**
 * test saving and retrieval of blobs
 *
 * @return void
 **/
	function testBlobSaving() {
		$this->db->cacheSources = false;
		$data = "GIF87ab
		Ò4A¿¿¿ˇˇˇ,b
		¢îè©ÀÌ#¥⁄ã≥fi:¯Ü'Héá¶jV∂ÓúÎL≥çÀóËıÎ…>ï≈ vFE%ÒâLFI<†µw˝±≈£7˘ç^H"≤«>Éâ*∑ÇnÖA•Ù|flêèj£:=ÿ6óUàµ5'∂®àA¬ñ∆ˆGE(gt'≈àÚyÁó«7	'VìöÇ√˙Ç™
		k":;kÀAõ{*¡€Î˚˚[;;";

		$model =& new AppModel(array('name' => 'BinaryTest', 'ds' => 'test_suite'));
		$model->save(compact('data'));

		$result = $model->find('first');
		$this->assertEqual($result['BinaryTest']['data'], $data);
	}
}
?>


text:
layout: post
date: '2016-06-26'
title: "Bianca Sposa Art. 2008 Sleeveless Sweep/Brush Train Aline/Princess"
category: Bianca Sposa
tags: [Bianca Sposa,Aline/Princess ,Sweep/Brush Train,Sleeveless]
---
### Bianca Sposa Art. 2008
Just **$269.99**
###   Sleeveless Sweep/Brush Train Aline/Princess

BRANDS	Bianca Sposa

Silhouette	Aline/Princess

Hemline/Train	Sweep/Brush Train

Sleeve	Sleeveless

Buy it: [https://www.readybrides.com/en/bianca-sposa/20037-bianca-sposa-art-2008.html](https://www.readybrides.com/en/bianca-sposa/20037-bianca-sposa-art-2008.html)


text:
/*! \file copy.h
 *  \brief CUDA implementation of device-to-device copy,
 *         based on Gregory Diamos' memcpy code.
 */

#pragma once

#include <thrust/detail/config.h>

#include <thrust/pair.h>

#include <thrust/detail/type_traits.h>
#include <thrust/detail/dispatch/is_trivial_copy.h>
#include <thrust/detail/raw_reference_cast.h>

namespace thrust
{
namespace system
{
namespace cuda
{
namespace detail
{
namespace block
{

namespace trivial_copy_detail
{

template<typename Size>
  inline __device__ thrust::pair<Size,Size> quotient_and_remainder(Size n, Size d)
{
  Size quotient  = n / d;
  Size remainder = n - d * quotient;
  return thrust::make_pair(quotient,remainder);
} // end quotient_and_remainder()

// assumes the addresses dst & src are aligned to T boundaries
template<typename Context,
         typename T>
__device__ __thrust_forceinline__
void aligned_copy(Context context, T *dst, const T *src, unsigned int num_elements)
{
  for(unsigned int i = context.thread_index();
      i < num_elements;
      i += context.block_dimension())
  {
    dst[i] = src[i];
  }
} // end aligned_copy()

} // end namespace trivial_copy_detail

template <typename Context>
__device__ __thrust_forceinline__
void trivial_copy(Context context, void* destination_, const void* source_, size_t num_bytes)
{
  // reinterpret at bytes
  char* destination  = reinterpret_cast<char*>(destination_);
  const char* source = reinterpret_cast<const char*>(source_);

  // TODO replace this with uint64
#if THRUST_DEVICE_COMPILER != THRUST_DEVICE_COMPILER_NVCC
  typedef long long  int2;
  typedef long long uint2;
#endif // THRUST_DEVICE_COMPILER_NVCC

  // check alignment
  // XXX can we do this in three steps?
  //     1. copy until alignment is met
  //     2. go hog wild
  //     3. get the remainder
  if(reinterpret_cast<size_t>(destination) % sizeof(uint2) != 0 || reinterpret_cast<size_t>(source) % sizeof(uint2) != 0)
  {
    for(unsigned int i = context.thread_index(); i < num_bytes; i += context.block_dimension())
    {
      destination[i] = source[i];
    }
  }
  else
  {
    // it's aligned; do a wide copy

    // this pair stores the number of int2s in the aligned portion of the arrays
    // and the number of bytes in the remainder
    const thrust::pair<size_t,size_t> num_wide_elements_and_remainder_bytes = trivial_copy_detail::quotient_and_remainder(num_bytes, sizeof(int2));

    // copy int2 elements
    trivial_copy_detail::aligned_copy(context,
                                      reinterpret_cast<int2*>(destination),
                                      reinterpret_cast<const int2*>(source),
                                      num_wide_elements_and_remainder_bytes.first);

    // XXX we could copy int elements here

    // copy remainder byte by byte

    // to find the beginning of the remainder arrays, we need to point at the beginning, and then skip the number of bytes in the aligned portion
    // this is sizeof(int2) times the number of int2s comprising the aligned portion
    const char *remainder_first  = reinterpret_cast<const char*>(source + sizeof(int2) * num_wide_elements_and_remainder_bytes.first);
          char *remainder_result = reinterpret_cast<char*>(destination  + sizeof(int2) * num_wide_elements_and_remainder_bytes.first);

    trivial_copy_detail::aligned_copy(context, remainder_result, remainder_first, num_wide_elements_and_remainder_bytes.second);
  }
} // end trivial_copy()

namespace detail
{
namespace dispatch
{

template<typename Context,
         typename RandomAccessIterator1,
         typename RandomAccessIterator2>
  __thrust_forceinline__ __device__
  RandomAccessIterator2 copy(Context context,
                             RandomAccessIterator1 first,
                             RandomAccessIterator1 last,
                             RandomAccessIterator2 result,
                             thrust::detail::true_type is_trivial_copy)
{
  typedef typename thrust::iterator_value<RandomAccessIterator1>::type T;

  const T *src = &thrust::raw_reference_cast(*first);
        T *dst = &thrust::raw_reference_cast(*result);

  size_t n = (last - first);
  thrust::system::cuda::detail::block::trivial_copy(context, dst, src, n * sizeof(T));
  return result + n;
} // end copy()

template<typename Context,
         typename RandomAccessIterator1,
         typename RandomAccessIterator2>
  __thrust_forceinline__ __device__
  RandomAccessIterator2 copy(Context context,
                             RandomAccessIterator1 first,
                             RandomAccessIterator1 last,
                             RandomAccessIterator2 result,
                             thrust::detail::false_type is_trivial_copy)
{
  RandomAccessIterator2 end_of_output = result + (last - first);

  // advance iterators
  first  += context.thread_index();
  result += context.thread_index();

  for(;
      first < last;
      first  += context.block_dimension(),
      result += context.block_dimension())
  {
    *result = *first;
  } // end for

  return end_of_output;
} // end copy()

} // end namespace dispatch
} // end namespace detail

template<typename Context,
         typename RandomAccessIterator1,
         typename RandomAccessIterator2>
  __thrust_forceinline__ __device__
  RandomAccessIterator2 copy(Context context,
                             RandomAccessIterator1 first,
                             RandomAccessIterator1 last,
                             RandomAccessIterator2 result)
{
  return detail::dispatch::copy(context, first, last, result,
#if __CUDA_ARCH__ < 200
      // does not work reliably on pre-Fermi due to "Warning: ... assuming global memory space" issues
      thrust::detail::false_type()
#else
      typename thrust::detail::dispatch::is_trivial_copy<RandomAccessIterator1,RandomAccessIterator2>::type()
#endif
      );
} // end copy()

template<typename Context, typename RandomAccessIterator1, typename Size, typename RandomAccessIterator2>
inline __device__
RandomAccessIterator2 async_copy_n(Context &ctx, RandomAccessIterator1 first, Size n, RandomAccessIterator2 result)
{
  for(Size i = ctx.thread_index(); i < n; i += ctx.block_dimension())
  {
    result[i] = first[i];
  }

  return result + n;
}

template<typename Context, typename RandomAccessIterator1, typename Size, typename RandomAccessIterator2>
inline __device__
RandomAccessIterator2 copy_n(Context &ctx, RandomAccessIterator1 first, Size n, RandomAccessIterator2 result)
{
  result = async_copy_n(ctx, first, n, result);
  ctx.barrier();

  return result;
}

template<unsigned int work_per_thread, typename Context, typename RandomAccessIterator1, typename Size, typename RandomAccessIterator2>
inline __device__
RandomAccessIterator2 async_copy_n_global_to_shared(Context &ctx, RandomAccessIterator1 first, Size n, RandomAccessIterator2 result)
{
  typedef typename thrust::iterator_value<RandomAccessIterator1>::type value_type;

  // stage copy through registers
  value_type reg[work_per_thread];

  // avoid conditional accesses when possible
  if(n >= ctx.block_dimension() * work_per_thread)
  {
    for(unsigned int i = 0; i < work_per_thread; ++i)
    {
      unsigned int idx = ctx.block_dimension() * i + ctx.thread_index();

      reg[i] = first[idx];
    }
  }
  else
  {
    for(unsigned int i = 0; i < work_per_thread; ++i)
    {
      unsigned int idx = ctx.block_dimension() * i + ctx.thread_index();

      if(idx < n) reg[i] = first[idx];
    }
  }

  // avoid conditional accesses when possible
  if(n >= ctx.block_dimension() * work_per_thread)
  {
    for(unsigned int i = 0; i < work_per_thread; ++i)
    {
      unsigned int idx = ctx.block_dimension() * i + ctx.thread_index();

      result[idx] = reg[i];
    }
  }
  else
  {
    for(unsigned int i = 0; i < work_per_thread; ++i)
    {
      unsigned int idx = ctx.block_dimension() * i + ctx.thread_index();

      if(idx < n) result[idx] = reg[i];
    }
  }

  return result + n;
}

template<unsigned int work_per_thread, typename Context, typename RandomAccessIterator1, typename Size, typename RandomAccessIterator2>
__device__
RandomAccessIterator2 copy_n_global_to_shared(Context &ctx, RandomAccessIterator1 first, Size n, RandomAccessIterator2 result)
{
  result = async_copy_n_global_to_shared<work_per_thread>(ctx, first, n, result);

  ctx.barrier();

  return result + n;
}

} // end namespace block
} // end namespace detail
} // end namespace cuda
} // end namespace system
} // end namespace thrust


text:
QUnit.config.testTimeout = 20000;
const test = QUnit.test;

test('Parses initial time from seconds', function(assert){
  var timerElement = $('#timer1');
  var secondsLeft = 300;

  timerElement.data('seconds-left', secondsLeft);
  timerElement.startTimer();

  var actual = timerElement.text();
  var expected = '00:05:00';

  assert.equal(actual, expected, 'Parsed ' + secondsLeft + ' to ' + expected);

  timerElement = $('#timer2');
  secondsLeft = 6300;

  timerElement.data('seconds-left', secondsLeft);
  timerElement.startTimer();

  actual = timerElement.text();
  expected = '01:45:00';
  assert.equal(actual, expected, 'Parsed ' + secondsLeft + ' to ' + expected);
});

test('Returns self', function(assert) {
  var timerElement = $('#timer1');
  timerElement.data('seconds-left', 2);
  var returnElement = timerElement.startTimer();
  assert.equal(timerElement, returnElement, 'Returns self');
});

test('Calls the complete event when timer is up', function (assert) {
  const done = assert.async();
  assert.expect(1);

  var timerElement = $('#timer3');

  timerElement.on('complete', function(){
    assert.ok(true, 'Called the complete event');
    done();
  });

  timerElement.startTimer();
});

test('Adds timeout class when timer is up', function (assert) {
  var timerElement = $('#timer3');
  timerElement.startTimer();
  timerElement.trigger('complete');
  assert.ok(timerElement.hasClass('jst-timeout'), 'adds default timeout class');
});

test('Clears the timer when complete and no options', function (assert) {
  const done = assert.async();
  assert.expect(1);

  var timerElement = $('#timer1');
  timerElement.data('seconds-left', 9999);
  timerElement.startTimer();

  timerElement.on('complete', function(){
    assert.equal(timerElement.text(), '00:00:00', 'Cleared timer');
    done();
  });

  timerElement.trigger('complete');
});

test('Clears the timer when complete and with options', function (assert) {
  const done = assert.async();
  assert.expect(1);

  var timerElement = $('#timer1');
  timerElement.data('seconds-left', 1);
  timerElement.startTimer({
    onComplete: function() {
      console.log('complete');
    }
  });

  timerElement.on('complete', function(){
    assert.equal(timerElement.text(), '00:00:00', 'Cleared timer');
    done();
  });
});

test('Cleas the timer when 0 minutes left', function (assert) {
  const done = assert.async();
  assert.expect(1);

  var timerElement = $('#timer1');
  timerElement.data('minutes-left', 0);

  var plugin = timerElement.startTimer({});

  setTimeout(function() {
    assert.equal(timerElement.text(), '00:00:00', 'Cleared timer');
    done();
  }, 1000);
});

test('Clears the timer when 0 seconds left', function (assert) {
  const done = assert.async();
  assert.expect(1);

  var timerElement = $('#timer1');
  timerElement.data('seconds-left', 0);

  var plugin = timerElement.startTimer({});

  setTimeout(function() {
    assert.equal(timerElement.text(), '00:00:00', 'Cleared timer');
    done();
  }, 1000);
});

test('Do not restart timer when loop option is false', function(assert) {
  const done = assert.async();
  assert.expect(1);

  var timerElement = $('#timer1');
  timerElement.data('seconds-left', 0.5);
  timerElement.startTimer({
    loop:false
  });
  setTimeout(function() {
    assert.equal(timerElement.hasClass('loop'), false, 'Timer not in Loop');
    done();
  }, 1000);
});

test('Restart timer when loop option is true', function(assert) {
  const done = assert.async();
  assert.expect(1);

  var timerElement = $('#timer1');
  timerElement.data('seconds-left', 0.5);
  timerElement.startTimer({
    loop:true
  });
  setTimeout(function() {
    assert.equal(timerElement.hasClass('loop'), true, 'Timer in Loop');
    done();
  }, 1000);
});

test('Parses initial time from minutes', function(assert){
  var timerElement = $('#timer1');
  var minutesLeft = 2;

  timerElement.data('minutes-left', minutesLeft);
  timerElement.startTimer();

  var actual = timerElement.text();
  var expected = '00:02:00';

  assert.equal(actual, expected, 'Parsed ' + minutesLeft + ' to ' + expected);

  timerElement = $('#timer2');
  minutesLeft = 1.5;

  timerElement.data('minutes-left', minutesLeft);
  timerElement.startTimer();

  actual = timerElement.text();
  expected = '00:01:30';
  assert.equal(actual, expected, 'Parsed ' + minutesLeft + ' to ' + expected);
});

//test('Throws error when no data present', function(assert) {

  //var timerElement = $('#timer1');

  //assert.throws(
    //function() { timerElement.startTimer(); }, 'Errors when missing data'
  //);
//});

test('Pauses on click when allowPause is true', function(assert) {
  const done = assert.async();
  assert.expect(1);

  var timerElement = $('#timer1');
  timerElement.data('seconds-left', 3);
  timerElement.startTimer({
    onComplete: function() {
      console.log('complete');
    },
    allowPause: true
  }).trigger('click')

  setTimeout(function() {
    assert.equal(timerElement.text(), '00:00:03', 'Timer is on pause');
    done();
  }, 3000);
});

test('Calls onComplete after toggle allowPause', function(assert) {
  const done = assert.async();
  assert.expect(1);

  var timerElement = $('#timer1');
  timerElement.data('seconds-left', 3);
  timerElement.startTimer({
    onComplete: function() {
      assert.ok(true, 'Called the complete event');
      done();
    },
    allowPause: true
  }).trigger('click').trigger('click');

});

test('Does NOT pause on click when allowPause is not specified', function(assert) {
  const done = assert.async();
  assert.expect(1);

  var timerElement = $('#timer1');
  timerElement.data('seconds-left', 2);
  timerElement.startTimer({
    onComplete: function() {
      console.log('complete');
    },
    // allowPause: true
  }).trigger('click')

  setTimeout(function() {
    assert.equal(timerElement.text(), '00:00:01', 'Cleared timer');
    done();
  }, 1500);
});

test('Does NOT pause on click when allowPause is false', function(assert) {
  const done = assert.async();
  assert.expect(1);

  var timerElement = $('#timer1');
  timerElement.data('seconds-left', 2);
  timerElement.startTimer({
    onComplete: function() {
      console.log('complete');
    },
    allowPause: false
  }).trigger('click')

  setTimeout(function() {
    assert.equal(timerElement.text(), '00:00:00', 'Cleared timer');
    done();
  }, 3000);
});

test('When timeLeft is less than 0, it completes upon return (computer asleep or browser tab is inactive)', function (assert) {
  const done = assert.async();
  assert.expect(1);

  var timerElement = $('#timer1');
  timerElement.data('seconds-left', 3);

  var plugin = timerElement.startTimer({
    onComplete: function() {
      console.log('complete');
    }
  })

  // Force time in the future
  plugin.TimerObject.prototype.currentTime = function(){
    return Math.round((new Date()).getTime() / 1000) + 1000;
  }

  setTimeout(function() {
    assert.equal(timerElement.text(), '00:00:00', 'Cleared timer');
    done();
  }, 1000);
});

test('When seconds left is greater than 24h, timer displays proper hour', function (assert) {
  const done = assert.async();
  assert.expect(1);

  var timerElement = $('#timer1');
  var twentySixHoursInSeconds = (26*60*60)
  timerElement.data('seconds-left', twentySixHoursInSeconds);

  var plugin = timerElement.startTimer({
    onComplete: function() {
      console.log('complete');
    }
  })

  setTimeout(function() {
    assert.equal(timerElement.text(), '26:00:00', 'Cleared timer');
    done();
  }, 500);
});

test('When minutes left is greater than 24h, timer displays proper hour', function (assert) {
  const done = assert.async();
  assert.expect(1);

  var timerElement = $('#timer1');
  var twentyEightHoursInMinutes = (28*60)
  timerElement.data('minutes-left', twentyEightHoursInMinutes);

  var plugin = timerElement.startTimer({
    onComplete: function() {
      console.log('complete');
    }
  })

  setTimeout(function() {
    assert.equal(timerElement.text(), '28:00:00', 'Cleared timer');
    done();
  }, 500);
});

test('Uses default classNames when none given via options', function(assert){
  var timerElement = $('#timer1');
  var secondsLeft = 2;

  timerElement.data('seconds-left', secondsLeft);
  timerElement.startTimer();

  assert.equal(timerElement.find('.jst-hours').length, 1, 'Default hours class');
  assert.equal(timerElement.find('.jst-minutes').length, 1, 'Default minutes class');
  assert.equal(timerElement.find('.jst-seconds').length, 1, 'Default seconds class');
  assert.equal(timerElement.find('.jst-clearDiv').length, 1, 'Default clearDiv class');
});

test('Accepts options for element classNames', function(assert){
  var timerElement = $('#timer1');
  var secondsLeft = 10;

  timerElement.data('seconds-left', secondsLeft);
  timerElement.startTimer({
    classNames: {
      hours: 'banana-hours',
      minutes: 'banana-minutes',
      seconds: 'banana-seconds',
      clearDiv: 'banana-clearDiv',
      timeout: 'banana-timeout'
    }
  });

  assert.equal(timerElement.find('.banana-hours').length, 1, 'Found hours class');
  assert.equal(timerElement.find('.banana-minutes').length, 1, 'Found minutes class');
  assert.equal(timerElement.find('.banana-seconds').length, 1, 'Found seconds class');
  assert.equal(timerElement.find('.banana-clearDiv').length, 1, 'Found clearDiv class');
  timerElement.trigger('complete');
  assert.ok(timerElement.hasClass('banana-timeout'), 'Found timeout class');
});

test('Runs independent timers with custom options', function(assert){
  const done = assert.async();
  assert.expect(1);

  var timerElement = $('#timer1');
  timerElement.data('seconds-left', 10);
  timerElement.startTimer();
  setTimeout(function() {
    assert.equal(timerElement.text(), '00:00:08', 'Cleared timer');
    done();
  }, 2500);

  var timerElement2 = $('#timer2');
  timerElement2.data('seconds-left', 5);

  timerElement2.startTimer({
    classNames: {
      hours: 'banana-hours',
      minutes: 'banana-minutes',
      seconds: 'banana-seconds',
      clearDiv: 'banana-clearDiv',
      timeout: 'banana-timeout'
    }
  });

});


text:
package org.apache.hyracks.control.cc.work;

import org.apache.hyracks.api.result.ResultSetId;
import org.apache.hyracks.api.exceptions.HyracksDataException;
import org.apache.hyracks.api.job.JobId;
import org.apache.hyracks.control.cc.ClusterControllerService;
import org.apache.hyracks.control.common.work.AbstractWork;

public class ReportResultPartitionWriteCompletionWork extends AbstractWork {
    private final ClusterControllerService ccs;

    private final JobId jobId;

    private final ResultSetId rsId;

    private final int partition;

    public ReportResultPartitionWriteCompletionWork(ClusterControllerService ccs, JobId jobId, ResultSetId rsId,
            int partition) {
        this.ccs = ccs;
        this.jobId = jobId;
        this.rsId = rsId;
        this.partition = partition;
    }

    @Override
    public void run() {
        try {
            ccs.getResultDirectoryService().reportResultPartitionWriteCompletion(jobId, rsId, partition);
        } catch (HyracksDataException e) {
            throw new RuntimeException(e);
        }
    }

    @Override
    public String toString() {
        return getName() + ": JobId@" + jobId + " ResultSetId@" + rsId + " Partition@" + partition;
    }
}


text:
package server

import (
	"testing"

	"github.com/gofrs/uuid"
	"go.uber.org/zap"
)

// should add and remove from PartyMatchmaker
func TestPartyMatchmakerAddAndRemove(t *testing.T) {
	consoleLogger := loggerForTest(t)
	partyHandler, cleanup := createTestPartyHandler(t, consoleLogger)
	defer cleanup()

	sessionID, _ := uuid.NewV4()
	userID, _ := uuid.NewV4()
	node := "node1"

	partyHandler.Join([]*Presence{&Presence{
		ID: PresenceID{
			Node:      node,
			SessionID: sessionID,
		},
		// Presence stream not needed.
		UserID: userID,
		Meta: PresenceMeta{
			Username: "username",
			// Other meta fields not needed.
		},
	}})

	ticket, _, err := partyHandler.MatchmakerAdd(sessionID.String(), node, "", 1, 1, 1, nil, nil)
	if err != nil {
		t.Fatalf("MatchmakerAdd error %s", err)
	}

	err = partyHandler.MatchmakerRemove(sessionID.String(), node, ticket)
	if err != nil {
		t.Fatalf("MatchmakerRemove error %s", err)
	}
}

func createTestPartyHandler(t *testing.T, logger *zap.Logger) (*PartyHandler, func() error) {

	node := "node1"

	mm, cleanup, _ := createTestMatchmaker(t, logger, true, nil)
	tt := testTracker{}
	tsm := testStreamManager{}
	dmr := DummyMessageRouter{}

	pr := NewLocalPartyRegistry(logger, mm, &tt, &tsm, &dmr, node)
	ph := NewPartyHandler(logger, pr, mm, &tt, &tsm, &dmr, uuid.UUID{}, node, true, 10, nil)
	return ph, cleanup
}