text:
<!--
Copyright 2013 The Polymer Authors. All rights reserved.
Use of this source code is governed by a BSD-style
license that can be found in the LICENSE file.
-->

<link rel="import" href="../../../polymer-elements/polymer-jsonp/polymer-jsonp.html">

<polymer-element name="polymer-ui-stock-data" attributes="symbol name data color">
  <template>
    <polymer-jsonp id="jsonp" response="{{rawData}}" url="https://clients1.google.com/finance/info?q={{symbol}}&client=ob&infotype=infoonebox&callback="
    ></polymer-jsonp>
  </template>
  <script>
    (function() {
      PolymerStockData = function(symbol, color) {
        var usd = document.createElement('polymer-ui-stock-data');
        usd.symbol = symbol;
        usd.color = color;
        return usd;
      };
      Polymer('polymer-ui-stock-data', {
        name: '',
        symbol: '',
        color: '',
        data: null,
        symbolChanged: function() {
          this.name = this.symbol.replace('.', '');
          this.data = null;
          // make sure MDV updates at the end of the microtask
          Platform.flush();
          // go async to let MDV update the JSONP url
          this.asyncMethod('update');
        },
        update: function() {
          this.$.jsonp.go();
        },
        rawDataChanged: function() {
          this.data = this.rawData[0];
        }
      });
    })();
  </script>
</polymer-element>


text:
package org.door43.obs.mta.model;

public class Term implements ITerm {

    /* CONSTANTS */

    /* FIELDS */

    private String word;

    private String description;

    /* CONSTRUCTOR */

    public Term() {
        super();
    }

    public Term(String word, String description) {
        this();
        this.word = word;
        this.description = description;
    }

    /* METHODS */

    /* GETTERS / SETTERS */

    @Override
    public String getWord() {
        return word;
    }

    @Override
    public void setWord(String word) {
        this.word = word;
    }

    @Override
    public String getDescription() {
        return description;
    }

    @Override
    public void setDescription(String description) {
        this.description = description;
    }

    /* OBJECT METHODS */

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        Term term = (Term) o;

        if (word != null ? !word.equals(term.word) : term.word != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        return word != null ? word.hashCode() : 0;
    }

}

redpajama_set_name: RedPajamaGithub


text:
package com.sandflow.smpte.regxml.dict.definitions;

import com.sandflow.smpte.regxml.dict.MetaDictionary;
import com.sandflow.smpte.util.AUID;
import com.sandflow.smpte.util.xml.AUIDAdapter;
import java.util.ArrayList;
import java.util.Collection;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAnyElement;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.adapters.XmlAdapter;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import org.w3c.dom.Document;
import static org.w3c.dom.Node.ELEMENT_NODE;

/**
 * Record Type Definition as defined in ST 2001-1
 */
@XmlAccessorType(XmlAccessType.NONE)
public class RecordTypeDefinition extends Definition {

    @XmlJavaTypeAdapter(value = RecordMemberAdapter.class)
    @XmlAnyElement(lax = false)
    ArrayList<Member> members = new ArrayList<>();

    public RecordTypeDefinition() {
    }

    @Override
    public void accept(DefinitionVisitor visitor) throws DefinitionVisitor.VisitorException {
        visitor.visit(this);
    }

    public void addMember(Member record) {
        members.add(record);
    }

    public Collection<Member> getMembers() {
        return members;
    }

    @XmlAccessorType(XmlAccessType.NONE)
    public static class Member {
        @XmlElement(name = "Name")
        private String name;
        @XmlJavaTypeAdapter(value = AUIDAdapter.class)
        @XmlElement(name = "Type")
        private AUID type;
        @XmlElement(name = "Description")
        private String description;
        public String getName() {
            return name;
        }
        public void setName(String name) {
            this.name = name;
        }

        public AUID getType() {
            return type;
        }

        public void setType(AUID type) {
            this.type = type;
        }

        public String getDescription() {
            return description;
        }

        public void setDescription(String description) {
            this.description = description;
        }
    }

    private static class RecordMemberAdapter extends XmlAdapter<Object, ArrayList<RecordTypeDefinition.Member>> {

