text:
module AmaLayout
  class NotificationDecorator
    include AmaLayout::DraperReplacement

    ICONS = {
      notice: {
        icon_class: 'fa-info',
        colour_class: 'right-sidebar__content-icon--blue' # currently not in use
      },
      warning: {
        icon_class: 'fa-exclamation',
        colour_class: 'right-sidebar__content-icon--orange'
      },
      alert: {
        icon_class: 'fa-exclamation-triangle',
        colour_class: 'right-sidebar__content-icon--red'
      }
    }.freeze

    def created_at
      "#{time_elapsed} ago".humanize
    end

    def icon
      h.content_tag :div, class: icon_data.fetch(:colour_class) do
        klass = icon_data.fetch(:icon_class)
        h.content_tag :i, nil, class: "fa #{klass} right-sidebar__notice-icon"
      end
    end

    def active_class
      active? ? 'right-sidebar__content--active' : 'right-sidebar__content--inactive'
    end

    private

    def icon_data
      @icon_data ||= ICONS.fetch(type)
    end

    def time_elapsed
      h.time_ago_in_words(object.created_at, include_seconds: true)
    end
  end
end


text:
import PythonQt
from PythonQt import QtCore, QtGui
from ddapp.timercallback import TimerCallback
from ddapp.asynctaskqueue import *

def startApplication(enableQuitTimer=False):
    appInstance = QtGui.QApplication.instance()
    if enableQuitTimer:
        quitTimer = TimerCallback()
        quitTimer.callback = appInstance.quit
        quitTimer.singleShot(0.1)
    appInstance.exec_()

def main():

    UserPromptTask.promptsEnabled = False

    q = AsyncTaskQueue()

    q.addTask(PrintTask('start'))
    q.addTask(DelayTask(0.1))
    q.addTask(UserPromptTask('Continue?', testingValue=False))
    #q.addTask(PauseTask())
    q.addTask(PrintTask('done'))
    q.addTask(QuitTask())

    q.start()

    globals().update(locals())

    #_console.show()
    startApplication(enableQuitTimer=False)

if __name__ == '__main__':
    main()

redpajama_set_name: RedPajamaGithub


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

      <title>5.157. Прошение  неизвестного Invocation  of an unknown</title>
      <meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
      <link rel="stylesheet"
            type="text/css"
            media="screen, projection"
            href="../xsl/global.css"/>

bibliography

               [--- το]ῦ θ(εο)ῦ

               [c. 8]

Βοήθι

               [c. 5].

 translation

… Бога… помоги…

 translation

... of God... Help...

commentary

 Местонахождение памятника, упомянутого Латышевым (1896, 42–43, 46, № 34, 41; 1897, 152) устанавливается предположительно, по единственному упоминанию надписи в Георгиевском монастыре Н.И. Репниковым (Материалы к археологической карте юго-западного нагорья Крыма (РА ИИМК РАН. Ф. 10, № 10. С. 34)). Чтение основано на единственной копии Д.М. Струкова (РА ИИМК РАН. Ф. Р–I, № 619. Л. 6). Остальная часть надписи не поддается дешифровке. Судя по своему положению над могилой, надпись могла быть надгробной. Неясно, какую роль играет в ней инвокация.

commentary

We can speculate about the topographic position of the monument, noted by Latyshev (1896, 42–43, 46, № 34, 41; 1897, 152), only on the basis of a mention made by N.I. Repnikov who says that it was found at St. George monastery (Materials for the archaeological map of the southwest mountains of Crimea (Manuscript Archive, Institute for History of Material Culture, Russian Academy of Sciences, f. 10, № 10, s. 34)). The edition is based on the single transcription of D.M. Strukov (Manuscript Archive, Institute for History of Material Culture, Russian Academy of Sciences, f. Р–I, № 619, l. 6). The rest of the text cannot be deciphered. Judging by its placement over a grave, it was probably an epitaph. The role of invocation in it is unclear.


text:
/*
 * Represents the current user
 * https://github.com/grantovich/CSH-WebNews/wiki/API%3A-The-Current-User
 *
 * Peter Zujko
 */

package edu.csh.cshwebnews.models;

public class User {

    private UserResponse user;

    /**
     * @return The user's authenticated username.
     */
    public String getUserName(){
        return user.getUsername();
    }

    /**
     * @return The user's preferred display name ("Common Name").
     */
    public String getDisplayName(){
        return user.getDisplayName();
    }

    public String getAvatarUrl() {
        return user.getAvatarUrl();
    }

    /**
     * @return When the user's WebNews account was created.
     */
    public String getCreatedAt(){
        return user.getCreatedAt();
    }

    public Boolean isAdmin(){
        return user.getIsAdmin();
    }

    private class UserResponse {

        private String username;

        private String display_name;

        private String avatar_url;

        private String created_at;

        private Boolean is_admin;

        public String getUsername() {
            return username;
        }

        public String getDisplayName() {
            return display_name;
        }

        public String getAvatarUrl() {
            return avatar_url;
        }

        public String getCreatedAt() {
            return created_at;
        }

        public Boolean getIsAdmin() {
            return is_admin;
        }
    }
}


text:
<?php namespace App\Exceptions\FileStream;

class UploadAttemptFailedException extends \RuntimeException
{
}


text:
<?php

namespace GraphAware\Neogen\Parser\Definition;

class GraphDefinition
{
    protected $nodes;

    protected $relationships;
}


text:
package org.hisp.dhis.dxf2.common;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlElementWrapper;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlRootElement;
import org.hisp.dhis.common.DxfNamespaces;
import org.hisp.dhis.dxf2.importsummary.ImportCount;

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

/**
 * @author Morten Olav Hansen <mortenoh@gmail.com>
 */
@JacksonXmlRootElement( localName = "importSummary", namespace = DxfNamespaces.DXF_2_0 )
public class ImportSummary
{
    private ImportCount importCount = new ImportCount();

    private List<ImportTypeSummary> importTypeSummaries = new ArrayList<>();

    public ImportSummary()
    {

    }

    @JsonProperty
    @JacksonXmlProperty( namespace = DxfNamespaces.DXF_2_0 )
    public ImportCount getImportCount()
    {
        return importCount;
    }

    public void setImportCount( ImportCount importCount )
    {
        this.importCount = importCount;
    }

    @JsonProperty
    @JacksonXmlElementWrapper( localName = "typeSummaries", namespace = DxfNamespaces.DXF_2_0 )
    @JacksonXmlProperty( localName = "typeSummary", namespace = DxfNamespaces.DXF_2_0 )
    public List<ImportTypeSummary> getImportTypeSummaries()
    {
        return importTypeSummaries;
    }

    public void setImportTypeSummaries( List<ImportTypeSummary> importTypeSummaries )
    {
        this.importTypeSummaries = importTypeSummaries;
    }

    //-------------------------------------------------------------------------
    // Helpers
    //-------------------------------------------------------------------------

    public void incrementImportCount( ImportCount importCount )
    {
        this.importCount.incrementImported( importCount.getImported() );
        this.importCount.incrementUpdated( importCount.getUpdated() );
        this.importCount.incrementIgnored( importCount.getIgnored() );
        this.importCount.incrementDeleted( importCount.getDeleted() );
    }

    @Override
    public String toString()
    {
        return "ImportSummary{" +
            "importCount=" + importCount +
            ", importTypeSummaries=" + importTypeSummaries +
            '}';
    }
}


text:
<?php include($this->view_path('common/header'));?>
<title><?php echo $title ?></title>
<meta name="keywords" content="<?php echo $keywords ?>" />
<meta name="description" content="<?php echo $description ?>" />
<link href="/css/product-detail.css?v=1" rel="stylesheet">

                    Smarter Shopping, Better Living!

Home

Buyer Protection

Coupon

                <form method="post" action="/catlist.index" class="navbar-form navbar-left" role="search">

                        <input type="text" name="keywords" class="form-control" placeholder="I'm shopping for...">

                    <button type="submit" class="btn btn-default">GO!</button>
                </form>

                <img id="product_big_pic" src="<?php echo $product_big_pic ?>" style="width: 350px; height: 327.25px;">

                <?php echo $image_nav ?>

<?php echo $productName ?>

                <?php echo $product_star_order ?>

                                <?php echo $product_info_original ?>

                                <?php echo $product_info_current ?>

                                    <a id="product_detail_url" rel="nofollow" class="buy-now-btn" href="<?php echo $product_detail_url ?>">Buy Now

Buyer Protection

Full Refund if you don't receive your order

Refund or Keep items not as described

                                    Learn More

Sold By

                        <?php echo $store_lnk ?>

                    <?php echo $address ?>
                    <?php echo $visit_store ?>

Top Selling Products From This Seller

                <?php echo $product_params ?>
                <?php echo $product_custom_desc ?>

                        <?php //echo $related_searches_title ?>
                    <?php
                     /*   $i=0;
                        foreach($related_searches_keywords as $keyword){
                            if($i>4){
                                return false;
                            }
                            $i++;
                            echo 'innertext.'">'.$keyword->innertext.'';
                        }
                     */
                    ?>

<?php
    foreach($script as $js)
    {
        if (strpos($js,'window.runParams') !== false ) {
            echo $js;
        }
    }
?>

<?php include($this->view_path('common/footer'));?>


text:
#ifndef __ZLZDECOMPRESSOR_H__
#define __ZLZDECOMPRESSOR_H__

#include <zlib.h>

#include <string>

class ZLInputStream;

class ZLZDecompressor {

public:
	ZLZDecompressor(std::size_t size);
	~ZLZDecompressor();

	std::size_t decompress(ZLInputStream &stream, char *buffer, std::size_t maxSize);

private:
	z_stream *myZStream;
	std::size_t myAvailableSize;
	char *myInBuffer;
	char *myOutBuffer;
	std::string myBuffer;
};

#endif /* __ZLZDECOMPRESSOR_H__ */


text:
<?php

namespace Nkt\Column;

use Doctrine\ORM\Mapping as ORM;

/**
 * Id column
 * @author Gusakov Nikita <dev@nkt.me>
 */
trait Id
{
    /**
     * @var integer
     * @ORM\Id
     * @ORM\Column(type="integer", options={"unsigned"=true})
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    protected $id;

    /**
     * @return integer
     */
    public function getId()
    {
        return $this->id;
    }
}


