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 saving_loading; public interface Jsonable { public String toJson(); }
14
github-java-corpus
2,012
package saving_loading; import java.util.HashMap; import java.util.Map; import enemy.Enemy; import inventory.ItemSub; import npc.NPC; import scenery.Scenery; public class MapContainer { public Map<String, NPC> npcs; public Map<String, Enemy> enemies; public Map<String, Scenery> scenery; pub...
198
github-java-corpus
2,012
package saving_loading; import inventory.ItemSub; import java.awt.Graphics2D; import java.io.File; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import level.End; import level.Level; import level.LevelSettings; import npc.Priest; import npc.TestQuestGiver; import quest.Fetch...
1,636
github-java-corpus
2,012
package app; import java.awt.Graphics2D; import java.awt.event.KeyEvent; import java.awt.image.BufferedImage; import java.io.File; import javax.swing.JFileChooser; import saving_loading.LoadFileFilter; import com.golden.gamedev.GameEngine; import com.golden.gamedev.GameObject; import com.golden.gamedev.object.GameFont...
872
github-java-corpus
2,012
package app; import inventory.Inventory; import inventory.ItemSub; import java.awt.Graphics2D; import java.util.Comparator; import level.Level; import level.Map; import player.Player; import saving_loading.LevelFromFile; import com.golden.gamedev.GameEngine; import com.golden.gamedev.GameObject; import com...
786
github-java-corpus
2,012
package app; import java.awt.Dimension; import com.golden.gamedev.GameEngine; import com.golden.gamedev.GameLoader; import com.golden.gamedev.GameObject; public class Main extends GameEngine { public static final int TITLE = 0, GAME_MODE = 1; public void initResources() { nextGameID = GAME_MODE;...
166
github-java-corpus
2,012
package app; import inventory.ItemSub; import inventory.PlayerInventory; import java.awt.Graphics2D; import java.awt.event.KeyEvent; import java.awt.image.BufferedImage; import java.util.ArrayList; import com.golden.gamedev.object.GameFont; import com.golden.gamedev.object.Timer; public class InventoryMenu { pr...
601
github-java-corpus
2,012
package app; import java.awt.Color; import java.awt.Font; import java.awt.Graphics2D; import com.golden.gamedev.object.font.SystemFont; public class Dialog { private String message = ""; public void setMessage(String message) { this.message = message; } public String getMessage() { return message; } p...
193
github-java-corpus
2,012
package player; import inventory.ItemSub; import actions.Direction; public class Attacking extends PlayerAction { private PlayerDirections directions; private long timer = 0; public Attacking(Player player, String url) { super(player); setEnabled(false, true); directions = new Pl...
294
github-java-corpus
2,012
package player; import java.awt.Graphics2D; import java.awt.image.BufferedImage; import actions.GraphicalAction; public abstract class PlayerAction extends GraphicalAction { protected Player player; public PlayerAction(Player player) { this.player = player; } public Player getPlayer() { return player; ...
114
github-java-corpus
2,012
package player; import counters.GraphicalCounter; import enemy.IEnemy; public abstract class PlayerCounter extends GraphicalCounter{ private Player player; public PlayerCounter(Player player, int count) { super(count); this.player = player; } public Player getPlayer() { return player; } public abst...
75
github-java-corpus
2,012
package player; import inventory.Weapon; public class SwordAttacking extends Attacking { public SwordAttacking (Player player) { super(player, "resources/player/actions/swordattacking.json"); } public boolean isEnabled () { if (super.isEnabled()) { Weapon wp = (Weapon) getPl...
95
github-java-corpus
2,012
package player; import inventory.MakeItems; import inventory.Weapon; public class BowAttacking extends Attacking { MakeItems MI = new MakeItems(getPlayer().getGame()); public BowAttacking (Player player) { super(player, "resources/player/actions/bowattacking.json"); } public boolean isEnable...
166
github-java-corpus
2,012
package player; import actions.Direction; import actions.Directions.Cardinal; public class Walking extends PlayerAction { private PlayerDirections directions; public Walking(Player player) { super(player); setEnabled(true, true); directions = new PlayerDirections(player, "resources/player/actions/walking...
370
github-java-corpus
2,012
package player; import inventory.ItemSub; import java.awt.Graphics2D; import actions.DirectionlessKeys; import app.Dialog; public class Grabbing extends PlayerAction { private long timer = 0; private ItemSub item; private DirectionlessKeys keys; public Grabbing(Player player) { super(player); setEnabled(f...
303
github-java-corpus
2,012
package player; import actions.Direction; public class Standing extends PlayerAction { private PlayerDirections directions; public Standing(Player player) { super(player); setEnabled(true, true); directions = new PlayerDirections(getPlayer(), "resources/player/actions/standing.json"); } public void u...
159
github-java-corpus
2,012
package player; import inventory.ItemStore; import inventory.ItemSub; import inventory.PlayerInventory; import java.awt.Graphics2D; import java.awt.image.BufferedImage; import java.util.Iterator; import java.util.LinkedList; import quest.QuestJournal; import app.RPGGame; import collisions.PlayerBoundaryColl...
1,050
github-java-corpus
2,012
package player; public class SpeedCounter { }
9
github-java-corpus
2,012
package player; import java.awt.image.BufferedImage; import java.util.ArrayList; import java.util.List; import actions.Direction; import actions.Directions.Cardinal; import com.golden.gamedev.object.AnimatedSprite; public class PlayerDirection extends Direction { private Player player; private List<Integer> keys...
277
github-java-corpus
2,012
package player; import inventory.ItemSub; import java.util.ArrayList; import java.util.List; import npc.NPC; import actions.BaseActions; import actions.Directions.Cardinal; public class PlayerActions extends BaseActions { private Player player; private Cardinal curDirection; private Walking walking; private St...
549
github-java-corpus
2,012
package player; import java.awt.Color; import java.awt.Font; import java.awt.Graphics2D; import com.golden.gamedev.object.font.SystemFont; import enemy.IEnemy; public class HealthCounter extends PlayerCounter { public HealthCounter(Player player, int count) { super(player, count); } public void render(Gr...
212
github-java-corpus
2,012
package player; import java.awt.image.BufferedImage; import java.util.ArrayList; import java.util.List; import actions.Directions; import com.google.gson.Gson; public class PlayerDirections extends Directions { private Player player; public PlayerDirections(Player player, String url) { super(url); this.play...
304
github-java-corpus
2,012
package player; import java.awt.Graphics2D; import npc.NPC; import actions.DirectionlessKeys; import app.Dialog; public class Talking extends PlayerAction{ private long timer = 0; private NPC npc; private DirectionlessKeys keys; public Talking(Player player) { super(player); setEnabled(false, true); keys ...
288
github-java-corpus
2,012
package player; import counters.BaseCounter; import counters.BaseCounters; import enemy.IEnemy; public class PlayerCounters extends BaseCounters { Player player; HealthCounter health; public PlayerCounters(Player player) { this.player = player; health = new HealthCounter(player, 10); getCounters().add(hea...
137
github-java-corpus
2,012
/** * Copyright 2007 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 in ...
642
github-java-corpus
2,012
/** * Copyright 2007 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 in ...
834
github-java-corpus
2,012
/** * Copyright 2007 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 in ...
423
github-java-corpus
2,012
/** * Copyright 2007 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 in ...
147
github-java-corpus
2,012
/** * Copyright 2007 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 in ...
1,553
github-java-corpus
2,012
/** * Copyright 2007 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 in ...
634
github-java-corpus
2,012
/** * Copyright 2007 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 in ...
216
github-java-corpus
2,012
/** * Copyright 2007 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 in ...
1,164
github-java-corpus
2,012
/** * Copyright 2007 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 in ...
526
github-java-corpus
2,012
/** * Copyright 2007 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 in ...
1,418
github-java-corpus
2,012
/** * Copyright 2007 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 in ...
234
github-java-corpus
2,012
/** * Copyright 2007 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 in ...
271
github-java-corpus
2,012
/** * Copyright 2007 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 in ...
172
github-java-corpus
2,012
/** * Copyright 2007 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 in ...
287
github-java-corpus
2,012
/** * Copyright 2007 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 in ...
257
github-java-corpus
2,012
/** * Copyright 2007 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 in ...
691
github-java-corpus
2,012
/** * Copyright 2007 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 in ...
178
github-java-corpus
2,012
/** * Copyright 2008 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 in ...
175
github-java-corpus
2,012
/** * Copyright 2008 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 in ...
802
github-java-corpus
2,012
/** * Copyright 2007 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 in ...
1,278
github-java-corpus
2,012
/** * Copyright 2007 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 in ...
528
github-java-corpus
2,012
/** * Copyright 2007 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 in ...
285
github-java-corpus
2,012
/** * Copyright 2007 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 in ...
322
github-java-corpus
2,012
/** * Copyright 2007 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 in ...
705
github-java-corpus
2,012
/** * Copyright 2007 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 in ...
297
github-java-corpus
2,012
/** * Copyright 2007 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 in ...
781
github-java-corpus
2,012
/** * Copyright 2007 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 in ...
498
github-java-corpus
2,012
/** * Copyright 2007 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 in ...
243
github-java-corpus
2,012
/** * Copyright 2007 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 in ...
298
github-java-corpus
2,012
/** * Copyright 2007 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 in ...
230
github-java-corpus
2,012
/** * Copyright 2007 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 in ...
230
github-java-corpus
2,012
/** * Copyright 2007 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 in ...
203
github-java-corpus
2,012
/** * Copyright 2007 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 in ...
528
github-java-corpus
2,012
/* * Copyright 2003-2010 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 app...
364
github-java-corpus
2,012
/** * Copyright 2007 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 in ...
261
github-java-corpus
2,012
/** * Copyright 2007 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 in ...
385
github-java-corpus
2,012
/** * Copyright 2007 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 in ...
662
github-java-corpus
2,012
/** * Copyright 2007 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 in ...
180
github-java-corpus
2,012
/** * Copyright 2007 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 in ...
889
github-java-corpus
2,012
/** * Copyright 2007 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 in ...
147
github-java-corpus
2,012
package com.tonicsystems.jarjar.example; public class Example { }
16
github-java-corpus
2,012
/** * Copyright 2007 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 in ...
304
github-java-corpus
2,012
/** * Copyright 2007 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 in ...
472
github-java-corpus
2,012
/** * Copyright 2007 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 in ...
475
github-java-corpus
2,012
/** * Copyright 2007 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 in ...
210
github-java-corpus
2,012
package fr.xebia.usi.quizz.service; import java.io.IOException; import java.io.InputStream; import org.codehaus.jackson.JsonFactory; import org.codehaus.jackson.JsonParseException; import org.codehaus.jackson.JsonParser; import org.codehaus.jackson.map.DeserializationConfig; import org.codehaus.jackson.map.JsonMappin...
527
github-java-corpus
2,012
package fr.xebia.usi.quizz.service; import fr.xebia.usi.quizz.model.User; public interface UserManager { /** * Return user if found or null * * @param mail * @return */ User getUser(String mail); /** * Save the given user * * @param usr * @return */ User save(User usr); }
92
github-java-corpus
2,012
package fr.xebia.usi.quizz.service; import java.io.InputStream; import org.glassfish.grizzly.http.server.io.NIOReader; import fr.xebia.usi.quizz.model.User; public interface JsonMapper { /** * * @param stream * @return Null on error or the User object */ User mapJsonUser(InputStream stream); /** *...
156
github-java-corpus
2,012
package fr.xebia.usi.quizz.service; import java.util.HashMap; import java.util.Map; import fr.xebia.usi.quizz.model.User; import org.slf4j.Logger; import org.slf4j.LoggerFactory; public class UserManagerMemoryImpl implements UserManager{ private static final Logger LOG = LoggerFactory.getLogger(UserManagerMemoryIm...
163
github-java-corpus
2,012
package fr.xebia.usi.quizz.service; import java.net.UnknownHostException; import com.mongodb.BasicDBObject; import com.mongodb.DB; import com.mongodb.DBCollection; import com.mongodb.DBObject; import com.mongodb.Mongo; import com.mongodb.MongoException; import com.mongodb.MongoOptions; import com.mongodb.WriteResult;...
478
github-java-corpus
2,012
package fr.xebia.usi.quizz.web.restlet; import java.io.IOException; import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; import fr.xebia.usi.quizz.model.User; import fr.xebia.usi.quizz.service.JsonMapper; import fr.xebia.usi.quizz.service.JsonMapperImpl; import fr.xebia.usi.quizz.servic...
610
github-java-corpus
2,012
package fr.xebia.usi.quizz.web.httpcore; import java.io.IOException; import java.io.InterruptedIOException; import java.io.UnsupportedEncodingException; import java.net.InetSocketAddress; import java.util.Locale; import java.util.concurrent.Executor; import java.util.concurrent.Executors; import fr.xebia.usi.quizz.m...
1,938
github-java-corpus
2,012
package fr.xebia.usi.quizz.web.netty; import java.util.HashMap; import java.util.Map; import fr.xebia.usi.quizz.service.JsonMapper; import fr.xebia.usi.quizz.service.JsonMapperImpl; import fr.xebia.usi.quizz.service.UserManager; import fr.xebia.usi.quizz.service.UserManagerMemoryImpl; import fr.xebia.usi.quizz.web.n...
363
github-java-corpus
2,012
package fr.xebia.usi.quizz.web.netty; import org.jboss.netty.channel.ChannelHandlerContext; import org.jboss.netty.channel.MessageEvent; import org.jboss.netty.channel.SimpleChannelUpstreamHandler; import org.jboss.netty.handler.codec.http.HttpRequest; public class HttpRequestHandler extends SimpleChannelUpstreamHan...
268
github-java-corpus
2,012
package fr.xebia.usi.quizz.web.netty; import org.jboss.netty.buffer.ChannelBuffers; import org.jboss.netty.channel.ChannelFuture; import org.jboss.netty.channel.ChannelFutureListener; import org.jboss.netty.channel.ChannelHandlerContext; import org.jboss.netty.channel.MessageEvent; import org.jboss.netty.handler.codec...
921
github-java-corpus
2,012
/* * Copyright 2009 Red Hat, Inc. * * Red Hat 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: * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by ...
748
github-java-corpus
2,012
/* * Copyright 2009 Red Hat, Inc. * * Red Hat 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: * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by ...
472
github-java-corpus
2,012
package fr.xebia.usi.quizz.web.netty.rest; import org.codehaus.jackson.JsonFactory; import org.jboss.netty.buffer.ChannelBuffers; import org.jboss.netty.channel.ChannelFuture; import org.jboss.netty.channel.ChannelFutureListener; import org.jboss.netty.channel.ChannelHandlerContext; import org.jboss.netty.channel.Mess...
1,052
github-java-corpus
2,012
package fr.xebia.usi.quizz.web.netty.rest; import java.util.concurrent.Executor; import java.util.concurrent.Executors; import org.jboss.netty.channel.ChannelHandlerContext; import org.jboss.netty.channel.MessageEvent; import org.jboss.netty.handler.codec.http.HttpRequest; import org.jboss.netty.handler.codec.http....
366
github-java-corpus
2,012
package fr.xebia.usi.quizz.web.grizzly; import java.io.IOException; import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; import fr.xebia.usi.quizz.model.User; import fr.xebia.usi.quizz.service.JsonMapper; import fr.xebia.usi.quizz.service.JsonMapperImpl; import fr.xebia.usi.quizz.servic...
561
github-java-corpus
2,012
package fr.xebia.usi.quizz.web.grizzly; import java.io.IOException; import org.glassfish.grizzly.http.server.HttpServer; import org.glassfish.grizzly.http.server.ServerConfiguration; import org.slf4j.Logger; import org.slf4j.LoggerFactory; public class GrizzlyHttpServer { private static final Logger LOG = LoggerFa...
230
github-java-corpus
2,012
package fr.xebia.usi.quizz.web.ee; import javax.servlet.AsyncContext; import javax.servlet.ServletConfig; import javax.servlet.ServletException; import javax.servlet.annotation.WebServlet; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse...
736
github-java-corpus
2,012
package fr.xebia.usi.quizz.web.ee; import javax.servlet.AsyncContext; import javax.servlet.ServletConfig; import javax.servlet.ServletException; import javax.servlet.annotation.WebServlet; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse...
761
github-java-corpus
2,012
package fr.xebia.usi.quizz.web.deft; import java.util.HashMap; import java.util.Map; import java.util.concurrent.Executor; import java.util.concurrent.Executors; import fr.xebia.usi.quizz.model.User; import fr.xebia.usi.quizz.service.JsonMapper; import fr.xebia.usi.quizz.service.JsonMapperImpl; import fr.xebia.usi.qu...
789
github-java-corpus
2,012
package fr.xebia.usi.quizz.web.deft; import java.util.concurrent.LinkedBlockingQueue; import org.deftserver.io.DefaultIOWorkerLoop; import org.deftserver.io.IOLoop; import org.deftserver.io.timeout.Timeout; import org.deftserver.web.AsyncCallback; import org.deftserver.web.http.HttpResponse; public class AsyncRespon...
284
github-java-corpus
2,012
package fr.xebia.usi.quizz.model; public class User { private String email; private String firstname; private String lastname; private String password; /** * @return the email */ public String getMail() { return email; } /** * @param email the email to set */ public void setMail(String emai...
316
github-java-corpus
2,012
package hudson.plugins.doxygen; import hudson.AbortException; import hudson.Extension; import hudson.FilePath; import hudson.Launcher; import hudson.matrix.MatrixAggregatable; import hudson.matrix.MatrixAggregator; import hudson.matrix.MatrixConfiguration; import hudson.matrix.MatrixRun; import hudson.matrix.MatrixBui...
2,456
github-java-corpus
2,012
package hudson.plugins.doxygen; import hudson.AbortException; import hudson.FilePath; import hudson.plugins.doxygen.DoxygenArchiver.DoxygenArchiverDescriptor; import hudson.remoting.VirtualChannel; import java.io.*; import java.util.*; import java.util.logging.Level; import java.util.logging.Logger; import...
2,921
github-java-corpus
2,012
package hudson.plugins.doxygen; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertTrue; import static org.junit.Assert.fail; import hudson.AbortException; import hudson.FilePath; import hudson.model.BuildListener; import hudson.plugins.doxygen.DoxygenArchiver.DoxygenArchiverDesc...
1,340
github-java-corpus
2,012
package hudson.plugins.doxygen; import org.junit.Test; import junit.framework.Assert; public class DoxygenDirectoryParserTest { @Test public void testIsAbsolute() throws Exception { DoxygenDirectoryParser parser = new DoxygenDirectoryParser("", "", ""); // testData array contains arr...
256
github-java-corpus
2,012
package hudson.plugins.doxygen; import hudson.FilePath; import hudson.Util; import java.io.File; public abstract class AbstractWorkspaceTest { protected File parentFile; protected FilePath workspace; public void createWorkspace() throws Exception { parentFile = Util.createTempDir()...
104
github-java-corpus
2,012
package com.mycompany.app; /** * Hello world! * */ public class App { public static void main( String[] args ) { System.out.println( "Hello World!" ); } }
43
github-java-corpus
2,012
package com.mycompany.app; import junit.framework.Test; import junit.framework.TestCase; import junit.framework.TestSuite; /** * Unit test for simple App. */ public class AppTest extends TestCase { /** * Create the test case * * @param testName name of the test case */ public AppTes...
160
github-java-corpus
2,012
import processing.core.*; import processing.xml.*; import java.awt.datatransfer.*; import java.awt.Toolkit; import java.applet.*; import java.awt.Dimension; import java.awt.Frame; import java.awt.event.MouseEvent; import java.awt.event.KeyEvent; import java.awt.event.FocusEvent; import java.awt.Image; impo...
2,006
github-java-corpus
2,012
/******************************************************************************* * Copyright (c) 2011 Bryan Hunt & Ed Merks. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is availa...
4,368
github-java-corpus
2,012
/** */ package org.eclipselabs.mongo.emf.query.simple.junit.model; import org.eclipse.emf.ecore.EAttribute; import org.eclipse.emf.ecore.EClass; import org.eclipse.emf.ecore.EPackage; import org.eclipse.emf.ecore.EReference; import org.eclipse.emf.ecore.impl.EPackageImpl; /** * <!-- begin-user-doc --> * The <b>Pa...
9,498