text:
**This repository hasn't been maintained in years and has been archived. All the functionality I was seeking is in [jekyll-scholar](https://github.com/inukshuk/jekyll-scholar)**

---

Grunt module that scrapes webpages for citations, aggregates them, and can
produce an output.

The code here is not intended for public and general use, as it fixes a
specific task.  I happened to write this code and thought it was pretty neat,
so I released it.  If you happen to come across something that makes you say,
"wow this is limiting" or "wow, I have to set up my DOM in a very particular
way," raise an issue or fork me!

This actually holds two tasks, `reference` and `renderReferencePage`.  Each
will be explained in turn.

# reference

Given a list of HTML pages, `reference` will parse out citations, make a
request to third party datasources, and then render a given template to be
inserted into the DOM.

## Options

- **referenceContainerId**: The id of the DOM element that will have the output
  of the citations for that page.
- **elementTemplateId**: The id of the underscore template in the DOM that,
  when rendered, will be placed after each citation in the page.
- **referenceTemplateId**: The id of the underscore template in the DOM that,
  when rendered, will be placed inside the `referenceContainer`

The list of HTML pages that are given to this task are parsed for `cite`
elements or any element that has a cite attribute. The text within the element
or attribute is then separated into three categories: websites, periodicals,
and books.

The url for a website is used as citation object.

For a periodical the citation must be a DOI (Digital Object Identifier).

For a book the citation must be an ISBN (10 or 13)

After gathering the citations, the code will detect any [Ibid.][]

## Examples

The following examples show DOM snippets that are considered valid citations.

```html
<!-- ISBN-13 or ISBN-10 -->
<blockquote><cite>9781935182474</cite></blockquote>

<!-- DOI -->
<blockquote><cite>10.1145/356635.356640</cite></blockquote>

<!-- Website -->
<blockquote><cite>www.google.com</cite></blockquote>
```

# renderReferencePage

If given a HTML page, `renderReferencePage` will aggregate the citations, invoke
the given underscore template, and insert the result back into the DOM. A list
of files can be given, but the intended use is for a single file.

## Options

- **templateId**: The id of the underscore template in the DOM that renders the
  aggregated citations.
- **containerSelector**: jQuery selector that identifies the DOM element that
  will have the aggregated template appended to it.

[Ibid.]: http://en.wikipedia.org/wiki/Ibid.


text:
package org.apache.camel.api.management.mbean;

import javax.management.openmbean.CompositeType;
import javax.management.openmbean.OpenDataException;
import javax.management.openmbean.OpenType;
import javax.management.openmbean.SimpleType;
import javax.management.openmbean.TabularType;

/**
 * Various JMX openmbean types used by Camel.
 */
public final class CamelOpenMBeanTypes {

    private CamelOpenMBeanTypes() {
    }

    public static TabularType listTypeConvertersTabularType() throws OpenDataException {
        CompositeType ct = listTypeConvertersCompositeType();
        return new TabularType("listTypeConverters", "Lists all the type converters in the registry (from -> to)", ct, new String[]{"from", "to"});
    }

    public static CompositeType listTypeConvertersCompositeType() throws OpenDataException {
        return new CompositeType("types", "From/To types",
                new String[]{"from", "to"},
                new String[]{"From type", "To type"},
                new OpenType[]{SimpleType.STRING, SimpleType.STRING});
    }

    public static TabularType listRestServicesTabularType() throws OpenDataException {
        CompositeType ct = listRestServicesCompositeType();
        return new TabularType("listRestServices", "Lists all the rest services in the registry", ct, new String[]{"url", "method"});
    }

    public static CompositeType listRestServicesCompositeType() throws OpenDataException {
        return new CompositeType("rests", "Rest Services",
                new String[]{"url", "baseUrl", "basePath", "uriTemplate", "method", "consumes", "produces", "inType", "outType", "state", "routeId", "description"},
                new String[]{"Url", "Base Url", "Base Path", "Uri Template", "Method", "Consumes", "Produces", "Input Type", "Output Type", "State", "Route Id", "Description"},
                new OpenType[]{SimpleType.STRING, SimpleType.STRING, SimpleType.STRING, SimpleType.STRING, SimpleType.STRING, SimpleType.STRING,
                               SimpleType.STRING, SimpleType.STRING, SimpleType.STRING, SimpleType.STRING, SimpleType.STRING, SimpleType.STRING});
    }

    public static TabularType listEndpointsTabularType() throws OpenDataException {
        CompositeType ct = listEndpointsCompositeType();
        return new TabularType("listEndpoints", "Lists all the endpoints in the registry", ct, new String[]{"url"});
    }

    public static CompositeType listEndpointsCompositeType() throws OpenDataException {
        return new CompositeType("endpoints", "Endpoints",
                new String[]{"url", "static", "dynamic"},
                new String[]{"Url", "Static", "Dynamic"},
                new OpenType[]{SimpleType.STRING, SimpleType.BOOLEAN, SimpleType.BOOLEAN});
    }

    public static TabularType listRuntimeEndpointsTabularType() throws OpenDataException {
        CompositeType ct = listRuntimeEndpointsCompositeType();
        return new TabularType("listRuntimeEndpoints", "Lists all the input and output endpoints gathered during runtime", ct, new String[]{"index"});
    }

    public static CompositeType listRuntimeEndpointsCompositeType() throws OpenDataException {
        return new CompositeType("endpoints", "Endpoints",
                new String[]{"index", "url", "routeId", "direction", "static", "dynamic", "hits"},
                new String[]{"Index", "Url", "Route Id", "Direction", "Static", "Dynamic", "Hits"},
                new OpenType[]{SimpleType.INTEGER, SimpleType.STRING, SimpleType.STRING, SimpleType.STRING, SimpleType.BOOLEAN, SimpleType.BOOLEAN, SimpleType.LONG});
    }

    public static TabularType explainComponentTabularType() throws OpenDataException {
        CompositeType ct = explainComponentCompositeType();
        return new TabularType("explainComponent", "Explain how this component is configured", ct, new String[]{"option"});
    }

