text:
package com.erakk.lnreader.UI.activity;

import android.content.Intent;
import android.content.res.Configuration;
import android.os.Bundle;
import android.support.annotation.LayoutRes;
import android.support.annotation.StringRes;
import android.support.v4.app.FragmentTransaction;
import android.support.v4.widget.DrawerLayout;
import android.support.v7.app.ActionBar;
import android.support.v7.app.ActionBarDrawerToggle;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar;
import android.util.Log;
import android.view.MenuItem;
import android.view.View;

import com.erakk.lnreader.Constants;
import com.erakk.lnreader.R;
import com.erakk.lnreader.UI.fragment.BookmarkFragment;
import com.erakk.lnreader.UI.fragment.DownloadFragment;
import com.erakk.lnreader.UI.fragment.SearchFragment;
import com.erakk.lnreader.UI.fragment.UpdateInfoFragment;
import com.erakk.lnreader.UIHelper;

public class BaseActivity extends AppCompatActivity {
    private static final String TAG = BaseActivity.class.toString();
    private ActionBarDrawerToggle mDrawerToggle;
    private DrawerLayout mDrawerLayout;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        UIHelper.setLanguage(this);
        //setContentView(R.layout.fragactivity_framework);
    }

    @Override
    public void setTitle(CharSequence title) {
        super.setTitle(title);
        ActionBar t = getSupportActionBar();
        if (t != null)
            t.setTitle(title);
    }

    @Override
    public void setTitle(@StringRes int titleId) {
        super.setTitle(titleId);
        ActionBar t = getSupportActionBar();
        if (t != null)
            t.setTitle(titleId);
    }

    @Override
    public void onResume() {
        super.onResume();
        UIHelper.CheckScreenRotation(this);
        UIHelper.CheckKeepAwake(this);
    }

    @Override
    protected void onPostCreate(Bundle savedInstanceState) {
        super.onPostCreate(savedInstanceState);
        // Sync the toggle state after onRestoreInstanceState has occurred.
        if (mDrawerToggle != null)
            mDrawerToggle.syncState();
    }

    @Override
    public void onConfigurationChanged(Configuration newConfig) {
        super.onConfigurationChanged(newConfig);
        // Pass any configuration change to the drawer toggle
        if (mDrawerToggle != null)
            mDrawerToggle.onConfigurationChanged(newConfig);
    }

    // region drawer onClick Handler

    public void openNovelList(MenuItem view) {
        mDrawerLayout.closeDrawers();
        UIHelper.openNovelList(this);
    }

    public void openWatchList(MenuItem item) {
        mDrawerLayout.closeDrawers();
        UIHelper.openWatchList(this);
    }

    public void openLastRead(MenuItem item) {
        mDrawerLayout.closeDrawers();
        UIHelper.openLastRead(this);
    }

    public void openAltNovelList(MenuItem item) {
        mDrawerLayout.closeDrawers();
        UIHelper.selectAlternativeLanguage(this);
    }

    public void openSettings(MenuItem view) {
        mDrawerLayout.closeDrawers();
        Intent intent = new Intent(this, DisplaySettingsActivity.class);
        startActivity(intent);
        overridePendingTransition(R.anim.slide_in_left, R.anim.slide_out_left);
        // FOR TESTING
        // resetFirstRun();
    }

    public void openDownloadsList(MenuItem view) {
        mDrawerLayout.closeDrawers();
        View f = findViewById(R.id.mainFrame);
        if (f != null) {
            FragmentTransaction transaction = getSupportFragmentManager().beginTransaction();
            transaction.replace(getLeftFrame(), new DownloadFragment())
                    .setCustomAnimations(R.anim.slide_in_left, R.anim.slide_out_left)
                    .addToBackStack(DownloadFragment.class.toString())
                    .commit();
        } else {
            Intent i = new Intent(this, MainActivity.class);
            i.putExtra(Constants.EXTRA_INITIAL_FRAGMENT, DownloadFragment.class.toString());
            startActivity(i);
            overridePendingTransition(R.anim.slide_in_left, R.anim.slide_out_left);
        }
    }

    public void openUpdatesList(MenuItem view) {
        mDrawerLayout.closeDrawers();
        View f = findViewById(R.id.mainFrame);
        if (f != null) {
            FragmentTransaction transaction = getSupportFragmentManager().beginTransaction();
            transaction.replace(getLeftFrame(), new UpdateInfoFragment())
                    .setCustomAnimations(R.anim.slide_in_left, R.anim.slide_out_left)
                    .addToBackStack(UpdateInfoFragment.class.toString())
                    .commit();
        } else {
            Intent i = new Intent(this, MainActivity.class);
            i.putExtra(Constants.EXTRA_INITIAL_FRAGMENT, UpdateInfoFragment.class.toString());
            startActivity(i);
            overridePendingTransition(R.anim.slide_in_left, R.anim.slide_out_left);
        }
    }

    public void openBookmarks(MenuItem view) {
        mDrawerLayout.closeDrawers();
        View f = findViewById(R.id.mainFrame);
        if (f != null) {
            FragmentTransaction transaction = getSupportFragmentManager().beginTransaction();
            transaction.replace(getLeftFrame(), new BookmarkFragment())
                    .setCustomAnimations(R.anim.slide_in_left, R.anim.slide_out_left)
                    .addToBackStack(BookmarkFragment.class.toString())
                    .commit();
        } else {
            Intent i = new Intent(this, MainActivity.class);
            i.putExtra(Constants.EXTRA_INITIAL_FRAGMENT, BookmarkFragment.class.toString());
            startActivity(i);
            overridePendingTransition(R.anim.slide_in_left, R.anim.slide_out_left);
        }
    }

    public void openSearch(MenuItem view) {
        mDrawerLayout.closeDrawers();
        View f = findViewById(R.id.mainFrame);
        if (f != null) {
            FragmentTransaction transaction = getSupportFragmentManager().beginTransaction();
            transaction.replace(getLeftFrame(), new SearchFragment())
                    .setCustomAnimations(R.anim.abc_fade_in, R.anim.slide_out_left, R.anim.abc_fade_in, R.anim.slide_out_left)
                    .addToBackStack(SearchFragment.class.toString())
                    .commit();
        } else {
            Intent i = new Intent(this, MainActivity.class);
            i.putExtra(Constants.EXTRA_INITIAL_FRAGMENT, SearchFragment.class.toString());
            startActivity(i);
            overridePendingTransition(R.anim.slide_in_left, R.anim.slide_out_left);
        }
    }

    // endregion

    protected int getLeftFrame() {
        View v = findViewById(R.id.rightFragment);
        if (v != null)
            return R.id.rightFragment;
        else return R.id.mainFrame;
    }

    @Override
    public void setContentView(@LayoutRes int layout) {
        super.setContentView(layout);

        Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);
        if (toolbar != null) {
            toolbar.setTitle(R.string.app_name);
            setSupportActionBar(toolbar);

            mDrawerLayout = (DrawerLayout) findViewById(R.id.drawer_layout);
            mDrawerToggle = new ActionBarDrawerToggle(this, mDrawerLayout, toolbar, R.string.open_chapter_title, R.string.open_chapter_title) {

                /** Called when a drawer has settled in a completely closed state. */
                public void onDrawerClosed(View view) {
                    super.onDrawerClosed(view);
                    //getActionBar().setTitle(mTitle);
                    //invalidateOptionsMenu(); // creates call to onPrepareOptionsMenu()
                    getSupportActionBar().setDisplayHomeAsUpEnabled(true);
                    getSupportActionBar().setDisplayShowHomeEnabled(true);
                }

                /** Called when a drawer has settled in a completely open state. */
                public void onDrawerOpened(View drawerView) {
                    super.onDrawerOpened(drawerView);
                    //getActionBar().setTitle(mDrawerTitle);
                    //invalidateOptionsMenu(); // creates call to onPrepareOptionsMenu()
                }

            };

            getSupportActionBar().setDisplayHomeAsUpEnabled(true);
            getSupportActionBar().setDisplayShowHomeEnabled(true);
        } else {
            Log.w(TAG, "No toolbar detected!");
        }
    }
}


text:
package javax.xml.crypto.test.dsig;

import javax.xml.crypto.dsig.CanonicalizationMethod;
import javax.xml.crypto.dsig.XMLSignatureFactory;
import javax.xml.crypto.dsig.spec.C14NMethodParameterSpec;

/**
 * Used by ClassLoaderTest
 */
public class Driver {

    private static final org.slf4j.Logger LOG =
        org.slf4j.LoggerFactory.getLogger(Driver.class);

    public void dsig() throws Exception {

        XMLSignatureFactory fac = XMLSignatureFactory.getInstance
            ("DOM", new org.apache.jcp.xml.dsig.internal.dom.XMLDSigRI());
        long start = System.currentTimeMillis();
        for (int i = 0; i < 100; i++) {
            fac.newCanonicalizationMethod
                (CanonicalizationMethod.EXCLUSIVE, (C14NMethodParameterSpec) null);
        }
        long end = System.currentTimeMillis();
        long elapsed = end - start;
        LOG.debug("Elapsed: {}", elapsed);
        LOG.debug("dsig succeeded");
    }
}

redpajama_set_name: RedPajamaGithub


text:
<?php

// auto-loading
Yii::setPathOfAlias('FcrnCurrency', dirname(__FILE__));
Yii::import('FcrnCurrency.*');

class FcrnCurrency extends BaseFcrnCurrency
{

    // Add your model-specific methods here. This file will not be overriden by gtc except you force it.
    public static function model($className = __CLASS__)
    {
        return parent::model($className);
    }

    public function init()
    {
        return parent::init();
    }

    public function getItemLabel()
    {
        return parent::getItemLabel();
    }

    public function behaviors()
    {
        return array_merge(
            parent::behaviors(),
            array()
        );    }

    public function rules()
    {
        return array_merge(
            parent::rules()
        /* , array(
          array('column1, column2', 'rule1'),
          array('column3', 'rule2'),
          ) */
        );
    }

}


text:
<?php

namespace ItePHP\Structure;
use Pactum\ConfigBuilder;
use Pactum\ConfigBuilderObject;

/**
 * Structure for snippets.
 *
 * @author Michal Tomczak (michal.tomczak@itephp.com)
 */
class VariableStructure implements Structure{

    /**
     * {@inheritdoc}
     */
	public function doConfig(ConfigBuilder $configBuilder){
	    $configBuilder->addArray('variable',new ConfigBuilderObject())->getValue()
            ->addString('name')
            ->addString('value'); //FIXME change to addMixed
	}
}


text:
// Copyright (c) Microsoft.  All Rights Reserved.  Licensed under the Apache License, Version 2.0.  See License.txt in the project root for license information.
#if NET46

using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Runtime.Serialization;
using System.Text;
using System.Threading;
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.CodeGen;
using Microsoft.CodeAnalysis.Emit;
using Roslyn.Utilities;

namespace Roslyn.Test.Utilities.Desktop
{
    [Serializable]
    public struct RuntimeModuleDataId : ISerializable
    {
        public ModuleDataId Id { get; }

