text:
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

#nullable enable

using Microsoft.CodeAnalysis.CSharp.Symbols;
using Microsoft.CodeAnalysis.CSharp.Syntax;
using Microsoft.CodeAnalysis.Text;

namespace Microsoft.CodeAnalysis.CSharp.Syntax
{
    public partial class NamespaceDeclarationSyntax
    {
        internal new InternalSyntax.NamespaceDeclarationSyntax Green
        {
            get
            {
                return (InternalSyntax.NamespaceDeclarationSyntax)base.Green;
            }
        }

        public NamespaceDeclarationSyntax Update(SyntaxToken namespaceKeyword, NameSyntax name, SyntaxToken openBraceToken, SyntaxList<ExternAliasDirectiveSyntax> externs, SyntaxList<UsingDirectiveSyntax> usings, SyntaxList<MemberDeclarationSyntax> members, SyntaxToken closeBraceToken, SyntaxToken semicolonToken)
            => this.Update(this.AttributeLists, this.Modifiers, namespaceKeyword, name, openBraceToken, externs, usings, members, closeBraceToken, semicolonToken);
    }
}


text:
.class public interface abstract Lcom/android/internal/os/BatteryStatsImpl$ExternalStatsSync;
.super Ljava/lang/Object;
.source "BatteryStatsImpl.java"

# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/android/internal/os/BatteryStatsImpl;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x609
    name = "ExternalStatsSync"
.end annotation

# virtual methods
.method public abstract scheduleCpuSyncDueToRemovedUid(I)V
.end method

.method public abstract scheduleSync(Ljava/lang/String;)V
.end method

.method public abstract scheduleWifiSync(Ljava/lang/String;)V
.end method

redpajama_set_name: RedPajamaGithub


text:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>V8 API Reference Guide for node.js v8.5.0: v8_inspector::V8Inspector Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>

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

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

V8 API Reference Guide for node.js v8.5.0

Main Page

Namespaces

Classes

Files

Examples

          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)"
               onblur="searchBox.OnSearchFieldFocus(false)"
               onkeyup="searchBox.OnSearchFieldChange(event)"/>

Class List

Class Index

Class Hierarchy

Class Members

v8_inspector

V8Inspector

Classes |
Public Member Functions |
Static Public Member Functions |
List of all members

v8_inspector::V8Inspector Class Referenceabstract

Classes

class  	Channel

Public Member Functions

virtual void 	contextCreated (const V8ContextInfo &)=0

virtual void 	contextDestroyed (v8::Local< v8::Context >)=0

virtual void 	resetContextGroup (int contextGroupId)=0

virtual void 	idleStarted ()=0

virtual void 	idleFinished ()=0

virtual void 	asyncTaskScheduled (const StringView &taskName, void *task, bool recurring)=0

virtual void 	asyncTaskCanceled (void *task)=0

virtual void 	asyncTaskStarted (void *task)=0

virtual void 	asyncTaskFinished (void *task)=0

virtual void 	allAsyncTasksCanceled ()=0

virtual unsigned 	exceptionThrown (v8::Local< v8::Context >, const StringView &message, v8::Local< v8::Value > exception, const StringView &detailedMessage, const StringView &url, unsigned lineNumber, unsigned columnNumber, std::unique_ptr< V8StackTrace >, int scriptId)=0

virtual void 	exceptionRevoked (v8::Local< v8::Context >, unsigned exceptionId, const StringView &message)=0

virtual std::unique_ptr< V8InspectorSession > 	connect (int contextGroupId, Channel *, const StringView &state)=0

virtual std::unique_ptr< V8StackTrace > 	createStackTrace (v8::Local< v8::StackTrace >)=0

virtual std::unique_ptr< V8StackTrace > 	captureStackTrace (bool fullStack)=0

Static Public Member Functions

static std::unique_ptr< V8Inspector > 	create (v8::Isolate *, V8InspectorClient *)

The documentation for this class was generated from the following file:

deps/v8/include/v8-inspector.h

<address class="footer">
Generated by

 1.8.11
</address>


text:
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:id="@+id/basic_item_layout"
    android:orientation="vertical" >

  <RelativeLayout
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:id="@+id/list_Item_layout"
    android:background="#f2f2f2"
    >

    <TextView
        android:id="@+id/lblListHead"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:layout_toRightOf="@+id/expand_colapse"
        android:layout_marginLeft="20dp"
        android:paddingLeft="10dp"
        android:paddingTop="10dp"
        android:paddingBottom="5dp"
        android:text="listitem"
         android:textColor="#F76950"
        android:textSize="18sp" />

