Datasets:

diff
stringlengths
262
553k
is_single_chunk
bool
2 classes
is_single_function
bool
1 class
buggy_function
stringlengths
20
391k
fixed_function
stringlengths
0
392k
diff --git a/src/main/java/org/sonar/plugins/jira/JiraPriorities.java b/src/main/java/org/sonar/plugins/jira/JiraPriorities.java index 8be2be6..00c9884 100644 --- a/src/main/java/org/sonar/plugins/jira/JiraPriorities.java +++ b/src/main/java/org/sonar/plugins/jira/JiraPriorities.java @@ -1,68 +1,67 @@ /* * Sonar, en...
false
true
public String getPriorityDistributionText() { String result = ""; for (Object o : getOrderedPriorities()) { String priority = (String) o; int prioritySize = prioritiesNameBag.getCount(priority); result += priority + "=" + prioritySize + ","; } result = StringUtils.removeEnd(result, "...
public String getPriorityDistributionText() { StringBuilder result = new StringBuilder(); for (Object o : getOrderedPriorities()) { String priority = (String) o; int prioritySize = prioritiesNameBag.getCount(priority); result.append(priority).append('=').append(prioritySize).append(','); ...
diff --git a/hk2/config/src/java/org/jvnet/hk2/config/ConfigSupport.java b/hk2/config/src/java/org/jvnet/hk2/config/ConfigSupport.java index 2e72494f7..cfcf97227 100644 --- a/hk2/config/src/java/org/jvnet/hk2/config/ConfigSupport.java +++ b/hk2/config/src/java/org/jvnet/hk2/config/ConfigSupport.java @@ -1,838 +1,838 @@...
true
true
ConfigBean _createAndSet( final ConfigBean parent, final Class<? extends ConfigBeanProxy> childType, final List<AttributeChanges> attributes, final TransactionCallBack<WriteableView> runnable) throws TransactionFailure { ...
ConfigBean _createAndSet( final ConfigBean parent, final Class<? extends ConfigBeanProxy> childType, final List<AttributeChanges> attributes, final TransactionCallBack<WriteableView> runnable) throws TransactionFailure { ...
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/QuickSettings.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/QuickSettings.java index 56ecdbac..3638f498 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/QuickSettings.java +++ b/packages/SystemUI/src/com/a...
false
true
private QuickSettingsTileView getTile(int tile, ViewGroup parent, LayoutInflater inflater) { final Resources r = mContext.getResources(); QuickSettingsTileView quick = null; switch (tile) { case USER_TILE: quick = (QuickSettingsTileView) in...
private QuickSettingsTileView getTile(int tile, ViewGroup parent, LayoutInflater inflater) { final Resources r = mContext.getResources(); QuickSettingsTileView quick = null; switch (tile) { case USER_TILE: quick = (QuickSettingsTileView) in...
diff --git a/src/main/java/cc/redberry/core/number/parser/OperatorToken.java b/src/main/java/cc/redberry/core/number/parser/OperatorToken.java index a0a10f0..cdcfd76 100644 --- a/src/main/java/cc/redberry/core/number/parser/OperatorToken.java +++ b/src/main/java/cc/redberry/core/number/parser/OperatorToken.java @@ -1,1...
false
true
public T parse(String expression, NumberParser<T> parser) { if (!canParse(expression)) return null; char[] expressionChars = expression.toCharArray(); StringBuffer buffer = new StringBuffer(); T temp = null; int level = 0; boolean mode = false;//true - inv...
public T parse(String expression, NumberParser<T> parser) { if (!canParse(expression)) return null; char[] expressionChars = expression.toCharArray(); StringBuffer buffer = new StringBuffer(); T temp = neutral(); int level = 0; boolean mode = false;//true ...
diff --git a/de.walware.statet.nico.ui/src/de/walware/statet/nico/ui/console/NIConsolePage.java b/de.walware.statet.nico.ui/src/de/walware/statet/nico/ui/console/NIConsolePage.java index 3d360edd..b205d870 100644 --- a/de.walware.statet.nico.ui/src/de/walware/statet/nico/ui/console/NIConsolePage.java +++ b/de.walware.s...
false
true
public void createControl(final Composite parent) { StatetCore.getSettingsChangeNotifier().addChangeListener(this); fConsole.addPropertyChangeListener(this); fControl = new Composite(parent, SWT.NONE) { @Override public boolean setFocus() { return false; // our page handles focus } }; final G...
public void createControl(final Composite parent) { StatetCore.getSettingsChangeNotifier().addChangeListener(this); fConsole.addPropertyChangeListener(this); fControl = new Composite(parent, SWT.NONE) { @Override public boolean setFocus() { return false; // our page handles focus } }; final G...
diff --git a/src/Servlets/AcctManagementServlet.java b/src/Servlets/AcctManagementServlet.java index 506b769..c72e748 100755 --- a/src/Servlets/AcctManagementServlet.java +++ b/src/Servlets/AcctManagementServlet.java @@ -1,66 +1,66 @@ package Servlets; import java.io.IOException; import javax.servlet.ServletCont...
true
true
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { String action = request.getParameter("Action"); String name = request.getParameter("User"); String pass = request.getParameter("Pass"); System.out.println(action); S...
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { String action = request.getParameter("Action"); String name = request.getParameter("User"); String pass = request.getParameter("Pass"); System.out.println(action); S...
diff --git a/src/main/java/com/senseidb/clue/ClueApplication.java b/src/main/java/com/senseidb/clue/ClueApplication.java index ae3817a..48d9095 100644 --- a/src/main/java/com/senseidb/clue/ClueApplication.java +++ b/src/main/java/com/senseidb/clue/ClueApplication.java @@ -1,96 +1,97 @@ package com.senseidb.clue; im...
true
true
public static void main(String[] args) throws Exception { if (args.length < 1){ System.out.println("usage: <index location> <command> <command args>"); System.exit(1); } String idxLocation = args[0]; ClueApplication app = null; if (args.length > 1){ String cmd = ar...
public static void main(String[] args) throws Exception { if (args.length < 1){ System.out.println("usage: <index location> <command> <command args>"); System.exit(1); } String idxLocation = args[0]; ClueApplication app = null; if (args.length > 1){ String cmd = ar...
diff --git a/GraderGenerator.java b/GraderGenerator.java index eb5e54f..d214605 100644 --- a/GraderGenerator.java +++ b/GraderGenerator.java @@ -1,500 +1,500 @@ import java.io.File; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.IOException; import java.io.PrintWriter; impor...
true
true
private void buildScript(int threads, boolean checkGit, LinkedList<LinkedHashMap<String, String>> answerList) { File graderFile = new File("Grader.java"); if (graderFile.exists()) if (!graderFile.delete()) System.exit(1); PrintWriter gw = null; try { if (!graderFile.createNewFile()) System.exi...
private void buildScript(int threads, boolean checkGit, LinkedList<LinkedHashMap<String, String>> answerList) { File graderFile = new File("Grader.java"); if (graderFile.exists()) if (!graderFile.delete()) System.exit(1); PrintWriter gw = null; try { if (!graderFile.createNewFile()) System.exi...
diff --git a/org.caleydo.core/src/org/caleydo/core/io/gui/dataimport/DataImportStatusDialog.java b/org.caleydo.core/src/org/caleydo/core/io/gui/dataimport/DataImportStatusDialog.java index 4c7acca5d..c3d5af1b3 100644 --- a/org.caleydo.core/src/org/caleydo/core/io/gui/dataimport/DataImportStatusDialog.java +++ b/org.cal...
false
true
protected Control createDialogArea(Composite parent) { Composite parentComposite = new Composite(parent, SWT.NONE); parentComposite.setLayout(new GridLayout(2, false)); parentComposite.setLayoutData(new GridData(400, 200)); Label statusLabel = new Label(parentComposite, SWT.NONE | SWT.WRAP); GridData gd = ne...
protected Control createDialogArea(Composite parent) { Composite parentComposite = new Composite(parent, SWT.NONE); parentComposite.setLayout(new GridLayout(2, false)); parentComposite.setLayoutData(new GridData(400, 200)); Label statusLabel = new Label(parentComposite, SWT.NONE | SWT.WRAP); GridData gd = ne...
diff --git a/src/CalculatorD/GUIOptions.java b/src/CalculatorD/GUIOptions.java index 406b9a9..95fce6b 100755 --- a/src/CalculatorD/GUIOptions.java +++ b/src/CalculatorD/GUIOptions.java @@ -1,207 +1,207 @@ package CalculatorD; import javax.swing.JTextField; /** * Represents a set of options for displaying the C...
false
true
public GUIOptions(int displayFontSize, int buttonFontSize, int horizontalAlignment, boolean useDecimalButtonForDelete) { // Checking & setting displayFontSize if (displayFontSize < MIN_FONT_SIZE) { this.displayFontSize = MIN_FONT_SIZE; } ...
public GUIOptions(int displayFontSize, int buttonFontSize, int horizontalAlignment, boolean useDecimalButtonForDelete) { // Checking & setting displayFontSize if (displayFontSize < MIN_FONT_SIZE) { this.displayFontSize = MIN_FONT_SIZE; } ...
diff --git a/src/DVN-ingest/src/edu/harvard/iq/dvn/ingest/org/thedata/statdataio/metadata/DDIWriter.java b/src/DVN-ingest/src/edu/harvard/iq/dvn/ingest/org/thedata/statdataio/metadata/DDIWriter.java index a26493ca..777cc891 100644 --- a/src/DVN-ingest/src/edu/harvard/iq/dvn/ingest/org/thedata/statdataio/metadata/DDIWri...
true
true
private String generateDDISection4(){ // String[] variableName // String[] variableLabel // String varFormatSchema = (String)sdioMetadata.fileInformation.get("varFormat_schema"); String[] sumStatLabels8 = {"mean", "medn", "mode", "vald", "invd", "min", "max", "st...
private String generateDDISection4(){ // String[] variableName // String[] variableLabel // String varFormatSchema = (String)sdioMetadata.fileInformation.get("varFormat_schema"); String[] sumStatLabels8 = {"mean", "medn", "mode", "vald", "invd", "min", "max", "st...
diff --git a/src/org/mozilla/javascript/NativeCall.java b/src/org/mozilla/javascript/NativeCall.java index d0817072..b196ac3d 100644 --- a/src/org/mozilla/javascript/NativeCall.java +++ b/src/org/mozilla/javascript/NativeCall.java @@ -1,154 +1,154 @@ /* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offs...
true
true
NativeCall(NativeFunction function, Scriptable scope, Object[] args) { this.function = function; setParentScope(scope); // leave prototype null this.originalArgs = (args == null) ? ScriptRuntime.emptyArgs : args; // initialize values of arguments int paramAndVa...
NativeCall(NativeFunction function, Scriptable scope, Object[] args) { this.function = function; setParentScope(scope); // leave prototype null this.originalArgs = (args == null) ? ScriptRuntime.emptyArgs : args; // initialize values of arguments int paramAndVa...
diff --git a/OntoUrlFetcher/src/application/UrlFetcher.java b/OntoUrlFetcher/src/application/UrlFetcher.java index 64253a3..bcf6a6c 100644 --- a/OntoUrlFetcher/src/application/UrlFetcher.java +++ b/OntoUrlFetcher/src/application/UrlFetcher.java @@ -1,101 +1,101 @@ package application; import java.io.BufferedWriter;...
false
true
public static void main(String[] args) { long sTime = System.currentTimeMillis(); System.out.println("OntoStarUrlFetcher started"); File stopFile = new File(Configuration.stopFile); File stoppedFile = new File(Configuration.stoppedFile); File runFile = new File(Configuration.runFile); UrlMySQLInterface ...
public static void main(String[] args) { long sTime = System.currentTimeMillis(); System.out.println("OntoStarUrlFetcher started"); File stopFile = new File(Configuration.stopFile); File stoppedFile = new File(Configuration.stoppedFile); File runFile = new File(Configuration.runFile); UrlMySQLInterface ...
diff --git a/vaadin-touchkit-agpl/src/main/java/com/vaadin/addon/touchkit/ui/VerticalComponentGroup.java b/vaadin-touchkit-agpl/src/main/java/com/vaadin/addon/touchkit/ui/VerticalComponentGroup.java index e27f323..a765972 100644 --- a/vaadin-touchkit-agpl/src/main/java/com/vaadin/addon/touchkit/ui/VerticalComponentGrou...
true
true
public void addComponent (Component component, int index) { if (components.contains(component)) { if (components.indexOf(component) != index) { components.remove(component); if (index < components.size()) { components.add(index, component); } else { components.ad...
public void addComponent (Component component, int index) { if (components.contains(component)) { if (components.indexOf(component) != index) { components.remove(component); if (index >= 0 && index < components.size()) { components.add(index, component); } else { ...
diff --git a/src/com/redhat/qe/auto/testng/TestNGUtils.java b/src/com/redhat/qe/auto/testng/TestNGUtils.java index 43d6b05..aede0b3 100644 --- a/src/com/redhat/qe/auto/testng/TestNGUtils.java +++ b/src/com/redhat/qe/auto/testng/TestNGUtils.java @@ -1,24 +1,20 @@ package com.redhat.qe.auto.testng; import java.util.L...
false
true
public static Object[][] convertListOfListsTo2dArray(List<List<Object>> list) { if (list.size() == 0) return new Object[0][0]; // avoid a null pointer exception //convert list to 2-d array Object[][] array = new Object[list.size()][ list.get(0).size()]; int i=0; for (List<Object> item: list){ int j=0; ...
public static Object[][] convertListOfListsTo2dArray(List<List<Object>> list) { if (list.size() == 0) return new Object[0][0]; // avoid a null pointer exception //convert list to 2-d array Object[][] array = new Object[list.size()][]; int i=0; for (List<Object> item: list){ array[i] = item.toArray(); ...
diff --git a/src/com/ichi2/libanki/Sched.java b/src/com/ichi2/libanki/Sched.java index a75b20a0..47cd4257 100644 --- a/src/com/ichi2/libanki/Sched.java +++ b/src/com/ichi2/libanki/Sched.java @@ -1,2691 +1,2691 @@ /**************************************************************************************** * Copyright (c...
false
true
public float[] progressToday(TreeSet<Object[]> counts, Card card, boolean eta) { try { int doneCurrent = 0; int[] leftCurrent = new int[]{0, 0, 0}; String[] cs = new String[]{"new", "lrn", "rev"}; long currentDid = 0; // refresh deck progresses with fresh counts if...
public float[] progressToday(TreeSet<Object[]> counts, Card card, boolean eta) { try { int doneCurrent = 0; int[] leftCurrent = new int[]{0, 0, 0}; String[] cs = new String[]{"new", "lrn", "rev"}; long currentDid = 0; // refresh deck progresses with fresh counts if...
diff --git a/src/com/android/contacts/list/DefaultContactListAdapter.java b/src/com/android/contacts/list/DefaultContactListAdapter.java index bb49027df..007af6ce9 100644 --- a/src/com/android/contacts/list/DefaultContactListAdapter.java +++ b/src/com/android/contacts/list/DefaultContactListAdapter.java @@ -1,255 +1,25...
false
true
private void configureSelection( CursorLoader loader, long directoryId, ContactListFilter filter) { if (filter == null) { return; } if (directoryId != Directory.DEFAULT) { return; } StringBuilder selection = new StringBuilder(); L...
private void configureSelection( CursorLoader loader, long directoryId, ContactListFilter filter) { if (filter == null) { return; } if (directoryId != Directory.DEFAULT) { return; } StringBuilder selection = new StringBuilder(); L...
diff --git a/src/sai_cas/servlet/CrossMatchServlet.java b/src/sai_cas/servlet/CrossMatchServlet.java index dffa79e..ca11135 100644 --- a/src/sai_cas/servlet/CrossMatchServlet.java +++ b/src/sai_cas/servlet/CrossMatchServlet.java @@ -1,287 +1,287 @@ package sai_cas.servlet; import java.io.IOException; import java...
true
true
public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, java.io.IOException { PrintWriter out = response.getWriter(); String cat = null, tab = null, radString = null, raColumn = null, decColumn = null, formatString = null; formats format; List<FileItem...
public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, java.io.IOException { PrintWriter out = response.getWriter(); String cat = null, tab = null, radString = null, raColumn = null, decColumn = null, formatString = null; formats format; List<FileItem...
diff --git a/drools-analytics/src/test/java/org/drools/analytics/ConsequenceTest.java b/drools-analytics/src/test/java/org/drools/analytics/ConsequenceTest.java index 29c4756380..2a77d06f64 100644 --- a/drools-analytics/src/test/java/org/drools/analytics/ConsequenceTest.java +++ b/drools-analytics/src/test/java/org/dro...
true
true
public void testMissingConsequence() throws Exception { StatelessSession session = getStatelessSession(this.getClass() .getResourceAsStream("Consequence.drl")); session.setAgendaFilter(new RuleNameMatchesAgendaFilter( "No action - possibly commented out")); AnalyticsDataFactory.getAnalyticsData(); Co...
public void testMissingConsequence() throws Exception { StatelessSession session = getStatelessSession(this.getClass() .getResourceAsStream("Consequence.drl")); session.setAgendaFilter(new RuleNameMatchesAgendaFilter( "No action - possibly commented out")); AnalyticsDataFactory.clearAnalyticsData(); ...
diff --git a/portal-core/src/test/java/org/devproof/portal/core/module/user/page/RegisterPageTest.java b/portal-core/src/test/java/org/devproof/portal/core/module/user/page/RegisterPageTest.java index ba157ee8..ce6097c3 100644 --- a/portal-core/src/test/java/org/devproof/portal/core/module/user/page/RegisterPageTest.ja...
true
true
public void testRegistration() { Page page = tester.startPage(RegisterPage.class); tester.assertRenderedPage(RegisterPage.class); PortalSession.get().getRights().add(new Right("captcha.disabled")); FormTester ft = tester.newFormTester("form"); ft.setValue("username", "peterpa...
public void testRegistration() { Page page = tester.startPage(RegisterPage.class); tester.assertRenderedPage(RegisterPage.class); PortalSession.get().getRights().add(new Right("captcha.disabled")); FormTester ft = tester.newFormTester("form"); ft.setValue("username", "peterpa...
diff --git a/src/org/python/modules/operator.java b/src/org/python/modules/operator.java index 7d9e3480..542b8f34 100644 --- a/src/org/python/modules/operator.java +++ b/src/org/python/modules/operator.java @@ -1,396 +1,396 @@ // Copyright (c) Corporation for National Research Initiatives package org.python.modules; ...
true
true
public static void classDictInit(PyObject dict) throws PyIgnoreMethodTag { dict.__setitem__("__add__", new OperatorFunctions("__add__", 0, 2)); dict.__setitem__("add", new OperatorFunctions("add", 0, 2)); dict.__setitem__("__concat__", new OperatorFunctions("__concat...
public static void classDictInit(PyObject dict) throws PyIgnoreMethodTag { dict.__setitem__("__add__", new OperatorFunctions("__add__", 0, 2)); dict.__setitem__("add", new OperatorFunctions("add", 0, 2)); dict.__setitem__("__concat__", new OperatorFunctions("__concat...
diff --git a/HelloWorld/src/test/java/TestHelloWorld.java b/HelloWorld/src/test/java/TestHelloWorld.java index 551db22..56dd509 100644 --- a/HelloWorld/src/test/java/TestHelloWorld.java +++ b/HelloWorld/src/test/java/TestHelloWorld.java @@ -1,15 +1,15 @@ import static org.junit.Assert.*; import org.junit.Test; ...
true
true
public void test() { assertTrue(false); }
public void test() { assertTrue(true); }
diff --git a/src/main/java/greed/Greed.java b/src/main/java/greed/Greed.java index f5f1de5..cf4b3bd 100644 --- a/src/main/java/greed/Greed.java +++ b/src/main/java/greed/Greed.java @@ -1,458 +1,462 @@ package greed; import greed.code.CodeByLine; import greed.code.ConfigurableCodeTransformer; import greed.code.Lan...
true
true
private void setProblem(Contest contest, Problem problem, Language language, boolean regen) { GreedConfig config = Utils.getGreedConfig(); LanguageConfig langConfig = config.getLanguage().get(Language.getName(language)); // Initialize code transformers HashMap<String, ConfigurableCo...
private void setProblem(Contest contest, Problem problem, Language language, boolean regen) { GreedConfig config = Utils.getGreedConfig(); LanguageConfig langConfig = config.getLanguage().get(Language.getName(language)); // Initialize code transformers HashMap<String, ConfigurableCo...
diff --git a/src/org/jwildfire/create/tina/variation/BubbleFunc.java b/src/org/jwildfire/create/tina/variation/BubbleFunc.java index 76bee047..5445ae08 100644 --- a/src/org/jwildfire/create/tina/variation/BubbleFunc.java +++ b/src/org/jwildfire/create/tina/variation/BubbleFunc.java @@ -1,36 +1,38 @@ /* JWildfire - ...
true
true
public void transform(TransformationContext pContext, XForm pXForm, XYZPoint pAffineTP, XYZPoint pVarTP, double pAmount) { double r = pAmount / ((pAffineTP.x * pAffineTP.x + pAffineTP.y * pAffineTP.y) / 4.0 + 1.0); pVarTP.x += r * pAffineTP.x; pVarTP.y += r * pAffineTP.y; }
public void transform(TransformationContext pContext, XForm pXForm, XYZPoint pAffineTP, XYZPoint pVarTP, double pAmount) { double r = ((pAffineTP.x * pAffineTP.x + pAffineTP.y * pAffineTP.y) / 4.0 + 1.0); double t = pAmount / r; pVarTP.x += t * pAffineTP.x; pVarTP.y += t * pAffineTP.y; pVarTP.z +=...
diff --git a/src/ch/rollis/emma/RequestHandler.java b/src/ch/rollis/emma/RequestHandler.java index 50b6462..c717843 100644 --- a/src/ch/rollis/emma/RequestHandler.java +++ b/src/ch/rollis/emma/RequestHandler.java @@ -1,189 +1,189 @@ package ch.rollis.emma; import java.io.IOException; import java.io.InputStream; i...
true
true
public void run() { logger.log(Level.INFO, Thread.currentThread().getName() + " started."); InetAddress client = comSocket.getInetAddress(); try { InputStream input = comSocket.getInputStream(); OutputStream output = comSocket.getOutputStream(); while (...
public void run() { logger.log(Level.INFO, Thread.currentThread().getName() + " started."); InetAddress client = comSocket.getInetAddress(); try { InputStream input = comSocket.getInputStream(); OutputStream output = comSocket.getOutputStream(); while (...
diff --git a/tpc/common/trace/dbTrace.java b/tpc/common/trace/dbTrace.java index de4d562..b2c1983 100644 --- a/tpc/common/trace/dbTrace.java +++ b/tpc/common/trace/dbTrace.java @@ -1,709 +1,709 @@ package Escada.tpc.common.trace; import com.renesys.raceway.DML.*; import Escada.interfaces.*; import Escada.xest.*...
true
true
public static Transaction closeTransactionTrace(String tid,String hid) { Transaction closeTransactionTrace = null; try { BagTransaction bagtrans = (BagTransaction) outPutBag.get(tid); closeTransactionTrace = bagtrans.trans; Iterator it = null; int i = 0, j = 0; long lastTable = -1; long[] masterWS = n...
public static Transaction closeTransactionTrace(String tid,String hid) { Transaction closeTransactionTrace = null; try { BagTransaction bagtrans = (BagTransaction) outPutBag.get(tid); closeTransactionTrace = bagtrans.trans; Iterator it = null; int i = 0, j = 0; long lastTable = -1; long[] masterWS = n...
diff --git a/project3/edu/berkeley/cs/cs162/Server/ClientLogic.java b/project3/edu/berkeley/cs/cs162/Server/ClientLogic.java index 7250061..83fa140 100644 --- a/project3/edu/berkeley/cs/cs162/Server/ClientLogic.java +++ b/project3/edu/berkeley/cs/cs162/Server/ClientLogic.java @@ -1,106 +1,109 @@ package edu.berkeley.c...
true
true
public Message handleMessage(Message message) { switch (message.getMsgType()) { case MessageProtocol.OP_TYPE_LISTGAMES: { return handleListGames(); } case MessageProtocol.OP_TYPE_JOIN: { return handleJoinGame(((ClientMessages.JoinMessage) m...
public Message handleMessage(Message message) { switch (message.getMsgType()) { case MessageProtocol.OP_TYPE_LISTGAMES: { return handleListGames(); } case MessageProtocol.OP_TYPE_JOIN: { return handleJoinGame(((ClientMessages.JoinMessage) m...
diff --git a/bpm/bonita-core/bonita-process-engine/src/main/java/org/bonitasoft/engine/api/impl/PlatformAPIImpl.java b/bpm/bonita-core/bonita-process-engine/src/main/java/org/bonitasoft/engine/api/impl/PlatformAPIImpl.java index 32a9f0a36c..402d53355f 100644 --- a/bpm/bonita-core/bonita-process-engine/src/main/java/org...
true
true
public void startNode() throws StartNodeException { final PlatformServiceAccessor platformAccessor; SessionAccessor sessionAccessor = null; try { platformAccessor = getPlatformAccessor(); sessionAccessor = ServiceAccessorFactory.getInstance().createSessionAccessor(); ...
public void startNode() throws StartNodeException { final PlatformServiceAccessor platformAccessor; SessionAccessor sessionAccessor = null; try { platformAccessor = getPlatformAccessor(); sessionAccessor = ServiceAccessorFactory.getInstance().createSessionAccessor(); ...
diff --git a/org.springsource.ide.eclipse.commons.frameworks.core/src/org/springsource/ide/eclipse/commons/frameworks/core/legacyconversion/LegacyProjectConverter.java b/org.springsource.ide.eclipse.commons.frameworks.core/src/org/springsource/ide/eclipse/commons/frameworks/core/legacyconversion/LegacyProjectConverter....
true
true
private void convertGrailsProject(IProject project, SubMonitor sub) throws Exception { // nature IProjectDescription description = project.getDescription(); String[] ids = description.getNatureIds(); List<String> newIds = new ArrayList<String>(ids.length); for (int i = 0; i <...
private void convertGrailsProject(IProject project, SubMonitor sub) throws Exception { // nature IProjectDescription description = project.getDescription(); String[] ids = description.getNatureIds(); List<String> newIds = new ArrayList<String>(ids.length); for (int i = 0; i <...
diff --git a/src/ee/ut/math/tvt/salessystem/ui/popups/PurchaseConfirmPopup.java b/src/ee/ut/math/tvt/salessystem/ui/popups/PurchaseConfirmPopup.java index 2e06d80..d8ac72e 100644 --- a/src/ee/ut/math/tvt/salessystem/ui/popups/PurchaseConfirmPopup.java +++ b/src/ee/ut/math/tvt/salessystem/ui/popups/PurchaseConfirmPopup....
false
true
public PurchaseConfirmPopup(final double total, SalesSystemModel mod, final PurchaseTab parent) { String title = "Add product"; this.model = mod; // Fill the change field if the payment field loses focus final JTextField payment = new JTextField(); final JTextField change = new JTextField(); payment.a...
public PurchaseConfirmPopup(final double total, SalesSystemModel mod, final PurchaseTab parent) { String title = "Add product"; this.model = mod; // Fill the change field if the payment field loses focus final JTextField payment = new JTextField(); final JTextField change = new JTextField(); payment.a...
diff --git a/cejug-classifieds-server/src/net/java/dev/cejug/classifieds/service/endpoint/impl/AdvertisementOperations.java b/cejug-classifieds-server/src/net/java/dev/cejug/classifieds/service/endpoint/impl/AdvertisementOperations.java index 22b67a5c..3e6702a6 100644 --- a/cejug-classifieds-server/src/net/java/dev/cej...
true
true
public Advertisement publishOperation(final Advertisement advertisement, final PublishingHeader header) { // TODO: to implement the real code. try { // TODO: re-think a factory to reuse adapters... Customer customer = new Customer(); customer.setLogin(header.getCustomerLogin()); customer.setDomainI...
public Advertisement publishOperation(final Advertisement advertisement, final PublishingHeader header) { // TODO: to implement the real code. try { // TODO: re-think a factory to reuse adapters... Customer customer = new Customer(); customer.setLogin(header.getCustomerLogin()); customer.setDomainI...
diff --git a/src/com/sohail/alam/mango_pi/smart/cache/SmartCacheHistoryImpl.java b/src/com/sohail/alam/mango_pi/smart/cache/SmartCacheHistoryImpl.java index cb133fb..414a9f5 100644 --- a/src/com/sohail/alam/mango_pi/smart/cache/SmartCacheHistoryImpl.java +++ b/src/com/sohail/alam/mango_pi/smart/cache/SmartCacheHistoryI...
true
true
public void run() { String directory = "/"; String fileName = "SmartCacheHistory_" + (new SimpleDateFormat("yyyy-MM-dd_HH.mm.ss")).format(new Date()) + ".txt"; if (filePath.contains("/")) { directory = filePath.substring(0, filePath.lastIndexOf("/") + 1); ...
public void run() { String directory = "/"; String fileName = "SmartCacheHistory_" + (new SimpleDateFormat("yyyy-MM-dd_HH.mm.ss")).format(new Date()) + ".txt"; if (filePath.contains("/")) { directory = filePath.substring(0, filePath.lastIndexOf("/") + 1); ...
diff --git a/src/replicatorg/app/ui/controlpanel/ExtruderPanel.java b/src/replicatorg/app/ui/controlpanel/ExtruderPanel.java index 115dae8c..f6f48fde 100644 --- a/src/replicatorg/app/ui/controlpanel/ExtruderPanel.java +++ b/src/replicatorg/app/ui/controlpanel/ExtruderPanel.java @@ -1,529 +1,535 @@ package replicatorg....
false
true
public ExtruderPanel(MachineController machine, ToolModel t) { this.machine = machine; this.toolModel = t; int textBoxWidth = 75; Dimension panelSize = new Dimension(420, 30); Driver driver = machine.getDriver(); // create our initial panel setLayout(new MigLayout()); // create our motor options ...
public ExtruderPanel(MachineController machine, ToolModel t) { this.machine = machine; this.toolModel = t; int textBoxWidth = 75; Dimension panelSize = new Dimension(420, 30); Driver driver = machine.getDriver(); // create our initial panel setLayout(new MigLayout()); // create our motor options ...
diff --git a/src/main/java/de/juplo/plugins/hibernate4/Hbm2DdlMojo.java b/src/main/java/de/juplo/plugins/hibernate4/Hbm2DdlMojo.java index f66f524..313c127 100644 --- a/src/main/java/de/juplo/plugins/hibernate4/Hbm2DdlMojo.java +++ b/src/main/java/de/juplo/plugins/hibernate4/Hbm2DdlMojo.java @@ -1,894 +1,896 @@ packag...
false
true
public void execute() throws MojoFailureException, MojoExecutionException { if (skip) { getLog().info("Exectuion of hibernate4-maven-plugin:export was skipped!"); project.getProperties().setProperty(EXPORT_SKIPPED_PROPERTY, "true"); return; } File dir = new File(ou...
public void execute() throws MojoFailureException, MojoExecutionException { if (skip) { getLog().info("Exectuion of hibernate4-maven-plugin:export was skipped!"); project.getProperties().setProperty(EXPORT_SKIPPED_PROPERTY, "true"); return; } File dir = new File(ou...
diff --git a/app/controllers/Feeds.java b/app/controllers/Feeds.java index bd83dd4..704bbae 100644 --- a/app/controllers/Feeds.java +++ b/app/controllers/Feeds.java @@ -1,101 +1,101 @@ package controllers; import com.sun.syndication.feed.synd.SyndContent; import com.sun.syndication.feed.synd.SyndContentImpl; impo...
true
true
public static void main(String lang) { if (lang == null) { return; } Locale locale = null; String[] s = lang.split("_"); switch (s.length) { case 0: break; case 1: locale = new Locale(s[0]); break; case 2: ...
public static void main(String lang) { if (lang == null) { return; } Locale locale = null; String[] s = lang.split("_"); switch (s.length) { case 0: break; case 1: locale = new Locale(s[0]); break; case 2: ...
diff --git a/src/to/joe/vanish/VanishCommand.java b/src/to/joe/vanish/VanishCommand.java index b67fafa..77ffbee 100644 --- a/src/to/joe/vanish/VanishCommand.java +++ b/src/to/joe/vanish/VanishCommand.java @@ -1,113 +1,113 @@ package to.joe.vanish; import org.bukkit.ChatColor; import org.bukkit.command.Command; im...
true
true
public boolean onCommand(CommandSender sender, Command command, String label, String[] args) { if ((sender instanceof Player)) { final Player player = (Player) sender; if ((args.length == 0)) { if (VanishPerms.canVanish((Player) sender)) { this.plu...
public boolean onCommand(CommandSender sender, Command command, String label, String[] args) { if ((sender instanceof Player)) { final Player player = (Player) sender; if ((args.length == 0)) { if (VanishPerms.canVanish((Player) sender)) { this.plu...
diff --git a/java/com/example/testapplication/ContactAdapter.java b/java/com/example/testapplication/ContactAdapter.java index 6feea67..7cb495f 100644 --- a/java/com/example/testapplication/ContactAdapter.java +++ b/java/com/example/testapplication/ContactAdapter.java @@ -1,56 +1,56 @@ package com.example.testapplicat...
true
true
public View getView(int position, View convertView, ViewGroup parent) { View view = null; if (convertView == null) { LayoutInflater inflater = _context.getLayoutInflater(); view = inflater.inflate(R.layout.contactlistitem, null); final ViewHolder viewHolder = new ...
public View getView(int position, View convertView, ViewGroup parent) { View view = convertView; if (convertView == null) { LayoutInflater inflater = _context.getLayoutInflater(); view = inflater.inflate(R.layout.contactlistitem, null); final ViewHolder viewHolder...
diff --git a/src/org/bouncycastle/crypto/engines/HC128Engine.java b/src/org/bouncycastle/crypto/engines/HC128Engine.java index 19ecefd7..bf9a1b0e 100644 --- a/src/org/bouncycastle/crypto/engines/HC128Engine.java +++ b/src/org/bouncycastle/crypto/engines/HC128Engine.java @@ -1,256 +1,256 @@ package org.bouncycastle.cry...
true
true
private void init() { if (key.length != 16) { throw new java.lang.IllegalArgumentException( "The key must be 128 bit long"); } cnt = 0; int[] w = new int[1280]; for (int i = 0; i < 16; i++) { w[i >> 2] |= (key[i] ...
private void init() { if (key.length != 16) { throw new java.lang.IllegalArgumentException( "The key must be 128 bits long"); } cnt = 0; int[] w = new int[1280]; for (int i = 0; i < 16; i++) { w[i >> 2] |= (key[i]...
diff --git a/src/TApp.java b/src/TApp.java index c35afb0..e6be3f7 100644 --- a/src/TApp.java +++ b/src/TApp.java @@ -1,34 +1,34 @@ import javax.swing.JFrame; import javax.swing.WindowConstants; /** Our entry point for the MBTA Application */ class TApp extends JFrame { /** Default constructor */ TApp() { - ...
false
true
TApp() { // Create a new map panel and add it to our content pane TMapPanel mapPanel = new TMapPanel(); getContentPane().add(mapPanel); // Set up our frame... // Stop the application when the window is closed setDefaultCloseOperation( WindowConstants.EXIT_ON_CLOSE ); // Ignore rep...
TApp() { // Create a new map panel and add it to our content pane TMapPanel mapPanel = new TMapPanel(); getContentPane().add(mapPanel); // Set up our frame... // Stop the application when the window is closed setDefaultCloseOperation( WindowConstants.EXIT_ON_CLOSE ); // Ignore repaint since we will ha...
diff --git a/src/com/android/calendar/alerts/SnoozeAlarmsService.java b/src/com/android/calendar/alerts/SnoozeAlarmsService.java index 2eac1a71..6ef983d5 100644 --- a/src/com/android/calendar/alerts/SnoozeAlarmsService.java +++ b/src/com/android/calendar/alerts/SnoozeAlarmsService.java @@ -1,88 +1,89 @@ /* * Copyrig...
true
true
public void onHandleIntent(Intent intent) { long eventId = intent.getLongExtra(AlertUtils.EVENT_ID_KEY, -1); long eventStart = intent.getLongExtra(AlertUtils.EVENT_START_KEY, -1); long eventEnd = intent.getLongExtra(AlertUtils.EVENT_END_KEY, -1); // The ID reserved for the expired ...
public void onHandleIntent(Intent intent) { long eventId = intent.getLongExtra(AlertUtils.EVENT_ID_KEY, -1); long eventStart = intent.getLongExtra(AlertUtils.EVENT_START_KEY, -1); long eventEnd = intent.getLongExtra(AlertUtils.EVENT_END_KEY, -1); // The ID reserved for the expired ...
diff --git a/lucene/src/test/org/apache/lucene/index/TestDeletionPolicy.java b/lucene/src/test/org/apache/lucene/index/TestDeletionPolicy.java index e6166355a..8e71ca8d1 100644 --- a/lucene/src/test/org/apache/lucene/index/TestDeletionPolicy.java +++ b/lucene/src/test/org/apache/lucene/index/TestDeletionPolicy.java @@ ...
false
true
public void testKeepLastNDeletionPolicyWithReader() throws IOException { final int N = 10; for(int pass=0;pass<2;pass++) { boolean useCompoundFile = (pass % 2) != 0; KeepLastNDeletionPolicy policy = new KeepLastNDeletionPolicy(N); Directory dir = newDirectory(); IndexWriterConfig c...
public void testKeepLastNDeletionPolicyWithReader() throws IOException { final int N = 10; for(int pass=0;pass<2;pass++) { boolean useCompoundFile = (pass % 2) != 0; KeepLastNDeletionPolicy policy = new KeepLastNDeletionPolicy(N); Directory dir = newDirectory(); IndexWriterConfig c...
diff --git a/src/cz/muni/stanse/cppparser/CppUnit.java b/src/cz/muni/stanse/cppparser/CppUnit.java index 6d13605..c10dc37 100644 --- a/src/cz/muni/stanse/cppparser/CppUnit.java +++ b/src/cz/muni/stanse/cppparser/CppUnit.java @@ -1,70 +1,70 @@ /* Distributed under GPLv2 */ package cz.muni.stanse.cppparser; import...
true
true
public void parse() throws ParserException { String command = Stanse.getInstance().getRootDirectory() + File.separator + "bin" + File.separator + "cpp2sir"; List<String> parserArgs = new ArrayList<String>(); parserArgs.add(command); parserArgs.add("-J"); parserArgs.addAll(args); ProcessBuilder builder = new...
public void parse() throws ParserException { String command = Stanse.getInstance().getRootDirectory() + File.separator + "bin" + File.separator + "cpp2sir"; List<String> parserArgs = new ArrayList<String>(); parserArgs.add(command); parserArgs.add("-J"); parserArgs.addAll(args); ProcessBuilder builder = new...
diff --git a/gdms/src/main/java/org/gdms/model/FeatureCollectionModelUtils.java b/gdms/src/main/java/org/gdms/model/FeatureCollectionModelUtils.java index 1527467f2..4b5ce2005 100644 --- a/gdms/src/main/java/org/gdms/model/FeatureCollectionModelUtils.java +++ b/gdms/src/main/java/org/gdms/model/FeatureCollectionModelUt...
true
true
static Value[] getValues(Feature feature) { FeatureSchema fs = feature.getSchema(); Value[] values = new Value[fs.getAttributeCount()]; for (int i = 0; i < feature.getAttributes().length; i++) { Object o = feature.getAttribute(i); if (o == null) { values[i] = ValueFactory.createNullValue(); } els...
static Value[] getValues(Feature feature) { FeatureSchema fs = feature.getSchema(); Value[] values = new Value[fs.getAttributeCount()]; for (int i = 0; i < feature.getAttributes().length; i++) { Object o = feature.getAttribute(i); if (o == null) { values[i] = ValueFactory.createNullValue(); } els...
diff --git a/src/b/tree/BTree.java b/src/b/tree/BTree.java index 0e95bc5..73934e3 100644 --- a/src/b/tree/BTree.java +++ b/src/b/tree/BTree.java @@ -1,335 +1,333 @@ package b.tree; import java.util.Arrays; import exception.NullFather; import exception.PageFull; public class BTree { /** The root of this t...
false
true
private void split(Page p, Registry r) { //Number of registries in a page + 1 */ int nregs = p.getOrder() * 2 + 1; //To store registries from p and the new one Registry[] regs = new Registry[nregs]; //The middle of regs int middle = (int) Math.floor((nregs)/2f); //The middle registry Registry mreg = n...
private void split(Page p, Registry r) { //Number of registries in a page + 1 */ int nregs = p.getOrder() * 2 + 1; //To store registries from p and the new one Registry[] regs = new Registry[nregs]; //The middle of regs int middle = (int) Math.floor((nregs)/2f); //The middle registry Registry mreg = n...
diff --git a/KalenderProsjekt/src/framePackage/AppointmentOverView.java b/KalenderProsjekt/src/framePackage/AppointmentOverView.java index 1fde168..4d15026 100644 --- a/KalenderProsjekt/src/framePackage/AppointmentOverView.java +++ b/KalenderProsjekt/src/framePackage/AppointmentOverView.java @@ -1,235 +1,241 @@ packag...
false
true
private void initialize() { check = new ImageIcon("res/icons/icon_check.png"); cross = new ImageIcon("res/icons/icon_cross.png"); question = new ImageIcon("res/icons/icon_question.png"); overViewPanel = new JPanel(new GridBagLayout()); overViewPanel.setPreferredSize(new Dimension(700, 450)); overViewPanel...
private void initialize() { check = new ImageIcon("res/icons/icon_check.png"); cross = new ImageIcon("res/icons/icon_cross.png"); question = new ImageIcon("res/icons/icon_question.png"); overViewPanel = new JPanel(new GridBagLayout()); overViewPanel.setPreferredSize(new Dimension(700, 450)); overViewPanel...
diff --git a/search-impl/impl/src/java/org/sakaiproject/search/component/dao/impl/SearchIndexBuilderWorkerDaoImpl.java b/search-impl/impl/src/java/org/sakaiproject/search/component/dao/impl/SearchIndexBuilderWorkerDaoImpl.java index 6bed39be..b4db5e19 100644 --- a/search-impl/impl/src/java/org/sakaiproject/search/compo...
false
true
public void processToDoListTransaction(final SearchIndexBuilderWorker worker) { long startTime = System.currentTimeMillis(); HibernateCallback callback = new HibernateCallback() { public Object doInHibernate(Session session) throws HibernateException, SQLException { int totalDocs = 0; try ...
public void processToDoListTransaction(final SearchIndexBuilderWorker worker) { long startTime = System.currentTimeMillis(); HibernateCallback callback = new HibernateCallback() { public Object doInHibernate(Session session) throws HibernateException, SQLException { int totalDocs = 0; try ...
diff --git a/eclipse_files/src/DeviceGraphicsDisplay/GantryGraphicsDisplay.java b/eclipse_files/src/DeviceGraphicsDisplay/GantryGraphicsDisplay.java index 49c19a1b..4354a1a0 100644 --- a/eclipse_files/src/DeviceGraphicsDisplay/GantryGraphicsDisplay.java +++ b/eclipse_files/src/DeviceGraphicsDisplay/GantryGraphicsDispla...
false
true
public void draw(JComponent c, Graphics2D g) { // If robot is at incorrect Y location, first move bot to inital X location if (currentLocation.getY() != destinationLocation.getY() && currentLocation.getX() != Constants.GANTRY_ROBOT_LOC.getX()) { if (currentLocation.getX() < Constants.GANTRY_ROBOT_LOC.getX()...
public void draw(JComponent c, Graphics2D g) { // If robot is at incorrect Y location, first move bot to inital X location if (currentLocation.getY() != destinationLocation.getY() && currentLocation.getX() != Constants.GANTRY_ROBOT_LOC.getX()) { if (currentLocation.getX() < Constants.GANTRY_ROBOT_LOC.getX()...
diff --git a/src/main/de/Lathanael/FC/Commands/Attaint.java b/src/main/de/Lathanael/FC/Commands/Attaint.java index 9159995..a0321c8 100644 --- a/src/main/de/Lathanael/FC/Commands/Attaint.java +++ b/src/main/de/Lathanael/FC/Commands/Attaint.java @@ -1,127 +1,130 @@ /*****************************************************...
false
true
public void execute(CommandSender sender, CommandArgs args) throws PlayerNotFound, ActionNotPermitedException { Player target; String name = ""; CommandArgs newArgs; if (FunCommands.players.containsKey(args.getString(0))) name = FunCommands.players.get(args.getString(0)).getName(); else name = args.get...
public void execute(CommandSender sender, CommandArgs args) throws PlayerNotFound, ActionNotPermitedException { Player target; String name = ""; CommandArgs newArgs; if (FunCommands.players.containsKey(args.getString(0))) name = FunCommands.players.get(args.getString(0)).getName(); else name = args.get...
diff --git a/staccatissimo-collections/src/main/java/net/sf/staccatocommons/collections/stream/internal/SingleStream.java b/staccatissimo-collections/src/main/java/net/sf/staccatocommons/collections/stream/internal/SingleStream.java index e388a579..407b3367 100644 --- a/staccatissimo-collections/src/main/java/net/sf/st...
true
true
public A get(int n) { if (n == 0) return element; throw new NoSuchElementException("At " + n); }
public A get(int n) { if (n == 0) return element; throw new IndexOutOfBoundsException("At " + n); }
diff --git a/modules/resin/src/com/caucho/server/resin/ResinArgs.java b/modules/resin/src/com/caucho/server/resin/ResinArgs.java index 21ce46091..2abb5a11f 100644 --- a/modules/resin/src/com/caucho/server/resin/ResinArgs.java +++ b/modules/resin/src/com/caucho/server/resin/ResinArgs.java @@ -1,652 +1,651 @@ /* * Cop...
false
true
private void parseCommandLine(String []argv) throws Exception { int len = argv.length; int i = 0; while (i < len) { // RandomUtil.addRandom(argv[i]); String arg = argv[i]; if (! arg.startsWith("--") || arg.startsWith("-")) arg = "-" + arg; if (i + 1 < ...
private void parseCommandLine(String []argv) throws Exception { int len = argv.length; int i = 0; while (i < len) { // RandomUtil.addRandom(argv[i]); String arg = argv[i]; if (arg.startsWith("-") && ! arg.startsWith("--")) arg = "-" + arg; if (i + 1 < ...
diff --git a/src/main/java/org/apache/maven/artifact/metadata/SnapshotArtifactMetadata.java b/src/main/java/org/apache/maven/artifact/metadata/SnapshotArtifactMetadata.java index 9124127..632d1fd 100644 --- a/src/main/java/org/apache/maven/artifact/metadata/SnapshotArtifactMetadata.java +++ b/src/main/java/org/apache/m...
true
true
public int compareTo( Object o ) { SnapshotArtifactMetadata metadata = (SnapshotArtifactMetadata) o; // TODO: probably shouldn't test timestamp - except that it may be used do differentiate for a build number of 0 // in the local repository. check, then remove from here and just compar...
public int compareTo( Object o ) { SnapshotArtifactMetadata metadata = (SnapshotArtifactMetadata) o; // TODO: probably shouldn't test timestamp - except that it may be used do differentiate for a build number of 0 // in the local repository. check, then remove from here and just compar...
diff --git a/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/launcher/JDK12DebugLauncher.java b/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/launcher/JDK12DebugLauncher.java index 436193869..c2cad65e0 100644 --- a/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/launcher/JDK1...
true
true
public VMRunnerResult run(VMRunnerConfiguration config) throws CoreException { verifyVMInstall(); File workingDir = getWorkingDir(config); int port= SocketUtil.findUnusedLocalPort("", 5000, 15000); //$NON-NLS-1$ if (port == -1) { throw new CoreException(createStatus(LauncherMessages.getString("jdkLauncher.n...
public VMRunnerResult run(VMRunnerConfiguration config) throws CoreException { verifyVMInstall(); File workingDir = getWorkingDir(config); int port= SocketUtil.findUnusedLocalPort("", 5000, 15000); //$NON-NLS-1$ if (port == -1) { throw new CoreException(createStatus(LauncherMessages.getString("jdkLauncher.n...
diff --git a/org.sonar.ide.eclipse.ui/src/org/sonar/ide/eclipse/ui/internal/jobs/RefreshAllViolationsJob.java b/org.sonar.ide.eclipse.ui/src/org/sonar/ide/eclipse/ui/internal/jobs/RefreshAllViolationsJob.java index 8e95186d..28e162e1 100644 --- a/org.sonar.ide.eclipse.ui/src/org/sonar/ide/eclipse/ui/internal/jobs/Refre...
false
true
public boolean visit(final IResource resource) throws CoreException { if (resource instanceof IProject) { IProject project = (IProject) resource; if (!SonarNature.hasSonarNature(project)) { return false; } SonarProject projectProperties = SonarProject.getInstance(project); i...
public boolean visit(final IResource resource) throws CoreException { if (resource instanceof IProject) { IProject project = (IProject) resource; if (!SonarNature.hasSonarNature(project)) { return false; } SonarProject projectProperties = SonarProject.getInstance(project); i...
diff --git a/studio-apacheds-schemaeditor/src/main/java/org/apache/directory/studio/apacheds/schemaeditor/view/dialogs/EditAliasesDialog.java b/studio-apacheds-schemaeditor/src/main/java/org/apache/directory/studio/apacheds/schemaeditor/view/dialogs/EditAliasesDialog.java index 5b7825cb3..b49dcd04e 100644 --- a/studio-...
true
true
private void initListeners() { aliasesTable.addKeyListener( new KeyAdapter() { public void keyPressed( KeyEvent e ) { if ( ( e.keyCode == SWT.DEL ) || ( e.keyCode == Action.findKeyCode( "BACKSPACE" ) ) ) { //$NON-NLS-1$ // NOTE: I could...
private void initListeners() { aliasesTable.addKeyListener( new KeyAdapter() { public void keyPressed( KeyEvent e ) { if ( ( e.keyCode == SWT.DEL ) || ( e.keyCode == Action.findKeyCode( "BACKSPACE" ) ) ) { //$NON-NLS-1$ // NOTE: I could...
diff --git a/src/main/java/net/pms/dlna/DLNAResource.java b/src/main/java/net/pms/dlna/DLNAResource.java index c4ab72ed1..170e0f87f 100644 --- a/src/main/java/net/pms/dlna/DLNAResource.java +++ b/src/main/java/net/pms/dlna/DLNAResource.java @@ -1,3283 +1,3286 @@ /* * PS3 Media Server, for streaming any medias to you...
true
true
public final String getDidlString(RendererConfiguration mediaRenderer) { boolean subsAreValid = false; StringBuilder sb = new StringBuilder(); if (!configuration.isDisableSubtitles() && StringUtils.isNotBlank(mediaRenderer.getSupportedSubtitles()) && getMedia() != null && getPlayer() == null) { OutputParams p...
public final String getDidlString(RendererConfiguration mediaRenderer) { boolean subsAreValid = false; StringBuilder sb = new StringBuilder(); if (!configuration.isDisableSubtitles() && StringUtils.isNotBlank(mediaRenderer.getSupportedSubtitles()) && getMedia() != null && getPlayer() == null) { OutputParams p...
diff --git a/src/main/java/org/iplantc/iptol/client/ApplicationLayout.java b/src/main/java/org/iplantc/iptol/client/ApplicationLayout.java index 206a27fd..e0cfd7aa 100644 --- a/src/main/java/org/iplantc/iptol/client/ApplicationLayout.java +++ b/src/main/java/org/iplantc/iptol/client/ApplicationLayout.java @@ -1,270 +1,...
true
true
public void replaceWestPanel(Component view) { if(west != null) { //make sure we are expanded before we try and remove layout.expand(LayoutRegion.WEST); remove(west); } west = view; if(west == null) { layout.hide(LayoutRegion.WEST); } else { ...
public void replaceWestPanel(Component view) { if(west != null) { //make sure we are expanded before we try and remove layout.expand(LayoutRegion.WEST); remove(west); } west = view; if(west == null) { layout.hide(LayoutRegion.WEST); } else { ...
diff --git a/tregmine/src/info/tregmine/portals/Portals.java b/tregmine/src/info/tregmine/portals/Portals.java index ceccac5..3c71b8a 100644 --- a/tregmine/src/info/tregmine/portals/Portals.java +++ b/tregmine/src/info/tregmine/portals/Portals.java @@ -1,53 +1,55 @@ package info.tregmine.portals; import info.tregmine...
true
true
private void portalButton(int button, Block block, TregminePlayer player, String world, Location loc) { // Location loc = new Location(player.getServer().getWorld(world), x,y,z, yaw, pitch); Inventory inventory = player.getInventory(); if(button == info.tregmine.api.math.Checksum.block(block)){ if (invent...
private void portalButton(int button, Block block, TregminePlayer player, String world, Location loc) { // Location loc = new Location(player.getServer().getWorld(world), x,y,z, yaw, pitch); Inventory inventory = player.getInventory(); if(button == info.tregmine.api.math.Checksum.block(block)){ for (int i...
diff --git a/src/main/java/org/osmsurround/ra/search/QuickSearchController.java b/src/main/java/org/osmsurround/ra/search/QuickSearchController.java index ec054c4..f754af0 100644 --- a/src/main/java/org/osmsurround/ra/search/QuickSearchController.java +++ b/src/main/java/org/osmsurround/ra/search/QuickSearchController....
false
true
public ModelAndView get(String query) { RedirectView view = null; try { long relationId = Long.parseLong(query); view = new RedirectView("analyzeRelation?relationId=" + relationId, true); } catch (NumberFormatException e) { view = new RedirectView("searchRelation?name=" + query, true); } view.setE...
public ModelAndView get(String query) { ModelAndView mav = new ModelAndView(); RedirectView view = null; try { Long.parseLong(query); view = new RedirectView("analyzeRelation", true); mav.addObject("relationId", query); } catch (NumberFormatException e) { view = new RedirectView("searchRelation",...
diff --git a/src/Client.java b/src/Client.java index d5fb5a0..933876f 100644 --- a/src/Client.java +++ b/src/Client.java @@ -1,466 +1,463 @@ import java.net.Socket; import java.util.Random; import java.lang.Math; import org.newdawn.slick.GameContainer; import org.newdawn.slick.Graphics; import org.newdawn.slick...
false
true
public void update(GameContainer gc, StateBasedGame sbg, int delta) throws SlickException { float past_x = players[id].getX(); float past_y = players[id].getY(); //limit delta if(delta>20) delta = 20; float seconds = (float)delta/1000; active = thread.active; id = thread.id; if (thread.drun...
public void update(GameContainer gc, StateBasedGame sbg, int delta) throws SlickException { float past_x = players[id].getX(); float past_y = players[id].getY(); //limit delta if(delta>20) delta = 20; float seconds = (float)delta/1000; active = thread.active; id = thread.id; if (thread.drun...
diff --git a/src/instructions/USI_MOVD.java b/src/instructions/USI_MOVD.java index 6293f06..f4e2821 100644 --- a/src/instructions/USI_MOVD.java +++ b/src/instructions/USI_MOVD.java @@ -1,103 +1,103 @@ package instructions; import static simulanator.Deformatter.breakDownOther; import simulanator.Deformatter.Locatio...
false
true
@Override public void execute(int instruction, Machine machine) { OpcodeBreakdownOther brkDwn = breakDownOther(instruction); int dest = brkDwn.destination; Location kind = brkDwn.destKind; //dest is a index register if(kind == Location.INDEXREGISTER){ int srcValue = brkDwn.readFromSource(machine); mach...
@Override public void execute(int instruction, Machine machine) { OpcodeBreakdownOther brkDwn = breakDownOther(instruction); int dest = brkDwn.destination; Location kind = brkDwn.destKind; //dest is a index register if(kind == Location.INDEXREGISTER){ int srcValue = brkDwn.readFromSource(machine); brkD...
diff --git a/ini/trakem2/display/Display.java b/ini/trakem2/display/Display.java index b347e69a..ee8c8c6a 100644 --- a/ini/trakem2/display/Display.java +++ b/ini/trakem2/display/Display.java @@ -1,3517 +1,3525 @@ /** TrakEM2 plugin for ImageJ(C). Copyright (C) 2005, 2006 Albert Cardona and Rodney Douglas. This ...
false
true
public void actionPerformed(final ActionEvent ae) { dispatcher.exec(new Runnable() { public void run() { String command = ae.getActionCommand(); if (command.startsWith("Job")) { if (Utils.checkYN("Really cancel job?")) { project.getLoader().quitJob(command); repairGUI(); } return; } else if (...
public void actionPerformed(final ActionEvent ae) { dispatcher.exec(new Runnable() { public void run() { String command = ae.getActionCommand(); if (command.startsWith("Job")) { if (Utils.checkYN("Really cancel job?")) { project.getLoader().quitJob(command); repairGUI(); } return; } else if (...
diff --git a/src/biz/bokhorst/xprivacy/PrivacyManager.java b/src/biz/bokhorst/xprivacy/PrivacyManager.java index 21282137..7b665fde 100644 --- a/src/biz/bokhorst/xprivacy/PrivacyManager.java +++ b/src/biz/bokhorst/xprivacy/PrivacyManager.java @@ -1,1422 +1,1424 @@ package biz.bokhorst.xprivacy; import java.io.File;...
false
true
public static Object getDefacedProp(int uid, String name) { // Serial number if (name.equals("SERIAL") || name.equals("%serialno")) { String value = getSetting(null, null, uid, cSettingSerial, cDeface, true); return (cValueRandom.equals(value) ? getRandomProp("SERIAL") : value); } // Host name if (nam...
public static Object getDefacedProp(int uid, String name) { // Serial number if (name.equals("SERIAL") || name.equals("%serialno")) { String value = getSetting(null, null, uid, cSettingSerial, cDeface, true); return (cValueRandom.equals(value) ? getRandomProp("SERIAL") : value); } // Host name if (nam...
diff --git a/src/org/fdroid/fdroid/UpdateService.java b/src/org/fdroid/fdroid/UpdateService.java index 9d39619..2775e35 100644 --- a/src/org/fdroid/fdroid/UpdateService.java +++ b/src/org/fdroid/fdroid/UpdateService.java @@ -1,297 +1,301 @@ /* * Copyright (C) 2010-12 Ciaran Gultnieks, ciaran@ciarang.com * * Thi...
false
true
protected void onHandleIntent(Intent intent) { // We might be doing a scheduled run, or we might have been launched by // the app in response to a user's request. If we get this receiver, // it's // the latter... ResultReceiver receiver = intent.getParcelableExtra("receiver"...
protected void onHandleIntent(Intent intent) { // We might be doing a scheduled run, or we might have been launched by // the app in response to a user's request. If we get this receiver, // it's // the latter... ResultReceiver receiver = intent.getParcelableExtra("receiver"...
diff --git a/src/instructions/UIG_Arithmetic.java b/src/instructions/UIG_Arithmetic.java index d1e9100..60be9cf 100644 --- a/src/instructions/UIG_Arithmetic.java +++ b/src/instructions/UIG_Arithmetic.java @@ -1,131 +1,131 @@ package instructions; import instructions.UIG_IO.OperandType; import assemblernator.IOFormat...
false
true
public final boolean check(ErrorHandler hErr) { boolean isValid = true; //any size under two is invalid if(this.operands.size() < 2){ isValid = false; //checks all combinations for two operands if a combo is not found operands are invalid }else if (this.operands.size() == 2){ //checks combos associated with ...
public final boolean check(ErrorHandler hErr) { boolean isValid = true; //any size under two is invalid if(this.operands.size() < 2){ isValid = false; //checks all combinations for two operands if a combo is not found operands are invalid }else if (this.operands.size() == 2){ //checks combos associated with ...
diff --git a/src/com/android/gallery3d/filtershow/PanelController.java b/src/com/android/gallery3d/filtershow/PanelController.java index a852632dc..3a24d00aa 100644 --- a/src/com/android/gallery3d/filtershow/PanelController.java +++ b/src/com/android/gallery3d/filtershow/PanelController.java @@ -1,582 +1,583 @@ /* *...
true
true
public void showComponent(View view) { boolean doPanelTransition = true; if (view instanceof FilterIconButton) { ImageFilter f = ((FilterIconButton) view).getImageFilter(); doPanelTransition = f.showUtilityPanel(); } if (mUtilityPanel != null && !mUtilityPan...
public void showComponent(View view) { boolean doPanelTransition = true; if (view instanceof FilterIconButton) { ImageFilter f = ((FilterIconButton) view).getImageFilter(); doPanelTransition = f.showUtilityPanel(); } if (mUtilityPanel != null && !mUtilityPan...
diff --git a/jaxrs/client-negotiation/src/main/java/org/javaee7/jaxrs/client/negotiation/MyResource.java b/jaxrs/client-negotiation/src/main/java/org/javaee7/jaxrs/client/negotiation/MyResource.java index 67d7281d..7b59f654 100644 --- a/jaxrs/client-negotiation/src/main/java/org/javaee7/jaxrs/client/negotiation/MyResou...
true
true
public Person[] getList() { Person[] list = new Person[3]; list[0] = new Person("Penny", 1); list[1] = new Person("Howard", 2); list[2] = new Person("Sheldon", 3); return list; }
public Person[] getList() { Person[] list = new Person[3]; list[0] = new Person("Penny", 1); list[1] = new Person("Leonard", 2); list[2] = new Person("Sheldon", 3); return list; }
diff --git a/org.eclipse.riena.core/src/org/eclipse/riena/core/extension/InterfaceBeanHandler.java b/org.eclipse.riena.core/src/org/eclipse/riena/core/extension/InterfaceBeanHandler.java index 2956cee8b..4c1a7334a 100644 --- a/org.eclipse.riena.core/src/org/eclipse/riena/core/extension/InterfaceBeanHandler.java +++ b/o...
false
true
private Result invoke(final Method method, final Object[] args, final MethodKind methodKind) throws Throwable { if (method.getParameterTypes().length == 0) { if (method.getName().equals("toString")) { //$NON-NLS-1$ return Result.cache(proxiedToString()); } else if (method.getName().equals("hashCode")) { //...
private Result invoke(final Method method, final Object[] args, final MethodKind methodKind) throws Throwable { if (method.getParameterTypes().length == 0) { if (method.getName().equals("toString")) { //$NON-NLS-1$ return Result.cache(proxiedToString()); } else if (method.getName().equals("hashCode")) { //...
diff --git a/tool/src/java/org/sakaiproject/evaluation/tool/producers/ControlEvaluationsProducer.java b/tool/src/java/org/sakaiproject/evaluation/tool/producers/ControlEvaluationsProducer.java index 7c46f085..048decdc 100644 --- a/tool/src/java/org/sakaiproject/evaluation/tool/producers/ControlEvaluationsProducer.java ...
false
true
public void fillComponents(UIContainer tofill, ViewParameters viewparams, ComponentChecker checker) { // local variables used in the render logic String currentUserId = externalLogic.getCurrentUserId(); boolean userAdmin = externalLogic.isUserAdmin(currentUserId); boolean createTemplate = templatesLogic.canCr...
public void fillComponents(UIContainer tofill, ViewParameters viewparams, ComponentChecker checker) { // local variables used in the render logic String currentUserId = externalLogic.getCurrentUserId(); boolean userAdmin = externalLogic.isUserAdmin(currentUserId); boolean createTemplate = templatesLogic.canCr...
diff --git a/enabler/test/de/schildbach/pte/live/SeptaProviderLiveTest.java b/enabler/test/de/schildbach/pte/live/SeptaProviderLiveTest.java index c1b38cd4..3f007bc9 100644 --- a/enabler/test/de/schildbach/pte/live/SeptaProviderLiveTest.java +++ b/enabler/test/de/schildbach/pte/live/SeptaProviderLiveTest.java @@ -1,97 ...
true
true
public void shortConnection() throws Exception { final QueryConnectionsResult result = queryConnections(new Location(LocationType.STATION, 2090227, null, "Main Street"), null, new Location( LocationType.STATION, 1015755, null, "Harbison Av + Unruh Av"), new Date(), true, ALL_PRODUCTS, WalkSpeed.NORMAL, Acce...
public void shortConnection() throws Exception { final QueryConnectionsResult result = queryConnections(new Location(LocationType.STATION, 1021532, null, "30th St Station"), null, new Location(LocationType.STATION, 1001392, null, "15th St Station"), new Date(), true, ALL_PRODUCTS, WalkSpeed.NORMAL, Accessib...
diff --git a/jetty/src/main/java/org/mortbay/jetty/servlet/DefaultServlet.java b/jetty/src/main/java/org/mortbay/jetty/servlet/DefaultServlet.java index 54cb220b7..a398e3779 100644 --- a/jetty/src/main/java/org/mortbay/jetty/servlet/DefaultServlet.java +++ b/jetty/src/main/java/org/mortbay/jetty/servlet/DefaultServlet....
true
true
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { String servletPath=null; String pathInfo=null; Enumeration reqRanges = null; Boolean included =(Boolean)request.getAttribute(Dispatcher.__INCLUDE_JETTY); ...
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { String servletPath=null; String pathInfo=null; Enumeration reqRanges = null; Boolean included =(Boolean)request.getAttribute(Dispatcher.__INCLUDE_JETTY); ...
diff --git a/src/dirmi/io/QueuedBroker.java b/src/dirmi/io/QueuedBroker.java index 1e59508..5194b41 100644 --- a/src/dirmi/io/QueuedBroker.java +++ b/src/dirmi/io/QueuedBroker.java @@ -1,186 +1,191 @@ /* * Copyright 2007 Brian S O'Neill * * Licensed under the Apache License, Version 2.0 (the "License"); * y...
false
true
public void close() throws IOException { mClosed = true; // Drain any existing connections. Connection con; while ((con = mReadyToConnect.poll()) != null) { try { con.close(); } catch (IOException e) { // Don't care. ...
public void close() throws IOException { mClosed = true; // Drain any existing connections. if (mReadyToConnect != null) { Connection con; while ((con = mReadyToConnect.poll()) != null) { try { con.close(); } catch ...
diff --git a/Bibliothek/src/view/LoanTableModel.java b/Bibliothek/src/view/LoanTableModel.java index cd96f85..08b5dfb 100644 --- a/Bibliothek/src/view/LoanTableModel.java +++ b/Bibliothek/src/view/LoanTableModel.java @@ -1,77 +1,77 @@ package view; import java.util.List; import javax.swing.table.AbstractTableMod...
true
true
public Object getValueAt(int arg0, int arg1) { List<Loan> loans = lib.getLentLoans(); if(loans.size() < 1) return ""; Loan loan = loans.get(arg0); switch (arg1) { case 0: if(loan.isOverdue()){ return (String)"Overdue!"; } return (String)"Ok"; case 1: return loan.getCopy().getInventory...
public Object getValueAt(int arg0, int arg1) { List<Loan> loans = lib.getLentLoans(); if(loans.size() < 1) return ""; Loan loan = loans.get(arg0); switch (arg1) { case 0: if(loan.isOverdue()){ return (String)"Overdue!"; } return (String)"Ok"; case 1: return "" + loan.getCopy().getInve...
diff --git a/wordswithcrosses/src/com/adamrosenfield/wordswithcrosses/io/KingFeaturesPlaintextIO.java b/wordswithcrosses/src/com/adamrosenfield/wordswithcrosses/io/KingFeaturesPlaintextIO.java index ec70cf2..1a3b2e0 100644 --- a/wordswithcrosses/src/com/adamrosenfield/wordswithcrosses/io/KingFeaturesPlaintextIO.java ++...
true
true
public static boolean convertKFPuzzle(InputStream is, OutputStream os, String title, String author, String copyright, Calendar date) { Puzzle puz = new Puzzle(); Scanner scanner = new Scanner(new InputStreamReader(is, new MacRoman())); if (!scanner.hasNextLine()) { ...
public static boolean convertKFPuzzle(InputStream is, OutputStream os, String title, String author, String copyright, Calendar date) { Puzzle puz = new Puzzle(); Scanner scanner = new Scanner(new InputStreamReader(is, new MacRoman())); if (!scanner.hasNextLine()) { ...
diff --git a/src/main/java/org/scala_tools/maven/ScalaRunMojo.java b/src/main/java/org/scala_tools/maven/ScalaRunMojo.java index 7538e6a..f9a3099 100644 --- a/src/main/java/org/scala_tools/maven/ScalaRunMojo.java +++ b/src/main/java/org/scala_tools/maven/ScalaRunMojo.java @@ -1,105 +1,105 @@ /* * Copyright 2007 scal...
true
true
protected void doExecute() throws Exception { JavaCommand jcmd = null; if (StringUtils.isNotEmpty(mainClass)) { jcmd = new JavaCommand(this, mainClass, JavaCommand.toMultiPath(project.getTestClasspathElements()), jvmArgs, args); } else if ((launchers != null) && (launchers.length...
protected void doExecute() throws Exception { JavaCommand jcmd = null; if (StringUtils.isNotEmpty(mainClass)) { jcmd = new JavaCommand(this, mainClass, JavaCommand.toMultiPath(project.getTestClasspathElements()), jvmArgs, args); } else if ((launchers != null) && (launchers.length...
diff --git a/src/com/papagiannis/tuberun/ClaimActivity.java b/src/com/papagiannis/tuberun/ClaimActivity.java index b243575..4ddc194 100644 --- a/src/com/papagiannis/tuberun/ClaimActivity.java +++ b/src/com/papagiannis/tuberun/ClaimActivity.java @@ -1,456 +1,457 @@ package com.papagiannis.tuberun; import java.text.S...
false
true
private void setupViewHandlers() { int i = 0; for (i = 0; i < ticketSpinner.getAdapter().getCount(); i++) { if (ticketSpinner.getAdapter().getItem(i).equals(claim.ticket_type)) break; } ticketSpinner.setSelection(i); ticketSpinner.setOnItemSelectedListener(new SimpleOnItemSelectedListener() { @Over...
private void setupViewHandlers() { int i = 0; for (i = 0; i < ticketSpinner.getAdapter().getCount(); i++) { if (ticketSpinner.getAdapter().getItem(i).equals(claim.ticket_type)) break; } if (i == ticketSpinner.getAdapter().getCount()) i=0; //the default if the claim is new ticketSpinner.setSelection(i)...
diff --git a/E-Adventure/src/es/eucm/eadventure/editor/control/Controller.java b/E-Adventure/src/es/eucm/eadventure/editor/control/Controller.java index dc91d5ed..63376fe8 100644 --- a/E-Adventure/src/es/eucm/eadventure/editor/control/Controller.java +++ b/E-Adventure/src/es/eucm/eadventure/editor/control/Controller.ja...
true
true
public void startAutoSave( int minutes ) { stopAutoSave( ); if( ( ProjectConfigData.existsKey( "autosave" ) && ProjectConfigData.getProperty( "autosave" ).equals( "yes" ) ) || !ProjectConfigData.existsKey( "autosave" ) ) { /* autoSaveTimer = new Timer(); autoSave = new...
public void startAutoSave( int minutes ) { stopAutoSave( ); if( ( ProjectConfigData.existsKey( "autosave" ) && ProjectConfigData.getProperty( "autosave" ).equals( "yes" ) ) || !ProjectConfigData.existsKey( "autosave" ) ) { /* autoSaveTimer = new Timer(); autoSave = new...
diff --git a/web/src/main/java/org/eurekastreams/web/client/ui/pages/widget/ShareActivityWidget.java b/web/src/main/java/org/eurekastreams/web/client/ui/pages/widget/ShareActivityWidget.java index 32598581b..d6f97afa0 100644 --- a/web/src/main/java/org/eurekastreams/web/client/ui/pages/widget/ShareActivityWidget.java +...
true
true
public ShareActivityWidget(final Long activityId) { final SimplePanel main = new SimplePanel(); initWidget(main); EventBus.getInstance().addObserver(GotActivityResponseEvent.class, new Observer<GotActivityResponseEvent>() { public void update(final GotActivityRespons...
public ShareActivityWidget(final Long activityId) { final SimplePanel main = new SimplePanel(); main.addStyleName(StaticResourceBundle.INSTANCE.coreCss().shareMessageDialog()); initWidget(main); EventBus.getInstance().addObserver(GotActivityResponseEvent.class, new Observer<GotA...
diff --git a/src/net/sf/freecol/server/generator/SimpleMapGenerator.java b/src/net/sf/freecol/server/generator/SimpleMapGenerator.java index 0a9d7dd26..2a7567bfd 100644 --- a/src/net/sf/freecol/server/generator/SimpleMapGenerator.java +++ b/src/net/sf/freecol/server/generator/SimpleMapGenerator.java @@ -1,1086 +1,1090 ...
true
true
private void createIndianSettlements(final Map map, List<Player> players) { Specification spec = map.getGame().getSpecification(); float shares = 0f; List<IndianSettlement> settlements = new ArrayList<IndianSettlement>(); List<Player> indians = new ArrayList<Player>(); HashMa...
private void createIndianSettlements(final Map map, List<Player> players) { Specification spec = map.getGame().getSpecification(); float shares = 0f; List<IndianSettlement> settlements = new ArrayList<IndianSettlement>(); List<Player> indians = new ArrayList<Player>(); HashMa...
diff --git a/src/main/java/org/openarchives/resourcesync/ResourceSyncDescription.java b/src/main/java/org/openarchives/resourcesync/ResourceSyncDescription.java index eabfa21..5b8dd5a 100644 --- a/src/main/java/org/openarchives/resourcesync/ResourceSyncDescription.java +++ b/src/main/java/org/openarchives/resourcesync/...
true
true
public URL addCapabilityList(String loc, String describedby) { URL caplist = new URL(); caplist.setLoc(loc); caplist.addLn(ResourceSync.REL_DESCRIBED_BY, describedby); caplist.setCapability(ResourceSync.CAPABILITY_CAPABILITYLIST); this.addCapabilityList(caplist); ...
public URL addCapabilityList(String loc, String describedby) { URL caplist = new URL(); caplist.setLoc(loc); if (describedby != null) { caplist.addLn(ResourceSync.REL_DESCRIBED_BY, describedby); } caplist.setCapability(ResourceSync.CAPABILITY_CAPABILIT...
diff --git a/World.java b/World.java index 11dd0c7..82fd3d6 100644 --- a/World.java +++ b/World.java @@ -1,640 +1,640 @@ package textbased; import java.util.*; /** * Text based version of Karel the Robot * Current version has 1 predefined map * @author Heather,Noel,Sam,Amber,Josh,MacsR4Luzrs */ public...
true
true
public int doScript(int line_count, int scope, List<String> user_input) { // Runs a user defined list of commands. Used recursively. // line_count is how far into the file we are // scope is the level of nested commands // user_input is the string array containing the file ...
public int doScript(int line_count, int scope, List<String> user_input) { // Runs a user defined list of commands. Used recursively. // line_count is how far into the file we are // scope is the level of nested commands // user_input is the string array containing the file ...
diff --git a/stripes/src/net/sourceforge/stripes/tag/UseActionBeanTagExtraInfo.java b/stripes/src/net/sourceforge/stripes/tag/UseActionBeanTagExtraInfo.java index 88f4899b..9a6b644d 100644 --- a/stripes/src/net/sourceforge/stripes/tag/UseActionBeanTagExtraInfo.java +++ b/stripes/src/net/sourceforge/stripes/tag/UseActio...
true
true
@Override public VariableInfo[] getVariableInfo(final TagData tag) { // We can only provide the type of 'var' if beanclass was used because // if binding was used we need runtime information! Object beanclass = tag.getAttribute("beanclass"); if (beanclass != null) { Strin...
@Override public VariableInfo[] getVariableInfo(final TagData tag) { // We can only provide the type of 'var' if beanclass was used because // if binding was used we need runtime information! Object beanclass = tag.getAttribute("beanclass"); if (beanclass != null) { Strin...
diff --git a/src/net/sf/freecol/client/gui/panel/ReportForeignAffairPanel.java b/src/net/sf/freecol/client/gui/panel/ReportForeignAffairPanel.java index 6ec38b280..a36d9489d 100644 --- a/src/net/sf/freecol/client/gui/panel/ReportForeignAffairPanel.java +++ b/src/net/sf/freecol/client/gui/panel/ReportForeignAffairPanel....
true
true
public ReportForeignAffairPanel(Canvas parent) { super(parent, Messages.message("reportForeignAction.name")); // Display Panel reportPanel.removeAll(); reportPanel.setLayout(new GridLayout(0, 2)); Element report = getController().getForeignAffairsReport(); int numb...
public ReportForeignAffairPanel(Canvas parent) { super(parent, Messages.message("reportForeignAction.name")); // Display Panel reportPanel.removeAll(); reportPanel.setLayout(new GridLayout(0, 2)); Element report = getController().getForeignAffairsReport(); int numb...
diff --git a/src/com/android/camera/FocusManager.java b/src/com/android/camera/FocusManager.java index ca8d9405..2969da53 100644 --- a/src/com/android/camera/FocusManager.java +++ b/src/com/android/camera/FocusManager.java @@ -1,429 +1,428 @@ /* * Copyright (C) 2011 The Android Open Source Project * * Licensed u...
true
true
public boolean onTouch(MotionEvent e) { if (!mInitialized || mState == STATE_FOCUSING_SNAP_ON_FINISH) return false; // Let users be able to cancel previous touch focus. if ((mTapArea != null) && (e.getAction() == MotionEvent.ACTION_DOWN) && (mState == STATE_FOCUSING || mStat...
public boolean onTouch(MotionEvent e) { if (!mInitialized || mState == STATE_FOCUSING_SNAP_ON_FINISH) return false; // Let users be able to cancel previous touch focus. if ((mTapArea != null) && (mState == STATE_FOCUSING || mState == STATE_SUCCESS || mState == STATE_FAIL...
diff --git a/src/main/java/org/uncertweb/ps/encoding/xml/OMEncoding.java b/src/main/java/org/uncertweb/ps/encoding/xml/OMEncoding.java index 8a5aa62..c1739d6 100644 --- a/src/main/java/org/uncertweb/ps/encoding/xml/OMEncoding.java +++ b/src/main/java/org/uncertweb/ps/encoding/xml/OMEncoding.java @@ -1,108 +1,110 @@ pa...
true
true
public Object parse(Element element, Class<?> classOf) throws ParseException { try { // FIXME: workaround for broken parser Iterator<?> fois = element.getDescendants(new Filter() { private static final long serialVersionUID = 1L; public boolean matches(Object obj) { if (obj instanceof Element) { ...
public Object parse(Element element, Class<?> classOf) throws ParseException { try { // FIXME: workaround for broken parser Iterator<?> fois = element.getDescendants(new Filter() { private static final long serialVersionUID = 1L; public boolean matches(Object obj) { if (obj instanceof Element) { ...
diff --git a/LabBook/source/LObjDictionaryView.java b/LabBook/source/LObjDictionaryView.java index acc02a9..6ea26db 100644 --- a/LabBook/source/LObjDictionaryView.java +++ b/LabBook/source/LObjDictionaryView.java @@ -1,811 +1,812 @@ package org.concord.LabBook; import waba.ui.*; import waba.fx.*; import waba.io.*...
false
true
public void functionOnSelected(String fName, int yieldID) { TreeNode curNode = treeControl.getSelected(); DictTreeNode parent = (DictTreeNode)treeControl.getSelectedParent(); if(fName.equals("Cut")){ if(curNode == null || curNode.toString().equals("..empty..")) return; clipboardNode = curNode; ...
public void functionOnSelected(String fName, int yieldID) { TreeNode curNode = treeControl.getSelected(); DictTreeNode parent = (DictTreeNode)treeControl.getSelectedParent(); if(fName.equals("Cut")){ if(curNode == null || curNode.toString().equals("..empty..")) return; clipboardNode = curNode; ...
diff --git a/common/com/github/soniex2/endermoney/trading/tileentity/TileEntityCreativeItemTrader.java b/common/com/github/soniex2/endermoney/trading/tileentity/TileEntityCreativeItemTrader.java index d9e6d95..bd66af8 100644 --- a/common/com/github/soniex2/endermoney/trading/tileentity/TileEntityCreativeItemTrader.java...
true
true
public boolean doTrade(IInventory fakeInv, int inputMinSlot, int inputMaxSlot, int outputMinSlot, int outputMaxSlot) throws TradeError { if (fakeInv == null) { throw new TradeError(1, "Invalid inventory", new NullPointerException()); } HashMap<ItemStackMapKey, Integer> tradeInputs = new HashMap<ItemStackMap...
public boolean doTrade(IInventory fakeInv, int inputMinSlot, int inputMaxSlot, int outputMinSlot, int outputMaxSlot) throws TradeError { if (fakeInv == null) { throw new TradeError(1, "Invalid inventory", new NullPointerException()); } HashMap<ItemStackMapKey, Integer> tradeInputs = new HashMap<ItemStackMap...
diff --git a/pixmind/src/com/pix/mind/levels/Level16.java b/pixmind/src/com/pix/mind/levels/Level16.java index e102f54..38e208c 100644 --- a/pixmind/src/com/pix/mind/levels/Level16.java +++ b/pixmind/src/com/pix/mind/levels/Level16.java @@ -1,161 +1,161 @@ package com.pix.mind.levels; import com.badlogic.gdx.graphi...
false
true
public void show() { super.show(); super.setNextLevel(game.getLevel17()); super.setActiveLevel(this); // platform Actors and Activator Actors List // Creating All Static Platforms float platW = 1f; float platH = 0.1f; float deltaX = 0; float deltaY = 0; // Active colors // Box2D pla...
public void show() { super.show(); super.setNextLevel(game.getLevel17()); super.setActiveLevel(this); // platform Actors and Activator Actors List // Creating All Static Platforms float platW = 1f; float platH = 0.1f; float deltaX = 0; float deltaY = 0; // Active colors // Box2D pla...
diff --git a/src/java/net/niconomicon/tile/source/app/sharing/server/jetty/JettyImageServerServlet.java b/src/java/net/niconomicon/tile/source/app/sharing/server/jetty/JettyImageServerServlet.java index 8443a53..2d79196 100644 --- a/src/java/net/niconomicon/tile/source/app/sharing/server/jetty/JettyImageServerServlet.j...
false
true
protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { String request = req.getRequestURI(); System.out.println("URI : " + request); if (request.equals("/" + Ref.sharing_jsonRef) || request.equals(Ref.URI_jsonRef)) { String k = "/" + Ref.sharing_jsonRef;...
protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { String request = req.getRequestURI(); System.out.println("URI : " + request); if (request.equals("/" + Ref.sharing_jsonRef) || request.equals(Ref.URI_jsonRef)) { String k = "/" + Ref.sharing_jsonRef;...
diff --git a/Servers/JavaServer/src/db/PreparedStatementWrapper.java b/Servers/JavaServer/src/db/PreparedStatementWrapper.java index cf5c8c5d..faea9409 100644 --- a/Servers/JavaServer/src/db/PreparedStatementWrapper.java +++ b/Servers/JavaServer/src/db/PreparedStatementWrapper.java @@ -1,635 +1,638 @@ package db; i...
true
true
private String toString(String sql) { String logStr = sql; int i = 1; while (logStr.indexOf('?') >= 0) { logStr = logStr.replaceFirst("\\?", "'" + bindParams.get(new Integer(i++)).toString() + "'"); } return logStr; //System.out.println("QUERY is "+ logStr); }
private String toString(String sql) { String logStr = sql; int i = 1; while (logStr.indexOf('?') >= 0) { Object obj = bindParams.get(new Integer(i++)); String value=""; if ( obj != null ) value = obj.toString(); logStr = logStr.replaceFir...
diff --git a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/AjLookupEnvironment.java b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/AjLookupEnvironment.java index 2ea7d2e3a..a0da4cd64 100644 --- a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/AjLookupEnv...
true
true
private boolean doDeclareAnnotations(DeclareAnnotation decA, SourceTypeBinding sourceType, boolean reportProblems) { ResolvedType rtx = factory.fromEclipse(sourceType); if (!decA.matches(rtx)) { return false; } if (!rtx.isExposedToWeaver()) { return false; } ContextToken tok = CompilationAndWeavingC...
private boolean doDeclareAnnotations(DeclareAnnotation decA, SourceTypeBinding sourceType, boolean reportProblems) { ResolvedType rtx = factory.fromEclipse(sourceType); if (!decA.matches(rtx)) { return false; } if (!rtx.isExposedToWeaver()) { return false; } ContextToken tok = CompilationAndWeavingC...
diff --git a/app/controllers/BaseService.java b/app/controllers/BaseService.java index 672dae2..ecfff20 100644 --- a/app/controllers/BaseService.java +++ b/app/controllers/BaseService.java @@ -1,29 +1,29 @@ package controllers; import play.Play; import play.mvc.Controller; import controllers.response.Ok; import ...
false
true
protected static void jsonOk(Object obj) { String result = serializer.serialize(new Ok(obj)); play.Logger.info("result: %s", result); renderJSON(serializer.serialize(obj)); }
protected static void jsonOk(Object obj) { String result = serializer.include("userCachos").serialize(obj); play.Logger.info("result: %s", result); renderJSON(serializer.include("userCachos").serialize(obj)); }
diff --git a/moho-remote/src/main/java/com/voxeo/moho/remote/impl/MohoRemoteImpl.java b/moho-remote/src/main/java/com/voxeo/moho/remote/impl/MohoRemoteImpl.java index 310aa780..5796a73e 100644 --- a/moho-remote/src/main/java/com/voxeo/moho/remote/impl/MohoRemoteImpl.java +++ b/moho-remote/src/main/java/com/voxeo/moho/r...
true
true
public void onPresence(Presence presence) { JID fromJID = new JID(presence.getFrom()); if (!presence.hasExtension()) { return; } if (presence.getExtension().getStanzaName().equalsIgnoreCase("offer")) { OfferEvent offerEvent = (OfferEvent) presence.getExtension().getObject(); ...
public void onPresence(Presence presence) { JID fromJID = new JID(presence.getFrom()); if (!presence.hasExtension()) { return; } if (presence.getExtension().getStanzaName().equalsIgnoreCase("offer")) { OfferEvent offerEvent = (OfferEvent) presence.getExtension().getObject(); ...
diff --git a/src/main/java/org/theider/plugin/templates/DeploymentSaxHandler.java b/src/main/java/org/theider/plugin/templates/DeploymentSaxHandler.java index 121737c..59f9fc9 100644 --- a/src/main/java/org/theider/plugin/templates/DeploymentSaxHandler.java +++ b/src/main/java/org/theider/plugin/templates/DeploymentSax...
true
true
public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException { switch(parserState) { case DEPLOYMENT: if(!qName.equals("deployment")) { throw new SAXException("expecting root node to be deployment"); ...
public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException { switch(parserState) { case DEPLOYMENT: if(!qName.equals("deployment")) { throw new SAXException("expecting root node to be deployment"); ...
diff --git a/web/src/sirius/web/services/ServiceCall.java b/web/src/sirius/web/services/ServiceCall.java index 1762bc3..97552a1 100644 --- a/web/src/sirius/web/services/ServiceCall.java +++ b/web/src/sirius/web/services/ServiceCall.java @@ -1,89 +1,89 @@ package sirius.web.services; import sirius.kernel.async.CallC...
true
true
public void handle(String errorCode, Throwable error) { HandledException he = Exceptions.handle(LOG, error); StructuredOutput out = createOutput(); out.beginResult("error"); out.property("success", false); out.property("message", he.getMessage()); Throwable cause = er...
public void handle(String errorCode, Throwable error) { HandledException he = Exceptions.handle(LOG, error); StructuredOutput out = createOutput(); out.beginResult("error"); out.property("success", false); out.property("message", he.getMessage()); Throwable cause = er...
diff --git a/src/be/ibridge/kettle/trans/step/fileinput/FileInputList.java b/src/be/ibridge/kettle/trans/step/fileinput/FileInputList.java index 73c39f29..e8654b82 100644 --- a/src/be/ibridge/kettle/trans/step/fileinput/FileInputList.java +++ b/src/be/ibridge/kettle/trans/step/fileinput/FileInputList.java @@ -1,410 +1,...
false
true
public static FileInputList createFileList(String[] fileName, String[] fileMask, String[] fileRequired, boolean[] includeSubdirs) { FileInputList fileInputList = new FileInputList(); // Replace possible environment variables... final String realfile[] = StringUtil.environmentSubstitute(...
public static FileInputList createFileList(String[] fileName, String[] fileMask, String[] fileRequired, boolean[] includeSubdirs) { FileInputList fileInputList = new FileInputList(); // Replace possible environment variables... final String realfile[] = StringUtil.environmentSubstitute(...
diff --git a/src/powercrystals/minefactoryreloaded/tile/machine/TileEntityLiquiCrafter.java b/src/powercrystals/minefactoryreloaded/tile/machine/TileEntityLiquiCrafter.java index df479557..cd41dc4c 100644 --- a/src/powercrystals/minefactoryreloaded/tile/machine/TileEntityLiquiCrafter.java +++ b/src/powercrystals/minefa...
true
true
private void checkResources() { List<ItemResourceTracker> requiredItems = new LinkedList<ItemResourceTracker>(); inv: for(int i = 0; i < 9; i++) { if(_inventory[i] != null) { if(LiquidContainerRegistry.isFilledContainer(_inventory[i])) { LiquidStack l = LiquidContainerRegistry.getLiquidForFi...
private void checkResources() { List<ItemResourceTracker> requiredItems = new LinkedList<ItemResourceTracker>(); inv: for(int i = 0; i < 9; i++) { if(_inventory[i] != null) { if(LiquidContainerRegistry.isFilledContainer(_inventory[i])) { LiquidStack l = LiquidContainerRegistry.getLiquidForFi...
diff --git a/pluginsource/org/enigma/EnigmaRunner.java b/pluginsource/org/enigma/EnigmaRunner.java index b52b15b9..c7bcca17 100644 --- a/pluginsource/org/enigma/EnigmaRunner.java +++ b/pluginsource/org/enigma/EnigmaRunner.java @@ -1,928 +1,928 @@ /* * Copyright (C) 2008-2011 IsmAvatar <IsmAvatar@gmail.com> * Copyr...
true
true
public void populateMenu() { runb = new JButton(); //$NON-NLS-1$ runb.addActionListener(this); runb.setToolTipText(Messages.getString("EnigmaRunner.MENU_RUN")); runb.setIcon(LGM.getIconForKey("EnigmaPlugin.EXECUTE")); LGM.tool.add(new JToolBar.Separator(), 4); LGM.tool.add(runb, 5); debugb = new JButto...
public void populateMenu() { runb = new JButton(); //$NON-NLS-1$ runb.addActionListener(this); runb.setToolTipText(Messages.getString("EnigmaRunner.MENU_RUN")); runb.setIcon(LGM.getIconForKey("EnigmaPlugin.EXECUTE")); LGM.tool.add(new JToolBar.Separator(), 4); LGM.tool.add(runb, 5); debugb = new JButto...
diff --git a/src/api/org/openmrs/util/OpenmrsUtil.java b/src/api/org/openmrs/util/OpenmrsUtil.java index 2412dc31..199f68af 100644 --- a/src/api/org/openmrs/util/OpenmrsUtil.java +++ b/src/api/org/openmrs/util/OpenmrsUtil.java @@ -1,2006 +1,2005 @@ /** * The contents of this file are subject to the OpenMRS Public Li...
true
true
public static PatientFilter toPatientFilter(PatientSearch search, CohortSearchHistory history, EvaluationContext evalContext) { if (search.isSavedSearchReference()) { PatientSearch ps = ((PatientSearchReportObject) Context.getReportObjectService().getReportObject( ...
public static PatientFilter toPatientFilter(PatientSearch search, CohortSearchHistory history, EvaluationContext evalContext) { if (search.isSavedSearchReference()) { PatientSearch ps = ((PatientSearchReportObject) Context.getReportObjectService().getReportObject( ...
diff --git a/Disasteroids/trunk/src/disasteroids/TutorialMode.java b/Disasteroids/trunk/src/disasteroids/TutorialMode.java index 77d7f00..1929dd1 100644 --- a/Disasteroids/trunk/src/disasteroids/TutorialMode.java +++ b/Disasteroids/trunk/src/disasteroids/TutorialMode.java @@ -1,222 +1,222 @@ /** * DISASTEROIDS * T...
false
true
public void act() { if ( Local.isStuffNull() ) return; ++counter; // Welcome! if ( stage == 0 && counter > 200 ) nextStage(); // You are the ship. if ( stage == 1 && counter > 100 ) nextStage(); // Use the arrow keys...
public void act() { if ( Local.isStuffNull() ) return; ++counter; // Welcome! if ( stage == 0 && counter > 200 ) nextStage(); // You are the ship. if ( stage == 1 && counter > 100 ) nextStage(); // Use the arrow keys...
diff --git a/src/heig/igl3/roc2/GUI/MouvementEditor.java b/src/heig/igl3/roc2/GUI/MouvementEditor.java index e31ea51..15c746e 100644 --- a/src/heig/igl3/roc2/GUI/MouvementEditor.java +++ b/src/heig/igl3/roc2/GUI/MouvementEditor.java @@ -1,329 +1,329 @@ package heig.igl3.roc2.GUI; import heig.igl3.roc2.Business.Budg...
true
true
public MouvementEditor(JFrame frame, boolean modal, Budget budget) { super(frame, modal); this.budget = budget; MaskFormatter df = null; try { df = new MaskFormatter("##.##.####"); } catch (java.text.ParseException e) { System.err.println(e); } ; df.setPlaceholderCharacter('_'); lblLibelle ...
public MouvementEditor(JFrame frame, boolean modal, Budget budget) { super(frame, modal); this.budget = budget; MaskFormatter df = null; try { df = new MaskFormatter("##.##.####"); } catch (java.text.ParseException e) { System.err.println(e); } ; df.setPlaceholderCharacter('_'); lblLibelle ...