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 | /*
* Copyright 2011 the original author or authors.
*
* 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 applica... | 2,455 |
github-java-corpus | 2,012 | /*
* Copyright 2011-2012 the original author or authors.
*
* 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 ap... | 1,243 |
github-java-corpus | 2,012 | /*
* Copyright 2011 the original author or authors.
*
* 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 applica... | 683 |
github-java-corpus | 2,012 | /*
* Copyright 2011 the original author or authors.
*
* 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 applica... | 369 |
github-java-corpus | 2,012 | /*
* Copyright 2011 the original author or authors.
*
* 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 applica... | 169 |
github-java-corpus | 2,012 | package com.github.lltyk.wro4j.services;
import java.io.IOException;
import javax.servlet.FilterChain;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import ... | 386 |
github-java-corpus | 2,012 | package com.github.lltyk.wro4j.services;
import java.io.ByteArrayInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.Reader;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.commons.io.IOUt... | 462 |
github-java-corpus | 2,012 | package com.github.lltyk.wro4j.services;
import java.io.IOException;
import java.io.StringReader;
import java.io.StringWriter;
import org.apache.tapestry5.ioc.annotations.Inject;
import org.slf4j.Logger;
import ro.isdc.wro.model.resource.Resource;
import ro.isdc.wro.model.resource.ResourceType;
/**
* JavaScript re... | 200 |
github-java-corpus | 2,012 | package com.github.lltyk.wro4j.services.internal;
import java.util.Enumeration;
import java.util.Vector;
import javax.servlet.FilterConfig;
import javax.servlet.ServletContext;
import org.apache.tapestry5.services.ApplicationGlobals;
/**
* Fake filter config for WroFilter
*/
public class MockFilterConfig impleme... | 170 |
github-java-corpus | 2,012 | package com.github.lltyk.wro4j.services;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.Reader;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.commons.io.IOUtils;
import org.apache.commons.lang3.StringUtils;
import org.apac... | 640 |
github-java-corpus | 2,012 | package com.github.lltyk.wro4j.services;
import java.io.IOException;
import java.io.StringReader;
import java.io.StringWriter;
import org.apache.tapestry5.ioc.annotations.Inject;
import org.slf4j.Logger;
import ro.isdc.wro.extensions.processor.css.LessCssProcessor;
import ro.isdc.wro.model.resource.Resource;
import ... | 253 |
github-java-corpus | 2,012 | package com.github.lltyk.wro4j.services;
import java.io.File;
import java.io.IOException;
import java.io.Reader;
import java.io.Writer;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import org.apache.commons.io.FileUtils;
import org.apache.commons.io.FilenameUtils;
import org.apache.commons... | 707 |
github-java-corpus | 2,012 | package com.github.lltyk.wro4j.services;
import java.io.IOException;
import java.io.StringReader;
import java.io.StringWriter;
import org.apache.tapestry5.ioc.OperationTracker;
import org.apache.tapestry5.ioc.annotations.Inject;
import org.slf4j.Logger;
import ro.isdc.wro.extensions.processor.css.YUICssCompressorPro... | 230 |
github-java-corpus | 2,012 | package com.github.lltyk.wro4j.services;
import java.lang.reflect.Constructor;
import org.apache.tapestry5.ioc.annotations.Inject;
import org.slf4j.Logger;
import ro.isdc.wro.manager.WroManager;
import ro.isdc.wro.model.group.processor.Injector;
import ro.isdc.wro.model.group.processor.InjectorBuilder;
/**
* Take... | 289 |
github-java-corpus | 2,012 | package com.github.lltyk.wro4j.services;
public class WRO4JSymbolConstants {
/**
* Whether to add the WRO4J filter to the filter chain
* upon finding a wro configuration file.
* Defaults to true.
*/
public static final String AUTO_ENABLE_WRO_FILTER = "wro.auto.enable.filter";
/** Defaults to true */... | 150 |
github-java-corpus | 2,012 | package com.github.lltyk.wro4j.services;
import java.io.IOException;
import java.io.StringReader;
import java.io.StringWriter;
import org.apache.tapestry5.ioc.annotations.Inject;
import org.slf4j.Logger;
import ro.isdc.wro.extensions.processor.js.CoffeeScriptProcessor;
import ro.isdc.wro.model.resource.Resource;
imp... | 192 |
github-java-corpus | 2,012 | package com.github.lltyk.wro4j.services;
import java.io.IOException;
import java.io.StringReader;
import java.io.StringWriter;
import org.apache.tapestry5.ioc.annotations.Inject;
import org.slf4j.Logger;
import ro.isdc.wro.extensions.processor.css.SassCssProcessor;
import ro.isdc.wro.model.resource.Resource;
import ... | 192 |
github-java-corpus | 2,012 | package com.github.lltyk.wro4j.services;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import org.mozilla.javascript.Context;
import org.mozilla.javascript.RhinoException;
import org.mozilla.javascript.Scriptable;
import org.mozilla.javascript.ScriptableObject;
import org.m... | 416 |
github-java-corpus | 2,012 | package com.github.lltyk.wro4j.services;
import java.io.IOException;
import java.io.StringReader;
import java.io.StringWriter;
import org.apache.tapestry5.ioc.annotations.Inject;
import org.slf4j.Logger;
import ro.isdc.wro.extensions.processor.js.GoogleClosureCompressorProcessor;
import ro.isdc.wro.model.resource.Re... | 234 |
github-java-corpus | 2,012 | package com.github.lltyk.wro4j.services;
import java.io.IOException;
import java.io.StringReader;
import java.io.StringWriter;
import org.apache.tapestry5.ioc.annotations.Inject;
import org.slf4j.Logger;
import ro.isdc.wro.extensions.processor.js.YUIJsCompressorProcessor;
import ro.isdc.wro.model.resource.Resource;
... | 214 |
github-java-corpus | 2,012 |
package com.github.lltyk.wro4j.services;
import java.io.IOException;
import java.lang.reflect.Field;
import org.apache.tapestry5.ioc.Configuration;
import org.apache.tapestry5.ioc.MappedConfiguration;
import org.apache.tapestry5.ioc.OrderedConfiguration;
import org.apache.tapestry5.ioc.ServiceBinder;
import org.apac... | 1,323 |
github-java-corpus | 2,012 |
package com.github.lltyk.wro4j.services;
import ro.isdc.wro.extensions.processor.js.BeautifyJsProcessor;
import ro.isdc.wro.extensions.processor.support.uglify.UglifyJs;
/**
* Pass a Prototype compatibility option to UglifyJSProcessor
*/
public class PrototypeUglifyJsProcessor extends BeautifyJsProcessor {
@Ov... | 120 |
github-java-corpus | 2,012 | package com.github.lltyk.wro4j.services;
import java.io.ByteArrayInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.StringWriter;
import java.util.Collections;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import org.apache.com... | 534 |
github-java-corpus | 2,012 | package com.github.lltyk.wro4j.services;
import java.io.IOException;
import java.io.StringReader;
import java.io.StringWriter;
import org.apache.tapestry5.ioc.annotations.Inject;
import org.slf4j.Logger;
import ro.isdc.wro.extensions.processor.css.SassCssProcessor;
import ro.isdc.wro.model.resource.Resource;
import ... | 190 |
github-java-corpus | 2,012 | // Copyright 2011 The Apache Software Foundation
//
// 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 o... | 495 |
github-java-corpus | 2,012 | package com.github.ltyk.wro4j.services;
import org.apache.tapestry5.SymbolConstants;
import org.apache.tapestry5.ioc.MappedConfiguration;
import org.apache.tapestry5.ioc.annotations.SubModule;
import org.slf4j.Logger;
import com.github.lltyk.wro4j.services.WRO4JModule;
/**
* This module is automatically included as... | 192 |
github-java-corpus | 2,012 | package com.github.ltyk.wro4j.services;
import java.io.File;
import junit.framework.Assert;
import org.apache.commons.io.IOUtils;
import org.junit.Test;
import com.github.lltyk.wro4j.services.RequireJSTransformer;
public class TestRequireJSTransformer extends BaseTest {
private RequireJSTransformer transformer;... | 269 |
github-java-corpus | 2,012 | package com.github.ltyk.wro4j.services;
import java.io.File;
import java.io.IOException;
import java.util.Date;
import org.apache.commons.io.FileUtils;
import org.apache.commons.io.IOUtils;
import org.apache.tapestry5.SymbolConstants;
import org.apache.tapestry5.internal.services.assets.BytestreamCache;
import org.ap... | 1,242 |
github-java-corpus | 2,012 | // Copyright 2011 The Apache Software Foundation
//
// 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 o... | 361 |
github-java-corpus | 2,012 | package fr.sewatech.university.service;
import java.util.List;
import fr.sewatech.university.model.Course;
public interface CourseService {
List<Course> findAll();
Course findById(Integer id);
void save(Course course);
}
| 50 |
github-java-corpus | 2,012 | package fr.sewatech.university.service;
import java.util.List;
import org.hibernate.SessionFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import fr.sewatech.university.model.Course... | 159 |
github-java-corpus | 2,012 | package fr.sewatech.university.web;
import java.io.Serializable;
import java.util.Iterator;
import java.util.List;
import javax.annotation.PostConstruct;
import org.richfaces.component.html.HtmlScrollableDataTable;
import org.richfaces.model.ScrollableTableDataModel.SimpleRowKey;
import org.springframework.beans.fac... | 406 |
github-java-corpus | 2,012 | package fr.sewatech.university.model;
// Generated 14 févr. 2008 09:26:50 by Hibernate Tools 3.2.0.CR1
import java.util.HashSet;
import java.util.Set;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Ge... | 529 |
github-java-corpus | 2,012 | package fr.sewatech.university.model;
// Generated 14 févr. 2008 09:26:50 by Hibernate Tools 3.2.0.CR1
import java.util.HashSet;
import java.util.Set;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Ge... | 618 |
github-java-corpus | 2,012 | package fr.sewatech.university.model;
// Generated 14 févr. 2008 09:26:50 by Hibernate Tools 3.2.0.CR1
import java.util.HashSet;
import java.util.Set;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Ge... | 461 |
github-java-corpus | 2,012 | package fr.sewatech.university.service;
import static org.junit.Assert.*;
import java.util.List;
import org.junit.AfterClass;
import org.junit.BeforeClass;
import org.junit.Test;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import fr.sewatech.university.model.Course;
public class Cour... | 275 |
github-java-corpus | 2,012 | /*
* Copyright 2011 Daniel Rendall
*
* 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 ... | 290 |
github-java-corpus | 2,012 | /*
* Copyright 2011 Daniel Rendall
*
* 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 ... | 277 |
github-java-corpus | 2,012 | /*
* Copyright 2011 Daniel Rendall
*
* 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 ... | 3,806 |
github-java-corpus | 2,012 | /*
* Copyright 2011 Daniel Rendall
*
* 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 ... | 586 |
github-java-corpus | 2,012 | /*
* Copyright 2011 Daniel Rendall
*
* 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 ... | 286 |
github-java-corpus | 2,012 | /*
* Copyright 2011 Daniel Rendall
*
* 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 ... | 944 |
github-java-corpus | 2,012 | /*
* Copyright 2011 Daniel Rendall
*
* 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 ... | 847 |
github-java-corpus | 2,012 | /*
* Copyright 2011 Daniel Rendall
*
* 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 ... | 2,379 |
github-java-corpus | 2,012 | /*
* Copyright 2011 Daniel Rendall
*
* 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 ... | 1,565 |
github-java-corpus | 2,012 | /*
* Copyright 2011 Daniel Rendall
*
* 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 ... | 405 |
github-java-corpus | 2,012 | /*
* Copyright 2011 Daniel Rendall
*
* 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 ... | 606 |
github-java-corpus | 2,012 | /*
* Copyright 2011 Daniel Rendall
*
* 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 ... | 1,739 |
github-java-corpus | 2,012 | /*
* Copyright 2011 Daniel Rendall
*
* 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 ... | 270 |
github-java-corpus | 2,012 | /*
* Copyright 2011 Daniel Rendall
*
* 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 ... | 1,080 |
github-java-corpus | 2,012 | /*
* Copyright 2011 Daniel Rendall
*
* 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 ... | 458 |
github-java-corpus | 2,012 | /*
* Copyright 2011 Daniel Rendall
*
* 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 ... | 238 |
github-java-corpus | 2,012 | /*
* Copyright 2011 Daniel Rendall
*
* 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 ... | 191 |
github-java-corpus | 2,012 | /*
* Copyright 2011 Daniel Rendall
*
* 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 ... | 454 |
github-java-corpus | 2,012 | /*
* Copyright 2011 Daniel Rendall
*
* 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 ... | 423 |
github-java-corpus | 2,012 | /*
* Copyright 2011 Daniel Rendall
*
* 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 ... | 280 |
github-java-corpus | 2,012 | /*
* Copyright 2011 Daniel Rendall
*
* 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 ... | 979 |
github-java-corpus | 2,012 | /*
* Copyright 2011 Daniel Rendall
*
* 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 ... | 473 |
github-java-corpus | 2,012 | /*
* Copyright 2011 Daniel Rendall
*
* 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 ... | 302 |
github-java-corpus | 2,012 | /*
* Copyright 2011 Daniel Rendall
*
* 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 ... | 681 |
github-java-corpus | 2,012 | /*
* Copyright 2011 Daniel Rendall
*
* 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 ... | 2,222 |
github-java-corpus | 2,012 | /*
* Copyright 2011 Daniel Rendall
*
* 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 ... | 563 |
github-java-corpus | 2,012 | /*
* Copyright 2011 Daniel Rendall
*
* 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 ... | 211 |
github-java-corpus | 2,012 | /*
* Copyright 2011 Daniel Rendall
*
* 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 ... | 536 |
github-java-corpus | 2,012 | /*
* Copyright 2011 Daniel Rendall
*
* 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 ... | 3,624 |
github-java-corpus | 2,012 | /*
* Copyright 2011 Daniel Rendall
*
* 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 ... | 207 |
github-java-corpus | 2,012 | package uc.ap.war.core;
import static org.junit.Assert.assertEquals;
import org.junit.Test;
public class MsgGroupTest {
@Test
public void testMsgIdent() {
MsgGroup mg = new MsgGroup();
mg.addMsg("COMMENT: Game Monitor Version 2.2");
mg.addMsg("PLAYER_PASSWORD_CHECKSUM: bb570974bc673... | 565 |
github-java-corpus | 2,012 | package uc.ap.war.core;
import org.apache.log4j.Logger;
import uc.ap.war.core.protocol.DirectiveHelper;
import uc.ap.war.core.protocol.ProtoKw;
import uc.ap.war.core.protocol.TradeOffer;
import uc.ap.war.core.protocol.TruceOffer;
public class MsgGroup {
private static final Logger log = Logger.getLogger(MsgGroup... | 909 |
github-java-corpus | 2,012 | package uc.ap.war.core;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.PrintWriter;
import java.io.Reader;
import java.io.Writer;
import java.math.BigInteger;
import java.net.UnknownHostException;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
import java.... | 2,837 |
github-java-corpus | 2,012 | package uc.ap.war.core.model;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import org.apache.log4j.Logger;
import uc.ap.war.core.ex.NoPlayerIdException;
import uc... | 312 |
github-java-corpus | 2,012 | package uc.ap.war.core.model;
import java.math.BigInteger;
import java.security.SecureRandom;
import java.util.HashMap;
import org.apache.log4j.Logger;
import uc.ap.war.core.ex.NoPlayerIdException;
import uc.ap.war.core.protocol.ProtoKw;
public final class WarPlayer implements java.io.Serializable {
private sta... | 841 |
github-java-corpus | 2,012 | package uc.ap.war.core.model;
import java.util.Vector;
import org.apache.log4j.Logger;
public class WarInfo implements java.io.Serializable {
private static final long serialVersionUID = -2470409033709728773L;
private static Logger log = Logger.getLogger(WarInfo.class);
static WarInfo INS = new WarInfo()... | 209 |
github-java-corpus | 2,012 | package uc.ap.war.core.protocol;
public class TradeOffer {
private String offeringId;
private String offeringResource;
private int offeringAmt;
private String forResource;
private int forAmt;
/**
* Prevent initiation by classes in other packages.
*/
TradeOffer(final String offeri... | 275 |
github-java-corpus | 2,012 | package uc.ap.war.core.protocol;
public class CmdHelper {
public static String alive(final String cookie) {
return ProtoKw.CMD_ALIVE + " " + cookie;
}
public static String changePwd(final String oldPwd, final String newPwd) {
final StringBuilder cmd = new StringBuilder(ProtoKw.CMD_CHANGE_... | 1,499 |
github-java-corpus | 2,012 | package uc.ap.war.core.protocol;
public final class ProtoKw {
// directives
public static final String DIR_WAIT = "WAITING";
public static final String DIR_REQ = "REQUIRE";
public static final String DIR_RESULT = "RESULT";
public static final String DIR_CMD_ERR = "COMMAND_ERROR";
public static ... | 813 |
github-java-corpus | 2,012 | package uc.ap.war.core.protocol;
import java.util.HashMap;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import org.apache.log4j.Logger;
public class DirectiveHelper {
private static final Logger log = Logger.getLogger(DirectiveHelper.class);
private static final Pattern PAT_HOST_PORT = Pat... | 1,042 |
github-java-corpus | 2,012 | package uc.ap.war.core.protocol;
public class TruceOffer {
private String offeringId;
private String offeringResources;
public TruceOffer(String offeringId, String offeringResources) {
this.offeringId = offeringId;
this.offeringResources = offeringResources;
}
public String getOff... | 117 |
github-java-corpus | 2,012 | package uc.ap.war.core;
import java.io.IOException;
import java.util.HashMap;
import org.apache.log4j.Logger;
import uc.ap.war.core.ex.NoPlayerIdException;
import uc.ap.war.core.ex.SecurityServiceException;
import uc.ap.war.core.model.WarModelManager;
import uc.ap.war.core.model.WarPlayer;
import uc.ap.war.core.prot... | 655 |
github-java-corpus | 2,012 | package uc.ap.war.core;
import java.io.IOException;
import uc.ap.war.core.ex.NoPlayerIdException;
import uc.ap.war.core.ex.SecurityServiceException;
public interface DirectiveHandler {
// required command
public void requireAlive(final WarMonitorProxy mon);
public void requireHostPort(final WarMonitorP... | 302 |
github-java-corpus | 2,012 | package uc.ap.war.core.ex;
@SuppressWarnings("serial")
public class SecurityServiceNotReadyException extends SecurityServiceException {
}
| 25 |
github-java-corpus | 2,012 | package uc.ap.war.core.ex;
@SuppressWarnings("serial")
public class WarSecurityException extends WarGameException {
}
| 23 |
github-java-corpus | 2,012 | package uc.ap.war.core.ex;
@SuppressWarnings("serial")
public class SecurityServiceException extends WarGameException {
}
| 23 |
github-java-corpus | 2,012 | package uc.ap.war.core.ex;
public class PlayerDataNotFoundException extends PlayerInformationException {
}
| 19 |
github-java-corpus | 2,012 | package uc.ap.war.core.ex;
public class NoPlayerIdException extends PlayerInformationException {
private static final long serialVersionUID = 3205467569544060268L;
}
| 36 |
github-java-corpus | 2,012 | package uc.ap.war.core.ex;
@SuppressWarnings("serial")
public class PlayerInformationException extends WarGameException {
}
| 23 |
github-java-corpus | 2,012 | package uc.ap.war.core.ex;
@SuppressWarnings("serial")
public class WrongPwChecksumException extends WarSecurityException {
}
| 25 |
github-java-corpus | 2,012 | package uc.ap.war.core.ex;
@SuppressWarnings("serial")
public class WarGameException extends Exception {
}
| 21 |
github-java-corpus | 2,012 | package uc.ap.war.core.crypto;
/******* Class KarnPrintWriter **********
Copyright (c) 2004 Coleman Kane
Written for: John V. Franco
University of Cincinnati
Computer Science
20-ECES-694 Advanced Topics in Computer Science
**/
import java.io.PrintWriter;
import java.io... | 991 |
github-java-corpus | 2,012 | package uc.ap.war.core.crypto;
/******* Class KarnPrintWriter **********
Copyright (c) 2004 Coleman Kane
Written for: John V. Franco
University of Cincinnati
Computer Science
20-ECES-694 Advanced Topics in Computer Science
**/
import java.io.BufferedReader;
import java.io.IOException;
import java.io.Reader;
imp... | 690 |
github-java-corpus | 2,012 | package uc.ap.war.core.crypto;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.math.BigInteger;
import org.apache.log4j.Logger;
import org.apache.log4j.PropertyConfigurator;
import uc.ap.war.core.ex.SecurityServiceException;
import uc.ap.war.core.ex.SecurityServiceNot... | 1,199 |
github-java-corpus | 2,012 | package uc.ap.war.core;
public interface WarMonitorProxyLogger {
void log(final String msg);
}
| 21 |
github-java-corpus | 2,012 | package uc.ap.war;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;
import java.io.Reader;
import java.io.Writer;
import java.net.ServerSocket;
import java.net.Socket;
import org.apache.log4j.Logger;
import uc.ap.war.core.DirectiveHandler;
import uc.ap.war.core.WarMoni... | 562 |
github-java-corpus | 2,012 | package uc.ap.war;
import java.text.ParseException;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import java.util.regex.PatternSyntaxException;
import javax.swing.text.DefaultFormatter;
/**
* A regular expression based implementation of <code>AbstractFormatter</code>.
*/
@SuppressWarnings("seria... | 576 |
github-java-corpus | 2,012 | package uc.ap.war;
import org.apache.log4j.PropertyConfigurator;
public class WarClient {
public static void main(String[] args) {
PropertyConfigurator.configure("log4j.properties");
final ActiveClient ac = new ActiveClient();
ac.pack();
ac.setVisible(true);
}
}
| 64 |
github-java-corpus | 2,012 | package uc.ap.war;
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.FlowLayout;
import java.awt.GridLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.ItemEvent;
import java.awt.event.ItemListener;
import java.awt.event.... | 8,791 |
github-java-corpus | 2,012 | package uc.ap.war;
import javax.swing.event.DocumentEvent;
import javax.swing.event.DocumentListener;
public abstract class TextFieldChangeHandler implements DocumentListener {
@Override
public void changedUpdate(DocumentEvent e) {
docChanged(e);
}
@Override
public void insertUpdate(DocumentEvent e) {
docC... | 98 |
github-java-corpus | 2,012 | import java.rmi.*;
public interface CertRemote extends Remote {
PlayerCertificate getCert(String playerName) throws RemoteException;
}
| 23 |
github-java-corpus | 2,012 |
// DHEngine.java -*- Java -*-
// The engine for Diffie-Hellman
//
// Copyright(C) 1998 Robert Sexton
// You can do anything you want with this, except pretend you
// wrote it.
//
// Written : Robert Sexton University of Cincinnati
// By
//
// Wri... | 1,516 |
github-java-corpus | 2,012 | /***************************************************************************
* PubRSA - Store an RSA Public key, for distribution to other entities. *
**************************************************************************/
/*
Written By: Coleman Kane <cokane@cokane.org>
Written For: Dr. John Franco, Unive... | 490 |
github-java-corpus | 2,012 |
// DHKeyObject.java -*- Java -*-
// The DH key object
//
// Copyright(C) 1998 Robert Sexton
// You can do anything you want with this, except pretend you
// wrote it.
//
// Written : Robert Sexton University of Cincinnati
// By
//
// Written : ... | 506 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.