text:
/* Thing > Intangible > EntryPoint - An entry point, within some Web-based protocol.. Generated automatically by the reactGenerator. */  var EntryPoint= React.createClass({displayName: "EntryPoint",
    getDefaultProps: function(){
      return {
      }
    },
    render: function(){
      var props = this.props.props;
      var potentialAction;
      if( props.potentialAction ){
        if( props.potentialAction instanceof Array ){
          potentialAction = [ (React.createElement("div", {key: "header", "data-advice": "HTML for the *head* of the section"})) ]
          potentialAction = potentialAction.concat( props.potentialAction.map( function(result, index){
              return ( React.createElement(Action, React.__spread({},  result, {key: index})) )
           }) );
         potentialAction.push( ( React.createElement("div", {key: "footer", "data-advice": "HTML for the *footer* of the section"}) ) );
        } else {
          potentialAction = ( React.createElement(Action, {props:  props.potentialAction}) );        }
      }
      var contentType;
      if( props.contentType ){
        if( props.contentType instanceof Array ){
          contentType = [ (React.createElement("div", {key: "header", "data-advice": "HTML for the *head* of the section"})) ]
          contentType = contentType.concat( props.contentType.map( function(result, index){
              return ( React.createElement("div", {key: index, "data-advice": "Put your HTML here. contentType is a Text."}) )
           }) );
         contentType.push( ( React.createElement("div", {key: "footer", "data-advice": "HTML for the *footer* of the section"}) ) );
        } else {
            contentType = ( React.createElement("div", {"data-advice": "Put your HTML here. contentType is a Text."}) );
        }
      }
      var description;
      if( props.description ){
        if( props.description instanceof Array ){
          description = [ (React.createElement("div", {key: "header", "data-advice": "HTML for the *head* of the section"})) ]
          description = description.concat( props.description.map( function(result, index){
              return ( React.createElement("div", {key: index, "data-advice": "Put your HTML here. description is a Text."}) )
           }) );
         description.push( ( React.createElement("div", {key: "footer", "data-advice": "HTML for the *footer* of the section"}) ) );
        } else {
            description = ( React.createElement("div", {"data-advice": "Put your HTML here. description is a Text."}) );
        }
      }
      var sameAs;
      if( props.sameAs ){
        if( props.sameAs instanceof Array ){
          sameAs = [ (React.createElement("div", {key: "header", "data-advice": "HTML for the *head* of the section"})) ]
          sameAs = sameAs.concat( props.sameAs.map( function(result, index){
              return ( React.createElement("div", {key: index, "data-advice": "Put your HTML here. sameAs is a URL."}) )
           }) );
         sameAs.push( ( React.createElement("div", {key: "footer", "data-advice": "HTML for the *footer* of the section"}) ) );
        } else {
            sameAs = ( React.createElement("div", {"data-advice": "Put your HTML here. sameAs is a URL."}) );
        }
      }
      var actionApplication;
      if( props.actionApplication ){
        if( props.actionApplication instanceof Array ){
          actionApplication = [ (React.createElement("div", {key: "header", "data-advice": "HTML for the *head* of the section"})) ]
          actionApplication = actionApplication.concat( props.actionApplication.map( function(result, index){
              return ( React.createElement(SoftwareApplication, React.__spread({},  result, {key: index})) )
           }) );
         actionApplication.push( ( React.createElement("div", {key: "footer", "data-advice": "HTML for the *footer* of the section"}) ) );
        } else {
          actionApplication = ( React.createElement(SoftwareApplication, {props:  props.actionApplication}) );        }
      }
      var image;
      if( props.image ){
        if( props.image instanceof Array ){
          image = [ (React.createElement("div", {key: "header", "data-advice": "HTML for the *head* of the section"})) ]
          image = image.concat( props.image.map( function(result, index){
              return ( React.createElement("div", {key: index, "data-advice": "Put your HTML here. image is a URL or" + ' ' +
"ImageObject."}) )
           }) );
         image.push( ( React.createElement("div", {key: "footer", "data-advice": "HTML for the *footer* of the section"}) ) );
        } else {
            image = ( React.createElement("div", {"data-advice": "Put your HTML here. image is a URL or" + ' ' +
"ImageObject."}) );
        }
      }
      var httpMethod;
      if( props.httpMethod ){
        if( props.httpMethod instanceof Array ){
          httpMethod = [ (React.createElement("div", {key: "header", "data-advice": "HTML for the *head* of the section"})) ]
          httpMethod = httpMethod.concat( props.httpMethod.map( function(result, index){
              return ( React.createElement("div", {key: index, "data-advice": "Put your HTML here. httpMethod is a Text."}) )
           }) );
         httpMethod.push( ( React.createElement("div", {key: "footer", "data-advice": "HTML for the *footer* of the section"}) ) );
        } else {
            httpMethod = ( React.createElement("div", {"data-advice": "Put your HTML here. httpMethod is a Text."}) );
        }
      }
      var url;
      if( props.url ){
        if( props.url instanceof Array ){
          url = [ (React.createElement("div", {key: "header", "data-advice": "HTML for the *head* of the section"})) ]
          url = url.concat( props.url.map( function(result, index){
              return ( React.createElement("div", {key: index, "data-advice": "Put your HTML here. url is a URL."}) )
           }) );
         url.push( ( React.createElement("div", {key: "footer", "data-advice": "HTML for the *footer* of the section"}) ) );
        } else {
            url = ( React.createElement("div", {"data-advice": "Put your HTML here. url is a URL."}) );
        }
      }
      var urlTemplate;
      if( props.urlTemplate ){
        if( props.urlTemplate instanceof Array ){
          urlTemplate = [ (React.createElement("div", {key: "header", "data-advice": "HTML for the *head* of the section"})) ]
          urlTemplate = urlTemplate.concat( props.urlTemplate.map( function(result, index){
              return ( React.createElement("div", {key: index, "data-advice": "Put your HTML here. urlTemplate is a Text."}) )
           }) );
         urlTemplate.push( ( React.createElement("div", {key: "footer", "data-advice": "HTML for the *footer* of the section"}) ) );
        } else {
            urlTemplate = ( React.createElement("div", {"data-advice": "Put your HTML here. urlTemplate is a Text."}) );
        }
      }
      var mainEntityOfPage;
      if( props.mainEntityOfPage ){
        if( props.mainEntityOfPage instanceof Array ){
          mainEntityOfPage = [ (React.createElement("div", {key: "header", "data-advice": "HTML for the *head* of the section"})) ]
          mainEntityOfPage = mainEntityOfPage.concat( props.mainEntityOfPage.map( function(result, index){
              return ( React.createElement("div", {key: index, "data-advice": "Put your HTML here. mainEntityOfPage is a CreativeWork or" + ' ' +
"URL."}) )
           }) );
         mainEntityOfPage.push( ( React.createElement("div", {key: "footer", "data-advice": "HTML for the *footer* of the section"}) ) );
        } else {
            mainEntityOfPage = ( React.createElement("div", {"data-advice": "Put your HTML here. mainEntityOfPage is a CreativeWork or" + ' ' +
"URL."}) );
        }
      }
      var additionalType;
      if( props.additionalType ){
        if( props.additionalType instanceof Array ){
          additionalType = [ (React.createElement("div", {key: "header", "data-advice": "HTML for the *head* of the section"})) ]
          additionalType = additionalType.concat( props.additionalType.map( function(result, index){
              return ( React.createElement("div", {key: index, "data-advice": "Put your HTML here. additionalType is a URL."}) )
           }) );
         additionalType.push( ( React.createElement("div", {key: "footer", "data-advice": "HTML for the *footer* of the section"}) ) );
        } else {
            additionalType = ( React.createElement("div", {"data-advice": "Put your HTML here. additionalType is a URL."}) );
        }
      }
      var alternateName;
      if( props.alternateName ){
        if( props.alternateName instanceof Array ){
          alternateName = [ (React.createElement("div", {key: "header", "data-advice": "HTML for the *head* of the section"})) ]
          alternateName = alternateName.concat( props.alternateName.map( function(result, index){
              return ( React.createElement("div", {key: index, "data-advice": "Put your HTML here. alternateName is a Text."}) )
           }) );
         alternateName.push( ( React.createElement("div", {key: "footer", "data-advice": "HTML for the *footer* of the section"}) ) );
        } else {
            alternateName = ( React.createElement("div", {"data-advice": "Put your HTML here. alternateName is a Text."}) );
        }
      }
      var encodingType;
      if( props.encodingType ){
        if( props.encodingType instanceof Array ){
          encodingType = [ (React.createElement("div", {key: "header", "data-advice": "HTML for the *head* of the section"})) ]
          encodingType = encodingType.concat( props.encodingType.map( function(result, index){
              return ( React.createElement("div", {key: index, "data-advice": "Put your HTML here. encodingType is a Text."}) )
           }) );
         encodingType.push( ( React.createElement("div", {key: "footer", "data-advice": "HTML for the *footer* of the section"}) ) );
        } else {
            encodingType = ( React.createElement("div", {"data-advice": "Put your HTML here. encodingType is a Text."}) );
        }
      }
      var name;
      if( props.name ){
        if( props.name instanceof Array ){
          name = [ (React.createElement("div", {key: "header", "data-advice": "HTML for the *head* of the section"})) ]
          name = name.concat( props.name.map( function(result, index){
              return ( React.createElement("div", {key: index, "data-advice": "Put your HTML here. name is a Text."}) )
           }) );
         name.push( ( React.createElement("div", {key: "footer", "data-advice": "HTML for the *footer* of the section"}) ) );
        } else {
            name = ( React.createElement("div", {"data-advice": "Put your HTML here. name is a Text."}) );
        }
      }
      return (React.createElement("div", {title: "EntryPoint", className: "EntryPoint entity"},
         potentialAction,
         contentType,
         description,
         sameAs,
         actionApplication,
         image,
         httpMethod,
         url,
         urlTemplate,
         mainEntityOfPage,
         additionalType,
         alternateName,
         encodingType,
         name
     ));
    }
  });


text:
from modules.Configuration import config
from models.scf import Frame, ReferenceFrame, Verb, database
from modules.Plotter import Plotter
from filter import Filter