text:
namespace project {

/// Create a data aggregate type in our project namespace.
struct DataAggregate {
	DataAggregate() = default;
	DataAggregate( float iOne, float iTwo );

	float memberOne = 0.0f;
	float memberTwo = 0.0f;
};

/// Since the closing brace of the namespace is often far from the opening one,
/// we comment the closing brace with the declaration we used to open the namespace.
} // namespace project

/// You can reopen namespaces anywhere to add things to them.
/// This is handy since you will often have several files contributing methods
/// and class definitions to the same namespace.
namespace project {

/// You can declare namespaces within other namespaces.
/// Typically, we don't want to go more than two deep to avoid over-specifying things.
///
/// You might have a namespace for each element of your project, like:
/// project::wind::, project::water::, project::soil::,
/// with each having their own data and view types.
///
///
/// This namespace is project::module.
namespace module {
	/// Create a data aggregate type in our module namespace.
	struct DataAggregate
	{
		DataAggregate() = default;
		DataAggregate( float iValue, const std::string &iName );

		float value = 0;
		std::string name;
	};
} // namespace module

} // namespace project

/// Looking forward to making this example less abstract,
/// I am thinking about how to demonstrate breaking things into modules.
namespace project {

namespace water {
	struct Data {

	};
} // namespace water

namespace wind {
	/// For starters, just use the same data type as water.
	/// If in the future we need a custom wind data type, we
	/// could replace this alias with the custom type without needing
	/// to change our code that uses the data.
	///
	/// This style of aliasing is called "lifting," as the type Data
	/// is lifted from the project::water:: namespace into the current one.
	using Data = water::Data;
} // namespace wind

namespace soil {
	/// Soil isn't simulated the same way as wind and water, so we have different data for it.
	struct Data {

	};
} // namespace soil

} // namespace project


text:
<?php

namespace tests\cases\storage;

require_once dirname(__DIR__) . '/__init.php';


text:
from __future__ import absolute_import, division, print_function
__metaclass__ = type

ANSIBLE_METADATA = {
    'metadata_version': '1.1',
    'status': ['preview'],
    'supported_by': 'community'
}

DOCUMENTATION = r'''
---
module: postgresql_ping
short_description: Check remote PostgreSQL server availability
description:
- Simple module to check remote PostgreSQL server availability.
version_added: '2.8'
options:
  db:
    description:
    - Name of database to connect.
    type: str
    aliases:
    - login_db
notes:
- The default authentication assumes that you are either logging in as or
  sudo'ing to the postgres account on the host.
- This module uses psycopg2, a Python PostgreSQL database adapter. You must
  ensure that psycopg2 is installed on the host before using this module. If
  the remote host is the PostgreSQL server (which is the default case), then
  PostgreSQL must also be installed on the remote host. For Ubuntu-based
  systems, install the postgresql, libpq-dev, and python-psycopg2 packages
  on the remote host before using this module.
requirements: [ psycopg2 ]
author:
- Andrew Klychkov (@Andersson007)
extends_documentation_fragment: postgres
'''

EXAMPLES = r'''
# PostgreSQL ping dbsrv server from the shell:
# ansible dbsrv -m postgresql_ping

# In the example below you need to generate sertificates previously.
# See https://www.postgresql.org/docs/current/libpq-ssl.html for more information.
- name: PostgreSQL ping dbsrv server using not default credentials and ssl
  postgresql_ping:
    db: protected_db
    login_host: dbsrv
    login_user: secret
    login_password: secret_pass
    ca_cert: /root/root.crt
    ssl_mode: verify-full
'''

RETURN = r'''
is_available:
  description: PostgreSQL server availability.
  returned: always
  type: bool
  sample: true
server_version:
  description: PostgreSQL server version.
  returned: always
  type: dict
  sample: { major: 10, minor: 1 }
'''

try:
    import psycopg2
    HAS_PSYCOPG2 = True
except ImportError:
    HAS_PSYCOPG2 = False

from ansible.module_utils.basic import AnsibleModule
from ansible.module_utils.database import SQLParseError
from ansible.module_utils.postgres import postgres_common_argument_spec
from ansible.module_utils._text import to_native
from ansible.module_utils.six import iteritems

# ===========================================
# PostgreSQL module specific support methods.
#

class PgPing(object):
    def __init__(self, module, cursor):
        self.module = module
        self.cursor = cursor
        self.is_available = False
        self.version = {}

    def do(self):
        self.get_pg_version()
        return (self.is_available, self.version)

    def get_pg_version(self):
        query = "SELECT version()"
        raw = self.__exec_sql(query)[0][0]
        if raw:
            self.is_available = True
            raw = raw.split()[1].split('.')
            self.version = dict(
                major=int(raw[0]),
                minor=int(raw[1]),
            )

    def __exec_sql(self, query):
        try:
            self.cursor.execute(query)
            res = self.cursor.fetchall()
            if res:
                return res
        except SQLParseError as e:
            self.module.fail_json(msg=to_native(e))
            self.cursor.close()
        except Exception as e:
            self.module.warn("PostgreSQL server is unavailable: %s" % to_native(e))

        return False

# ===========================================
# Module execution.
#

def main():
    argument_spec = postgres_common_argument_spec()
    argument_spec.update(
        db=dict(type='str', aliases=['login_db']),
    )
    module = AnsibleModule(
        argument_spec=argument_spec,
        supports_check_mode=True,
    )

    if not HAS_PSYCOPG2:
        module.fail_json(msg="The python psycopg2 module is required")

    sslrootcert = module.params["ca_cert"]

    # To use defaults values, keyword arguments must be absent, so
    # check which values are empty and don't include in the **kw
    # dictionary
    params_map = {
        "login_host": "host",
        "login_user": "user",
        "login_password": "password",
        "port": "port",
        "db": "database",
        "ssl_mode": "sslmode",
        "ca_cert": "sslrootcert"
    }
    kw = dict((params_map[k], v) for (k, v) in iteritems(module.params)
              if k in params_map and v != "" and v is not None)

    # If a login_unix_socket is specified, incorporate it here.
    is_localhost = "host" not in kw or kw["host"] is None or kw["host"] == "localhost"
    if is_localhost and module.params["login_unix_socket"] != "":
        kw["host"] = module.params["login_unix_socket"]

    if psycopg2.__version__ < '2.4.3' and sslrootcert is not None:
        module.fail_json(msg='psycopg2 must be at least 2.4.3 in order '
                             'to user the ca_cert parameter')

    # Set some default values:
    cursor = False
    db_connection = False
    result = dict(
        changed=False,
        is_available=False,
        server_version=dict(),
    )

    try:
        db_connection = psycopg2.connect(**kw)
        cursor = db_connection.cursor(cursor_factory=psycopg2.extras.DictCursor)
    except TypeError as e:
        if 'sslrootcert' in e.args[0]:
            module.fail_json(msg='Postgresql server must be at least '
                                 'version 8.4 to support sslrootcert')
        module.fail_json(msg="unable to connect to database: %s" % to_native(e))
    except Exception as e:
        module.warn("PostgreSQL server is unavailable: %s" % to_native(e))

    # Do job:
    pg_ping = PgPing(module, cursor)
    if cursor:
        # If connection established:
        result["is_available"], result["server_version"] = pg_ping.do()
        db_connection.rollback()

    module.exit_json(**result)

if __name__ == '__main__':
    main()


text:
import {Component, OnInit} from '@angular/core';
import {ToastService} from './toast.service';
import {Message} from './message';
import {animate, style, transition, trigger} from '@angular/animations';
import {timer} from 'rxjs';

@Component({
    selector: 'app-toast',
    templateUrl: './toast.component.html',
    styleUrls: ['./toast.component.css'],
    animations: [

        trigger('showHide', [
            transition(':enter', [
                style({opacity: 0}),
                animate('500ms', style({opacity: 1}))
            ]),
            transition(':leave', [
                style({opacity: 1}),
                animate('500ms', style({opacity: 0}))
            ])
        ])]
})
export class ToastComponent implements OnInit {

    messages: Array<Message>;

    constructor(private _toastService: ToastService) {
    }

    ngOnInit() {

        this.messages = this._toastService.getMessages();

        timer(7000, 7000).subscribe(t => {

            this.messages.forEach(message => {

                this.dismiss(message.id);

            });
        });

    }

    dismiss(id) {
        this._toastService.dismissMessage(id);
    }

}


text:
<!DOCTYPE html>
<html>
    <head>
        <script src="../../../../xmlplus.js"></script>
        <script>
			console.log(xp.isFunction(xp));  // true
			console.log(xp.isFunction({}));  // false
		</script>
    </head>
    <body></body>
</html>


text:
<?php
  class EmailSystem_Service_Notifications extends Phpfox_Service
  {
        public function __construct()
        {
            $this->_sTable = Phpfox::getT('emailsystem_notifications');
        }
        public function get()
        {
             $res = phpfox::getLib('phpfox.database')->select('*')
                                ->from($this->_sTable,'enf')
                                ->join(phpfox::getT('emailsystem'),'es','es.type_id = enf.notifications_type')
                                ->join(phpfox::getT('emailsystem_template'),'et','et.template_id = es.template_id')
                                ->execute('getRows');
             return $res;
        }
        public function update($ems_notification_id = null,$aVals)
        {
            if($ems_notification_id != null)
            {
                  phpfox::getLib('phpfox.database')->update($this->_sTable,$aVals,'ems_notifications_id ='.$ems_notification_id);
            }

        }
        public function add($aVals,$ems_notification_id = null)
        {
             phpfox::getLib('phpfox.database')->insert($this->_sTable,$aVals);
        }

  }
?>


text:
import sys
import os
import unittest
from datetime import datetime, timedelta
from ebay_tweet_bot import Config