        public RuntimeModuleDataId(ModuleDataId id)
        {
            Id = id;
        }

        private RuntimeModuleDataId(SerializationInfo info, StreamingContext context)
        {
            var simpleName = info.GetString(nameof(Id.SimpleName));
            var fullName = info.GetString(nameof(Id.FullName));
            var mvid = (Guid)info.GetValue(nameof(Id.Mvid), typeof(Guid));
            Id = new ModuleDataId(simpleName, fullName, mvid);
        }

        public void GetObjectData(SerializationInfo info, StreamingContext context)
        {
            info.AddValue(nameof(Id.SimpleName), Id.SimpleName);
            info.AddValue(nameof(Id.FullName), Id.FullName);
            info.AddValue(nameof(Id.Mvid), Id.Mvid);
        }
    }

    [Serializable, DebuggerDisplay("{GetDebuggerDisplay()}")]
    public sealed class RuntimeModuleData : ISerializable
    {
        public ModuleData Data { get; }

        public RuntimeModuleData(ModuleData data)
        {
            Data = data;
        }

        private RuntimeModuleData(SerializationInfo info, StreamingContext context)
        {
            var id = (RuntimeModuleDataId)info.GetValue(nameof(ModuleData.Id), typeof(RuntimeModuleDataId));
            var kind = (OutputKind)info.GetInt32(nameof(ModuleData.Kind));
            var image = info.GetByteArray(nameof(ModuleData.Image));
            var pdb = info.GetByteArray(nameof(ModuleData.Pdb));
            var inMemoryModule = info.GetBoolean(nameof(ModuleData.InMemoryModule));
            Data = new ModuleData(id.Id, kind, image, pdb, inMemoryModule);
        }

        public void GetObjectData(SerializationInfo info, StreamingContext context)
        {
            info.AddValue(nameof(ModuleData.Id), new RuntimeModuleDataId(Data.Id));
            info.AddValue(nameof(ModuleData.Kind), (int)Data.Kind);
            info.AddByteArray(nameof(ModuleData.Image), Data.Image);
            info.AddByteArray(nameof(ModuleData.Pdb), Data.Pdb);
            info.AddValue(nameof(ModuleData.InMemoryModule), Data.InMemoryModule);
        }
    }
}

#endif


text: Example of using library: https://github.com/evgenyigumnov/scala-common


text:
package boa.datagen.treed;

import org.eclipse.jdt.core.dom.ASTNode;
import org.eclipse.jdt.core.dom.Expression;
import org.eclipse.jdt.core.dom.InfixExpression;
import org.eclipse.jdt.core.dom.Modifier;
import org.eclipse.jdt.core.dom.PostfixExpression;
import org.eclipse.jdt.core.dom.PrefixExpression;
import org.eclipse.jdt.core.dom.PrimitiveType;
import org.eclipse.jdt.core.dom.TagElement;
import org.eclipse.jdt.core.dom.TextElement;
import org.eclipse.jdt.core.dom.Type;

public final class TreedUtils {

	public static char buildLabelForVector(ASTNode node) {
		char label = (char) node.getNodeType();
		if (node instanceof Expression) {
			if (node.getClass().getSimpleName().endsWith("Literal")) {
				return (char) (label | (node.toString().hashCode() << 7));
			}
			int type = node.getNodeType();
			switch (type) {
			case ASTNode.INFIX_EXPRESSION:
				return (char) (label | (((InfixExpression) node).getOperator().toString().hashCode() << 7));
			case ASTNode.SIMPLE_NAME:
				return (char) (label | (node.toString().hashCode() << 7));
			case ASTNode.POSTFIX_EXPRESSION:
				return (char) (label | (((PostfixExpression) node).getOperator().toString().hashCode() << 7));
			case ASTNode.PREFIX_EXPRESSION:
				return (char) (label | (((PrefixExpression) node).getOperator().toString().hashCode() << 7));
			default:
				break;
			}
		} else if (node instanceof Modifier) {
			return (char) (label | (node.toString().hashCode() << 7));
		} else if (node instanceof Type) {
			if (node instanceof PrimitiveType)
				return (char) (label | (node.toString().hashCode() << 7));
		} else if (node instanceof TextElement) {
			return (char) (label | (node.toString().hashCode() << 7));
		} else if (node instanceof TagElement) {
			String tag = ((TagElement) node).getTagName();
			if (tag != null)
				return (char) (label | (((TagElement) node).getTagName().hashCode() << 7));
		}
		return label;
	}

	public static String buildASTLabel(ASTNode node) {
		String label = node.getClass().getSimpleName();
		if (node instanceof Expression) {
			if (node.getClass().getSimpleName().endsWith("Literal")) {
				return label + "(" + node.toString() + ")";
			}
			int type = node.getNodeType();
			switch (type) {
			case ASTNode.INFIX_EXPRESSION:
				return label + "(" + ((InfixExpression) node).getOperator().toString() + ")";
			case ASTNode.SIMPLE_NAME:
				return label + "(" + node.toString() + ")";
			case ASTNode.POSTFIX_EXPRESSION:
				return label + "(" + ((PostfixExpression) node).getOperator().toString() + ")";
			case ASTNode.PREFIX_EXPRESSION:
				return label + "(" + ((PrefixExpression) node).getOperator().toString() + ")";
			default:
				break;
			}
		} else if (node instanceof Modifier) {
			return label + "(" + node.toString() + ")";
		} else if (node instanceof Type) {
			if (node instanceof PrimitiveType)
				return label + "(" + node.toString() + ")";
		} else if (node instanceof TextElement) {
			return label + "(" + node.toString() + ")";
		} else if (node instanceof TagElement) {
			String tag = ((TagElement) node).getTagName();
			if (tag == null)
				return label;
			return label + "(" + tag + ")";
		}
		return label;
	}

}


text:
<?php
namespace LangridSettingClient\Configurator;

if (! defined('CONFIG_ROOT')) {
    define('CONFIG_ROOT', dirname(__FILE__) . '/../config');

}

class FileBasedGroupConfig extends GroupConfig {
    var $groupConfig = NULL;

    function getGroupConfig() {
        $groupName = $this->getGroupName();
        if ($this->groupConfig === NULL) {
            $res = file_get_contents(CONFIG_ROOT . "/" . $groupName . ".group.json");
            if ($res !== FALSE) {
                $this->groupConfig = json_decode($res);
            }
        }

        return $this->groupConfig;
    }

    function getSetting($settingName) {
        $res = file_get_contents(CONFIG_ROOT . "/" .
                                 $settingName . ".settings.json");
        if ($res !== FALSE) {
            return json_decode($res);
        }

        return FALSE;
    }

    protected function getTranslationPathSetting($from, $to, $settingName) {
        $result = $this->getSetting($settingName);

        for ($i = 0; $i < count($result->paths); $i ++ ) {
            if ($result->paths[$i]->source_lang == $from &&
                $result->paths[$i]->target_lang == $to) {
                return $result->paths[$i];
            }
        }
        return null;
    }
}


text:
package ochttp_test

import (
	"net/http"
	"net/http/httptest"
	"testing"

	"github.com/google/go-cmp/cmp"
	"go.opencensus.io/plugin/ochttp"
	"go.opencensus.io/stats/view"
	"go.opencensus.io/tag"
)

func TestWithRouteTag(t *testing.T) {
	v := &view.View{
		Name:        "request_total",
		Measure:     ochttp.ServerLatency,
		Aggregation: view.Count(),
		TagKeys:     []tag.Key{ochttp.KeyServerRoute},
	}
	view.Register(v)
	var e testStatsExporter
	view.RegisterExporter(&e)
	defer view.UnregisterExporter(&e)

	mux := http.NewServeMux()
	handler := ochttp.WithRouteTag(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
		w.WriteHeader(204)
	}), "/a/")
	mux.Handle("/a/", handler)
	plugin := ochttp.Handler{Handler: mux}
	req, _ := http.NewRequest("GET", "/a/b/c", nil)
	rr := httptest.NewRecorder()
	plugin.ServeHTTP(rr, req)
	if got, want := rr.Code, 204; got != want {
		t.Fatalf("Unexpected response, got %d; want %d", got, want)
	}

	view.Unregister(v) // trigger exporting

	got := e.rowsForView("request_total")
	want := []*view.Row{
		{Data: &view.CountData{Value: 1}, Tags: []tag.Tag{{Key: ochttp.KeyServerRoute, Value: "/a/"}}},
	}
	if diff := cmp.Diff(got, want); diff != "" {
		t.Errorf("Unexpected view data exported, -got, +want: %s", diff)
	}
}

type testStatsExporter struct {
	vd []*view.Data
}

func (t *testStatsExporter) ExportView(d *view.Data) {
	t.vd = append(t.vd, d)
}

func (t *testStatsExporter) rowsForView(name string) []*view.Row {
	var rows []*view.Row
	for _, d := range t.vd {
		if d.View.Name == name {
			rows = append(rows, d.Rows...)
		}
	}
	return rows
}


text:
extern zend_class_entry *stub_exception_ce;

ZEPHIR_INIT_CLASS(Stub_Exception);

PHP_METHOD(Stub_Exception, testRuntimePropertyFetch);

ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_exception_testruntimepropertyfetch, 0, 0, 1)
	ZEND_ARG_TYPE_INFO(0, message, IS_STRING, 0)
ZEND_END_ARG_INFO()

ZEPHIR_INIT_FUNCS(stub_exception_method_entry) {
	PHP_ME(Stub_Exception, testRuntimePropertyFetch, arginfo_stub_exception_testruntimepropertyfetch, ZEND_ACC_PUBLIC)
	PHP_FE_END
};


text:
import java.util.Scanner;

public class Main {

	public static void main(String[] args) throws Throwable {
		// wmic command for diskdrive id: wmic DISKDRIVE GET SerialNumber
		// wmic command for cpu id : wmic cpu get ProcessorId
		Process process = Runtime.getRuntime().exec(new String[] { "wmic", "bios", "get", "serialnumber" });
		process.getOutputStream().close();
		Scanner sc = new Scanner(process.getInputStream());
		String property = sc.next();
		String serial = sc.next();
		System.out.println(property + ": " + serial);
	}

}


