text:
function h(tagName, children) {
  return {
    tagName: tagName,
    children: children,
  }
}

function h1(children) {
  return {
    tagName: 'H1',
    children: children,
  }
}

function span(children) {
  return {
    tagName: 'SPAN',
    children: children,
  }
}

function main(sources) {
  const mouseover$ = sources.DOM.selectEvents('span', 'mouseover');
  const sinks = {
    DOM: mouseover$
      .startWith(null)
      .flatMapLatest(() =>
        Rx.Observable.timer(0, 1000)
          .map(i =>
            h1([
              span([
                `Seconds ${i}`
              ])
            ])
          )
      ),
    Log: Rx.Observable.timer(0, 2000).map(i => 2*i),
  };
  return sinks;
}

function makeDOMDriver(mountSelector) {
  return function DOMDriver(obj$) {
    function createElement(obj) {
      const element = document.createElement(obj.tagName);
      obj.children
        .filter(c => typeof c === 'object')
        .map(createElement)
        .forEach(c => element.appendChild(c));
      obj.children
        .filter(c => typeof c === 'string')
        .forEach(c => element.innerHTML += c);
      return element;
    }
    obj$.subscribe(obj => {
      const container = document.querySelector(mountSelector);
      container.innerHTML = '';
      const element = createElement(obj);
      container.appendChild(element);
    });
    const DOMSource = {
      selectEvents: function(tagName, eventType) {
        return Rx.Observable.fromEvent(document, eventType)
          .filter(ev => ev.target.tagName === tagName.toUpperCase());
      }
    }
    return DOMSource;
  }
}

function consoleLogDriver(msg$) {
  msg$.subscribe(msg => console.log(msg));
}

const drivers = {
  DOM: makeDOMDriver('#app'),
  Log: consoleLogDriver,
}

Cycle.run(main, drivers);


text:
//================================================================================
//Copyright (c) 2011, David Yu
//All rights reserved.
//--------------------------------------------------------------------------------
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
// 1. Redistributions of source code must retain the above copyright notice,
//    this list of conditions and the following disclaimer.
// 2. Redistributions in binary form must reproduce the above copyright notice,
//    this list of conditions and the following disclaimer in the documentation
//    and/or other materials provided with the distribution.
// 3. Neither the name of protostuff nor the names of its contributors may be used
//    to endorse or promote products derived from this software without
//    specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
// ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
// LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
// SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
// CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
// POSSIBILITY OF SUCH DAMAGE.
//================================================================================

package io.protostuff.parser;

import java.util.Collection;
import java.util.Map;
import java.util.Set;

/**
 * A sort of runtime error mechanism for st code generation to fail fast.
 *
 * @author David Yu
 * @created Nov 1, 2011
 */
public final class ErrorMap implements Map<String, Object>
{

    static final ErrorMap INSTANCE = new ErrorMap();

    private ErrorMap()
    {
    }

    @Override
    public void clear()
    {

    }

    @Override
    public boolean containsKey(Object arg0)
    {
        // error mechanism called by stringtemplate
        throw new IllegalStateException(String.valueOf(arg0));
    }

    @Override
    public Object get(Object arg0)
    {
        return containsKey(arg0);
    }

    @Override
    public boolean containsValue(Object arg0)
    {
        throw new UnsupportedOperationException();
    }

    @Override
    public Set<java.util.Map.Entry<String, Object>> entrySet()
    {
        throw new UnsupportedOperationException();
    }

    @Override
    public boolean isEmpty()
    {
        return false;
    }

    @Override
    public Set<String> keySet()
    {
        throw new UnsupportedOperationException();
    }

    @Override
    public Object put(String arg0, Object arg1)
    {
        throw new UnsupportedOperationException();
    }

    @Override
    public void putAll(Map<? extends String, ? extends Object> arg0)
    {
        throw new UnsupportedOperationException();
    }

    @Override
    public Object remove(Object arg0)
    {
        throw new UnsupportedOperationException();
    }

    @Override
    public int size()
    {
        return 1;
    }

    @Override
    public Collection<Object> values()
    {
        throw new UnsupportedOperationException();
    }

}

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.12"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Tempest: Modules</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>

<link href="navtree.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" />
<link href="style.css" rel="stylesheet" type="text/css"/>

Tempest

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

Modules

Here is a list of all modules:

[detail level 12]

 Core

 ▼GUI

 UI_Event

Generated by

     1.8.12


text:
layout: base
title: Inbucket
---

Inbucket disposable webmail

    Inbucket is an email testing application; it will accept messages for any email
    address and make them available to view via a web interface.

    Learn more
    Demo time!
    Download it

Why Inbucket?

 Need to test your webapps outbound emails with Mailinator but stuck
    behind a firewall? Want to keep the new application you are developing
    secret until it's time to release it?  Need to validate that emails go out
    as part of your integration test suite?  Want to send a link to a coworker
    demonstrating an email without giving them your gmail password?  Need to
    load test your application without melting your corporate Exchange server?
    Want to use production data in your test environment without the risk of
    test messages leaking to an end user?  Need to preview emails in multiple
    desktop email clients? Use Inbucket!

      Project Status

Inbucket is currently production quality: it is being used for real work.

      There is plenty more to do:

Integrate an embedded database to simplify storage

Sanitize HTML content in email before display

Easier installation

Please check the issues list
    for more details.

  {% if site.posts.size > 0 %}
    {% assign post = site.posts[0] %}

Latest News

{{post.title}}

{{post.date | date_to_string}}

        {{post.content}}

→ View more news posts

  {% endif %}


text:
package com.eternity.reference.json;

import java.lang.reflect.Type;

import com.eternity.common.message.MessageNames;
import com.eternity.reference.Messages;
import com.google.gson.JsonDeserializationContext;
import com.google.gson.JsonDeserializer;
import com.google.gson.JsonElement;
import com.google.gson.JsonParseException;

public class MessageNamesJsonDeserializer implements JsonDeserializer<MessageNames> {

	@Override
	public MessageNames deserialize(JsonElement arg0, Type arg1,
			JsonDeserializationContext arg2) throws JsonParseException {
		return Messages.getValueOf(arg0.getAsString());
	}

}


text:
var DOM = require('./dom-ie-8.js');

DOM.source.mode.document = "8";
DOM.source.mode.browser = "8 Compatability";

// same as default DOM

module.exports = DOM;


text:
package com.intellij.spring.webflow.el;

import com.intellij.openapi.module.Module;
import com.intellij.openapi.module.ModuleServiceManager;
import com.intellij.spring.webflow.el.scopeProviders.*;
import com.intellij.util.Function;
import com.intellij.util.containers.ContainerUtil;
import com.intellij.util.xml.DomElement;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

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

public class WebflowScopeProviderManager {
  private final List<WebflowScopeProvider> myProviders = new ArrayList<WebflowScopeProvider>();

  @NotNull
  public static WebflowScopeProviderManager getService(@NotNull Module module) {
    synchronized (module) {
      return ModuleServiceManager.getService(module, WebflowScopeProviderManager.class);
    }
  }

  public WebflowScopeProviderManager(@NotNull Module module) {
    // search scope algorithm: http://static.springframework.org/spring-webflow/docs/2.0.x/reference/html/ch03s06.html
    registerScopeProvider(new RequestScopeProvider());
    registerScopeProvider(new FlashScopeProvider());
    registerScopeProvider(new ViewScopeProvider(module));
    registerScopeProvider(new FlowScopeProvider());
    registerScopeProvider(new ConversationScopeProvider());
    registerScopeProvider(new RequestParametersProvider());
  }

  public List<WebflowScopeProvider> getAvailableProviders(@Nullable final DomElement domElement) {
    return ContainerUtil.mapNotNull(myProviders, new Function<WebflowScopeProvider, WebflowScopeProvider>() {
      public WebflowScopeProvider fun(final WebflowScopeProvider webflowScopeProvider) {
        return webflowScopeProvider.getScopes(domElement).size() > 0 ? webflowScopeProvider : null;
      }
    });
  }

  public List<WebflowScopeProvider> getProviders() {
    return myProviders;
  }

  @Nullable
  public WebflowScopeProvider getProvider(final WebflowScope scope) {
    for (WebflowScopeProvider provider : myProviders) {
      if (provider.getScope().equals(scope)) return provider;
    }
    return null;
  }

  @Nullable
  public WebflowScopeProvider getProvider(final String scopeName) {
    for (WebflowScopeProvider provider : myProviders) {
      if (provider.getScope().getName().equals(scopeName)) return provider;
    }
    return null;
  }

  public void registerScopeProvider(final WebflowScopeProvider provider) {
    myProviders.add(provider);
  }
}


text:
<?php

namespace BaseX\Resource\Iterator;

use ArrayIterator;
use BaseX\Database;
use BaseX\Iterator\CallbackParser;
use IteratorAggregate;

/**
 * Fetches the results of a LIST command to an array of arrays.
 */
class ListCommand implements IteratorAggregate
{

  protected $db;
  protected $path;

  public function __construct(Database $db, $path = '')
  {
    $this->db = $db;
    $this->path = $path;
  }

  public function getPath()
  {
    return $this->path;
  }

  public function getDatabase()
  {
    return $this->db;
  }

  public function getIterator()
  {
    $data = $this->db
      ->getSession()
      ->execute("LIST $this->db \"$this->path\"");

    $lines = explode("\n", $data);

    array_shift($lines);
    array_shift($lines);
    array_pop($lines);
    array_pop($lines);
    array_pop($lines);

    $resources = new ArrayIterator($lines);
    return new CallbackParser($resources, array('\BaseX\Resource', 'parseLine'));
  }

}


text:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="nasa_rmc.autonomy"
    android:versionCode="0"
    android:versionName="0" >

    <uses-feature android:name="android.hardware.usb.host" />
    <uses-feature android:name="android.hardware.camera"
        android:required="true" />

    <uses-permission android:name="android.permission.INTERNET" />
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
    <uses-permission android:name="android.permission.CAMERA" />

    <uses-sdk
        android:minSdkVersion="19"
        android:targetSdkVersion="23" />

    <application
        android:allowBackup="true"
        android:icon="@mipmap/mars"
        android:label="@string/app_name"
        android:supportsRtl="true"
        android:theme="@style/AppTheme">
        <activity
            android:name=".AutonomyActivity"
            android:label="@string/app_name"
            android:theme="@style/AppTheme.NoActionBar">
            <uses-library
                android:name="com.projecttango.libtango_device2"
                android:required="true" />
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
    </application>

</manifest>


text:
<?xml version="1.0" encoding="UTF-8"?>
<ivy-module version="2.0" xmlns:m="http://ant.apache.org/ivy/maven" xmlns:e="http://ant.apache.org/ivy/extra">
	<info organisation="com.github.tminglei"
		module="slick-pg_core_2.10"
		revision="0.8.6"
		status="release"
		publication="20180519103817"
	>
		<license name="BSD-style" url="http://www.opensource.org/licenses/bsd-license.php" />
		<description homepage="https://github.com/tminglei/slick-pg">
		Slick extensions for PostgreSQL - Core
		</description>
		<e:sbtTransformHash>ef6f40f005c9c813e9cdcea80eaa4d0cb5b1b262</e:sbtTransformHash>
	</info>
	<configurations>
		<conf name="default" visibility="public" description="runtime dependencies and master artifact can be used with this conf" extends="runtime,master"/>
		<conf name="master" visibility="public" description="contains only the artifact published by this module itself, with no transitive dependencies"/>
		<conf name="compile" visibility="public" description="this is the default scope, used if none is specified. Compile dependencies are available in all classpaths."/>
		<conf name="provided" visibility="public" description="this is much like compile, but indicates you expect the JDK or a container to provide it. It is only available on the compilation classpath, and is not transitive."/>
		<conf name="runtime" visibility="public" description="this scope indicates that the dependency is not required for compilation, but is for execution. It is in the runtime and test classpaths, but not the compile classpath." extends="compile"/>
		<conf name="test" visibility="private" description="this scope indicates that the dependency is not required for normal use of the application, and is only available for the test compilation and execution phases." extends="runtime"/>
		<conf name="system" visibility="public" description="this scope is similar to provided except that you have to provide the JAR which contains it explicitly. The artifact is always available and is not looked up in a repository."/>
		<conf name="sources" visibility="public" description="this configuration contains the source artifact of this module, if any."/>
		<conf name="javadoc" visibility="public" description="this configuration contains the javadoc artifact of this module, if any."/>
		<conf name="optional" visibility="public" description="contains all optional dependencies"/>
	</configurations>
	<publications>
		<artifact name="slick-pg_core_2.10" type="jar" ext="jar" conf="master"/>
	</publications>
	<dependencies>
		<dependency org="org.scala-lang" name="scala-reflect" rev="2.10.7" force="true" conf="compile->compile(*),master(compile);runtime->runtime(*)"/>
		<dependency org="com.typesafe.slick" name="slick_2.10" rev="2.1.0" force="true" conf="compile->compile(*),master(compile);runtime->runtime(*)"/>
		<dependency org="org.postgresql" name="postgresql" rev="9.4-1201-jdbc41" force="true" conf="compile->compile(*),master(compile);runtime->runtime(*)"/>
	</dependencies>
</ivy-module>


text:
<!doctype html>

<meta charset="utf-8">
<title>Dartmouth College, October 10-12 – Workshop in the Woods: Audio Visual Synthesis</title>
<meta name="description" content="October 10-12.">
<meta name="keywords" content="Jekyll, theme, themes, responsive, blog, modern">

<meta property="og:locale" content="en_US">
<meta property="og:type" content="article">
<meta property="og:title" content="Dartmouth College, October 10-12">
<meta property="og:description" content="October 10-12.">
<meta property="og:url" content="http://localhost:4000/index.html">
<meta property="og:site_name" content="Workshop in the Woods: Audio Visual Synthesis">

<link rel="canonical" href="http://localhost:4000/">
<link href="http://localhost:4000/feed.xml" type="application/atom+xml" rel="alternate" title="Workshop in the Woods: Audio Visual Synthesis Feed">
<link rel="author" href="https://google.com/+AndySarroff?rel=author">

<meta name="HandheldFriendly" content="True">
<meta name="MobileOptimized" content="320">
<meta name="viewport" content="width=device-width, initial-scale=1.0">

<link rel="stylesheet" href="http://localhost:4000/assets/css/main.min.css">

<link href="http://fonts.googleapis.com/css?family=Lato:300,400,700,300italic,400italic" rel="stylesheet" type="text/css">

<meta http-equiv="cleartype" content="on">

<link rel="shortcut icon" href="http://localhost:4000/favicon.ico">

<link rel="shortcut icon" href="http://localhost:4000/favicon.png">

<link rel="apple-touch-icon-precomposed" href="http://localhost:4000/images/apple-touch-icon-precomposed.png">

<link rel="apple-touch-icon-precomposed" sizes="72x72" href="http://localhost:4000/images/apple-touch-icon-72x72-precomposed.png">

<link rel="apple-touch-icon-precomposed" sizes="114x114" href="http://localhost:4000/images/apple-touch-icon-114x114-precomposed.png">

<link rel="apple-touch-icon-precomposed" sizes="144x144" href="http://localhost:4000/images/apple-touch-icon-144x144-precomposed.png">

	<button class="dl-trigger">Open Menu</button>

Home

			About

Bregman Music Audio Research Studio

A three day workshop on audio visual synthesis for creative computer scientists, programmers, musicians, and visual artists.

					 Email

					 Google+

			Posts

All Posts

All Tags

About

Venue

Travel

Schedule

Workshop in the Woods: Audio Visual Synthesis

Dartmouth College, October 10-12

          <time datetime="2014-08-21T00:00:00-04:00">August 21, 2014</time>Bregman Music Audio Research Studio

About the Workshop

      Sticky Post

Basics

The Digital Musics graduate program of the Dartmouth College Music Department is hosting a three day workshop from October 10 to October 12 in rural New Hampshire.

Details

This workshop brings together creative computer scientists, programmers, musicians, and visual artists for a three day workshop on audio and visual synthesis methods. The workshop is located in a remote pastoral setting where the participants will have free reign to roam the grounds, take hikes, and gather by a campfire at night. During the days the workshop will include tutorials, a poster session, and roundtable discussions. The evenings will include performances by invited multimedia artists and collective AV synthesis jams.

We invite anyone with research interest in creative applications for audio or visual synthesis to register. The following topics will be included in the workshop (among others):

Brain-media mappings

Neural net based synthesizers

Physical modeling

Parametric models

Data driven synthesis models and machine learning

Delicious meals and snacks will be catered by the inn. Lodging for 2 evenings will be provided.

Participate

If interested please register with us. After that, go to the wiki and create a page explaining a little bit about yourself. If you have any questions contact us.

Due to limited resources we require all attendees to participate fully in the event. If you are not sure that you can commit to the full weekend, please do not register. Contact us and explain your situation. If we can accommodate you we'll let you know.

Register Wiki Contact Us

    Previous

        1

    Next

    © 2014 Bregman Music Audio Research Studio. Powered by Jekyll using the HPSTR Theme.


text:
package io.github.resilience4j.timelimiter.autoconfigure;

import io.github.resilience4j.micrometer.tagged.TaggedTimeLimiterMetrics;
import io.github.resilience4j.micrometer.tagged.TaggedTimeLimiterMetricsPublisher;
import io.github.resilience4j.timelimiter.TimeLimiter;
import io.github.resilience4j.timelimiter.TimeLimiterRegistry;
import io.micrometer.core.instrument.MeterRegistry;
import io.micrometer.spring.autoconfigure.MetricsAutoConfiguration;
import org.springframework.boot.autoconfigure.AutoConfigureAfter;
import org.springframework.boot.autoconfigure.condition.ConditionalOnBean;
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
@ConditionalOnClass({MetricsAutoConfiguration.class, TimeLimiter.class,
    TaggedTimeLimiterMetricsPublisher.class})
@AutoConfigureAfter(MetricsAutoConfiguration.class)
@ConditionalOnProperty(value = "resilience4j.timelimiter.metrics.enabled", matchIfMissing = true)
public class TimeLimiterMicrometerAutoConfiguration {

    @Bean
    @ConditionalOnProperty(value = "resilience4j.timelimiter.metrics.legacy.enabled", havingValue = "true")
    @ConditionalOnMissingBean
    public TaggedTimeLimiterMetrics registerTimeLimiterMetrics(TimeLimiterRegistry timeLimiterRegistry) {
        return TaggedTimeLimiterMetrics.ofTimeLimiterRegistry(timeLimiterRegistry);
    }

    @Bean
    @ConditionalOnBean(MeterRegistry.class)
    @ConditionalOnProperty(value = "resilience4j.timelimiter.metrics.legacy.enabled", havingValue = "false", matchIfMissing = true)
    @ConditionalOnMissingBean
    public TaggedTimeLimiterMetricsPublisher taggedTimeLimiterMetricsPublisher(MeterRegistry meterRegistry) {
        return new TaggedTimeLimiterMetricsPublisher(meterRegistry);
    }

}


text:
package vtk.web.actions.properties;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.servlet.mvc.Controller;

import vtk.repository.Namespace;
import vtk.repository.Path;
import vtk.repository.Property;
import vtk.repository.Repository;
import vtk.repository.Resource;
import vtk.repository.TypeInfo;
import vtk.web.RequestContext;
import vtk.web.service.URL;

/**
 * Controller for editing a single property.
 *
 *

 *
Required inputs: name
 *
Optional inputs: namespace, default-value.
 *      The default-value determines the default value
 *      of the form input field if the property does not exist. The
 *      namespace input is a {@link Namespace} prefix
 *      used to qualify the property if multiple properties exist
 *      with the same name. Default is {@link Namespace#DEFAULT_NAMESPACE}.
 *
POST submission inputs: value - the
 *      property value. If this parameter is absent, the property is
 *      removed from the resource.
 *      redirect-after - URL to redirect to after submission.
 *      If not specified, a redirect to the form itself is sent.
 *

 */