    public static CompositeType explainComponentCompositeType() throws OpenDataException {
        return new CompositeType("components", "Components", new String[]{"option", "kind", "group", "label", "type", "java type", "deprecated", "secret", "value", "default value", "description"},
                new String[]{"Option", "Kind", "Group", "Label", "Type", "Java Type", "Deprecated", "Secret", "Value", "Default Value", "Description"},
                new OpenType[]{SimpleType.STRING, SimpleType.STRING, SimpleType.STRING, SimpleType.STRING, SimpleType.STRING, SimpleType.STRING,
                               SimpleType.STRING, SimpleType.STRING, SimpleType.STRING, SimpleType.STRING, SimpleType.STRING});
    }

    public static TabularType explainDataFormatTabularType() throws OpenDataException {
        CompositeType ct = explainDataFormatsCompositeType();
        return new TabularType("explainDataFormat", "Explain how this dataformat is configured", ct, new String[]{"option"});
    }

    public static CompositeType explainDataFormatsCompositeType() throws OpenDataException {
        return new CompositeType("dataformats", "DataFormats",
                new String[]{"option", "kind", "label", "type", "java type", "deprecated", "secret", "value", "default value", "description"},
                new String[]{"Option", "Kind", "Label", "Type", "Java Type", "Deprecated", "Secret", "Value", "Default Value", "Description"},
                new OpenType[]{SimpleType.STRING, SimpleType.STRING, SimpleType.STRING, SimpleType.STRING, SimpleType.STRING,
                               SimpleType.STRING, SimpleType.STRING, SimpleType.STRING, SimpleType.STRING, SimpleType.STRING});
    }

    public static TabularType explainEndpointTabularType() throws OpenDataException {
        CompositeType ct = explainEndpointsCompositeType();
        return new TabularType("explainEndpoint", "Explain how this endpoint is configured", ct, new String[]{"option"});
    }

    public static CompositeType explainEndpointsCompositeType() throws OpenDataException {
        return new CompositeType("endpoints", "Endpoints",
                new String[]{"option", "kind", "group", "label", "type", "java type", "deprecated", "secret", "value", "default value", "description"},
                new String[]{"Option", "Kind", "Group", "Label", "Type", "Java Type", "Deprecated", "Secret", "Value", "Default Value", "Description"},
                new OpenType[]{SimpleType.STRING, SimpleType.STRING, SimpleType.STRING, SimpleType.STRING, SimpleType.STRING, SimpleType.STRING,
                               SimpleType.STRING, SimpleType.STRING, SimpleType.STRING, SimpleType.STRING, SimpleType.STRING});
    }

    public static TabularType explainEipTabularType() throws OpenDataException {
        CompositeType ct = explainEipsCompositeType();
        return new TabularType("explainEip", "Explain how this EIP is configured", ct, new String[]{"option"});
    }

    public static CompositeType explainEipsCompositeType() throws OpenDataException {
        return new CompositeType("eips", "EIPs",
                new String[]{"option", "kind", "label", "type", "java type", "deprecated", "value", "default value", "description"},
                new String[]{"Option", "Kind", "Label", "Type", "Java Type", "Deprecated", "Value", "Default Value", "Description"},
                new OpenType[]{SimpleType.STRING, SimpleType.STRING, SimpleType.STRING, SimpleType.STRING, SimpleType.STRING,
                               SimpleType.STRING, SimpleType.STRING, SimpleType.STRING, SimpleType.STRING});
    }

    public static TabularType listComponentsTabularType() throws OpenDataException {
        CompositeType ct = listComponentsCompositeType();
        return new TabularType("listComponents", "Lists all the components", ct, new String[]{"name"});
    }

    public static CompositeType listComponentsCompositeType() throws OpenDataException {
        return new CompositeType("components", "Components",
                new String[]{"name", "title", "syntax", "description", "label", "deprecated", "secret", "status", "type", "groupId", "artifactId", "version"},
                new String[]{"Name", "Title", "Syntax", "Description", "Label", "Deprecated", "Secret", "Status", "Type", "GroupId", "ArtifactId", "Version"},
                new OpenType[]{SimpleType.STRING, SimpleType.STRING, SimpleType.STRING, SimpleType.STRING, SimpleType.STRING, SimpleType.STRING,
                               SimpleType.STRING, SimpleType.STRING, SimpleType.STRING, SimpleType.STRING, SimpleType.STRING, SimpleType.STRING});
    }

    public static TabularType listAwaitThreadsTabularType() throws OpenDataException {
        CompositeType ct = listAwaitThreadsCompositeType();
        return new TabularType("listAwaitThreads", "Lists blocked threads by the routing engine", ct, new String[]{"id"});
    }

    public static CompositeType listAwaitThreadsCompositeType() throws OpenDataException {
        return new CompositeType("threads", "Threads",
                new String[]{"id", "name", "exchangeId", "routeId", "nodeId", "duration"},
                new String[]{"Thread Id", "Thread name", "ExchangeId", "RouteId", "NodeId", "Duration"},
                new OpenType[]{SimpleType.STRING, SimpleType.STRING, SimpleType.STRING, SimpleType.STRING, SimpleType.STRING, SimpleType.STRING});
    }

    public static TabularType listEipsTabularType() throws OpenDataException {
        CompositeType ct = listEipsCompositeType();
        return new TabularType("listEips", "Lists all the EIPs", ct, new String[]{"name"});
    }

    public static CompositeType listEipsCompositeType() throws OpenDataException {
        return new CompositeType("eips", "EIPs",
                new String[]{"name", "title", "description", "label", "status", "type"},
                new String[]{"Name", "Title", "Description", "Label", "Status", "Type"},
                new OpenType[]{SimpleType.STRING, SimpleType.STRING, SimpleType.STRING, SimpleType.STRING, SimpleType.STRING, SimpleType.STRING});
    }

    public static TabularType listInflightExchangesTabularType() throws OpenDataException {
        CompositeType ct = listInflightExchangesCompositeType();
        return new TabularType("listInflightExchanges", "Lists inflight exchanges", ct, new String[]{"exchangeId"});
    }

