text:
<?xml version="1.0" encoding="UTF-8"?>
<!--
    Copyright 2014 Alexey Andreev.

    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at

         http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
-->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  <modelVersion>4.0.0</modelVersion>

  <groupId>org.teavm</groupId>
  <artifactId>teavm</artifactId>
  <version>0.7.0-SNAPSHOT</version>
  <packaging>pom</packaging>

  <name>TeaVM</name>
  <description>TeaVM aggregate project</description>
  <url>http://teavm.org</url>

  <licenses>
    <license>
      <name>The Apache Software License, Version 2.0</name>
      <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
      <distribution>repo</distribution>
      <comments>A business-friendly OSS license</comments>
    </license>
  </licenses>

  <developers>
    <developer>
      <id>konsoletyper</id>
      <name>Alexey Andreev</name>
      <email>konsoletyper@gmail.com</email>
      <timezone>+4</timezone>
    </developer>
  </developers>

  <scm>
    <url>https://github.com/konsoletyper/teavm</url>
    <connection>scm:git:git@github.com:konsoletyper/teavm.git</connection>
  </scm>

  <distributionManagement>
    <snapshotRepository>
      <id>sonatype-nexus-snapshots</id>
      <name>Sonatype Nexus Snapshots</name>
      <url>${sonatypeOssDistMgmtSnapshotsUrl}</url>
    </snapshotRepository>
    <repository>
      <id>sonatype-nexus-staging</id>
      <name>Nexus Release Repository</name>
      <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
    </repository>
  </distributionManagement>

  <properties>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    <sonatypeOssDistMgmtSnapshotsUrl>https://oss.sonatype.org/content/repositories/snapshots/</sonatypeOssDistMgmtSnapshotsUrl>

    <html4j.version>1.5</html4j.version>
    <slf4j.version>1.7.30</slf4j.version>
    <asm.version>9.4</asm.version>

    <java.version>11</java.version>
    <java-tests.version>17</java-tests.version>

    <rhino.version>1.7.11</rhino.version>

    <testng.version>7.1.0</testng.version>
    <junit.version>4.13.2</junit.version>

    <commons-cli.version>1.4</commons-cli.version>
    <commons-io.version>2.8.0</commons-io.version>

    <jzlib.version>1.1.3</jzlib.version>
    <joda-time.version>2.7</joda-time.version>
    <hppc.version>0.8.2</hppc.version>

    <jetty.version>9.4.38.v20210224</jetty.version>
    <javax-websocket.version>1.0</javax-websocket.version>
    <jackson.version>2.12.2</jackson.version>
    <gson.version>2.8.6</gson.version>

    <idea.version>2018.2.8</idea.version>

    <maven-plugin-api.version>3.3.3</maven-plugin-api.version>
    <maven-plugin-annotations.version>3.3</maven-plugin-annotations.version>

    <maven-compiler-plugin.version>3.10.1</maven-compiler-plugin.version>
    <maven-checkstyle-plugin.version>3.1.2</maven-checkstyle-plugin.version>
    <maven-surefire-plugin.version>3.0.0-M5</maven-surefire-plugin.version>
    <maven-source-plugin.version>3.2.1</maven-source-plugin.version>
    <maven-javadoc-plugin.version>3.2.0</maven-javadoc-plugin.version>
    <maven-jar-plugin.version>3.3.0</maven-jar-plugin.version>
    <maven-shade-plugin.version>3.4.0</maven-shade-plugin.version>
    <maven-gpg-plugin.version>1.6</maven-gpg-plugin.version>
    <exec-maven-plugin.version>3.0.0</exec-maven-plugin.version>
    <wagon-ftp.version>3.4.3</wagon-ftp.version>
    <checkstyle.version>8.41</checkstyle.version>

    <teavm.test.incremental>false</teavm.test.incremental>
    <teavm.test.threads>1</teavm.test.threads>
    <teavm.test.skip>true</teavm.test.skip>
  </properties>

  <modules>
    <module>metaprogramming/api</module>
    <module>interop/core</module>
    <module>core</module>
    <module>classlib</module>
    <module>jso/core</module>
    <module>jso/apis</module>
    <module>jso/impl</module>
    <module>html4j</module>
    <module>platform</module>
    <module>tools/c-incremental</module>
    <module>tools/core</module>
    <module>tools/maven</module>
    <module>tools/chrome-rdp</module>
    <module>tools/junit</module>
    <module>tools/devserver</module>
    <module>extras-slf4j</module>
    <module>metaprogramming/impl</module>
  </modules>

  <dependencyManagement>
    <dependencies>
      <dependency>
        <groupId>junit</groupId>
        <artifactId>junit</artifactId>
        <version>${junit.version}</version>
      </dependency>
      <dependency>
        <groupId>org.netbeans.html</groupId>
        <artifactId>net.java.html.boot</artifactId>
        <version>${html4j.version}</version>
        <exclusions>
          <exclusion>
            <groupId>org.ow2.asm</groupId>
            <artifactId>asm</artifactId>
          </exclusion>
        </exclusions>
      </dependency>
      <dependency>
        <groupId>org.netbeans.html</groupId>
        <artifactId>net.java.html.json.tck</artifactId>
        <version>${html4j.version}</version>
      </dependency>
      <dependency>
        <groupId>org.netbeans.html</groupId>
        <artifactId>ko4j</artifactId>
        <version>${html4j.version}</version>
      </dependency>
      <dependency>
        <groupId>commons-io</groupId>
        <artifactId>commons-io</artifactId>
        <version>${commons-io.version}</version>
      </dependency>
      <dependency>
        <groupId>org.ow2.asm</groupId>
        <artifactId>asm-commons</artifactId>
        <version>${asm.version}</version>
      </dependency>
      <dependency>
        <groupId>org.ow2.asm</groupId>
        <artifactId>asm-util</artifactId>
        <version>${asm.version}</version>
      </dependency>
      <dependency>
        <groupId>org.apache.maven</groupId>
        <artifactId>maven-plugin-api</artifactId>
        <version>${maven-plugin-api.version}</version>
      </dependency>
      <dependency>
        <groupId>org.apache.maven.plugin-tools</groupId>
        <artifactId>maven-plugin-annotations</artifactId>
        <version>${maven-plugin-annotations.version}</version>
      </dependency>
      <dependency>
        <groupId>org.apache.maven</groupId>
        <artifactId>maven-core</artifactId>
        <version>${maven-plugin-api.version}</version>
      </dependency>
      <dependency>
        <groupId>org.apache.maven</groupId>
        <artifactId>maven-artifact</artifactId>
        <version>${maven-plugin-api.version}</version>
      </dependency>
      <dependency>
        <groupId>javax.websocket</groupId>
        <artifactId>javax.websocket-api</artifactId>
        <version>${javax-websocket.version}</version>
      </dependency>
      <dependency>
        <groupId>org.eclipse.jetty</groupId>
        <artifactId>jetty-server</artifactId>
        <version>${jetty.version}</version>
      </dependency>
      <dependency>
        <groupId>org.eclipse.jetty.websocket</groupId>
        <artifactId>javax-websocket-server-impl</artifactId>
        <version>${jetty.version}</version>
      </dependency>
      <dependency>
        <groupId>org.eclipse.jetty</groupId>
        <artifactId>jetty-client</artifactId>
        <version>${jetty.version}</version>
      </dependency>
      <dependency>
        <groupId>org.eclipse.jetty.websocket</groupId>
        <artifactId>websocket-client</artifactId>
        <version>${jetty.version}</version>
      </dependency>
      <dependency>
        <groupId>org.slf4j</groupId>
        <artifactId>slf4j-api</artifactId>
        <version>${slf4j.version}</version>
      </dependency>
      <dependency>
        <groupId>com.fasterxml.jackson.core</groupId>
        <artifactId>jackson-annotations</artifactId>
        <version>${jackson.version}</version>
      </dependency>
      <dependency>
        <groupId>com.fasterxml.jackson.core</groupId>
        <artifactId>jackson-databind</artifactId>
        <version>${jackson.version}</version>
      </dependency>
      <dependency>
        <groupId>org.mozilla</groupId>
        <artifactId>rhino</artifactId>
        <version>${rhino.version}</version>
      </dependency>
      <dependency>
        <groupId>org.testng</groupId>
        <artifactId>testng</artifactId>
        <version>${testng.version}</version>
      </dependency>
      <dependency>
        <groupId>commons-cli</groupId>
        <artifactId>commons-cli</artifactId>
        <version>${commons-cli.version}</version>
      </dependency>
      <dependency>
        <groupId>com.google.code.gson</groupId>
        <artifactId>gson</artifactId>
        <version>${gson.version}</version>
      </dependency>
      <dependency>
        <groupId>com.jcraft</groupId>
        <artifactId>jzlib</artifactId>
        <version>${jzlib.version}</version>
      </dependency>
      <dependency>
        <groupId>joda-time</groupId>
        <artifactId>joda-time</artifactId>
        <version>${joda-time.version}</version>
      </dependency>
      <dependency>
        <groupId>com.carrotsearch</groupId>
        <artifactId>hppc</artifactId>
        <version>${hppc.version}</version>
      </dependency>
    </dependencies>
  </dependencyManagement>

  <build>
    <extensions>
      <extension>
        <groupId>org.apache.maven.wagon</groupId>
        <artifactId>wagon-ftp</artifactId>
        <version>${wagon-ftp.version}</version>
      </extension>
    </extensions>
    <pluginManagement>
      <plugins>
        <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-compiler-plugin</artifactId>
          <version>${maven-compiler-plugin.version}</version>
          <configuration>
            <source>${java.version}</source>
            <target>${java.version}</target>
          </configuration>
        </plugin>
        <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-javadoc-plugin</artifactId>
          <version>${maven-javadoc-plugin.version}</version>
          <executions>
            <execution>
              <id>build-javadoc</id>
              <goals>
                <goal>jar</goal>
              </goals>
              <phase>post-integration-test</phase>
              <configuration>
                <quiet>true</quiet>
              </configuration>
            </execution>
          </executions>
          <configuration>
            <source>${java.version}</source>
            <show>protected</show>
            <failOnError>false</failOnError>
          </configuration>
        </plugin>
        <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-source-plugin</artifactId>
          <version>${maven-source-plugin.version}</version>
          <executions>
            <execution>
              <id>attach-sources</id>
              <phase>post-integration-test</phase>
              <goals>
                <goal>jar-no-fork</goal>
              </goals>
            </execution>
          </executions>
        </plugin>
        <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-surefire-plugin</artifactId>
          <version>${maven-surefire-plugin.version}</version>
        </plugin>
        <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-checkstyle-plugin</artifactId>
          <version>${maven-checkstyle-plugin.version}</version>
          <dependencies>
            <dependency>
              <groupId>com.puppycrawl.tools</groupId>
              <artifactId>checkstyle</artifactId>
              <version>${checkstyle.version}</version>
            </dependency>
          </dependencies>
          <executions>
            <execution>
              <id>validate</id>
              <phase>validate</phase>
              <configuration>
                <encoding>UTF-8</encoding>
                <consoleOutput>true</consoleOutput>
                <failsOnError>true</failsOnError>
                <includeTestSourceDirectory>true</includeTestSourceDirectory>
              </configuration>
              <goals>
                <goal>check</goal>
              </goals>
            </execution>
          </executions>
          <configuration>
            <propertyExpansion>config_loc=${basedir}/..</propertyExpansion>
            <configLocation>../checkstyle.xml</configLocation>
          </configuration>
        </plugin>
        <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-jar-plugin</artifactId>
          <version>${maven-jar-plugin.version}</version>
        </plugin>
        <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-shade-plugin</artifactId>
          <version>${maven-shade-plugin.version}</version>
        </plugin>
        <plugin>
          <groupId>org.codehaus.mojo</groupId>
          <artifactId>exec-maven-plugin</artifactId>
          <version>${exec-maven-plugin.version}</version>
        </plugin>
      </plugins>
    </pluginManagement>
  </build>

  <profiles>
    <profile>
      <id>with-samples</id>
      <activation>
        <property>
          <name>teavm.build.all</name>
          <value>!false</value>
        </property>
      </activation>
      <modules>
        <module>samples</module>
      </modules>
    </profile>

    <profile>
      <id>with-tests</id>
      <activation>
        <activeByDefault>true</activeByDefault>
      </activation>
      <modules>
        <module>tests</module>
      </modules>
    </profile>

    <profile>
      <id>with-cli</id>
      <modules>
        <module>tools/cli</module>
      </modules>
    </profile>

    <profile>
      <id>with-idea</id>
      <modules>
        <module>tools/idea</module>
      </modules>
    </profile>

    <profile>
      <id>with-eclipse</id>
      <modules>
        <module>tools/eclipse</module>
      </modules>
    </profile>

    <profile>
      <id>with-classlib-comparison</id>
      <modules>
        <module>tools/classlib-comparison-gen</module>
      </modules>
    </profile>

    <profile>
      <id>sign-artifacts</id>
      <build>
        <plugins>
          <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-gpg-plugin</artifactId>
            <version>${maven-gpg-plugin.version}</version>
            <executions>
              <execution>
                <id>sign-artifacts</id>
                <phase>verify</phase>
                <goals>
                  <goal>sign</goal>
                </goals>
              </execution>
            </executions>
          </plugin>
        </plugins>
      </build>
    </profile>

    <profile>
      <id>deploy-to-bintray</id>
      <distributionManagement>
        <repository>
          <id>bintray-teavm</id>
          <name>Bintray Preview Repository</name>
          <url>https://api.bintray.com/maven/konsoletyper/teavm/teavm-dev/;publish=1</url>
        </repository>
      </distributionManagement>
    </profile>

    <profile>
      <id>deploy-to-teavm</id>
      <distributionManagement>
        <repository>
          <id>teavm-repo</id>
          <name>Development Preview Repository</name>
          <url>{{TEAVM_DEPLOY_URL}}</url>
        </repository>
      </distributionManagement>
    </profile>
  </profiles>