        public ArrayList<RecordTypeDefinition.Member> unmarshal(Object v) throws Exception {

            ArrayList<RecordTypeDefinition.Member> al = new ArrayList<>();

            org.w3c.dom.Node node = ((org.w3c.dom.Element) v).getFirstChild();

            while (node != null) {

                if (node.getNodeType() == ELEMENT_NODE) {

                    org.w3c.dom.Element elem = (org.w3c.dom.Element) node;

                    if ("Name".equals(elem.getNodeName())) {

                        al.add(new RecordTypeDefinition.Member());
                        al.get(al.size() - 1).setName(elem.getTextContent());

                    } else if ("Type".equals(elem.getNodeName())) {

                        al.get(al.size() - 1).setType(AUID.fromURN(elem.getTextContent()));

                    }
                }

                node = node.getNextSibling();
            }

            return al;
        }

        public Object marshal(ArrayList<RecordTypeDefinition.Member> v) throws Exception {

            DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
            DocumentBuilder db = dbf.newDocumentBuilder();
            Document doc = db.newDocument();
            org.w3c.dom.Element elem = doc.createElementNS(MetaDictionary.XML_NS, "Members");

            for (RecordTypeDefinition.Member e : v) {

                org.w3c.dom.Element e1 = doc.createElementNS(MetaDictionary.XML_NS, "Name");

                e1.setTextContent(e.getName());

                elem.appendChild(e1);

                e1 = doc.createElementNS(MetaDictionary.XML_NS, "Type");

                e1.setTextContent(e.getType().toString());

                elem.appendChild(e1);

            }

            return elem;
        }
    }

}


text:
body {padding-top: 65px;}

label {
    display: inline-block;
    padding-top: 5px;
}

a {cursor:pointer; text-decoration:none;}
a:hover {text-decoration:none; color:inherit;}
a:active, a:hover, a:focus, a:visited {outline:0;}