    public static CompositeType listInflightExchangesCompositeType() throws OpenDataException {
        return new CompositeType("exchanges", "Exchanges",
                new String[]{"exchangeId", "fromRouteId", "routeId", "nodeId", "elapsed", "duration"},
                new String[]{"Exchange Id", "From RouteId", "RouteId", "NodeId", "Elapsed", "Duration"},
                new OpenType[]{SimpleType.STRING, SimpleType.STRING, SimpleType.STRING, SimpleType.STRING, SimpleType.STRING, SimpleType.STRING});
    }

    public static TabularType choiceTabularType() throws OpenDataException {
        CompositeType ct = choiceCompositeType();
        return new TabularType("choice", "Choice statistics", ct, new String[]{"predicate"});
    }

    public static CompositeType choiceCompositeType() throws OpenDataException {
        return new CompositeType("predicates", "Predicates",
                new String[]{"predicate", "language", "matches"},
                new String[]{"Predicate", "Language", "Matches"},
                new OpenType[]{SimpleType.STRING, SimpleType.STRING, SimpleType.LONG});
    }

    public static TabularType loadbalancerExceptionsTabularType() throws OpenDataException {
        CompositeType ct = loadbalancerExceptionsCompositeType();
        return new TabularType("exception", "Exception statistics", ct, new String[]{"exception"});
    }

    public static CompositeType loadbalancerExceptionsCompositeType() throws OpenDataException {
        return new CompositeType("exceptions", "Exceptions",
                new String[]{"exception", "failures"},
                new String[]{"Exception", "Failures"},
                new OpenType[]{SimpleType.STRING, SimpleType.LONG});
    }

    public static TabularType endpointsUtilizationTabularType() throws OpenDataException {
        CompositeType ct = endpointsUtilizationCompositeType();
        return new TabularType("endpointsUtilization", "Endpoint utilization statistics", ct, new String[]{"url"});
    }

    public static CompositeType endpointsUtilizationCompositeType() throws OpenDataException {
        return new CompositeType("endpoints", "Endpoints",
                new String[]{"url", "hits"},
                new String[]{"Url", "Hits"},
                new OpenType[]{SimpleType.STRING, SimpleType.LONG});
    }

    public static TabularType listTransformersTabularType() throws OpenDataException {
        CompositeType ct = listTransformersCompositeType();
        return new TabularType("listTransformers", "Lists all the transformers in the registry", ct, new String[]{"scheme", "from", "to"});
    }

    public static CompositeType listTransformersCompositeType() throws OpenDataException {
        return new CompositeType("transformers", "Transformers",
                                 new String[]{"scheme", "from", "to", "static", "dynamic", "description"},
                                 new String[]{"Scheme", "From", "To", "Static", "Dynamic", "Description"},
                                 new OpenType[]{SimpleType.STRING, SimpleType.STRING, SimpleType.STRING,
                                                SimpleType.BOOLEAN, SimpleType.BOOLEAN, SimpleType.STRING});
    }

    public static TabularType listValidatorsTabularType() throws OpenDataException {
        CompositeType ct = listValidatorsCompositeType();
        return new TabularType("listValidators", "Lists all the validators in the registry", ct, new String[]{"type"});
    }

    public static CompositeType listValidatorsCompositeType() throws OpenDataException {
        return new CompositeType("validators", "Validators",
                                 new String[]{"type", "static", "dynamic", "description"},
                                 new String[]{"Type", "Static", "Dynamic", "Description"},
                                 new OpenType[]{SimpleType.STRING, SimpleType.BOOLEAN, SimpleType.BOOLEAN, SimpleType.STRING});
    }

    public static CompositeType camelHealthDetailsCompositeType() throws OpenDataException {
        return new CompositeType("healthDetails", "Health Details",
            new String[]{"id", "group", "state", "enabled", "interval", "failureThreshold"},
            new String[]{"ID", "Group", "State", "Enabled", "Interval", "Failure Threshold"},
            new OpenType[]{SimpleType.STRING, SimpleType.STRING, SimpleType.STRING, SimpleType.BOOLEAN, SimpleType.LONG, SimpleType.INTEGER});
    }

    public static TabularType camelHealthDetailsTabularType() throws OpenDataException {
        CompositeType ct = camelHealthDetailsCompositeType();
        return new TabularType("healthDetails", "Health Details", ct, new String[]{"id"});
    }
}

redpajama_set_name: RedPajamaGithub


text:
using System;
using Coevery.ContentManagement;

namespace Coevery.Tasks.Scheduling {
    public interface IPublishingTaskManager : IDependency {
        IScheduledTask GetPublishTask(ContentItem item);
        void Publish(ContentItem item, DateTime scheduledUtc);
        void DeleteTasks(ContentItem item);
    }
}


text:
package io.getquill

import io.getquill.ast._
import io.getquill.context.CanOutputClause
import io.getquill.context.sql.idiom.SqlIdiom.ActionTableAliasBehavior
import io.getquill.context.sql.idiom._
import io.getquill.context.sql.norm.AddDropToNestedOrderBy
import io.getquill.context.sql.{ FlattenSqlQuery, SqlQuery, SqlQueryApply }
import io.getquill.idiom.StatementInterpolator._
import io.getquill.idiom.{ Statement, StringToken, Token }
import io.getquill.norm.EqualityBehavior.NonAnsiEquality
import io.getquill.norm.{ EqualityBehavior, TranspileConfig }
import io.getquill.sql.idiom.BooleanLiteralSupport
import io.getquill.util.Messages.fail
import io.getquill.util.TraceConfig

