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/libraries/javalib/gnu/java/net/protocol/http/Headers.java b/libraries/javalib/gnu/java/net/protocol/http/Headers.java index 0db9a552a..9968b2e77 100644 --- a/libraries/javalib/gnu/java/net/protocol/http/Headers.java +++ b/libraries/javalib/gnu/java/net/protocol/http/Headers.java @@ -1,363 +1,369 @@ /* Hea...
false
true
public void parse(InputStream in) throws IOException { LineInputStream lin = (in instanceof LineInputStream) ? (LineInputStream) in : new LineInputStream(in); String name = null; StringBuffer value = new StringBuffer(); while (true) { String line = lin.readLine(); ...
public void parse(InputStream in) throws IOException { LineInputStream lin = (in instanceof LineInputStream) ? (LineInputStream) in : new LineInputStream(in); String name = null; StringBuffer value = new StringBuffer(); while (true) { String line = lin.readLine(); ...
diff --git a/illaclient/src/illarion/client/gui/controller/game/GUIChatHandler.java b/illaclient/src/illarion/client/gui/controller/game/GUIChatHandler.java index 15d7573b..85085ea1 100644 --- a/illaclient/src/illarion/client/gui/controller/game/GUIChatHandler.java +++ b/illaclient/src/illarion/client/gui/controller/ga...
false
true
public void update(final GameContainer container, final int delta) { Element contentPane = null; while (true) { final GUIChatHandler.MessageEntry message = messageQueue.poll(); if (message == null) { break; } if (contentPane == null) ...
public void update(final GameContainer container, final int delta) { Element contentPane = null; while (true) { final GUIChatHandler.MessageEntry message = messageQueue.poll(); if (message == null) { break; } if (contentPane == null) ...
diff --git a/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/core/refactoring/BreakpointRenameTypeParticipant.java b/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/core/refactoring/BreakpointRenameTypeParticipant.java index ad62a658e..4c04ec8ef 100644 --- a/org.eclipse.jdt.debug.ui/ui/org/eclipse...
false
true
protected void gatherChanges(IMarker[] markers, List changes, String simpleDestName) throws CoreException, OperationCanceledException { IType originalType = (IType) getOriginalElement(); ICompilationUnit originalCU = originalType.getCompilationUnit(); ICompilationUnit destCU = null; ...
protected void gatherChanges(IMarker[] markers, List changes, String simpleDestName) throws CoreException, OperationCanceledException { IType originalType = (IType) getOriginalElement(); ICompilationUnit originalCU = originalType.getCompilationUnit(); ICompilationUnit destCU = null; ...
diff --git a/src/main/java/vazkii/tinkerer/common/AutoCrashReporter.java b/src/main/java/vazkii/tinkerer/common/AutoCrashReporter.java index 279777fa..ce88c222 100644 --- a/src/main/java/vazkii/tinkerer/common/AutoCrashReporter.java +++ b/src/main/java/vazkii/tinkerer/common/AutoCrashReporter.java @@ -1,103 +1,103 @@ ...
true
true
public void call(String crash) { if (crash.contains("minechem") && crash.indexOf("System Details") > crash.indexOf("minechem") && !crash.contains("occupied by")) { String to = "adlytempleton@gmail.com"; String neko = "kat.swales+ThaumicTIinkerer@nekokittygames.com"; String from = "thaumiccrashes@gmail.com";...
public void call(String crash) { if (crash.contains("vazkii.tinkerer") && crash.indexOf("System Details") > crash.indexOf("vazkii.tinkerer") && !crash.contains("occupied by")) { String to = "adlytempleton@gmail.com"; String neko = "kat.swales+ThaumicTIinkerer@nekokittygames.com"; String from = "thaumiccrash...
diff --git a/media/java/android/media/AudioService.java b/media/java/android/media/AudioService.java index da15adf0..937baad5 100644 --- a/media/java/android/media/AudioService.java +++ b/media/java/android/media/AudioService.java @@ -1,1434 +1,1434 @@ /* * Copyright (C) 2006 The Android Open Source Project * * ...
false
true
public void setRouting(int mode, int routes, int mask) { int incallMask = 0; int ringtoneMask = 0; int normalMask = 0; if (!checkAudioSettingsPermission("setRouting()")) { return; } synchronized (mSettingsLock) { // Temporary fix for issue #17...
public void setRouting(int mode, int routes, int mask) { int incallMask = 0; int ringtoneMask = 0; int normalMask = 0; if (!checkAudioSettingsPermission("setRouting()")) { return; } synchronized (mSettingsLock) { // Temporary fix for issue #17...
diff --git a/ldapstudio-schemas-plugin/src/main/java/org/apache/directory/ldapstudio/schemas/controller/actions/ExportSchemaForADSAction.java b/ldapstudio-schemas-plugin/src/main/java/org/apache/directory/ldapstudio/schemas/controller/actions/ExportSchemaForADSAction.java index 45aeeec02..9fa94dc81 100644 --- a/ldapstu...
true
true
public void run() { Object selection = ( ( TreeSelection ) view.getViewer().getSelection() ).getFirstElement(); if ( selection != null ) { if ( selection instanceof SchemaWrapper ) { Schema schema = ( ( SchemaWrapper ) selection ).getMySchema(); ...
public void run() { Object selection = ( ( TreeSelection ) view.getViewer().getSelection() ).getFirstElement(); if ( selection != null ) { if ( selection instanceof SchemaWrapper ) { Schema schema = ( ( SchemaWrapper ) selection ).getMySchema(); ...
diff --git a/libraries/jnaerator/jnaerator/src/main/java/com/ochafik/lang/jnaerator/BridJDeclarationsConverter.java b/libraries/jnaerator/jnaerator/src/main/java/com/ochafik/lang/jnaerator/BridJDeclarationsConverter.java index 65ba74c5..7e3722f4 100644 --- a/libraries/jnaerator/jnaerator/src/main/java/com/ochafik/lang/...
false
true
public void convertEnum(Enum e, Signatures signatures, DeclarationsHolder out, Identifier libraryClassName) { if (e.isForwardDeclaration()) { return; } Identifier rawEnumName = getActualTaggedTypeName(e); Map<String, EnumItemResult> results = result.typeConverter.getEnum...
public void convertEnum(Enum e, Signatures signatures, DeclarationsHolder out, Identifier libraryClassName) { if (e.isForwardDeclaration()) { return; } Identifier rawEnumName = getActualTaggedTypeName(e); Map<String, EnumItemResult> results = result.typeConverter.getEnum...
diff --git a/app/controllers/Login.java b/app/controllers/Login.java index b09bf9d..4670b01 100644 --- a/app/controllers/Login.java +++ b/app/controllers/Login.java @@ -1,170 +1,170 @@ package controllers; import java.lang.Exception; import java.util.*; //import play.api.libs.concurrent.Promise; import play.li...
true
true
public static Result verify() { Promise<UserInfo> userInfoPromise = OpenID.verifiedId(); UserInfo userInfo = userInfoPromise.get(); JsonNode json = Json.toJson(userInfo); // parse the data from openId String email = json.findPath("Email").getTextValue(); String firstName = json.findPath("FirstName").get...
public static Result verify() { Promise<UserInfo> userInfoPromise = OpenID.verifiedId(); UserInfo userInfo = userInfoPromise.get(); JsonNode json = Json.toJson(userInfo); // parse the data from openId String email = json.findPath("Email").getTextValue(); String firstName = json.findPath("FirstName").get...
diff --git a/src/org/intellij/erlang/formatter/ErlangBlock.java b/src/org/intellij/erlang/formatter/ErlangBlock.java index 8302e106..ea3a38fd 100644 --- a/src/org/intellij/erlang/formatter/ErlangBlock.java +++ b/src/org/intellij/erlang/formatter/ErlangBlock.java @@ -1,235 +1,235 @@ /* * Copyright 2012 Sergey Ignatov...
true
true
private List<Block> buildSubBlocks() { List<Block> blocks = new ArrayList<Block>(); Alignment alignment = null; Alignment baseAlignment = Alignment.createAlignment(); IElementType parentType = getNode().getElementType(); PsiElement psi = getNode().getPsi(); for (ASTNode child = myNode.getFirs...
private List<Block> buildSubBlocks() { List<Block> blocks = new ArrayList<Block>(); Alignment alignment = null; Alignment baseAlignment = Alignment.createAlignment(); IElementType parentType = getNode().getElementType(); PsiElement psi = getNode().getPsi(); for (ASTNode child = myNode.getFirs...
diff --git a/src/game/gui/MazeEditorPanel.java b/src/game/gui/MazeEditorPanel.java index 96f9721..ef225d8 100644 --- a/src/game/gui/MazeEditorPanel.java +++ b/src/game/gui/MazeEditorPanel.java @@ -1,511 +1,511 @@ package game.gui; import game.logic.Game; import game.ui.GameOptions; import game.ui.GameOutput; imp...
false
true
private void createMenuBar() { JMenuBar menuBar = new JMenuBar(); JMenu fileMenu = new JMenu("File"); fileMenu.setMnemonic(KeyEvent.VK_F); fileMenu.getAccessibleContext().setAccessibleDescription( "File menu"); menuBar.add(fileMenu); JMenuItem saveGameMenuItem = new JMenuItem("Save Maze", KeyEvent.V...
private void createMenuBar() { JMenuBar menuBar = new JMenuBar(); JMenu fileMenu = new JMenu("File"); fileMenu.setMnemonic(KeyEvent.VK_F); fileMenu.getAccessibleContext().setAccessibleDescription( "File menu"); menuBar.add(fileMenu); JMenuItem saveGameMenuItem = new JMenuItem("Save maze", KeyEvent.V...
diff --git a/sisu-inject/guice-plexus/guice-plexus-shim/src/main/java/org/codehaus/plexus/component/configurator/MapOrientedComponentConfigurator.java b/sisu-inject/guice-plexus/guice-plexus-shim/src/main/java/org/codehaus/plexus/component/configurator/MapOrientedComponentConfigurator.java index f622a528..33e784cf 1006...
true
true
public void configureComponent( final Object component, final PlexusConfiguration configuration, final ExpressionEvaluator expressionEvaluator, final ClassRealm containerRealm, final ConfigurationListener listener ) throws ComponentConf...
public void configureComponent( final Object component, final PlexusConfiguration configuration, final ExpressionEvaluator expressionEvaluator, final ClassRealm containerRealm, final ConfigurationListener listener ) throws ComponentConf...
diff --git a/webmacro/src/org/webmacro/WM.java b/webmacro/src/org/webmacro/WM.java index 4f86cc03..80f267be 100755 --- a/webmacro/src/org/webmacro/WM.java +++ b/webmacro/src/org/webmacro/WM.java @@ -1,349 +1,351 @@ /* * Copyright (c) 1998, 1999 Semiotek Inc. All Rights Reserved. * * This software is the confid...
true
true
public WM(String config, ClassLoader cl) throws InitException { BrokerOwner owner = null; Broker broker = null; try { if (config == null) { owner = _default; } else { synchronized(_brokers) { owner = (BrokerOwner) _brokers.get(config); ...
public WM(String config, ClassLoader cl) throws InitException { BrokerOwner owner = null; Broker broker = null; try { if (config == null) { owner = _default; } else { synchronized(_brokers) { owner = (BrokerOwner) _brokers.get(config); ...
diff --git a/src/com/oresomecraft/maps/arcade/maps/Paintball_Charlie.java b/src/com/oresomecraft/maps/arcade/maps/Paintball_Charlie.java index 753e50e..2b9ef5b 100644 --- a/src/com/oresomecraft/maps/arcade/maps/Paintball_Charlie.java +++ b/src/com/oresomecraft/maps/arcade/maps/Paintball_Charlie.java @@ -1,91 +1,91 @@ ...
true
true
public void onBlockClick(PlayerInteractEvent event) { Player p = event.getPlayer(); if (p.getLocation().getWorld().getName().equals(name)) { if (event.getAction().equals(Action.RIGHT_CLICK_BLOCK)) { Block b = event.getClickedBlock(); World w = Bukkit.ge...
public void onBlockClick(PlayerInteractEvent event) { Player p = event.getPlayer(); if (p.getLocation().getWorld().getName().equals(name)) { if (event.getAction().equals(Action.RIGHT_CLICK_BLOCK)) { Block b = event.getClickedBlock(); World w = Bukkit.ge...
diff --git a/src/com/android/settings/DateTimeSettingsSetupWizard.java b/src/com/android/settings/DateTimeSettingsSetupWizard.java index 4720e71e5..08204b69a 100644 --- a/src/com/android/settings/DateTimeSettingsSetupWizard.java +++ b/src/com/android/settings/DateTimeSettingsSetupWizard.java @@ -1,331 +1,328 @@ /* *...
true
true
public void initUiForXl() { // Currently just comment out codes related to auto timezone. // TODO: Remove them when we are sure they are unnecessary. /* final boolean autoTimeZoneEnabled = isAutoTimeZoneEnabled(); mAutoTimeZoneButton = (CompoundButton)findViewById(R.id.time_z...
public void initUiForXl() { // Currently just comment out codes related to auto timezone. // TODO: Remove them when we are sure they are unnecessary. /* final boolean autoTimeZoneEnabled = isAutoTimeZoneEnabled(); mAutoTimeZoneButton = (CompoundButton)findViewById(R.id.time_z...
diff --git a/org.jcryptool.core/src/org/jcryptool/core/Application.java b/org.jcryptool.core/src/org/jcryptool/core/Application.java index e0f28ab7..f2788b8b 100644 --- a/org.jcryptool.core/src/org/jcryptool/core/Application.java +++ b/org.jcryptool.core/src/org/jcryptool/core/Application.java @@ -1,71 +1,71 @@ // ---...
true
true
public Object start(IApplicationContext context) throws Exception { try { if (Locale.getDefault() != Locale.GERMAN && Locale.getDefault() != Locale.ENGLISH) { System.setProperty("osgi.nl", "en"); // fixes Platform.getNL() Locale.setDefault(Locale.ENGLISH); ...
public Object start(IApplicationContext context) throws Exception { try { if (!Locale.GERMAN.equals(Locale.getDefault()) && !Locale.ENGLISH.equals(Locale.getDefault())) { System.setProperty("osgi.nl", "en"); // fixes Platform.getNL() Locale.setDefault(Locale.ENGLI...
diff --git a/pact/pact-common/src/main/java/eu/stratosphere/pact/common/type/PactRecord.java b/pact/pact-common/src/main/java/eu/stratosphere/pact/common/type/PactRecord.java index d98812045..a5ef4c7b0 100644 --- a/pact/pact-common/src/main/java/eu/stratosphere/pact/common/type/PactRecord.java +++ b/pact/pact-common/sr...
false
true
public void updateBinaryRepresenation() { // check whether the binary state is in sync final int firstModified = this.firstModifiedPos < 0 ? 0 : this.firstModifiedPos; if (firstModified == Integer.MAX_VALUE) return; final InternalDeSerializer serializer = this.serializer; final int[] offsets = this...
public void updateBinaryRepresenation() { // check whether the binary state is in sync final int firstModified = this.firstModifiedPos < 0 ? 0 : this.firstModifiedPos; if (firstModified == Integer.MAX_VALUE) return; final InternalDeSerializer serializer = this.serializer; final int[] offsets = this...
diff --git a/app/Sketch.java b/app/Sketch.java index bacb8aa0..19521bf7 100644 --- a/app/Sketch.java +++ b/app/Sketch.java @@ -1,2191 +1,2191 @@ /* -*- mode: jde; c-basic-offset: 2; indent-tabs-mode: nil -*- */ /* Part of the Arduino project - http://arduino.berlios.de/ Copyright (c) 2004-05 Ben Fry and Cas...
false
true
public void importLibrary(String jarPath) { System.out.println(jarPath); /* // make sure the user didn't hide the sketch folder ensureExistence(); String list[] = Compiler.packageListFromClassPath(jarPath); // import statements into the main sketch file (code[0]) // if the current code is a ....
public void importLibrary(String jarPath) { System.out.println(jarPath); /* // make sure the user didn't hide the sketch folder ensureExistence(); String list[] = Compiler.packageListFromClassPath(jarPath); // import statements into the main sketch file (code[0]) // if the current code is a ....
diff --git a/src/de/aidger/view/forms/CourseEditorForm.java b/src/de/aidger/view/forms/CourseEditorForm.java index 1a8494c1..d0b62920 100644 --- a/src/de/aidger/view/forms/CourseEditorForm.java +++ b/src/de/aidger/view/forms/CourseEditorForm.java @@ -1,485 +1,485 @@ package de.aidger.view.forms; import static de.ai...
true
true
private void initComponents() { java.awt.GridBagConstraints gridBagConstraints; lblDescription = new javax.swing.JLabel(); lblSemester = new javax.swing.JLabel(); lblLecturer = new javax.swing.JLabel(); lblAdvisor = new javax.swing.JLabel(); lblNumberOfGroups = new j...
private void initComponents() { java.awt.GridBagConstraints gridBagConstraints; lblDescription = new javax.swing.JLabel(); lblSemester = new javax.swing.JLabel(); lblLecturer = new javax.swing.JLabel(); lblAdvisor = new javax.swing.JLabel(); lblNumberOfGroups = new j...
diff --git a/src/com/appnexus/opensdk/AdWebView.java b/src/com/appnexus/opensdk/AdWebView.java index bf8b1602..c94352bf 100644 --- a/src/com/appnexus/opensdk/AdWebView.java +++ b/src/com/appnexus/opensdk/AdWebView.java @@ -1,96 +1,96 @@ /** * */ package com.appnexus.opensdk; import android.annotation.Suppress...
false
true
private void setup(){ Settings.getSettings().ua=this.getSettings().getUserAgentString(); this.getSettings().setJavaScriptEnabled(true); this.getSettings().setJavaScriptCanOpenWindowsAutomatically(true); this.getSettings().setPluginState(WebSettings.PluginState.ON); this.getSettings().setBuiltInZoomControls(f...
private void setup(){ Settings.getSettings().ua=this.getSettings().getUserAgentString(); this.getSettings().setJavaScriptEnabled(true); this.getSettings().setJavaScriptCanOpenWindowsAutomatically(true); this.getSettings().setPluginState(WebSettings.PluginState.ON); this.getSettings().setBuiltInZoomControls(f...
diff --git a/swag-webapp/src/main/java/at/ac/tuwien/swag/webapp/in/messages/Notifications.java b/swag-webapp/src/main/java/at/ac/tuwien/swag/webapp/in/messages/Notifications.java index 5b48ff2..f9457da 100644 --- a/swag-webapp/src/main/java/at/ac/tuwien/swag/webapp/in/messages/Notifications.java +++ b/swag-webapp/src/m...
true
true
public Notifications(String id) { super(id); String username = ((SwagWebSession) getSession()).getUsername(); List<MessageDTO> notificationList = messages.getNotifications(username); final Format formatter = new SimpleDateFormat("yyyy.MM.dd HH:mm:ss"); DataView<MessageDTO...
public Notifications(String id) { super(id); String username = ((SwagWebSession) getSession()).getUsername(); List<MessageDTO> notificationList = messages.getNotifications(username); final Format formatter = new SimpleDateFormat("yyyy.MM.dd HH:mm:ss"); DataView<MessageDTO...
diff --git a/client/src/edu/rit/se/sse/rapdevx/api/SessionApi.java b/client/src/edu/rit/se/sse/rapdevx/api/SessionApi.java index a929c17..ab60ad0 100644 --- a/client/src/edu/rit/se/sse/rapdevx/api/SessionApi.java +++ b/client/src/edu/rit/se/sse/rapdevx/api/SessionApi.java @@ -1,218 +1,218 @@ package edu.rit.se.sse.rap...
true
true
public static Session createSession(String nickname, String gameID) throws Exception { String incomingJson = ""; try { // contents of the POST String data = URLEncoder.encode("nickname", "UTF-8") + "=" + URLEncoder.encode(nickname, "UTF-8"); // if there is a gameID if (gameID != null) ...
public static Session createSession(String nickname, String gameID) throws Exception { String incomingJson = ""; try { // contents of the POST String data = URLEncoder.encode("nickname", "UTF-8") + "=" + URLEncoder.encode(nickname, "UTF-8"); // if there is a gameID if (gameID != null) ...
diff --git a/jython/org/python/modules/cPickle.java b/jython/org/python/modules/cPickle.java index 145dcf72..0fe1273c 100644 --- a/jython/org/python/modules/cPickle.java +++ b/jython/org/python/modules/cPickle.java @@ -1,2075 +1,2075 @@ /* * Copyright 1998 Finn Bock. * * This program contains material copyrighte...
true
true
private void save(PyObject object, boolean pers_save) { if (!pers_save) { if (persistent_id != null) { PyObject pid = persistent_id.__call__(object); if (pid != Py.None) { save_pers(pid); return; ...
private void save(PyObject object, boolean pers_save) { if (!pers_save) { if (persistent_id != null) { PyObject pid = persistent_id.__call__(object); if (pid != Py.None) { save_pers(pid); return; ...
diff --git a/waterken/remote/src/org/waterken/remote/http/Callee.java b/waterken/remote/src/org/waterken/remote/http/Callee.java index 162e2eaf..3752c312 100644 --- a/waterken/remote/src/org/waterken/remote/http/Callee.java +++ b/waterken/remote/src/org/waterken/remote/http/Callee.java @@ -1,305 +1,306 @@ // Copyright...
true
true
public void serve(final String resource, final Volatile<Request> requestor, final Do<Response,?> respond) throws Exception { // check for web browser bootstrap request final String query = URI.query(null, resource); if (null == query) { final String project = expor...
public void serve(final String resource, final Volatile<Request> requestor, final Do<Response,?> respond) throws Exception { // check for web browser bootstrap request final String query = URI.query(null, resource); if (null == query) { final String project = expor...
diff --git a/src/DVN-EJB/src/java/edu/harvard/hmdc/vdcnet/dsb/impl/DvnNewJavaFieldCutter.java b/src/DVN-EJB/src/java/edu/harvard/hmdc/vdcnet/dsb/impl/DvnNewJavaFieldCutter.java index 61020b50a..511a0e44a 100644 --- a/src/DVN-EJB/src/java/edu/harvard/hmdc/vdcnet/dsb/impl/DvnNewJavaFieldCutter.java +++ b/src/DVN-EJB/src/...
true
true
public void cutColumns(File fl, int noCardsPerCase, int caseLength, String delimitor, String tabFileName) throws FileNotFoundException { if (delimitor == null) { delimitor = defaultDelimitor; } int[] lineLength = new int[noCardsPerCase]; InputStream in = null; ...
public void cutColumns(File fl, int noCardsPerCase, int caseLength, String delimitor, String tabFileName) throws FileNotFoundException { if (delimitor == null) { delimitor = defaultDelimitor; } int[] lineLength = new int[noCardsPerCase]; InputStream in = null; ...
diff --git a/wheelmap/wheelmap-it/src/main/java/org/wheelmap/android/test/TestPOIContentProvider.java b/wheelmap/wheelmap-it/src/main/java/org/wheelmap/android/test/TestPOIContentProvider.java index 4bf992b1..5d1689d9 100644 --- a/wheelmap/wheelmap-it/src/main/java/org/wheelmap/android/test/TestPOIContentProvider.java ...
true
true
public void testLocalHandler() throws Exception { Uri uri = Wheelmap.POIs.CONTENT_URI_POI_SORTED; final ContentResolver resolver = getMockContentResolver(); Cursor cursor = resolver.query(uri, Wheelmap.POIs.PROJECTION, null, createWhereValues(), ""); assertEquals(0, cursor.getCount()); insertDummyPOI(...
public void testLocalHandler() throws Exception { Uri uri = Wheelmap.POIs.CONTENT_URI_POI_SORTED; final ContentResolver resolver = getMockContentResolver(); Cursor cursor = resolver.query(uri, Wheelmap.POIs.PROJECTION, null, createWhereValues(), ""); assertEquals(0, cursor.getCount()); insertDummyPOI(...
diff --git a/src/org/apache/ws/security/message/WSSAddUsernameToken.java b/src/org/apache/ws/security/message/WSSAddUsernameToken.java index e86132739..de8269720 100644 --- a/src/org/apache/ws/security/message/WSSAddUsernameToken.java +++ b/src/org/apache/ws/security/message/WSSAddUsernameToken.java @@ -1,120 +1,120 @@...
true
true
public Document build(Document doc, String username, String password) { // throws Exception { log.debug("Begin add username token..."); Element securityHeader = insertSecurityHeader(doc, false); ut = new UsernameToken(doc, passwordType); ut.setName(username); ut.setPassword(passwor...
public Document build(Document doc, String username, String password) { // throws Exception { log.debug("Begin add username token..."); Element securityHeader = insertSecurityHeader(doc, false); ut = new UsernameToken(doc, passwordType); ut.setName(username); ut.setPassword(passwor...
diff --git a/src/de/unifr/acp/trafo/TransClass.java b/src/de/unifr/acp/trafo/TransClass.java index 160ab22..411729f 100644 --- a/src/de/unifr/acp/trafo/TransClass.java +++ b/src/de/unifr/acp/trafo/TransClass.java @@ -1,1003 +1,1003 @@ package de.unifr.acp.trafo; import java.io.IOException; import java.lang.reflect...
true
true
public static void doTransform(CtClass target, boolean hasTransformedSuperclass) throws NotFoundException, IOException, CannotCompileException, ClassNotFoundException { Object[] params4Logging = new Object[2]; params4Logging[0] = (target != null) ? target.getName() : target; para...
public static void doTransform(CtClass target, boolean hasTransformedSuperclass) throws NotFoundException, IOException, CannotCompileException, ClassNotFoundException { Object[] params4Logging = new Object[2]; params4Logging[0] = (target != null) ? target.getName() : target; para...
diff --git a/jfact/src/uk/ac/manchester/cs/jfact/datatypes/DataTypeSituation.java b/jfact/src/uk/ac/manchester/cs/jfact/datatypes/DataTypeSituation.java index df4afff..9e6d4ec 100644 --- a/jfact/src/uk/ac/manchester/cs/jfact/datatypes/DataTypeSituation.java +++ b/jfact/src/uk/ac/manchester/cs/jfact/datatypes/DataTypeSi...
true
true
public boolean checkCompatibleValue(DataTypeSituation<?> other) { if (!this.type.isCompatible(other.type)) { return false; } if (this.emptyConstraints() && other.emptyConstraints()) { return true; } List<Literal<?>> allLiterals = new ArrayList<Literal<...
public boolean checkCompatibleValue(DataTypeSituation<?> other) { if (!this.type.isCompatible(other.type)) { return false; } if (this.emptyConstraints() && other.emptyConstraints()) { return true; } List<Literal<?>> allLiterals = new ArrayList<Literal<...
diff --git a/src/main/java/com/google/gwtexpui/linker/server/UserAgentRule.java b/src/main/java/com/google/gwtexpui/linker/server/UserAgentRule.java index f57db87f7..366b6c57a 100644 --- a/src/main/java/com/google/gwtexpui/linker/server/UserAgentRule.java +++ b/src/main/java/com/google/gwtexpui/linker/server/UserAgentR...
true
true
public String select(HttpServletRequest req) { String ua = req.getHeader("User-Agent"); if (ua == null) { return null; } ua = ua.toLowerCase(); if (ua.indexOf("opera") != -1) { return "opera"; } else if (ua.indexOf("webkit") != -1) { return "safari"; } else if (ua.ind...
public String select(HttpServletRequest req) { String ua = req.getHeader("User-Agent"); if (ua == null) { return null; } ua = ua.toLowerCase(); if (ua.indexOf("opera") != -1) { return "opera"; } else if (ua.indexOf("webkit") != -1) { return "safari"; } else if (ua.ind...
diff --git a/src/nl/giantit/minecraft/GiantShop/core/Logger/Logger.java b/src/nl/giantit/minecraft/GiantShop/core/Logger/Logger.java index 6ba18c2..8f599fa 100644 --- a/src/nl/giantit/minecraft/GiantShop/core/Logger/Logger.java +++ b/src/nl/giantit/minecraft/GiantShop/core/Logger/Logger.java @@ -1,92 +1,92 @@ package ...
true
true
public static void Log(LoggerType t, String n, String data) { config conf = config.Obtain(); if(conf.getBoolean("GiantShop.global.logActions")) { db DB = db.Obtain(); int type = t.getID(); ArrayList<String> fields = new ArrayList<String>(); ArrayList<HashMap<Integer, HashMap<String, String>>> valu...
public static void Log(LoggerType t, String n, String data) { config conf = config.Obtain(); if(conf.getBoolean("GiantShop.global.logActions")) { db DB = db.Obtain(); int type = t.getID(); ArrayList<String> fields = new ArrayList<String>(); ArrayList<HashMap<Integer, HashMap<String, String>>> valu...
diff --git a/bundles/com.eclipsesource.jshint.ui/src/com/eclipsesource/jshint/ui/internal/preferences/ui/JSHintPreferencePage.java b/bundles/com.eclipsesource.jshint.ui/src/com/eclipsesource/jshint/ui/internal/preferences/ui/JSHintPreferencePage.java index 1ea22d6..ba19fae 100644 --- a/bundles/com.eclipsesource.jshint....
false
true
private void createCustomJSHintArea( Composite parent ) { defaultLibButton = new Button( parent, SWT.RADIO ); defaultLibButton.setText( "Use the &built-in JSHint library (version " + JSHint.getDefaultLibraryVersion() + ")" ); gridData( defaultLib...
private void createCustomJSHintArea( Composite parent ) { defaultLibButton = new Button( parent, SWT.RADIO ); defaultLibButton.setText( "Use the &built-in JSHint library (version " + JSHint.getDefaultLibraryVersion() + ")" ); gridData( defaultLib...
diff --git a/org.eclipse.epp.mpc.tests/src/org/eclipse/epp/mpc/tests/util/TransportFactoryTest.java b/org.eclipse.epp.mpc.tests/src/org/eclipse/epp/mpc/tests/util/TransportFactoryTest.java index a18d5f8..96423ed 100644 --- a/org.eclipse.epp.mpc.tests/src/org/eclipse/epp/mpc/tests/util/TransportFactoryTest.java +++ b/or...
true
true
public void testStream() throws Exception { ITransport transport = TransportFactory.instance().getTransport(); URI uri = new URI("http://www.eclipse.org"); InputStream stream = transport.stream(uri, new NullProgressMonitor()); assertNotNull(stream); stream.close(); }
public void testStream() throws Exception { ITransport transport = TransportFactory.instance().getTransport(); URI uri = new URI("http://www.eclipse.org/index.php"); InputStream stream = transport.stream(uri, new NullProgressMonitor()); assertNotNull(stream); stream.close(); }
diff --git a/overdue/src/main/java/com/ning/billing/overdue/applicator/OverdueStateApplicator.java b/overdue/src/main/java/com/ning/billing/overdue/applicator/OverdueStateApplicator.java index 2d4bb2119..ee412f375 100644 --- a/overdue/src/main/java/com/ning/billing/overdue/applicator/OverdueStateApplicator.java +++ b/o...
false
true
public void apply(final OverdueState firstOverdueState, final BillingState billingState, final Account overdueable, final String previousOverdueStateName, final OverdueState nextOverdueState, final InternalCallContext context) throws OverdueException { try { ...
public void apply(final OverdueState firstOverdueState, final BillingState billingState, final Account overdueable, final String previousOverdueStateName, final OverdueState nextOverdueState, final InternalCallContext context) throws OverdueException { try { ...
diff --git a/src/com/bekvon/bukkit/residence/listeners/ResidenceEntityListener.java b/src/com/bekvon/bukkit/residence/listeners/ResidenceEntityListener.java index 4fa1938..21276cc 100644 --- a/src/com/bekvon/bukkit/residence/listeners/ResidenceEntityListener.java +++ b/src/com/bekvon/bukkit/residence/listeners/Residenc...
true
true
public void onEntityExplode(EntityExplodeEvent event) { if(event.isCancelled()||event.getEntity()==null) return; Boolean cancel = false; EntityType entity = event.getEntityType(); FlagPermissions perms = Residence.getPermsByLoc(event.getEntity().getLocation()); if...
public void onEntityExplode(EntityExplodeEvent event) { if(event.isCancelled()||event.getEntity()==null) return; Boolean cancel = false; EntityType entity = event.getEntityType(); FlagPermissions perms = Residence.getPermsByLoc(event.getEntity().getLocation()); if...
diff --git a/framework/test/integrationtest-java/test/test/SimpleTest.java b/framework/test/integrationtest-java/test/test/SimpleTest.java index 9b960a730..ea80c2232 100644 --- a/framework/test/integrationtest-java/test/test/SimpleTest.java +++ b/framework/test/integrationtest-java/test/test/SimpleTest.java @@ -1,313 +...
true
true
public void nestedContraints() { Form<JCustomer> customerForm = new Form<JCustomer>(JCustomer.class); // email constraints assertThat(customerForm.field("email").constraints().size()).as( "field(\"email\").constraints().size()").isEqualTo(2); assertThat(customerForm.f...
public void nestedConstraints() { Form<JCustomer> customerForm = new Form<JCustomer>(JCustomer.class); // email constraints assertThat(customerForm.field("email").constraints().size()).as( "field(\"email\").constraints().size()").isEqualTo(2); assertThat(customerForm....
diff --git a/GPSTools/src/main/java/com/ijmacd/gpstools/mobile/DatabaseHelper.java b/GPSTools/src/main/java/com/ijmacd/gpstools/mobile/DatabaseHelper.java index 8c828c3..fb71e4e 100644 --- a/GPSTools/src/main/java/com/ijmacd/gpstools/mobile/DatabaseHelper.java +++ b/GPSTools/src/main/java/com/ijmacd/gpstools/mobile/Dat...
false
true
public void onCreate(SQLiteDatabase db) { db.execSQL("CREATE TABLE " + WIDGET_TABLE_NAME + " (" + ID_COLUMN + " INTEGER PRIMARY KEY, " + ORDER_COLUMN + " INTEGER, " + TYPE_COLUMN + " INTEGER, " + WIDTH_COLUMN + " INTEGER, " + H...
public void onCreate(SQLiteDatabase db) { db.execSQL("CREATE TABLE " + WIDGET_TABLE_NAME + " (" + ID_COLUMN + " INTEGER PRIMARY KEY, " + ORDER_COLUMN + " INTEGER, " + TYPE_COLUMN + " INTEGER, " + WIDTH_COLUMN + " INTEGER, " + H...
diff --git a/src/cs437/som/visualization/GreenToRedHeat.java b/src/cs437/som/visualization/GreenToRedHeat.java index a59dc8f..35e7e0a 100644 --- a/src/cs437/som/visualization/GreenToRedHeat.java +++ b/src/cs437/som/visualization/GreenToRedHeat.java @@ -1,24 +1,24 @@ package cs437.som.visualization; import java.awt....
true
true
public Color getColor(int intensity) { if (intensity < 0) return Color.green; else if (intensity > 100) return Color.red; else { final float hue = ((100-intensity) * GREEN_HUE_SCALE) / CIRCLE_DEG; final int rgb = Color.HSBtoRGB(hue, 1.0f, 1.0f)...
public Color getColor(int intensity) { if (intensity < 0) return Color.green; else if (intensity > 100) return Color.red; else { final float hue = ((intensity) * GREEN_HUE_SCALE) / CIRCLE_DEG; final int rgb = Color.HSBtoRGB(hue, 1.0f, 1.0f); ...
diff --git a/AdamBots-FIRST-2013-Robot-Code/src/robot/sensors/RobotSensors.java b/AdamBots-FIRST-2013-Robot-Code/src/robot/sensors/RobotSensors.java index 6575b3c..c73bef8 100644 --- a/AdamBots-FIRST-2013-Robot-Code/src/robot/sensors/RobotSensors.java +++ b/AdamBots-FIRST-2013-Robot-Code/src/robot/sensors/RobotSensors....
true
true
private static void initCompetition(){ //// ANALOG CARD ------------------------------------------------------- gyroChassis = new Gyro(ANA1, CompetitionBot.Analog.GYRO); //? configA = new AnalogChannel(ANA1, CompetitionBot.Analog.CONFIG_A); configB = new AnalogChannel(ANA1, CompetitionBot.An...
private static void initCompetition(){ //// ANALOG CARD ------------------------------------------------------- gyroChassis = new Gyro(ANA1, CompetitionBot.Analog.GYRO); //? configA = new AnalogChannel(ANA1, CompetitionBot.Analog.CONFIG_A); configB = new AnalogChannel(ANA1, CompetitionBot.An...
diff --git a/java/src/strings/RegexMatching.java b/java/src/strings/RegexMatching.java index 2f4bf3d..66b35b6 100644 --- a/java/src/strings/RegexMatching.java +++ b/java/src/strings/RegexMatching.java @@ -1,94 +1,94 @@ package strings; /** * Write a function to match a given string to a regular expression. * ...
true
true
private static boolean isMatch(String str, int strIndex, String regex, int regexIndex) { if (strIndex >= str.length() && regexIndex == regex.length()) { return true; } if (regexIndex == regex.length()) { return false; } char regexChar = regex.charAt(regexIndex); if (regexIndex < regex.length() ...
private static boolean isMatch(String str, int strIndex, String regex, int regexIndex) { if (strIndex >= str.length() && regexIndex == regex.length()) { return true; } if (regexIndex == regex.length()) { return false; } char regexChar = regex.charAt(regexIndex); if (regexIndex < regex.length() ...
diff --git a/core/src/main/java/hudson/StructuredForm.java b/core/src/main/java/hudson/StructuredForm.java index f457ae550..099d4eff9 100644 --- a/core/src/main/java/hudson/StructuredForm.java +++ b/core/src/main/java/hudson/StructuredForm.java @@ -1,74 +1,74 @@ /* * The MIT License * * Copyright (c) 2004-2009,...
true
true
public static List<JSONObject> toList(JSONObject parent, String propertyName) { Object v = parent.get(propertyName); if(v==null) return Collections.emptyList(); if(v instanceof JSONObject) return Collections.singletonList((JSONObject)v); if(v instanceof JSONAr...
public static List<JSONObject> toList(JSONObject parent, String propertyName) { Object v = parent.get(propertyName); if(v==null) return Collections.emptyList(); if(v instanceof JSONObject) return Collections.singletonList((JSONObject)v); if(v instanceof JSONAr...
diff --git a/src/me/guillaumin/android/osmtracker/db/TracklistAdapter.java b/src/me/guillaumin/android/osmtracker/db/TracklistAdapter.java index 37abbb5..06f9cff 100644 --- a/src/me/guillaumin/android/osmtracker/db/TracklistAdapter.java +++ b/src/me/guillaumin/android/osmtracker/db/TracklistAdapter.java @@ -1,93 +1,93 ...
false
true
private View bind(Cursor cursor, View v, Context context) { TextView vId = (TextView) v.findViewById(R.id.trackmgr_item_id); TextView vNameOrStartDate = (TextView) v.findViewById(R.id.trackmgr_item_nameordate); TextView vWps = (TextView) v.findViewById(R.id.trackmgr_item_wps); TextView vTps = (TextView) v.find...
private View bind(Cursor cursor, View v, Context context) { TextView vId = (TextView) v.findViewById(R.id.trackmgr_item_id); TextView vNameOrStartDate = (TextView) v.findViewById(R.id.trackmgr_item_nameordate); TextView vWps = (TextView) v.findViewById(R.id.trackmgr_item_wps); TextView vTps = (TextView) v.find...
diff --git a/caintegrator2-war/src/gov/nih/nci/caintegrator2/web/action/analysis/KMPlotForm.java b/caintegrator2-war/src/gov/nih/nci/caintegrator2/web/action/analysis/KMPlotForm.java index 587ae5ed9..3cc70f9f8 100644 --- a/caintegrator2-war/src/gov/nih/nci/caintegrator2/web/action/analysis/KMPlotForm.java +++ b/cainteg...
true
true
public void clear() { SessionHelper.clearKmPlots(); annotationBasedForm.clear(); geneExpressionBasedForm.clear(); queryBasedForm.clear(); }
public void clear() { SessionHelper.clearKmPlots(); survivalValueDefinitions.clear(); survivalValueDefinitionId = null; annotationBasedForm.clear(); geneExpressionBasedForm.clear(); queryBasedForm.clear(); }
diff --git a/svnkit-cli/src/org/tmatesoft/svn/cli/svn/SVNStatusPrinter.java b/svnkit-cli/src/org/tmatesoft/svn/cli/svn/SVNStatusPrinter.java index 8a61b8217..cd243c730 100644 --- a/svnkit-cli/src/org/tmatesoft/svn/cli/svn/SVNStatusPrinter.java +++ b/svnkit-cli/src/org/tmatesoft/svn/cli/svn/SVNStatusPrinter.java @@ -1,1...
false
true
public void printStatus(String path, SVNStatus status, boolean detailed, boolean showLastCommitted, boolean skipUnrecognized, boolean showReposLocks) { if (status == null || (skipUnrecognized && !(status.isVersioned() || status.getTreeConflict() != null)) || (status.getContentsSt...
public void printStatus(String path, SVNStatus status, boolean detailed, boolean showLastCommitted, boolean skipUnrecognized, boolean showReposLocks) { if (status == null || (skipUnrecognized && !(status.isVersioned() || status.getTreeConflict() != null)) || (status.getContentsSt...
diff --git a/src/Ficha.java b/src/Ficha.java index ac371c8..c4eec08 100755 --- a/src/Ficha.java +++ b/src/Ficha.java @@ -1,163 +1,163 @@ import java.awt.BorderLayout; import java.awt.Color; import java.util.ArrayList; import javax.swing.ImageIcon; import javax.swing.JLabel; import javax.swing.JOptionPane; impo...
true
true
void determinarPosiblesMovimientos() { // Posibles movimientos por defecto (aún sin validar si hay fichas en las posiciones posibles // a mover ni si puede comer o no) ArrayList<Posicion> posiblesMovs = new ArrayList<Posicion>(); this.posiblesMovs = posiblesMovs; int incremen...
void determinarPosiblesMovimientos() { // Posibles movimientos por defecto (aún sin validar si hay fichas en las posiciones posibles // a mover ni si puede comer o no) ArrayList<Posicion> posiblesMovs = new ArrayList<Posicion>(); this.posiblesMovs = posiblesMovs; int incremen...
diff --git a/flexodesktop/model/flexofoundation/src/main/java/org/openflexo/foundation/viewpoint/URIParameter.java b/flexodesktop/model/flexofoundation/src/main/java/org/openflexo/foundation/viewpoint/URIParameter.java index b8d0dadaa..81cc58805 100644 --- a/flexodesktop/model/flexofoundation/src/main/java/org/openflex...
true
true
public Vector<EditionSchemeParameter> getDependancies() { if (getBaseURI().isSet() && getBaseURI().isValid()) { Vector<EditionSchemeParameter> returned = new Vector<EditionSchemeParameter>(); try { Vector<Variable> variables = Expression.extractVariables(getBaseURI().toString()); for (Variable v : vari...
public Vector<EditionSchemeParameter> getDependancies() { if (getBaseURI().isSet() && getBaseURI().isValid()) { Vector<EditionSchemeParameter> returned = new Vector<EditionSchemeParameter>(); try { Vector<Variable> variables = Expression.extractVariables(getBaseURI().toString()); for (Variable v : vari...
diff --git a/src/algorithms/Denclue.java b/src/algorithms/Denclue.java index 912f522..ebf605e 100644 --- a/src/algorithms/Denclue.java +++ b/src/algorithms/Denclue.java @@ -1,271 +1,271 @@ package algorithms; import java.util.Collections; import java.util.HashMap; import java.util.Map; import java.util.Set; imp...
true
true
private Point getDensityAttractor(Point point) { final double delta = 1; Point curr_attractor = point; Point found_attractor = null; int MAX_ITERATIONS = 5; Boolean reachedTop = false; do { // Avoid infinite loops if (--MAX_ITERATIONS <= 0) { break; } // Store last calculated valu...
private Point getDensityAttractor(Point point) { final double delta = 1; Point curr_attractor = new Point(point.params, point.clusterId); Point found_attractor = null; int MAX_ITERATIONS = 5; Boolean reachedTop = false; do { // Avoid infinite loops if (--MAX_ITERATIONS <= 0) { break; ...
diff --git a/src/com/iver/cit/gvsig/gui/cad/MyFinishAction.java b/src/com/iver/cit/gvsig/gui/cad/MyFinishAction.java index e097f95..01633b4 100644 --- a/src/com/iver/cit/gvsig/gui/cad/MyFinishAction.java +++ b/src/com/iver/cit/gvsig/gui/cad/MyFinishAction.java @@ -1,85 +1,92 @@ package com.iver.cit.gvsig.gui.cad; i...
true
true
public void performAction() { FLyrVect lyr = null; MapControl mapCtrl = view.getMapControl(); try { mapCtrl.getMapContext().beginAtomicEvent(); lyr = wizard.createLayer(mapCtrl.getProjection()); } catch (Exception e) { NotificationManager.showMessageError(e.getLocalizedMessage(), e); return;...
public void performAction() { FLyrVect lyr = null; MapControl mapCtrl = view.getMapControl(); try { mapCtrl.getMapContext().beginAtomicEvent(); lyr = wizard.createLayer(mapCtrl.getProjection()); } catch (Exception e) { Throwable cause = e.getCause(); if (cause != null) { NotificationManage...
diff --git a/src/uk/org/ownage/dmdirc/ui/components/Frame.java b/src/uk/org/ownage/dmdirc/ui/components/Frame.java index d92729f71..f24cba416 100644 --- a/src/uk/org/ownage/dmdirc/ui/components/Frame.java +++ b/src/uk/org/ownage/dmdirc/ui/components/Frame.java @@ -1,799 +1,799 @@ /* * Copyright (c) 2006-2007 Chris S...
true
true
public void keyPressed(final KeyEvent event) { String clipboardContents = null; String[] clipboardContentsLines = new String[]{"", }; if (event.getKeyCode() == KeyEvent.VK_F3) { getSearchBar().open(); } if (event.getSource() == getTextPane()) { if ((Bo...
public void keyPressed(final KeyEvent event) { String clipboardContents = null; String[] clipboardContentsLines = new String[]{"", }; if (event.getKeyCode() == KeyEvent.VK_F3) { getSearchBar().open(); } if (event.getSource() == getTextPane()) { if ((Bo...
diff --git a/runtime/core/src/main/java/fr/imag/adele/apam/impl/CompositeImpl.java b/runtime/core/src/main/java/fr/imag/adele/apam/impl/CompositeImpl.java index 5ceeb2bc..789d3f32 100644 --- a/runtime/core/src/main/java/fr/imag/adele/apam/impl/CompositeImpl.java +++ b/runtime/core/src/main/java/fr/imag/adele/apam/impl/...
false
true
public void register(Map<String, String> initialProperties) throws InvalidConfiguration { // true if Abstract composite or unused main instance boolean registerMain = false; /* * Initialize the contained instances. The main instance will be eagerly created and the other * components will be lazily inst...
public void register(Map<String, String> initialProperties) throws InvalidConfiguration { // true if Abstract composite or unused main instance boolean registerMain = false; /* * Initialize the contained instances. The main instance will be eagerly created and the other * components will be lazily inst...
diff --git a/src/main/java/com/md_5/district/Commands.java b/src/main/java/com/md_5/district/Commands.java index fc7f7a6..66f5ffb 100644 --- a/src/main/java/com/md_5/district/Commands.java +++ b/src/main/java/com/md_5/district/Commands.java @@ -1,247 +1,249 @@ package com.md_5.district; import java.util.ArrayList; ...
false
true
public static void claim(final Player player, final String[] args, final int count) { if (args.length != count) { invalidArgs(player); return; } int size = 0, height; try { size = Integer.parseInt(args[1]); } catch (NumberFormatException ex...
public static void claim(final Player player, final String[] args, final int count) { if (args.length != count) { invalidArgs(player); return; } int size = 0, height; try { size = Integer.parseInt(args[1]); } catch (NumberFormatException ex...
diff --git a/src/com/monitoring/munin_node/munin_service.java b/src/com/monitoring/munin_node/munin_service.java index 15a6455..6a25425 100644 --- a/src/com/monitoring/munin_node/munin_service.java +++ b/src/com/monitoring/munin_node/munin_service.java @@ -1,225 +1,205 @@ package com.monitoring.munin_node; import j...
true
true
public int onStartCommand(Intent intent, int flags, int startId) { PowerManager pm = (PowerManager) getSystemService(Context.POWER_SERVICE); final PowerManager.WakeLock wakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, "Munin Wake Lock"); wakeLock.acquire(); long when = System.currentTimeMillis(); ...
public int onStartCommand(Intent intent, int flags, int startId) { PowerManager pm = (PowerManager) getSystemService(Context.POWER_SERVICE); final PowerManager.WakeLock wakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, "Munin Wake Lock"); wakeLock.acquire(); long when = System.currentTimeMillis(); ...
diff --git a/src/haven/RemoteUI.java b/src/haven/RemoteUI.java index 96a5f87..290c112 100644 --- a/src/haven/RemoteUI.java +++ b/src/haven/RemoteUI.java @@ -1,73 +1,73 @@ /* * This file is part of the Haven & Hearth game client. * Copyright (C) 2009 Fredrik Tolf <fredrik@dolda2000.com>, and * ...
true
true
public void run(UI ui) throws InterruptedException { this.ui = ui; ui.setreceiver(this); while (true) { Message msg; while ((msg = sess.getuimsg()) != null) { if (msg.type == Message.RMSG_NEWWDG) { int id = msg.uint16(); String type = msg.string(); int parent = msg.uint16(); Object[...
public void run(UI ui) throws InterruptedException { this.ui = ui; ui.setreceiver(this); while (sess.alive()) { Message msg; while ((msg = sess.getuimsg()) != null) { if (msg.type == Message.RMSG_NEWWDG) { int id = msg.uint16(); String type = msg.string(); int parent = msg.uint16(); ...
diff --git a/src/common/wustendorf/House.java b/src/common/wustendorf/House.java index f9fa55a..6df00d5 100644 --- a/src/common/wustendorf/House.java +++ b/src/common/wustendorf/House.java @@ -1,708 +1,710 @@ package wustendorf; import net.minecraft.src.*; import java.util.*; public class House { public st...
true
true
public static Room detectRoom(Location start) { Room room = new Room(); World world = start.world; int x = start.x; int y = start.y; int z = start.z; BlockType type; // Descend to the bottom of the first air pocket at or below...
public static Room detectRoom(Location start) { Room room = new Room(); World world = start.world; int x = start.x; int y = start.y; int z = start.z; BlockType type; // Descend to the bottom of the first air pocket at or below...
diff --git a/webapp/src/main/java/org/vaadin/tori/component/NewThreadComponent.java b/webapp/src/main/java/org/vaadin/tori/component/NewThreadComponent.java index 96a241c0..ba9b1841 100644 --- a/webapp/src/main/java/org/vaadin/tori/component/NewThreadComponent.java +++ b/webapp/src/main/java/org/vaadin/tori/component/N...
true
true
public NewThreadComponent(final NewThreadListener listener, final String formattingSyntaxXhtml) { super(listener, formattingSyntaxXhtml, "Thread body"); }
public NewThreadComponent(final NewThreadListener listener, final String formattingSyntaxXhtml) { super(listener, formattingSyntaxXhtml, "Post body"); }
diff --git a/src/com/github/joakimpersson/tda367/controller/UpgradePlayerState.java b/src/com/github/joakimpersson/tda367/controller/UpgradePlayerState.java index 99ed1ba..7394e26 100644 --- a/src/com/github/joakimpersson/tda367/controller/UpgradePlayerState.java +++ b/src/com/github/joakimpersson/tda367/controller/Upg...
true
true
public void update(GameContainer container, StateBasedGame game, int delta) throws SlickException { Input input = container.getInput(); // TODO jocke only used during development if (input.isKeyDown(Input.KEY_ESCAPE)) { container.exit(); } if (inputManager.pressedProcced(input)) { game.enterState(...
public void update(GameContainer container, StateBasedGame game, int delta) throws SlickException { Input input = container.getInput(); // TODO jocke only used during development if (input.isKeyDown(Input.KEY_ESCAPE)) { container.exit(); } if (inputManager.pressedProceed(input)) { game.enterState(...
diff --git a/src/net/java/otr4j/session/SessionImpl.java b/src/net/java/otr4j/session/SessionImpl.java index 6a27d92f..12cbb381 100644 --- a/src/net/java/otr4j/session/SessionImpl.java +++ b/src/net/java/otr4j/session/SessionImpl.java @@ -1,771 +1,771 @@ /* * otr4j, the open source java otr library. * * Distrib...
true
true
private String handleDataMessage(DataMessage data, List<TLV> tlvs) throws OtrException { logger.finest(getSessionID().getAccountID() + " received a data message from " + getSessionID().getUserID() + "."); switch (this.getSessionStatus()) { case ENCRYPTED: l...
private String handleDataMessage(DataMessage data, List<TLV> tlvs) throws OtrException { logger.finest(getSessionID().getAccountID() + " received a data message from " + getSessionID().getUserID() + "."); switch (this.getSessionStatus()) { case ENCRYPTED: l...
diff --git a/rdt/org.eclipse.ptp.rdt.ui/src/org/eclipse/ptp/internal/rdt/ui/navigtor/RemoteCNavigatorRefactorActionProvider.java b/rdt/org.eclipse.ptp.rdt.ui/src/org/eclipse/ptp/internal/rdt/ui/navigtor/RemoteCNavigatorRefactorActionProvider.java index 83d1f5008..fedbe2ab6 100644 --- a/rdt/org.eclipse.ptp.rdt.ui/src/or...
true
true
public void fillContextMenu(IMenuManager menu) { ActionContext context = getContext(); ISelection selection = context.getSelection(); if (selection != null && !selection.isEmpty() && selection instanceof StructuredSelection) { Object sel = ((StructuredSelection)selection).getFirstElement(); if (sel instanc...
public void fillContextMenu(IMenuManager menu) { ActionContext context = getContext(); ISelection selection = context.getSelection(); if (selection != null && !selection.isEmpty() && selection instanceof StructuredSelection) { Object sel = ((StructuredSelection)selection).getFirstElement(); if (sel instanc...
diff --git a/src/main/java/org/codeforamerica/open311/facade/data/ServiceDiscoveryInfo.java b/src/main/java/org/codeforamerica/open311/facade/data/ServiceDiscoveryInfo.java index faf53643..11a1a76c 100644 --- a/src/main/java/org/codeforamerica/open311/facade/data/ServiceDiscoveryInfo.java +++ b/src/main/java/org/codefo...
true
true
public Endpoint getMoreSuitableEndpoint(EndpointType endpointType) { List<Endpoint> typeFilteredEndpoints = new LinkedList<Endpoint>(); for (Endpoint endpoint : endpoints) { if (endpoint.getType() == endpointType) { typeFilteredEndpoints.add(endpoint); } } Endpoint candidate = null; for (Endpoint e...
public Endpoint getMoreSuitableEndpoint(EndpointType endpointType) { List<Endpoint> typeFilteredEndpoints = new LinkedList<Endpoint>(); for (Endpoint endpoint : endpoints) { if (endpoint.getType() == endpointType) { typeFilteredEndpoints.add(endpoint); } } Endpoint candidate = null; for (Endpoint e...
diff --git a/engine/src/blender/com/jme3/scene/plugins/blender/constraints/ConstraintHelper.java b/engine/src/blender/com/jme3/scene/plugins/blender/constraints/ConstraintHelper.java index 0b496ed9c..b9737564a 100644 --- a/engine/src/blender/com/jme3/scene/plugins/blender/constraints/ConstraintHelper.java +++ b/engine/...
true
true
public Map<Long, List<Constraint>> loadConstraints(Structure objectStructure, DataRepository dataRepository) throws BlenderFileException { if (blenderVersion < 250) {//TODO LOGGER.warning("Loading of constraints not yet implemented for version 2.5x !"); return new HashMap<Long, List<Constraint>>(0); } /...
public Map<Long, List<Constraint>> loadConstraints(Structure objectStructure, DataRepository dataRepository) throws BlenderFileException { if (blenderVersion >= 250) {//TODO LOGGER.warning("Loading of constraints not yet implemented for version 2.5x !"); return new HashMap<Long, List<Constraint>>(0); } ...
diff --git a/alchemy-midlet/src/alchemy/nec/NEL.java b/alchemy-midlet/src/alchemy/nec/NEL.java index 6b2dc71..4c96c21 100644 --- a/alchemy-midlet/src/alchemy/nec/NEL.java +++ b/alchemy-midlet/src/alchemy/nec/NEL.java @@ -1,499 +1,499 @@ /* * This file is a part of Alchemy OS project. * Copyright (C) 2011-2013, Se...
true
true
public int main(Context c, String[] args) { //parsing arguments String outname = "a.out"; String soname = null; Vector infiles = new Vector(); Vector linklibs = new Vector(); linklibs.addElement("libcore.so"); //always link with libcore linklibs.addElement("libcoree.so"); //always link with libcoree bo...
public int main(Context c, String[] args) { //parsing arguments String outname = "a.out"; String soname = null; Vector infiles = new Vector(); Vector linklibs = new Vector(); linklibs.addElement("libcore.so"); //always link with libcore linklibs.addElement("libcoree.so"); //always link with libcoree bo...
diff --git a/core/src/test/java/io/undertow/util/FileSystemWatcherTestCase.java b/core/src/test/java/io/undertow/util/FileSystemWatcherTestCase.java index ba8d4f10b..cb2293512 100644 --- a/core/src/test/java/io/undertow/util/FileSystemWatcherTestCase.java +++ b/core/src/test/java/io/undertow/util/FileSystemWatcherTestC...
false
true
public void testFileSystemWatcher() throws Exception { FileSystemWatcher watcher = new FileSystemWatcher(); watcher.setForcePoll(forcePoll); watcher.setPollInterval(10); try { watcher.start(); watcher.addPath(rootDir, new FileChangeCallback() { ...
public void testFileSystemWatcher() throws Exception { FileSystemWatcher watcher = new FileSystemWatcher(); watcher.setForcePoll(forcePoll); watcher.setPollInterval(10); try { watcher.start(); watcher.addPath(rootDir, new FileChangeCallback() { ...
diff --git a/src/main/java/org/cloudifysource/quality/iTests/test/cli/cloudify/cloud/services/AbstractCloudService.java b/src/main/java/org/cloudifysource/quality/iTests/test/cli/cloudify/cloud/services/AbstractCloudService.java index 08bb74b8..05918fc3 100644 --- a/src/main/java/org/cloudifysource/quality/iTests/test/...
true
true
public void teardownCloud() throws Exception { String[] restUrls = getRestUrls(); for(String url : restUrls){ LogUtils.log("rest url: " + url); } Set<String> privateUrls = new HashSet<String>(); if (restUrls != null) { for(String resturl : restUrls...
public void teardownCloud() throws Exception { String[] restUrls = getRestUrls(); if (restUrls != null) { for(String url : restUrls){ LogUtils.log("rest url: " + url); } } Set<String> privateUrls = new HashSet<String>(); if (restUrl...
diff --git a/src/frontend/edu/brown/catalog/CatalogKey.java b/src/frontend/edu/brown/catalog/CatalogKey.java index 56670a95e..9ea73e7a8 100644 --- a/src/frontend/edu/brown/catalog/CatalogKey.java +++ b/src/frontend/edu/brown/catalog/CatalogKey.java @@ -1,234 +1,238 @@ package edu.brown.catalog; import java.util.Arr...
false
true
public static <T extends CatalogType> T getFromKey(Database catalog_db, String key, Class<T> catalog_class) { final boolean debug = LOG.isDebugEnabled(); if (debug) LOG.debug("Grabbing " + catalog_class + " object for '" + key + "'"); assert(catalog_db != null); assert(catal...
public static <T extends CatalogType> T getFromKey(Database catalog_db, String key, Class<T> catalog_class) { final boolean debug = LOG.isDebugEnabled(); if (debug) LOG.debug("Grabbing " + catalog_class + " object for '" + key + "'"); assert(catalog_db != null); assert(catal...
diff --git a/OnTime/src/java/managers/TimetableManager.java b/OnTime/src/java/managers/TimetableManager.java index 5e0e72c..6bc8da6 100644 --- a/OnTime/src/java/managers/TimetableManager.java +++ b/OnTime/src/java/managers/TimetableManager.java @@ -1,154 +1,154 @@ package managers; import java.io.FileNotFoundExcept...
true
true
public String outputTimetable(String user, Calendar cal) throws FileNotFoundException, IOException { DBManager db = new DBManager(); ArrayList<Event> events = db.getEventsForUser(user); String output = ""; output += ("<div id=\"calendar\">"); output...
public String outputTimetable(String user, Calendar cal) throws FileNotFoundException, IOException { DBManager db = new DBManager(); ArrayList<Event> events = db.getEventsForUser(user); String output = ""; output += ("<div id=\"calendar\">"); output...
diff --git a/opentripplanner-api-webapp/src/main/java/org/opentripplanner/api/ws/PlanGenerator.java b/opentripplanner-api-webapp/src/main/java/org/opentripplanner/api/ws/PlanGenerator.java index 5c3058174..153b172de 100644 --- a/opentripplanner-api-webapp/src/main/java/org/opentripplanner/api/ws/PlanGenerator.java +++ ...
true
true
private Itinerary generateItinerary(GraphPath path, boolean showIntermediateStops) { Itinerary itinerary = makeEmptyItinerary(path); Leg leg = null; List<String> notesForNewLeg = new ArrayList<String>(); Edge edge = null; EdgeNarrative edgeNarrative = null; TraverseMode m...
private Itinerary generateItinerary(GraphPath path, boolean showIntermediateStops) { Itinerary itinerary = makeEmptyItinerary(path); Leg leg = null; List<String> notesForNewLeg = new ArrayList<String>(); Edge edge = null; EdgeNarrative edgeNarrative = null; TraverseMode m...
diff --git a/src/com/eteks/sweethome3d/model/Catalog.java b/src/com/eteks/sweethome3d/model/Catalog.java index 24306f77..d975440c 100644 --- a/src/com/eteks/sweethome3d/model/Catalog.java +++ b/src/com/eteks/sweethome3d/model/Catalog.java @@ -1,223 +1,224 @@ /* * Catalog.java 7 avr. 2006 * * Copyright (c) 2006 ...
false
true
public void delete(CatalogPieceOfFurniture piece) { // Remove piece from its category for (Category category : this.categories) { int pieceIndex = Collections.binarySearch(category.getFurniture(), piece); if (pieceIndex >= 0) { // Ensure selectedFurniture don't keep a reference to piece ...
public void delete(CatalogPieceOfFurniture piece) { Category category = piece.getCategory(); // Remove piece from its category if (category != null) { int pieceIndex = Collections.binarySearch(category.getFurniture(), piece); if (pieceIndex >= 0) { // Ensure selectedFurniture don't kee...
diff --git a/solr/core/src/java/org/apache/solr/cloud/RecoveryStrategy.java b/solr/core/src/java/org/apache/solr/cloud/RecoveryStrategy.java index 1e3656495..9d1ded99f 100644 --- a/solr/core/src/java/org/apache/solr/cloud/RecoveryStrategy.java +++ b/solr/core/src/java/org/apache/solr/cloud/RecoveryStrategy.java @@ -1,4...
false
true
public void doRecovery(SolrCore core) { boolean replayed = false; boolean succesfulRecovery = false; UpdateLog ulog; try { ulog = core.getUpdateHandler().getUpdateLog(); if (ulog == null) { SolrException.log(log, "No UpdateLog found - cannot recover"); recoveryFailed(core,...
public void doRecovery(SolrCore core) { boolean replayed = false; boolean successfulRecovery = false; UpdateLog ulog; try { ulog = core.getUpdateHandler().getUpdateLog(); if (ulog == null) { SolrException.log(log, "No UpdateLog found - cannot recover"); recoveryFailed(core...
diff --git a/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/i18n/ExternalizeStringsWizardPage.java b/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/i18n/ExternalizeStringsWizardPage.java index c09a3882..81d04da1 100644 --- a/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/i18n/Exte...
false
true
private void initializeFieldsAndAddLIsteners() { ISelection sel = getSelectionProvider().getSelection(); if (ExternalizeStringsUtils.isSelectionCorrect(sel)) { String text = Constants.EMPTY; String stringToUpdate = Constants.EMPTY; TextSelection textSelection = null; IStructuredSelection structuredSele...
private void initializeFieldsAndAddLIsteners() { ISelection sel = getSelectionProvider().getSelection(); if (ExternalizeStringsUtils.isSelectionCorrect(sel)) { String text = Constants.EMPTY; String stringToUpdate = Constants.EMPTY; TextSelection textSelection = null; IStructuredSelection structuredSele...
diff --git a/TFC_Shared/src/TFC/Containers/ContainerTerraForge.java b/TFC_Shared/src/TFC/Containers/ContainerTerraForge.java index e35f9fd55..7d072aa05 100644 --- a/TFC_Shared/src/TFC/Containers/ContainerTerraForge.java +++ b/TFC_Shared/src/TFC/Containers/ContainerTerraForge.java @@ -1,239 +1,238 @@ package TFC.Contai...
false
true
public ItemStack transferStackInSlot(EntityPlayer entityplayer, int i) { Slot slot = (Slot)inventorySlots.get(i); Slot[] slotinput = {(Slot)inventorySlots.get(2), (Slot)inventorySlots.get(1), (Slot)inventorySlots.get(3), (Slot)inventorySlots.get(0), (Slot)inventorySlots.get(4)}; Slot[] slotstorage = {(Slot)inve...
public ItemStack transferStackInSlot(EntityPlayer entityplayer, int i) { Slot slot = (Slot)inventorySlots.get(i); Slot[] slotinput = {(Slot)inventorySlots.get(2), (Slot)inventorySlots.get(1), (Slot)inventorySlots.get(3), (Slot)inventorySlots.get(0), (Slot)inventorySlots.get(4)}; Slot[] slotstorage = {(Slot)inve...
diff --git a/src/main/java/org/spoutcraft/launcher/SpoutcraftBuild.java b/src/main/java/org/spoutcraft/launcher/SpoutcraftBuild.java index fde3754..f3fa1be 100644 --- a/src/main/java/org/spoutcraft/launcher/SpoutcraftBuild.java +++ b/src/main/java/org/spoutcraft/launcher/SpoutcraftBuild.java @@ -1,82 +1,82 @@ package ...
false
true
public static SpoutcraftBuild getSpoutcraftBuild() { Configuration config = SpoutcraftYML.getSpoutcraftYML(); Map<Integer, Object> builds = (Map<Integer, Object>) config.getProperty("builds"); int latest = config.getInt("latest", -1); int recommended = config.getInt("recommended", -1); int selected = Setting...
public static SpoutcraftBuild getSpoutcraftBuild() { Configuration config = SpoutcraftYML.getSpoutcraftYML(); Map<Integer, Object> builds = (Map<Integer, Object>) config.getProperty("builds"); int latest = config.getInt("latest", -1); int recommended = config.getInt("recommended", -1); int selected = Setting...
diff --git a/src/org/apache/xerces/impl/v2/SchemaValidator.java b/src/org/apache/xerces/impl/v2/SchemaValidator.java index 539e1e05..eb543eca 100644 --- a/src/org/apache/xerces/impl/v2/SchemaValidator.java +++ b/src/org/apache/xerces/impl/v2/SchemaValidator.java @@ -1,2704 +1,2705 @@ /* * The Apache Software License...
true
true
void processAttributes(QName element, XMLAttributes attributes, XSAttributeGroupDecl attrGrp) { // add default attributes if (attrGrp != null) { addDefaultAttributes(element, attributes, attrGrp); } // if we don't do validation, we don't need to validate the attributes ...
void processAttributes(QName element, XMLAttributes attributes, XSAttributeGroupDecl attrGrp) { // add default attributes if (attrGrp != null) { addDefaultAttributes(element, attributes, attrGrp); } // if we don't do validation, we don't need to validate the attributes ...
diff --git a/uberfire-security/uberfire-security-server/src/main/java/org/uberfire/security/server/auth/HttpAuthenticationManager.java b/uberfire-security/uberfire-security-server/src/main/java/org/uberfire/security/server/auth/HttpAuthenticationManager.java index 5c4bf3572..c6f72fad9 100644 --- a/uberfire-security/ube...
true
true
public Subject authenticate( final SecurityContext context ) throws AuthenticationException { final HttpSecurityContext httpContext = checkInstanceOf( "context", context, HttpSecurityContext.class ); Principal principal = null; for ( final AuthenticatedStorageProvider storeProvider : authSt...
public Subject authenticate( final SecurityContext context ) throws AuthenticationException { final HttpSecurityContext httpContext = checkInstanceOf( "context", context, HttpSecurityContext.class ); Principal principal = null; for ( final AuthenticatedStorageProvider storeProvider : authSt...
diff --git a/src/main/com/trendrr/oss/networking/http/Http.java b/src/main/com/trendrr/oss/networking/http/Http.java index 64759b6..996a238 100644 --- a/src/main/com/trendrr/oss/networking/http/Http.java +++ b/src/main/com/trendrr/oss/networking/http/Http.java @@ -1,300 +1,300 @@ /** * */ package com.trendrr.oss...
true
true
private static HttpResponse doRequest(HttpRequest request, Socket socket) throws IOException, TrendrrParseException { //TODO: socket timeouts // Create streams to securely send and receive data to the server InputStream in = socket.getInputStream(); OutputStream out = socket.getOutputStre...
private static HttpResponse doRequest(HttpRequest request, Socket socket) throws IOException, TrendrrParseException { //TODO: socket timeouts // Create streams to securely send and receive data to the server InputStream in = socket.getInputStream(); OutputStream out = socket.getOutputStre...
diff --git a/exo.core.component.database/src/main/java/org/exoplatform/services/database/impl/HibernateServiceImpl.java b/exo.core.component.database/src/main/java/org/exoplatform/services/database/impl/HibernateServiceImpl.java index d923b449..7273b7fe 100644 --- a/exo.core.component.database/src/main/java/org/exoplat...
true
true
public HibernateServiceImpl(InitParams initParams, CacheService cacheService) { threadLocal_ = new ThreadLocal<Session>(); PropertiesParam param = initParams.getPropertiesParam("hibernate.properties"); HibernateSettingsFactory settingsFactory = new HibernateSettingsFactory(new ExoCacheProvider(c...
public HibernateServiceImpl(InitParams initParams, CacheService cacheService) { threadLocal_ = new ThreadLocal<Session>(); PropertiesParam param = initParams.getPropertiesParam("hibernate.properties"); HibernateSettingsFactory settingsFactory = new HibernateSettingsFactory(new ExoCacheProvider(c...
diff --git a/src/main/java/net/intelie/lognit/cli/http/BayeuxFactory.java b/src/main/java/net/intelie/lognit/cli/http/BayeuxFactory.java index 30cf854..1e0528a 100644 --- a/src/main/java/net/intelie/lognit/cli/http/BayeuxFactory.java +++ b/src/main/java/net/intelie/lognit/cli/http/BayeuxFactory.java @@ -1,15 +1,13 @@ ...
true
true
public BayeuxClient create(String uri) { HttpClient client = new HttpClient(); client.setTimeout(1000); return new BayeuxClient(uri, LongPollingTransport.create(null, client)); }
public BayeuxClient create(String uri) { return new BayeuxClient(uri, LongPollingTransport.create(null)); }
diff --git a/src/core/org/apache/hadoop/ipc/Client.java b/src/core/org/apache/hadoop/ipc/Client.java index 05081b876..98dafbce6 100644 --- a/src/core/org/apache/hadoop/ipc/Client.java +++ b/src/core/org/apache/hadoop/ipc/Client.java @@ -1,1065 +1,1070 @@ /** * Licensed to the Apache Software Foundation (ASF) under o...
true
true
private synchronized void setupIOstreams() throws InterruptedException { if (socket != null || shouldCloseConnection.get()) { return; } short ioFailures = 0; short timeoutFailures = 0; try { if (LOG.isDebugEnabled()) { LOG.debug("Connecting to "+server)...
private synchronized void setupIOstreams() throws InterruptedException { if (socket != null || shouldCloseConnection.get()) { return; } short ioFailures = 0; short timeoutFailures = 0; try { if (LOG.isDebugEnabled()) { LOG.debug("Connecting to "+server)...
diff --git a/compiler/src/gen/utils/VisitorUtils.java b/compiler/src/gen/utils/VisitorUtils.java index 93bc07c..99d96c8 100644 --- a/compiler/src/gen/utils/VisitorUtils.java +++ b/compiler/src/gen/utils/VisitorUtils.java @@ -1,102 +1,102 @@ package gen.utils; import gen.*; import gen.visitor.*; import parser.*; ...
true
true
public static CodeBuilder generateCodeAsForTypeAssignment(final SimpleNode node, final String typeName, final GeneratorContext context) { final CodeBuilder builder = new CodeBuilder(); final ASTTypeAssignment newType = new ASTTypeAssignment(0); newType.setFirstToken(new Token(0, typeName...
public static CodeBuilder generateCodeAsForTypeAssignment(final SimpleNode node, final String typeName, final GeneratorContext context) { final CodeBuilder builder = new CodeBuilder(); final ASTTypeAssignment newType = new ASTTypeAssignment(0); newType.setFirstToken(new Token(0, typeName...
diff --git a/com/mewin/WGRegionEffects/WGRegionEffectsPlugin.java b/com/mewin/WGRegionEffects/WGRegionEffectsPlugin.java index cd8e40a..d2cfacf 100644 --- a/com/mewin/WGRegionEffects/WGRegionEffectsPlugin.java +++ b/com/mewin/WGRegionEffects/WGRegionEffectsPlugin.java @@ -1,235 +1,235 @@ /* * Copyright (C) 2012 mewi...
true
true
private void scheduleTask() { getServer().getScheduler().scheduleSyncRepeatingTask(wgPlugin, new Runnable() { @Override public synchronized void run() { for(Player p : getServer().getOnlinePlayers()) { if (ignoredPlayer...
private void scheduleTask() { getServer().getScheduler().scheduleSyncRepeatingTask(wgPlugin, new Runnable() { @Override public synchronized void run() { for(Player p : getServer().getOnlinePlayers()) { if (ignoredPlayer...
diff --git a/chapter9-bookstore/src/main/java/com/apress/prospringmvc/bookstore/web/controller/LoginController.java b/chapter9-bookstore/src/main/java/com/apress/prospringmvc/bookstore/web/controller/LoginController.java index b5b255a..90f3f14 100644 --- a/chapter9-bookstore/src/main/java/com/apress/prospringmvc/bookst...
true
true
public String handleLogin(@RequestParam("username") String username, @RequestParam("password")String password, HttpServletRequest request) throws AuthenticationException { Account account = this.accountService.login(username, password); WebUtils.setSessionAttribute(request, SecurityHandl...
public String handleLogin(@RequestParam String username, @RequestParam String password, HttpServletRequest request) throws AuthenticationException { Account account = this.accountService.login(username, password); WebUtils.setSessionAttribute(request, SecurityHandlerInterceptor.ACCOUNT_ATTRI...
diff --git a/src/main/java/uk/co/drnaylor/mcmmopartyadmin/commands/PartyAdminCommand.java b/src/main/java/uk/co/drnaylor/mcmmopartyadmin/commands/PartyAdminCommand.java index 9488a63..1cb55e9 100644 --- a/src/main/java/uk/co/drnaylor/mcmmopartyadmin/commands/PartyAdminCommand.java +++ b/src/main/java/uk/co/drnaylor/mcm...
true
true
public boolean onCommand(CommandSender sender, Command command, String label, String[] args) { Player player = null; if (sender instanceof Player) { player = (Player) sender; } if (player == null || PermissionHandler.isAdmin(player)) { if (args.length > 2 &&...
public boolean onCommand(CommandSender sender, Command command, String label, String[] args) { Player player = null; if (sender instanceof Player) { player = (Player) sender; } if (player == null || PermissionHandler.isAdmin(player)) { if (args.length > 2 &&...
diff --git a/cometd-java/cometd-java-benchmark/cometd-java-benchmark-common/src/main/java/org/cometd/benchmark/MonitoringQueuedThreadPool.java b/cometd-java/cometd-java-benchmark/cometd-java-benchmark-common/src/main/java/org/cometd/benchmark/MonitoringQueuedThreadPool.java index b6f17fb03..79df5f0bd 100644 --- a/comet...
false
true
public boolean dispatch(final Runnable job) { final long begin = System.nanoTime(); return super.dispatch(new Runnable() { public void run() { long latency = System.nanoTime() - begin; Atomics.updateMax(maxLatency, latency); ...
public void execute(final Runnable job) { final long begin = System.nanoTime(); super.execute(new Runnable() { public void run() { long latency = System.nanoTime() - begin; Atomics.updateMax(maxLatency, latency); tot...
diff --git a/src/test/java/hudson/plugins/git/GitPublisherTest.java b/src/test/java/hudson/plugins/git/GitPublisherTest.java index c08e233..d8b5e3e 100644 --- a/src/test/java/hudson/plugins/git/GitPublisherTest.java +++ b/src/test/java/hudson/plugins/git/GitPublisherTest.java @@ -1,97 +1,97 @@ /* * The MIT License ...
true
true
public void testMatrixBuild() throws Exception { final int[] run = new int[1]; // count the number of times the perform is called commit("a", johnDoe, "commit #1"); MatrixProject mp = createMatrixProject("xyz"); mp.setAxes(new AxisList(new Axis("VAR", "a", "b"))); mp.setScm...
public void testMatrixBuild() throws Exception { final int[] run = new int[1]; // count the number of times the perform is called commit("a", johnDoe, "commit #1"); MatrixProject mp = createMatrixProject("xyz"); mp.setAxes(new AxisList(new Axis("VAR", "a", "b"))); mp.setScm...
diff --git a/src/main/java/servlet/TestLampServlet.java b/src/main/java/servlet/TestLampServlet.java index dfa3b27..a946961 100644 --- a/src/main/java/servlet/TestLampServlet.java +++ b/src/main/java/servlet/TestLampServlet.java @@ -1,101 +1,101 @@ package main.java.servlet; import java.io.IOException; import ja...
true
true
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { String data_value_str = request.getParameter("data_value"); data_value_str = data_value_str.toLowerCase(); // Convert string to corresponding int 0-off 1-on int dat...
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { String data_value_str = request.getParameter("data_value"); data_value_str = data_value_str.toLowerCase(); // Convert string to corresponding int 0-off 1-on int dat...
diff --git a/SevenZip/src/org/sleuthkit/autopsy/sevenzip/SevenZipIngestModule.java b/SevenZip/src/org/sleuthkit/autopsy/sevenzip/SevenZipIngestModule.java index 55350d84a..cc4ea7012 100644 --- a/SevenZip/src/org/sleuthkit/autopsy/sevenzip/SevenZipIngestModule.java +++ b/SevenZip/src/org/sleuthkit/autopsy/sevenzip/Seven...
true
true
private List<AbstractFile> unpack(AbstractFile archiveFile) { List<AbstractFile> unpackedFiles = Collections.<AbstractFile>emptyList(); boolean hasEncrypted = false; boolean fullEncryption = true; ISevenZipInArchive inArchive = null; SevenZipContentReadStream stream = null;...
private List<AbstractFile> unpack(AbstractFile archiveFile) { List<AbstractFile> unpackedFiles = Collections.<AbstractFile>emptyList(); boolean hasEncrypted = false; boolean fullEncryption = true; ISevenZipInArchive inArchive = null; SevenZipContentReadStream stream = null;...
diff --git a/src/com/dunksoftware/seminoletix/ListActivity.java b/src/com/dunksoftware/seminoletix/ListActivity.java index f4e4744..5ea85f3 100644 --- a/src/com/dunksoftware/seminoletix/ListActivity.java +++ b/src/com/dunksoftware/seminoletix/ListActivity.java @@ -1,417 +1,417 @@ package com.dunksoftware.seminoletix; ...
true
true
protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_list); TextView welcomeMsg = (TextView)findViewById(R.id.UI_GreetingText); homeTeam = awayTeam = sportType = date = ""; // general initialization mainTable = (TableLayout)findViewBy...
protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_list); TextView welcomeMsg = (TextView)findViewById(R.id.UI_GreetingText); homeTeam = awayTeam = sportType = date = ""; // general initialization mainTable = (TableLayout)findViewBy...
diff --git a/src/sjsu/cs157a/dbpro/servlet/filter/LoginCheckFilter.java b/src/sjsu/cs157a/dbpro/servlet/filter/LoginCheckFilter.java index 64ee08d..abd8416 100644 --- a/src/sjsu/cs157a/dbpro/servlet/filter/LoginCheckFilter.java +++ b/src/sjsu/cs157a/dbpro/servlet/filter/LoginCheckFilter.java @@ -1,55 +1,54 @@ package ...
true
true
public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException { HttpServletRequest req = (HttpServletRequest) request; HttpServletResponse resp = (HttpServletResponse) response; String path = req.getServletPath(); // place your code here log...
public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException { HttpServletRequest req = (HttpServletRequest) request; HttpServletResponse resp = (HttpServletResponse) response; String path = req.getServletPath(); // place your code here log...
diff --git a/src/main/java/net/aufdemrand/denizen/objects/dPlayer.java b/src/main/java/net/aufdemrand/denizen/objects/dPlayer.java index cafeb4499..05b1df41d 100644 --- a/src/main/java/net/aufdemrand/denizen/objects/dPlayer.java +++ b/src/main/java/net/aufdemrand/denizen/objects/dPlayer.java @@ -1,1497 +1,1497 @@ pack...
true
true
public String getAttribute(Attribute attribute) { if (attribute == null) return "null"; if (player_name == null) return Element.NULL.getAttribute(attribute); ///////////////////// // OFFLINE ATTRIBUTES ///////////////// ///////////////////...
public String getAttribute(Attribute attribute) { if (attribute == null) return "null"; if (player_name == null) return Element.NULL.getAttribute(attribute); ///////////////////// // OFFLINE ATTRIBUTES ///////////////// ///////////////////...
diff --git a/src/org/geometerplus/zlibrary/ui/android/view/ZLAndroidWidget.java b/src/org/geometerplus/zlibrary/ui/android/view/ZLAndroidWidget.java index 48fc90bc..26255613 100644 --- a/src/org/geometerplus/zlibrary/ui/android/view/ZLAndroidWidget.java +++ b/src/org/geometerplus/zlibrary/ui/android/view/ZLAndroidWidge...
false
true
public boolean onTouchEvent(MotionEvent event) { int x = (int)event.getX(); int y = (int)event.getY(); final ZLView view = ZLApplication.Instance().getCurrentView(); switch (event.getAction()) { case MotionEvent.ACTION_UP: if (myPendingDoubleTap) { view.onFingerDoubleTap(); } if (myLongClickPe...
public boolean onTouchEvent(MotionEvent event) { int x = (int)event.getX(); int y = (int)event.getY(); final ZLView view = ZLApplication.Instance().getCurrentView(); switch (event.getAction()) { case MotionEvent.ACTION_UP: if (myPendingDoubleTap) { view.onFingerDoubleTap(); } if (myLongClickPe...
diff --git a/src/test/com/jogamp/opengl/test/junit/newt/TestFocus02SwingAWTRobot.java b/src/test/com/jogamp/opengl/test/junit/newt/TestFocus02SwingAWTRobot.java index 646dc711b..5b07c73bd 100644 --- a/src/test/com/jogamp/opengl/test/junit/newt/TestFocus02SwingAWTRobot.java +++ b/src/test/com/jogamp/opengl/test/junit/ne...
false
true
private void testFocus01ProgrFocusImpl(Robot robot) throws AWTException, InterruptedException, InvocationTargetException { ArrayList<EventCountAdapter> eventCountAdapters = new ArrayList<EventCountAdapter>(); GLWindow glWindow1 = GLWindow.create(glCaps); glWindow1.setTitle("testWi...
private void testFocus01ProgrFocusImpl(Robot robot) throws AWTException, InterruptedException, InvocationTargetException { ArrayList<EventCountAdapter> eventCountAdapters = new ArrayList<EventCountAdapter>(); GLWindow glWindow1 = GLWindow.create(glCaps); glWindow1.setTitle("testWi...
diff --git a/src/main/java/hudson/maven/MavenModuleSetBuild.java b/src/main/java/hudson/maven/MavenModuleSetBuild.java index d60a9a3..a2838fc 100644 --- a/src/main/java/hudson/maven/MavenModuleSetBuild.java +++ b/src/main/java/hudson/maven/MavenModuleSetBuild.java @@ -1,1086 +1,1091 @@ /* * The MIT License * * ...
false
true
protected Result doRun(final BuildListener listener) throws Exception { PrintStream logger = listener.getLogger(); Result r = null; try { EnvVars envVars = getEnvironment(listener); MavenInstallation mvn = project.getMaven(); ...
protected Result doRun(final BuildListener listener) throws Exception { PrintStream logger = listener.getLogger(); Result r = null; try { EnvVars envVars = getEnvironment(listener); MavenInstallation mvn = project.getMaven(); ...
diff --git a/java/de/dfki/lt/mary/MaryServer.java b/java/de/dfki/lt/mary/MaryServer.java index 0acf715b7..a695a3d69 100755 --- a/java/de/dfki/lt/mary/MaryServer.java +++ b/java/de/dfki/lt/mary/MaryServer.java @@ -1,858 +1,859 @@ /** * Copyright 2000-2006 DFKI GmbH. * All Rights Reserved. Use is subject to license...
false
true
private boolean handleInfoRequest(String inputLine, PrintWriter outputWriter) { // Optional version information: if (inputLine.startsWith("MARY VERSION")) { logger.debug("InfoRequest " + inputLine); // Write version information to client. o...
private boolean handleInfoRequest(String inputLine, PrintWriter outputWriter) { // Optional version information: if (inputLine.startsWith("MARY VERSION")) { logger.debug("InfoRequest " + inputLine); // Write version information to client. o...
diff --git a/grails/src/web/org/codehaus/groovy/grails/web/servlet/mvc/SimpleGrailsController.java b/grails/src/web/org/codehaus/groovy/grails/web/servlet/mvc/SimpleGrailsController.java index b0b4b84dd..d5f85be3c 100644 --- a/grails/src/web/org/codehaus/groovy/grails/web/servlet/mvc/SimpleGrailsController.java +++ b/g...
true
true
public ModelAndView handleRequest(HttpServletRequest request, HttpServletResponse response) throws Exception { // Step 1: determine the name of the controller. // This maps to a slash + the name of the controller. String uri = this.urlPathHelper.getRequestUri(request); if (uri.indexOf("?") > -1) { u...
public ModelAndView handleRequest(HttpServletRequest request, HttpServletResponse response) throws Exception { // Step 1: determine the correct URI of the request. String uri = this.urlPathHelper.getLookupPathForRequest(request); if (uri.indexOf("?") > -1) { uri = uri.substring(0, uri.indexOf("?")); ...
diff --git a/src/main/java/org/agoncal/application/petstore/security/LoginContextProducer.java b/src/main/java/org/agoncal/application/petstore/security/LoginContextProducer.java index f4c84fb..7decb7f 100644 --- a/src/main/java/org/agoncal/application/petstore/security/LoginContextProducer.java +++ b/src/main/java/org...
true
true
public LoginContext produceLoginContext(@ConfigProperty("loginConfigFile") String loginConfigFileName, @ConfigProperty("loginModuleName") String loginModuleName) throws LoginException { System.setProperty("java.security.auth.login.config", LoginContextProducer.cl...
public LoginContext produceLoginContext(@ConfigProperty("loginConfigFile") String loginConfigFileName, @ConfigProperty("loginModuleName") String loginModuleName) throws LoginException { System.setProperty("java.security.auth.login.config", new File(LoginContextPr...
diff --git a/auiplugin-tests/src/test/java/it/com/atlassian/aui/javascript/integrationTests/AUISeleniumQUnitTest.java b/auiplugin-tests/src/test/java/it/com/atlassian/aui/javascript/integrationTests/AUISeleniumQUnitTest.java index ac7cbed..3ce7352 100644 --- a/auiplugin-tests/src/test/java/it/com/atlassian/aui/javascri...
true
true
private void runQunitTests(String component) { client.waitForCondition("selenium.isElementPresent('qunit-testresult')"); int numberOfFailedTests = Integer.valueOf(client.getEval("window.AJS.$('li.fail li.fail').size()")); if (numberOfFailedTests != 0) { String failedT...
private void runQunitTests(String component) { client.waitForCondition("selenium.isElementPresent('qunit-testresult')"); try { client.wait(3000); client.wait(); } catch (InterruptedException e) { e.printStackTrace(); //To chang...
diff --git a/src/gov/nih/nci/eagle/service/handlers/EpidemiologicalQueryHandler.java b/src/gov/nih/nci/eagle/service/handlers/EpidemiologicalQueryHandler.java index fa41a92..dac69d3 100755 --- a/src/gov/nih/nci/eagle/service/handlers/EpidemiologicalQueryHandler.java +++ b/src/gov/nih/nci/eagle/service/handlers/Epidemio...
true
true
public List getResults(QueryDTO queryDTO) { EPIQueryDTO epiQueryDTO = (EPIQueryDTO) queryDTO; Session session = sessionFactory.getCurrentSession(); Criteria targetCrit = session.createCriteria(StudyParticipant.class); targetCrit.createAlias("epidemiologicalFinding", "finding"); ...
public List getResults(QueryDTO queryDTO) { EPIQueryDTO epiQueryDTO = (EPIQueryDTO) queryDTO; Session session = sessionFactory.getCurrentSession(); Criteria targetCrit = session.createCriteria(StudyParticipant.class); targetCrit.createAlias("epidemiologicalFinding", "finding"); ...
diff --git a/src/java/fedora/utilities/install/InstallOptions.java b/src/java/fedora/utilities/install/InstallOptions.java index b3c699dff..016011385 100644 --- a/src/java/fedora/utilities/install/InstallOptions.java +++ b/src/java/fedora/utilities/install/InstallOptions.java @@ -1,420 +1,420 @@ package fedora.utiliti...
true
true
public InstallOptions(Distribution dist) throws InstallationCancelledException { _dist = dist; _map = new HashMap<Object, Object>(); System.out.println(); System.out.println("**********************"); System.out.println(" Fedora Installation "); System.out...
public InstallOptions(Distribution dist) throws InstallationCancelledException { _dist = dist; _map = new HashMap<Object, Object>(); System.out.println(); System.out.println("**********************"); System.out.println(" Fedora Installation "); System.out...
diff --git a/src/net/loadingchunks/plugins/GuardWolf/GWSQL.java b/src/net/loadingchunks/plugins/GuardWolf/GWSQL.java index 2acee61..ef7e4af 100644 --- a/src/net/loadingchunks/plugins/GuardWolf/GWSQL.java +++ b/src/net/loadingchunks/plugins/GuardWolf/GWSQL.java @@ -1,122 +1,122 @@ package net.loadingchunks.plugins.Guar...
false
true
public String ListBan(int page, String user, CommandSender sender) { String tempString = ""; if(user.isEmpty()) { try { PreparedStatement stat = con.prepareStatement("SELECT *,COUNT(*) as c FROM `mcusers_ban` GROUP BY `user` ORDER BY `permanent`,`expires_at` DESC LIMIT " + ((page - 1)*(Integer.parseInt(t...
public void ListBan(int page, String user, CommandSender sender) { String tempString = ""; if(user.isEmpty()) { try { PreparedStatement stat = con.prepareStatement("SELECT *,COUNT(*) as c FROM `mcusers_ban` GROUP BY `user` ORDER BY `permanent`,`expires_at` DESC LIMIT " + ((page - 1)*(Integer.parseInt(thi...
diff --git a/libs/lint_checks/src/main/java/com/android/tools/lint/checks/ToastDetector.java b/libs/lint_checks/src/main/java/com/android/tools/lint/checks/ToastDetector.java index e245fe8..9bc7af5 100644 --- a/libs/lint_checks/src/main/java/com/android/tools/lint/checks/ToastDetector.java +++ b/libs/lint_checks/src/ma...
true
true
public void visitMethod(@NonNull JavaContext context, @Nullable AstVisitor visitor, @NonNull MethodInvocation node) { assert node.astName().astValue().equals("makeText"); if (node.astOperand() == null) { // "makeText()" in the code with no operand return; ...
public void visitMethod(@NonNull JavaContext context, @Nullable AstVisitor visitor, @NonNull MethodInvocation node) { assert node.astName().astValue().equals("makeText"); if (node.astOperand() == null) { // "makeText()" in the code with no operand return; ...
diff --git a/plugins/org.eclipse.jst.j2ee.web/web/org/eclipse/jst/j2ee/internal/web/operations/CreateServletTemplateModel.java b/plugins/org.eclipse.jst.j2ee.web/web/org/eclipse/jst/j2ee/internal/web/operations/CreateServletTemplateModel.java index 2dd2372d0..75156c012 100644 --- a/plugins/org.eclipse.jst.j2ee.web/web/...
true
true
protected boolean implementImplementedMethod(String methodName) { if (methodName.equals(INIT)) return dataModel.getBooleanProperty(INewServletClassDataModelProperties.INIT); else if (methodName.equals(TO_STRING)) return dataModel.getBooleanProperty(INewServletClassDataModelProperties.TO_STRING); else if (m...
protected boolean implementImplementedMethod(String methodName) { if (dataModel.getBooleanProperty(INewJavaClassDataModelProperties.ABSTRACT_METHODS)) { if (methodName.equals(INIT)) return dataModel.getBooleanProperty(INewServletClassDataModelProperties.INIT); else if (methodName.equals(TO_STRING)) ret...
diff --git a/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/JsfAllTests.java b/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/JsfAllTests.java index 28ebf7628..c951b3957 100755 --- a/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/...
true
true
public static Test suite() { // JSPIndexManager.getInstance().shutdown(); TestSuite suite = new TestSuite("Tests for Vpe Jsf components"); //$NON-NLS-1$ // $JUnit-BEGIN$ /* * Content tests */ suite.addTestSuite(JsfComponentContentTest.class) ; suite.addTestSuite(Jsf20ComponentContentTest.class); /* ...
public static Test suite() { // FIXME https://issues.jboss.org/browse/JBIDE-8488 // JSPIndexManager.getInstance().shutdown(); TestSuite suite = new TestSuite("Tests for Vpe Jsf components"); //$NON-NLS-1$ // $JUnit-BEGIN$ /* * Content tests */ suite.addTestSuite(JsfComponentContentTest.class) ; suit...