</project>


text:
package com.nithya.sample.junit.test;

import org.junit.After;
import org.junit.Before;
import org.junit.Test;

import com.nithya.sample.junit.Divider;

import junit.framework.Assert;

public class DividerTest {
	private Divider div;

	@Before
	public void setup() {
		this.div = new Divider();
	}

	@After
	public void teardown() {
		this.div = null;
	}

	@Test
	public void testDividePositive1() {
		System.out.println("testDividePositive1 is called");
		Assert.assertEquals(5d, div.divide(25d, 5d));
	}

	@Test
	public void testDividePositive2() {
		System.out.println("testDividePositive2 is called");
		Assert.assertEquals(Double.POSITIVE_INFINITY, div.divide(25d, 0d));
	}

	@Test (expected = NullPointerException.class)
	public void testDivideNegative1() {
		System.out.println("testDivideNegative1 is called");
		Double d1 = null;
		Double d2 = null;
		div.divide(d1, d2);
	}

}

redpajama_set_name: RedPajamaGithub


text:
package javax.swing;

import java.awt.*;
import java.awt.image.*;
import sun.awt.image.MultiResolutionCachedImage;

/**
 * An image filter that "disables" an image by turning
 * it into a grayscale image, and brightening the pixels
 * in the image. Used by buttons to create an image for
 * a disabled button.
 *
 * @author      Jeff Dinkins
 * @author      Tom Ball
 * @author      Jim Graham
 * @since 1.2
 */
