code stringlengths 3 1.18M | language stringclasses 1
value |
|---|---|
/*--------------------------------------------------------------------------*
| Copyright (C) 2014 Christopher Kohlhaas |
| |
| This program is free software; you can redistribute it and/or modify |
| it un... | Java |
/*--------------------------------------------------------------------------*
| Copyright (C) 2014 Christopher Kohlhaas |
| |
| This program is free software; you can redistribute it and/or modify |
| it un... | Java |
/*--------------------------------------------------------------------------*
| Copyright (C) 2006 Gereon Fassbender, Christopher Kohlhaas |
| |
| This program is free software; you can redistribute it and/or modify |
| it un... | Java |
/*--------------------------------------------------------------------------*
| Copyright (C) 2013 Christopher Kohlhaas |
| |
| This program is free software; you can redistribute it and/or modify |
| it un... | Java |
/*--------------------------------------------------------------------------*
| Copyright (C) 2013 Christopher Kohlhaas |
| |
| This program is free software; you can redistribute it and/or modify |
| it un... | Java |
package org.rapla.framework.internal;
import org.rapla.framework.ConfigurationException;
import org.rapla.framework.RaplaContext;
import org.rapla.framework.RaplaContextException;
import org.rapla.framework.TypedComponentRole;
public class ContextTools {
/** resolves a context value in the passed string.
... | Java |
package org.rapla.framework.internal;
import java.util.Date;
import java.util.TimeZone;
import org.rapla.components.util.DateTools;
import org.rapla.components.util.SerializableDateTimeFormat;
import org.rapla.framework.RaplaLocale;
public abstract class AbstractRaplaLocale implements RaplaLocale {
public String... | Java |
package org.rapla.framework.internal;
import java.util.Map;
import java.util.Stack;
import org.rapla.components.util.xml.RaplaSAXAttributes;
import org.rapla.components.util.xml.RaplaSAXHandler;
import org.rapla.components.util.xml.RaplaSAXParseException;
import org.rapla.framework.Configuration;
import org.rapla.fra... | Java |
/*--------------------------------------------------------------------------*
| Copyright (C) 2014 Christopher Kohlhaas |
| |
| This program is free software; you can redistribute it and/or modify |
| it un... | Java |
package org.rapla.framework;
public class RaplaContextException
extends RaplaException
{
private static final long serialVersionUID = 1L;
public RaplaContextException( final String key ) {
super( "Unable to provide implementation for " + key + " " );
}
public RaplaContextExcepti... | Java |
package org.rapla.framework;
public interface Provider<T> {
T get();
}
| Java |
/*
* Ta klasa ma za zadanie rozwiązać pojedynczą formułę, tj. wskazać podstawienie
* lub powiedzieć, że nie ma takiego
*/
package sat;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.io.IOException;
import java.util.Iterator;
import java.util.Vector;
import sat.convenience... | Java |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package sat.exceptions;
public class ParseException extends Exception{
String description;
public ParseException(){
super();
description = "unknown";
}
public ParseException(String r... | Java |
package sat;
import sat.exceptions.ParseException;
public class StringToolkit {
/**
* Prosta funkcja wycinająca białe znaki i zdejmująca zewnętrzne nawiasy.
* @param meat tekst do przetworzenia
* @return tekst przetworzony
* @throws ParseException
*/
public static String strip(String ... | Java |
package sat;
import java.util.HashMap;
import java.util.Iterator;
import sat.convenience.Solution;
/**
* Zestaw narzędzi wspierających przeprowadzenie symulowanego wyżarzania.
* @author bawey
*/
public class SasatToolkit {
/**
* Funkcja oblicza potencjalne poprawy jakości rozwiązania wynikające
... | Java |
package sat;
import java.util.Vector;
import sat.convenience.Solution;
import sat.exceptions.ParseException;
public class FormulaCNF {
private Vector<ClauseCNF> clauses;
/**
* Konwertuje formułę w postaci CNF z reprezentacji tekstowej na wewnętrzną
* @param formula reprezentacja tekstowa
*... | Java |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package sat.convenience;
import java.util.HashMap;
/**
*
* @author bawey
*/
public class Solution extends HashMap<String, Boolean> {
}
| Java |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package sat.convenience;
import java.util.HashMap;
import java.util.Vector;
/**
*
* @author bawey
*/
public class VariationMaps extends Vector<VariationMap> {
}
| Java |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package sat.convenience;
import java.util.HashMap;
/**
*
* @author bawey
*/
public class VariationMap extends HashMap<String,Float>{
}
| Java |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package sat.convenience;
import java.util.Vector;
/**
*
* @author bawey
*/
public class Population extends Vector<Solution> {
//just a damn convenience
}
| Java |
package sat;
/**
* @author bawey
*/
public class LiteralCNF {
private boolean negated;
private String symbol;
/**
* Konstruktor klasy reprezentującej literał
* @param s symbol literału
* @param n true, jeśli literał ma być zanegowany
*/
public LiteralCNF(String s, boolean n){... | Java |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package sat;
import java.lang.String;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Vector;
import sat.convenience.Solution;
/**
* Klasa zawrierająca metody pomocnicze dla algorytmu GSAT
* @au... | Java |
package sat;
import java.util.Collections;
import java.util.Comparator;
import java.util.Iterator;
import sat.convenience.Population;
import sat.convenience.Solution;
import sat.convenience.VariationMap;
import sat.convenience.VariationMaps;
/**
* Klasa zawiera zbiór funkcji wykorzystywanych w implementacji algorytm... | Java |
package sat;
import java.util.HashMap;
import java.util.Vector;
import sat.exceptions.ParseException;
/**
*
* @author bawey
*/
public class ClauseCNF {
private Vector<LiteralCNF> literals;
/**
* @param representation formuła logiczna w postaci CNF
* @throws ParseException
*/
public Cl... | Java |
package ru.gelin.android.bells.timers;
import java.util.Calendar;
import java.util.Date;
/**
* Timer.
*/
public class Timer {
/** ID of the timer in the collection */
int id;
/** Is this timer enabled? */
boolean enabled = true;
/** Start time */
Date start = new Date();
... | Java |
package ru.gelin.android.bells.timers;
import java.util.Calendar;
import java.util.Date;
/**
* Period of the timer, in hours and minutes.
*/
public class Period {
/** Hours of the timer period */
int hours;
/** Minutes of the timer period */
int minutes;
/**
* Creates new perio... | Java |
package ru.gelin.android.bells.timers;
import java.util.Comparator;
import java.util.Date;
/**
* Order timers by the alarm time.
* Because of the alarm time depends on the current time
* (can be equal to the start time when the start time is in the future),
* the constructor of this comparator takes the curr... | Java |
package ru.gelin.android.bells.timers;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/**
* Collections of timers.
* Each timer in the collection is identified by the ID.
* ID is assigned to the timer during... | Java |
package ru.gelin.android.bells;
import java.util.Date;
import android.app.Activity;
import android.os.Bundle;
/**
* Activity which tracks (saves into instance state) the time
* when it is started.
*/
public class NowActivity extends Activity {
/** Key in the instance state bundle to save activity start tim... | Java |
package ru.gelin.android.bells;
import java.util.Date;
import ru.gelin.android.bells.timers.Timer;
import android.content.Intent;
import android.media.AudioManager;
import android.net.Uri;
import android.os.Bundle;
import android.view.ContextMenu;
import android.view.Menu;
import android.view.MenuInflater;
import and... | Java |
package ru.gelin.android.bells;
import java.util.Date;
import android.content.Context;
import android.content.Intent;
import android.content.BroadcastReceiver;
/**
* Broadcast receiver which receives event about boot complete.
* Starts AlarmActitity.
*/
public class BootCompletedReceiver extends BroadcastReceiv... | Java |
package ru.gelin.android.bells;
import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
public class TimerDbOpenHelper extends SQLiteOpenHelper {
static final String DATABASE_NAME = "timers";
static final int DATABASE_VERSION = 1;
st... | Java |
package ru.gelin.android.bells;
import static ru.gelin.android.bells.Utils.isTomorrow;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import ru.gelin.android.bells.timers.Timer;
import android.content.Context;
import android.content.res.Resources;
import android.view.LayoutInflater;
import... | Java |
package ru.gelin.android.bells;
import ru.gelin.android.bells.timers.Timer;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.TimePicker;
/**
* Activity to add a timer.
*/
public class AddTimerActivity extends SaveTimerActivity {
/** Called when the activi... | Java |
package ru.gelin.android.bells;
import static ru.gelin.android.bells.Utils.isTomorrow;
import java.util.Calendar;
import java.util.Date;
import ru.gelin.android.bells.timers.Timer;
import android.database.Cursor;
import android.media.AudioManager;
import android.media.RingtoneManager;
import android.net.Uri;
import ... | Java |
package ru.gelin.android.bells;
import java.util.Calendar;
import java.util.Date;
import ru.gelin.android.bells.timers.Timer;
/**
* Static utility methods.
*/
public class Utils {
/**
* Returns true if the specified date is tomorrow date (or after tomorrow...).
* @param now current time
... | Java |
package ru.gelin.android.bells;
import static ru.gelin.android.bells.Utils.isTomorrow;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import ru.gelin.android.bells.timers.Timer;
import android.content.Context;
import android.content.res.Resources;
import android.view.LayoutInflater;
import... | Java |
package ru.gelin.android.bells;
public interface Constants {
/** Tag for logs */
String TAG = "ru.gelin.android.bells";
/** Scheme for URIs referencing to timers */
String TIMER_SCHEME = "timer";
}
| Java |
package ru.gelin.android.bells;
import java.util.ArrayList;
import java.util.List;
import ru.gelin.android.bells.timers.Timer;
import android.content.Context;
import android.media.Ringtone;
import android.media.RingtoneManager;
import android.net.Uri;
import android.util.Log;
/**
* The list of ringtones to be play... | Java |
package ru.gelin.android.bells;
import java.util.Calendar;
import ru.gelin.android.bells.timers.Timer;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.Button;
import android.widget.CheckBox;
import android.widget... | Java |
package ru.gelin.android.bells;
import static ru.gelin.android.bells.TimerDbOpenHelper.*;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;
import ru.gelin.android.bells.timers.Timer;
import ru.gelin.android.bells.timers.TimerCollection;
import android.app.AlarmManager;
import android.app.Pendin... | Java |
package ru.gelin.android.bells;
import java.util.List;
import ru.gelin.android.bells.timers.Timer;
import android.content.Intent;
import android.media.AudioManager;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.view.View;
import android.view.View.OnClickListener;
impor... | Java |
/* Copyright (c) 2012 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | Java |
/* Copyright (c) 2012 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | Java |
/* Copyright (c) 2012 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | Java |
// Copyright 2002, Google, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to i... | Java |
/* Copyright (c) 2012 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | Java |
// Portions copyright 2002, Google, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or ag... | Java |
/* Copyright (c) 2012 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | Java |
/* Copyright (c) 2012 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | Java |
/* Copyright (c) 2012 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | Java |
/* Copyright (c) 2012 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | Java |
/*
* Copyright (C) 2010 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | Java |
/*
* Copyright (C) 2010 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | Java |
/*
* Copyright (C) 2010 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | Java |
// Copyright 2002, Google, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to i... | Java |
// Portions copyright 2002, Google, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or ag... | Java |
/*
* Copyright (C) 2011 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | Java |
/*
* Copyright (C) 2010 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | Java |
/*
* Copyright (C) 2010 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | Java |
/*
* Copyright (C) 2010 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | Java |
/*
* Copyright (C) 2011 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | Java |
/* NFCard 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 version 3 of the License, or
(at your option) any later version.
NFCard is distributed in the hope that it will be useful,
but WITHOUT ANY WA... | Java |
/* NFCard 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 version 3 of the License, or
(at your option) any later version.
NFCard is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY... | Java |
/* NFCard 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 version 3 of the License, or
(at your option) any later version.
NFCard is distributed in the hope that it will be useful,
but WITHOUT ANY WA... | Java |
/* NFCard 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 version 3 of the License, or
(at your option) any later version.
NFCard is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY... | Java |
/* NFCard 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 version 3 of the License, or
(at your option) any later version.
NFCard is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY... | Java |
/* NFCard 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 version 3 of the License, or
(at your option) any later version.
NFCard is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY... | Java |
/* NFCard 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 version 3 of the License, or
(at your option) any later version.
NFCard is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY... | Java |
/* NFCard 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 version 3 of the License, or
(at your option) any later version.
NFCard is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY... | Java |
/* NFCard 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 version 3 of the License, or
(at your option) any later version.
NFCard is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY... | Java |
/* NFCard 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 version 3 of the License, or
(at your option) any later version.
NFCard is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY... | Java |
/* NFCard 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 version 3 of the License, or
(at your option) any later version.
NFCard is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY... | Java |
/* NFCard 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 version 3 of the License, or
(at your option) any later version.
NFCard is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY... | Java |
/* NFCard 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 version 3 of the License, or
(at your option) any later version.
NFCard is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY... | Java |
/* NFCard 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 version 3 of the License, or
(at your option) any later version.
NFCard is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY... | Java |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package pojo;
import java.util.Date;
import java.util.List;
import org.apache.cassandra.thrift.Column;
/**
*
* @author tipuder
*/
public class Tag {
public static String name_col_cdate = "create_date";
... | Java |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package pojo;
import java.util.List;
/**
*
* @author tipuder
*/
public class User {
public static String col_favorite = "list_status_ID";
public static String col_parent = "FavoriteStatus";
private Strin... | Java |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package pojo;
/**
*
* @author tipuder
*/
public class Status {
public static String colname_content = "content";
public static String colname_tags = "tags";
public static String colname_likecount = "like_... | Java |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package DAO;
import static common.Constants.*;
import org.apache.cassandra.thrift.Cassandra;
import org.apache.cassandra.thrift.InvalidRequestException;
import org.apache.thrift.TException;
import org.apache.thrift.prot... | Java |
package DAO;
import java.io.UnsupportedEncodingException;
import java.nio.ByteBuffer;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.logging.Level;
import java.util.logging.Logger;
import org.apache.cassandra.thrift.*;
import org.apache.thrift.TExcep... | Java |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package DAO;
import common.GeneralHandling;
import java.io.UnsupportedEncodingException;
import java.nio.ByteBuffer;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
imp... | Java |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package DAO;
import java.io.UnsupportedEncodingException;
import java.nio.ByteBuffer;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.UUID;
import java.util.logging.Level;
import java.util... | Java |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package client;
import org.apache.thrift.TException;
import org.apache.thrift.protocol.TBinaryProtocol;
import org.apache.thrift.protocol.TProtocol;
import org.apache.thrift.transport.TFramedTransport;
import org.apache... | Java |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package server;
import org.apache.thrift.server.TNonblockingServer;
import org.apache.thrift.server.TServer;
import org.apache.thrift.transport.TNonblockingServerSocket;
import org.apache.thrift.transport.TNonblockingSe... | Java |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package server;
import DAO.StatusDAO;
import DAO.TagDAO;
import DAO.UserDAO;
import Testing.app;
import java.util.ArrayList;
import java.util.List;
import java.util.Random;
import java.util.logging.Level;
import java.ut... | Java |
package Testing;
import DAO.StatusDAO;
import DAO.TagDAO;
import DAO.UserDAO;
import java.util.ArrayList;
import java.util.List;
import java.util.Random;
import java.util.logging.Level;
import java.util.logging.Logger;
import pojo.Status;
/**
*
* @author ngochuy
*/
import org.apache.cassandra.thrift.*;
import org... | Java |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package ServicesAccessData;
/**
*
* @author tipuder
*/
public class Server {
}
| Java |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package common;
import static common.Constants.UTF8;
import java.io.UnsupportedEncodingException;
import java.nio.ByteBuffer;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.logging.Level... | Java |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package common;
import org.apache.cassandra.thrift.ConsistencyLevel;
/**
*
* @author tipuder
*/
public class Constants {
public static final String UTF8 = "UTF8";
public static final String KEYSPACE = "NghiN... | Java |
import java.io.*;
import java.net.*;
public class socket {
public static void main(String argv[]) throws Exception
{
String sentence;
String modifiedSentence;
BufferedReader inFromUser =
new BufferedReader(new InputStreamReader(System.in));
... | Java |
import java.io.*;
import java.net.*;
public class socketserver {
public static void main(String argv[]) throws Exception
{
String clientSentence;
String capitalizedSentence;
ServerSocket welcomeSocket = new ServerSocket(4567);
while(true) {
... | Java |
import java.io.DataOutputStream;
import java.io.IOException;
import java.net.Socket;
import java.net.UnknownHostException;
public class SocketController implements ISocketController {
private String host;
private int port;
public SocketController(String host, int port) {
super();
this.host = h... | Java |
import java.util.Scanner;
// Testing 01
public class A {
private static String host;
private static int port;
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
System.out.println("Enter port number (xxxx): ");
port = sc.nextInt();
System.out.println("Enter IP address... | Java |
import java.io.IOException;
public interface ISocketController {
void send(String s) throws IOException;
String receive();
} | Java |
package yuku.filechooser.demo;
import android.app.*;
import android.content.*;
import android.os.*;
import android.view.*;
import android.widget.*;
import java.util.*;
import yuku.filechooser.*;
import yuku.filechooser.FileChooserConfig.Mode;
public class FileChooserDemoActivity extends Activity {
private static f... | Java |
///////////////////////////////////////////////////////////////////////////////
// Copyright (c) 2001, Eric D. Friedman All Rights Reserved.
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foun... | Java |
// ////////////////////////////////////////////////////////////////////////////
// Copyright (c) 2009, Rob Eden All Rights Reserved.
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundat... | Java |
///////////////////////////////////////////////////////////////////////////////
// Copyright (c) 2001, Eric D. Friedman All Rights Reserved.
// Copyright (c) 2009, Rob Eden All Rights Reserved.
// Copyright (c) 2009, Jeff Randall All Rights Reserved.
//
// This library is free software; you can redistribute it and/or
/... | Java |
///////////////////////////////////////////////////////////////////////////////
// Copyright (c) 2001, Eric D. Friedman All Rights Reserved.
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foun... | Java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.