trait SQLServerDialect
  extends SqlIdiom
  with QuestionMarkBindVariables
  with ConcatSupport
  with CanOutputClause
  with BooleanLiteralSupport {

  override def useActionTableAliasAs: ActionTableAliasBehavior = ActionTableAliasBehavior.Hide

  override def querifyAst(ast: Ast, transpileConfig: TraceConfig) = AddDropToNestedOrderBy(new SqlQueryApply(transpileConfig)(ast))

  override def emptySetContainsToken(field: Token) = StringToken("1 <> 1")

  override def prepareForProbing(string: String) = string

  // SQL-Server can potentially disable ANSI-null via `SET ANSI_NULLS OFF`. Force more strict checking here
  // for the sake of consistency with the other contexts.
  override def equalityBehavior: EqualityBehavior = NonAnsiEquality

  override protected def limitOffsetToken(query: Statement)(implicit astTokenizer: Tokenizer[Ast], strategy: NamingStrategy) =
    Tokenizer[(Option[Ast], Option[Ast])] {
      case (Some(limit), None)         => stmt"TOP ${limit.token} $query"
      case (Some(limit), Some(offset)) => stmt"$query OFFSET ${offset.token} ROWS FETCH FIRST ${limit.token} ROWS ONLY"
      case (None, Some(offset))        => stmt"$query OFFSET ${offset.token} ROWS"
      case other                       => super.limitOffsetToken(query).token(other)
    }

  override implicit def sqlQueryTokenizer(implicit astTokenizer: Tokenizer[Ast], strategy: NamingStrategy, transpileConfig: TranspileConfig): Tokenizer[SqlQuery] =
    Tokenizer[SqlQuery] {
      case flatten: FlattenSqlQuery if flatten.orderBy.isEmpty && flatten.offset.nonEmpty =>
        fail(s"SQLServer does not support OFFSET without ORDER BY")
      case other => super.sqlQueryTokenizer.token(other)
    }

  override implicit def operationTokenizer(implicit astTokenizer: Tokenizer[Ast], strategy: NamingStrategy): Tokenizer[Operation] =
    Tokenizer[Operation] {
      case BinaryOperation(a, StringOperator.`+`, b) => stmt"${scopedTokenizer(a)} + ${scopedTokenizer(b)}"
      case other                                     => super.operationTokenizer.token(other)
    }

  override protected def actionTokenizer(insertEntityTokenizer: Tokenizer[Entity])(implicit astTokenizer: Tokenizer[Ast], strategy: NamingStrategy, transpileConfig: TranspileConfig): Tokenizer[ast.Action] =
    Tokenizer[ast.Action] {
      // Update(Filter(...)) and Delete(Filter(...)) usually cause a table alias i.e. `UPDATE People <alias> SET ... WHERE ...` or `DELETE FROM People <alias> WHERE ...`
      // since the alias is used in the WHERE clause. This functionality removes that because SQLServer doesn't support aliasing in actions.
      case Update(Filter(table: Entity, x, where), assignments) =>
        stmt"UPDATE ${table.token} SET ${assignments.token} WHERE ${where.token}"
      case Delete(Filter(table: Entity, x, where)) =>
        stmt"DELETE FROM ${table.token} WHERE ${where.token}"
      case other => super.actionTokenizer(insertEntityTokenizer).token(other)
    }
}

object SQLServerDialect extends SQLServerDialect


text:
<?php
namespace app\lime\core\assets;

use yii\web\AssetBundle;

class LimeAsset extends AssetBundle{
    public $basePath = '@app/lime/assets';
    public $baseUrl = '@web/lime/assets';

}


text:
'use strict'

const { app, BrowserWindow } = require('electron')
const IPFS = require('ipfs')

let mainWindow

function createWindow () {
  mainWindow = new BrowserWindow({ width: 800,
    height: 600,
    webPreferences: {
      nodeIntegration: true
    } })

  // and load the index.html of the app.
  mainWindow.loadFile('index.html')

  // Open the DevTools.
  mainWindow.webContents.openDevTools()

  // Emitted when the window is closed.
  mainWindow.on('closed', () => {
    mainWindow = null
  })
}

app.on('ready', async () => {
  createWindow()

  try {
    const node = await IPFS.create()
    const id = await node.id()
    console.log(id)
  } catch (err) {
    console.error(err)
  }
})

// Quit when all windows are closed.
app.on('window-all-closed', () => {
  if (process.platform !== 'darwin') { app.quit() }
})

app.on('activate', () => {
  if (mainWindow === null) { createWindow() }
})

// In this file you can include the rest of your app's specific main process
// code. You can also put them in separate files and require them here.


text:
"""Tasks related to format"""

import os
import subprocess

from artman.tasks import task_base
from artman.tasks.requirements import go_requirements
from artman.tasks.requirements import php_requirements
from artman.utils import task_utils
from artman.utils.logger import logger

# TODO: Store both intermediate and final output in all format tasks.

class JavaFormatTask(task_base.TaskBase):
    def execute(self, gapic_code_dir, toolkit_path):
        logger.info('Formatting files in %s.' %
                    os.path.abspath(gapic_code_dir))
        # TODO(shinfan): Move gradle task into requirement
        path = task_utils.get_gradle_task_output(
                'showJavaFormatterPath', toolkit_path)
        targetFiles = []
        for root, dirs, files in os.walk(gapic_code_dir):
            for filename in files:
                if filename.endswith('.java'):
                    targetFile = os.path.abspath(os.path.join(root, filename))
                    targetFiles.append(targetFile)
        self.exec_command(
            ['java', '-jar', path, '--replace'] + targetFiles)

    def validate(self):
        return []

class PythonFormatTask(task_base.TaskBase):
    def execute(self, gapic_code_dir):
        logger.info('Formatting files in %s.' %
                    os.path.abspath(gapic_code_dir))
        targetFiles = []
        for root, dirs, files in os.walk(gapic_code_dir):
            for filename in files:
                if filename.endswith('.py'):
                    targetFile = os.path.abspath(os.path.join(root, filename))
                    targetFiles.append(targetFile)
        # yapf returns code 2 when it formats, so we can't use `check_call`.
        exit_code = subprocess.call(['yapf', '-i'] + targetFiles)
        if exit_code not in [0, 2]:
            raise subprocess.CalledProcessError(exit_code, 'yapf')

    # yapf is installed by tox for the entire pipeline project's virtualenv,
    # so we shouldn't need a separate validation task.
    def validate(self):
        return []

class GoFormatTask(task_base.TaskBase):
    def execute(self, gapic_code_dir):
        logger.info('Formatting files in %s.' %
                    os.path.abspath(gapic_code_dir))
        self.exec_command(['gofmt', '-w', gapic_code_dir])

    def validate(self):
        return [go_requirements.GoFormatRequirements]