## This class is used for evaluating system performance
# @author Adriano Zanette
# @version 1.0
class Evaluator():

  ## class constructor
  # @author Adriano Zanette
  # @version 1.0
  # @return Evaluator
  def __init__ (self):
    self.filter = config.evaluator.filter
    self.value = config.evaluator.minValue
    self.max = config.evaluator.maxValue
    self.increment = config.evaluator.increment
    self.operator = config.evaluator.operator
    self.output = config.evaluator.output
    self.verbList = config.evaluator.verbList
    self.values = []
    self.precisionValues = []
    self.recallValues = []
    self.fmeasureValues = []

  ## add values to a result vector to build a graph
  # @author Adriano Zanette
  # @version 1.0
  # @param value float
  # @param precision float
  # @param recall float
  # @param fmeasure float
  def addValue(self, value, precision, recall, fmeasure):
    self.values.append(value)
    self.precisionValues.append(precision)
    self.recallValues.append(recall)
    self.fmeasureValues.append(fmeasure)

  ## draw a verb histogram of scf frequencies
  # @author Adriano Zanette
  # @version 1.0
  # @param verbString String
  def verbHistogram(self, verbString):
    verb = Verb.get(Verb.verb == verbString)
    frequencies = [frame.frequency for frame in verb.frames if frame.frequency > self.value ]
    frequencies.sort(reverse=True)

    plotter = Plotter()
    plotter.drawBars(frequencies, edgecolor="#cccccc")
    plotter.title('Verb '+verbString+' Histogram')
    plotter.labels("Frames", 'Frequency')
    plotter.output()

  ## evaluates system's performance
  # @author Adriano Zanette
  # @version 1.0
  # @param verbList If passed evaluate only verbs in the list
  def evaluate(self, verbList = None):
    filterModule = Filter()
    self.queries = self.buildQueries(verbList)

    while(self.value <= self.max):
      filterModule.setComparator(self.filter, self.operator, self.value)
      filterModule.filterFrames()

      golden = self.countGoldenFrames()
      retrieved = self.countNotFilteredFrames()
      intersect = self.countIntersection()

      #print 'value: %s, ints: %s, retr: %s, gold: %s ' % (str(self.value), str(intersect), str(retrieved), str(golden))
      p = self.precision(intersect, retrieved)
      r = self.recall(intersect, golden)
      f = self.fmeasure(p, r)
      #print 'value: %s, p: %s, r: %s, f: %s ' % (str(self.value), str(p), str(r), str(f))
      print '%s,%s,%s,%s' % (str(self.value), str(p), str(r), str(f))

      self.addValue(self.value, p, r, f)
      self.value += self.increment

    self.plotEvaluation()

  ## build queries for future searches
  # @author Adriano Zanette
  # @version 1.0
  # @param verbList If passed restricts SQL only for verbs in the list
  # @return Dict Queries for golden, extract and intersection
  def buildQueries(self, verbList = None):

    verbRestriction = self.buildVerbListRestriction(verbList)

    goldenSQL = """ SELECT COUNT(*)
                    FROM """+ReferenceFrame._meta.db_table + """ AS rf
                    WHERE """+Verb.id.db_column+""" in
                          ( SELECT DISTINCT("""+Verb.id.db_column+""")
                            FROM """+Frame._meta.db_table+ """ AS f
                            WHERE f."""+Frame.filtered.db_column+""" = 0
                            """+ verbRestriction +""")"""

    intersectionSQL = """ SELECT COUNT(*)
                          FROM """+ReferenceFrame._meta.db_table + """ AS rf
                          JOIN """+Frame._meta.db_table+""" AS f
                            ON f."""+Frame.verb.db_column+""" = rf."""+ReferenceFrame.verb.db_column+"""
                            AND f."""+Frame.frame.db_column+""" = rf."""+ReferenceFrame.frame.db_column+"""
                            AND rf."""+Frame.isPassive.db_column+""" = f."""+ReferenceFrame.isPassive.db_column+"""
                          WHERE f."""+Frame.filtered.db_column+""" = 0 """ + verbRestriction

    extractedSQL =  "SELECT COUNT(*) FROM "+Frame._meta.db_table + " AS f WHERE "+Frame.filtered.db_column+" = 0 " + verbRestriction

    return {'golden': goldenSQL, 'intersection': intersectionSQL, 'extracted': extractedSQL}

  ## build restriction for verblist
  # @author Adriano Zanette
  # @version 1.0
  # @param verbList If passed builds SQL restriction for verbs in the list
  # @return string
  def buildVerbListRestriction(self, verbList):
    if verbList:
      inSQL = ["\'%s\'" % (verb) for verb in verbList]
      sqlVerbs = "SELECT "+Verb.id.db_column+" FROM "+Verb._meta.db_table+" WHERE "+Verb.verb.db_column+" in ( "+ (",".join(inSQL)) +")"
      verbIds = [ str(row[0]) for row in database.execute_sql(sqlVerbs).fetchall() ]
      restriction = " AND f."+Verb.id.db_column+" IN ( "+ ",".join(verbIds) +" ) "
    else:
      restriction = ""

    return restriction

  ## calculates precision
  # @author Adriano Zanette
  # @version 1.0
  # @param intersect int Number of SCF extracted correct
  # @param retrieved int Number of SCF extracted
  # @return float
  def precision(self, intersect, retrieved):
    if intersect == 0 :
      return 0

    return (float(intersect)/float(retrieved))*100

  ## calculates recall
  # @author Adriano Zanette
  # @version 1.0
  # @param intersect int Number of SCF extracted correct
  # @param golden int Number of reference SCF
  # @return float
  def recall(self, intersect, golden):
    if intersect == 0 :
      return 0

    return (float(intersect)/float(golden))*100

  ## calculates f-measure
  # @author Adriano Zanette
  # @version 1.0
  # @param precistion float
  # @param recall float
  # @return float
  def fmeasure(self, precision, recall):
    if precision == 0 or recall == 0 :
      return 0

    return (2*precision*recall)/(precision+recall)

  ## retrieve the number of golden frames not filtered
  # @author Adriano Zanette
  # @version 1.0
  # @return Integer
  def countGoldenFrames(self):
    sql = self.queries['golden']
    result = database.execute_sql(sql)
    return result.fetchone()[0]

  ## retrieve the size of intersection between golden frames and frames extracted not filtered
  # @author Adriano Zanette
  # @version 1.0
  # @return Integer
  def countIntersection(self):
    sql = self.queries['intersection']
    result = database.execute_sql(sql)
    return result.fetchone()[0]

  ## retrieve the number of frames extracted not filtered
  # @author Adriano Zanette
  # @version 1.0
  # @return Integer
  def countNotFilteredFrames(self):
    sql = self.queries['extracted']
    result = database.execute_sql(sql)
    return result.fetchone()[0]

  ## plot evaluation
  # @author Adriano Zanette
  # @version 1.0
  def plotEvaluation(self):
    plotter = Plotter()
    plotter.drawLine(self.values, self.precisionValues, 'precision')
    plotter.drawLine(self.values, self.recallValues, 'recall')
    plotter.drawLine(self.values, self.fmeasureValues, 'fmeasure')
    plotter.title('SCFExtractor Evaluation')
    plotter.labels("Cutoff", '%')
    if self.output:
      plotter.output(self.output)
    else:
      plotter.show()

redpajama_set_name: RedPajamaGithub


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

 Copyright 2003 - 2021 The eFaps Team

 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.

-->
<ui-command xmlns="http://www.efaps.org/xsd"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://www.efaps.org/xsd http://www.efaps.org/xsd/eFaps_1.0.xsd">
    <uuid>390144f6-9410-4679-b012-3ddd4cb26322</uuid>
    <file-application>eFapsApp-POS</file-application>
    <definition>
        <version-expression>(version==latest)</version-expression>
        <name>POS_IndicationTree_Menu_Action_Checkin</name>
        <target>
            <form>POS_Indication_FileCheckinForm</form>
            <execute program="org.efaps.esjp.common.uiform.Edit" />
            <trigger event="UI_ACCESSCHECK" method="configCheck"
                name="POS_IndicationTree_Menu_Action_Checkin.UI_ACCESSCHECK"
                program="org.efaps.esjp.admin.access.AccessCheck4UI">
                <!-- POS-Configuration -->
                <property name="SystemConfig">b038bf69-b588-431d-8c02-f53d4aac46c9</property>
                <property name="Attribute">org.efaps.pos.Indication.ActivateImage</property>
            </trigger>
        </target>
        <property name="Target">modal</property>
        <property name="TargetMode">edit</property>
    </definition>
</ui-command>


text:
{{ occasion.name }}

    Back to List


text:
<?php

namespace Unixslayer\PhpConversion\Size\HatSize;

use \Unixslayer\PhpConversion\Size\System as BaseSystem;

/**
 * Class System
 * @package Unixslayer\PhpConversion\Size\HatSize
 */
class System extends BaseSystem
{
    const CENTIMETRE    = 'cm';
    const AMERICAN      = 'US';
    const BRITISH       = 'UK';
    const INCH          = 'in';
}


text:
authors: Andrej Tokarčík (andrej@goteleport.com)
state: implemented
---

# RFD 45 - RBAC `where` conditions for active sessions list/read

## What

Manage access to active sessions (resource kind `ssh_session`) by RBAC
`where` conditions, in the same manner as the RFD 44 *RBAC `where` conditions
for session recordings list/read* provides access management for session
recordings (resource kind `session`).