<!--     <TextView
        android:id="@+id/listItemInfo"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:layout_below="@id/lblListItem"
        android:layout_toRightOf="@+id/expand_colapse"
        android:paddingBottom="5dp"
        android:paddingLeft="8dp"
        android:paddingRight="20dp"
        android:text="info"
        android:textSize="15sp" /> -->

 <!--    <ToggleButton
        android:id="@+id/expand_colapse"
        android:layout_width="30dp"
        android:layout_height="30dp"
        android:layout_alignParentLeft="true"
        android:layout_centerVertical="true"
        android:background="@drawable/togglearrow"
        android:focusable="false"
        android:focusableInTouchMode="false"
        android:textOff=""
        android:textOn="" /> -->

   </RelativeLayout>

</RelativeLayout>


text:
/* Jeremiah Peschka
   <jpeschka@pdx.edu>

   Implements a string-like class with convenient functions for working
   with strings of characters, rather than using char arrays.

   Strings are initialized with a capacity. When a string is about to
   grow beyond its initial capacity, the capacity is double. While
   large capacities waste memory, they prevent potentially expensive
   growth and reallocation. Conversely, small capacities save memory
   but cause additional re-allocations as the string grows.

   **N.B.** Throughout the documentation for this class, `string` is
            substituted for `jpstring` for two reasons.
            1) it's easier to type
            2) it doesn't upset the spellchecker in emacs
 */

#include <cstring>
#include <iostream>
#include <sstream>
#include "slist.h"

#ifndef JPSTRING
#define JPSTRING

class jpstring {
 public:
  /* Creates a string with the specified initial capacity. */
  jpstring(int initial_size = DEFAULT_CAPACITY);

  /* Copy constructor */
  jpstring(const jpstring& rhs);

  /* Creates a string from a char array.

     Even if initial_size is smaller than chars, the process of appending
     chars into the current string will grow the capacity.
   */
  jpstring(const char* chars, int initial_size = DEFAULT_CAPACITY);

  /* Tears down this string and all associated resources. */
  ~jpstring();

  /* Converts this string to a char* */
  operator char*();
  operator const char*();

  /* Equality operator overloads.

     These require both sides of the comparison to contain the same
     characters.
   */
  bool operator==(const jpstring& rhs) const;
  bool operator==(const char* rhs) const;

  /* Inequality overloads.

     These require the strings to be not ==.
     Internally, they implement this through using a !(a == b).
   */
  bool operator!=(const jpstring& rhs) const;
  bool operator!=(const char* rhs) const;

  /* Less than overload

     Returns true if rhs sorts after this string lexicographically.
     Behavior-wise, this is the same as `RCMP(a, b) < 0`.
   */
  bool operator<(const jpstring& rhs) const;
  bool operator<(const char* rhs) const;

  /* Less than or equal overload

     Returns true if rhs sorts after or equivalent to this string,
     lexicographically. Behavior-wise, this is the same as
     `strcmp(a, b) <= 0`.
   */
  bool operator<=(const jpstring& rhs) const;
  bool operator<=(const char* rhs) const;

  /* Greater than operator overload

     Returns true if rhs sorts before this string.
     Behavior-wise, this is the same as `strcmp(a, b) > 0`.
   */
  bool operator>(const jpstring& rhs) const;
  bool operator>(const char* rhs) const;

  /* Greater than or equal operator overload.

     Returns true if rhs sorts before or equal to this string.
     Behavior-wise, this is the same as `strmcp(a, b) >= 0`.
   */
  bool operator>=(const jpstring& rhs) const;
  bool operator>=(const char* rhs) const;

  /* Assignment operator overload.

     Allows the user to either set this string equal to another string
     or equal to a char*.
   */
  jpstring& operator=(const jpstring& rhs);
  jpstring& operator=(const char* rhs);

  /* += operator overload

     This allows the user to append other strings to this one.

     If a larger number of strings are being appended, consider using
     the `stringbuilder` instead.
   */
  jpstring& operator+=(const jpstring& rhs);
  jpstring& operator+=(const char* rhs);
  jpstring& operator+=(const jpstring* rhs);

  /* Addition operator overloading

     Each explicit overload allows the user to append additional data
     to this string.
   */
  jpstring operator+(const jpstring& rhs);
  jpstring operator+(const char* rhs);
  jpstring operator+(const int rhs);
  jpstring operator+(const double rhs);

  /* Splits this string into a list of strings.

     The default split will split on a space and takes the null
     terminator to be the end of string for split purposes.

     The `eol` parameter is necessary because this string uses a
     c-string as the representation of the string.
   */
  slist<jpstring>* split(char delimiter = ' ', char eol = '\0');

