text:
package org.jcommand.queue.manager;

import static org.jcommand.admin.model.ComponentStatus.DELETE;
import static org.jcommand.admin.model.ComponentStatus.ERROR;
import static org.jcommand.admin.model.ComponentStatus.EXIST;
import static org.jcommand.admin.model.ComponentStatus.MAXENTRIES;
import static org.jcommand.admin.model.ComponentStatus.RUNNING;
import static org.jcommand.admin.model.ComponentStatus.STOP;
import static org.jcommand.admin.model.ComponentStatus.STOPPING;
import static org.jcommand.admin.model.ComponentStatus.SUSPEND;
import static org.jcommand.admin.model.ComponentStatus.UNDEFINE;

import java.io.File;
import java.io.Serializable;
import java.util.Arrays;
import java.util.Dictionary;
import java.util.List;
import java.util.concurrent.locks.Condition;
import java.util.concurrent.locks.ReentrantLock;

import org.jcommand.admin.model.ComponentStatus;
import org.jcommand.configuration.model.QueueConfigurationKeys;
import org.jcommand.prevayler.classloader.PrevaylerBundleClassLoader;
import org.jcommand.queue.api.Queue;
import org.jcommand.queue.api.QueueObject;
import org.jcommand.queue.manager.capability.QueueCapability;
import org.osgi.framework.Bundle;
import org.osgi.framework.BundleContext;
import org.osgi.framework.BundleEvent;
import org.osgi.framework.BundleListener;
import org.osgi.framework.Filter;
import org.osgi.framework.InvalidSyntaxException;
import org.osgi.framework.ServiceRegistration;
import org.osgi.framework.wiring.BundleCapability;
import org.osgi.framework.wiring.BundleRequirement;
import org.osgi.framework.wiring.BundleWiring;
import org.prevayler.Prevayler;
import org.prevayler.PrevaylerFactory;
import org.prevayler.foundation.serialization.JavaSerializer;

public class QueueComponent<T extends QueueObject> implements Queue<T>, BundleListener, Serializable {

	private static final long serialVersionUID = 1L;
	private final String pid;
	private final File queueLocation;
	private Integer maxQueueEntries;

	private int componentStatus = STOP.statusCode;
	private transient final Dictionary<String, ?> properties;
	private transient Prevayler<PersistenceQueue<T>> persistenceQueue;
	private transient final BundleContext bundleContext;
	private transient ServiceRegistration<?> registeredQueueService;
	private transient PrevaylerBundleClassLoader bundleClassLoader;
	private QueueCapability queueCapability;
	private Filter filter;

	private final ReentrantLock parkTakeThreadLock = new ReentrantLock();
	private final Condition wakeupTakeThread = parkTakeThreadLock.newCondition();

	public QueueComponent(BundleContext bundleContext, Dictionary<String, ?> properties) {
		this.bundleContext = bundleContext;
		this.properties = properties;
		pid = (String) properties.get(QueueConfigurationKeys.pid.getKey());
		String queueLocationString = (String) properties.get(QueueConfigurationKeys.queueLocation.getKey());
		queueLocation = new File(queueLocationString);
		maxQueueEntries = (Integer) properties.get(QueueConfigurationKeys.maxQueueEntries.getKey());
		// TODO FH: replace version with header representation
		filter = createFilter("(&(osgi.extender=org.jcommand.model)(version>=1.0.0)(!(version>=2.0.0)))");
	}

	@Override
	public boolean offer(T toQueueObject) {
		boolean isSuccsses = false;
		parkTakeThreadLock.lock();
		try {
			if ((componentStatus & RUNNING.statusCode) == RUNNING.statusCode) {
				long queueSize = persistenceQueue.prevalentSystem().queue.size();
				if (maxQueueEntries < queueSize) {
					componentStatus |= MAXENTRIES.statusCode;
					suspend();
				}
				isSuccsses = persistenceQueue.execute(new OfferQueueObject<T>(toQueueObject));
				if (isSuccsses) {
					wakeupTakeThread.signal();
				}
			}
		} finally {
			parkTakeThreadLock.unlock();
		}
		return isSuccsses;
	}

	@Override
	public List<T> poll(int poolSize) {
		int toCheckStatus = STOP.statusCode | STOPPING.statusCode;
		if ((componentStatus & toCheckStatus) == toCheckStatus) {
			return null;
		}
		if (maxQueueEntries >= persistenceQueue.prevalentSystem().queue.size()
				&& ((componentStatus & MAXENTRIES.statusCode) == MAXENTRIES.statusCode)) {
			componentStatus &= ~MAXENTRIES.statusCode;
			resume();
		}
		try {
			return persistenceQueue.execute(new PollQueueObject<T>(poolSize));
		} catch (Throwable throwable) {
			throw new RuntimeException("Can't poll queue object from queue", throwable);
		}
	}

	@Override
	public T poll() {
		List<T> pollResult = poll(1);
		return pollResult != null && !pollResult.isEmpty() ? pollResult.get(0) : null;
	}

	@Override
	public List<T> take(int takeSize) {
		List<T> pollResult = null;
		parkTakeThreadLock.lock();
		try {
			pollResult = poll(takeSize);
			while (pollResult.size() < takeSize) {
				List<T> newQueueObjects = waitForQueueObjects(takeSize - pollResult.size());
				if (newQueueObjects != null) {
					pollResult.addAll(newQueueObjects);
				}
			}
		} catch (InterruptedException e) {
			for (T t : pollResult) {
				offer(t);
			}
		} finally {
			parkTakeThreadLock.unlock();
		}
		return pollResult;
	}

	private List<T> waitForQueueObjects(int takeSize) throws InterruptedException {
		wakeupTakeThread.await();
		return poll(takeSize);
	}

	@Override
	public T take() {
		List<T> result = take(1);
		return result != null && !result.isEmpty() ? result.get(0) : null;
	}

	// TODO FH: implement transaction rollback and clear inTransaction map
	@Override
	public boolean commit(Long queueObjectId) {
		return commit(Arrays.asList(queueObjectId));
	}

	@Override
	public boolean commit(List<Long> queueObjectIds) {
		return persistenceQueue.execute(new CommitQueueObject<T>(queueObjectIds));
	}

	@Override
	public long getLoad() {
		return persistenceQueue.prevalentSystem().queue.size();
	}

	@Override
	public long getAvGCommandLiveQueue() {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public long aggregateAvGExecuteTimeOfAllQueuedCommands() {
		// TODO Auto-generated method stub
		return 0;
	}

	public String getComponentStatus() {
		return ComponentStatus.toString(componentStatus);
	}

	public synchronized boolean start() {

		if (!preconditionSatisfy()) {
			return false;
		}

		if (ComponentStatus.hasStatus(componentStatus, STOP, EXIST)) {
			queueCapability = new QueueCapability(new File(queueLocation, "capability"));
			queueCapability.activate(bundleContext);

			bundleClassLoader = new PrevaylerBundleClassLoader(pid, queueCapability);
			bundleClassLoader.addBundle(bundleContext.getBundle());
			Bundle[] bundles = bundleContext.getBundles();
			for (Bundle bundle : bundles) {
				BundleWiring wiring = bundle.adapt(BundleWiring.class);
				if (wiring == null) {
					continue;
				}
				List<BundleRequirement> capabilities = wiring.getRequirements("osgi.extender");
				for (BundleRequirement bundleCapability : capabilities) {
					if (bundleCapability.getDirectives() == null) {
						continue;
					}
					String filterString = bundleCapability.getDirectives().get("filter");
					Filter capabilityFilter = createFilter(filterString);
					if (filter.equals(capabilityFilter)) {
						bundleClassLoader.addBundle(bundle);
					}
				}
			}
			PrevaylerFactory<PersistenceQueue<T>> factory = new PrevaylerFactory<PersistenceQueue<T>>();
			JavaSerializer serializer = new JavaSerializer(bundleClassLoader);
			factory.configureJournalSerializer(serializer);
			factory.configureSnapshotSerializer(serializer);
			factory.configurePrevalenceDirectory(queueLocation.getAbsolutePath());
			factory.configureJournalFileSizeThreshold(1024 * 4 * 16);
			factory.configureJournalDiskSync(false);
			factory.configureTransactionDeepCopy(false);
			factory.configurePrevalentSystem(new PersistenceQueue<T>());

			try {
				activateModelBundleListener();
				persistenceQueue = factory.create();
				componentStatus = EXIST.statusCode;
				componentStatus |= RUNNING.statusCode;
				registeredQueueService = bundleContext.registerService(Queue.class, QueueComponent.this, properties);
				// TODO FH: wrong place of return
				return true;
			} catch (Exception e) {
				componentStatus |= ERROR.statusCode;
				e.printStackTrace();
			}
		}
		return false;
	}

	private Filter createFilter(String filterString) {
		Filter createFilter = null;
		try {
			createFilter = bundleContext
					.createFilter("(&(osgi.extender=org.jcommand.model)(version>=1.0.0)(!(version>=2.0.0)))");
		} catch (InvalidSyntaxException e) {
			throw new RuntimeException("Can't parse capability " + filterString, e);
		}
		return createFilter;
	}

	private boolean preconditionSatisfy() {
		// TODO Auto-generated method stub
		return true;
	}

	public synchronized boolean stop() {

		componentStatus = EXIST.statusCode;
		componentStatus |= STOPPING.statusCode;
		registeredQueueService.unregister();
		registeredQueueService = null;
		try {
			persistenceQueue.takeSnapshot();
			persistenceQueue.close();
			persistenceQueue = null;
			componentStatus |= STOP.statusCode;
		} catch (Exception e) {
			componentStatus |= ERROR.statusCode;
			e.printStackTrace();
		}
		return (componentStatus & ERROR.statusCode) != ERROR.statusCode;

	}

	public synchronized boolean suspend() {
		componentStatus |= SUSPEND.statusCode;
		// TODO FH: block the input thread until the queue resume
		return true;
	}

	public synchronized boolean resume() {
		// TODO FH: unparck the input thread
		componentStatus &= ~SUSPEND.statusCode;
		return true;
	}

	/**
	 * No support yet
	 *
	 * @return always false
	 */
	public synchronized boolean delete() {
		// No support yet
		return false;
	}

	/**
	 * Support only RUNNING, STOP and SUSPEND
	 *
	 * @param toUpdateComponentStatus
	 */
	public void changeStatusIfNeeded(ComponentStatus toUpdateComponentStatus) {
		// TODO FH: use threads to change status
		if (!assertValidStatus(toUpdateComponentStatus.statusCode)) {
			// TODO: logging inconsistent update status and do nothing
			return;
		}

		if (!assertValidStatus(componentStatus)) {
			// TODO: logging inconsistent status and do nothing
			return;
		}

		if (ComponentStatus.hasStatus(toUpdateComponentStatus, RUNNING)) {
			if (ComponentStatus.hasStatus(componentStatus, RUNNING)) {
				// Log is running statement;
			} else if (ComponentStatus.hasStatus(componentStatus, EXIST, STOP, UNDEFINE)) {
				this.start();// start queue
			} else if (ComponentStatus.hasStatus(componentStatus, SUSPEND)) {
				this.resume();// resume queue
			} else if (ComponentStatus.hasStatus(componentStatus, DELETE)) {
				this.start();// restore if possible and start queue
			}
		} else if (ComponentStatus.hasStatus(toUpdateComponentStatus, STOP)) {
			if (ComponentStatus.hasStatus(componentStatus, RUNNING)) {
				this.stop();// stop queue; Reject new commands but
							// delivery all old commands
			} else if (ComponentStatus.hasStatus(componentStatus, EXIST, STOP)) {
				// Log - queue is already stopped
			} else if (ComponentStatus.hasStatus(componentStatus, SUSPEND)) {
				this.stop();// resume queue and move to stop status
			} else if (ComponentStatus.hasStatus(componentStatus, DELETE)) {
				// log wrong request and do nothing
			} else if (ComponentStatus.hasStatus(componentStatus, EXIST)) {
				// log wrong request and do nothing
			}
		} else if (ComponentStatus.hasStatus(toUpdateComponentStatus, SUSPEND)) {
			if (ComponentStatus.hasStatus(componentStatus, RUNNING)) {
				// suspend queue; Reject new commands and don't delivery all old
				// commands. No memory and persitence files clean. Service is
				// register but no Cpmmand put into queue.
				this.suspend();
			} else if (ComponentStatus.hasStatus(componentStatus, EXIST, STOP)) {
				this.suspend();// Log - queue is already stopped
			} else if (ComponentStatus.hasStatus(componentStatus, SUSPEND)) {
				// Log - queue is already suspend
			} else if (ComponentStatus.hasStatus(componentStatus, DELETE)) {
				this.suspend(); // log wrong request and do nothing
			} else if (ComponentStatus.hasStatus(componentStatus, EXIST)) {
				this.suspend();// log wrong request and do nothing
			}
		}
	}

	private boolean assertValidStatus(Integer updateComponentStatus) {
		// TODO Auto-generated method stub
		return true;
	}

	private void activateModelBundleListener() {
		bundleContext.addBundleListener(this);
		for (Bundle bundle : bundleContext.getBundles()) {
			Dictionary<String, String> headers = bundle.getHeaders();
			if (null != headers.get("Provide-Capability")) {
				BundleEvent bundleEvent = new BundleEvent(BundleEvent.RESOLVED, bundle);
				bundleChanged(bundleEvent);
			}
		}
	}

	@Override
	public void bundleChanged(BundleEvent bundleEvent) {
		Bundle bundle = bundleEvent.getBundle();
		BundleWiring wiring = bundle.adapt(BundleWiring.class);
		List<BundleCapability> capabilities = wiring.getCapabilities("osgi.extender");
		for (BundleCapability bundleCapability : capabilities) {
			String filterString = bundleCapability.getDirectives().get("filter");
			Filter capabilityFilter = createFilter(filterString);
			if (filter.equals(capabilityFilter)) {
				if (bundleEvent.getType() == BundleEvent.RESOLVED) {
					bundleClassLoader.addBundle(bundle);
					if (bundleClassLoader.areCapabilitiesSatisfy()) {
						resume();
					}
				} else if (bundleEvent.getType() == BundleEvent.UNRESOLVED) {
					bundleClassLoader.removeBundle(bundle);
					if (!bundleClassLoader.areCapabilitiesSatisfy()) {
						suspend();
					}
				}
			}
		}
	}

	public void deactivateModelBundleListener() {
		componentStatus |= SUSPEND.statusCode;
		bundleContext.removeBundleListener(this);
		queueCapability.deactivate(bundleContext);
		bundleClassLoader = null;
	}
}


text:
package org.scriptonbasestar.tool.core.exception.auth;

import org.scriptonbasestar.tool.core.exception.SBRuntimeBaseException;

/**
 * @author archmagece
 * @since 2017-09-05
 */
public class SBAuthenticationException
	extends SBRuntimeBaseException {
	public SBAuthenticationException(String code, String message) {
		super(code, message);
	}

	public SBAuthenticationException(String code, String message, Throwable e) {
		super(code, message, e);
	}
}

redpajama_set_name: RedPajamaGithub


text:
<?php

if(!defined('SRCPATH'))
{
	define('SRCPATH', realpath(dirname(__FILE__).'/../../../../src/PASL'));
	ini_set('include_path', get_include_path().PATH_SEPARATOR . SRCPATH);
}

require_once('simpletest/autorun.php');
require_once('Web/Simpl/Page.php');

class PASL_Web_Simpl_PageTest extends UnitTestCase
{
	/**
	 * @var PASL_Web_Simpl_Page
	 */
	private $page;

