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/java/src/com/android/inputmethod/keyboard/KeyboardSwitcher.java b/java/src/com/android/inputmethod/keyboard/KeyboardSwitcher.java index 55041154..fbfde97e 100644 --- a/java/src/com/android/inputmethod/keyboard/KeyboardSwitcher.java +++ b/java/src/com/android/inputmethod/keyboard/KeyboardSwitcher.java @@ -1...
false
true
public void onKey(int code) { if (DEBUG_STATE) Log.d(TAG, "onKey: code=" + code + " switchState=" + mSwitchState + " pointers=" + getPointerCount()); switch (mSwitchState) { case SWITCH_STATE_MOMENTARY_ALPHA_AND_SYMBOL: // Only distinct multi touch...
public void onKey(int code) { if (DEBUG_STATE) Log.d(TAG, "onKey: code=" + code + " switchState=" + mSwitchState + " pointers=" + getPointerCount()); switch (mSwitchState) { case SWITCH_STATE_MOMENTARY_ALPHA_AND_SYMBOL: // Only distinct multi touch...
diff --git a/src/com/mrockey28/bukkit/ItemRepair/Repair.java b/src/com/mrockey28/bukkit/ItemRepair/Repair.java index b2265d2..03ecbac 100644 --- a/src/com/mrockey28/bukkit/ItemRepair/Repair.java +++ b/src/com/mrockey28/bukkit/ItemRepair/Repair.java @@ -1,122 +1,122 @@ package com.mrockey28.bukkit.ItemRepair; impo...
true
true
public void repairAll(Player player) { ArrayList<ItemStack> couldNotRepair = new ArrayList<ItemStack> (0); HashMap<String, Integer> durabilities = AutoRepairPlugin.getDurabilityCosts(); for (ItemStack item : player.getInventory().getContents()) { if (item == null || item.getType() == Material.AIR) ...
public void repairAll(Player player) { ArrayList<ItemStack> couldNotRepair = new ArrayList<ItemStack> (0); HashMap<String, Integer> durabilities = AutoRepairPlugin.getDurabilityCosts(); for (ItemStack item : player.getInventory().getContents()) { if (item == null || item.getType() == Material.AIR ||...
diff --git a/kundera-core/src/main/java/com/impetus/kundera/graph/ObjectGraphBuilder.java b/kundera-core/src/main/java/com/impetus/kundera/graph/ObjectGraphBuilder.java index ef240e5da..d9cdf4b22 100644 --- a/kundera-core/src/main/java/com/impetus/kundera/graph/ObjectGraphBuilder.java +++ b/kundera-core/src/main/java/c...
true
true
private Node getNode(Object entity, ObjectGraph graph, NodeState initialNodeState) { EntityMetadata entityMetadata = KunderaMetadataManager.getEntityMetadata(entity.getClass()); // entity metadata could be null. if (entityMetadata == null) { throw new IllegalArgumen...
private Node getNode(Object entity, ObjectGraph graph, NodeState initialNodeState) { EntityMetadata entityMetadata = KunderaMetadataManager.getEntityMetadata(entity.getClass()); // entity metadata could be null. if (entityMetadata == null) { throw new IllegalArgumen...
diff --git a/org.eclipse.egit.core/src/org/eclipse/egit/core/synchronize/dto/GitSynchronizeData.java b/org.eclipse.egit.core/src/org/eclipse/egit/core/synchronize/dto/GitSynchronizeData.java index 255aa5d8..f48f3654 100644 --- a/org.eclipse.egit.core/src/org/eclipse/egit/core/synchronize/dto/GitSynchronizeData.java +++...
false
true
public GitSynchronizeData(Repository repository, String srcRev, String dstRev, boolean includeLocal) throws IOException { isNotNull(repository); isNotNull(srcRev); isNotNull(dstRev); repo = repository; ObjectWalk ow = new ObjectWalk(repo); if (!srcRev.isEmpty()) this.srcRev = ow.parseCommit(repo.res...
public GitSynchronizeData(Repository repository, String srcRev, String dstRev, boolean includeLocal) throws IOException { isNotNull(repository); isNotNull(srcRev); isNotNull(dstRev); repo = repository; ObjectWalk ow = new ObjectWalk(repo); if (srcRev.length() > 0) this.srcRev = ow.parseCommit(repo.r...
diff --git a/omod/src/main/java/org/openmrs/module/iqchartimport/web/controller/StatusController.java b/omod/src/main/java/org/openmrs/module/iqchartimport/web/controller/StatusController.java index 64a9d29..488403f 100644 --- a/omod/src/main/java/org/openmrs/module/iqchartimport/web/controller/StatusController.java ++...
true
true
public void getProgress(HttpServletRequest request, HttpServletResponse response) throws IOException { Utils.checkSuperUser(); ImportTask task = TaskEngine.getCurrentTask(); StringBuilder json = new StringBuilder(); if (task != null) { EntityBuilder builder = task.getEntityBuilder(); String com...
public void getProgress(HttpServletRequest request, HttpServletResponse response) throws IOException { Utils.checkSuperUser(); ImportTask task = TaskEngine.getCurrentTask(); StringBuilder json = new StringBuilder(); if (task != null) { EntityBuilder builder = task.getEntityBuilder(); String com...
diff --git a/de.lmu.ifi.dbs.knowing.debug.core/src/de/lmu/ifi/dbs/knowing/debug/core/launching/DPULaunchConfigurationDelegate.java b/de.lmu.ifi.dbs.knowing.debug.core/src/de/lmu/ifi/dbs/knowing/debug/core/launching/DPULaunchConfigurationDelegate.java index 9933be22..7068a4ba 100644 --- a/de.lmu.ifi.dbs.knowing.debug.co...
true
true
public void launch(ILaunchConfiguration configuration, String mode, ILaunch launch, IProgressMonitor monitor) throws CoreException { monitor.subTask("Loading Data Processing Unit"); String projectName = configuration.getAttribute(DPU_PROJECT, (String) null); String relativePath = configuration.getAttribute(DPU_P...
public void launch(ILaunchConfiguration configuration, String mode, ILaunch launch, IProgressMonitor monitor) throws CoreException { monitor.subTask("Loading Data Processing Unit"); String projectName = configuration.getAttribute(DPU_PROJECT, (String) null); String relativePath = configuration.getAttribute(DPU_P...
diff --git a/source/de/anomic/plasma/plasmaCrawlWorker.java b/source/de/anomic/plasma/plasmaCrawlWorker.java index 6e7d5d844..3efe0ad8c 100644 --- a/source/de/anomic/plasma/plasmaCrawlWorker.java +++ b/source/de/anomic/plasma/plasmaCrawlWorker.java @@ -1,534 +1,535 @@ //plasmaCrawlWorker.java //---------------------...
true
true
private static void load( URL url, String name, String referer, String initiator, int depth, plasmaCrawlProfile.entry profile, int socketTimeout, String remoteProxyHost, int remoteProxyPort, bo...
private static void load( URL url, String name, String referer, String initiator, int depth, plasmaCrawlProfile.entry profile, int socketTimeout, String remoteProxyHost, int remoteProxyPort, bo...
diff --git a/easysoa-distribution/easysoa-distribution-startup-monitor/src/main/java/org/easysoa/startup/StartupMonitor.java b/easysoa-distribution/easysoa-distribution-startup-monitor/src/main/java/org/easysoa/startup/StartupMonitor.java index f3ccd3ae..a11d9a43 100644 --- a/easysoa-distribution/easysoa-distribution-s...
true
true
public static void main(String[] args) { // Port list Map<Integer, String> portsToCheck = new ConcurrentHashMap<Integer, String>(); portsToCheck.put(EasySOAConstants.WEB_PORT, "EasySOA home"); portsToCheck.put(EasySOAConstants.NUXEO_PORT, "Service registry"); portsTo...
public static void main(String[] args) { // Port list Map<Integer, String> portsToCheck = new ConcurrentHashMap<Integer, String>(); portsToCheck.put(EasySOAConstants.WEB_PORT, "EasySOA home"); portsToCheck.put(EasySOAConstants.NUXEO_PORT, "Service registry"); portsTo...
diff --git a/src/org/apache/xerces/dom/DeferredDocumentImpl.java b/src/org/apache/xerces/dom/DeferredDocumentImpl.java index d82d519a..27f23549 100644 --- a/src/org/apache/xerces/dom/DeferredDocumentImpl.java +++ b/src/org/apache/xerces/dom/DeferredDocumentImpl.java @@ -1,1572 +1,1572 @@ /* * The Apache Software Lic...
true
true
public DeferredNode getNodeObject(int nodeIndex) { // is there anything to do? if (nodeIndex == -1) { return null; } // get node type int chunk = nodeIndex >> CHUNK_SHIFT; int index = nodeIndex & CHUNK_MASK; int type = clearChunkIndex(fNodeType, ...
public DeferredNode getNodeObject(int nodeIndex) { // is there anything to do? if (nodeIndex == -1) { return null; } // get node type int chunk = nodeIndex >> CHUNK_SHIFT; int index = nodeIndex & CHUNK_MASK; int type = clearChunkIndex(fNodeType, ...
diff --git a/src/slug/soc/game/TerrianGenerator.java b/src/slug/soc/game/TerrianGenerator.java index 85395b7..4b89156 100644 --- a/src/slug/soc/game/TerrianGenerator.java +++ b/src/slug/soc/game/TerrianGenerator.java @@ -1,268 +1,268 @@ package slug.soc.game; import java.awt.Color; import java.awt.Point; import j...
false
true
private void generateRivers(int[][] intMap){ int sY = 39, sX = 60; int[][] hMap = new int[intMap.length][intMap.length]; for(int y = 0; y < intMap.length; y++){ for(int x = 0; x < intMap.length; x++){ hMap[y][x] = intMap[y][x]; if(intMap[y][x] > temperateTerrain.length){ hMap[y][x] = temperateTe...
private void generateRivers(int[][] intMap){ int sY = 39, sX = 60; int[][] hMap = new int[intMap.length][intMap.length]; for(int y = 0; y < intMap.length; y++){ for(int x = 0; x < intMap.length; x++){ hMap[y][x] = intMap[y][x]; if(intMap[y][x] > temperateTerrain.length){ hMap[y][x] = temperateTe...
diff --git a/swing/src/java/main/org/uncommons/watchmaker/swing/evolutionmonitor/EvolutionMonitor.java b/swing/src/java/main/org/uncommons/watchmaker/swing/evolutionmonitor/EvolutionMonitor.java index a31b1a4..4216edc 100644 --- a/swing/src/java/main/org/uncommons/watchmaker/swing/evolutionmonitor/EvolutionMonitor.java...
false
true
public EvolutionMonitor(final Renderer<? super T, JComponent> renderer) { if (SwingUtilities.isEventDispatchThread()) { init(renderer); } else { try { SwingUtilities.invokeAndWait(new Runnable() { ...
public EvolutionMonitor(final Renderer<? super T, JComponent> renderer) { if (SwingUtilities.isEventDispatchThread()) { init(renderer); } else { try { SwingUtilities.invokeAndWait(new Runnable() { ...
diff --git a/quercus/src/main/java/com/caucho/quercus/env/Post.java b/quercus/src/main/java/com/caucho/quercus/env/Post.java index 70c3420..036e75a 100644 --- a/quercus/src/main/java/com/caucho/quercus/env/Post.java +++ b/quercus/src/main/java/com/caucho/quercus/env/Post.java @@ -1,743 +1,743 @@ /* * Copyright (c) 1...
true
true
private static void readMultipartStream(Env env, MultipartStream ms, ArrayValue postArray, ArrayValue files, boolean addSlashesToValues, boolean isAllowUploads) throws IOException { ReadStream is; while ((is = ms.openRead()) != null) { ...
private static void readMultipartStream(Env env, MultipartStream ms, ArrayValue postArray, ArrayValue files, boolean addSlashesToValues, boolean isAllowUploads) throws IOException { ReadStream is; while ((is = ms.openRead()) != null) { ...
diff --git a/stripes/src/net/sourceforge/stripes/controller/multipart/CommonsMultipartWrapper.java b/stripes/src/net/sourceforge/stripes/controller/multipart/CommonsMultipartWrapper.java index 05065325..2b06cf47 100644 --- a/stripes/src/net/sourceforge/stripes/controller/multipart/CommonsMultipartWrapper.java +++ b/str...
false
true
public FileBean getFileParameterValue(String name) { final FileItem item = this.files.get(name); String filename = item.getName(); if (item == null || ((filename == null || filename.length() == 0) && item.getSize() == 0)) { return null; } else { // Att...
public FileBean getFileParameterValue(String name) { final FileItem item = this.files.get(name); if (item == null || ((item.getName() == null || item.getName().length() == 0) && item.getSize() == 0)) { return null; } else { // Attempt to ensure...
diff --git a/Mobile/BukuDroid/src/org/csie/mpp/buku/view/StreamManager.java b/Mobile/BukuDroid/src/org/csie/mpp/buku/view/StreamManager.java index b215e84..b5671b4 100644 --- a/Mobile/BukuDroid/src/org/csie/mpp/buku/view/StreamManager.java +++ b/Mobile/BukuDroid/src/org/csie/mpp/buku/view/StreamManager.java @@ -1,180 +...
true
true
protected void updateView() { final LinearLayout frame = getFrame(); if(streams != null) createView(frame); else { StringBuilder builder = new StringBuilder(); for(FriendEntry friend: FriendEntry.queryAll(rdb)) { if(builder.length() > 0) builder.append(","); builder.append(friend.id); ...
protected void updateView() { final LinearLayout frame = getFrame(); if(streams != null) createView(frame); else { StringBuilder builder = new StringBuilder(); for(FriendEntry friend: FriendEntry.queryAll(rdb)) { if(builder.length() > 0) builder.append(","); builder.append(friend.id); ...
diff --git a/maven-junithelper-plugin/src/main/java/org/junithelper/mavenplugin/AbstractJUnitHelperMojo.java b/maven-junithelper-plugin/src/main/java/org/junithelper/mavenplugin/AbstractJUnitHelperMojo.java index 3557642..afe8b93 100644 --- a/maven-junithelper-plugin/src/main/java/org/junithelper/mavenplugin/AbstractJU...
true
true
protected Configuration loadConfig() { Configuration config = new Configuration(); config.language = language; config.outputFileEncoding = outputFileEncoding; config.directoryPathOfProductSourceCode = directoryPathOfProductSourceCode; config.directoryPathOfTestSourceCode = directoryPathOfTestSourceCode; tr...
protected Configuration loadConfig() { Configuration config = new Configuration(); config.language = language; config.outputFileEncoding = outputFileEncoding; config.directoryPathOfProductSourceCode = directoryPathOfProductSourceCode; config.directoryPathOfTestSourceCode = directoryPathOfTestSourceCode; tr...
diff --git a/src/main/java/org/jahia/modules/myconnections/workflow/jbpm/UserConnectionTaskLifeCycleEventListener.java b/src/main/java/org/jahia/modules/myconnections/workflow/jbpm/UserConnectionTaskLifeCycleEventListener.java index 062efbc..b304640 100644 --- a/src/main/java/org/jahia/modules/myconnections/workflow/jb...
true
true
public void afterTaskAddedEvent(@Observes(notifyObserver = Reception.IF_EXISTS) @AfterTaskAddedEvent Task task) { Map<String, Object> taskInputParameters = getTaskInputParameters(task); Map<String, Object> taskOutputParameters = getTaskOutputParameters(task, taskInputParameters); PeopleAss...
public void afterTaskAddedEvent(@Observes(notifyObserver = Reception.IF_EXISTS) @AfterTaskAddedEvent Task task) { Map<String, Object> taskInputParameters = getTaskInputParameters(task); Map<String, Object> taskOutputParameters = getTaskOutputParameters(task, taskInputParameters); PeopleAss...
diff --git a/plugins/org.eclipse.gmf.codegen.ui/src/org/eclipse/gmf/internal/codegen/CodeGenUIPlugin.java b/plugins/org.eclipse.gmf.codegen.ui/src/org/eclipse/gmf/internal/codegen/CodeGenUIPlugin.java index 671383b36..f75165544 100644 --- a/plugins/org.eclipse.gmf.codegen.ui/src/org/eclipse/gmf/internal/codegen/CodeGen...
false
true
public static String formatMessage(String bundleStringKey, IStatus status) { if (status.isMultiStatus()) { IStatus[] children = status.getChildren(); StringBuffer sb = new StringBuffer(); // don't care about too nested statuses just because will switch to // jobs soon, with // required support already...
public static String formatMessage(String bundleStringKey, IStatus status) { if (status.isMultiStatus()) { IStatus[] children = status.getChildren(); StringBuffer sb = new StringBuffer(); // don't care about too nested statuses just because will switch to // jobs soon, with // required support already...
diff --git a/src/main/java/com/mmakowski/maven/plugins/specs2/Specs2RunnerMojo.java b/src/main/java/com/mmakowski/maven/plugins/specs2/Specs2RunnerMojo.java index 2eb5834..0a9ad0f 100644 --- a/src/main/java/com/mmakowski/maven/plugins/specs2/Specs2RunnerMojo.java +++ b/src/main/java/com/mmakowski/maven/plugins/specs2/S...
true
true
public void execute() throws MojoExecutionException, MojoFailureException { if (!(new Specs2Runner().runSpecs(getLog(), mavenProject, classesDirectory, testClassesDirectory))) throw new MojoFailureException("there have been errors/failures"); }
public void execute() throws MojoExecutionException, MojoFailureException { if (!(new Specs2Runner().runSpecs(getLog(), mavenProject, classesDirectory, testClassesDirectory).booleanValue())) throw new MojoFailureException("there have been errors/failures"); }
diff --git a/dry-validator/src/test/java/com/google/codes/dryvalidator/ValidationFromStruts.java b/dry-validator/src/test/java/com/google/codes/dryvalidator/ValidationFromStruts.java index ca80060..98bacfa 100644 --- a/dry-validator/src/test/java/com/google/codes/dryvalidator/ValidationFromStruts.java +++ b/dry-validat...
true
true
public void test() throws IOException, SAXException { InputStream in = this.getClass().getResourceAsStream("/validation.xml"); ValidatorResources resources = new ValidatorResources(in); Form form = resources.getForm(Locale.JAPANESE, "MemberForm"); for(Field field : (List<Field>)form.getFields()) { FormItem ...
public void test() throws IOException, SAXException { InputStream in = this.getClass().getResourceAsStream("/validation.xml"); ValidatorResources resources = new ValidatorResources(in); Form form = resources.getForm(Locale.JAPANESE, "MemberForm"); for(Field field : (List<Field>)form.getFields()) { FormItem ...
diff --git a/src/main/java/org/apache/tapestry5/contextmenu/services/ContextMenuModule.java b/src/main/java/org/apache/tapestry5/contextmenu/services/ContextMenuModule.java index 0f4d001..2c325f9 100644 --- a/src/main/java/org/apache/tapestry5/contextmenu/services/ContextMenuModule.java +++ b/src/main/java/org/apache/t...
true
true
public static void provideGridCellWorker( OrderedConfiguration<ComponentClassTransformWorker2> configuration, Environment environment) { configuration.add("GridCellWorker", new GridCellWorker(environment), "after:*"); }
public static void provideGridCellWorker( OrderedConfiguration<ComponentClassTransformWorker2> configuration, Environment environment) { configuration.add("GridCellWorker", new GridCellWorker(environment)); }
diff --git a/wikAPIdia-loader/src/main/java/org/wikapidia/dao/load/PhraseLoader.java b/wikAPIdia-loader/src/main/java/org/wikapidia/dao/load/PhraseLoader.java index e57542d4..be8d3f58 100644 --- a/wikAPIdia-loader/src/main/java/org/wikapidia/dao/load/PhraseLoader.java +++ b/wikAPIdia-loader/src/main/java/org/wikapidia/...
true
true
public static void main(String args[]) throws ClassNotFoundException, SQLException, IOException, ConfigurationException, WikapidiaException, DaoException { Options options = new Options(); options.addOption( new DefaultOptionBuilder() .hasArg() ...
public static void main(String args[]) throws ClassNotFoundException, SQLException, IOException, ConfigurationException, WikapidiaException, DaoException { Options options = new Options(); options.addOption( new DefaultOptionBuilder() .hasArg() ...
diff --git a/src/com/reeltwo/jumble/fast/JumbleTestSuite.java b/src/com/reeltwo/jumble/fast/JumbleTestSuite.java index dd27510..baf09ae 100644 --- a/src/com/reeltwo/jumble/fast/JumbleTestSuite.java +++ b/src/com/reeltwo/jumble/fast/JumbleTestSuite.java @@ -1,205 +1,205 @@ package com.reeltwo.jumble.fast; import j...
false
true
private Test[] getOrder() { Test first = null; String firstTestName = null; Set frontTestNames = new HashSet(); if (mCache != null) { firstTestName = mCache.getLastFailure(mClass, mMethod, mMethodRelativeMutationPoint); frontTestNames = mCache.getFailedTests(mClass, mMethod); } L...
private Test[] getOrder() { Test first = null; String firstTestName = null; Set frontTestNames = new HashSet(); if (mCache != null) { firstTestName = mCache.getLastFailure(mClass, mMethod, mMethodRelativeMutationPoint); frontTestNames = mCache.getFailedTests(mClass, mMethod); } L...
diff --git a/debug/org.eclipse.ptp.debug.core/src/org/eclipse/ptp/debug/internal/core/aif/AIFValueArray.java b/debug/org.eclipse.ptp.debug.core/src/org/eclipse/ptp/debug/internal/core/aif/AIFValueArray.java index b69262a48..5b6e44407 100644 --- a/debug/org.eclipse.ptp.debug.core/src/org/eclipse/ptp/debug/internal/core/...
false
true
public String toString() { String output = ""; for (int i=0; i<vals.length; i++) { if (vals[i] != null) { output += vals[i].toString(); if (i < vals.length - 1) output += " "; } } return output; }
public String toString() { String output = "["; for (int i=0; i<vals.length; i++) { if (vals[i] != null) { if (i > 0) output += ", "; output += vals[i].toString(); } } return output + "]"; }
diff --git a/src/java/soc/game/SOCBoard.java b/src/java/soc/game/SOCBoard.java index a984a5e8..d7446582 100644 --- a/src/java/soc/game/SOCBoard.java +++ b/src/java/soc/game/SOCBoard.java @@ -1,1752 +1,1759 @@ /** * Java Settlers - An online multiplayer version of the game Settlers of Catan * Copyright (C) 2003 Ro...
false
true
private final void makeNewBoard_placeHexes (int[] landHex, final int[] numPath, final int[] number, SOCGameOption optBC) { final boolean checkClumps = (optBC != null) && optBC.getBoolValue(); final int clumpSize = checkClumps ? optBC.getIntValue() : 0; boolean clumpsNotOK = check...
private final void makeNewBoard_placeHexes (int[] landHex, final int[] numPath, final int[] number, SOCGameOption optBC) { final boolean checkClumps = (optBC != null) && optBC.getBoolValue(); final int clumpSize = checkClumps ? optBC.getIntValue() : 0; boolean clumpsNotOK = check...
diff --git a/awsy-data-generator/Dumper.java b/awsy-data-generator/Dumper.java index 10f0377..5789aad 100644 --- a/awsy-data-generator/Dumper.java +++ b/awsy-data-generator/Dumper.java @@ -1,70 +1,70 @@ import java.io.InputStreamReader; import java.io.Reader; import java.math.BigInteger; import java.util.Map; impo...
true
true
private long calculateHeapUnclassified( JsonObject memDump ) { long knownHeap = 0; JsonArray reports = (JsonArray)memDump.getValue( "reports" ); for (int i = reports.size() - 1; i >= 0; i--) { JsonObject report = (JsonObject)reports.getValue( i ); String path = (Strin...
private long calculateHeapUnclassified( JsonObject memDump ) { long knownHeap = 0; JsonArray reports = (JsonArray)memDump.getValue( "reports" ); for (int i = reports.size() - 1; i >= 0; i--) { JsonObject report = (JsonObject)reports.getValue( i ); String path = (Strin...
diff --git a/usermanagement/hibernate/src/main/java/woko/ext/usermanagement/hibernate/HibernateUserManager.java b/usermanagement/hibernate/src/main/java/woko/ext/usermanagement/hibernate/HibernateUserManager.java index 995642fe..eb642471 100644 --- a/usermanagement/hibernate/src/main/java/woko/ext/usermanagement/hibern...
true
true
protected User createUser(String username, String password, List<String> roles) { Session session = hibernateStore.getSessionFactory().getCurrentSession(); Transaction tx = session.beginTransaction(); try { User u = getUserByUsername(username); if (u==null) { ...
protected User createUser(String username, String password, List<String> roles) { Session session = hibernateStore.getSessionFactory().getCurrentSession(); Transaction tx = session.beginTransaction(); try { User u = getUserByUsername(username); if (u==null) { ...
diff --git a/extensions/gdx-tools/src/com/badlogic/gdx/tools/imagepacker/TexturePacker2.java b/extensions/gdx-tools/src/com/badlogic/gdx/tools/imagepacker/TexturePacker2.java index f94b37583..675112062 100644 --- a/extensions/gdx-tools/src/com/badlogic/gdx/tools/imagepacker/TexturePacker2.java +++ b/extensions/gdx-tool...
true
true
private void writeImages (File outputDir, Array<Page> pages, String packFileName) { String imageName = packFileName; int dotIndex = imageName.lastIndexOf('.'); if (dotIndex != -1) imageName = imageName.substring(0, dotIndex); int fileIndex = 0; for (Page page : pages) { int width = page.width, height = p...
private void writeImages (File outputDir, Array<Page> pages, String packFileName) { String imageName = packFileName; int dotIndex = imageName.lastIndexOf('.'); if (dotIndex != -1) imageName = imageName.substring(0, dotIndex); int fileIndex = 0; for (Page page : pages) { int width = page.width, height = p...
diff --git a/src/main/java/com/trickl/crawler/robot/xslt/XsltWorker.java b/src/main/java/com/trickl/crawler/robot/xslt/XsltWorker.java index fba29cf..974e6ec 100644 --- a/src/main/java/com/trickl/crawler/robot/xslt/XsltWorker.java +++ b/src/main/java/com/trickl/crawler/robot/xslt/XsltWorker.java @@ -1,73 +1,77 @@ /* ...
true
true
public void execute(T task) throws DroidsException, IOException { final String userAgent = this.getClass().getCanonicalName(); logger.log(Level.FINE, "Starting {0}", userAgent); URI uri = task.getURI(); final Protocol protocol = task.getProtocol(); if (droid.getForceAllow()...
public void execute(T task) throws DroidsException, IOException { final String userAgent = this.getClass().getCanonicalName(); logger.log(Level.FINE, "Starting {0}", userAgent); URI uri = task.getURI(); final Protocol protocol = task.getProtocol(); if (droid.getForceAllow()...
diff --git a/Core/SDK/org.emftext.sdk.codegen.resource/src/org/emftext/sdk/codegen/resource/generators/mopp/TaskItemBuilderGenerator.java b/Core/SDK/org.emftext.sdk.codegen.resource/src/org/emftext/sdk/codegen/resource/generators/mopp/TaskItemBuilderGenerator.java index fbaa3aa30..ddfaae322 100644 --- a/Core/SDK/org.em...
false
true
private void addBuildMethod(JavaComposite sc) { sc.add("public void build(" + I_FILE + " resource, " + RESOURCE_SET + " resourceSet, " + I_PROGRESS_MONITOR + " monitor) {"); sc.add("monitor.setTaskName(\"Searching for task items\");"); sc.add("new " + markerHelperClassName + "().removeAllMarkers(resource, " + I_...
private void addBuildMethod(JavaComposite sc) { sc.add("public void build(" + I_FILE + " resource, " + RESOURCE_SET + " resourceSet, " + I_PROGRESS_MONITOR + " monitor) {"); sc.add("monitor.setTaskName(\"Searching for task items\");"); sc.add("new " + markerHelperClassName + "().removeAllMarkers(resource, " + I_...
diff --git a/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/history/GitHistoryPage.java b/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/history/GitHistoryPage.java index 47d10b85..efc5ea61 100644 --- a/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/history/GitHistoryPage.java +++ b/org.eclipse.egit.u...
true
true
public boolean inputSet() { try { if (trace) GitTraceLocation.getTrace().traceEntry( GitTraceLocation.HISTORYVIEW.getLocation()); if (this.input != null) return true; cancelRefreshJob(); setErrorMessage(null); Object o = super.getInput(); if (o == null) { setErrorMessage(UIText.G...
public boolean inputSet() { try { if (trace) GitTraceLocation.getTrace().traceEntry( GitTraceLocation.HISTORYVIEW.getLocation()); if (this.input != null) return true; cancelRefreshJob(); setErrorMessage(null); Object o = super.getInput(); if (o == null) { setErrorMessage(UIText.G...
diff --git a/messageforums-app/src/java/org/sakaiproject/tool/messageforums/jsf/ShowAreaRender.java b/messageforums-app/src/java/org/sakaiproject/tool/messageforums/jsf/ShowAreaRender.java index f8c411f9..15e78108 100644 --- a/messageforums-app/src/java/org/sakaiproject/tool/messageforums/jsf/ShowAreaRender.java +++ b/...
true
true
public void encodeBegin(FacesContext context, UIComponent component) throws IOException { ResponseWriter writer = context.getResponseWriter(); String value = (String) component.getAttributes().get("value"); if((value!=null) && (!value.equals(""))) { int pos; // writer.write("<...
public void encodeBegin(FacesContext context, UIComponent component) throws IOException { ResponseWriter writer = context.getResponseWriter(); String value = (String) component.getAttributes().get("value"); if((value!=null) && (!value.equals(""))) { int pos; // writer.write("<...
diff --git a/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/project/ExportHelper.java b/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/project/ExportHelper.java index 7e9599939..fa97b5921 100644 --- a/eclipse/plugins/com.android.ide.eclipse.adt...
true
true
public static void exportReleaseApk(IProject project, File outputFile, PrivateKey key, X509Certificate certificate, IProgressMonitor monitor) throws CoreException { // the export, takes the output of the precompiler & Java builders so it's // important to call build in case the auto-bui...
public static void exportReleaseApk(IProject project, File outputFile, PrivateKey key, X509Certificate certificate, IProgressMonitor monitor) throws CoreException { // the export, takes the output of the precompiler & Java builders so it's // important to call build in case the auto-bui...
diff --git a/src/cnt/demo/NetworkingDemo.java b/src/cnt/demo/NetworkingDemo.java index 1133d18..aa23b77 100644 --- a/src/cnt/demo/NetworkingDemo.java +++ b/src/cnt/demo/NetworkingDemo.java @@ -1,130 +1,130 @@ /** * Coop Network Tetris — A cooperative tetris over the Internet. * * Copyright © 2012 Calle Lejdbra...
false
true
public static void main(final String... args) throws Exception { final int PORT = 9999; final ServerSocket server = new ServerSocket(PORT); final Thread thread0 = new Thread() { /** * {@inheritDoc} */ @Override public void run() { try { final So...
public static void main(final String... args) throws Exception { final int PORT = 9999; final ServerSocket server = new ServerSocket(PORT); final Thread thread0 = new Thread() { /** * {@inheritDoc} */ @Override public void run() { try { final So...
diff --git a/biojava3-structure-gui/src/main/java/org/biojava/bio/structure/gui/SequenceDisplay.java b/biojava3-structure-gui/src/main/java/org/biojava/bio/structure/gui/SequenceDisplay.java index 7813e1651..dfd4af726 100644 --- a/biojava3-structure-gui/src/main/java/org/biojava/bio/structure/gui/SequenceDisplay.java +...
true
true
public SequenceDisplay(StructurePairAligner structurePairAligner){ super(); structure1 = null; structure2 = null; alig = null; this.structurePairAligner = structurePairAligner; panel1 = new SequenceScalePanel(1); panel2 = new SequenceScalePanel(2); mouseListener1 = new SequenceMouseListener(this); ...
public SequenceDisplay(StructurePairAligner structurePairAligner){ super(); structure1 = null; structure2 = null; alig = null; this.structurePairAligner = structurePairAligner; panel1 = new SequenceScalePanel(1); panel2 = new SequenceScalePanel(2); mouseListener1 = new SequenceMouseListener(this); ...
diff --git a/pace-base/src/main/java/com/pace/base/project/utils/PafExcelUtil.java b/pace-base/src/main/java/com/pace/base/project/utils/PafExcelUtil.java index bbd37e1f..7f2c5f58 100644 --- a/pace-base/src/main/java/com/pace/base/project/utils/PafExcelUtil.java +++ b/pace-base/src/main/java/com/pace/base/project/utils...
true
true
public static void writeExcelSheet(PafExcelInput input, List<PafExcelRow> paceRowList) throws PafException { if ( input == null ) { throw new IllegalArgumentException("Pace Excel Input cannot be null"); } else if ( input.getFullWorkbookName() == null && input.getWorkbook() == null ) { thro...
public static void writeExcelSheet(PafExcelInput input, List<PafExcelRow> paceRowList) throws PafException { if ( input == null ) { throw new IllegalArgumentException("Pace Excel Input cannot be null"); } else if ( input.getFullWorkbookName() == null && input.getWorkbook() == null ) { thro...
diff --git a/src/resources/registration/src/java/org/wyona/yanel/resources/registration/ValidationException.java b/src/resources/registration/src/java/org/wyona/yanel/resources/registration/ValidationException.java index c628ab7b8..30f61903f 100644 --- a/src/resources/registration/src/java/org/wyona/yanel/resources/reg...
true
true
public String getMessage() { if (ves != null && ves.size() > 0) { ValidationError ve = (ValidationError) ves.get(0); return "'" + ve.getKey() + "', '" + ve.getValue() + "', '" + ve.getErrorCode() + "'"; } else { return "No validation errors!"; } }
public String getMessage() { if (ves != null && ves.size() > 0) { StringBuilder sb = new StringBuilder(); for (int i = 0; i < ves.size(); i++) { ValidationError ve = (ValidationError) ves.get(i); sb.append("(Validation error: '" + ve.getKey() + "', '" ...
diff --git a/src/cf.java b/src/cf.java index d7581de..7f7ad74 100644 --- a/src/cf.java +++ b/src/cf.java @@ -1,108 +1,108 @@ public class cf extends ay { public int e = -1; public String f; public double g; public double h = 0.0D; public cf() { this.f = "Pig"; this.e = 20; ...
true
true
public void b() { this.h = this.g; if (!a()) { return; } double d1 = this.b + this.a.l.nextFloat(); double d2 = this.c + this.a.l.nextFloat(); double d3 = this.d + this.a.l.nextFloat(); this.a.a("smoke", d1, d2, d3, 0.0D, 0.0D, 0.0D); thi...
public void b() { this.h = this.g; if (!a()) { return; } double d1 = this.b + this.a.l.nextFloat(); double d2 = this.c + this.a.l.nextFloat(); double d3 = this.d + this.a.l.nextFloat(); this.a.a("smoke", d1, d2, d3, 0.0D, 0.0D, 0.0D); thi...
diff --git a/src/ring/commands/mud/I3.java b/src/ring/commands/mud/I3.java index 44ea44c..0fa305e 100644 --- a/src/ring/commands/mud/I3.java +++ b/src/ring/commands/mud/I3.java @@ -1,93 +1,97 @@ package ring.commands.mud; import java.util.List; import com.aelfengard.i3.I3NotConnectedException; import ring.com...
false
true
public void execute(CommandSender sender, CommandParameters params) { params.init(CommandType.TEXT); CommandResult res = new CommandResult(); res.setFailText("This MUD is not connected to I3."); //Continue onwards. String op = params.getParameterAsText(0); PlayerCharacter pc = (PlayerCharacter)s...
public void execute(CommandSender sender, CommandParameters params) { params.init(CommandType.TEXT); CommandResult res = new CommandResult(); res.setFailText("This MUD is not connected to I3."); //Continue onwards. String op = params.getParameterAsText(0); PlayerCharacter pc = (PlayerCharacter)s...
diff --git a/client/TileEntityShelfRenderer.java b/client/TileEntityShelfRenderer.java index 45ef882..19a5c25 100644 --- a/client/TileEntityShelfRenderer.java +++ b/client/TileEntityShelfRenderer.java @@ -1,233 +1,233 @@ package net.minecraft.src; import java.lang.reflect.InvocationTargetException; import java.lan...
false
true
public void a(TileEntityShelf tileentityshelf, double x, double y, double z, float partialTick) { float f1 = 0.0F; if (mod_Shelf.RotateItems) { f1 = tileentityshelf.worldObj.getWorldTime() % 360L; } GL11.glPushMatrix(); GL11.glTranslatef((float)x + 0.5...
public void a(TileEntityShelf tileentityshelf, double x, double y, double z, float partialTick) { float f1 = 0.0F; if (mod_Shelf.RotateItems) { f1 = tileentityshelf.worldObj.getWorldTime() % 360L; } GL11.glPushMatrix(); GL11.glTranslatef((float)x + 0.5...
diff --git a/src/com/dynamobi/ws/util/DBDao.java b/src/com/dynamobi/ws/util/DBDao.java index e6b846a..e451bf3 100644 --- a/src/com/dynamobi/ws/util/DBDao.java +++ b/src/com/dynamobi/ws/util/DBDao.java @@ -1,83 +1,84 @@ /* Dynamo Web Services is a web service project for administering LucidDB Copyright (C) 2010 Dynam...
true
true
public DBDao() throws ClassNotFoundException, SQLException, IOException { super(); Properties pro = new Properties(); InputStream user_props = this.getClass().getResourceAsStream("/luciddb-jdbc.properties"); if (user_props != null) { pro.load(user_props); } else { pro.load(this.getCl...
public DBDao() throws ClassNotFoundException, SQLException, IOException { super(); Properties pro = new Properties(); InputStream user_props = this.getClass().getResourceAsStream("/luciddb-jdbc.properties"); if (user_props != null) { pro.load(user_props); } else { pro.load(this.getCl...
diff --git a/src/cz/cvut/localtrade/SearchedItemsActivity.java b/src/cz/cvut/localtrade/SearchedItemsActivity.java index 1139d16..b329eaf 100644 --- a/src/cz/cvut/localtrade/SearchedItemsActivity.java +++ b/src/cz/cvut/localtrade/SearchedItemsActivity.java @@ -1,166 +1,167 @@ package cz.cvut.localtrade; import java...
false
true
public void fillListView() { List<HashMap<String, String>> aList = new ArrayList<HashMap<String, String>>(); filteredIds = new ArrayList<Integer>(); double minItemPrice = Double.MAX_VALUE; double maxItemPrice = Double.MIN_VALUE; double minDistance = Double.MAX_VALUE; double maxDistance = Double.MIN_VALUE;...
public void fillListView() { List<HashMap<String, String>> aList = new ArrayList<HashMap<String, String>>(); filteredIds = new ArrayList<Integer>(); double minItemPrice = Double.MAX_VALUE; double maxItemPrice = Double.MIN_VALUE; double minDistance = Double.MAX_VALUE; double maxDistance = Double.MIN_VALUE;...
diff --git a/modules/quercus/src/com/caucho/quercus/lib/db/PDOStatement.java b/modules/quercus/src/com/caucho/quercus/lib/db/PDOStatement.java index 6609fedb7..6de930d9b 100644 --- a/modules/quercus/src/com/caucho/quercus/lib/db/PDOStatement.java +++ b/modules/quercus/src/com/caucho/quercus/lib/db/PDOStatement.java @@ ...
true
true
private String parseQueryString(Env env, String query) { int len = query.length(); StringBuilder sb = new StringBuilder(len); int parameterCount = 0; for (int i = 0; i < len; i++) { int ch = query.charAt(i); if (ch == '\'' || ch == '"') { sb.append((char) ch); while (...
private String parseQueryString(Env env, String query) { int len = query.length(); StringBuilder sb = new StringBuilder(len); int parameterCount = 0; for (int i = 0; i < len; i++) { int ch = query.charAt(i); if (ch == '\'' || ch == '"') { sb.append((char) ch); while (...
diff --git a/prototype/face/src/main/java/com/lisasoft/face/Prototype.java b/prototype/face/src/main/java/com/lisasoft/face/Prototype.java index af58695..6efa73c 100644 --- a/prototype/face/src/main/java/com/lisasoft/face/Prototype.java +++ b/prototype/face/src/main/java/com/lisasoft/face/Prototype.java @@ -1,554 +1,55...
true
true
private void initUserInterface() { getContentPane().setLayout(new BorderLayout()); JScrollPane scrollPane = new JScrollPane(table); getContentPane().add(scrollPane, BorderLayout.SOUTH); // scott this is the collection from csv, read this display table if (faces != null) { ...
private void initUserInterface() { getContentPane().setLayout(new BorderLayout()); JScrollPane scrollPane = new JScrollPane(table); getContentPane().add(scrollPane, BorderLayout.SOUTH); // scott this is the collection from csv, read this display table if (faces != null) { ...
diff --git a/src/net/sqdmc/bubbleshield/ShieldListener.java b/src/net/sqdmc/bubbleshield/ShieldListener.java index dbc150f..e4aa777 100644 --- a/src/net/sqdmc/bubbleshield/ShieldListener.java +++ b/src/net/sqdmc/bubbleshield/ShieldListener.java @@ -1,715 +1,715 @@ package net.sqdmc.bubbleshield; import java.io.File...
false
true
private void decreaseDurability(ShieldBase shieldBase) { // manage durability stuff Location signLoc = new Location(shieldBase.world, shieldBase.x, (shieldBase.y+1), shieldBase.z); Location spongeLoc = new Location(shieldBase.world, shieldBase.x, (shieldBase.y), shieldBase.z); Block signBlock = signLoc.g...
private void decreaseDurability(ShieldBase shieldBase) { // manage durability stuff Location signLoc = new Location(shieldBase.world, shieldBase.x, (shieldBase.y+1), shieldBase.z); Location spongeLoc = new Location(shieldBase.world, shieldBase.x, (shieldBase.y), shieldBase.z); Block signBlock = signLoc.g...
diff --git a/archive-commons/src/test/java/org/archive/url/URLParserTest.java b/archive-commons/src/test/java/org/archive/url/URLParserTest.java index 63a0a45..b06da7a 100644 --- a/archive-commons/src/test/java/org/archive/url/URLParserTest.java +++ b/archive-commons/src/test/java/org/archive/url/URLParserTest.java @@ ...
false
true
public void testParse() throws URIException, UnsupportedEncodingException { System.out.format("O(%s) E(%s)\n","%66",URLDecoder.decode("%66","UTF-8")); dumpParse("http://www.archive.org/index.html#foo"); dumpParse("http://www.archive.org/"); dumpParse("http://www.archive.org"); dumpParse("http://www.archive.o...
public void testParse() throws URIException, UnsupportedEncodingException { System.out.format("O(%s) E(%s)\n","%66",URLDecoder.decode("%66","UTF-8")); dumpParse("http://www.archive.org/index.html#foo"); dumpParse("http://www.archive.org/"); dumpParse("http://www.archive.org"); dumpParse("http://www.archive.o...
diff --git a/src/checkstyle/com/puppycrawl/tools/checkstyle/checks/ClassResolver.java b/src/checkstyle/com/puppycrawl/tools/checkstyle/checks/ClassResolver.java index 161191c84..4e2ff8f67 100644 --- a/src/checkstyle/com/puppycrawl/tools/checkstyle/checks/ClassResolver.java +++ b/src/checkstyle/com/puppycrawl/tools/chec...
true
true
public Class resolve(String aName) throws ClassNotFoundException { // See if the class is full qualified if (isLoadable(aName)) { return safeLoad(aName); } // try matching explicit imports Iterator it = mImports.iterator(); while (it.hasNext()) { ...
public Class resolve(String aName) throws ClassNotFoundException { // See if the class is full qualified if (isLoadable(aName)) { return safeLoad(aName); } // try matching explicit imports Iterator it = mImports.iterator(); while (it.hasNext()) { ...
diff --git a/rhogen-wizard/src/rhogenwizard/debugger/DebugProtocol.java b/rhogen-wizard/src/rhogenwizard/debugger/DebugProtocol.java index 9e0d66b..55249d9 100644 --- a/rhogen-wizard/src/rhogenwizard/debugger/DebugProtocol.java +++ b/rhogen-wizard/src/rhogenwizard/debugger/DebugProtocol.java @@ -1,165 +1,165 @@ packag...
true
true
protected void processCommand(String cmd) { boolean bp; if(cmd.endsWith("\n")) cmd = cmd.substring(0, cmd.length()-1); if (cmd.compareTo("CONNECT")==0) { this.state = DebugState.CONNECTED; debugServer.send("CONNECTED"); debugCallback.connected(); } else if (cmd.compareTo("RESUMED")==0) { this.st...
protected void processCommand(String cmd) { boolean bp; if(cmd.endsWith("\n")) cmd = cmd.substring(0, cmd.length()-1); if (cmd.compareTo("CONNECT")==0) { this.state = DebugState.CONNECTED; debugServer.send("CONNECTED"); debugCallback.connected(); } else if (cmd.compareTo("RESUMED")==0) { this.st...
diff --git a/twitter4j-core/src/main/java/twitter4j/internal/http/HttpClientImpl.java b/twitter4j-core/src/main/java/twitter4j/internal/http/HttpClientImpl.java index ab3ef497..b6d52903 100644 --- a/twitter4j-core/src/main/java/twitter4j/internal/http/HttpClientImpl.java +++ b/twitter4j-core/src/main/java/twitter4j/int...
true
true
public HttpResponse request(HttpRequest req) throws TwitterException { int retriedCount; int retry = retryCount + 1; HttpResponse res = null; for (retriedCount = 0; retriedCount < retry; retriedCount++) { int responseCode = -1; try { HttpURLCon...
public HttpResponse request(HttpRequest req) throws TwitterException { int retriedCount; int retry = retryCount + 1; HttpResponse res = null; for (retriedCount = 0; retriedCount < retry; retriedCount++) { int responseCode = -1; try { HttpURLCon...
diff --git a/src/java/nextgen/core/readers/PairedEndReader.java b/src/java/nextgen/core/readers/PairedEndReader.java index 21b062f..94075e4 100644 --- a/src/java/nextgen/core/readers/PairedEndReader.java +++ b/src/java/nextgen/core/readers/PairedEndReader.java @@ -1,417 +1,420 @@ package nextgen.core.readers; impor...
false
true
private Alignment samRecordToAlignment(SAMRecord record,TranscriptionRead transcriptionRead,boolean fragment) { Alignment rtrn; try { if (alignmentType == AlignmentType.PAIRED_END) { if (record.getReadPairedFlag() && !record.getMateUnmappedFlag()) { //revised to read single end data @zhuxp String...
private Alignment samRecordToAlignment(SAMRecord record,TranscriptionRead transcriptionRead,boolean fragment) { Alignment rtrn; try { if (alignmentType == AlignmentType.PAIRED_END) { if (record.getReadPairedFlag() && !record.getMateUnmappedFlag()) { //revised to read single end data @zhuxp String...
diff --git a/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/rulers/RulerColumnDescriptor.java b/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/rulers/RulerColumnDescriptor.java index 23c6c2e3a..04ddcf414 100755 --- a/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor...
true
true
RulerColumnDescriptor(IConfigurationElement element, RulerColumnRegistry registry) throws InvalidRegistryObjectException { Assert.isLegal(registry != null); Assert.isLegal(element != null); fElement= element; ILog log= TextEditorPlugin.getDefault().getLog(); ExtensionPointHelper helper= new ExtensionPoint...
RulerColumnDescriptor(IConfigurationElement element, RulerColumnRegistry registry) throws InvalidRegistryObjectException { Assert.isLegal(registry != null); Assert.isLegal(element != null); fElement= element; ILog log= TextEditorPlugin.getDefault().getLog(); ExtensionPointHelper helper= new ExtensionPoint...
diff --git a/src/me/stutiguias/mcmmorankup/command/MRUCommand.java b/src/me/stutiguias/mcmmorankup/command/MRUCommand.java index 9df1cbb..1626cbb 100644 --- a/src/me/stutiguias/mcmmorankup/command/MRUCommand.java +++ b/src/me/stutiguias/mcmmorankup/command/MRUCommand.java @@ -1,85 +1,85 @@ package me.stutiguias.mcmmor...
true
true
public MRUCommand(Mcmmorankup plugin) { super(plugin); avaibleCommands = new HashMap<>(); consoleCommands = new HashMap<>(); Help help = new Help(plugin); Reload reload = new Reload(plugin); Report report = new Report(plugin); Set set = new Set(plugin...
public MRUCommand(Mcmmorankup plugin) { super(plugin); avaibleCommands = new HashMap<>(); consoleCommands = new HashMap<>(); Help help = new Help(plugin); Reload reload = new Reload(plugin); Report report = new Report(plugin); Set set = new Set(plugin...
diff --git a/src/main/java/net/minecraft/src/LoadingScreenRenderer.java b/src/main/java/net/minecraft/src/LoadingScreenRenderer.java index 8d9ccdfb..3982e1e3 100644 --- a/src/main/java/net/minecraft/src/LoadingScreenRenderer.java +++ b/src/main/java/net/minecraft/src/LoadingScreenRenderer.java @@ -1,152 +1,153 @@ pack...
false
true
public void setLoadingProgress(int par1) { if (!this.mc.running) { if (!this.field_73724_e) { throw new MinecraftError(); } } else { long var2 = Minecraft.getSystemTime(); if (var2 - this.field_73723_d >= 100L) { this.field_73723_d = var2; ScaledResolution var4 = new ScaledResolution(this....
public void setLoadingProgress(int par1) { if (!this.mc.running) { if (!this.field_73724_e) { throw new MinecraftError(); } } else { long var2 = Minecraft.getSystemTime(); if (var2 - this.field_73723_d >= 100L) { this.field_73723_d = var2; ScaledResolution var4 = new ScaledResolution(this....
diff --git a/zssapp/test/SS_149_Test.java b/zssapp/test/SS_149_Test.java index 6276df7..4b91c70 100644 --- a/zssapp/test/SS_149_Test.java +++ b/zssapp/test/SS_149_Test.java @@ -1,48 +1,47 @@ import org.zkoss.ztl.JQuery; import org.zkoss.ztl.util.ColorVerifingHelper; /* order_test_1Test.java Purpose: Desc...
false
true
protected void executeTest() { rightClickCell(1,12); click(jq("div[title=\"Fill color\"] img.z-colorbtn-btn:eq(2)")); waitResponse(); // Input color hex code, then press Enter. JQuery colorTextbox = jq(".z-colorpalette-hex-inp:eq(5)"); String bgColorStr = "#00ff00"; type(colorTextbo...
protected void executeTest() { rightClickCell(1,12); click(jq("div[title=\"Fill color\"] img.z-colorbtn-btn:eq(2)")); waitResponse(); // Input color hex code, then press Enter. JQuery colorTextbox = jq(".z-colorbtn-pp:visible .z-colorpalette-hex-inp"); String bgColorStr = "#00ff00"; ...
diff --git a/aufgabe8/src/Hunter.java b/aufgabe8/src/Hunter.java index 321d2cd..672e49a 100644 --- a/aufgabe8/src/Hunter.java +++ b/aufgabe8/src/Hunter.java @@ -1,136 +1,136 @@ import java.util.ArrayList; public class Hunter extends Character { private static final int MAXSTEPS = 1000; private String name; pr...
true
true
protected void move() { // List all directions ArrayList<Integer> directions = new ArrayList<Integer>(4); directions.add(Field.NORTH); // N directions.add(Field.EAST); // E directions.add(Field.SOUTH); // S directions.add(Field.WEST); // W Labyrinth lab = game.getLabyrith(); // Remove directions bl...
protected void move() { // List all directions ArrayList<Integer> directions = new ArrayList<Integer>(4); directions.add(Field.NORTH); // N directions.add(Field.EAST); // E directions.add(Field.SOUTH); // S directions.add(Field.WEST); // W Labyrinth lab = game.getLabyrith(); // Remove directions bl...
diff --git a/common/crazypants/render/RenderUtil.java b/common/crazypants/render/RenderUtil.java index d4a8a8561..fa4f5288c 100644 --- a/common/crazypants/render/RenderUtil.java +++ b/common/crazypants/render/RenderUtil.java @@ -1,351 +1,351 @@ package crazypants.render; import static net.minecraftforge.common.Forg...
true
true
public static void renderConnectedTextureFace(IBlockAccess blockAccess, int x, int y, int z, ForgeDirection face, Icon texture, boolean forceAllEdges, boolean translateToXYZ, boolean applyFaceShading) { if(blockAccess == null || face == null || texture == null) { return; } if(!forceAllEdges)...
public static void renderConnectedTextureFace(IBlockAccess blockAccess, int x, int y, int z, ForgeDirection face, Icon texture, boolean forceAllEdges, boolean translateToXYZ, boolean applyFaceShading) { if((blockAccess == null && !forceAllEdges) || face == null || texture == null) { return; } ...
diff --git a/src/edu/gordian/values/expressions/NotEquals.java b/src/edu/gordian/values/expressions/NotEquals.java index bf3797e..6948505 100644 --- a/src/edu/gordian/values/expressions/NotEquals.java +++ b/src/edu/gordian/values/expressions/NotEquals.java @@ -1,21 +1,21 @@ package edu.gordian.values.expressions; i...
true
true
public static Equals valueOf(Scope s, String v) { return new Equals(s.toValue(v.substring(0, v.indexOf("!="))).getValue(). equals(s.toValue(v.substring(v.indexOf("!=") + 2)).getValue())); }
public static Equals valueOf(Scope s, String v) { return new Equals(!s.toValue(v.substring(0, v.indexOf("!="))).getValue(). equals(s.toValue(v.substring(v.indexOf("!=") + 2)).getValue())); }
diff --git a/bndtools.core/src/bndtools/editor/pages/ResizeExpansionAdapter.java b/bndtools.core/src/bndtools/editor/pages/ResizeExpansionAdapter.java index 1cd2f336..a7496ce7 100644 --- a/bndtools.core/src/bndtools/editor/pages/ResizeExpansionAdapter.java +++ b/bndtools.core/src/bndtools/editor/pages/ResizeExpansionAd...
true
true
public void expansionStateChanged(ExpansionEvent e) { Object layoutData = (e.data == Boolean.TRUE) ? PageLayoutUtils.createExpanded() : PageLayoutUtils.createCollapsed(); control.setLayoutData(layoutData); layoutParent.layout(true, true); }
public void expansionStateChanged(ExpansionEvent e) { Object layoutData = (Boolean.TRUE.equals(e.data)) ? PageLayoutUtils.createExpanded() : PageLayoutUtils.createCollapsed(); control.setLayoutData(layoutData); layoutParent.layout(true, true); }
diff --git a/Essentials/src/com/earth2me/essentials/User.java b/Essentials/src/com/earth2me/essentials/User.java index 0598b57c..1ce991b6 100644 --- a/Essentials/src/com/earth2me/essentials/User.java +++ b/Essentials/src/com/earth2me/essentials/User.java @@ -1,670 +1,672 @@ package com.earth2me.essentials; import s...
false
true
public String getNick(final boolean longnick) { final StringBuilder prefix = new StringBuilder(); String nickname; String suffix = "§f"; final String nick = getNickname(); if (ess.getSettings().isCommandDisabled("nick") || nick == null || nick.isEmpty() || nick.equals(getName())) { nickname = getName()...
public String getNick(final boolean longnick) { final StringBuilder prefix = new StringBuilder(); String nickname; String suffix = ""; final String nick = getNickname(); if (ess.getSettings().isCommandDisabled("nick") || nick == null || nick.isEmpty() || nick.equals(getName())) { nickname = getName(); ...
diff --git a/src/main/java/org/elasticsearch/search/lookup/FieldsLookup.java b/src/main/java/org/elasticsearch/search/lookup/FieldsLookup.java index 543c7e6b8dc..9175dd1e69c 100644 --- a/src/main/java/org/elasticsearch/search/lookup/FieldsLookup.java +++ b/src/main/java/org/elasticsearch/search/lookup/FieldsLookup.java...
true
true
private FieldLookup loadFieldData(String name) { FieldLookup data = cachedFieldData.get(name); if (data == null) { FieldMapper mapper = mapperService.smartNameFieldMapper(name, types); if (mapper == null) { throw new ElasticSearchIllegalArgumentException("No f...
private FieldLookup loadFieldData(String name) { FieldLookup data = cachedFieldData.get(name); if (data == null) { FieldMapper mapper = mapperService.smartNameFieldMapper(name, types); if (mapper == null) { throw new ElasticSearchIllegalArgumentException("No f...
diff --git a/android/src/src/com/tech_tec/android/simplecalendar/model/PreviousMonth.java b/android/src/src/com/tech_tec/android/simplecalendar/model/PreviousMonth.java index 5557241..42ede08 100644 --- a/android/src/src/com/tech_tec/android/simplecalendar/model/PreviousMonth.java +++ b/android/src/src/com/tech_tec/and...
true
true
public Iterator<Day> getDays() { Calendar calendar = getCalendar(); int maxDate = calendar.getActualMaximum(Calendar.DATE); calendar.set(Calendar.DATE, maxDate); ArrayList<Day> days = new ArrayList<Day>(); for (int i = 0; i < mCount; i++) { days....
public Iterator<Day> getDays() { Calendar calendar = getCalendar(); int maxDate = calendar.getActualMaximum(Calendar.DATE); calendar.set(Calendar.DATE, maxDate); ArrayList<Day> days = new ArrayList<Day>(); for (int i = 0; i < mCount; i++) { days....
diff --git a/src/com/android/contacts/ContactsListActivity.java b/src/com/android/contacts/ContactsListActivity.java index aeb401464..4169e3752 100644 --- a/src/com/android/contacts/ContactsListActivity.java +++ b/src/com/android/contacts/ContactsListActivity.java @@ -1,3566 +1,3568 @@ /* * Copyright (C) 2007 The An...
false
true
protected void onCreate(Bundle icicle) { super.onCreate(icicle); mIconSize = getResources().getDimensionPixelSize(android.R.dimen.app_icon_size); mContactsPrefs = new ContactsPreferences(this); mPhotoLoader = new ContactPhotoLoader(this, R.drawable.ic_contact_list_picture); ...
protected void onCreate(Bundle icicle) { super.onCreate(icicle); mIconSize = getResources().getDimensionPixelSize(android.R.dimen.app_icon_size); mContactsPrefs = new ContactsPreferences(this); mPhotoLoader = new ContactPhotoLoader(this, R.drawable.ic_contact_list_picture); ...
diff --git a/nephele/nephele-common/src/main/java/eu/stratosphere/nephele/jobgraph/JobGraph.java b/nephele/nephele-common/src/main/java/eu/stratosphere/nephele/jobgraph/JobGraph.java index b206e5274..16749b69e 100644 --- a/nephele/nephele-common/src/main/java/eu/stratosphere/nephele/jobgraph/JobGraph.java +++ b/nephele...
true
true
public void read(final Kryo kryo, final Input input) { // Read job id this.jobID = kryo.readObjectOrNull(input, JobID.class); // Read the job name this.jobName = input.readString(); // Read required jar files try { readRequiredJarFiles(kryo, input); } catch (IOException ioe) { new RuntimeExcepti...
public void read(final Kryo kryo, final Input input) { // Read job id this.jobID = kryo.readObject(input, JobID.class); // Read the job name this.jobName = input.readString(); // Read required jar files try { readRequiredJarFiles(kryo, input); } catch (IOException ioe) { new RuntimeException(ioe...
diff --git a/h2/src/test/org/h2/test/unit/TestShell.java b/h2/src/test/org/h2/test/unit/TestShell.java index 99c72c0d0..070474eb0 100644 --- a/h2/src/test/org/h2/test/unit/TestShell.java +++ b/h2/src/test/org/h2/test/unit/TestShell.java @@ -1,239 +1,237 @@ /* * Copyright 2004-2011 H2 Group. Multiple-Licensed under t...
true
true
private void test(final boolean commandLineArgs) throws IOException { testIn = new PipedInputStream(); PipedOutputStream out = new PipedOutputStream(testIn); toolOut = new PrintStream(out, true); out = new PipedOutputStream(); testOut = new PrintStream(out, true); too...
private void test(final boolean commandLineArgs) throws IOException { testIn = new PipedInputStream(); PipedOutputStream out = new PipedOutputStream(testIn); toolOut = new PrintStream(out, true); out = new PipedOutputStream(); testOut = new PrintStream(out, true); too...
diff --git a/src/de/schildbach/wallet/WalletActivity.java b/src/de/schildbach/wallet/WalletActivity.java index 435e4aa..e55e2a3 100644 --- a/src/de/schildbach/wallet/WalletActivity.java +++ b/src/de/schildbach/wallet/WalletActivity.java @@ -1,218 +1,218 @@ /* * Copyright 2010 the original author or authors. * *...
true
true
protected void onCreate(final Bundle savedInstanceState) { super.onCreate(savedInstanceState); final Uri intentUri = getIntent().getData(); if (intentUri != null && "bitcoin".equals(intentUri.getScheme())) Toast.makeText(this, "sending coins to " + intentUri.getSchemeSpecificPart() + " not yet implemented",...
protected void onCreate(final Bundle savedInstanceState) { super.onCreate(savedInstanceState); final Uri intentUri = getIntent().getData(); if (intentUri != null && "bitcoin".equals(intentUri.getScheme())) Toast.makeText(this, "sending coins to " + intentUri.getSchemeSpecificPart() + " not yet implemented",...
diff --git a/src/main/java/com/googlecode/meiyo/filter/ContainsMethod.java b/src/main/java/com/googlecode/meiyo/filter/ContainsMethod.java index 2546f34..3659f86 100644 --- a/src/main/java/com/googlecode/meiyo/filter/ContainsMethod.java +++ b/src/main/java/com/googlecode/meiyo/filter/ContainsMethod.java @@ -1,67 +1,67 ...
true
true
public boolean matches(Class<?> clazz) { Class<?> current = clazz; while (current != Object.class) { for (Method method : getDeclaredMethods(current)) { if (this.name.equals(method.getName()) && Arrays.equals(this.argumentsType, method.getParameter...
public boolean matches(Class<?> clazz) { Class<?> current = clazz; while (current != null) { for (Method method : getDeclaredMethods(current)) { if (this.name.equals(method.getName()) && Arrays.equals(this.argumentsType, method.getParameterTypes())...
diff --git a/src/net/rptools/maptool/client/MapToolLineParser.java b/src/net/rptools/maptool/client/MapToolLineParser.java index e4876f61..2f2df62f 100644 --- a/src/net/rptools/maptool/client/MapToolLineParser.java +++ b/src/net/rptools/maptool/client/MapToolLineParser.java @@ -1,293 +1,295 @@ /* * Licensed under th...
true
true
public String parseLine(Token tokenInContext, String line) throws ParserException { if (line == null) { return ""; } line = line.trim(); if (line.length() == 0) { return ""; } // Keep the same context for this line MapToolVariableResolver resolver = new Ma...
public String parseLine(Token tokenInContext, String line) throws ParserException { if (line == null) { return ""; } line = line.trim(); if (line.length() == 0) { return ""; } // Keep the same context for this line MapToolVariableResolver resolver = new Ma...
diff --git a/api/src/main/java/org/openmrs/module/reporting/data/encounter/evaluator/EncounterProviderDataEvaluator.java b/api/src/main/java/org/openmrs/module/reporting/data/encounter/evaluator/EncounterProviderDataEvaluator.java index 7137b1d2..01d5fd95 100644 --- a/api/src/main/java/org/openmrs/module/reporting/data...
true
true
public EvaluatedEncounterData evaluate(EncounterDataDefinition definition, EvaluationContext context) throws EvaluationException { EncounterProviderDataDefinition def = (EncounterProviderDataDefinition) definition; // check to make sure parameter is an encounter role (method signature is type Open...
public EvaluatedEncounterData evaluate(EncounterDataDefinition definition, EvaluationContext context) throws EvaluationException { EncounterProviderDataDefinition def = (EncounterProviderDataDefinition) definition; // check to make sure parameter is an encounter role (method signature is type Open...
diff --git a/main/src/main/java/org/vfny/geoserver/servlets/AbstractService.java b/main/src/main/java/org/vfny/geoserver/servlets/AbstractService.java index 2867686018..70f871d8b2 100644 --- a/main/src/main/java/org/vfny/geoserver/servlets/AbstractService.java +++ b/main/src/main/java/org/vfny/geoserver/servlets/Abstra...
true
true
protected void doService(HttpServletRequest request, HttpServletResponse response, Request serviceRequest) throws ServletException { LOGGER.info("handling request: " + serviceRequest); if (!isServiceEnabled(request)) { try { response.sendError(HttpServlet...
protected void doService(HttpServletRequest request, HttpServletResponse response, Request serviceRequest) throws ServletException { LOGGER.info("handling request: " + serviceRequest); if (!isServiceEnabled(request)) { try { response.sendError(HttpServlet...
diff --git a/server/amee-restlet/src/main/java/com/amee/restlet/data/builder/DataCategoryResourceBuilder.java b/server/amee-restlet/src/main/java/com/amee/restlet/data/builder/DataCategoryResourceBuilder.java index 48243be2..0627d1c0 100644 --- a/server/amee-restlet/src/main/java/com/amee/restlet/data/builder/DataCateg...
true
true
public JSONObject getJSONObject(DataCategoryResource resource) throws JSONException { // create JSON object JSONObject obj = new JSONObject(); obj.put("path", resource.getPathItem().getFullPath()); if (resource.isGet()) { // add DataCategory obj.put("dataCa...
public JSONObject getJSONObject(DataCategoryResource resource) throws JSONException { // create JSON object JSONObject obj = new JSONObject(); obj.put("path", resource.getPathItem().getFullPath()); if (resource.isGet()) { // add DataCategory obj.put("dataCa...
diff --git a/V_semester/networks/JSpellCast/src/com/github/tumas/jspellcast/proto/IcyProtocol.java b/V_semester/networks/JSpellCast/src/com/github/tumas/jspellcast/proto/IcyProtocol.java index a7ffd93..095aef7 100644 --- a/V_semester/networks/JSpellCast/src/com/github/tumas/jspellcast/proto/IcyProtocol.java +++ b/V_sem...
true
true
public static HashMap<String, String> parseHeader(String header){ HashMap<String, String> protoObject = new HashMap<String, String>(); StringTokenizer st = new StringTokenizer(header, HEADERLINETOKEN); String line; while (st.hasMoreTokens()){ line = st.nextToken(); String[] strs = line.split(":"); ...
public static HashMap<String, String> parseHeader(String header){ HashMap<String, String> protoObject = new HashMap<String, String>(); StringTokenizer st = new StringTokenizer(header, HEADERLINETOKEN); String line; while (st.hasMoreTokens()){ line = st.nextToken(); String[] strs = line.split(":", 2)...
diff --git a/software/ncitbrowser/src/java/gov/nih/nci/evs/browser/bean/UserSessionBean.java b/software/ncitbrowser/src/java/gov/nih/nci/evs/browser/bean/UserSessionBean.java index 64f4d4ef..7761881f 100644 --- a/software/ncitbrowser/src/java/gov/nih/nci/evs/browser/bean/UserSessionBean.java +++ b/software/ncitbrowser/...
false
true
public String multipleSearchAction() { HttpServletRequest request = (HttpServletRequest) FacesContext.getCurrentInstance() .getExternalContext().getRequest(); String scheme = (String) request.getParameter("scheme"); String version = (String) request.getParameter("...
public String multipleSearchAction() { HttpServletRequest request = (HttpServletRequest) FacesContext.getCurrentInstance() .getExternalContext().getRequest(); String scheme = (String) request.getParameter("scheme"); String version = (String) request.getParameter("...
diff --git a/proxy/src/main/java/org/jboss/forge/proxy/ClassLoaderAdapterCallback.java b/proxy/src/main/java/org/jboss/forge/proxy/ClassLoaderAdapterCallback.java index 5a2619363..baa9406b6 100644 --- a/proxy/src/main/java/org/jboss/forge/proxy/ClassLoaderAdapterCallback.java +++ b/proxy/src/main/java/org/jboss/forge/p...
true
true
private static <T> T enhance(final ClassLoader callingLoader, final ClassLoader delegateLoader, final Method sourceMethod, final Object delegate, final Class<?>... types) { // TODO consider removing option to set type hierarchy here. Instead it might just be // best to use type...
private static <T> T enhance(final ClassLoader callingLoader, final ClassLoader delegateLoader, final Method sourceMethod, final Object delegate, final Class<?>... types) { // TODO consider removing option to set type hierarchy here. Instead it might just be // best to use type...
diff --git a/trunk/src/webcamstudio/media/renderer/Capturer.java b/trunk/src/webcamstudio/media/renderer/Capturer.java index 0f6a3f4..8be5da7 100644 --- a/trunk/src/webcamstudio/media/renderer/Capturer.java +++ b/trunk/src/webcamstudio/media/renderer/Capturer.java @@ -1,169 +1,171 @@ /* * To change this template, ch...
false
true
public Capturer(Stream s) { stream = s; audioBufferSize = (44100 * 2 * 2) / stream.getRate(); videoBufferSize = stream.getCaptureWidth() * stream.getCaptureHeight() * 4; frame = new Frame(stream.getID(), null, null); if (stream.hasAudio()) { try { ...
public Capturer(Stream s) { stream = s; audioBufferSize = (44100 * 2 * 2) / stream.getRate(); videoBufferSize = stream.getCaptureWidth() * stream.getCaptureHeight() * 4; frame = new Frame(stream.getID(), null, null); if (stream.hasAudio()) { try { ...
diff --git a/JavaSource/org/unitime/timetable/solver/TimetableDatabaseLoader.java b/JavaSource/org/unitime/timetable/solver/TimetableDatabaseLoader.java index 8bdad4c1..69e40ad2 100644 --- a/JavaSource/org/unitime/timetable/solver/TimetableDatabaseLoader.java +++ b/JavaSource/org/unitime/timetable/solver/TimetableDatab...
true
true
private void load(org.hibernate.Session hibSession) throws Exception { iProgress.setStatus("Loading input data ..."); SolverGroupDAO dao = new SolverGroupDAO(); hibSession = dao.getSession(); hibSession.setFlushMode(FlushMode.COMMIT); iSolverGroup = null; iSession = null; if (iSolverGroup...
private void load(org.hibernate.Session hibSession) throws Exception { iProgress.setStatus("Loading input data ..."); SolverGroupDAO dao = new SolverGroupDAO(); hibSession = dao.getSession(); hibSession.setFlushMode(FlushMode.COMMIT); iSolverGroup = null; iSession = null; if (iSolverGroup...
diff --git a/account/src/main/java/com/ning/billing/account/dao/AuditedAccountDao.java b/account/src/main/java/com/ning/billing/account/dao/AuditedAccountDao.java index 8e162f76d..9e7faf8df 100644 --- a/account/src/main/java/com/ning/billing/account/dao/AuditedAccountDao.java +++ b/account/src/main/java/com/ning/billin...
false
true
public void update(final Account specifiedAccount, final CallContext context) throws EntityPersistenceException { try { accountSqlDao.inTransaction(new Transaction<Void, AccountSqlDao>() { @Override public Void inTransaction(final AccountSqlDao transactional, fina...
public void update(final Account specifiedAccount, final CallContext context) throws EntityPersistenceException { try { accountSqlDao.inTransaction(new Transaction<Void, AccountSqlDao>() { @Override public Void inTransaction(final AccountSqlDao transactional, fina...
diff --git a/geoserver/community/RESTConfig/src/main/java/org/geoserver/restconfig/AutoXMLFormat.java b/geoserver/community/RESTConfig/src/main/java/org/geoserver/restconfig/AutoXMLFormat.java index abb3ac5094..18b90ae886 100644 --- a/geoserver/community/RESTConfig/src/main/java/org/geoserver/restconfig/AutoXMLFormat.j...
true
true
private Object convert(Element elem){ List children = elem.getChildren(); if (children.size() == 0){ if (elem.getText() == null){ return null; } else { return elem.getText(); } } else if (children.get(0) instanceof Element){...
private Object convert(Element elem){ List children = elem.getChildren(); if (children.size() == 0){ if (elem.getContent().size() == 0){ return null; } else { return elem.getText(); } } else if (children.get(0) instanceof El...
diff --git a/rest-api/rest-api-server/src/main/java/org/bonitasoft/web/rest/server/api/bpm/flownode/AbstractAPIHumanTask.java b/rest-api/rest-api-server/src/main/java/org/bonitasoft/web/rest/server/api/bpm/flownode/AbstractAPIHumanTask.java index 602d276c4..9bc26645a 100644 --- a/rest-api/rest-api-server/src/main/java/...
false
true
public ITEM update(final APIID id, final Map<String, String> attributes) { // Cant unassigned a manual task final String assignedUserId = attributes.get(HumanTaskItem.ATTRIBUTE_ASSIGNED_USER_ID); if (assignedUserId.length() > 0) { ITEM humanTask = get(id); if (humanTa...
public ITEM update(final APIID id, final Map<String, String> attributes) { // Cant unassigned a manual task final String assignedUserId = attributes.get(HumanTaskItem.ATTRIBUTE_ASSIGNED_USER_ID); if (assignedUserId.length() > 0) { ITEM humanTask = get(id); if (humanTa...
diff --git a/src/main/java/com/mingebag/grover/falsebook/ic/datatype/string/StringCombine.java b/src/main/java/com/mingebag/grover/falsebook/ic/datatype/string/StringCombine.java index 1b39b37..0affa27 100644 --- a/src/main/java/com/mingebag/grover/falsebook/ic/datatype/string/StringCombine.java +++ b/src/main/java/com...
false
true
public void Execute(Sign signBlock, InputState currentInputs, InputState previousInputs) { String inputLeft = null; String inputRight = null; String out = null; String def = signBlock.getLine(2); if (currentInputs.isInputTwoHigh() && previousInputs.isInputTwoLow()) { ...
public void Execute(Sign signBlock, InputState currentInputs, InputState previousInputs) { String inputLeft = null; String inputRight = null; String out = null; String def = signBlock.getLine(2); if (currentInputs.isInputTwoHigh()) { BaseData dataLeft = getDataLe...
diff --git a/agro-search/src/main/java/com/agroknow/search/web/bootstrap/AgroSearchInitializer.java b/agro-search/src/main/java/com/agroknow/search/web/bootstrap/AgroSearchInitializer.java index 572cebd..08a4f03 100644 --- a/agro-search/src/main/java/com/agroknow/search/web/bootstrap/AgroSearchInitializer.java +++ b/ag...
false
true
public void onStartup(ServletContext container) { String environment = System.getProperty("com.agroknow.environment", DEFAULT_ENV).toLowerCase(); String[] activeProfiles = getActiveProfiles(environment); LOG.info("Starting application context with the following active profiles: " + Arrays.t...
public void onStartup(ServletContext container) { String environment = System.getProperty("com.agroknow.environment", DEFAULT_ENV).toLowerCase(); String[] activeProfiles = getActiveProfiles(environment); LOG.info("Starting application context with the following active profiles: " + Arrays.t...
diff --git a/src/com/emergentideas/webhandle/files/FileInfo.java b/src/com/emergentideas/webhandle/files/FileInfo.java index da6f41e..69e97e7 100644 --- a/src/com/emergentideas/webhandle/files/FileInfo.java +++ b/src/com/emergentideas/webhandle/files/FileInfo.java @@ -1,112 +1,112 @@ package com.emergentideas.webhandl...
true
true
public static FileInfo getInfo(File file) { if(isJava7()) { try { initReflectionObjects(); Object path = toPath.invoke(file); Map<String, Object> attrs = (Map<String, Object>)readAttributes.invoke(null, path, "*", linkOptionsArrayForCall); String last = attrs.get("lastModifiedTime").toString(...
public static FileInfo getInfo(File file) { if(isJava7()) { try { initReflectionObjects(); Object path = toPath.invoke(file); Map<String, Object> attrs = (Map<String, Object>)readAttributes.invoke(null, path, "*", linkOptionsArrayForCall); String last = attrs.get("lastModifiedTime").toString(...
diff --git a/plugins/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/api/impl/RunTask.java b/plugins/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/api/impl/RunTask.java index aebc7166e..3fb2fe357 100644 --- a/plugins/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine...
true
true
protected void doRun( ) throws EngineException { ReportDesignHandle reportDesign = executionContext.getDesign( ); // using paramters if ( !validateParameters( ) ) { throw new EngineException( MessageConstants.INVALID_PARAMETER_EXCEPTION ); //$NON-NLS-1$ } loadDesign( ); prepareDesign( ); sta...
protected void doRun( ) throws EngineException { ReportDesignHandle reportDesign = executionContext.getDesign( ); // using paramters if ( !validateParameters( ) ) { throw new EngineException( MessageConstants.INVALID_PARAMETER_EXCEPTION ); //$NON-NLS-1$ } loadDesign( ); prepareDesign( ); sta...
diff --git a/atlas-analytics/src/main/java/uk/ac/ebi/gxa/analytics/compute/AtlasComputeService.java b/atlas-analytics/src/main/java/uk/ac/ebi/gxa/analytics/compute/AtlasComputeService.java index 41b9cb56f..d98b873ce 100644 --- a/atlas-analytics/src/main/java/uk/ac/ebi/gxa/analytics/compute/AtlasComputeService.java +++ ...
true
true
public <T> T computeTask(ComputeTask<T> task) throws ComputeException { RServices rService = null; try { log.debug("Acquiring RServices"); rService = getAtlasRFactory().createRServices(); if(rService == null) { log.error("Can't create R service, so...
public <T> T computeTask(ComputeTask<T> task) throws ComputeException { RServices rService = null; try { log.debug("Acquiring RServices"); rService = getAtlasRFactory().createRServices(); if(rService == null) { log.error("Can't create R service, so...
diff --git a/src/test/java/org/sonar/plugins/cxx/CxxPluginTest.java b/src/test/java/org/sonar/plugins/cxx/CxxPluginTest.java index b11acddd..766a996b 100644 --- a/src/test/java/org/sonar/plugins/cxx/CxxPluginTest.java +++ b/src/test/java/org/sonar/plugins/cxx/CxxPluginTest.java @@ -1,33 +1,33 @@ /* * Sonar Cxx Plugi...
true
true
public void testGetExtensions() throws Exception { CxxPlugin plugin = new CxxPlugin(); assertEquals(20, plugin.getExtensions().size()); }
public void testGetExtensions() throws Exception { CxxPlugin plugin = new CxxPlugin(); assertEquals(21, plugin.getExtensions().size()); }
diff --git a/visural-common/src/com/visural/common/datastruct/BeanList.java b/visural-common/src/com/visural/common/datastruct/BeanList.java index b30832a..f368c2a 100644 --- a/visural-common/src/com/visural/common/datastruct/BeanList.java +++ b/visural-common/src/com/visural/common/datastruct/BeanList.java @@ -1,327 +...
true
true
private BeanList<T> sort(final String... properties) { Collections.sort(list, new Comparator<T>() { @Override public int compare(T o1, T o2) { try { for (int n = 0; n < properties.length; n++) { boolean ascending = true; ...
private BeanList<T> sort(final String... properties) { Collections.sort(list, new Comparator<T>() { public int compare(T o1, T o2) { try { for (int n = 0; n < properties.length; n++) { boolean ascending = true; S...
diff --git a/src/net/spato/sve/app/Updater.java b/src/net/spato/sve/app/Updater.java index 4785d07..f3ac396 100644 --- a/src/net/spato/sve/app/Updater.java +++ b/src/net/spato/sve/app/Updater.java @@ -1,311 +1,310 @@ /* * Copyright 2011 Christian Thiemann <christian@spato.net> * Developed at Northwestern Universit...
false
true
public boolean checkAndFetch() { // returns true if update is available int count = 0, totalSize = 0; BufferedReader reader = null; // fetch the index try { // reader creation copied from PApplet so we can catch exceptions InputStream is = new URL(updateURL + indexName).openStream(); ...
public boolean checkAndFetch() { // returns true if update is available int count = 0, totalSize = 0; BufferedReader reader = null; // fetch the index try { // reader creation copied from PApplet so we can catch exceptions InputStream is = new URL(updateURL + indexName).openStream(); ...
diff --git a/core/src/test/java/me/prettyprint/cassandra/service/CassandraClusterTest.java b/core/src/test/java/me/prettyprint/cassandra/service/CassandraClusterTest.java index d0a3f4eb..8b0cfe2e 100644 --- a/core/src/test/java/me/prettyprint/cassandra/service/CassandraClusterTest.java +++ b/core/src/test/java/me/prett...
false
true
public void testEditColumnFamily() throws Exception { BasicColumnFamilyDefinition columnFamilyDefinition = new BasicColumnFamilyDefinition(); columnFamilyDefinition.setKeyspaceName("DynKeyspace3"); columnFamilyDefinition.setName("DynamicCF"); ColumnFamilyDefinition cfDef = new Thrift...
public void testEditColumnFamily() throws Exception { BasicColumnFamilyDefinition columnFamilyDefinition = new BasicColumnFamilyDefinition(); columnFamilyDefinition.setKeyspaceName("DynKeyspace3"); columnFamilyDefinition.setName("DynamicCF"); ColumnFamilyDefinition cfDef = new Thrift...
diff --git a/xfire-core/src/main/org/codehaus/xfire/service/invoker/AbstractInvoker.java b/xfire-core/src/main/org/codehaus/xfire/service/invoker/AbstractInvoker.java index d421c223..eebc280b 100755 --- a/xfire-core/src/main/org/codehaus/xfire/service/invoker/AbstractInvoker.java +++ b/xfire-core/src/main/org/codehaus/...
true
true
public Object invoke(final Method method, final Object[] params, final MessageContext context) throws XFireFault { Method m = null; try { final Object serviceObject = getServiceObject(context); Object[] newParams = params; for (int i = 0; i < method.getPara...
public Object invoke(final Method method, final Object[] params, final MessageContext context) throws XFireFault { Method m = null; try { final Object serviceObject = getServiceObject(context); Object[] newParams = params; for (int i = 0; i < method.getPara...
diff --git a/ccalc/rpc/src/test/java/org/gwtapp/ccalc/rpc/proc/calculator/CalculationTest.java b/ccalc/rpc/src/test/java/org/gwtapp/ccalc/rpc/proc/calculator/CalculationTest.java index d5d9f7d2..8043be4d 100644 --- a/ccalc/rpc/src/test/java/org/gwtapp/ccalc/rpc/proc/calculator/CalculationTest.java +++ b/ccalc/rpc/src/t...
false
true
public void testPositiveFifo() { List<Operation> operations = new ArrayList<Operation>(); operations.add(getOperation(100.0, 1.0, Currency.USD)); operations.add(getOperation(100.0, 2.0, Currency.USD)); operations.add(getOperation(-50.0, null, Currency.USD)); operations.add(getOperation(-125.0, null, Currency...
public void testPositiveFifo() { List<Operation> operations = new ArrayList<Operation>(); operations.add(getOperation(100.0, 1.0, Currency.USD)); operations.add(getOperation(100.0, 2.0, Currency.USD)); operations.add(getOperation(-50.0, 1.0, Currency.USD)); operations.add(getOperation(-125.0, 1.0, Currency.U...
diff --git a/util/src/main/java/com/ning/arecibo/util/timeline/TimelineDAO.java b/util/src/main/java/com/ning/arecibo/util/timeline/TimelineDAO.java index 7f88e7f..02a3034 100644 --- a/util/src/main/java/com/ning/arecibo/util/timeline/TimelineDAO.java +++ b/util/src/main/java/com/ning/arecibo/util/timeline/TimelineDAO....
true
true
public List<TimelineChunkAndTimes> getSamplesByHostName(final String hostName, final DateTime startTime, final DateTime endTime) { return dbi.withHandle(new HandleCallback<List<TimelineChunkAndTimes>>() { @Override public List<TimelineChunkAndTimes> withHandle(final Handl...
public List<TimelineChunkAndTimes> getSamplesByHostName(final String hostName, final DateTime startTime, final DateTime endTime) { return dbi.withHandle(new HandleCallback<List<TimelineChunkAndTimes>>() { @Override public List<TimelineChunkAndTimes> withHandle(final Handl...
diff --git a/orbisgis-sif/src/main/java/org/orbisgis/sif/icons/BaseIcon.java b/orbisgis-sif/src/main/java/org/orbisgis/sif/icons/BaseIcon.java index c2350b199..7abd96e99 100644 --- a/orbisgis-sif/src/main/java/org/orbisgis/sif/icons/BaseIcon.java +++ b/orbisgis-sif/src/main/java/org/orbisgis/sif/icons/BaseIcon.java @@ ...
false
true
public ImageIcon getIcon(Class<?> loader,String iconName) { if(!loadedIcons.containsKey(iconName)) { //This is the first request for this icon URL url = loader.getResource(iconName+".png"); if(url!=null) { ImageIcon newIcon = new ImageIcon(url); ...
public ImageIcon getIcon(Class<?> loader,String iconName) { if(!loadedIcons.containsKey(iconName)) { //This is the first request for this icon String resourceName = iconName+".png"; URL url = loader.getResource(resourceName); if(url!=null) { Im...
diff --git a/src/org/opensolaris/opengrok/index/Indexer.java b/src/org/opensolaris/opengrok/index/Indexer.java index b0519877..3a05e1c7 100644 --- a/src/org/opensolaris/opengrok/index/Indexer.java +++ b/src/org/opensolaris/opengrok/index/Indexer.java @@ -1,468 +1,468 @@ /* * CDDL HEADER START * * The contents of...
false
true
public static void main(String argv[]) { RuntimeEnvironment env = RuntimeEnvironment.getInstance(); boolean runIndex = true; if(argv.length == 0) { if (GraphicsEnvironment.isHeadless()) { System.err.println("No display available for the Graphical User Int...
public static void main(String argv[]) { RuntimeEnvironment env = RuntimeEnvironment.getInstance(); boolean runIndex = true; if(argv.length == 0) { if (GraphicsEnvironment.isHeadless()) { System.err.println("No display available for the Graphical User Int...
diff --git a/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/display/DisplayView.java b/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/display/DisplayView.java index ca40cdef5..4c23a724b 100644 --- a/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/display/DisplayView.java +++ ...
true
true
protected void createActions() { fClearDisplayAction= new ClearOutputAction(fSourceViewer); IActionBars actionBars = getViewSite().getActionBars(); IAction action= new DisplayViewAction(this, ITextOperationTarget.CUT); action.setText(DisplayMessages.DisplayView_Cut_label); //$NON-NLS-1$ action.set...
protected void createActions() { fClearDisplayAction= new ClearOutputAction(fSourceViewer); IActionBars actionBars = getViewSite().getActionBars(); IAction action= new DisplayViewAction(this, ITextOperationTarget.CUT); action.setText(DisplayMessages.DisplayView_Cut_label); //$NON-NLS-1$ action.set...
diff --git a/src/main/java/com/succinctllc/hazelcast/util/MultiMapProxy.java b/src/main/java/com/succinctllc/hazelcast/util/MultiMapProxy.java index 6ba762d..9bb61ef 100644 --- a/src/main/java/com/succinctllc/hazelcast/util/MultiMapProxy.java +++ b/src/main/java/com/succinctllc/hazelcast/util/MultiMapProxy.java @@ -1,1...
false
true
public List<V> getAsList(K key) { if(guavaMultiMap != null) { synchronized (guavaMultiMap) { Collection<V> c = guavaMultiMap.get(key); if(c != null) return new ArrayList<V>(); else return null; } } else { Collection<V> c = hcMultiMap.get(key); if(c != null) return new Array...
public List<V> getAsList(K key) { if(guavaMultiMap != null) { synchronized (guavaMultiMap) { Collection<V> c = guavaMultiMap.get(key); if(c != null) return new ArrayList<V>(c); else return null; } } else { Collection<V> c = hcMultiMap.get(key); if(c != null) return new Arra...
diff --git a/src/com/jidesoft/swing/JideBoxLayout.java b/src/com/jidesoft/swing/JideBoxLayout.java index 3b445020..20c2f574 100644 --- a/src/com/jidesoft/swing/JideBoxLayout.java +++ b/src/com/jidesoft/swing/JideBoxLayout.java @@ -1,901 +1,901 @@ /* * @(#)JideBoxLayout.java * * Copyright 2002 JIDE Software Inc. ...
false
true
protected boolean calculateComponentSizes(int availableSize, int startIndex, int endIndex) { int availableSizeExcludeFixed = availableSize; int varMinSize = 0; int flexMinSize = 0; int varIndex = -1; int totalFlexSize = 0; int totalFlexSizeMinusMin = 0; int la...
protected boolean calculateComponentSizes(int availableSize, int startIndex, int endIndex) { int availableSizeExcludeFixed = availableSize; int varMinSize = 0; int flexMinSize = 0; int varIndex = -1; int totalFlexSize = 0; int totalFlexSizeMinusMin = 0; int la...
diff --git a/_Code/Warranty/src/ch/zhaw/warranty/CardListActivity.java b/_Code/Warranty/src/ch/zhaw/warranty/CardListActivity.java index dea09a5..823917e 100644 --- a/_Code/Warranty/src/ch/zhaw/warranty/CardListActivity.java +++ b/_Code/Warranty/src/ch/zhaw/warranty/CardListActivity.java @@ -1,88 +1,88 @@ package ch.z...
true
true
public void onCreate(Bundle saveInstanceState) { super.onCreate(saveInstanceState); setContentView(R.layout.activity_card_list); list = getListView(); list.setOnItemClickListener(new OnItemClickListener() { public void onItemClick(AdapterView<?> parent, View view, int position, long id) { I...
public void onCreate(Bundle saveInstanceState) { super.onCreate(saveInstanceState); setContentView(R.layout.activity_card_list); list = getListView(); list.setOnItemClickListener(new OnItemClickListener() { public void onItemClick(AdapterView<?> parent, View view, int position, long id) { I...
diff --git a/src/lang/LuaTypedInsideBlockDelegate.java b/src/lang/LuaTypedInsideBlockDelegate.java index 65ae5e6e..e8148e70 100644 --- a/src/lang/LuaTypedInsideBlockDelegate.java +++ b/src/lang/LuaTypedInsideBlockDelegate.java @@ -1,57 +1,62 @@ /* * Copyright 2011 Jon S Akhtar (Sylvanaar) * * Licensed under th...
false
true
public Result charTyped(char c, final Project project, final Editor editor, final PsiFile file) { Document document = editor.getDocument(); int caretOffset = editor.getCaretModel().getOffset(); PsiDocumentManager.getInstance(file.getProject()).commitDocument(document); PsiElement e...
public Result charTyped(char c, final Project project, final Editor editor, final PsiFile file) { Document document = editor.getDocument(); int caretOffset = editor.getCaretModel().getOffset(); PsiDocumentManager.getInstance(file.getProject()).commitDocument(document); PsiElement e...
diff --git a/code/src/main/java/se/altran/java/lambda/streamdemo/StreamDemo.java b/code/src/main/java/se/altran/java/lambda/streamdemo/StreamDemo.java index 1656f5c..31c1bda 100644 --- a/code/src/main/java/se/altran/java/lambda/streamdemo/StreamDemo.java +++ b/code/src/main/java/se/altran/java/lambda/streamdemo/StreamD...
false
true
public static void main (String[] args) { int max = 24; System.out.format("Checking numbers [1..%d]...%n", max); long start = System.nanoTime(); System.out.format("Odd numbers: %s%n", naturalNumbersUpTo(max).stream().filter(StreamDemo::heavyIsOdd).collect(Collectors.<Integer>toList()...
public static void main (String[] args) { int max = 24; System.out.format("Checking numbers [1..%d]...%n", max); long start = System.nanoTime(); System.out.println("Sequential"); System.out.println("---------------"); System.out.format("Odd numbers: %s%n", naturalNumb...
diff --git a/src/org/art_core/dev/cinder/input/XmlInputReader.java b/src/org/art_core/dev/cinder/input/XmlInputReader.java index 05ed7ab..125cfca 100644 --- a/src/org/art_core/dev/cinder/input/XmlInputReader.java +++ b/src/org/art_core/dev/cinder/input/XmlInputReader.java @@ -1,176 +1,176 @@ package org.art_core.dev.c...
true
true
protected void parseDocument(final Document doc) { try { PropertiesItem xItem; NodeList fileNodes, errorNodes; Integer eLine, eColumn; String eSeverity, eMessage, ePattern, sTargetFileName; Element fileElement, error; fileNodes = doc.getChildNodes().item(0).getChildNodes(); // handle all <f...
protected void parseDocument(final Document doc) { try { PropertiesItem xItem; NodeList fileNodes, errorNodes; Integer eLine, eColumn; String eSeverity, eMessage, ePattern, sTargetFileName; Element fileElement, error; fileNodes = doc.getElementsByTagName("padawan").item(0).getChildNodes(); ...
diff --git a/src/com/madgear/ninjatrials/ResultWinScene.java b/src/com/madgear/ninjatrials/ResultWinScene.java index 7e1765c..2747273 100644 --- a/src/com/madgear/ninjatrials/ResultWinScene.java +++ b/src/com/madgear/ninjatrials/ResultWinScene.java @@ -1,441 +1,441 @@ /* * Ninja Trials is an old school style Android...
false
true
private void prepareResults() { // Score Items: // We store a row for each score line in the results (for example time, concentration...). scoreItemArray = new ScoreItem[MAX_SCORE_ITEMS]; switch(GameManager.getCurrentTrial()) { case GameManager.TRIAL_RUN: tittleT...
private void prepareResults() { // Score Items: // We store a row for each score line in the results (for example time, concentration...). scoreItemArray = new ScoreItem[MAX_SCORE_ITEMS]; switch(GameManager.getCurrentTrial()) { case GameManager.TRIAL_RUN: tittleT...
diff --git a/src/balle/bluetooth/messages/MessageDecoder.java b/src/balle/bluetooth/messages/MessageDecoder.java index 4abdaad..472b01d 100644 --- a/src/balle/bluetooth/messages/MessageDecoder.java +++ b/src/balle/bluetooth/messages/MessageDecoder.java @@ -1,38 +1,43 @@ package balle.bluetooth.messages; /** * Fac...
false
true
public AbstractMessage decodeMessage(int hashedMessage) throws InvalidArgumentException { switch (AbstractMessage.extactOpcodeFromEncodedMessage(hashedMessage)) { case MessageKick.OPCODE: int isPenalty = MessageKick.decodeArgumentsFromHash(hashedMessage); return n...
public AbstractMessage decodeMessage(int hashedMessage) throws InvalidArgumentException { switch (AbstractMessage.extactOpcodeFromEncodedMessage(hashedMessage)) { case MessageKick.OPCODE: int isPenalty = MessageKick .decodeArgumentsFromHash(has...