  /* Overloads allowing the stream operator to be used with a string */
  friend std::ostream& operator<<(std::ostream& out, const jpstring& rhs);
  friend std::istream& operator>>(std::istream& in, jpstring& rhs);

  /* Returns the current length of the string. */
  int length() const;

  /* Returns the capacity of this string. */
  int size() const;

 private:
  /* A convenience method provided for comparison operations. */
  bool equals(const char* rhs) const;

  /* Converts this string into a c-string */
  char* to_cstring() const;

  /* Grows this string's capacity to the minimum length

     Contents are preserved as the string is grown. Any resources that
     need to be released will be released and destroyed as a result of
     the grow operation.
   */
  void grow_chars(int minimum_lenghth);

  /* Appends characters to the end of the string.

     If the string is not long enough to contain the new characters,
     `capacity` is doubled and then `grow_chars` is called with the
     new string.
   */
  void append(const char* chars);

  /* capacity contains the maximum size of chars.

     chars is allocated as `new char[capacity]`
   */
  int capacity;

  /* char_length holds the current number of characters in `chars` */
  int char_length;

  /* The characters contained in this string */
  char* chars;

  /* The default capacity of a string */
  const static int DEFAULT_CAPACITY = 16;

  /* Sizing for internal buffers used in >> and split */
  const static int BUFFER_SIZE = 140;
};

#endif


text:
package org.apache.hive.service.server;

import org.apache.hadoop.hive.conf.HiveConf;
import org.apache.hadoop.hive.conf.HiveConf.ConfVars;
import org.apache.hadoop.hive.metastore.MetaStoreTestUtils;
import org.apache.hive.http.security.PamAuthenticator;
import org.apache.hive.http.security.PamUserIdentity;
import org.apache.http.client.methods.CloseableHttpResponse;
import org.apache.http.client.methods.HttpGet;
import org.apache.http.impl.client.CloseableHttpClient;
import org.apache.http.impl.client.HttpClients;
import org.eclipse.jetty.http.HttpHeader;
import org.eclipse.jetty.server.UserIdentity;
import org.eclipse.jetty.util.B64Code;
import org.eclipse.jetty.util.StringUtil;
import org.junit.AfterClass;
import org.junit.Assert;
import org.junit.BeforeClass;
import org.junit.Test;

import javax.security.sasl.AuthenticationException;
import java.io.BufferedInputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.net.HttpURLConnection;
import java.net.URL;
import java.security.KeyStore;
import java.security.KeyStoreException;
import java.security.NoSuchAlgorithmException;
import java.security.cert.Certificate;
import java.security.cert.CertificateException;
import java.security.cert.CertificateFactory;
import java.util.HashMap;
import java.util.Map;

/**
 * TestHS2HttpServerPam -- executes tests of HiveServer2 HTTP Server for Pam authentication
 */
public class TestHS2HttpServerPam {

  private static HiveServer2 hiveServer2 = null;
  private static HiveConf hiveConf = null;
  private static String metastorePasswd = "693efe9fa425ad21886d73a0fa3fbc70"; //random md5
  private static Integer webUIPort = null;
  private static String host = "localhost";

  @BeforeClass
  public static void beforeTests() throws Exception {
    webUIPort =
        MetaStoreTestUtils.findFreePortExcepting(Integer.valueOf(ConfVars.HIVE_SERVER2_WEBUI_PORT.getDefaultValue()));
    hiveConf = new HiveConf();
    hiveConf.setBoolVar(ConfVars.HIVE_IN_TEST, true);
    hiveConf.set(ConfVars.METASTOREPWD.varname, metastorePasswd);
    hiveConf.set(ConfVars.HIVE_SERVER2_WEBUI_PORT.varname, webUIPort.toString());
    hiveConf.setVar(HiveConf.ConfVars.HIVE_AUTHORIZATION_MANAGER,
        "org.apache.hadoop.hive.ql.security.authorization.plugin.sqlstd.SQLStdHiveAuthorizerFactory");
    hiveConf.setVar(HiveConf.ConfVars.HIVE_SERVER2_PAM_SERVICES, "sshd");
    hiveConf.setBoolVar(ConfVars.HIVE_SERVER2_WEBUI_USE_PAM, true);
    hiveConf.setBoolVar(ConfVars.HIVE_IN_TEST, true);
    hiveServer2 = new HiveServer2(new TestPamAuthenticator(hiveConf));
    hiveServer2.init(hiveConf);
    hiveServer2.start();
    Thread.sleep(5000);
  }