	public function PASL_Web_Simpl_PageTest()
	{
		$this->UnitTestCase("PASL Web Simpl Tests");
		$this->page = new \PASL\Web\Simpl\Page();
	}

	public function TestPage()
	{
		// Stubbed test to keep from the testsuite from breaking
		$this->assertTrue(true);
	}
}

?>


text:
package net.hamnaberg.json.extension;

import java.util.*;
import java.util.stream.Collectors;
import java.util.stream.Stream;

import static java.util.Spliterators.spliteratorUnknownSize;
import static java.util.stream.Collectors.toList;
import static java.util.stream.Collectors.toMap;
import static java.util.stream.StreamSupport.stream;

import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.node.ArrayNode;
import com.fasterxml.jackson.databind.node.JsonNodeFactory;
import com.fasterxml.jackson.databind.node.ObjectNode;
import net.hamnaberg.json.Error;
import net.hamnaberg.json.InternalObjectFactory;

public class Errors {
    private final Map<String, List<Error>> errors = new LinkedHashMap<String, List<Error>>();

    public Errors(Map<String, List<Error>> errors) {
        this.errors.putAll(errors);
    }

    public List<Error> getErrors(String name) {
        List<Error> v = errors.get(name);
        if (v != null) {
            return Collections.unmodifiableList(v);
        }
        return Collections.emptyList();
    }

    private JsonNode asJson() {
        ObjectNode n = JsonNodeFactory.instance.objectNode();
        n.setAll(errors.entrySet()
                .stream()
                .collect(Collectors.toMap(Map.Entry::getKey, entry -> toArrayNode(entry.getValue()))));
        return n;
    }

    private static ArrayNode toArrayNode(List<Error> errors) {
        return errors.stream()
                     .map(Extended::asJson)
                     .collect(JsonNodeFactory.instance::arrayNode, ArrayNode::add, ArrayNode::addAll);
    }

    public static class Builder {
        private Map<String, List<Error>> m = new LinkedHashMap<String, List<Error>>();

        public Builder put(String name, List<Error> errors) {
            m.put(name, errors);
            return this;
        }

        public Builder add(String name, List<Error> errors) {
            List<Error> list = m.get(name);
            if (list == null) {
                return put(name, errors);
            }
            list.addAll(errors);
            return this;
        }

        public Errors build() {
            return new Errors(m);
        }
    }

    public static class Ext extends Extension<Optional<Errors>> {
        private InternalObjectFactory factory = new InternalObjectFactory() {};

        @Override
        public Optional<Errors> extract(ObjectNode node) {
            if (node.has("errors")) {
                //extract stuff
                JsonNode n = node.get("errors");
                Stream<Map.Entry<String, JsonNode>> stream = stream(spliteratorUnknownSize(n.fields(), Spliterator.ORDERED), false);
                Map<String, List<Error>> errors  = stream.map(e -> {
                    List<Error> list = stream(e.getValue().spliterator(), false).map(elem -> factory.createError((ObjectNode) elem)).collect(toList());
                    return new AbstractMap.SimpleImmutableEntry<>(e.getKey(), list);
                }).collect(toMap(Map.Entry::getKey, Map.Entry::getValue));
                return Optional.of(new Errors(errors));
            }
            return Optional.empty();
        }

        @Override
        public Map<String, JsonNode> apply(Optional<Errors> value) {
            return value.map(Stream::of)
                        .orElse(Stream.<Errors>empty())
                        .collect(Collectors.toMap(erros -> "errors", Errors::asJson));
        }
    }
}


text:
Shindo.tests('Excon basics (Authorization data redacted)') do
  with_rackup('basic_auth.ru') do
    cases = [
      ['user & pass', 'http://user1:pass1@foo.com/', 'Basic dXNlcjE6cGFzczE='],
      ['email & pass', 'http://foo%40bar.com:pass1@foo.com/', 'Basic Zm9vQGJhci5jb206cGFzczE='],
      ['user no pass', 'http://three_user@foo.com/', 'Basic dGhyZWVfdXNlcjo='],
      ['pass no user', 'http://:derppass@foo.com/', 'Basic OmRlcnBwYXNz']
    ]
    cases.each do |desc,url,auth_header|
      conn = nil

      test("authorization header concealed for #{desc}") do
        conn = Excon.new(url)
        !conn.inspect.include?(auth_header)
      end

      test("authorization header remains correct for #{desc}") do
        conn.data[:headers]['Authorization'] == auth_header
      end

      if conn.data[:password]
        test("password param concealed for #{desc}") do
          !conn.inspect.include?(conn.data[:password])
        end
      end

      test("password param remains correct for #{desc}") do
        conn.data[:password] == URI.parse(url).password
      end

    end
  end
end


text:
package com.microsoft.azure.management.avs.v2020_03_20;

import com.microsoft.azure.arm.collection.SupportsCreating;
import com.microsoft.azure.arm.resources.collection.SupportsDeletingByResourceGroup;
import com.microsoft.azure.arm.resources.collection.SupportsBatchDeletion;
import com.microsoft.azure.arm.resources.collection.SupportsGettingByResourceGroup;
import rx.Observable;
import com.microsoft.azure.arm.resources.collection.SupportsListingByResourceGroup;
import com.microsoft.azure.arm.collection.SupportsListing;
import com.microsoft.azure.management.avs.v2020_03_20.implementation.PrivateCloudsInner;
import com.microsoft.azure.arm.model.HasInner;

/**
 * Type representing PrivateClouds.
 */
public interface PrivateClouds extends SupportsCreating<PrivateCloud.DefinitionStages.Blank>, SupportsDeletingByResourceGroup, SupportsBatchDeletion, SupportsGettingByResourceGroup<PrivateCloud>, SupportsListingByResourceGroup<PrivateCloud>, SupportsListing<PrivateCloud>, HasInner<PrivateCloudsInner> {
    /**
     * List the admin credentials for the private cloud.
     *
     * @param resourceGroupName The name of the resource group. The name is case insensitive.
     * @param privateCloudName Name of the private cloud
     * @throws IllegalArgumentException thrown if parameters fail the validation
     * @return the observable for the request
     */
    Observable<AdminCredentials> listAdminCredentialsAsync(String resourceGroupName, String privateCloudName);

}


text:
namespace MassTransit
{
    public interface IRescueConfigurator<TContext, TRescue> :
        IExceptionConfigurator,
        IPipeConfigurator<TRescue>
        where TContext : class, PipeContext
        where TRescue : class, TContext
    {
        /// <summary>
        /// Configure a filter on the context pipe, versus the rescue pipe
        /// </summary>
        IPipeConfigurator<TContext> ContextPipe { get; }
    }
}


text:
package aiplatform;

// [START aiplatform_list_features_async_sample]

import com.google.cloud.aiplatform.v1.EntityTypeName;
import com.google.cloud.aiplatform.v1.Feature;
import com.google.cloud.aiplatform.v1.FeaturestoreServiceClient;
import com.google.cloud.aiplatform.v1.FeaturestoreServiceSettings;
import com.google.cloud.aiplatform.v1.ListFeaturesRequest;
import com.google.cloud.aiplatform.v1.ListFeaturesResponse;
import com.google.common.base.Strings;
import java.io.IOException;

public class ListFeaturesAsyncSample {

  public static void main(String[] args) throws IOException {
    // TODO(developer): Replace these variables before running the sample.
    String project = "YOUR_PROJECT_ID";
    String featurestoreId = "YOUR_FEATURESTORE_ID";
    String entityTypeId = "YOUR_ENTITY_TYPE_ID";
    String location = "us-central1";
    String endpoint = "us-central1-aiplatform.googleapis.com:443";

    listFeaturesAsyncSample(project, featurestoreId, entityTypeId, location, endpoint);
  }

