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 com.bergerkiller.bukkit.mw.commands; import org.bukkit.ChatColor; import org.bukkit.command.CommandSender; import com.bergerkiller.bukkit.mw.WorldConfig; import com.bergerkiller.bukkit.mw.WorldManager; public class WorldTogglePVP extends Command { public WorldTogglePVP(CommandSender sender, Strin...
231
github-java-corpus
2,012
package com.bergerkiller.bukkit.mw.commands; import org.bukkit.ChatColor; import org.bukkit.Difficulty; import org.bukkit.command.CommandSender; import com.bergerkiller.bukkit.common.utils.EnumUtil; import com.bergerkiller.bukkit.mw.WorldConfig; public class WorldDifficulty extends Command { public Wor...
276
github-java-corpus
2,012
package com.bergerkiller.bukkit.mw.commands; import org.bukkit.Bukkit; import org.bukkit.ChatColor; import org.bukkit.World; import org.bukkit.command.CommandSender; import com.bergerkiller.bukkit.mw.Localization; import com.bergerkiller.bukkit.mw.WorldManager; public class WorldUnload extends Command { ...
258
github-java-corpus
2,012
package com.bergerkiller.bukkit.mw.commands; import org.bukkit.ChatColor; import org.bukkit.command.CommandSender; import com.bergerkiller.bukkit.mw.Portal; import com.bergerkiller.bukkit.mw.WorldConfig; import com.bergerkiller.bukkit.mw.WorldManager; public class WorldSetPortal extends Command { public...
358
github-java-corpus
2,012
package com.bergerkiller.bukkit.mw.commands; import org.bukkit.ChatColor; import org.bukkit.command.CommandSender; import com.bergerkiller.bukkit.mw.WorldConfig; import com.bergerkiller.bukkit.mw.WorldManager; public class WorldToggleSpawnLoaded extends Command { public WorldToggleSpawnLoaded(CommandSend...
250
github-java-corpus
2,012
package com.bergerkiller.bukkit.mw; import java.util.logging.Level; import org.bukkit.Location; import org.bukkit.World; import org.bukkit.entity.Entity; import org.bukkit.entity.Player; import org.bukkit.permissions.PermissionDefault; import org.bukkit.plugin.Plugin; import org.bukkit.plugin.java.JavaPlugi...
2,699
github-java-corpus
2,012
package com.bergerkiller.bukkit.mw; import java.io.File; import java.util.ArrayList; import java.util.Collection; import java.util.HashSet; import java.util.List; import java.util.Set; import org.bukkit.Bukkit; import com.bergerkiller.bukkit.common.config.ConfigurationNode; import com.bergerkiller.bukkit...
908
github-java-corpus
2,012
package com.bergerkiller.bukkit.mw; import java.util.logging.Level; import net.minecraft.server.NBTTagDouble; import net.minecraft.server.NBTTagFloat; import net.minecraft.server.NBTTagList; import org.bukkit.block.Block; import org.bukkit.block.BlockFace; import org.bukkit.command.CommandSender; import o...
491
github-java-corpus
2,012
package com.bergerkiller.bukkit.mw; import java.io.BufferedReader; import java.io.File; import java.io.FileNotFoundException; import java.io.FileReader; import java.util.ArrayList; import java.util.logging.Level; public class SafeReader { private String filename; private BufferedReader r = null; public SafeReade...
459
github-java-corpus
2,012
package com.bergerkiller.bukkit.mw; import java.util.ArrayList; import java.util.List; import java.util.logging.Level; import org.bukkit.Bukkit; import org.bukkit.ChatColor; import org.bukkit.Difficulty; import org.bukkit.GameMode; import org.bukkit.Location; import org.bukkit.OfflinePlayer; import org.bu...
3,142
github-java-corpus
2,012
package com.bergerkiller.bukkit.mw; import org.bukkit.World; import org.bukkit.World.Environment; import org.bukkit.WorldCreator; import org.bukkit.WorldType; import com.bergerkiller.bukkit.common.utils.EnumUtil; public enum WorldMode { NORMAL(Environment.NORMAL, WorldType.NORMAL, "normal"), NETHER(Envi...
356
github-java-corpus
2,012
package com.bergerkiller.bukkit.mw; import java.util.LinkedList; import java.util.Queue; import org.bukkit.World; import com.bergerkiller.bukkit.common.Task; public class LoadChunksTask extends Task { private static class ChunkCoord { public int x, z; public World world; public Task taskWhenFinished; } ...
375
github-java-corpus
2,012
package com.bergerkiller.bukkit.mw; import java.io.*; import java.lang.ref.Reference; import java.util.ArrayList; import java.util.Collection; import java.util.Map.Entry; import java.util.Random; import java.util.logging.Level; import java.util.zip.DeflaterOutputStream; import java.util.zip.GZIPInputStream; ...
6,132
github-java-corpus
2,012
package com.bergerkiller.bukkit.mw.portal; import com.bergerkiller.bukkit.common.BlockLocation; public class RegionPortal extends Portal { public int xMin, yMin, zMin, xMax, yMax, zMax; public String worldname; @Override public boolean isIn(BlockLocation location) { if (!location.world.equals(this.worldname))...
280
github-java-corpus
2,012
package com.bergerkiller.bukkit.mw.portal; import com.bergerkiller.bukkit.common.BlockLocation; import com.bergerkiller.bukkit.mw.Position; public abstract class Portal { public String name; public Position position; public abstract boolean isIn(BlockLocation location); }
53
github-java-corpus
2,012
package com.bergerkiller.bukkit.mw; import java.io.File; import java.text.SimpleDateFormat; import java.util.Calendar; import java.util.logging.Level; import org.bukkit.ChatColor; import org.bukkit.command.CommandSender; import com.bergerkiller.bukkit.common.AsyncTask; import com.bergerkiller.bukkit.common.utils.Com...
984
github-java-corpus
2,012
package com.bergerkiller.bukkit.mw; import java.io.BufferedWriter; import java.io.FileNotFoundException; import java.io.FileWriter; import java.util.logging.Level; public class SafeWriter { private String filename; private BufferedWriter w; public SafeWriter(String filename) { this.filename = filen...
285
github-java-corpus
2,012
package com.bergerkiller.bukkit.mw; import java.io.DataInputStream; import java.io.DataOutputStream; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.util.zip.GZIPInputStream; import java.util.zip.GZIPOutputStream; /** * NBT IO class * * @see <a href="http://www.min...
3,332
github-java-corpus
2,012
package com.bergerkiller.bukkit.mw; import java.util.HashSet; import org.bukkit.entity.Entity; import org.bukkit.entity.EntityType; import com.bergerkiller.bukkit.common.utils.EntityUtil; public class SpawnControl { public HashSet<EntityType> deniedCreatures = new HashSet<EntityType>(); public boolea...
401
github-java-corpus
2,012
package com.bergerkiller.bukkit.mw; import java.util.ArrayList; import java.util.HashMap; import java.util.HashSet; import java.util.Map; import java.util.WeakHashMap; import java.util.logging.Level; import org.bukkit.Chunk; import org.bukkit.Location; import org.bukkit.Material; import org.bukkit.World; ...
3,158
github-java-corpus
2,012
package min; import min.lang.MinObject; import min.lang.Message; import min.lang.Method; import min.lang.File; import min.lang.Bootstrap; import java.util.ArrayList; public class main { public static void main(String[] args) throws Exception { String code = null; String file = null; boolean debug = fals...
208
github-java-corpus
2,012
package min.lang; import java.io.IOException; import java.io.FileInputStream; import java.nio.channels.FileChannel; import java.nio.MappedByteBuffer; public class File extends MinObject { // Taken from http://stackoverflow.com/questions/326390/how-to-create-a-java-string-from-the-contents-of-a-file static public ...
203
github-java-corpus
2,012
package min.lang; @SuppressWarnings("serial") public class MinException extends Exception { public MinException(String message) { super(message); } public MinException(Throwable cause) { super(cause); } public MinException(String message, Throwable cause) { super(message, cause); } }
65
github-java-corpus
2,012
// line 1 "src/min/lang/Scanner.rl" package min.lang; import java.util.Stack; public class Scanner { final String input; final String filename; int line; Message root = null; Message message = null; Stack<Message> argStack = new Stack<Message>(); Stack<Integer> indentStack = new Stack<Integer>(); int...
5,733
github-java-corpus
2,012
package min.lang; public class Method extends MinObject { Message message; String[] argNames; public Method() { super(MinObject.method); } public Method(Call call) { this(); message = call.message.args.get(call.message.args.size() - 1); int nArgs = call.message.args.size() - 1; argN...
263
github-java-corpus
2,012
package min.lang; import java.util.ArrayList; public class Call extends MinObject { static public MinObject object; ArrayList<Message> args; MinObject receiver; MinObject base; Message message; public Call(Message message, MinObject receiver, MinObject base, ArrayList<Message> args) { super(MinO...
225
github-java-corpus
2,012
package min.lang; import java.io.IOException; import java.io.File; public class Dir extends MinObject { static public String current() throws MinException { try { return new File(".").getCanonicalPath(); } catch (IOException e) { throw new MinException(e); } } }
64
github-java-corpus
2,012
package min.lang; @SuppressWarnings("serial") public class ParsingException extends MinException { public ParsingException(String message) { super(message); } public ParsingException(String message, String file, int line) { super(String.format("%s in %s:%d", message, file, line)); } }
66
github-java-corpus
2,012
package min.lang; import java.util.ArrayList; import java.util.Properties; import java.io.InputStream; import java.io.IOException; public class Bootstrap { public void run() throws MinException { // Bootstrap base objects MinObject base = new MinObject(); MinObject object = base.clone(); MinObject l...
2,665
github-java-corpus
2,012
package min.lang; import java.util.HashMap; import java.util.ArrayList; public class MinObject { static public MinObject base; static public MinObject lobby; static public MinObject object; static public MinObject call; static public MinObject message; static public MinObject method; static public MinOb...
1,173
github-java-corpus
2,012
package min.lang; import java.util.ArrayList; import java.util.Arrays; import java.util.Collection; public class Message extends MinObject { String name; String file; int line; Message prev; Message next; ArrayList<Message> args; MinObject cachedResponse; // Same as in Scanner.rl // IMPORTANT: ne...
1,230
github-java-corpus
2,012
package min.lang; @SuppressWarnings("serial") public class SlotNotFound extends MinException { public SlotNotFound(String message) { super(message); } }
31
github-java-corpus
2,012
import com.thoughtworks.selenium.*; import org.junit.*; import com.testingbot.*; public class SmokeTest extends TestingBotTestCase { public void setUp() throws Exception { TestingBotSelenium selenium = new TestingBotSelenium( "hub.testingbot.com", 4444, "firefox", ...
178
github-java-corpus
2,012
package is.binni.banmanager.datasource; import is.binni.banmanager.*; import java.net.InetSocketAddress; import java.sql.Connection; import java.sql.DatabaseMetaData; import java.sql.DriverManager; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Statement; i...
1,492
github-java-corpus
2,012
package is.binni.banmanager.commands; import is.binni.banmanager.banmanager; import org.bukkit.ChatColor; import org.bukkit.command.Command; import org.bukkit.command.CommandExecutor; import org.bukkit.command.CommandSender; import org.bukkit.configuration.file.FileConfiguration; import org.bukkit.entity.Player; pub...
680
github-java-corpus
2,012
package is.binni.banmanager.commands; import is.binni.banmanager.banmanager; import org.bukkit.ChatColor; import org.bukkit.command.Command; import org.bukkit.command.CommandExecutor; import org.bukkit.command.CommandSender; public class Unban implements CommandExecutor { public banmanager plugin; public Unban(b...
323
github-java-corpus
2,012
package is.binni.banmanager; import org.bukkit.entity.Player; import org.bukkit.event.EventHandler; import org.bukkit.event.EventPriority; import org.bukkit.event.Listener; import org.bukkit.event.player.PlayerLoginEvent; public class banmanagerLoginListener implements Listener{ banmanager plugin; @EventHandler(pri...
184
github-java-corpus
2,012
package is.binni.banmanager; import java.util.logging.Logger; import is.binni.banmanager.datasource.DatasourceMySQL; import is.binni.banmanager.commands.Tempban; import is.binni.banmanager.commands.Unban; import org.bukkit.event.Listener; import org.bukkit.plugin.java.JavaPlugin; public class banmanager extends Jav...
365
github-java-corpus
2,012
/** * Copyright (c) 2012 scireum GmbH - Andreas Haufler - aha@scireum.de * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * the right...
1,998
github-java-corpus
2,012
/** * Copyright (c) 2012 scireum GmbH - Andreas Haufler - aha@scireum.de * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * the right...
427
github-java-corpus
2,012
/** * Copyright (c) 2012 scireum GmbH - Andreas Haufler - aha@scireum.de * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * the right...
781
github-java-corpus
2,012
/** * Copyright (c) 2012 scireum GmbH - Andreas Haufler - aha@scireum.de * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * the right...
431
github-java-corpus
2,012
/** * Copyright (c) 2012 scireum GmbH - Andreas Haufler - aha@scireum.de * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * the right...
347
github-java-corpus
2,012
/** * Copyright (c) 2012 scireum GmbH - Andreas Haufler - aha@scireum.de * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * the right...
351
github-java-corpus
2,012
/** * Copyright (c) 2012 scireum GmbH - Andreas Haufler - aha@scireum.de * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * the right...
387
github-java-corpus
2,012
/** * Copyright (c) 2012 scireum GmbH - Andreas Haufler - aha@scireum.de * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * the right...
459
github-java-corpus
2,012
/** * Copyright (c) 2012 scireum GmbH - Andreas Haufler - aha@scireum.de * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * the right...
296
github-java-corpus
2,012
/** * Copyright (c) 2012 scireum GmbH - Andreas Haufler - aha@scireum.de * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * the right...
301
github-java-corpus
2,012
/** * Copyright (c) 2012 scireum GmbH - Andreas Haufler - aha@scireum.de * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * the right...
741
github-java-corpus
2,012
/** * Copyright (c) 2012 scireum GmbH - Andreas Haufler - aha@scireum.de * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * the right...
288
github-java-corpus
2,012
/** * Copyright (c) 2012 scireum GmbH - Andreas Haufler - aha@scireum.de * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * the right...
1,229
github-java-corpus
2,012
/** * Copyright (c) 2012 scireum GmbH - Andreas Haufler - aha@scireum.de * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * the right...
777
github-java-corpus
2,012
/** * Copyright (c) 2012 scireum GmbH - Andreas Haufler - aha@scireum.de * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * the right...
430
github-java-corpus
2,012
package examples; import java.text.DateFormat; import java.util.Date; import org.nucleus.Nucleus; import org.nucleus.core.Register; import org.nucleus.timer.EveryMinute; @Register(classes = EveryMinute.class) public class ExampleNucleus implements EveryMinute { public static void main(String[] args) throws Except...
120
github-java-corpus
2,012
package fr.xebia.api.exception.mapper; import javax.ws.rs.core.MediaType; import javax.ws.rs.core.Response; import javax.ws.rs.ext.ExceptionMapper; import javax.ws.rs.ext.Provider; import org.hibernate.validator.method.MethodConstraintViolationException; import org.springframework.stereotype.Component; @Component @Pr...
130
github-java-corpus
2,012
package fr.xebia.api.exception.mapper; import javax.ws.rs.core.MediaType; import javax.ws.rs.core.Response; import javax.ws.rs.ext.ExceptionMapper; import javax.ws.rs.ext.Provider; import fr.xebia.api.exception.NoResultFoundException; import org.springframework.stereotype.Component; @Component @Provider public class ...
124
github-java-corpus
2,012
package fr.xebia.api.exception; public class NoResultFoundException extends Exception { public NoResultFoundException(String message) { super(message); } public NoResultFoundException(String message, Throwable exception) { super(message, exception); } }
55
github-java-corpus
2,012
package fr.xebia.api.application; import java.util.List; import fr.xebia.api.exception.NoResultFoundException; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Propagation; import org.springframework.transact...
272
github-java-corpus
2,012
package fr.xebia.api.application; import java.util.List; import javax.persistence.TypedQuery; import fr.xebia.api.GenericDao; import fr.xebia.api.exception.NoResultFoundException; import org.springframework.stereotype.Repository; @Repository public class ApplicationDao extends GenericDao<Application> { protected...
160
github-java-corpus
2,012
package fr.xebia.api.application; import javax.validation.Valid; import javax.ws.rs.DELETE; import javax.ws.rs.GET; import javax.ws.rs.PUT; import javax.ws.rs.Path; import javax.ws.rs.PathParam; import fr.xebia.api.exception.NoResultFoundException; import org.springframework.beans.factory.annotation.Autowired; import ...
201
github-java-corpus
2,012
package fr.xebia.api.application; import java.io.Serializable; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence.NamedQueries; import javax.persistence.NamedQuery; imp...
317
github-java-corpus
2,012
package fr.xebia.api.application; import java.util.List; import javax.ws.rs.GET; import javax.ws.rs.Path; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Component; import org.springframework.validation.annotation.Validated; @Component @Path("apps") @Validated publ...
94
github-java-corpus
2,012
package fr.xebia.api.xebian; import java.io.Serializable; import java.util.Date; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence.NamedQueries; import javax.persiste...
508
github-java-corpus
2,012
package fr.xebia.api.xebian; import java.util.Date; import java.util.List; import javax.persistence.TypedQuery; import fr.xebia.api.GenericDao; import fr.xebia.api.exception.NoResultFoundException; import org.springframework.stereotype.Repository; @Repository public class XebianDao extends GenericDao<Xebian> { p...
262
github-java-corpus
2,012
package fr.xebia.api.xebian; import javax.validation.Valid; import javax.ws.rs.DELETE; import javax.ws.rs.GET; import javax.ws.rs.PUT; import javax.ws.rs.Path; import javax.ws.rs.PathParam; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Component; import org.sprin...
224
github-java-corpus
2,012
package fr.xebia.api.xebian; import java.util.Date; import java.util.List; import javax.ws.rs.GET; import javax.ws.rs.Path; import javax.ws.rs.PathParam; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Component; import org.springframework.validation.annotation.Vali...
163
github-java-corpus
2,012
package fr.xebia.api.xebian; import java.util.Date; import java.util.List; import fr.xebia.api.exception.NoResultFoundException; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Propagation; import org.spring...
326
github-java-corpus
2,012
package fr.xebia.api.validation; import static java.lang.annotation.ElementType.ANNOTATION_TYPE; import static java.lang.annotation.ElementType.TYPE; import static java.lang.annotation.RetentionPolicy.RUNTIME; import java.lang.annotation.Documented; import java.lang.annotation.Retention; import java.lang.annotation.Ta...
139
github-java-corpus
2,012
package fr.xebia.api.validation; import javax.validation.ConstraintValidator; import javax.validation.ConstraintValidatorContext; import org.apache.commons.beanutils.BeanUtils; public class AtLeastOneUrlValidator implements ConstraintValidator<OR, Object> { private String firstFieldName; private String secon...
170
github-java-corpus
2,012
package fr.xebia.api; import java.util.Arrays; import javax.persistence.EntityManager; import javax.persistence.NoResultException; import javax.persistence.PersistenceContext; import javax.persistence.Query; import fr.xebia.api.exception.NoResultFoundException; import org.springframework.transaction.annotation.Propaga...
360
github-java-corpus
2,012
package fr.xebia.api.conf; import java.net.URL; import de.codecentric.jbehave.junit.monitoring.JUnitReportingRunner; import fr.xebia.api.utils.UTF8StoryLoader; import org.jbehave.core.Embeddable; import org.jbehave.core.configuration.Configuration; import org.jbehave.core.configuration.MostUsefulConfiguration; import ...
426
github-java-corpus
2,012
package fr.xebia.api; import static junit.framework.Assert.assertSame; import static org.junit.Assert.assertNotNull; import static org.mockito.Mockito.only; import static org.mockito.Mockito.verify; import static org.mockito.Mockito.when; import javax.persistence.EntityManager; import javax.persistence.NoResultExcepti...
602
github-java-corpus
2,012
package fr.xebia.api.exception.mapper; import static org.fest.assertions.Assertions.assertThat; import javax.ws.rs.core.MediaType; import javax.ws.rs.core.Response; import fr.xebia.api.exception.NoResultFoundException; import org.junit.Test; public class NoResultFoundExceptionMapperTest { private NoResultFoundEx...
166
github-java-corpus
2,012
package fr.xebia.api.exception.mapper; import static org.fest.assertions.Assertions.assertThat; import java.lang.reflect.Method; import java.util.HashSet; import java.util.Set; import javax.validation.Path; import javax.validation.metadata.ConstraintDescriptor; import javax.ws.rs.core.MediaType; import javax.ws.rs.cor...
454
github-java-corpus
2,012
package fr.xebia.api.application; import static org.fest.assertions.Assertions.assertThat; import java.util.Set; import javax.validation.ConstraintViolation; import javax.validation.Validator; import fr.xebia.api.builders.ApplicationBuilder; import fr.xebia.api.xebian.Xebian; import org.junit.Test; import org.junit.ru...
347
github-java-corpus
2,012
package fr.xebia.api.application; import static org.fest.assertions.Assertions.assertThat; import java.util.List; import fr.xebia.api.DaoTest; import org.junit.Rule; import org.junit.Test; import org.junit.rules.ExpectedException; public class ApplicationDaoTest extends DaoTest<ApplicationDao> { @Rule public...
205
github-java-corpus
2,012
package fr.xebia.api.application; import static org.fest.assertions.Assertions.assertThat; import static org.mockito.Matchers.any; import static org.mockito.Mockito.doThrow; import static org.mockito.Mockito.never; import static org.mockito.Mockito.times; import static org.mockito.Mockito.verify; import static org.moc...
764
github-java-corpus
2,012
package fr.xebia.api.application; import static org.fest.assertions.Assertions.assertThat; import static org.mockito.Mockito.when; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import org.junit.Test; import org.junit.runner.RunWith; import org.mockito.InjectMocks; import org.mockito.Mock;...
232
github-java-corpus
2,012
package fr.xebia.api.application; import static org.fest.assertions.Assertions.assertThat; import static org.mockito.Mockito.doNothing; import static org.mockito.Mockito.doThrow; import static org.mockito.Mockito.verify; import static org.mockito.Mockito.when; import fr.xebia.api.builders.ApplicationBuilder; import fr...
466
github-java-corpus
2,012
package fr.xebia.api.application; import java.net.URL; import java.util.List; import fr.xebia.api.conf.JBeHaveConfiguration; import fr.xebia.api.steps.ApplicationSteps; import fr.xebia.api.xebian.XebianIT; import org.jbehave.core.io.CodeLocations; import org.jbehave.core.io.StoryFinder; import org.jbehave.core.steps.I...
212
github-java-corpus
2,012
package fr.xebia.api.builders; import fr.xebia.api.xebian.Xebian; public class XebianBuilder { private long id; private String fullname; private String email; public XebianBuilder id(long id) { this.id = id; return this; } public XebianBuilder fullname(String fullname) { ...
178
github-java-corpus
2,012
package fr.xebia.api.builders; import fr.xebia.api.application.Application; public class ApplicationBuilder { private long id; private String name; private String androidUrl; public ApplicationBuilder androidUrl(String androidUrl) { this.androidUrl = androidUrl; return this; } ...
143
github-java-corpus
2,012
package fr.xebia.api.steps; import static org.fest.assertions.Assertions.assertThat; import com.sun.jersey.api.client.Client; import com.sun.jersey.api.client.ClientResponse; import com.sun.jersey.api.client.WebResource; import org.jbehave.core.annotations.Then; public class GenericSteps { private Client client;...
211
github-java-corpus
2,012
package fr.xebia.api.steps; import static org.fest.assertions.Assertions.assertThat; import static org.junit.Assert.fail; import java.util.List; import javax.ws.rs.core.MediaType; import com.sun.jersey.api.client.ClientResponse; import com.sun.jersey.api.client.GenericType; import com.sun.jersey.api.client.UniformInte...
2,010
github-java-corpus
2,012
package fr.xebia.api.steps; import static org.fest.assertions.Assertions.assertThat; import static org.junit.Assert.fail; import java.util.List; import javax.ws.rs.core.MediaType; import com.sun.jersey.api.client.ClientResponse; import com.sun.jersey.api.client.GenericType; import com.sun.jersey.api.client.UniformInte...
1,560
github-java-corpus
2,012
package fr.xebia.api.xebian; import static org.fest.assertions.Assertions.assertThat; import static org.mockito.Mockito.when; import java.util.ArrayList; import java.util.Arrays; import java.util.Date; import java.util.List; import org.joda.time.DateTime; import org.junit.Test; import org.junit.runner.RunWith; import ...
428
github-java-corpus
2,012
package fr.xebia.api.xebian; import static org.fest.assertions.Assertions.assertThat; import java.util.Set; import javax.validation.ConstraintViolation; import javax.validation.Validator; import fr.xebia.api.builders.XebianBuilder; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.bean...
397
github-java-corpus
2,012
package fr.xebia.api.xebian; import static org.fest.assertions.Assertions.assertThat; import java.util.Date; import java.util.List; import fr.xebia.api.DaoTest; import fr.xebia.api.builders.XebianBuilder; import fr.xebia.api.exception.NoResultFoundException; import org.joda.time.DateTime; import org.junit.Rule; import...
746
github-java-corpus
2,012
package fr.xebia.api.xebian; import static org.fest.assertions.Assertions.assertThat; import static org.mockito.Mockito.doNothing; import static org.mockito.Mockito.doThrow; import static org.mockito.Mockito.verify; import static org.mockito.Mockito.when; import fr.xebia.api.builders.XebianBuilder; import fr.xebia.api...
526
github-java-corpus
2,012
package fr.xebia.api.xebian; import java.net.URL; import java.util.List; import fr.xebia.api.conf.JBeHaveConfiguration; import fr.xebia.api.steps.XebianSteps; import org.jbehave.core.io.CodeLocations; import org.jbehave.core.io.StoryFinder; import org.jbehave.core.steps.InjectableStepsFactory; import org.jbehave.core....
210
github-java-corpus
2,012
package fr.xebia.api.xebian; import static org.fest.assertions.Assertions.assertThat; import static org.mockito.Matchers.any; import static org.mockito.Mockito.doNothing; import static org.mockito.Mockito.doThrow; import static org.mockito.Mockito.never; import static org.mockito.Mockito.verify; import static org.mock...
1,058
github-java-corpus
2,012
package fr.xebia.api.utils; import java.io.IOException; import java.io.InputStream; import org.apache.commons.io.IOUtils; import org.jbehave.core.io.InvalidStoryResource; import org.jbehave.core.io.StoryLoader; import org.jbehave.core.io.StoryResourceNotFound; /** * @author Arnaud Loyer (http://github.com/Arnauld/jb...
304
github-java-corpus
2,012
package fr.xebia.api; import java.io.IOException; import java.io.InputStream; import java.sql.SQLException; import java.util.HashMap; import java.util.Map; import javax.persistence.EntityManager; import javax.persistence.EntityManagerFactory; import javax.persistence.EntityTransaction; import javax.persistence.Persist...
724
github-java-corpus
2,012
/* * 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 writing, software * distributed...
1,230
github-java-corpus
2,012
/* * 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 writing, software * distributed...
486
github-java-corpus
2,012
/* * 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 writing, software * distributed...
635
github-java-corpus
2,012
/* * 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 writing, software * distributed...
1,310
github-java-corpus
2,012
/* * 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 writing, software * distributed...
1,661
github-java-corpus
2,012
/* * 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 writing, software * distributed...
168
github-java-corpus
2,012
/* * 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 writing, software * distributed...
300