public class GrayFilter extends RGBImageFilter {
    private boolean brighter;
    private int percent;

    /**
     * Creates a disabled image
     *
     * @param i  an {@code Image} to be created as disabled
     * @return  the new grayscale image created from {@code i}
     */
    public static Image createDisabledImage(Image i) {
        if (i instanceof MultiResolutionImage) {
            return MultiResolutionCachedImage
                    .map((MultiResolutionImage) i,
                         (img) -> createDisabledImageImpl(img));
        }
        return createDisabledImageImpl(i);
    }

    private static Image createDisabledImageImpl(Image i) {
        GrayFilter filter = new GrayFilter(true, 50);
        ImageProducer prod = new FilteredImageSource(i.getSource(), filter);
        Image grayImage = Toolkit.getDefaultToolkit().createImage(prod);
        return grayImage;
    }

    /**
     * Constructs a GrayFilter object that filters a color image to a
     * grayscale image. Used by buttons to create disabled ("grayed out")
     * button images.
     *
     * @param b  a boolean -- true if the pixels should be brightened
     * @param p  an int in the range 0..100 that determines the percentage
     *           of gray, where 100 is the darkest gray, and 0 is the lightest
     */
    public GrayFilter(boolean b, int p) {
        brighter = b;
        percent = p;

        // canFilterIndexColorModel indicates whether or not it is acceptable
        // to apply the color filtering of the filterRGB method to the color
        // table entries of an IndexColorModel object in lieu of pixel by pixel
        // filtering.
        canFilterIndexColorModel = true;
    }

    /**
     * Overrides RGBImageFilter.filterRGB.
     */
    public int filterRGB(int x, int y, int rgb) {
        // Use NTSC conversion formula.
        int gray = (int)((0.30 * ((rgb >> 16) & 0xff) +
                         0.59 * ((rgb >> 8) & 0xff) +
                         0.11 * (rgb & 0xff)) / 3);

        if (brighter) {
            gray = (255 - ((255 - gray) * (100 - percent) / 100));
        } else {
            gray = (gray * (100 - percent) / 100);
        }

        if (gray < 0) gray = 0;
        if (gray > 255) gray = 255;
        return (rgb & 0xff000000) | (gray << 16) | (gray << 8) | (gray << 0);
    }
}


text:
<?php

namespace DTS\eBaySDK\BulkDataExchange\Types;

/**
 *
 * @property string $jobId
 * @property string $fileReferenceId
 * @property string $maxFileSize
 */
class CreateUploadJobResponse extends \DTS\eBaySDK\BulkDataExchange\Types\BaseServiceResponse
{
    /**
     * @var array Properties belonging to objects of this class.
     */
    private static $propertyTypes = array(
        'jobId' => array(
            'type' => 'string',
            'unbound' => false,
            'attribute' => false,
            'elementName' => 'jobId'
        ),
        'fileReferenceId' => array(
            'type' => 'string',
            'unbound' => false,
            'attribute' => false,
            'elementName' => 'fileReferenceId'
        ),
        'maxFileSize' => array(
            'type' => 'string',
            'unbound' => false,
            'attribute' => false,
            'elementName' => 'maxFileSize'
        )
    );

    /**
     * @param array $values Optional properties and values to assign to the object.
     */
    public function __construct(array $values = array())
    {
        list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values);

        parent::__construct($parentValues);

        if (!array_key_exists(__CLASS__, self::$properties)) {
            self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes);
        }

        if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) {
            self::$xmlNamespaces[__CLASS__] = 'http://www.ebay.com/marketplace/services';
        }

        $this->setValues(__CLASS__, $childValues);
    }
}


text:
Mganga is a simple open-source RPG set in fictional Africa.

### What does Mganga mean?
Mganga means "shaman" in Swahili.

# Installation
Right now, the only way to run Mganga is to clone this repository and run it. Mganga is written in Python **3**.