  @Test
  public void testUnauthorizedConnection() throws Exception {
    String baseURL = "http://" + host + ":" + webUIPort + "/stacks";
    URL url = new URL(baseURL);
    HttpURLConnection conn = (HttpURLConnection) url.openConnection();
    Assert.assertEquals(HttpURLConnection.HTTP_UNAUTHORIZED, conn.getResponseCode());
  }

  @Test
  public void testAuthorizedConnection() throws Exception {
    CloseableHttpClient httpclient = null;
    try {
      String username = "user1";
      String password = "1";
      httpclient = HttpClients.createDefault();

      HttpGet httpGet = new HttpGet("http://" + host + ":" + webUIPort);
      String authB64Code = B64Code.encode(username + ":" + password, StringUtil.__ISO_8859_1);
      httpGet.setHeader(HttpHeader.AUTHORIZATION.asString(), "Basic " + authB64Code);
      CloseableHttpResponse response = httpclient.execute(httpGet);
      Assert.assertTrue(response.toString().contains(Integer.toString(HttpURLConnection.HTTP_OK)));

    } finally {
      if (httpclient != null) {
        httpclient.close();
      }
    }
  }

  @Test
  public void testIncorrectUser() throws Exception {
    CloseableHttpClient httpclient = null;
    try {
      String username = "nouser";
      String password = "aaaa";
      httpclient = HttpClients.createDefault();

      HttpGet httpGet = new HttpGet("http://" + host + ":" + webUIPort);
      String authB64Code = B64Code.encode(username + ":" + password, StringUtil.__ISO_8859_1);
      httpGet.setHeader(HttpHeader.AUTHORIZATION.asString(), "Basic " + authB64Code);
      CloseableHttpResponse response = httpclient.execute(httpGet);
      Assert.assertTrue(response.toString().contains(Integer.toString(HttpURLConnection.HTTP_UNAUTHORIZED)));

    } finally {
      if (httpclient != null) {
        httpclient.close();
      }
    }
  }

  @Test
  public void testIncorrectPassword() throws Exception {
    CloseableHttpClient httpclient = null;
    try {
      String username = "user1";
      String password = "aaaa";
      httpclient = HttpClients.createDefault();

      HttpGet httpGet = new HttpGet("http://" + host + ":" + webUIPort);
      String authB64Code = B64Code.encode(username + ":" + password, StringUtil.__ISO_8859_1);
      httpGet.setHeader(HttpHeader.AUTHORIZATION.asString(), "Basic " + authB64Code);
      CloseableHttpResponse response = httpclient.execute(httpGet);
      Assert.assertTrue(response.toString().contains(Integer.toString(HttpURLConnection.HTTP_UNAUTHORIZED)));

    } finally {
      if (httpclient != null) {
        httpclient.close();
      }
    }
  }

  public static class TestPamAuthenticator extends PamAuthenticator {
    private static final Map<String, String> users = new HashMap<>();

    public TestPamAuthenticator(HiveConf conf) throws AuthenticationException {
      super(conf);
    }

    static {
      users.put("user1", "1");
      users.put("user2", "2");
      users.put("user3", "3");
      users.put("user4", "4");
    }

    @Override protected UserIdentity login(String username, String password) {
      if (users.containsKey(username)) {
        if (users.get(username).equals(password)) {
          return new PamUserIdentity(username);
        }
      }
      return null;
    }
  }

  @AfterClass public static void afterTests() {
    hiveServer2.stop();
  }
}


text:
layout: page
title: Fire Air Trade Fair
date: 2016-05-24
author: Scott Glass
tags: weekly links, java
status: published
summary: Quisque eget porta diam. Aliquam metus quam, tempor id.
banner: images/banner/meeting-01.jpg
booking:
  startDate: 06/14/2017
  endDate: 06/19/2017
  ctyhocn: WBGCLHX
  groupCode: FATF
published: true
---
Duis pulvinar eget lorem quis maximus. Nullam auctor mauris mattis velit mattis suscipit. Vivamus porttitor tortor orci, id pharetra felis tempor ac. Mauris condimentum scelerisque neque vitae dapibus. Cras id mollis nulla. Morbi sed purus semper risus ultrices commodo. Etiam et velit neque. Integer a blandit quam. Nam id dictum orci, sed rutrum justo. Aliquam sit amet aliquet nulla. Aliquam elementum auctor placerat. Mauris vehicula, ligula auctor interdum accumsan, justo justo porta diam, eu laoreet lectus justo id sem. Pellentesque condimentum imperdiet mauris, non scelerisque ante facilisis nec.
Ut sit amet leo diam. In ultrices venenatis dolor. Nunc bibendum a nisl efficitur dictum. Nam et ipsum sit amet ex egestas suscipit ut et urna. In hac habitasse platea dictumst. Integer dapibus purus at dolor blandit accumsan. Maecenas ac ante pulvinar neque bibendum lobortis a et ipsum. Nulla facilisi. Nulla a nibh commodo, elementum massa lobortis, venenatis odio.

