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
package at.sti2.model; import java.util.Date; import java.util.Vector; import android.os.Bundle; public class Mensa { private String name; private String mensaURI; private String location; private String streetaddress; private String lat; private String lon; public Mensa(String name, String mensaURI, String ...
509
github-java-corpus
2,012
package at.sti2.externalCode; public class MyEncoder { public static String encode(String input) { StringBuilder resultStr = new StringBuilder(); for (char ch : input.toCharArray()) { if (isUnsafe(ch)) { resultStr.append('%'); resultStr.append(toHex(ch / 16)); resultStr.append(toHex(ch % 16)); ...
189
github-java-corpus
2,012
package softwareaskea.qrconfig.profiles; import java.util.ArrayList; import softwareaskea.qrconfig.R; import softwareaskea.qrconfig.profiles.Profile; import android.content.Context; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.ArrayAdapter; import...
878
github-java-corpus
2,012
package softwareaskea.qrconfig.profiles; public class Profile { public static final int WIFI_ON = 1; public static final int BLUETOOTH_ON = 1; public static final int VIBRATION_ON = 1; public static final int WIFI_OFF = 0; public static final int BLUETOOTH_OFF = 0; public static final int VIBRATI...
878
github-java-corpus
2,012
package softwareaskea.qrconfig.widget; import softwareaskea.qrconfig.ConfigEditor; import android.app.Activity; import android.content.Intent; import android.os.Bundle; public class WidgetActivity extends Activity { private ConfigEditor configEditor; @Override public void onCreate(Bundle savedInstanceState) { ...
249
github-java-corpus
2,012
package softwareaskea.qrconfig.widget; import softwareaskea.qrconfig.R; import android.app.PendingIntent; import android.appwidget.AppWidgetManager; import android.appwidget.AppWidgetProvider; import android.content.ComponentName; import android.content.Context; import android.content.Intent; import android.widget.Rem...
348
github-java-corpus
2,012
package softwareaskea.qrconfig; import java.util.List; import java.util.Vector; import softwareaskea.qrconfig.db.ProfileDAO; import softwareaskea.qrconfig.fragment.*; import softwareaskea.qrconfig.profiles.Profile; import android.support.v4.app.Fragment; import android.app.Activity; import android.content.Intent; im...
972
github-java-corpus
2,012
package softwareaskea.qrconfig.listener; import softwareaskea.qrconfig.ConfigEditor; import softwareaskea.qrconfig.InterfaceFunctions; import softwareaskea.qrconfig.R; import softwareaskea.qrconfig.db.ProfileDAO; import softwareaskea.qrconfig.profiles.Profile; import android.app.Activity; import android.app.AlertDialo...
1,622
github-java-corpus
2,012
package softwareaskea.qrconfig.listener; import softwareaskea.qrconfig.ConfigEditor; import softwareaskea.qrconfig.InterfaceFunctions; import softwareaskea.qrconfig.R; import softwareaskea.qrconfig.db.ProfileDAO; import softwareaskea.qrconfig.profiles.Profile; import android.app.Activity; import android.app.AlertDialo...
2,325
github-java-corpus
2,012
package softwareaskea.qrconfig.listener; import java.util.ArrayList; import softwareaskea.qrconfig.ConfigEditor; import softwareaskea.qrconfig.QRFunctions; import softwareaskea.qrconfig.R; import softwareaskea.qrconfig.db.ProfileDAO; import softwareaskea.qrconfig.profiles.Profile; import softwareaskea.qrconfig.profil...
977
github-java-corpus
2,012
package softwareaskea.qrconfig.db; import android.content.Context; import android.database.sqlite.SQLiteDatabase; import android.database.sqlite.SQLiteOpenHelper; public class SQLiteHelper extends SQLiteOpenHelper { public static final String TABLE_PROFILES = "profiles"; public static final String COLUMN_ID = "_...
375
github-java-corpus
2,012
package softwareaskea.qrconfig.db; import java.util.ArrayList; import java.util.List; import softwareaskea.qrconfig.profiles.Profile; import android.content.ContentValues; import android.content.Context; import android.database.Cursor; import android.database.SQLException; import android.database.sqlite.SQLiteDataba...
1,275
github-java-corpus
2,012
package softwareaskea.qrconfig; import android.net.Uri; import softwareaskea.qrconfig.db.ProfileDAO; import softwareaskea.qrconfig.profiles.Profile; public class QRFunctions { public static Profile getQRProfile(String qr,ProfileDAO mProfileDAO){ Profile profile = new Profile(); String pattern = "MCONFIG:(\\...
892
github-java-corpus
2,012
package softwareaskea.qrconfig; import android.app.Activity; import android.widget.CheckBox; import android.widget.SeekBar; import android.widget.Switch; public class InterfaceFunctions { /** * Get Switch value * @param checkBoxId id of CheckBox resource * @param switchId id of the Switch resource * @param...
382
github-java-corpus
2,012
package softwareaskea.qrconfig; import softwareaskea.qrconfig.profiles.Profile; import android.app.Activity; import android.bluetooth.BluetoothAdapter; import android.content.Context; import android.media.AudioManager; import android.net.wifi.WifiManager; public class ConfigEditor { private BluetoothAdapter mBluet...
1,107
github-java-corpus
2,012
package softwareaskea.qrconfig.fragment; import android.os.Bundle; import android.support.v4.app.Fragment; public class ProfileFragment extends Fragment{ /******* Overrides *******/ @Override public void onCreate(Bundle savedInstanceState){ super.onCreate(savedInstanceState); } @Override public void onAc...
66
github-java-corpus
2,012
package softwareaskea.qrconfig.fragment; import softwareaskea.qrconfig.ConfigEditor; import softwareaskea.qrconfig.R; import softwareaskea.qrconfig.listener.ManualListener; import android.support.v4.app.Fragment; import android.app.Activity; import android.os.Bundle; import android.util.Log; import android.view.Layout...
582
github-java-corpus
2,012
package softwareaskea.qrconfig.fragment; import java.util.ArrayList; import softwareaskea.qrconfig.R; import softwareaskea.qrconfig.db.ProfileDAO; import softwareaskea.qrconfig.listener.ProfileListListener; import softwareaskea.qrconfig.profiles.Profile; import softwareaskea.qrconfig.profiles.ProfileItemAdapter; impo...
524
github-java-corpus
2,012
package softwareaskea.qrconfig.fragment; import java.util.List; import android.support.v4.app.Fragment; import android.support.v4.app.FragmentManager; import android.support.v4.app.FragmentPagerAdapter; public class QRConfigPagerAdapter extends FragmentPagerAdapter { //private Resources res; private final List<Fr...
172
github-java-corpus
2,012
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements.The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * ...
672
github-java-corpus
2,012
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements.The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * ...
558
github-java-corpus
2,012
package com.zinnia.nectar.regression.language.complex.impl; import java.io.IOException; import java.util.ArrayList; import java.util.List; import java.util.UUID; import java.util.concurrent.Callable; import java.util.concurrent.Future; import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.fs.FSDataInp...
601
github-java-corpus
2,012
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements.The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * ...
1,201
github-java-corpus
2,012
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements.The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * ...
1,284
github-java-corpus
2,012
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements.The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * ...
492
github-java-corpus
2,012
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements.The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * ...
422
github-java-corpus
2,012
package com.zinnia.nectar.regression.language.complex.impl; import java.io.IOException; import java.util.ArrayList; import java.util.List; import java.util.UUID; import java.util.concurrent.Callable; import java.util.concurrent.Future; import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.fs.FSDataInp...
527
github-java-corpus
2,012
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements.The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * ...
446
github-java-corpus
2,012
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements.The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * ...
853
github-java-corpus
2,012
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements.The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * ...
809
github-java-corpus
2,012
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements.The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * ...
709
github-java-corpus
2,012
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements.The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * ...
270
github-java-corpus
2,012
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements.The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * ...
643
github-java-corpus
2,012
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements.The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * ...
1,561
github-java-corpus
2,012
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements.The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * ...
295
github-java-corpus
2,012
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements.The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * ...
323
github-java-corpus
2,012
package com.zinnia.nectar.regression.hadoop.primitive.mapreduce; import java.io.IOException; import java.util.ArrayList; import java.util.List; import org.apache.hadoop.io.DoubleWritable; import org.apache.hadoop.io.LongWritable; import org.apache.hadoop.io.NullWritable; import org.apache.hadoop.io.Text; import org.a...
248
github-java-corpus
2,012
package com.zinnia.nectar.regression.hadoop.primitive.mapreduce; import java.io.IOException; import java.util.StringTokenizer; import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.fs.FileSystem; import org.apache.hadoop.fs.Path; import org.apache.hadoop.io.DoubleWritable; import org.apache.hadoop.io....
405
github-java-corpus
2,012
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements.The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * ...
279
github-java-corpus
2,012
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements.The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * ...
302
github-java-corpus
2,012
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements.The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * ...
301
github-java-corpus
2,012
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements.The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * ...
437
github-java-corpus
2,012
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements.The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * ...
301
github-java-corpus
2,012
package com.zinnia.nectar.regression.hadoop.primitive.mapreduce; import java.io.IOException; import org.apache.hadoop.io.DoubleWritable; import org.apache.hadoop.io.LongWritable; import org.apache.hadoop.io.Text; import org.apache.hadoop.mapreduce.Mapper; import com.zinnia.nectar.util.hadoop.writable.IndexPair; pu...
187
github-java-corpus
2,012
package com.zinnia.nectar.regression.hadoop.primitive.mapreduce; import java.io.IOException; import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.fs.FileSystem; import org.apache.hadoop.fs.Path; import org.apache.hadoop.io.DoubleWritable; import org.apache.hadoop.io.LongWritable; import org.apache.ha...
392
github-java-corpus
2,012
package com.zinnia.nectar.regression.hadoop.primitive.jobs; import java.util.UUID; import java.util.concurrent.Callable; import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.fs.Path; import org.apache.hadoop.io.DoubleWritable; import org.apache.hadoop.io.NullWritable; import org.apache.hadoop.mapredu...
364
github-java-corpus
2,012
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements.The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * ...
873
github-java-corpus
2,012
package com.zinnia.nectar.regression.hadoop.primitive.jobs; import java.util.UUID; import java.util.concurrent.Callable; import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.fs.Path; import org.apache.hadoop.io.DoubleWritable; import org.apache.hadoop.io.LongWritable; import org.apache.hadoop.io.Null...
404
github-java-corpus
2,012
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements.The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * ...
1,281
github-java-corpus
2,012
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements.The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * ...
1,250
github-java-corpus
2,012
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements.The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * ...
1,259
github-java-corpus
2,012
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements.The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * ...
1,271
github-java-corpus
2,012
package com.zinnia.nectar.regression.hadoop.primitive.jobs; import java.util.UUID; import java.util.concurrent.Callable; import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.fs.Path; import org.apache.hadoop.io.LongWritable; import org.apache.hadoop.io.Text; import org.apache.hadoop.mapreduce.Job; im...
355
github-java-corpus
2,012
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements.The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * ...
1,248
github-java-corpus
2,012
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements.The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * ...
1,207
github-java-corpus
2,012
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements.The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * ...
7,922
github-java-corpus
2,012
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements.The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * ...
1,275
github-java-corpus
2,012
package com.zinnia.nectar.util.hadoop.writable; import java.io.DataInput; import java.io.DataOutput; import java.io.IOException; import org.apache.hadoop.io.WritableComparable; public class IndexPair implements WritableComparable<IndexPair> { private long rowIndex; private long colIndex; /* (non-Javadoc) * ...
517
github-java-corpus
2,012
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements.The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * ...
920
github-java-corpus
2,012
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements.The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * ...
221
github-java-corpus
2,012
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements.The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * ...
567
github-java-corpus
2,012
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements.The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * ...
576
github-java-corpus
2,012
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements.The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * ...
293
github-java-corpus
2,012
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements.The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * ...
369
github-java-corpus
2,012
package com.zinnia.nectar.config; public class NectarException extends Exception { private static final long serialVersionUID = 1L; public NectarException() { super(); // TODO Auto-generated constructor stub } public NectarException(String message, Throwable cause) { super(message, cause); // TODO Auto-g...
202
github-java-corpus
2,012
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements.The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * ...
356
github-java-corpus
2,012
package com.test; import java.util.concurrent.ExecutionException; import java.util.concurrent.Future; import com.zinnia.nectar.regression.language.primitive.IPrimitiveType; import com.zinnia.nectar.regression.language.primitive.PrimitiveTypeImplFactory; public class Covariance { /** * Implements covariance of tw...
332
github-java-corpus
2,012
package com.test; import java.util.concurrent.ExecutionException; import java.util.concurrent.Future; import com.zinnia.nectar.regression.language.primitive.IPrimitiveType; import com.zinnia.nectar.regression.language.primitive.PrimitiveTypeImplFactory; public class Covariance { /** * Implements covariance of tw...
332
github-java-corpus
2,012
package devhood.im.sim.service.interfaces; import devhood.im.sim.model.FileSendAcceptMessage; import devhood.im.sim.model.FileSendRejectMessage; import devhood.im.sim.model.FileSendRequestMessage; import devhood.im.sim.model.Message; /** * MessageCallback, Callback bei ankunft einer neuen Nachricht. * *...
256
github-java-corpus
2,012
package devhood.im.sim.service.interfaces; import java.io.File; import devhood.im.sim.model.Message; import devhood.im.sim.model.User; /** * MessageSender versendet messages. * * @author flo * */ public interface MessageSender { /** * Sendet die Nachricht an den User. * * @param user ...
443
github-java-corpus
2,012
package devhood.im.sim.service.interfaces; import java.util.List; import devhood.im.sim.model.User; /** * Listener wird benachrichtigt wenn Benutzer hinzukommen oder entfernt werden. * * @author flo * */ public interface UserChangeListener { /** * Wenn User hinzu kommen. * * @param use...
129
github-java-corpus
2,012
package devhood.im.sim.service.interfaces; import java.util.List; import devhood.im.sim.model.User; /** * Service zum Zugriff auf User Daten. * * @author flo * */ public interface UserService { /** * Gibt zurueck ob der User aktuell online ist. * * @param user * Usernam...
348
github-java-corpus
2,012
package devhood.im.sim.service.interfaces; import devhood.im.sim.model.Message; /** * Verarbeitet die eingehende Nachricht. * * @author flo * */ public interface MessageProcessor { /** * Verarbeitet die eingehende Nachricht und gibt Sie modifiziert zurueck. * * @return Modifizierte Messag...
88
github-java-corpus
2,012
package devhood.im.sim.service; import java.io.BufferedInputStream; import java.io.BufferedOutputStream; import java.io.File; import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStream; import java.io.ObjectOutputStream; import java.io.OutputStream...
3,710
github-java-corpus
2,012
package devhood.im.sim.service; import java.util.ArrayList; import java.util.Date; import java.util.Iterator; import java.util.List; import java.util.Timer; import java.util.TimerTask; import javax.inject.Inject; import javax.inject.Named; import devhood.im.sim.config.SimConfiguration; import devhood.im...
1,580
github-java-corpus
2,012
package devhood.im.sim.service; import java.io.IOException; import java.io.InputStream; import java.io.ObjectInputStream; import java.net.Socket; import java.security.Key; import java.util.logging.Level; import java.util.logging.Logger; import javax.crypto.Cipher; import javax.crypto.CipherInputStream; import javax.i...
937
github-java-corpus
2,012
package devhood.im.sim.service.mock; import java.util.ArrayList; import java.util.Date; import java.util.Iterator; import java.util.List; import java.util.logging.Logger; import devhood.im.sim.dao.interfaces.UserDao; import devhood.im.sim.event.EventDispatcher; import devhood.im.sim.event.Events; import de...
595
github-java-corpus
2,012
package devhood.im.sim; import java.util.logging.Level; import java.util.logging.Logger; import javax.swing.JOptionPane; import javax.swing.UIManager; import org.springframework.context.ApplicationContext; import org.springframework.context.support.GenericXmlApplicationContext; import devhood.im.sim.ui.M...
655
github-java-corpus
2,012
package devhood.im.sim.event; import devhood.im.sim.model.FileSendAcceptMessage; /** * Events in der Applikation. * * @author flo * */ public enum Events { /** * Ein User wurde ausgewaehlt. Parameter: String username */ USER_SELECTED, /** * Eine neue Nachricht wurde empfangen. Paramete...
434
github-java-corpus
2,012
package devhood.im.sim.event; import java.util.ArrayList; import java.util.List; import java.util.concurrent.CopyOnWriteArrayList; /** * Event Dispatcher, verteilt die Events an alle registierten * {@link EventObserver}. * * @author flo * */ public class EventDispatcher { /** * Liste der r...
209
github-java-corpus
2,012
package devhood.im.sim.event; /** * EventObserver - wird bei Events in der Applikation von * {@link EventDispatcher} benachrichtigt. * * @author flo * */ public interface EventObserver { /** * Wird vom EventDispatcher aufgerufen. * * @param event * Event. * @param o *...
100
github-java-corpus
2,012
package devhood.im.sim.model; import java.io.Serializable; import java.security.PublicKey; import java.util.Date; /** * User. * * @author flo * */ public class User implements Serializable { /** * name of user. to send the messages to the user. */ private String name; /** * letzt...
519
github-java-corpus
2,012
package devhood.im.sim.model; import java.io.Serializable; import java.util.EnumSet; import java.util.HashMap; import java.util.Map; /** * Status eines Benutzers. * * @author flo * */ public enum UserStatus implements Serializable { /** * Benutzer ist verfuegbar. */ AVAILABLE("verf\u00...
278
github-java-corpus
2,012
package devhood.im.sim.model; /** * Typ der Message. * * @author flo * */ public enum MessageType { /** * Dedizierte Nachricht an einen Chatpartner. */ SINGLE, /** * Nachricht an alle. */ ALL, /** * Eine Statusbenachrichtigung eines Benutzers. */ USER_STATUS; }
80
github-java-corpus
2,012
package devhood.im.sim.model; /** * Die im Chat verfuegbaren Farben. * * @author Schiefele.Andreas */ public enum Color { BLACK("#000000"), ROT("#BB0000"), GRUEN("009900"), BLAU("#0000DD"), ORANGE("#FF8400"), TUERKIS("#009C8B"), LILA("#6C00AA"), ROSA("#FF00D8"), BRAUN("#A55D00"), GRA...
308
github-java-corpus
2,012
package devhood.im.sim.model; import java.io.Serializable; /** * Eine Anfrage zum Dateitransfer. Das Protokoll des Filetransfers sieht so aus: * * <table border="1"> * <tr> * <td>Sender</td> * <td>Richtung</td> * <td>Empfaenger</td> * </tr> * <tr> * <td><i>FileSendRequestMessage</i></td> * ...
638
github-java-corpus
2,012
package devhood.im.sim.model; import java.io.Serializable; /** * Lehnt eine Anfrage zur Uebertraung ab, oder bricht eine laufende Uebertragung * ab. * * @author flo * */ public class FileSendRejectMessage extends Message implements Serializable { /** * Eindeutige id des Dateitransfers. */...
112
github-java-corpus
2,012
package devhood.im.sim.model; import java.io.Serializable; /** * Annahme des Dateitransfers. * * @author flo * */ public class FileSendAcceptMessage extends Message implements Serializable { /** * Id der Dateiuebertragung. */ private String id; /** * Port, auf dem die Datei empfang...
155
github-java-corpus
2,012
package devhood.im.sim.model; import java.io.Serializable; import java.util.ArrayList; import java.util.List; /** * Eine Message. * * @author flo * */ public class Message implements Serializable { /** * Sender Name. */ private String sender; /** * Status des Senders. */ priva...
322
github-java-corpus
2,012
package devhood.im.sim.model; /** * Klasse zum Transport der Fehlermeldung. * * * @author flo * */ public class MessagingError { /** * Exception. */ private Exception exception; /** * MEssage die fehlerhaft verarbeitet wurde. */ private Message message; public MessagingErr...
155
github-java-corpus
2,012
package devhood.im.sim.ui; import java.awt.BorderLayout; import java.awt.Dimension; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.awt.event.ItemEvent; import java.awt.event.ItemListener; import java.awt.event.MouseAdapter; import java.awt.event.MouseEvent; import java.i...
2,594
github-java-corpus
2,012
package devhood.im.sim.ui; import java.awt.BorderLayout; import java.awt.Color; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax.inject.Inject; import javax.inject.Named; import javax.swing.BoxLayout; import javax.swing.JButton; import javax.swing.JCheckBox; import jav...
1,066
github-java-corpus
2,012
package devhood.im.sim.ui; import java.awt.Desktop; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.awt.event.WindowAdapter; import java.awt.event.WindowEvent; import java.io.File; import java.util.Timer; import java.util.TimerTask; import javax.swing.BoxLayout; import...
1,169
github-java-corpus
2,012
package devhood.im.sim.ui; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.awt.event.WindowAdapter; import java.awt.event.WindowEvent; import java.io.File; import java.util.Timer; import java.util.TimerTask; import javax.inject.Inject; import javax.inject.Named; import...
1,139
github-java-corpus
2,012
package devhood.im.sim.ui.util; import java.util.ArrayList; import java.util.List; public class Splitter { public static List<String> getParts(String string, int partitionSize) { List<String> parts = new ArrayList<String>(); int len = string.length(); for (int i = 0; i < len; i += partitionSize) { ...
101
github-java-corpus
2,012
package devhood.im.sim.ui.util; import java.util.HashMap; import java.util.Map; import javax.inject.Inject; import javax.inject.Named; import devhood.im.sim.config.SimConfiguration; /** * Einfacher Cache, der aktiviert oder deaktiviert sein kann. * * @author flo * */ @Named("simpleTabCache") ...
325
github-java-corpus
2,012
package devhood.im.sim.ui.util; import java.util.HashMap; import java.util.Map; import javax.inject.Named; /** * Nutzt die Smileys von Yahoo Messenger. * * @author Schiefele.Andreas */ @Named("yahooSmileyFactory") public class YahooSmileyFactory implements SmileyFactory { /* Hier sind zu jedem ...
2,591
github-java-corpus
2,012
package devhood.im.sim.ui.util; import java.util.Map; /** * Die SmileyFactory sorg dafuer, dass die Smiley eingabe zu eine img tag wird. * * @author flo * */ public interface SmileyFactory { /** * Smiley einfuegen. * * @param c * text. * @return c mit img. */ publi...
132
github-java-corpus
2,012
package devhood.im.sim.ui.util; import java.util.ArrayList; import java.util.Collections; import java.util.HashMap; import java.util.List; import java.util.Map; import javax.inject.Inject; import javax.inject.Named; import devhood.im.sim.config.SimConfiguration; import devhood.im.sim.model.Color; /** ...
978
github-java-corpus
2,012
package devhood.im.sim.ui.util; import java.awt.Desktop; import java.awt.Image; import java.awt.Toolkit; import java.net.URI; import javax.swing.ImageIcon; import javax.swing.SwingWorker; public class UiUtil { /** * Erzeugt einen SwingWorker, der die übergebene URL im Browser öffnet. * * @par...
573