class ConfigTester(unittest.TestCase):
    def setUp(self):
        self.dir_path = os.path.dirname(sys.argv[0])
        self.dir_path = os.path.join(self.dir_path, 'test_data')
        self.config_file_path = os.path.join(self.dir_path, 'test_config.json')
        self.config = Config(self.config_file_path)

    def testEbayApiAppId(self):
        self.assertIsNotNone(self.config.ebay_api_app_id)

    def testTwitterApiConfig(self):
        self.assertIsNotNone(self.config.twitter_consumer_key)
        self.assertIsNotNone(self.config.twitter_consumer_secret)
        self.assertIsNotNone(self.config.twitter_access_token_key)
        self.assertIsNotNone(self.config.twitter_access_token_secret)

    def testBitlyAccessToken(self):
        self.assertIsNotNone(self.config.bitly_access_token)

    def testSaveLastRunTime(self):
        self.config.set_last_run((datetime.utcnow()-timedelta(hours=12)).isoformat())
        old_last_run = self.config.last_run
        self.config.save()
        self.config.load()
        self.assertEqual(old_last_run, self.config.last_run)


text:
This is the current verison of the Alexa Skill, Ask Teenager.

The skill is written in C# and hosted on Azure Functions.

There are two gender specific skills (Teenage Daughter and Teenage Son) registered with Amazon. Both of those skills ultimate point to this code. I use Azure Function Proxies to create two unique urls that I register with Amazon, and when calls come in over those urls. In some cases I need to pass back a gender specific response (such as in help), for this I use the proxes to push some additoinal query string parameters to this function to determine which skill was the caller.