  static void listFeaturesAsyncSample(
      String project, String featurestoreId, String entityTypeId, String location, String endpoint)
      throws IOException {
    FeaturestoreServiceSettings featurestoreServiceSettings =
        FeaturestoreServiceSettings.newBuilder().setEndpoint(endpoint).build();

    // Initialize client that will be used to send requests. This client only needs to be created
    // once, and can be reused for multiple requests. After completing all of your requests, call
    // the "close" method on the client to safely clean up any remaining background resources.
    try (FeaturestoreServiceClient featurestoreServiceClient =
        FeaturestoreServiceClient.create(featurestoreServiceSettings)) {

      ListFeaturesRequest listFeaturesRequest =
          ListFeaturesRequest.newBuilder()
              .setParent(
                  EntityTypeName.of(project, location, featurestoreId, entityTypeId).toString())
              .build();
      System.out.println("List Features Async Response");
      while (true) {
        ListFeaturesResponse listFeaturesResponse =
            featurestoreServiceClient.listFeaturesCallable().call(listFeaturesRequest);
        for (Feature element : listFeaturesResponse.getFeaturesList()) {
          System.out.println(element);
        }
        String nextPageToken = listFeaturesResponse.getNextPageToken();
        if (!Strings.isNullOrEmpty(nextPageToken)) {
          listFeaturesRequest = listFeaturesRequest.toBuilder().setPageToken(nextPageToken).build();
        } else {
          break;
        }
      }
      featurestoreServiceClient.close();
    }
  }
}
// [END aiplatform_list_features_async_sample]


text:
<!DOCTYPE html>

    <meta charset="utf-8"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge"/>
    <title><?php echo $titulo; ?></title>
    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport"/>
    <link rel="icon" href="<?=base_url()?>/favicon.png" type="image/png"/>
    <link href="<?php echo base_url('assets/css/bootstrap.min.css')?>" rel="stylesheet"/>
    <link href="<?php echo base_url('assets/fonts/css/font-awesome.min.css')?>" rel="stylesheet"/>
    <link href="<?php echo base_url('assets/css/AdminLTE.min.css')?>" rel="stylesheet"/>
    <link href="<?php echo base_url('assets/css/skins/_all-skins.min.css')?>" rel="stylesheet"/>
    <link href="<?php echo base_url('assets/css/backend.css')?>" rel="stylesheet"/>
    <link href="<?php echo base_url('assets/css/backend_pagination.css')?>" rel="stylesheet"/>

            <button type="button" class="close" data-dismiss="modal" aria-label="Close">×</button>

Mensaje

<?php echo $this->lang->line('score_formador_eliminar_confirmacion');?>

            Aceptar
            <button type="button" class="btn btn-default" data-dismiss="modal">Cerrar</button>

      <?php
        $this->load->view('backend/comunes/sidebar');
        $this->load->view('backend/comunes/cabecera');
      ?>

                <?php echo $this->lang->line('score_formadores');?>
                <a href="<?php echo base_url('index.php/administrador/formador/nuevo');?>" class="btn btn-default btn-sm title-action"><?php echo $this->lang->line('score_nuevo'); ?>

                <input type="hidden" name="accion_eliminar" id="accion_eliminar" value="<?php echo base_url('index.php/administrador/formador/eliminar');?>" />
                <input type="hidden" name="accion_publicar" id="accion_publicar" value="<?php echo base_url('index.php/administrador/formador/publicar');?>" />
                <input type="hidden" name="accion_publicar_mensaje" id="accion_publicar_mensaje" value="<?php echo base_url('index.php/administrador/formador/publicar_mensaje');?>" />

                <?php if (isset($mensaje)) {
                ?>

Mensaje

<?php echo $mensaje;?>

                <?php
                $this->session->unset_userdata('mensaje');
                } elseif (isset($error)) {
                ?>

Error

<?php echo $error;?>

                <?php
                $this->session->unset_userdata('error');
                }?>

                                    <input type="text" class="form-control" id="apellidos" name="apellidos" value="<?php echo $buscar; ?>" placeholder="<?php echo $this->lang->line('score_buscar');?>"/>

                                        <a id="buscar-apellidos" href="" class="btn btn-primary" onclick="buscar_apellidos('<?php echo base_url('index.php/administrador/formador');?>');">  Buscar

                                        <a href="<?php echo base_url('index.php/administrador/formador'); ?>" class="btn btn-default" style="margin-left: 10px;"> Limpiar

Páginas:

                                        <?=$this->page->create_links();?>

Mostrando <?=$this->page->page_stats();?>

Apellidos

<?=$this->page->create_sort_link('apellidos', 'asc'); ?>

<?=$this->page->create_sort_link('apellidos', 'desc'); ?>

                          Nombres
                          Fotografía
                          Autor
                          Creado
                          Veces visto
                          ID
                          Estado
                          Opciones

                        <?php
                        if(count($formadores)>0)
                        {
                        foreach ($formadores as $formador):
                        $formador = (object) $formador;
                        ?>

                            <a href="<?php echo base_url('index.php/administrador/formador/editar/'.$formador->id);?>" data-toggle="tooltip" data-placement="top" title="<?php echo $this->lang->line('score_editar_tooltip'); ?>"><?php echo $formador->apellidos?>
                            <a href="<?php echo base_url('index.php/administrador/formador/editar/'.$formador->id);?>" data-toggle="tooltip" data-placement="top" title="<?php echo $this->lang->line('score_editar_tooltip'); ?>"><?php echo $formador->nombres?>

                            <?php
                            if(!empty($formador->fotografia))
                            {
                            ?>
                            <img class="avatar" src="<?php echo base_url('assets/img/formadores/'.$formador->fotografia); ?>" alt="<?php echo $formador->fotografia;?>"/>
                            <?php
                            }
                            else
                            {
                               if($formador->genero == VARON)
                               {
                            ?>
                            <img class="avatar" src="<?php echo base_url('assets/img/formadores/sinfoto_varon.png'); ?>" alt="varon.png"/>
                            <?php
                               }
                               else
                               {
                            ?>
                            <img class="avatar" src="<?php echo base_url('assets/img/formadores/sinfoto_mujer.png'); ?>" alt="mujer.png"/>
                            <?php
                               }
                            }
                            ?>

                            <?php
                            $autor = get_autor($formador->creado_por);
                            if(!empty($autor))
                            {
                            ?>
                                <a href="<?php echo base_url('index.php/administrador/usuario/editar/'.$formador->creado_por);?>" data-toggle="tooltip" data-placement="top" title="<?php echo $this->lang->line('score_autor'); ?>"><?php echo $autor?>
                            <?php
                            }
                            ?>

                            <?php echo $formador->creado?>
                            <?php echo $formador->hits?>
                            <?php echo $formador->id?>

                                <div id="contenido_ajax_<?php echo $formador->id; ?>">
                                <?php
                                if($formador->estado == PUBLICADO)
                                {
                                    ?>
                                    <a href="javascript:;" onclick="publicar(<?php echo $formador->id;?>)" class="btn btn-success btn-xs" data-toggle="tooltip" data-placement="top" title="<?php echo $this->lang->line('score_despublicar_tooltip'); ?>">
                                    <?php
                                }
                                else
                                {
                                    ?>
                                    <a href="javascript:;" onclick="publicar(<?php echo $formador->id;?>)" class="btn btn-danger btn-xs" data-toggle="tooltip" data-placement="top" title="<?php echo $this->lang->line('score_publicar_tooltip');?>">
                                    <?php
                                }
                                ?>

                                    <a href="<?php echo base_url('index.php/administrador/formador/editar/'.$formador->id);?>" class="btn btn-default" data-container="body" data-toggle="tooltip"  data-placement="top" title="<?php echo $this->lang->line('score_editar_tooltip'); ?>">
                                    <a href="javascript:;" onclick="eliminar(<?php echo $formador->id; ?>,'<?php echo $formador->nombres." ".$formador->apellidos; ?>')" class="btn btn-default" data-container="body" data-toggle="tooltip"  data-placement="top" title="<?php echo $this->lang->line('score_eliminar_tooltip'); ?>">

                        <?php
                        endforeach;
                        }
                        else
                        {
                        ?>

                            Lo sentimos, no hay registros.

                        <?php
                        }
                        ?>

        <?php
        $this->load->view('backend/comunes/pie');
        ?>


text:
package examples.urbisound;

import java.io.IOException;

import java.io.*;

import urbi.*;
import urbi.*;
import javax.sound.sampled.*;

public class CallSound extends UCallbackInterface implements SoundAction
{
    private ByteArrayOutputStream       out;

    private static float    sampleRate = 8000;

    private static int      sampleSizeInBits = 8;

    private static int      channels = 1;

    private static boolean  signed = true;

    private boolean isCaptured = false;

    public CallSound()
    {
        super ();
        out = new ByteArrayOutputStream();
    }

    public UCallbackAction onMessage(UMessage msg)
    {
        if (!(UMessageType.MESSAGE_DATA == msg.getType ()))
            return UCallbackAction.URBI_CONTINUE;
        UValue value = msg.getValue ();

        if (!(UDataType.DATA_BINARY == msg.getValue ().getType ()))
            return UCallbackAction.URBI_CONTINUE;
        UBinary bin = value.ubinaryValue ();

        if (!(UBinaryType.BINARY_SOUND == bin.getType ()))
            return UCallbackAction.URBI_CONTINUE;
        USound sound = bin.usoundValue();

        sampleRate = (int) sound.getRate ();
        sampleSizeInBits = (int) sound.getSampleSize ();
        channels = (int) sound.getChannels ();
        signed = (sound.getSampleFormat () == USoundSampleFormat.SAMPLE_SIGNED);
        byte[] data = sound.getData ();
        out.write(data, 0, data.length);
        return UCallbackAction.URBI_CONTINUE;
    }

    public void     captureAudio()
    {
        if (isCaptured == false)
        {
            out.reset();
            isCaptured = true;
        }
        URBISound.robotC.send("loopsound<<loop sound<<micro.val, ");
    }

    public void     playAudio()
    {
        try
        {
            byte audio[] = out.toByteArray();
            InputStream input = new ByteArrayInputStream(audio);

            SoundUtilities.setSampleRate(sampleRate);
            SoundUtilities.setSampleSizeInBits(sampleSizeInBits);
            SoundUtilities.setChannels(channels);
            SoundUtilities.setSigned(signed);
            final AudioFormat format = SoundUtilities.getFormat();

            final AudioInputStream ais = new AudioInputStream(input, format,
                                                              audio.length / format.getFrameSize());
            SourceDataLine.Info info = new DataLine.Info(SourceDataLine.class, ais.getFormat(),
                                                         ((int)ais.getFrameLength() * format.getFrameSize()));
            final SourceDataLine line = (SourceDataLine)AudioSystem.getLine(info);
            line.open(ais.getFormat());
            line.start();

            try
            {
                int     numRead = 0;
                byte[]  buf = new byte[line.getBufferSize()];
                while ((numRead = ais.read(buf, 0, buf.length)) >= 0)
                {
                    int offset = 0;
                    while (offset < numRead)
                    {
                        offset += line.write(buf, offset, numRead - offset);
                    }
                }
                line.drain();
                line.close();
                input.close();
            }
            catch (IOException e)
            {
                System.err.println("I/O problems: " + e);
                System.exit(1);
            }
            audio = null;
        }
        catch (LineUnavailableException e)
        {
            System.err.println("Line unavailable: " + e);
            System.exit(1);
        }
    }

    public void     stopAudio()
    {
        try
        {
            URBISound.robotC.send(" stop loopsound; wait(1000); ");
            out.close();
            isCaptured = false;
        }
        catch (IOException e)
        {
        }
    }