public class SinglePropertyEditController implements Controller {
    private String viewName = null;

    public SinglePropertyEditController(String viewName) {
        this.viewName = viewName;
    }

    @Override
    public ModelAndView handleRequest(HttpServletRequest request,
            HttpServletResponse response) throws Exception {
        try {
            EditRequest req = new EditRequest(request);
            if ("POST".equals(request.getMethod())) {
                return handlePost(req, response);
            }
            return displayForm(req);
        }
        catch (IllegalArgumentException e) {
            return reject(response, HttpServletResponse.SC_BAD_REQUEST,
                    e.getMessage());
        }
    }

    private ModelAndView displayForm(EditRequest request) throws Exception {
        Resource resource = request.resource;
        Property property = resource.getProperty(request.namespace, request.name);

        String value = request.defaultValue;
        if (property != null) {
            value = property.getValue().getObjectValue().toString();
        }

        Map<String, Object> form = new HashMap<>();
        List<Object> inputs = new ArrayList<>();
        inputs.add(formElement("value", value, "text"));
        inputs.add(formElement("submit", "Save", "submit"));
        form.put("action", request.requestContext.getRequestURL());
        form.put("inputs", inputs);

        Map<String, Object> model = new HashMap<>();
        model.put("property", request.name);
        model.put("form", form);
        return new ModelAndView(viewName, model);
    }

    private ModelAndView handlePost(EditRequest request,
            HttpServletResponse response) throws Exception {
        Resource resource = request.resource;
        Property property = resource.getProperty(request.namespace, request.name);

        String value = request.value;
        if (value == null || value.trim().equals("")) {
            resource.removeProperty(request.namespace, request.name);
        }
        else {
            property = request.typeInfo
                    .createProperty(request.namespace, request.name, value);
            resource.addProperty(property);
        }

        RequestContext requestContext = request.requestContext;
        requestContext.getRepository()
            .store(requestContext.getSecurityToken(), null, resource);

        response.sendRedirect(request.redirectURL.toString());
        return null;
    }

    private ModelAndView reject(HttpServletResponse response, int sc, String msg) throws Exception {
        response.setStatus(sc);
        response.getWriter().write(msg);
        response.flushBuffer();
        return null;
    }

    private Object formElement(String name, String value, String type) {
        Map<String, Object> element = new HashMap<String, Object>();
        element.put("name", name);
        element.put("value", value);
        element.put("type", type);
        return element;
    }

    private static class EditRequest {
        private RequestContext requestContext;
        private Resource resource;
        private TypeInfo typeInfo;
        private Namespace namespace;
        private String name;
        private String value;
        private String defaultValue;
        private URL redirectURL;

        public EditRequest(HttpServletRequest request) throws Exception {
            String name = request.getParameter("name");
            if (name == null)
                throw new IllegalArgumentException(
                        "Parameter 'name' is required");
            this.name = name;
            this.defaultValue = request.getParameter("default-value");
            this.value = request.getParameter("value");
            this.requestContext = RequestContext.getRequestContext(request);
            String namespace = request.getParameter("namespace");

            String token = requestContext.getSecurityToken();
            Repository repository = requestContext.getRepository();
            Path uri = requestContext.getResourceURI();

            this.resource = repository.retrieve(token, uri, true);
            Namespace ns = Namespace.DEFAULT_NAMESPACE;
            this.typeInfo = repository.getTypeInfo(resource);

            if (namespace != null) {
                ns = typeInfo.getNamespaceByPrefix(namespace);
            }
            this.namespace = ns;
            String redir = request.getParameter("redirect-after");

            this.redirectURL = redir == null ? requestContext.getRequestURL()
                    : requestContext.getRequestURL().relativeURL(redir);
        }
    }
}


text:
package return_deal

import (
	"encoding/xml"
	"net/http"

	. "github.com/fudali113/doob/http/const"
)

//	处理返回 type 为 xml 或者返回单个对象的 func
type ReturnXmlDealer struct {
	DealerName
}

func (*ReturnXmlDealer) MacthType(str string) bool {
	return matchPrefix(str, "xml")
}

//	实现 Deal 方法
func (*ReturnXmlDealer) Deal(returnType *ReturnType, w http.ResponseWriter) {
	var data interface{}
	if returnType.Data == nil {
		data = map[string]string{}
	} else {
		data = returnType.Data
	}
	xml, err := xml.Marshal(data)
	if err != nil {
		panic(err)
	}
	w.Header().Add(CONTENT_TYPE, APP_XML)
	w.Write(xml)
}

func init() {
	AddReturnDealer(&ReturnXmlDealer{DealerName: DealerName{name: DEFAULT_XML_DEALER_NAME}})
}


text:
Presto is a distributed SQL query engine for big data.