class PhpFormatTask(task_base.TaskBase):
    def execute(self, gapic_code_dir):
        abs_code_dir = os.path.abspath(gapic_code_dir)
        logger.info('Formatting file using php-cs-fixer in %s.' % abs_code_dir)
        subprocess.call(['php-cs-fixer', 'fix', gapic_code_dir])
        # We require a second call to php-cs-fixer because instances of @type
        # have been converted to @var. We cannot disable this conversion in
        # the first call without affecting other aspects of the formatting.
        subprocess.call(['php-cs-fixer', 'fix', gapic_code_dir,
                         '--fixers=phpdoc_var_to_type'])
        logger.info('Formatting file using phpcbf in %s.' % abs_code_dir)
        subprocess.call(['phpcbf', '--standard=PSR2', '--no-patch',
                         gapic_code_dir])

    def validate(self):
        return [php_requirements.PhpFormatRequirements]

_FORMAT_TASK_DICT = {
    'java': JavaFormatTask,
    'python': PythonFormatTask,
    'go': GoFormatTask,
    'php': PhpFormatTask,
}

def get_format_task(language):
    return _FORMAT_TASK_DICT.get(language, task_base.EmptyTask)


text:
package happyhome.client;

import gwtSql.client.DBService;
import gwtSql.client.DBServiceAsync;
import gwtSql.client.controls.AlertWidget;
import happyhome.shared.TheApp;

import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.core.client.GWT;
import com.google.gwt.user.client.rpc.AsyncCallback;

/**
 * Entry point classes define onModuleLoad().
 * This class is called when the application is executed.
 */
public class Happyhome implements EntryPoint {

	//serviciul de comunicare cu baza de date
	private final DBServiceAsync dbService = GWT.create(DBService.class);

	/**
	 * This is the entry point method.
	 */
	@SuppressWarnings({ "unchecked", "rawtypes" })
	public void onModuleLoad() {

		String strIniFileName;
		strIniFileName = GWT.getHostPageBaseURL();

		int endIndex = strIniFileName.lastIndexOf("/");
		strIniFileName = strIniFileName.substring(0, endIndex);
		int beginIndex = strIniFileName.lastIndexOf("/");
		strIniFileName = strIniFileName.substring(beginIndex + 1);
		strIniFileName = strIniFileName.replace(":", "_") + ".ini";

		dbService.SetIniFileName(strIniFileName, new AsyncCallback() {
			@Override
			public void onFailure(Throwable caught) {
				AlertWidget.alertWidget("SetIniFileName  Fail  ").center();
				caught.printStackTrace();
			}

			@Override
			public void onSuccess(Object result) {
				// nothing
			}
		});

		TheApp.login();

	}
}


text:
package com.okq.generalfoodsafe.View;

import android.graphics.Bitmap;
import android.graphics.SurfaceTexture;

import com.okq.generalfoodsafe.encoder.MediaEncoder;

public interface CameraViewInterface
        extends AspectRatioViewInterface
{
    public SurfaceTexture getSurfaceTexture();

    public boolean hasSurface();

    public void setVideoEncoder(final MediaEncoder encoder);

    public Bitmap captureStillImage();
}


text:
package org.dcm4chex.archive.dcm.hpscp;

import java.net.InetAddress;
import java.net.Socket;
import java.sql.Types;

import javax.management.JMException;
import javax.management.ObjectName;

import org.dcm4che.dict.Status;
import org.dcm4che.dict.UIDs;
import org.dcm4che.net.AcceptorPolicy;
import org.dcm4che.net.DcmServiceException;
import org.dcm4che.net.DcmServiceRegistry;
import org.dcm4chex.archive.dcm.AbstractScpService;
import org.dcm4chex.archive.ejb.interfaces.AEDTO;
import org.dcm4chex.archive.ejb.interfaces.AEManager;
import org.dcm4chex.archive.ejb.interfaces.AEManagerHome;
import org.dcm4chex.archive.ejb.jdbc.HPQueryCmd;
import org.dcm4chex.archive.ejb.jdbc.HPRetrieveCmd;
import org.dcm4chex.archive.mbean.TLSConfigDelegate;
import org.dcm4chex.archive.util.EJBHomeFactory;

/**
 * @author gunter.zeilinger@tiani.com
 * @version $Revision: 6978 $ $Date: 2008-09-12 02:30:23 +0800 (周五, 12 9月 2008) $
 * @since Aug 17, 2005
 */
public class HPScpService extends AbstractScpService {

    private final HPStoreScp hpStoreScp = new HPStoreScp(this);

    private final HPFindScp hpFindScp = new HPFindScp(this);

    private final HPMoveScp hpMoveScp = new HPMoveScp(this);

    private TLSConfigDelegate tlsConfig = new TLSConfigDelegate(this);

    private boolean sendPendingMoveRSP = true;

    private int acTimeout = 5000;

    private int dimseTimeout = 0;

    private int soCloseDelay = 500;

    public final ObjectName getTLSConfigName() {
        return tlsConfig.getTLSConfigName();
    }

    public final void setTLSConfigName(ObjectName tlsConfigName) {
        tlsConfig.setTLSConfigName(tlsConfigName);
    }

    public final int getReceiveBufferSize() {
        return tlsConfig.getReceiveBufferSize();
    }

    public final void setReceiveBufferSize(int size) {
        tlsConfig.setReceiveBufferSize(size);
    }

    public final int getSendBufferSize() {
        return tlsConfig.getSendBufferSize();
    }

    public final void setSendBufferSize(int size) {
        tlsConfig.setSendBufferSize(size);
    }

    public final boolean isTcpNoDelay() {
        return tlsConfig.isTcpNoDelay();
    }

    public final void setTcpNoDelay(boolean on) {
        tlsConfig.setTcpNoDelay(on);
    }

    public final int getAcTimeout() {
        return acTimeout;
    }

    public final void setAcTimeout(int acTimeout) {
        this.acTimeout = acTimeout;
    }

    public final int getDimseTimeout() {
        return dimseTimeout;
    }

