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/server/src/main/java/org/apache/abdera/server/exceptions/MethodNotAllowedException.java b/server/src/main/java/org/apache/abdera/server/exceptions/MethodNotAllowedException.java index ed46ceb6..05ca3da5 100644 --- a/server/src/main/java/org/apache/abdera/server/exceptions/MethodNotAllowedException.java +++...
true
true
public void setAllow(String[] methods) { if(methods == null || methods.length == 0) { throw new IllegalArgumentException("Methods argument must not be empty or null."); } boolean first = true; StringBuffer value = new StringBuffer(); for(String method : methods) { if(first) { v...
public void setAllow(String[] methods) { if(methods == null || methods.length == 0) { throw new IllegalArgumentException("Methods argument must not be empty or null."); } boolean first = true; StringBuffer value = new StringBuffer(); for(String method : methods) { if(first) { v...
diff --git a/source/server/test/edu/wustl/cab2b/server/ejb/sqlquery/SQLQueryBeanTest.java b/source/server/test/edu/wustl/cab2b/server/ejb/sqlquery/SQLQueryBeanTest.java index 81fe67ec..2662bc8a 100644 --- a/source/server/test/edu/wustl/cab2b/server/ejb/sqlquery/SQLQueryBeanTest.java +++ b/source/server/test/edu/wustl/c...
false
true
public void testSQLQueryUtil() throws RemoteException { String insertDataSQL = "insert into TEST_TABLE (ID,NAME) values (1,'ABC'),(2,'GAAL'),(3,'CLASS'),(4,'FOO')"; int res=-1; try { res = sqlQueryBean.executeUpdate(insertDataSQL); } catch (RemoteException e1) { ...
public void testSQLQueryUtil() throws RemoteException { String insertDataSQL = "insert into TEST_TABLE (ID,NAME) values (1,'ABC'),(2,'GAAL'),(3,'CLASS'),(4,'FOO')"; int res=-1; try { res = sqlQueryBean.executeUpdate(insertDataSQL); } catch (RemoteException e1) { ...
diff --git a/wicket-select2/src/main/java/com/vaynberg/wicket/select2/Select2Choice.java b/wicket-select2/src/main/java/com/vaynberg/wicket/select2/Select2Choice.java index 6e4fbd4..1642abc 100755 --- a/wicket-select2/src/main/java/com/vaynberg/wicket/select2/Select2Choice.java +++ b/wicket-select2/src/main/java/com/va...
true
true
protected void renderInitializationScript(IHeaderResponse response) { T state = getConvertedInput(); if (state == null) { state = getModelObject(); } if (state != null) { JsonBuilder selection = new JsonBuilder(); try { selection.object(); getProvider().toJson(st...
protected void renderInitializationScript(IHeaderResponse response) { T state = hasRawInput() ? getConvertedInput() : getModelObject(); if (state != null) { JsonBuilder selection = new JsonBuilder(); try { selection.object(); getProvider().toJson(state, selection); selection.endObjec...
diff --git a/svnkit/src/main/java/org/tmatesoft/svn/core/internal/io/dav/http/HTTPSSLKeyManager.java b/svnkit/src/main/java/org/tmatesoft/svn/core/internal/io/dav/http/HTTPSSLKeyManager.java index d84e9653a..eaa137559 100644 --- a/svnkit/src/main/java/org/tmatesoft/svn/core/internal/io/dav/http/HTTPSSLKeyManager.java +...
true
true
public KeyManager[] loadClientCertificate(SVNSSLAuthentication sslAuthentication) throws SVNException { String clientCertPassword = sslAuthentication.getPassword(); String clientCertPath = sslAuthentication.getCertificatePath(); byte[] clientCertFile = sslAuthentication.getCertificateFile();...
public KeyManager[] loadClientCertificate(SVNSSLAuthentication sslAuthentication) throws SVNException { String clientCertPassword = sslAuthentication.getPassword(); String clientCertPath = sslAuthentication.getCertificatePath(); byte[] clientCertFile = sslAuthentication.getCertificateFile();...
diff --git a/sikuli-script/src/main/java/org/sikuli/script/internal/hotkey/LinuxHotkeyManager.java b/sikuli-script/src/main/java/org/sikuli/script/internal/hotkey/LinuxHotkeyManager.java index 3d3798d1..704b1769 100644 --- a/sikuli-script/src/main/java/org/sikuli/script/internal/hotkey/LinuxHotkeyManager.java +++ b/sik...
true
true
protected boolean _addHotkey(int keyCode, int modifiers, HotkeyListener listener){ JXGrabKey grabKey = JXGrabKey.getInstance(); if(_gHotkeyId == 1){ grabKey.addHotkeyListener(new MyHotkeyHandler()); } _removeHotkey(keyCode, modifiers); int id = _gHotkeyId++; HotkeyData ...
protected boolean _addHotkey(int keyCode, int modifiers, HotkeyListener listener){ JXGrabKey grabKey = JXGrabKey.getInstance(); if(_gHotkeyId == 1){ grabKey.addHotkeyListener(new MyHotkeyHandler()); } _removeHotkey(keyCode, modifiers); int id = _gHotkeyId++; HotkeyData ...
diff --git a/src/com/android/phone/CallCard.java b/src/com/android/phone/CallCard.java index 80b6fd8a..78129938 100644 --- a/src/com/android/phone/CallCard.java +++ b/src/com/android/phone/CallCard.java @@ -1,1783 +1,1791 @@ /* * Copyright (C) 2006 The Android Open Source Project * * Licensed under the Apache Li...
false
true
private void updateDisplayForPerson(CallerInfo info, int presentation, boolean isTemporary, Call call, Connection conn) { if (DBG) log("updateDispla...
private void updateDisplayForPerson(CallerInfo info, int presentation, boolean isTemporary, Call call, Connection conn) { if (DBG) log("updateDispla...
diff --git a/DataExtractionOSM/src/net/osmand/binary/BinaryMapAddressReaderAdapter.java b/DataExtractionOSM/src/net/osmand/binary/BinaryMapAddressReaderAdapter.java index 38c58a01..ed903e6e 100644 --- a/DataExtractionOSM/src/net/osmand/binary/BinaryMapAddressReaderAdapter.java +++ b/DataExtractionOSM/src/net/osmand/bin...
true
true
public void searchAddressDataByName(AddressRegion reg, SearchRequest<MapObject> req, int[] typeFilter) throws IOException { TIntArrayList loffsets = new TIntArrayList(); Collator instance = Collator.getInstance(); instance.setStrength(Collator.PRIMARY); CollatorStringMatcher matcher = new CollatorStringMatcher...
public void searchAddressDataByName(AddressRegion reg, SearchRequest<MapObject> req, int[] typeFilter) throws IOException { TIntArrayList loffsets = new TIntArrayList(); Collator instance = Collator.getInstance(); instance.setStrength(Collator.PRIMARY); CollatorStringMatcher matcher = new CollatorStringMatcher...
diff --git a/src/java/com/idega/block/cal/business/CalendarRSSProducer.java b/src/java/com/idega/block/cal/business/CalendarRSSProducer.java index 2483842..802ea89 100644 --- a/src/java/com/idega/block/cal/business/CalendarRSSProducer.java +++ b/src/java/com/idega/block/cal/business/CalendarRSSProducer.java @@ -1,372 +...
false
true
public void searchForEntries(RSSRequest rssRequest, String feedParentFolder, String feedFileName, String extraURI) { IWContext iwc = getIWContext(rssRequest); Collection entries = null; if(extraURI.startsWith("period")) entries = getEntriesByPeriod(extraURI); if(extraURI.startsWith("group")) entries = ge...
public void searchForEntries(RSSRequest rssRequest, String feedParentFolder, String feedFileName, String extraURI) { IWContext iwc = getIWContext(rssRequest); Collection entries = null; if(extraURI.startsWith("period")) entries = getEntriesByPeriod(extraURI); if(extraURI.startsWith("group")) entries = ge...
diff --git a/software/camod/src/gov/nih/nci/camod/util/DuplicateUtil.java b/software/camod/src/gov/nih/nci/camod/util/DuplicateUtil.java index c2de2a70..f35b3540 100755 --- a/software/camod/src/gov/nih/nci/camod/util/DuplicateUtil.java +++ b/software/camod/src/gov/nih/nci/camod/util/DuplicateUtil.java @@ -1,246 +1,247 ...
false
true
private static Object duplicateBeanImpl(Object src, List<Object> srcHistory, List<Object> dupHistory, String path, Collection excludedProper...
private static Object duplicateBeanImpl(Object src, List<Object> srcHistory, List<Object> dupHistory, String path, Collection excludedProper...
diff --git a/source/de/anomic/crawler/robotsParser.java b/source/de/anomic/crawler/robotsParser.java index 97b9648f0..74f49c91a 100644 --- a/source/de/anomic/crawler/robotsParser.java +++ b/source/de/anomic/crawler/robotsParser.java @@ -1,224 +1,227 @@ //robotsParser.java //------------------------------------- //p...
true
true
private void parse(final BufferedReader reader) { final ArrayList<String> deny4AllAgents = new ArrayList<String>(); final ArrayList<String> deny4YaCyAgent = new ArrayList<String>(); final ArrayList<String> allow4AllAgents = new ArrayList<String>(); final ArrayList<String> allow4YaCyA...
private void parse(final BufferedReader reader) { final ArrayList<String> deny4AllAgents = new ArrayList<String>(); final ArrayList<String> deny4YaCyAgent = new ArrayList<String>(); final ArrayList<String> allow4AllAgents = new ArrayList<String>(); final ArrayList<String> allow4YaCyA...
diff --git a/bundles/org.eclipse.orion.server.servlets/src/org/eclipse/orion/internal/server/servlets/workspace/WorkspaceResourceHandler.java b/bundles/org.eclipse.orion.server.servlets/src/org/eclipse/orion/internal/server/servlets/workspace/WorkspaceResourceHandler.java index cbf1c71e..bfc75a95 100644 --- a/bundles/o...
false
true
public static JSONObject toJSON(WebWorkspace workspace, URI requestLocation, URI baseLocation) { JSONObject result = WebElementResourceHandler.toJSON(workspace); JSONArray projects = workspace.getProjectsJSON(); URI workspaceLocation = URIUtil.append(baseLocation, workspace.getId()); URI projectBaseLocation = ...
public static JSONObject toJSON(WebWorkspace workspace, URI requestLocation, URI baseLocation) { JSONObject result = WebElementResourceHandler.toJSON(workspace); JSONArray projects = workspace.getProjectsJSON(); URI workspaceLocation = URIUtil.append(baseLocation, workspace.getId()); URI projectBaseLocation = ...
diff --git a/concourse/src/main/java/org/cinchapi/concourse/Concourse.java b/concourse/src/main/java/org/cinchapi/concourse/Concourse.java index 7a443a980..484851d19 100644 --- a/concourse/src/main/java/org/cinchapi/concourse/Concourse.java +++ b/concourse/src/main/java/org/cinchapi/concourse/Concourse.java @@ -1,1595 ...
true
true
public Client(String host, int port, String username, String password) { this.host = host; this.port = port; this.username = ClientSecurity.encrypt(username); this.password = ClientSecurity.encrypt(password); final TTransport transport = new TSocket(ho...
public Client(String host, int port, String username, String password) { this.host = host; this.port = port; this.username = ClientSecurity.encrypt(username); this.password = ClientSecurity.encrypt(password); final TTransport transport = new TSocket(ho...
diff --git a/Android/CloudAppStudioAndroid/src/com/cloudappstudio/activities/LoginActivity.java b/Android/CloudAppStudioAndroid/src/com/cloudappstudio/activities/LoginActivity.java index dec7114..40c0b99 100644 --- a/Android/CloudAppStudioAndroid/src/com/cloudappstudio/activities/LoginActivity.java +++ b/Android/CloudA...
true
true
protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(com.cloudappstudio.android.R.layout.login_view); Button logInButton = (Button) findViewById(R.id.logIn_button); logInButton.setOnClickListener(new OnClickListener() { public void onClick(View v) { ...
protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(com.cloudappstudio.android.R.layout.login_view); Button logInButton = (Button) findViewById(R.id.logIn_button); logInButton.setOnClickListener(new OnClickListener() { public void onClick(View v) { ...
diff --git a/src-gwt/com/alkacon/acacia/client/widgets/HalloWidget.java b/src-gwt/com/alkacon/acacia/client/widgets/HalloWidget.java index e841e5a..7378f3a 100644 --- a/src-gwt/com/alkacon/acacia/client/widgets/HalloWidget.java +++ b/src-gwt/com/alkacon/acacia/client/widgets/HalloWidget.java @@ -1,170 +1,180 @@ /* *...
false
true
private native void initNative(Element element, Vie vie) /*-{ var _self = this; var editable = vie.jQuery(element); editable.hallo({ plugins : { 'halloformat' : {}, 'halloblock' : {}, 'hallojustify' : {}, 'hallolists...
private native void initNative(Element element, Vie vie) /*-{ var _self = this; var editable = vie.jQuery(element); editable.hallo({ plugins : { 'halloformat' : {}, 'halloblock' : {}, 'hallojustify' : {}, 'hallolists...
diff --git a/jslint4java/src/main/java/com/googlecode/jslint4java/JSLint.java b/jslint4java/src/main/java/com/googlecode/jslint4java/JSLint.java index 7c2637a..bee9555 100644 --- a/jslint4java/src/main/java/com/googlecode/jslint4java/JSLint.java +++ b/jslint4java/src/main/java/com/googlecode/jslint4java/JSLint.java @@ ...
false
true
private JSLintResult buildResults(final String systemId, final long startNanos, final long endNanos) { return (JSLintResult) contextFactory.call(new ContextAction() { public Object run(Context cx) { ResultBuilder b = new JSLintResult.ResultBuilder(systemId); b.dur...
private JSLintResult buildResults(final String systemId, final long startNanos, final long endNanos) { return (JSLintResult) contextFactory.call(new ContextAction() { public Object run(Context cx) { ResultBuilder b = new JSLintResult.ResultBuilder(systemId); b.dur...
diff --git a/src/test/java/iron9light/coffeescriptMavenPlugin/test/CoffeeScriptCompilerTest.java b/src/test/java/iron9light/coffeescriptMavenPlugin/test/CoffeeScriptCompilerTest.java index 4f292c0..2d6cfe8 100644 --- a/src/test/java/iron9light/coffeescriptMavenPlugin/test/CoffeeScriptCompilerTest.java +++ b/src/test/ja...
false
true
public void testVersion() throws MalformedURLException { URL url = getClass().getResource("/coffee-script-1.1.2.js"); CoffeeScriptCompiler compiler = new CoffeeScriptCompiler(url, false); assertThat(compiler.version, equalTo("1.1.2")); }
public void testVersion() throws MalformedURLException { URL url = getClass().getResource("/coffee-script.js"); CoffeeScriptCompiler compiler = new CoffeeScriptCompiler(url, false); assertThat(compiler.version, equalTo("1.1.3")); }
diff --git a/webapp/src/uk/ac/horizon/ug/exploding/clientapi/ClientController.java b/webapp/src/uk/ac/horizon/ug/exploding/clientapi/ClientController.java index 4f9a92f..9dd4d7d 100755 --- a/webapp/src/uk/ac/horizon/ug/exploding/clientapi/ClientController.java +++ b/webapp/src/uk/ac/horizon/ug/exploding/clientapi/Clien...
false
true
private void handleFactOperation(ClientConversation conversation, Message message, List<Message> responses, ISession session) throws IllegalArgumentException, ClientAPIException, InstantiationException, IllegalAccessException { // .... Object oldVal = message.getOldVal();//!=null ? ClientSubscriptionManager.unmar...
private void handleFactOperation(ClientConversation conversation, Message message, List<Message> responses, ISession session) throws IllegalArgumentException, ClientAPIException, InstantiationException, IllegalAccessException { // .... Object oldVal = message.getOldVal();//!=null ? ClientSubscriptionManager.unmar...
diff --git a/src/main/java/com/alta189/chavaadmin/ConnectListener.java b/src/main/java/com/alta189/chavaadmin/ConnectListener.java index f7adba8..050fed8 100644 --- a/src/main/java/com/alta189/chavaadmin/ConnectListener.java +++ b/src/main/java/com/alta189/chavaadmin/ConnectListener.java @@ -1,25 +1,25 @@ package com....
true
true
public void onEvent(ConnectEvent event) { if (ChavaAdmin.getSettings().getPropertyBoolean("znc-auth-enabled", false)) { String user = ChavaAdmin.getSettings().getPropertyString("znc-user", null); String pass = ChavaAdmin.getSettings().getPropertyString("znc-pass", null); if (user != null && pass != null) {...
public void onEvent(ConnectEvent event) { if (ChavaAdmin.getSettings().checkProperty("znc-auth-enabled") && ChavaAdmin.getSettings().getPropertyBoolean("znc-auth-enabled", false)) { String user = ChavaAdmin.getSettings().getPropertyString("znc-user", null); String pass = ChavaAdmin.getSettings().getPropertyStr...
diff --git a/POS/src/ee/ut/math/tvt/salessystem/ui/PaymentConfirmation.java b/POS/src/ee/ut/math/tvt/salessystem/ui/PaymentConfirmation.java index c1d8c7f..72b2a1e 100644 --- a/POS/src/ee/ut/math/tvt/salessystem/ui/PaymentConfirmation.java +++ b/POS/src/ee/ut/math/tvt/salessystem/ui/PaymentConfirmation.java @@ -1,213 +...
true
true
private JPanel draw() { JPanel panel = new JPanel(); setLayout(new GridLayout(5, 2)); // Initialize the buttons acceptPayment = createAcceptPaymentButton(); cancelPayment = createCancelPaymentButton(); // Sum from purchase table sumPayment = new JLabel(); sumPayment.setText(Double.toString(sum)); ...
private JPanel draw() { JPanel panel = new JPanel(); setLayout(new GridLayout(5, 2)); // Initialize the buttons acceptPayment = createAcceptPaymentButton(); cancelPayment = createCancelPaymentButton(); // Sum from purchase table sumPayment = new JLabel(); sumPayment.setText(Double.toString(Math.round...
diff --git a/de.fu_berlin.inf.dpp/src/de/fu_berlin/inf/dpp/ui/widgets/ConnectionStateComposite.java b/de.fu_berlin.inf.dpp/src/de/fu_berlin/inf/dpp/ui/widgets/ConnectionStateComposite.java index 2897ad43a..f6472238f 100644 --- a/de.fu_berlin.inf.dpp/src/de/fu_berlin/inf/dpp/ui/widgets/ConnectionStateComposite.java +++ ...
false
true
public String getDescription(ConnectionState state) { if (accountStore.isEmpty()) { return Messages.ConnectionStateComposite_info_add_jabber_account; } Exception e = null; switch (state) { case NOT_CONNECTED: e = saros.getSarosNet().getConnectionError...
public String getDescription(ConnectionState state) { if (accountStore.isEmpty()) { return Messages.ConnectionStateComposite_info_add_jabber_account; } Exception e = null; switch (state) { case NOT_CONNECTED: // FIXME: fix SarosNet if no ERROR is repo...
diff --git a/src/main/java/org/neo4j/kernel/impl/core/TransactionEventsSyncHook.java b/src/main/java/org/neo4j/kernel/impl/core/TransactionEventsSyncHook.java index 1264c6e5..ff31ca0e 100644 --- a/src/main/java/org/neo4j/kernel/impl/core/TransactionEventsSyncHook.java +++ b/src/main/java/org/neo4j/kernel/impl/core/Tran...
false
true
public void beforeCompletion() { TransactionData data = null; data = nodeManager.getTransactionData(); states = new ArrayList<HandlerAndState>(); for ( TransactionEventHandler<T> handler : this.handlers ) { try { T state = handler.b...
public void beforeCompletion() { this.transactionData = nodeManager.getTransactionData(); states = new ArrayList<HandlerAndState>(); for ( TransactionEventHandler<T> handler : this.handlers ) { try { T state = handler.beforeCommit( transact...
diff --git a/src/be/ibridge/kettle/spoon/Spoon.java b/src/be/ibridge/kettle/spoon/Spoon.java index a5ecf0f0..a6804533 100644 --- a/src/be/ibridge/kettle/spoon/Spoon.java +++ b/src/be/ibridge/kettle/spoon/Spoon.java @@ -1,8660 +1,8664 @@ /********************************************************************** ** ...
true
true
public void verifyCopyDistribute(TransMeta transMeta, StepMeta fr) { int nrNextSteps = transMeta.findNrNextSteps(fr); // don't show it for 3 or more hops, by then you should have had the message if (nrNextSteps==2) { boolean distributes = false; ...
public void verifyCopyDistribute(TransMeta transMeta, StepMeta fr) { int nrNextSteps = transMeta.findNrNextSteps(fr); // don't show it for 3 or more hops, by then you should have had the message if (nrNextSteps==2) { boolean distributes = false; ...
diff --git a/52n-wps-sextante/src/main/java/org/n52/wps/server/sextante/SextanteProcessDescriptionCreator.java b/52n-wps-sextante/src/main/java/org/n52/wps/server/sextante/SextanteProcessDescriptionCreator.java index af2187a2..cd6b529f 100644 --- a/52n-wps-sextante/src/main/java/org/n52/wps/server/sextante/SextanteProc...
false
true
private void addParameter(DataInputs inputs, Parameter param) throws NullParameterAdditionalInfoException, UnsupportedGeoAlgorithmException { InputDescriptionType input = inputs.addNewInput(); input.addNewAbstract().setStringValue(param.getParameterDescription()); input.addNewTitle().setString...
private void addParameter(DataInputs inputs, Parameter param) throws NullParameterAdditionalInfoException, UnsupportedGeoAlgorithmException { InputDescriptionType input = inputs.addNewInput(); input.addNewAbstract().setStringValue(param.getParameterDescription()); input.addNewTitle().setString...
diff --git a/xwiki-rendering-transformations/xwiki-rendering-transformation-macro/src/main/java/org/xwiki/rendering/internal/transformation/macro/MacroTransformation.java b/xwiki-rendering-transformations/xwiki-rendering-transformation-macro/src/main/java/org/xwiki/rendering/internal/transformation/macro/MacroTransform...
true
true
private boolean transformOnce(Block rootBlock, MacroTransformationContext context, Syntax syntax) { // 1) Get highest priority macro to execute MacroHolder macroHolder = getHighestPriorityMacro(rootBlock, syntax); if (macroHolder == null) { return false; } bo...
private boolean transformOnce(Block rootBlock, MacroTransformationContext context, Syntax syntax) { // 1) Get highest priority macro to execute MacroHolder macroHolder = getHighestPriorityMacro(rootBlock, syntax); if (macroHolder == null) { return false; } bo...
diff --git a/src/VASSAL/build/module/map/SetupStack.java b/src/VASSAL/build/module/map/SetupStack.java index 77cf65e9..92513262 100644 --- a/src/VASSAL/build/module/map/SetupStack.java +++ b/src/VASSAL/build/module/map/SetupStack.java @@ -1,1166 +1,1168 @@ /* * $Id$ * * Copyright (c) 2004 by Rodney Kinney * ...
true
true
protected void init() { board = getConfigureBoard(); view = new View(board, myStack); view.addKeyListener(this); view.addMouseListener(this); view.setFocusable(true); scroll = new AdjustableSpeedScrollPane( view, JS...
protected void init() { board = getConfigureBoard(); view = new View(board, myStack); view.addKeyListener(this); view.addMouseListener(this); view.setFocusable(true); scroll = new AdjustableSpeedScrollPane( view, JS...
diff --git a/exchange2/src/com/android/exchange/provider/ExchangeDirectoryProvider.java b/exchange2/src/com/android/exchange/provider/ExchangeDirectoryProvider.java index 6d725ff4..5843c463 100644 --- a/exchange2/src/com/android/exchange/provider/ExchangeDirectoryProvider.java +++ b/exchange2/src/com/android/exchange/p...
true
true
public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, String sortOrder) { int match = sURIMatcher.match(uri); MatrixCursor cursor; Object[] row; PackedString ps; String lookupKey; switch (match) { case GAL...
public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, String sortOrder) { int match = sURIMatcher.match(uri); MatrixCursor cursor; Object[] row; PackedString ps; String lookupKey; switch (match) { case GAL...
diff --git a/src/main/java/com/cloudbees/gasp/gcm/GCMIntentService.java b/src/main/java/com/cloudbees/gasp/gcm/GCMIntentService.java index 4bb9fe5..4e92ae4 100644 --- a/src/main/java/com/cloudbees/gasp/gcm/GCMIntentService.java +++ b/src/main/java/com/cloudbees/gasp/gcm/GCMIntentService.java @@ -1,157 +1,154 @@ /* *...
false
true
protected void onMessage(Context context, Intent intent) { int index = Integer.parseInt(intent.getStringExtra("id")); String table = intent.getStringExtra("table"); Log.i(TAG, "New" + table + ": " + index); Intent updateIntent; try { if (table.matches("reviews"))...
protected void onMessage(Context context, Intent intent) { int index = Integer.parseInt(intent.getStringExtra("id")); String table = intent.getStringExtra("table"); Log.i(TAG, "New " + table + " update (" + index + ")"); Intent updateIntent; try { if (table.match...
diff --git a/expenditure-tracking/src/pt/ist/expenditureTrackingSystem/domain/Role.java b/expenditure-tracking/src/pt/ist/expenditureTrackingSystem/domain/Role.java index e1f1efd5..6dc192c6 100644 --- a/expenditure-tracking/src/pt/ist/expenditureTrackingSystem/domain/Role.java +++ b/expenditure-tracking/src/pt/ist/expe...
true
true
public static Role getRole(final RoleType roleType) { for (final Role role : ExpenditureTrackingSystem.getInstance().getRoles()) { if (role.getRoleType().equals(roleType)) { if (!role.hasSystemRole()) { role.setSystemRole(myorg.domain.groups.Role.getRole(roleType)); } for (final Person person : ro...
public static Role getRole(final RoleType roleType) { for (final Role role : ExpenditureTrackingSystem.getInstance().getRoles()) { if (role.getRoleType().equals(roleType)) { if (!role.hasSystemRole()) { role.setSystemRole(myorg.domain.groups.Role.getRole(roleType)); } for (final Person person : ro...
diff --git a/src/org/opensuse/android/obs/Client.java b/src/org/opensuse/android/obs/Client.java index 48db848..5a6af59 100644 --- a/src/org/opensuse/android/obs/Client.java +++ b/src/org/opensuse/android/obs/Client.java @@ -1,140 +1,141 @@ package org.opensuse.android.obs; import java.io.UnsupportedEncodingExcepti...
true
true
public List<Request> getMyRequests() { List<String> xpaths = new ArrayList<String>(); List<String> projects = new ArrayList<String>(); String query = "(state/@name='new') and ("; List<ProjectId> projectIds = getProjectIdsMatching("person/@userid = '" + getUsername() + "' and person/@role = 'maintainer'"); fo...
public List<Request> getMyRequests() { List<String> xpaths = new ArrayList<String>(); List<String> projects = new ArrayList<String>(); String query = "(state/@name='new') and ("; List<ProjectId> projectIds = getProjectIdsMatching("person/@userid = '" + getUsername() + "' and person/@role = 'maintainer'"); fo...
diff --git a/src/main/java/edu/berkeley/sparrow/daemon/scheduler/Scheduler.java b/src/main/java/edu/berkeley/sparrow/daemon/scheduler/Scheduler.java index 6133a6c..d8ac5c4 100644 --- a/src/main/java/edu/berkeley/sparrow/daemon/scheduler/Scheduler.java +++ b/src/main/java/edu/berkeley/sparrow/daemon/scheduler/Scheduler....
false
true
public void submitJob(TSchedulingRequest request) throws TException { LOG.debug(Logging.functionCall(request)); long start = System.currentTimeMillis(); String requestId = getRequestId(); // Logging the address here is somewhat redundant, since all of the // messages in this particular log file ...
public void submitJob(TSchedulingRequest request) throws TException { LOG.debug(Logging.functionCall(request)); long start = System.currentTimeMillis(); String requestId = getRequestId(); // Logging the address here is somewhat redundant, since all of the // messages in this particular log file ...
diff --git a/ttools/src/main/uk/ac/starlink/ttools/plot/Drawing.java b/ttools/src/main/uk/ac/starlink/ttools/plot/Drawing.java index 135ddad17..b71ea19d6 100755 --- a/ttools/src/main/uk/ac/starlink/ttools/plot/Drawing.java +++ b/ttools/src/main/uk/ac/starlink/ttools/plot/Drawing.java @@ -1,489 +1,489 @@ package uk.ac....
false
true
public void drawLine( int x0, int y0, int x1, int y1 ) { /* Vertical line. */ if ( x0 == x1 ) { int x = x0; if ( y0 > y1 ) { int y2 = y1; y1 = y0; y0 = y2; } y0 = Math.max( y0, bounds_.y ); y...
public void drawLine( int x0, int y0, int x1, int y1 ) { /* Vertical line. */ if ( x0 == x1 ) { int x = x0; if ( y0 > y1 ) { int y2 = y1; y1 = y0; y0 = y2; } int ya = Math.max( y0, bounds_.y ); ...
diff --git a/tests/tests/view/src/android/view/cts/KeyCharacterMapTest.java b/tests/tests/view/src/android/view/cts/KeyCharacterMapTest.java index 38d6dfb7..4ab38df8 100644 --- a/tests/tests/view/src/android/view/cts/KeyCharacterMapTest.java +++ b/tests/tests/view/src/android/view/cts/KeyCharacterMapTest.java @@ -1,305...
true
true
public void testIsPrintingKey() throws Exception { assertFalse(mKeyCharacterMap.isPrintingKey(KeyEvent.KEYCODE_UNKNOWN)); assertFalse(mKeyCharacterMap.isPrintingKey(KeyEvent.KEYCODE_SOFT_LEFT)); assertFalse(mKeyCharacterMap.isPrintingKey(KeyEvent.KEYCODE_SOFT_RIGHT)); assertFalse(mK...
public void testIsPrintingKey() throws Exception { assertFalse(mKeyCharacterMap.isPrintingKey(KeyEvent.KEYCODE_UNKNOWN)); assertFalse(mKeyCharacterMap.isPrintingKey(KeyEvent.KEYCODE_SOFT_LEFT)); assertFalse(mKeyCharacterMap.isPrintingKey(KeyEvent.KEYCODE_SOFT_RIGHT)); assertFalse(mK...
diff --git a/Hog/src/front_end/ConsoleLexer.java b/Hog/src/front_end/ConsoleLexer.java index cd3fc12..d942bb6 100644 --- a/Hog/src/front_end/ConsoleLexer.java +++ b/Hog/src/front_end/ConsoleLexer.java @@ -1,71 +1,71 @@ package front_end; import java.io.BufferedWriter; import java.io.File; import java.io.FileNotFo...
true
true
public static void main(String[] args) throws IOException { LOGGER.info("Entering ConsoleLexer main()"); String filename = "WordCount.hog"; ProgramNode root = null; FileReader fileReader = new FileReader(new File(filename)); try { // Parser p = new Parser(new Lexer(System.in)); Parser...
public static void main(String[] args) throws IOException { LOGGER.info("Entering ConsoleLexer main()"); String filename = "WordCount.hog"; ProgramNode root = null; FileReader fileReader = new FileReader(new File(filename)); try { // Parser p = new Parser(new Lexer(System.in)); Parser...
diff --git a/Chat/src/info/tregmine/chat/ChatPlayer.java b/Chat/src/info/tregmine/chat/ChatPlayer.java index ffac1a1..70836bd 100644 --- a/Chat/src/info/tregmine/chat/ChatPlayer.java +++ b/Chat/src/info/tregmine/chat/ChatPlayer.java @@ -1,97 +1,97 @@ package info.tregmine.chat; //import java.util.HashMap; import...
true
true
public void onPlayerChat(PlayerChatEvent event) { Player sender = event.getPlayer(); info.tregmine.api.TregminePlayer tregminePlayer = this.plugin.tregmine.tregminePlayer.get(sender.getName()); Player[] players = plugin.getServer().getOnlinePlayers(); if ( !this.plugin.lasttime.containsKey(tregminePlayer.get...
public void onPlayerChat(PlayerChatEvent event) { Player sender = event.getPlayer(); info.tregmine.api.TregminePlayer tregminePlayer = this.plugin.tregmine.tregminePlayer.get(sender.getName()); Player[] players = plugin.getServer().getOnlinePlayers(); if ( !this.plugin.lasttime.containsKey(tregminePlayer.get...
diff --git a/cmds/monkey/src/com/android/commands/monkey/Monkey.java b/cmds/monkey/src/com/android/commands/monkey/Monkey.java index 43103236..bb0663fd 100644 --- a/cmds/monkey/src/com/android/commands/monkey/Monkey.java +++ b/cmds/monkey/src/com/android/commands/monkey/Monkey.java @@ -1,992 +1,992 @@ /* * Copyright...
true
true
private int run(String[] args) { // Super-early debugger wait for (String s : args) { if ("--wait-dbg".equals(s)) { Debug.waitForDebugger(); } } // Default values for some command-line options mVerbose = 0; mCount = 1000; ...
private int run(String[] args) { // Super-early debugger wait for (String s : args) { if ("--wait-dbg".equals(s)) { Debug.waitForDebugger(); } } // Default values for some command-line options mVerbose = 0; mCount = 1000; ...
diff --git a/jaxrs/server-adapters/resteasy-netty4/src/main/java/org/jboss/resteasy/plugins/server/netty/RequestHandler.java b/jaxrs/server-adapters/resteasy-netty4/src/main/java/org/jboss/resteasy/plugins/server/netty/RequestHandler.java index 757a32b02..a9418bc21 100755 --- a/jaxrs/server-adapters/resteasy-netty4/src...
false
true
protected void channelRead0(ChannelHandlerContext ctx, Object msg) throws Exception { if (msg instanceof NettyHttpRequest) { NettyHttpRequest request = (NettyHttpRequest) msg; if (request.is100ContinueExpected()) { send100Continue(ctx); } Nett...
protected void channelRead0(ChannelHandlerContext ctx, Object msg) throws Exception { if (msg instanceof NettyHttpRequest) { NettyHttpRequest request = (NettyHttpRequest) msg; if (request.is100ContinueExpected()) { send100Continue(ctx); } Nett...
diff --git a/webapp/src/edu/cornell/mannlib/vitro/webapp/search/lucene/LuceneSetup.java b/webapp/src/edu/cornell/mannlib/vitro/webapp/search/lucene/LuceneSetup.java index 37b4100dc..ac4cfcca4 100644 --- a/webapp/src/edu/cornell/mannlib/vitro/webapp/search/lucene/LuceneSetup.java +++ b/webapp/src/edu/cornell/mannlib/vit...
false
true
public void contextInitialized(ServletContextEvent sce) { try { ServletContext context = sce.getServletContext(); log.debug("**** Running " + this.getClass().getName() + ".contextInitialized()"); indexDir = getIndexDirName(); log.info("Directory of full text index: " + indexDir); setBoolMax(); /...
public void contextInitialized(ServletContextEvent sce) { try { ServletContext context = sce.getServletContext(); log.debug("**** Running " + this.getClass().getName() + ".contextInitialized()"); indexDir = getIndexDirName(); log.info("Directory of full text index: " + indexDir); setBoolMax(); /...
diff --git a/src/com/android/calendar/EventInfoActivity.java b/src/com/android/calendar/EventInfoActivity.java index 02951b6f..19fb8193 100644 --- a/src/com/android/calendar/EventInfoActivity.java +++ b/src/com/android/calendar/EventInfoActivity.java @@ -1,1251 +1,1254 @@ /* * Copyright (C) 2007 The Android Open Sou...
true
true
private void updateView() { if (mEventCursor == null) { return; } String eventName = mEventCursor.getString(EVENT_INDEX_TITLE); if (eventName == null || eventName.length() == 0) { Resources res = getResources(); eventName = res.getString(R.string....
private void updateView() { if (mEventCursor == null) { return; } String eventName = mEventCursor.getString(EVENT_INDEX_TITLE); if (eventName == null || eventName.length() == 0) { Resources res = getResources(); eventName = res.getString(R.string....
diff --git a/src/main/java/org/mvel/MVELRuntime.java b/src/main/java/org/mvel/MVELRuntime.java index 083a4cbc..32739d04 100644 --- a/src/main/java/org/mvel/MVELRuntime.java +++ b/src/main/java/org/mvel/MVELRuntime.java @@ -1,284 +1,285 @@ package org.mvel; import static org.mvel.DataConversion.canConvert; import s...
true
true
public static Object execute(boolean debugger, CompiledExpression expression, Object ctx, VariableResolverFactory variableFactory) { final ASTLinkedList node = new ASTLinkedList(expression.getTokens().firstNode()); Stack stk = new ExecutionStack(); Object v1, v2; ASTNode tk = null;...
public static Object execute(boolean debugger, CompiledExpression expression, Object ctx, VariableResolverFactory variableFactory) { final ASTLinkedList node = new ASTLinkedList(expression.getTokens().firstNode()); Stack stk = new ExecutionStack(); Object v1, v2; ASTNode tk = null;...
diff --git a/src/contributions/resources/search/src/java/org/wyona/yanel/impl/resources/search/SearchResource.java b/src/contributions/resources/search/src/java/org/wyona/yanel/impl/resources/search/SearchResource.java index 67fe23961..816aac40a 100644 --- a/src/contributions/resources/search/src/java/org/wyona/yanel/i...
false
true
protected InputStream getContentXML(String viewId) throws Exception { if (log.isDebugEnabled()) { log.debug("requested viewId: " + viewId); } StringBuilder sb = new StringBuilder("<?xml version=\"1.0\"?>"); sb.append("<y:search xmlns:y=\"http://www.wyona.org/yanel/search/...
protected InputStream getContentXML(String viewId) throws Exception { if (log.isDebugEnabled()) { log.debug("requested viewId: " + viewId); } StringBuilder sb = new StringBuilder("<?xml version=\"1.0\"?>"); sb.append("<y:search xmlns:y=\"http://www.wyona.org/yanel/search/...
diff --git a/src/test/java/no/niths/infrastructure/CommitteeRepositoryTest.java b/src/test/java/no/niths/infrastructure/CommitteeRepositoryTest.java index e8d2b75d..233116c6 100644 --- a/src/test/java/no/niths/infrastructure/CommitteeRepositoryTest.java +++ b/src/test/java/no/niths/infrastructure/CommitteeRepositoryTes...
false
true
public void testAddLeader(){ Student s1 = new Student("John", "Doe"); s1.setEmail("mail@mail.com"); Student s2 = new Student("Jane", "Doe"); s2.setEmail("mail2@mail.com"); studentRepo.create(s1); studentRepo.create(s2); Committee c1 = new Committee("Linux", "1337"); c1.getLeaders().add(s1); commit...
public void testAddLeader(){ Student s1 = new Student("John", "Doe"); s1.setEmail("supermail@mail.com"); Student s2 = new Student("Jane", "Doe"); s2.setEmail("dupermail2@mail.com"); studentRepo.create(s1); studentRepo.create(s2); Committee c1 = new Committee("Linux", "1337"); c1.getLeaders().add(s1)...
diff --git a/oak-core/src/test/java/org/apache/jackrabbit/oak/kernel/KernelNodeStateEditorFuzzTest.java b/oak-core/src/test/java/org/apache/jackrabbit/oak/kernel/KernelNodeStateEditorFuzzTest.java index fa648e4c34..253333f6b0 100644 --- a/oak-core/src/test/java/org/apache/jackrabbit/oak/kernel/KernelNodeStateEditorFuzz...
true
true
private Operation createOperation() { Operation op; do { switch (random.nextInt(10)) { case 0: case 1: case 2: op = createAddNode(); break; case 3: op = createRemov...
private Operation createOperation() { Operation op; do { switch (random.nextInt(10)) { case 0: case 1: case 2: op = createAddNode(); break; case 3: op = createRemov...
diff --git a/org.python.pydev.parser/src/org/python/pydev/parser/grammar25/TreeBuilder25.java b/org.python.pydev.parser/src/org/python/pydev/parser/grammar25/TreeBuilder25.java index 56ae6a1a8..506a8ca44 100644 --- a/org.python.pydev.parser/src/org/python/pydev/parser/grammar25/TreeBuilder25.java +++ b/org.python.pydev...
true
true
public SimpleNode closeNode(SimpleNode n, int arity) throws Exception { exprType value; exprType[] exprs; int l; switch (n.getId()) { case -1: System.out.println("Illegal node"); case JJTSINGLE_INPUT: return new Interactive(makeStmts(arity)); ...
public SimpleNode closeNode(SimpleNode n, int arity) throws Exception { exprType value; exprType[] exprs; int l; switch (n.getId()) { case -1: System.out.println("Illegal node"); case JJTSINGLE_INPUT: return new Interactive(makeStmts(arity)); ...
diff --git a/modules/foundation/appbase/src/classes/org/jdesktop/wonderland/modules/appbase/client/HUDDisplayer.java b/modules/foundation/appbase/src/classes/org/jdesktop/wonderland/modules/appbase/client/HUDDisplayer.java index bd370053a..29cbe1af2 100644 --- a/modules/foundation/appbase/src/classes/org/jdesktop/wonde...
true
true
public View2D createView (Window2D window) { // Don't ever show frame headers in the HUD if (window instanceof WindowSwingHeader) return null; HUDComponent component = mainHUD.createComponent(window); component.setName(app.getName()); component.setPreferredLocation(Layout.N...
public View2D createView (Window2D window) { // Don't ever show frame headers in the HUD if (window instanceof WindowSwingHeader) return null; HUDComponent component = mainHUD.createComponent(window); component.setName(app.getName()); component.setPreferredLocation(Layout.N...
diff --git a/src/main/java/thesmith/eventhorizon/service/impl/LastfmEventServiceImpl.java b/src/main/java/thesmith/eventhorizon/service/impl/LastfmEventServiceImpl.java index e01e18b..ae3fa36 100644 --- a/src/main/java/thesmith/eventhorizon/service/impl/LastfmEventServiceImpl.java +++ b/src/main/java/thesmith/eventhori...
false
true
public List<Event> events(Account account, int page) { if (!"lastfm".equals(account.getDomain())) throw new RuntimeException("You can only get events for the lastfm domain"); try { List<Event> events = Lists.newArrayList(); URL url = new URL(String.format(API_URL, account.getPersonId(), API...
public List<Event> events(Account account, int page) { if (!"lastfm".equals(account.getDomain())) throw new RuntimeException("You can only get events for the lastfm domain"); try { List<Event> events = Lists.newArrayList(); URL url = new URL(String.format(API_URL, account.getPersonId(), API...
diff --git a/src/ConsensusHealthChecker.java b/src/ConsensusHealthChecker.java index dd88611..5badebd 100644 --- a/src/ConsensusHealthChecker.java +++ b/src/ConsensusHealthChecker.java @@ -1,762 +1,762 @@ import java.io.*; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.*; impo...
true
true
public void writeStatusWebsite() { /* If we don't have any consensus, we cannot write useful consensus * health information to the website. Do not overwrite existing page * with a warning, because we might just not have learned about a new * consensus in this execution. */ if (this.mostRecentC...
public void writeStatusWebsite() { /* If we don't have any consensus, we cannot write useful consensus * health information to the website. Do not overwrite existing page * with a warning, because we might just not have learned about a new * consensus in this execution. */ if (this.mostRecentC...
diff --git a/iControlU/src/me/firebreath15/icontrolu/iControlU.java b/iControlU/src/me/firebreath15/icontrolu/iControlU.java index d2b29ef..4cf8871 100644 --- a/iControlU/src/me/firebreath15/icontrolu/iControlU.java +++ b/iControlU/src/me/firebreath15/icontrolu/iControlU.java @@ -1,152 +1,152 @@ /* iControlU - By Fir...
false
true
public boolean onCommand(CommandSender sender, Command cmd, String label, String args[]){ if(cmd.getName().equalsIgnoreCase("icu")){ if(sender instanceof Player){ if(args.length == 0 || args.length > 2){ //show help menu. they got their arguments wrong! sender.sendMessage(ChatColor.YELLOW+"======...
public boolean onCommand(CommandSender sender, Command cmd, String label, String args[]){ if(cmd.getName().equalsIgnoreCase("icu")){ if(sender instanceof Player){ if(args.length == 0 || args.length > 2){ //show help menu. they got their arguments wrong! sender.sendMessage(ChatColor.YELLOW+"======...
diff --git a/src/main/java/org/jahia/modules/external/osgi/ExternalProviderActivator.java b/src/main/java/org/jahia/modules/external/osgi/ExternalProviderActivator.java index 650cb6b..08cdc58 100644 --- a/src/main/java/org/jahia/modules/external/osgi/ExternalProviderActivator.java +++ b/src/main/java/org/jahia/modules/...
true
true
public void mountSourcesProvider(JahiaTemplatesPackage templatePackage) { JCRStoreService jcrStoreService = (JCRStoreService) SpringContextSingleton.getBean("JCRStoreService"); JCRStoreProvider provider = jcrStoreService.getSessionFactory().getProviders().get( "module-" + templatePac...
public void mountSourcesProvider(JahiaTemplatesPackage templatePackage) { JCRStoreService jcrStoreService = (JCRStoreService) SpringContextSingleton.getBean("JCRStoreService"); JCRStoreProvider provider = jcrStoreService.getSessionFactory().getProviders().get( "module-" + templatePac...
diff --git a/jreunion/src/com/googlecode/reunion/jreunion/server/S_SessionManager.java b/jreunion/src/com/googlecode/reunion/jreunion/server/S_SessionManager.java index 60e47bd..439291b 100644 --- a/jreunion/src/com/googlecode/reunion/jreunion/server/S_SessionManager.java +++ b/jreunion/src/com/googlecode/reunion/jreun...
false
true
public void workSessions() { /* * Iterator iter = sessionList.iterator(); while (iter.hasNext()) { * Session session = (Session) iter.next(); * session.WorkSession(getSessionRadius()); } */ Iterator<G_Player> player1Iter = S_Server.getInstance() .getWorldModule().getPlayerManager().getPlayerListIt...
public void workSessions() { /* * Iterator iter = sessionList.iterator(); while (iter.hasNext()) { * Session session = (Session) iter.next(); * session.WorkSession(getSessionRadius()); } */ Iterator<G_Player> player1Iter = S_Server.getInstance() .getWorldModule().getPlayerManager().getPlayerListIt...
diff --git a/src/main/java/iinteractive/bullfinch/Boss.java b/src/main/java/iinteractive/bullfinch/Boss.java index f9e6b7b..93fa519 100644 --- a/src/main/java/iinteractive/bullfinch/Boss.java +++ b/src/main/java/iinteractive/bullfinch/Boss.java @@ -1,361 +1,362 @@ package iinteractive.bullfinch; import java.io.File...
true
true
private void prepareWorker(HashMap<String,Object> workConfig) throws Exception { String ref = (String) workConfig.get("$ref"); if (ref != null) { workConfig = readConfigFile(ref); } String name = (String) workConfig.get("name"); if(name == null) { throw new ConfigurationException("Each worker must hav...
private void prepareWorker(HashMap<String,Object> workConfig) throws Exception { String ref = (String) workConfig.get("$ref"); if (ref != null) { workConfig = readConfigFile(ref); } String name = (String) workConfig.get("name"); if(name == null) { throw new ConfigurationException("Each worker must hav...
diff --git a/src/java/org/jivesoftware/openfire/muc/spi/IQMUCRegisterHandler.java b/src/java/org/jivesoftware/openfire/muc/spi/IQMUCRegisterHandler.java index d9f2c7bb..abbf9597 100644 --- a/src/java/org/jivesoftware/openfire/muc/spi/IQMUCRegisterHandler.java +++ b/src/java/org/jivesoftware/openfire/muc/spi/IQMUCRegist...
true
true
public IQ handleIQ(IQ packet) { IQ reply = null; // Get the target room MUCRoom room = mucServer.getChatRoom(packet.getTo().getNode()); if (room == null) { // The room doesn't exist so answer a NOT_FOUND error reply = IQ.createResultIQ(packet); rep...
public IQ handleIQ(IQ packet) { IQ reply = null; // Get the target room MUCRoom room = null; String name = packet.getTo().getNode(); if (name != null) { room = mucServer.getChatRoom(name); } if (room == null) { // The room doesn't exist...
diff --git a/trunk/src/main/java/ex4/MainNode.java b/trunk/src/main/java/ex4/MainNode.java index 249db57..278ae0c 100644 --- a/trunk/src/main/java/ex4/MainNode.java +++ b/trunk/src/main/java/ex4/MainNode.java @@ -1,745 +1,746 @@ /* * To change this template, choose Tools | Templates * and open the template in the ...
true
true
public void onStart(ConnectedNode connectedNode) { //set up the message factory messageFactory = NodeConfiguration.newPrivate().getTopicMessageFactory(); StaticMethods.messageFactory = messageFactory; //set publisher for moving the robot twist_pub = connectedNode.newPublishe...
public void onStart(ConnectedNode connectedNode) { //set up the message factory messageFactory = NodeConfiguration.newPrivate().getTopicMessageFactory(); StaticMethods.messageFactory = messageFactory; //set publisher for moving the robot twist_pub = connectedNode.newPublishe...
diff --git a/src/main/java/org/powertac/factoredcustomer/DefaultUtilityOptimizer.java b/src/main/java/org/powertac/factoredcustomer/DefaultUtilityOptimizer.java index 149e8e4..f0fabc0 100644 --- a/src/main/java/org/powertac/factoredcustomer/DefaultUtilityOptimizer.java +++ b/src/main/java/org/powertac/factoredcustomer/...
false
true
private List<Integer> determineLogitChoiceAllocations(CapacityBundle bundle, List<Tariff> evalTariffs, List<Double> estimatedPayments) { // logit choice model: p_i = e^(lambda * utility_i) / sum_i(e^(lambda * utility_i)) int n...
private List<Integer> determineLogitChoiceAllocations(CapacityBundle bundle, List<Tariff> evalTariffs, List<Double> estimatedPayments) { // logit choice model: p_i = e^(lambda * utility_i) / sum_i(e^(lambda * utility_i)) int n...
diff --git a/impl/src/main/java/org/jboss/cdi/tck/tests/decorators/builtin/conversation/ConversationDecorator.java b/impl/src/main/java/org/jboss/cdi/tck/tests/decorators/builtin/conversation/ConversationDecorator.java index 0f8084fa7..5e25b3ad3 100644 --- a/impl/src/main/java/org/jboss/cdi/tck/tests/decorators/builtin...
true
true
public void begin(String id) { conversation.begin(); conversationObserver.setDecoratedConversationId(conversation.getId()); }
public void begin(String id) { conversation.begin(id); conversationObserver.setDecoratedConversationId(conversation.getId()); }
diff --git a/contrib/wikipedia/src/de/zib/scalaris/examples/wikipedia/ScalarisDataHandler.java b/contrib/wikipedia/src/de/zib/scalaris/examples/wikipedia/ScalarisDataHandler.java index 7b9566d5..a0ea0002 100644 --- a/contrib/wikipedia/src/de/zib/scalaris/examples/wikipedia/ScalarisDataHandler.java +++ b/contrib/wikiped...
true
true
public static SavePageResult savePage(final Connection connection, final String title0, final Revision newRev, final int prevRevId, final Map<String, String> restrictions, final SiteInfo siteinfo, final String username, final MyNamespace nsObject) { long timeAtStart = System.currentT...
public static SavePageResult savePage(final Connection connection, final String title0, final Revision newRev, final int prevRevId, final Map<String, String> restrictions, final SiteInfo siteinfo, final String username, final MyNamespace nsObject) { long timeAtStart = System.currentT...
diff --git a/src/test/java/urbanairship/UrbanAirshipClientTest.java b/src/test/java/urbanairship/UrbanAirshipClientTest.java index ae85caa..db5b6f8 100644 --- a/src/test/java/urbanairship/UrbanAirshipClientTest.java +++ b/src/test/java/urbanairship/UrbanAirshipClientTest.java @@ -1,105 +1,106 @@ package urbanairship...
true
true
public void jsonCalendar() { APS aps = new APS(); aps.setAlert("You've got mail!"); aps.setBadge(1); Calendar c = Calendar.getInstance(); c.add(Calendar.DAY_OF_YEAR, 1); Broadcast bcast = new Broadcast(); bcast.setScheduleFor(c); Assert.assertNotNull(bcast.getScheduleFor()); bcast.s...
public void jsonCalendar() { APS aps = new APS(); aps.setAlert("You've got mail!"); aps.setBadge(1); Calendar c = Calendar.getInstance(); c.add(Calendar.DAY_OF_YEAR, 1); c.set(Calendar.MILLISECOND, 0); Broadcast bcast = new Broadcast(); bcast.setScheduleFor(c); Assert.assertNotNull(bcast....
diff --git a/bundles/core/org.openhab.core/src/main/java/org/openhab/core/internal/items/ItemUpdater.java b/bundles/core/org.openhab.core/src/main/java/org/openhab/core/internal/items/ItemUpdater.java index 16d833ce..67a096ae 100644 --- a/bundles/core/org.openhab.core/src/main/java/org/openhab/core/internal/items/ItemU...
false
true
public void receiveUpdate(String itemName, State newStatus) { if (itemRegistry != null) { try { GenericItem item = (GenericItem) itemRegistry.getItem(itemName); boolean isAccepted = false; if (item.getAcceptedDataTypes().contains(newStatus.getClass())) { isAccepted = true; } else { // Lo...
public void receiveUpdate(String itemName, State newStatus) { if (itemRegistry != null) { try { GenericItem item = (GenericItem) itemRegistry.getItem(itemName); boolean isAccepted = false; if (item.getAcceptedDataTypes().contains(newStatus.getClass())) { isAccepted = true; } else { // Lo...
diff --git a/src/com/kmcginn/airquotes/HelpActivity.java b/src/com/kmcginn/airquotes/HelpActivity.java index 3f5dda8..04b93a8 100644 --- a/src/com/kmcginn/airquotes/HelpActivity.java +++ b/src/com/kmcginn/airquotes/HelpActivity.java @@ -1,178 +1,179 @@ package com.kmcginn.airquotes; import java.util.Locale; impo...
true
true
protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_help); // Set up the action bar. final ActionBar actionBar = getActionBar(); actionBar.setNavigationMode(ActionBar.NAVIGATION_MODE_TABS); // Create the adapter that will return a frag...
protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_help); // Set up the action bar. final ActionBar actionBar = getActionBar(); actionBar.setNavigationMode(ActionBar.NAVIGATION_MODE_TABS); actionBar.setDisplayHomeAsUpEnabled(true); ...
diff --git a/cst/eu.esdihumboldt.cst/src/main/java/eu/esdihumboldt/cst/transformer/configuration/ReflectionHelper.java b/cst/eu.esdihumboldt.cst/src/main/java/eu/esdihumboldt/cst/transformer/configuration/ReflectionHelper.java index ab3ee1208..c542a8efe 100644 --- a/cst/eu.esdihumboldt.cst/src/main/java/eu/esdihumboldt...
false
true
public static synchronized File[] getFilesFromPackage(String pkg) throws IOException { File[] files; try { URL u = _packageResolver.resolve(pkg); if (u != null && !u.toString().startsWith("jar:")) { //we got the package as an URL. Simply create a file ...
public static synchronized File[] getFilesFromPackage(String pkg) throws IOException { File[] files; try { URL u = _packageResolver.resolve(pkg); if (u != null && !u.toString().startsWith("jar:")) { //we got the package as an URL. Simply create a file ...
diff --git a/src/org/e2k/CROWD36.java b/src/org/e2k/CROWD36.java index 08bdbbf..7f5b53e 100644 --- a/src/org/e2k/CROWD36.java +++ b/src/org/e2k/CROWD36.java @@ -1,270 +1,274 @@ package org.e2k; import javax.swing.JOptionPane; public class CROWD36 extends MFSK { private int baudRate=40; private int state=0...
true
true
public String[] decode (CircularDataBuffer circBuf,WaveData waveData) { String outLines[]=new String[2]; // Just starting if (state==0) { // Check the sample rate if (waveData.getSampleRate()>11025) { state=-1; JOptionPane.showMessageDialog(null,"WAV files containing\nCROWD36 recordings must ha...
public String[] decode (CircularDataBuffer circBuf,WaveData waveData) { String outLines[]=new String[2]; // Just starting if (state==0) { // Check the sample rate if (waveData.getSampleRate()>11025) { state=-1; JOptionPane.showMessageDialog(null,"WAV files containing\nCROWD36 recordings must ha...
diff --git a/src/com/vloxlands/gen/MapGenerator.java b/src/com/vloxlands/gen/MapGenerator.java index 7271de3..8bf4786 100644 --- a/src/com/vloxlands/gen/MapGenerator.java +++ b/src/com/vloxlands/gen/MapGenerator.java @@ -1,60 +1,60 @@ package com.vloxlands.gen; import org.lwjgl.util.vector.Vector3f; import com.v...
true
true
public void run() { map = new Map(); while (!isDone()) { if (gen == null) { progressBefore = progress; gen = new IslandGenerator((int) (size * 0.75), (int) (size * 1.25)); gen.start(); index++; } System.out.print(""); // don't why this is needed progress = gen.progress / (...
public void run() { map = new Map(); while (!isDone()) { if (gen == null) { progressBefore = progress; gen = new IslandGenerator((int) (size * 0.75), (int) (size * 1.25)); gen.start(); index++; } System.out.print(""); // don't why this is needed progress = gen.progress / (...
diff --git a/plugins/org.eclipse.birt.report.engine.emitter.config.postscript/src/org/eclipse/birt/report/engine/emitter/config/postscript/PostscriptEmitterDescriptor.java b/plugins/org.eclipse.birt.report.engine.emitter.config.postscript/src/org/eclipse/birt/report/engine/emitter/config/postscript/PostscriptEmitterDes...
true
true
private void initOptions( ) { // Initializes the option for BIDIProcessing. ConfigurableOption bidiProcessing = new ConfigurableOption( BIDI_PROCESSING ); bidiProcessing.setDisplayName( Messages .getString( "OptionDisplayValue.BidiProcessing" ) ); //$NON-NLS-1$ bidiProcessing.setDataType( IConfigurabl...
private void initOptions( ) { // Initializes the option for BIDIProcessing. ConfigurableOption bidiProcessing = new ConfigurableOption( BIDI_PROCESSING ); bidiProcessing.setDisplayName( Messages .getString( "OptionDisplayValue.BidiProcessing" ) ); //$NON-NLS-1$ bidiProcessing.setDataType( IConfigurabl...
diff --git a/src/main/java/org/spoutcraft/launcher/rest/Versions.java b/src/main/java/org/spoutcraft/launcher/rest/Versions.java index 63c9bf3..f8af52b 100644 --- a/src/main/java/org/spoutcraft/launcher/rest/Versions.java +++ b/src/main/java/org/spoutcraft/launcher/rest/Versions.java @@ -1,97 +1,97 @@ /* * This file...
true
true
public static synchronized List<String> getMinecraftVersions() { if (versions == null) { InputStream stream = null; try { URLConnection conn = (new URL(RestAPI.VERSIONS_URL)).openConnection(); stream = conn.getInputStream(); ObjectMapper mapper = new ObjectMapper(); Channel c = mapper.readValue...
public static synchronized List<String> getMinecraftVersions() { if (versions == null) { InputStream stream = null; try { URLConnection conn = (new URL(RestAPI.VERSIONS_URL)).openConnection(); stream = conn.getInputStream(); ObjectMapper mapper = new ObjectMapper(); Channel c = mapper.readValue...
diff --git a/src/com/NightOutApps/chiconightout/CNOMapView.java b/src/com/NightOutApps/chiconightout/CNOMapView.java index 90d8321..5c6bf8f 100644 --- a/src/com/NightOutApps/chiconightout/CNOMapView.java +++ b/src/com/NightOutApps/chiconightout/CNOMapView.java @@ -1,186 +1,186 @@ package com.NightOutApps.chiconightout...
true
true
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.map); View barListButton = findViewById(R.id.barlistbutton); barListButton.setOnClickListener(this); initMapView(); initMyLocation(); initDatabase(); GeoPoint bansheePoi...
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.map); View barListButton = findViewById(R.id.barlistbutton); barListButton.setOnClickListener(this); initMapView(); initMyLocation(); initDatabase(); GeoPoint bansheePoi...
diff --git a/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/view/repositories/GitRepositoriesViewFetchAndPushTest.java b/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/view/repositories/GitRepositoriesViewFetchAndPushTest.java index 5eac99a7..6f4c7e4a 100644 --- a/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/vi...
true
true
public void testPushToOrigin() throws Exception { Activator.getDefault().getRepositoryUtil().addConfiguredRepository( clonedRepositoryFile); shareProjects(clonedRepositoryFile); SWTBotTree tree = getOrOpenView().bot().tree(); tree.select(0); Repository repository = lookupRepository(clonedRepositoryFile)...
public void testPushToOrigin() throws Exception { Activator.getDefault().getRepositoryUtil().addConfiguredRepository( clonedRepositoryFile); shareProjects(clonedRepositoryFile); SWTBotTree tree = getOrOpenView().bot().tree(); tree.select(0); Repository repository = lookupRepository(clonedRepositoryFile)...
diff --git a/Countdown/src/Countdown/OperatorNode.java b/Countdown/src/Countdown/OperatorNode.java index 63d2d69..85629e6 100644 --- a/Countdown/src/Countdown/OperatorNode.java +++ b/Countdown/src/Countdown/OperatorNode.java @@ -1,137 +1,139 @@ package Countdown; /* * To change this template, choose Tools | Templ...
true
true
public String toString(boolean bracket) { SyntaxTreeNode node = simplify(); if (node instanceof OperatorNode) { OperatorNode opNode = (OperatorNode) node; StringBuffer returnString = new StringBuffer(); returnString.append(opNode.Left.toString()); ...
public String toString(boolean bracket) { SyntaxTreeNode node = simplify(); if (node instanceof OperatorNode) { OperatorNode opNode = (OperatorNode) node; StringBuffer returnString = new StringBuffer(); returnString.append(opNode.Left.toString()); ...
diff --git a/lib/packetpig/src/main/java/com/packetloop/packetpig/loaders/pcap/packet/DnsPacketAllRecordReader.java b/lib/packetpig/src/main/java/com/packetloop/packetpig/loaders/pcap/packet/DnsPacketAllRecordReader.java index 43aed1a..2942727 100644 --- a/lib/packetpig/src/main/java/com/packetloop/packetpig/loaders/pc...
false
true
public boolean nextKeyValue() throws IOException, InterruptedException { if (tupleQueue.size() > 0) { tuple = tupleQueue.remove(0); return true; } try { // keep going until the decoder says it found a good one. PcapPacket packet = null; ...
public boolean nextKeyValue() throws IOException, InterruptedException { if (tupleQueue.size() > 0) { tuple = tupleQueue.remove(0); return true; } try { // keep going until the decoder says it found a good one. PcapPacket packet = null; ...
diff --git a/replication-http/src/main/java/org/openstreetmap/osmosis/replicationhttp/v0_6/ReplicationDataClientFactory.java b/replication-http/src/main/java/org/openstreetmap/osmosis/replicationhttp/v0_6/ReplicationDataClientFactory.java index 9a029e8f..cc4bba02 100644 --- a/replication-http/src/main/java/org/openstre...
false
true
protected TaskManager createTaskManagerImpl(TaskConfiguration taskConfig) { String host; int port; StringBuilder basePath; // Get the task arguments. host = getStringArgument(taskConfig, ARG_HOST, DEFAULT_HOST); port = getIntegerArgument(taskConfig, ARG_PORT, DEFAULT_PORT); basePath = new StringBuilder(...
protected TaskManager createTaskManagerImpl(TaskConfiguration taskConfig) { String host; int port; StringBuilder basePath; // Get the task arguments. host = getStringArgument(taskConfig, ARG_HOST, DEFAULT_HOST); port = getIntegerArgument(taskConfig, ARG_PORT, DEFAULT_PORT); basePath = new StringBuilder(...
diff --git a/java/server/src/org/openqa/selenium/remote/server/DefaultDriverSessions.java b/java/server/src/org/openqa/selenium/remote/server/DefaultDriverSessions.java index a8cdf3e49..4c0d6f346 100644 --- a/java/server/src/org/openqa/selenium/remote/server/DefaultDriverSessions.java +++ b/java/server/src/org/openqa/s...
false
true
private void registerDefaults(Platform current) { if (current.equals(Platform.ANDROID)) { registerDriver(DesiredCapabilities.android(), "org.openqa.selenium.android.AndroidDriver"); return; } for (Map.Entry<Capabilities, String> entry : defaultDrivers.entrySet()) { Capabilities caps = en...
private void registerDefaults(Platform current) { if (current.equals(Platform.ANDROID)) { // AndroidDriver is here for backward-compatibility reasons, it should be removed at some point registerDriver(DesiredCapabilities.android(), "org.openqa.selenium.android.AndroidDriver"); registerDriver(Des...
diff --git a/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/FencingExecutor.java b/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/FencingExecutor.java index 30c5867fb..9158aba22 100644 --- a/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/FencingExecutor.jav...
false
true
public boolean FindVdsToFence() { final Guid NO_VDS = Guid.Empty; int count = 0; // make sure that loop is executed at least once , no matter what is the // value in config int retries = Math.max(Config.<Integer> GetValue(ConfigValues.FindFenceProxyRetries), 1); int d...
public boolean FindVdsToFence() { final Guid NO_VDS = Guid.Empty; int count = 0; // make sure that loop is executed at least once , no matter what is the // value in config int retries = Math.max(Config.<Integer> GetValue(ConfigValues.FindFenceProxyRetries), 1); int d...
diff --git a/net.sf.jmoney/src/net/sf/jmoney/model2/CapitalAccountExtension.java b/net.sf.jmoney/src/net/sf/jmoney/model2/CapitalAccountExtension.java index 2fbd465a..973c0f02 100644 --- a/net.sf.jmoney/src/net/sf/jmoney/model2/CapitalAccountExtension.java +++ b/net.sf.jmoney/src/net/sf/jmoney/model2/CapitalAccountExte...
true
true
public CapitalAccountExtension(CapitalAccount extendedObject) { super(extendedObject); }
public CapitalAccountExtension(ExtendableObject extendedObject) { super(extendedObject); }
diff --git a/org.eclipse.stem.ui.diseasemodels.multipopulation/src/org/eclipse/stem/diseasemodels/multipopulation/presentation/MultiPopulationDiseaseModelPropertyEditor.java b/org.eclipse.stem.ui.diseasemodels.multipopulation/src/org/eclipse/stem/diseasemodels/multipopulation/presentation/MultiPopulationDiseaseModelPro...
false
true
public void populate(DiseaseModel diseaseModel) { super.populate(diseaseModel); for (final Map.Entry<EStructuralFeature, Text> entry : map.entrySet()) { double dVal = 0.0; switch (entry.getKey().getFeatureID()) { case MultipopulationPackage.MULTI_POPULATION_SI_DISEASE_MODEL__PHYSICALLY_ADJACENT_INFE...
public void populate(DiseaseModel diseaseModel) { super.populate(diseaseModel); for (final Map.Entry<EStructuralFeature, Text> entry : map.entrySet()) { double dVal = 0.0; switch (entry.getKey().getFeatureID()) { case MultipopulationPackage.MULTI_POPULATION_SI_DISEASE_MODEL__PHYSICALLY_ADJACENT_INFE...
diff --git a/src/com/codisimus/plugins/chestlock/listeners/BlockEventListener.java b/src/com/codisimus/plugins/chestlock/listeners/BlockEventListener.java index bc8fd6b..c77ba7e 100644 --- a/src/com/codisimus/plugins/chestlock/listeners/BlockEventListener.java +++ b/src/com/codisimus/plugins/chestlock/listeners/BlockEv...
false
true
public void onBlockBreak (BlockBreakEvent event) { Block block = event.getBlock(); Player player = event.getPlayer(); //Check if the Block is a LockedDoor LockedDoor door = ChestLock.findDoor(block); if (door != null) { //Cancel the event if the Player is...
public void onBlockBreak (BlockBreakEvent event) { Block block = event.getBlock(); Player player = event.getPlayer(); //Check if the Block is a LockedDoor LockedDoor door = ChestLock.findDoor(block); if (door != null) { //Cancel the event if the Player is...
diff --git a/test/assignment2/Test3.java b/test/assignment2/Test3.java index 29fce97..7b6badd 100644 --- a/test/assignment2/Test3.java +++ b/test/assignment2/Test3.java @@ -1,103 +1,103 @@ /* * To change this template, choose Tools | Templates * and open the template in the editor. */ package assignment2; im...
false
true
public void queryBudget(){ try{ budget.setDescription("I'M A BUDGET!!!!!!!!"); budget.setTotal(1337); id = budget.getId(); budget.commit(); }catch(Exception e){ fail("cannot sync budget" + e); } try{ Budget queriedBudget = Budget.find(id); assertEquals(queriedBudget.getDescription(), "I'M ...
public void queryBudget(){ try{ budget.setDescription("I'M A BUDGET!!!!!!!!"); budget.setTotal(1337); budget.commit(); id = budget.getId(); }catch(Exception e){ fail("cannot sync budget" + e); } try{ Budget queriedBudget = Budget.find(id); assertEquals(queriedBudget.ge...
diff --git a/src/com/android/calendar/LaunchActivity.java b/src/com/android/calendar/LaunchActivity.java index a83730ca..be8b287d 100644 --- a/src/com/android/calendar/LaunchActivity.java +++ b/src/com/android/calendar/LaunchActivity.java @@ -1,109 +1,110 @@ /* * Copyright (C) 2007 The Android Open Source Project ...
true
true
protected void onCreate(Bundle icicle) { super.onCreate(icicle); mExtras = getIntent().getExtras(); // Our UI is not something intended for the user to see. We just // stick around until we can figure out what to do next based on // the current state of the system. ...
protected void onCreate(Bundle icicle) { super.onCreate(icicle); mExtras = getIntent().getExtras(); // Our UI is not something intended for the user to see. We just // stick around until we can figure out what to do next based on // the current state of the system. ...
diff --git a/bundles/org.eclipse.equinox.metatype/src/org/eclipse/equinox/metatype/MetaTypeProviderImpl.java b/bundles/org.eclipse.equinox.metatype/src/org/eclipse/equinox/metatype/MetaTypeProviderImpl.java index 45a43435..fd3ebdeb 100644 --- a/bundles/org.eclipse.equinox.metatype/src/org/eclipse/equinox/metatype/MetaT...
false
true
private boolean readMetaFiles(Bundle bundle, SAXParserFactory parserFactory) throws IOException { boolean isThereMetaHere = false; Enumeration allFileKeys = FragmentUtils.findEntryPaths(bundle, MetaTypeService.METATYPE_DOCUMENTS_LOCATION); if (allFileKeys == null) return isThereMetaHere; while (allFileKe...
private boolean readMetaFiles(Bundle bundle, SAXParserFactory parserFactory) throws IOException { boolean isThereMetaHere = false; Enumeration allFileKeys = FragmentUtils.findEntryPaths(bundle, MetaTypeService.METATYPE_DOCUMENTS_LOCATION); if (allFileKeys == null) return isThereMetaHere; while (allFileKe...
diff --git a/src/uk/org/ponder/rsf/flow/ARIProcessor.java b/src/uk/org/ponder/rsf/flow/ARIProcessor.java index 1b77425..f9e64f3 100644 --- a/src/uk/org/ponder/rsf/flow/ARIProcessor.java +++ b/src/uk/org/ponder/rsf/flow/ARIProcessor.java @@ -1,56 +1,56 @@ /* * Created on 5 Feb 2007 */ package uk.org.ponder.rsf.flo...
true
true
public void interceptActionResult(ARIResult ariresult, ViewParameters incoming, Object result) { if (interceptors == null) { interceptors = new ArrayList(); } ArrayList requestinterceptors = new ArrayList(interceptors); accreteViewARIs(requestinterceptors, incoming); for (int i =...
public void interceptActionResult(ARIResult ariresult, ViewParameters incoming, Object result) { if (interceptors == null) { interceptors = new ArrayList(); } ArrayList requestinterceptors = new ArrayList(interceptors); accreteViewARIs(requestinterceptors, incoming); for (int i =...
diff --git a/dataobject/src/main/java/org/chromattic/dataobject/DataObjectService.java b/dataobject/src/main/java/org/chromattic/dataobject/DataObjectService.java index bb502e1e..e133ba35 100644 --- a/dataobject/src/main/java/org/chromattic/dataobject/DataObjectService.java +++ b/dataobject/src/main/java/org/chromattic...
true
true
public Map<String, Class<?>> generateClasses( CompilationSource source, String... doPaths) throws DataObjectException, NullPointerException, IllegalArgumentException { if (source == null) { throw new NullPointerException("No null source accepted"); } for (String doPath : doPaths) { if ...
public Map<String, Class<?>> generateClasses( CompilationSource source, String... doPaths) throws DataObjectException, NullPointerException, IllegalArgumentException { if (source == null) { throw new NullPointerException("No null source accepted"); } for (String doPath : doPaths) { if ...
diff --git a/src/main/java/org/basex/query/func/FNQName.java b/src/main/java/org/basex/query/func/FNQName.java index 41bc22cba..6c071f8a7 100644 --- a/src/main/java/org/basex/query/func/FNQName.java +++ b/src/main/java/org/basex/query/func/FNQName.java @@ -1,190 +1,190 @@ package org.basex.query.func; import static...
true
true
private Item resolveUri(final QueryContext ctx, final Item it, final Item it2) throws QueryException { if(it == null) return null; // check relative uri final Uri rel = Uri.uri(checkEStr(it)); if(!rel.isValid()) URIINVRES.thrw(info, rel); if(rel.isAbsolute()) return rel; // check base ...
private Item resolveUri(final QueryContext ctx, final Item it, final Item it2) throws QueryException { if(it == null) return null; // check relative uri final Uri rel = Uri.uri(checkEStr(it)); if(!rel.isValid()) URIINVRES.thrw(info, rel); if(rel.isAbsolute()) return rel; // check base ...
diff --git a/52n-sos-importer-core/src/main/java/org/n52/sos/importer/model/xml/Step1ModelHandler.java b/52n-sos-importer-core/src/main/java/org/n52/sos/importer/model/xml/Step1ModelHandler.java index 78e482f5..5af289c1 100644 --- a/52n-sos-importer-core/src/main/java/org/n52/sos/importer/model/xml/Step1ModelHandler.ja...
false
true
public void handleModel(Step1Model stepModel, SosImportConfiguration sosImportConf) { if (logger.isTraceEnabled()) { logger.trace("handleModel()"); } DataFile dF = sosImportConf.getDataFile(); if (dF == null) { dF = sosImportConf.addNewDataFile(); } if (stepModel.getFeedingType() == Step1Panel....
public void handleModel(Step1Model stepModel, SosImportConfiguration sosImportConf) { if (logger.isTraceEnabled()) { logger.trace("handleModel()"); } DataFile dF = sosImportConf.getDataFile(); if (dF == null) { dF = sosImportConf.addNewDataFile(); } if (stepModel.getFeedingType() == Step1Panel....
diff --git a/src/cz/muni/fi/spc/SchedVis/model/entities/Machine.java b/src/cz/muni/fi/spc/SchedVis/model/entities/Machine.java index c0fe32a..af59ad2 100644 --- a/src/cz/muni/fi/spc/SchedVis/model/entities/Machine.java +++ b/src/cz/muni/fi/spc/SchedVis/model/entities/Machine.java @@ -1,390 +1,390 @@ /* * This file i...
true
true
public synchronized static List<Job> getLatestSchedule(final Machine which, final Event evt) { try { if (Machine.s == null) { final String query = "SELECT id, assignedCPUs, deadline, job, jobHint, expectedStart, expectedEnd, bringsSchedule FROM Job WHERE machine_id = ? AND parent = (SELECT max(parent) FR...
public synchronized static List<Job> getLatestSchedule(final Machine which, final Event evt) { try { if (Machine.s == null) { final String query = "SELECT id, assignedCPUs, deadline, number, jobHintId, expectedStart, expectedEnd, bringsSchedule FROM Job WHERE machine_id = ? AND parent = (SELECT max(paren...
diff --git a/grails/src/java/org/codehaus/groovy/grails/web/metaclass/RenderDynamicMethod.java b/grails/src/java/org/codehaus/groovy/grails/web/metaclass/RenderDynamicMethod.java index c8dbbc322..e44b9954a 100644 --- a/grails/src/java/org/codehaus/groovy/grails/web/metaclass/RenderDynamicMethod.java +++ b/grails/src/ja...
true
true
public Object invoke(Object target, String methodName, Object[] arguments) { if (arguments.length == 0) throw new MissingMethodException(METHOD_SIGNATURE, target.getClass(), arguments); GrailsWebRequest webRequest = (GrailsWebRequest) RequestContextHolder.currentRequestAttributes(); ...
public Object invoke(Object target, String methodName, Object[] arguments) { if (arguments.length == 0) throw new MissingMethodException(METHOD_SIGNATURE, target.getClass(), arguments); GrailsWebRequest webRequest = (GrailsWebRequest) RequestContextHolder.currentRequestAttributes(); ...
diff --git a/src/com/zavteam/plugins/RunnableMessager.java b/src/com/zavteam/plugins/RunnableMessager.java index b292c75..2e8286e 100644 --- a/src/com/zavteam/plugins/RunnableMessager.java +++ b/src/com/zavteam/plugins/RunnableMessager.java @@ -1,88 +1,88 @@ package com.zavteam.plugins; import java.util.Random; ...
true
true
public void run() { boolean messageRandom = (Boolean) plugin.mainConfig.get("messageinrandomorder", false); if ((Boolean) plugin.mainConfig.get("enabled", true)) { String[] cutMessageList = new String[10]; if (plugin.messages.size() == 1) { plugin.messageIt = 0; } else { if (messageRandom) { ...
public void run() { boolean messageRandom = (Boolean) plugin.mainConfig.get("messageinrandomorder", false); if ((Boolean) plugin.mainConfig.get("enabled", true)) { String[] cutMessageList = new String[10]; if (plugin.messages.size() == 1) { plugin.messageIt = 0; } else { if (messageRandom) { ...
diff --git a/src/java/org/joshy/html/css/TobeRuleBank.java b/src/java/org/joshy/html/css/TobeRuleBank.java index f881e8cb..7fe8d31f 100644 --- a/src/java/org/joshy/html/css/TobeRuleBank.java +++ b/src/java/org/joshy/html/css/TobeRuleBank.java @@ -1,175 +1,180 @@ /* * TobeRuleBank.java * * Created on den 30 juli ...
false
true
private void addConditions(net.homelinux.tobe.css.Selector s, Condition cond) { AttributeCondition attr = (AttributeCondition) cond; CombinatorCondition comb = (CombinatorCondition) cond; LangCondition lang = (LangCondition) cond; PositionalCondition p...
private void addConditions(net.homelinux.tobe.css.Selector s, Condition cond) { switch(cond.getConditionType()) { case Condition.SAC_AND_CONDITION: CombinatorCondition comb = (CombinatorCondition) cond; addConditions(s, comb.getFirstCondition()); a...
diff --git a/illaclient/src/illarion/client/world/interactive/InteractionManager.java b/illaclient/src/illarion/client/world/interactive/InteractionManager.java index 13e04ef4..9288340b 100644 --- a/illaclient/src/illarion/client/world/interactive/InteractionManager.java +++ b/illaclient/src/illarion/client/world/inter...
false
true
public void notifyDragging(int oldx, int oldy, int newx, int newy) { if (!isDragging) { final InteractiveMapTile targetTile = World.getMap().getInteractive() .getInteractiveTileOnScreenLoc(oldx, oldy); if (targetTile == null) { ret...
public void notifyDragging(int oldx, int oldy, int newx, int newy) { if (!isDragging) { final InteractiveMapTile targetTile = World.getMap().getInteractive() .getInteractiveTileOnScreenLoc(oldx, oldy); if (targetTile == null) { ret...
diff --git a/client/src/es/deusto/weblab/client/WebLabClient.java b/client/src/es/deusto/weblab/client/WebLabClient.java index 65900e729..e36c18b1a 100644 --- a/client/src/es/deusto/weblab/client/WebLabClient.java +++ b/client/src/es/deusto/weblab/client/WebLabClient.java @@ -1,325 +1,325 @@ /* * Copyright (C) 2005-2...
true
true
public void loadLabApp() { try{ ExperimentFactory.loadExperiments(WebLabClient.this.configurationManager); }catch(final Exception e){ WebLabClient.this.showError("Error checking experiments: " + e.getMessage()); e.printStackTrace(); return; } final IWlLabCommunication communications = new WlL...
public void loadLabApp() { try{ ExperimentFactory.loadExperiments(WebLabClient.this.configurationManager); }catch(final Exception e){ WebLabClient.this.showError("Error checking experiments: " + e.getMessage()); e.printStackTrace(); return; } final IWlLabCommunication communications = new WlL...
diff --git a/thesis/src/main/java/pls/stats/NumberFolderComparator.java b/thesis/src/main/java/pls/stats/NumberFolderComparator.java index 6c98717..72b4a3e 100644 --- a/thesis/src/main/java/pls/stats/NumberFolderComparator.java +++ b/thesis/src/main/java/pls/stats/NumberFolderComparator.java @@ -1,21 +1,21 @@ package ...
true
true
private long getRunNumber(FileStatus fs) { String name = fs.getPath().getName(); if (name.matches("\\s+")) { return Long.parseLong(name); } else { return Long.MAX_VALUE; } }
private long getRunNumber(FileStatus fs) { String name = fs.getPath().getName(); if (name.matches("\\d+")) { return Long.parseLong(name); } else { return Long.MAX_VALUE; } }
diff --git a/bridge-impl/src/main/java/com/liferay/faces/bridge/context/map/RequestParameterMapMultiPartImpl.java b/bridge-impl/src/main/java/com/liferay/faces/bridge/context/map/RequestParameterMapMultiPartImpl.java index 75266eb87..28c118610 100644 --- a/bridge-impl/src/main/java/com/liferay/faces/bridge/context/map/...
true
true
public RequestParameterMapMultiPartImpl(BridgeContext bridgeContext, ClientDataRequest clientDataRequest) { try { PortletSession portletSession = clientDataRequest.getPortletSession(); // Determine the uploaded files directory path according to the JSF 2.2 proposal: // https://javaserverfaces-spec-public...
public RequestParameterMapMultiPartImpl(BridgeContext bridgeContext, ClientDataRequest clientDataRequest) { try { PortletSession portletSession = clientDataRequest.getPortletSession(); // Determine the uploaded files directory path according to the JSF 2.2 proposal: // https://javaserverfaces-spec-public...
diff --git a/code/Lua.java b/code/Lua.java index 7bf58b1..ab22541 100644 --- a/code/Lua.java +++ b/code/Lua.java @@ -1,3548 +1,3548 @@ /* $Header$ * (c) Copyright 2006, Intuwave Ltd. All Rights Reserved. * * Although Intuwave has tested this program and reviewed the documentation, * Intuwave makes no warra...
true
true
private void vmExecute(int nexeccalls) { // This labelled while loop is used to simulate the effect of C's // goto. The end of the while loop is never reached. The beginning // of the while loop is branched to using a "continue reentry;" // statement (when a Lua function is called or returns). ree...
private void vmExecute(int nexeccalls) { // This labelled while loop is used to simulate the effect of C's // goto. The end of the while loop is never reached. The beginning // of the while loop is branched to using a "continue reentry;" // statement (when a Lua function is called or returns). ree...
diff --git a/src/main/java/net/praqma/hudson/scm/PucmScm.java b/src/main/java/net/praqma/hudson/scm/PucmScm.java index 7a77996..f895b37 100644 --- a/src/main/java/net/praqma/hudson/scm/PucmScm.java +++ b/src/main/java/net/praqma/hudson/scm/PucmScm.java @@ -1,585 +1,585 @@ package net.praqma.hudson.scm; import hudso...
false
true
private boolean baselinesToBuild( String jobname ) { logger.trace_function(); boolean result = true; co = null; integrationstream = null; Stream devstream = null; try { co = UCMEntity.GetComponent( "component:" + component, false ); integrationstream = UCMEntity.GetStream( "stream:" + strea...
private boolean baselinesToBuild( String jobname ) { logger.trace_function(); boolean result = true; co = null; integrationstream = null; Stream devstream = null; try { co = UCMEntity.GetComponent( "component:" + component, false ); integrationstream = UCMEntity.GetStream( "stream:" + strea...
diff --git a/annis-gui/src/main/java/annis/gui/AboutWindow.java b/annis-gui/src/main/java/annis/gui/AboutWindow.java index 1dfc3ee1a..0378f07ae 100644 --- a/annis-gui/src/main/java/annis/gui/AboutWindow.java +++ b/annis-gui/src/main/java/annis/gui/AboutWindow.java @@ -1,148 +1,148 @@ /* * Copyright 2011 Corpuslingui...
true
true
public AboutWindow() { setSizeFull(); layout = new VerticalLayout(); setContent(layout); layout.setSizeFull(); HorizontalLayout hLayout = new HorizontalLayout(); Embedded logoAnnis = new Embedded(); logoAnnis.setSource(new ThemeResource("annis-logo-128.png")); logoAnnis.s...
public AboutWindow() { setSizeFull(); layout = new VerticalLayout(); setContent(layout); layout.setSizeFull(); HorizontalLayout hLayout = new HorizontalLayout(); Embedded logoAnnis = new Embedded(); logoAnnis.setSource(new ThemeResource("annis-logo-128.png")); logoAnnis.s...
diff --git a/viewer/src/org/icepdf/ri/common/search/DocumentSearchControllerImpl.java b/viewer/src/org/icepdf/ri/common/search/DocumentSearchControllerImpl.java index 4079ebd0..6e8a9fbf 100644 --- a/viewer/src/org/icepdf/ri/common/search/DocumentSearchControllerImpl.java +++ b/viewer/src/org/icepdf/ri/common/search/Doc...
true
true
public ArrayList<LineText> searchHighlightPage(int pageIndex, int wordPadding){ // get search terms from model and search for each occurrence. Collection<SearchTerm> terms = searchModel.getSearchTerms(); // search hit list ArrayList<LineText>searchHits = new ArrayList<LineText>(); ...
public ArrayList<LineText> searchHighlightPage(int pageIndex, int wordPadding){ // get search terms from model and search for each occurrence. Collection<SearchTerm> terms = searchModel.getSearchTerms(); // search hit list ArrayList<LineText>searchHits = new ArrayList<LineText>(); ...
diff --git a/elex_common/elex/worldgen/WorldGenSaltLakes.java b/elex_common/elex/worldgen/WorldGenSaltLakes.java index 12c2474..c6fd211 100644 --- a/elex_common/elex/worldgen/WorldGenSaltLakes.java +++ b/elex_common/elex/worldgen/WorldGenSaltLakes.java @@ -1,205 +1,205 @@ package elex.worldgen; import java.util.Ran...
true
true
public boolean generate(World world, Random random, int x, int y, int z) { x -= 8; for (z -= 8; y > 5 && world.isAirBlock(x, y, z); --y) { ; } if (y <= 4) { return false; } else { y -= 4; bo...
public boolean generate(World world, Random random, int x, int y, int z) { x -= 8; for (z -= 8; y > 5 && world.isAirBlock(x, y, z); --y) { ; } if (y <= 4) { return false; } else { y -= 4; bo...
diff --git a/biz.aQute.bndlib/src/aQute/bnd/build/Project.java b/biz.aQute.bndlib/src/aQute/bnd/build/Project.java index 050b34b91..4852cee83 100644 --- a/biz.aQute.bndlib/src/aQute/bnd/build/Project.java +++ b/biz.aQute.bndlib/src/aQute/bnd/build/Project.java @@ -1,2555 +1,2557 @@ package aQute.bnd.build; import j...
true
true
public synchronized void prepare() throws Exception { if (!isValid()) { warning("Invalid project attempts to prepare: %s", this); return; } if (inPrepare) throw new CircularDependencyException(trail.toString() + "," + this); trail.add(this); try { if (!preparedPaths) { inPrepare = true; ...
public synchronized void prepare() throws Exception { if (!isValid()) { warning("Invalid project attempts to prepare: %s", this); return; } if (inPrepare) throw new CircularDependencyException(trail.toString() + "," + this); trail.add(this); try { if (!preparedPaths) { inPrepare = true; ...
diff --git a/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE788Test.java b/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE788Test.java index 4a55c8702..0b4e24355 100644 --- a/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/...
true
true
private ICompletionProposal[] checkOfCAByStartString(String caName, String testPagePath, String partOfString, int lineIndex, int linePosition,boolean isCheck) throws CoreException, IOException { // get test page path IFile file = (IFile) TestUtil.getComponentPath(testPagePath, Jsf...
private ICompletionProposal[] checkOfCAByStartString(String caName, String testPagePath, String partOfString, int lineIndex, int linePosition,boolean isCheck) throws CoreException, IOException { // get test page path IFile file = (IFile) TestUtil.getComponentPath(testPagePath, Jsf...
diff --git a/src/simciv/builds/FarmLand.java b/src/simciv/builds/FarmLand.java index a05f340..344bc32 100644 --- a/src/simciv/builds/FarmLand.java +++ b/src/simciv/builds/FarmLand.java @@ -1,185 +1,185 @@ package simciv.builds; import org.newdawn.slick.GameContainer; import org.newdawn.slick.Graphics; import org....
true
true
public void renderBuild(GameContainer gc, StateBasedGame game, Graphics gfx) { // Soil if(state == Build.STATE_NORMAL || needEmployees()) gfx.drawImage(Content.sprites.buildFarmland.getSprite(0, 0), 0, 0); else gfx.drawImage(Content.sprites.buildFarmland.getSprite(1, 0), 0, 0); // Crops if(state ==...
public void renderBuild(GameContainer gc, StateBasedGame game, Graphics gfx) { // Soil if(state == Build.STATE_NORMAL || needEmployees()) gfx.drawImage(Content.sprites.buildFarmland.getSprite(0, 0), 0, 0); else gfx.drawImage(Content.sprites.buildFarmland.getSprite(1, 0), 0, 0); // Crops if(state ==...
diff --git a/MythicDrops-Sockets/src/main/java/net/nunnerycode/bukkit/mythicdrops/sockets/MythicDropsSockets.java b/MythicDrops-Sockets/src/main/java/net/nunnerycode/bukkit/mythicdrops/sockets/MythicDropsSockets.java index 465f11e9..41e43b60 100644 --- a/MythicDrops-Sockets/src/main/java/net/nunnerycode/bukkit/mythicdr...
true
true
private void addHeldSocket(PlayerInteractEvent event, final Player player, ItemStack itemInHand) { if (!getSocketGemMaterialIds().contains(itemInHand.getData())) { return; } if (!itemInHand.hasItemMeta()) { return; } ItemMeta im = itemInHand.getItemMeta(); if (!im.hasDisplayName()) { return; } ...
private void addHeldSocket(PlayerInteractEvent event, final Player player, ItemStack itemInHand) { if (!getSocketGemMaterialIds().contains(itemInHand.getData())) { return; } if (!itemInHand.hasItemMeta()) { return; } ItemMeta im = itemInHand.getItemMeta(); if (!im.hasDisplayName()) { return; } ...
diff --git a/fds/src/main/java/org/intalio/tempo/workflow/fds/FormDispatcherConfiguration.java b/fds/src/main/java/org/intalio/tempo/workflow/fds/FormDispatcherConfiguration.java index 7a88447a..b0e64a92 100644 --- a/fds/src/main/java/org/intalio/tempo/workflow/fds/FormDispatcherConfiguration.java +++ b/fds/src/main/ja...
true
true
private FormDispatcherConfiguration() { try { String configDir = System.getProperty(CONFIG_DIR_PROPERTY); if (configDir == null) { _log.error("Property " + CONFIG_DIR_PROPERTY + " not set; using configuration defaults for FDS"); return; } ...
private FormDispatcherConfiguration() { try { String configDir = System.getProperty(CONFIG_DIR_PROPERTY); if (configDir == null) { _log.error("Property " + CONFIG_DIR_PROPERTY + " not set; using configuration defaults for FDS"); return; } ...
diff --git a/dvn-app/trunk/src/DVN-EJB/src/java/edu/harvard/iq/dvn/core/study/Metadata.java b/dvn-app/trunk/src/DVN-EJB/src/java/edu/harvard/iq/dvn/core/study/Metadata.java index 58469246b..d0aa4bd2b 100644 --- a/dvn-app/trunk/src/DVN-EJB/src/java/edu/harvard/iq/dvn/core/study/Metadata.java +++ b/dvn-app/trunk/src/DVN-...
false
true
public Metadata(Metadata source, boolean copyHidden, boolean copyDisabled ) { this.setUNF(source.UNF); this.setStudyFieldValues(new ArrayList<StudyFieldValue>()); Template sourceTemplate = source.getTemplate() != null ? source.getTemplate() : source.getStudyVersion().getStudy...
public Metadata(Metadata source, boolean copyHidden, boolean copyDisabled ) { this.setUNF(source.UNF); this.setStudyFieldValues(new ArrayList<StudyFieldValue>()); Template sourceTemplate = source.getTemplate() != null ? source.getTemplate() : source.getStudyVersion().getStudy...
diff --git a/src/org/e2k/GW.java b/src/org/e2k/GW.java index b8f5bb8..855811e 100644 --- a/src/org/e2k/GW.java +++ b/src/org/e2k/GW.java @@ -1,606 +1,608 @@ // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Soft...
false
true
private void processGWData () { // Turn the data into a string String sData=dataBitSet.extractSectionFromStart(0,bitCount); // Possible channel free marker if (bitCount>144) { // Hunt for 0x38A3 or 0011100010100011 int pos=sData.indexOf("0011100010100011"); if (pos<8) return; pos=pos-8; List<Int...
private void processGWData () { // Turn the data into a string String sData=dataBitSet.extractSectionFromStart(0,bitCount); // Possible channel free marker if (bitCount>144) { // Hunt for 0x38A3 or 0011100010100011 int pos=sData.indexOf("0011100010100011"); if (pos<8) return; pos=pos-8; List<Int...