* Proin eu dui congue, imperdiet nibh accumsan, rhoncus neque
* Nam ut diam at tortor scelerisque lobortis eget nec tellus
* Morbi ut urna luctus, vestibulum massa vitae, elementum sapien
* Suspendisse in nulla eu justo pharetra luctus sit amet non ante.

Proin felis tortor, varius at iaculis vel, elementum non quam. Ut at odio rhoncus, dictum lectus in, fringilla ex. Nullam vitae pretium nulla. Curabitur porta congue tortor vitae fermentum. Donec ultricies aliquam semper. Phasellus suscipit mauris at tincidunt pretium. Vivamus convallis massa at orci mollis, et scelerisque velit fringilla. Quisque viverra, sapien eu mattis maximus, purus enim placerat orci, semper faucibus purus nulla eget libero.


text:
struct PARAMS{

  char inputFILE[1000];
	char valuesFILE[1000];
  int verbose;
  int partition;
  long int **part;
  int numViews;

};

#endif


text:
from ._abstract import AbstractScraper
from ._utils import normalize_string

class TasteOfHome(AbstractScraper):
    @classmethod
    def host(cls):
        return "tasteofhome.com"

    def title(self):
        return self.schema.title()

    def total_time(self):
        return self.schema.total_time()

    def yields(self):
        return self.schema.yields()

    def image(self):
        return self.schema.image()

    def ingredients(self):
        return self.schema.ingredients()

    def instructions(self):
        instructions = self.soup.findAll("li", {"class": "recipe-directions__item"})
        if instructions:
            return "\n".join(
                [
                    normalize_string(instruction.get_text())
                    for instruction in instructions
                ]
            )
        else:
            # In case our HTML parsing doesn't find any instructions, fall back to what the schema provides.
            return self.schema.instructions()

    def ratings(self):
        return self.schema.ratings()


text:
var fs = require('fs');
var Helpers = require('../app/modules/helpers');
var Games = require('../app/controllers/games');
var i18n = require('i18next');

/**
 * @name Generate JS Bundles
 * @desc
 */