    public final void setDimseTimeout(int dimseTimeout) {
        this.dimseTimeout = dimseTimeout;
    }

    public final int getSoCloseDelay() {
        return soCloseDelay;
    }

    public final void setSoCloseDelay(int soCloseDelay) {
        this.soCloseDelay = soCloseDelay;
    }

    public final boolean isSendPendingMoveRSP() {
        return sendPendingMoveRSP;
    }

    public final void setSendPendingMoveRSP(boolean sendPendingMoveRSP) {
        this.sendPendingMoveRSP = sendPendingMoveRSP;
    }

    public final boolean getQueryAccessBlobAsLongVarBinary() {
        return HPQueryCmd.blobAccessType == Types.LONGVARBINARY;
    }

    public final void setQueryAccessBlobAsLongVarBinary(boolean enable) {
        HPQueryCmd.blobAccessType = enable ? Types.LONGVARBINARY : Types.BLOB;
    }

    public final boolean getRetrieveAccessBlobAsLongVarBinary() {
        return HPRetrieveCmd.blobAccessType == Types.LONGVARBINARY;
    }

    public final void setRetrieveAccessBlobAsLongVarBinary(boolean enable) {
        HPRetrieveCmd.blobAccessType = enable ? Types.LONGVARBINARY : Types.BLOB;
    }

    public final String getQueryTransactionIsolationLevel() {
        return HPQueryCmd.transactionIsolationLevelAsString(
                HPQueryCmd.transactionIsolationLevel);
    }

    public final void setQueryTransactionIsolationLevel(String level) {
        HPQueryCmd.transactionIsolationLevel =
            HPQueryCmd.transactionIsolationLevelOf(level);
    }

    public final String getRetrieveTransactionIsolationLevel() {
        return HPRetrieveCmd.transactionIsolationLevelAsString(
                HPRetrieveCmd.transactionIsolationLevel);
    }

    public final void setRetrieveTransactionIsolationLevel(String level) {
        HPRetrieveCmd.transactionIsolationLevel =
            HPRetrieveCmd.transactionIsolationLevelOf(level);
    }

    public AEDTO queryAEData(String aet, InetAddress addr)
            throws DcmServiceException {
        try {
            Object o = server.invoke(aeServiceName, "getAE", new Object[] {
                    aet, addr }, new String[] { String.class.getName(),
                    InetAddress.class.getName() });
            if (o == null) {
                throw new DcmServiceException(Status.MoveDestinationUnknown,
                        aet);
            }
            return (AEDTO) o;
        } catch (JMException e) {
            log.error("Failed to query AEData", e);
            throw new DcmServiceException(Status.ProcessingFailure, e);
        }
    }

    Socket createSocket(String moveCalledAET, AEDTO destAE) throws Exception {
        return tlsConfig.createSocket(aeMgr().findByAET(moveCalledAET), destAE);
    }

    private AEManager aeMgr() throws Exception {
        AEManagerHome home = (AEManagerHome) EJBHomeFactory.getFactory()
                .lookup(AEManagerHome.class, AEManagerHome.JNDI_NAME);
        return home.create();
    }

    protected void bindDcmServices(DcmServiceRegistry services) {
        services.bind(UIDs.HangingProtocolStorage, hpStoreScp);
        services.bind(UIDs.HangingProtocolInformationModelFIND, hpFindScp);
        services.bind(UIDs.HangingProtocolInformationModelMOVE, hpMoveScp);
    }

    protected void unbindDcmServices(DcmServiceRegistry services) {
        services.unbind(UIDs.HangingProtocolStorage);
        services.unbind(UIDs.HangingProtocolInformationModelFIND);
        services.unbind(UIDs.HangingProtocolInformationModelMOVE);
    }

    protected void updatePresContexts(AcceptorPolicy policy, boolean enable) {
        String[] tsuids = enable ? valuesToStringArray(tsuidMap) : null;
        policy.putPresContext(UIDs.HangingProtocolStorage, tsuids);
        policy.putPresContext(UIDs.HangingProtocolInformationModelFIND, tsuids);
        policy.putPresContext(UIDs.HangingProtocolInformationModelMOVE, tsuids);
    }
}


text:
/* Fuentes personalizadas */

@font-face{
font-family: ubuntuRegular;
src: url(fuentes/Ubuntu-R.ttf) format('truetype');
}

@font-face{
font-family: ubuntuBold;
src: url(fuentes/Ubuntu-B.ttf) format('truetype');
}

@font-face{
font-family: ubuntuItalic;
src: url(fuentes/Ubuntu-I.ttf) format('truetype');
}

@font-face{
font-family: ubuntuBoldItalic;
src: url(fuentes/Ubuntu-BI.ttf) format('truetype');
}

/* Estilos basicos */

h1,h2,h3,h4,h5{
font-family: ubuntuBold;
}

h6{font-family: ubuntuRegular;}
h1{

color: white;
font-size: 48px;
top:-20%;
margin-top:10px;
letter-spacing: 0px;
display:inline;
text-shadow: 2px 2px 5px rgba(0,0,0,0.5);
margin:0px;
padding:0px;

}
h2{

color: white;
font-size: 16px;
top:-20%;
margin-top:10px;
letter-spacing: 0px;
text-shadow: 2px 2px 5px rgba(0,0,0,0.5);
margin:0px;
padding:0px;
}

#tipo{
position:absolute;
transform:translate(100px, 10px);
-webkit-transform:translate(100px, 10px);
}
h3{
margin:0px;
padding:0px;
font-size:36px;
text-shadow: 2px 2px 5px rgba(0,0,0,0.5);

}
h4{
margin:0px;
padding:0px;
font-size:14px;
text-shadow: 2px 2px 5px rgba(0,0,0,0.5);
color:black;
}
h6{
color:white;
font-size: 12px;
}
p{
font-family: ubuntuRegular;
font-size:12px;
text-align:justify;
text-shadow: 1px 1px 3px rgba(0,0,0,0.4);
color:black;
}

/*Menu de navegacion*/

nav{
display:inline;
float:right;
margin:20px;
}

