Datasets:

diff
stringlengths
262
553k
is_single_chunk
bool
2 classes
is_single_function
bool
1 class
buggy_function
stringlengths
20
391k
fixed_function
stringlengths
0
392k
diff --git a/src/org/ibex/nestedvm/ClassFileCompiler.java b/src/org/ibex/nestedvm/ClassFileCompiler.java index f0b9153..1f6ecd4 100644 --- a/src/org/ibex/nestedvm/ClassFileCompiler.java +++ b/src/org/ibex/nestedvm/ClassFileCompiler.java @@ -1,2185 +1,2179 @@ package org.ibex.nestedvm; import java.io.*; import java...
true
true
protected void _go() throws Exn, IOException { if(lessConstants) throw new Exn("ClassFileCompiler doesn't support -o lessconstants"); if(!pruneCases) throw new Exn("-o prunecases MUST be enabled for ClassFileCompiler"); // Class cl = new ClassGen(fullClassName,runtimeClass,source,AC...
protected void _go() throws Exn, IOException { if(lessConstants) throw new Exn("ClassFileCompiler doesn't support -o lessconstants"); if(!pruneCases) throw new Exn("-o prunecases MUST be enabled for ClassFileCompiler"); // Class cl = new ClassGen(fullClassName,runtimeClass,source,AC...
diff --git a/org.maven.ide.eclipse/src/org/maven/ide/eclipse/embedder/MavenModelManager.java b/org.maven.ide.eclipse/src/org/maven/ide/eclipse/embedder/MavenModelManager.java index 81436158..546bd5c0 100644 --- a/org.maven.ide.eclipse/src/org/maven/ide/eclipse/embedder/MavenModelManager.java +++ b/org.maven.ide.eclipse...
false
true
public void update(ProjectDocument project) { Dependencies dependencies = project.getProject().getDependencies(); if(dependencies == null) { dependencies = project.getProject().addNewDependencies(); XmlCursor cursor = dependencies.newCursor(); cursor.insertChars(" "); ...
public void update(ProjectDocument project) { Dependencies dependencies = project.getProject().getDependencies(); if(dependencies == null) { dependencies = project.getProject().addNewDependencies(); XmlCursor cursor = dependencies.newCursor(); cursor.insertChars(" "); ...
diff --git a/src/java/main/ivory/smrf/model/score/BM25ScoringFunction.java b/src/java/main/ivory/smrf/model/score/BM25ScoringFunction.java index f2977cb3..bc7693f8 100644 --- a/src/java/main/ivory/smrf/model/score/BM25ScoringFunction.java +++ b/src/java/main/ivory/smrf/model/score/BM25ScoringFunction.java @@ -1,104 +1,...
true
true
public void initialize(GlobalTermEvidence termEvidence, GlobalEvidence globalEvidence) { super.initialize(termEvidence, globalEvidence); avgDocLen = (float) globalEvidence.collectionLength / (float) globalEvidence.numDocs; if ("none".equals(idfType)) { idf = 1; } else if ("classic".equals(idfTy...
public void initialize(GlobalTermEvidence termEvidence, GlobalEvidence globalEvidence) { super.initialize(termEvidence, globalEvidence); avgDocLen = (float) globalEvidence.collectionLength / (float) globalEvidence.numDocs; if ("none".equals(idfType)) { idf = 1; } else if ("classic".equals(idfTy...
diff --git a/luntbuild/src/com/luntsys/luntbuild/db/Project.java b/luntbuild/src/com/luntsys/luntbuild/db/Project.java index ab8c2d4..ba911fc 100644 --- a/luntbuild/src/com/luntsys/luntbuild/db/Project.java +++ b/luntbuild/src/com/luntsys/luntbuild/db/Project.java @@ -1,958 +1,958 @@ /* * Copyright luntsys (c) 2004-...
false
true
public ProjectFacade getFacade() { ProjectFacade facade = new ProjectFacade(); facade.setId(getId()); facade.setName(getName()); facade.setDescription(getDescription()); facade.setVariables(getVariables()); facade.setLogLevel(getLogLevel()); facade.setNotifiers(getNotifiers()); Iterator it = getVcsList...
public ProjectFacade getFacade() { ProjectFacade facade = new ProjectFacade(); facade.setId(getId()); facade.setName(getName()); facade.setDescription(getDescription()); facade.setVariables(getVariables()); facade.setLogLevel(getLogLevel()); facade.setNotifiers(getNotifiers()); Iterator it = getVcsList...
diff --git a/src/main/java/nl/lolmen/sortal/SPlayerListener.java b/src/main/java/nl/lolmen/sortal/SPlayerListener.java index 4f48c7f..f46a5d6 100644 --- a/src/main/java/nl/lolmen/sortal/SPlayerListener.java +++ b/src/main/java/nl/lolmen/sortal/SPlayerListener.java @@ -1,323 +1,321 @@ package nl.lolmen.sortal; impor...
false
true
public void onPlayerInteract(PlayerInteractEvent event){ Player p = event.getPlayer(); Action a = event.getAction(); if(a.equals(Action.LEFT_CLICK_BLOCK)){ if(leftClick(p, event.getClickedBlock())){ event.setCancelled(true); } return; } if(!a.equals(Action.RIGHT_CLICK_BLOCK)){ return; } ...
public void onPlayerInteract(PlayerInteractEvent event){ Player p = event.getPlayer(); Action a = event.getAction(); if(a.equals(Action.LEFT_CLICK_BLOCK)){ if(leftClick(p, event.getClickedBlock())){ event.setCancelled(true); } return; } if(!a.equals(Action.RIGHT_CLICK_BLOCK)){ return; } ...
diff --git a/river/src/main/java/org/jboss/marshalling/river/RiverObjectInputStream.java b/river/src/main/java/org/jboss/marshalling/river/RiverObjectInputStream.java index d04a85f..b87d325 100644 --- a/river/src/main/java/org/jboss/marshalling/river/RiverObjectInputStream.java +++ b/river/src/main/java/org/jboss/marsh...
true
true
public GetField readFields() throws IOException, ClassNotFoundException { State old = state.getAndSet(State.ON); switch (old) { case UNREAD_FIELDS: case UNREAD_FIELDS_EOB: break; default: throw new NotActiveException("readFields() may only be calle...
public GetField readFields() throws IOException, ClassNotFoundException { State old = state.getAndSet(State.ON); switch (old) { case UNREAD_FIELDS: case UNREAD_FIELDS_EOB: break; default: throw new NotActiveException("readFields() may only be calle...
diff --git a/src/com/novel/reader/GcmBroadcastReceiver.java b/src/com/novel/reader/GcmBroadcastReceiver.java index a197da8..afede59 100644 --- a/src/com/novel/reader/GcmBroadcastReceiver.java +++ b/src/com/novel/reader/GcmBroadcastReceiver.java @@ -1,98 +1,99 @@ package com.novel.reader; import com.google.android.g...
false
true
private void sendNotification(Intent intent) { mNotificationManager = (NotificationManager) ctx.getSystemService(Context.NOTIFICATION_SERVICE); openActivity = Integer.parseInt(intent.getStringExtra("activity")); switch(openActivity){ case 0: ...
private void sendNotification(Intent intent) { mNotificationManager = (NotificationManager) ctx.getSystemService(Context.NOTIFICATION_SERVICE); openActivity = Integer.parseInt(intent.getStringExtra("activity")); switch(openActivity){ case 0: ...
diff --git a/LogicMail/src/org/logicprobe/LogicMail/mail/AbstractMailConnectionHandler.java b/LogicMail/src/org/logicprobe/LogicMail/mail/AbstractMailConnectionHandler.java index b73f704..a233cca 100644 --- a/LogicMail/src/org/logicprobe/LogicMail/mail/AbstractMailConnectionHandler.java +++ b/LogicMail/src/org/logicpro...
false
true
private void handleIdleConnection() throws IOException, MailException { showTransitionStatus(null); handleBeginIdle(); while(true) { ConnectionHandlerRequest adminRequest = null; synchronized(requestQueue) { ConnectionHandlerRequest request = (ConnectionHandlerRequest)requestQueue.eleme...
private void handleIdleConnection() throws IOException, MailException { showTransitionStatus(null); handleBeginIdle(); while(true) { ConnectionHandlerRequest adminRequest = null; synchronized(requestQueue) { ConnectionHandlerRequest request = (ConnectionHandlerRequest)requestQueue.eleme...
diff --git a/jaas/config/src/main/java/org/apache/karaf/jaas/config/impl/NamespaceHandler.java b/jaas/config/src/main/java/org/apache/karaf/jaas/config/impl/NamespaceHandler.java index 718436c4..a6ed36c5 100644 --- a/jaas/config/src/main/java/org/apache/karaf/jaas/config/impl/NamespaceHandler.java +++ b/jaas/config/src...
true
true
public ComponentMetadata parseConfig(Element element, ParserContext context) { MutableBeanMetadata bean = context.createMetadata(MutableBeanMetadata.class); bean.setRuntimeClass(Config.class); String name = element.getAttribute("name"); bean.addProperty("bundleContext", createRef(con...
public ComponentMetadata parseConfig(Element element, ParserContext context) { MutableBeanMetadata bean = context.createMetadata(MutableBeanMetadata.class); bean.setRuntimeClass(Config.class); String name = element.getAttribute("name"); bean.addProperty("bundleContext", createRef(con...
diff --git a/src/main/java/wikipedia/http/PageHistoryFetcher.java b/src/main/java/wikipedia/http/PageHistoryFetcher.java index ae0c682..6a5326a 100644 --- a/src/main/java/wikipedia/http/PageHistoryFetcher.java +++ b/src/main/java/wikipedia/http/PageHistoryFetcher.java @@ -1,167 +1,172 @@ package wikipedia.http; imp...
true
true
public void fetchAllRecords(final int pageId, final String pageTitle, final String lang) { //get oldest revision of article, if it didnt exist yet, do not execute http request! String storedCreationDate = dataBaseUtil.getFirstRevisionDate(pageId, lang); DateTime firstRevisionDate; if...
public void fetchAllRecords(final int pageId, final String pageTitle, final String lang) { //get oldest revision of article, if it didnt exist yet, do not execute http request! String storedCreationDate = dataBaseUtil.getFirstRevisionDate(pageId, lang); DateTime firstRevisionDate; if...
diff --git a/src/entity/Menu.java b/src/entity/Menu.java index 8ece658..215b70f 100644 --- a/src/entity/Menu.java +++ b/src/entity/Menu.java @@ -1,64 +1,65 @@ package entity; import java.awt.event.ActionListener; import java.util.List; import org.newdawn.slick.Color; import org.newdawn.slick.GameContainer; im...
false
true
public void update(GameContainer container, StateBasedGame game, int delta) { Input input = container.getInput(); int mouseX = input.getMouseX(); int mouseY = input.getMouseY(); int counter = 0; boolean over = false; for (Rectangle r : this.getLayout().getRectangles()...
public void update(GameContainer container, StateBasedGame game, int delta) { Input input = container.getInput(); int mouseX = input.getMouseX(); int mouseY = input.getMouseY(); int counter = 0; boolean over = false; for (Rectangle r : this.getLayout().getRectangles()...
diff --git a/src/com/mccraftaholics/warpportals/commands/CmdPortalDelete.java b/src/com/mccraftaholics/warpportals/commands/CmdPortalDelete.java index ccab5d4..e8a7c3c 100644 --- a/src/com/mccraftaholics/warpportals/commands/CmdPortalDelete.java +++ b/src/com/mccraftaholics/warpportals/commands/CmdPortalDelete.java @@ ...
true
true
public static boolean handle(CommandSender sender, String[] args, CommandHandler main) { if (args.length == 1) { try { PortalInfo portal = main.mPortalManager.getPortalInfo(args[0]); if (portal != null) { main.mPortalManager.deletePortal(args[0]); } else { sender.sendMessage(main.mCC + args[...
public static boolean handle(CommandSender sender, String[] args, CommandHandler main) { if (args.length == 1) { try { PortalInfo portal = main.mPortalManager.getPortalInfo(args[0]); if (portal != null) { main.mPortalManager.deletePortal(args[0]); } else { sender.sendMessage(main.mCC + args[...
diff --git a/src/bitronix/tm/BitronixTransactionManager.java b/src/bitronix/tm/BitronixTransactionManager.java index ff033e2..01b51bd 100644 --- a/src/bitronix/tm/BitronixTransactionManager.java +++ b/src/bitronix/tm/BitronixTransactionManager.java @@ -1,459 +1,459 @@ package bitronix.tm; import bitronix.tm.interna...
true
true
public synchronized void shutdown() { if (isShuttingDown()) { if (log.isDebugEnabled()) log.debug("Transaction Manager has already shut down"); return; } log.info("shutting down Bitronix Transaction Manager"); internalShutdown(); if (log.isDebugEnabl...
public synchronized void shutdown() { if (isShuttingDown()) { if (log.isDebugEnabled()) log.debug("Transaction Manager has already shut down"); return; } log.info("shutting down Bitronix Transaction Manager"); internalShutdown(); if (log.isDebugEnabl...
diff --git a/src/test/net/sf/clirr/checks/MethodSetCheckTest.java b/src/test/net/sf/clirr/checks/MethodSetCheckTest.java index c72c43f..9d7a28f 100644 --- a/src/test/net/sf/clirr/checks/MethodSetCheckTest.java +++ b/src/test/net/sf/clirr/checks/MethodSetCheckTest.java @@ -1,74 +1,76 @@ package net.sf.clirr.checks; ...
true
true
public void testMethodCheck() { ApiDifference[] expected = new ApiDifference[] { // method addition and removal new ApiDifference("Method 'public void removedMethod(java.lang.String)' has been removed in testlib.MethodsChange", Severity.ERROR, "testlib.Method...
public void testMethodCheck() { ApiDifference[] expected = new ApiDifference[] { // method addition and removal new ApiDifference("Method 'public void removedMethod(java.lang.String)' has been removed in testlib.MethodsChange", Severity.ERROR, "testlib.Method...
diff --git a/src/py.java b/src/py.java index 1fd0583..2d02446 100644 --- a/src/py.java +++ b/src/py.java @@ -1,84 +1,91 @@ package net.pms.external.infidel; import java.io.*; import java.util.Arrays; import java.util.Map; import java.lang.Process; import java.lang.ProcessBuilder; import java.net.InetAddres...
true
true
public static int run(jumpyAPI obj, String cmd, String pypath) { int exitValue = 0; GatewayServer server = start(obj); if (server == null) { return -1; } try { String[] argv = (python + " | " + cmd).split(" \\| "); boolean windows = System.getProperty("os.name").startsWith("Windows"); for (in...
public static int run(jumpyAPI obj, String cmd, String pypath) { int exitValue = 0; GatewayServer server = start(obj); if (server == null) { return -1; } try { String[] argv = (python + " | " + cmd).split(" \\| "); boolean windows = System.getProperty("os.name").startsWith("Windows"); for (in...
diff --git a/src/main/java/com/zaxxer/hikari/HikariConfig.java b/src/main/java/com/zaxxer/hikari/HikariConfig.java index 7fb7609a..e1edb6e6 100644 --- a/src/main/java/com/zaxxer/hikari/HikariConfig.java +++ b/src/main/java/com/zaxxer/hikari/HikariConfig.java @@ -1,697 +1,697 @@ /* * Copyright (C) 2013, 2014 Brett Wo...
false
true
public void validate() { Logger logger = LoggerFactory.getLogger(getClass()); if (connectionCustomizerClassName != null && connectionCustomizer == null) { try { Class<?> customizerClass = getClass().getClassLoader().loadClass(connectionCustomizerC...
public void validate() { Logger logger = LoggerFactory.getLogger(getClass()); if (connectionCustomizerClassName != null && connectionCustomizer == null) { try { Class<?> customizerClass = getClass().getClassLoader().loadClass(connectionCustomizerC...
diff --git a/pact/pact-compiler/src/main/java/eu/stratosphere/pact/compiler/jobgen/JSONGenerator.java b/pact/pact-compiler/src/main/java/eu/stratosphere/pact/compiler/jobgen/JSONGenerator.java index 6e19e4891..c9c489f81 100644 --- a/pact/pact-compiler/src/main/java/eu/stratosphere/pact/compiler/jobgen/JSONGenerator.jav...
true
true
public void postVisit(OptimizerNode visitable) { // start a new node this.jsonString.append("\t{\n"); // output node id this.jsonString.append("\t\t\"id\": " + this.nodeIds.get(visitable)); // output node type String type; switch (visitable.getPactType()) { case DataSink: type = "sink"; break;...
public void postVisit(OptimizerNode visitable) { // start a new node this.jsonString.append("\t{\n"); // output node id this.jsonString.append("\t\t\"id\": " + this.nodeIds.get(visitable)); // output node type String type; switch (visitable.getPactType()) { case DataSink: type = "sink"; break;...
diff --git a/AndroidPart3/src/test/java/com/example/androidpart3/MainActivityTest.java b/AndroidPart3/src/test/java/com/example/androidpart3/MainActivityTest.java index 0d6b527..a068924 100644 --- a/AndroidPart3/src/test/java/com/example/androidpart3/MainActivityTest.java +++ b/AndroidPart3/src/test/java/com/example/an...
true
true
public void shouldWelcome() throws Exception { MainActivity activity; activity = Robolectric.buildActivity(MainActivity.class).create().get(); Assert.assertNotNull(activity); TextView tView; tView = (TextView) activity.findViewById(R.id.introText); Assert.assertNotN...
public void shouldWelcome() throws Exception { MainActivity activity; activity = Robolectric.buildActivity(MainActivity.class).create().get(); Assert.assertNotNull(activity); TextView tView; tView = (TextView) activity.findViewById(R.id.introText); Assert.assertNotN...
diff --git a/src/main/java/org/agmip/translators/csv/DomeInput.java b/src/main/java/org/agmip/translators/csv/DomeInput.java index 931066f..18b1dcc 100644 --- a/src/main/java/org/agmip/translators/csv/DomeInput.java +++ b/src/main/java/org/agmip/translators/csv/DomeInput.java @@ -1,166 +1,164 @@ package org.agmip.tran...
false
true
public void readCSV(InputStream stream) throws Exception { BufferedReader br = new BufferedReader(new InputStreamReader(stream)); HashMap<String, String> info = new HashMap<String, String>(); // HashMap<String, ArrayList<String>> linkOvl = new HashMap<String, ArrayList<String>>(); // H...
public void readCSV(InputStream stream) throws Exception { BufferedReader br = new BufferedReader(new InputStreamReader(stream)); HashMap<String, String> info = new HashMap<String, String>(); // HashMap<String, ArrayList<String>> linkOvl = new HashMap<String, ArrayList<String>>(); // H...
diff --git a/src/com/bpermissions/minimap/MiniMapAddon.java b/src/com/bpermissions/minimap/MiniMapAddon.java index 2fa29da..1c3d3e3 100644 --- a/src/com/bpermissions/minimap/MiniMapAddon.java +++ b/src/com/bpermissions/minimap/MiniMapAddon.java @@ -1,75 +1,75 @@ package com.bpermissions.minimap; import java.awt.ima...
true
true
public void loadOverlay() { try { // Load the image from the jar? :O // Instead of using a hardcoded .jar file name, get whatever .jar contains this addon's code //File jarFile = new File(Spoutcraft.getAddonFolder(), "bMiniMap.jar"); File jarFile = new File(MiniMap.class.getProtectionDomain().getCod...
public void loadOverlay() { try { // Load the image from the jar? :O // Instead of using a hardcoded .jar file name, get whatever .jar contains this addon's code //File jarFile = new File(Spoutcraft.getAddonFolder(), "bMiniMap.jar"); File jarFile = new File(MiniMap.class.getProtectionDomain().getCod...
diff --git a/spring-jdbc/src/main/java/org/springframework/jdbc/core/metadata/CallMetaDataContext.java b/spring-jdbc/src/main/java/org/springframework/jdbc/core/metadata/CallMetaDataContext.java old mode 100644 new mode 100755 index dffae7036..dacff255e --- a/spring-jdbc/src/main/java/org/springframework/jdbc/core/meta...
true
true
protected List<SqlParameter> reconcileParameters(List<SqlParameter> parameters) { final List<SqlParameter> declaredReturnParameters = new ArrayList<SqlParameter>(); final Map<String, SqlParameter> declaredParameters = new LinkedHashMap<String, SqlParameter>(); boolean returnDeclared = false; List<String> outPa...
protected List<SqlParameter> reconcileParameters(List<SqlParameter> parameters) { final List<SqlParameter> declaredReturnParameters = new ArrayList<SqlParameter>(); final Map<String, SqlParameter> declaredParameters = new LinkedHashMap<String, SqlParameter>(); boolean returnDeclared = false; List<String> outPa...
diff --git a/solr/test-framework/src/java/org/apache/solr/BaseDistributedSearchTestCase.java b/solr/test-framework/src/java/org/apache/solr/BaseDistributedSearchTestCase.java index 4432b665d..1c3d4ed88 100644 --- a/solr/test-framework/src/java/org/apache/solr/BaseDistributedSearchTestCase.java +++ b/solr/test-framework...
false
true
public static String compare(NamedList a, NamedList b, int flags, Map<String, Integer> handle) { // System.out.println("resp a:" + a); // System.out.println("resp b:" + b); boolean ordered = (flags & UNORDERED) == 0; int posa = 0, posb = 0; int aSkipped = 0, bSkipped = 0; for (; ;) { if ...
public static String compare(NamedList a, NamedList b, int flags, Map<String, Integer> handle) { // System.out.println("resp a:" + a); // System.out.println("resp b:" + b); boolean ordered = (flags & UNORDERED) == 0; int posa = 0, posb = 0; int aSkipped = 0, bSkipped = 0; for (; ;) { if ...
diff --git a/src/eu/cassandra/training/gui/MainGUI.java b/src/eu/cassandra/training/gui/MainGUI.java index 042dd9d..08e81ca 100644 --- a/src/eu/cassandra/training/gui/MainGUI.java +++ b/src/eu/cassandra/training/gui/MainGUI.java @@ -1,3335 +1,3336 @@ /* Copyright 2011-2013 The Cassandra Consortium (cassandra-fp7.eu) ...
true
true
public MainGUI () throws ClassNotFoundException, InstantiationException, IllegalAccessException, UnsupportedLookAndFeelException, FileNotFoundException { setForeground(new Color(0, 204, 51)); // Enable the closing of the frame when pressing the x on the upper corner // of the window addWind...
public MainGUI () throws ClassNotFoundException, InstantiationException, IllegalAccessException, UnsupportedLookAndFeelException, FileNotFoundException { setForeground(new Color(0, 204, 51)); // Enable the closing of the frame when pressing the x on the upper corner // of the window addWind...
diff --git a/src/mips/Processor.java b/src/mips/Processor.java index 1a11bfa..0a316f2 100644 --- a/src/mips/Processor.java +++ b/src/mips/Processor.java @@ -1,120 +1,120 @@ package mips; import java.util.List; import java.util.ListIterator; public class Processor { private Instruction[] instructions = {};...
true
true
public void step() { Instruction i; int alu_out = 0; int data_out = 0; int rtv = 0; int rsv = 0; int new_pc = pc; int branch_pc; if(isDone()) { return; } i = instructions[pc/4]; control.setInstruction(i); rtv = register.get(i.getRt()); rsv = register.get(i.getRs()); alu_out = alu.op...
public void step() { Instruction i; int alu_out = 0; int data_out = 0; int rtv = 0; int rsv = 0; int new_pc = pc; int branch_pc; if(isDone()) { return; } i = instructions[pc/4]; control.setInstruction(i); rtv = register.get(i.getRt()); rsv = register.get(i.getRs()); alu_out = alu.op...
diff --git a/hierarchyviewer/src/com/android/hierarchyviewer/scene/WindowsLoader.java b/hierarchyviewer/src/com/android/hierarchyviewer/scene/WindowsLoader.java index ef9370791..d06aca692 100644 --- a/hierarchyviewer/src/com/android/hierarchyviewer/scene/WindowsLoader.java +++ b/hierarchyviewer/src/com/android/hierarch...
true
true
public static Window[] loadWindows(IDevice device) { Socket socket = null; BufferedReader in = null; BufferedWriter out = null; try { ArrayList<Window> windows = new ArrayList<Window>(); socket = new Socket(); socket.connect(new InetSocketAddress...
public static Window[] loadWindows(IDevice device) { Socket socket = null; BufferedReader in = null; BufferedWriter out = null; try { ArrayList<Window> windows = new ArrayList<Window>(); socket = new Socket(); socket.connect(new InetSocketAddress...
diff --git a/LAD-Java/src/lad/game/IOInitial.java b/LAD-Java/src/lad/game/IOInitial.java index d344593..0813b2f 100644 --- a/LAD-Java/src/lad/game/IOInitial.java +++ b/LAD-Java/src/lad/game/IOInitial.java @@ -1,220 +1,220 @@ package lad.game; import java.util.List; import java.util.ListIterator; import lad.data.U...
true
true
public void handle( MessageList pieces, int userid ) throws InterruptedException { if( pieces.contains( loginPiece ) ) { IOTrainer.getInstance().outputMainView( userid ); } else if( pieces.contains( viewexpPiece ) ) { // Simple ...
public void handle( MessageList pieces, int userid ) throws InterruptedException { if( pieces.contains( loginPiece ) ) { IOTrainer.getInstance().outputMainView( userid ); } else if( pieces.contains( viewexpPiece ) ) { // Simple ...
diff --git a/src/org/mozilla/javascript/CompilerEnvirons.java b/src/org/mozilla/javascript/CompilerEnvirons.java index 14bf5af8..8ed1444a 100644 --- a/src/org/mozilla/javascript/CompilerEnvirons.java +++ b/src/org/mozilla/javascript/CompilerEnvirons.java @@ -1,187 +1,187 @@ /* -*- Mode: java; tab-width: 8; indent-tabs...
true
true
public void initFromContext(Context cx) { setErrorReporter(cx.getErrorReporter()); this.languageVersion = cx.getLanguageVersion(); useDynamicScope = cx.compileFunctionsWithDynamicScopeFlag; generateDebugInfo = (!cx.isGeneratingDebugChanged() || cx.isG...
public void initFromContext(Context cx) { setErrorReporter(cx.getErrorReporter()); this.languageVersion = cx.getLanguageVersion(); useDynamicScope = cx.hasFeature(Context.FEATURE_DYNAMIC_SCOPE); generateDebugInfo = (!cx.isGeneratingDebugChanged() || c...
diff --git a/tests/bindings/org/gnome/gtk/TestCaseGtk.java b/tests/bindings/org/gnome/gtk/TestCaseGtk.java index 22dba94e..0c9aa687 100644 --- a/tests/bindings/org/gnome/gtk/TestCaseGtk.java +++ b/tests/bindings/org/gnome/gtk/TestCaseGtk.java @@ -1,100 +1,112 @@ /* * TestCaseGtk.java * * Copyright (c) 2007 Opera...
false
true
protected static void cycleMainLoop() { /* * Lead off with one iteration no matter what. Pending events aren't * the only thing that the main loop does! Then continue by working * off whatever has accumulated. */ do { Gtk.mainIterationDo(false); ...
protected static void cycleMainLoop() { /* * Lead off with one iteration no matter what. Pending events aren't * the only thing that the main loop does! Then continue by working * off whatever has accumulated. * * The business with the yields and sleeps is a bit...
diff --git a/src/com/google/javascript/jscomp/ant/CompileTask.java b/src/com/google/javascript/jscomp/ant/CompileTask.java index 6417ecce7..f610e7caf 100644 --- a/src/com/google/javascript/jscomp/ant/CompileTask.java +++ b/src/com/google/javascript/jscomp/ant/CompileTask.java @@ -1,628 +1,629 @@ /* * Copyright 2010 ...
true
true
private CompilerOptions createCompilerOptions() { CompilerOptions options = new CompilerOptions(); this.compilationLevel.setOptionsForCompilationLevel(options); if (this.debugOptions) { this.compilationLevel.setDebugOptionsForCompilationLevel(options); } options.prettyPrint = this.prettyPr...
private CompilerOptions createCompilerOptions() { CompilerOptions options = new CompilerOptions(); this.compilationLevel.setOptionsForCompilationLevel(options); if (this.debugOptions) { this.compilationLevel.setDebugOptionsForCompilationLevel(options); } options.prettyPrint = this.prettyPr...
diff --git a/smart-user-resource/src/main/java/com/smartitengineering/user/ws/resources/OrganizationSecuredObjectsResource.java b/smart-user-resource/src/main/java/com/smartitengineering/user/ws/resources/OrganizationSecuredObjectsResource.java index 5f9d63fe..a75f1c03 100644 --- a/smart-user-resource/src/main/java/com...
false
true
private Response get(String uniqueOrganizationName, String userName, boolean isBefore){ if(count == null){ count = 10; } ResponseBuilder responseBuilder = Response.ok(); Feed atomFeed = getFeed(userName, new Date()); Link parentLink = abderaFactory.newLink(); ...
private Response get(String uniqueOrganizationName, String userName, boolean isBefore){ if(count == null){ count = 10; } ResponseBuilder responseBuilder = Response.ok(); Feed atomFeed = getFeed(userName, new Date()); Link parentLink = abderaFactory.newLink(); ...
diff --git a/src/br/ufsm/brunodea/tcc/map/InfoCityMap.java b/src/br/ufsm/brunodea/tcc/map/InfoCityMap.java index 5df4b9f..979fd3c 100644 --- a/src/br/ufsm/brunodea/tcc/map/InfoCityMap.java +++ b/src/br/ufsm/brunodea/tcc/map/InfoCityMap.java @@ -1,480 +1,480 @@ package br.ufsm.brunodea.tcc.map; import java.util.List...
false
true
public void fetchEvents() { final Handler done_handler = new Handler() { @Override public void handleMessage(Message msg) { toggleRefreshAnimation(); if(msg.what == 0) { //good mMapView.invalidate(); //força o mapa se redesenhar para mostrar os markers. } else if(msg.what == 1) { Toa...
public void fetchEvents() { App.instance().getEventOverlayManager() .clearItemizedOverlaysExcept(EventTypeManager.instance().type_add()); final Handler done_handler = new Handler() { @Override public void handleMessage(Message msg) { toggleRefreshAnimation(); if(msg.what == 0) { //good m...
diff --git a/src/main/java/org/atlasapi/remotesite/pa/PaModule.java b/src/main/java/org/atlasapi/remotesite/pa/PaModule.java index 620dec708..65a4936e5 100644 --- a/src/main/java/org/atlasapi/remotesite/pa/PaModule.java +++ b/src/main/java/org/atlasapi/remotesite/pa/PaModule.java @@ -1,99 +1,99 @@ package org.atlasapi...
true
true
@Bean PaCompleteUpdater paCompleteUpdater() { PaEmptyScheduleProcessor processor = new PaEmptyScheduleProcessor(paProgrammeProcessor(), scheduleResolver); PaChannelProcessJobBuilder jobBuilder = new PaChannelProcessJobBuilder(processor, broadcastTrimmer(), log); PaCompleteUpdater updater = n...
@Bean PaCompleteUpdater paCompleteUpdater() { PaEmptyScheduleProcessor processor = new PaEmptyScheduleProcessor(paProgrammeProcessor(), scheduleResolver); PaChannelProcessor channelProcessor = new PaChannelProcessor(processor, broadcastTrimmer(), log); PaCompleteUpdater updater = new PaCompleteUpda...
diff --git a/src/com/zygon/trade/market/model/indication/IndicationListener.java b/src/com/zygon/trade/market/model/indication/IndicationListener.java index dca720c..6a466b3 100755 --- a/src/com/zygon/trade/market/model/indication/IndicationListener.java +++ b/src/com/zygon/trade/market/model/indication/IndicationListe...
false
true
public void handle (T_IN in) { this.log.trace("Handling " + in); if (this.selector.select(in)) { if (this.processor != null) { IndicationProcessor.Response response = this.processor.process(in); if (this.response != n...
public void handle (T_IN in) { this.log.trace("Handling " + in); if (this.selector.select(in)) { if (this.processor != null) { IndicationProcessor.Response response = this.processor.process(in); if (this.response != n...
diff --git a/src/com/bekvon/bukkit/residence/protection/ResidenceManager.java b/src/com/bekvon/bukkit/residence/protection/ResidenceManager.java index c4faa41..4c331ee 100644 --- a/src/com/bekvon/bukkit/residence/protection/ResidenceManager.java +++ b/src/com/bekvon/bukkit/residence/protection/ResidenceManager.java @@ ...
false
true
public boolean addResidence(Player player, String owner, String name, Location loc1, Location loc2, boolean resadmin) { if(!Residence.validName(name)) { if(player!=null) player.sendMessage(ChatColor.RED+Residence.getLanguage().getPhrase("InvalidNameCharacters")); ...
public boolean addResidence(Player player, String owner, String name, Location loc1, Location loc2, boolean resadmin) { if(!Residence.validName(name)) { if(player!=null) player.sendMessage(ChatColor.RED+Residence.getLanguage().getPhrase("InvalidNameCharacters")); ...
diff --git a/test/org/apache/pig/test/TestJobControlCompiler.java b/test/org/apache/pig/test/TestJobControlCompiler.java index 22f06dd0..5b4837dc 100644 --- a/test/org/apache/pig/test/TestJobControlCompiler.java +++ b/test/org/apache/pig/test/TestJobControlCompiler.java @@ -1,191 +1,190 @@ package org.apache.pig.test;...
true
true
public void testJarAddedToDistributedCache() throws Exception { // creating a jar with a UDF *not* in the current classloader File tmpFile = File.createTempFile("Some_", ".jar"); tmpFile.deleteOnExit(); String className = createTestJar(tmpFile); final String testUDFFileName = className+".class"; ...
public void testJarAddedToDistributedCache() throws Exception { // creating a jar with a UDF *not* in the current classloader File tmpFile = File.createTempFile("Some_", ".jar"); tmpFile.deleteOnExit(); String className = createTestJar(tmpFile); final String testUDFFileName = className+".class"; ...
diff --git a/pixi/src/main/java/org/openpixi/pixi/physics/boundary/PeriodicBoundary.java b/pixi/src/main/java/org/openpixi/pixi/physics/boundary/PeriodicBoundary.java index a263beff..ad3e07ee 100644 --- a/pixi/src/main/java/org/openpixi/pixi/physics/boundary/PeriodicBoundary.java +++ b/pixi/src/main/java/org/openpixi/p...
true
true
public void check(Particle2D particle) { //if the particle hits the walls if(particle.x < xmin) { particle.x += xmax - xmin; } else if(particle.x > xmax) { particle.x -= xmax - xmin; } if(particle.y < ymin) { particle.y = ymax - ymin; } else if(particle.y > ymax) { particle.y -= ymax -...
public void check(Particle2D particle) { //if the particle hits the walls if(particle.x < xmin) { particle.x += xmax - xmin; } else if(particle.x > xmax) { particle.x -= xmax - xmin; } if(particle.y < ymin) { particle.y += ymax - ymin; } else if(particle.y > ymax) { particle.y -= ymax ...
diff --git a/java/src/jp/gr/java_conf/neko_daisuki/fsyscall/slave/Application.java b/java/src/jp/gr/java_conf/neko_daisuki/fsyscall/slave/Application.java index 455de3d..ec69952 100644 --- a/java/src/jp/gr/java_conf/neko_daisuki/fsyscall/slave/Application.java +++ b/java/src/jp/gr/java_conf/neko_daisuki/fsyscall/slave/...
false
true
public static void main(String[] args) { L.setHandler(new LogHandler()); int rfd, wfd; try { rfd = Integer.parseInt(args[0]); wfd = Integer.parseInt(args[1]); } catch (ArrayIndexOutOfBoundsException _) { Application.usage(System.out); ...
public static void main(String[] args) { L.setHandler(new LogHandler()); int rfd, wfd; try { rfd = Integer.parseInt(args[0]); wfd = Integer.parseInt(args[1]); } catch (ArrayIndexOutOfBoundsException _) { Application.usage(System.out); ...
diff --git a/src/java/org/apache/nutch/crawl/WebTableReader.java b/src/java/org/apache/nutch/crawl/WebTableReader.java index d6bd313f..0ca9249c 100644 --- a/src/java/org/apache/nutch/crawl/WebTableReader.java +++ b/src/java/org/apache/nutch/crawl/WebTableReader.java @@ -1,466 +1,467 @@ package org.apache.nutch.crawl; ...
true
true
public void processStatJob(boolean sort) throws IOException, ClassNotFoundException, InterruptedException { if (LOG.isInfoEnabled()) { LOG.info("WebTable statistics start"); } Path tmpFolder = new Path(getConf().get("mapred.temp.dir", ".") + "stat_tmp" + System.currentTimeMillis()); ...
public void processStatJob(boolean sort) throws IOException, ClassNotFoundException, InterruptedException { if (LOG.isInfoEnabled()) { LOG.info("WebTable statistics start"); } Path tmpFolder = new Path(getConf().get("mapred.temp.dir", ".") + "stat_tmp" + System.currentTimeMillis()); ...
diff --git a/chassis/coordinator.http/src/main/java/com/griddynamics/jagger/coordinator/http/client/ExchangeClient.java b/chassis/coordinator.http/src/main/java/com/griddynamics/jagger/coordinator/http/client/ExchangeClient.java index 9db897e..aabd44f 100644 --- a/chassis/coordinator.http/src/main/java/com/griddynamics...
true
true
public PackResponse exchange() throws Throwable { log.debug("Exchange requested from agent {}", nodeContext.getId()); Pack out = packExchanger.retrieve(); log.debug("Going to send pack {} from agent {}", out, nodeContext.getId()); PackRequest request = PackRequest.create(nodeContext....
public PackResponse exchange() throws Throwable { log.debug("Exchange requested from agent {}", nodeContext.getId()); Pack out = packExchanger.retrieve(); if (out.getCommands().isEmpty() && out.getResults().isEmpty()){ //Nothing to send return null; } ...
diff --git a/providers/grizzly/src/main/java/org/asynchttpclient/providers/grizzly/filters/AsyncHttpClientFilter.java b/providers/grizzly/src/main/java/org/asynchttpclient/providers/grizzly/filters/AsyncHttpClientFilter.java index 942dc4208..6523d5fc8 100644 --- a/providers/grizzly/src/main/java/org/asynchttpclient/pro...
false
true
private boolean sendAsGrizzlyRequest(final RequestInfoHolder requestInfoHolder, final FilterChainContext ctx) throws IOException { HttpTxContext httpTxContext = requestInfoHolder.getHttpTxContext(); if (httpTxContext == null) { httpTxContext ...
private boolean sendAsGrizzlyRequest(final RequestInfoHolder requestInfoHolder, final FilterChainContext ctx) throws IOException { HttpTxContext httpTxContext = requestInfoHolder.getHttpTxContext(); if (httpTxContext == null) { httpTxContext ...
diff --git a/src/test/java/com/github/croesch/partimana/view/listener/TableSelectOnClickListenerGUITest.java b/src/test/java/com/github/croesch/partimana/view/listener/TableSelectOnClickListenerGUITest.java index 13e27bd..9866793 100644 --- a/src/test/java/com/github/croesch/partimana/view/listener/TableSelectOnClickLi...
true
true
protected void before() { this.table = GuiActionRunner.execute(new GuiQuery<JTableFixture>() { @Override protected JTableFixture executeInEDT() throws Throwable { final JTable table = new JTable(new Object[][] { new Object[] { "Müller", "Hans" }, ...
protected void before() { this.table = GuiActionRunner.execute(new GuiQuery<JTableFixture>() { @Override protected JTableFixture executeInEDT() throws Throwable { final JTable table = new JTable(new Object[][] { new Object[] { "Müller", "Hans" }, ...
diff --git a/parser/src/main/java/org/batoo/jpa/parser/PersistenceParserImpl.java b/parser/src/main/java/org/batoo/jpa/parser/PersistenceParserImpl.java index 0516d45e..35001f89 100644 --- a/parser/src/main/java/org/batoo/jpa/parser/PersistenceParserImpl.java +++ b/parser/src/main/java/org/batoo/jpa/parser/PersistenceP...
true
true
public PersistenceParserImpl(PersistenceUnitInfo puInfo, Map<String, Object> properties) { super(); this.puInfo = puInfo; this.provider = null; if (puInfo.getProperties() != null) { for (final Entry<Object, Object> entry : puInfo.getProperties().entrySet()) { this.properties.put((String) entry.getKey(...
public PersistenceParserImpl(PersistenceUnitInfo puInfo, Map<String, Object> properties) { super(); this.puInfo = puInfo; this.provider = puInfo.getPersistenceProviderClassName(); if (puInfo.getProperties() != null) { for (final Entry<Object, Object> entry : puInfo.getProperties().entrySet()) { this.p...
diff --git a/src/test/java/hudson/plugins/perforce/PerforceSCMHelperTest.java b/src/test/java/hudson/plugins/perforce/PerforceSCMHelperTest.java index 4a7327c..c20f045 100644 --- a/src/test/java/hudson/plugins/perforce/PerforceSCMHelperTest.java +++ b/src/test/java/hudson/plugins/perforce/PerforceSCMHelperTest.java @@ ...
true
true
public void testComputeChangesPathFromViews() { List<String> views; String path; views = new ArrayList<String>(); path = PerforceSCMHelper.computePathFromViews(views); assertEquals("", path); views.clear(); views.add("//xyz/... //Brian-xyz-hudproj/xyz/..."); views.add("//xyz3/... //Brian-xyz-hudproj/xy...
public void testComputeChangesPathFromViews() { // List<String> views; // String path; // views = new ArrayList<String>(); // path = PerforceSCMHelper.computePathFromViews(views); // assertEquals("", path); // views.clear(); // views.add("//xyz/... //Brian-xyz-hudproj/xyz/..."); // views.add("//xyz3/... //Bria...
diff --git a/src/main/java/opennlp/textgrounder/text/StoredCorpus.java b/src/main/java/opennlp/textgrounder/text/StoredCorpus.java index 5f52248e..722508b6 100644 --- a/src/main/java/opennlp/textgrounder/text/StoredCorpus.java +++ b/src/main/java/opennlp/textgrounder/text/StoredCorpus.java @@ -1,138 +1,138 @@ ////////...
false
true
public Iterator<Token> iterator() { return new Iterator<Token>() { private int current = 0; public boolean hasNext() { return this.current < StoredSentence.this.tokens.length; } public Token next() { long code = StoredSentence.this.tokens[this.current++]; ...
public Iterator<Token> iterator() { return new Iterator<Token>() { private int current = 0; public boolean hasNext() { return this.current < StoredSentence.this.tokens.length; } public Token next() { long code = StoredSentence.this.tokens[this.current++]; ...
diff --git a/spring-social-twitter/src/main/java/org/springframework/social/twitter/api/impl/TweetDeserializer.java b/spring-social-twitter/src/main/java/org/springframework/social/twitter/api/impl/TweetDeserializer.java index afa997dc..70495d70 100644 --- a/spring-social-twitter/src/main/java/org/springframework/socia...
false
true
public Tweet deserialize(JsonNode tree) throws IOException, JsonProcessingException { long id = tree.get("id").asLong(); String text = tree.get("text").asText(); JsonNode fromUserNode = tree.get("user"); String fromScreenName = null; long fromId = 0; String fromImageUrl = null; String dateFormat = TIM...
public Tweet deserialize(JsonNode tree) throws IOException, JsonProcessingException { final long id = tree.path("id").asLong(); final String text = tree.path("text").asText(); if (id <= 0 || text == null || text.isEmpty()) { return null; } JsonNode fromUserNode = tree...
diff --git a/gerrit-httpd/src/main/java/com/google/gerrit/httpd/auth/become/BecomeAnyAccountLoginServlet.java b/gerrit-httpd/src/main/java/com/google/gerrit/httpd/auth/become/BecomeAnyAccountLoginServlet.java index a0b7cc321..c3f7de1c5 100644 --- a/gerrit-httpd/src/main/java/com/google/gerrit/httpd/auth/become/BecomeAn...
true
true
protected void doPost(final HttpServletRequest req, final HttpServletResponse rsp) throws IOException { rsp.setHeader("Expires", "Fri, 01 Jan 1980 00:00:00 GMT"); rsp.setHeader("Pragma", "no-cache"); rsp.setHeader("Cache-Control", "no-cache, must-revalidate"); final AuthResult res; if ("cre...
protected void doPost(final HttpServletRequest req, final HttpServletResponse rsp) throws IOException { rsp.setHeader("Expires", "Fri, 01 Jan 1980 00:00:00 GMT"); rsp.setHeader("Pragma", "no-cache"); rsp.setHeader("Cache-Control", "no-cache, must-revalidate"); final AuthResult res; if ("cre...
diff --git a/java/gadgets/src/main/java/org/apache/shindig/gadgets/servlet/MakeRequestHandler.java b/java/gadgets/src/main/java/org/apache/shindig/gadgets/servlet/MakeRequestHandler.java index 6615c2ad1..8bbecf71c 100644 --- a/java/gadgets/src/main/java/org/apache/shindig/gadgets/servlet/MakeRequestHandler.java +++ b/j...
true
true
protected HttpRequest buildHttpRequest(HttpServletRequest request) throws GadgetException { Uri url = validateUrl(request.getParameter(URL_PARAM)); HttpRequest req = new HttpRequest(url) .setMethod(getParameter(request, METHOD_PARAM, "GET")) .setContainer(getContainer(request)); setPostD...
protected HttpRequest buildHttpRequest(HttpServletRequest request) throws GadgetException { Uri url = validateUrl(request.getParameter(URL_PARAM)); HttpRequest req = new HttpRequest(url) .setMethod(getParameter(request, METHOD_PARAM, "GET")) .setContainer(getContainer(request)); setPostD...
diff --git a/src/main/java/com/minebans/minebansbungeecord/ConnectionListener.java b/src/main/java/com/minebans/minebansbungeecord/ConnectionListener.java index 7d33991..7ac5e6d 100755 --- a/src/main/java/com/minebans/minebansbungeecord/ConnectionListener.java +++ b/src/main/java/com/minebans/minebansbungeecord/Connect...
true
true
public void onProxyPing(ProxyPingEvent event){ try{ InetAddress address = event.getConnection().getAddress().getAddress(); ServerPing ping = event.getResponse(); if ((!address.isAnyLocalAddress() && address.getHostAddress().equals(InetAddress.getByName("minebans.com").getHostAddress())) || MineBansBunge...
public void onProxyPing(ProxyPingEvent event){ try{ InetAddress address = event.getConnection().getAddress().getAddress(); ServerPing ping = event.getResponse(); if ((!address.isAnyLocalAddress() && address.getHostAddress().equals(InetAddress.getByName("minebans.com").getHostAddress())) || MineBansBunge...
diff --git a/jpwgen/src/main/java/org/jpwgen/Main.java b/jpwgen/src/main/java/org/jpwgen/Main.java index 4eba1a0..697e434 100644 --- a/jpwgen/src/main/java/org/jpwgen/Main.java +++ b/jpwgen/src/main/java/org/jpwgen/Main.java @@ -1,108 +1,108 @@ // Copyright (c) Andrew Smith. All rights reserved. // The use and distri...
false
true
public static void main(String[] args) { CommandLineParser parser = new PosixParser(); HelpFormatter formatter = new HelpFormatter(); Options options = new Options(); options.addOption("l", "lowercase", false, "Include lowercase alpha characters"); options....
public static void main(String[] args) { CommandLineParser parser = new PosixParser(); HelpFormatter formatter = new HelpFormatter(); Options options = new Options(); options.addOption("l", "lowercase", false, "Include lowercase alpha characters"); options....
diff --git a/trunk/pwm/servlet/src/password/pwm/config/FormConfiguration.java b/trunk/pwm/servlet/src/password/pwm/config/FormConfiguration.java index 441e3fd8..c94a2036 100644 --- a/trunk/pwm/servlet/src/password/pwm/config/FormConfiguration.java +++ b/trunk/pwm/servlet/src/password/pwm/config/FormConfiguration.java @...
true
true
public void checkValue(final String value, final Locale locale) throws PwmDataValidationException, ChaiUnavailableException, PwmUnrecoverableException { //check if value is missing and required. if (required && (value == null || value.length() < 1)) { final ErrorInformation e...
public void checkValue(final String value, final Locale locale) throws PwmDataValidationException, ChaiUnavailableException, PwmUnrecoverableException { //check if value is missing and required. if (required && (value == null || value.length() < 1)) { final ErrorInformation e...
diff --git a/src/com/csipsimple/ui/WelcomeScreen.java b/src/com/csipsimple/ui/WelcomeScreen.java index a3cbe8e9..e8487009 100644 --- a/src/com/csipsimple/ui/WelcomeScreen.java +++ b/src/com/csipsimple/ui/WelcomeScreen.java @@ -1,386 +1,391 @@ /** * Copyright (C) 2010 Regis Montoya (aka r3gis - www.r3gis.fr) * This...
true
true
public void handleMessage(Message msg) { switch (msg.what) { case GET_LIB: setStepGetLibForDevice(); break; case DOWNLOAD_STARTED: setStepStartDownloading(); break; case UPDATE_DOWNLOAD_PROGRESS: DownloadProgress downloadProgress = (DownloadProgress) msg.obj; updateDownloadProgress...
public void handleMessage(Message msg) { switch (msg.what) { case GET_LIB: setStepGetLibForDevice(); break; case DOWNLOAD_STARTED: setStepStartDownloading(); break; case UPDATE_DOWNLOAD_PROGRESS: DownloadProgress downloadProgress = (DownloadProgress) msg.obj; updateDownloadProgress...
diff --git a/tests/java/org/python/expose/generate/TypeExposerTest.java b/tests/java/org/python/expose/generate/TypeExposerTest.java index 8b1e1bd8..ecffaae3 100644 --- a/tests/java/org/python/expose/generate/TypeExposerTest.java +++ b/tests/java/org/python/expose/generate/TypeExposerTest.java @@ -1,87 +1,87 @@ packag...
false
true
public void testMakeBuilder() throws Exception { ExposedTypeProcessor etp = new ExposedTypeProcessor(getClass().getClassLoader() .getResourceAsStream("org/python/expose/generate/SimpleExposed.class")); TypeBuilder t = etp.getTypeExposer().makeBuilder(); assertEquals("simpleex...
public void testMakeBuilder() throws Exception { ExposedTypeProcessor etp = new ExposedTypeProcessor(getClass().getClassLoader() .getResourceAsStream("org/python/expose/generate/SimpleExposed.class")); TypeBuilder t = etp.getTypeExposer().makeBuilder(); assertEquals("simpleex...
diff --git a/beam-waterradiance-processor/src/main/java/org/esa/beam/waterradiance/realoptimizers/LevMarNN.java b/beam-waterradiance-processor/src/main/java/org/esa/beam/waterradiance/realoptimizers/LevMarNN.java index c521f95..65af5c9 100644 --- a/beam-waterradiance-processor/src/main/java/org/esa/beam/waterradiance/r...
false
true
public int levmar_nn(int detector, double[] input, double[] output) { double view_zeni, azi_diff_hl, temperature, salinity, ozone; // @todo 2 tb/** can this be a field - check when all tests run green tb 2013-05-14 int SMILE; double surf_press, rayl_rel_mass_toa_tosa; doubl...
public int levmar_nn(int detector, double[] input, double[] output) { double view_zeni, azi_diff_hl, temperature, salinity, ozone; // @todo 2 tb/** can this be a field - check when all tests run green tb 2013-05-14 int SMILE; double surf_press, rayl_rel_mass_toa_tosa; doubl...
diff --git a/src/paulscode/android/mupen64plusae/persistent/PathPreference.java b/src/paulscode/android/mupen64plusae/persistent/PathPreference.java index e2c87da4..b2e35e33 100644 --- a/src/paulscode/android/mupen64plusae/persistent/PathPreference.java +++ b/src/paulscode/android/mupen64plusae/persistent/PathPreferenc...
true
true
protected Object onGetDefaultValue( TypedArray a, int index ) { String value = a.getString( index ); if( TextUtils.isEmpty( value ) ) { // Use storage directory if no default provided in XML file value = STORAGE_DIR; } else { ...
protected Object onGetDefaultValue( TypedArray a, int index ) { String value = a.getString( index ); if( TextUtils.isEmpty( value ) ) { // Use storage directory if no default provided in XML file value = STORAGE_DIR; } else { ...
diff --git a/src/dbc/opensearch/components/pti/PTIPoolAdm.java b/src/dbc/opensearch/components/pti/PTIPoolAdm.java index 14c94c63..4991148b 100644 --- a/src/dbc/opensearch/components/pti/PTIPoolAdm.java +++ b/src/dbc/opensearch/components/pti/PTIPoolAdm.java @@ -1,208 +1,209 @@ package dbc.opensearch.components.pti; ...
false
true
private void checkThreads()throws ClassNotFoundException, SQLException, NoSuchElementException, InterruptedException, RuntimeException { // log.debug( "Entering PTIPoolAdm.checkThreads()" ); Pair<FutureTask, Integer> vectorPair = null; int queueID; FutureTask future; ...
private void checkThreads()throws ClassNotFoundException, SQLException, NoSuchElementException, InterruptedException, RuntimeException { // log.debug( "Entering PTIPoolAdm.checkThreads()" ); Pair<FutureTask, Integer> vectorPair = null; int queueID; FutureTask future; ...
diff --git a/src/com/github/uchan_nos/c_helper/analysis/MyFileContentProvider.java b/src/com/github/uchan_nos/c_helper/analysis/MyFileContentProvider.java index 598bea6..9eebb5d 100644 --- a/src/com/github/uchan_nos/c_helper/analysis/MyFileContentProvider.java +++ b/src/com/github/uchan_nos/c_helper/analysis/MyFileCont...
true
true
public InternalFileContent getContentForInclusion(String originalFilePathString, IMacroDictionary macroDictionary) { logger.finest("MyFileContentProvider#getCOntentForInclusion(" + originalFilePathString + ", " + macroDictionary + ")"); logger.finest(" splitting file name: ...
public InternalFileContent getContentForInclusion(String originalFilePathString, IMacroDictionary macroDictionary) { logger.finest("MyFileContentProvider#getCOntentForInclusion(" + originalFilePathString + ", " + macroDictionary + ")"); logger.finest(" splitting file name: ...
diff --git a/src/main/java/ch/hszt/mdp/web/UsersController.java b/src/main/java/ch/hszt/mdp/web/UsersController.java index e9f5c95..674e230 100644 --- a/src/main/java/ch/hszt/mdp/web/UsersController.java +++ b/src/main/java/ch/hszt/mdp/web/UsersController.java @@ -1,164 +1,164 @@ package ch.hszt.mdp.web; import jav...
false
true
public String update(@PathVariable("id") int id, @Valid User user, BindingResult result, Model model, Principal principal,HttpSession session) { User origin = service.getUser(id); if (result.hasErrors()) { DateTimeFormatter fmt = DateTimeFormat.forPattern("yyyy-MM-dd"); ...
public String update(@PathVariable("id") int id, @Valid User user, BindingResult result, Model model, Principal principal,HttpSession session) { User origin = service.getUser(id); if (result.hasErrors()) { DateTimeFormatter fmt = DateTimeFormat.forPattern("yyyy-MM-dd"); ...
diff --git a/core/java/android/appwidget/AppWidgetProvider.java b/core/java/android/appwidget/AppWidgetProvider.java index 26712a10..f1bbedef 100755 --- a/core/java/android/appwidget/AppWidgetProvider.java +++ b/core/java/android/appwidget/AppWidgetProvider.java @@ -1,152 +1,150 @@ /* * Copyright (C) 2006 The Androi...
true
true
public void onReceive(Context context, Intent intent) { // Protect against rogue update broadcasts (not really a security issue, // just filter bad broacasts out so subclasses are less likely to crash). String action = intent.getAction(); if (AppWidgetManager.ACTION_APPWIDGET_UPDATE....
public void onReceive(Context context, Intent intent) { // Protect against rogue update broadcasts (not really a security issue, // just filter bad broacasts out so subclasses are less likely to crash). String action = intent.getAction(); if (AppWidgetManager.ACTION_APPWIDGET_UPDATE....
diff --git a/core/java/android/widget/RelativeLayout.java b/core/java/android/widget/RelativeLayout.java index 44cf9a41..00bc21e3 100644 --- a/core/java/android/widget/RelativeLayout.java +++ b/core/java/android/widget/RelativeLayout.java @@ -1,1373 +1,1373 @@ /* * Copyright (C) 2006 The Android Open Source Project ...
false
true
protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { if (mDirtyHierarchy) { mDirtyHierarchy = false; sortChildren(); } int myWidth = -1; int myHeight = -1; int width = 0; int height = 0; int widthMode = MeasureSpec...
protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { if (mDirtyHierarchy) { mDirtyHierarchy = false; sortChildren(); } int myWidth = -1; int myHeight = -1; int width = 0; int height = 0; int widthMode = MeasureSpec...
diff --git a/src/main/java/org/monstercraft/party/plugin/wrappers/Party.java b/src/main/java/org/monstercraft/party/plugin/wrappers/Party.java index ae814f4..1dbc217 100644 --- a/src/main/java/org/monstercraft/party/plugin/wrappers/Party.java +++ b/src/main/java/org/monstercraft/party/plugin/wrappers/Party.java @@ -1,1...
false
true
public String listMembers() { if (!isEmpty()) { int total = 0; String list = ""; for (Player p : members) { if (p.equals(owner)) { continue; } if (p.hasPermission("monsterparty.admin")) { continue; } total++; list += p.getName() + ", "; } String s = ChatColor.GREEN + ...
public String listMembers() { if (!isEmpty()) { int total = 0; String list = ""; for (Player p : members) { if (p.equals(owner)) { total++; continue; } if (p.hasPermission("monsterparty.admin")) { continue; } total++; list += p.getName() + ", "; } String s = Chat...
diff --git a/frost-wot/source/frost/gui/DownloadTable.java b/frost-wot/source/frost/gui/DownloadTable.java index f33fddcc..73930a85 100644 --- a/frost-wot/source/frost/gui/DownloadTable.java +++ b/frost-wot/source/frost/gui/DownloadTable.java @@ -1,384 +1,385 @@ package frost.gui; import java.awt.Component; import...
false
true
public boolean addDownloadItem(FrostDownloadItemObject dlItem) { DownloadTableModel model = (DownloadTableModel)getModel(); for( int x=0; x<model.getRowCount(); x++ ) { FrostDownloadItemObject tableItem = (FrostDownloadItemObject)model.getRow(x); if( tableItem.get...
public boolean addDownloadItem(FrostDownloadItemObject dlItem) { DownloadTableModel model = (DownloadTableModel)getModel(); for( int x=0; x<model.getRowCount(); x++ ) { FrostDownloadItemObject tableItem = (FrostDownloadItemObject)model.getRow(x); if( tableItem.get...
diff --git a/plugins/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/nLayout/area/impl/RowArea.java b/plugins/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/nLayout/area/impl/RowArea.java index a4a3619f8..7f284ef1d 100644 --- a/plugins/org.eclipse.birt.report.engine/src/org/eclipse/...
true
true
protected void _splitSpanCell( int height, boolean force ) throws BirtException { if ( cells.length != children.size( ) ) { // split dummy cell for ( int i = 0; i < cells.length; i++ ) { if ( cells[i] instanceof DummyCell ) { int oh = ( (DummyCell) cells[i] ).getCell( ).getHeight( ); ...
protected void _splitSpanCell( int height, boolean force ) throws BirtException { if ( cells.length != children.size( ) ) { // split dummy cell for ( int i = 0; i < cells.length; i++ ) { if ( cells[i] instanceof DummyCell ) { int oh = ( (DummyCell) cells[i] ).getCell( ).getHeight( ); ...
diff --git a/src/edu/nrao/dss/client/FilterComboForm.java b/src/edu/nrao/dss/client/FilterComboForm.java index 93c0fe2..fdaf07a 100644 --- a/src/edu/nrao/dss/client/FilterComboForm.java +++ b/src/edu/nrao/dss/client/FilterComboForm.java @@ -1,119 +1,120 @@ package edu.nrao.dss.client; import java.util.HashMap; i...
true
true
private void createForm(){ FormPanel form = new FormPanel(); form.setHeading("Save Filter Combination"); form.setFrame(true); form.setWidth(350); final TextField<String> name = new TextField<String>(); name.setFieldLabel("Name"); name.setAllowBlank(false); form.add(name...
private void createForm(){ FormPanel form = new FormPanel(); form.setHeading("Save Filter Combination"); form.setFrame(true); form.setWidth(350); final TextField<String> name = new TextField<String>(); name.setFieldLabel("Name"); name.setAllowBlank(false); form.add(name...
diff --git a/P2Pnode/src/test/MegaTest.java b/P2Pnode/src/test/MegaTest.java index 70089d5..2ac0620 100644 --- a/P2Pnode/src/test/MegaTest.java +++ b/P2Pnode/src/test/MegaTest.java @@ -1,59 +1,59 @@ package test; import java.util.HashMap; import file.FileServer; public class MegaTest { public static void ma...
true
true
public static void main(String[] args) { String usr = "Marcin"; String thisIp = "192.168.80.132"; String bootstrapIp = "192.168.80.131"; int portOut= 6666; int portFile= 13267; int bootstrapPort= 2024; String fname="kuku"; String path="kuku//"; HashMap<String,User> users= new HashMap<String,User>(...
public static void main(String[] args) { String usr = "Marcin"; String thisIp = "192.168.80.132"; String bootstrapIp = "192.168.80.131"; int portOut= 6666; int portFile= 13267; int bootstrapPort= 1027; String fname="kuku"; String path="kuku//"; HashMap<String,User> users= new HashMap<String,User>(...
diff --git a/core/plugins/org.eclipse.dltk.core/typeinference/org/eclipse/dltk/ddp/TypeInferencer.java b/core/plugins/org.eclipse.dltk.core/typeinference/org/eclipse/dltk/ddp/TypeInferencer.java index a691cc33b..3428ca8aa 100644 --- a/core/plugins/org.eclipse.dltk.core/typeinference/org/eclipse/dltk/ddp/TypeInferencer....
false
true
public IEvaluatedType evaluateGoal(IGoal rootGoal, long timeLimit) { rootGoal = evaluatorFactory.translateGoal(rootGoal); if (rootGoal == null) return null; totalGoalsRequested++; if (isInStack(rootGoal)) { totalRecursiveRequests++; return RecursionTypeCall.INSTANCE; } IEvaluatedType lastObt...
public IEvaluatedType evaluateGoal(IGoal rootGoal, long timeLimit) { if (rootGoal == null) return null; rootGoal = evaluatorFactory.translateGoal(rootGoal); totalGoalsRequested++; if (isInStack(rootGoal)) { totalRecursiveRequests++; return RecursionTypeCall.INSTANCE; } IEvaluatedType lastObt...
diff --git a/GAE/src/org/waterforpeople/mapping/app/web/TestHarnessServlet.java b/GAE/src/org/waterforpeople/mapping/app/web/TestHarnessServlet.java index c4c129bca..99f3943a6 100644 --- a/GAE/src/org/waterforpeople/mapping/app/web/TestHarnessServlet.java +++ b/GAE/src/org/waterforpeople/mapping/app/web/TestHarnessServ...
true
true
public void doGet(HttpServletRequest req, HttpServletResponse resp) { String action = req.getParameter("action"); if ("setupTestUser".equals(action)) { setupTestUser(); } else if ("computeDistanceAlongBearing".equals(action)) { com.gallatinsystems.gis.coordinate.utilities.CoordinateUtilities cu = new Coord...
public void doGet(HttpServletRequest req, HttpServletResponse resp) { String action = req.getParameter("action"); if ("setupTestUser".equals(action)) { setupTestUser(); } else if ("computeDistanceAlongBearing".equals(action)) { com.gallatinsystems.gis.coordinate.utilities.CoordinateUtilities cu = new Coord...
diff --git a/src/main/java/com/hawkfalcon/deathswap/DeathSwap.java b/src/main/java/com/hawkfalcon/deathswap/DeathSwap.java index a2ca84b..901114e 100644 --- a/src/main/java/com/hawkfalcon/deathswap/DeathSwap.java +++ b/src/main/java/com/hawkfalcon/deathswap/DeathSwap.java @@ -1,161 +1,160 @@ package com.hawkfalcon.dea...
true
true
public void loadData() { File dataF = new File(getDataFolder(), "data.yml"); OutputStream out = null; InputStream defDataStream = getResource("data.yml"); if (!dataF.exists()) { try { getDataFolder().mkdir(); dataF.createNewFile(); ...
public void loadData() { File dataF = new File(getDataFolder(), "data.yml"); OutputStream out = null; InputStream defDataStream = getResource("data.yml"); if (!dataF.exists()) { try { getDataFolder().mkdir(); dataF.createNewFile(); ...
diff --git a/src/main/java/org/psjava/ds/graph/DirectedEdgeFactory.java b/src/main/java/org/psjava/ds/graph/DirectedEdgeFactory.java index f12d9a4..349a6d8 100644 --- a/src/main/java/org/psjava/ds/graph/DirectedEdgeFactory.java +++ b/src/main/java/org/psjava/ds/graph/DirectedEdgeFactory.java @@ -1,24 +1,24 @@ package ...
true
true
public static <V> DirectedEdge<V> create(final V from, final V to) { return new DirectedEdge<V>() { @Override public V to() { return to; } @Override public V from() { return from; } @Override public String toString() { return to + "->" + from; } }; }
public static <V> DirectedEdge<V> create(final V from, final V to) { return new DirectedEdge<V>() { @Override public V to() { return to; } @Override public V from() { return from; } @Override public String toString() { return from + "->" + to; } }; }
diff --git a/src/de/uni_koblenz/jgralab/greql2/funlib/LastEdge.java b/src/de/uni_koblenz/jgralab/greql2/funlib/LastEdge.java index ea9d7118f..a4b6b63eb 100644 --- a/src/de/uni_koblenz/jgralab/greql2/funlib/LastEdge.java +++ b/src/de/uni_koblenz/jgralab/greql2/funlib/LastEdge.java @@ -1,123 +1,123 @@ /* * JGraLab - T...
true
true
public JValue evaluate(Graph graph, AbstractGraphMarker<AttributedElement> subgraph, JValue[] arguments) throws EvaluateException { switch (checkArguments(arguments)) { case 0: return new JValueImpl(graph.getLastEdge()); case 1: Edge current = graph.getLastEdge(); JValueTypeCollection tc = argumen...
public JValue evaluate(Graph graph, AbstractGraphMarker<AttributedElement> subgraph, JValue[] arguments) throws EvaluateException { switch (checkArguments(arguments)) { case 0: return new JValueImpl(graph.getLastEdge()); case 1: Edge current = graph.getLastEdge(); JValueTypeCollection tc = argumen...
diff --git a/src/main/java/org/zeromq/ContextFactory.java b/src/main/java/org/zeromq/ContextFactory.java index 9354f19..0f54a78 100644 --- a/src/main/java/org/zeromq/ContextFactory.java +++ b/src/main/java/org/zeromq/ContextFactory.java @@ -1,17 +1,17 @@ package org.zeromq; import org.zeromq.ZMQ; import org.zeromq...
true
true
public static Context createContext(int ioThreads) { if(ioThreads < 0) { throw new IllegalArgumentException("ioThreads must be positive"); } return new ManagedContext(ZMQ.context(ioThreads)); }
public static Context createContext(int ioThreads) { if (ioThreads < 0) { throw new IllegalArgumentException("ioThreads must be positive"); } return new ManagedContext(ZMQ.context(ioThreads)); }
diff --git a/org.eclipse.jface.text/src/org/eclipse/jface/text/source/AnnotationPainter.java b/org.eclipse.jface.text/src/org/eclipse/jface/text/source/AnnotationPainter.java index c87ca8f5b..1bb533b00 100644 --- a/org.eclipse.jface.text/src/org/eclipse/jface/text/source/AnnotationPainter.java +++ b/org.eclipse.jface.t...
true
true
private synchronized void catchupWithModel(AnnotationModelEvent event) { if (fDecorationsMap != null) { int highlightAnnotationRangeStart= Integer.MAX_VALUE; int highlightAnnotationRangeEnd= -1; if (fModel != null) { boolean isWorldChange= false; Iterator e; if (event...
private synchronized void catchupWithModel(AnnotationModelEvent event) { if (fDecorationsMap != null) { int highlightAnnotationRangeStart= Integer.MAX_VALUE; int highlightAnnotationRangeEnd= -1; if (fModel != null) { boolean isWorldChange= false; Iterator e; if (event...
diff --git a/hazelcast/src/test/java/com/hazelcast/executor/ExecutorServiceTest.java b/hazelcast/src/test/java/com/hazelcast/executor/ExecutorServiceTest.java index 4ce8a6b92b..283ca6c872 100644 --- a/hazelcast/src/test/java/com/hazelcast/executor/ExecutorServiceTest.java +++ b/hazelcast/src/test/java/com/hazelcast/exe...
false
true
public void testStatsIssue2039() throws InterruptedException { final Config config = new Config(); final String name = "testStatsIssue2039"; config.addExecutorConfig(new ExecutorConfig(name).setQueueCapacity(1).setPoolSize(1)); final HazelcastInstance instance = createHazelcastInstan...
public void testStatsIssue2039() throws InterruptedException, ExecutionException, TimeoutException { final Config config = new Config(); final String name = "testStatsIssue2039"; config.addExecutorConfig(new ExecutorConfig(name).setQueueCapacity(1).setPoolSize(1)); final HazelcastIns...
diff --git a/java_src/com/ericsson/otp/erlang/OtpErlangTuple.java b/java_src/com/ericsson/otp/erlang/OtpErlangTuple.java index b3a1021..b97af5c 100644 --- a/java_src/com/ericsson/otp/erlang/OtpErlangTuple.java +++ b/java_src/com/ericsson/otp/erlang/OtpErlangTuple.java @@ -1,261 +1,261 @@ /* * %CopyrightBegin% * ...
false
true
public OtpErlangTuple(OtpErlangObject[] elems, final int start, final int count) { if (elems == null) { throw new java.lang.IllegalArgumentException( "Tuple content can't be null"); } else if (count < 1) { elems = NO_ELEMENTS; } else { this.elems = new OtpErlangObject[count]; for (...
public OtpErlangTuple(final OtpErlangObject[] elems, final int start, final int count) { if (elems == null) { throw new java.lang.IllegalArgumentException( "Tuple content can't be null"); } else if (count < 1) { this.elems = NO_ELEMENTS; } else { this.elems = new OtpErlangObject[count];...
diff --git a/src/main/java/grisu/gricli/command/SetCommand.java b/src/main/java/grisu/gricli/command/SetCommand.java index 18d7d61..287c6d4 100644 --- a/src/main/java/grisu/gricli/command/SetCommand.java +++ b/src/main/java/grisu/gricli/command/SetCommand.java @@ -1,165 +1,165 @@ package grisu.gricli.command; impor...
true
true
private void validate(GricliEnvironment env) throws GricliRuntimeException { if (Constants.QUEUE_KEY.equals(global)) { if (StringUtils.isBlank(values[0]) || Constants.NO_SUBMISSION_LOCATION_INDICATOR_STRING .equals(values[0])) { return; } JobDescription j = env.getJob(); Map<JobSubmission...
private void validate(GricliEnvironment env) throws GricliRuntimeException { if (Constants.QUEUE_KEY.equals(global)) { if (StringUtils.isBlank(values[0]) || Constants.NO_SUBMISSION_LOCATION_INDICATOR_STRING .equals(values[0])) { return; } JobDescription j = env.getJob(); Map<JobSubmission...
diff --git a/netbout/netbout-inf/src/main/java/com/netbout/inf/lattice/LatticeBuilder.java b/netbout/netbout-inf/src/main/java/com/netbout/inf/lattice/LatticeBuilder.java index db80d8c50..1af9bae80 100644 --- a/netbout/netbout-inf/src/main/java/com/netbout/inf/lattice/LatticeBuilder.java +++ b/netbout/netbout-inf/src/m...
true
true
public LatticeBuilder fill(final Collection<Long> numbers) { synchronized (this.mutex) { this.main.clear(0, BitsetLattice.BITS); long previous = Long.MAX_VALUE; for (Long num : numbers) { if (num == previous) { throw new IllegalArgument...
public LatticeBuilder fill(final Collection<Long> numbers) { synchronized (this.mutex) { this.main.clear(0, BitsetLattice.BITS); long previous = Long.MAX_VALUE; for (Long num : numbers) { if (num == previous) { throw new IllegalArgument...
diff --git a/src/plugins/jingle/src/java/org/jivesoftware/sparkplugin/JinglePlugin.java b/src/plugins/jingle/src/java/org/jivesoftware/sparkplugin/JinglePlugin.java index a64b7332..5945b8e0 100644 --- a/src/plugins/jingle/src/java/org/jivesoftware/sparkplugin/JinglePlugin.java +++ b/src/plugins/jingle/src/java/org/jive...
false
true
public void initialize() { // Add to PhoneManager PhoneManager.getInstance().addPhone(this); // Adds a tab handler. SparkManager.getChatManager().addSparkTabHandler(new JingleTabHandler()); final SwingWorker jingleLoadingThread = new SwingWorker() { public Objec...
public void initialize() { // Add to PhoneManager PhoneManager.getInstance().addPhone(this); // Adds a tab handler. SparkManager.getChatManager().addSparkTabHandler(new JingleTabHandler()); final SwingWorker jingleLoadingThread = new SwingWorker() { public Objec...
diff --git a/game/screen/ScreenLoadMap.java b/game/screen/ScreenLoadMap.java index 2795994..b099ce4 100644 --- a/game/screen/ScreenLoadMap.java +++ b/game/screen/ScreenLoadMap.java @@ -1,180 +1,180 @@ package game.screen; import game.Game; import game.Map; import game.tile.Tile; import game.utils.FileSaver; imp...
false
true
public void render(Graphics g) { drawBackgroundScreen(); game.getFontRenderer().drawString("Select map to load", 32, 32, 2); //MAP BOX CONTAINER ScreenTools.drawButton(32,52,300,Game.HEIGHT-128," ",g,game); //LEVEL/CUSTOM SWITCHER ScreenTools.drawButton(32,540,100,32,"Levels",g,game, new Color(0,...
public void render(Graphics g) { drawBackgroundScreen(); game.getFontRenderer().drawString("Select map to load", 32, 32, 2); //MAP BOX CONTAINER ScreenTools.drawButton(32,52,300,game.getHeight()-128," ",g,game); //LEVEL/CUSTOM SWITCHER ScreenTools.drawButton(32,game.getHeight()-50,100,32,"Levels"...
diff --git a/svnkit/src/main/java/org/tmatesoft/svn/core/internal/wc/SVNPath.java b/svnkit/src/main/java/org/tmatesoft/svn/core/internal/wc/SVNPath.java index 0cc08fd14..51296da68 100644 --- a/svnkit/src/main/java/org/tmatesoft/svn/core/internal/wc/SVNPath.java +++ b/svnkit/src/main/java/org/tmatesoft/svn/core/internal...
true
true
private void parsePegRevision(boolean use) throws SVNException { int index = myTarget.lastIndexOf('@'); if (index > 0) { String revStr = myTarget.substring(index + 1); if (revStr.indexOf('/') >= 0) { return; } if (revStr.length() == 0) ...
private void parsePegRevision(boolean use) throws SVNException { int index = myTarget.lastIndexOf('@'); if (index > 0) { String revStr = myTarget.substring(index + 1); if (revStr.indexOf('/') >= 0) { return; } if (revStr.length() == 0) ...
diff --git a/src/net/sf/freecol/client/gui/action/ZoomOutAction.java b/src/net/sf/freecol/client/gui/action/ZoomOutAction.java index 29d1fa620..0a7c56ba8 100644 --- a/src/net/sf/freecol/client/gui/action/ZoomOutAction.java +++ b/src/net/sf/freecol/client/gui/action/ZoomOutAction.java @@ -1,101 +1,101 @@ /** * Copyr...
true
true
public void actionPerformed(ActionEvent e) { ImageLibrary im = getFreeColClient().getImageLibrary(); float oldScaling = im.getScalingFactor(); try { im = im.getScaledImageLibrary(oldScaling - 1/4f); } catch (Exception ex) { logger.warning("Failed to retrieve s...
public void actionPerformed(ActionEvent e) { ImageLibrary im = getFreeColClient().getGUI().getImageLibrary(); float oldScaling = im.getScalingFactor(); try { im = im.getScaledImageLibrary(oldScaling - 1/4f); } catch (Exception ex) { logger.warning("Failed to r...
diff --git a/gui/src/main/java/org/jboss/as/console/client/shared/subsys/modcluster/ModclusterView.java b/gui/src/main/java/org/jboss/as/console/client/shared/subsys/modcluster/ModclusterView.java index 2f001d96..7a4f94a9 100644 --- a/gui/src/main/java/org/jboss/as/console/client/shared/subsys/modcluster/ModclusterView...
false
true
public Widget createWidget() { form = new ModclusterForm(presenter); CheckBoxItem advertise = new CheckBoxItem("advertise", "Advertise"); TextBoxItem advertiseSocket = new TextBoxItem("advertiseSocket", "Advertise Socket"); TextBoxItem advertiseKey= new TextBoxItem("advertiseKey",...
public Widget createWidget() { form = new ModclusterForm(presenter); CheckBoxItem advertise = new CheckBoxItem("advertise", "Advertise"); TextBoxItem advertiseSocket = new TextBoxItem("advertiseSocket", "Advertise Socket"); TextBoxItem advertiseKey= new TextBoxItem("advertiseKey",...
diff --git a/distribution/src/main/java/samples/schema/ParseSchema.java b/distribution/src/main/java/samples/schema/ParseSchema.java index 41f262e..6fe7173 100644 --- a/distribution/src/main/java/samples/schema/ParseSchema.java +++ b/distribution/src/main/java/samples/schema/ParseSchema.java @@ -1,155 +1,155 @@ /* Cop...
true
true
public static void main(String[] args) { SchemaParser parser = new SchemaParser(); Schema schema = parser.parse("samples/xsd/human-resources.xsd"); out("-------------- Schema Information --------------"); out(" Schema TargetNamespace: " + schema.getTargetNamespace()); out(" AttributeFormDefault: " + schem...
public static void main(String[] args) { SchemaParser parser = new SchemaParser(); Schema schema = parser.parse("samples/xsd/human-resources.xsd"); out("-------------- Schema Information --------------"); out(" Schema TargetNamespace: " + schema.getTargetNamespace()); out(" AttributeFormDefault: " + schem...
diff --git a/org.eclipse.mylyn.ide.ui/src/org/eclipse/mylyn/internal/ide/xml/ant/AntEditingMonitor.java b/org.eclipse.mylyn.ide.ui/src/org/eclipse/mylyn/internal/ide/xml/ant/AntEditingMonitor.java index 9e764215b..ecf2aa21b 100644 --- a/org.eclipse.mylyn.ide.ui/src/org/eclipse/mylyn/internal/ide/xml/ant/AntEditingMonit...
true
true
protected void handleWorkbenchPartSelection(IWorkbenchPart part, ISelection selection, boolean contributeToContext) { if (part instanceof AntEditor) { TextSelection textSelection = null; IEditorInput in = null; // assume that we are editing an xml file due to the editor used // this is the build.xml an...
protected void handleWorkbenchPartSelection(IWorkbenchPart part, ISelection selection, boolean contributeToContext) { if (part instanceof AntEditor) { TextSelection textSelection = null; IEditorInput in = null; // assume that we are editing an xml file due to the editor used // this is the build.xml an...
diff --git a/src/Core/org/objectweb/proactive/core/config/xml/ProActiveConfigurationParser.java b/src/Core/org/objectweb/proactive/core/config/xml/ProActiveConfigurationParser.java index 8d002c116..72af6a5df 100644 --- a/src/Core/org/objectweb/proactive/core/config/xml/ProActiveConfigurationParser.java +++ b/src/Core/o...
false
true
public static Properties parse(String filename, Properties properties) { if (properties == null) { properties = new Properties(); } InputSource source = null; try { //System.out.println("FILENAME = " + filename); if (filename.startsWith("bundle://...
public static Properties parse(String filename, Properties properties) { if (properties == null) { properties = new Properties(); } InputSource source = null; try { //System.out.println("FILENAME = " + filename); if (filename.startsWith("bundle://...
diff --git a/component/ecmadmin/src/main/java/org/exoplatform/management/ecmadmin/operations/view/ViewImportResource.java b/component/ecmadmin/src/main/java/org/exoplatform/management/ecmadmin/operations/view/ViewImportResource.java index 8ea4ce5a..dddc32df 100644 --- a/component/ecmadmin/src/main/java/org/exoplatform/...
true
true
public void execute(OperationContext operationContext, ResultHandler resultHandler) throws OperationException { // get attributes and attachement inputstream super.execute(operationContext, resultHandler); if (viewService == null) { viewService = operationContext.getRuntimeContext().getRuntimeCompo...
public void execute(OperationContext operationContext, ResultHandler resultHandler) throws OperationException { // get attributes and attachement inputstream super.execute(operationContext, resultHandler); if (viewService == null) { viewService = operationContext.getRuntimeContext().getRuntimeCompo...
diff --git a/android/src/com/google/zxing/client/android/camera/CameraManager.java b/android/src/com/google/zxing/client/android/camera/CameraManager.java index d35d991d..6a4113bd 100755 --- a/android/src/com/google/zxing/client/android/camera/CameraManager.java +++ b/android/src/com/google/zxing/client/android/camera/...
true
true
public Rect getFramingRect() { if (framingRect == null) { if (camera == null) { return null; } Point screenResolution = configManager.getScreenResolution(); int width = screenResolution.x * 3 / 4; if (width < MIN_FRAME_WIDTH) { width = MIN_FRAME_WIDTH; } else if...
public Rect getFramingRect() { if (framingRect == null) { if (camera == null) { return null; } Point screenResolution = configManager.getScreenResolution(); if (screenResolution == null) { // Called early, before init even finished return null; } int wid...
diff --git a/openejb/container/openejb-core/src/main/java/org/apache/openejb/util/OpenEJBScripter.java b/openejb/container/openejb-core/src/main/java/org/apache/openejb/util/OpenEJBScripter.java index b28ad8c89..7f1d02d6a 100644 --- a/openejb/container/openejb-core/src/main/java/org/apache/openejb/util/OpenEJBScripter....
true
true
private static void bindLocal(final ScriptContext context) { final Bindings bindings = context.getBindings(ScriptContext.ENGINE_SCOPE); Map<String, Object> beans = new HashMap<String, Object>(); bindings.put("beans", beans); final ContainerSystem cs = SystemInstance.get().getCompon...
private static void bindLocal(final ScriptContext context) { final Bindings bindings = context.getBindings(ScriptContext.ENGINE_SCOPE); Map<String, Object> beans = new HashMap<String, Object>(); bindings.put("beans", beans); final ContainerSystem cs = SystemInstance.get().getCompon...
diff --git a/src/main/java/com/edwardhand/mobrider/commands/CommandManager.java b/src/main/java/com/edwardhand/mobrider/commands/CommandManager.java index 7843733..92fbb94 100644 --- a/src/main/java/com/edwardhand/mobrider/commands/CommandManager.java +++ b/src/main/java/com/edwardhand/mobrider/commands/CommandManager....
true
true
public boolean dispatch(CommandSender sender, Command command, String label, String[] args) { if (args.length < 1) { return false; } else if (!isRider(sender)) { return true; } String input = label + " "; for (String s : args) { ...
public boolean dispatch(CommandSender sender, Command command, String label, String[] args) { if (args.length < 1) { return false; } else if (!isRider(sender)) { return true; } String input = label + " "; for (String s : args) { ...
diff --git a/core/src/main/java/org/kohsuke/stapler/EvaluationTrace.java b/core/src/main/java/org/kohsuke/stapler/EvaluationTrace.java index 69bf526ac..bb80f73d9 100644 --- a/core/src/main/java/org/kohsuke/stapler/EvaluationTrace.java +++ b/core/src/main/java/org/kohsuke/stapler/EvaluationTrace.java @@ -1,62 +1,62 @@ ...
true
true
public void trace(StaplerResponse rsp, String msg) { traces.add(msg); // Firefox Live HTTP header plugin cannot nicely render multiple headers // with the same name, so give each one unique name. rsp.addHeader(String.format("Stapler-Trace-%03d",traces.size()),msg); }
public void trace(StaplerResponse rsp, String msg) { traces.add(msg); // Firefox Live HTTP header plugin cannot nicely render multiple headers // with the same name, so give each one unique name. rsp.addHeader(String.format("Stapler-Trace-%03d",traces.size()),msg.replace("\n","\\n")....
diff --git a/gedcomx-common/src/test/java/org/gedcomx/types/TypesTest.java b/gedcomx-common/src/test/java/org/gedcomx/types/TypesTest.java index 2719fafd..4e1e84c1 100644 --- a/gedcomx-common/src/test/java/org/gedcomx/types/TypesTest.java +++ b/gedcomx-common/src/test/java/org/gedcomx/types/TypesTest.java @@ -1,79 +1,7...
true
true
public void testToQNameURI() throws Exception { // NOTE: not a full test, but gets some code coverage assertEquals(AgePartType.fromQNameURI(AgePartType.Days.toQNameURI()).toQNameURI().toString(), "http://gedcomx.org/Days"); assertEquals(ConfidenceLevel.fromQNameURI(ConfidenceLevel.Possibly.toQNameURI())....
public void testToQNameURI() throws Exception { // NOTE: not a full test, but gets some code coverage assertEquals(AgePartType.fromQNameURI(AgePartType.Days.toQNameURI()).toQNameURI().toString(), "http://gedcomx.org/Days"); assertEquals(ConfidenceLevel.fromQNameURI(ConfidenceLevel.Possibly.toQNameURI())....
diff --git a/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/filesystems/impl/JarAccess.java b/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/filesystems/impl/JarAccess.java index 01bac6c59..dd652ea4c 100644 --- a/common/plugins/org.jboss.tools.common.model/src...
true
true
public String getContent(String path) { int size = 1024; byte b[] = new byte[size]; StringBuffer sb = new StringBuffer(); ZipFile jar = null; try { jar = getZipFile(); } catch (IOException e) { String error = "JarAccess: cannot load zip file for location " + templocation; //$NON-NLS-1$ errors.add(...
public String getContent(String path) { int size = 1024; byte b[] = new byte[size]; StringBuffer sb = new StringBuffer(); ZipFile jar = null; try { jar = getZipFile(); } catch (IOException e) { String error = "JarAccess: cannot load zip file for location " + templocation; //$NON-NLS-1$ errors.add(...
diff --git a/src/DSTCClassifier/src/dstc/SigDial2014Classifier.java b/src/DSTCClassifier/src/dstc/SigDial2014Classifier.java index 110b547..b89162b 100644 --- a/src/DSTCClassifier/src/dstc/SigDial2014Classifier.java +++ b/src/DSTCClassifier/src/dstc/SigDial2014Classifier.java @@ -1,178 +1,178 @@ package dstc; impor...
false
true
public static void main(String[] args) throws Exception { PrintStream oldout = System.out; File f = new File("log.txt"); System.setOut(new PrintStream(f)); SigDial2014Classifier classifier = new SigDial2014Classifier(); //Act /* String train = "../SigDial2014/scripts/res/dstc2_train_act"; Strin...
public static void main(String[] args) throws Exception { PrintStream oldout = System.out; File f = new File("log.txt"); System.setOut(new PrintStream(f)); SigDial2014Classifier classifier = new SigDial2014Classifier(); //Act /* String train = "../SigDial2014/scripts/res/dstc2_train_act"; Strin...
diff --git a/plugins/org.eclipse.sirius.ui/src/org/eclipse/sirius/ui/tools/internal/actions/export/ExportRepresentationsAction.java b/plugins/org.eclipse.sirius.ui/src/org/eclipse/sirius/ui/tools/internal/actions/export/ExportRepresentationsAction.java index 880fe2bde..4d294d688 100644 --- a/plugins/org.eclipse.sirius....
true
true
public ExportRepresentationsAction(final Session session, final Collection<DRepresentation> selectedRepresentations) { super("Export diagrams as images", AbstractUIPlugin.imageDescriptorFromPlugin(SiriusEditPlugin.ID, "/icons/full/others/image.gif")); this.session = session; this.selectedRep...
public ExportRepresentationsAction(final Session session, final Collection<DRepresentation> selectedRepresentations) { super(SiriusEditPlugin.INSTANCE.getString("exportRepresentationsAsImagesActionLabel"), AbstractUIPlugin.imageDescriptorFromPlugin(SiriusEditPlugin.ID, "/icons/full/others/image.gif")); ...
diff --git a/dropwizard-hibernate/src/main/java/com/codahale/dropwizard/hibernate/HibernateBundle.java b/dropwizard-hibernate/src/main/java/com/codahale/dropwizard/hibernate/HibernateBundle.java index be5fc179f..42ebe2ff4 100644 --- a/dropwizard-hibernate/src/main/java/com/codahale/dropwizard/hibernate/HibernateBundle....
true
true
public final void run(T configuration, Environment environment) throws Exception { final DatabaseConfiguration dbConfig = getDatabaseConfiguration(configuration); this.sessionFactory = sessionFactoryFactory.build(this, environment, dbConfig, entities); environment.jersey().addProvider(new Un...
public final void run(T configuration, Environment environment) throws Exception { final DatabaseConfiguration dbConfig = getDatabaseConfiguration(configuration); this.sessionFactory = sessionFactoryFactory.build(this, environment, dbConfig, entities); environment.jersey().addProvider(new Un...
diff --git a/src/com/android/gallery3d/ui/DialogDetailsView.java b/src/com/android/gallery3d/ui/DialogDetailsView.java index 07ebc3c..adc9de1 100644 --- a/src/com/android/gallery3d/ui/DialogDetailsView.java +++ b/src/com/android/gallery3d/ui/DialogDetailsView.java @@ -1,250 +1,250 @@ /* * Copyright (C) 2011 The Andr...
true
true
private void setDetails(Context context, MediaDetails details) { for (Entry<Integer, Object> detail : details) { String value; switch (detail.getKey()) { case MediaDetails.INDEX_LOCATION: { double[] latlng = (double[]) detai...
private void setDetails(Context context, MediaDetails details) { for (Entry<Integer, Object> detail : details) { String value; switch (detail.getKey()) { case MediaDetails.INDEX_LOCATION: { double[] latlng = (double[]) detai...
diff --git a/dspace-xmlui/dspace-xmlui-api/src/main/java/org/dspace/app/xmlui/aspect/eperson/ForgotPasswordFinished.java b/dspace-xmlui/dspace-xmlui-api/src/main/java/org/dspace/app/xmlui/aspect/eperson/ForgotPasswordFinished.java index 2b041dc3b..e7ee793e1 100644 --- a/dspace-xmlui/dspace-xmlui-api/src/main/java/org/d...
true
true
public void addBody(Body body) throws WingException { Division reset = body.addDivision("password-reset", "primary"); reset.setHead(T_head); EPersonUtils.forgottProgressList(reset, 3); reset.addPara(T_para1); reset.addPara().addXref(con...
public void addBody(Body body) throws WingException { Division reset = body.addDivision("password-reset", "primary"); reset.setHead(T_head); EPersonUtils.forgottProgressList(reset, 3); reset.addPara(T_para1); reset.addPara().addXref(con...
diff --git a/src/DVN-web/src/edu/harvard/hmdc/vdcnet/web/servlet/ErrorPageServlet.java b/src/DVN-web/src/edu/harvard/hmdc/vdcnet/web/servlet/ErrorPageServlet.java index 6ad579736..89bea179f 100644 --- a/src/DVN-web/src/edu/harvard/hmdc/vdcnet/web/servlet/ErrorPageServlet.java +++ b/src/DVN-web/src/edu/harvard/hmdc/vdcn...
false
true
public void service(HttpServletRequest req, HttpServletResponse res) throws IOException { FacesContext facescontext = FacesContext.getCurrentInstance(); String cause = new String(); Exception exception = (Exception) req.getAttribute("exception"); String virtualPath = (String) req.ge...
public void service(HttpServletRequest req, HttpServletResponse res) throws IOException { FacesContext facescontext = FacesContext.getCurrentInstance(); String cause = new String(); Exception exception = (Exception) req.getAttribute("exception"); String virtualPath = (String) req.ge...
diff --git a/vraptor-core/src/main/java/br/com/caelum/vraptor/interceptor/InstantiateInterceptor.java b/vraptor-core/src/main/java/br/com/caelum/vraptor/interceptor/InstantiateInterceptor.java index 77d1be14..f6f7b046 100644 --- a/vraptor-core/src/main/java/br/com/caelum/vraptor/interceptor/InstantiateInterceptor.java ...
false
true
public void intercept(InterceptorStack invocation, ControllerMethod method, Object instance) throws InterceptionException { if (instance == null) { Class<?> type = method.getResource().getType(); instance = container.instanceFor(type); this.controllerInstance = new DefaultControllerInstance(instance); ...
public void intercept(InterceptorStack invocation, ControllerMethod method, Object instance) throws InterceptionException { if (instance == null) { Class<?> type = method.getResource().getType(); instance = container.instanceFor(type); } this.controllerInstance = new DefaultControllerInstance(instanc...
diff --git a/web/src/main/java/org/openmrs/web/controller/form/FormFormController.java b/web/src/main/java/org/openmrs/web/controller/form/FormFormController.java index 0f7ebc4c..33e5af1a 100644 --- a/web/src/main/java/org/openmrs/web/controller/form/FormFormController.java +++ b/web/src/main/java/org/openmrs/web/contr...
true
true
protected ModelAndView onSubmit(HttpServletRequest request, HttpServletResponse response, Object obj, BindException errors) throws Exception { HttpSession httpSession = request.getSession(); String view = getFormView(); if (Context.isAuthenticated()) { Form form = (Form) obj; MessageSourceAc...
protected ModelAndView onSubmit(HttpServletRequest request, HttpServletResponse response, Object obj, BindException errors) throws Exception { HttpSession httpSession = request.getSession(); String view = getFormView(); if (Context.isAuthenticated()) { Form form = (Form) obj; MessageSourceAc...
diff --git a/src/minecraft/org/getspout/spout/gui/about/GuiAbout.java b/src/minecraft/org/getspout/spout/gui/about/GuiAbout.java index 4307ffc2..61881aa5 100644 --- a/src/minecraft/org/getspout/spout/gui/about/GuiAbout.java +++ b/src/minecraft/org/getspout/spout/gui/about/GuiAbout.java @@ -1,412 +1,413 @@ package org....
true
true
public void drawScreen(int x, int y, float z) { super.drawBackground(0); GL11.glDisable(2896 /*GL_LIGHTING*/); GL11.glDisable(2912 /*GL_FOG*/); GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F); bg.setTopColor(background1); bg.setBottomColor(background2); bg.setY(30); bg.setHeight(this.height - 50); bg.setX(0);...
public void drawScreen(int x, int y, float z) { super.drawBackground(0); GL11.glDisable(2896 /*GL_LIGHTING*/); GL11.glDisable(2912 /*GL_FOG*/); GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F); bg.setTopColor(background1); bg.setBottomColor(background2); bg.setY(30); bg.setHeight(this.height - 50); bg.setX(0);...
diff --git a/beam-core/src/test/java/org/esa/beam/util/io/FileUtilsTest_RelativeUri.java b/beam-core/src/test/java/org/esa/beam/util/io/FileUtilsTest_RelativeUri.java index 676d087ab..9766a9471 100644 --- a/beam-core/src/test/java/org/esa/beam/util/io/FileUtilsTest_RelativeUri.java +++ b/beam-core/src/test/java/org/esa...
true
true
public void testRelativeOneDirHigher() throws IOException { final File deeperRootDir = new File(root, "oneDirDeeper"); final File twoDeeperRootDir = new File(deeperRootDir, "secondDirDeeper"); final File relativeFileTwoDirsHigher = new File(twoDeeperRootDir, "../../lsmf").getCanonicalFile();...
public void testRelativeOneDirHigher() throws IOException { final File deeperRootDir = new File(root, "oneDirDeeper"); final File twoDeeperRootDir = new File(deeperRootDir, "secondDirDeeper"); final File relativeFileTwoDirsHigher = new File(twoDeeperRootDir, "../../lsmf").getCanonicalFile();...