module.exports = function(grunt){
    grunt.registerTask('makeBundles','Package all the various frontend files into modules',function(){
        // Setup our tasks
        var tasks = [
            'clean:modules',
            'copy:templates',
            'jade',
            'copy:locales',
            'i18n:dist',
            'dust:dist',
            'concat:modules',
            'concat:templates',
            'concat:dist',
            'uglify:modules',
            'concatModules',
            'sass:dist',
            'copy:app',
            'clean:dist',
            'uglify:dist',
            'cssmin',
            'copy:final',
            //'clean:final'
        ];

        // Our grunt build directory
        var writeDir = '.grunt/.build';

        // Where all the JS files live for the Backbone application
        var dir = 'public/js/app';

        // Get all of our module names
        var modules = fs.readdirSync(dir);
        grunt.log.writeln(modules.length + ' modules to compile');

        // Get the Copy config
        var copyConfig = grunt.config('copy');

        // Get the Concat config
        var concatConfig = grunt.config('concat');

        // Get the Uglify config
        var uglifyConfig = grunt.config('uglify');

        // Get the JADE config
        var jadeConfig = grunt.config('jade');

        // Get the Dust config
        var dustConfig = grunt.config('dust');

        // Get all our locales
        var locales = fs.readdirSync('locales');
        grunt.log.writeln(locales.length + ' locales to compile');

        copyConfig.templates.files.push(
            {expand:true,cwd:'app/views/includes',src:'*.*',dest:'.grunt/.templates/includes'},
            {expand:true,cwd:'app/views/snippets',src:'*.*',dest:'.grunt/.templates/snippets'}
        );

        // Iterate over the modules
        modules.forEach(function(moduleName){
            var filesPath = dir + '/' + moduleName;
            var moduleFile = writeDir + '/' + moduleName + '.js';
            var filePaths = [];

            // Get the files in our module
            var files = fs.readdirSync(filesPath);
            files.forEach(function(file){
                var filePath = filesPath + '/' + file;

                // Find all the templates used in the views
                if(file.indexOf('view') !== -1){
                    var templates = fs.readFileSync(filePath,'utf8').match(/tpl_\w+/g);
                    var templateConfig = {
                        expand:true,
                        flatten:true,
                        src:[],
                        dest:'.grunt/.templates/' + moduleName
                    };

                    // Append the templates we need to copy
                    templates.forEach(function(template){
                        templateConfig.src.push('app/views/templates/' + template + '.jade');

                        // Set up the templates to compile to HTML
                        jadeConfig.dist.files['.grunt/.templates/' + moduleName + '/' + template + '.html'] = '.grunt/.templates/' + moduleName + '/' + template + '.jade';
                    });

                    // Append the copy config for the templates
                    copyConfig.templates.files.push(templateConfig);

                    // Set up the Dust compiles for the localized HTML files that will get generated
                    dustConfig.dist.files.push({
                        expand: true,
                        cwd: '.grunt/.localized/',
                        src: ['**/' + moduleName + '/*.html'],
                        dest: '.grunt/.localized',
                        ext: '.js'
                    });
                }

                // Get each file we need to concat
                filePaths.push(filePath);

                locales.forEach(function(locale){
                    // Concat the templates together
                    concatConfig.templates.files['.grunt/.localized/' + locale + '/' + moduleName + '.js'] = ['.grunt/.localized/' + locale + '/' + moduleName + '/*.js'];
                });
            });

            // Create the concat step for grunt for the module
            concatConfig.modules.files[moduleFile] = filePaths;

            locales.forEach(function(locale){
                // Concat the templates and modules together
                concatConfig.dist.files['.grunt/.modules/' + locale + '/' + moduleName + '.js'] = ['.grunt/.localized/' + locale + '/' + moduleName + '.js','.grunt/.build/' + moduleName + '.js'];
            });
        });

        // Build the localized base files for the games and pages
        i18n.init({
            resGetPath: '../../locales/__lng__/__ns__.json',
            fallbackLng: 'en-US',
            ns: 'server',
            saveMissing: false,
            debug: false
        });

        var languages = fs.readdirSync('locales');
        languages.forEach(function(language){
            i18n.setLng(language);
            var locale = language.substr(0,2);

            (function(Helpers){
                var games = JSON.parse(fs.readFileSync('public/json/' + locale + '-games-full.json','utf8'));

                Helpers.games = games;
                Helpers.gamesJSON = JSON.stringify({games:games});

                var files = {};
                files['.dist/' + language + '/index.html'] = 'app/views/index.jade';
                files['.dist/' + language + '/library.html'] = 'app/views/library.jade';

                games.forEach(function(game){
                    Helpers.gamesByShort[game.short] = game;

                    var gameFile = {};
                    gameFile['.dist/' + language + '/' + game.short + '.html'] = 'app/views/detail.jade';

                    var data = Helpers.getFiles({locale:locale,rel:'',fileExt:'.html',params:{game:game.short}});
                    data.t = i18n.t;
                    jadeConfig['html-' + language + '-' + game.short] = {
                        options: {
                            data: data
                        },
                        files: gameFile
                    };
                });

                var data = Helpers.getFiles({locale:locale,rel:'',fileExt:'.html',params:{}});
                data.t = i18n.t;
                jadeConfig['html-' + language] = {
                    options: {
                        data: data
                    },
                    files: files
                };
            }(Helpers));

            copyConfig.final.files.push({expand: true, cwd: 'public/js/dist/', src: '*.js', dest: '.dist/' + language + '/js'});
            copyConfig.final.files.push({expand: true, cwd: 'public/js/dist/' + language, src: '*.js', dest: '.dist/' + language + '/js'});
            copyConfig.final.files.push({expand: true, cwd: 'public/js/dist/libraries/', src: '*.js', dest: '.dist/' + language + '/js/libraries'});
            copyConfig.final.files.push({expand: true, cwd: 'public/js/dist/libraries/bower/', src: '*.js', dest: '.dist/' + language + '/js/libraries/bower'});
            copyConfig.final.files.push({expand: true, cwd: 'public/css', src: '**/*.*', dest: '.dist/' + language + '/css'});
            copyConfig.final.files.push({expand: true, cwd: 'public/fonts', src: '*.*', dest: '.dist/' + language + '/fonts'});
            copyConfig.final.files.push({expand: true, cwd: 'public/img', src: '*.*', dest: '.dist/' + language + '/img'});
            copyConfig.final.files.push({expand: true, cwd: 'public/', src: 'favicon.ico', dest: '.dist/' + language});
        });

        // Set our new configs
        grunt.config('concat',concatConfig);
        grunt.config('uglify',uglifyConfig);
        grunt.config('copy',copyConfig);
        grunt.config('jade',jadeConfig);
        grunt.config('dust',dustConfig);

        // Run it!
        grunt.task.run(tasks);
    });
};


text: Automated Dockerfile build repository for git2consul.