    public void     saveAudio(String filename)
    {
        File    file = new File(filename);

        try
        {
            if (file.exists() == true)
                file.delete();
            file.createNewFile();

            byte audio[] = out.toByteArray();
            InputStream input = new ByteArrayInputStream(audio);

            SoundUtilities.setSampleRate(sampleRate);
            SoundUtilities.setSampleSizeInBits(sampleSizeInBits);
            SoundUtilities.setChannels(channels);
            SoundUtilities.setSigned(signed);
            final AudioFormat format = SoundUtilities.getFormat();

            final AudioInputStream ais = new AudioInputStream(input, format,
                                                              audio.length / format.getFrameSize());
            AudioSystem.write(ais, AudioFileFormat.Type.WAVE, file);
        }
        catch (IOException e)
        {
        }
    }
}


text:
(function ($)
	{
		FormValidation.I18n = $.extend(true, FormValidation.I18n || {}, {
			'en_US': {
				digits: {
					'default': 'Please enter only digits'
				}
			}
		});

		FormValidation.Validator.digits = {
			/**
			 * Return true if the input value contains digits only
			 *
			 * @param {FormValidation.Base} validator Validate plugin instance
			 * @param {jQuery} $field Field element
			 * @param {Object} [options]
			 * @returns {Boolean}
			 */
			validate: function (validator, $field, options)
				{
					var value = validator.getFieldValue($field, 'digits');
					if (value === '')
						{
							return true;
						}

					return /^\d+$/.test(value);
				}
		};
	}(jQuery));


text:
import java.util.Map;
import java.util.HashMap;

class C {
    void test() {
        var result = new HashMap<>();
        foo(<caret>result);
    }