1. Clone the repository: `git clone https://github.com/gragas/mganga`
2. Install Mganga's dependencies:
  * [Pygame 1.9.2](http://pygame.org/) (Note that pygame 1.9.2 is not on the Python Packaging Index, and therefore compatibility with Mganga is not guaranteed if you install pygame via `pip install pygame`)
  * [Buffalo](http://buffalo.readthedocs.org/)
3. Navigate to `mganga/src` and run `python3 main.py`

# Contributing

### License
Apache 2.0

### Original Author
Thomas Fischer

### Contributors
Thomas Fischer (Founder)


text:
package br.com.ctrlt.dao;

import java.util.List;

import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import javax.persistence.Query;

import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import org.springframework.transaction.annotation.Transactional;

import br.com.ctrlt.model.Periodo;

/**
 * DAO do Periodo
 *
 * @author Simone Santos Rodrigues
 * @version 1.0
 *
 * Este sistema foi desenvolvido sob a licença GPL/GNU versão 3, onde qualquer pessoa poderá copiar e distribuir cópias sem alterações deste documento de licença.
 * Consulte mais informações sobre essa licença no arquivo gpl.txt que contêm na raiz do projeto.
 *
 */

@Repository
@EnableTransactionManagement(proxyTargetClass = true)
public class PeriodoDAO implements DAO<Periodo> {
	@PersistenceContext
	private EntityManager manager; // gerenciar as conexoes de banco de dados.

	@SuppressWarnings("unchecked")
	@Override
	@Transactional
	public List<Periodo> listar(String criterio) {
		Query query = manager.createQuery("SELECT p FROM Periodo p " + criterio);

		List<Periodo> listaPeriodos = query.getResultList();

		return listaPeriodos;
	}

	@Override
	@Transactional
	public Periodo pesquisarPorId(long id) {
		// O metodo find do hibernate ja pesquisa pela chave primária.
		Periodo periodo = manager.find(Periodo.class, id);

		return periodo;
	}

	@Override
	@Transactional
	public boolean cadastrar(Periodo periodo) {
		try {
			manager.persist(periodo); // o metodo persist faz o insert

			return true;
		} catch (Exception e) {
			e.printStackTrace();

			return false;
		}
	}

	@Override
	@Transactional
	public boolean alterar(Periodo periodo) {
		try {
			manager.merge(periodo); // o metodo merge faz a alteracao

			return true;
		} catch (Exception e) {
			e.printStackTrace();

			return false;
		}
	}

	@Override
	@Transactional
	public boolean excluir(Periodo periodo) {
		try {
			manager.remove(manager.merge(periodo));

			return true;
		} catch (Exception e) {
			e.printStackTrace();

			return false;
		}
	}

	@Override
	@Transactional
	public boolean excluirPorId(int id) {
		Periodo periodo = pesquisarPorId(id);

		try {
			manager.remove(periodo);

			return true;
		} catch (Exception e) {
			e.printStackTrace();

			return false;
		}
	}

	public EntityManager getEntityManager() {
		return manager;
	}

}


text:
Chrome has released a fix that stops mouse events from firing when scrolling so you don't need this lib any more. See Chrome [status page](https://www.chromestatus.com/feature/5697181675683840).

60fps-scroll
============

A little library that *could* make your site scroll faster.

## Bower

60fps-scroll can be installed from [Bower](http://twitter.github.com/bower/) using the following command:

```bash
$ bower install 60fps-scroll
```

## Usage

To use just include at the bottom of your page or bundle with your scripts in a build process. The library will automatically handle everything else.

## Context

For some context on why you may want to use this checkout my article: [A follow up to obtaining 60fps scrolling performance](http://www.thecssninja.com/javascript/follow-up-60fps-scroll)

## License

Copyright 2013, Ryan Seddon
This content is released under the MIT license
http://ryanseddon.mit-license.org


text:
<!DOCTYPE html>

    <title>ngPicker Test Page</title>
    <link rel="stylesheet" href="/test/picker.css">
    <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css">

Ng Picker


text:
@implementation UAEC2IcmpTypeCode

@synthesize type=_type, code=_code;

+ (NSDictionary *)queryStringKeyPathsByPropertyKey
{
    // Start with super's key paths (if there are any)
    NSMutableDictionary *keyPaths = [[UAEC2Model queryStringKeyPathsByPropertyKey] mutableCopy];

    [keyPaths addEntriesFromDictionary:
    @{
        @"type": @"Type",
        @"code": @"Code"
    }];
    return [keyPaths copy];
}

+ (NSString *)XPathPrefix
{
    return @"./";
}

+ (NSDictionary *)XMLKeyPathsByPropertyKey
{
    // Start with super's key paths (if there are any)
    NSMutableDictionary *keyPaths = [[UAEC2Model XMLKeyPathsByPropertyKey] mutableCopy];

    [keyPaths addEntriesFromDictionary:
    @{
        @"type": @"ec2:type",
        @"code": @"ec2:code"
    }];
    return [keyPaths copy];
}

+ (NSValueTransformer *)typeXMLTransformer
{
  return [NSValueTransformer UA_XMLTransformerForDouble];
}

+ (NSValueTransformer *)codeXMLTransformer
{
  return [NSValueTransformer UA_XMLTransformerForDouble];
}

@end

#pragma clang diagnostic pop


text:
<?php

namespace SebastianBergmann\PHPCPD\CLI;

use SebastianBergmann\Version;
use Symfony\Component\Console\Application as AbstractApplication;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\ArgvInput;
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\Console\Input\ArrayInput;

/**
 * TextUI frontend for PHPCPD.
 *
 * @author    Sebastian Bergmann <sebastian@phpunit.de>
 * @copyright 2009-2014 Sebastian Bergmann <sebastian@phpunit.de>
 * @license   http://www.opensource.org/licenses/BSD-3-Clause  The BSD 3-Clause License
 * @link      http://github.com/sebastianbergmann/phpcpd/tree
 * @since     Class available since Release 2.0.0
 */
class Application extends AbstractApplication
{
    public function __construct()
    {
        $version = new Version('2.0.1', dirname(dirname(__DIR__)));
        parent::__construct('phpcpd', $version->getVersion());
    }

    /**
     * Gets the name of the command based on input.
     *
     * @param InputInterface $input The input interface
     *
     * @return string The command name
     */
    protected function getCommandName(InputInterface $input)
    {
        return 'phpcpd';
    }

    /**
     * Gets the default commands that should always be available.
     *
     * @return array An array of default Command instances
     */
    protected function getDefaultCommands()
    {
        $defaultCommands = parent::getDefaultCommands();

        $defaultCommands[] = new Command;

        return $defaultCommands;
    }

    /**
     * Overridden so that the application doesn't expect the command
     * name to be the first argument.
     */
    public function getDefinition()
    {
        $inputDefinition = parent::getDefinition();
        $inputDefinition->setArguments();

        return $inputDefinition;
    }

    /**
     * Runs the current application.
     *
     * @param InputInterface  $input  An Input instance
     * @param OutputInterface $output An Output instance
     *
     * @return integer 0 if everything went fine, or an error code
     */
    public function doRun(InputInterface $input, OutputInterface $output)
    {
        if (!$input->hasParameterOption('--quiet')) {
            $output->write(
                sprintf(
                    "phpcpd %s by Sebastian Bergmann.\n\n",
                    $this->getVersion()
                )
            );
        }

        if ($input->hasParameterOption('--version') ||
            $input->hasParameterOption('-V')) {
            exit;
        }

        if (!$input->getFirstArgument()) {
            $input = new ArrayInput(array('--help'));
        }

        parent::doRun($input, $output);
    }
}


text:
package com.atlassian.jgitflow.core.command;

import java.io.IOException;

import com.atlassian.jgitflow.core.GitFlowConfiguration;
import com.atlassian.jgitflow.core.JGitFlowConstants;
import com.atlassian.jgitflow.core.exception.*;
import com.atlassian.jgitflow.core.extension.ReleaseStartExtension;
import com.atlassian.jgitflow.core.extension.impl.EmptyReleaseStartExtension;

import org.eclipse.jgit.api.Git;
import org.eclipse.jgit.api.errors.GitAPIException;
import org.eclipse.jgit.lib.Ref;

/**
 * Start a release.
 *

 * This will create a new branch using the release prefix and release name from the tip of develop
 *

 *

 * Examples ({@code flow} is a {@link com.atlassian.jgitflow.core.JGitFlow} instance):
 *

 * Start a feature:
 *

 *

 * flow.releaseStart("1.0").call();
 *

 *

 * Perform a fetch of develop before branching
 *

 *

 * flow.releaseStart("1.0").setFetch(true).call();
 *

 */
public class ReleaseStartCommand extends AbstractBranchCreatingCommand<ReleaseStartCommand, Ref>
{
    private static final String SHORT_NAME = "release-start";
    private ReleaseStartExtension extension;

    /**
     * Create a new release start command instance.
     *

     * An instance of this class is usually obtained by calling {@link com.atlassian.jgitflow.core.JGitFlow#releaseStart(String)}
     *
     * @param releaseName The name of the release
     * @param git         The git instance to use
     * @param gfConfig    The GitFlowConfiguration to use
     */
    public ReleaseStartCommand(String releaseName, Git git, GitFlowConfiguration gfConfig)
    {
        super(releaseName, git, gfConfig);
        this.extension = new EmptyReleaseStartExtension();

    }

    /**
     * @return A reference to the new release branch
     * @throws com.atlassian.jgitflow.core.exception.NotInitializedException
     * @throws com.atlassian.jgitflow.core.exception.JGitFlowGitAPIException
     * @throws com.atlassian.jgitflow.core.exception.ReleaseBranchExistsException
     * @throws com.atlassian.jgitflow.core.exception.DirtyWorkingTreeException
     * @throws com.atlassian.jgitflow.core.exception.JGitFlowIOException
     * @throws com.atlassian.jgitflow.core.exception.LocalBranchExistsException
     * @throws com.atlassian.jgitflow.core.exception.TagExistsException
     * @throws com.atlassian.jgitflow.core.exception.BranchOutOfDateException
     */
    @Override
    public Ref call() throws NotInitializedException, JGitFlowGitAPIException, ReleaseBranchExistsException, DirtyWorkingTreeException, JGitFlowIOException, LocalBranchExistsException, TagExistsException, BranchOutOfDateException, LocalBranchMissingException, RemoteBranchExistsException, JGitFlowExtensionException
    {
        String prefixedBranchName = runBeforeAndGetPrefixedBranchName(extension.before(), JGitFlowConstants.PREFIXES.RELEASE);

        enforcer().requireGitFlowInitialized();
        enforcer().requireNoExistingReleaseBranches();
        enforcer().requireLocalBranchAbsent(prefixedBranchName);
        enforcer().requireCleanWorkingTree(isAllowUntracked());

        try
        {
            doFetchIfNeeded(extension);

            Ref newBranch = doCreateBranch(gfConfig.getDevelop(), prefixedBranchName, extension);

            doPushNewBranchIfNeeded(extension, prefixedBranchName);

            runExtensionCommands(extension.after());
            return newBranch;

        }
        catch (GitAPIException e)
        {
            throw new JGitFlowGitAPIException(e);
        }
        catch (IOException e)
        {
            throw new JGitFlowIOException(e);
        }
        finally
        {
            reporter.endCommand();
            reporter.flush();
        }
    }

    @Override
    protected String getCommandName()
    {
        return SHORT_NAME;
    }

    public ReleaseStartCommand setExtension(ReleaseStartExtension extension)
    {
        this.extension = extension;
        return this;
    }
}


text:
.lvca-carousel .lvca-carousel-item {
    position: relative;
    }
.lvca-carousel.lvca-container {
    max-width: none;
    }


text:
<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC
        "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
        "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">

<hibernate-mapping>
	<class name="com.livescribe.frameworks.orm.fb.UserAddress" table="UserAddress">

		<id name="primaryKey" column="primaryKey" type="binary">
			<generator class="assigned"/>
		</id>

		<property name="primaryKeyStr"			column="primaryKeyStr"		type="string"	length="64" />
		<property name="address1"				column="ADDRESS1"			type="string"	length="256" />
		<property name="address2"				column="ADDRESS2"			type="string"	length="256" />
		<property name="city"					column="CITY"				type="string"	length="128" />
		<property name="countryKey"				column="countryKey"			type="binary" />
		<property name="countryKeyStr"			column="countryKeyStr"		type="string"	length="64" />
		<property name="county"					column="county"				type="string"	length="128" />
		<property name="metaInfo"				column="metaInfo"			type="clob" />
		<property name="lastValidationDate"		column="lastValidationDate"	type="timestamp" />
		<property name="postCode"				column="postCode"			type="string"	length="10" />
		<property name="province"				column="province"			type="string"	length="128" />
		<property name="usStateKey"				column="usStateKey"			type="binary" />
		<property name="usStateKeyStr"			column="usStateKeyStr"		type="string"	length="64" />

	</class>
</hibernate-mapping>


text:
package org.kie.dmn.feel.lang.ast;

import org.antlr.v4.runtime.ParserRuleContext;
import org.kie.dmn.feel.lang.EvaluationContext;
import org.kie.dmn.feel.lang.Type;
import org.kie.dmn.feel.lang.types.GenListType;

public class ListTypeNode extends TypeNode {

    private final TypeNode genTypeNode;

    public ListTypeNode(ParserRuleContext ctx, TypeNode gen) {
        super( ctx );
        this.genTypeNode = gen;
    }

    @Override
    public Type evaluate(EvaluationContext ctx) {
        Type gen = genTypeNode.evaluate(ctx);
        return new GenListType(gen);
    }

    @Override
    public <T> T accept(Visitor<T> v) {
        return v.visit(this);
    }

    public TypeNode getGenTypeNode() {
        return genTypeNode;
    }
}


text:
#include "LKH.h"

/*
 * The SolveCompressedSubproblem compresses and solves a given subproblem.
 * The subproblem is identified by the parameter CurrentSuproblem and
 * contains all nodes with Subproblem equal to CurrentSubproblem.
 *
 * The parameter Subproblems specifies the number of subproblems.
 * The parameter GlobalBestCost references the current best cost of the
 * whole problem.
 */

#define MaxLevel 10

void
SolveCompressedSubproblem(int CurrentSubproblem, int Subproblems,
                          GainType * GlobalBestCost)
{
    int Level, Number, RestrictedSearchSaved = RestrictedSearch;
    GainType OldGlobalBestCost = *GlobalBestCost;
    Node *N;

    if ((Number = CurrentSubproblem % Subproblems) == 0)
        Number = Subproblems;
    RestrictedSearch = 0;
    for (Level = 1;
         Level <= MaxLevel && *GlobalBestCost == OldGlobalBestCost;
         Level++) {
        if (TraceLevel >= 1)
            printff("\nCompress subproblem %d (Level %d):", Number, Level);
        if (!SolveSubproblem(CurrentSubproblem, Subproblems, GlobalBestCost))
            break;
    }
    RestrictedSearch = RestrictedSearchSaved;
    N = FirstNode;
    do
        N->Subproblem = abs(N->Subproblem);
    while ((N = N->Suc) != FirstNode);
}


text:
<!DOCTYPE html>

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

    <title>Norlan Prudente</title>

    <link href="vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet">

    <link href="css/freelancer.min.css" rel="stylesheet">

    <link href="vendor/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css">
    <link href="https://fonts.googleapis.com/css?family=Montserrat:400,700" rel="stylesheet" type="text/css">
    <link href="https://fonts.googleapis.com/css?family=Lato:400,700,400italic,700italic" rel="stylesheet" type="text/css">

Skip to main content

                <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
                    Toggle navigation Menu
                </button>
                Norlan Prudente

                        Portfolio

                        About

                        Contact

Norlan Prudente

                        Senior System Engineer

Portfolio

About

                      Norlan Prudente graduated in 2018 of December. He has attained both of his Bachelor's and Master's Degree
                      at the University of the Pacific, through Blended Master's program, in Computer Science with concentraion
                      on Software Development/Engineering. He is currently working as a Senior System Engineer at Form Factor
                      in Livermore California.

                      His main role is automotion, data gathering, data verification, data analysis, software development,
                      software optimization and technical support on in-house tools/programs. He is currently using C# and
                      VBA to develop programs along with the combinaion of excel chart and formula to deliver software
                      requirements. Some of his notable skills are optimizing programs, through usage of data structure and
                      parallelism, which are more noticeable the larger the data gets. The speed gained are at least 3x
                      faster. Additionally, he prepares Cycle Time Reduction and First Pass Yield Metrics for presentation
                      that managers and director uses.

                      He also has experienced with his previous internship, 8 months in Vocera, with an agile software
                      development environment and technical support skills. In addition, he has 5 years of experience in
                      tutoring computer science classes. Lastly, he worked as an IT tech specialist in the Eberhardt
                      School of Business IT department for 5 months.

                      Throughout his school year, he has worked on multiple projects both individually and as a team
                      member. He has held multiple lead position while working with a team such as lead programmer, group
                      leader that assigned task, design lead, and evaluator lead. His preferred computer language is Python 3,
                      but are capable of using other languages such as C, C++, Java, Javascript, Html, CSS, and PHP. He
                      has knowledge of different programming language paradigm: imperative, functional, logical, and object
                      oriented. He also has basic knowledge towards AI, Machine Learning, and Robotics.

                      More information in my linkedIn page (click the linkedIn Icon below).

Contact Me

                        Copyright © 2017. All Rights Reserved. Design adapted from

                          Freelancer at
                            startbootstrap by Norlan Prudente.

Anime Rating VS Sentiment

Click to view  the full paper

                            <object data="files/Final Report.pdf" type="application/pdf" width="100%" height="100%"></object>
                            <button type="button" class="btn btn-default" data-dismiss="modal"> Close</button>

Project Courrier

Click to view  the full paper

                            <object data="files/Project Courier Final Paper.pdf" type="application/pdf" width="100%" height="100%"></object>
                            <button type="button" class="btn btn-default" data-dismiss="modal"> Close</button>

Virtual Tour

Click to view  the full paper

                            <object data="files/FinalVRPaper.pdf" type="application/pdf" width="100%" height="100%"></object>
                            <button type="button" class="btn btn-default" data-dismiss="modal"> Close</button>

Web Crawler Optimization

Click to view  the full paper

                          <object data="files/WhitePaper.pdf" type="application/pdf" width="100%" height="100%"></object>
                          <button type="button" class="btn btn-default" data-dismiss="modal"> Close</button>

Finance Data Analysis

Click to view  the full paper

                          <object data="files/Finance Data Analysis.pdf" type="application/pdf" width="100%" height="100%"></object>
                          <button type="button" class="btn btn-default" data-dismiss="modal"> Close</button>

Web Development Personal Projects

Full Metal ALchemist Fan Page

                A responsive website that focused on mobile and desktop interface changing depending on the device used.
                The target audience are anime fan or people who are seeking information about Full Metal Alchemist.

              <button id="btnSubmit" type="button" class="btn btn-default" data-dismiss="modal"> Close</button>


text:
package com.jivesoftware.os.routing.bird.server.oauth.request;

import com.jivesoftware.os.mlogger.core.MetricLogger;
import com.jivesoftware.os.mlogger.core.MetricLoggerFactory;
import java.net.MalformedURLException;
import java.net.URL;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import java.util.Set;
import javax.servlet.http.HttpServletRequest;
import org.glassfish.jersey.oauth1.signature.OAuth1Request;

/**
 *
 * @author jonathan.colt
 */
public class HttpServletRequestOAuth1Request implements OAuth1Request {

    private static final MetricLogger LOG = MetricLoggerFactory.getLogger();
    private final HttpServletRequest request;

    public HttpServletRequestOAuth1Request(HttpServletRequest request) {
        this.request = request;
    }

    @Override
    public String getRequestMethod() {
        return request.getMethod();
    }

    @Override
    public URL getRequestURL() {
        try {
            return new URL(request.getRequestURL().toString());
        } catch (MalformedURLException ex) {
            LOG.error(request.getRequestURL() + " was malformed.", ex);
            return null;
        }
    }

    @Override
    public Set<String> getParameterNames() {
        return request.getParameterMap().keySet();
    }

    @Override
    public List<String> getParameterValues(String name) {
        return Arrays.asList(request.getParameterValues(name));
    }

    @Override
    public List<String> getHeaderValues(String name) {
        return Collections.list(request.getHeaders(name));
    }

    @Override
    public void addHeaderValue(String name, String value) throws IllegalStateException {
        throw new IllegalStateException("Modifying OAuthServerRequest unsupported");
    }

}


text:
<?php

class Metrodb_BlobStream {

	protected $table  = '';
	protected $col    = '';
	protected $id     = '';

	/**
	 * Prepare to stream a blob record
	 *
	 * @param string $table SQL table name
	 * @param string $col   SQL column name
	 * @param int    $id    Unique record id
	 * @param int    $pct   Size of each blob chunk as percentage of total
	 * @param string $idcol Name of column that holds identity if not table.'_id'
	 * @return array stream handle with info needed for nextChunk()
	 */
	public function __construct($connector, $table, $blobCol, $id, $pct=10, $idcol='') {
		$qc = $connector->qc;
		if ($idcol == '') {$idcol = $table.'_id';}
		//TODO: move to drivers
		$lenfun = 'CHAR_LENGTH';
		if (strpos(strtolower(get_class($connector)), 'sqlite3') !== FALSE) {
			$lenfun = 'LENGTH';
		}
		$rows = $connector->queryGetAll('SELECT '.$lenfun.'('.$qc.$blobCol.$qc.') as charlen from '.$qc.$table.$qc.' WHERE '.$qc.$idcol.$qc.' = '.$id);
		$record = $rows[0];
		$this->table        = $qc.$table.$qc;
		$this->col          = $blobCol;
		$this->id           = $id;
		$this->pct          = $pct;
		$this->idcol        = $idcol;
		$this->charlen      = $record['charlen'];
		$this->finished     = FALSE;
		$this->chareach     = floor($this->charlen * ($pct / 100));
		$this->charlast     = $this->charlen % ((1/$pct) * 100);
		$this->pctdone      = 0;
	}

	/**
	 * Select a percentage of a blob field
	 *
	 * @param $connector Metrodb_Connector subclass
	 */
	public function read($connector) {
		if ($this->finished) { return NULL; }
		$qc = $connector->qc;

		$_x = (floor($this->pctdone/$this->pct) * $this->chareach) + 1;
		$_s = $this->chareach;

		if ($this->pctdone + $this->pct >= 100) {
			//grab the uneven bits with this last pull
			$_s += $this->charlast;
			$rows = $connector->queryGetAll('SELECT SUBSTR('.$qc.$this->col.$qc.','.$_x.')
				AS '.$qc.'blobstream'.$qc.' FROM '.$this->table.' WHERE '.$qc.$this->idcol.$qc.' = '.sprintf('%d',$this->id));
		} else {
			$rows = $connector->queryGetAll('SELECT SUBSTR('.$qc.$this->col.$qc.','.$_x.','.$_s.')
				AS '.$qc.'blobstream'.$qc.' FROM '.$this->table.' WHERE '.$qc.$this->idcol.$qc.' = '.sprintf('%d',$this->id));
		}
		$this->pctdone += $this->pct;
		if ($this->pctdone >= 100) {
			$this->finished = TRUE;
		}
		return $rows[0]['blobstream'];
	}
}


text:
var domain = require("domain"),
    path = require("path"),
    Utils = require("./utils"),
    Logger = require("./logger"),
    Configuration = require("./configuration"),
    BugsnagError = require("./error"),
    Notification = require("./notification"),
    requestInfo = require("./request_info");

// Ensure we get all stack frames from thrown errors.
Error.stackTraceLimit = Infinity;

function autoNotifyCallback(notifiedError, uncaughtError) {
    if (!uncaughtError) {
        uncaughtError = notifiedError.domain;
    }
    return function(error) {
        if (error) {
            Configuration.logger.error("Bugsnag: error notifying bugsnag.com - " + error);
        }
        if (Configuration.onUncaughtError && uncaughtError) {
            return Configuration.onUncaughtError(notifiedError);
        }
    };
}

var unCaughtErrorHandlerAdded = false;

var Bugsnag = {};

// This allows people to directly play with metaData without knowledge of Configuration
Object.defineProperty(Bugsnag, 'metaData', {
    get: function() {
        return Configuration.metaData;
    },
    set: function(metaData) {
        Configuration.metaData = metaData;
    }
});

// This allows people to directly play with requestData without knowledge of domains
Object.defineProperty(Bugsnag, 'requestData', {
    get: function () {
        return process.domain && process.domain._bugsnagOptions;
    },

    set: function (requestData) {
        if (process.domain) {
            process.domain._bugsnagOptions = requestData;
        }
    }
});

// Register sets api key and will configure bugsnag based on options
Bugsnag.register = function(apiKey, options) {
    if (!options) {
        options = {};
    }
    Configuration.apiKey = apiKey;
    Bugsnag.configure(options);
    Configuration.logger.info("Registered with apiKey " + apiKey);
    return Bugsnag;
};

// Configure bugsnag using the provided options
Bugsnag.configure = function(options) {
    Configuration.configure(options);

    // If we should auto notify we also configure the uncaught exception handler, we can't do this
    // by default as it changes the way the app response by removing the default handler.
    if (Configuration.autoNotifyUncaught && !unCaughtErrorHandlerAdded) {
        unCaughtErrorHandlerAdded = true;
        Configuration.logger.info("Configuring uncaughtExceptionHandler");
        process.on("uncaughtException", function(err) {
            Bugsnag.notify(err, {
                severity: "error"
            }, autoNotifyCallback(err, true));
        });
    }
};

// Only error is required and that can be a string or error object
Bugsnag.notify = function(error, options, cb) {
    var bugsnagErrors, notification;
    if (Utils.typeOf(options) === "function") {
        cb = options;
        options = {};
    }
    if (!options) {
        options = {};
    }
    if (!Bugsnag.shouldNotify()) {
        if (cb) {
            cb();
        }
        return;
    }
    Configuration.logger.info("Notifying Bugsnag of exception...\n" + (error && error.stack || error));
    bugsnagErrors = BugsnagError.buildErrors(error, options.errorName);
    delete options.errorName;
    notification = new Notification(bugsnagErrors, options);
    notification.deliver(cb);
};

// The error handler express/connext middleware. Performs a notify
Bugsnag.errorHandler = function(err, req, res, next) {
    Configuration.logger.info("Handling express error: " + (err.stack || err));
    Bugsnag.notify(err, {
        req: req,
        severity: "error"
    }, autoNotifyCallback(err));
    return next(err);
};

// The request middleware for express/connect. Ensures next(err) is called when there is an error, and
// tracks the request for manual notifies.
Bugsnag.requestHandler = function(req, res, next) {
    var dom;
    dom = domain.create();
    dom._bugsnagOptions = {
        cleanedRequest: requestInfo(req)
    };
    dom.on('error', next);
    return dom.run(next);
};

Bugsnag.restifyHandler = function(req, res, route, err) {
    Bugsnag.notify(err, {
        req: req,
        severity: "error"
    }, autoNotifyCallback(err));
};

Bugsnag.koaHandler = function(err, ctx) {
    var request;
    Configuration.logger.info("Handling koa error: " + (err.stack || err));
    request = ctx.req;
    request.protocol = ctx.request.protocol;
    request.host = ctx.request.host.split(':', 1)[0];
    return Bugsnag.notify(err, {
        req: request,
        severity: "error"
    }, autoNotifyCallback(err));
};

// Intercepts the first argument from a callback and interprets it as an error.
// if the error is not null it notifies bugsnag and doesn't call the callback
Bugsnag.intercept = function(cb) {
    if (!cb) {
        cb = (function() {});
    }
    if (process.domain) {
        return process.domain.intercept(cb);
    } else {
        return function() {
            var err = arguments[0];
            var args = Array.prototype.slice.call(arguments, 1);
            if (err && (err instanceof Error)) {
                return Bugsnag.notify(err, {
                    severity: "error"
                }, autoNotifyCallback(err));
            }
            if (cb) {
                return cb.apply(null, args);
            }
        };
    }
};

// Automatically notifies of uncaught exceptions in the callback and error
// event emitters. Returns an event emitter, you can hook into .on("error") if
// you want to.
Bugsnag.autoNotify = function(options, cb) {
    var dom;
    if (Utils.typeOf(options) === "function") {
        cb = options;
        options = {};
    }
    dom = domain.create();
    dom._bugsnagOptions = options;
    options.severity = "error";
    dom.on('error', function(err) {
        return Bugsnag.notify(err, options, autoNotifyCallback(err));
    });
    process.nextTick(function() {
        return dom.run(cb);
    });
    return dom;
};

Bugsnag.shouldNotify = function() {
    return (Configuration.notifyReleaseStages === null || Configuration.notifyReleaseStages.indexOf(Configuration.releaseStage) !== -1) && Configuration.apiKey;
};

Bugsnag.onBeforeNotify = function (callback) {
    if (typeof callback !== "function") {
        throw new Error("must pass a callback to onBeforeNotify");
    }

    Configuration.beforeNotifyCallbacks.push(callback);
};

module.exports = Bugsnag;


text:
ACCEPTED

#### According to
Index Fungorum

#### Published in
null

#### Original name
Helotium abscedens P. Crouan & H. Crouan

### Remarks
null


text:
module ArelConverter
  module Translator
    class Scope < Base

      def process_call(exp)
        @options = Options.translate(exp.pop) if exp[1] == :scope
        super
      end

      def post_processing(new_scope)
        new_scope.gsub!(/scope\((.*)\)$/, 'scope \1')
        new_scope += format_options(@options)
      end

    protected

      def format_options(options)
        return if options.nil? || options.empty?
        ", " + (includes_lambda?(options) ? options : "-> { #{options.strip} }")
      end

      def includes_lambda?(source)
        source.include?('lambda') || source.include?('->')
      end

    end
  end
end


text:
copyright:

  years: 2015, 2016
lastupdated: "2016-12-05"

---

{:shortdesc: .shortdesc}
{:codeblock: .codeblock}
{:screen: .screen}
{:new_window: target="_blank"}

# Managing team members and roles
{: #userroles}

From the **Team Directory** page for your account, you can manage existing team members and their roles in your organization and spaces, as well as invite new team members. To access the team directory for your account, click **Account** > **Team Directory**.
{:shortdesc}

Account owners perform all operations on organizations and spaces including managing team members and their assigned roles. Organization managers  have access to invite team members and manage roles. Space managers can use the **Manage Organizations** page to add existing account members to the space and adjust their roles. Check out the following information to learn more about roles.

## Roles
{: #userrolesinfo}

At the account level, there are two roles that enable access to different account management features:

| Account role | Permissions |
|----------------|---------|
|Owner | An owner for the account has access to their profile, team directory, billing information, spending notifications, and usage dashboard. From the team directory page, the owner can invite new team members and adjust roles. The owner can also add promotional credits, set or change the billing limit, set service access, and manage organizations and spaces. |
|Member | A member has access to their profile, team directory, and account credits and billing limits in the {{site.data.keyword.Bluemix_notm}} header. However, on the team directory page, a member can only view the team members within the account. |
{:caption="Table 1. Account roles and permissions" caption-side="top"}

 All new team members are added as a member of the account. You can assign organization and space roles to invitees to enable specific views and permissions in {{site.data.keyword.Bluemix_notm}}. New team members added to an organization are assigned the auditor organization role by default. For a specific space, you can choose to assign the developer or auditor role to invitees. Once your invitees accept the invitation and join {{site.data.keyword.Bluemix_notm}}, you can edit their roles on the **Team Directory** page.

The following roles can be assigned at the organization level:

| Organization role | Permissions |
|-------------------|-------------|
|Manager | Organization managers can create, view, edit, or delete spaces within the organization, view the organization's usage and quota, invite team members to the organization, manage who has access to the organization and their roles in the organization, and manage custom domains for the organization. |
|Billing manager | Billing managers can view runtime and service usage information for the organization on the Usage Dashboard page.  |
|Auditor | Organization auditors can view application and service content in the organization. Auditors can also view the team members in the organization and their assigned roles, and the quota for the organization. This role is assigned to all invitees by default.|
{:caption="Table 2. Organization roles and permissions" caption-side="top"}

The following roles can be assigned at the space level:

| Space role | Permissions |
|------------|-------------|
|Manager | Space managers can add existing team members and manage roles within the space. The space manager can also view the number of instances, service bindings, and resource use for each application in the space. |
|Developer | Space developers can create, delete, and manage applications and services within the space. Some of the managing tasks include deploying apps, starting or stopping apps, renaming an app, deleting an app, renaming a space, binding or unbinding a service to an application, view the number or instances, service bindings, and resource use for each application in the space. In addition, the space developer can associate an internal or external URL with an application in the space.   |
|Auditor | Space auditors have read-only access to all information about the space, such as information about the number of instances, service bindings, and resource use for each application in the space. |
{:caption="Table 3. Space roles and permissions" caption-side="top"}

**Note**: Team members that are assigned the manager or developer space role can access the VCAP_SERVICES environment variable. However, a team member that is assigned the auditor role can't access VCAP_SERVICES.

## Adjusting visibility of the team directory
{: #teamdirectoryvisibility}

Depending on how you have your {{site.data.keyword.Bluemix_notm}} accounts and organizations set up, you might want to change the visibility of the team directory page. By default, all team members within your account can see the full list of account team members, including all members of all organizations within the account. You might have privacy concerns or security reasons that prompt you to adjust the visibility of the team directory page. You have two options for setting the visibility of the team directory page: all team members or just you as the account owner.

To change the visibility of the team directory page complete the following steps:

1. Click **Account** > **Team Directory**.
2. For the **Visibility to** option, click the current selection to view the options.
3. Then, select **All** or **Just me** based on the current needs for your account.
4. Then, click **Save**.

## Inviting team members
{: #inviteteammembers}

Account owners and organization managers can invite team members to orgs from the Invite Team Members page. When you add new team members, they are assigned the auditor roles automatically. You can change the roles later on the Team Directory page. To invite a team member, complete these steps:

Click **Account** > **Invite Team Members**.

Select the org that you want to invite team members to.

Click **Next**.

Select the spaces that you want to allow access to for your team members.

Select the role to be assigned for the selected spaces in the org.

Select the option to confirm that you take financial responsibility for all charges that are incurred on the account.

Enter the email address for an individual team member, or email addresses for multiple team members:

To add a single team member, enter the email address, and click **Send**.

To add more than one team member, click **Invite them all at once**. Enter the email addresses using a comma-separated list, spaces, or line breaks. Then, click **Next** to verify the email addresses to send the invites to, and click **Send**.

Click **View Pending** to check if invites are pending or accepted. You can choose to resend the invitation email or cancel the invitation for a pending invite at any time.

### Adding SoftLayer team members
If you have a SoftLayer account linked with your {{site.data.keyword.Bluemix_notm}} account, you can add your SoftLayer team members.
 1. Go to **Account** > **Invite Team Members**.
 2. Click **Add** in the **Add SoftLayer Team Members** section to authenticate into your SoftLayer account and view a list of team members from your SoftLayer account.

Adding team members to your {{site.data.keyword.Bluemix_notm}} account does not grant them access to {{site.data.keyword.Bluemix_notm}} Infrastructure. To give users access to the Infrastructure dashboard, go to **Infrastructure** > **Account** > **Users** and click the **Add User** link. You must have permission to add users.

 For more information about adding team members from your SoftLayer account, see [Inviting SoftLayer team members to {{site.data.keyword.Bluemix_notm}}](/docs/admin/softlayerlink.html#invite_users).

## Editing roles
{: #editinguserroles}

Account owners and organization managers can edit organization and space roles for existing team members on the **Team Directory** page.

1. Click **Account** > **Team Directory**.
2. Locate the team member whose roles you want to edit.
3. Click **View Roles**.
4. Select or clear the org role selections to modify the org access for the team member.
5. Click **View Spaces** to add or remove space roles.
6. Select or clear the space role selections to modify the space access for the team member.
7. Click **Close Spaces**.
8. Click **Save** at the end of the page.

Space managers can edit roles for the team members in their space on the **Manage Organizations** page.

1. Click **Account** > **Manage Organizations**.
2. Locate the org that your space is in.
3. Click **View Details**.
4. Locate your space, and click **Edit space**.
5. Select the **Users** tab.
6. Select or clear the space role option for the role that you want to add or remove for the team member.
7. Then, click **Save**.

## Removing team members
{: #removingteammembers}

Account owners and organization managers can remove team members from an account by using the **Team Directory** page. To remove a team member, complete the following steps:

1. Click **Account** > **Team Directory**.
3. Locate the user that you want to remove from the account and click the **Remove** icon ![Remove icon](../icons/icon_remove_teamuser.svg).
4. In the **Remove User** window, click **Remove** to confirm that you want to remove the specified user from the account.

The user is removed from the displayed list of team members for the account.