text:
package etri.sdn.controller.module.vxlanflowmapper;

import java.util.List;

public class V2PResponse {
	public List<HeaderInfoPair> v2pMapList;

	public V2PResponse(List<HeaderInfoPair> v2pMapList) {
		super();
		this.v2pMapList = v2pMapList;
	}

	public List<HeaderInfoPair> getV2pMapList() {
		return v2pMapList;
	}

	public void setV2pMapList(List<HeaderInfoPair> v2pMapList) {
		this.v2pMapList = v2pMapList;
	}

}


text:
Vim VCL Highlighting
====================

by Elan Ruusamäe <glen@delfi.ee>

Introduction
------------

This plugin enables syntax highlighting for VCL (Varnish Configuration Language)
files in the vim editor.

Downloads
---------

Source code and downloads are available at GitHub mirror <https://github.com/pld-linux/vim-syntax-vcl/>

The master repo for this code is at <http://git.pld-linux.org/packages/vim-syntax-vcl/>

Reporting Bugs
--------------

Bugs should be reported to [github issue tracker](https://github.com/pld-linux/vim-syntax-spec/issues).


text:
function [X,y,Xval, Yval, Xtest,Ytest] = PRNGs(PRNGtype, n, v, t, d, k, featureType, labelSize, seed)
%n - number of inputs
%v - number of validation values
%t - Number of test values
%d - Number of preceeding values used for predictions
%k - Number of classes
%featureType -  determines how features for each example are calculated:
%            - 's': features are the 'd' preceding numbers
%            - 'c': features are the counts of each of the k classes in the 'd'
%            preceding numbers
%labelSize - the number of labels for each training example:
%            - 1: label = class number
%            - k: label is of size k with each entry representing one of the
%            k classes. The corresponding class is marked with 1, rest are -1

%set up default
if nargin < 6
    featureType = 's';
    labelSize = k;
elseif nargin < 7
    labelSize = k;
end

numsSize = n+v+t+3*d;

%for data extracted from txt files.
if( strcmp(PRNGtype,'yasha') || strcmp(PRNGtype,'kim') || strcmp(PRNGtype,'random.org'))
    nums = loadPRNG(PRNGtype, k);
elseif(strcmp(PRNGtype,'lcg')) %for data generated by functions
        nums = lcgPRNG(numsSize, k, seed);
elseif(strcmp(PRNGtype,'matlabTwister'))
    nums = matlabTwisterPRNG(numsSize,k);
elseif(strcmp(PRNGtype,'rotating'))
    nums = rotatingPRNG(numsSize,k, 0.1);
end

[numsTrain, numsVal,numsTest] = splitNums(nums,n,v,t,d, numsSize);

[X,y] = reformat(numsTrain,n,d,k, featureType, labelSize);
[Xval,Yval] = reformat(numsVal,v,d,k, featureType, labelSize);
[Xtest,Ytest] = reformat(numsTest,t,d,k, featureType, labelSize);

end

function [numsTrain,numsVal, numsTest] = splitNums(nums,n,v,t,d, numsSize)

%If we have more numbers than we need, then we truncate the numbers
if(length(nums) >= numsSize)
    temp = nums(1:numsSize);
    clearvars nums;
    nums = temp;

    numsTrain = nums(1:n+d);
    numsVal = nums(n+d+1:n+v+2*d);
    numsTest = nums(n+v+2*d +1:end);

elseif(length(nums) < numsSize)
    error('Not enough numbers to make train, val, and test set');
    %     n = round(length(nums)/2);
    %     numsTrain = nums(1:n);
    %     numsTest = nums(n+1:end);
    %     n = n - d;
    %     t = t - d;
    %     if(n > d)
    %         warning(['Not enough numbers, truncating to n: ' num2str(n) ', t: ' num2str(t) '.']);
    %     else
    %        error('Not enough numbers, unable to truncate because n <= d.');
    %    end
end

end


text:
define([
  'app'
], function (app) {

  // define our map controller and register it with our app
  app.controller("MapCtrl", function($scope){

    // expose a method for handling clicks
    $scope.click = function(e){
      console.log("click handler", e);
      $scope.center = [e.mapPoint.x,e.mapPoint.y];
    };

    // listen for click broadcasts
    $scope.$on("map.click", function(event, e){
      console.log("broadcast", event, e);
    });
  });

});


text:
package com.example.service;
/*
 * Code Written By  : Rakesh Manoharan
 * Net ID 			: rxm143130
 * Course 			: CS6301
 * Class Name		: PixelCoOrdinates.java
 * Date				: 11-26-2014
 * Description		:
 * 				PixelCoOrdinates class is used to store the pixel of X & Y co-ordinates
 * together in a single object. It is used to store the collection of pixel positions as objects in a hash map
 */

public class PixelCoOrdinates {
private float x;
private float y;
/*
 * @return the x
 */
public float getX() {
	return x;
}
/*
 * @param x the x to set
 */
public void setX(float x) {
	this.x = x;
}
/*
 * @return the y
 */
public float getY() {
	return y;
}
/*
 * @param y the y to set
 */
public void setY(float y) {
	this.y = y;
}

}


text:
<meta charset="UTF-8">
<title>CardsContainer.deck - core</title>
<link rel="stylesheet" href="..\..\..\style.css">

core / com.erikcupal.theblackcatclient.gameObjects / CardsContainer / deck

deck

val deck: DeckObject


text:
<?xml version="1.0" encoding="utf-8"?>
<!--
  Copyright 2019 The Android Open Source Project

  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.
  -->

<LinearLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical"
    tools:context="androidx.ads.identifier.testapp.AdsIdentifierActivity">

    <LinearLayout
        style="?android:attr/buttonBarStyle"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:orientation="horizontal">

        <Button
            style="?android:attr/buttonBarButtonStyle"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:onClick="getId"
            android:text="@string/get_ad_id" />

        <Button
            style="?android:attr/buttonBarButtonStyle"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:onClick="getIdSync"
            android:text="@string/get_ad_id_sync" />
    </LinearLayout>

    <LinearLayout
        style="?android:attr/buttonBarStyle"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:orientation="horizontal">

        <Button
            style="?android:attr/buttonBarButtonStyle"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:onClick="isProviderAvailable"
            android:text="@string/is_provider_available" />

        <Button
            style="?android:attr/buttonBarButtonStyle"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:onClick="listProvider"
            android:text="@string/list_provider" />
    </LinearLayout>

    <TextView
        android:id="@+id/text"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="" />
</LinearLayout>


text:
package com.igormaznitsa.ideamindmap.lang.tokens;

public class MMCodeSnippetEnd extends MMElementType {
  public MMCodeSnippetEnd() {
    super("CODESNIPPET_END");
  }

  @SuppressWarnings( {"HardCodedStringLiteral"})
  public String toString() {
    return "CodeSnippetEnd:" + super.toString();
  }

}


text:
//
// The MIT License(MIT)
//
// Copyright(c) 2014 Demonsaw LLC
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in all
// copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.

#ifndef _EJA_APPLICATION_
#define _EJA_APPLICATION_

#include <QApplication>
#include <QColor>
#include <QPixmap>

#include "controller/client_controller.h"
#include "controller/router_controller.h"
#include "dialog/splash_dialog.h"
#include "entity/entity.h"
#include "object/io/file.h"
#include "system/function/function_action.h"
#include "xml/config_file.h"

/*
The QApplication class manages the GUI application's control flow and main settings. It contains the main event loop,
where all events from the window system and other sources are processed and dispatched. It also handles the application's
initialization and finalization, and provides session management. It also handles most system-wide and application-wide
settings. For any GUI application that uses Qt, there is precisely one QApplication object, no matter whether the
application has 0, 1, 2 or more windows at any time.

The application object can hold data related to different components of the application. QApplication object is always
available in your application through the static QCoreApplication::instance() call (or qApp macro), making it a good placeholder
for objects, which otherwise would need to be global. This gives an additional benefit, because sometimes when you construct some
global objects (for example timers), you get a message, that you can't construct such an object without a QApplication object.
This is a way to bypass such messages.
*/

namespace eja
{
	class application final : public QApplication
	{
	private:
		config_file m_config;

		int m_argc;
		char** m_argv;
		splash_dialog* m_splash = nullptr;

	public:
		application(int& argc, char** argv);
		virtual ~application() override { }

		// Interface
		void init();
		void shutdown();

		// Utility
		bool load();
		bool load(const std::string& path) { return load(path.c_str()); }
		bool load(const char* path);

		bool save();
		bool save(const std::string& path) { return save(path.c_str()); }
		bool save(const char* path);

		bool has_splash() const { return m_splash; }

		// Accessor
		splash_dialog* get_splash(const QPixmap& pixmap);
		splash_dialog* get_splash(const QImage& image) { return get_splash(QPixmap::fromImage(image)); }
		splash_dialog* get_splash(const QString& path) { return get_splash(QPixmap(path)); }
		splash_dialog* get_splash();

		// Accessor
		config_file& get_config() { return m_config; }
		client_controller& get_clients() { return m_config.get_clients(); }
		router_controller& get_routers() { return m_config.get_routers(); }
	};

}

#endif