    void foo(Map<String, Integer> map) {}
}


text:
- Update gem dependencies. Run `bundle` to update `Gemfile.lock`.

## [3.1.5](https://github.com/mmistakes/minimal-mistakes/releases/tag/3.1.5)

### Maintenance

- Fix `www` and `https` links in author profile include [#293](https://github.com/mmistakes/minimal-mistakes/pull/293)

## [3.1.4](https://github.com/mmistakes/minimal-mistakes/releases/tag/3.1.4)

### Enhancements

- Add overlay_filter param to hero headers [#298](https://github.com/mmistakes/minimal-mistakes/pull/298)

## [3.1.3](https://github.com/mmistakes/minimal-mistakes/releases/tag/3.1.3)

### Enhancements

- Improve `site.locale` documentation [#284](https://github.com/mmistakes/minimal-mistakes/issues/284)
- Remove ProTip note about protocol-less `site.url` as it is an anti-pattern [#288](https://github.com/mmistakes/minimal-mistakes/issues/288)

### Bug Fixes

- Fix `og_image` URL in seo.html [#277](https://github.com/mmistakes/minimal-mistakes/issues/277)
- Fix `author_profile` toggle when assigned in a `_layout` [#285](https://github.com/mmistakes/minimal-mistakes/issues/285)
- Fix typo in `build:all` npm script [#283](https://github.com/mmistakes/minimal-mistakes/pull/283)
- Fix URL typo documentation [#287](https://github.com/mmistakes/minimal-mistakes/issues/287)
- SEO author bug. If `twitter.username` is set and `author.twitter` is `nil` bad things happen. [#289](https://github.com/mmistakes/minimal-mistakes/issues/289)

## [3.1.2](https://github.com/mmistakes/minimal-mistakes/releases/tag/3.1.2)

### Enhancement

- Explain how to use `nav_list` helper in [documentation](https://mmistakes.github.io/minimal-mistakes/docs/helpers/#navigation-list).
- Reduce left/right padding on smaller screens to increase width of main content column.

### Bug Fixes

- Fix alignment issues with related posts [#273](https://github.com/mmistakes/minimal-mistakes/issues/273) and "Follow" button in author profile [#274](https://github.com/mmistakes/minimal-mistakes/issues/274).

## [3.1.1](https://github.com/mmistakes/minimal-mistakes/releases/tag/3.1.1)

### Bug Fix

- Fixed reading time bug when `words_per_minute` wasn't set in `_config.yml` [#271](https://github.com/mmistakes/minimal-mistakes/issues/271)

## [3.1.0](https://github.com/mmistakes/minimal-mistakes/releases/tag/3.1.0)

### Enhancements

- Updated [Font Awesome](https://fortawesome.github.io/Font-Awesome/whats-new/) to version 4.6.1
- Added optional GitHub and Bitbucket links to footer if set on `site.author` in `_config.yml`.

### Bug Fixes
- Fixed Bitbucket URL typo in author sidebar.

>>>>>>> release/3.1.0
## [3.0.3](https://github.com/mmistakes/minimal-mistakes/releases/tag/3.0.3)

### Enhancements

- Rebuilt the entire theme: layouts, includes, stylesheets, scripts, you name it.
- Refreshed the look and feel while staying true to the original design of the theme (author sidebar/main content).
- Replaced grid system with [Susy](http://susy.oddbird.net/).
- Replaced Grunt tasks with `npm` scripts.
- Removed Google Fonts and replaced with system fonts to improve performance (they can be [added back](https://mmistakes.github.io/minimal-mistakes/docs/stylesheets/) if desired)
- Greatly improved [theme documentation](https://mmistakes.github.io/minimal-mistakes/docs/quick-start-guide/).
- Increased the amount of sample posts, sample pages, and sample collections to throughly test the theme and edge-cases.
- Moved all sample content and assets out of `master` to keep it as clean as possible for forking.
- Added new layouts for `splash` pages, archives for [`jekyll-archives`](https://github.com/jekyll/jekyll-archives) if enabled, and [`compress.html`](https://github.com/penibelst/jekyll-compress-html) to improve performance.
- Added taxonomy links to posts (tags and categories).
- Added optional "reading time" meta data.
- Improved Liquid used for Twitter Cards and Open Graph data in `<head>`.
- Improved `gallery` include helper and added `feature_row` for use with splash page layout.
- Added Keybase.io, author web URI, and Bitbucket optional links to sidebar.
- Add `feed.xml` link to footer.
- Added a [UI text data file](https://mmistakes.github.io/minimal-mistakes/docs/ui-text/) to easily change all text found in the theme.
- Added LinkedIn to optional social share buttons.
- Added Facebook, Google+, and custom commenting options in addition to Disqus.
- Added optional breadcrumb links.

## [2.2.1](https://github.com/mmistakes/minimal-mistakes/releases/tag/2.2.1)

## [2.2.0](https://github.com/mmistakes/minimal-mistakes/releases/tag/2.2.0)

### Enhancements

- Add support for Jekyll 3.0
- Minor updates to syntax highlighting CSS and theme documentation

## [2.1.3](https://github.com/mmistakes/minimal-mistakes/releases/tag/2.1.3)

### Enhancements

- Cleaner print styles that remove the top navigation, social sharing buttons, and other elements not needed when printed.

## [2.1.2](https://github.com/mmistakes/minimal-mistakes/releases/tag/2.1.2)

### Enhancements

- Add optional CodePen icon/url to author side bar [#156](https://github.com/mmistakes/minimal-mistakes/pull/156)
- Documented Stackoverflow username explanation in `_config.yml` [#157](https://github.com/mmistakes/minimal-mistakes/pull/157)
- Simplified Liquid in `post-index.html` to better handle year listings [#166](https://github.com/mmistakes/minimal-mistakes/pull/166)

### Bug Fixes

- Cleanup Facebook related Open Graph meta tags [#149](https://github.com/mmistakes/minimal-mistakes/issues/149)
- Corrected minor typos [#158](https://github.com/mmistakes/minimal-mistakes/pull/158) [#175](https://github.com/mmistakes/minimal-mistakes/issues/175)

## [2.1.1](https://github.com/mmistakes/minimal-mistakes/releases/tag/2.1.1)

### Enhancements

- Add optional XING profile link to author sidebar
- Include open graph meta tags for feature image (if assigned) [#149](https://github.com/mmistakes/minimal-mistakes/issues/149)
- Create an include for feed footer

### Bug Fixes

- Remove http protocol from Google search form on sample 404 page
- Only show related posts if there are one or more available
- Fix alignment of email address link in author sidebar

## [2.1.0](https://github.com/mmistakes/minimal-mistakes/releases/tag/2.1.0)

### Enhancements

- Add optional social sharing buttons ([#42](https://github.com/mmistakes/minimal-mistakes/issues/42))

![social sharing buttons](https://cloud.githubusercontent.com/assets/1376749/5860522/d9f28a96-a22f-11e4-9b83-940a3a9a766a.png)

- Add Soundcloud, YouTube ([#95](https://github.com/mmistakes/minimal-mistakes/pull/95)), Flickr ([#119](https://github.com/mmistakes/minimal-mistakes/pull/119)), and Weibo ([#116](https://github.com/mmistakes/minimal-mistakes/pull/116)) icons for use in author sidebar.
- Fix typos in posts and documentation and remove references to Less
- Include note about Octopress gem being optional
- Post author override support extended to the Atom feed ([#71](https://github.com/mmistakes/minimal-mistakes/pull/71))
- Only include email address in feed if specified in `_config.yml` or author `_data`
- Wrap all page content in `#main` to harmonize article and post index styles ([#86](https://github.com/mmistakes/minimal-mistakes/issues/86))
- Include new sample feature images for posts and pages
- Table of contents improvements: fix collapse toggle, indent nested elements, show on small screens, and create an `_include` for reusing in posts and pages.
- Include note about running Jekyll with `bundle exec` when using Bundler
- Fix home page path in top navigation
- Remove Google Authorship ([#120](https://github.com/mmistakes/minimal-mistakes/issues/120))
- Remove duplicate author content that displayed in `div.article-author-bottom`
- Removed unused `_sass/print.scss` styles
- Improve comments in `.scss` files

## [2.0.0](https://github.com/mmistakes/minimal-mistakes/releases/tag/v2.0)

## [1.3.3](https://github.com/mmistakes/minimal-mistakes/releases/tag/1.3.3)

### Enhancements

- Added new icons and profile links for Stackoverflow, Dribbble, Pinterest, Foursquare, and Steam to the author bio sidebar.
- Cleaned up the Kramdown auto table of contents styling to be more readable
- Removed page width specific .less stylesheets and created mixins for easier updating
- Removed Modernizr since it wasn't being used
- Added pages to sitemap.xml
- Added category: to rake new_post task
- Minor typographic changes

### Bug Fixes

- Corrected various broken links in README and Theme Setup.

## [1.3.1](https://github.com/mmistakes/minimal-mistakes/releases/tag/1.3.1)

### Enhancements

- Cleaned up table of contents styling
- Reworked top navigation to be a better experience on small screens. Nav items now display vertically when the menu button is tapped, revealing links with larger touch targets.

![menu animation](https://camo.githubusercontent.com/3fbd8c1326485f4b1ab32c0005c0fca7660b5d31/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f313337363734392f323136343037352f31653366303663322d393465372d313165332d383961612d6436623636376562306564662e676966)

## [1.2.0](https://github.com/mmistakes/minimal-mistakes/releases/tag/1.2.0)

### Bug Fixes

- Table weren't filling the entire width of the content container. They now scale at 100%. Thanks [@dhruvbhatia](https://github.com/dhruvbhatia)

### Enhancements

- Decreased spacing between Markdown footnotes
- Removed dark background on footer
- Removed UPPERCASE styling on post titles in the index listing

## [1.1.4](https://github.com/mmistakes/minimal-mistakes/releases/tag/1.1.4)

### Bug Fixes

- Fix top navigation bug issue ([#10](https://github.com/mmistakes/minimal-mistakes/issues/10)) for real this time. Remember to clear your floats kids.

## [1.1.3](https://github.com/mmistakes/minimal-mistakes/releases/tag/1.1.3)

### Bug Fixes

- Fix top navigation links that weren't click able on small viewports (Issue [#10](https://github.com/mmistakes/minimal-mistakes/issues/10)).
- Remove line wrap from top navigation links that may span multiple lines.

## [1.1.2](https://github.com/mmistakes/minimal-mistakes/releases/tag/1.1.2)

### Enhancements

- Added Grunt build script for compiling Less/JavaScript and optimizing image assets.
- Added support for large image summary Twitter card.
- Stylesheet adjustments

## [1.1.1](https://github.com/mmistakes/minimal-mistakes/releases/tag/1.1.1)

### Bug Fixes

- Removed [Typeplate](http://typeplate.com/) styles. Was [causing issues with newer versions of Less](https://github.com/typeplate/typeplate.github.io/issues/108) and is no longer maintained.

### Enhancements

- Added [image attribution](http://mmistakes.github.io/minimal-mistakes/theme-setup/#feature-images) for post and page feature images.
- Added [404 page](http://mmistakes.github.io/minimal-mistakes/404.html).
- Cleaned up various Less variables to better align with naming conventions used in other MM Jekyll themes.
- Removed Chrome Frame references.
- Added global CSS3 transitions to text and block elements.
- Improved typography in a few places.

## [1.0.2](https://github.com/mmistakes/minimal-mistakes/releases/tag/v1.0.2)

### Enhancements

- Google Analytics, Google Authorship, webmaster verifies, and Twitter card meta are now optional.

## [1.0.1](https://github.com/mmistakes/minimal-mistakes/releases/tag/v1.0.1)


text:
Roslyn Clr Heap Allocation Analyzer
===================================

[![Join the chat at https://gitter.im/mjsabby/RoslynClrHeapAllocationAnalyzer](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/mjsabby/RoslynClrHeapAllocationAnalyzer?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)

Quick Video: https://www.youtube.com/watch?v=Tw-wgT-cXYU&hd=1

Download: **https://github.com/mjsabby/RoslynClrHeapAllocationAnalyzer/releases**

Roslyn based C# heap allocation diagnostic analyzer that can detect explicit and many implicit allocations like boxing, display classes a.k.a closures, implicit delegate creations, etc.

You can find also it on the Visual Studio Gallery, https://visualstudiogallery.msdn.microsoft.com/f9b47b93-8675-4ae0-9c52-5da8027c4bb8

If you want it use it in your build: https://www.nuget.org/packages/ClrHeapAllocationAnalyzer/1.0.0.7

**NOTE: Requires [Visual Studio 2015](https://www.visualstudio.com/news/vs2015-vs)**

![example](https://cloud.githubusercontent.com/assets/1930559/4606581/2a027d08-5225-11e4-8d4e-686c204a1267.png)


text:
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Text;
using Memoria.Prime.Text;

namespace SimpleJSON
{
	public class JSONNode
	{
		public virtual void Add(String aKey, JSONNode aItem)
		{
		}

		public virtual JSONNode this[Int32 aIndex]
		{
			get
			{
				return (JSONNode)null;
			}
			set
			{
			}
		}

		public virtual JSONNode this[String aKey]
		{
			get
			{
				return (JSONNode)null;
			}
			set
			{
			}
		}

		public virtual String Value
		{
			get
			{
				return String.Empty;
			}
			set
			{
			}
		}

		public virtual Int32 Count
		{
			get
			{
				return 0;
			}
		}

		public virtual void Add(JSONNode aItem)
		{
			this.Add(String.Empty, aItem);
		}

		public virtual JSONNode Remove(String aKey)
		{
			return (JSONNode)null;
		}

		public virtual JSONNode Remove(Int32 aIndex)
		{
			return (JSONNode)null;
		}

		public virtual JSONNode Remove(JSONNode aNode)
		{
			return aNode;
		}

		public virtual IEnumerable<JSONNode> Childs
		{
			get
			{
				yield break;
			}
		}

		public IEnumerable<JSONNode> DeepChilds
		{
			get
			{
				foreach (JSONNode C in this.Childs)
				{
					foreach (JSONNode D in C.DeepChilds)
					{
						yield return D;
					}
				}
				yield break;
			}
		}

		public override String ToString()
		{
			return "JSONNode";
		}

		public virtual String ToString(String aPrefix)
		{
			return "JSONNode";
		}

		public virtual Int32 AsInt
		{
			get
			{
				Int32 result = 0;
				if (Int32.TryParse(this.Value, out result))
				{
					return result;
				}
				return 0;
			}
			set
			{
				this.Value = value.ToString();
			}
		}

		public virtual UInt32 AsUInt
		{
			get
			{
				UInt32 result = 0u;
				if (UInt32.TryParse(this.Value, out result))
				{
					return result;
				}
				return 0u;
			}
			set
			{
				this.Value = value.ToString();
			}
		}

		public virtual Int64 AsLong
		{
			get
			{
				Int64 result = 0L;
				if (Int64.TryParse(this.Value, out result))
				{
					return result;
				}
				return 0L;
			}
			set
			{
				this.Value = value.ToString();
			}
		}

		public virtual UInt64 AsULong
		{
			get
			{
				UInt64 result = 0UL;
				if (UInt64.TryParse(this.Value, out result))
				{
					return result;
				}
				return 0UL;
			}
			set
			{
				this.Value = value.ToString();
			}
		}

		public virtual Single AsFloat
		{
			get
			{
				Single result = 0f;
				if (Single.TryParse(this.Value, out result))
				{
					return result;
				}
				return 0f;
			}
			set
			{
				this.Value = value.ToString();
			}
		}

		public virtual Double AsDouble
		{
			get
			{
				Double result = 0.0;
				if (Double.TryParse(this.Value, out result))
				{
					return result;
				}
				return 0.0;
			}
			set
			{
				this.Value = value.ToString();
			}
		}

		public virtual Boolean AsBool
		{
			get
			{
				Boolean result = false;
				if (Boolean.TryParse(this.Value, out result))
				{
					return result;
				}
				return !String.IsNullOrEmpty(this.Value);
			}
			set
			{
				this.Value = ((!value) ? "false" : "true");
			}
		}

		public virtual UnityEngine.Vector4 AsVector
		{
			get
			{
				String val = this.Value;
				if (val.StartsWith("(") && val.EndsWith(")"))
					val = val.Substring(1, val.Length - 2);
				String[] coordStr = val.Split(',');
				if (coordStr.Length == 0)
					return UnityEngine.Vector4.zero;
				Single[] coordNum = new Single[coordStr.Length];
				for (Int32 i = 0; i < coordStr.Length; i++)
					if (!Single.TryParse(coordStr[i], out coordNum[i]))
						return UnityEngine.Vector4.zero;
				if (coordNum.Length == 1)
					return new UnityEngine.Vector4(coordNum[0], coordNum[0], coordNum[0], coordNum[0]);
				if (coordNum.Length == 2)
					return new UnityEngine.Vector4(coordNum[0], coordNum[1], 0f, 0f);
				if (coordNum.Length == 3)
					return new UnityEngine.Vector4(coordNum[0], coordNum[1], coordNum[2], 0f);
				return new UnityEngine.Vector4(coordNum[0], coordNum[1], coordNum[2], coordNum[3]);
			}
			set
			{
				this.Value = value.ToString();
			}
		}

		public virtual JSONArray AsArray
		{
			get
			{
				return this as JSONArray;
			}
		}

		public virtual JSONClass AsObject
		{
			get
			{
				return this as JSONClass;
			}
		}

		public override Boolean Equals(Object obj)
		{
			return Object.ReferenceEquals(this, obj);
		}

		public override Int32 GetHashCode()
		{
			return base.GetHashCode();
		}

		internal static String Escape(String aText)
		{
			String text = String.Empty;
			foreach (Char c in aText)
			{
				Char c2 = c;
				switch (c2)
				{
				case '\b':
					text += "\\b";
					break;
				case '\t':
					text += "\\t";
					break;
				case '\n':
					text += "\\n";
					break;
				case '\v':
					IL_3B:
					if (c2 != '"')
					{
						if (c2 != '\\')
						{
							text += c;
						}
						else
						{
							text += "\\\\";
						}
					}
					else
					{
						text += "\\\"";
					}
					break;
				case '\f':
					text += "\\f";
					break;
				case '\r':
					text += "\\r";
					break;
				default:
					goto IL_3B;
				}
			}
			return text;
		}

		public static JSONNode Parse(String json)
		{
			Stack<JSONNode> stack = new Stack<JSONNode>();
			JSONNode ctx = null;
			Int32 i = 0;
			StringBuilder nameBuilder = new StringBuilder();
			String name = String.Empty;
			Boolean quoteMode = false;
			while (i < json.Length)
			{
				switch (json[i])
				{
					case '{':
						if (quoteMode)
						{
							nameBuilder.Append(json[i]);
							break;
						}

						stack.Push(new JSONClass());
						if (ctx != null)
						{
							name = name.Trim();
							if (ctx is JSONArray)
								ctx.Add(stack.Peek());
							else if (name != String.Empty)
								ctx.Add(name, stack.Peek());
						}

						name = String.Empty;
						nameBuilder.Clear();
						ctx = stack.Peek();
						break;

					case '[':
						if (quoteMode)
						{
							nameBuilder.Append(json[i]);
							break;
						}

						stack.Push(new JSONArray());
						if (ctx != null)
						{
							name = name.Trim();
							if (ctx is JSONArray)
								ctx.Add(stack.Peek());
							else if (name != String.Empty)
								ctx.Add(name, stack.Peek());
						}

						name = String.Empty;
						nameBuilder.Clear();
						ctx = stack.Peek();
						break;

					case '}':
					case ']':
						if (quoteMode)
						{
							nameBuilder.Append(json[i]);
							break;
						}

						if (stack.Count == 0)
							throw new Exception("JSON Parse: Too many closing brackets");

						stack.Pop();
						if (nameBuilder.Length > 0)
						{
							name = name.Trim();
							if (ctx is JSONArray)
								ctx.Add(nameBuilder.ToString());
							else if (name != String.Empty)
								ctx.Add(name, nameBuilder.ToString());
						}

						name = String.Empty;
						nameBuilder.Clear();
						if (stack.Count > 0)
							ctx = stack.Peek();
						break;

					case ':':
						if (quoteMode)
						{
							nameBuilder.Append(json[i]);
							break;
						}

						name = nameBuilder.ToString();
						nameBuilder.Clear();
						break;

					case '"':
						quoteMode ^= true;
						break;

					case ',':
						if (quoteMode)
						{
							nameBuilder.Append(json[i]);
							break;
						}

						if (nameBuilder.Length > 0)
						{
							if (ctx is JSONArray)
								ctx.Add(nameBuilder.ToString());
							else if (name != String.Empty)
								ctx.Add(name, nameBuilder.ToString());
						}

						name = String.Empty;
						nameBuilder.Clear();
						break;

					case '\r':
					case '\n':
						break;

					case ' ':
					case '\t':
						if (quoteMode)
							nameBuilder.Append(json[i]);
						break;

					case '\\':
						++i;
						if (quoteMode)
						{
							Char ch = json[i];
							switch (ch)
							{
								case 't':
									nameBuilder.Append('\t');
									break;
								case 'r':
									nameBuilder.Append('\r');
									break;
								case 'n':
									nameBuilder.Append('\n');
									break;
								case 'b':
									nameBuilder.Append('\b');
									break;
								case 'f':
									nameBuilder.Append('\f');
									break;
								case 'u':
								{
									String s = json.Substring(i + 1, 4);
									nameBuilder.Append((Char) Int32.Parse(s, NumberStyles.AllowHexSpecifier));
									i += 4;
									break;
								}
								default:
									nameBuilder.Append(ch);
									break;
							}
						}

						break;

					default:
						nameBuilder.Append(json[i]);
						break;
				}

				++i;
			}

			if (quoteMode)
			{
				throw new Exception("JSON Parse: Quotation marks seems to be messed up.");
			}

			return ctx;
		}

		public virtual void Serialize(BinaryWriter aWriter)
		{
		}

		public void SaveToStream(Stream aData)
		{
			BinaryWriter aWriter = new BinaryWriter(aData);
			this.Serialize(aWriter);
		}

		public void SaveToCompressedStream(Stream aData)
		{
			throw new Exception("Can't use compressed functions. You need include the SharpZipLib and uncomment the define at the top of SimpleJSON");
		}

		public void SaveToCompressedFile(String aFileName)
		{
			throw new Exception("Can't use compressed functions. You need include the SharpZipLib and uncomment the define at the top of SimpleJSON");
		}

		public String SaveToCompressedBase64()
		{
			throw new Exception("Can't use compressed functions. You need include the SharpZipLib and uncomment the define at the top of SimpleJSON");
		}

		public void SaveToFile(String aFileName)
		{
			Directory.CreateDirectory(new FileInfo(aFileName).Directory.FullName);
			using (FileStream fileStream = File.OpenWrite(aFileName))
			{
				this.SaveToStream(fileStream);
			}
		}

		public String SaveToBase64()
		{
			String result;
			using (MemoryStream memoryStream = new MemoryStream())
			{
				this.SaveToStream(memoryStream);
				memoryStream.Position = 0L;
				result = Convert.ToBase64String(memoryStream.ToArray());
			}
			return result;
		}

		public static JSONNode Deserialize(BinaryReader aReader)
		{
			JSONBinaryTag jsonbinaryTag = (JSONBinaryTag)aReader.ReadInt32();
			switch (jsonbinaryTag)
			{
			case JSONBinaryTag.Array:
			{
				Int32 num = aReader.ReadInt32();
				JSONArray jsonarray = new JSONArray();
				for (Int32 i = 0; i < num; i++)
				{
					jsonarray.Add(JSONNode.Deserialize(aReader));
				}
				return jsonarray;
			}
			case JSONBinaryTag.Class:
			{
				Int32 num2 = aReader.ReadInt32();
				JSONClass jsonclass = new JSONClass();
				for (Int32 j = 0; j < num2; j++)
				{
					String aKey = aReader.ReadString();
					JSONNode aItem = JSONNode.Deserialize(aReader);
					jsonclass.Add(aKey, aItem);
				}
				return jsonclass;
			}
			case JSONBinaryTag.Value:
				return new JSONData(aReader.ReadString());
			case JSONBinaryTag.IntValue:
				return new JSONData(aReader.ReadInt32());
			case JSONBinaryTag.DoubleValue:
				return new JSONData(aReader.ReadDouble());
			case JSONBinaryTag.BoolValue:
				return new JSONData(aReader.ReadBoolean());
			case JSONBinaryTag.FloatValue:
				return new JSONData(aReader.ReadSingle());
			default:
				throw new Exception("Error deserializing JSON. Unknown tag: " + jsonbinaryTag + " at " + aReader.BaseStream.Position.ToString("X"));
			}
		}

		public static JSONNode LoadFromCompressedFile(String aFileName)
		{
			throw new Exception("Can't use compressed functions. You need include the SharpZipLib and uncomment the define at the top of SimpleJSON");
		}

		public static JSONNode LoadFromCompressedStream(Stream aData)
		{
			throw new Exception("Can't use compressed functions. You need include the SharpZipLib and uncomment the define at the top of SimpleJSON");
		}

		public static JSONNode LoadFromCompressedBase64(String aBase64)
		{
			throw new Exception("Can't use compressed functions. You need include the SharpZipLib and uncomment the define at the top of SimpleJSON");
		}

		public static JSONNode LoadFromStream(Stream aData)
		{
			JSONNode result;
			using (BinaryReader binaryReader = new BinaryReader(aData))
			{
				result = JSONNode.Deserialize(binaryReader);
			}
			return result;
		}

		public static JSONNode LoadFromFile(String aFileName)
		{
			JSONNode result;
			using (FileStream fileStream = File.OpenRead(aFileName))
			{
				result = JSONNode.LoadFromStream(fileStream);
			}
			return result;
		}

		public static JSONNode LoadFromBase64(String aBase64)
		{
			Byte[] buffer = Convert.FromBase64String(aBase64);
			return JSONNode.LoadFromStream(new MemoryStream(buffer)
			{
				Position = 0L
			});
		}

		public static implicit operator JSONNode(String s)
		{
			return new JSONData(s);
		}

		public static implicit operator String(JSONNode d)
		{
			return (!(d == null)) ? d.Value : ((String)null);
		}

		public static Boolean operator ==(JSONNode a, Object b)
		{
			return (b == null && a is JSONLazyCreator) || Object.ReferenceEquals(a, b);
		}

		public static Boolean operator !=(JSONNode a, Object b)
		{
			return !(a == b);
		}
	}
}


text:
module GitReporting
  VERSION = "1.0.0"
end


text:
Logagent is a general purpose log shipper. The Logagent Docker image is pre-configured for the log collection on container platforms. It runs as a tiny container on every Docker host and collects logs for all cluster nodes and their containers. All container logs are enriched with Kubernetes and Docker Enterprise / Docker Swarm metadata.

## Getting started

To run Logagent you will need a Logs App Token.
If you don't have Logs Apps yet, you can [create Apps now](https://apps.sematext.com/ui/integrations).

The [Logagent](https://sematext.com/logagent) docker container can be configured through the following environment variables:

* **REGION**: Sematext Cloud region **US** or **EU** (default: US). The receiver URL will be set to EU/US default values. When using REGION, you don't need to set `LOGS_RECEIVER_URL` (see below).
* **LOGS_RECEIVER_URL**: The URL of your Elasticsearch Endpoint _(defaults to Sematext Cloud US `https://logsene-receiver.sematext.com`)_.

    * For Sematext Europe use `https://logsene-receiver.eu.sematext.com`.
    * For Elasticsearch `https://elasticserch-server-name:9200`.

* **LOGS_TOKEN**: The index where the agent should log to _(for [Sematext Cloud](https://sematext.com/cloud) users the logs token)_
* **LOG_GLOB**: Semicolon-separated list of file globs
/mylogs/**/*.log;/var/log/**/*.log
. Mount your server log files into the container using a Docker volume e.g.
-v /var/log:/mylogs

* **LOGAGENT_ARGS**: Additional [command line arguments for Logagent](https://sematext.com/docs/logagent/cli-parameters/)
LOGAGENT_ARGS="-n httpd"
 to specify a log source name or
LOGAGENT_ARGS="-u 514"
 to act as syslog server. Please refer to Logagent command line arguments in the [Logagent Documentation](https://sematext.com/docs/logagent/cli-parameters/)

### Docker Run Example

The most basic start method is using docker run command:

```
docker pull sematext/logagent
docker run -d --name logagent \
-e LOGS_TOKEN=YOUR_LOGS_TOKEN \
-e LOGS_RECEIVER_URL="https://logsene-receiver.sematext.com"
-v /var/run/docker.sock:/var/run/docker.sock sematext/logagent
```

# Documentation

For further information please read the [setup manual](https://sematext.com/docs/logagent/installation-docker/).
You find in the manual all configuration options and the setup instructions for Kubernetes, OpenShift, Mesos, Docker Enterprise, etc.


text:
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>ZFC</title>
<meta name="generator" content="Org mode" />
<meta name="author" content="Mario Román" />

<link rel="stylesheet" type="text/css" href="styles/readtheorg/css/htmlize.css"/>
<link rel="stylesheet" type="text/css" href="styles/readtheorg/css/readtheorg.css"/>

 \(\newcommand{\threepartdef}[6]{\left\{\begin{array}{lll} #1 & \mbox{if } #2 \\ #3 & \mbox{if } #4 \\ #5 & \mbox{if } #6 \end{array} \right.}\)

 \(\newcommand{\twopartdef}[4]{\left\{\begin{array}{ll} #1 & \mbox{if } #2 \\ #3 & \mbox{if } #4 \end{array} \right.}\)

ZFC

Índice

ZFC - Pablo Baeyens

Axiomas de la igualdad

Números como conjuntos

Números naturales

Otra construcción posible

Construcción de funciones

Restricciones

Axiomas de la teoría de conjuntos

0. Axioma de existencia

1. Axioma de extensionalidad

2. Axioma de comprensión

Paradoja de Russell

El número de axiomas es numerable

NBG

Diferencia de conjuntos

Intersección de conjuntos

3. Axioma del par

Naturales

Hay conjuntos no vacíos

Pares ordenados

4. Axioma de la unión

5. Axioma del infinito

Finitud

6. Axioma del conjunto potencia

Producto cartesiano

Funciones

7. Axioma de reemplazamiento

Definiendo el conjunto de potencias

Definiendo la imagen por un funcional

No existe el conjunto de todos los conjuntos.

8. Axioma de elección

9. Axioma de fundación

ZFC - Pablo Baeyens

Utilizando lógica de primer orden.

\[
\wedge, \implies, \iff, \forall, \exists
\]

Además de:

Un conjunto infinito numerable de variables: \(x_1,x_2,\dots\)

Sólo puede cuantificarse sobre variables.

Reglas para fórmulas bien formadas.

Símbolos propios de la teoría de conjuntos:

\(=, \in\)

Se usa internamente la axiomática de la lógica de primer orden.

Axiomas de la igualdad

La igualdad es relación de equivalencia. Es

Reflexiva, \(\forall x: x=x\).

Transitiva, \(\forall x,y,z: x=y \wedge x=y \implies x=z\).

Simétrica, \(\forall x,y : x=y \iff y=x\).

Sustitución, \(\forall x,y: x=y \implies \varphi \iff \varphi'\) donde \(\varphi'\) sale de sustituir \(x\).

Números como conjuntos

Algunas teorías consideran elementos que no tienen elementos dentro.
En nuestro caso usaremos conjuntos para representar todos los objetos
matemáticos.

Números naturales

Definimos:

\(0 = \varnothing\)

\(S(x) = x \cup \{x\}\)

Otra construcción posible

Definiendo:

\(\varnothing\)

\(S(x) = \{x\}\)

Construcción de funciones

Para definir una función, usamos su gráfico:

\[\{(a,b) \in A \times B \mid f(a) = b\}\]

Restricciones

No podemos hablar todavía del conjunto de todos los conjuntos. Dentro
de ZFC no podemos hablar de cosas como \(Obj(\mathtt{Set})\).

Axiomas de la teoría de conjuntos

Tomamos como ciertos:

0. Axioma de existencia

\(\exists x : x=x\)

1. Axioma de extensionalidad

\(\forall x,y:(\forall z: z\in x \implies z \in y) \implies x = y\)

De paso definimos la inclusión:

\[
x \subseteq y := \forall z: z\in x \implies z \in y
\]

Y este axioma es equivalente a la antisimetría de la inclusión.

2. Axioma de comprensión

Exigiendo que \(A\) no aparezca como variable libre en \(\varphi\).

\[
\forall A: \exists B: \forall z:\left( \varphi(z) \vee z \in A\right) \iff z \in B
\]

Puede usarse para demostrar que existe el conjunto vacío. O que
no existe el conjunto universal.

Paradoja de Russell

Supongamos el universal \(U\). Podríamos definir:

\[
R = \{x \in U \mid x \notin x\}
\]

Tanto \(R \in R\) como \(R \notin R\). Para evitarla podríamos haber usado
estratificación.

El número de axiomas es numerable

Las fórmulas son sucesiones finitas de los símbolos que hemos usado
antes. Al haber una cantidad numerable de símbolos, las fórmulas son
numerables, y los axiomas que se generan en este esquema lo son.

NBG

En la teoría axiomática de Von-Neumann se usa un número finito de
axiomas.

Diferencia de conjuntos

\[A-B = \{x \in A \mid x \notin B\}\]

Intersección de conjuntos

Nótese que todavía no podemos definir la unión arbitraria.

\[
\bigcap {\cal F} = \{x \in A \mid \forall y \in {\cal F} x \in y\}
\]

3. Axioma del par

Dados dos conjuntos, tenemos uno que los contiene a los dos:

\[
\forall a,b : \exists z:
(a\in z \vee b \in z)
\]

Naturales

Con este axioma podemos construir los naturales en su segunda
construcción.

Hay conjuntos no vacíos

Hasta ahora, los axiomas eran consistentes con que sólo existiera
el conjunto vacío.

Pares ordenados

Definimos un par ordenado:

\[
(a,b) := \{a , \{a,b\}\}
\]

4. Axioma de la unión

Para una colección de conjuntos, crearemos una unión:

\[
\forall {\cal F}: \exists A: \forall Y,x: (x \in Y \wedge Y \in {\cal F}) \implies x \in A
\]

5. Axioma del infinito

Construye directamente los números naturales:

\[
\exists I: \varnothing \in I \wedge \forall x: x\in I \implies S(x) \in I \longrightarrow \exists \mathbb{N}
\]

Lleva a la existencia de cardinales grandes.

Finitud

Hasta ahora, podríamos trabajar suponiendo todos los conjuntos finitos.

6. Axioma del conjunto potencia

Existencia del conjunto potencia:

\[
\forall x: \exists y: \forall z: z \subseteq x \implies z \in y
\]

Producto cartesiano

Podemos definir el producto cartesiano de \(A,B\). Tenemos que todos los
elementos \(a\in A,b \in B\) llevan a \(\{a,b\} \in {\cal P}(A,B)\).

\[
A \times B = \{ x \in {\cal P}{\cal P}(A \cup B) \mid x = (a,b), a \in A, b \in B\}
\]

Nótese que así sólo hemos creado el producto cartesiano finito.

Funciones

Con el producto cartesiano, podemos pasar a ver las funciones como su
gráfico.

7. Axioma de reemplazamiento

Con estos seis axiomas, que constituyen la teoría de Zermelo, no
podemos definir el conjunto con:

\[
\mathbb{N}, {\cal P}\mathbb{N}, {\cal P}{\cal P}\mathbb{N}, \dots
\]

Un predicado funcional es una fórmula con variables libres \(\varphi(x,y)\)
que se comporta como una función:

\[
\forall x: \exists! y: \varphi(x,y)
\]

Tenemos entonces:

\[
\forall z: \exists \omega: \forall x,y: (x \in z \wedge \varphi(x,y) \implies y \in \omega)
\]

Definiendo el conjunto de potencias

Usando la función \(n \mapsto {\cal P}^n(\mathbb{N})\).

Definiendo la imagen por un funcional

Definimos \(\{x \in A \mid \phi(x)\}\) partiendo en el caso de que exista y
de que no.

No existe el conjunto de todos los conjuntos.

Si existiera, podríamos usar todas las topologías triviales y desde ahí
el conjunto universal.

8. Axioma de elección

Para cualquier familia de conjuntos sin ninguno vacío,

\[
\forall {\cal F} :
\left(
\forall x \in {\cal F} :\varnothing \neq x
\implies
\exists f : {\cal F} \to \bigcup {\cal F}: f(a) \in A
\right)
\]

Siendo \(f\) una función.

9. Axioma de fundación

Para cualquier conjunto no vacío:

\[
\forall x: (x \neq \varnothing \implies \exists y: y \in x \wedge x \cap y = \varnothing)
\]

Autor: Mario Román

Created: 2017-12-03 Sun 11:58

Validate


text:
package com.liaison.hellodao.model;

import java.io.Serializable;
import javax.persistence.*;

import java.util.List;

/**
 * The persistent class for the HELLO_WORLD database table.
 *
 */
@Entity
@Table(name="HELLO_WORLD")
public class HelloWorld implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@GeneratedValue(strategy=GenerationType.AUTO)
	@Column(name="HW_PGUID")
	private String helloWorldPrimaryGUID;

	private String name;

	@Column(name="SI_SGUID") //What the heck is a SI_SGUID?
	private String siSguid;

	//bi-directional many-to-one association to HelloMoon
	@OneToMany(mappedBy="helloWorld", cascade={CascadeType.PERSIST}, fetch=FetchType.LAZY)
	private List<HelloMoon> helloMoons;

	public HelloWorld() {
	}

	public String getPrimaryGUID() {
		return this.helloWorldPrimaryGUID;
	}

	public void setPrimaryGUID(String hwPguid) {
		this.helloWorldPrimaryGUID = hwPguid;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getSiSguid() {
		return this.siSguid;
	}

	public void setSiSguid(String siSguid) {
		this.siSguid = siSguid;
	}

	public List<HelloMoon> getHelloMoons() {
		return this.helloMoons;
	}

	public void setHelloMoons(List<HelloMoon> helloMoons) {
		this.helloMoons = helloMoons;
	}

}


text:
Function Get-AppVUse {
    <#
    .SYNOPSIS
        Get App-V usage according to App-V reporting server.

    .DESCRIPTION
        Get App-V usage according to App-V reporting server.

        Notes:
            Computers must have the App-V Reporting configuration applied
            Computers report back once a day
            The account running this query must have access to the App-V Reporting Database

    .PARAMETER App_Name
        Filter on App_Name.  Accepts wildcards.  Use * or % as wildcard.

    .PARAMETER Username
        Filter on Username.  Accepts wildcards.  Use * or % as wildcard.

    .PARAMETER host_name
        Filter on host_name.  Accepts wildcards.  Use * or % as wildcard.

    .PARAMETER package_guid
        Filter on package_guid.  Accepts wildcards.  Use * or % as wildcard.

    .PARAMETER TOP
        Limits query to this many results

    .PARAMETER QueryOnly
        Build the T-SQL but do not invoke it.  Resulting object details:
            Query: T-SQL that would run if this command were executed
            Parameter:  SQL parameters passed in to the query

    .PARAMETER ServerInstance
        SQL Server Instance hosting the App-V database

    .PARAMETER DatabaseName
        Name of the App-V Reporting database

    .PARAMETER Credential
        PSCredential to pass to Invoke-SqlCmd2.  Note that this will only take SQL credentials, it will not take domain credentials.

    .EXAMPLE
        #View all App-V usage in a grid
        Get-AppVUse | Out-Gridview

    .EXAMPLE
        #View app-v usage by any username with doe in the name
        Get-AppVUse -username *doe*

    .FUNCTIONALITY
        App-V
    #>
    [cmdletbinding()]
    param(
        [parameter( Position=0,
                    ValueFromPipelineByPropertyName=$true)]
        [string]$App_Name,

        [parameter(ValueFromPipelineByPropertyName=$true)]
        [string]$Username,

        [parameter(ValueFromPipelineByPropertyName=$true)]
        [string]$host_name,

        [parameter(ValueFromPipelineByPropertyName=$true)]
        [switch]$package_guid,

        [int]$top,
        [System.Collections.Hashtable]$QueryTable = $null,
        [switch]$QueryOnly,
        [string]$ServerInstance = $APPVReportingConfig.ServerInstance,
        [string]$DatabaseName = $APPVReportingConfig.DatabaseName,
        [System.Management.Automation.PSCredential]$Credential
    )

    #Set up invoke sql cmd params
        if(-not $ServerInstance -or -not $DatabaseName)
        {
            Throw "ServerInstance '$ServerInstance' and DatabaseName '$DatabaseName' must be defined."
        }
        $invokeParams = @{
            ServerInstance = $ServerInstance
            Database = $DatabaseName
        }
        if($Credential)
        {
            $invokeParams.add('Credential',$Credential)
        }

    #Predefined parameters we can use.  Loop through these and add to querytable and sql paraemters if they don't exist already.
        function ql {$args}
        $shortcutParams = ql app_name username host_name package_guid #TOMODIFY

        Foreach($parm in $shortcutParams){
            $value = Get-Variable -Name $parm -ValueOnly
            if($value){

                #substitute * for % for SQL query
                $value = $value.replace("*","%")

                if($queryTable){

                    #If query table is bound and has $parm key, and user provided name key, there is a conflict.  Don't make assumptions, throw error
                    if($queryTable.ContainsKey($parm)){
                        Write-Error "Error:  $parm defined as parameter and as key in QueryTable.  Use one or the other"
                    }
                    #Otherwise, add $parm key to querytable
                    Else{
                        $queryTable.add($parm, $value)
                    }
                }
                else{
                    #QueryTable doesn't exist, create it, and add it to params (it isn't bound and won't be added below)
                    $queryTable = @{
                        $parm = $value
                    }
                }
            }
        }

    #Start building the query.  Any suggestions on improving this would be appreciated, not fluent in T-SQL
    $query = "
        SELECT $(if($top){" TOP $top "})
            ApplicationUsage.app_name
            ,ApplicationUsage.app_version
            ,PackageInformation.source
            ,ApplicationUsage.username
            ,ClientInformation.host_name
            ,ApplicationUsage.start_time
            ,ApplicationUsage.end_time
            ,ApplicationUsage.launch_status
            ,ApplicationUsage.server_name
            ,ApplicationUsage.connection_group_version_guid
            ,PackageInformation.package_name
            ,PackageInformation.package_version
            ,PackageInformation.package_guid
            ,PackageInformation.version_guid
            ,PackageInformation.percent_cached
            ,ClientInformation.version AS [appv_version]
            ,ClientInformation.processor_architecture
            ,ClientInformation.os_version
            ,ClientInformation.os_service_pack
            ,ClientInformation.os_type
        FROM
            ApplicationUsage
            INNER JOIN ClientInformation
                ON ApplicationUsage.host_id = ClientInformation.host_id
            INNER JOIN PackageInformation
                ON ApplicationUsage.host_id = PackageInformation.host_id AND ApplicationUsage.version_guid = PackageInformation.version_guid
    "

    #If we have any parameters to filter on, add them to the T-SQL and build up sql parameters
        if( ( $qt = Get-Variable -name QueryTable ) -and $qt.value -notlike $null )
        {
            $query += "WHERE"
            foreach($key in @( $queryTable.keys))
            {
                $query += " $key LIKE @$key"
            }
            $invokeParams.Add("SqlParameters",$queryTable)
        }

    #Give some verbose output
        Write-Verbose "`nQuery = `n$($query | out-string)"
        Write-Verbose "`nInvokeParams = `n$($invokeParams | out-string)"
        Write-Verbose "`nSQLParams = `n$($queryTable | out-string)"

    #Return the query details or execute the query
    if($queryOnly)
    {
        New-Object -TypeName PSObject -Property @{
            Query = $query
            Parameter = $queryTable
        } | Select Query, Parameter
    }
    else{
        #We exclude some standard properties that can get in the way.  Feel free to add them back in...
            Invoke-Sqlcmd2 @invokeParams -Query $query | select -Property * -ExcludeProperty RowError, RowState, Table, ItemArray, HasErrors
    }

}


text:
import time

class PMTimer(object):
    """Context class for benchmarking

    >>> period = 0.2
    >>> with PMTimer() as timer:
    ...     time.sleep(period)
    >>> timer.wall_interval >= period
    True
    """

    def __init__(self, cpu_clock=time.clock, wall_clock=time.time):
        self.cpu_clock = cpu_clock
        self.wall_clock = wall_clock
        self.clock_start = None
        self.wall_start = None
        self.clock_interval = None
        self.wall_interval = None

    def __enter__(self):
        self.clock_start = self.cpu_clock()
        self.wall_start = self.wall_clock()
        return self

    def __exit__(self, *args):
        self.clock_interval = time.clock() - self.clock_start
        self.wall_interval = time.time() - self.wall_start

    def __str__(self):
        return "clock: %0.03f sec, wall: %0.03f sec." \
            % (self.clock_interval, self.wall_interval)


text:
namespace extensions {

namespace {

class GetAttentionImageSource : public gfx::ImageSkiaSource {
 public:
  explicit GetAttentionImageSource(const gfx::ImageSkia& icon) : icon_(icon) {}

  // gfx::ImageSkiaSource overrides:
  gfx::ImageSkiaRep GetImageForScale(float scale) override {
    gfx::ImageSkiaRep icon_rep = icon_.GetRepresentation(scale);
    color_utils::HSL shift = {-1, 0, 0.5};
    return gfx::ImageSkiaRep(
        SkBitmapOperations::CreateHSLShiftedBitmap(icon_rep.GetBitmap(), shift),
        icon_rep.scale());
  }

 private:
  const gfx::ImageSkia icon_;
};

struct IconRepresentationInfo {
  // Size as a string that will be used to retrieve a representation value from
  // SetIcon function arguments.
  const char* size_string;
  // Scale factor for which the represantion should be used.
  ui::ResourceScaleFactor scale;
};

template <class T>
bool HasValue(const std::map<int, T>& map, int tab_id) {
  return map.find(tab_id) != map.end();
}

}  // namespace

// static
extension_misc::ExtensionIcons ExtensionAction::ActionIconSize() {
  return extension_misc::EXTENSION_ICON_BITTY;
}

// static
gfx::Image ExtensionAction::FallbackIcon() {
  return ui::ResourceBundle::GetSharedInstance().GetImageNamed(
      IDR_EXTENSIONS_FAVICON);
}

const int ExtensionAction::kDefaultTabId = -1;

ExtensionAction::ExtensionAction(const Extension& extension,
                                 const ActionInfo& manifest_data)
    : extension_id_(extension.id()),
      extension_name_(extension.name()),
      action_type_(manifest_data.type),
      default_state_(manifest_data.default_state) {
  SetIsVisible(kDefaultTabId, default_state_ == ActionInfo::STATE_ENABLED);
  Populate(extension, manifest_data);
}

ExtensionAction::~ExtensionAction() {}

void ExtensionAction::SetPopupUrl(int tab_id, const GURL& url) {
  // We store |url| even if it is empty, rather than removing a URL from the
  // map.  If an extension has a default popup, and removes it for a tab via
  // the API, we must remember that there is no popup for that specific tab.
  // If we removed the tab's URL, GetPopupURL would incorrectly return the
  // default URL.
  SetValue(&popup_url_, tab_id, url);
}

bool ExtensionAction::HasPopup(int tab_id) const {
  return !GetPopupUrl(tab_id).is_empty();
}

GURL ExtensionAction::GetPopupUrl(int tab_id) const {
  return GetValue(&popup_url_, tab_id);
}

void ExtensionAction::SetIcon(int tab_id, const gfx::Image& image) {
  SetValue(&icon_, tab_id, image);
}

ExtensionAction::IconParseResult ExtensionAction::ParseIconFromCanvasDictionary(
    const base::Value::Dict& dict,
    gfx::ImageSkia* icon) {
  for (const auto item : dict) {
    std::string byte_string;
    const void* bytes = nullptr;
    size_t num_bytes = 0;
    if (item.second.is_blob()) {
      bytes = item.second.GetBlob().data();
      num_bytes = item.second.GetBlob().size();
    } else if (item.second.is_string()) {
      if (!base::Base64Decode(item.second.GetString(), &byte_string))
        return IconParseResult::kDecodeFailure;
      bytes = byte_string.c_str();
      num_bytes = byte_string.length();
    } else {
      continue;
    }
    SkBitmap bitmap;
    if (!skia::mojom::InlineBitmap::Deserialize(bytes, num_bytes, &bitmap)) {
      return IconParseResult::kUnpickleFailure;
    }
    // A well-behaved renderer will never send a null bitmap to us here.
    CHECK(!bitmap.isNull());

    // Chrome helpfully scales the provided icon(s), but let's not go overboard.
    const int kActionIconMaxSize = 10 * ActionIconSize();
    if (bitmap.drawsNothing() || bitmap.width() > kActionIconMaxSize)
      continue;

    float scale = static_cast<float>(bitmap.width()) / ActionIconSize();
    icon->AddRepresentation(gfx::ImageSkiaRep(bitmap, scale));
  }
  return IconParseResult::kSuccess;
}

gfx::Image ExtensionAction::GetExplicitlySetIcon(int tab_id) const {
  return GetValue(&icon_, tab_id);
}

bool ExtensionAction::SetIsVisible(int tab_id, bool new_visibility) {
  const bool old_visibility = GetValue(&is_visible_, tab_id);

  if (old_visibility == new_visibility)
    return false;

  SetValue(&is_visible_, tab_id, new_visibility);

  return true;
}

void ExtensionAction::DeclarativeShow(int tab_id) {
  DCHECK_NE(tab_id, kDefaultTabId);
  ++declarative_show_count_[tab_id];  // Use default initialization to 0.
}

void ExtensionAction::UndoDeclarativeShow(int tab_id) {
  int& show_count = declarative_show_count_[tab_id];
  DCHECK_GT(show_count, 0);
  if (--show_count == 0)
    declarative_show_count_.erase(tab_id);
}

void ExtensionAction::DeclarativeSetIcon(int tab_id,
                                         int priority,
                                         const gfx::Image& icon) {
  DCHECK_NE(tab_id, kDefaultTabId);
  declarative_icon_[tab_id][priority].push_back(icon);
}

void ExtensionAction::UndoDeclarativeSetIcon(int tab_id,
                                             int priority,
                                             const gfx::Image& icon) {
  std::vector<gfx::Image>& icons = declarative_icon_[tab_id][priority];
  for (auto it = icons.begin(); it != icons.end(); ++it) {
    if (it->AsImageSkia().BackedBySameObjectAs(icon.AsImageSkia())) {
      icons.erase(it);
      return;
    }
  }
}

const gfx::Image ExtensionAction::GetDeclarativeIcon(int tab_id) const {
  if (declarative_icon_.find(tab_id) != declarative_icon_.end() &&
      !declarative_icon_.find(tab_id)->second.rbegin()->second.empty()) {
    return declarative_icon_.find(tab_id)->second.rbegin()->second.back();
  }
  return gfx::Image();
}

void ExtensionAction::ClearAllValuesForTab(int tab_id) {
  popup_url_.erase(tab_id);
  title_.erase(tab_id);
  icon_.erase(tab_id);
  badge_text_.erase(tab_id);
  dnr_action_count_.erase(tab_id);
  badge_text_color_.erase(tab_id);
  badge_background_color_.erase(tab_id);
  is_visible_.erase(tab_id);
  // TODO(jyasskin): Erase the element from declarative_show_count_
  // when the tab's closed.  There's a race between the
  // LocationBarController and the ContentRulesRegistry on navigation,
  // which prevents me from cleaning everything up now.
}

void ExtensionAction::SetDefaultIconImage(
    std::unique_ptr<IconImage> icon_image) {
  default_icon_image_ = std::move(icon_image);
}

gfx::Image ExtensionAction::GetDefaultIconImage() const {
  // If we have a default icon, it should be loaded before trying to use it.
  DCHECK(!default_icon_image_ == !default_icon_);
  if (default_icon_image_)
    return default_icon_image_->image();

  return GetPlaceholderIconImage();
}

gfx::Image ExtensionAction::GetPlaceholderIconImage() const {
  if (placeholder_icon_image_.IsEmpty()) {
    // For extension actions, we use a special placeholder icon (with the first
    // letter of the extension name) rather than the default (puzzle piece).
    // Note that this is only if we can't find any better image (e.g. a product
    // icon).
    placeholder_icon_image_ = ExtensionIconPlaceholder::CreateImage(
        ActionIconSize(), extension_name_);
  }

  return placeholder_icon_image_;
}

std::string ExtensionAction::GetDisplayBadgeText(int tab_id) const {
  // Tab specific badge text set by an extension overrides the automatically set
  // action count. Action count should only be shown if at least one action is
  // matched.
  bool use_dnr_action_count =
      !HasBadgeText(tab_id) && GetDNRActionCount(tab_id) > 0;
  return use_dnr_action_count ? base::NumberToString(GetDNRActionCount(tab_id))
                              : GetExplicitlySetBadgeText(tab_id);
}

bool ExtensionAction::HasPopupUrl(int tab_id) const {
  return HasValue(popup_url_, tab_id);
}

bool ExtensionAction::HasTitle(int tab_id) const {
  return HasValue(title_, tab_id);
}

bool ExtensionAction::HasBadgeText(int tab_id) const {
  return HasValue(badge_text_, tab_id);
}

bool ExtensionAction::HasBadgeBackgroundColor(int tab_id) const {
  return HasValue(badge_background_color_, tab_id);
}

bool ExtensionAction::HasBadgeTextColor(int tab_id) const {
  return HasValue(badge_text_color_, tab_id);
}

bool ExtensionAction::HasIsVisible(int tab_id) const {
  return HasValue(is_visible_, tab_id);
}

bool ExtensionAction::HasIcon(int tab_id) const {
  return HasValue(icon_, tab_id);
}

bool ExtensionAction::HasDNRActionCount(int tab_id) const {
  return HasValue(dnr_action_count_, tab_id);
}

void ExtensionAction::SetDefaultIconForTest(
    std::unique_ptr<ExtensionIconSet> default_icon) {
  default_icon_ = std::move(default_icon);
}

void ExtensionAction::Populate(const Extension& extension,
                               const ActionInfo& manifest_data) {
  // If the manifest doesn't specify a title, set it to |extension|'s name.
  const std::string& title = !manifest_data.default_title.empty()
                                 ? manifest_data.default_title
                                 : extension.name();
  SetTitle(kDefaultTabId, title);
  SetPopupUrl(kDefaultTabId, manifest_data.default_popup_url);

  // Initialize the specified icon set.
  if (!manifest_data.default_icon.empty()) {
    default_icon_ =
        std::make_unique<ExtensionIconSet>(manifest_data.default_icon);
  } else {
    // Fall back to the product icons if no action icon exists.
    const ExtensionIconSet& product_icons = IconsInfo::GetIcons(&extension);
    if (!product_icons.empty())
      default_icon_ = std::make_unique<ExtensionIconSet>(product_icons);
  }
}

// Determines which icon would be returned by |GetIcon|, and returns its width.
int ExtensionAction::GetIconWidth(int tab_id) const {
  // If icon has been set, return its width.
  gfx::Image icon = GetValue(&icon_, tab_id);
  if (!icon.IsEmpty())
    return icon.Width();
  // If there is a default icon, the icon width will be set depending on our
  // action type.
  if (default_icon_)
    return ActionIconSize();

  // If no icon has been set and there is no default icon, we need favicon
  // width.
  return FallbackIcon().Width();
}

bool ExtensionAction::GetIsVisibleInternal(int tab_id,
                                           bool include_declarative) const {
  if (const bool* tab_is_visible = FindOrNull(&is_visible_, tab_id))
    return *tab_is_visible;

  if (include_declarative && base::Contains(declarative_show_count_, tab_id))
    return true;

  if (const bool* default_is_visible = FindOrNull(&is_visible_, kDefaultTabId))
    return *default_is_visible;

  return false;
}

}  // namespace extensions


text:
layout: kanji
v4: 667
v6: 720
kanji: 拾
keyword: pick up
elements: pick up, finger, fingers, fit, meeting, umbrella, one, mouth
strokes: 9
image: E68BBE
on-yomi: シュウ、ジュウ
kun-yomi: ひろ.う
permalink: /rtk/拾/
prev: 損
next: 担
---

1) [johnzep] 28-4-2007(397): I tried to PICK UP the bowling ball...but my FINGERS didn't FIT in the holes.

2) [elhnad] 2-2-2008(94): Try PICKING UP a girl by trying to FIT your FINGER in you know what... let me know how that works.

3) [Zarxrax] 22-4-2008(54): When you are trying to pick up a girl, don't get too excited and start fingering her before you have a meeting of the mouths.

4) [Francois] 13-4-2008(33): If it can FIT in your HAND, you can PICK IT UP.

5) [cerulean] 30-9-2008(17): To Pick Up something, your FINGERS must FIT around the object. --- This is a basic rule for all primates.