These deny checks are to be employed on top of the new RBAC rules for listing and joining sessions introduced in [RFD 43](https://github.com/gravitational/teleport/blob/master/rfd/0043-kubeaccess-multiparty.md). This means that the user must pass both the resource checks introduced in this RFD and the RBAC `join_policy` checks from RFD 43 in order to join a session.

## Why

To be able to restrict access of certain users to only a subset of active
sessions, notably only their own active sessions.

## Details

### Work around implicit allow rule

Unlike `session`, the `ssh_session` kind is referred to by an [implicit rule](
https://github.com/gravitational/teleport/blob/066f0dbbad801ad822b81482948732641773d8fe/lib/services/role.go#L57)
granting unrestricted list/read privileges to all users:

```go
	types.NewRule(types.KindSSHSession, RO()),
```

Adding a `where` section to an explicit allow rule for `ssh_session` would
therefore take no effect.  To restrict access to active sessions, one has to
add (the negation of) the desired condition to a deny rule, as those are
applied earlier than allow rules:

```yaml
spec:
  deny:
    rules:
    - resources: [ssh_session]
      verbs: [list, read]
      where: '!contains(ssh_session.participants, user.metadata.name)'
```

### `ssh_session` identifier API

The `ssh_session` identifier exposes the private `lib.session.ctxSession`
struct. `ctxSession` is a subset of [`session.Session`](
https://github.com/gravitational/teleport/blob/066f0dbbad801ad822b81482948732641773d8fe/lib/session/session.go#L84)
with the addition of the `participants` field.

In general, the RBAC `contains` predicate can only be used to detect the
occurrence of a string in a slice of strings. However, the `Parties` field of
`session.Session` is a slice of more complex `Party` objects, not strings.
To support `where` conditions as above, a list of usernames is extracted from
the original `Party` slice in order that the usernames be then bound to
`ssh_session.participants` instead.


text:
.itemlist-first-screen .module-wrap {
  position: relative;
  font-family: "Microsoft YaHei", "Hiragino Sans GB"; }
  .itemlist-first-screen .module-wrap .J_conf {
    display: none; }
  .itemlist-first-screen .module-wrap .slide {
    position: relative;
    height: 340px;
    width: 100%;
    overflow: hidden; }
    .itemlist-first-screen .module-wrap .slide .tab-content {
      height: 340px;
      width: 100%; }
    .itemlist-first-screen .module-wrap .slide .tab-pannel {
      height: 340px;
      width: 100%; }
      .itemlist-first-screen .module-wrap .slide .tab-pannel a {
        display: block;
        position: relative;
        height: 100%;
        width: 100%;
        background: url(about:blank); }
    .itemlist-first-screen .module-wrap .slide .tab-nav {
      position: absolute;
      left: 50%;
      margin-left: -20px;
      bottom: 15px;
      z-index: 10; }
      .itemlist-first-screen .module-wrap .slide .tab-nav li {
        float: left;
        display: inline;
        margin: 0 5px; }
        .itemlist-first-screen .module-wrap .slide .tab-nav li a {
          display: block;
          float: left;
          height: 15px;
          width: 15px;
          text-indent: -999em;
          overflow: hidden;
          background: #fff;
          opacity: .5;
          filter: alpha(opacity=50);
          border-radius: 50%;
          -moz-border-radius: 50%;
          -webkit-border-radius: 50%; }
      .itemlist-first-screen .module-wrap .slide .tab-nav li.selected a {
        opacity: 1;
        filter: alpha(opacity=100); }
  .itemlist-first-screen .module-wrap .countdown-wrap {
    position: absolute;
    left: 50%;
    margin-left: -595px;
    top: 50px;
    z-index: 10;
    width: 270px;
    height: 220px;
    text-align: center;
    color: #161616;
    background: url(//img.alicdn.com/tps/i4/TB1UeMXHpXXXXarXpXXaCx9JFXX-1-1.png) repeat 0 0; }
    .itemlist-first-screen .module-wrap .countdown-wrap h2 {
      padding: 25px 0 15px 0;
      height: 56px;
      font-size: 24px;
      font-weight: normal;
      border-bottom: 1px solid #a6a6a6;
      background: url(//img.alicdn.com/tps/i3/TB10uIsHpXXXXbiXpXXZCKuHFXX-56-56.png) no-repeat 0 0; }
      .itemlist-first-screen .module-wrap .countdown-wrap h2 strong {
        font-size: 34px;
        color: #ce0045;
        font-weight: normal; }
    .itemlist-first-screen .module-wrap .countdown-wrap h3 {
      padding-top: 30px;
      font-weight: normal;
      font-size: 16px;
      color: #cd0044;
      margin-bottom: 8px;
      border-top: 1px solid #cacaca; }
    .itemlist-first-screen .module-wrap .countdown-wrap .lefttimes {
      font-size: 14px;
      line-height: 32px; }
      .itemlist-first-screen .module-wrap .countdown-wrap .lefttimes s {
        font-size: 16px; }
      .itemlist-first-screen .module-wrap .countdown-wrap .lefttimes .digital {
        display: inline-block;
        margin: 0 1px;
        padding: 0 3px;
        *display: inline;
        zoom: 1;
        color: #fff;
        text-decoration: none;
        background: url(//img.alicdn.com/tps/i1/TB1MUL8HpXXXXa4XFXX8Z6YFXXX-16-32.png) no-repeat 0 0; }

@media only screen and (min-device-width: 768px) and (max-device-width: 1024px) and (orientation: landscape) {
  .itemlist-first-screen .module-wrap .grid-m {
    width: 1190px !important; } }
@media only screen and (min-device-width: 768px) and (max-device-width: 1024px) and (orientation: portrait) {
  .itemlist-first-screen .module-wrap .grid-m {
    width: 1190px !important; } }
* {
  margin: 0;
  padding: 0; }

.act-banner-pc .container img {
  width: 100%;
  display: block; }

.itemlist-for-qxofifashion .dataText {
  display: none; }
.itemlist-for-qxofifashion .module-wrap {
  width: 1190px;
  margin: 0 auto;
  position: relative;
  color: #333;
  margin-bottom: 30px; }
  .itemlist-for-qxofifashion .module-wrap .img-vertical {
    display: table;
    text-align: center;
    overflow: hidden;
    font-size: 0;
    *display: block;
    /* for IE6/7 */
    *layout-grid-line: 100%; }
    .itemlist-for-qxofifashion .module-wrap .img-vertical .img-wrap {
      display: table-cell;
      vertical-align: middle;
      *display: inline;
      /* for IE6/7 */
      *writing-mode: tb-rl;
      /* for IE6/7 */
      *text-align: center;
      *height: 100%; }
    .itemlist-for-qxofifashion .module-wrap .img-vertical img {
      vertical-align: middle; }
  .itemlist-for-qxofifashion .module-wrap .ms-yh {
    font-family: "Microsoft YaHei", "Hiragino Sans GB"; }
  .itemlist-for-qxofifashion .module-wrap a:hover {
    text-decoration: none; }
  .itemlist-for-qxofifashion .module-wrap .b-title {
    padding: 10px 0;
    font-size: 26px;
    font-weight: normal; }
    .itemlist-for-qxofifashion .module-wrap .b-title span {
      font-size: 14px;
      color: #464646; }
  .itemlist-for-qxofifashion .module-wrap .list li {
    position: relative;
    float: left;
    margin: 0 10px 10px 0;
    display: inline;
    width: 230px;
    overflow: hidden;
    background: #fff;
    height: 454px; }
    .itemlist-for-qxofifashion .module-wrap .list li .inner {
      width: 100%;
      height: 100%; }
    .itemlist-for-qxofifashion .module-wrap .list li .pic-wrap {
      height: 345px;
      width: 230px;
      background: #fff;
      overflow: hidden; }
    .itemlist-for-qxofifashion .module-wrap .list li .ipic .img-wrap {
      width: 284px;
      height: 345px; }
    .itemlist-for-qxofifashion .module-wrap .list li .grac {
      color: #999 !important; }
    .itemlist-for-qxofifashion .module-wrap .list li .txt {
      position: absolute;
      top: 323px;
      right: 0;
      width: 48px;
      text-align: center;
      height: 68px; }
      .itemlist-for-qxofifashion .module-wrap .list li .txt .filter {
        width: 100%;
        height: 22px;
        display: block;
        opacity: 0.6;
        filter: progid:DXImageTransform.Microsoft.Alpha(opacity=60);
        /*IE6~IE8*/
        z-index: 9;
        position: absolute;
        top: 0;
        left: 0; }
      .itemlist-for-qxofifashion .module-wrap .list li .txt .statu {
        display: inline-block;
        zoom: 1;
        *display: inline;
        color: #ffffff;
        width: 100%;
        height: 22px;
        line-height: 22px;
        text-align: center;
        z-index: 10;
        position: relative; }
      .itemlist-for-qxofifashion .module-wrap .list li .txt .num {
        display: inline-block;
        zoom: 1;
        *display: inline;
        line-height: 18px;
        color: #ffffff;
        font-size: 12px;
        width: 100%;
        padding-top: 5px;
        height: 43px; }
        .itemlist-for-qxofifashion .module-wrap .list li .txt .num strong {
          font-weight: normal;
          font-size: 18px; }
    .itemlist-for-qxofifashion .module-wrap .list li .red .filter, .itemlist-for-qxofifashion .module-wrap .list li .red .num {
      background: #ff0033; }
    .itemlist-for-qxofifashion .module-wrap .list li .green .filter, .itemlist-for-qxofifashion .module-wrap .list li .green .num {
      background: #26b875; }
    .itemlist-for-qxofifashion .module-wrap .list li .gray .filter, .itemlist-for-qxofifashion .module-wrap .list li .gray .num {
      background: #999999; }
    .itemlist-for-qxofifashion .module-wrap .list li .blue {
      width: 56px; }
    .itemlist-for-qxofifashion .module-wrap .list li .blue .filter, .itemlist-for-qxofifashion .module-wrap .list li .blue .num {
      background: #3ea3d5; }
    .itemlist-for-qxofifashion .module-wrap .list li .box {
      width: 228px;
      border-left: 1px solid #e6e6e6;
      border-right: 1px solid #e6e6e6;
      border-bottom: 1px solid #e6e6e6;
      height: 108px; }
    .itemlist-for-qxofifashion .module-wrap .list li .shop-mask {
      text-align: center;
      color: #666666; }
      .itemlist-for-qxofifashion .module-wrap .list li .shop-mask h3 {
        width: 220px;
        font-size: 12px;
        font-weight: normal;
        text-align: left;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        -o-text-overflow: ellipsis;
        padding-left: 10px;
        border-top: 2px solid #f8f8f8;
        line-height: 28px; }
        .itemlist-for-qxofifashion .module-wrap .list li .shop-mask h3 a {
          color: #333;
          padding-right: 10px;
          background: url(//gtms02.alicdn.com/tps/i2/TB18XdpIVXXXXbRXFXXfrCYJFXX-5-9.png) no-repeat right 4px; }
    .itemlist-for-qxofifashion .module-wrap .list li .shouqing {
      filter: progid:DXImageTransform.Microsoft.gradient(enabled='true', startColorstr='#7FFFFFFF', endColorstr='#7FFFFFFF');
      background: rgba(255, 255, 255, 0.5);
      top: 0;
      width: 230px;
      height: 345px;
      position: absolute;
      left: 0;
      z-index: 99; }
    .itemlist-for-qxofifashion .module-wrap .list li .over {
      position: absolute;
      left: 50px;
      top: 110px;
      z-index: 100; }
    .itemlist-for-qxofifashion .module-wrap .list li .info {
      position: relative;
      height: 70px;
      padding: 5px 10px 0 10px;
      width: 160px; }
      .itemlist-for-qxofifashion .module-wrap .list li .info h3.title {
        margin-bottom: 5px;
        font-size: 12px;
        line-height: 18px;
        overflow: hidden;
        height: 36px; }
        .itemlist-for-qxofifashion .module-wrap .list li .info h3.title a {
          color: #333333;
          font-weight: normal; }
      .itemlist-for-qxofifashion .module-wrap .list li .info .price {
        line-height: 26px;
        color: #666666;
        vertical-align: top; }
        .itemlist-for-qxofifashion .module-wrap .list li .info .price em {
          color: #ff0033;
          font-size: 14px; }
        .itemlist-for-qxofifashion .module-wrap .list li .info .price span {
          color: #ff0033;
          font-size: 18px;
          font-weight: bold; }
  .itemlist-for-qxofifashion .module-wrap .list li.hover {
    width: 230px;
    overflow: hidden;
    background: #000000; }
    .itemlist-for-qxofifashion .module-wrap .list li.hover .box {
      border-left: 1px solid #000;
      border-right: 1px solid #000;
      border-bottom: 1px solid #000; }
    .itemlist-for-qxofifashion .module-wrap .list li.hover h3.title a {
      color: #fff; }
    .itemlist-for-qxofifashion .module-wrap .list li.hover .price {
      color: #fff; }
      .itemlist-for-qxofifashion .module-wrap .list li.hover .price em, .itemlist-for-qxofifashion .module-wrap .list li.hover .price span {
        color: #fff !important; }
    .itemlist-for-qxofifashion .module-wrap .list li.hover .shop-mask h3 {
      border-top: 2px solid #222222; }
      .itemlist-for-qxofifashion .module-wrap .list li.hover .shop-mask h3 a {
        color: #fff;
        background: url("//gtms04.alicdn.com/tps/i4/TB1Bh76IFXXXXbwaXXXfrCYJFXX-5-9.png") no-repeat right 6px; }
    .itemlist-for-qxofifashion .module-wrap .list li.hover .shouqing {
      display: block; }
    .itemlist-for-qxofifashion .module-wrap .list li.hover .over {
      display: block; }
  .itemlist-for-qxofifashion .module-wrap .list li.nomr {
    margin-right: 0; }
  .itemlist-for-qxofifashion .module-wrap .square li {
    height: 339px; }
    .itemlist-for-qxofifashion .module-wrap .square li .shop-mask {
      top: 260px;
      height: 50px; }
    .itemlist-for-qxofifashion .module-wrap .square li .pic-wrap {
      height: 230px; }
      .itemlist-for-qxofifashion .module-wrap .square li .pic-wrap .img-vertical .img-wrap {
        height: 230px; }
    .itemlist-for-qxofifashion .module-wrap .square li .over {
      top: 50px;
      height: 50px; }
    .itemlist-for-qxofifashion .module-wrap .square li .shouqing {
      height: 230px; }
    .itemlist-for-qxofifashion .module-wrap .square li .txt {
      top: 208px; }
  .itemlist-for-qxofifashion .module-wrap .square li:hover {
    height: 339px; }

/*# sourceMappingURL=Market.css.map */


text:
layout: page
title: Linda Sanchez's 16th Birthday
date: 2016-05-24
author: Sara Nielsen
tags: weekly links, java
status: published
summary: Integer rutrum vestibulum nisi quis ultricies.
banner: images/banner/meeting-01.jpg
booking:
  startDate: 12/19/2018
  endDate: 12/22/2018
  ctyhocn: RIWWYHX
  groupCode: LS1B
published: true
---
Aenean id leo nec lacus fringilla bibendum eget non magna. Curabitur vitae volutpat dolor. Mauris varius ac est nec posuere. Fusce blandit enim eget enim egestas imperdiet. Sed nisi lectus, consequat at sapien eu, fermentum sollicitudin nibh. Nunc condimentum condimentum tempor. Morbi sed nunc sit amet orci rutrum volutpat. Nulla facilisi. Pellentesque vehicula condimentum justo, in volutpat nibh vestibulum suscipit. Praesent sed justo eget velit dignissim efficitur.
Duis in metus iaculis velit faucibus porta. Morbi finibus eu dui nec accumsan. Morbi sed eros vitae diam lobortis pretium. Vivamus volutpat ante est, vel gravida libero eleifend sed. Vivamus erat nisl, varius sit amet nunc sed, lobortis porttitor quam. Morbi ullamcorper varius dictum. Fusce ut sem mauris. Sed quis nisl finibus, scelerisque nisi vulputate, pellentesque nunc. Pellentesque at suscipit velit, id sodales tortor. Nullam id sem ut purus fermentum placerat vitae eget lorem. Nullam euismod et ante nec tincidunt.

1 Nam nec mi rutrum diam sodales interdum
1 Donec laoreet leo sed sollicitudin hendrerit
1 Duis efficitur arcu id vestibulum aliquet.

Nullam et tellus eget mauris commodo sodales. Vestibulum dapibus leo vel massa efficitur consequat. Praesent tincidunt nulla eget nunc tincidunt tempus sed in metus. Nam efficitur tellus augue, sit amet molestie metus pharetra in. Nulla gravida ex ac semper malesuada. Aenean eget rhoncus erat, quis dictum ex. Quisque et pulvinar magna.


text:
package gw.internal.xml.ws.server.marshal;

import gw.xml.BinaryData;

import java.util.Map;

public class UnmarshalContext {
  final private Map<String, BinaryData> _attachments;

  public UnmarshalContext(Map<String, BinaryData> attachments) {
    _attachments = attachments;
  }

  Map<String, BinaryData> getAttachments() {
    return _attachments;
  }
}


text:
import { getEngineParent, setEngineParent, ENGINE_PARENT } from 'ember-application/system/engine-parent';

QUnit.module('EngineParent', {});

QUnit.test('An engine\'s parent can be set with `setEngineParent` and retrieved with `getEngineParent`', function() {
  let engine = {};
  let parent = {};

  strictEqual(getEngineParent(engine), undefined, 'parent has not been set');

  setEngineParent(engine, parent);

  strictEqual(getEngineParent(engine), parent, 'parent has been set');

  strictEqual(engine[ENGINE_PARENT], parent, 'parent has been set to the ENGINE_PARENT symbol');
});


text:
This is an attempt to give some extra life for an old Macbook Pro that I have.
It is a mid 2009 model, with an Intel Core 2 Duo @ 2.26GHz (P7550), 3694 MiB
of available system memory and a Corsair Force GT solid-state drive (I've
replaced the HDD 2~3 years ago).

I've also replaced Mac OS X with an Ubuntu server (15.10 LTS) installation. The
idea is to use this machine as a home server, providing file and printer
sharing and other goodies.

## Requirements

- Ansible 2.0

## Running

    $ ansible-playbook server.yml


text:
<resources>
    <bitmap id="LauncherIcon" filename="images/launcher_icon.png" />
</resources>


text:
package com.nearucenterplaza.redenvelopeassistant.service.core;

import com.nearucenterplaza.redenvelopeassistant.utils.PreferenceUtil;

public class SettingHelper {
	private static final String RE_AUTO_MODE="re_mode_auto";
	private static final String RE_SAFE_MODE="re_mode_safe";
	private static final String RE_SOUND="re_sound";
	private static final String RE_VIBER="re_viber";
	private static final String RE_LANGUAGE="re_lan";

	public static boolean setREAutoMode(boolean value){
		return PreferenceUtil.setBooleanValue(RE_AUTO_MODE, value);
	}

	public static boolean getREAutoMode(){
		return PreferenceUtil.getBooleanValue(RE_AUTO_MODE, true);
	}

	public static boolean setRESafeMode(boolean value){
		return PreferenceUtil.setBooleanValue(RE_SAFE_MODE, value);
	}

	public static boolean getRESafeMode(){
		return PreferenceUtil.getBooleanValue(RE_SAFE_MODE, false);
	}
}


text:
;(function(){
'use strict'

/**
 * Handles foursquare's oauth callback and extracts access_token
 * @constructor
 */
function oauthCallback ($location, $state, authFactory) {
  var access_token = $location.hash().split("=")[1]
  authFactory.saveToken(access_token)
  $state.go('auth')
}

/**
 * App level configuration
 * @constructor
 */
function config ($httpProvider, $stateProvider, $urlRouterProvider) {
  $httpProvider.interceptors.push('authInterceptor')

  $stateProvider
    .state('auth', {
      url: '/auth'
    , templateUrl: './fsr/auth/index.html'
    , controller: "AuthController as auth"
    })

    $urlRouterProvider.when('/auth/callback/', [ '$location'
                                               , '$state'
                                               , 'authFactory'
                                               , oauthCallback])
}

/**
 * Forces the user to login when not authenticated.
 * @constructor
 * @param {object} $rootScope
 * @param {object} $state
 * @param {object} authFactory
 */
function ForceLogin ($rootScope, $state, authFactory) {
  $rootScope.$on('$stateChangeStart', function(e, toState) {
    if (toState.name === 'auth') { return false }

    if (!authFactory.isLoggedIn()) {
      e.preventDefault()
      $state.go('auth')
    }
  })
}

angular.module('auth', ['ui.router', 'angular-storage'])
.config(['$httpProvider', '$stateProvider', '$urlRouterProvider', config])
.run(['$rootScope', '$state', 'authFactory', ForceLogin])

})()


text:
module Gurke
  class Runner
    attr_reader :config, :options

    def initialize(config, options = {})
      @config  = config
      @options = options
    end

    def reporter
      @reporter ||= begin
        r = ("#{options[:formatter]}_reporter")
          .split('_')
          .map(&:capitalize)
          .join

        Reporters.const_get(r).new
      end
    end

    def builder
      @builder ||= Builder.new
    end

    def run(files, reporter = self.reporter)
      files.map! do |file|
        split = file.split(':')
        [split[0], split[1..-1].map {|i| Integer(i) }]
      end

      features = builder.load(files.map {|file, _| file })
      features.filter(options, files).run self, reporter
    end

    def retries(scenario)
      scenario.flaky? ? config.flaky_retries : config.default_retries
    end

    def hook(scope, world, context, &block)
      config.hooks[scope].run world, context, &block
    end

    def with_filtered_backtrace
      yield
    rescue StandardError => e
      unless options[:backtrace]
        base = File.expand_path(Gurke.root.dirname)
        e.backtrace.select! {|l| File.expand_path(l)[0...base.size] == base }
      end
      raise
    end

    class LocalRunner < Runner
      def run(*)
        hook :system, nil, nil do
          super
        end
      end
    end

    class DRbServer < Runner
      URI = 'druby://localhost:8789'

      def run(_files)
        require 'drb'

        hook :system, nil, nil do
          DRb.start_service URI, self
          $stdout.puts 'DRb Server running...'

          begin
            DRb.thread.join
          rescue Interrupt
            $stdout.puts
            $stdout.puts 'Exiting...'
          end

          0
        end
      end

      def run_remote(options, files, reporter)
        Runner.new(config, options).run files, reporter
      end
    end

    class DRbClient < Runner
      def run(files)
        require 'drb'

        DRb.start_service
        $stdout.puts 'Connect to DRb server...'

        srv = DRbObject.new_with_uri DRbServer::URI
        srv.run_remote options, files, reporter
      end
    end
  end
end


text:
/**
 * @constructor
 * @extends {WebInspector.View}
 * @param {WebInspector.NetworkRequest} request
 */
WebInspector.RequestTimingView = function(request)
{
    WebInspector.View.call(this);
    this.element.addStyleClass("resource-timing-view");

    this._request = request;

    request.addEventListener(WebInspector.NetworkRequest.Events.TimingChanged, this._refresh, this);
}

WebInspector.RequestTimingView.prototype = {
    wasShown: function()
    {
        if (!this._request.timing) {
            if (!this._emptyView) {
                this._emptyView = new WebInspector.EmptyView(WebInspector.UIString("This request has no detailed timing info."));
                this._emptyView.show(this.element);
                this.innerView = this._emptyView;
            }
            return;
        }

        if (this._emptyView) {
            this._emptyView.detach();
            delete this._emptyView;
        }

        this._refresh();
    },

    _refresh: function()
    {
        if (this._tableElement)
            this._tableElement.parentElement.removeChild(this._tableElement);

        this._tableElement = WebInspector.RequestTimingView.createTimingTable(this._request);
        this.element.appendChild(this._tableElement);
    }
}

WebInspector.RequestTimingView.createTimingTable = function(request)
{
    var tableElement = document.createElement("table");
    var rows = [];

    function addRow(title, className, start, end)
    {
        var row = {};
        row.title = title;
        row.className = className;
        row.start = start;
        row.end = end;
        rows.push(row);
    }

    if (request.timing.proxyStart !== -1)
        addRow(WebInspector.UIString("Proxy"), "proxy", request.timing.proxyStart, request.timing.proxyEnd);

    if (request.timing.dnsStart !== -1)
        addRow(WebInspector.UIString("DNS Lookup"), "dns", request.timing.dnsStart, request.timing.dnsEnd);

    if (request.timing.connectStart !== -1) {
        if (request.connectionReused)
            addRow(WebInspector.UIString("Blocking"), "connecting", request.timing.connectStart, request.timing.connectEnd);
        else {
            var connectStart = request.timing.connectStart;
            // Connection includes DNS, subtract it here.
            if (request.timing.dnsStart !== -1)
                connectStart += request.timing.dnsEnd - request.timing.dnsStart;
            addRow(WebInspector.UIString("Connecting"), "connecting", connectStart, request.timing.connectEnd);
        }
    }

    if (request.timing.sslStart !== -1)
        addRow(WebInspector.UIString("SSL"), "ssl", request.timing.sslStart, request.timing.sslEnd);

    var sendStart = request.timing.sendStart;
    if (request.timing.sslStart !== -1)
        sendStart += request.timing.sslEnd - request.timing.sslStart;

    addRow(WebInspector.UIString("Sending"), "sending", request.timing.sendStart, request.timing.sendEnd);
    addRow(WebInspector.UIString("Waiting"), "waiting", request.timing.sendEnd, request.timing.receiveHeadersEnd);
    addRow(WebInspector.UIString("Receiving"), "receiving", (request.responseReceivedTime - request.timing.requestTime) * 1000, (request.endTime - request.timing.requestTime) * 1000);

    const chartWidth = 200;
    var total = (request.endTime - request.timing.requestTime) * 1000;
    var scale = chartWidth / total;

    for (var i = 0; i < rows.length; ++i) {
        var tr = document.createElement("tr");
        tableElement.appendChild(tr);

        var td = document.createElement("td");
        td.textContent = rows[i].title;
        tr.appendChild(td);

        td = document.createElement("td");
        td.width = chartWidth + "px";

        var row = document.createElement("div");
        row.className = "network-timing-row";
        td.appendChild(row);

        var bar = document.createElement("span");
        bar.className = "network-timing-bar " + rows[i].className;
        bar.style.left = scale * rows[i].start + "px";
        bar.style.right = scale * (total - rows[i].end) + "px";
        bar.style.backgroundColor = rows[i].color;
        bar.textContent = "\u200B"; // Important for 0-time items to have 0 width.
        row.appendChild(bar);

        var title = document.createElement("span");
        title.className = "network-timing-bar-title";
        if (total - rows[i].end < rows[i].start)
            title.style.right = (scale * (total - rows[i].end) + 3) + "px";
        else
            title.style.left = (scale * rows[i].start + 3) + "px";
        title.textContent = Number.secondsToString((rows[i].end - rows[i].start) / 1000);
        row.appendChild(title);

        tr.appendChild(td);
    }
    return tableElement;
}

WebInspector.RequestTimingView.prototype.__proto__ = WebInspector.View.prototype;


text:
package jp.mixi.triaina.commons.exception;

public class UnsupportedRuntimeException extends CommonRuntimeException {

    private static final long serialVersionUID = -490517655999458168L;

    public UnsupportedRuntimeException() {
        super();
    }

    public UnsupportedRuntimeException(String detailMessage, Throwable throwable) {
        super(detailMessage, throwable);
    }

    public UnsupportedRuntimeException(String detailMessage) {
        super(detailMessage);
    }

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


text:
RMTools::require 'lang/cyrillic'

class Regexp

  if RUBY_VERSION > '1.9'
    def ci; self end
  else
    def ci; Regexp.new(source.cyr_ic, options) end
  end

end


text:
using OrchardCore.ContentManagement;

namespace OrchardCore.Forms.Models
{
    public class FormPart : ContentPart
    {
        public string Action { get; set; }
        public string Method { get; set; }
        public string WorkflowTypeId { get; set; }
        public string EncType { get;set;}
        public bool EnableAntiForgeryToken { get; set;} = true;
    }
}


text:
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="@color/white"
    app:layout_behavior="@string/appbar_scrolling_view_behavior"
    android:id="@+id/tag_layout"
    tools:context="com.ruuvi.station.addtag.ui.AddTagActivity"
    tools:showIn="@layout/activity_add_tag">

    <ListView
        android:id="@+id/tagListView"
        android:layout_width="0dp"
        android:layout_height="0dp"
        app:layout_constraintTop_toTopOf="parent"
        app:layout_constraintLeft_toLeftOf="parent"
        app:layout_constraintRight_toRightOf="parent"
        app:layout_constraintBottom_toBottomOf="parent"
        />

    <TextView
        android:id="@+id/noTagsFoundTextView"
        app:layout_constraintLeft_toLeftOf="parent"
        app:layout_constraintRight_toRightOf="parent"
        app:layout_constraintTop_toTopOf="parent"
        app:layout_constraintBottom_toBottomOf="parent"
        android:text="@string/add_tag_not_found"
        android:textColor="@color/noTagsColor"
        android:textSize="@dimen/title_font_size"
        android:textAllCaps="true"
        android:textAlignment="center"
        android:fontFamily="@font/montserrat_bold"
        android:layout_width="0dp"
        android:layout_height="wrap_content" />

</androidx.constraintlayout.widget.ConstraintLayout>


text:
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee"
         xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
         id="WebApp_ID" version="2.5">
    <display-name>scala-sbt-appengine</display-name>

    <servlet>
        <servlet-name>SampleServlet</servlet-name>
        <servlet-class>com.example.SampleServlet</servlet-class>
    </servlet>

    <servlet-mapping>
        <servlet-name>SampleServlet</servlet-name>
        <url-pattern>/counter</url-pattern>
    </servlet-mapping>

</web-app>


text:
function miAdmob() {
     var admob_ios_key = 'ca-app-pub-4893236026217731/2794076205 '; //Si tienes tu id para ios ponlo aquí
      var admob_android_key = 'ca-app-pub-4893236026217731/2794076205 '; //Si tienes tu id para android ponlo aquí
      var adId = (navigator.userAgent.indexOf('Android') >=0) ? admob_android_key : admob_ios_key; //Detecta si el móvil es ios o android y pone el id que necesites

      if ( window.plugins && window.plugins.AdMob ) {

          var am = window.plugins.AdMob;
          am.createBannerView(
              {
                    'publisherId': adId, //Añade tu clave de anunciante
                    'adSize': am.AD_SIZE.BANNER, //Indicas que el anuncio es tipo banner
                    'bannerAtTop': true //Indica si quieres el banner arriba del todo (true) o abajo del todo (false)
                  }, function() {
                    am.requestAd( { 'isTesting':true }, function() {
                      am.showAd( true );
                    }, function() {
                      alert('fallo al cargar el anuncio');
                    })
                  }, function(){
                    alert( "fallo al crear la vista del anuncio" );
                  });
      } else {
        alert('El plugin AdMob no esta listo/disponible.');
      }
    }
    function showAd( bshow ) {
      if ( window.plugins && window.plugins.AdMob ) {
          var am = window.plugins.AdMob;
          am.showAd( bshow );
      } else {
        alert('El plugin AdMob no esta listo/disponible.');
      }
    }

<!-- Fin del código -->


text:
extern unsigned long stage0_srv[HEARTBEAT_NUM];
extern unsigned long stage1_srv[HEARTBEAT_NUM];
extern unsigned long stage2_srv[HEARTBEAT_NUM];
extern unsigned long stage3_srv[HEARTBEAT_NUM];

extern unsigned long stage0_cli[HEARTBEAT_NUM];
extern unsigned long stage1_cli[HEARTBEAT_NUM];
extern unsigned long stage2_cli[HEARTBEAT_NUM];
extern unsigned long stage3_cli[HEARTBEAT_NUM];

extern struct timespec now;
extern struct timespec tmstart;
extern int schd[CLI_NUM_MAX];
extern unsigned long cli_commu[CLI_NUM_MAX];
extern int recv_round;
extern unsigned char debug_flags;
extern int CLI_OFFLOAD_LEVEL[CLI_NUM_MAX+1];  //Accessed by the server device, indexed by client ID, starting from 1;

extern int CLI_NUM;
//extern int OFFLOAD_LEVEL;
//extern int CLI_TYPE;
//extern int SRV_TYPE;
//extern int CLI_CORE_NUM;
extern int SRV_CORE_NUM;
void  g_config_init();
void config_init();


text:
using namespace ci;
using namespace ci::app;
using namespace std;
using namespace soso;

class FrameTimeApp : public App {
public:
	void setup() override;
	void update() override;

	void draw() override;
private:
	CaptureRef			_capture;
	gl::TextureRef	_frame_texture;
	ParticleSystem	_particles;
};

void FrameTimeApp::setup()
{
	console() << getWindowSize() << endl;

	_particles.setup();
	_particles.registerTouchEvents( getWindow() );

  auto camera = ([] {
    auto &devices = Capture::getDevices();
    auto first_device = devices.front();
    for( auto device : devices ) {
      if( device->isFrontFacing() ) {
        return device;
      }
    }
    return first_device;
  }());

	try {
		_capture = Capture::create( 1920 / 2, 1080 / 2, camera );
		_capture->start();
	} catch ( ci::Exception &exc ) {
		CI_LOG_E( "Error setting up capture: " << exc.what() );
	}
}

void FrameTimeApp::update()
{
	_particles.step();

	if( _capture && _capture->checkNewFrame() ) {
		if( ! _frame_texture ) {
			// Capture images come back as top-down, and it's more efficient to keep them that way
			_frame_texture = gl::Texture::create( *_capture->getSurface(), gl::Texture::Format().loadTopDown() );
		}
		else {
			_frame_texture->update( *_capture->getSurface() );
		}
	}
}

void FrameTimeApp::draw()
{
	gl::clear( Color( 0, 0, 0 ) );

	gl::ScopedMatrices matrices;
	gl::setMatricesWindowPersp( app::getWindowSize() );

	if( _frame_texture ) {
		gl::ScopedTextureBind tex( _frame_texture, 0 );
		_particles.draw();
	}
}

CINDER_APP( FrameTimeApp, RendererGl )


text:
package aws

import (
	"time"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/client"
	"github.com/aws/aws-sdk-go/aws/credentials"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/ec2"
	"github.com/aws/aws-sdk-go/service/iam"
	"github.com/aws/aws-sdk-go/service/s3"
	"github.com/aws/aws-sdk-go/service/sts"
	"github.com/coreos/pkg/capnslog"

	"github.com/coreos/mantle/platform"
)

var plog = capnslog.NewPackageLogger("github.com/coreos/mantle", "platform/api/aws")

type Options struct {
	*platform.Options
	// The AWS region regional api calls should use
	Region string

	// The path to the shared credentials file, if not ~/.aws/credentials
	CredentialsFile string
	// The profile to use when resolving credentials, if applicable
	Profile string

	// AccessKeyID is the optional access key to use. It will override all other sources
	AccessKeyID string
	// SecretKey is the optional secret key to use. It will override all other sources
	SecretKey string

	// AMI is the AWS AMI to launch EC2 instances with.
	// If it is one of the special strings alpha|beta|stable, it will be resolved
	// to an actual ID.
	AMI                string
	InstanceType       string
	SecurityGroup      string
	IAMInstanceProfile string
}

type API struct {
	session client.ConfigProvider
	ec2     *ec2.EC2
	iam     *iam.IAM
	s3      *s3.S3
	opts    *Options
}

// New creates a new AWS API wrapper. It uses credentials from any of the
// standard credentials sources, including the environment and the profile
// configured in ~/.aws.
// No validation is done that credentials exist and before using the API a
// preflight check is recommended via api.PreflightCheck
// Note that this method may modify Options to update the AMI ID
func New(opts *Options) (*API, error) {
	awsCfg := aws.Config{Region: aws.String(opts.Region)}
	if opts.AccessKeyID != "" {
		awsCfg.Credentials = credentials.NewStaticCredentials(opts.AccessKeyID, opts.SecretKey, "")
	} else if opts.CredentialsFile != "" {
		awsCfg.Credentials = credentials.NewSharedCredentials(opts.CredentialsFile, opts.Profile)
	}

	sess, err := session.NewSessionWithOptions(session.Options{
		Profile: opts.Profile,
		Config:  awsCfg,
	})
	if err != nil {
		return nil, err
	}

	opts.AMI = resolveAMI(opts.AMI, opts.Region)

	api := &API{
		session: sess,
		ec2:     ec2.New(sess),
		iam:     iam.New(sess),
		s3:      s3.New(sess),
		opts:    opts,
	}

	return api, nil
}

// GC removes AWS resources that are at least gracePeriod old.
// It attempts to only operate on resources that were created by a mantle tool.
func (a *API) GC(gracePeriod time.Duration) error {
	return a.gcEC2(gracePeriod)
}

// PreflightCheck validates that the aws configuration provided has valid
// credentials
func (a *API) PreflightCheck() error {
	stsClient := sts.New(a.session)
	_, err := stsClient.GetCallerIdentity(&sts.GetCallerIdentityInput{})

	return err
}

func (a *API) tagCreatedByMantle(resources []string) error {
	return a.CreateTags(resources, map[string]string{
		"CreatedBy": "mantle",
	})
}


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

<meta http-equiv="Content-Type" content="text/html" charset="UTF-8">
<title>Uses of Interface org.glyptodon.guacamole.io.GuacamoleReader (guacamole-common 0.9.6 API)</title>
<meta name="date" content="2015-03-30">
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">

JavaScript is disabled on your browser.

Overview

Package

Class

Use

Tree

Deprecated

Index

Help

Prev

Next

Frames

No Frames

All Classes

Uses of Interface
org.glyptodon.guacamole.io.GuacamoleReader

Packages that use GuacamoleReader

Package
Description

org.glyptodon.guacamole.io

All classes relating directly to data input or output.

org.glyptodon.guacamole.net

Classes which apply to network-specific concepts, such as low-level sockets
 and tunnels.

org.glyptodon.guacamole.protocol

Classes relating directly to the Guacamole protocol.

Uses of GuacamoleReader in org.glyptodon.guacamole.io

Classes in org.glyptodon.guacamole.io that implement GuacamoleReader

Modifier and Type
Class and Description

class
ReaderGuacamoleReader

A GuacamoleReader which wraps a standard Java Reader, using that Reader as
 the Guacamole instruction stream.

Uses of GuacamoleReader in org.glyptodon.guacamole.net

Methods in org.glyptodon.guacamole.net that return GuacamoleReader

Modifier and Type
Method and Description

GuacamoleReader
AbstractGuacamoleTunnel.acquireReader()

Acquires exclusive read access to the Guacamole instruction stream
 and returns a GuacamoleReader for reading from that stream.

GuacamoleReader
DelegatingGuacamoleTunnel.acquireReader()

GuacamoleReader
GuacamoleTunnel.acquireReader()

Acquires exclusive read access to the Guacamole instruction stream
 and returns a GuacamoleReader for reading from that stream.

GuacamoleReader
GuacamoleSocket.getReader()

Returns a GuacamoleReader which can be used to read from the
 Guacamole instruction stream associated with the connection
 represented by this GuacamoleSocket.

GuacamoleReader
InetGuacamoleSocket.getReader()

GuacamoleReader
SSLGuacamoleSocket.getReader()

Uses of GuacamoleReader in org.glyptodon.guacamole.protocol

Classes in org.glyptodon.guacamole.protocol that implement GuacamoleReader

Modifier and Type
Class and Description

class
FilteredGuacamoleReader

GuacamoleReader which applies a given GuacamoleFilter to observe or alter all
 read instructions.

Methods in org.glyptodon.guacamole.protocol that return GuacamoleReader

Modifier and Type
Method and Description

GuacamoleReader
ConfiguredGuacamoleSocket.getReader()

GuacamoleReader
FilteredGuacamoleSocket.getReader()

Constructors in org.glyptodon.guacamole.protocol with parameters of type GuacamoleReader

Constructor and Description

FilteredGuacamoleReader(GuacamoleReader reader,
                       GuacamoleFilter filter)

Wraps the given GuacamoleReader, applying the given filter to all read
 instructions.

Overview

Package

Class

Use

Tree

Deprecated

Index

Help

Prev

Next

Frames

No Frames

All Classes

Copyright © 2015. All rights reserved.


text:
require 'stump'
require 'logger'

describe 'logging to STDOUT' do

  it 'should log to STDOUT when no path is supplied' do
    logger = Stump::Logger.new
    $stdout.should_receive(:write)
    logger.info('log entry')
  end

  it 'should log to STDOUT when a path is supplied as well' do
    logger = Stump::Logger.new 'tmp/test.log'
    $stdout.should_receive(:write)
    logger.info('log entry')
  end

end

describe 'logging to files' do

  before :all do
    @log_file_name = 'tmp/test.log'
  end

  after :all do
    File.delete('tmp/test.log')
  end

  it 'logs to supplied file' do
    logger = Stump::Logger.new @log_file_name
    logger.info('log entry')
    File.readlines(@log_file_name).any? { |line| line['log entry'] }.should eq(true)
  end

end


text:
package org.apache.hadoop.mapred;

import java.io.IOException;
import org.apache.hadoop.util.Progressable;

/** Passed to application code to permit alteration of status. */
public interface Reporter extends Progressable {
  /** Alter the application's status description.
   *
   * @param status a brief description of the current status
   */
  void setStatus(String status) throws IOException;
}


text:
union U {} //~ ERROR unions cannot have zero fields

fn main() {}


text:
PYTHONIC_NS_BEGIN

namespace builtins
{

  namespace set
  {

    template <class T, class U>
    bool issubset(types::set<T> const &set, U const &other);

    template <class U>
    bool issubset(types::empty_set const &set, U const &other);

    DEFINE_FUNCTOR(pythonic::builtins::set, issubset);
  }
}
PYTHONIC_NS_END
#endif


text:
<?php

// No direct access
defined('_HZEXEC_') or die();

$this->css('register')
     ->js('register');
?>

<?php echo $this->title; ?>

<?php if ($this->getError() && $this->getError() == 'login mismatch') : ?>

		You are currently logged in as <?php echo $this->login; ?>. If you're trying to activate a different account,
		you may do so by <a href="<?php echo $this->redirect; ?>">confirming a different email address.

<?php elseif ($this->getError()) : ?>

<?php echo Lang::txt('Invalid Confirmation'); ?>

The email confirmation link you followed is no longer valid. Your email address "<?php echo $this->escape($this->email); ?>" has not been confirmed.

Please be sure to click the link from the latest confirmation email received.  Earlier confirmation emails will be invalid. If you cannot locate a newer confirmation email, you may <a href="<?php echo Route::url('index.php?option='.$this->option.'&task=resend'); ?>">resend a new confirmation email.

Never received or cannot find the confirmation email?

You can have a new confirmation email sent to "<?php echo $this->escape($this->email); ?>" by <a href="<?php echo Route::url('index.php?option='.$this->option.'&task=resend&return='.$this->redirect); ?>">clicking here.

<?php else : ?>

Your email address "<?php echo $this->escape($this->email); ?>" has already been confirmed. You should be able to use <?php echo $this->sitename; ?> now. Thank you.

<?php endif; ?>


text:
package node

import (
	"os"
	"testing"

	"github.com/spf13/viper"
	"github.com/stretchr/testify/require"
)

func TestUpgradeDBsCmd(t *testing.T) {
	testPath := "/tmp/hyperledger/test"
	os.RemoveAll(testPath)
	viper.Set("peer.fileSystemPath", testPath)
	defer os.RemoveAll(testPath)

	cmd := upgradeDBsCmd()
	require.EqualError(t, cmd.Execute(), "the data format is already up to date. No upgrade is required")
}


text:
from __future__ import unicode_literals

from django.db import migrations, models
import is_core.contrib.background_export.models

class Migration(migrations.Migration):

    dependencies = [
        ('background_export', '0001_initial'),
    ]

    operations = [
        migrations.AlterField(
            model_name='exportedfile',
            name='slug',
            field=models.SlugField(default=is_core.contrib.background_export.models.generate_slug, max_length=32,
                                   primary_key=True, serialize=False, verbose_name='slug'),
        ),
    ]


text:
package syncbase_test

import (
	"testing"

	"v.io/v23/context"
	wire "v.io/v23/services/syncbase"
	"v.io/v23/syncbase"
	tu "v.io/x/ref/services/syncbase/testutil"
)

// Tests schema checking logic within Service.DatabaseForId() method.
// This test as following steps:
// 1) Call DatabaseForId() for a non existent db.
// 2) Create the database, and verify if Schema got stored properly.
// 3) Call DatabaseForId() on the same db to create a new handle with new
//    schema metadata, call EnforceSchema() and check if the new metadata was
//    stored appropriately.
func TestSchemaCheck(t *testing.T) {
	ctx, sName, cleanup := tu.SetupOrDie(nil)
	defer cleanup()
	s := syncbase.NewService(sName)
	schema := tu.DefaultSchema(0)

	db1 := s.DatabaseForId(wire.Id{"a", "db1"}, schema)

	if err := db1.EnforceSchema(ctx); err != nil {
		t.Fatalf("db1.EnforceSchema() failed: %v", err)
	}

	// Create db1, this step also stores the schema provided above
	if err := db1.Create(ctx, nil); err != nil {
		t.Fatalf("db1.Create() failed: %v", err)
	}
	// verify if schema was stored as part of create
	if _, err := getSchemaMetadata(ctx, db1.FullName()); err != nil {
		t.Fatalf("Failed to lookup schema after create: %v", err)
	}

	// try to make a new database object for the same database but this time
	// with a new schema version
	schema.Metadata.Version = 1
	rule := wire.CrRule{wire.Id{"u", "c1"}, "foo", "", wire.ResolverTypeLastWins}
	policy := wire.CrPolicy{
		Rules: []wire.CrRule{rule},
	}
	schema.Metadata.Policy = policy
	otherdb1 := s.DatabaseForId(wire.Id{"a", "db1"}, schema)
	if err := otherdb1.EnforceSchema(ctx); err != nil {
		t.Fatalf("otherdb1.EnforceSchema() failed: %v", err)
	}

	// check if the contents of SchemaMetadata are correctly stored in the db.
	metadata, err := getSchemaMetadata(ctx, otherdb1.FullName())
	if err != nil {
		t.Fatalf("GetSchemaMetadata failed: %v", err)
	}
	if metadata.Version != 1 {
		t.Fatalf("Unexpected version number: %d", metadata.Version)
	}
	if len(metadata.Policy.Rules) != 1 {
		t.Fatalf("Unexpected number of rules: %d", len(metadata.Policy.Rules))
	}
	if metadata.Policy.Rules[0] != rule {
		t.Fatalf("Unexpected number of rules: %d", len(metadata.Policy.Rules))
	}
}

func getSchemaMetadata(ctx *context.T, dbName string) (wire.SchemaMetadata, error) {
	return wire.DatabaseClient(dbName).GetSchemaMetadata(ctx)
}


text:
package org.http4s
package laws
package discipline

import cats.Eq
import cats.effect._
import cats.laws.discipline._
import org.scalacheck.{Arbitrary, Prop, Shrink}
import org.typelevel.discipline.Laws

trait EntityEncoderTests[F[_], A] extends Laws {
  def laws: EntityEncoderLaws[F, A]

  def entityEncoder(
      implicit
      arbitraryA: Arbitrary[A],
      shrinkA: Shrink[A],
      eqFBoolean: Eq[F[Boolean]]
  ): RuleSet = new DefaultRuleSet(
    name = "EntityEncoder",
    parent = None,
    "accurateContentLength" -> Prop.forAll { (a: A) =>
      laws.accurateContentLengthIfDefined(a)
    },
    "noContentLengthInStaticHeaders" -> laws.noContentLengthInStaticHeaders,
    "noTransferEncodingInStaticHeaders" -> laws.noTransferEncodingInStaticHeaders
  )
}

object EntityEncoderTests {
  def apply[F[_], A](
      implicit effectF: Effect[F],
      entityEncoderFA: EntityEncoder[F, A]
  ): EntityEncoderTests[F, A] = new EntityEncoderTests[F, A] {
    val laws: EntityEncoderLaws[F, A] = EntityEncoderLaws.apply[F, A]
  }
}


text:
Mete responds to several requests.
The API is REST-like (but not entirely).

## / ##

 * `GET /` - the same as `GET /users`

### /audits ###

 * `GET /audits` - returns statistics about previous transactions; possible paramters are:
   * `start_date[year]` - `integer`
   * `start_date[month]` - `integer`
   * `start_date[day]` - `integer`
   * `end_date[year]` - `integer`
   * `end_date[month]` - `integer`
   * `end_date[day]` - `integer`
 * `GET /audits.json` - the same as above, but in JSON format

### /drinks ###

 * `GET /drinks` - returns all drinks
 * `GET /drinks.json` - the same as above, but in JSON format
 * `GET /drinks/%did%` - returns information about the drink with the id `%did%`
 * `GET /drinks/%did%.json` - the same as above, but in JSON format
 * `GET /drinks/new` - displays a form for creating a new drink
 * `GET /drinks/new.json` - wat. This makes no sense.
 * `POST /drinks` - creates a new drink; parameters are:
   * `drink[name]` - `string` - the name of the new drink
   * `drink[price]` - `double` - the price of the new drink in €
   * `drink[bottle_size]` - `double` - the bottle size of the new drink in l
   * `drink[caffeine]` - `integer` - the amount of caffeine of the new drink in mg/100ml
   * `drink[active]` - `boolean` - whether the new drink is in stock
   * `drink[logo]` - `file` - the logo of the new drink
 * `POST /drinks.json` - the same as above, but in JSON format (What's the difference?)
 * `GET /drinks/%did%/edit` - displays a form for editing an existing drink
 * `PATCH /drinks/%did%` - modifys an existing drink; the parameters are the same as for creating a new drink
 * `PATCH /drinks/%did%.json` - the same as above, but in JSON format (What's the difference?)
 * `DELETE /drinks/%did%` - deletes the drink with the id `%did%`
 * `DELETE /drinks/%id.json` - the same as above, but in JSON format (What's the difference?)

### /users ###

 * `GET /users` - returns all users
 * `GET /users.json` - the same as above, but in JSON format
 * `GET /users/%uid%` - returns information about the user with the id `%uid%`
 * `GET /users/%uid%.json` - the same as above, but in JSON format
 * `GET /users/new` - displays a form for creating a new user
 * `GET /users/new.json` - wat. This makes no sense.
 * `POST /users` - creates a new user; parameters are:
   * `user[name]` - `string` - the name of the new user
   * `user[email]` - `string` - the email of the new user
   * `user[balance]`- `double` - the balance of the new user in €
   * `user[active]` - `boolean` - whether the new user is active
 * `POST /users.json` - the same as above, but in JSON format (What's the difference?)
 * `GET /users/edit` - display a form for editing an existing user
 * `PATCH /users/%uid%` - modifys an existing user; the parameters are the same as for adding a user
 * `PATCH /users/%uid%.json` - the same as above, but in JSON format (What's the difference?)
 * `DELETE /users/%uid%` - deletes the user with the id `%uid%`
 * `DELETE /users/%uid%.json` - the same as above, but in JSON format (What's the difference?)
 * `GET /users/%uid%/deposit?amount=%amount%` - adds the amount `%amount%` (in €) to the balance of the user with the id `%uid%` (**This GET request modifys data!**)
 * `GET /users/%uid%/deposit.json?amount%amount%` - the same as above, but in JSON format (What's the difference?) (**This GET request modifys data!**)
 * `GET /users/%uid%/pay?amount=%amount%` - removes the amount `%amount%` (in €) from the balance of the user with the id `%uid%` (**This GET request modifys data!**)
 * `GET /users/%uid%/pay.json?amount%amount%` - the same as above, but in JSON format (What's the difference?) (**This GET request modifys data!**)
 * `GET /users/%uid%/buy?drink=%did%` - buys the drink with the id `%did%` for the user with the id `%uid%` (**This GET request modifys data!**)
 * `GET /Users/%uid%/buy.json?drink=%did%` - the same as above, but in JSON format (What's the difference?) (**This GET request modifys data!**)
 * `POST /users/%uid%/buy_barcode` - buys the drink with the barcode `%barcode%` for the user with the id `%uid`
 * `POST /users/%uid%/buy_barcode.json` - buys the drink with the barcode `%barcode%` for the user with the id `%id%`
 * `GET /users/stats` - displays various statistics about the users
 * `GET /users/stats.json` - the same as above, but in JSON format


text:
"""
Django settings for imgret project.

Generated by 'django-admin startproject' using Django 1.8.

For more information on this file, see
https://docs.djangoproject.com/en/1.8/topics/settings/

For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.8/ref/settings/
"""

# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
import os

BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))

# Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/1.8/howto/deployment/checklist/

# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = '61#_xo67tc%w%i#71a3#1cav$@fak8fw*_8e%g_ip4etddx^4^'

# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True

ALLOWED_HOSTS = []

# Application definition

INSTALLED_APPS = (
    'django.contrib.admin',
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.messages',
    'django.contrib.staticfiles',
    # custom apps
    'images',
)

MIDDLEWARE_CLASSES = (
    'django.contrib.sessions.middleware.SessionMiddleware',
    'django.middleware.common.CommonMiddleware',
    'django.middleware.csrf.CsrfViewMiddleware',
    'django.contrib.auth.middleware.AuthenticationMiddleware',
    'django.contrib.auth.middleware.SessionAuthenticationMiddleware',
    'django.contrib.messages.middleware.MessageMiddleware',
    'django.middleware.clickjacking.XFrameOptionsMiddleware',
    'django.middleware.security.SecurityMiddleware',
)

ROOT_URLCONF = 'imgret.urls'

TEMPLATES = [
    {
        'BACKEND': 'django.template.backends.django.DjangoTemplates',
        'DIRS': [
            os.path.join(BASE_DIR, 'templates'),
        ],
        'APP_DIRS': True,
        'OPTIONS': {
            'context_processors': [
                'django.template.context_processors.debug',
                'django.template.context_processors.request',
                'django.template.context_processors.media',
                'django.template.context_processors.static',
                'django.contrib.auth.context_processors.auth',
                'django.contrib.messages.context_processors.messages',
            ],
        },
    },
]

WSGI_APPLICATION = 'imgret.wsgi.application'

# Database
# https://docs.djangoproject.com/en/1.8/ref/settings/#databases

DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.sqlite3',
        'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
    }
}

# Internationalization
# https://docs.djangoproject.com/en/1.8/topics/i18n/

LANGUAGE_CODE = 'en-us'

TIME_ZONE = 'UTC'

USE_I18N = True

USE_L10N = True

USE_TZ = True

# Static files (CSS, JavaScript, Images)
# https://docs.djangoproject.com/en/1.8/howto/static-files/
STATICFILES_DIRS = (
    os.path.join(BASE_DIR, "static"),
)
STATIC_ROOT = '/static/'
STATIC_URL = '/static/'

# REDIS STUFF
REDIS_PORT = 6379
REDIS_DB = 0
REDIS_HOST = os.environ.get('REDIS_PORT_6379_TCP_ADDR', 'redis')

# CELERY STUFF
BROKER_URL = 'redis://%s:%d' % (REDIS_HOST, REDIS_PORT)
CELERY_RESULT_BACKEND = 'redis://%s:%d' % (REDIS_HOST, REDIS_PORT)
CELERY_ACCEPT_CONTENT = ['application/json']
CELERY_TASK_SERIALIZER = 'json'
CELERY_RESULT_SERIALIZER = 'json'
CELERY_TIMEZONE = 'Europe/Madrid'


text:
              <form action="" method="POST" class="form-inline" role="form">

                    <input type="text" name="from_date" placeholder="From Date" class="form-control" id="datepicker" required>

                    <input type="text" name="to_date" placeholder="To Date"  class="form-control"  id="datepicker1" required>

                    <input type="submit" name="btnsearch" class="btn btn-success">

                          Restaurant Name
<select class="form-control" name="owner_id" onchange="locationGet(this.value)" id="owner_id">
                            <option value="">-Select Restaurant name-</option>
                            <?php
foreach ($owner_code_list as $oc => $list):
?>
                            <option value="<?php echo getOwnerIdByCode($list->owner_id);?>"><?php echo getRestroNameByOwnerCode($list->owner_id);?></option>
                            <?php endforeach;?>

                          </select>

                          Restaurant Name
                             <select class="form-control" id="location_id" name="location_id" onchange="getService(this.value)">
                            <option value="">-Select Location-</option>

                          </select>

              </form>

                        <img class="img-responsive" src="<?PHP echo base_url();?>assets/Restaurant_Owner/images/icon/car.png" alt="">

DELIVERY

<?php echo getCommissionCount(1);?>

                        <img src="<?PHP echo base_url();?>assets/Restaurant_Owner/images/icon/man.png" class="img-responsive" alt=""/>

CATERING

<?php echo getCommissionCount(2);?>

                        <img src="<?PHP echo base_url();?>assets/Restaurant_Owner/images/icon/food.png" class="img-responsive" alt=""/>

RESERVATION

                        <img src="<?PHP echo base_url();?>assets/Restaurant_Owner/images/icon/cock.png" class="img-responsive" alt=""/>

PICK UP

<?php echo getCommissionCount(4);?>


text:
<?php

namespace ZendService\ZendServerAPI\DataTypes;

/**
 * ApiKey model implementation.
 *
 * @license        http://framework.zend.com/license/new-bsd New BSD License
 * @link           http://github.com/zendframework/zf2 for the canonical source repository
 * @author         Ingo Walz <ingo.walz@googlemail.com>
 * @category       Zend
 * @package        Zend_Service
 * @subpackage     ZendServerAPI
 */
class ApiKey extends DataType
{

}


text:
#import "GQDNameMappable-Protocol.h"

@protocol GQDNameMappableWithDefault <GQDNameMappable>
+ (id)createReplacementForMissingObject:(struct _xmlTextReader *)arg1 processor:(id)arg2;
@end


text:
<!doctype html>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title data-editable="" data-editable-type="text"></title>
    <link href="http://fonts.googleapis.com/css?family=Lato:400,700|Droid+Serif" rel="stylesheet" type="text/css">
    <link rel="stylesheet" type="text/css" href="css/layout.css">
    <link rel="stylesheet" type="text/css" href="css/responsive.css">

Text here.

                <form>
                    <input type="text" placeholder="First Name">
                    <input type="text" placeholder="Email">
                    <input class="zip" type="text" placeholder="Zip">
                    <button class="button" type="submit" name="submit" value="submit" style="background-color: rgb(28, 28, 28); color: rgb(255, 0, 0);">Submit</button>
                </form>

Thank you for signing!

X


text:
package org.nutz.ssdb4j.spi;

public class ResponseFactory {

	public Response make() {
		return new Response();
	}
}


text:
{
    'name'       => 'BranchLocker',
    'domain'     => 'example.com',
    'word'       => 'Default',
    #'broadcasts' => [
    #    'Some Message.'
    #],

    # Read only settings, exceptions check for existence of key and not
    # the value held in the key.
    'readonly' => 0,
    'readonly_exceptions' => [
    ],

    'gui_api_key' => 'Super Secret GUI API Key',
    'gate_keeper_admin_email' => 'gatekeeper-admin@example.com',

    # Branch::Locker config.
    'Branch::Locker' => {
        'readwrite_user'   => 'blr_w',
        'readwrite_pass'   => '',
        'readwrite_host'   => 'localhost',

        'readonly_user'    => 'blr_w',
        'readonly_pass'    => '',
        'databases'        => ['branchlocker'],
        'database_servers' => {
            'local' => ['localhost'],
        },
    },

    'group_order' => [
        'Production',
        'Service',
        'Development',
        'Integration',
    ],
    'group_mapping' => {
        'Production'  => ['Production', 'Feature', 'Release'],
        'Service'     => ['Service', 'Exception'],
        'Development' => ['Development'],
        'Integration' => ['Integration'],
     },
}


text:
<ngl-form-checkbox label="Required" style="display: inline-block;">
  <input nglFormControl type="checkbox" [(ngModel)]="required" />
</ngl-form-checkbox>
<ngl-form-checkbox label="Error" style="display: inline-block;">
  <input nglFormControl type="checkbox" [(ngModel)]="hasError" />
</ngl-form-checkbox>

<ngl-form-element label="Input Label" [error]="hasError ? error : null" class="slds-m-top--small">
  <input nglFormControl type="text" placeholder="My input" [required]="required">
</ngl-form-element>

<ngl-form-element [error]="hasError ? error : null" class="slds-m-top--small">
  <template nglFormLabel>Textarea Label (required!)</template>
  <textarea nglFormControl placeholder="Placeholder Text" [required]="required"></textarea>
</ngl-form-element>

<ngl-form-element label="Select Label" [error]="hasError ? error : null" class="slds-m-top--small">
  <select nglFormControl class="slds-select" [required]="required">
    <option>Option One</option>
    <option>Option Two</option>
    <option>Option Three</option>
  </select>
</ngl-form-element>

<ngl-form-checkbox label="Checkbox Label" [error]="hasError ? error : null" class="slds-m-top--small">
  <input nglFormControl type="checkbox" [required]="required" />
</ngl-form-checkbox>

<ngl-form-checkbox-toggle label="Toggle Label" [error]="hasError ? error : null" class="slds-m-top--small">
  <input nglFormControl type="checkbox" [required]="required" />
</ngl-form-checkbox-toggle>

<fieldset ngl-form-group label="Radio Group Label" [required]="required" [error]="hasError ? error : null" class="slds-m-top--small">
  <ngl-form-group-element label="Radio Label One"><input nglFormControl type="radio" /></ngl-form-group-element>
  <ngl-form-group-element label="Radio Label Two"><input nglFormControl type="radio" /></ngl-form-group-element>
</fieldset>

<fieldset ngl-form-group-alt [required]="required" [error]="hasError ? error : null" class="slds-m-top--small">
  <template nglFormLabel>Alternate Radio Group</template>
  <ngl-form-group-element *ngFor="let day of days"><template nglFormLabel>{{day}}</template><input nglFormControl type="radio" /></ngl-form-group-element>
</fieldset>

<fieldset ngl-form-group label="Checkbox Group Label" [required]="required" [error]="hasError ? error : null" class="slds-m-top--small">
  <ngl-form-group-element label="Checkbox Label One"><input nglFormControl type="checkbox" /></ngl-form-group-element>
  <ngl-form-group-element label="Checkbox Label Two"><input nglFormControl type="checkbox" /></ngl-form-group-element>
</fieldset>

<fieldset ngl-form-group-alt label="Alternate Checkbox Group" [required]="required" [error]="hasError ? error : null" class="slds-m-top--small">
  <ngl-form-group-element *ngFor="let day of days" [label]="day"><input nglFormControl type="checkbox" /></ngl-form-group-element>
</fieldset>


text:
package com.thoughtworks.sbt.sbteo

import java.util.concurrent.{TimeoutException, TimeUnit, Callable, FutureTask}

import com.thoughtworks.sbt.sbteo.Api.{Documentation, AutoCompletion}

import scala.concurrent.duration.Duration
import scala.reflect.internal.util.BatchSourceFile
import scala.tools.nsc.interactive.{Response, Global}

/*
 * This code is heavily indebted to https://github.com/MasseGuillaume/ScalaKata
 * which in turn builds on ScalaIDE, and Ensime
 *
 */
case class TypeAtResponse(
                           tpe: String
                           )

class InprocessCompiler(compiler: Global, log: sbt.Logger) {

  private def reload(code: String): BatchSourceFile = {
    val file = new BatchSourceFile("default", code)
    withResponse[Unit](r ⇒ compiler.askReload(List(file), r)).get
    file
  }

  private def withResponse[A](op: Response[A] ⇒ Any): Response[A] = {
    val response = new Response[A]
    op(response)
    response
  }

  def autocomplete(code: String, p: Int): Either[Seq[AutoCompletion], Throwable] = {
    def completion(f: (compiler.Position, compiler.Response[List[compiler.Member]]) ⇒ Unit,
                   pos: compiler.Position): Either[Seq[AutoCompletion], Throwable] = {

      withResponse[List[compiler.Member]](r ⇒ f(pos, r)).get match {
        case Left(members) ⇒ compiler.ask(() ⇒ {
          Left(members.map(member ⇒ {
            AutoCompletion(
              symbol = member.sym.decodedName,
              signature = member.sym.signatureString,
              documentation = Documentation(""),
              tags = tagsForMember(member).toList,
              priority = if (member.implicitlyAdded) 2 else 1
            )
          }))
        })
        case Right(e) ⇒
          Right(e)
      }
    }
    def typeCompletion(pos: compiler.Position) = {
      completion(compiler.askTypeCompletion, pos).left.map(_.sortBy(_.priority))
    }

    def scopeCompletion(pos: compiler.Position) = {
      completion(compiler.askScopeCompletion, pos).left.map(_.sortBy(_.priority))
    }

    // inspired by scala-ide
    // https://github.com/scala-ide/scala-ide/blob/4.0.0-m3-luna/org.scala-ide.sdt.core/src/org/scalaide/core/completion/ScalaCompletions.scala#L170
    askTypeAt(code, p, p) {
      (tree, pos) ⇒ tree match {
        case compiler.New(name) ⇒
          log.debug {
            s"ast/New: $name"
          }
          typeCompletion(name.pos)
        case compiler.Select(qualifier, _) if qualifier.pos.isDefined && qualifier.pos.isRange ⇒
          log.debug {
            s"ast/Select: $qualifier"
          }
          typeCompletion(qualifier.pos)
        case compiler.Import(expr, _) ⇒
          log.debug {
            s"ast/Import: $expr"
          }
          typeCompletion(expr.pos)
        case compiler.Apply(fun, _) ⇒
          log.debug {
            s"ast/Apply: $fun"
          }
          fun match {
            case compiler.Select(qualifier: compiler.New, _) ⇒
              log.debug {
                s"ast/Apply/Select/New: $qualifier"
              }
              typeCompletion(qualifier.pos)
            case compiler.Select(qualifier, _) if qualifier.pos.isDefined && qualifier.pos.isRange ⇒
              log.debug {
                s"ast/Apply/Select: $qualifier"
              }
              typeCompletion(qualifier.pos)
            case x ⇒
              log.debug {
                s"ast: $x"
              }
              scopeCompletion(fun.pos)
          }
        case x ⇒
          log.debug {
            s"ast/Apply/Select: $x"
          }
          scopeCompletion(pos)
      }
    } {
      pos => Some(scopeCompletion(pos))
    }.getOrElse(Left(List()))
  }

  private type SymbolType = compiler.Symbol
  private val tagSpecs = Map(
    ((s: SymbolType) => s.isClass) -> "class",
    ((s: SymbolType) => s.isAnonymousFunction) -> "function",
    ((s: SymbolType) => s.isMethod) -> "method",
    ((s: SymbolType) => s.isAccessor) -> "getter",
    ((s: SymbolType) => s.isSetter) -> "setter",
    ((s: SymbolType) => s.isPrivate)-> "private",
    ((s: SymbolType) => s.isLocal) -> "local",
    ((s: SymbolType) => s.isPackage || s.isPackageObjectOrClass) -> "package"
  )
  def tagsForMember(member: compiler.Member): Seq[String] = {
    val sym: compiler.Symbol = member.sym

    tagSpecs.
      filter { case (k, v) => k(sym)}.
      map { case (k, v) => v}.
      toSeq
  }

  def typeAt(code: String, start: Int, end: Int): Option[TypeAtResponse] = {
    askTypeAt(code, start, end) { (tree, _) ⇒ {
      // inspired by ensime
      val res =
        tree match {
          case compiler.Select(qual, name) ⇒ qual
          case t: compiler.ImplDef if t.impl != null ⇒ t.impl
          case t: compiler.ValOrDefDef if t.tpt != null ⇒ t.tpt
          case t: compiler.ValOrDefDef if t.rhs != null ⇒ t.rhs
          case t ⇒ t
        }
      TypeAtResponse(res.tpe.toString())
    }
    } {
      Function.const(None)
    }
  }

  private def askTypeAt[A]
  (code: String, start: Int, end: Int)
  (f: (compiler.Tree, compiler.Position) ⇒ A)
  (fb: compiler.Position ⇒ Option[A]): Option[A] = {

    if (code.isEmpty) None
    else {
      val file = reload(code)
      val rpos = compiler.rangePos(file, start, start, end)

      val response = withResponse[compiler.Tree](r ⇒
        compiler.askTypeAt(rpos, r)
      )

      response.get match {
        case Left(tree) ⇒ Some(f(tree, rpos))
        case Right(e) ⇒
          e.printStackTrace()
          fb(rpos);
      }
    }
  }

  //  private val timeout = 60.seconds
  //  private val jvmId = java.lang.Math.abs(new Random().nextInt())

  //  private def convert(infos: Map[String, List[(Int, String)]]): Map[Severity, List[CompilationInfo]] = {
  //    infos.map { case (k, vs) ⇒
  //      val sev = k match {
  //        case "ERROR" ⇒ Error
  //        case "WARNING" ⇒ Warning
  //        case "INFO" ⇒ Info
  //      }
  //      (sev, vs map { case (p, m) ⇒ CompilationInfo(m, p)})
  //    }
  //  }

  private def withTimeout[T](f: ⇒ T)(timeout: Duration): Option[T] = {
    val task = new FutureTask(new Callable[T]() {
      def call = f
    })
    val thread = new Thread(task)
    try {
      thread.start()
      Some(task.get(timeout.toMillis, TimeUnit.MILLISECONDS))
    } catch {
      case e: TimeoutException ⇒ None
    } finally {
      if (thread.isAlive) {
        thread.interrupt()
        thread.stop()
      }
    }
  }
}


text: filename with blank


text:
<?xml version="1.0"?>
<rdf:RDF xmlns="http://www.w3.org/2002/07/owl#"
     xml:base="http://www.w3.org/2002/07/owl"
     xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
     xmlns:AiGGridOntology="http://gridagents.sourceforge.net/AiGGridOntology#"
     xmlns:owl="http://www.w3.org/2002/07/owl#"
     xmlns:xsd="http://www.w3.org/2001/XMLSchema#"
     xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
     xmlns:cgo="http://purl.org/NET/cgo#"
     xmlns:bla="http://bla.org/">

    <Class rdf:about="http://bla.org/testCondition">
        <equivalentClass>
            <Class>
                <intersectionOf rdf:parseType="Collection">
                    <rdf:Description rdf:about="http://purl.org/NET/cgo#WorkerNode"/>
                    <Restriction>
                        <onProperty rdf:resource="http://gridagents.sourceforge.net/AiGGridOntology#hasMemory"/>
                        <hasValue rdf:resource="http://gridagents.sourceforge.net/AiGGridOntology#condorWorkerNode2RAM"/>
                    </Restriction>
                </intersectionOf>
            </Class>
        </equivalentClass>
    </Class>

</rdf:RDF>


text: [1.5.1 introduction](/appium/01_native_ios_automation/05_conclusion/01_introduction.md)


text:
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:id="@+id/container"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    tools:context="com.example.sound6.SecondActivity"
    tools:ignore="MergeRootFrame" >

    <Button
        android:id="@+id/button1"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:onClick="speedup"
        android:text="@string/speed_up" />

    <Button
        android:id="@+id/button2"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_marginTop="50dp"
        android:onClick="makeUrgent"
        android:text="@string/urgent" />

    <Button
        android:id="@+id/button3"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_marginTop="100dp"
        android:onClick="winner"
        android:text="@string/winner" />

    <Button
        android:id="@+id/button4"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_marginTop="150dp"
        android:onClick="replay"
        android:text="replay" />

    <Button
        android:id="@+id/button5"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_marginTop="200dp"
        android:onClick="startOver"
        android:text="startOver" />

    <Button
        android:id="@+id/button5"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_marginTop="250dp"
        android:onClick="loser"
        android:text="loser" />

    <Button
        android:id="@+id/button5"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_marginTop="300dp"
        android:onClick="tie"
        android:text="tie" />

</RelativeLayout>


text:
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:background="@drawable/welcome1"
    android:layout_width="match_parent"
    android:layout_height="match_parent">

    <TextView
        android:id="@+id/welcome"
        android:text="@string/welcome_speech"
        android:textColor="@android:color/white"
        android:textSize="@dimen/top_bar_title_text_size"
        android:layout_alignParentBottom="true"
        android:layout_centerHorizontal="true"
        android:layout_marginBottom="10dp"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content" />

    <ImageView
        android:id="@+id/welcome_logo"
        android:src="@drawable/logo3"
        android:layout_centerHorizontal="true"
        android:layout_marginBottom="10dp"
        android:layout_above="@+id/welcome"
        android:layout_width="25dp"
        android:layout_height="25dp" />

</RelativeLayout>


text:
"""
Test the 'mini charset' custom widget used by Morse Trainer.
"""

import sys
from random import randint
from PyQt5.QtWidgets import (QApplication, QWidget, QHBoxLayout,
                             QVBoxLayout, QPushButton)
sys.path.append('..')
from mini_charset import MiniCharset
import utils

class TestMiniCharset(QWidget):
    """Application to demonstrate the Morse Trainer 'charset' widget."""

    def __init__(self):
        super().__init__()
        self.toggle = True
        self.initUI()

    def initUI(self):
        self.display = MiniCharset(utils.Koch, 2)
        redisplay_button = QPushButton('Redisplay', self)

        hbox1 = QHBoxLayout()
        hbox1.addWidget(self.display)

        vbox = QVBoxLayout()
        vbox.addLayout(hbox1)
        vbox.addWidget(redisplay_button)
        self.setLayout(vbox)

        redisplay_button.clicked.connect(self.redisplayButtonClicked)

        self.setGeometry(100, 100, 500, 100)
        self.setWindowTitle('Example of MiniCharset widget')
        self.show()

    def redisplayButtonClicked(self, event):
        if self.toggle:
            # generate random data
            in_use = randint(2, len(utils.Koch))
            new = {}
            for char in utils.Koch:
                new[char] = (randint(0,100)/100, randint(0,51))
        else:
            # set a fixed state
            in_use = 15
            new = {}
            for (n, char) in enumerate(utils.Koch):
                if n == 0:
                    new[char] = (0.98, 50)
                elif n == 1:
                    new[char] = (0.98, 40)
                elif n == 2:
                    new[char] = (0.88, 40)
                elif n == 3:
                    new[char] = (0.88, 50)
                else:
                    new[char] = (randint(0,100)/100, randint(0,51))

        # redisplay
        self.display.setState(in_use, new, 0.95, 50)

        self.toggle = not self.toggle

app = QApplication(sys.argv)
ex = TestMiniCharset()
sys.exit(app.exec())


text:
package de.slackspace.rmanager.domain;

public enum MatchResult {

	PLAYER1WINS,
	PLAYER2WINS,
	DRAW
}


text:
import sinon from 'sinon';
import * as utils from '../../utils/generic';
import * as actions from '../../actions/usersActions';

describe('usersActions', () => {
    describe('getUsers action', () => {
        it('should return the correct types', () => {
            expect(actions.getUsers().types).toEqual([
                actions.types.FETCHING_USERS,
                actions.types.FETCHED_USERS,
                actions.types.FETCH_USERS_ERROR,
            ]);
        });

        it('getCancelSource should return the source', () => {
            const state = { users: { cancelSource: 'test' } };
            expect(actions.getUsers().getCancelSource(state)).toEqual('test');
        });

        it('onSuccess should return header info and users', () => {
            const ret = { headers: { 'total-users': 12 }, data: ['user1', 'user2'] };
            const headerStub = sinon.stub(utils, 'getHeaderPageInfo').returns({
                nextPage: false,
                range: '1-1',
            });
            expect(actions.getUsers().onSuccess(ret)).toEqual({
                users: ret.data,
                total: ret.headers['total-users'],
                range: '1-1',
                nextPage: false,
            });
            headerStub.restore();
        });
    });
});