See the [User Manual](http://prestodb.io/docs/current/) for deployment instructions and end user documentation.

## Requirements

* Mac OS X or Linux
* Java 7, 64-bit
* Maven 3 (for building)
* Python 2.4+ (for running with the launcher script)

## Building Presto

Presto is a standard Maven project. Simply run the following command from the project root directory:

    mvn clean install

On the first build, Maven will download all the dependencies from the internet and cache them in the local repository (`~/.m2/repository`), which can take a considerable amount of time. Subsequent builds will be faster.

Presto has a comprehensive set of unit tests that can take several minutes to run. You can disable the tests when building:

    mvn clean install -DskipTests

## Running Presto in your IDE

### Overview

After building Presto for the first time, you can load the project into your IDE and run the server. We recommend using [IntelliJ IDEA](http://www.jetbrains.com/idea/). Because Presto is a standard Maven project, you can import it into your IDE using the root `pom.xml` file.

Presto comes with sample configuration that should work out-of-the-box for development. Use the following options to create a run configuration:

* Main Class: `com.facebook.presto.server.PrestoServer`
* VM Options: `-ea -Xmx2G -Dconfig=etc/config.properties -Dlog.levels-file=etc/log.properties`
* Working directory: `$MODULE_DIR$`
* Use classpath of module: `presto-server`

The working directory should be the `presto-server` subdirectory. In IntelliJ, using `$MODULE_DIR$` accomplishes this automatically.

Additionally, the Hive plugin needs to be configured with location of your Hive metastore Thrift service. Add the following to the list of VM options, replacing `localhost:9083` with the correct host and port:

    -Dhive.metastore.uri=thrift://localhost:9083

### Using SOCKS for Hive or HDFS

If your Hive metastore or HDFS cluster is not directly accessible to your local machine, you can use SSH port forwarding to access it. Setup a dynamic SOCKS proxy with SSH listening on local port 1080:

    ssh -v -N -D 1080 server

Then add the following to the list of VM options:

    -Dhive.metastore.thrift.client.socks-proxy=localhost:1080

### Using HDFS with Federation

If your Hive metastore references files stored on a federated HDFS, you should provide your HDFS config files as a VM option:

    -Dhive.config.resources=/etc/hadoop/conf/core-site.xml,/etc/hadoop/conf/hdfs-site.xml

### Running the CLI

Start the CLI to connect to the server and run SQL queries:

    presto-cli/target/presto-cli-*-executable.jar

Run a query to see the nodes in the cluster:

    SELECT * FROM sys.node;

In the sample configuration, the Hive connector is mounted in the `hive` catalog, so you can run the following queries to show the tables in the Hive database `default`:

    SHOW TABLES FROM hive.default;


text:
#ifndef ATTRIBUTES_H
#define ATTRIBUTES_H

#include "xlw/MyContainers.h"
#include <xlw/CellMatrix.h>
#include <xlw/DoubleOrNothing.h>
#include <xlw/ArgList.h>
#include "reftest.h"

using namespace xlw;

//<xlw:libraryname=MyTestLibrary
std::string // tests empty args
//<xlw:threadsafe
EmptyArgFunction();

short // echoes a short
//<xlw:threadsafe
EchoShort(short x // number to be echoed
       );

MyMatrix // echoes a matrix
//<xlw:threadsafe
EchoMat(const MyMatrix& Echoee // argument to be echoed
        );

MyMatrix // echoes a matrix
//<xlw:threadsafe
EchoMatrix(const NEMatrix& Echoee // argument to be echoed
        );

MyArray // echoes an array
//<xlw:threadsafe
EchoArray(const MyArray& Echoee // argument to be echoed
                  );

CellMatrix // echoes a cell matrix
//<xlw:time
//<xlw:threadsafe
EchoCells(const CellMatrix& Echoee// argument to be echoed
                   );

double // computes the circumference of a circle
//<xlw:time
//<xlw:threadsafe
Circ(double Diameter //the circle's diameter
            );

std::wstring // Concatenates two strings
//<xlw:time
//<xlw:threadsafe
Concat(std::wstring str1 // first string
       , std::wstring str2 //second string
       );

MyArray // computes mean and variance of a range
//<xlw:time
//<xlw:threadsafe
Stats(const MyArray& data // input for computation
      );

std::string // says hello name
//<xlw:time
//<xlw:threadsafe
HelloWorldAgain(std::string name // name to be echoed
           );

unsigned long // echoes an unsigned int
//<xlw:threadsafe
EchoUL( unsigned long b  // number to echo
     );

int // echoes an int
//<xlw:threadsafe
EchoInt( int b  // number to echo
     );

double // tests DoubleOrNothingType
//<xlw:time
//<xlw:threadsafe
EchoDoubleOrNothing( DoubleOrNothing x // value to specify
                    , double defaultValue // value to use if not specified
                    );

CellMatrix // echoes arg list
//<xlw:time
//<xlw:threadsafe
EchoArgList( ArgumentList args  // arguments to echo
     );

double // system clock
//<xlw:volatile
//<xlw:time
//<xlw:threadsafe
SystemTime(DoubleOrNothing ticksPerSecond // number to divide by
           );

bool // checks to see if there's an error
//<xlw:threadsafe
ContainsError(const CellMatrix& input2 // data to check for errors
                             );

bool // checks to see if there's a div by zero
//<xlw:threadsafe
ContainsDivByZero(const CellMatrix& input // data to check for errors
                             );

double // returns ID of current execution thread
//<xlw:threadsafe
GetThreadId();

std::string // return a string indicating datatype of OPER/OPER12 input
//<xlw:time
//<xlw:threadsafe
typeString(const XlfOper &input // value on which to perform type check
           );

std::string // return a string indicating datatype of XLOPER/XLOPER12 input
//<xlw:time
//<xlw:threadsafe
typeString2(const reftest &input // value on which to perform type check
           );

std::string // the text of the note attached to the calling cell
//<xlw:macrosheet
GetNote();

#endif //ATTRIBUTES_H


text:
module.exports = function LoadsPlugin(plugins) {

  plugins.load(require('./integrations'), {
    id: 'integrations',
    uri: require.resolve('./integrations')
  });
}


text:
<?xml version="1.0" encoding="UTF-8"?>
<persistence version="2.0"
	xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd">

	<persistence-unit name="tt">
		<properties>
			<property name="eclipselink.ddl-generation" value="create-or-extend-tables"/>
			<property name="eclipselink.ddl-generation.output-mode" value="database"/>

			<property name="eclipselink.target-database" value="Derby"/>
			<property name="eclipselink.platform.class.name" value="org.eclipse.persistence.platform.database.DerbyPlatform"/>

			<!--
			<property name="eclipselink.logging.level.sql" value="FINE"/>
			<property name="eclipselink.logging.parameters" value="true"/>
			-->
		</properties>
	</persistence-unit>

</persistence>


text:
require 'logger'
require 'yaml'
require 'rubygems'
require 'curses'
require 'eventmachine'

require_relative 'readconfig'


text:
require 'spec_helper'

describe CarrierWave::Uploader::Base do
  let(:uploader) do
    Class.new(CarrierWave::Uploader::Base)
  end

  let(:derived_uploader) do
    Class.new(uploader)
  end

  it 'inserts :gcloud as a known storage engine' do
    uploader.configure do |config|
      expect(config.storage_engines).to have_key(:gcloud)
    end
  end

  it 'defines gcloud specific storage options' do
    expect(uploader).to respond_to(:gcloud_attributes)
  end

  it 'defines gcloud_credentials option on uploader' do
    expect(uploader).to respond_to(:gcloud_credentials)
  end

  it 'defines gcloud_authenticated_url_expiration option on uploader' do
    expect(uploader).to respond_to(:gcloud_authenticated_url_expiration)
  end

end


text:
package io.druid.segment;

/**
 */
public class BaseProgressIndicator implements ProgressIndicator
{
  @Override
  public void progress()
  {
    // do nothing
  }

  @Override
  public void start()
  {
    // do nothing
  }

  @Override
  public void stop()
  {
    // do nothing
  }

  @Override
  public void startSection(String section)
  {
    // do nothing
  }

  @Override
  public void stopSection(String section)
  {
    // do nothing
  }
}


text:
<?php
namespace Horus\BackendBundle\Repository;

use Doctrine\ORM\EntityRepository;

/**
 * Class AddressesRepository
 * @package Horus\BackendBundle\Repository
 */
class AddressesRepository extends EntityRepository
{

}


text:
package opencl

import "fmt"

type kernelType uint8

// The list of kernels that implement the tracer.
const (
	// camera kernels
	generatePrimaryRays kernelType = iota
	// intersection kernels
	rayIntersectionTest
	rayIntersectionQuery
	rayPacketIntersectionQuery
	// pt kernels
	shadeHits
	shadePrimaryRayMisses
	shadeIndirectRayMisses
	accumulateEmissiveSamples
	// hdr kernels
	tonemapSimpleReinhard
	// accumulator
	clearAccumulator
	aggregateAccumulator
	// debugging
	debugClearBuffer
	debugRayIntersectionDepth
	debugRayIntersectionNormals
	debugEmissiveSamples
	debugThroughput
	debugAccumulator
	//
	numKernels
)

// Implements Stringer; map kernel type to the kernel name as defined in the CL source files.
func (kt kernelType) String() string {
	switch kt {
	case generatePrimaryRays:
		return "generatePrimaryRays"
	case rayIntersectionTest:
		return "rayIntersectionTest"
	case rayIntersectionQuery:
		return "rayIntersectionQuery"
	case rayPacketIntersectionQuery:
		return "rayPacketIntersectionQuery"
	case shadeHits:
		return "shadeHits"
	case shadePrimaryRayMisses:
		return "shadePrimaryRayMisses"
	case shadeIndirectRayMisses:
		return "shadeIndirectRayMisses"
	case accumulateEmissiveSamples:
		return "accumulateEmissiveSamples"
	case tonemapSimpleReinhard:
		return "tonemapSimpleReinhard"
	case clearAccumulator:
		return "clearAccumulator"
	case aggregateAccumulator:
		return "aggregateAccumulator"
	case debugClearBuffer:
		return "debugClearBuffer"
	case debugRayIntersectionDepth:
		return "debugRayIntersectionDepth"
	case debugRayIntersectionNormals:
		return "debugRayIntersectionNormals"
	case debugEmissiveSamples:
		return "debugEmissiveSamples"
	case debugThroughput:
		return "debugThroughput"
	case debugAccumulator:
		return "debugAccumulator"
	default:
		panic(fmt.Sprintf("Unsupported kernel type: %d", kt))
	}
}


text:
/**
 * @file    LPC214x/serial_lld.h
 * @brief   LPC214x low level serial driver header.
 *
 * @addtogroup SERIAL
 * @{
 */

#ifndef _SERIAL_LLD_H_
#define _SERIAL_LLD_H_

#if HAL_USE_SERIAL || defined(__DOXYGEN__)

/*===========================================================================*/
/* Driver constants.                                                         */
/*===========================================================================*/

/*===========================================================================*/
/* Driver pre-compile time settings.                                         */
/*===========================================================================*/

/**
 * @brief   UART0 driver enable switch.
 * @details If set to @p TRUE the support for UART0 is included.
 * @note    The default is @p TRUE .
 */
#if !defined(USE_LPC214x_UART0) || defined(__DOXYGEN__)
#define USE_LPC214x_UART0           TRUE
#endif

/**
 * @brief   UART1 driver enable switch.
 * @details If set to @p TRUE the support for UART1 is included.
 * @note    The default is @p TRUE.
 */
#if !defined(USE_LPC214x_UART1) || defined(__DOXYGEN__)
#define USE_LPC214x_UART1           TRUE
#endif

/**
 * @brief   FIFO preload parameter.
 * @details Configuration parameter, this values defines how many bytes are
 *          preloaded in the HW transmit FIFO for each interrupt, the maximum
 *          value is 16 the minimum is 1.
 * @note    An high value reduces the number of interrupts generated but can
 *          also increase the worst case interrupt response time because the
 *          preload loops.
 */
#if !defined(LPC214x_UART_FIFO_PRELOAD) || defined(__DOXYGEN__)
#define LPC214x_UART_FIFO_PRELOAD   16
#endif

/**
 * @brief   UART0 interrupt priority level setting.
 */
#if !defined(LPC214x_UART0_PRIORITY) || defined(__DOXYGEN__)
#define LPC214x_UART0_PRIORITY      1
#endif

/**
 * @brief   UART1 interrupt priority level setting.
 */
#if !defined(LPC214x_UART1_PRIORITY) || defined(__DOXYGEN__)
#define LPC214x_UART1_PRIORITY      2
#endif

/*===========================================================================*/
/* Derived constants and error checks.                                       */
/*===========================================================================*/

#if (LPC214x_UART_FIFO_PRELOAD < 1) || (LPC214x_UART_FIFO_PRELOAD > 16)
#error "invalid LPC214x_UART_FIFO_PRELOAD setting"
#endif

/*===========================================================================*/
/* Driver data structures and types.                                         */
/*===========================================================================*/

/**
 * @brief   LPC214x Serial Driver configuration structure.
 * @details An instance of this structure must be passed to @p sdStart()
 *          in order to configure and start a serial driver operations.
 */
typedef struct {
  /**
   * @brief Bit rate.
   */
  uint32_t                  sc_speed;
  /**
   * @brief Initialization value for the LCR register.
   */
  uint32_t                  sc_lcr;
  /**
   * @brief Initialization value for the FCR register.
   */
  uint32_t                  sc_fcr;
} SerialConfig;

/**
 * @brief   @p SerialDriver specific data.
 */
#define _serial_driver_data                                                 \
  _base_asynchronous_channel_data                                           \
  /* Driver state.*/                                                        \
  sdstate_t                 state;                                          \
  /* Input queue.*/                                                         \
  InputQueue                iqueue;                                         \
  /* Output queue.*/                                                        \
  OutputQueue               oqueue;                                         \
  /* Input circular buffer.*/                                               \
  uint8_t                   ib[SERIAL_BUFFERS_SIZE];                        \
  /* Output circular buffer.*/                                              \
  uint8_t                   ob[SERIAL_BUFFERS_SIZE];                        \
  /* End of the mandatory fields.*/                                         \
  /* Pointer to the USART registers block.*/                                \
  UART                      *uart;

/*===========================================================================*/
/* Driver macros.                                                            */
/*===========================================================================*/

/*===========================================================================*/
/* External declarations.                                                    */
/*===========================================================================*/

#if USE_LPC214x_UART0 && !defined(__DOXYGEN__)
extern SerialDriver SD1;
#endif
#if USE_LPC214x_UART1 && !defined(__DOXYGEN__)
extern SerialDriver SD2;
#endif

#ifdef __cplusplus
extern "C" {
#endif
  void sd_lld_init(void);
  void sd_lld_start(SerialDriver *sdp, const SerialConfig *config);
  void sd_lld_stop(SerialDriver *sdp);
#ifdef __cplusplus
}
#endif

#endif /* HAL_USE_SERIAL */

#endif /* _SERIAL_LLD_H_ */

/** @} */


text: nunjucks.configure({ autoescape: false });


text:
<?xml version="1.0" encoding="UTF-8"?>
<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">
    <modelVersion>4.0.0</modelVersion>

    <groupId>com.zerodhatech.kiteconnect</groupId>
    <artifactId>kiteconnect</artifactId>
    <version>3.1.14</version>
    <packaging>jar</packaging>

    <distributionManagement>
        <snapshotRepository>
            <id>ossrh</id>
            <url>https://oss.sonatype.org/content/repositories/snapshots</url>
        </snapshotRepository>
        <repository>
            <id>ossrh</id>
            <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
        </repository>
    </distributionManagement>

    <name>com.zerodhatech.kiteconnect:kiteconnect</name>
    <description>Kite Connect is a set of REST-like APIs that expose many capabilities required to build a complete investment and trading platform.</description>
    <url>https://github.com/rainmattertech/kiteconnectjava</url>

    <licenses>
        <license>
            <name>MIT License</name>
            <url>http://www.opensource.org/licenses/mit-license.php</url>
        </license>
    </licenses>

    <developers>
        <developer>
            <name>Sujith K S</name>
            <email>sujith@zerodha.com</email>
            <organization>Rainmatter</organization>
            <organizationUrl>http://rainmatter.com/</organizationUrl>
        </developer>
    </developers>

    <scm>
        <connection>scm:git:git:github.com/zerodhatech/kiteconnectjava.git</connection>
        <developerConnection>scm:git:ssh:github.com/zerodhatech/kiteconnectjava.git</developerConnection>
        <url>https://github.com/zerodhatech/javakiteconnect/tree/kite3</url>
    </scm>

    <build>
        <sourceDirectory>kiteconnect/src</sourceDirectory>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <configuration>
                    <source>1.7</source>
                    <target>1.7</target>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-source-plugin</artifactId>
                <version>2.2.1</version>
                <executions>
                    <execution>
                        <id>attach-sources</id>
                        <goals>
                            <goal>jar-no-fork</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-gpg-plugin</artifactId>
                <version>1.5</version>
                <executions>
                    <execution>
                        <id>sign-artifacts</id>
                        <phase>verify</phase>
                        <goals>
                            <goal>sign</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-javadoc-plugin</artifactId>
                <version>2.9.1</version>
                <executions>
                    <execution>
                        <id>attach-javadocs</id>
                        <goals>
                            <goal>jar</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>

    <dependencies>
        <dependency>
            <groupId>commons-codec</groupId>
            <artifactId>commons-codec</artifactId>
            <version>1.11</version>
        </dependency>
        <dependency>
            <groupId>net.sf.supercsv</groupId>
            <artifactId>super-csv</artifactId>
            <version>2.4.0</version>
        </dependency>
        <dependency>
            <groupId>com.neovisionaries</groupId>
            <artifactId>nv-websocket-client</artifactId>
            <version>2.3</version>
        </dependency>
        <dependency>
            <groupId>org.json</groupId>
            <artifactId>json</artifactId>
            <version>20171018</version>
        </dependency>
        <dependency>
            <groupId>com.squareup.okhttp3</groupId>
            <artifactId>okhttp</artifactId>
            <version>4.4.0</version>
        </dependency>
        <dependency>
            <groupId>com.squareup.okio</groupId>
            <artifactId>okio</artifactId>
            <version>2.4.3</version>
        </dependency>
        <dependency>
            <groupId>com.squareup.okhttp3</groupId>
            <artifactId>logging-interceptor</artifactId>
            <version>4.4.0</version>
        </dependency>
        <dependency>
            <groupId>org.jetbrains.kotlin</groupId>
            <artifactId>kotlin-stdlib</artifactId>
            <version>1.3.70</version>
        </dependency>
        <dependency>
            <groupId>com.google.code.gson</groupId>
            <artifactId>gson</artifactId>
            <version>2.6.2</version>
        </dependency>
    </dependencies>

</project>


text:
django-cms-fancybox
=================
An extension for Django CMS that lets you drop an image or link in a
placeholder and have it pop up a bigger image or rich text block in
a FancyBox popup.

Dependancies
============

- django (tested with 1.3)
- django-cms (tested with 2.2)
- django-filer
- django-tinymce (optional)

Getting Started
=============

To get started simply install using ``pip``:
::
    pip install django-cms-fancybox

Add ``cmsplugin_fancybox`` to your installed apps and ``syncdb`` (or migrate, if
you have south installed).

Your installed apps should look something like this:
::
	INSTALLED_APPS = (
	    'django.contrib.auth',
	    'django.contrib.contenttypes',
	    'django.contrib.sessions',
	    'django.contrib.sites',
	    'django.contrib.messages',
	    'django.contrib.admin',
	    'tinymce',
        'filer',
        'cms',
	    'cmsplugin_fancybox',
	)

Usage
=============

This plugin actually gives you two different types of fancybox plugins, a
Fancybox Image Popup and a Fancybox Rich Text Popup, with plans for more
down the road, such as a video popup and an iframe popup.

If you are using a Fancybox Image Popup, just drop the plugin in a Django
CMS placeholder, enter the link text or select a link image from Filer,
and then select the popup image to display when the link text/image is
clicked.

If you are using a Fancybox Rich Text Popup, just drop the plugin in a
Django CMS placeholder, enter the link text or select a link image from
Filer, and then enter the text to display when the link text/image is
clicked.  If you have django-tinymce installed it you will be able to enter
rich text, otherwise it's just a text field.

TODO
=============

- Add some optional height/width fields for the Rich Text popup window.
- Add support for a Video Popup
- Add support for an Iframe Popup


text:
Registry

Here are a few stores we have registered with. Thank you for your generosity!

        {{ site.labels.registry }}

        {{ site.labels.registry }}

        {{ site.labels.registry }}


text:
class CategoriesOrganizations < ActiveRecord::Migration
  def up
    create_table :categories_organizations do |t|
     t.references :category
     t.references :organization
    end
  end

  def down
    drop_table :categories_organizations
  end
end


text:
/*global describe:false,it:false,process:false,require:false,__dirname:false*/
/*exported should*/
var etcjs,
    should = require('should'),
    env = process.env.NODE_ENV;

describe('node environment', function() {
    'use strict';

    it('should be running on \'' + env + '\' environment', function() {
        env.should.equal('testing');
    });
});

describe('etcjs', function() {
    'use strict';

    it('should be an instance of Object', function() {
        etcjs = require(__dirname + '/../../lib/etcjs');
        etcjs.should.be.an.instanceof(Object);
    });
});

describe('etcjs API', function() {
    'use strict';

    it('should have a \'load\' function', function() {
        etcjs = require(__dirname + '/../../lib/etcjs');
        etcjs.load.should.be.an.instanceof(Function);
    });

    it('should have a \'get\' function', function() {
        etcjs = require(__dirname + '/../../lib/etcjs');
        etcjs.get.should.be.an.instanceof(Function);
    });

    it('should have a \'set\' function', function() {
        etcjs = require(__dirname + '/../../lib/etcjs');
        etcjs.set.should.be.an.instanceof(Function);
    });

    it('should be able to load configuration from default location',
        function(done) {
            (function() {
                etcjs = require(__dirname + '/../../lib/etcjs');
                etcjs.load(function() {
                    done();
                });
            })
            .should.not.throw();
        });
    it('should be able to get environment variable by key', function(
        done) {
        (function() {
            etcjs = require(__dirname + '/../../lib/etcjs');
            etcjs.load({
                dir: '../etc/',
                defaultFile: '../etc/all.js'
            }, function() {
                etcjs.get('FOO')
                    .should.equal('bar');
                done();
            });
        })
        .should.not.throw();
    });

    it('should be able to get all environment variables if no key',
        function(done) {
            (function() {
                etcjs = require(__dirname + '/../../lib/etcjs');
                etcjs.load({
                    dir: '../etc/',
                    defaultFile: '../etc/all.js'
                }, function() {
                    etcjs.get()
                        .should.be.instanceof(Object);
                    done();
                });
            })
            .should.not.throw();
        });

    it('should be able to set environment variable value by key',
        function(done) {
            (function() {
                etcjs = require(__dirname + '/../../lib/etcjs');
                etcjs.load({
                    dir: '../etc/',
                    defaultFile: '../etc/all.js'
                }, function() {
                    etcjs.set('HELLO', 'WORLD');
                    etcjs.get('HELLO')
                        .should.equal('WORLD');
                    etcjs.set('HELLO', 'world!');
                    etcjs.get('HELLO')
                        .should.equal('world!');
                    done();
                });
            })
            .should.not.throw();
        });
});

describe('etcjs behavior', function() {
    'use strict';

    it('should not throw', function(done) {
        (function() {
            etcjs = require(__dirname + '/../../lib/etcjs');
            etcjs.load({
                dir: '../etc',
                defaultFile: '../etc/all.js'
            }, done);
        })
        .should.not.throw();
    });

    it('should not throw, even with trailing slash', function(done) {
        (function() {
            etcjs = require(__dirname + '/../../lib/etcjs');
            etcjs.load({
                dir: '../etc/',
                defaultFile: '../etc/all.js'
            }, done);
        })
        .should.not.throw();
    });

    it('should not throw, when callback is not provided', function(
        done) {
        (function() {
            etcjs = require(__dirname + '/../../lib/etcjs');
            etcjs.load({
                dir: '../etc/',
                defaultFile: '../etc/all.js'
            });
        })
        .should.not.throw();
        done();
    });

    it('should overwrite node environment', function(done) {
        (function() {
            etcjs = require(__dirname + '/../../lib/etcjs');
            etcjs.load({
                dir: '../etc/',
                defaultFile: '../etc/all.js'
            }, function() {
                var env = process.env;

                env.TO_BE_OVERWRITTEN.should.equal(
                    'overwritten value');
                done();
            });
        })
        .should.not.throw();
    });

    it('should load node environment from default', function(done) {
        (function() {
            etcjs = require(__dirname + '/../../lib/etcjs');
            etcjs.load({
                dir: '../etc/',
                defaultFile: '../etc/all.js'
            }, function() {
                var env = process.env;

                env.FOO_BAR.should.equal('baz qux');
                done();
            });
        })
        .should.not.throw();
    });

    it('should load node environment from environment specific file',
        function(done) {
            (function() {
                etcjs = require(__dirname + '/../../lib/etcjs');
                etcjs.load({
                    dir: '../etc/',
                    defaultFile: '../etc/all.js'
                }, function() {
                    var env = process.env;

                    env.FOO.should.equal('bar');
                    done();
                });
            })
            .should.not.throw();
        });

    it('should throw when required options are missing', function() {
        (function() {
            etcjs = require(__dirname + '/../../lib/etcjs');
            etcjs.load({});
        })
        .should.throw();
    });

    it('should throw when required option dir is missing', function() {
        (function() {
            etcjs = require(__dirname + '/../../lib/etcjs');
            etcjs.load({
                defaultFile: '../etc/all.js'
            });
        })
        .should.throw();
    });

    it('should throw when required option defaultFile is missing',
        function() {
            (function() {
                etcjs = require(__dirname + '/../../lib/etcjs');
                etcjs.load({
                    dir: '../etc/'
                });
            })
            .should.throw();
        });

    it('should throw when environment is missing', function() {
        (function() {
            process.env.NODE_ENV = '';
            etcjs = require(__dirname + '/../../lib/etcjs');
            etcjs.load();
        })
        .should.throw();
    });

    it('should throw when environment is invalid', function() {
        (function() {
            process.env.NODE_ENV =
                './node_module/bin/mocha';
            etcjs = require(__dirname + '/../../lib/etcjs');
            etcjs.load();
        })
        .should.throw();
    });
});


text:
<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">
  <modelVersion>4.0.0</modelVersion>
  <parent>
    <groupId>com.diamondq.common</groupId>
    <artifactId>common-parent</artifactId>
    <version>${revision}${sha1}${changelist}</version>
    <relativePath>../../common-parent</relativePath>
  </parent>
  <artifactId>common-injection.common</artifactId>
  <packaging>jar</packaging>
  <name>DiamondQ Common: Injection: Common</name>
  <properties>
    <osgi.export.base.package>com.diamondq.common.injection</osgi.export.base.package>
  </properties>
  <dependencies>
    <dependency>
      <groupId>jakarta.inject</groupId>
      <artifactId>jakarta.inject-api</artifactId>
    </dependency>
  </dependencies>
</project>


text:
<?php

use yii\helpers\Html;

// contant values
use app\models\general\GeneralLabel;

/* @var $this yii\web\View */
/* @var $model app\models\ElaporanPelaksanaan */

//$this->title = 'Update Elaporan Pelaksanaan: ' . ' ' . $model->elaporan_pelaksaan_id;
$this->title = GeneralLabel::updateTitle . ' E-Laporan Pelaksanaan / Program / Aktiviti';
//$this->params['breadcrumbs'][] = ['label' => 'E-Laporan Pelaksanaan / Program / Aktiviti', 'url' => ['index']];
//$this->params['breadcrumbs'][] = ['label' => GeneralLabel::viewTitle . ' E-Laporan Pelaksanaan / Program / Aktiviti', 'url' => ['view', 'id' => $model->elaporan_pelaksaan_id]];
//$this->params['breadcrumbs'][] = $this->title;
?>

<?= Html::encode($this->title) ?>

    <?= $this->render('_form', [
        'model' => $model,
        'searchModelGambar' => $searchModelGambar,
        'dataProviderGambar' => $dataProviderGambar,
        'searchModelObjektif' => $searchModelObjektif,
        'dataProviderObjektif' => $dataProviderObjektif,
        'searchModelKerjasama' => $searchModelKerjasama,
        'dataProviderKerjasama' => $dataProviderKerjasama,
        'searchModelKekurangan' => $searchModelKekurangan,
        'dataProviderKekurangan' => $dataProviderKekurangan,
        'searchModelKelebihan' => $searchModelKelebihan,
        'dataProviderKelebihan' => $dataProviderKelebihan,
        'readonly' => $readonly,
    ]) ?>


text:
<?php

/*
 * AsyncResult Object
 * @author Li Feilong <feiyang8068@qq.com>
 */

class CeleryException extends Exception {

}

/**
 * Celery AsyncResult
 *
 */
class AsyncResult {

    const TASK_META_PREFIX = 'celery-task-meta-';

    private $task_id; // string, queue name
    /**
     *
     * @var RedisClient
     */
    private $redis;
    private $body;

    private $timeout = 5;

    /**
     *
     * @param type $task_id
     * @param type $redis
     */
    public function __construct($task_id, $redis) {
        $this->task_id = $task_id;
        $this->redis = $redis;
    }

    /**
     * 设置
     * @param type $timeout
     */
    public function setTimeout($timeout) {
        $this->timeout = intval($timeout);
    }

    /**
     * 获取完全执行结果
     * @return array
     */
    public function getMessageBody() {
        $message = $this->redis->get(self::TASK_META_PREFIX . $this->task_id);

        if ($message !== false) {
            $this->body = json_decode($message);
            return $this->body;
        }

        return FALSE;
    }

    /**
     * 获取执行结果
     */
    public function get() {
        if (!$this->isReady()) {
            throw new CeleryTimeoutException(sprintf('Redis task %s(%s) did not return after %d seconds', $this->task_name, json_encode($this->task_args), $this->timeout), 4);
        }
        return $this->getResult();
    }

    /**
     * Get the Task Id
     * @return string
     */
    function getId() {
        return $this->task_id;
    }

    /**
     * Check if a task result is ready
     * @return bool
     */
    function isReady() {
        return ($this->getMessageBody() !== false);
    }

    /**
     * Return task status (needs to be called after isReady() returned true)
     * @return string 'SUCCESS', 'FAILURE' etc - see Celery source
     */
    function getStatus() {
        if (!$this->isReady()) {
            throw new CeleryException('Called getStatus before task was ready');
        }
        $ret = $this->getMessageBody();
        return isset($ret->status) ? $ret->status : false;
    }

    /**
     * Check if task execution has been successful or resulted in an error
     * @return bool
     */
    function isSuccess() {
        return($this->getStatus() == 'SUCCESS');
    }

    /**
     * If task execution wasn't successful, return a Python traceback
     * @return string
     */
    function getTraceback() {
        if (!$this->isReady()) {
            throw new CeleryException('Called getTraceback before task was ready');
        }
        $ret = $this->getMessageBody();
        return isset($ret->traceback) ? $ret->traceback : false;
    }

    /**
     * Return a result of successful execution.
     * In case of failure, this returns an exception object
     * @return mixed Whatever the task returned
     */
    function getResult() {
        if (!$this->body) {
            throw new CeleryException('Called getResult before task was ready');
        }
        return $this->body->result;
    }

}


text:
using Ninject.Activation;
using Ninject.Syntax;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Web;
using System.Web.Http.Dependencies;

namespace WebSignalR.App_Start
{
	public class NinjectScope : IDependencyScope
	{
		protected IResolutionRoot resolutionRoot;
		private bool _disposed = false;

		public NinjectScope(IResolutionRoot kernel)
		{
			resolutionRoot = kernel;
		}

		public object GetService(Type serviceType)
		{
			IRequest request = resolutionRoot.CreateRequest(serviceType, null, new Ninject.Parameters.Parameter[0], true, true);
			return resolutionRoot.Resolve(request).SingleOrDefault();
		}

		public IEnumerable<object> GetServices(Type serviceType)
		{
			IRequest request = resolutionRoot.CreateRequest(serviceType, null, new Ninject.Parameters.Parameter[0], true, true);
			return resolutionRoot.Resolve(request).ToList();
		}

		[DebuggerStepThrough]
		public void Dispose()
		{
			Dispose(true);
			GC.SuppressFinalize(this);
		}

		protected virtual void Dispose(bool disposing)
		{
			if (!_disposed)
			{
				if (disposing)
				{
					IDisposable disposable = (IDisposable)resolutionRoot;
					if (disposable != null)
						disposable.Dispose();

					resolutionRoot = null;
					GC.Collect();
				}
				_disposed = true;
			}
		}
	}
}


text:
<module>
	<adapter name="Document_GET" active="${documents.GET.active}">
		<receiver name="Document_GET"
				  className="nl.nn.adapterframework.receivers.GenericReceiver">

			<!-- GUID is passed over query param-->
			<listener
				className="nl.nn.adapterframework.http.rest.ApiListener"
				uriPattern="test"
				method="GET"
				produces="JSON"
			/>
		</receiver>
		<pipeline firstPipe="Select_Document">
			<inputValidator className="nl.nn.adapterframework.pipes.XmlValidator" schema="test.xsd" root="manageDatabaseREQ">
				<forward name="failure" path="Create_Response_Busy" />
				<forward name="parserError" path="error2json" />
			</inputValidator>
			<outputValidator className="nl.nn.adapterframework.pipes.XmlValidator" schema="test.xsd" root="manageDatabaseRLY">
				<forward name="failure" path="Create_Response_Busy" />
				<forward name="parserError" path="Create_Response_Busy" />
			</outputValidator>
			<exits>
				<exit path="READY" state="success" code="200"/>
				<exit path="NotModified" state="success" code="304" empty="true" />
				<exit path="BadRequest" state="error" code="400" empty="true" />
				<exit path="NotAuthorized" state="error" code="401" empty="true" />
				<exit path="NotAllowed" state="error" code="403" empty="true" />
				<exit path="ServerError" state="error" code="500" />
			</exits>

			<pipe name="Select_Document" className="nl.nn.adapterframework.pipes.GenericMessageSendingPipe" storeResultInSessionKey="documentInformation">
				<sender className="nl.nn.adapterframework.jdbc.FixedQuerySender"
						queryType="select"
						jmsRealm="test"
						query="test"
				>
					<param name="GUID" sessionKey="GUID"/>
				</sender>

				<forward name="success"     path="Is_Target_MetaData_Schema_Empty" />
				<forward name="exception"   path="ServerError" />
			</pipe>

			<pipe name="Is_Target_MetaData_Schema_Empty" className="nl.nn.adapterframework.pipes.XmlIf"
				  xpathExpression="test"
			>
				<forward name="then" path="Get_Principal" />
				<forward name="else" path="Magdat" />
			</pipe>

			<pipe name="Magdat" className="nl.nn.adapterframework.pipes.GenericMessageSendingPipe" getInputFromSessionKey="documentInformation" storeResultInSessionKey="Magdat">
				<sender className="nl.nn.adapterframework.senders.IbisLocalSender" javaListener="test" returnedSessionKeys="test">
					<param name="test" 		xpathExpression="test"/>
					<param name="test" 	sessionKey="securityHandler" />
				</sender>

				<forward name="success" path="Magdat_Result_Check" />
			</pipe>

			<pipe name="Magdat_Result_Check" className="nl.nn.adapterframework.pipes.XmlIf"
				  xpathExpression="test" preserveInput="true"
			>
				<forward name="then" path="Has_Security_Rules" />
				<forward name="else" path="NotAllowed" />
			</pipe>

			<pipe name="Has_Security_Rules" className="nl.nn.adapterframework.pipes.XmlIf"
				  xpathExpression="count(test) > 0"
			>
				<forward name="then" path="Extract_Security_Class_From_Metadata" />
				<forward name="else" path="Check_If_Conversion_Finished" />
			</pipe>

			<pipe name="Extract_Security_Class_From_Metadata" className="nl.nn.adapterframework.pipes.XsltPipe" storeResultInSessionKey="securityClassDocument"
				  styleSheetName="test.xsl" getInputFromSessionKey="documentInformation">

				<forward name="exception" path="error2json" />
				<forward name="success" path="Check_Security_Class_Against_Rules" />
			</pipe>

			<pipe name="Check_Security_Class_Against_Rules" className="nl.nn.adapterframework.pipes.XsltPipe" getInputFromFixedValue="<dummy/>"
				  styleSheetName="test.xsl"
			>
				<param name="securityClassDocument" sessionKey="securityClassDocument" type="domdoc"/>
				<param name="Magdat" 	sessionKey="Magdat" type="domdoc"/>
				<param name="otap"      value="${otap.stage}"/>

				<forward name="exception" path="error2json" />
				<forward name="success" path="Check_Security_Class_Against_Rules_Result" />
			</pipe>

			<pipe name="Check_Security_Class_Against_Rules_Result" className="nl.nn.adapterframework.pipes.XmlIf"
				  xpathExpression="test"
			>
				<forward name="then" path="Check_If_Conversion_Finished" />
				<forward name="else" path="NotAllowed" />
			</pipe>

			<pipe name="Get_Principal" className="nl.nn.adapterframework.pipes.GetPrincipalPipe"
				  storeResultInSessionKey="principal"
			>
				<forward name="success" path="Check_If_Conversion_Finished" />
			</pipe>

			<pipe name="Check_If_Conversion_Finished" className="nl.nn.adapterframework.pipes.XmlIf"
				  xpathExpression="string-length(test) > 0" getInputFromSessionKey="documentInformation"
			>
				<forward name="then" path="Find_Nested_Attachments" />
				<forward name="else" path="Create_Response_Busy" />
			</pipe>

			<pipe name="Find_Nested_Attachments" className="nl.nn.adapterframework.pipes.ForEachChildElementPipe"
				  storeResultInSessionKey="attachmentsResult" elementXPathExpression="test" getInputFromSessionKey="documentInformation">

				<sender className="nl.nn.adapterframework.senders.IbisLocalSender" javaListener="Select_Attachments">
					<param name="PARENT_CONVERSION_ID" xpathExpression="test"/>
				</sender>

				<forward name="success" path="Find_Retry_Actions" />
				<forward name="exception" path="READY" />
			</pipe>

			<pipe name="Find_Retry_Actions" className="nl.nn.adapterframework.pipes.GenericMessageSendingPipe" storeResultInSessionKey="retryActions">
				<sender className="nl.nn.adapterframework.jdbc.FixedQuerySender"
						queryType="select"
						jmsRealm="test"
						query="test"
				>
					<param name="test" sessionKey="test"/>
					<param name="test" sessionKey="test" xpathExpression="test"/>
				</sender>

				<forward name="success"     path="Call_DPDH" />
				<forward name="exception"   path="ServerError" />
			</pipe>

			<pipe name="Call_DPDH" className="nl.nn.adapterframework.pipes.GenericMessageSendingPipe">
				<sender className="nl.nn.adapterframework.senders.IbisLocalSender" javaListener="test">
					<param name="test" sessionKey="test" xpathExpression="test"/>
					<param name="test" sessionKey="test" xpathExpression="test"/>
					<param name="test" value="test"/>
					<param name="test" sessionKey="documentInformation" xpathExpression="test"/>
					<param name="test" value="test"/>
					<param name="test" sessionKey="documentInformation" xpathExpression="test"/>
					<param name="test" sessionKey="test"/>
					<param name="test" sessionKey="documentInformation" xpathExpression="test"/>
				</sender>

				<forward name="success" path="Create_Response" />
				<forward name="exception" path="ServerError" />
			</pipe>

			<pipe name="Create_Response" className="nl.nn.adapterframework.pipes.XsltPipe"
				  styleSheetName="Document_GET/xsl/CreateResponse.xsl" getInputFromSessionKey="documentInformation">

				<param name="test" sessionKey="test" type="domdoc" defaultValue="<dummy/>"/>
				<param name="test" sessionKey="test" type="domdoc"/>

				<forward name="exception" path="error2json" />
				<forward name="success" path="xml2json" />
			</pipe>

			<pipe name="xml2json" className="nl.nn.adapterframework.pipes.Json2XmlValidator"
				  outputFormat="json" warn="false" schema="test.xsd" root="root"
			>
				<forward name="success" path="READY" />
				<forward name="failure" path="error2json"/>
			</pipe>

			<pipe name="Create_Response_Busy" className="nl.nn.adapterframework.pipes.XsltPipe"
				  styleSheetName="test.xsl" getInputFromSessionKey="documentInformation"
			>

				<forward name="exception" path="error2json" />
				<forward name="success" path="xml2json_busy" />
			</pipe>

			<pipe name="xml2json_busy" className="nl.nn.adapterframework.pipes.Json2XmlValidator"
				  outputFormat="json" warn="false" schema="test.xsd" root="root"
			>
				<forward name="success" path="READY" />
				<forward name="failure" path="error2json"/>
			</pipe>

			<pipe name="error2json" className="nl.nn.adapterframework.pipes.JsonPipe"
				  direction="xml2json"
			>
				<forward name="success" path="ServerError" />
				<forward name="failure" path="ServerError"/>
			</pipe>

		</pipeline>
	</adapter>
	<adapter name="Select_Attachments" description="test" active="${test}">

		<receiver name="Select_Attachments" className="nl.nn.adapterframework.receivers.GenericReceiver">
			<listener name="Select_Attachments" className="nl.nn.adapterframework.receivers.JavaListener"/>
		</receiver>

		<pipeline firstPipe="Select_Attachments">
			<exits>
				<exit path="EXIT" state="success" />
			</exits>

			<pipe name="Select_Attachments" className="nl.nn.adapterframework.pipes.GenericMessageSendingPipe" storeResultInSessionKey="documentInformation">
				<sender className="nl.nn.adapterframework.jdbc.FixedQuerySender"
						queryType="select"
						jmsRealm="test"
						query="test"
				>
					<param name="test" sessionKey="test" />
				</sender>

				<forward name="success" path="Find_Nested_Attachments" />
				<forward name="exception" path="EXIT" />
			</pipe>

			<pipe name="Find_Nested_Attachments" className="nl.nn.adapterframework.pipes.ForEachChildElementPipe"
				  storeResultInSessionKey="attachmentsResult" elementXPathExpression="test" preserveInput="true">

				<sender className="nl.nn.adapterframework.senders.IbisLocalSender" javaListener="Select_Attachments">
					<param name="test" xpathExpression="test"/>
				</sender>

				<forward name="success" path="Map_Attachment" />
				<forward name="exception" path="EXIT" />
			</pipe>

			<pipe name="Map_Attachment" className="nl.nn.adapterframework.pipes.XsltPipe"
				  styleSheetName="test.xsl"
			>
				<param name="test" sessionKey="test" type="domdoc" defaultValue="<dummy/>"/>

				<forward name="success" path="EXIT" />
			</pipe>

		</pipeline>
	</adapter>
</module>


text:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>BadgerDB: /afs/cs.wisc.edu/p/course/cs564-jignesh/public/projects/BadgerDB/bufmgr/src/exceptions/file_not_found_exception.h Source File</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">

Main Page

Namespaces

Classes

Files

      <form action="search.php" method="get">

             Search for
            <input type="text" name="query" value="" size="20" accesskey="s"/>

      </form>

/afs/cs.wisc.edu/p/course/cs564-jignesh/public/projects/BadgerDB/bufmgr/src/exceptions/file_not_found_exception.h

00001
00008 #pragma once
00009
00010 #include <string>
00011
00012 #include "badgerdb_exception.h"
00013
00014 namespace badgerdb {
00015
00020 class FileNotFoundException : public BadgerDbException {
00021  public:
00027   explicit FileNotFoundException(const std::string& name);
00028
00032   virtual const std::string& filename() const { return filename_; }
00033
00034  protected:
00038   const std::string& filename_;
00039 };
00040
00041 }

<address style="align: right;">Generated on Wed Feb 8 13:50:25 2012 for BadgerDB by

 1.4.7 </address>


text:
package com.facebook.buck.jvm.java.intellij;

import com.facebook.buck.util.immutables.BuckStyleImmutable;

import org.immutables.value.Value;

import java.nio.file.Path;
import java.util.Optional;
import java.util.Set;

/**
 * The information necessary to add the Android facet to the module. This essentially means the
 * Java code in the given module is written against the Android SDK.
 */
@Value.Immutable
@BuckStyleImmutable
abstract class AbstractIjModuleAndroidFacet {
  /**
   * @return path to the AndroidManifest.xml file.
   */
  public abstract Optional<Path> getManifestPath();

  /**
   * @return paths to resources (usually stuff under the res/ folder).
   */
  public abstract Set<Path> getResourcePaths();

  /**
   * @return paths to assets (usually stuff under the assets/ folder).
   */
  public abstract Set<Path> getAssetPaths();

  /**
   * @return paths to the proguard configuration.
   */
  public abstract Optional<Path> getProguardConfigPath();

  /**
   * @return whether or not this is an Android Library. IntelliJ identifies libraries using
   * a is_android_library_project setting in the module iml to allow other modules which
   * depend on it to inherit assets, resources, etc.
   */
  public abstract boolean isAndroidLibrary();

  /**
   * @return The package that the R file should be located in. This is used by android_resources
   * targets to specify the package their resources should referenced via.
   */
  public abstract Optional<String> getPackageName();

  public abstract boolean autogenerateSources();
}


text:
using System;

namespace LinqToDB.Mapping
{
	/// <summary>
	/// Associates a class with a column in a database table.
	/// </summary>
	[AttributeUsage(
		AttributeTargets.Field | AttributeTargets.Property| AttributeTargets.Class | AttributeTargets.Interface,
		AllowMultiple = true, Inherited = true)]
	public class ColumnAttribute : Attribute
	{
		public ColumnAttribute()
		{
			IsColumn = true;
		}

		public ColumnAttribute(string columnName) : this()
		{
			Name = columnName;
		}

		public ColumnAttribute(string columnName, string memberName) : this()
		{
			Name       = columnName;
			MemberName = memberName;
		}

		internal ColumnAttribute(string memberName, ColumnAttribute ca)
			: this(ca)
		{
			MemberName = memberName + "." + ca.MemberName.TrimStart('.');
		}

		internal ColumnAttribute(ColumnAttribute ca)
		{
			MemberName      = ca.MemberName;
			Configuration   = ca.Configuration;
			Name            = ca.Name;
			DataType        = ca.DataType;
			DbType          = ca.DbType;
			Storage         = ca.Storage;
			IsDiscriminator = ca.IsDiscriminator;
			PrimaryKeyOrder = ca.PrimaryKeyOrder;
			IsColumn        = ca.IsColumn;

			if (ca.HasSkipOnInsert()) SkipOnInsert = ca.SkipOnInsert;
			if (ca.HasSkipOnUpdate()) SkipOnUpdate = ca.SkipOnUpdate;
			if (ca.HasCanBeNull())    CanBeNull    = ca.CanBeNull;
			if (ca.HasIsIdentity())   IsIdentity   = ca.IsIdentity;
			if (ca.HasIsPrimaryKey()) IsPrimaryKey = ca.IsPrimaryKey;
			if (ca.HasLength())       Length       = ca.Length;
			if (ca.HasPrecision())    Precision    = ca.Precision;
			if (ca.HasScale())        Scale        = ca.Scale;
		}

		public string Configuration { get; set; }

		/// <summary>
		/// Gets or sets the name of a column.
		/// </summary>
		public string Name { get; set; }

		/// <summary>
		/// Gets or sets the name of an associated member name.
		/// </summary>
		public string MemberName { get; set; }

		/// <summary>
		/// Gets or sets the type of the database column.
		/// </summary>
		public DataType DataType { get; set; }

		/// <summary>
		/// Gets or sets the name of the database column type.
		/// </summary>
		public string DbType { get; set; }

		/// <summary>
		/// Use NonColumnAttribute instead.
		/// </summary>
		public bool IsColumn { get; set; }

		/// <summary>
		/// Gets or sets a private storage field to hold the value from a column.
		/// </summary>
		public string Storage { get; set; }

		/// <summary>
		/// Gets or sets whether a column contains a discriminator value for a LINQ to DB inheritance hierarchy.
		/// </summary>
		public bool IsDiscriminator { get; set; }

		private bool? _skipOnInsert;
		/// <summary>
		/// Gets or sets whether a column is insertable.
		/// </summary>
		public  bool   SkipOnInsert
		{
			get { return _skipOnInsert ?? false; }
			set { _skipOnInsert = value;         }
		}

		public bool HasSkipOnInsert() { return _skipOnInsert.HasValue; }

		private bool? _skipOnUpdate;
		/// <summary>
		/// Gets or sets whether a column is updatable.
		/// </summary>
		public  bool   SkipOnUpdate
		{
			get { return _skipOnUpdate ?? false; }
			set { _skipOnUpdate = value;         }
		}

		public bool HasSkipOnUpdate() { return _skipOnUpdate.HasValue; }

		private bool? _isIdentity;
		/// <summary>
		/// Gets or sets whether a column contains values that the database auto-generates.
		/// </summary>
		public  bool   IsIdentity
		{
			get { return _isIdentity ?? false; }
			set { _isIdentity = value;         }
		}

		public bool HasIsIdentity() { return _isIdentity.HasValue; }

		private bool? _isPrimaryKey;
		/// <summary>
		/// Gets or sets whether this class member represents a column that is part or all of the primary key of the table.
		/// </summary>
		public  bool   IsPrimaryKey
		{
			get { return _isPrimaryKey ?? false;  }
			set { _isPrimaryKey = value; }
		}

		public bool HasIsPrimaryKey() { return _isPrimaryKey.HasValue; }

		/// <summary>
		/// Gets or sets the Primary Key order.
		/// </summary>
		public int PrimaryKeyOrder { get; set; }

		private bool? _canBeNull;
		/// <summary>
		/// Gets or sets whether a column can contain null values.
		/// </summary>
		public  bool   CanBeNull
		{
			get { return _canBeNull ?? true; }
			set { _canBeNull = value;        }
		}

		public bool HasCanBeNull() { return _canBeNull.HasValue; }

		private int? _length;
		/// <summary>
		/// Gets or sets the length of the database column.
		/// </summary>
		public  int   Length
		{
			get { return _length ?? 0; }
			set { _length = value;         }
		}

		public bool HasLength() { return _length.HasValue; }

		private int? _precision;
		/// <summary>
		/// Gets or sets the precision of the database column.
		/// </summary>
		public  int   Precision
		{
			get { return _precision ?? 0; }
			set { _precision = value;         }
		}

		public bool HasPrecision() { return _precision.HasValue; }

		private int? _scale;
		/// <summary>
		/// Gets or sets the Scale of the database column.
		/// </summary>
		public  int   Scale
		{
			get { return _scale ?? 0; }
			set { _scale = value;         }
		}

		public bool HasScale() { return _scale.HasValue; }
	}
}


text:
namespace MT
{

	/// \class WrapperArray
	/// \brief Simple wrapper to work with raw memory as an array. Includes array bounds checking.
	template<class T>
	class WrapperArray
	{
		T* data;
		size_t count;

	private:

		WrapperArray(WrapperArray& ) {}
		void operator=(const WrapperArray&) {}

	public:

		WrapperArray(void* memoryChunk, size_t instanceCount)
			: data((T*)memoryChunk)
			, count(instanceCount)
		{
			MT_ASSERT(count == 0 || data, "Invalid data array");
		}

		const T &operator[]( size_t i ) const
		{
			MT_ASSERT( i < Size(), "bad index" );
			return data[i];
		}

		T &operator[]( size_t i )
		{
			MT_ASSERT( i < Size(), "bad index" );
			return data[i];
		}

		size_t Size() const
		{
			return count;
		}

		bool IsEmpty() const
		{
			return count == 0;
		}
	};

}


text:
<?xml version="1.0" encoding="UTF-8"?>
<site version="2.0">
  <key uri="/">
    <title>Framewerk</title>
    <content type="string">Congratulations, you have a working Framewerk installation</content>
  </key>
</site>


text:
class Api::V1::UserGroupsController < Api::ApiController
  include JsonApiController::PunditPolicy
  include Recents
  include IndexSearch

  require_authentication :create, :update, :destroy, scopes: [:group]
  resource_actions :show, :index, :update, :deactivate, :create
  schema_type :strong_params

  alias_method :user_group, :controlled_resource

  allowed_params :create, :name, :display_name, links: [ users: [] ]
  allowed_params :update, :name, :display_name

  search_by do |name, query|
    query.search_name(name.join(" "))
  end

  def destroy_links
    controlled_resources.first.memberships
      .where(user_id: params[:link_ids].split(',').map(&:to_i))
      .update_all(state: Membership.states[:inactive])
    deleted_resource_response
  end

  private

  def build_resource_for_create(create_params)
    group = super(create_params)
    group.memberships.build(**initial_member)
    group
  end

  def to_disable
    [ user_group ] |
      user_group.projects |
      user_group.collections |
      user_group.memberships
  end

  def initial_member
    {
     user: api_user.user,
     state: :active,
     roles: ["group_admin"]
    }
  end

  def context
    {current_user: api_user}
  end
end


text:
<?php

require __DIR__ . '/../vendor/autoload.php';

define('TEMP_DIR', __DIR__ . '/temp');
date_default_timezone_set('Europe/Prague');

\Tester\Environment::setup();
\Tracy\Debugger::$logDirectory = TEMP_DIR;


text:
<component name="ProjectDictionaryState">
  <dictionary name="madding" />
</component>