/* placeholder styling */
::-webkit-input-placeholder {color:#BBB;}
/* firefox 19+ */
::-moz-placeholder {color:#BBB;}
input:-moz-placeholder {color:#BBB;}

ul {margin-bottom:0;}
ul li {list-style:none;}

button[disabled], .disabled {color:#CCC !important;}

.floatL {float:left;}
.floatR {float:right;}
.error, .error:focus {color:#C10101; border-color:#C10101; box-shadow:none;}
.pointer {cursor:pointer;}
.clearAll {clear:both;}
.bold {font-weight:bold;}
.inlineBlock {display:inline-block;}

.btmBdr {padding-bottom:.25em; border-bottom:solid 1px #CCC;}

/** small 'X' icon */
a.smallClose {width:10px; height:10px; background:url("../img/glyphicons-halflings.png") -314px -2px no-repeat;}

.glyphIconTxt {font-size:14px; padding-left:.5em; font-family:"Helvetica Neue",Helvetica,Arial,sans-serif; vertical-align:top;}

.glyphicon.glyphicon-search {margin-right:.5em; padding:6px; border:solid 1px #CCC; border-radius:5px; font-size:20px; color:#599BD9; background-color:#EEE;}
.glyphicon.glyphicon-search:hover {color:#2C4386;}

.eyeIcon {display:inline-block; width:14px; height:14px; vertical-align:middle; background:url(../img/glyphicons-halflings.png) no-repeat;}
.eyeIcon.eyeOpen {background-position:-96px -121px;}
.eyeIcon.eyeClosed {background-position:-120px -121px;}

/*.resetIcon {display:inline-block; width:25px; height:25px; background:url(../img/reset-icon-sm.png) 0 0 no-repeat; vertical-align:bottom;}*/
/*.resetIcon:hover {background-position:0 -37px;}*/

.cloneTrooperIcon {display:inline-block; width:28px; height:35px; background:url(../img/clone-trooper.png) no-repeat; vertical-align:middle;}

/* loading spinner small, eg input field */
.loading {border-color:#777; background:url(../img/spin.gif) 97% center no-repeat;}

#navbar li.activeTab {border-left: solid 1px #DDD; border-right: solid 1px #DDD; background-color: #FFF; color:#444; font-weight:bold;}
#navbar li a.glyphicon {font-size:20px; color:#777;}
#navbar li a.betaTab {color:#ECF1F6; font-weight:700;
	/* #599AD9 - Argus light blue */
	/* #2D4486 - Argus dark blue */
	background: #599AD9; /* For browsers that do not support gradients */
	background: linear-gradient(top, #ACD6FF, #599AD9); /* Standard (Chrome) syntax */
	background: -webkit-linear-gradient(top, #ACD6FF, #599AD9); /* For Safari 5.1 to 6.0 */
	background: -o-linear-gradient(top, #ACD6FF, #599AD9); /* For Opera 11.1 to 12.0 */
	background: -moz-linear-gradient(top, #ACD6FF, #599AD9); /* For Firefox 3.6 to 15 */
}
#navbar li.activeTab a.betaTab {
	/* #599AD9 - Argus light blue */
	/* #2D4486 - Argus dark blue */
	background: #599AD9; /* For browsers that do not support gradients */
	background: linear-gradient(top, #ACD6FF, #2D4486); /* Standard (Chrome) syntax */
	background: -webkit-linear-gradient(top, #ACD6FF, #2D4486); /* For Safari 5.1 to 6.0 */
	background: -o-linear-gradient(top, #ACD6FF, #2D4486); /* For Opera 11.1 to 12.0 */
	background: -moz-linear-gradient(top, #ACD6FF, #2D4486); /* For Firefox 3.6 to 15 */
}

/* Common drop down menu */
.topMenu {position:relative; margin-right:.5em;}
.topMenu ul.subMenu {display:none; position:absolute;}
.topMenu ul.subMenu li {margin:5px 0; padding:2px 7px;}
.topMenu ul.subMenu li:hover {background-color:#EEE;}
.topMenu ul.subMenu a:hover {text-decoration:none;}
.topMenu:hover ul.subMenu {display:block;}

#navbar ul.subMenu {top:40px; right:4px; padding:0;}
#navbar ul.subMenu li {text-align:right;}

/* drop down common panel */
.menuPanel {
  border-radius:5px;
  box-shadow:2px 2px 3px 0px #EEE;
  list-style:none;
  border:solid 1px #CCC;
  background:#FFF;
  z-index:9;
}

.breadcrumb {
  position:absolute;
  display:inline-block;
  margin:10px 0 0 0;
  padding:0 0 5px 0;
  background-color:#FFF;
  font-size:16px;
}
.breadcrumb > li + li:before {display:none;}

.nav {margin-top: 10px; margin-bottom: 15px;}
.navbar-fixed-top .nav {margin-top: 0; margin-bottom: 0;}

.h3 {margin-top: 10px;}
h3.bcTitle {margin:11px 0 0 35px; font-size:18px;}
h5.bcDesc {margin-bottom:20px; font-weight:normal;}

/* Modal options **/
.modal.fade {top:-25%;}
.modal.fade.in {top:10%;}

/* modal backdrop (mask) settings **/
.modal-backdrop {position:fixed; top:0; right:0; bottom:0; left:0; z-index:999; background-color:#000;}
.modal-backdrop.fade {opacity:0;}
.modal-backdrop, .modal-backdrop.fade.in {}
.modal .smallClose {position:absolute; display:inline-block; top:10px; right:1em; z-index:99;}
.modal .chkBox {margin:.7em .5em 0 0; max-width:90%; vertical-align:top;}
.modal .footer {padding-top:1em; border-top:solid 1px #CCC;}

/* lighten up default modal backdrop (mask) */
.lightMask .modal-backdrop.fade.in {opacity:.3;}

/* modal specific */

/* chart options */
.modal .mainContent {padding:0 0 1em 0;}
.modal .mainContent .title {margin-bottom:.5em; padding-bottom:.25em; border-bottom:solid 1px #CCC;}
.modal .mainContent h2 {margin-left:0; padding-top:0; font-size:1.5em;}
.modal .mainContent h3 {font-size:1.3em;}
.modal .mainContent h4.sectionTitle {margin-top:1em; padding:.25em; background-color:#EEE; font-weight:normal; color:#428BCA;}
.modal .mainContent pre {overflow-x:auto; margin-top:1em;}
.modal .mainContent label {max-width:90%; font-weight:normal; color:#666;}
.modal .glyphicon-ban-circle {margin-top:5px; line-height:20px; color:#999; font-size:20px;}

/* Dashboard related **/

.rowIndicator {position:relative; margin-bottom:.5em;}
.serviceItem {position:absolute; z-index:9; padding:1em; width:110px; border:solid 1px #CCC; border-radius:5px; text-align:center; vertical-align:top}
.rowIndicator.largeLabel .serviceItem {padding:.5em 1em;}

.serviceItem .serviceName {margin-bottom:.5em; font-size:14px; font-weight:bold;}
.serviceItem .statusIndicator {display:inline-block; width:15px; height:15px; border:solid 1px; border-radius:10px;}
.serviceItem .statusIndicator.red {background-color:red; border-color:red;}
.serviceItem .statusIndicator.orange {background-color:orange; border-color:orange;}
.serviceItem .statusIndicator.green {background-color:green; border-color:green;}
.serviceItem .serviceName p {word-wrap: break-word;}

.serviceItem.small {padding:.25em; width:65px;}

.loadingSpinner {position:relative; margin:100px auto; width:80px; height:80px; content:url(../img/ajax-loader.gif);}

/* metrics & discovery lookup */
.metricFields {width:35%; margin-top:.5em;}
.metricFields, .metricFields .form-control {margin:0 2em .5em 0;}

/* main graph/chart - i.e. metrics */
#graphContainer {margin:1.5em auto 0; min-width:310px; height:400px;}

/* autocomplete */
.autoComplete .category {padding:4px; border:1px solid #71ABCE; border-radius:5px; font-size:11px;}

/* btn last */
.btn-last {
    border-left: none;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

/* checkbox for date control */
.GMT-select {padding: 3px;}

/* Growl settings */
.growl-container.growl-fixed.top-center {
    top : 2em !important;
    width: 25% !important;
    max-width: 50% !important;
    text-align: center;
}

.growl-container > .growl-item {padding-right:0 !important;}

.pagination {margin:0 !important;}

.table-header-rotated th.row-header {width:auto;}

.table-header-rotated td{
  width: 40px;
  border-top: 1px solid #ddd;
  border-left: 1px solid #ddd;
  border-right: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
  vertical-align: middle;
  text-align: center;
}

.table-header-rotated th.rotate-45{
  height: 140px;
  width: 50px;
  min-width: 40px;
  max-width: 50px;
  position: relative;
  vertical-align: bottom;
  padding: 0;
  font-size: 12px;
  line-height: 0.8;
}

.table-header-rotated th.rotate-45 > div{
  position: relative;
  top: 12px;
  left: 70px; /* 80 * tan(45) / 2 = 40 where 80 is the height on the cell and 45 is the transform angle*/
  height: 100%;
  -ms-transform:skew(-45deg,0deg);
  -moz-transform:skew(-45deg,0deg);
  -webkit-transform:skew(-45deg,0deg);
  -o-transform:skew(-45deg,0deg);
  transform:skew(-45deg,0deg);
  overflow: hidden;
  border-left: 1px solid #dddddd;
  border-right: 1px solid #dddddd;
  border-top: 1px solid #dddddd;
}

.table-header-rotated th.rotate-45 span {
  -ms-transform:skew(45deg,0deg) rotate(315deg);
  -moz-transform:skew(45deg,0deg) rotate(315deg);
  -webkit-transform:skew(45deg,0deg) rotate(315deg);
  -o-transform:skew(45deg,0deg) rotate(315deg);
  transform:skew(45deg,0deg) rotate(315deg);
  position: absolute;
  bottom: 65px; /* 40 cos(45) = 28 with an additional 2px margin*/
  left: -35px; /*Because it looked good, but there is probably a mathematical link here as well*/
  display: inline-block;
  // width: 100%;
  width: 160px; /* 80 / cos(45) - 40 cos (45) = 85 where 80 is the height of the cell, 40 the width of the cell and 45 the transform angle*/
  text-align: left;
  // white-space: nowrap; /*whether to display in one line or not*/
  word-wrap: break-word;
}

/* vertical align table cells */
.table > thead > tr > th,
.table > tbody > tr > th,
.table > tfoot > tr > th,
.table > thead > tr > td,
.table > tbody > tr > td,
.table > tfoot > tr > td {vertical-align: middle;}

.table th:hover {cursor:pointer;}

.search-bar .dropdown-menu {
    margin: 0 0 0 0;
    border-radius: 0px 0px 4px 4px;
    width: calc(100% - 47px - 40px);
    max-height: 300px;
    overflow: scroll;
}

/* chart styles */
.chartTitle {margin-top:0; margin-bottom:.55em; text-align:center; font-size:16px;}

/* main elements */
.chartContainer {margin:0 .5em .5em 0; padding-top:1em; border:solid 2px #CCC; border-radius:5px; background:#FFF;}
.smallChart {padding:0 0 0 9em; width:100%; border:none;}
.lineChartToolbar {margin-left:3em;}

/** Toolbars */
.topToolbar {padding:0 3.5em;}
.topToolbar a {cursor:pointer;}
.topToolbar .toolbar {position:relative; height:30px; text-align:left;}

.toolbarItem {display:inline-block;}
.toolbarItemPreview {overflow:hidden; white-space:nowrap; text-overflow:ellipsis;}

/* legend & other graph menus */
.legendPanel {display:inline-block; padding-left:0; width:50%;}

.toolbarItem.legend {padding:5px 5px 5px 8px; height:28px;}
.legend.floatPanel {display:none; overflow:hidden; width:95%;}
.legend.floatPanel.open {
  display:block; overflow:auto; position:absolute; top:0; padding:.5em .75em; width:auto; height:300px; z-index:9;
  border:solid 1px #CCC; border-radius:5px; background-color:#FFF; box-shadow:1px 1px 2px 0px #CCC;
}

.toolbarItem .graphControls {margin:4px 10px 0 0;}
.graphControls .subMenu {right:-1em;}

.toolbarMenu {display:inline-block; white-space:nowrap;}
.toolbarMenu a.glyphicon {font-size:18px; color:#999;}
.toolbarMenu a.glyphicon:hover {color:inherit;}
.toolbarMenu li label {font-weight:400; font-size:13px;}

.dateRange {float:right; margin:7px 2em 0 0; font-size:12px; color:#999;}

/** D3 & SVG settings **/

.axis path,
.axis line {fill:none; stroke:#FFF; shape-rendering:crispEdges;}

.axis.extra path{fill:none; stroke:lightgrey; shape-rendering:crispEdges;}
.x.axis path {display:none;}
.xBrush.axis path {display:none;}

.line {fill:none; stroke:steelblue; stroke-width:1.5;} /*clip-path: url('#clip');*/
.area {stroke:none;}
.stackarea {stroke:none;}
.dot {stroke: #000; stroke-width:0.5; opacity: 0.8;}
.bar {stroke-width:1; will-change: transform; opacity: 0.8;}
.stackbar {stroke-width:1; will-change: transform; opacity: 0.8;}

.brushLine {fill:none; stroke:steelblue; stroke-width:1.5;}
.brushArea {fill:steelblue; stroke:none;}

.chartOverlay {fill:none; stroke:#CCC; pointer-events:all; cursor:crosshair;}

.focus circle {opacity:0.7; will-change: transform;}

/* dotted line on main line graph */
.crossLine {
	fill:none;
	stroke:#000000;
	stroke-width:1px;
	stroke-dasharray:3,3;
}
.crossLineTipRect {fill:#FFF; stroke:#066EEA; stroke-width:1px;}
.crossLineTip {font-size:12px;}

.highlightBar {
    fill: lightskyblue;
    opacity: 0.2;
}
.highlightTile {
    fill: yellow;
    opacity: 0.2;
}

.tick {will-change: transform;}
.tick line {stroke: lightgrey;}
.tick text {fill:#606060;}

/* grid line */
.grid line {stroke:lightgrey; opacity:0.7;}

.grid text {visibility:hidden;}
.grid path {stroke:#FFF;}

/* timeline graph */
g.brush rect.selection {stroke:#666;}
g.brush rect.overlay {stroke:#CCC;}
g.brush rect.handle {fill:#999; stroke:#333;}

/* flags (annotations) */
.flagItem {
    stroke-width: 2px;
}
.flagItem circle {
    fill: white
}
.flagItem text {
    text-anchor: middle;
    stroke: black;
    stroke-width: 1px;
}
.flagLabel text {
    text-anchor: start;
    stroke: none;
}
.flagLabel rect {
    fill: #ffffff;
    opacity: 0.95;
    will-change: transform;
}

/* tooltip stuff */
.tooltip rect {
	fill: #F1F1F1;
	stroke: steelblue;
	opacity: 0.9;
	will-change: transform;
}
g.tooltip-items text {color: #444; font-size: 12px;}
g.tooltip-items circle {opacity: 0.7;}
g.tooltip-items text .timestamp {font-variant: small-caps;}
g.tooltip-items text .value {font-weight: 600; font-size: 14px;}

/* for charts in table */
ag-dashboard table {width: 100%; table-layout:fixed;}

/* for full screen mode */
.fullscreen {
  width: 100%;
  height: 100%;
}

/* for ag-table */
.agTable {border:solid 2px #CCC; border-radius:5px; display: block; position: relative; min-height:200px; max-height: 600px; overflow: scroll;}
.agTableHead {position:absolute; background-color: #eee;}
.agTable th {min-width: 180px; max-width: 180px; min-height: 60px; word-wrap: break-word; word-break: break-all}
.agTable td {min-width: 180px; max-width: 180px; height: 1px;  word-wrap: break-word; word-break: break-all}

/* view metrics page */
.search-options {
  margin-top: 1em;

}

/* for ag-select */
ag-select .selectize-input{top: 7px; height: 25px; padding-top: 3px; padding-left: 5px; padding-right: 30px; font-size: 14px;}
ag-select > div {min-width: 152px; word-wrap: break-word;}

/* for metrics discovery browsing */
#browsingSearch {
    margin-top: 1em;
    margin-bottom: 1em;
}

.node {
  cursor: pointer;
  will-change: transform;
}

.node circle {
  fill: #fff;
  stroke-width: 2px;
}

.node text {
  font: 12px sans-serif;
}

.link {
  fill: none;
  stroke: #ccc;
  stroke-width: 1.5px;
}

.highlight {
    stroke: khaki;
    stroke-width: 3px;
}

/* for view metric ul */
.viewMetricsUl {
    max-height: 350px;
    overflow: auto;
}

a.definition-tip, a.definition-tip:hover, a.definition-tip:visited {
    color: steelblue;
}

.tooltip > .tooltip-inner {background-color: steelblue; text-align: left}
.tooltip.bottom > .tooltip-arrow {border-bottom-color: steelblue;}
.tooltip.in {opacity: 1}


text:
<?php
function klan_usun($gracz){
	//jeżeli gracz nie jest  w klanie to nie może nic usunąć
	if($gracz['id_klanu'] == 0) $msg = "nie jesteś w klanie";
	else {
		//sprawdź rangę gracza w klanie
		$ranga = mysql_fetch_array(mysql_query("select status from tribal_klany_gracze where gracz_id = ".$gracz['gracz']." and klan_id = ".$gracz['id_klanu']." limit 1"));

		$ranga = $ranga[0];

		//jeżeli to nie mistrz klanu to nie może usunąć nic
		if($ranga != 3) $msg = "nie jesteś mistrzem klanu";
		else {
			//sprawdź czy w klanie pozostał sam mistrz
			$ilu = mysql_fetch_array(mysql_query("select count(*) from tribal_klany_gracze where klan_id = ".$gracz['id_klanu']." and status > 0"));

			$ilu = $ilu[0];

			//jeżeli są jeszcze inni gracze to nie można usunąć klanu
			if($ilu > 1) $msg ="w klanie są gracze, wyrzuć wszystkich przed usunięciem klanu";
			else {
				//został sam mistrz
				mysql_query("delete from tribal_klany where klan = ".$gracz['id_klanu']);
				mysql_query("delete from tribal_klany_gracze where klan_id = ".$gracz['id_klanu']);
				mysql_query("update tribal_gracze set id_klanu = 0 where id_klanu = ".$gracz['id_klanu']);

				$msg = "usunięto klan";
			}

		}
	}

	return $msg;

}
?>


text:
---
uid: SolidEdgePart.BlueSurf.InsertSketch(SolidEdgePart.RefPlane)
summary:
remarks:
---


text:
package org.robolectric.shadows;

import android.app.DownloadManager;
import android.database.Cursor;
import android.net.Uri;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.robolectric.TestRunners;

import static android.app.DownloadManager.Request;
import static org.assertj.core.api.Assertions.assertThat;
import static org.robolectric.Shadows.shadowOf;
import static org.robolectric.shadows.ShadowDownloadManager.ShadowRequest;

@RunWith(TestRunners.WithDefaults.class)
public class ShadowDownloadManagerTest {

  private final Uri uri = Uri.parse("http://example.com/foo.mp4");
  private final Uri destination = Uri.parse("file:///storage/foo.mp4");
  private final Request request = new Request(uri);
  private final ShadowRequest shadow = shadowOf(request);

  @Test
  public void request_shouldGetUri() throws Exception {
    assertThat(shadow.getUri().toString()).isEqualTo("http://example.com/foo.mp4");
  }

  @Test
  public void request_shouldGetDestinationUri() throws Exception {
    request.setDestinationUri(Uri.parse("/storage/media/foo.mp4"));
    assertThat(shadow.getDestination().toString()).isEqualTo("/storage/media/foo.mp4");
  }

  @Test
  public void request_shouldGetTitle() throws Exception {
    request.setTitle("Title");
    assertThat(shadow.getTitle()).isEqualTo("Title");
  }

  @Test
  public void request_shouldGetDescription() throws Exception {
    request.setDescription("Description");
    assertThat(shadow.getDescription()).isEqualTo("Description");
  }

  @Test
  public void request_shouldGetMimeType() throws Exception {
    request.setMimeType("application/json");
    assertThat(shadow.getMimeType()).isEqualTo("application/json");
  }

  @Test
  public void request_shouldGetNotificationVisibility() throws Exception {
    request.setNotificationVisibility(Request.VISIBILITY_VISIBLE);
    assertThat(shadow.getNotificationVisibility()).isEqualTo(Request.VISIBILITY_VISIBLE);
  }

  @Test
  public void request_shouldGetAllowedNetworkTypes() throws Exception {
    request.setAllowedNetworkTypes(Request.NETWORK_BLUETOOTH);
    assertThat(shadow.getAllowedNetworkTypes()).isEqualTo(Request.NETWORK_BLUETOOTH);
  }

  @Test
  public void request_shouldGetAllowedOverRoaming() throws Exception {
    request.setAllowedOverRoaming(true);
    assertThat(shadow.getAllowedOverRoaming()).isTrue();
  }

  @Test
  public void request_shouldGetAllowedOverMetered() throws Exception {
    request.setAllowedOverMetered(true);
    assertThat(shadow.getAllowedOverMetered()).isTrue();
  }

  @Test
  public void request_shouldGetVisibleInDownloadsUi() throws Exception {
    request.setVisibleInDownloadsUi(true);
    assertThat(shadow.getVisibleInDownloadsUi()).isTrue();
  }

  @Test
  public void enqueue_shouldAddRequest() {
    ShadowDownloadManager manager = new ShadowDownloadManager();
    long id = manager.enqueue(request);

    assertThat(manager.getRequestCount()).isEqualTo(1);
    assertThat(manager.getRequest(id)).isEqualTo(request);
  }

  @Test
  public void query_shouldReturnCursor() throws Exception {
    ShadowDownloadManager manager = new ShadowDownloadManager();
    long id = manager.enqueue(request);

    Cursor cursor = manager.query(new DownloadManager.Query().setFilterById(id));
    assertThat(cursor.getCount()).isEqualTo(1);
    assertThat(cursor.moveToNext()).isTrue();
  }

  @Test
  public void query_shouldReturnColumnIndexes() throws Exception {
    ShadowDownloadManager manager = new ShadowDownloadManager();
    long id = manager.enqueue(request.setDestinationUri(destination));
    Cursor cursor = manager.query(new DownloadManager.Query().setFilterById(id));

    assertThat(cursor.getColumnIndex(DownloadManager.COLUMN_URI)).isNotNegative();
    assertThat(cursor.getColumnIndex(DownloadManager.COLUMN_LOCAL_URI)).isNotNegative();
    assertThat(cursor.getColumnIndex(DownloadManager.COLUMN_LOCAL_FILENAME)).isNotNegative();
    assertThat(cursor.getColumnIndex(DownloadManager.COLUMN_DESCRIPTION)).isNotNegative();
    assertThat(cursor.getColumnIndex(DownloadManager.COLUMN_REASON)).isNotNegative();
    assertThat(cursor.getColumnIndex(DownloadManager.COLUMN_STATUS)).isNotNegative();
  }

  @Test
  public void query_shouldReturnColumnValues() throws Exception {
    ShadowDownloadManager manager = new ShadowDownloadManager();
    long id = manager.enqueue(request.setDestinationUri(destination));
    Cursor cursor = manager.query(new DownloadManager.Query().setFilterById(id));

    cursor.moveToNext();
    assertThat(cursor.getString(cursor.getColumnIndex(DownloadManager.COLUMN_URI))).isEqualTo(uri.toString());
    assertThat(cursor.getString(cursor.getColumnIndex(DownloadManager.COLUMN_LOCAL_URI))).isEqualTo(destination.toString());
  }
}


text:
class DictionaryValue;

namespace printing {

class PrintedDocument;
class PrintedPage;
class PrintJob;
class PrintJobWorkerOwner;

// Worker thread code. All this code, except for the constructor, is executed in
// the worker thread. It manages the PrintingContext, which can be blocking
// and/or run a message loop. This is the object that generates most
// NOTIFY_PRINT_JOB_EVENT notifications, but they are generated through a
// NotificationTask task to be executed from the right thread, the UI thread.
// PrintJob always outlives its worker instance.
class PrintJobWorker : public base::Thread {
 public:
  explicit PrintJobWorker(PrintJobWorkerOwner* owner);
  ~PrintJobWorker();

  void SetNewOwner(PrintJobWorkerOwner* new_owner);

  // Initializes the print settings. If |ask_user_for_settings| is true, a
  // Print... dialog box will be shown to ask the user his preference.
  void GetSettings(bool ask_user_for_settings,
                   gfx::NativeView parent_view,
                   int document_page_count,
                   bool has_selection,
                   bool use_overlays);

  // Set the new print settings. This function takes ownership of
  // |new_settings|.
  void SetSettings(const DictionaryValue* const new_settings);

  // Starts the printing loop. Every pages are printed as soon as the data is
  // available. Makes sure the new_document is the right one.
  void StartPrinting(PrintedDocument* new_document);

  // Updates the printed document.
  void OnDocumentChanged(PrintedDocument* new_document);

  // Unqueues waiting pages. Called when PrintJob receives a
  // NOTIFY_PRINTED_DOCUMENT_UPDATED notification. It's time to look again if
  // the next page can be printed.
  void OnNewPage();

  // This is the only function that can be called in a thread.
  void Cancel();

 protected:
  // Retrieves the context for testing only.
  PrintingContext* printing_context() { return printing_context_.get(); }

 private:
  // The shared NotificationService service can only be accessed from the UI
  // thread, so this class encloses the necessary information to send the
  // notification from the right thread. Most NOTIFY_PRINT_JOB_EVENT
  // notifications are sent this way, except USER_INIT_DONE, USER_INIT_CANCELED
  // and DEFAULT_INIT_DONE. These three are sent through PrintJob::InitDone().
  class NotificationTask;
  friend struct RunnableMethodTraits<PrintJobWorker>;

  // Renders a page in the printer.
  void SpoolPage(PrintedPage& page);

  // Closes the job since spooling is done.
  void OnDocumentDone();

  // Discards the current document, the current page and cancels the printing
  // context.
  void OnFailure();

  // Asks the user for print settings. Must be called on the UI thread.
  // Required on Mac and Linux. Windows can display UI from non-main threads,
  // but sticks with this for consistency.
  void GetSettingsWithUI(gfx::NativeView parent_view,
                         int document_page_count,
                         bool has_selection);

  // The callback used by PrintingContext::GetSettingsWithUI() to notify this
  // object that the print settings are set.  This is needed in order to bounce
  // back into the IO thread for GetSettingsDone().
  void GetSettingsWithUIDone(PrintingContext::Result result);

  // Called on the UI thread to update the print settings. This function takes
  // the ownership of |new_settings|.
  void UpdatePrintSettings(const DictionaryValue* const new_settings);

  // Reports settings back to owner_.
  void GetSettingsDone(PrintingContext::Result result);

  // Use the default settings. When using GTK+ or Mac, this can still end up
  // displaying a dialog. So this needs to happen from the UI thread on these
  // systems.
  void UseDefaultSettings();

  // Information about the printer setting.
  scoped_ptr<PrintingContext> printing_context_;

  // The printed document. Only has read-only access.
  scoped_refptr<PrintedDocument> document_;

  // The print job owning this worker thread. It is guaranteed to outlive this
  // object.
  PrintJobWorkerOwner* owner_;

  // Current page number to print.
  PageNumber page_number_;

  DISALLOW_COPY_AND_ASSIGN(PrintJobWorker);
};

}  // namespace printing

template <>
struct RunnableMethodTraits<printing::PrintJobWorker> {
  void RetainCallee(printing::PrintJobWorker* obj);
  void ReleaseCallee(printing::PrintJobWorker* obj);
 private:
  scoped_refptr<printing::PrintJobWorkerOwner> owner_;
};

#endif  // CHROME_BROWSER_PRINTING_PRINT_JOB_WORKER_H__