Source stringclasses 1
value | Date int32 2.01k 2.01k | Text stringlengths 3 15.9M | Token_count int32 1 2.44M |
|---|---|---|---|
github-java-corpus | 2,012 | /*******************************************************************************
* Created by Carlos Yaconi
* Copyright 2012 Fork Ltd. All rights reserved.
* License: GPLv3
* Full license at "/LICENSE"
******************************************************************************/
package com.prey.preferences;
im... | 404 |
github-java-corpus | 2,012 | /*******************************************************************************
* Created by Carlos Yaconi
* Copyright 2012 Fork Ltd. All rights reserved.
* License: GPLv3
* Full license at "/LICENSE"
******************************************************************************/
package com.prey.preferences;
im... | 431 |
github-java-corpus | 2,012 | /*******************************************************************************
* Created by Carlos Yaconi
* Copyright 2012 Fork Ltd. All rights reserved.
* License: GPLv3
* Full license at "/LICENSE"
******************************************************************************/
package com.prey.preferences;
im... | 424 |
github-java-corpus | 2,012 | /*******************************************************************************
* Created by Carlos Yaconi
* Copyright 2012 Fork Ltd. All rights reserved.
* License: GPLv3
* Full license at "/LICENSE"
******************************************************************************/
package com.prey.preferences;
im... | 523 |
github-java-corpus | 2,012 | /*******************************************************************************
* Created by Carlos Yaconi
* Copyright 2012 Fork Ltd. All rights reserved.
* License: GPLv3
* Full license at "/LICENSE"
******************************************************************************/
package com.prey.services;
impor... | 843 |
github-java-corpus | 2,012 | /*******************************************************************************
* Created by Carlos Yaconi
* Copyright 2012 Fork Ltd. All rights reserved.
* License: GPLv3
* Full license at "/LICENSE"
******************************************************************************/
package com.prey.services;
impor... | 568 |
github-java-corpus | 2,012 | /*******************************************************************************
* Created by Carlos Yaconi
* Copyright 2012 Fork Ltd. All rights reserved.
* License: GPLv3
* Full license at "/LICENSE"
******************************************************************************/
package com.prey.services;
impor... | 1,839 |
github-java-corpus | 2,012 | /*******************************************************************************
* Created by Carlos Yaconi
* Copyright 2012 Fork Ltd. All rights reserved.
* License: GPLv3
* Full license at "/LICENSE"
******************************************************************************/
package com.prey.contacts;
impor... | 211 |
github-java-corpus | 2,012 | /*******************************************************************************
* Created by Carlos Yaconi
* Copyright 2012 Fork Ltd. All rights reserved.
* License: GPLv3
* Full license at "/LICENSE"
******************************************************************************/
package com.prey.contacts;
impor... | 825 |
github-java-corpus | 2,012 | /*******************************************************************************
* Created by Carlos Yaconi
* Copyright 2012 Fork Ltd. All rights reserved.
* License: GPLv3
* Full license at "/LICENSE"
******************************************************************************/
/**
*
*/
package com.prey;
im... | 622 |
github-java-corpus | 2,012 | /*******************************************************************************
* Created by Carlos Yaconi
* Copyright 2012 Fork Ltd. All rights reserved.
* License: GPLv3
* Full license at "/LICENSE"
******************************************************************************/
package com.prey;
import android... | 150 |
github-java-corpus | 2,012 | /*******************************************************************************
* Created by Carlos Yaconi
* Copyright 2012 Fork Ltd. All rights reserved.
* License: GPLv3
* Full license at "/LICENSE"
******************************************************************************/
package com.prey;
import java.io... | 460 |
github-java-corpus | 2,012 | /*******************************************************************************
* Created by Carlos Yaconi
* Copyright 2012 Fork Ltd. All rights reserved.
* License: GPLv3
* Full license at "/LICENSE"
******************************************************************************/
package com.prey.backwardcompatib... | 458 |
github-java-corpus | 2,012 | /*******************************************************************************
* Created by Carlos Yaconi
* Copyright 2012 Fork Ltd. All rights reserved.
* License: GPLv3
* Full license at "/LICENSE"
******************************************************************************/
package com.prey.backwardcompatib... | 268 |
github-java-corpus | 2,012 | /*******************************************************************************
* Created by Carlos Yaconi
* Copyright 2012 Fork Ltd. All rights reserved.
* License: GPLv3
* Full license at "/LICENSE"
******************************************************************************/
package com.prey.backwardcompatib... | 78 |
github-java-corpus | 2,012 | /*******************************************************************************
* Created by Carlos Yaconi
* Copyright 2012 Fork Ltd. All rights reserved.
* License: GPLv3
* Full license at "/LICENSE"
******************************************************************************/
package com.prey;
import android... | 543 |
github-java-corpus | 2,012 | /*******************************************************************************
* Created by Carlos Yaconi
* Copyright 2012 Fork Ltd. All rights reserved.
* License: GPLv3
* Full license at "/LICENSE"
******************************************************************************/
package com.prey;
import java.io... | 3,988 |
github-java-corpus | 2,012 | /*******************************************************************************
* Created by Carlos Yaconi
* Copyright 2012 Fork Ltd. All rights reserved.
* License: GPLv3
* Full license at "/LICENSE"
******************************************************************************/
package com.prey.activities;
imp... | 1,073 |
github-java-corpus | 2,012 | /*******************************************************************************
* Created by Carlos Yaconi
* Copyright 2012 Fork Ltd. All rights reserved.
* License: GPLv3
* Full license at "/LICENSE"
******************************************************************************/
package com.prey.activities;
imp... | 1,219 |
github-java-corpus | 2,012 | /*******************************************************************************
* Created by Carlos Yaconi
* Copyright 2012 Fork Ltd. All rights reserved.
* License: GPLv3
* Full license at "/LICENSE"
******************************************************************************/
package com.prey.activities;
imp... | 262 |
github-java-corpus | 2,012 | /*******************************************************************************
* Created by Carlos Yaconi
* Copyright 2012 Fork Ltd. All rights reserved.
* License: GPLv3
* Full license at "/LICENSE"
******************************************************************************/
package com.prey.activities;
imp... | 1,052 |
github-java-corpus | 2,012 | /*******************************************************************************
* Created by Carlos Yaconi
* Copyright 2012 Fork Ltd. All rights reserved.
* License: GPLv3
* Full license at "/LICENSE"
******************************************************************************/
package com.prey.activities;
imp... | 387 |
github-java-corpus | 2,012 | /*******************************************************************************
* Created by Carlos Yaconi
* Copyright 2012 Fork Ltd. All rights reserved.
* License: GPLv3
* Full license at "/LICENSE"
******************************************************************************/
package com.prey.activities;
imp... | 116 |
github-java-corpus | 2,012 | /*******************************************************************************
* Created by Carlos Yaconi
* Copyright 2012 Fork Ltd. All rights reserved.
* License: GPLv3
* Full license at "/LICENSE"
******************************************************************************/
package com.prey.activities;
imp... | 419 |
github-java-corpus | 2,012 | /*******************************************************************************
* Created by Carlos Yaconi
* Copyright 2012 Fork Ltd. All rights reserved.
* License: GPLv3
* Full license at "/LICENSE"
******************************************************************************/
package com.prey.activities;
imp... | 269 |
github-java-corpus | 2,012 | /*******************************************************************************
* Created by Carlos Yaconi
* Copyright 2012 Fork Ltd. All rights reserved.
* License: GPLv3
* Full license at "/LICENSE"
******************************************************************************/
package com.prey.activities;
imp... | 1,038 |
github-java-corpus | 2,012 | /*******************************************************************************
* Created by Carlos Yaconi
* Copyright 2012 Fork Ltd. All rights reserved.
* License: GPLv3
* Full license at "/LICENSE"
******************************************************************************/
package com.prey.activities;
imp... | 488 |
github-java-corpus | 2,012 | /*******************************************************************************
* Created by Carlos Yaconi
* Copyright 2012 Fork Ltd. All rights reserved.
* License: GPLv3
* Full license at "/LICENSE"
******************************************************************************/
package com.prey.activities;
imp... | 333 |
github-java-corpus | 2,012 | /*******************************************************************************
* Created by Carlos Yaconi
* Copyright 2012 Fork Ltd. All rights reserved.
* License: GPLv3
* Full license at "/LICENSE"
******************************************************************************/
package com.prey.activities;
imp... | 98 |
github-java-corpus | 2,012 | /*******************************************************************************
* Created by Carlos Yaconi
* Copyright 2012 Fork Ltd. All rights reserved.
* License: GPLv3
* Full license at "/LICENSE"
******************************************************************************/
package com.prey.activities;
imp... | 800 |
github-java-corpus | 2,012 | /*******************************************************************************
* Created by Carlos Yaconi
* Copyright 2012 Fork Ltd. All rights reserved.
* License: GPLv3
* Full license at "/LICENSE"
******************************************************************************/
package com.prey.activities;
imp... | 1,139 |
github-java-corpus | 2,012 | /*******************************************************************************
* Created by Carlos Yaconi
* Copyright 2012 Fork Ltd. All rights reserved.
* License: GPLv3
* Full license at "/LICENSE"
******************************************************************************/
package com.prey;
import org.jso... | 252 |
github-java-corpus | 2,012 | /*******************************************************************************
* Created by Carlos Yaconi
* Copyright 2012 Fork Ltd. All rights reserved.
* License: GPLv3
* Full license at "/LICENSE"
******************************************************************************/
package com.prey.receivers;
impo... | 474 |
github-java-corpus | 2,012 | /*******************************************************************************
* Created by Carlos Yaconi
* Copyright 2012 Fork Ltd. All rights reserved.
* License: GPLv3
* Full license at "/LICENSE"
******************************************************************************/
package com.prey.receivers;
impo... | 112 |
github-java-corpus | 2,012 | /*******************************************************************************
* Created by Carlos Yaconi
* Copyright 2012 Fork Ltd. All rights reserved.
* License: GPLv3
* Full license at "/LICENSE"
******************************************************************************/
package com.prey.receivers;
impo... | 192 |
github-java-corpus | 2,012 | /*******************************************************************************
* Created by Carlos Yaconi
* Copyright 2012 Fork Ltd. All rights reserved.
* License: GPLv3
* Full license at "/LICENSE"
******************************************************************************/
package com.prey.receivers;
impo... | 528 |
github-java-corpus | 2,012 | /*******************************************************************************
* Created by Carlos Yaconi
* Copyright 2012 Fork Ltd. All rights reserved.
* License: GPLv3
* Full license at "/LICENSE"
******************************************************************************/
package com.prey.receivers;
impo... | 781 |
github-java-corpus | 2,012 | package com.bel.android.dspmanager.preference;
import android.content.Context;
import android.preference.ListPreference;
import android.util.AttributeSet;
public class SummariedListPreference extends ListPreference {
public SummariedListPreference(Context context, AttributeSet set) {
super(context, set);
}
@O... | 161 |
github-java-corpus | 2,012 | package com.bel.android.dspmanager.preference;
/**
* Evaluate transfer functions of biquad filters in direct form 1.
*
* @author alankila
*/
class Biquad {
private Complex b0, b1, b2, a0, a1, a2;
protected void setHighShelf(float centerFrequency, float samplingFrequency, float dbGain, float slope) {
do... | 440 |
github-java-corpus | 2,012 | package com.bel.android.dspmanager.preference;
import android.content.Context;
import android.os.Parcel;
import android.os.Parcelable;
import android.os.Bundle;
import android.preference.DialogPreference;
import android.util.AttributeSet;
import android.util.Log;
import android.view.MotionEvent;
import android.view.Vi... | 1,277 |
github-java-corpus | 2,012 | package com.bel.android.dspmanager.preference;
/**
* Java support for complex numbers.
*
* @author alankila
*/
class Complex {
final float re, im;
protected Complex(float re, float im) {
this.re = re;
this.im = im;
}
/**
* Length of complex number
*
* @return length
*/
protected float rho() ... | 453 |
github-java-corpus | 2,012 | package com.bel.android.dspmanager.preference;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.LinearGradient;
import android.graphics.Paint;
import android.graphics.Paint.Style;
import android.graphics.Shader;
import android.util.AttributeSet;
import android.view.SurfaceView;
... | 2,008 |
github-java-corpus | 2,012 | package com.bel.android.dspmanager;
import java.lang.reflect.Method;
import java.util.HashMap;
import java.util.Map;
import java.util.UUID;
import android.app.Notification;
import android.app.Service;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import andro... | 1,986 |
github-java-corpus | 2,012 | package com.bel.android.dspmanager.activity;
import android.content.Intent;
import android.content.SharedPreferences;
import android.content.SharedPreferences.Editor;
import android.content.SharedPreferences.OnSharedPreferenceChangeListener;
import android.os.Bundle;
import android.preference.PreferenceActivity;
impor... | 967 |
github-java-corpus | 2,012 | package com.bel.android.dspmanager.activity;
import android.content.Intent;
import android.os.Bundle;
import android.preference.PreferenceActivity;
import com.bel.android.dspmanager.HeadsetService;
import com.bel.android.dspmanager.R;
/**
* Setting utility for CyanogenMod's DSP capabilities.
* This page is display... | 199 |
github-java-corpus | 2,012 | package com.bel.android.dspmanager;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
/**
* This receiver starts our {@link HeadsetService} after system boot.
* Since Android 2.3, we will always need a persistent process,
* because we are forced to keep track ... | 117 |
github-java-corpus | 2,012 | package net.epicyclic.common;
public class PortletIntegrationRuntimeException extends RuntimeException {
private static final long serialVersionUID = -7330888524971004289L;
public PortletIntegrationRuntimeException() {
}
public PortletIntegrationRuntimeException(String arg0) {
super(arg0);
}
... | 106 |
github-java-corpus | 2,012 | package net.epicyclic.common;
import org.apache.commons.lang.RandomStringUtils;
public class ErrorUtils {
public static String generateErrorId() {
return RandomStringUtils.randomAlphanumeric(10);
}
}
| 42 |
github-java-corpus | 2,012 | package net.epicyclic.common;
public class PortletIntegrationException extends Exception {
/**
*
*/
private static final long serialVersionUID = -8123843527680593232L;
public PortletIntegrationException() {
}
public PortletIntegrationException(String arg0) {
super(arg0);
}
publi... | 113 |
github-java-corpus | 2,012 | package net.epicyclic.common;
import net.epicyclic.common.rendering.PortletRenderResult;
public interface Commons {
public static final String REQUEST_ATTR_PAGENAVIGATIONALSTATE = "net.epicyclic.portletpagenavigationalstate";
public static final String REQUEST_ATTR_PAGELAYOUT = "net.epicyclic.pagelayout";
p... | 157 |
github-java-corpus | 2,012 | package net.epicyclic.common;
import java.util.List;
import javax.portlet.PortletContext;
import org.apache.commons.lang.StringUtils;
/**
* Defines a portlet window by specifying:
* <ul>
* <li>handle (local or producerid)</li>
* <li>portletName</li>
* <li>applicationName (uri)</li>
* <li>preferences</li>
* <... | 1,120 |
github-java-corpus | 2,012 | package net.epicyclic.common;
import java.util.ArrayList;
import java.util.List;
/**
* Defines the page layout, i.e. which portlets do reside on the page
*
* @author ckatzorke
*
*/
public class PageLayout {
private List<PortletWindowDefinition> portletWindowDefinitions = new ArrayList<PortletWindowDefiniti... | 229 |
github-java-corpus | 2,012 | package net.epicyclic.common.rendering;
import java.util.EnumSet;
import java.util.HashMap;
import java.util.Map;
/**
* Defines the rendertype of a portlet. Depending on the supported mimetype, the portlet renderer generates a different div
* container
*
*/
public enum RenderType {
HTML("text/html", PortletT... | 472 |
github-java-corpus | 2,012 | package net.epicyclic.common.rendering;
public class PortletRenderResult {
private RenderType renderType = RenderType.HTML; // default
private StringBuffer fragment;
public PortletRenderResult() {
this.fragment = new StringBuffer();
}
public StringBuffer getFragment() {
return fragment;
... | 157 |
github-java-corpus | 2,012 | package net.epicyclic.common.rendering;
import net.epicyclic.common.ErrorUtils;
import net.epicyclic.common.PortletWindowDefinition;
/**
* {@link PortletRenderResult} that marks an error. The causing error can be
* retrieved and displayed using {@link #getCause()}
*
*/
public class PortletRenderErrorResult exten... | 461 |
github-java-corpus | 2,012 | package net.epicyclic.common;
import java.util.Arrays;
import java.util.List;
public class Preference {
private String name;
private List<String> values;
public Preference() {
}
public Preference(String name, String... values) {
this.name = name;
if (values != null) {
this.valu... | 170 |
github-java-corpus | 2,012 | package net.epicyclic.portletintegration.test;
import net.epicyclic.common.PageLayout;
import net.epicyclic.common.PortletWindowDefinition;
import org.junit.Test;
import junit.framework.Assert;
public class PageLayoutTest {
@Test
public void testPageLayoutAdd() throws Exception {
PortletWindowDefiniti... | 285 |
github-java-corpus | 2,012 | package net.epicyclic.portletintegration.test;
import junit.framework.Assert;
import net.epicyclic.common.Commons;
import net.epicyclic.common.PortletWindowDefinition;
import net.epicyclic.common.rendering.PortletRenderErrorResult;
import net.epicyclic.common.rendering.PortletRenderResult;
import net.epicyclic.common... | 379 |
github-java-corpus | 2,012 | package net.epicyclic.portletintegration.test;
import net.epicyclic.common.PortletIntegrationException;
import net.epicyclic.common.PortletIntegrationRuntimeException;
import org.junit.Test;
import junit.framework.Assert;
public class PortletIntegrationExceptionTest {
@Test
public void testExc() throws Exce... | 111 |
github-java-corpus | 2,012 | package net.epicyclic.portletintegration.test;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import junit.framework.Assert;
import net.epicyclic.common.PortletWindowDefinition;
import net.epicyclic.common.Preference;
import org.junit.Test;
public class PortletWindowDefinitionTest {
... | 537 |
github-java-corpus | 2,012 | package net.epicyclic.server.rest;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import net.epicyclic.common.Commons;
import net.epicyclic.common.PageLayout;
import net.epicyclic.common.PortletWindowDefinition;
import net.epicyclic.common.rendering.PortletRenderResult;
i... | 330 |
github-java-corpus | 2,012 | package net.epicyclic.portlet;
import java.io.IOException;
import java.io.PrintWriter;
import javax.portlet.GenericPortlet;
import javax.portlet.PortletException;
import javax.portlet.RenderRequest;
import javax.portlet.RenderResponse;
public class EpicyclicTestPortlet extends GenericPortlet {
@Override
protecte... | 104 |
github-java-corpus | 2,012 | package net.epicyclic.portletinvocation;
import java.util.logging.Level;
import java.util.logging.Logger;
import net.epicyclic.common.PortletWindowDefinition;
import net.epicyclic.common.rendering.PortletRenderErrorResult;
import com.jamonapi.Monitor;
import com.jamonapi.MonitorFactory;
public final class PortletIn... | 258 |
github-java-corpus | 2,012 | package net.epicyclic.portletinvocation.interceptors;
import java.util.Collection;
import java.util.HashMap;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import net.epicyclic.common.PortletWindowDefinition;
import org.gatein.pc.api.Mode;
import org.gatein.pc.api.StateString;
import org.gatein... | 679 |
github-java-corpus | 2,012 | package net.epicyclic.portletinvocation.interceptors;
import javax.inject.Named;
import javax.servlet.http.HttpServletRequest;
/**
* When invoking the portlet from a spring dispatcher servlet, the portlet finds
* a LocaleResolver in the request with the attribute that is of course not class cast compatible due to d... | 151 |
github-java-corpus | 2,012 | package net.epicyclic.portletinvocation.interceptors;
import java.util.HashMap;
import java.util.Map;
import java.util.Map.Entry;
import javax.inject.Named;
import javax.servlet.http.HttpServletRequest;
import net.epicyclic.common.Commons;
import net.epicyclic.common.PageLayout;
import org.gatein.pc.controller.stat... | 445 |
github-java-corpus | 2,012 | package net.epicyclic.portletinvocation.interceptors;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Enumeration;
import java.util.List;
import java.util.Map;
import java.util.Set;
import javax.portlet.PortletPreferences;
import javax.portlet.ReadOnlyException;
... | 677 |
github-java-corpus | 2,012 | package net.epicyclic.portletinvocation.interceptors;
import javax.servlet.http.HttpServletRequest;
public interface Interceptor {
public abstract void invoke(HttpServletRequest request);
} | 33 |
github-java-corpus | 2,012 | package net.epicyclic.portletinvocation.interceptors;
public final class SafeHtmlUtil {
public static String sanitize(String raw) {
if (raw == null || raw.length() == 0) {
return raw;
}
return HTMLEntityEncode(canonicalize(raw));
}
public static String HTMLEntityEncode(String inpu... | 324 |
github-java-corpus | 2,012 | package net.epicyclic.portletinvocation;
import java.io.IOException;
import java.util.Collection;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.inject.Inject;
import javax.inject.Named;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.se... | 1,514 |
github-java-corpus | 2,012 | package net.epicyclic.portletinvocation.action;
import java.io.UnsupportedEncodingException;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import org.gatein.pc.controller.impl.ControllerRequestParameterNames;
import org.g... | 476 |
github-java-corpus | 2,012 | package net.epicyclic.portletinvocation.action;
import java.io.IOException;
import java.io.UnsupportedEncodingException;
import java.io.Writer;
import java.util.logging.Logger;
import javax.servlet.ServletException;
import javax.servlet.ServletOutputStream;
import javax.servlet.http.HttpServletResponse;
import net.e... | 2,019 |
github-java-corpus | 2,012 | package net.epicyclic.portletinvocation.rendering;
import java.util.Arrays;
import java.util.List;
import java.util.Set;
import java.util.logging.Logger;
import javax.servlet.http.Cookie;
import net.epicyclic.common.PortletIntegrationException;
import net.epicyclic.common.PortletWindowDefinition;
import net.epicycli... | 1,214 |
github-java-corpus | 2,012 | package net.epicyclic.portletinvocation;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import net.epicyclic.common.PageLayout;
import net.epicyclic.common.PortletWindowDefinition;
import net.epicyclic.common.rendering.PortletRenderResult;
/**
* Central portletInvocatio... | 333 |
github-java-corpus | 2,012 | package net.epicyclic.portletinvocation;
import java.io.IOException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import net.epicyclic.common.PageLayout;
import net.epicyclic.common.PortletWindowDefinition;
import net.epicyclic.events.EpicyclicEventControllerContext;
i... | 704 |
github-java-corpus | 2,012 | package net.epicyclic.deploy;
import org.gatein.wci.WebApp;
/**
* Placeholder for future use
*
* @author Chris
*
*/
public class EpicyclicDeployer extends org.gatein.pc.portlet.impl.deployment.PortletApplicationDeployer {
@Override
protected void add(WebApp webApp) {
super.add(webApp);
}
@Override
pub... | 95 |
github-java-corpus | 2,012 | package net.epicyclic.portletcontainer;
import java.util.Map;
import net.epicyclic.common.PortletWindowDefinition;
import org.gatein.pc.api.Portlet;
import org.gatein.pc.api.PortletContext;
import org.gatein.pc.api.PortletInvoker;
public interface PortletContainerService {
/**
* @return the portlet invoker. wil... | 220 |
github-java-corpus | 2,012 | package net.epicyclic.portletcontainer.impl;
import java.util.HashMap;
import java.util.Map;
import java.util.Set;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.annotation.PostConstruct;
import javax.inject.Inject;
import javax.inject.Named;
import net.epicyclic.common.PortletWindowDe... | 608 |
github-java-corpus | 2,012 | /******************************************************************************
* JBoss, a division of Red Hat *
* Copyright 2008, Red Hat Middleware, LLC, and individual *
* contributors as indicated by the @authors tag. See the *
... | 556 |
github-java-corpus | 2,012 | package net.epicyclic.events;
import java.util.ArrayList;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import net.epicyclic.common.PortletWindowDefinition;
import net.epicyclic.portletinvocation.EpicyclicPortletControllerContext;
import org.gatein.pc.api.info.PortletInfo;
import org.g... | 768 |
github-java-corpus | 2,012 | /******************************************************************************
* JBoss, a division of Red Hat *
* Copyright 2008, Red Hat Middleware, LLC, and individual *
* contributors as indicated by the @authors tag. See the *
... | 591 |
github-java-corpus | 2,012 | package net.epicyclic.portletinvocation.test;
import junit.framework.Assert;
import net.epicyclic.common.Commons;
import net.epicyclic.common.PortletWindowDefinition;
import net.epicyclic.common.rendering.PortletRenderErrorResult;
import net.epicyclic.portletinvocation.PortletInvocationUtils;
import org.junit.Test;
... | 283 |
github-java-corpus | 2,012 | package net.epicyclic.portletinvocation.test;
import junit.framework.Assert;
import net.epicyclic.portletinvocation.interceptors.SafeHtmlUtil;
import org.junit.Test;
public class SafeHTMLUtilsTest {
@Test
public void testSanitize() throws Exception {
String[] tainted = new String[] { "<script>", "bla"... | 118 |
github-java-corpus | 2,012 | package net.epicyclic.portletcontainer.test;
import net.epicyclic.portletcontainer.PortletContainerService;
import org.gatein.pc.api.PortletInvoker;
import org.junit.Assert;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframewor... | 171 |
github-java-corpus | 2,012 | package net.epicyclic.portletcontainer.test;
import java.util.Map;
import net.epicyclic.portletcontainer.PortletContainerService;
import org.gatein.pc.api.Portlet;
import org.gatein.pc.api.PortletInvoker;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import... | 246 |
github-java-corpus | 2,012 | package org.bouncycastle.crypto;
/**
* this exception is thrown if a buffer that is meant to have output
* copied into it turns out to be too short, or if we've been given
* insufficient input. In general this exception will get thrown rather
* than an ArrayOutOfBounds exception.
*/
public class DataLengthExcept... | 146 |
github-java-corpus | 2,012 | package org.bouncycastle.crypto;
/**
* all parameter classes implement this.
*/
public interface CipherParameters
{
}
| 23 |
github-java-corpus | 2,012 | package org.bouncycastle.crypto;
/**
* the foundation class for the exceptions thrown by the crypto packages.
*/
public class RuntimeCryptoException
extends RuntimeException
{
/**
* base constructor.
*/
public RuntimeCryptoException()
{
}
/**
* create a RuntimeCryptoException... | 104 |
github-java-corpus | 2,012 | package org.bouncycastle.crypto.params;
import org.bouncycastle.crypto.CipherParameters;
public class KeyParameter
implements CipherParameters
{
private byte[] key;
public KeyParameter(
byte[] key)
{
this(key, 0, key.length);
}
public KeyParameter(
byte[] key,
... | 129 |
github-java-corpus | 2,012 | package org.bouncycastle.crypto.engines;
import org.bouncycastle.crypto.CipherParameters;
import org.bouncycastle.crypto.DataLengthException;
import org.bouncycastle.crypto.StreamCipher;
import org.bouncycastle.crypto.params.KeyParameter;
public class RC4Engine implements StreamCipher
{
private final static int S... | 882 |
github-java-corpus | 2,012 | package org.bouncycastle.crypto;
/**
* the interface stream ciphers conform to.
*/
public interface StreamCipher
{
/**
* Initialise the cipher.
*
* @param forEncryption if true the cipher is initialised for
* encryption, if false for decryption.
* @param params the key and other data re... | 374 |
github-java-corpus | 2,012 | package net.sf.andpdf.nio;
/**
* A byte-array backed ByteBuffer
*
* @author Ferenc Hechler (ferenc@hechler.de)
* @author Joerg Jahnke (joergjahnke@users.sourceforge.net)
*/
public final class ArrayBackedByteBuffer extends ByteBuffer {
/**
* the byte array backing this buffer
*/
pri... | 2,644 |
github-java-corpus | 2,012 | package net.sf.andpdf.nio;
import java.nio.MappedByteBuffer;
public abstract class ByteBuffer {
public abstract int position();
public abstract void position(int position);
public abstract byte get();
public abstract int remaining();
public abstract byte get(int position);
public abstract ... | 437 |
github-java-corpus | 2,012 | package net.sf.andpdf.nio;
import java.nio.Buffer;
import java.nio.ByteOrder;
import java.nio.CharBuffer;
import java.nio.DoubleBuffer;
import java.nio.FloatBuffer;
import java.nio.IntBuffer;
import java.nio.LongBuffer;
import java.nio.ShortBuffer;
/**
* A wrapper for the java.nio.ByteBuffer class
*
... | 1,618 |
github-java-corpus | 2,012 | package net.sf.andpdf.refs;
import java.util.ArrayList;
public class HardReference<T> {
public static boolean sKeepCaches = false;
private static ArrayList<HardReference> cleanupList = new ArrayList<HardReference>();
public static void cleanup() {
ArrayList<HardReference> oldList = cleanupList;
cl... | 150 |
github-java-corpus | 2,012 | package net.sf.andpdf.refs;
public class WeakReference<T> {
java.lang.ref.WeakReference<T> weakRef;
HardReference<T> hardRef;
public WeakReference(T o) {
if (HardReference.sKeepCaches)
hardRef = new HardReference<T>(o);
else
weakRef = new java.lang.ref.WeakReference<T>(o);
}
public T g... | 118 |
github-java-corpus | 2,012 | package net.sf.andpdf.refs;
import java.util.ArrayList;
public class SoftReference<T> {
java.lang.ref.SoftReference<T> softRef;
HardReference<T> hardRef;
public SoftReference(T o) {
if (HardReference.sKeepCaches)
hardRef = new HardReference<T>(o);
else
softRef = new java.lang.ref.SoftRefe... | 123 |
github-java-corpus | 2,012 | /*
* Copyright (C) 2008-2009 pjv (and others, see About dialog)
*
* This file is part of Android's Fortune.
*
* Android's Fortune is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either ver... | 13,751 |
github-java-corpus | 2,012 | package net.sf.andpdf.pdfviewer;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.io.RandomAccessFile;
import java.nio.channels.FileChannel;
import net.sf.andpdf.nio.ByteBuffer;
import net.sf.andpdf.pdfviewer.gui.Ful... | 7,025 |
github-java-corpus | 2,012 | package net.sf.andpdf.utils;
import android.graphics.Matrix;
public class Utils {
/**
* MSCALE_X MSKEW_X MTRANS_X
* MSKEW_Y MSCALE_Y MTRANS_Y
* MPERSP_0 MPERSP_1 MPERSP_2
*
* @param mat
* @param m00 MSCALE_X
* @param m01 MSKEW_X
* @param m10 MSKEW_Y
* @param m11 MSCALE_Y
* @pa... | 407 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.