text:
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
  <component name="ChangeListManager">
    <list default="true" id="b9155677-ce72-42da-ba8b-baefb88c7a98" name="Default" comment="" />
    <ignored path="Cardiac-Coherencer.iws" />
    <ignored path=".idea/workspace.xml" />
    <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
    <option name="TRACKING_ENABLED" value="true" />
    <option name="SHOW_DIALOG" value="false" />
    <option name="HIGHLIGHT_CONFLICTS" value="true" />
    <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
    <option name="LAST_RESOLUTION" value="IGNORE" />
  </component>
  <component name="ChangesViewManager" flattened_view="true" show_ignored="false" />
  <component name="CreatePatchCommitExecutor">
    <option name="PATCH_PATH" value="" />
  </component>
  <component name="DaemonCodeAnalyzer">
    <disable_hints />
  </component>
  <component name="ExecutionTargetManager" SELECTED_TARGET="default_target" />
  <component name="FavoritesManager">
    <favorites_list name="Cardiac-Coherencer" />
  </component>
  <component name="JsGulpfileManager">
    <detection-done>true</detection-done>
  </component>
  <component name="ProjectFrameBounds">
    <option name="width" value="1366" />
    <option name="height" value="749" />
  </component>
  <component name="ProjectLevelVcsManager" settingsEditedManually="false">
    <OptionsSetting value="true" id="Add" />
    <OptionsSetting value="true" id="Remove" />
    <OptionsSetting value="true" id="Checkout" />
    <OptionsSetting value="true" id="Update" />
    <OptionsSetting value="true" id="Status" />
    <OptionsSetting value="true" id="Edit" />
    <ConfirmationsSetting value="0" id="Add" />
    <ConfirmationsSetting value="0" id="Remove" />
  </component>
  <component name="ProjectView">
    <navigator currentView="ProjectPane" proportions="" version="1">
      <flattenPackages />
      <showMembers />
      <showModules />
      <showLibraryContents />
      <hideEmptyPackages />
      <abbreviatePackageNames />
      <autoscrollToSource />
      <autoscrollFromSource />
      <sortByType />
    </navigator>
    <panes>
      <pane id="Scope" />
      <pane id="ProjectPane">
        <subPane>
          <PATH>
            <PATH_ELEMENT>
              <option name="myItemId" value="Cardiac-Coherencer" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
            </PATH_ELEMENT>
          </PATH>
          <PATH>
            <PATH_ELEMENT>
              <option name="myItemId" value="Cardiac-Coherencer" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
            </PATH_ELEMENT>
            <PATH_ELEMENT>
              <option name="myItemId" value="Cardiac-Coherencer" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
            </PATH_ELEMENT>
          </PATH>
        </subPane>
      </pane>
    </panes>
  </component>
  <component name="PropertiesComponent">
    <property name="WebServerToolWindowFactoryState" value="false" />
    <property name="last_opened_file_path" value="$PROJECT_DIR$" />
    <property name="HbShouldOpenHtmlAsHb" value="" />
    <property name="recentsLimit" value="5" />
    <property name="restartRequiresConfirmation" value="true" />
    <property name="options.splitter.main.proportions" value="0.3" />
    <property name="options.splitter.details.proportions" value="0.2" />
  </component>
  <component name="RunManager" selected="PhoneGap/Cordova.emulate">
    <configuration default="true" type="DartCommandLineRunConfigurationType" factoryName="Dart Command Line Application">
      <method />
    </configuration>
    <configuration default="true" type="DartUnitRunConfigurationType" factoryName="DartUnit">
      <method />
    </configuration>
    <configuration default="true" type="JavaScriptTestRunnerKarma" factoryName="Karma" config-file="">
      <envs />
      <method />
    </configuration>
    <configuration default="true" type="JSTestDriver:ConfigurationType" factoryName="JsTestDriver">
      <setting name="configLocationType" value="CONFIG_FILE" />
      <setting name="settingsFile" value="" />
      <setting name="serverType" value="INTERNAL" />
      <setting name="preferredDebugBrowser" value="Chrome" />
      <method />
    </configuration>
    <configuration default="true" type="JavascriptDebugType" factoryName="JavaScript Debug">
      <method />
    </configuration>
    <configuration default="true" type="PhoneGap" factoryName="PhoneGap/Cordova">
      <option name="myExecutable" />
      <option name="myWorkDir" />
      <option name="myCommand" />
      <option name="myPlatform" />
      <option name="myExtraArgs" />
      <option name="hasTarget" value="false" />
      <option name="target" />
      <method />
    </configuration>
    <configuration default="true" type="NodeJSConfigurationType" factoryName="Node.js" working-dir="">
      <method />
    </configuration>
    <configuration default="true" type="cucumber.js" factoryName="Cucumber.js">
      <option name="cucumberJsArguments" value="" />
      <option name="executablePath" />
      <option name="filePath" />
      <method />
    </configuration>
    <configuration default="true" type="js.build_tools.gulp" factoryName="Gulp.js">
      <node-options />
      <gulpfile />
      <tasks />
      <pass-parent-envs>true</pass-parent-envs>
      <envs />
      <method />
    </configuration>
    <configuration default="false" name="emulate" type="PhoneGap" factoryName="PhoneGap/Cordova">
      <option name="myExecutable" value="/usr/bin/phonegap" />
      <option name="myWorkDir" value="$PROJECT_DIR$" />
      <option name="myCommand" value="emulate" />
      <option name="myPlatform" value="android" />
      <option name="myExtraArgs" value="" />
      <option name="hasTarget" value="false" />
      <option name="target" value="" />
      <RunnerSettings RunnerId="Basic" />
      <ConfigurationWrapper RunnerId="Basic" />
      <method />
    </configuration>
    <list size="1">
      <item index="0" class="java.lang.String" itemvalue="PhoneGap/Cordova.emulate" />
    </list>
  </component>
  <component name="ShelveChangesManager" show_recycled="false" />
  <component name="SvnConfiguration">
    <configuration />
  </component>
  <component name="TaskManager">
    <task active="true" id="Default" summary="Default task">
      <changelist id="b9155677-ce72-42da-ba8b-baefb88c7a98" name="Default" comment="" />
      <created>1419271906503</created>
      <option name="number" value="Default" />
      <updated>1419271906503</updated>
    </task>
    <servers />
  </component>
  <component name="ToolWindowManager">
    <frame x="0" y="0" width="1366" height="749" extended-state="0" />
    <editor active="false" />
    <layout>
      <window_info id="Changes" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
      <window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
      <window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" />
      <window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
      <window_info id="Application Servers" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
      <window_info id="Project" active="true" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.2496329" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" />
      <window_info id="Favorites" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="2" side_tool="true" content_ui="tabs" />
      <window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="true" content_ui="tabs" />
      <window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
      <window_info id="Cvs" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="4" side_tool="false" content_ui="tabs" />
      <window_info id="Message" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
      <window_info id="Ant Build" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
      <window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
      <window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
      <window_info id="Messages" active="true" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.32980332" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
      <window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="SLIDING" type="SLIDING" visible="false" weight="0.4" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
      <window_info id="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="2" side_tool="false" content_ui="combo" />
      <window_info id="Inspection" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="5" side_tool="false" content_ui="tabs" />
      <window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
    </layout>
  </component>
  <component name="Vcs.Log.UiProperties">
    <option name="RECENTLY_FILTERED_USER_GROUPS">
      <collection />
    </option>
    <option name="RECENTLY_FILTERED_BRANCH_GROUPS">
      <collection />
    </option>
  </component>
  <component name="VcsContentAnnotationSettings">
    <option name="myLimit" value="2678400000" />
  </component>
  <component name="VcsManagerConfiguration">
    <option name="myTodoPanelSettings">
      <TodoPanelSettings />
    </option>
  </component>
  <component name="XDebuggerManager">
    <breakpoint-manager />
    <watches-manager />
  </component>
</project>


text:
#ifndef IO_MEMMAP_H
#define IO_MEMMAP_H

struct io_dev_connector;

int register_io_dev_memmap(const struct io_dev_connector **dev_con);

#endif /* IO_MEMMAP_H */


text:
using namespace clang;
using namespace ento;

namespace {
class SmartPtrModeling : public Checker<eval::Call> {
  bool isNullAfterMoveMethod(const CXXInstanceCall *Call) const;

public:
  bool evalCall(const CallExpr *CE, CheckerContext &C) const;
};
} // end of anonymous namespace

bool SmartPtrModeling::isNullAfterMoveMethod(
    const CXXInstanceCall *Call) const {
  // TODO: Update CallDescription to support anonymous calls?
  // TODO: Handle other methods, such as .get() or .release().
  // But once we do, we'd need a visitor to explain null dereferences
  // that are found via such modeling.
  const auto *CD = dyn_cast_or_null<CXXConversionDecl>(Call->getDecl());
  return CD && CD->getConversionType()->isBooleanType();
}

bool SmartPtrModeling::evalCall(const CallExpr *CE, CheckerContext &C) const {
  CallEventRef<> CallRef = C.getStateManager().getCallEventManager().getCall(
      CE, C.getState(), C.getLocationContext());
  const auto *Call = dyn_cast_or_null<CXXInstanceCall>(CallRef);
  if (!Call || !isNullAfterMoveMethod(Call))
    return false;

  ProgramStateRef State = C.getState();
  const MemRegion *ThisR = Call->getCXXThisVal().getAsRegion();

  if (!move::isMovedFrom(State, ThisR)) {
    // TODO: Model this case as well. At least, avoid invalidation of globals.
    return false;
  }

  // TODO: Add a note to bug reports describing this decision.
  C.addTransition(
      State->BindExpr(CE, C.getLocationContext(),
                      C.getSValBuilder().makeZeroVal(CE->getType())));
  return true;
}

void ento::registerSmartPtrModeling(CheckerManager &Mgr) {
  Mgr.registerChecker<SmartPtrModeling>();
}

bool ento::shouldRegisterSmartPtrModeling(const LangOptions &LO) {
  return LO.CPlusPlus;
}


text:
layout: docs
title: Configuration
permalink: /docs/configuration/
redirect_from:
  - /docs/editor/configuration/
---

Quill allows several ways to customize it to suit your needs. This section is dedicated to tweaking existing functionality. See the [Modules](/docs/modules/) section for adding new functionality and the [Themes](/docs/themes/) section for styling.

### Container

Quill requires a container where the editor will be appended. You can pass in either a CSS selector or a DOM object.

```javascript
var editor = new Quill('.editor');  // First matching element will be used
```

```javascript
var container = document.getElementById('editor');
var editor = new Quill(container);
```

```javascript
var container = $('.editor').get(0);
var editor = new Quill(container);
```

### Options

To configure Quill, pass in an options object:

```javascript
var options = {
  debug: 'info',
  modules: {
    toolbar: '#toolbar'
  },
  placeholder: 'Compose an epic...',
  readOnly: true,
  theme: 'snow'
};
var editor = new Quill('#editor', options);
```

The following keys are recognized:

#### bounds

Default: `document.body`

DOM Element or a CSS selector for a DOM Element, within which the editor's ui elements (i.e. tooltips, etc.) should be confined. Currently, it only considers left and right boundaries.

#### debug

Default: `warn`

