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/examples/src/test/java/com/seitenbau/testing/dbunit/datasets/DefaultDataSet.java b/examples/src/test/java/com/seitenbau/testing/dbunit/datasets/DefaultDataSet.java index c53e53d..1cb2e23 100644 --- a/examples/src/test/java/com/seitenbau/testing/dbunit/datasets/DefaultDataSet.java +++ b/examples/src/test/ja...
false
true
protected void initDataSet() { RowGetters_Jobs softwareDeveloper = // table_Jobs.insertRow() // .setTitle("Software Developer") // .setDescription("Creating software"); RowGetters_Jobs softwareTester = // table_Jobs.insertRow() // .setTitle("Software Tester") // .set...
protected void initDataSet() { RowGetters_Jobs softwareDeveloper = // table_Jobs.insertRow() // .setTitle("Software Developer") // .setDescription("Creating software"); RowGetters_Jobs softwareTester = // table_Jobs.insertRow() // .setTitle("Software Tester") // .set...
diff --git a/servicemix-core/src/test/java/org/apache/servicemix/jbi/installation/AbstractManagementTest.java b/servicemix-core/src/test/java/org/apache/servicemix/jbi/installation/AbstractManagementTest.java index 3ad51b203..3ba44dedd 100644 --- a/servicemix-core/src/test/java/org/apache/servicemix/jbi/installation/Ab...
true
true
protected File createServiceAssemblyArchive(String saName, String[] suName, String[] compName) throws Exception { File jar = File.createTempFile("jbi", ".zip"); JarOutputStream jos = new JarOutputStream(new FileOutputStream(jar)); // Write jbi.xml jos.putNextEntry(new ZipEntry("META-...
protected File createServiceAssemblyArchive(String saName, String[] suName, String[] compName) throws Exception { File jar = File.createTempFile("jbi", ".zip"); JarOutputStream jos = new JarOutputStream(new FileOutputStream(jar)); // Write jbi.xml jos.putNextEntry(new ZipEntry("META-...
diff --git a/src/main/java/me/eccentric_nz/TARDIS/commands/tardis/TARDISJettisonCommand.java b/src/main/java/me/eccentric_nz/TARDIS/commands/tardis/TARDISJettisonCommand.java index b49ccc60a..401bac591 100644 --- a/src/main/java/me/eccentric_nz/TARDIS/commands/tardis/TARDISJettisonCommand.java +++ b/src/main/java/me/ec...
true
true
public boolean startJettison(Player player, String[] args) { if (player.hasPermission("tardis.room")) { if (args.length < 2) { player.sendMessage(plugin.pluginName + "Too few command arguments!"); return false; } String room = args[1].toUpp...
public boolean startJettison(Player player, String[] args) { if (player.hasPermission("tardis.room")) { if (args.length < 2) { player.sendMessage(plugin.pluginName + "Too few command arguments!"); return false; } String room = args[1].toUpp...
diff --git a/libraries/javalib/java/lang/Byte.java b/libraries/javalib/java/lang/Byte.java index acaeaa2a1..74c36e6d3 100644 --- a/libraries/javalib/java/lang/Byte.java +++ b/libraries/javalib/java/lang/Byte.java @@ -1,109 +1,109 @@ package java.lang; /* * Java core library component. * * Copyright (c) 1997...
true
true
public static Byte decode(String nm) throws NumberFormatException { byte val; if (nm.value[nm.offset] == '#') { val = parseByte(nm.substring(1), 16); } else if (nm.value[nm.offset] == '0') { if ( (nm.count > 1) && (nm.value[nm.offset+1] == 'x') ) val = parseByte( nm.substring(2), 16); else val = parseB...
public static Byte decode(String nm) throws NumberFormatException { byte val; if (nm.value[nm.offset] == '#') { val = parseByte(nm.substring(1), 16); } else if (nm.value[nm.offset] == '0') { if ( (nm.count > 1) && (nm.value[nm.offset+1] == 'x') ) val = parseByte( nm.substring(2), 16); else val = parseB...
diff --git a/src/eu/bryants/anthony/toylanguage/ast/type/TupleType.java b/src/eu/bryants/anthony/toylanguage/ast/type/TupleType.java index 9b9e667..634b125 100644 --- a/src/eu/bryants/anthony/toylanguage/ast/type/TupleType.java +++ b/src/eu/bryants/anthony/toylanguage/ast/type/TupleType.java @@ -1,152 +1,157 @@ packag...
false
true
public boolean canAssign(Type type) { if (type instanceof NullType && isNullable()) { // all nullable types can have null assigned to them return true; } if (!(type instanceof TupleType)) { return subTypes.length == 1 && subTypes[0].canAssign(type); } TupleType otherTup...
public boolean canAssign(Type type) { if (type instanceof NullType && isNullable()) { // all nullable types can have null assigned to them return true; } if (subTypes.length == 1 && subTypes[0].canAssign(type)) { // if we are a single element tuple, and that element can assign ...
diff --git a/Server/src/main/java/jk_5/nailed/coremod/transformers/CommandTransformer.java b/Server/src/main/java/jk_5/nailed/coremod/transformers/CommandTransformer.java index 7453e84..d098d87 100644 --- a/Server/src/main/java/jk_5/nailed/coremod/transformers/CommandTransformer.java +++ b/Server/src/main/java/jk_5/nai...
true
true
public byte[] transform(String name, String transformedName, byte[] bytes){ ClassNode cnode = ASMHelper.createClassNode(bytes); if(ClassHeirachyTransformer.classExtends(name, "net.minecraft.command.ICommand")){ String mod = "minecraft"; ModContainer registrar = Loader.instan...
public byte[] transform(String name, String transformedName, byte[] bytes){ ClassNode cnode = ASMHelper.createClassNode(bytes); if(ClassHeirachyTransformer.classExtends(name, "net.minecraft.command.ICommand")){ String mod = "minecraft"; ModContainer registrar = Loader.instan...
diff --git a/application/src/test/java/org/kohsuke/stapler/netbeans/plugin/ApplicationTest.java b/application/src/test/java/org/kohsuke/stapler/netbeans/plugin/ApplicationTest.java index cc56114..f7489ff 100644 --- a/application/src/test/java/org/kohsuke/stapler/netbeans/plugin/ApplicationTest.java +++ b/application/sr...
false
true
public static Test suite() { return NbModuleSuite.createConfiguration(ApplicationTest.class). gui(false). failOnMessage(Level.WARNING). // works at least in RELEASE71 failOnException(Level.INFO). suite(); // RELEASE71+, else use NbModuleSuite.c...
public static Test suite() { return new ApplicationTest("testApplication"); // XXX disable pending http://netbeans.org/bugzilla/show_bug.cgi?id=225522 /* return NbModuleSuite.createConfiguration(ApplicationTest.class). gui(false). failOnMessage(Level.WARNING)....
diff --git a/src/com/ianhanniballake/recipebook/ui/RecipeDetailInstructionFragment.java b/src/com/ianhanniballake/recipebook/ui/RecipeDetailInstructionFragment.java index 6f7303b..36d0d1f 100644 --- a/src/com/ianhanniballake/recipebook/ui/RecipeDetailInstructionFragment.java +++ b/src/com/ianhanniballake/recipebook/ui/...
false
true
public View getView(final int position, final View convertView, final ViewGroup parent) { final View view = super.getView(position, convertView, parent); if (!Intent.ACTION_VIEW.equals(getActivity().getIntent().getAction())) { final EditText editText = (EditText) view.findViewById(textViewResourceId); ...
public View getView(final int position, final View convertView, final ViewGroup parent) { // Need to ensure the correct position is set before super.getView sets the text if (convertView != null) convertView.setTag(position); final View view = super.getView(position, convertView, parent); if (!Inten...
diff --git a/com.ibm.wala.core.tests/src/com/ibm/wala/core/tests/ir/MultiNewArrayTest.java b/com.ibm.wala.core.tests/src/com/ibm/wala/core/tests/ir/MultiNewArrayTest.java index 622d2a3b4..81e63a665 100644 --- a/com.ibm.wala.core.tests/src/com/ibm/wala/core/tests/ir/MultiNewArrayTest.java +++ b/com.ibm.wala.core.tests/s...
true
true
public void testMultiNewArray1() throws IOException, ClassHierarchyException { AnalysisScope scope = null; scope = AnalysisScopeReader.read(TestConstants.WALA_TESTDATA, FileProvider.getFile("J2SEClassHierarchyExclusions.txt"), MY_CLASSLOADER); ClassHierarchy cha = ClassHierarchy.make(scope); IClass kl...
public void testMultiNewArray1() throws IOException, ClassHierarchyException { AnalysisScope scope = null; scope = AnalysisScopeReader.read(TestConstants.WALA_TESTDATA, FileProvider.getFile("J2SEClassHierarchyExclusions.txt"), MY_CLASSLOADER); ClassHierarchy cha = ClassHierarchy.make(scope); IClass kl...
diff --git a/src/main/java/com/redhat/ceylon/compiler/js/InvocationGenerator.java b/src/main/java/com/redhat/ceylon/compiler/js/InvocationGenerator.java index c8917d1b..e6ccf6ea 100644 --- a/src/main/java/com/redhat/ceylon/compiler/js/InvocationGenerator.java +++ b/src/main/java/com/redhat/ceylon/compiler/js/Invocation...
true
true
void generateInvocation(Tree.InvocationExpression that) { if (that.getNamedArgumentList()!=null) { Tree.NamedArgumentList argList = that.getNamedArgumentList(); if (gen.isInDynamicBlock() && that.getPrimary() instanceof Tree.MemberOrTypeExpression && ((Tree.Member...
void generateInvocation(Tree.InvocationExpression that) { if (that.getNamedArgumentList()!=null) { Tree.NamedArgumentList argList = that.getNamedArgumentList(); if (gen.isInDynamicBlock() && that.getPrimary() instanceof Tree.MemberOrTypeExpression && ((Tree.Member...
diff --git a/src/test/java/com/pardot/rhombus/functional/ObjectMapperClientFilteringITCase.java b/src/test/java/com/pardot/rhombus/functional/ObjectMapperClientFilteringITCase.java index 40e86a9..6292741 100644 --- a/src/test/java/com/pardot/rhombus/functional/ObjectMapperClientFilteringITCase.java +++ b/src/test/java/...
true
true
public void testClientFilter() throws Exception { logger.debug("Starting testObjectMapper"); //Build the connection manager ConnectionManager cm = getConnectionManager(); //Build our keyspace definition object CKeyspaceDefinition definition = JsonUtil.objectFromJsonResource(CKeyspaceDefinition.class, this....
public void testClientFilter() throws Exception { logger.debug("Starting testObjectMapper"); //Build the connection manager ConnectionManager cm = getConnectionManager(); //Build our keyspace definition object CKeyspaceDefinition definition = JsonUtil.objectFromJsonResource(CKeyspaceDefinition.class, this....
diff --git a/java/de/dfki/lt/mary/modules/CARTDurationModeller.java b/java/de/dfki/lt/mary/modules/CARTDurationModeller.java index 6c96fc67e..bfe969784 100644 --- a/java/de/dfki/lt/mary/modules/CARTDurationModeller.java +++ b/java/de/dfki/lt/mary/modules/CARTDurationModeller.java @@ -1,153 +1,172 @@ /** * Copyright ...
false
true
public MaryData process(MaryData d) throws Exception { List utterances = d.getUtterances(); Iterator it = utterances.iterator(); while (it.hasNext()) { Utterance utterance = (Utterance) it.next(); Voice maryVoice = FreeTTSVoices.getMaryVoice(utterance.getVoice...
public MaryData process(MaryData d) throws Exception { List utterances = d.getUtterances(); Iterator it = utterances.iterator(); while (it.hasNext()) { Utterance utterance = (Utterance) it.next(); Voice maryVoice = FreeTTSVoices.getMaryVoice(utterance.getVoice...
diff --git a/Harvester/branches/Development/src/main/java/org/vivoweb/harvester/update/ChangeNamespace.java b/Harvester/branches/Development/src/main/java/org/vivoweb/harvester/update/ChangeNamespace.java index e124d61b..71ebd518 100644 --- a/Harvester/branches/Development/src/main/java/org/vivoweb/harvester/update/Cha...
false
true
public static List<String> getMatchingURIs(Resource current, String namespace, List<Property> properties, JenaConnect vivo) { StringBuilder sbQuery = new StringBuilder(); ArrayList<String> filters = new ArrayList<String>(); int valueCount = 0; sbQuery.append("SELECT ?uri\nWHERE\n{"); log.debug("properties si...
public static List<String> getMatchingURIs(Resource current, String namespace, List<Property> properties, JenaConnect vivo) { StringBuilder sbQuery = new StringBuilder(); ArrayList<String> filters = new ArrayList<String>(); int valueCount = 0; sbQuery.append("SELECT ?uri\nWHERE\n{"); log.debug("properties si...
diff --git a/jython/org/python/modules/operator.java b/jython/org/python/modules/operator.java index 8b6a357e..f79407b5 100644 --- a/jython/org/python/modules/operator.java +++ b/jython/org/python/modules/operator.java @@ -1,176 +1,176 @@ // Copyright � Corporation for National Research Initiatives package org.python...
false
true
{ public void initModule(PyObject dict) { dict.__setitem__("__add__", new OperatorFunctions("__add__", 0, 2)); dict.__setitem__("add", new OperatorFunctions("add", 0, 2)); dict.__setitem__("__concat__", new OperatorFunctions("__concat__", 0, 2)); dict.__setit...
{ public void initModule(PyObject dict) { dict.__setitem__("__add__", new OperatorFunctions("__add__", 0, 2)); dict.__setitem__("add", new OperatorFunctions("add", 0, 2)); dict.__setitem__("__concat__", new OperatorFunctions("__concat__", 0, 2)); dict.__setit...
diff --git a/src/com/android/keychain/KeyChainService.java b/src/com/android/keychain/KeyChainService.java index 43f4e57..831bc0f 100644 --- a/src/com/android/keychain/KeyChainService.java +++ b/src/com/android/keychain/KeyChainService.java @@ -1,305 +1,305 @@ /* * Copyright (C) 2011 The Android Open Source Project ...
true
true
@Override public boolean reset() { // only Settings should be able to reset checkSystemCaller(); boolean ok = true; synchronized (mAccountLock) { // remote Accounts from AccountManager to revoke any // granted credential grants to ...
@Override public boolean reset() { // only Settings should be able to reset checkSystemCaller(); boolean ok = true; synchronized (mAccountLock) { // remove Accounts from AccountManager to revoke any // granted credential grants to ...
diff --git a/servers/media/test-suite/core/src/main/java/org/mobicents/media/server/testsuite/general/ann/AnnCall.java b/servers/media/test-suite/core/src/main/java/org/mobicents/media/server/testsuite/general/ann/AnnCall.java index 361d65dd3..7120ee141 100644 --- a/servers/media/test-suite/core/src/main/java/org/mobic...
true
true
public void processMgcpResponseEvent(JainMgcpResponseEvent mgcpResponse) { System.err.println("PROCESS RESPONSE ON STATE : "+this.localFlowState+"\n"+mgcpResponse); int code = mgcpResponse.getReturnCode().getValue(); super.testCase.removeCall(mgcpResponse)...
public void processMgcpResponseEvent(JainMgcpResponseEvent mgcpResponse) { System.err.println("PROCESS RESPONSE ON STATE : "+this.localFlowState+"\n"+mgcpResponse); int code = mgcpResponse.getReturnCode().getValue(); super.testCase.removeCall(mgcpResponse)...
diff --git a/fcrepo-server/src/main/java/org/fcrepo/server/rest/BaseRestResource.java b/fcrepo-server/src/main/java/org/fcrepo/server/rest/BaseRestResource.java index 61ad1ec3..42b92da0 100644 --- a/fcrepo-server/src/main/java/org/fcrepo/server/rest/BaseRestResource.java +++ b/fcrepo-server/src/main/java/org/fcrepo/ser...
true
true
protected Response buildResponse(MIMETypedStream result) throws Exception { if (result.MIMEType.equalsIgnoreCase("application/fedora-redirect")) { URI location = URI.create(IOUtils.toString(result.getStream())); return Response.temporaryRedirect(location).build(); } else { ...
protected Response buildResponse(MIMETypedStream result) throws Exception { if (result.MIMEType.equalsIgnoreCase("application/fedora-redirect")) { URI location = URI.create(IOUtils.toString(result.getStream())); return Response.temporaryRedirect(location).build(); } else { ...
diff --git a/src/frontend/org/voltdb/VoltTableRow.java b/src/frontend/org/voltdb/VoltTableRow.java index 8e6194c9a..fc43f3c85 100644 --- a/src/frontend/org/voltdb/VoltTableRow.java +++ b/src/frontend/org/voltdb/VoltTableRow.java @@ -1,697 +1,697 @@ /* This file is part of VoltDB. * Copyright (C) 2008-2010 VoltDB L.L...
true
true
void putJSONRep(int columnIndex, JSONStringer js) throws JSONException { long value; double dvalue; switch (getColumnType(columnIndex)) { case TINYINT: value = getLong(columnIndex); if (value == VoltType.NULL_TINYINT) js.value(null); else ...
void putJSONRep(int columnIndex, JSONStringer js) throws JSONException { long value; double dvalue; switch (getColumnType(columnIndex)) { case TINYINT: value = getLong(columnIndex); if (value == VoltType.NULL_TINYINT) js.value(null); else ...
diff --git a/src/com/android/phone/BluetoothHandsfree.java b/src/com/android/phone/BluetoothHandsfree.java old mode 100644 new mode 100755 index 4882772b..652426a7 --- a/src/com/android/phone/BluetoothHandsfree.java +++ b/src/com/android/phone/BluetoothHandsfree.java @@ -1,3032 +1,3030 @@ /* * Copyright (C) 2008 The...
true
true
private void initializeHandsfreeAtParser() { if (VDBG) log("Registering Handsfree AT commands"); AtParser parser = mHeadset.getAtParser(); final Phone phone = mCM.getDefaultPhone(); // Answer parser.register('A', new AtCommandHandler() { @Override pub...
private void initializeHandsfreeAtParser() { if (VDBG) log("Registering Handsfree AT commands"); AtParser parser = mHeadset.getAtParser(); final Phone phone = mCM.getDefaultPhone(); // Answer parser.register('A', new AtCommandHandler() { @Override pub...
diff --git a/bookkeeper-server/src/main/java/org/apache/bookkeeper/bookie/InterleavedLedgerStorage.java b/bookkeeper-server/src/main/java/org/apache/bookkeeper/bookie/InterleavedLedgerStorage.java index fd834c393..ea35e0851 100644 --- a/bookkeeper-server/src/main/java/org/apache/bookkeeper/bookie/InterleavedLedgerStora...
true
true
public synchronized void flush() throws IOException { if (!somethingWritten) { return; } somethingWritten = false; boolean flushFailed = false; try { ledgerCache.flushLedger(true); } catch (IOException ioe) { LOG.error("Exception ...
public void flush() throws IOException { if (!somethingWritten) { return; } somethingWritten = false; boolean flushFailed = false; try { ledgerCache.flushLedger(true); } catch (IOException ioe) { LOG.error("Exception flushing Ledg...
diff --git a/src/net/java/sip/communicator/impl/protocol/sip/ProtocolProviderServiceSipImpl.java b/src/net/java/sip/communicator/impl/protocol/sip/ProtocolProviderServiceSipImpl.java index 02d8d8a78..4acfc6867 100644 --- a/src/net/java/sip/communicator/impl/protocol/sip/ProtocolProviderServiceSipImpl.java +++ b/src/net...
true
true
protected void initialize(String sipAddress, AccountID accountID) throws OperationFailedException, IllegalArgumentException { synchronized (initializationLock) { String logDir = SipActivator.getConfigurationService().getScHomeD...
protected void initialize(String sipAddress, AccountID accountID) throws OperationFailedException, IllegalArgumentException { synchronized (initializationLock) { String logDir = SipActivator.getConfigurationService().getScHomeD...
diff --git a/src/test/java/org/dita/dost/util/URLUtilsTest.java b/src/test/java/org/dita/dost/util/URLUtilsTest.java index 6900ba30b..b2b4e536a 100644 --- a/src/test/java/org/dita/dost/util/URLUtilsTest.java +++ b/src/test/java/org/dita/dost/util/URLUtilsTest.java @@ -1,53 +1,53 @@ package org.dita.dost.util; impor...
true
true
public void testClean() { assertEquals("foo%20bar.dita", URLUtils.clean("foo bar.dita")); assertEquals("foo+bar.dita", URLUtils.clean("foo+bar.dita")); assertEquals("foo%20bar.dita", URLUtils.clean("foo%20bar.dita")); assertEquals("f%C3%B6%C3%A5.dita", URLUtils.clean("föå.di...
public void testClean() { assertEquals("foo%20bar.dita", URLUtils.clean("foo bar.dita")); assertEquals("foo+bar.dita", URLUtils.clean("foo+bar.dita")); assertEquals("foo%20bar.dita", URLUtils.clean("foo%20bar.dita")); assertEquals("f%C3%B6%C3%A5.dita", URLUtils.clean("f\u00f...
diff --git a/javafx.editor/src/org/netbeans/modules/javafx/editor/imports/ImportsModel.java b/javafx.editor/src/org/netbeans/modules/javafx/editor/imports/ImportsModel.java index 12c2cd65..0a42b6a6 100644 --- a/javafx.editor/src/org/netbeans/modules/javafx/editor/imports/ImportsModel.java +++ b/javafx.editor/src/org/ne...
false
true
public Set<Declared> getUnusedImports() { Set<Declared> unused = new HashSet<Declared>(); for(Declared declared : declaredImports) { if (declared.importName.endsWith(".*")) { int imprtLen = declared.importName.length() - 1; String target = declared.importN...
public Set<Declared> getUnusedImports() { Set<Declared> unused = new HashSet<Declared>(); for(Declared declared : declaredImports) { if (declared.importName.endsWith(".*")) { int imprtLen = declared.importName.length() - 2; String target = declared.importN...
diff --git a/src/main/java/org/spoutcraft/launcher/skin/MetroLoginFrame.java b/src/main/java/org/spoutcraft/launcher/skin/MetroLoginFrame.java index 3947f18..b58524e 100644 --- a/src/main/java/org/spoutcraft/launcher/skin/MetroLoginFrame.java +++ b/src/main/java/org/spoutcraft/launcher/skin/MetroLoginFrame.java @@ -1,6...
true
true
private void initComponents() { Font minecraft = getMinecraftFont(12); // Login Strip TransparentJLabel loginStrip = new TransparentJLabel(); // 379 is the center of the bottom loginStrip.setBounds(0, 379, FRAME_WIDTH, 108); loginStrip.setTransparency(0.95F); loginStrip.setHoverTransparency(0.95F); se...
private void initComponents() { Font minecraft = getMinecraftFont(12); // Login Strip TransparentJLabel loginStrip = new TransparentJLabel(); // 379 is the center of the bottom loginStrip.setBounds(0, 379, FRAME_WIDTH, 108); loginStrip.setTransparency(0.95F); loginStrip.setHoverTransparency(0.95F); se...
diff --git a/src/org/nolat/rsircbot/data/HiscoreData.java b/src/org/nolat/rsircbot/data/HiscoreData.java index d837712..e78090d 100644 --- a/src/org/nolat/rsircbot/data/HiscoreData.java +++ b/src/org/nolat/rsircbot/data/HiscoreData.java @@ -1,154 +1,155 @@ package org.nolat.rsircbot.data; import java.io.BufferedRea...
true
true
public HiscoreData(String username) throws IOException { this.username = username; username = username.replaceAll(" ", "_"); System.out.println("Fetching hiscore data for " + username); URL hiscoreUrl = new URL(baseUrl + username); URLConnection yc = hiscoreUrl.openConnectio...
public HiscoreData(String username) throws IOException { this.username = username; username = username.replaceAll(" ", "_"); System.out.println("Fetching hiscore data for " + username); URL hiscoreUrl = new URL(baseUrl + username); URLConnection yc = hiscoreUrl.openConnectio...
diff --git a/src/com/android/settings/TextToSpeechSettings.java b/src/com/android/settings/TextToSpeechSettings.java index 84b14a191..04287beb2 100644 --- a/src/com/android/settings/TextToSpeechSettings.java +++ b/src/com/android/settings/TextToSpeechSettings.java @@ -1,740 +1,756 @@ /* * Copyright (C) 2009 The Andr...
false
true
protected void onActivityResult(int requestCode, int resultCode, Intent data) { if (requestCode == VOICE_DATA_INTEGRITY_CHECK) { if (data == null){ // The CHECK_TTS_DATA activity for the plugin did not run properly; // disable the preview and install controls and ...
protected void onActivityResult(int requestCode, int resultCode, Intent data) { if (requestCode == VOICE_DATA_INTEGRITY_CHECK) { if (data == null){ // The CHECK_TTS_DATA activity for the plugin did not run properly; // disable the preview and install controls and ...
diff --git a/izpack-src/trunk/src/lib/com/izforge/izpack/panels/TargetPanel.java b/izpack-src/trunk/src/lib/com/izforge/izpack/panels/TargetPanel.java index c3e7ab94..d559f503 100644 --- a/izpack-src/trunk/src/lib/com/izforge/izpack/panels/TargetPanel.java +++ b/izpack-src/trunk/src/lib/com/izforge/izpack/panels/Target...
true
true
public void loadDefaultDir() { BufferedReader br = null; try { String os = System.getProperty("os.name"); InputStream in = null; if (os.regionMatches(true, 0, "windows", 0, 7)) in = parent.getResource("TargetPanel.dir.windows"); else if (os.regionMatches(true, 0, "macos...
public void loadDefaultDir() { BufferedReader br = null; try { String os = System.getProperty("os.name"); InputStream in = null; if (os.regionMatches(true, 0, "windows", 0, 7)) in = parent.getResource("TargetPanel.dir.windows"); else if (os.regionMatches(true, 0, "mac o...
diff --git a/src/main/java/water/fvec/NewChunk.java b/src/main/java/water/fvec/NewChunk.java index 77fe7f216..92decee38 100644 --- a/src/main/java/water/fvec/NewChunk.java +++ b/src/main/java/water/fvec/NewChunk.java @@ -1,434 +1,434 @@ package water.fvec; import java.util.Arrays; import java.util.GregorianCalenda...
true
true
Chunk compress() { // Check for basic mode info: all missing or all strings or mixed stuff byte mode = type(); if( mode==AppendableVec.NA ) // ALL NAs, nothing to do return new C0DChunk(Double.NaN,_len); for( int i=0; i<_len; i++ ) if( mode==AppendableVec.ENUM && !isEnum(i) || ...
Chunk compress() { // Check for basic mode info: all missing or all strings or mixed stuff byte mode = type(); if( mode==AppendableVec.NA ) // ALL NAs, nothing to do return new C0DChunk(Double.NaN,_len); for( int i=0; i<_len; i++ ) if( mode==AppendableVec.ENUM && !isEnum(i) || ...
diff --git a/src/hdfs/org/apache/hadoop/hdfs/server/namenode/NameNode.java b/src/hdfs/org/apache/hadoop/hdfs/server/namenode/NameNode.java index c3a6df1b7..75c2fd78e 100644 --- a/src/hdfs/org/apache/hadoop/hdfs/server/namenode/NameNode.java +++ b/src/hdfs/org/apache/hadoop/hdfs/server/namenode/NameNode.java @@ -1,1069 ...
false
true
private void startHttpServer(final Configuration conf) throws IOException { if(UserGroupInformation.isSecurityEnabled()) { String httpsUser = conf.get(DFSConfigKeys.DFS_NAMENODE_KRB_HTTPS_USER_NAME_KEY); if(httpsUser == null) { LOG.warn(DFSConfigKeys.DFS_NAMENODE_KRB_HTTPS_USER_NAME_KEY + ...
private void startHttpServer(final Configuration conf) throws IOException { if(UserGroupInformation.isSecurityEnabled()) { String httpsUser = conf.get(DFSConfigKeys.DFS_NAMENODE_KRB_HTTPS_USER_NAME_KEY); if(httpsUser == null) { LOG.warn(DFSConfigKeys.DFS_NAMENODE_KRB_HTTPS_USER_NAME_KEY + ...
diff --git a/component/src/main/java/com/celements/blog/plugin/NewsletterReceivers.java b/component/src/main/java/com/celements/blog/plugin/NewsletterReceivers.java index e5851bf..d31519a 100644 --- a/component/src/main/java/com/celements/blog/plugin/NewsletterReceivers.java +++ b/component/src/main/java/com/celements/...
true
true
public List<String[]> sendArticleByMail(XWikiContext context) throws XWikiException { XWikiRequest request = context.getRequest(); String articleName = request.get("sendarticle"); String from = request.get("from"); String replyTo = request.get("reply_to"); String subject = request.get("subject"); ...
public List<String[]> sendArticleByMail(XWikiContext context) throws XWikiException { XWikiRequest request = context.getRequest(); String articleName = request.get("sendarticle"); String from = request.get("from"); String replyTo = request.get("reply_to"); String subject = request.get("subject"); ...
diff --git a/src/main/java/ubertweakstor/lagfarmfinder/LagFarmFinder.java b/src/main/java/ubertweakstor/lagfarmfinder/LagFarmFinder.java index a0fb58a..e61028f 100644 --- a/src/main/java/ubertweakstor/lagfarmfinder/LagFarmFinder.java +++ b/src/main/java/ubertweakstor/lagfarmfinder/LagFarmFinder.java @@ -1,118 +1,121 @@...
false
true
public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args) { Player ply = (Player) sender; if (label.equalsIgnoreCase("mobcount")){ if (getServer().getPlayer(args[0])==null){ ply.sendMessage(ChatColor.RED+"ERROR: Player Not Online"); ...
public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args) { Player ply = (Player) sender; if (label.equalsIgnoreCase("mobcount")){ if (args.length!=2){ ply.sendMessage(ChatColor.RED+"ERROR: Invalid Syntax."); } if (ge...
diff --git a/controller/src/main/java/org/apache/ambari/controller/Cluster.java b/controller/src/main/java/org/apache/ambari/controller/Cluster.java index 151e98a51..5ecae0ae9 100644 --- a/controller/src/main/java/org/apache/ambari/controller/Cluster.java +++ b/controller/src/main/java/org/apache/ambari/controller/Clus...
false
true
void addClusterDefinition(ClusterDefinition c) throws Exception { this.latestRevision++; clusterDefinitionRevisionsList.put((long)this.latestRevision, c); definition = c; // find the plugins for the current definition of the cluster Stacks context = Stacks.getInstance(); Stack bp...
void addClusterDefinition(ClusterDefinition c) throws Exception { this.latestRevision++; clusterDefinitionRevisionsList.put((long)this.latestRevision, c); definition = c; // find the plugins for the current definition of the cluster Stacks context = Stacks.getInstance(); Stack bp...
diff --git a/illagraphics/src/illarion/graphics/common/LightTracer.java b/illagraphics/src/illarion/graphics/common/LightTracer.java index 56c61d5f..fdb06478 100644 --- a/illagraphics/src/illarion/graphics/common/LightTracer.java +++ b/illagraphics/src/illarion/graphics/common/LightTracer.java @@ -1,495 +1,495 @@ /* ...
false
true
public void run() { while (running) { if (doRestart) { mapSource.resetLights(); lastTinyIndex = -1; dirty = true; doRestart = false; } LightSource light = null; boolean tidyLight = false; ...
public void run() { while (running) { if (doRestart) { mapSource.resetLights(); lastTinyIndex = -1; dirty = true; doRestart = false; } LightSource light = null; boolean tidyLight = false; ...
diff --git a/sahi/src/com/redhat/qe/jon/sahi/tests/plugins/eap6/AS7PluginSahiTestScript.java b/sahi/src/com/redhat/qe/jon/sahi/tests/plugins/eap6/AS7PluginSahiTestScript.java index c173d596..333b3c77 100644 --- a/sahi/src/com/redhat/qe/jon/sahi/tests/plugins/eap6/AS7PluginSahiTestScript.java +++ b/sahi/src/com/redhat/q...
true
true
public void setup1() { try { System.getProperties().load(new FileInputStream(new File(System.getProperty("eap6plugin.configfile")))); } catch (Exception e) { try { System.getProperties().load(new FileInputStream(new File("config/eap6plugin.properties"))); ...
public void setup1() { try { System.getProperties().load(new FileInputStream(new File(System.getProperty("eap6plugin.configfile")))); } catch (Exception e) { try { System.getProperties().load(new FileInputStream(new File("config/eap6plugin.properties"))); ...
diff --git a/stripes/src/net/sourceforge/stripes/format/DefaultFormatterFactory.java b/stripes/src/net/sourceforge/stripes/format/DefaultFormatterFactory.java index 74394ee..6f552c0 100644 --- a/stripes/src/net/sourceforge/stripes/format/DefaultFormatterFactory.java +++ b/stripes/src/net/sourceforge/stripes/format/Defa...
true
true
public Formatter getFormatter(Class clazz, Locale locale, String formatType, String formatPattern) { Formatter formatter = null; // Figure out if we have a type we can format if (Date.class.isAssignableFrom(clazz)) { formatter = new DateFormatter(); formatter.setForm...
public Formatter getFormatter(Class clazz, Locale locale, String formatType, String formatPattern) { Formatter formatter = null; // Figure out if we have a type we can format if (Date.class.isAssignableFrom(clazz)) { formatter = new DateFormatter(); formatter.setForm...
diff --git a/WEB-INF/src/edu/wustl/catissuecore/bizlogic/StorageContainerBizLogic.java b/WEB-INF/src/edu/wustl/catissuecore/bizlogic/StorageContainerBizLogic.java index c8c5bcf91..2a4f851c7 100644 --- a/WEB-INF/src/edu/wustl/catissuecore/bizlogic/StorageContainerBizLogic.java +++ b/WEB-INF/src/edu/wustl/catissuecore/bi...
false
true
protected void update(DAO dao, Object obj, Object oldObj, SessionDataBean sessionDataBean) throws DAOException, UserNotAuthorizedException { StorageContainer container = (StorageContainer) obj; StorageContainer oldContainer = (StorageContainer) oldObj; Logger.out.debug("container.isParentChanged() : " + contain...
protected void update(DAO dao, Object obj, Object oldObj, SessionDataBean sessionDataBean) throws DAOException, UserNotAuthorizedException { StorageContainer container = (StorageContainer) obj; StorageContainer oldContainer = (StorageContainer) oldObj; Logger.out.debug("container.isParentChanged() : " + contain...
diff --git a/spiffyui/src/main/java/org/spiffyui/client/widgets/DatePickerTextBox.java b/spiffyui/src/main/java/org/spiffyui/client/widgets/DatePickerTextBox.java index 5757d0c4..a5a3b147 100644 --- a/spiffyui/src/main/java/org/spiffyui/client/widgets/DatePickerTextBox.java +++ b/spiffyui/src/main/java/org/spiffyui/cli...
true
true
public void onPreviewNativeEvent(NativePreviewEvent event) { /* * This is necessary for IE since an onchange event is not fired when a calendar date is selected. * And trying to add onSelect with JSNI would call the correct Java method, but it would not be able * to fireEvent ...
public void onPreviewNativeEvent(NativePreviewEvent event) { /* * This is necessary for IE since an onchange event is not fired when a calendar date is selected. * And trying to add onSelect with JSNI would call the correct Java method, but it would not be able * to fireEvent ...
diff --git a/src/com/android/settings/carbon/InterfaceSettings.java b/src/com/android/settings/carbon/InterfaceSettings.java index ab4f84c06..1a757ff1a 100644 --- a/src/com/android/settings/carbon/InterfaceSettings.java +++ b/src/com/android/settings/carbon/InterfaceSettings.java @@ -1,558 +1,559 @@ /* * Copyright (...
true
true
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); mContext = getActivity(); // Load the preferences from an XML resource addPreferencesFromResource(R.xml.interface_settings); PreferenceScreen prefSet = getPreferenceScreen(); Conten...
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); mContext = getActivity(); // Load the preferences from an XML resource addPreferencesFromResource(R.xml.interface_settings); PreferenceScreen prefSet = getPreferenceScreen(); Conten...
diff --git a/testsuite/nu/staldal/lsp/framework/TestFrameworkStuff.java b/testsuite/nu/staldal/lsp/framework/TestFrameworkStuff.java index e5307e8..001b5f4 100644 --- a/testsuite/nu/staldal/lsp/framework/TestFrameworkStuff.java +++ b/testsuite/nu/staldal/lsp/framework/TestFrameworkStuff.java @@ -1,42 +1,42 @@ package ...
false
true
public void testFixServiceName() throws Exception { assertEquals("foobar", dispatcherServlet.fixServiceName("foobar")); assertEquals("foobar", dispatcherServlet.fixServiceName("/foobar")); assertEquals("foobar", dispatcherServlet.fixServiceName("foobar.s")); assertEquals("foobar"...
public void testFixServiceName() throws Exception { assertEquals("foobar", dispatcherServlet.dispatchService(new HttpServletRequestMock("foobar"))); assertEquals("foobar", dispatcherServlet.dispatchService(new HttpServletRequestMock("/foobar"))); assertEquals("foobar", dispatcherServlet....
diff --git a/src/com/kelsonprime/oregontrail/gui/OregonTrail.java b/src/com/kelsonprime/oregontrail/gui/OregonTrail.java index 433596c..dd76a97 100644 --- a/src/com/kelsonprime/oregontrail/gui/OregonTrail.java +++ b/src/com/kelsonprime/oregontrail/gui/OregonTrail.java @@ -1,132 +1,132 @@ package com.kelsonprime.oregon...
true
true
public OregonTrail() { try { UIManager.setLookAndFeel(UIManager.getCrossPlatformLookAndFeelClassName()); } catch (UnsupportedLookAndFeelException e) { LOGGER.log(Level.WARNING, "Unsupported look and feel", e); } catch (Exception e) { LOGGER.log(Level.WARNING, "Look and feel issue", e); } this.mainMe...
public OregonTrail() { try { UIManager.setLookAndFeel(UIManager.getCrossPlatformLookAndFeelClassName()); } catch (UnsupportedLookAndFeelException e) { LOGGER.log(Level.WARNING, "Unsupported look and feel", e); } catch (Exception e) { LOGGER.log(Level.WARNING, "Look and feel issue", e); } this.mainMe...
diff --git a/src/test/java/org/scribe/examples/LiveExample.java b/src/test/java/org/scribe/examples/LiveExample.java index 3ddbcaa..ade5a6b 100644 --- a/src/test/java/org/scribe/examples/LiveExample.java +++ b/src/test/java/org/scribe/examples/LiveExample.java @@ -1,64 +1,64 @@ package org.scribe.examples; import j...
true
true
public static void main(String[] args) { // Replace these with your own api key and secret String apiKey = ""; String apiSecret = ""; OAuthService service = new ServiceBuilder() .provider(LiveApi.class) .apiKey(apiKey) ...
public static void main(String[] args) { // Replace these with your own api key and secret String apiKey = ""; String apiSecret = ""; OAuthService service = new ServiceBuilder() .provider(LiveApi.class) .apiKey(apiKey) ...
diff --git a/EdTempsECN/src/org/ecn/edtemps/managers/StatistiquesGestion.java b/EdTempsECN/src/org/ecn/edtemps/managers/StatistiquesGestion.java index 32d8d2b..6762134 100644 --- a/EdTempsECN/src/org/ecn/edtemps/managers/StatistiquesGestion.java +++ b/EdTempsECN/src/org/ecn/edtemps/managers/StatistiquesGestion.java @@ ...
false
true
public Statistiques getStatistiques(int idUtilisateur, Date dateDebut, Date dateFin, String matiere) throws DatabaseException { Statistiques res = new Statistiques(matiere); // On convertit l'intervalle datefin-datedebut en secondes String request = "SELECT extract('epoch' from SUM(evenement.eve_datefin - eve...
public Statistiques getStatistiques(int idUtilisateur, Date dateDebut, Date dateFin, String matiere) throws DatabaseException { Statistiques res = new Statistiques(matiere); // On convertit l'intervalle datefin-datedebut en secondes String request = "SELECT extract('epoch' from SUM(evenement.eve_datefin - eve...
diff --git a/svnkit/src/org/tmatesoft/svn/core/internal/wc/SVNExternal.java b/svnkit/src/org/tmatesoft/svn/core/internal/wc/SVNExternal.java index a3c69ea9b..2ef2c58d0 100644 --- a/svnkit/src/org/tmatesoft/svn/core/internal/wc/SVNExternal.java +++ b/svnkit/src/org/tmatesoft/svn/core/internal/wc/SVNExternal.java @@ -1,2...
false
true
public static SVNExternal[] parseExternals(String owner, String description) throws SVNException { List lines = new ArrayList(); for(StringTokenizer tokenizer = new StringTokenizer(description, "\r\n"); tokenizer.hasMoreTokens();) { lines.add(tokenizer.nextToken()); } Col...
public static SVNExternal[] parseExternals(String owner, String description) throws SVNException { List lines = new ArrayList(); for(StringTokenizer tokenizer = new StringTokenizer(description, "\r\n"); tokenizer.hasMoreTokens();) { lines.add(tokenizer.nextToken()); } Col...
diff --git a/refapp-plugins/sal-plugin/src/main/java/com/atlassian/refapp/sal/websudo/RefImplWebSudoManager.java b/refapp-plugins/sal-plugin/src/main/java/com/atlassian/refapp/sal/websudo/RefImplWebSudoManager.java index 8f95f43..13beeb6 100644 --- a/refapp-plugins/sal-plugin/src/main/java/com/atlassian/refapp/sal/webs...
false
true
public void enforceWebSudoProtection(HttpServletRequest request, HttpServletResponse response) { try { final String queryString = request.getQueryString(); final String requestURI = request.getServletPath(); response.sendRedirect(request.getContextPath() ...
public void enforceWebSudoProtection(HttpServletRequest request, HttpServletResponse response) { try { final String queryString = request.getQueryString(); final String requestURI = request.getServletPath(); final String pathInfo = request.getPathInfo(); ...
diff --git a/src/edu/mit/printAtMIT/view/PrinterListActivity.java b/src/edu/mit/printAtMIT/view/PrinterListActivity.java index 1a64688..b882b88 100644 --- a/src/edu/mit/printAtMIT/view/PrinterListActivity.java +++ b/src/edu/mit/printAtMIT/view/PrinterListActivity.java @@ -1,358 +1,363 @@ package edu.mit.printAtMIT.vie...
true
true
private void setListViewData(List<ParseObject> objects) { SharedPreferences listSettings = getPreferences(MODE_PRIVATE); String listType = listSettings.getString(PrintListMenuActivity.LIST_TYPE, PrintListMenuActivity.LIST_ALL); // resets map if not null if (objects != null) { c...
private void setListViewData(List<ParseObject> objects) { SharedPreferences listSettings = getPreferences(MODE_PRIVATE); String listType = listSettings.getString(PrintListMenuActivity.LIST_TYPE, PrintListMenuActivity.LIST_ALL); // resets map if not null if (objects != null) { c...
diff --git a/conan-biosd-processes/src/main/java/uk/ac/ebi/fgpt/conan/process/biosd/SampleTabToAgeTabLSFProcess.java b/conan-biosd-processes/src/main/java/uk/ac/ebi/fgpt/conan/process/biosd/SampleTabToAgeTabLSFProcess.java index 1d9bb2c..9289024 100644 --- a/conan-biosd-processes/src/main/java/uk/ac/ebi/fgpt/conan/proc...
true
true
protected String getCommand(Map<ConanParameter, String> parameters) throws IllegalArgumentException { getLog().info( "Executing " + getName() + " with the following parameters: " + parameters.toString()); // deal with parameters SampleTabAccessionParameter accession = new SampleTabAccessionParamete...
protected String getCommand(Map<ConanParameter, String> parameters) throws IllegalArgumentException { getLog().info( "Executing " + getName() + " with the following parameters: " + parameters.toString()); // deal with parameters SampleTabAccessionParameter accession = new SampleTabAccessionParamete...
diff --git a/src/main/java/net/risimo/nullannotationinspection/NullAnnotationsInspection.java b/src/main/java/net/risimo/nullannotationinspection/NullAnnotationsInspection.java index 7c90b18..3632a5e 100644 --- a/src/main/java/net/risimo/nullannotationinspection/NullAnnotationsInspection.java +++ b/src/main/java/net/ri...
false
true
public ProblemDescriptor[] checkMethod(@NotNull PsiMethod method, @NotNull InspectionManager manager, boolean isOnTheFly) { final List<ProblemDescriptor> problemDescriptors = new ArrayList<ProblemDescriptor>(); if (acceptMethod(method)) { List<MethodSignatureBackedByPsiMethod> superMetho...
public ProblemDescriptor[] checkMethod(@NotNull PsiMethod method, @NotNull InspectionManager manager, boolean isOnTheFly) { final List<ProblemDescriptor> problemDescriptors = new ArrayList<ProblemDescriptor>(); if (acceptMethod(method)) { List<MethodSignatureBackedByPsiMethod> superMetho...
diff --git a/database-impl/mongodb/src/main/java/com/findwise/hydra/mongodb/MongoDocumentIO.java b/database-impl/mongodb/src/main/java/com/findwise/hydra/mongodb/MongoDocumentIO.java index 9d088cb..b1914d3 100644 --- a/database-impl/mongodb/src/main/java/com/findwise/hydra/mongodb/MongoDocumentIO.java +++ b/database-im...
true
true
public boolean update(DatabaseDocument<MongoType> d) { MongoDocument md = (MongoDocument) d; MongoQuery mdq = new MongoQuery(); mdq.requireID(md.getID()); BasicDBObjectBuilder bob = new BasicDBObjectBuilder(); if(md.isActionTouched()) { bob.add(MongoDocument.ACTION_KEY, md.getAction().toString())...
public boolean update(DatabaseDocument<MongoType> d) { MongoDocument md = (MongoDocument) d; MongoQuery mdq = new MongoQuery(); mdq.requireID(md.getID()); BasicDBObjectBuilder bob = new BasicDBObjectBuilder(); if(md.isActionTouched()) { bob.add(MongoDocument.ACTION_KEY, md.getAction().toString())...
diff --git a/app/models/City.java b/app/models/City.java index d28703a..d93a4c2 100644 --- a/app/models/City.java +++ b/app/models/City.java @@ -1,203 +1,203 @@ package models; import au.com.bytecode.opencsv.CSVReader; import com.google.gson.Gson; import exceptions.BadCSVLineFormatException; import java.io...
true
true
public static List<City> search(String referentialCode, String search, Boolean postalCode) { if(referentialCode == null || referentialCode.length() == 0) { return new ArrayList<City>(); } String queryReferential = "referential:" + referentialCode; String cleanSearch = Jav...
public static List<City> search(String referentialCode, String search, Boolean postalCode) { if(referentialCode == null || referentialCode.length() == 0) { return new ArrayList<City>(); } String queryReferential = "code:" + referentialCode; String cleanSearch = JavaExtens...
diff --git a/src/main/java/com/scaleunlimited/cascading/scheme/local/SolrCollector.java b/src/main/java/com/scaleunlimited/cascading/scheme/local/SolrCollector.java index 7ff790b..2afba45 100644 --- a/src/main/java/com/scaleunlimited/cascading/scheme/local/SolrCollector.java +++ b/src/main/java/com/scaleunlimited/casca...
true
true
public SolrCollector(FlowProcess<Properties> flowProcess, Fields sinkFields, File solrCoreDir, int maxSegments, String dataDirPropertyName, String dataDir) throws IOException { _flowProcess = flowProcess; _sinkFields = sinkFields; _maxSegments = maxSegments; _dataDirPropertyName = da...
public SolrCollector(FlowProcess<Properties> flowProcess, Fields sinkFields, File solrCoreDir, int maxSegments, String dataDirPropertyName, String dataDir) throws IOException { _flowProcess = flowProcess; _sinkFields = sinkFields; _maxSegments = maxSegments; _dataDirPropertyName = da...
diff --git a/AndroidRally/src/se/chalmers/dryleafsoftware/androidrally/model/gameModel/GameModel.java b/AndroidRally/src/se/chalmers/dryleafsoftware/androidrally/model/gameModel/GameModel.java index 4c93b49..ddcefdb 100644 --- a/AndroidRally/src/se/chalmers/dryleafsoftware/androidrally/model/gameModel/GameModel.java ++...
true
true
public void activateBoardElements() { int maxTravelDistance = gameBoard.getMaxConveyorBeltDistance(); for (Robot robot : robots) { gameBoard.getTile(robot.getX(), robot.getY()).instantAction(robot); if(robot.isDead()){ allMoves.add(";F#" + robots.indexOf(robot) + ":" + robots.get(robot.getDirectio...
public void activateBoardElements() { int maxTravelDistance = gameBoard.getMaxConveyorBeltDistance(); for (Robot robot : robots) { gameBoard.getTile(robot.getX(), robot.getY()).instantAction(robot); if(robot.isDead()){ allMoves.add(";F#" + robots.indexOf(robot) + ":" + robots.get(robot.getDirectio...
diff --git a/src/uk/co/kevinjjones/DTAPlot.java b/src/uk/co/kevinjjones/DTAPlot.java index 01cfe34..0c9ca78 100755 --- a/src/uk/co/kevinjjones/DTAPlot.java +++ b/src/uk/co/kevinjjones/DTAPlot.java @@ -1,1098 +1,1099 @@ /** * Copyright 2011 Kevin J. Jones (http://www.kevinjjones.co.uk) * * Licensed under the Apac...
true
true
private void run() { // Create The main frame sized to be OK on netbook 800x600 displays final JFrame frame = new JFrame("DTA Plot v2.1 - http://westboost.github.com/"); frame.setMinimumSize(new Dimension(400, 400)); frame.setPreferredSize(new Dimension(1280, 720)); RunManag...
private void run() { // Create The main frame sized to be OK on netbook 800x600 displays final JFrame frame = new JFrame("DTA Plot v2.1 - http://westboost.github.com/"); frame.setMinimumSize(new Dimension(400, 400)); frame.setPreferredSize(new Dimension(1280, 720)); RunManag...
diff --git a/src/main/java/org/bukkit/util/permissions/CommandPermissions.java b/src/main/java/org/bukkit/util/permissions/CommandPermissions.java index 82537577..74394735 100644 --- a/src/main/java/org/bukkit/util/permissions/CommandPermissions.java +++ b/src/main/java/org/bukkit/util/permissions/CommandPermissions.ja...
true
true
public static Permission registerPermissions(Permission parent) { Permission commands = DefaultPermissions.registerPermission(ROOT, "Gives the user the ability to use all Craftbukkit commands", parent); registerWhitelist(commands); registerBan(commands); registerUnban(commands); ...
public static Permission registerPermissions(Permission parent) { Permission commands = DefaultPermissions.registerPermission(ROOT, "Gives the user the ability to use all Craftbukkit commands", parent); registerWhitelist(commands); registerBan(commands); registerUnban(commands); ...
diff --git a/modules/activiti-webapp-explorer2/src/test/java/org/activiti/explorer/util/time/HumanTimeTest.java b/modules/activiti-webapp-explorer2/src/test/java/org/activiti/explorer/util/time/HumanTimeTest.java index 9d5861898..5c4a0a93c 100644 --- a/modules/activiti-webapp-explorer2/src/test/java/org/activiti/explor...
true
true
public void testHumanTime() { // Set up the i18nManager I18nManager i18nManager = new DummyI18nManager(); Calendar now = Calendar.getInstance(); HumanTime humanTime = new HumanTime(now.getTime(), i18nManager); // Edge cases Assert.assertEquals("Just now", humanTime.format(now.getTime...
public void testHumanTime() { // Set up the i18nManager I18nManager i18nManager = new DummyI18nManager(); Calendar now = Calendar.getInstance(); now.setTime(new Date(293840293840L)); HumanTime humanTime = new HumanTime(now.getTime(), i18nManager); // Edge cases Assert.assertEqual...
diff --git a/ui-fw/src/main/java/org/intalio/tempo/uiframework/actions/TasksAction.java b/ui-fw/src/main/java/org/intalio/tempo/uiframework/actions/TasksAction.java index 02313227..3fa53c63 100644 --- a/ui-fw/src/main/java/org/intalio/tempo/uiframework/actions/TasksAction.java +++ b/ui-fw/src/main/java/org/intalio/temp...
false
true
private void retrieveTasks() { try { final UIFWApplicationState state = ApplicationState.getCurrentInstance(_request); final String token = state.getCurrentUser().getToken(); final String user = state.getCurrentUser().getName(); final FormManager fmanager = Fo...
private void retrieveTasks() { try { final UIFWApplicationState state = ApplicationState.getCurrentInstance(_request); final String token = state.getCurrentUser().getToken(); final String user = state.getCurrentUser().getName(); final FormManager fmanager = Fo...
diff --git a/src/main/java/de/krkm/patterndebug/reasoner/OntologyNamingManager.java b/src/main/java/de/krkm/patterndebug/reasoner/OntologyNamingManager.java index d6473d2..052d449 100644 --- a/src/main/java/de/krkm/patterndebug/reasoner/OntologyNamingManager.java +++ b/src/main/java/de/krkm/patterndebug/reasoner/Ontolo...
false
true
public OntologyNamingManager(OWLOntology ontology) { Set<OWLClass> classesInSignature = ontology.getClassesInSignature(); OWLClass[] classes = classesInSignature.toArray(new OWLClass[classesInSignature.size()]); for (int i = 0; i < classes.length; i++) { classToId.put(Util.getFr...
public OntologyNamingManager(OWLOntology ontology) { Set<OWLClass> classesInSignature = ontology.getClassesInSignature(); OWLClass[] classes = classesInSignature.toArray(new OWLClass[classesInSignature.size()]); int i = 0; for (OWLClass c : classes) { if (classToId.conta...
diff --git a/src/main/java/org/spoutcraft/client/packet/PacketFullVersion.java b/src/main/java/org/spoutcraft/client/packet/PacketFullVersion.java index 5198079c..d7393839 100644 --- a/src/main/java/org/spoutcraft/client/packet/PacketFullVersion.java +++ b/src/main/java/org/spoutcraft/client/packet/PacketFullVersion.ja...
true
true
public PacketFullVersion(String versionString) { try { //Will break if builds are < 1000 or > 9999 //1.3.2 b1111 version = Integer.parseInt(versionString.substring(7)); } catch (Exception e) { e.printStackTrace(); version = 1; } }
public PacketFullVersion(String versionString) { version = 1700L; }
diff --git a/basket/src/uag/basket/MainActivity.java b/basket/src/uag/basket/MainActivity.java index dcb0dd1..a4cf442 100644 --- a/basket/src/uag/basket/MainActivity.java +++ b/basket/src/uag/basket/MainActivity.java @@ -1,19 +1,20 @@ package uag.basket; import android.app.Activity; import android.os.Bundle; im...
true
true
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); //super.loadUrl("file:///android_asset/www/barcodescanner-demo.html"); super.loadUrl("file:///android_asset/www/uag-basket-view.html"); //super.loadUrl("file:///android_asset/www/test.html"); ...
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); //super.loadUrl("file:///android_asset/www/barcodescanner-demo.html"); //super.loadUrl("file:///android_asset/www/file-explorer-demo.html"); super.loadUrl("file:///android_asset/www/uag-basket-v...
diff --git a/src/com/complover116/SchoolBox/ResourcesCheck.java b/src/com/complover116/SchoolBox/ResourcesCheck.java index 8a747de..f2e5d80 100644 --- a/src/com/complover116/SchoolBox/ResourcesCheck.java +++ b/src/com/complover116/SchoolBox/ResourcesCheck.java @@ -1,123 +1,122 @@ package com.complover116.SchoolBox; ...
true
true
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); Intent intent = new Intent(this, MainMenu.class); //Find the directory for the SD Card using the API //*Don't* hardcode "/sdcard" File sdcard = Environment.getExternalStorageDirectory(); //Get the text file File file =...
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); Intent intent = new Intent(this, MainMenu.class); //Find the directory for the SD Card using the API //*Don't* hardcode "/sdcard" File sdcard = Environment.getExternalStorageDirectory(); //Get the text file File file =...
diff --git a/org.jabylon.security/src/main/java/org/jabylon/security/internal/DBLoginModule.java b/org.jabylon.security/src/main/java/org/jabylon/security/internal/DBLoginModule.java index 6e60ec12..1639d62f 100644 --- a/org.jabylon.security/src/main/java/org/jabylon/security/internal/DBLoginModule.java +++ b/org.jabyl...
true
true
private boolean checkLogin(String userName, String pw) { if (JabylonSecurityBundle.getRepositoryConnector() == null) return false; CDOView view = JabylonSecurityBundle.getRepositoryConnector().openView(); try { boolean valid = false; User user = null; UserManagement userManagement = (UserManagement) ...
private boolean checkLogin(String userName, String pw) { if (JabylonSecurityBundle.getRepositoryConnector() == null) return false; CDOView view = JabylonSecurityBundle.getRepositoryConnector().openView(); try { boolean valid = false; User user = null; UserManagement userManagement = (UserManagement) ...
diff --git a/sample/src/com/directionalviewpager/sample/TestFragment.java b/sample/src/com/directionalviewpager/sample/TestFragment.java index 2a77de5..6b46124 100644 --- a/sample/src/com/directionalviewpager/sample/TestFragment.java +++ b/sample/src/com/directionalviewpager/sample/TestFragment.java @@ -1,55 +1,56 @@ ...
true
true
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { if ((savedInstanceState != null) && savedInstanceState.containsKey(KEY_CONTENT)) { mContent = savedInstanceState.getString(KEY_CONTENT); } TextView text = new TextView(getActivity()); text.setText(mContent...
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { if ((savedInstanceState != null) && savedInstanceState.containsKey(KEY_CONTENT)) { mContent = savedInstanceState.getString(KEY_CONTENT); } TextView text = new TextView(getActivity()); text.setText(mContent...
diff --git a/geotools2/geotools-src/arcgrid/src/org/geotools/data/arcgrid/GRASSArcGridRaster.java b/geotools2/geotools-src/arcgrid/src/org/geotools/data/arcgrid/GRASSArcGridRaster.java index ec26c33f8..4310ec677 100644 --- a/geotools2/geotools-src/arcgrid/src/org/geotools/data/arcgrid/GRASSArcGridRaster.java +++ b/geot...
true
true
protected void parseHeader(StreamTokenizer st) throws IOException { // make sure tokenizer is set up right st.resetSyntax(); st.eolIsSignificant(true); st.whitespaceChars('\t', '\t'); st.whitespaceChars(' ', ' '); st.whitespaceChars(':', ':'); st.wordChars('a', 'z')...
protected void parseHeader(StreamTokenizer st) throws IOException { // make sure tokenizer is set up right st.resetSyntax(); st.eolIsSignificant(true); st.whitespaceChars(0,' '); st.whitespaceChars(':', ':'); st.wordChars('a', 'z'); st.wordChars('A', 'Z'); s...
diff --git a/TextAnnot-WWW/src/obir/ws/ThemaStream.java b/TextAnnot-WWW/src/obir/ws/ThemaStream.java index 85a8ab8..74a23fa 100644 --- a/TextAnnot-WWW/src/obir/ws/ThemaStream.java +++ b/TextAnnot-WWW/src/obir/ws/ThemaStream.java @@ -1,332 +1,333 @@ package obir.ws; import java.io.BufferedReader; import java.io.IOE...
true
true
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.setContentType("text/xml;charset=UTF-8"); try { request.setCharacterEncoding("UTF-8"); } catch (UnsupportedEncodingException e1) { e1.printStackTrace(); } response.setCharacter...
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.setContentType("text/xml;charset=UTF-8"); try { request.setCharacterEncoding("UTF-8"); } catch (UnsupportedEncodingException e1) { e1.printStackTrace(); } response.setCharacter...
diff --git a/org.emftext.sdk.codegen/src/org/emftext/sdk/codegen/creators/BuildPropertiesCreator.java b/org.emftext.sdk.codegen/src/org/emftext/sdk/codegen/creators/BuildPropertiesCreator.java index c6df363c7..9050346b8 100644 --- a/org.emftext.sdk.codegen/src/org/emftext/sdk/codegen/creators/BuildPropertiesCreator.jav...
true
true
public Collection<IArtifact> getArtifactsToCreate(GenerationContext context) { File buildPropertiesFile = new File(context.getProjectFolder(EPlugins.RESOURCE_PLUGIN).getAbsolutePath() + File.separator + "build.properties"); IGenerator generator = new BuildPropertiesGenerator(context, plugin); return cr...
public Collection<IArtifact> getArtifactsToCreate(GenerationContext context) { File buildPropertiesFile = new File(context.getProjectFolder(plugin).getAbsolutePath() + File.separator + "build.properties"); IGenerator generator = new BuildPropertiesGenerator(context, plugin); return createArtifact( ...
diff --git a/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/ImportVmCommand.java b/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/ImportVmCommand.java index 3f1e773a..fd23ad85 100644 --- a/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/ImportVmCommand.java ...
false
true
protected boolean canDoAction() { if (getVm() != null) { setDescription(getVmName()); } ArrayList<String> canDoActionMessages = getReturnValue().getCanDoActionMessages(); boolean retVal = ImportExportCommon.checkStoragePool(getStoragePool(), canDoActionMessages); ...
protected boolean canDoAction() { if (getVm() != null) { setDescription(getVmName()); } ArrayList<String> canDoActionMessages = getReturnValue().getCanDoActionMessages(); boolean retVal = ImportExportCommon.checkStoragePool(getStoragePool(), canDoActionMessages); ...
diff --git a/TaxonDNA/com/ggvaidya/TaxonDNA/DNA/BaseSequence.java b/TaxonDNA/com/ggvaidya/TaxonDNA/DNA/BaseSequence.java index 27550e4..81e3bbb 100644 --- a/TaxonDNA/com/ggvaidya/TaxonDNA/DNA/BaseSequence.java +++ b/TaxonDNA/com/ggvaidya/TaxonDNA/DNA/BaseSequence.java @@ -1,312 +1,312 @@ /** * A BaseSequence is a Se...
false
true
public Sequence getSubsequence(int from, int to) throws SequenceException { // make sure we're not being fed garbage if( from < 1 || // the first char is index = 1 to > getLength() // the 'to' field must not be greater than the length of the sequence ) throw new SequenceException(this.getFullName(),...
public Sequence getSubsequence(int from, int to) throws SequenceException { // make sure we're not being fed garbage if( from < 1 || // the first char is index = 1 to > getLength() // the 'to' field must not be greater than the length of the sequence ) throw new SequenceException(this.getFullName(),...
diff --git a/src/java/main/org/jaxen/JaxenRuntimeException.java b/src/java/main/org/jaxen/JaxenRuntimeException.java index 40a218b..5a60fa0 100644 --- a/src/java/main/org/jaxen/JaxenRuntimeException.java +++ b/src/java/main/org/jaxen/JaxenRuntimeException.java @@ -1,112 +1,113 @@ package org.jaxen; /* * $Header: ...
true
true
public JaxenRuntimeException(JaxenException jaxenException) { this.jaxenException = jaxenException; }
public JaxenRuntimeException(JaxenException jaxenException) { super(jaxenException.getMessage()); this.jaxenException = jaxenException; }
diff --git a/mod/jodd/src/jodd/servlet/ServletUtil.java b/mod/jodd/src/jodd/servlet/ServletUtil.java index 3902d1d58..93cf24c12 100644 --- a/mod/jodd/src/jodd/servlet/ServletUtil.java +++ b/mod/jodd/src/jodd/servlet/ServletUtil.java @@ -1,624 +1,630 @@ // Copyright (c) 2003-2010, Jodd Team (jodd.org). All Rights Reser...
true
true
protected static String debug(HttpServletRequest request, PageContext pageContext) { StringBuilder result = new StringBuilder(); result.append("\nPARAMETERS\n----------\n"); Enumeration enumeration = request.getParameterNames(); while (enumeration.hasMoreElements()) { String name = (String) enumeration.next...
protected static String debug(HttpServletRequest request, PageContext pageContext) { StringBuilder result = new StringBuilder(); result.append("\nPARAMETERS\n----------\n"); Enumeration enumeration = request.getParameterNames(); while (enumeration.hasMoreElements()) { String name = (String) enumeration.next...
diff --git a/kernel/src/main/java/org/vosao/business/impl/pagefilter/fragments/JavaScriptFragment.java b/kernel/src/main/java/org/vosao/business/impl/pagefilter/fragments/JavaScriptFragment.java index cbb0f79..e1bdaa5 100644 --- a/kernel/src/main/java/org/vosao/business/impl/pagefilter/fragments/JavaScriptFragment.java...
true
true
public String get(Business business, PageEntity page) { StringBuffer code = new StringBuffer( "<script src=\"/static/js/jquery.js\" type=\"text/javascript\"></script>\n" + "<script src=\"/static/js/jquery.form.js\" type=\"text/javascript\"></script>\n" + "<script src=\"/static/js/jsonrpc.j...
public String get(Business business, PageEntity page) { StringBuffer code = new StringBuffer( "<script src=\"http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js\" type=\"text/javascript\"></script>\n" + "<script src=\"/static/js/jquery.form.js\" type=\"text/javascript\"></script>\n" ...
diff --git a/src/main/java/org/jrimum/bopepo/view/info/campo/BoletoInfoCampoAgenciaCodigoCedente.java b/src/main/java/org/jrimum/bopepo/view/info/campo/BoletoInfoCampoAgenciaCodigoCedente.java index 19213bf..dda8865 100644 --- a/src/main/java/org/jrimum/bopepo/view/info/campo/BoletoInfoCampoAgenciaCodigoCedente.java ++...
false
true
public static String getTextoAgenciaCodigoCedente(ContaBancaria conta){ StringBuilder texto = new StringBuilder(EMPTY); boolean temAgencia = false; if (isNotNull(conta.getAgencia())) { temAgencia = true; if (isNotNull(conta.getAgencia().getCodigo())){ texto.append(conta.getAgencia().getCod...
public static String getTextoAgenciaCodigoCedente(ContaBancaria conta){ StringBuilder texto = new StringBuilder(EMPTY); boolean temAgencia = false; if (isNotNull(conta.getAgencia())) { temAgencia = true; if (isNotNull(conta.getAgencia().getCodigo())){ texto.append(conta.getAgencia().getCod...
diff --git a/dspace-xmlui/dspace-xmlui-api/src/main/java/org/dspace/app/xmlui/aspect/administrative/mapper/SearchItemForm.java b/dspace-xmlui/dspace-xmlui-api/src/main/java/org/dspace/app/xmlui/aspect/administrative/mapper/SearchItemForm.java index fc63f0e6d..869aeb0e9 100644 --- a/dspace-xmlui/dspace-xmlui-api/src/mai...
false
true
public void addBody(Body body) throws SAXException, WingException, SQLException, IOException { // Get our parameters and state; int collectionID = parameters.getParameterAsInteger("collectionID",-1); Collection collection = Collection.find(context,collectionID); String query = decodeFromURL(parameters.get...
public void addBody(Body body) throws SAXException, WingException, SQLException, IOException { // Get our parameters and state; int collectionID = parameters.getParameterAsInteger("collectionID",-1); Collection collection = Collection.find(context,collectionID); String query = decodeFromURL(parameters.get...
diff --git a/project/src/main/java/com/sysfera/godiet/managers/ConfigurationManager.java b/project/src/main/java/com/sysfera/godiet/managers/ConfigurationManager.java index 9f101af..8c4bd0e 100644 --- a/project/src/main/java/com/sysfera/godiet/managers/ConfigurationManager.java +++ b/project/src/main/java/com/sysfera/g...
true
true
public void setLocalScratch(Scratch localScratch) throws GoDietConfigurationException { // TODO: Test if could write in if (!(new File(localScratch.getDir())).isDirectory()) throw new GoDietConfigurationException("Unable to write in " + localScratch.getDir() + " directory"); this.localScratch = localS...
public void setLocalScratch(Scratch localScratch) throws GoDietConfigurationException { // TODO: Test if could write in new File(localScratch.getDir()).mkdirs(); if (!(new File(localScratch.getDir())).isDirectory()) throw new GoDietConfigurationException("Unable to write in " + localScratch.getDir() +...
diff --git a/source/ch/cyberduck/core/AbstractProxy.java b/source/ch/cyberduck/core/AbstractProxy.java index 90d244111..cfe78fce9 100644 --- a/source/ch/cyberduck/core/AbstractProxy.java +++ b/source/ch/cyberduck/core/AbstractProxy.java @@ -1,70 +1,69 @@ package ch.cyberduck.core; /* * Copyright (c) 2002-2009 Dav...
false
true
public void configure(final Host host) { Properties properties = System.getProperties(); if(this.isSOCKSProxyEnabled() && !this.isHostExcluded(host.getHostname())) { log.info("Using SOCKS Proxy"); if(-1 == host.getPort()) { return; } //...
public void configure(final Host host) { Properties properties = System.getProperties(); if(this.isSOCKSProxyEnabled() && !this.isHostExcluded(host.getHostname())) { // Indicates the name of the SOCKS proxy server and the port number // that will be used by the SOCKS protocol...
diff --git a/net.sourceforge.vrapper.eclipse/src/net/sourceforge/vrapper/eclipse/keymap/EclipseSpecificStateProvider.java b/net.sourceforge.vrapper.eclipse/src/net/sourceforge/vrapper/eclipse/keymap/EclipseSpecificStateProvider.java index bd786154..8e2f749e 100644 --- a/net.sourceforge.vrapper.eclipse/src/net/sourcefor...
true
true
protected State<Command> normalModeBindings() { State<TextObject> textObjects = NormalMode.textObjects(); State<Command> normalModeBindings = StateUtils.union( state( transitionBind('z', leafBind('a', ToggleFoldingCommand.INSTANCE), ...
protected State<Command> normalModeBindings() { State<TextObject> textObjects = NormalMode.textObjects(); State<Command> normalModeBindings = StateUtils.union( state( transitionBind('z', leafBind('a', ToggleFoldingCommand.INSTANCE), ...
diff --git a/alitheia/core/src/eu/sqooss/impl/service/updater/SourceUpdater.java b/alitheia/core/src/eu/sqooss/impl/service/updater/SourceUpdater.java index 9290ede2..0476f124 100644 --- a/alitheia/core/src/eu/sqooss/impl/service/updater/SourceUpdater.java +++ b/alitheia/core/src/eu/sqooss/impl/service/updater/SourceUp...
false
true
protected void run() { int numRevisions = 0; /* * Cache project version and project file IDs for kick-starting * metric update jobs after the metadata update. This is done * to avoid holding references to huge data graphs on large * updates ...
protected void run() throws Exception { int numRevisions = 0; /* * Cache project version and project file IDs for kick-starting * metric update jobs after the metadata update. This is done * to avoid holding references to huge data graphs on large ...
diff --git a/com/gmail/lucario77777777/tadukooplugin/MainCommandExecutor.java b/com/gmail/lucario77777777/tadukooplugin/MainCommandExecutor.java index d270125..cff5e1e 100644 --- a/com/gmail/lucario77777777/tadukooplugin/MainCommandExecutor.java +++ b/com/gmail/lucario77777777/tadukooplugin/MainCommandExecutor.java @@ ...
false
true
public boolean onCommand(CommandSender sender, Command cmd, String commandLabel, String[] args) { String playerType; if (sender instanceof Player){ playerType = "player"; }else if(sender instanceof ConsoleCommandSender){ playerType = "console"; }else if(sender instanceof BlockCommandSender){ playerTyp...
public boolean onCommand(CommandSender sender, Command cmd, String commandLabel, String[] args) { String playerType; if (sender instanceof Player){ playerType = "player"; }else if(sender instanceof ConsoleCommandSender){ playerType = "console"; }else if(sender instanceof BlockCommandSender){ playerTyp...
diff --git a/backends/gdx-backend-android/src/com/badlogic/gdx/backends/android/AndroidMultiTouchHandler.java b/backends/gdx-backend-android/src/com/badlogic/gdx/backends/android/AndroidMultiTouchHandler.java index 751e237ac..8ad275403 100644 --- a/backends/gdx-backend-android/src/com/badlogic/gdx/backends/android/Andr...
false
true
public void onTouch (MotionEvent event, AndroidInput input) { final int action = event.getAction() & MotionEvent.ACTION_MASK; int pointerIndex = (event.getAction() & MotionEvent.ACTION_POINTER_ID_MASK) >> MotionEvent.ACTION_POINTER_ID_SHIFT; int pointerId = event.getPointerId(pointerIndex); int x = 0, y = 0; ...
public void onTouch (MotionEvent event, AndroidInput input) { final int action = event.getAction() & MotionEvent.ACTION_MASK; int pointerIndex = (event.getAction() & MotionEvent.ACTION_POINTER_ID_MASK) >> MotionEvent.ACTION_POINTER_ID_SHIFT; int pointerId = event.getPointerId(pointerIndex); int x = 0, y = 0; ...
diff --git a/src/main/java/de/cismet/commons/cismap/io/AddGeometriesToMapWizardAction.java b/src/main/java/de/cismet/commons/cismap/io/AddGeometriesToMapWizardAction.java index 26d80f9e..1d26f213 100644 --- a/src/main/java/de/cismet/commons/cismap/io/AddGeometriesToMapWizardAction.java +++ b/src/main/java/de/cismet/com...
true
true
public void actionPerformed(final ActionEvent e) { final WizardDescriptor wizard = new WizardDescriptor(getPanels()); wizard.setTitleFormat(new MessageFormat("{0}")); // NOI18N wizard.setTitle("Add geometry to map"); final Collection<? extends TextToGeometryConverter> availableConve...
public void actionPerformed(final ActionEvent e) { final WizardDescriptor wizard = new WizardDescriptor(getPanels()); wizard.setTitleFormat(new MessageFormat("{0}")); // NOI18N wizard.setTitle("Add geometry to map"); final Collection<? extends TextToGeometryConverter> availableConve...
diff --git a/src/org/coocood/vcontentprovider/VTableColumn.java b/src/org/coocood/vcontentprovider/VTableColumn.java index ea5950f..d8bbeb3 100644 --- a/src/org/coocood/vcontentprovider/VTableColumn.java +++ b/src/org/coocood/vcontentprovider/VTableColumn.java @@ -1,95 +1,95 @@ /* * Copyright 2013 - Ewan Chou (cooco...
true
true
void appendDefinition(StringBuilder sb) { sb.append(name); switch (type) { case TYPE_INTEGER: sb.append(" INTEGER"); break; case TYPE_TEXT: sb.append(" TEXT"); if (nocase) sb.append(" COLLATE NOCASE"); break; case TYPE_REAL: sb.append(" REAL"); break; default: sb.append(" BLOB")...
void appendDefinition(StringBuilder sb) { sb.append(name); switch (type) { case TYPE_INTEGER: sb.append(" INTEGER"); break; case TYPE_TEXT: sb.append(" TEXT"); if (nocase) sb.append(" COLLATE NOCASE"); break; case TYPE_REAL: sb.append(" REAL"); break; default: sb.append(" BLOB")...
diff --git a/src/test/java/algorithm/TestAlgorithmNew.java b/src/test/java/algorithm/TestAlgorithmNew.java index ad7bb8f..8240d5d 100644 --- a/src/test/java/algorithm/TestAlgorithmNew.java +++ b/src/test/java/algorithm/TestAlgorithmNew.java @@ -1,157 +1,160 @@ package algorithm; import java.text.DateFormat; import...
true
true
public void testAlgorithmNew(){ System.setProperty("test", "true"); boolean labs = false; if(labs){ //Clean the database DbInitialiser.init(); //Lets create some annotators with id's 1 - numPeople and place them in array annotators = new AnnotatorModel[numPeople]; for(int i = 0; i < numPeople...
public void testAlgorithmNew(){ System.setProperty("test", "true"); boolean labs = false; if(labs){ //Clean the database DbInitialiser.init(); //Lets create some annotators with id's 1 - numPeople and place them in array annotators = new AnnotatorModel[numPeople]; for(int i = 0; i < numPeople...
diff --git a/src/NFAGenerator.java b/src/NFAGenerator.java index 6d0bb43..1b91d94 100644 --- a/src/NFAGenerator.java +++ b/src/NFAGenerator.java @@ -1,492 +1,492 @@ import java.util.ArrayList; import java.util.HashMap; import java.util.Map; /** * * @author andrew * */ public class NFAGenerator { pri...
true
true
private boolean rexp2(){ if(DEBUG)System.out.println("rexp2()"); int state1 = entry_ind-1; if(peekChar()=='('){ if(match('(')&&rexp()&&match(')')){ int state2 = entry_ind-2; rexp2_tail(); if(toggleStar){ TableRow nextRow = new TableRow(new HashMap<String,ArrayList<TableRow>>(), Integer.toStri...
private boolean rexp2(){ if(DEBUG)System.out.println("rexp2()"); int state1 = entry_ind-1; if(peekChar()=='('){ if(match('(')&&rexp()&&match(')')){ int state2 = entry_ind-2; rexp2_tail(); if(toggleStar){ TableRow nextRow = new TableRow(new HashMap<String,ArrayList<TableRow>>(), Integer.toStri...
diff --git a/src/haven/Skeleton.java b/src/haven/Skeleton.java index cae7eca4..fe140532 100644 --- a/src/haven/Skeleton.java +++ b/src/haven/Skeleton.java @@ -1,544 +1,545 @@ /* * This file is part of the Haven & Hearth game client. * Copyright (C) 2009 Fredrik Tolf <fredrik@dolda2000.com>, and * ...
false
true
public void aupdate(float time) { if(time > len) time = len; this.time = time; reset(); for(int i = 0; i < tracks.length; i++) { Track t = tracks[i]; if((t == null) || (t.frames.length == 0)) continue; if(t.frames.length == 1) { qset(lrot[i], t.frames[0].rot); vset(lpos[i]...
public void aupdate(float time) { if(time > len) time = len; this.time = time; reset(); for(int i = 0; i < tracks.length; i++) { Track t = tracks[i]; if((t == null) || (t.frames.length == 0)) continue; if(t.frames.length == 1) { qset(lrot[i], t.frames[0].rot); vset(lpos[i]...
diff --git a/src/org/apache/xerces/impl/XMLEntityManager.java b/src/org/apache/xerces/impl/XMLEntityManager.java index 6fac05f94..d6c146e46 100644 --- a/src/org/apache/xerces/impl/XMLEntityManager.java +++ b/src/org/apache/xerces/impl/XMLEntityManager.java @@ -1,3559 +1,3568 @@ /* * The Apache Software License, Vers...
true
true
public boolean scanData(String delimiter, XMLString data) throws IOException { if (DEBUG_BUFFER) { System.out.print("(scanData: "); print(); System.out.println(); } // load more characters, if needed int...
public boolean scanData(String delimiter, XMLString data) throws IOException { if (DEBUG_BUFFER) { System.out.print("(scanData: "); print(); System.out.println(); } // load more characters, if needed int...
diff --git a/src/android/ExtractZipPlugin.java b/src/android/ExtractZipPlugin.java index cdb7516..bc10d4f 100644 --- a/src/android/ExtractZipPlugin.java +++ b/src/android/ExtractZipPlugin.java @@ -1,146 +1,147 @@ package org.apache.cordova.plugin.ExtractZip; import java.io.BufferedOutputStream; import java.io.File...
true
true
private boolean extractAll(JSONArray args, CallbackContext callbackContext) { try { String filename = args.getString(0); String destDir = args.getString(1); ZipFile zipFile = new ZipFile(filename); ZipEntry entry; InputStream is = null; BufferedOutputStream os = null; try { Enumeration<? ex...
private boolean extractAll(JSONArray args, CallbackContext callbackContext) { try { String filename = args.getString(0); String destDir = args.getString(1); ZipFile zipFile = new ZipFile(filename); ZipEntry entry; InputStream is = null; BufferedOutputStream os = null; try { Enumeration<? ex...
diff --git a/src/main/java/org/jboss/maven/arquillian/transformer/AppEngineDataNucleusTransformer.java b/src/main/java/org/jboss/maven/arquillian/transformer/AppEngineDataNucleusTransformer.java index 95d1962..efb8e97 100644 --- a/src/main/java/org/jboss/maven/arquillian/transformer/AppEngineDataNucleusTransformer.java...
true
true
public static WebArchive buildArchive(String clazz) { WebArchive war = ShrinkWrap.create(WebArchive.class); addClasses(war, clazz); war.addPackage("com.google.appengine.datanucleus"); if (clazz.contains(".jpa.") || clazz.contains(".query.")) { war.addPackage("com.google.a...
public static WebArchive buildArchive(String clazz) { WebArchive war = ShrinkWrap.create(WebArchive.class); addClasses(war, clazz); war.addPackage("com.google.appengine.datanucleus"); if (clazz.contains(".jpa.") || clazz.contains(".query.")) { war.addPackage("com.google.a...
diff --git a/srcj/com/sun/electric/tool/user/Highlight.java b/srcj/com/sun/electric/tool/user/Highlight.java index 22a5757c5..d8e35be61 100755 --- a/srcj/com/sun/electric/tool/user/Highlight.java +++ b/srcj/com/sun/electric/tool/user/Highlight.java @@ -1,1929 +1,1929 @@ /* -*- tab-width: 4 -*- * * Electric(tm) VLS...
true
true
public void showHighlight(EditWindow wnd, Graphics g) { g.setColor(Color.WHITE); if (type == Type.BBOX) { Point2D [] points = new Point2D.Double[5]; points[0] = new Point2D.Double(bounds.getMinX(), bounds.getMinY()); points[1] = new Point2D.Double(bounds.getMinX(), bounds.getMaxY()); points[2] = new...
public void showHighlight(EditWindow wnd, Graphics g) { g.setColor(Color.WHITE); if (type == Type.BBOX) { Point2D [] points = new Point2D.Double[5]; points[0] = new Point2D.Double(bounds.getMinX(), bounds.getMinY()); points[1] = new Point2D.Double(bounds.getMinX(), bounds.getMaxY()); points[2] = new...
diff --git a/src/nl/giantit/minecraft/GiantShop/core/Tools/dbInit/dbInit.java b/src/nl/giantit/minecraft/GiantShop/core/Tools/dbInit/dbInit.java index b2aea1a..3b56a36 100644 --- a/src/nl/giantit/minecraft/GiantShop/core/Tools/dbInit/dbInit.java +++ b/src/nl/giantit/minecraft/GiantShop/core/Tools/dbInit/dbInit.java @@ ...
false
true
private void init() { if(!this.dbDriver.tableExists("#__versions")) { HashMap<String, HashMap<String, String>> fields = new HashMap<String, HashMap<String, String>>(); HashMap<String, String> data = new HashMap<String, String>(); data.put("TYPE", "VARCHAR"); data.put("LENGTH", "100"); data.put("NULL",...
private void init() { if(!this.dbDriver.tableExists("#__versions")) { HashMap<String, HashMap<String, String>> fields = new HashMap<String, HashMap<String, String>>(); HashMap<String, String> data = new HashMap<String, String>(); data.put("TYPE", "VARCHAR"); data.put("LENGTH", "100"); data.put("NULL",...
diff --git a/freeplane/src/org/freeplane/core/io/xml/XMLParser.java b/freeplane/src/org/freeplane/core/io/xml/XMLParser.java index eedb6c807..667f1e486 100644 --- a/freeplane/src/org/freeplane/core/io/xml/XMLParser.java +++ b/freeplane/src/org/freeplane/core/io/xml/XMLParser.java @@ -1,93 +1,121 @@ /* * Freeplane -...
false
true
protected void processElementContent(final String defaultNamespace, final Properties namespaces, final String fullName, final String name, final String prefix) throws IOException, XMLParseException, Exception { if (skipNextElementContent) { final TreeXmlReader builde...
protected void processElementContent(final String defaultNamespace, final Properties namespaces, final String fullName, final String name, final String prefix) throws IOException, XMLParseException, Exception { if (skipNextElementContent) { boolean inComment = false;...
diff --git a/src/com/dmdirc/addons/ui_swing/components/SwingSearchBar.java b/src/com/dmdirc/addons/ui_swing/components/SwingSearchBar.java index a105c36b6..1b2ba569e 100644 --- a/src/com/dmdirc/addons/ui_swing/components/SwingSearchBar.java +++ b/src/com/dmdirc/addons/ui_swing/components/SwingSearchBar.java @@ -1,365 +...
true
true
public void search(final Direction direction, final String text, final boolean caseSensitive) { boolean foundText = false; final boolean up = Direction.UP == direction; final TextPane textPane = parent.getTextPane(); final IRCDocument document = textPane.getDocument(); ...
public void search(final Direction direction, final String text, final boolean caseSensitive) { boolean foundText = false; final boolean up = Direction.UP == direction; final TextPane textPane = parent.getTextPane(); final IRCDocument document = textPane.getDocument(); ...
diff --git a/BasicGame/src/controlador/Main.java b/BasicGame/src/controlador/Main.java index 271ece2..48c2537 100644 --- a/BasicGame/src/controlador/Main.java +++ b/BasicGame/src/controlador/Main.java @@ -1,278 +1,277 @@ package controlador; import com.jme3.app.SimpleApplication; import com.jme3.bullet.BulletAppSt...
true
true
public void simpleUpdate(float tpf) { flyCam.setEnabled(false); if(menu.isMenuFinished() && !gameStarted){ addWorld(); addProtagonista(); addRival(); addDisplay(); gameStarted = true; se...
public void simpleUpdate(float tpf) { flyCam.setEnabled(false); if(menu.isMenuFinished() && !gameStarted){ addWorld(); addProtagonista(); addRival(); addDisplay(); gameStarted = true; se...
diff --git a/src/jvm/storm/scribe/ScribeReceiver.java b/src/jvm/storm/scribe/ScribeReceiver.java index 831d4e4..fb8e823 100644 --- a/src/jvm/storm/scribe/ScribeReceiver.java +++ b/src/jvm/storm/scribe/ScribeReceiver.java @@ -1,208 +1,215 @@ package storm.scribe; import backtype.storm.task.TopologyContext; import b...
false
true
public ScribeReceiver(LinkedBlockingQueue<byte[]> events, Map conf, TopologyContext context, String zkStr, String zkRoot) { _zkStr = zkStr; _zkRoot = zkRoot; _events = events; Number putTimeout = (Number) conf.get("scribe.spout.put.timeout"); if(putTimeout==null) put...
public ScribeReceiver(LinkedBlockingQueue<byte[]> events, Map conf, TopologyContext context, String zkStr, String zkRoot) { _zkStr = zkStr; _zkRoot = zkRoot; _events = events; Number putTimeout = (Number) conf.get("scribe.spout.put.timeout"); if(putTimeout==null) put...
diff --git a/src/main/java/edu/ucsf/rbvi/cddApp/internal/tasks/LoadCDDDomainTask.java b/src/main/java/edu/ucsf/rbvi/cddApp/internal/tasks/LoadCDDDomainTask.java index 123b80c..f988cf2 100644 --- a/src/main/java/edu/ucsf/rbvi/cddApp/internal/tasks/LoadCDDDomainTask.java +++ b/src/main/java/edu/ucsf/rbvi/cddApp/internal/...
false
true
public void run(TaskMonitor monitor) throws Exception { monitor.setTitle("Load CDD Domains"); monitor.setStatusMessage("Load CDD Domains"); String queries = null, pdbQueries = null, colName = loadColumn.getSelectedValue(); // HashMap<String, Long> idTable = new HashMap<String, Long>(); HashMap<String, List<St...
public void run(TaskMonitor monitor) throws Exception { monitor.setTitle("Load CDD Domains"); monitor.setStatusMessage("Load CDD Domains"); String queries = null, pdbQueries = null, colName = loadColumn.getSelectedValue(); // HashMap<String, Long> idTable = new HashMap<String, Long>(); HashMap<String, List<St...
diff --git a/java/src/com/android/inputmethod/latin/SubtypeSwitcher.java b/java/src/com/android/inputmethod/latin/SubtypeSwitcher.java index d3aa70c2..01e09fbc 100644 --- a/java/src/com/android/inputmethod/latin/SubtypeSwitcher.java +++ b/java/src/com/android/inputmethod/latin/SubtypeSwitcher.java @@ -1,570 +1,571 @@ ...
true
true
public void updateSubtype(InputMethodSubtype newSubtype) { final String newLocale; final String newMode; if (newSubtype == null) { // Normally, newSubtype shouldn't be null. But just in case newSubtype was null, // fallback to the default locale and mode. ...
public void updateSubtype(InputMethodSubtype newSubtype) { final String newLocale; final String newMode; if (newSubtype == null) { // Normally, newSubtype shouldn't be null. But just in case newSubtype was null, // fallback to the default locale and mode. ...
diff --git a/src/android/org/pgsqlite/SQLitePlugin.java b/src/android/org/pgsqlite/SQLitePlugin.java index c907942..8f04d04 100755 --- a/src/android/org/pgsqlite/SQLitePlugin.java +++ b/src/android/org/pgsqlite/SQLitePlugin.java @@ -1,503 +1,512 @@ /* * PhoneGap is available under *either* the terms of the modified ...
false
true
private void executeSqlBatch(String dbname, String[] queryarr, JSONArray[] jsonparams, String[] queryIDs, CallbackContext cbc) { SQLiteDatabase mydb = this.getDatabase(dbname); if (mydb == null) return; String query = ""; String query_id = ""; int len = queryarr.length; JSONArray batchResults = new JSO...
private void executeSqlBatch(String dbname, String[] queryarr, JSONArray[] jsonparams, String[] queryIDs, CallbackContext cbc) { SQLiteDatabase mydb = this.getDatabase(dbname); if (mydb == null) return; String query = ""; String query_id = ""; int len = queryarr.length; JSONArray batchResults = new JSO...
diff --git a/src/main/java/org/apache/hadoop/hive/hwi/servlet/RQuery.java b/src/main/java/org/apache/hadoop/hive/hwi/servlet/RQuery.java index 0332cc6..5bb8bfd 100644 --- a/src/main/java/org/apache/hadoop/hive/hwi/servlet/RQuery.java +++ b/src/main/java/org/apache/hadoop/hive/hwi/servlet/RQuery.java @@ -1,333 +1,334 @@...
true
true
public Viewable result( @PathParam(value = "id") Integer id, @QueryParam(value = "raw") @DefaultValue(value = "false") boolean raw) { Viewable v = new Viewable("/query/result.vm"); QueryStore qs = QueryStore.getInstance(); MQuery query = qs.getById(id); ...
public Viewable result( @PathParam(value = "id") Integer id, @QueryParam(value = "raw") @DefaultValue(value = "false") boolean raw) { Viewable v = new Viewable("/query/result.vm"); QueryStore qs = QueryStore.getInstance(); MQuery query = qs.getById(id); ...
diff --git a/src/main/java/org/openplans/tools/tracking/impl/InferredGraph.java b/src/main/java/org/openplans/tools/tracking/impl/InferredGraph.java index f765730..f6604f0 100644 --- a/src/main/java/org/openplans/tools/tracking/impl/InferredGraph.java +++ b/src/main/java/org/openplans/tools/tracking/impl/InferredGraph....
true
true
private Set<InferredPath> computePaths(PathKey key) { /* * We always consider moving off of an edge, staying on an edge, and * whatever else we can find. */ final InferredEdge startEdge = key.getState().getInferredEdge(); final Coordinate toCoord = GeoUtils.reverseCoordinates(key ...
private Set<InferredPath> computePaths(PathKey key) { /* * We always consider moving off of an edge, staying on an edge, and * whatever else we can find. */ final InferredEdge startEdge = key.getState().getInferredEdge(); final Coordinate toCoord = GeoUtils.reverseCoordinates(key ...
diff --git a/bundles/org.eclipse.equinox.p2.ui.sdk/src/org/eclipse/equinox/internal/p2/ui/sdk/UpdateAndInstallDialog.java b/bundles/org.eclipse.equinox.p2.ui.sdk/src/org/eclipse/equinox/internal/p2/ui/sdk/UpdateAndInstallDialog.java index 38b1af16a..7cc0ef291 100644 --- a/bundles/org.eclipse.equinox.p2.ui.sdk/src/org/e...
true
true
private Control createInstalledIUsVerticalButtonBar(Composite parent, IQueryProvider queryProvider) { // Create composite. Composite composite = new Composite(parent, SWT.NULL); // create a layout with spacing and margins appropriate for the font // size. GridLayout layout = new GridLayout(); layout.numCo...
private Control createInstalledIUsVerticalButtonBar(Composite parent, IQueryProvider queryProvider) { // Create composite. Composite composite = new Composite(parent, SWT.NULL); // create a layout with spacing and margins appropriate for the font // size. GridLayout layout = new GridLayout(); layout.numCo...
diff --git a/src/monakhv/samlib/http/HttpClientController.java b/src/monakhv/samlib/http/HttpClientController.java index 3e40004..f1f91d4 100644 --- a/src/monakhv/samlib/http/HttpClientController.java +++ b/src/monakhv/samlib/http/HttpClientController.java @@ -1,402 +1,409 @@ /* * Copyright 2013 Dmitry Monakhov. *...
true
true
private String __getURL(URL url, File f) throws IOException, SamLibIsBusyException, SamlibParseException { HttpGet method = new HttpGet(url.toString()); HttpParams httpParams = new BasicHttpParams(); HttpConnectionParams.setConnectionTimeout(httpParams, CONNECTION_TIMEOUT); HttpCo...
private String __getURL(URL url, File f) throws IOException, SamLibIsBusyException, SamlibParseException { HttpGet method = new HttpGet(url.toString()); HttpParams httpParams = new BasicHttpParams(); HttpConnectionParams.setConnectionTimeout(httpParams, CONNECTION_TIMEOUT); HttpCo...
diff --git a/src/test/java/hudson/plugins/tfs/ChangeSetReaderTest.java b/src/test/java/hudson/plugins/tfs/ChangeSetReaderTest.java index a29cf95..ec647d7 100644 --- a/src/test/java/hudson/plugins/tfs/ChangeSetReaderTest.java +++ b/src/test/java/hudson/plugins/tfs/ChangeSetReaderTest.java @@ -1,48 +1,48 @@ package huds...
true
true
public void assertParsingTwoXmlChangeSets() throws Exception { Reader reader = new StringReader("<?xml version=\"1.0\" encoding=\"UTF-8\"?><changelog>" + "<changeset version=\"1122\">" + "<date>2009-01-12T00:00:00Z</date>" + ...
public void assertParsingTwoXmlChangeSets() throws Exception { Reader reader = new StringReader("<?xml version=\"1.0\" encoding=\"UTF-8\"?><changelog>" + "<changeset version=\"1122\">" + "<date>2009-01-12T00:00:00Z</date>" + ...
diff --git a/impl/src/main/java/uk/ac/ox/oucs/search/solr/SolrSearchIndexBuilder.java b/impl/src/main/java/uk/ac/ox/oucs/search/solr/SolrSearchIndexBuilder.java index 87884fe..1586d0c 100644 --- a/impl/src/main/java/uk/ac/ox/oucs/search/solr/SolrSearchIndexBuilder.java +++ b/impl/src/main/java/uk/ac/ox/oucs/search/solr...
false
true
private SolrRequest toSolrRequest(final String resourceName, EntityContentProducer contentProducer) { SolrRequest request; SolrInputDocument document = new SolrInputDocument(); //TODO: Solr handles dates, use that instead of a string timestamp... document.addField(SearchService.DATE...
private SolrRequest toSolrRequest(final String resourceName, EntityContentProducer contentProducer) { SolrRequest request; SolrInputDocument document = new SolrInputDocument(); //TODO: Solr handles dates, use that instead of a string timestamp... document.addField(SearchService.DATE...