The creation of this skill is described on [Intranoggin.com](http://intranoggin.com "Blog") over several articles released beginning in February, 2017.

### Update 4/20/2017
Going forward, I'm combining the functionality from both the Alexa Ask Teenage Son and Alexa Ask Teenage Daughter skills into a single AlexaAskTeenager skill.


text:
package com.goodgame.profiling.commons.util.json;

import java.io.BufferedWriter;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;
import java.io.Writer;
import java.net.Socket;

import org.json.JSONObject;
import org.json.JSONTokener;

public class JSONClient {
    private final String host;
    private final int port;

    public JSONClient( String host, int port ) {
        this.host = host;
        this.port = port;
    }

    public JSONObject request( JSONObject request ) throws IOException {
        try( Socket socket = new Socket( host, port );
                Writer writer = new BufferedWriter( new OutputStreamWriter( socket.getOutputStream() ) ) ) {
            request.write( writer );
            writer.flush();
            return new JSONObject( new JSONTokener( new InputStreamReader( socket.getInputStream() ) ) );
        }
    }
}


text:
class KeyedService;
class Profile;

namespace ash {
namespace multidevice_setup {

class OobeCompletionTracker;

// Owns OobeCompletionTracker instances and associates them with Profiles.
class OobeCompletionTrackerFactory : public BrowserContextKeyedServiceFactory {
 public:
  static OobeCompletionTracker* GetForProfile(Profile* profile);

  static OobeCompletionTrackerFactory* GetInstance();

  OobeCompletionTrackerFactory(const OobeCompletionTrackerFactory&) = delete;
  OobeCompletionTrackerFactory& operator=(const OobeCompletionTrackerFactory&) =
      delete;

 private:
  friend struct base::DefaultSingletonTraits<OobeCompletionTrackerFactory>;

  OobeCompletionTrackerFactory();
  ~OobeCompletionTrackerFactory() override;

  // BrowserContextKeyedServiceFactory:
  KeyedService* BuildServiceInstanceFor(
      content::BrowserContext* context) const override;
};

}  // namespace multidevice_setup
}  // namespace ash

#endif  // CHROME_BROWSER_ASH_MULTIDEVICE_SETUP_OOBE_COMPLETION_TRACKER_FACTORY_H_


text:
package Nov2020Leetcode;

public class _0965UnivaluedBinaryTree {
	static public class TreeNode {
		int val;
		TreeNode left;
		TreeNode right;

		TreeNode() {
		}

		TreeNode(int val) {
			this.val = val;
		}

		TreeNode(int val, TreeNode left, TreeNode right) {
			this.val = val;
			this.left = left;
			this.right = right;
		}
	}

	public static void main(String[] args) {
		TreeNode tn = new TreeNode(1);
		tn.left = new TreeNode(1);
		tn.right = new TreeNode(1);
		System.out.println(isUnivalTree(tn));

		tn = new TreeNode(1);
		tn.left = new TreeNode(1);
		tn.right = new TreeNode(1);
		tn.left.left = new TreeNode(2);
		System.out.println(isUnivalTree(tn));

		tn = new TreeNode(9);
		tn.left = new TreeNode(9);
		tn.right = new TreeNode(6);
		tn.left.left = new TreeNode(9);
		tn.left.right = new TreeNode(9);
		System.out.println(isUnivalTree(tn));
	}

	public static boolean isUnivalTree(TreeNode root) {
		if (root == null)
			return true;
		boolean isTreeValid = true;
		if (root.left != null) {
			isTreeValid = root.val == root.left.val && isUnivalTree(root.left);
		}
		if (!isTreeValid)
			return false;

		if (root.right != null) {
			isTreeValid = root.val == root.right.val && isUnivalTree(root.right);
		}
		return isTreeValid;
	}
}


text:
package org.springframework.social.instagram.api;

import java.util.List;

public interface TagOperations {

	/**
	 * Get information about a tag
	 *
	 * @param tagName
	 *            Tag name
	 * @return A tag definition
	 */
	Tag getTag(String tagName);

	/**
	 * Get recent media for a specific tag
	 *
	 * @param tagName
	 *            Tag name
	 * @return A list of media
	 */
	PagedMediaList getRecentMedia(String tagName);

	/**
	 * Get recent media for a specific tag
	 *
	 * @param tagName
	 *            Tag name
	 * @param maxId
	 *            Will return media after this ID
	 * @param minId
	 *            Will return media before this ID
	 * @return A list of media
	 */
	PagedMediaList getRecentMedia(String tagName, long maxId, long minId);

	/**
	 * Search for tags by name - results are ordered first as an exact match, then by popularity.
	 *
	 * @param query
	 *            valid tag name without a leading #
	 * @return A list of tags matching the query
	 */
	List<Tag> search(String query);

	public static final String TAGS_ENDPOINT = "tags/";
}


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

<title>Uses of Class javax.swing.JTree (Java Platform SE 8 )</title>
<meta name="date" content="2014-12-17">
<link rel="stylesheet" type="text/css" href="../../../stylesheet.css" title="Style">

JavaScript is disabled on your browser.

Skip navigation links

Overview

Package

Class

Use

Tree

Deprecated

Index

Help

Java™ Platform
Standard Ed. 8

Prev

Next

Frames

No Frames

All Classes

Uses of Class
javax.swing.JTree

Packages that use JTree

Package
Description

javax.swing

Provides a set of "lightweight"
(all-Java language) components that,
to the maximum degree possible, work the same on all platforms.

javax.swing.plaf

Provides one interface and many abstract classes that
Swing uses to provide its pluggable look-and-feel capabilities.

javax.swing.plaf.basic

Provides user interface objects built according to the
Basic look and feel.

javax.swing.plaf.multi

Provides user interface objects that combine two or more look and feels.

javax.swing.tree

Provides classes and interfaces for dealing with
javax.swing.JTree.

Uses of JTree in javax.swing

Methods in javax.swing with parameters of type JTree

Modifier and Type
Method and Description

Component
DefaultCellEditor.getTreeCellEditorComponent(JTree tree,
                          Object value,
                          boolean isSelected,
                          boolean expanded,
                          boolean leaf,
                          int row)

Implements the TreeCellEditor interface.

Constructors in javax.swing with parameters of type JTree

Constructor and Description

AccessibleJTreeNode(JTree t,
                   TreePath p,
                   Accessible ap)

Constructs an AccessibleJTreeNode

Uses of JTree in javax.swing.plaf

Methods in javax.swing.plaf with parameters of type JTree

Modifier and Type
Method and Description

abstract void
TreeUI.cancelEditing(JTree tree)

Cancels the current editing session.

abstract TreePath
TreeUI.getClosestPathForLocation(JTree tree,
                         int x,
                         int y)

Returns the path to the node that is closest to x,y.

abstract TreePath
TreeUI.getEditingPath(JTree tree)

Returns the path to the element that is being edited.

abstract Rectangle
TreeUI.getPathBounds(JTree tree,
             TreePath path)

Returns the Rectangle enclosing the label portion that the
 last item in path will be drawn into.

abstract TreePath
TreeUI.getPathForRow(JTree tree,
             int row)

Returns the path for passed in row.

abstract int
TreeUI.getRowCount(JTree tree)

Returns the number of rows that are being displayed.

abstract int
TreeUI.getRowForPath(JTree tree,
             TreePath path)

Returns the row that the last item identified in path is visible
 at.

abstract boolean
TreeUI.isEditing(JTree tree)

Returns true if the tree is being edited.

abstract void
TreeUI.startEditingAtPath(JTree tree,
                  TreePath path)

Selects the last item in path and tries to edit it.

abstract boolean
TreeUI.stopEditing(JTree tree)

Stops the current editing session.

Uses of JTree in javax.swing.plaf.basic

Fields in javax.swing.plaf.basic declared as JTree

Modifier and Type
Field and Description

protected JTree
BasicTreeUI.tree

Component that we're going to be drawing into.

Methods in javax.swing.plaf.basic with parameters of type JTree

Modifier and Type
Method and Description

void
BasicTreeUI.cancelEditing(JTree tree)

Cancels the current editing session.

TreePath
BasicTreeUI.getClosestPathForLocation(JTree tree,
                         int x,
                         int y)

Returns the path to the node that is closest to x,y.

TreePath
BasicTreeUI.getEditingPath(JTree tree)

Returns the path to the element that is being edited.

Rectangle
BasicTreeUI.getPathBounds(JTree tree,
             TreePath path)

Returns the Rectangle enclosing the label portion that the
 last item in path will be drawn into.

TreePath
BasicTreeUI.getPathForRow(JTree tree,
             int row)

Returns the path for passed in row.

int
BasicTreeUI.getRowCount(JTree tree)

Returns the number of rows that are being displayed.

int
BasicTreeUI.getRowForPath(JTree tree,
             TreePath path)

Returns the row that the last item identified in path is visible
 at.

boolean
BasicTreeUI.isEditing(JTree tree)

Returns true if the tree is being edited.

void
BasicTreeUI.startEditingAtPath(JTree tree,
                  TreePath path)

Selects the last item in path and tries to edit it.

boolean
BasicTreeUI.stopEditing(JTree tree)

Stops the current editing session.

Uses of JTree in javax.swing.plaf.multi

Methods in javax.swing.plaf.multi with parameters of type JTree

Modifier and Type
Method and Description

void
MultiTreeUI.cancelEditing(JTree a)

Invokes the cancelEditing method on each UI handled by this object.

TreePath
MultiTreeUI.getClosestPathForLocation(JTree a,
                         int b,
                         int c)

Invokes the getClosestPathForLocation method on each UI handled by this object.

TreePath
MultiTreeUI.getEditingPath(JTree a)

Invokes the getEditingPath method on each UI handled by this object.

Rectangle
MultiTreeUI.getPathBounds(JTree a,
             TreePath b)

Invokes the getPathBounds method on each UI handled by this object.

TreePath
MultiTreeUI.getPathForRow(JTree a,
             int b)

Invokes the getPathForRow method on each UI handled by this object.

int
MultiTreeUI.getRowCount(JTree a)

Invokes the getRowCount method on each UI handled by this object.

int
MultiTreeUI.getRowForPath(JTree a,
             TreePath b)

Invokes the getRowForPath method on each UI handled by this object.

boolean
MultiTreeUI.isEditing(JTree a)

Invokes the isEditing method on each UI handled by this object.

void
MultiTreeUI.startEditingAtPath(JTree a,
                  TreePath b)

Invokes the startEditingAtPath method on each UI handled by this object.

boolean
MultiTreeUI.stopEditing(JTree a)

Invokes the stopEditing method on each UI handled by this object.

Uses of JTree in javax.swing.tree

Fields in javax.swing.tree declared as JTree

Modifier and Type
Field and Description

protected JTree
DefaultTreeCellEditor.tree

JTree instance listening too.

Methods in javax.swing.tree with parameters of type JTree

Modifier and Type
Method and Description

protected void
DefaultTreeCellEditor.determineOffset(JTree tree,
               Object value,
               boolean isSelected,
               boolean expanded,
               boolean leaf,
               int row)

Component
TreeCellEditor.getTreeCellEditorComponent(JTree tree,
                          Object value,
                          boolean isSelected,
                          boolean expanded,
                          boolean leaf,
                          int row)

Sets an initial value for the editor.

Component
DefaultTreeCellEditor.getTreeCellEditorComponent(JTree tree,
                          Object value,
                          boolean isSelected,
                          boolean expanded,
                          boolean leaf,
                          int row)

Configures the editor.

Component
TreeCellRenderer.getTreeCellRendererComponent(JTree tree,
                            Object value,
                            boolean selected,
                            boolean expanded,
                            boolean leaf,
                            int row,
                            boolean hasFocus)

Sets the value of the current tree cell to value.

Component
DefaultTreeCellRenderer.getTreeCellRendererComponent(JTree tree,
                            Object value,
                            boolean sel,
                            boolean expanded,
                            boolean leaf,
                            int row,
                            boolean hasFocus)

Configures the renderer based on the passed in components.

protected void
DefaultTreeCellEditor.setTree(JTree newTree)

Sets the tree currently editing for.

Constructors in javax.swing.tree with parameters of type JTree

Constructor and Description

DefaultTreeCellEditor(JTree tree,
                     DefaultTreeCellRenderer renderer)

Constructs a DefaultTreeCellEditor
 object for a JTree using the specified renderer and
 a default editor.

DefaultTreeCellEditor(JTree tree,
                     DefaultTreeCellRenderer renderer,
                     TreeCellEditor editor)

Constructs a DefaultTreeCellEditor
 object for a JTree using the
 specified renderer and the specified editor.

Skip navigation links

Overview

Package

Class

Use

Tree

Deprecated

Index

Help

Java™ Platform
Standard Ed. 8

Prev

Next

Frames

No Frames

All Classes

 Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
 Copyright © 1993, 2015, Oracle and/or its affiliates.  All rights reserved.


text:
var XXHash = require('xxhash');
var DB = require('../../system/db/index.js');

function initSimAuthModule(ctx) {
    var _this = this;

    _this.config = {};
    _this.config.name = ctx.req.body.getValue("name", _this.getMid());

    var userModule = ctx.req.body.getValue("user");
    _this.config.userModule = ctx.getSaram().modules.get(userModule);

    ctx.errorTry(!_this.config.userModule, Error); // Error userPath

    var columns = {};
    columns["key"] = {type:"int64"};
    columns["str"] = {type:"string", length:256};

    DB.setTable(ctx, {
        name : _this.config.name,
        columns : columns,
        indexes : [{name:'key', type:'UNIQUE', columns:[["key","ASC"]]}]
    });

    DB.setQuery(ctx, {
        name : "simauth.getAccount",
        action : 'select',
        table : _this.config.name,
        columns : {
            uuid : 'uuid'
        },
        conditions : [
            { oper:'equal', column:'key', var: function(ctx, args) { return XXHash.hash(new Buffer(args.key), 0x654C6162); }}
        ]
    });

    DB.setQuery(ctx, {
        name : "simauth.register",
        action : 'insert',
        table : _this.config.name,
        columns : {
            key : function(ctx, args) { return XXHash.hash(new Buffer(args.key), 0x654C6162); },
            str : 'key'
        }
    });
}

module.exports = initSimAuthModule;


text:
<!DOCTYPE html>

{% include head.html %}

{% include header.html %}

                {% assign ert = page.content | strip_html | number_of_words | divided_by:180 %}
                {% assign ertremainder = page.content | strip_html | number_of_words | modulo:180 %}
                    {% if ertremainder >= 90 %}
                        {% assign readtime = ert | plus:1 %}
                    {% else %}
                        {% assign readtime = ert %}
                    {% endif %}

                        {% if page.link %}

{{ page.title }} →

                        {% else %}

{{ page.title }}

                        {% endif %}

                            {% if page.modified %}Last modified on <time datetime="{{ page.modified | date: "%Y-%m-%d" }}" itemprop="dateModified">{{ page.modified | date: "%d %b %Y" }}</time>{% endif %}
                            {% if site.readtime %} {% if readtime == 1 %}1 minute read{% endif %}{% if readtime > 1 %}{{ readtime }} minutes read{% endif %}{% if readtime == 0 %}Less than 1 minute read{% endif %}{% endif %}

                        {{ content }}

    {% include footer.html %}

{% include scripts.html %}


text:
package org.elasticsearch.cluster.coordination;

import org.apache.logging.log4j.Level;
import org.elasticsearch.Version;
import org.elasticsearch.action.ActionListenerResponseHandler;
import org.elasticsearch.action.support.PlainActionFuture;
import org.elasticsearch.cluster.ClusterName;
import org.elasticsearch.cluster.ClusterState;
import org.elasticsearch.cluster.NotMasterException;
import org.elasticsearch.cluster.metadata.Metadata;
import org.elasticsearch.cluster.node.DiscoveryNode;
import org.elasticsearch.common.settings.Settings;
import org.elasticsearch.test.ESTestCase;
import org.elasticsearch.test.transport.CapturingTransport;
import org.elasticsearch.test.transport.CapturingTransport.CapturedRequest;
import org.elasticsearch.test.transport.MockTransport;
import org.elasticsearch.transport.RemoteTransportException;
import org.elasticsearch.transport.TransportException;
import org.elasticsearch.transport.TransportResponse;
import org.elasticsearch.transport.TransportService;

import java.util.Collections;
import java.util.Optional;

import static org.elasticsearch.node.Node.NODE_NAME_SETTING;
import static org.hamcrest.Matchers.containsString;
import static org.hamcrest.Matchers.equalTo;
import static org.hamcrest.core.Is.is;

public class JoinHelperTests extends ESTestCase {

    public void testJoinDeduplication() {
        DeterministicTaskQueue deterministicTaskQueue = new DeterministicTaskQueue(
            Settings.builder().put(NODE_NAME_SETTING.getKey(), "node0").build(), random());
        CapturingTransport capturingTransport = new CapturingTransport();
        DiscoveryNode localNode = new DiscoveryNode("node0", buildNewFakeTransportAddress(), Version.CURRENT);
        TransportService transportService = capturingTransport.createTransportService(Settings.EMPTY,
            deterministicTaskQueue.getThreadPool(), TransportService.NOOP_TRANSPORT_INTERCEPTOR,
            x -> localNode, null, Collections.emptySet());
        JoinHelper joinHelper = new JoinHelper(Settings.EMPTY, null, null, transportService, () -> 0L, () -> null,
            (joinRequest, joinCallback) -> { throw new AssertionError(); }, startJoinRequest -> { throw new AssertionError(); },
            Collections.emptyList(), (s, p, r) -> {});
        transportService.start();

        DiscoveryNode node1 = new DiscoveryNode("node1", buildNewFakeTransportAddress(), Version.CURRENT);
        DiscoveryNode node2 = new DiscoveryNode("node2", buildNewFakeTransportAddress(), Version.CURRENT);

        assertFalse(joinHelper.isJoinPending());

        // check that sending a join to node1 works
        Optional<Join> optionalJoin1 = randomBoolean() ? Optional.empty() :
            Optional.of(new Join(localNode, node1, randomNonNegativeLong(), randomNonNegativeLong(), randomNonNegativeLong()));
        joinHelper.sendJoinRequest(node1, 0L, optionalJoin1);
        CapturedRequest[] capturedRequests1 = capturingTransport.getCapturedRequestsAndClear();
        assertThat(capturedRequests1.length, equalTo(1));
        CapturedRequest capturedRequest1 = capturedRequests1[0];
        assertEquals(node1, capturedRequest1.node);

        assertTrue(joinHelper.isJoinPending());

        // check that sending a join to node2 works
        Optional<Join> optionalJoin2 = randomBoolean() ? Optional.empty() :
            Optional.of(new Join(localNode, node2, randomNonNegativeLong(), randomNonNegativeLong(), randomNonNegativeLong()));
        joinHelper.sendJoinRequest(node2, 0L, optionalJoin2);
        CapturedRequest[] capturedRequests2 = capturingTransport.getCapturedRequestsAndClear();
        assertThat(capturedRequests2.length, equalTo(1));
        CapturedRequest capturedRequest2 = capturedRequests2[0];
        assertEquals(node2, capturedRequest2.node);

        // check that sending another join to node1 is a noop as the previous join is still in progress
        joinHelper.sendJoinRequest(node1, 0L, optionalJoin1);
        assertThat(capturingTransport.getCapturedRequestsAndClear().length, equalTo(0));

        // complete the previous join to node1
        if (randomBoolean()) {
            capturingTransport.handleResponse(capturedRequest1.requestId, TransportResponse.Empty.INSTANCE);
        } else {
            capturingTransport.handleRemoteError(capturedRequest1.requestId, new CoordinationStateRejectedException("dummy"));
        }

        // check that sending another join to node1 now works again
        joinHelper.sendJoinRequest(node1, 0L, optionalJoin1);
        CapturedRequest[] capturedRequests1a = capturingTransport.getCapturedRequestsAndClear();
        assertThat(capturedRequests1a.length, equalTo(1));
        CapturedRequest capturedRequest1a = capturedRequests1a[0];
        assertEquals(node1, capturedRequest1a.node);

        // check that sending another join to node2 works if the optionalJoin is different
        Optional<Join> optionalJoin2a = optionalJoin2.isPresent() && randomBoolean() ? Optional.empty() :
            Optional.of(new Join(localNode, node2, randomNonNegativeLong(), randomNonNegativeLong(), randomNonNegativeLong()));
        joinHelper.sendJoinRequest(node2, 0L, optionalJoin2a);
        CapturedRequest[] capturedRequests2a = capturingTransport.getCapturedRequestsAndClear();
        assertThat(capturedRequests2a.length, equalTo(1));
        CapturedRequest capturedRequest2a = capturedRequests2a[0];
        assertEquals(node2, capturedRequest2a.node);

        // complete all the joins and check that isJoinPending is updated
        assertTrue(joinHelper.isJoinPending());
        capturingTransport.handleRemoteError(capturedRequest2.requestId, new CoordinationStateRejectedException("dummy"));
        capturingTransport.handleRemoteError(capturedRequest1a.requestId, new CoordinationStateRejectedException("dummy"));
        capturingTransport.handleRemoteError(capturedRequest2a.requestId, new CoordinationStateRejectedException("dummy"));
        assertFalse(joinHelper.isJoinPending());
    }

    public void testFailedJoinAttemptLogLevel() {
        assertThat(JoinHelper.FailedJoinAttempt.getLogLevel(new TransportException("generic transport exception")), is(Level.INFO));

        assertThat(JoinHelper.FailedJoinAttempt.getLogLevel(
                new RemoteTransportException("remote transport exception with generic cause", new Exception())), is(Level.INFO));

        assertThat(JoinHelper.FailedJoinAttempt.getLogLevel(
                new RemoteTransportException("caused by CoordinationStateRejectedException",
                        new CoordinationStateRejectedException("test"))), is(Level.DEBUG));

        assertThat(JoinHelper.FailedJoinAttempt.getLogLevel(
                new RemoteTransportException("caused by FailedToCommitClusterStateException",
                        new FailedToCommitClusterStateException("test"))), is(Level.DEBUG));

        assertThat(JoinHelper.FailedJoinAttempt.getLogLevel(
                new RemoteTransportException("caused by NotMasterException",
                        new NotMasterException("test"))), is(Level.DEBUG));
    }

    public void testJoinValidationRejectsMismatchedClusterUUID() {
        DeterministicTaskQueue deterministicTaskQueue = new DeterministicTaskQueue(
            Settings.builder().put(NODE_NAME_SETTING.getKey(), "node0").build(), random());
        MockTransport mockTransport = new MockTransport();
        DiscoveryNode localNode = new DiscoveryNode("node0", buildNewFakeTransportAddress(), Version.CURRENT);

        final ClusterState localClusterState = ClusterState.builder(ClusterName.DEFAULT).metadata(Metadata.builder()
            .generateClusterUuidIfNeeded().clusterUUIDCommitted(true)).build();

        TransportService transportService = mockTransport.createTransportService(Settings.EMPTY,
            deterministicTaskQueue.getThreadPool(), TransportService.NOOP_TRANSPORT_INTERCEPTOR,
            x -> localNode, null, Collections.emptySet());
        new JoinHelper(Settings.EMPTY, null, null, transportService, () -> 0L, () -> localClusterState,
            (joinRequest, joinCallback) -> { throw new AssertionError(); }, startJoinRequest -> { throw new AssertionError(); },
            Collections.emptyList(), (s, p, r) -> {}); // registers request handler
        transportService.start();
        transportService.acceptIncomingRequests();

        final ClusterState otherClusterState = ClusterState.builder(ClusterName.DEFAULT).metadata(Metadata.builder()
            .generateClusterUuidIfNeeded()).build();

        final PlainActionFuture<TransportResponse.Empty> future = new PlainActionFuture<>();
        transportService.sendRequest(localNode, JoinHelper.VALIDATE_JOIN_ACTION_NAME,
            new ValidateJoinRequest(otherClusterState),
            new ActionListenerResponseHandler<>(future, in -> TransportResponse.Empty.INSTANCE));
        deterministicTaskQueue.runAllTasks();

        final CoordinationStateRejectedException coordinationStateRejectedException
            = expectThrows(CoordinationStateRejectedException.class, future::actionGet);
        assertThat(coordinationStateRejectedException.getMessage(),
            containsString("join validation on cluster state with a different cluster uuid"));
        assertThat(coordinationStateRejectedException.getMessage(), containsString(localClusterState.metadata().clusterUUID()));
        assertThat(coordinationStateRejectedException.getMessage(), containsString(otherClusterState.metadata().clusterUUID()));
    }

}


text:
namespace Envoy {
namespace Config {

CustomConfigValidatorsImpl::CustomConfigValidatorsImpl(
    ProtobufMessage::ValidationVisitor& validation_visitor, const Server::Instance& server,
    const Protobuf::RepeatedPtrField<envoy::config::core::v3::TypedExtensionConfig>&
        validators_configs)
    : server_(server) {
  for (const auto& validator_config : validators_configs) {
    auto& factory =
        Config::Utility::getAndCheckFactory<Config::ConfigValidatorFactory>(validator_config);
    const auto validator_type_url = factory.typeUrl();
    Config::ConfigValidatorPtr validator =
        factory.createConfigValidator(validator_config.typed_config(), validation_visitor);

    // Insert a new vector for the type url if one doesn't exist.
    auto pair = validators_map_.emplace(validator_type_url, 0);
    pair.first->second.emplace_back(std::move(validator));
  }
}

void CustomConfigValidatorsImpl::executeValidators(
    absl::string_view type_url, const std::vector<DecodedResourcePtr>& resources) {
  auto validators_it = validators_map_.find(type_url);
  if (validators_it != validators_map_.end()) {
    auto& validators = validators_it->second;
    for (auto& validator : validators) {
      // A validator can either succeed, or throw an EnvoyException.
      validator->validate(server_, resources);
    }
  }
}

void CustomConfigValidatorsImpl::executeValidators(
    absl::string_view type_url, const std::vector<DecodedResourcePtr>& added_resources,
    const Protobuf::RepeatedPtrField<std::string>& removed_resources) {
  auto validators_it = validators_map_.find(type_url);
  if (validators_it != validators_map_.end()) {
    auto& validators = validators_it->second;
    for (auto& validator : validators) {
      // A validator can either succeed, or throw an EnvoyException.
      validator->validate(server_, added_resources, removed_resources);
    }
  }
}

} // namespace Config
} // namespace Envoy


text:
package sintax;

import java.io.IOException;
import java.util.ArrayList;

import com.hp.hpl.jena.sparql.syntax.ElementGroup;

import lexic.Token;

public class GroupGraphPattern extends Production{
	public ElementGroup element = new ElementGroup();
	/**
	 * @author Romina
	 *
	 * GroupGraphPattern ::= '{' TriplesBlock? ( ( GraphPatternNotTriples | Filter ) '.'? TriplesBlock? )* '}'
	 * FIRST = '{'
	 *
	 *TriplesBlock FIRST = VAR1 | VAR2 | IRI_REF |PNAME_LN | PNAME_NS | STRING_LITERAL1 | STRING_LITERAL2
	 *  | STRING_LITERAL_LONG1 | STRING_LITERAL_LONG2 | INTEGER | DECIMAL |	DOUBLE | INTEGER_POSITIVE
	 *  | DECIMAL_POSITIVE | DOUBLE_POSITIVE | INTEGER_NEGATIVE | DECIMAL_NEGATIVE | DOUBLE_NEGATIVE
	 *  | 'true' | 'false' |	NIL
	 *
	 * GraphPatternNotTriples FIRST = 'OPTIONAL'
	 *
	 * Filter  FIRST = 'FILTER'
	 *
	 *
	 *
	 * @throws IOException
	 */
	public boolean process() throws IOException{

		// '{'
		if ( $.current.token == Token.LEFT_BRACE ){
			$.next();
		}else{
			MistakeLog.spected.add(Token.RIGHT_BRACE);
			return  false;
		}

		// TriplesBlock?
		TriplesBlock tb = (TriplesBlock)$.get("TriplesBlock");
		if (tb.analize()){
			element.addElement(tb.element);
			element.addElement(tb.element2);
		}

		// ( ( GraphPatternNotTriples | Filter ) '.'? TriplesBlock? )*

		do{
			GraphPatternNotTriples gpnt  =(GraphPatternNotTriples) $.get("GraphPatternNotTriples");
			Filter f = (Filter) $.get("Filter");

			if (gpnt.analize() ) element.addElement(gpnt.element);  //gpnt
			else if (f.analize()) element.addElement(f.node);  //filter
			else break;

			//.?
			if ( $.current.token == Token.PERIOD ) $.next();
			//tb?
			TriplesBlock tb2 = (TriplesBlock) $.get("TriplesBlock");
			if (tb2.analize())  element.addElement(tb2.element);

		}while(true);

		// '}'
		if ( $.current.token== Token.RIGHT_BRACE ){
			$.next();
			return true;
		}else {
			MistakeLog.spected.add(Token.RIGHT_BRACE);
			return false;
		}

	}

	@Override
	public ArrayList<Token> FIRSTS() throws IOException {
		ArrayList<Token> ans = new ArrayList<Token>();

		ans.add(Token.LEFT_BRACE);

		return ans;
	}

	@Override
	public ArrayList<Token> FOLLOWS() throws IOException {
		ArrayList<Token> ans = new ArrayList<Token>();

		for ( Token t : get("WhereClause").FOLLOWS() )
			ans.add(t);
		for ( Token t : get("OptionalGraphPattern").FOLLOWS() )
			ans.add(t);

		return ans;
	}
}


text:
package org.apache.spark.deploy.k8s.submit

import org.apache.spark.{SecurityManager, SparkConf, SparkFunSuite}
import org.apache.spark.deploy.k8s.config._
import org.apache.spark.deploy.k8s.KubernetesExternalShuffleService
import org.apache.spark.network.netty.SparkTransportConf
import org.apache.spark.network.shuffle.kubernetes.KubernetesExternalShuffleClientImpl

private[spark] class KubernetesExternalShuffleServiceSuite extends SparkFunSuite {

  private val SPARK_CONF = new SparkConf()
      .set(KUBERNETES_SHUFFLE_USE_SERVICE_ACCOUNT_CREDENTIALS, false)

  test("Run kubernetes shuffle service.") {
    val shuffleService = new KubernetesExternalShuffleService(
      SPARK_CONF,
      new SecurityManager(SPARK_CONF))

    val shuffleClient = new KubernetesExternalShuffleClientImpl(
      SparkTransportConf.fromSparkConf(SPARK_CONF, "shuffle"),
      new SecurityManager(SPARK_CONF),
      false)

    shuffleService.start()
    shuffleClient.init("newapp")

    // verifies that we can connect to the shuffle service and send
    // it a message.
    shuffleClient.registerDriverWithShuffleService("localhost", 7337)
    shuffleService.stop()
  }
}


text:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>WPILIB: Member List</title>
<link href="tabs.css" rel="stylesheet" type="text/css">
<link href="doxygen.css" rel="stylesheet" type="text/css">

Main Page

Related Pages

Classes

Files

Class List

Class Hierarchy

Class Members

CoordinateTransform_struct Member List
This is the complete list of members for CoordinateTransform_struct, including all inherited members.

finalAngle	CoordinateTransform_struct

finalOrigin	CoordinateTransform_struct

initialAngle	CoordinateTransform_struct

initialOrigin	CoordinateTransform_struct

<address style="text-align: right;">Generated on Wed Feb 9 11:20:47 2011 for WPILIB by

 1.5.8 </address>


text:
import { helper as buildHelper } from '@ember/component/helper';

export function prefixHttp([url]) {
  if (url == null) {
    return ''
  }
  return url.indexOf('http') === 0 ? url : `http://${url}`
}

export default buildHelper(prefixHttp)


text:
<!DOCTYPE html>

		<title>Dinamic URL Examples</title>
		<meta property="og:title" content="Social SDKs Plugin, @promatik"/>
		<meta property="og:type" content="website"/>
		<meta property="og:image" content="http://promatik.pt/images/promatik.jpg"/>
		<meta property="og:description" content="With Social SDks plugin, you can easily update, after an ajax request, buttons of social plugins like Facebook, Google Plus, Linked In and Twitter."/>
		<meta property="og:url" content="http://promatik.pt/github/social-sdks/"/>
		<meta property="fb:admins" content="100000258524385"/>
		<meta property="fb:app_id" content="150154111693861"/>

		<link href='http://fonts.googleapis.com/css?family=Ubuntu' rel='stylesheet' type='text/css'>

		<link rel="stylesheet" type="text/css" href="style.css"/>

Demo

Download

Support

Toni Almeida, @promatik

Social SDKs Demo

			With this plugin, you can easily update, after an ajax request, buttons of social plugins like "Facebook Like", "g+", "Linked in Share", "Tweet"...

			You don't need any additional Javascript code from Facebook or Google, its all packed in with this plugin.

This is the HTML code to create a bunch of social sharing buttons (FB Like, LinkedIn Share, Twitt and Google +)

<div class="fb-like" data-href="http://promatik.pt" data-send="false" data-layout="button_count" data-width="450" data-show-faces="true"></div>

<script type="IN/Share" data-url="http://promatik.pt" data-counter="right"></script>

<a style="width:100%; height:100%" href="https://twitter.com/share" class="twitter-share-button" data-url="http://promatik.pt" data-lang="en"></a>

<div class="g-plusone" data-size="medium" data-annotation="none" href="http://promatik.pt"></div>

The result:

			It worked like a charm! Because it was already in the DOM when the page loaded.

			However, if you load this code after the window load, for example, by ajax, it wouldn't be so easy ...

			You'd need to run renderSocialPlugins()

			Take a look ...

renderSocialPlugins()

Here is the code you need to call after adding code to the DOM

renderSocialPlugins();

		<button id="action-ajax" class="btn">Click to add buttons via JavaScript</button>
		<button id="action-rend" class="btn">Click to run renderSocialPlugins()</button>

			After clicking "add buttons via Javascript" nothing is going to happen, until you click to "renderSocialPlugins()"

			Result:

socialInit()

So to conclude, here is the plugin initialization:

			socialInit({

				fbAppId: "346759598747625", // Your Facebook App ID

				facebook: true, // true to use facebook, false if you not intend to use it

				google: true,

				twitter: true,

				linkedin: true

			});

			You are able to choose witch plugins you are using to get a better performance.

			Note: If you are using Facebook like, you need an App ID, you can get one at: https://developers.facebook.com/docs/reference/plugins/like/

Social SDKs Download

It's highly recommended to download the plugin from GitHub, because it's always updated there!

Here is the link to GitHub: https://github.com/promatik/Social-SDKs

Social SDKs Support

Support requests and general discussions about the Social SDKs plugin can be posted in the official forum.

If your question is not directly related to the Social SDKs plugin, you might have a better chance to get a reply by posting to Stack Overflow. Bugs and Feature requests can be reported using the issues tracker at GitHub.


text:
.footer-container-main{
    display:flex;
    justify-content: space-between;
    height:120px;
    align-items: center;
    flex-wrap: wrap;
    border-top:1px solid #f2f2f2;
}

.footer-container-main .copyright{
    color:#2e2e2e;
    font-size:14px;
    margin-right:5%;
    font-weight: 500;
    opacity:0.48
}
.footer-container-main .icon{
    margin-left: 5%;
    margin-right:11%;
}
@media(max-width:680px){
    .footer-container-main .copyright{
        display: block;
        margin: 0 auto;
        width: 100%;
        text-align: right;
        border-top: 1px solid #eeefef;
        padding-top: 11px;
        padding-bottom: 18px;
        margin-right: 25px;
    }
    .footer-container-main{
        border-top:none;
        padding-top:none;

    }
    .footer-container-main .social-media{
        margin-right:20px;
    }
}


text:
using System;

namespace Guidelines.Core.Commands.GuidExtensions
{
	public interface IUpdateCommand<TDomain> : IUpdateCommand<TDomain, Guid?>
		where TDomain : IIdentifiable<Guid?>
	{

	}
}


text:
var path = require('path'),
    fs = require('fs');

try {
    global.Gently = require('gently');
} catch (e) {
    throw new Error('this test suite requires node-gently');
}

exports.lib = path.join(__dirname, '../../lib');

global.GENTLY = new Gently();

global.assert = require('assert');
global.TEST_PORT = 13532;
global.TEST_FIXTURES = path.join(__dirname, '../fixture');
global.TEST_TMP = path.join(__dirname, '../tmp');

// Stupid new feature in node that complains about gently attaching too many
// listeners to process 'exit'. This is a workaround until I can think of a
// better way to deal with this.
if (process.setMaxListeners) {
    process.setMaxListeners(10000);
}


text:
package madgik.exareme.jdbc.federated;

/**
 *
 * @author dimitris
 */
public class AdpRecord extends java.util.ArrayList {
  private static final long serialVersionUID = 1;

  public AdpRecord() {
    super();
  }

  public AdpRecord(String[] s) {
    super();
    for (int i = 0; i < s.length; i++) {
      this.add(s[i]);
    }
  }
}


text:
module Shapeshifter
  class ShiftChain
    def initialize(first)
      @shifters = [first]
    end

    def chain(shifter)
      shifters << shifter
      self
    end

    def shift(source_object, target_object)
      can_be_dupped = source_object.respond_to?(:dup)
      shifters.each do |shifter_class|
        so = can_be_dupped ? source_object.dup : source_object
        shifter = shifter_class.new(so)
        target_object = shifter.shift(target_object)
      end
      target_object
    end

    def revert(source_object, target_object)
      can_be_dupped = source_object.respond_to?(:dup)
      shifters.reverse.each do |shifter_class|
        so = can_be_dupped ? source_object.dup : source_object
        shifter = shifter_class.new(so)
        target_object = shifter.revert(target_object)
      end
      target_object
    end

    private

    attr_reader :shifters
  end
end


text:
Public Class Form1

    Private Sub btnDisplay_Click(sender As Object, e As System.EventArgs) Handles btnDisplay.Click
        txtGreeting.Text = "How are you today?"
    End Sub

    Private Sub btnClear_Click(sender As Object, e As System.EventArgs) Handles btnClear.Click
        txtGreeting.Text = ""
    End Sub

    Private Sub btnExit_Click(sender As Object, e As System.EventArgs) Handles btnExit.Click
        End
    End Sub
End Class


text:
/**
 * WikimediaUI Base v0.9.2
 * Wikimedia Foundation user interface base variables
 */
/* Colors */
/* Positioning */
/* Box Model properties */
/* Max Widths */
/* Typography incl. print properties */
/* Other Properties */
/* Animation & Transition */
.oo-ui-icon-article {
  background-image: url('themes/wikimediaui/images/icons/article-ltr.png');
  background-image: -webkit-linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/article-ltr.svg');
  background-image: linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/article-ltr.svg');
  background-image: -o-linear-gradient(transparent, transparent), url('themes/wikimediaui/images/icons/article-ltr.png');
}
.oo-ui-image-invert.oo-ui-icon-article {
  background-image: url('themes/wikimediaui/images/icons/article-ltr-invert.png');
  background-image: -webkit-linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/article-ltr-invert.svg');
  background-image: linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/article-ltr-invert.svg');
  background-image: -o-linear-gradient(transparent, transparent), url('themes/wikimediaui/images/icons/article-ltr-invert.png');
}
.oo-ui-image-progressive.oo-ui-icon-article {
  background-image: url('themes/wikimediaui/images/icons/article-ltr-progressive.png');
  background-image: -webkit-linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/article-ltr-progressive.svg');
  background-image: linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/article-ltr-progressive.svg');
  background-image: -o-linear-gradient(transparent, transparent), url('themes/wikimediaui/images/icons/article-ltr-progressive.png');
}
.oo-ui-icon-articles {
  background-image: url('themes/wikimediaui/images/icons/articles-ltr.png');
  background-image: -webkit-linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/articles-ltr.svg');
  background-image: linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/articles-ltr.svg');
  background-image: -o-linear-gradient(transparent, transparent), url('themes/wikimediaui/images/icons/articles-ltr.png');
}
.oo-ui-image-invert.oo-ui-icon-articles {
  background-image: url('themes/wikimediaui/images/icons/articles-ltr-invert.png');
  background-image: -webkit-linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/articles-ltr-invert.svg');
  background-image: linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/articles-ltr-invert.svg');
  background-image: -o-linear-gradient(transparent, transparent), url('themes/wikimediaui/images/icons/articles-ltr-invert.png');
}
.oo-ui-image-progressive.oo-ui-icon-articles {
  background-image: url('themes/wikimediaui/images/icons/articles-ltr-progressive.png');
  background-image: -webkit-linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/articles-ltr-progressive.svg');
  background-image: linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/articles-ltr-progressive.svg');
  background-image: -o-linear-gradient(transparent, transparent), url('themes/wikimediaui/images/icons/articles-ltr-progressive.png');
}
.oo-ui-icon-articleCheck {
  background-image: url('themes/wikimediaui/images/icons/articleCheck-ltr.png');
  background-image: -webkit-linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/articleCheck-ltr.svg');
  background-image: linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/articleCheck-ltr.svg');
  background-image: -o-linear-gradient(transparent, transparent), url('themes/wikimediaui/images/icons/articleCheck-ltr.png');
}
.oo-ui-image-invert.oo-ui-icon-articleCheck {
  background-image: url('themes/wikimediaui/images/icons/articleCheck-ltr-invert.png');
  background-image: -webkit-linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/articleCheck-ltr-invert.svg');
  background-image: linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/articleCheck-ltr-invert.svg');
  background-image: -o-linear-gradient(transparent, transparent), url('themes/wikimediaui/images/icons/articleCheck-ltr-invert.png');
}
.oo-ui-image-progressive.oo-ui-icon-articleCheck {
  background-image: url('themes/wikimediaui/images/icons/articleCheck-ltr-progressive.png');
  background-image: -webkit-linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/articleCheck-ltr-progressive.svg');
  background-image: linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/articleCheck-ltr-progressive.svg');
  background-image: -o-linear-gradient(transparent, transparent), url('themes/wikimediaui/images/icons/articleCheck-ltr-progressive.png');
}
.oo-ui-icon-articleSearch {
  background-image: url('themes/wikimediaui/images/icons/articleSearch-ltr.png');
  background-image: -webkit-linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/articleSearch-ltr.svg');
  background-image: linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/articleSearch-ltr.svg');
  background-image: -o-linear-gradient(transparent, transparent), url('themes/wikimediaui/images/icons/articleSearch-ltr.png');
}
.oo-ui-image-invert.oo-ui-icon-articleSearch {
  background-image: url('themes/wikimediaui/images/icons/articleSearch-ltr-invert.png');
  background-image: -webkit-linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/articleSearch-ltr-invert.svg');
  background-image: linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/articleSearch-ltr-invert.svg');
  background-image: -o-linear-gradient(transparent, transparent), url('themes/wikimediaui/images/icons/articleSearch-ltr-invert.png');
}
.oo-ui-image-progressive.oo-ui-icon-articleSearch {
  background-image: url('themes/wikimediaui/images/icons/articleSearch-ltr-progressive.png');
  background-image: -webkit-linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/articleSearch-ltr-progressive.svg');
  background-image: linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/articleSearch-ltr-progressive.svg');
  background-image: -o-linear-gradient(transparent, transparent), url('themes/wikimediaui/images/icons/articleSearch-ltr-progressive.png');
}
.oo-ui-icon-articleRedirect {
  background-image: url('themes/wikimediaui/images/icons/articleRedirect-ltr.png');
  background-image: -webkit-linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/articleRedirect-ltr.svg');
  background-image: linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/articleRedirect-ltr.svg');
  background-image: -o-linear-gradient(transparent, transparent), url('themes/wikimediaui/images/icons/articleRedirect-ltr.png');
}
.oo-ui-image-invert.oo-ui-icon-articleRedirect {
  background-image: url('themes/wikimediaui/images/icons/articleRedirect-ltr-invert.png');
  background-image: -webkit-linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/articleRedirect-ltr-invert.svg');
  background-image: linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/articleRedirect-ltr-invert.svg');
  background-image: -o-linear-gradient(transparent, transparent), url('themes/wikimediaui/images/icons/articleRedirect-ltr-invert.png');
}
.oo-ui-image-progressive.oo-ui-icon-articleRedirect {
  background-image: url('themes/wikimediaui/images/icons/articleRedirect-ltr-progressive.png');
  background-image: -webkit-linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/articleRedirect-ltr-progressive.svg');
  background-image: linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/articleRedirect-ltr-progressive.svg');
  background-image: -o-linear-gradient(transparent, transparent), url('themes/wikimediaui/images/icons/articleRedirect-ltr-progressive.png');
}
.oo-ui-icon-book {
  background-image: url('themes/wikimediaui/images/icons/book-ltr.png');
  background-image: -webkit-linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/book-ltr.svg');
  background-image: linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/book-ltr.svg');
  background-image: -o-linear-gradient(transparent, transparent), url('themes/wikimediaui/images/icons/book-ltr.png');
}
.oo-ui-image-invert.oo-ui-icon-book {
  background-image: url('themes/wikimediaui/images/icons/book-ltr-invert.png');
  background-image: -webkit-linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/book-ltr-invert.svg');
  background-image: linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/book-ltr-invert.svg');
  background-image: -o-linear-gradient(transparent, transparent), url('themes/wikimediaui/images/icons/book-ltr-invert.png');
}
.oo-ui-image-progressive.oo-ui-icon-book {
  background-image: url('themes/wikimediaui/images/icons/book-ltr-progressive.png');
  background-image: -webkit-linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/book-ltr-progressive.svg');
  background-image: linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/book-ltr-progressive.svg');
  background-image: -o-linear-gradient(transparent, transparent), url('themes/wikimediaui/images/icons/book-ltr-progressive.png');
}
.oo-ui-icon-citeArticle {
  background-image: url('themes/wikimediaui/images/icons/citeArticle-ltr.png');
  background-image: -webkit-linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/citeArticle-ltr.svg');
  background-image: linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/citeArticle-ltr.svg');
  background-image: -o-linear-gradient(transparent, transparent), url('themes/wikimediaui/images/icons/citeArticle-ltr.png');
}
.oo-ui-image-invert.oo-ui-icon-citeArticle {
  background-image: url('themes/wikimediaui/images/icons/citeArticle-ltr-invert.png');
  background-image: -webkit-linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/citeArticle-ltr-invert.svg');
  background-image: linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/citeArticle-ltr-invert.svg');
  background-image: -o-linear-gradient(transparent, transparent), url('themes/wikimediaui/images/icons/citeArticle-ltr-invert.png');
}
.oo-ui-image-progressive.oo-ui-icon-citeArticle {
  background-image: url('themes/wikimediaui/images/icons/citeArticle-ltr-progressive.png');
  background-image: -webkit-linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/citeArticle-ltr-progressive.svg');
  background-image: linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/citeArticle-ltr-progressive.svg');
  background-image: -o-linear-gradient(transparent, transparent), url('themes/wikimediaui/images/icons/citeArticle-ltr-progressive.png');
}
.oo-ui-icon-die {
  background-image: url('themes/wikimediaui/images/icons/die-ltr.png');
  background-image: -webkit-linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/die-ltr.svg');
  background-image: linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/die-ltr.svg');
  background-image: -o-linear-gradient(transparent, transparent), url('themes/wikimediaui/images/icons/die-ltr.png');
}
.oo-ui-image-invert.oo-ui-icon-die {
  background-image: url('themes/wikimediaui/images/icons/die-ltr-invert.png');
  background-image: -webkit-linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/die-ltr-invert.svg');
  background-image: linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/die-ltr-invert.svg');
  background-image: -o-linear-gradient(transparent, transparent), url('themes/wikimediaui/images/icons/die-ltr-invert.png');
}
.oo-ui-image-progressive.oo-ui-icon-die {
  background-image: url('themes/wikimediaui/images/icons/die-ltr-progressive.png');
  background-image: -webkit-linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/die-ltr-progressive.svg');
  background-image: linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/die-ltr-progressive.svg');
  background-image: -o-linear-gradient(transparent, transparent), url('themes/wikimediaui/images/icons/die-ltr-progressive.png');
}
.oo-ui-icon-download {
  background-image: url('themes/wikimediaui/images/icons/download-ltr.png');
  background-image: -webkit-linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/download-ltr.svg');
  background-image: linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/download-ltr.svg');
  background-image: -o-linear-gradient(transparent, transparent), url('themes/wikimediaui/images/icons/download-ltr.png');
}
.oo-ui-image-invert.oo-ui-icon-download {
  background-image: url('themes/wikimediaui/images/icons/download-ltr-invert.png');
  background-image: -webkit-linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/download-ltr-invert.svg');
  background-image: linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/download-ltr-invert.svg');
  background-image: -o-linear-gradient(transparent, transparent), url('themes/wikimediaui/images/icons/download-ltr-invert.png');
}
.oo-ui-image-progressive.oo-ui-icon-download {
  background-image: url('themes/wikimediaui/images/icons/download-ltr-progressive.png');
  background-image: -webkit-linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/download-ltr-progressive.svg');
  background-image: linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/download-ltr-progressive.svg');
  background-image: -o-linear-gradient(transparent, transparent), url('themes/wikimediaui/images/icons/download-ltr-progressive.png');
}
.oo-ui-icon-folderPlaceholder {
  background-image: url('themes/wikimediaui/images/icons/folderPlaceholder-ltr.png');
  background-image: -webkit-linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/folderPlaceholder-ltr.svg');
  background-image: linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/folderPlaceholder-ltr.svg');
  background-image: -o-linear-gradient(transparent, transparent), url('themes/wikimediaui/images/icons/folderPlaceholder-ltr.png');
}
.oo-ui-image-invert.oo-ui-icon-folderPlaceholder {
  background-image: url('themes/wikimediaui/images/icons/folderPlaceholder-ltr-invert.png');
  background-image: -webkit-linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/folderPlaceholder-ltr-invert.svg');
  background-image: linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/folderPlaceholder-ltr-invert.svg');
  background-image: -o-linear-gradient(transparent, transparent), url('themes/wikimediaui/images/icons/folderPlaceholder-ltr-invert.png');
}
.oo-ui-image-progressive.oo-ui-icon-folderPlaceholder {
  background-image: url('themes/wikimediaui/images/icons/folderPlaceholder-ltr-progressive.png');
  background-image: -webkit-linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/folderPlaceholder-ltr-progressive.svg');
  background-image: linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/folderPlaceholder-ltr-progressive.svg');
  background-image: -o-linear-gradient(transparent, transparent), url('themes/wikimediaui/images/icons/folderPlaceholder-ltr-progressive.png');
}
.oo-ui-icon-history {
  background-image: url('themes/wikimediaui/images/icons/history.png');
  background-image: -webkit-linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/history.svg');
  background-image: linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/history.svg');
  background-image: -o-linear-gradient(transparent, transparent), url('themes/wikimediaui/images/icons/history.png');
}
.oo-ui-image-invert.oo-ui-icon-history {
  background-image: url('themes/wikimediaui/images/icons/history-invert.png');
  background-image: -webkit-linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/history-invert.svg');
  background-image: linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/history-invert.svg');
  background-image: -o-linear-gradient(transparent, transparent), url('themes/wikimediaui/images/icons/history-invert.png');
}
.oo-ui-image-progressive.oo-ui-icon-history {
  background-image: url('themes/wikimediaui/images/icons/history-progressive.png');
  background-image: -webkit-linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/history-progressive.svg');
  background-image: linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/history-progressive.svg');
  background-image: -o-linear-gradient(transparent, transparent), url('themes/wikimediaui/images/icons/history-progressive.png');
}
.oo-ui-icon-info {
  background-image: url('themes/wikimediaui/images/icons/info.png');
  background-image: -webkit-linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/info.svg');
  background-image: linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/info.svg');
  background-image: -o-linear-gradient(transparent, transparent), url('themes/wikimediaui/images/icons/info.png');
}
.oo-ui-image-invert.oo-ui-icon-info {
  background-image: url('themes/wikimediaui/images/icons/info-invert.png');
  background-image: -webkit-linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/info-invert.svg');
  background-image: linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/info-invert.svg');
  background-image: -o-linear-gradient(transparent, transparent), url('themes/wikimediaui/images/icons/info-invert.png');
}
.oo-ui-image-progressive.oo-ui-icon-info {
  background-image: url('themes/wikimediaui/images/icons/info-progressive.png');
  background-image: -webkit-linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/info-progressive.svg');
  background-image: linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/info-progressive.svg');
  background-image: -o-linear-gradient(transparent, transparent), url('themes/wikimediaui/images/icons/info-progressive.png');
}
.oo-ui-icon-journal {
  background-image: url('themes/wikimediaui/images/icons/journal-ltr.png');
  background-image: -webkit-linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/journal-ltr.svg');
  background-image: linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/journal-ltr.svg');
  background-image: -o-linear-gradient(transparent, transparent), url('themes/wikimediaui/images/icons/journal-ltr.png');
}
.oo-ui-image-invert.oo-ui-icon-journal {
  background-image: url('themes/wikimediaui/images/icons/journal-ltr-invert.png');
  background-image: -webkit-linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/journal-ltr-invert.svg');
  background-image: linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/journal-ltr-invert.svg');
  background-image: -o-linear-gradient(transparent, transparent), url('themes/wikimediaui/images/icons/journal-ltr-invert.png');
}
.oo-ui-image-progressive.oo-ui-icon-journal {
  background-image: url('themes/wikimediaui/images/icons/journal-ltr-progressive.png');
  background-image: -webkit-linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/journal-ltr-progressive.svg');
  background-image: linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/journal-ltr-progressive.svg');
  background-image: -o-linear-gradient(transparent, transparent), url('themes/wikimediaui/images/icons/journal-ltr-progressive.png');
}
.oo-ui-icon-newspaper {
  background-image: url('themes/wikimediaui/images/icons/newspaper-ltr.png');
  background-image: -webkit-linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/newspaper-ltr.svg');
  background-image: linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/newspaper-ltr.svg');
  background-image: -o-linear-gradient(transparent, transparent), url('themes/wikimediaui/images/icons/newspaper-ltr.png');
}
.oo-ui-image-invert.oo-ui-icon-newspaper {
  background-image: url('themes/wikimediaui/images/icons/newspaper-ltr-invert.png');
  background-image: -webkit-linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/newspaper-ltr-invert.svg');
  background-image: linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/newspaper-ltr-invert.svg');
  background-image: -o-linear-gradient(transparent, transparent), url('themes/wikimediaui/images/icons/newspaper-ltr-invert.png');
}
.oo-ui-image-progressive.oo-ui-icon-newspaper {
  background-image: url('themes/wikimediaui/images/icons/newspaper-ltr-progressive.png');
  background-image: -webkit-linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/newspaper-ltr-progressive.svg');
  background-image: linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/newspaper-ltr-progressive.svg');
  background-image: -o-linear-gradient(transparent, transparent), url('themes/wikimediaui/images/icons/newspaper-ltr-progressive.png');
}
.oo-ui-icon-tag {
  background-image: url('themes/wikimediaui/images/icons/tag.png');
  background-image: -webkit-linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/tag.svg');
  background-image: linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/tag.svg');
  background-image: -o-linear-gradient(transparent, transparent), url('themes/wikimediaui/images/icons/tag.png');
}
.oo-ui-image-destructive.oo-ui-icon-tag {
  background-image: url('themes/wikimediaui/images/icons/tag-destructive.png');
  background-image: -webkit-linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/tag-destructive.svg');
  background-image: linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/tag-destructive.svg');
  background-image: -o-linear-gradient(transparent, transparent), url('themes/wikimediaui/images/icons/tag-destructive.png');
}
.oo-ui-image-warning.oo-ui-icon-tag {
  background-image: url('themes/wikimediaui/images/icons/tag-warning.png');
  background-image: -webkit-linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/tag-warning.svg');
  background-image: linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/tag-warning.svg');
  background-image: -o-linear-gradient(transparent, transparent), url('themes/wikimediaui/images/icons/tag-warning.png');
}
.oo-ui-image-constructive.oo-ui-icon-tag {
  background-image: url('themes/wikimediaui/images/icons/tag-constructive.png');
  background-image: -webkit-linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/tag-constructive.svg');
  background-image: linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/tag-constructive.svg');
  background-image: -o-linear-gradient(transparent, transparent), url('themes/wikimediaui/images/icons/tag-constructive.png');
}
.oo-ui-image-invert.oo-ui-icon-tag {
  background-image: url('themes/wikimediaui/images/icons/tag-invert.png');
  background-image: -webkit-linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/tag-invert.svg');
  background-image: linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/tag-invert.svg');
  background-image: -o-linear-gradient(transparent, transparent), url('themes/wikimediaui/images/icons/tag-invert.png');
}
.oo-ui-image-progressive.oo-ui-icon-tag {
  background-image: url('themes/wikimediaui/images/icons/tag-progressive.png');
  background-image: -webkit-linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/tag-progressive.svg');
  background-image: linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/tag-progressive.svg');
  background-image: -o-linear-gradient(transparent, transparent), url('themes/wikimediaui/images/icons/tag-progressive.png');
}
.oo-ui-icon-upload {
  background-image: url('themes/wikimediaui/images/icons/upload-ltr.png');
  background-image: -webkit-linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/upload-ltr.svg');
  background-image: linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/upload-ltr.svg');
  background-image: -o-linear-gradient(transparent, transparent), url('themes/wikimediaui/images/icons/upload-ltr.png');
}
.oo-ui-image-invert.oo-ui-icon-upload {
  background-image: url('themes/wikimediaui/images/icons/upload-ltr-invert.png');
  background-image: -webkit-linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/upload-ltr-invert.svg');
  background-image: linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/upload-ltr-invert.svg');
  background-image: -o-linear-gradient(transparent, transparent), url('themes/wikimediaui/images/icons/upload-ltr-invert.png');
}
.oo-ui-image-progressive.oo-ui-icon-upload {
  background-image: url('themes/wikimediaui/images/icons/upload-ltr-progressive.png');
  background-image: -webkit-linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/upload-ltr-progressive.svg');
  background-image: linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/upload-ltr-progressive.svg');
  background-image: -o-linear-gradient(transparent, transparent), url('themes/wikimediaui/images/icons/upload-ltr-progressive.png');
}
.oo-ui-icon-window {
  background-image: url('themes/wikimediaui/images/icons/window.png');
  background-image: -webkit-linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/window.svg');
  background-image: linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/window.svg');
  background-image: -o-linear-gradient(transparent, transparent), url('themes/wikimediaui/images/icons/window.png');
}
.oo-ui-image-invert.oo-ui-icon-window {
  background-image: url('themes/wikimediaui/images/icons/window-invert.png');
  background-image: -webkit-linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/window-invert.svg');
  background-image: linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/window-invert.svg');
  background-image: -o-linear-gradient(transparent, transparent), url('themes/wikimediaui/images/icons/window-invert.png');
}
.oo-ui-image-progressive.oo-ui-icon-window {
  background-image: url('themes/wikimediaui/images/icons/window-progressive.png');
  background-image: -webkit-linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/window-progressive.svg');
  background-image: linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/window-progressive.svg');
  background-image: -o-linear-gradient(transparent, transparent), url('themes/wikimediaui/images/icons/window-progressive.png');
}