nav ul{
font-size: 12px;
padding-left:0px;
margin-left:0px;
background-color: grey;
color:white;
width:50%;
font-family:ubuntuRegular;
position:relative;
display:inline;
}

nav ul li{
display: inline;
text-align:center;

}

nav ul li a{
background:rgba(255,255,255,0);
/*background: grey;*/
color: white;
text-decoration: none;
float:right;
border: 1px solid white;
border-radius: 0px 10px 0px 10px;
-webkit-border-radius: 3px 20px 3px 20px;
-moz-border-radius: 0px 10px 0px 10px;
-o-border-radius: 0px 10px 0px 10px;
box-shadow: 0px 0px 5px white;
-webkit-box-shadow: 0px 0px 15px white;
width:80px;
-webkit-transition: -webkit-box-shadow 1s, background 1s;
}

nav ul li a:hover{
background:rgba(255,255,255,0.8);
color: black;
box-shadow: 0px 0px 25px white;
-webkit-box-shadow: 0px 0px 25px white;

}

canvas{
border: 0px solid white;

}

/*Maquetacion principal*/

body{
text-align: center;
margin:0px;
background: white;
background: url('../img/background5.jpg');

}

#principal{
text-align: left;
margin:auto;
width:80%;
height:100%;
position: relative;

}

#cajaheader{
width: 100%;
height:100px;
position: absolute;
background: rgba(255,255,255,0.5);
}

header{
margin: auto;
text-align: left;
width:100%;
height:100px;
/*background: darkgrey;*/
overflow: hidden;

/*border: 0px solid white;*/

	border-top: 2px solid white;
   border-right: 2px solid white;
   border-bottom: 0px solid white;
   border-left: 2px solid white;

border-radius: 5px 35px 0px 0px;
-moz-border-radius: 5px 35px 0px 0px;
-webkit-border-radius: 5px 35px 0px 0px;
-o-border-radius: 5px 35px 0px 0px;

box-shadow: 0px 0px 10px white;
-moz-box-shadow: 0px 0px 10px white;
-webkit-box-shadow: 0px 0px 10px white;
-o-box-shadow: 0px 0px 10px white;

}

#logo{
width:100px;
height:100px;
display: inline;
position:absolute;
}

footer{
margin:0px;
text-align:center;
padding:0px;
width:100%;
border: 2px solid white;
background: rgba(0,0,0,0.5);

border-radius: 0px 0px 5px 35px;
-moz-border-radius: 0px 0px 5px 35px;
-webkit-border-radius: 0px 0px 5px 35px;
-o-border-radius: 0px 0px 5px 35px;

box-shadow: 0px 0px 10px white;
-moz-box-shadow: 0px 0px 10px white;
-webkit-box-shadow: 0px 0px 10px white;
-o-box-shadow: 0px 0px 10px white;

}

/*contenido */

#contenido{
width:100%;
	border-top: 0px solid white;
   border-right: 2px solid white;
   border-bottom: 2px solid white;
   border-left: 2px solid white;

box-shadow: 0px 0px 10px white;
-moz-box-shadow: 0px 0px 10px white;
-webkit-box-shadow: 0px 0px 10px white;
-o-box-shadow: 0px 0px 10px white;
background: rgba(255,255,255,0.5);
}

article{
color: rgba(255,255,255,1);
width:55%;
/*background: white;*/
background: rgba(255,255,255,0.5);
margin:10px;
height:100%;
border: 1px solid white;
border-radius: 0px 25px 0px 25px;
-webkit-border-radius: 0px 25px 0px 25px;
box-shadow: 3px 3px 10px black;
-webkit-box-shadow: 3px 3px 10px black;
padding: 10px 10px 10px 150px;
opacity:1;
transition: opacity 1s, box-shadow 1s, transform 1s, background 1s;
-webkit-transition: opacity 1s, -webkit-box-shadow 1s, -webkit-transform 1s, background 1s, color 1s;
transform:scale(1,1);
-webkit-transform:scale(1,1);
}
article:hover{
color: rgba(0,0,0,1);
background:rgba(255,255,255,1);
opacity:1;
transform:scale(1.1,1.1);
-webkit-transform:scale(1.1,1.1);
}

time{
float:right;
font-family:ubuntuRegular;
font-size:10px;
}

article:hover{
box-shadow: 0px 0px 25px white;
-webkit-box-shadow: 0px 0px 25px white;
}

aside{
float: right;
display: inline-table;
width:20%;
background: rgba(255,255,255,0.5);

margin:10px;
padding:10px;
border: 1px solid white;
border-radius: 0px 25px 0px 25px;
-webkit-border-radius: 0px 25px 0px 25px;
box-shadow: 3px 3px 10px black;
-webkit-box-shadow: 3px 3px 10px black;
text-decoration:none;
-webkit-transition: -webkit-box-shadow 1s, background 1s;
}

aside:hover{
box-shadow: 0px 0px 25px white;
-webkit-box-shadow: 0px 0px 25px white;
background: rgba(255,255,255,1);
}

aside ul{
width: 100%;
height: 100%;
padding-left:0;
padding-right:0;
color:white;
float:left;
font-family:ubuntuRegular;
font-size: 10px;
text-decoration:none;
list-style: none;
}

aside ul li{
width:100%;
text-decoration:none;
border: 1px solid white;
border-radius: 0px 5px 0px 5px;
-webkit-border-radius: 0px 5px 0px 5px;
text-decoration:none;
}

aside ul li a{
width:100%;
height:30px;
overflow:hidden;
text-decoration:none;

}

#sobremi{
width:100%;
height:120px;
background:blue;
color:white;
background:rgba(0,0,0,0.5);
font-size: 12px;
text-decoration:none;
text-align:justify;
overflow:hidden;
-webkit-transform:scale(1,1);
-webkit-transition: -webkit-transform 1s;
}

#sobremi a{
color: white;
text-decoration: none;
}

#sobremi:hover{
-webkit-transform:scale(1.1,1.1);
}

#mifoto{
width:100px;
height:100px;
font-family:ubuntuBold;
font-size: 20px;
color:white;
text-align:left;

background:url('../photo/josevicentecarratala.jpg');
background-size: 100% 100%;
background-repeat: no-repeat;
display: box;

