code stringlengths 3 1.18M | language stringclasses 1
value |
|---|---|
package org.rsbuddy.wrappers;
/**
* @author Aion
*/
public interface User {
/**
* Gets the name of this user.
*
* @return the name of this user
*/
public String getName();
/**
* Gets the world number that this user is on.
*
* @return the world number or -1 if unavailable
*/
p... | Java |
package org.rsbuddy.wrappers;
import com.rsbuddy.script.wrappers.Component;
/**
* Represents a user on a channel.
*
* @author Aion
*/
public class ChannelUser implements User {
/**
* An enum representing each chat rank.
*/
public enum ChatRank {
RECRUIT(6226), CORPORAL(6225), SERGEANT(6224... | Java |
package org.rsbuddy.net;
import java.lang.reflect.Method;
import java.net.HttpURLConnection;
import java.net.URL;
import java.util.Scanner;
import java.util.regex.Pattern;
/**
* Obtains information on tradeable items from the online Grand Exchange database.
*
* @author Aion
*/
public final class GeIt... | Java |
package org.rsbuddy.net;
import java.lang.reflect.Method;
import java.net.HttpURLConnection;
import java.net.URL;
import java.util.LinkedList;
import java.util.List;
import java.util.Scanner;
import java.util.regex.Pattern;
/**
* Obtains information on the RuneScape world servers from the unsigned world
... | Java |
package org.rsbuddy.net;
import com.rsbuddy.script.methods.Skills;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.net.URL;
/**
* Fetches a player's stats from the RuneScape Highscores database.
*
* @author Aion
*/
public final class Hiscore ... | Java |
package java_book;
class MyData {
int int_score;
double double_score;
double total_score;
String name;
public MyData( int i_score ) {
int_score = i_score;
}
public MyData( int i_score, double d_score ) {
int_score = i_score;
double_score = d_score;
}
public MyData( int i_score, double d_score, St... | Java |
package java_book;
public class KyungYeon_jv_3_8 {
public static void main( String[] args ) {
int x, y;
float c, d;
x = 10;
y = 3;
c = x/y; // c=3
d = (float)x/y; // d=3.33333
System.out.println ("***** result *****");
System.out.println ("c == "+c + ",d == "+d);
}
}
| Java |
package java_book;
public class KyungYeon_jv_3_3 {
public static void main (String[] args) {
int x = 50, y = 30;
System.out.println("**** result ****");
System.out.println("x < y -> "+(x<y)); // false
System.out.println("x <=y -> "+(x<=y));// false
System.out.println("x > y -> "+(x>y)); //... | Java |
package java_book;
public class java_book_kyungyeon {
public static void main ( String[] argc){
System.out.println("Hello java");
}
}
| Java |
package java_book;
class Data{
int x;
int y;
}
public class KyungYeon_jv_5_4 {
public static void sw1 ( int x, int y ) {
int temp;
temp = x;
x = y;
y = temp;
System.out.println("sw1 x = " + x + ", sw1 y = " + y);
}
public static void sw2 ( Data data ) {
int temp;
temp = data.x;
data.x = dat... | Java |
package java_book;
import java.io.BufferedReader;
import java.io.InputStreamReader;
public class KyungYeon_jv_4_4 {
public static void main ( String[] args )
throws java.io.IOException {
int jumsu;
char hakjum;
String iput;
System.out.println("***** result *****");
System.out.print(... | Java |
package java_book;
public class KyungYeon_jv_3_4 {
public static void main(String[] args) {
boolean x = true, y = true, z = false;
System.out.println("***** result *****");
System.out.println("boolean x = true, y = true, z = false");
System.out.println("--- logical AND ---");
System.ou... | Java |
package java_book;
public class KyungYeon_jv_3_6 {
public static void main ( String[] args ) {
int x = 7, y = 2;
int a, b;
a = 7;
b = 2;
System.out.println("***** result *****");
System.out.println("x = "+ x + ",y = "+ y); // x=7, y=2
System.out.println("a = "+ a + ",b = "+ b); /... | Java |
package java_book;
public class KyungYeon_jv_3_7 {
public static void main( String[] args )
{
int x=10, y=20, ken, boo, yoo, soo;
ken = boo = 30;
yoo = (ken == boo? x:y); // yoo = 10;
soo = (ken < boo? x:y); // soo = 20;
System.out.println("***** result ****");
System.out.println... | Java |
package java_book;
import java.io.BufferedReader;
import java.io.InputStreamReader;
public class KyungYeon_homework_3_1 {
public static void main( String[] args )
throws java.io.IOException {
String input;
int num;
System.out.print("Please input num : ");
InputStreamReader streamReader = ... | Java |
package java_book;
import java.io.BufferedReader;
import java.io.InputStreamReader;
// change 'for' to 'switch
public class KyungYeon_jv_4_5 {
public static void main ( String[] args )
throws java.io.IOException {
int jumsu;
char hakjum;
String iput;
System.out.println("****... | Java |
package java_book;
public class KyungYeon_jv_3_2 {
public static void main(String[] args) {
int x = 100, y = 30;
System.out.println("**** result *****");
System.out.println("x + y = " + (x+y)); // 130
System.out.println("x - y = " + (x-y)); // 70
System.out.println("x * y = " + (x*y));... | Java |
package java_book;
public class KyungYeon_jv_4_2 {
public static void main( String[] args )
throws java.io.IOException {
int x;
System.out.println("x == ?");
x = System.in.read() - '0';
System.out.println("***** result *****");
if(x>0){
System.out.println("x is greate... | Java |
package java_book;
public class KyungYeon_jv_4_10 {
public static void main ( String[] args ){
int[] arr = {10,20,30,40,50};
int i=0, ave=10, sum=0;
System.out.println("***** result *****");
for (i=0; i<5; i++) {
System.out.println("arr["+i+"] = "+arr[i]);
}
for (i=0; i<... | Java |
package java_book;
public class KyungYeon_homework_3_5 {
public static void main ( String[] args ) {
int i, j;
int result;
for(i=1; i<=10; i++) {
result = 1;
for (j=i; j>=1; j--) {
result *= j;
}
System.out.println(i+"! = "+result);
}
}
}
| Java |
package java_book;
//import java.io.BufferedReader;
//import java.io.InputStreamReader;
import java.util.Scanner;
public class KyungYeon_homework_3_2 {
public static void main( String[] args )
throws java.io.IOException {
int num1, num2;
int max;
// String input;
// System.... | Java |
package java_book;
public class KyungYeon_homework_3_4 {
public static void main( String[] args ) {
char alphabet;
for ( alphabet='A'; alphabet<='Z'; alphabet++ ) {
System.out.print(alphabet+" ");
}
}
}
| Java |
package java_book;
public class KyungYeon_jv_4_7 {
public static void main ( String[] args ) {
int i,j;
System.out.println("***** result *****");
for(i=1; i<10; i++) {
for (j=1; j<10; j++) {
System.out.print(i+"*"+j+"="+(i*j)+" ");
}
System.out.println();
}
}
}
| Java |
package java_book;
public class KyungYeon_jv_3_5 {
public static void main ( String[] args ) {
int ken = 2, boo = 7, yoo = -7;
System.out.println("***** result *****");
System.out.println("ken = 2, boo = 7, yoo = -7");
System.out.println("--- bitwise AND ---");
System.out.println("ken&... | Java |
package java_book;
public class KyungYeon_jv_3_1 {
public static void main(String[] args) {
int ken = 10, yoo = -20, boo;
boo = -yoo;
System.out.println("***** result *****");
System.out.println("ken = "+ken+","+
"yoo = "+yoo+","+
"boo = "+boo);
System.out.println("++ken = "+(++ken)+... | Java |
package java_book;
public class KyungYeon_homework_3_3 {
public static void main ( String[] args ) {
int evenNumber_sum = 0;
int i;
for ( i=1; i<=100; i++ ) {
if( i%2 == 0 )
evenNumber_sum += i;
}
System.out.println("total : "+evenNumber_sum);
}
}
| Java |
package java_book;
public class KyungYeon_jv_4_6 {
public static void main ( String[] args ) {
int num = 0;
int sum = 0;
System.out.println("***** result *****");
for(num=1; num<=100; num++) {
sum += num;
}
System.out.println("1+2+3+...+100 = "+sum+" (for statement)");
n... | Java |
package net.appositedesigns.fileexplorer.workers;
import java.io.File;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Date;
import java.util.List;
import java.util.Map;
import net.appositedesigns.fileexplorer.R;
import net.appositedesigns.fileexplorer.activity.FileListActivity;
... | Java |
package net.appositedesigns.fileexplorer.workers;
import java.io.File;
import net.appositedesigns.fileexplorer.R;
import net.appositedesigns.fileexplorer.activity.FileListActivity;
import net.appositedesigns.fileexplorer.util.AbortionFlag;
import net.appositedesigns.fileexplorer.util.Util;
import android.app.... | Java |
package net.appositedesigns.fileexplorer.workers;
import java.io.File;
import net.appositedesigns.fileexplorer.R;
import net.appositedesigns.fileexplorer.activity.FileListActivity;
import net.appositedesigns.fileexplorer.exception.LocationInvalidException;
import net.appositedesigns.fileexplorer.util.AbortionF... | Java |
package net.appositedesigns.fileexplorer.workers;
import java.io.File;
import net.appositedesigns.fileexplorer.R;
import net.appositedesigns.fileexplorer.activity.FileListActivity;
import net.appositedesigns.fileexplorer.callbacks.OperationCallback;
import net.appositedesigns.fileexplorer.util.Util;
import an... | Java |
package net.appositedesigns.fileexplorer.workers;
import java.io.BufferedInputStream;
import java.io.BufferedOutputStream;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Enumeration;
import java.util.List;
import java.util.zip.Zi... | Java |
package net.appositedesigns.fileexplorer.workers;
import java.io.File;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import net.appositedesigns.fileexplorer.R;
import net.appositedesigns.fileexplorer.activity.BookmarkListActivity;
import net.appositedesigns.fileexplorer.mod... | Java |
package net.appositedesigns.fileexplorer.exception;
public class LocationInvalidException extends Exception {
private static final long serialVersionUID = -4046926680600982016L;
private String location;
public LocationInvalidException(String location) {
super();
this.location = location;
}
p... | Java |
package net.appositedesigns.fileexplorer.callbacks;
import android.content.Intent;
import android.net.Uri;
import android.view.ActionMode;
import android.view.ActionMode.Callback;
import android.view.Menu;
import android.view.MenuInflater;
import android.view.MenuItem;
import android.webkit.MimeTypeMap;
impo... | Java |
package net.appositedesigns.fileexplorer.callbacks;
public interface OperationCallback<T> {
T onSuccess();
void onFailure(Throwable e);
}
| Java |
package net.appositedesigns.fileexplorer.callbacks;
public interface CancellationCallback {
void onCancel();
}
| Java |
package net.appositedesigns.fileexplorer.adapters;
import java.util.List;
import net.appositedesigns.fileexplorer.R;
import net.appositedesigns.fileexplorer.activity.BookmarkListActivity;
import net.appositedesigns.fileexplorer.model.FileListEntry;
import net.appositedesigns.fileexplorer.util.Util;
import and... | Java |
package net.appositedesigns.fileexplorer.adapters;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.ImageView;
import android.widget.TextView;
import net.appositedesigns.fileexplorer.R;
import net.appositede... | Java |
package net.appositedesigns.fileexplorer;
import android.app.Application;
import android.content.Intent;
public class FileExplorerApp extends Application {
public static final int THEME_BLACK = R.style.Theme_FileExplorer;
public static final int THEME_WHITE = R.style.Theme_FileExplorer_Light;
public stat... | Java |
package net.appositedesigns.fileexplorer.util;
import android.app.AlertDialog.Builder;
import android.content.Context;
import android.content.DialogInterface;
import android.graphics.drawable.Drawable;
import android.net.Uri;
import android.os.Environment;
import android.os.StatFs;
import android.text.InputTy... | Java |
package net.appositedesigns.fileexplorer.util;
public class AbortionFlag {
private boolean aborted = false;
public synchronized void abort()
{
aborted = true;
}
public synchronized boolean isAborted()
{
return aborted;
}
}
| Java |
package net.appositedesigns.fileexplorer.util;
import android.app.Activity;
import android.app.AlertDialog;
import android.app.AlertDialog.Builder;
import android.app.Instrumentation.ActivityResult;
import android.app.Notification;
import android.app.NotificationManager;
import android.content.Context;
import... | Java |
package net.appositedesigns.fileexplorer.util;
import android.app.Activity;
import android.content.Context;
import android.content.SharedPreferences;
import android.os.AsyncTask;
import net.appositedesigns.fileexplorer.activity.BookmarkListActivity;
import net.appositedesigns.fileexplorer.model.FileListEntry;... | Java |
package net.appositedesigns.fileexplorer.util;
import java.util.Comparator;
import net.appositedesigns.fileexplorer.activity.BaseFileListActivity;
import net.appositedesigns.fileexplorer.activity.FileListActivity;
import net.appositedesigns.fileexplorer.model.FileListEntry;
import net.appositedesigns.fileexplo... | Java |
package net.appositedesigns.fileexplorer.util;
import android.app.Activity;
import android.content.Context;
import android.content.SharedPreferences;
import android.preference.PreferenceManager;
import net.appositedesigns.fileexplorer.FileExplorerApp;
import net.appositedesigns.fileexplorer.exception.Location... | Java |
package net.appositedesigns.fileexplorer.util;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.util.zip.ZipEntry;
import java.util.zip.ZipOutputStream;
/**
* The class provides the utility method to zip files or folders uses
* java.util.zip package underne... | Java |
package net.appositedesigns.fileexplorer.model;
import java.util.List;
public class FileListing {
private List<FileListEntry> children;
private boolean isExcludeFromMedia = false;
public List<FileListEntry> getChildren() {
return children;
}
public void setChildren(List<FileListEntry> children) ... | Java |
package net.appositedesigns.fileexplorer.activity;
import android.app.ActionBar;
import android.app.ActionBar.OnNavigationListener;
import android.app.Activity;
import android.app.AlertDialog;
import android.app.AlertDialog.Builder;
import android.content.DialogInterface;
import android.content.Intent;
import android.... | Java |
package net.appositedesigns.fileexplorer.activity;
import android.content.Intent;
import android.os.Bundle;
import android.preference.Preference;
import android.preference.Preference.OnPreferenceClickListener;
import android.preference.PreferenceActivity;
import android.preference.PreferenceFragment;
import an... | Java |
package net.appositedesigns.fileexplorer.activity;
import java.io.File;
import java.io.FileNotFoundException;
import java.util.ArrayList;
import java.util.List;
import net.appositedesigns.fileexplorer.FileExplorerApp;
import net.appositedesigns.fileexplorer.R;
import net.appositedesigns.fileexplorer.adapters... | Java |
package net.appositedesigns.fileexplorer.activity;
import net.appositedesigns.fileexplorer.util.BookmarksHelper;
import net.appositedesigns.fileexplorer.util.PreferenceHelper;
import android.app.ListActivity;
import android.content.SharedPreferences;
import android.content.SharedPreferences.OnSharedPreferenceCha... | Java |
package net.appositedesigns.fileexplorer.activity;
import net.appositedesigns.fileexplorer.R;
import net.appositedesigns.fileexplorer.R.string;
import net.appositedesigns.fileexplorer.util.PreferenceHelper;
import android.app.AlertDialog;
import android.content.DialogInterface;
import android.content.DialogInte... | Java |
/* ***** BEGIN LICENSE BLOCK *****
* Version: GPL 2.0
*
* The contents of this file are subject to the GNU General Public
* License Version 2 or later (the "GPL").
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the Lic... | Java |
/* ***** BEGIN LICENSE BLOCK *****
* Version: GPL 2.0
*
* The contents of this file are subject to the GNU General Public
* License Version 2 or later (the "GPL").
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the Lic... | Java |
/* ***** BEGIN LICENSE BLOCK *****
* Version: GPL 2.0
*
* The contents of this file are subject to the GNU General Public
* License Version 2 or later (the "GPL").
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the Lic... | Java |
/* ***** BEGIN LICENSE BLOCK *****
* Version: GPL 2.0
*
* The contents of this file are subject to the GNU General Public
* License Version 2 or later (the "GPL").
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the Lic... | Java |
package org.apache.jdkim;
import org.eclipse.core.runtime.Plugin;
import org.osgi.framework.BundleContext;
/**
* The activator class controls the plug-in life cycle
*/
public class Activator extends Plugin {
// The plug-in ID
public static final String PLUGIN_ID = "org.apache.jdkim";
// The shared instance
pr... | Java |
package org.minig.filters;
import java.io.ByteArrayInputStream;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.HashMap;
import java.util.List;
import org.minig.cache.JDBCCacheCallback;
import org.minig.cache.RowMapper;
import or... | Java |
/* ***** BEGIN LICENSE BLOCK *****
* Version: GPL 2.0
*
* The contents of this file are subject to the GNU General Public
* License Version 2 or later (the "GPL").
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the Lic... | Java |
/* ***** BEGIN LICENSE BLOCK *****
* Version: GPL 2.0
*
* The contents of this file are subject to the GNU General Public
* License Version 2 or later (the "GPL").
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the Lic... | Java |
/* ***** BEGIN LICENSE BLOCK *****
* Version: GPL 2.0
*
* The contents of this file are subject to the GNU General Public
* License Version 2 or later (the "GPL").
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the Lic... | Java |
/* ***** BEGIN LICENSE BLOCK *****
* Version: GPL 2.0
*
* The contents of this file are subject to the GNU General Public
* License Version 2 or later (the "GPL").
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the Lic... | Java |
/* ***** BEGIN LICENSE BLOCK *****
* Version: GPL 2.0
*
* The contents of this file are subject to the GNU General Public
* License Version 2 or later (the "GPL").
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the Lic... | Java |
/* ***** BEGIN LICENSE BLOCK *****
* Version: GPL 2.0
*
* The contents of this file are subject to the GNU General Public
* License Version 2 or later (the "GPL").
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the Lic... | Java |
/* ***** BEGIN LICENSE BLOCK *****
* Version: GPL 2.0
*
* The contents of this file are subject to the GNU General Public
* License Version 2 or later (the "GPL").
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the Lic... | Java |
/* ***** BEGIN LICENSE BLOCK *****
* Version: GPL 2.0
*
* The contents of this file are subject to the GNU General Public
* License Version 2 or later (the "GPL").
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the Lic... | Java |
/* ***** BEGIN LICENSE BLOCK *****
* Version: GPL 2.0
*
* The contents of this file are subject to the GNU General Public
* License Version 2 or later (the "GPL").
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the Lic... | Java |
/* ***** BEGIN LICENSE BLOCK *****
* Version: GPL 2.0
*
* The contents of this file are subject to the GNU General Public
* License Version 2 or later (the "GPL").
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the Lic... | Java |
/* ***** BEGIN LICENSE BLOCK *****
* Version: GPL 2.0
*
* The contents of this file are subject to the GNU General Public
* License Version 2 or later (the "GPL").
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the Lic... | Java |
/* ***** BEGIN LICENSE BLOCK *****
* Version: GPL 2.0
*
* The contents of this file are subject to the GNU General Public
* License Version 2 or later (the "GPL").
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the Lic... | Java |
/* ***** BEGIN LICENSE BLOCK *****
* Version: GPL 2.0
*
* The contents of this file are subject to the GNU General Public
* License Version 2 or later (the "GPL").
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the Lic... | Java |
/* ***** BEGIN LICENSE BLOCK *****
* Version: GPL 2.0
*
* The contents of this file are subject to the GNU General Public
* License Version 2 or later (the "GPL").
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the Lic... | Java |
/* ***** BEGIN LICENSE BLOCK *****
* Version: GPL 2.0
*
* The contents of this file are subject to the GNU General Public
* License Version 2 or later (the "GPL").
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the Lic... | Java |
/* ***** BEGIN LICENSE BLOCK *****
* Version: GPL 2.0
*
* The contents of this file are subject to the GNU General Public
* License Version 2 or later (the "GPL").
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the Lic... | Java |
/* ***** BEGIN LICENSE BLOCK *****
* Version: GPL 2.0
*
* The contents of this file are subject to the GNU General Public
* License Version 2 or later (the "GPL").
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the Lic... | Java |
package fr.aliasource.webmail.indexing;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.minig.imap.Address;
public class MailSplitter {
private static final Log logger = LogFactory.getLog(MailSplitter.class);
/**
* joe.black@minig.org should return
* "joe.black... | Java |
package fr.aliasource.webmail.indexing;
public class MessageBeautifier {
private static String PATTERN_URL_WITH_HTTP = "[^\">](((http://)|(https://))"
+ "+[a-zA-Z_0-9\\-]+(\\.\\w[a-zA-Z_0-9\\-]+)"
+ "+(/[#&;\\n\\-=?:|,()@\\+\\%/\\.\\w]+)?+(:[0-9]*+)?)";
private static String PATTERN_URL_WITH_HTTP_START = "^(... | Java |
/* ***** BEGIN LICENSE BLOCK *****
* Version: GPL 2.0
*
* The contents of this file are subject to the GNU General Public
* License Version 2 or later (the "GPL").
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the Lic... | Java |
/* ***** BEGIN LICENSE BLOCK *****
* Version: GPL 2.0
*
* The contents of this file are subject to the GNU General Public
* License Version 2 or later (the "GPL").
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the Lic... | Java |
/* ***** BEGIN LICENSE BLOCK *****
* Version: GPL 2.0
*
* The contents of this file are subject to the GNU General Public
* License Version 2 or later (the "GPL").
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the Lic... | Java |
package org.minig.threading.tests;
import java.util.Arrays;
import java.util.List;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import org.minig.threading.IThreadable;
import org.minig.threading.Threadable;
import org.minig.threading.Threader;
import com.google.common.base.Joiner;
public... | Java |
package org.minig.threading.tests;
import org.junit.Assert;
import org.junit.Test;
import org.minig.threading.Threadable;
public class ThreadableTests {
@Test
public void testKeepOrder() {
Threadable threadable = new Threadable("mid", 1, "irt", "m1, m2, m3, irt");
Assert.assertArrayEquals(new String[] {"m1", "... | Java |
package org.minig.threading.tests;
import org.eclipse.core.runtime.Plugin;
import org.osgi.framework.BundleContext;
/**
* The activator class controls the plug-in life cycle
*/
public class Activator extends Plugin {
// The plug-in ID
public static final String PLUGIN_ID = "org.minig.threading.tests";
// The s... | Java |
/* ***** BEGIN LICENSE BLOCK *****
* Version: GPL 2.0
*
* The contents of this file are subject to the GNU General Public
* License Version 2 or later (the "GPL").
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the Lic... | Java |
/* ***** BEGIN LICENSE BLOCK *****
* Version: GPL 2.0
*
* The contents of this file are subject to the GNU General Public
* License Version 2 or later (the "GPL").
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the Lic... | Java |
/* ***** BEGIN LICENSE BLOCK *****
* Version: GPL 2.0
*
* The contents of this file are subject to the GNU General Public
* License Version 2 or later (the "GPL").
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the Lic... | Java |
package org.minig.preview.images.test;
import org.eclipse.core.runtime.Plugin;
import org.osgi.framework.BundleContext;
/**
* The activator class controls the plug-in life cycle
*/
public class Activator extends Plugin {
// The plug-in ID
public static final String PLUGIN_ID = "org.minig.preview.images.test";
... | Java |
/* ***** BEGIN LICENSE BLOCK *****
* Version: GPL 2.0
*
* The contents of this file are subject to the GNU General Public
* License Version 2 or later (the "GPL").
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the Lic... | Java |
/* ***** BEGIN LICENSE BLOCK *****
* Version: GPL 2.0
*
* The contents of this file are subject to the GNU General Public
* License Version 2 or later (the "GPL").
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the Lic... | Java |
/* ***** BEGIN LICENSE BLOCK *****
* Version: GPL 2.0
*
* The contents of this file are subject to the GNU General Public
* License Version 2 or later (the "GPL").
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the Lic... | Java |
/* ***** BEGIN LICENSE BLOCK *****
* Version: GPL 2.0
*
* The contents of this file are subject to the GNU General Public
* License Version 2 or later (the "GPL").
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the Lic... | Java |
/*
* Created on May 25, 2004
*
*/
package fr.aliasource.utils;
import java.io.ByteArrayOutputStream;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.util.concurrent.Semaphore;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.Do... | Java |
package fr.aliasource.utils;
public final class StringUtils {
public static final String stripChar(String s, char strip) {
StringBuilder sb = new StringBuilder(s.length());
char[] chars = s.toCharArray();
for (char c : chars) {
if (c != strip) {
sb.append(c);
}
}
return sb.toString();
}
publ... | Java |
/* ***** BEGIN LICENSE BLOCK *****
* Version: GPL 2.0
*
* The contents of this file are subject to the GNU General Public
* License Version 2 or later (the "GPL").
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the Lic... | Java |
/* ***** BEGIN LICENSE BLOCK *****
* Version: GPL 2.0
*
* The contents of this file are subject to the GNU General Public
* License Version 2 or later (the "GPL").
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the Lic... | Java |
/* ***** BEGIN LICENSE BLOCK *****
* Version: GPL 2.0
*
* The contents of this file are subject to the GNU General Public
* License Version 2 or later (the "GPL").
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the Lic... | Java |
/* ***** BEGIN LICENSE BLOCK *****
* Version: GPL 2.0
*
* The contents of this file are subject to the GNU General Public
* License Version 2 or later (the "GPL").
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the Lic... | Java |
/* ***** BEGIN LICENSE BLOCK *****
* Version: GPL 2.0
*
* The contents of this file are subject to the GNU General Public
* License Version 2 or later (the "GPL").
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the Lic... | Java |
package org.minig.obm23.locator;
import org.obm.locator.client.LocatorClient;
import fr.aliasource.webmail.common.IServerLocator;
public class ServerLocator implements IServerLocator {
@Override
public String getHostName(String login, String domain, String locatorUrlPart) {
LocatorClient lc = new LocatorClient(... | Java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.