Shortcut for [debug](/docs/api/#debug). Note `debug` is a static method and will affect other instances of Quill editors on the page. Only warning and error messages are enabled by default.

#### formats

Default: All formats

Whitelist of formats to allow in the editor. See [Formats](/docs/formats/) for a complete list.

#### modules

Collection of modules to include and respective options. See [Modules](/docs/modules/) for more information.

#### placeholder

Default: None

Placeholder text to show when editor is empty.

#### readOnly

Default: `false`

Whether to instantiate the editor to read-only mode.

#### scrollingContainer

Default: `null`

DOM Element or a CSS selector for a DOM Element, specifying which container has the scrollbars (i.e. `overflow-y: auto`), if is has been changed from the default `ql-editor` with custom CSS. Necessary to fix scroll jumping bugs when Quill is set to [auto grow](/playground/#autogrow) its height, and another ancestor container is responsible from the scrolling.

#### theme

Name of theme to use. The builtin options are "bubble" or "snow". An invalid or falsy value will load a default minimal theme. Note the theme's specific stylesheet still needs to be included manually. See [Themes](/docs/themes/) for more information.


text:
layout: narrow
tab: resources
title: Mesos-DNS Resources
---

# Resources for Mesos-DNS

Step-by-step tutorial on [deploying Mesos-DNS on a Mesosphere](http://mesosphere.github.io/mesos-dns/docs/tutorial-gce.html) cluster on Google Compute Platform.

You can also refer to the [documentation](http://mesosphere.com/docs/) for other Mesosphere projects.


text: Game Dev Coursework


text:
var express = require('express');

module.exports = (function() {

    'use strict';

    var api = express.Router();

    // add method to 'String'
    String.prototype.replaceAll = function(str1, str2, ignore) {
        return this.replace(new RegExp(str1.replace(/([\/\,\!\\\^\$\{\}\[\]\(\)\.\*\+\?\|\<\>\-\&])/g,"\\$&"),(ignore?"gi":"g")),(typeof(str2)=="string")?str2.replace(/\$/g,"$$$$"):str2);
    };

    /**********************************************************
    ** Converts strings and publishes to SMS through Twilio.com
    **********************************************************/
    api.route("/ascii-sms")

        .post(function(req, res) {

            var accountSid = '';
            var authToken = '';
            var client = require('twilio')(accountSid, authToken);

            // first line of text in message
            var str = "Hey... \n";
            // split is at new row position
            var arr = req.body.grid.split(',');

            // add line breaks to the end of each row
            for (var i = 0; i < arr.length; i++) {
                str += (arr[i] + "\n");
            }

            // unicode <space>
            str = str.replaceAll('o', '\u0020\u0020\u0020');
            // across most major mobile phone programs that I checked, N has consistently stayed the same width as three spaces.
            str = str.replaceAll('x', 'N');

            // send request to twilio
            client.messages.create({
                to: "+1" + req.body.to,
                from: "+1",
                body: str
            }, function(err, message) {

                if (!err) {
                    res.send("sending SMS");
                } else {
                    console.log(message, err);
                }

            });

        });

    /**********************************************************
    ** Route email messages from clients
    **********************************************************/
    api.route("/emailform")

        .post(function(req, res){

            // emailjs handles pop3 communication with gmail.
            var email = require("emailjs");
            var server = email.server.connect({
                user: "",
                password: "",
                host: "",
                ssl: true
            });

            // send the message and wait for callback details.
            server.send({
                text: 'message from ' + req.body.from + '\n\n' + req.body.message,
                from: 'webserver' + '<' + req.body.from + '>',
                to: '<sample@sample.com>',
                subject: 'message from ' + req.body.from
            },  function(err, message) {

                console.log(err || message);

                if(!err){
                    res.send('your email has been sent successfully');
                }
            });

        });

    return api;

})();


text:
#ifndef INCLUDE_PAGEMAP_H
#define INCLUDE_PAGEMAP_H

#include <mm/paging.h>
#include <stdbool.h>

/*
Maps a page with physical address paddr to the virtual address vaddr.
*/
void mmMapPage(uintptr_t vaddr, physPage_t paddr, pageFlags_t flags);

/*
Maps a large page with physical address paddr to the virtual address vaddr.
*/
void mmMapLargePage(uintptr_t vaddr, physPage_t paddr, pageFlags_t flags);

/*
Unmaps a page.
*/
void mmUnmapPage(uintptr_t vaddr);

/*
Finds a page entry and returns it
*/
physPage_t mmGetPageEntry(uintptr_t vaddr);

/*
Reserves a physical page in memory
*/
void mmSetPageFlags(uintptr_t vaddr, pageFlags_t flags);

/*
Unmaps and deallocates all mapped userspace pages belonging to the current process
*/
void mmUnmapUserspace(void);

/*
Creates an empty address space for usermode, with only kernel pages mapped
*/
uintptr_t mmCreateAddressSpace(void);

/*
Enable/disable write access
*/
void mmSetWritable(void *addr, size_t size, bool write);

#endif


text:
Conditions

                    <input type="checkbox" ng-model="dialogOptions.fieldset.condition.enabled"> Enable conditions

                    <select ng-model="dialogOptions.fieldset.condition.actionType">
                        <option value="Show">Show</option>
                        <option value="Hide">Hide</option>
                    </select>
                    this fieldset if
                    <select ng-model="dialogOptions.fieldset.condition.logicType">
                        <option value="All">All</option>
                        <option value="Any">Any</option>
                    </select>
                    of the following match:

                        <select ng-model="rule.field" ng-options="field.id as field.caption for field in dialogOptions.fields"></select>
                        <select ng-model="rule.operator">
                            <option value="Is">Is</option>
                            <option value="IsNot">IsNot</option>
                            <option value="GreaterThen">GreaterThen</option>
                            <option value="LessThen">LessThen</option>
                            <option value="Contains">Contains</option>
                            <option value="StartsWith">StartsWith</option>
                            <option value="EndsWith">EndsWith</option>
                        </select>
                        <input type="text" ng-model="rule.value" />

                        <select ng-model="dialogOptions.fieldset.condition.$newrule.field"
                                ng-options="field.id as field.caption for field in dialogOptions.fields">
                            <option value="">Choose field...</option>
                        </select>
                        <select ng-model="dialogOptions.fieldset.condition.$newrule.operator">
                            <option value="">Choose operator...</option>
                            <option value="Is">Is</option>
                            <option value="IsNot">IsNot</option>
                            <option value="GreaterThen">GreaterThen</option>
                            <option value="LessThen">LessThen</option>
                            <option value="Contains">Contains</option>
                            <option value="StartsWith">StartsWith</option>
                            <option value="EndsWith">EndsWith</option>
                        </select>
                        <input type="text" ng-model="dialogOptions.fieldset.condition.$newrule.value" placeholder="Enter a value" />

 New Condition

                    <localize key="general_ok" class="ng-isolate-scope ng-scope">Done</localize>


text:
<!DOCTYPE html>

    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>Management Consulting</title>

    <link href="http://fonts.googleapis.com/css?family=Open+Sans:400,300,300italic,700,800" rel="stylesheet" type="text/css">
    <link href="font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css">
    <link href="js/dropdown-menu/dropdown-menu.css" rel="stylesheet" type="text/css">
    <link href="bootstrap/css/bootstrap.min.css" rel="stylesheet" type="text/css">
    <link href="js/fancybox/jquery.fancybox.css" rel="stylesheet" type="text/css">
    <link href="js/audioplayer/audioplayer.css" rel="stylesheet" type="text/css">
    <link href="style.css" rel="stylesheet" type="text/css">

Jobs

Calendar

Directions

                            News

                            Events

                            Courses

                            Inner Pages

News Single Page

Events Single Page

Course Single Page

Gallery Single Page

News Stacked Page

Search Results Page

                                    Menu Test

Second Level 01

                                            Second Level 02

Third Level 01

Third Level 02

Third Level 03

Second Level 03

                            About Us

Full Width Page

Sidebar on Left

Formatting

School Leadership

Gallery

404 Error

                            Contact Us

                    <form action="#" id="top-searchform" method="get" role="search">

                            <input type="text" name="s" id="sitesearch" class="form-control" autocomplete="off" placeholder="Type in keyword(s) then hit Enter on keyboard" />

                    </form>

Home

About Us

Management Consulting

                                        Our aim is to ensure your business achieves the potential it's capable of. We have the knowhow and experience to offer advice to help you run your business more effectively.

                                        We are practiced in acting as a sounding board for management, bringing to the relationship
                                        years of experience in business operation. We can identify key performance indicators in
                                        your business, which will assist you with growth. We are able to check your business is as
                                        competitive, focused, and profitable as it can be. We then offer flexible strategies, designed
                                        to address the issues affecting your business. Let us give your business a health check.
                                        Take the practical advice we can give to ensure the continual success of your venture.

Select

News Archive

Tradition of School Events

Report Asocial Behaviour

Trends and Tips

Events Poll

School News

Jun 12, 2014

Megan Boyle flourishes at Boston University

Jun 10, 2014

Buntington Alum Marc Bloom Pens New Book

Jun 05, 2014

Cody Rotschild Enjoys Life in Montreal

                                            @MattDeamon Why it always has to be so complicated? Try to get it via this link mama.co/hpot Good luck mate!

                                      Follow us!

Useful links

Placement Exam Schedule

Superintendent's Hearing Audio

Budget Central

Job Opportunities - Application

College Acceptances as of May 12

School Contact

Buntington Public Schools

                                        19 Tower Avenue, Buntington Station
                                        New York, NY
                                        11506 USA

                                        Tel: 631-551-3678
                                        Fax: 631-551-3688

Flickr Stream

                        © 2015 Buntington Public Schools. All rights reserved.


text:
<!DOCTYPE html>

	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">

	<title>Gameforest - Responsive Gaming HTML Theme</title>

	<link rel="shortcut icon" href="img/favicon.ico">

	<link href="plugins/bootstrap/css/bootstrap.min.css" rel="stylesheet">
	<link href="css/style.css" rel="stylesheet">
	<link href="css/helpers.css" rel="stylesheet">

	<link href="plugins/font-awesome/css/font-awesome.min.css" rel="stylesheet">
	<link href="plugins/ionicons/css/ionicons.min.css" rel="stylesheet">
	<link href="plugins/animate/animate.min.css" rel="stylesheet">
	<link href="plugins/animate/animate.delay.css" rel="stylesheet">

						Home

Home - Mazagine

Home - Mazagine 2 soon

Home - Mazagine 3 soon

Home - Games

Home - Videos soon

						Games

Platforms

 All Platform

 Playstation 4

 Playstation 3

 Xbox One

 Xbox 360

 Steam

 Computer

										PC

Witcher 3 Limited Version

Nam id velit vitae nisi tempus blandit nec commodo est. Vivamus justo nunc, malesuada eu tellus vel, sollicitudin...

										PS4

Last of Us Remastered

Ullam feugiat, libero pharetra tempor pulvinar, eros purus faucibus augue, vel laoreet lorem elit fermentum...

Genres

Action

Adventure

FPS

Indie

Strategy

RPG

Simulation

						Blog

								 Blog Large

Archive

Sidebar

Single Post

								 Blog Medium

Archive

Sidebar

Single Post

								 Single Post

Blog Image Post

Blog Slideshow Post

Blog Video Post

Blog Music Post

 Masonry Blog

 Thumbnail Blog

						Pages

Default Examples

Games

Game Post

Reviews

Review Post

Videos

Videos Post

Contact

Initial Examples

Login

Register

Profile Page

Timeline

Full Width

Blank Page

404 Error

						Elements

Typography

 General Typography

 Blockquote

 Helper Classes

 Testimonials

 Grid Layouts

 Alert & Messages

 Labels & Badges

 Audio, Videos & Images

 Pagination & Pagers

Button & Icons

 General Buttons

 Social Buttons

 Glyphicons

 FontAwesome icons

 IonIcons

Components

 Media Objects

 Page headers

 Wells

Default Elements

 General Widgets

 Colored Widgets

 Thumbnails

 Accordion & Tabs

 Timeline

 Tables

 Progress Bars

 Panels

Forms & Info

 General Forms

 Form Layouts

 Modals

 Carousel Examples

 Charts & Countdowns

 Google Maps

Videos

Gallery

Contact

					 Nathan Drake

 Profile

 Likes 32

 Games

 Settings

 Sign Out

 You have 5 likes

 Alien Isolation

 Witcher 3 XBOX

 Last of Us

 Uncharted 4 PS4

 GTA 5 PC

View all likes

			<input type="text" class="form-control" placeholder="Type to search...">

Blog Medium & Sidebar

Home

Blog

Blog Medium

PC GAMES Awesome blog slideshow post

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas elit ante, congue sodales orci ac, ultrices pretium lectus. Maecenas lorem enim, dignissim sed lacus non, feugiat iaculis lorem. Integer eu aliquet diam.

 YAKUZI

 Dec 18, 2015

 0 Comments

PS4 Beautiful blog image post

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas elit ante, congue sodales orci ac, ultrices pretium lectus. Maecenas lorem enim, dignissim sed lacus non, feugiat iaculis lorem. Integer eu aliquet diam.

 YAKUZI

 Dec 18, 2015

 0 Comments

Music Lovely blog music post

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas elit ante, congue sodales orci ac, ultrices pretium lectus. Maecenas lorem enim, dignissim sed lacus non, feugiat iaculis lorem. Integer eu aliquet diam.

 YAKUZI

 Dec 18, 2015

 0 Comments

Movie Awesome blog video post

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas elit ante, congue sodales orci ac, ultrices pretium lectus. Maecenas lorem enim, dignissim sed lacus non, feugiat iaculis lorem. Integer eu aliquet diam.

 YAKUZI

 Dec 18, 2015

 0 Comments

«

1

2

3

4

5

»

							<input type="text" class="form-control input-lg" placeholder="Search...">

 Recent Posts

CD Projekt Red Studio

 September 15, 2015

Blood and Gore

 September 13, 2015

Warner Bros. Interactive

 September 12, 2015

Spike Chunsoft

 September 10, 2015

Spike Chunsoft

 September 10, 2015

Spike Chunsoft

 September 10, 2015

 Recent Tweets

About GameForest

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec pharetra mattis arcu, a congue leo malesuada eu. Nam nec mauris ut odio tristique varius et eu metus. Quisque massa purus, aliquet quis blandit et,

mollis sed lorem. Sed vel tincidunt elit. Phasellus at varius odio, sit amet fermentum mauris.

Categories

Playstation 4

XBOX ONE

PC

PS3

Gaming

Portfolio

Videos

Reviews

Email Newsletters

Subscribe to our newsletter and get notification when new games are available.

					<form method="post" class="margin-top-25 btn-inline">
						<input type="text" class="form-control form-inverse input-lg no-border no-shadow padding-right-40" placeholder="Email..." />
						<button type="submit" class="btn btn-link color-white margin-top-5"></button>
					</form>

				© 2015 GAMEFOREST. All rights reserved.


text:
namespace ams::util {
template <typename... T>
struct false_ : std::false_type {};

template <typename... T>
constexpr bool false_v = false_<T...>::value;
}  // namespace ams::util


text:
package org.apache.sling.jcr.contentloader.internal;

import java.io.InputStream;

import javax.jcr.RepositoryException;

/**
 * The ContentCreator
 * is used by the {@link ContentReader} to create the actual content.
 *
 * @since 2.0.4
 */
public interface ContentCreator {

    /**
     * Create a new node.
     * To add properties to this node, one of the createProperty() methods
     * should be called.
     * To add child nodes, this method should be called to create a new child node.
     * If all properties and child nodes have been added {@link #finishNode()} must be called.
     *
     * @param name The name of the node.
     * @param primaryNodeType The primary node type or null.
     * @param mixinNodeTypes The mixin node types or null.
     * @throws RepositoryException If anything goes wrong.
     */
    void createNode(String name,
                    String primaryNodeType,
                    String[] mixinNodeTypes)
    throws RepositoryException;

    /**
     * Indicates that a node is finished.
     * The parent node of the current node becomes the current node.
     * @throws RepositoryException
     */
    void finishNode()
    throws RepositoryException;

    /**
     * Create a new property to the current node.
     * @param name The property name.
     * @param propertyType The type of the property.
     * @param value The string value.
     * @throws RepositoryException
     */
    void createProperty(String name,
                        int    propertyType,
                        String value)
    throws RepositoryException;

    /**
     * Create a new multi value property to the current node.
     * @param name The property name.
     * @param propertyType The type of the property.
     * @param values The string values.
     * @throws RepositoryException
     */
    void createProperty(String name,
                        int    propertyType,
                        String[] values)
    throws RepositoryException;

    /**
     * Add a new property to the current node.
     * @param name The property name.
     * @param value The value.
     * @throws RepositoryException
     */
    void createProperty(String name,
                        Object value)
    throws RepositoryException;

    /**
     * Add a new multi value property to the current node.
     * @param name The property name.
     * @param propertyType The type of the property.
     * @param values The values.
     * @throws RepositoryException
     */
    void createProperty(String name,
                        Object[] values)
    throws RepositoryException;

    /**
     * Create a file and a resource node.
     * After the nodes have been created, the current node is the resource node.
     * So this method call should be followed by two calls to {@link #finishNode()}
     * to be on the same level as before the file creation.
     * @param name The name of the file node
     * @param data The data of the file
     * @param mimeType The mime type or null
     * @param lastModified The last modified or -1
     * @throws RepositoryException
     */
    void createFileAndResourceNode(String name,
                                   InputStream data,
                                   String      mimeType,
                                   long         lastModified)
    throws RepositoryException;

    /**
     * Switch the current node to the path (which must be relative
     * to the current node).
     * If the path does not exist and a node type is supplied,
     * the nodes are created with the given node type.
     * If the path does not exist and node type is null, false is
     * returned.
     * When the changes to the node are finished, {@link #finishNode()}
     * must be callsed.
     * @param subPath The relative path
     * @param newNodeType Node typ for newly created nodes.
     * @throws RepositoryException
     */
    boolean switchCurrentNode(String subPath, String newNodeType)
    throws RepositoryException;
}


text:
/**
 * DocuSign REST API
 * The DocuSign REST API provides you with a powerful, convenient, and simple Web services API for interacting with DocuSign.
 *
 * OpenAPI spec version: v2.1
 * Contact: devcenter@docusign.com
 *
 * NOTE: This class is auto generated. Do not edit the class manually and submit a new issue instead.
 *
 */

(function(root, factory) {
  if (typeof define === 'function' && define.amd) {
    // AMD. Register as an anonymous module.
    define(['ApiClient', 'model/BillingPlanPreview'], factory);
  } else if (typeof module === 'object' && module.exports) {
    // CommonJS-like environments that support module.exports, like Node.
    module.exports = factory(require('../ApiClient'), require('./BillingPlanPreview'));
  } else {
    // Browser globals (root is window)
    if (!root.Docusign) {
      root.Docusign = {};
    }
    root.Docusign.NewAccountSummary = factory(root.Docusign.ApiClient, root.Docusign.BillingPlanPreview);
  }
}(this, function(ApiClient, BillingPlanPreview) {
  'use strict';

  /**
   * The NewAccountSummary model module.
   * @module model/NewAccountSummary
   */

  /**
   * Constructs a new NewAccountSummary.
   * @alias module:model/NewAccountSummary
   * @class
   */
  var exports = function() {
    var _this = this;

  };

  /**
   * Constructs a NewAccountSummary from a plain JavaScript object, optionally creating a new instance.
   * Copies all relevant properties from data to obj if supplied or a new instance if not.
   * @param {Object} data The plain JavaScript object bearing properties of interest.
   * @param {module:model/NewAccountSummary} obj Optional instance to populate.
   * @return {module:model/NewAccountSummary} The populated NewAccountSummary instance.
   */
  exports.constructFromObject = function(data, obj) {
    if (data) {
      obj = obj || new exports();

      if (data.hasOwnProperty('accountId')) {
        obj['accountId'] = ApiClient.convertToType(data['accountId'], 'String');
      }
      if (data.hasOwnProperty('accountIdGuid')) {
        obj['accountIdGuid'] = ApiClient.convertToType(data['accountIdGuid'], 'String');
      }
      if (data.hasOwnProperty('accountName')) {
        obj['accountName'] = ApiClient.convertToType(data['accountName'], 'String');
      }
      if (data.hasOwnProperty('apiPassword')) {
        obj['apiPassword'] = ApiClient.convertToType(data['apiPassword'], 'String');
      }
      if (data.hasOwnProperty('baseUrl')) {
        obj['baseUrl'] = ApiClient.convertToType(data['baseUrl'], 'String');
      }
      if (data.hasOwnProperty('billingPlanPreview')) {
        obj['billingPlanPreview'] = BillingPlanPreview.constructFromObject(data['billingPlanPreview']);
      }
      if (data.hasOwnProperty('userId')) {
        obj['userId'] = ApiClient.convertToType(data['userId'], 'String');
      }
    }
    return obj;
  }

  /**
   * The account ID associated with the envelope.
   * @member {String} accountId
   */
  exports.prototype['accountId'] = undefined;
  /**
   * The GUID associated with the account ID.
   * @member {String} accountIdGuid
   */
  exports.prototype['accountIdGuid'] = undefined;
  /**
   * The account name for the new account.
   * @member {String} accountName
   */
  exports.prototype['accountName'] = undefined;
  /**
   * Contains a token that can be used for authentication in API calls instead of using the user name and password.
   * @member {String} apiPassword
   */
  exports.prototype['apiPassword'] = undefined;
  /**
   * The URL that should be used for successive calls to this account. It includes the protocal (https), the DocuSign server where the account is located, and the account number. Use this Url to make API calls against this account. Many of the API calls provide Uri's that are relative to this baseUrl.
   * @member {String} baseUrl
   */
  exports.prototype['baseUrl'] = undefined;
  /**
   * @member {module:model/BillingPlanPreview} billingPlanPreview
   */
  exports.prototype['billingPlanPreview'] = undefined;
  /**
   * Specifies the user ID of the new user.
   * @member {String} userId
   */
  exports.prototype['userId'] = undefined;

  return exports;
}));


text:
/* IBM_PROLOG_BEGIN_TAG                                                   */
/* This is an automatically generated prolog.                             */
/*                                                                        */
/* bos720 src/bos/usr/ccs/lib/libcflsh_block/cflsh_usfs_wrapper.h 1.1     */
/*                                                                        */
/* IBM Data Engine for NoSQL - Power Systems Edition User Library Project */
/*                                                                        */
/* Contributors Listed Below - COPYRIGHT 2015                             */
/* [+] International Business Machines Corp.                              */
/*                                                                        */
/*                                                                        */
/* 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.                         */
/*                                                                        */
/* IBM_PROLOG_END_TAG                                                     */
/* %Z%%M%       %I%  %W% %G% %U% */

/*
 * COMPONENT_NAME: (sysxcflashusfs) CAPI Flash user space file system library
 *
 * FUNCTIONS: Data structure used by library for its various internal
 *            operations.
 *
 * ORIGINS: 27
 *
 *                  -- (                            when
 * combined with the aggregated modules for this product)
 * OBJECT CODE ONLY SOURCE MATERIALS
 * (C) COPYRIGHT International Business Machines Corp. 2015
 * All Rights Reserved
 *
 * US Government Users Restricted Rights - Use, duplication or
 * disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
 */

#ifndef _H_CFLASH_USFS_WRAPPER
#define _H_CFLASH_USFS_WRAPPER

#ifndef _AIX
/************************************************************************/
/* Linux special internal DIR structure implementation.                 */
/* Linux hides the internals of this structure                          */
/* and wants it opaque. So for linux we will use                        */
/* our own internal implementation. There are only                      */
/* two key aspects we need to contain in this                           */
/* structure, the file descriptor and the offset                        */
/* in the directory.                                                    */
/************************************************************************/
typedef struct cflsh_usfs_DIR_s {
    int       dd_fd;       /* file descriptor of directory       */
    uint64_t  dd_blksize; /* This is the filesystems block size */
    uint64_t  dd_size;
    uint64_t  dd_loc;      /* logical offset in directory        */
    uint64_t  dd_curoff;   /* real offset in directory           */

} cflsh_usfs_DIR_t;

#endif /* !_AIX */

#define CFLSH_USFS_DISK_DELIMINATOR  ':'

#define MAX_NUM_CUSFS_WRAP_FDS 16

#define MAX_NUM_CUSFS_WRAP_FDS_HASH (MAX_NUM_CUSFS_WRAP_FDS-1)

#define CFLSH_USFS_WRAPPER_INITIAL_FD 512 /* Intial filedescriptor value */
					  /* used by this library        */

/************************************************************************/
/* cflsh_usfs_wrap_fd - The data structure file descriptors associated  */
/*                      with this userspace filesystem.                 */
/* .                                                                    */
/************************************************************************/
typedef struct cflsh_usfs_wrap_fd_s {
    struct cflsh_usfs_wrap_fd_s *prev;   /* Previous filesystem in list */
    struct cflsh_usfs_wrap_fd_s *next;   /* Next filesystem in list     */
    int   fd;                            /* file descriptor;            */
    int   usfs_fd;                       /* File descriptor used by USFS*/
} cflsh_usfs_wrap_fd_t;

/************************************************************************/
/* cusfs_gwrapper - Global wrapper library data structure per process   */
/************************************************************************/

typedef struct cusfs_gwrapper_s {
    int flags;                        /* Global flags for this chunk */

    cflsh_usfs_wrap_fd_t *fd_hash[MAX_NUM_CUSFS_WRAP_FDS];

//?? Not yet    cusfs_lock_t   lock;
} cusfs_gwrapper_t;

extern cusfs_gwrapper_t cusfs_gwrapper;

#endif /* _H_CFLASH_USFS_WRAPPER */


text:
/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package de.fatalix.book.importer;

import com.google.gson.Gson;
import de.fatalix.book.importer.old.BookEntry;
import java.io.File;
import java.io.IOException;

import java.nio.file.Files;
import java.nio.file.StandardOpenOption;

import java.util.Date;
import java.util.List;

import org.apache.solr.client.solrj.SolrServer;
import org.apache.solr.client.solrj.SolrServerException;
import org.apache.solr.client.solrj.response.QueryResponse;
import org.joda.time.DateTime;
import org.joda.time.DateTimeZone;
import org.joda.time.format.DateTimeFormat;

/**
 *
 * @author Fatalix
 */
public class BookExporterOld {
    public static void exportBooks(String solrURL, String solrCore, int batchSize, String exportPath) throws SolrServerException, IOException {
        File exportFolder = new File(exportPath);
        if(!exportFolder.isDirectory()) {
            throw new IOException(exportFolder.getAbsolutePath() + " is not a folder!");
        }

        SolrServer server = SolrHandler.createConnection(solrURL, solrCore);
        System.out.println("Connection established");
        Gson gson = new Gson();

        exportBatchWise(server, exportFolder, batchSize, 0, gson);
    }

    private static void exportBatchWise(SolrServer server, File exportFolder, int batchSize, int offset, Gson gson) throws SolrServerException, IOException {

        QueryResponse response = SolrHandler.searchSolrIndex(server, "*:*", batchSize, offset);
        List<BookEntry> bookEntries = response.getBeans(BookEntry.class);
        System.out.println("Retrieved " + (bookEntries.size() + offset) + " of " + response.getResults().getNumFound());
        for(BookEntry bookEntry : bookEntries) {
            String bookTitle = bookEntry.getTitle();
            bookTitle = bookTitle.replaceAll(":", " ");
            File bookFolder = new File(exportFolder, bookEntry.getAuthor() + "-" + bookTitle);
            bookFolder.mkdirs();
            if(bookEntry.getFile() != null && bookEntry.getCover() != null) {
                File bookData = new File(bookFolder, bookEntry.getAuthor() + "-" + bookTitle + ".mobi");
                Files.write(bookData.toPath(), bookEntry.getFile(), StandardOpenOption.CREATE_NEW);

                File coverData = new File(bookFolder, bookEntry.getAuthor() + "-" + bookTitle + ".jpg");
                Files.write(coverData.toPath(), bookEntry.getCover(), StandardOpenOption.CREATE_NEW);
                Date dreleaseDate = null;
                if (bookEntry.getReleaseDate()!=null) {
                    DateTime dtReleaseDate = DateTime.parse(bookEntry.getReleaseDate(), DateTimeFormat.forPattern("YYYY-MM-dd"));
                    dtReleaseDate = new DateTime(dtReleaseDate, DateTimeZone.UTC);
                    dreleaseDate = dtReleaseDate.toDate();
                }
                DateTime dtUploadDate = new DateTime(DateTimeZone.UTC);

                File metaDataFile = new File(bookFolder, bookEntry.getAuthor() + "-" + bookTitle + ".json");
                String[] viewed = {};
                BookMetaData metaData = new BookMetaData(bookEntry.getAuthor(), bookEntry.getTitle(), bookEntry.getIsbn(),
                                                        bookEntry.getPublisher(), bookEntry.getDescription(), bookEntry.getLanguage(),
                                                        dreleaseDate, bookEntry.getMimeType(),dtUploadDate.toDate(),viewed,bookEntry.getShared());
                gson.toJson(metaData);
                Files.write(metaDataFile.toPath(), gson.toJson(metaData).getBytes(), StandardOpenOption.CREATE_NEW);
            }

        }

        if(response.getResults().getNumFound() > offset) {
            exportBatchWise(server, exportFolder, batchSize, offset + batchSize, gson);
        }

    }
}


text:
<?php
/**
 * Used to render the footer of PMA's pages
 */

declare(strict_types=1);

namespace PhpMyAdmin;

use Traversable;
use function basename;
use function file_exists;
use function htmlspecialchars;
use function in_array;
use function is_array;
use function is_object;
use function json_encode;
use function json_last_error;
use function sprintf;
use function strlen;

/**
 * Class used to output the footer
 */
class Footer
{
    /**
     * Scripts instance
     *
     * @access private
     * @var Scripts
     */
    private $scripts;
    /**
     * Whether we are servicing an ajax request.
     *
     * @access private
     * @var bool
     */
    private $isAjax;
    /**
     * Whether to only close the BODY and HTML tags
     * or also include scripts, errors and links
     *
     * @access private
     * @var bool
     */
    private $isMinimal;
    /**
     * Whether to display anything
     *
     * @access private
     * @var bool
     */
    private $isEnabled;

    /** @var Relation */
    private $relation;

    /** @var Template */
    private $template;

    /**
     * Creates a new class instance
     */
    public function __construct()
    {
        global $dbi;

        $this->template = new Template();
        $this->isEnabled = true;
        $this->scripts = new Scripts();
        $this->isMinimal = false;
        $this->relation = new Relation($dbi);
    }

    /**
     * Returns the message for demo server to error messages
     */
    private function getDemoMessage(): string
    {
        $message = '' . __('phpMyAdmin Demo Server') . ': ';
        if (@file_exists(ROOT_PATH . 'revision-info.php')) {
            $revision = '';
            $fullrevision = '';
            $repobase = '';
            $repobranchbase = '';
            $branch = '';
            include ROOT_PATH . 'revision-info.php';
            $message .= sprintf(
                __('Currently running Git revision %1$s from the %2$s branch.'),
                ''
                . htmlspecialchars($revision) . '',
                ''
                . htmlspecialchars($branch) . ''
            );
        } else {
            $message .= __('Git information missing!');
        }

        return Message::notice($message)->getDisplay();
    }

    /**
     * Remove recursions and iterator objects from an object
     *
     * @param object|array $object Object to clean
     * @param array        $stack  Stack used to keep track of recursion,
     *                             need not be passed for the first time
     *
     * @return object Reference passed object
     */
    private static function removeRecursion(&$object, array $stack = [])
    {
        if ((is_object($object) || is_array($object)) && $object) {
            if ($object instanceof Traversable) {
                $object = '***ITERATOR***';
            } elseif (! in_array($object, $stack, true)) {
                $stack[] = $object;
                foreach ($object as &$subobject) {
                    self::removeRecursion($subobject, $stack);
                }
            } else {
                $object = '***RECURSION***';
            }
        }

        return $object;
    }

    /**
     * Renders the debug messages
     */
    public function getDebugMessage(): string
    {
        $retval = '\'null\'';
        if ($GLOBALS['cfg']['DBG']['sql']
            && empty($_REQUEST['no_debug'])
            && ! empty($_SESSION['debug'])
        ) {
            // Remove recursions and iterators from $_SESSION['debug']
            self::removeRecursion($_SESSION['debug']);

            $retval = json_encode($_SESSION['debug']);
            $_SESSION['debug'] = [];

            return json_last_error() ? '\'false\'' : $retval;
        }
        $_SESSION['debug'] = [];

        return $retval;
    }

    /**
     * Returns the url of the current page
     */
    public function getSelfUrl(): string
    {
        global $route, $db, $table, $server;

        $params = [];
        if (isset($route)) {
            $params['route'] = $route;
        }
        if (isset($db) && strlen($db) > 0) {
            $params['db'] = $db;
        }
        if (isset($table) && strlen($table) > 0) {
            $params['table'] = $table;
        }
        $params['server'] = $server;

        // needed for server privileges tabs
        if (isset($_GET['viewing_mode'])
            && in_array($_GET['viewing_mode'], ['server', 'db', 'table'])
        ) {
            $params['viewing_mode'] = $_GET['viewing_mode'];
        }
        /*
         * @todo    coming from /server/privileges, here $db is not set,
         *          add the following condition below when that is fixed
         *          && $_GET['checkprivsdb'] == $db
         */
        if (isset($_GET['checkprivsdb'])
        ) {
            $params['checkprivsdb'] = $_GET['checkprivsdb'];
        }
        /*
         * @todo    coming from /server/privileges, here $table is not set,
         *          add the following condition below when that is fixed
         *          && $_REQUEST['checkprivstable'] == $table
         */
        if (isset($_GET['checkprivstable'])
        ) {
            $params['checkprivstable'] = $_GET['checkprivstable'];
        }
        if (isset($_REQUEST['single_table'])
            && in_array($_REQUEST['single_table'], [true, false])
        ) {
            $params['single_table'] = $_REQUEST['single_table'];
        }

        return basename(Core::getenv('SCRIPT_NAME')) . Url::getCommonRaw($params);
    }

    /**
     * Renders the link to open a new page
     *
     * @param string $url The url of the page
     */
    private function getSelfLink(string $url): string
    {
        $retval  = '';
        $retval .= '
';
        $retval .= '';
        if (Util::showIcons('TabsMode')) {
            $retval .= Html\Generator::getImage(
                'window-new',
                __('Open new phpMyAdmin window')
            );
        } else {
            $retval .=  __('Open new phpMyAdmin window');
        }
        $retval .= '';
        $retval .= '
';

        return $retval;
    }

    /**
     * Renders the link to open a new page
     */
    public function getErrorMessages(): string
    {
        $retval = '';
        if ($GLOBALS['error_handler']->hasDisplayErrors()) {
            $retval .= $GLOBALS['error_handler']->getDispErrors();
        }

        /**
         * Report php errors
         */
        $GLOBALS['error_handler']->reportErrors();

        return $retval;
    }

    /**
     * Saves query in history
     */
    private function setHistory(): void
    {
        global $dbi;

        if (Core::isValid($_REQUEST['no_history'])
            || ! empty($GLOBALS['error_message'])
            || empty($GLOBALS['sql_query'])
            || ! isset($dbi)
            || ! $dbi->isConnected()
        ) {
            return;
        }

        $this->relation->setHistory(
            Core::ifSetOr($GLOBALS['db'], ''),
            Core::ifSetOr($GLOBALS['table'], ''),
            $GLOBALS['cfg']['Server']['user'],
            $GLOBALS['sql_query']
        );
    }

    /**
     * Disables the rendering of the footer
     */
    public function disable(): void
    {
        $this->isEnabled = false;
    }

    /**
     * Set the ajax flag to indicate whether
     * we are servicing an ajax request
     *
     * @param bool $isAjax Whether we are servicing an ajax request
     */
    public function setAjax(bool $isAjax): void
    {
        $this->isAjax = $isAjax;
    }

    /**
     * Turn on minimal display mode
     */
    public function setMinimal(): void
    {
        $this->isMinimal = true;
    }

    /**
     * Returns the Scripts object
     *
     * @return Scripts object
     */
    public function getScripts(): Scripts
    {
        return $this->scripts;
    }

    /**
     * Renders the footer
     */
    public function getDisplay(): string
    {
        $this->setHistory();
        if ($this->isEnabled) {
            if (! $this->isAjax && ! $this->isMinimal) {
                if (Core::getenv('SCRIPT_NAME')
                    && empty($_POST)
                    && ! $this->isAjax
                ) {
                    $url = $this->getSelfUrl();
                    $header = Response::getInstance()->getHeader();
                    $scripts = $header->getScripts()->getFiles();
                    $menuHash = $header->getMenu()->getHash();
                    // prime the client-side cache
                    $this->scripts->addCode(
                        sprintf(
                            'if (! (history && history.pushState)) '
                            . 'MicroHistory.primer = {'
                            . ' url: "%s",'
                            . ' scripts: %s,'
                            . ' menuHash: "%s"'
                            . '};',
                            Sanitize::escapeJsString($url),
                            json_encode($scripts),
                            Sanitize::escapeJsString($menuHash)
                        )
                    );
                }
                if (Core::getenv('SCRIPT_NAME')
                    && ! $this->isAjax
                ) {
                    $url = $this->getSelfUrl();
                    $selfLink = $this->getSelfLink($url);
                }
                $this->scripts->addCode(
                    'var debugSQLInfo = ' . $this->getDebugMessage() . ';'
                );

                $errorMessages = $this->getErrorMessages();
                $scripts = $this->scripts->getDisplay();

                if ($GLOBALS['cfg']['DBG']['demo']) {
                    $demoMessage = $this->getDemoMessage();
                }

                $footer = Config::renderFooter();
            }

            return $this->template->render('footer', [
                'is_ajax' => $this->isAjax,
                'is_minimal' => $this->isMinimal,
                'self_link' => $selfLink ?? '',
                'error_messages' => $errorMessages ?? '',
                'scripts' => $scripts ?? '',
                'is_demo' => $GLOBALS['cfg']['DBG']['demo'],
                'demo_message' => $demoMessage ?? '',
                'footer' => $footer ?? '',
            ]);
        }

        return '';
    }
}


text:
package com.topnews.android.gson;

/**
 * Created by dell on 2017/3/14.
 */

public class ShareIconInfo {

    public boolean isSelected;

    public int mIconId;       //图片Id

    public String des;        //描述信息
}


text:
package com.google.javascript.jscomp;

import com.google.common.collect.ImmutableSet;
import com.google.javascript.jscomp.NodeTraversal.AbstractNodeTypePruningCallback;
import com.google.javascript.rhino.Node;
import com.google.javascript.rhino.Token;

import junit.framework.TestCase;

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

/**
 * Tests for {@link NodeTraversal}.
 */
public class NodeTraversalTest extends TestCase {
  public void testPruningCallbackShouldTraverse1() {
    PruningCallback include =
      new PruningCallback(ImmutableSet.of(Token.SCRIPT, Token.VAR), true);

    assertTrue(include.shouldTraverse(null, new Node(Token.SCRIPT), null));
    assertTrue(include.shouldTraverse(null, new Node(Token.VAR), null));
    assertFalse(include.shouldTraverse(null, new Node(Token.NAME), null));
    assertFalse(include.shouldTraverse(null, new Node(Token.ADD), null));
  }

  public void testPruningCallbackShouldTraverse2() {
    PruningCallback include =
      new PruningCallback(ImmutableSet.of(Token.SCRIPT, Token.VAR), false);

    assertFalse(include.shouldTraverse(null, new Node(Token.SCRIPT), null));
    assertFalse(include.shouldTraverse(null, new Node(Token.VAR), null));
    assertTrue(include.shouldTraverse(null, new Node(Token.NAME), null));
    assertTrue(include.shouldTraverse(null, new Node(Token.ADD), null));
  }

  /**
   * Concrete implementation of AbstractPrunedCallback to test the
   * {@link AbstractNodeTypePruningCallback#shouldTraverse(NodeTraversal, Node, Node)}
   * method.
   */
  static class PruningCallback extends AbstractNodeTypePruningCallback {
    public PruningCallback(Set<Integer> nodeTypes, boolean include) {
      super(nodeTypes, include);
    }

    public void visit(NodeTraversal t, Node n, Node parent) {
      throw new UnsupportedOperationException();
    }
  }

  public void testReport() {
    final List<JSError> errors = new ArrayList<JSError>();

    Compiler compiler = new Compiler(new BasicErrorManager() {

      @Override public void report(CheckLevel level, JSError error) {
        errors.add(error);
      }

      @Override public void println(CheckLevel level, JSError error) {
      }

      @Override protected void printSummary() {
      }
    });
    compiler.initCompilerOptionsIfTesting();

    NodeTraversal t = new NodeTraversal(compiler, null);
    DiagnosticType dt = DiagnosticType.warning("FOO", "{0}, {1} - {2}");

    t.report(null, dt, "Foo", "Bar", "Hello");
    assertEquals(1, errors.size());
    assertEquals("Foo, Bar - Hello", errors.get(0).description);
  }

  public void testUnexpectedException() {
    final String TEST_EXCEPTION = "test me";

    NodeTraversal.Callback cb = new NodeTraversal.AbstractPostOrderCallback() {
      @Override
      public void visit(NodeTraversal t, Node n, Node parent) {
        throw new RuntimeException(TEST_EXCEPTION);
      }
    };

    Compiler compiler = new Compiler();
    NodeTraversal t = new NodeTraversal(compiler, cb);
    String code = "function foo() {}";
    Node tree = parse(compiler, code);

    try {
      t.traverse(tree);
      fail("Expected RuntimeException");
    } catch (RuntimeException e) {
      assertTrue(e.getMessage().startsWith(
          "INTERNAL COMPILER ERROR.\n" +
          "Please report this problem.\n" +
          "test me"));
    }
  }

  public void testGetScopeRoot() {
    Compiler compiler = new Compiler();
    NodeTraversal t = new NodeTraversal(compiler,
        new NodeTraversal.ScopedCallback() {

          @Override
          public void enterScope(NodeTraversal t) {
            Node root1 = t.getScopeRoot();
            Node root2 = t.getScope().getRootNode();
            assertEquals(root1, root2);
          }

          @Override
          public void exitScope(NodeTraversal t) {
          }

          @Override
          public boolean shouldTraverse(NodeTraversal t, Node n, Node parent) {
            return true;
          }

          @Override
          public void visit(NodeTraversal t, Node n, Node parent) {
          }
        }
    );

    String code = "" +
            "var a; " +
            "function foo() {" +
            "  var b" +
            "}";
    Node tree = parse(compiler, code);
    t.traverse(tree);
  }

  public void testGetCurrentNode() {
    Compiler compiler = new Compiler();
    ScopeCreator creator = new SyntacticScopeCreator(compiler);
    ExpectNodeOnEnterScope callback = new ExpectNodeOnEnterScope();
    NodeTraversal t = new NodeTraversal(compiler, callback, creator);

    String code = "" +
            "var a; " +
            "function foo() {" +
            "  var b;" +
            "}";

    Node tree = parse(compiler, code);
    Scope topScope = creator.createScope(tree, null);

    // Calling #traverseWithScope uses the given scope but starts traversal at
    // the given node.
    callback.expect(tree.getFirstChild(), tree);
    t.traverseWithScope(tree.getFirstChild(), topScope);
    callback.assertEntered();

    // Calling #traverse creates a new scope with the given node as the root.
    callback.expect(tree.getFirstChild(), tree.getFirstChild());
    t.traverse(tree.getFirstChild());
    callback.assertEntered();

    // Calling #traverseAtScope starts traversal from the scope's root.
    Node fn = tree.getFirstChild().getNext();
    Scope fnScope = creator.createScope(fn, topScope);
    callback.expect(fn, fn);
    t.traverseAtScope(fnScope);
    callback.assertEntered();
  }

  // Helper class used to test getCurrentNode
  private static class ExpectNodeOnEnterScope implements
      NodeTraversal.ScopedCallback {
    private Node node;
    private Node scopeRoot;
    private boolean entered = false;

    private void expect(Node node, Node scopeRoot) {
      this.node = node;
      this.scopeRoot = scopeRoot;
      entered = false;
    }

    private void assertEntered() {
      assertTrue(entered);
    }

    @Override
    public void enterScope(NodeTraversal t) {
      assertEquals(node, t.getCurrentNode());
      assertEquals(scopeRoot, t.getScopeRoot());
      entered = true;
    }

    @Override
    public void exitScope(NodeTraversal t) {
    }

    @Override
    public boolean shouldTraverse(NodeTraversal t, Node n, Node parent) {
      return true;
    }

    @Override
    public void visit(NodeTraversal t, Node n, Node parent) {
    }
  }

  private static Node parse(Compiler compiler, String js) {
    Node n = compiler.parseTestCode(js);
    assertEquals(0, compiler.getErrorCount());
    return n;
  }
}


text:
[travis-ci-badge]: https://travis-ci.org/jasonwhite/button-lua.svg?branch=master
[appveyor-badge]: https://ci.appveyor.com/api/projects/status/ytgd4d2uree1cb7h/branch/master?svg=true

# Lua Build Descriptions for Button

[![Build Status][travis-ci-badge]](https://travis-ci.org/jasonwhite/button-lua)
[![Build status][appveyor-badge]](https://ci.appveyor.com/project/jasonwhite/button-lua/branch/master)

A tool to generate build descriptions from Lua scripts that are suitable for
input to [Button][].

[Button]: https://github.com/jasonwhite/button

## Example

```lua
local cc = require "rules.cc"

cc.binary {
    name = "foobar",
    srcs = {"foo.c", "bar.c"},
}
```

If this script is named `BUILD.lua`, we can generate the low-level build
description by running

    button-lua BUILD.lua -o button.json

See also [BUILD.lua](/BUILD.lua) for this repository for a real-world example.

## Building it

### On Linux

You need Lua 5.2 or above installed. One of the following commands should do
that for you:

    sudo pacman -Sy lua
    sudo apt-get install lua5.2

Then, simply run:

    make

This will create a self-contained executable named `button-lua`.

### On Windows

Since Windows has no real package manager, we need to download Lua ourselves.
There is a PowerShell script to do that for you:

    powershell -ExecutionPolicy Bypass -File .\tools\get-lua.ps1

Then, build the Visual Studio 2015 solution:

    vs\vs2015\button-lua.sln

## License

[MIT License](/LICENSE.md)


text:
<?xml version="1.0" encoding="UTF-8"?>
<!--
 ~ Copyright (c) 2009-2010, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
 ~
 ~ Licensed under the Apache License, Version 2.0 (the "License");
 ~ you may not use this file except in compliance with the License.
 ~ You may obtain a copy of the License at
 ~
 ~      http://www.apache.org/licenses/LICENSE-2.0
 ~
 ~ Unless required by applicable law or agreed to in writing, software
 ~ distributed under the License is distributed on an "AS IS" BASIS,
 ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 ~ See the License for the specific language governing permissions and
 ~ limitations under the License.
-->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <parent>
        <groupId>org.wso2.carbon.apimgt</groupId>
        <artifactId>org.wso2.carbon.apimgt.usage</artifactId>
        <version>4.3.1-SNAPSHOT</version>
        <relativePath>../pom.xml</relativePath>
    </parent>

    <modelVersion>4.0.0</modelVersion>
    <packaging>bundle</packaging>
    <artifactId>org.wso2.carbon.apimgt.usage.client</artifactId>
    <name>WSO2 Carbon - API Management Usage Client</name>

    <dependencies>
        <dependency>
            <groupId>org.wso2.carbon.apimgt</groupId>
            <artifactId>org.wso2.carbon.apimgt.impl</artifactId>
        </dependency>
        <dependency>
            <groupId>org.wso2.carbon.apimgt</groupId>
            <artifactId>org.wso2.carbon.apimgt.usage.publisher</artifactId>
        </dependency>
        <dependency>
            <groupId>commons-lang.wso2</groupId>
            <artifactId>commons-lang</artifactId>
        </dependency>
        <dependency>
            <groupId>org.wso2.carbon.commons</groupId>
            <artifactId>org.wso2.carbon.application.mgt.stub</artifactId>
        </dependency>
    </dependencies>

    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.felix</groupId>
                <artifactId>maven-bundle-plugin</artifactId>
                <extensions>true</extensions>
                <configuration>
                    <instructions>
                        <Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>
                        <Bundle-Name>${project.artifactId}</Bundle-Name>
                        <Export-Package>
                            !org.wso2.carbon.apimgt.usage.client.internal,
                            org.wso2.carbon.apimgt.usage.client.*;version="${carbon.apimgt.version}"
                        </Export-Package>
                        <Private-Package>
                            org.wso2.carbon.apimgt.usage.client.internal,
                        </Private-Package>
                        <Import-Package>
                            org.wso2.carbon.bam.presentation.*;version="${carbon.platform.package.import.version.range}",
                            javax.servlet;version="${javax.servlet.imp.pkg.version}",
                            javax.servlet.http;version="${javax.servlet.imp.pkg.version}",
                            javax.servlet.resources;version="${javax.servlet.imp.pkg.version}",
                            org.eclipse.equinox.http.helper,
                            *;resolution:=optional
                        </Import-Package>
                    </instructions>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.apache.felix</groupId>
                <artifactId>maven-scr-plugin</artifactId>
                <executions>
                    <execution>
                        <id>generate-scr-scrdescriptor</id>
                        <goals>
                            <goal>scr</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>
</project>


text:
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="google" value="notranslate" />
<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" />
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Expires" content="0" />

<link href="/static/bootstrap/css/bootstrap.css" rel="stylesheet" media="screen">

<link rel="stylesheet" href="/static/mfd/CodeMirror/lib/codemirror.css" type="text/css"/>
<link rel="stylesheet" href="/static/mfd/CodeMirror/theme/default.css" type="text/css"/>
<link rel="stylesheet" href="/static/css/start-1.8.9/jquery-ui-1.8.9.custom.css" />

Solution Server settings

    <form method="post">
        <textarea id="settings" name="settings">{{settings}}</textarea>
        <button type="submit" class="btn btn-primary">Save</button>
    </form>


text:
from __future__ import print_function

import json
import optparse
import os.path
import sys

from load_db import create_table

from query_db import describe_tables, get_connection, run_query

"""
JSON config:
{ tables : [
    { file_path : '/home/galaxy/dataset_101.dat',
            table_name : 't1',
            column_names : ['c1','c2','c3'],
            pkey_autoincr : 'id'
            comment_lines : 1
            unique: ['c1'],
            index: ['c2', 'c3']
    },
    { file_path : '/home/galaxy/dataset_102.dat',
            table_name : 'gff',
            column_names : ['seqname',,'date','start','end']
            comment_lines : 1
            load_named_columns : True
            filters : [{'filter': 'regex', 'pattern': '#peptide',
                        'action': 'exclude_match'},
                       {'filter': 'replace', 'column': 3,
                        'replace': 'gi[|]', 'pattern': ''}]
    },
    { file_path : '/home/galaxy/dataset_103.dat',
            table_name : 'test',
            column_names : ['c1', 'c2', 'c3']
    }
    ]
}
"""

def __main__():
    # Parse Command Line
    parser = optparse.OptionParser()
    parser.add_option('-s', '--sqlitedb', dest='sqlitedb', default=None,
                      help='The SQLite Database')
    parser.add_option('-j', '--jsonfile', dest='jsonfile', default=None,
                      help='JSON dict of table specifications')
    parser.add_option('-q', '--query', dest='query', default=None,
                      help='SQL query')
    parser.add_option('-Q', '--query_file', dest='query_file', default=None,
                      help='SQL query file')
    parser.add_option('-n', '--no_header', dest='no_header', default=False,
                      action='store_true',
                      help='Include a column headers line')
    parser.add_option('-o', '--output', dest='output', default=None,
                      help='Output file for query results')
    (options, args) = parser.parse_args()

    # determine output destination
    if options.output is not None:
        try:
            outputPath = os.path.abspath(options.output)
            outputFile = open(outputPath, 'w')
        except Exception as e:
            exit('Error: %s' % (e))
    else:
        outputFile = sys.stdout

    def _create_table(ti, table):
        path = table['file_path']
        table_name =\
            table['table_name'] if 'table_name' in table else 't%d' % (ti + 1)
        comment_lines =\
            table['comment_lines'] if 'comment_lines' in table else 0
        comment_char =\
            table['comment_char'] if 'comment_char' in table else None
        column_names =\
            table['column_names'] if 'column_names' in table else None
        if column_names:
            load_named_columns =\
                table['load_named_columns']\
                if 'load_named_columns' in table else False
        else:
            load_named_columns = False
        unique_indexes = table['unique'] if 'unique' in table else []
        indexes = table['index'] if 'index' in table else []
        filters = table['filters'] if 'filters' in table else None
        pkey_autoincr = \
            table['pkey_autoincr'] if 'pkey_autoincr' in table else None
        create_table(get_connection(options.sqlitedb), path, table_name,
                     pkey_autoincr=pkey_autoincr,
                     column_names=column_names,
                     skip=comment_lines,
                     comment_char=comment_char,
                     load_named_columns=load_named_columns,
                     filters=filters,
                     unique_indexes=unique_indexes,
                     indexes=indexes)

    if options.jsonfile:
        try:
            with open(options.jsonfile) as fh:
                tdef = json.load(fh)
                if 'tables' in tdef:
                    for ti, table in enumerate(tdef['tables']):
                        _create_table(ti, table)
        except Exception as e:
            exit('Error: %s' % (e))

    query = None
    if options.query_file is not None:
        with open(options.query_file, 'r') as fh:
            query = ''
            for line in fh:
                query += line
    elif options.query is not None:
        query = options.query

    if query is None:
        try:
            describe_tables(get_connection(options.sqlitedb), outputFile)
        except Exception as e:
            exit('Error: %s' % (e))
    else:
        try:
            run_query(get_connection(options.sqlitedb), query, outputFile,
                      no_header=options.no_header)
        except Exception as e:
            exit('Error: %s' % (e))

if __name__ == "__main__":
    __main__()


text:
package org.scaladebugger.test.exceptions

class CustomException extends Throwable


text:
package io.underscore

import scala.language.implicitConversions

package object validation extends Validators with ValidationResultImplicits with ValidationPathImplicits {
  implicit class ValidatableOps[A : Validator](in: A) {
    def validate = implicitly[Validator[A]] apply in withValue in
  }

  implicit def functionToValidator[A](func: A => Seq[ValidationResult]): Validator[A] =
    Validator[A] { in => func(in) }
}