border: 1px solid white;
border-radius: 0px 10px 0px 10px;
box-shadow: 0px 0px 10px white;
-webkit-border-radius: 0px 10px 0px 10px;
-webkit-box-shadow: 0px 0px 10px white;
float:left;
margin:10px;
animation: parpadeo 5s;
-webkit-animation: parpadeo 5s;
animation-iteration-count:infinite;
-webkit-animation-iteration-count:infinite;

}

@keyframes parpadeo{

0% {box-shadow: 0px 0px 10px white;}
50% {box-shadow: 0px 0px 50px white;}
100% {box-shadow: 0px 0px 10px white;}

}

@-webkit-keyframes parpadeo{

0% {-webkit-box-shadow: 0px 0px 10px white;}
50% {-webkit-box-shadow: 0px 0px 50px white;}
100% {-webkit-box-shadow: 0px 0px 10px white;}

}

#logoblender{
width:100px;
height:100px;
font-family:ubuntuBold;
font-size: 20px;
color:white;
text-align:left;

background:url('../photo/blenderlogo.jpg');
background-size: 100% 100%;
background-repeat: no-repeat;
display: box;

border: 1px solid white;
border-radius: 0px 10px 0px 10px;
box-shadow: 0px 0px 10px black;
-webkit-border-radius: 0px 10px 0px 10px;
-webkit-box-shadow: 0px 0px 10px black;
float:left;
margin:10px;
position:absolute;
transform:translate(-140px, 0px);
-webkit-transform:translate(-140px, 0px);
}
#logoactualidad3d{
width:100px;
height:100px;
font-family:ubuntuBold;
font-size: 20px;
color:white;
text-align:left;

background:url('../photo/actualidad3dlogo.jpg');
background-size: 100% 100%;
background-repeat: no-repeat;
display: box;

border: 1px solid white;
border-radius: 0px 10px 0px 10px;
box-shadow: 0px 0px 10px black;
-webkit-border-radius: 0px 10px 0px 10px;
-webkit-box-shadow: 0px 0px 10px black;
float:left;
margin:10px;
position:absolute;
transform:translate(-140px, 0px);
-webkit-transform:translate(-140px, 0px);
}
#logov2b{
width:100px;
height:100px;
font-family:ubuntuBold;
font-size: 20px;
color:white;
text-align:left;

background:url('../photo/video2brainlogo.jpg');
background-size: 100% 100%;
background-repeat: no-repeat;
display: box;

border: 1px solid white;
border-radius: 0px 10px 0px 10px;
box-shadow: 0px 0px 10px black;
-webkit-border-radius: 0px 10px 0px 10px;
-webkit-box-shadow: 0px 0px 10px black;
float:left;
margin:10px;

position:absolute;
transform:translate(-140px, 0px);
-webkit-transform:translate(-140px, 0px);

}
#mifotoarticulo{
width:100px;
height:100px;
font-family:ubuntuBold;
font-size: 20px;
color:white;
text-align:left;

background:url('../photo/josevicentecarratala.jpg');
background-size: 100% 100%;
background-repeat: no-repeat;
display: box;

border: 1px solid white;
border-radius: 0px 10px 0px 10px;
box-shadow: 0px 0px 10px black;
-webkit-border-radius: 0px 10px 0px 10px;
-webkit-box-shadow: 0px 0px 10px black;
float:left;
margin:10px;
position:absolute;
transform:translate(-140px, 0px);
-webkit-transform:translate(-140px, 0px);

}

[required]{
border-color:green;
box-shadow: 0px 0px 5px green;
-webkit-box-shadow: 0px 0px 5px green;

}

:invalid{
border-color:red;
box-shadow: 0px 0px 50px red;
-webkit-box-shadow: 0px 0px 50px red;
border-radius: 0px 5px 0px 5px;
-webkit-border-radius: 0px 10px 0px 10px;
}

form table{
width:100%;
border: 0px solid white;
padding: 0px;
margin:auto;
}

form{
font-family:ubuntuRegular;
color:black;
text-shadow: 3px 3px 5px rgba(0,0,0,0.5);
border: 1px solid white;
border-radius: 0px 15px 0px 15px;
-webkit-border-radius: 0px 15px 0px 15px;
box-shadow: 10px 10px 25px rgba(0,0,0,0.5);
-webkit-box-shadow: 10px 10px 25px rgba(0,0,0,0.5);
background: rgba(255,255,255,0.5);
margin:auto;
width:80%;
padding:10px;
}
form input, form textarea{
font-size:10px;
font-family:ubuntuRegular;
background:rgba(255,255,255,0.5);
border: 1px dotted rgba(255,255,255,1);
box-shadow: 0px 0px 5px rgba(0,0,0,0.5);
-webkit-box-shadow: 0px 0px 5px rgba(0,0,0,0.5);
border-radius: 0px 5px 0px 5px;
-webkit-border-radius: 0px 5px 0px 5px;
transition: background 1s, box-shadow: 1s; border 1s;
-webkit-transition: background 1s, -webkit-box-shadow: 1s; border 1s;
}

form input:hover, form textarea:hover{
background:rgba(255,255,255,1);
box-shadow: 0px 0px 5px rgba(255,255,255,1);
-webkit-box-shadow: 0px 0px 5px rgba(255,255,255,1);
border: 1px dotted rgba(0,0,0,1);
}

#massobremi{
font-family:ubuntuRegular;
font-size: 14px;
margin:auto;
width:80%;
}

#massobremi  ul{
border: 1px solid white;
background:rgba(255,255,255,0.2);
margin: 15px;
box-shadow: 10px 10px 25px black;
-webkit-box-shadow: 10px 10px 25px rgba(0,0,0,0.5);
list-style-type: none;
text-shadow: 2px 2px 5px rgba(0,0,0,0.5);
border-radius: 0px 25px 0px 25px;
-webkit-border-radius: 0px 25px 0px 25px;

}


text:
<?php

namespace T42\DestinosBundle;

use Symfony\Component\HttpKernel\Bundle\Bundle;

class T42DestinosBundle extends Bundle
{
}