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/de.gebit.integrity.dsl/src/de/gebit/integrity/utils/ParameterUtil.java b/de.gebit.integrity.dsl/src/de/gebit/integrity/utils/ParameterUtil.java index f84f29bf..3105377d 100644 --- a/de.gebit.integrity.dsl/src/de/gebit/integrity/utils/ParameterUtil.java +++ b/de.gebit.integrity.dsl/src/de/gebit/integrity/ut...
true
true
public static Object convertEncapsulatedValueToParamType(Class<?> aParamType, ValueOrEnumValueOrOperation aValue, Map<VariableEntity, Object> aVariableMap, ClassLoader aClassLoader) throws UnresolvableVariableException, ClassNotFoundException, UnexecutableException, InstantiationException { if (aValue == null)...
public static Object convertEncapsulatedValueToParamType(Class<?> aParamType, ValueOrEnumValueOrOperation aValue, Map<VariableEntity, Object> aVariableMap, ClassLoader aClassLoader) throws UnresolvableVariableException, ClassNotFoundException, UnexecutableException, InstantiationException { if (aValue == null)...
diff --git a/src/java/HECL/src/HECL.java b/src/java/HECL/src/HECL.java index 8d94fd4..956df0a 100644 --- a/src/java/HECL/src/HECL.java +++ b/src/java/HECL/src/HECL.java @@ -1,159 +1,159 @@ import com.jogamp.common.nio.Buffers; import com.jogamp.opencl.CLBuffer; import com.jogamp.opencl.CLCommandQueue; import com.jo...
true
true
public static boolean Menu() { @SuppressWarnings("resource") Scanner reader = new Scanner(System.in); System.out.println("Choose an option:\n" + "1. Test RGB to Spherical\n" + "2. Test Spherical to RGB\n" + "3. Test Copy image\n" + "4. Exit"); boolean exit = false; try { if(reader.has...
public static boolean Menu() { @SuppressWarnings("resource") Scanner reader = new Scanner(System.in); System.out.println("Choose an option:\n" + "1. Test RGB to Spherical\n" + "2. Test Spherical to RGB\n" + "3. Test Copy image\n" + "4. Exit"); boolean exit = false; try { if(reader.has...
diff --git a/filemgr/src/main/java/org/apache/oodt/cas/filemgr/tools/ExpImpCatalog.java b/filemgr/src/main/java/org/apache/oodt/cas/filemgr/tools/ExpImpCatalog.java index 32f2c4029..9d124c9e7 100644 --- a/filemgr/src/main/java/org/apache/oodt/cas/filemgr/tools/ExpImpCatalog.java +++ b/filemgr/src/main/java/org/apache/o...
true
true
private void exportProductsToDest(List products, ProductType type) throws Exception { if (products != null && products.size() > 0) { for (Iterator i = products.iterator(); i.hasNext();) { Product p = (Product) i.next(); if (ensureUnique) { ...
private void exportProductsToDest(List products, ProductType type) throws Exception { if (products != null && products.size() > 0) { for (Iterator i = products.iterator(); i.hasNext();) { Product p = (Product) i.next(); if (ensureUnique) { ...
diff --git a/src/java/org/jivesoftware/sparkimpl/plugin/transcripts/ChatTranscriptPlugin.java b/src/java/org/jivesoftware/sparkimpl/plugin/transcripts/ChatTranscriptPlugin.java index f5b18841..524b4a1a 100644 --- a/src/java/org/jivesoftware/sparkimpl/plugin/transcripts/ChatTranscriptPlugin.java +++ b/src/java/org/jives...
true
true
private void showHistory(final String jid) { SwingWorker transcriptLoader = new SwingWorker() { public Object construct() { String bareJID = StringUtils.parseBareAddress(jid); return ChatTranscripts.getChatTranscript(bareJID); } public vo...
private void showHistory(final String jid) { SwingWorker transcriptLoader = new SwingWorker() { public Object construct() { String bareJID = StringUtils.parseBareAddress(jid); return ChatTranscripts.getChatTranscript(bareJID); } public vo...
diff --git a/src/br/pucrio/inf/learn/structlearning/discriminative/application/sequence/data/SequenceDataset.java b/src/br/pucrio/inf/learn/structlearning/discriminative/application/sequence/data/SequenceDataset.java index 37f41f6..d7635c4 100644 --- a/src/br/pucrio/inf/learn/structlearning/discriminative/application/s...
false
true
public boolean parseExample(Collection<ArraySequenceInput> sequenceInputs, Collection<ArraySequenceOutput> sequenceOutputs, String buff) throws DatasetException { // Split tokens. String tokens[] = buff.split("\\t"); if (tokens.length == 0) return false; // The first field is the sentence id. Stri...
public boolean parseExample(Collection<ArraySequenceInput> sequenceInputs, Collection<ArraySequenceOutput> sequenceOutputs, String buff) throws DatasetException { // Split tokens. String tokens[] = buff.split("\\t"); if (tokens.length == 0) return false; // The first field is the sentence id. Stri...
diff --git a/SE/dvbs/app/controllers/LocationController.java b/SE/dvbs/app/controllers/LocationController.java index 52b9dd0..f535cad 100644 --- a/SE/dvbs/app/controllers/LocationController.java +++ b/SE/dvbs/app/controllers/LocationController.java @@ -1,57 +1,57 @@ package controllers; import java.util.List; im...
true
true
public static void addLocation(String name, String zip, String parentId) { // TODO:Autor übergeben (@author alex) Author aut=new Author(); aut.save(); Location newLoc; if(parentId.equals("0")) newLoc = new Location(name, Integer.parseInt(zip), null, aut); else{ Location parentObj=Location.findById(In...
public static void addLocation(String name, String zip, String parentId) { // TODO:Autor übergeben (@author alex) Author aut=new Author(); aut.save(); Location newLoc; if(parentId.equals("0")) newLoc = new Location(name, Integer.parseInt(zip), null, aut); else{ Location parentObj=Location.findById(Lo...
diff --git a/src/main/java/org/elasticsearch/index/analysis/StemmerTokenFilterFactory.java b/src/main/java/org/elasticsearch/index/analysis/StemmerTokenFilterFactory.java index 63a3b4aee44..910481b3049 100644 --- a/src/main/java/org/elasticsearch/index/analysis/StemmerTokenFilterFactory.java +++ b/src/main/java/org/ela...
true
true
public TokenStream create(TokenStream tokenStream) { if ("arabic".equalsIgnoreCase(language)) { return new ArabicStemFilter(tokenStream); } else if ("armenian".equalsIgnoreCase(language)) { return new SnowballFilter(tokenStream, new ArmenianStemmer()); } else if ("bas...
public TokenStream create(TokenStream tokenStream) { if ("arabic".equalsIgnoreCase(language)) { return new ArabicStemFilter(tokenStream); } else if ("armenian".equalsIgnoreCase(language)) { return new SnowballFilter(tokenStream, new ArmenianStemmer()); } else if ("bas...
diff --git a/app/src/processing/app/tools/CreateFont.java b/app/src/processing/app/tools/CreateFont.java index f1d2309c1..d87b00c6d 100644 --- a/app/src/processing/app/tools/CreateFont.java +++ b/app/src/processing/app/tools/CreateFont.java @@ -1,327 +1,330 @@ /* -*- mode: java; c-basic-offset: 2; indent-tabs-mode: ni...
true
true
public CreateFont(Editor editor) { super("Create Font"); targetFolder = editor.sketch.dataFolder; Container paine = getContentPane(); paine.setLayout(new BorderLayout()); //10, 10)); JPanel pain = new JPanel(); pain.setBorder(new EmptyBorder(13, 13, 13, 13)); paine.add(pain, BorderLayou...
public CreateFont(Editor editor) { super("Create Font"); targetFolder = editor.sketch.dataFolder; Container paine = getContentPane(); paine.setLayout(new BorderLayout()); //10, 10)); JPanel pain = new JPanel(); pain.setBorder(new EmptyBorder(13, 13, 13, 13)); paine.add(pain, BorderLayou...
diff --git a/tests/java/fr/isima/ponge/wsprotocol/timed/constraints/parser/GrammarTestCase.java b/tests/java/fr/isima/ponge/wsprotocol/timed/constraints/parser/GrammarTestCase.java index 110aecf..7724449 100644 --- a/tests/java/fr/isima/ponge/wsprotocol/timed/constraints/parser/GrammarTestCase.java +++ b/tests/java/fr/...
false
true
public void testGrammar() { // TODO: add failure cases, and M-Invoke non-valid input such as M-Invoke(T1 < 3) String[] input = { "C-Invoke((((T1 < 5) && (T2 >= 10)) || (T3 = 7)))", "C-Invoke((T1< 3) && (T2 >=5))", "M-Invoke(T1 = 3)", "C-Invoke(T1 < 3)" }; String[] output ...
public void testGrammar() { String[] input = { "C-Invoke((((T1 < 5) && (T2 >= 10)) || (T3 = 7)))", "C-Invoke((T1< 3) && (T2 >=5))", "M-Invoke(T1 = 3)", "C-Invoke(T1 < 3)", "M-Invoke(T1 = 3)", "M-Invoke(T1 < 3)"}; String[] output = { "C-Invoke(((T1 < 5) && (T2 >= 1...
diff --git a/javafx.editor/src/org/netbeans/modules/javafx/preview/PreviewCodeGenerate.java b/javafx.editor/src/org/netbeans/modules/javafx/preview/PreviewCodeGenerate.java index 0eb711e1..c5b5ea96 100644 --- a/javafx.editor/src/org/netbeans/modules/javafx/preview/PreviewCodeGenerate.java +++ b/javafx.editor/src/org/ne...
false
true
public static void process(CompilationInfo info) throws ClassNotFoundException, Exception { FileObject fo = info.getFileObject(); DataObject od = DataObject.find(fo); EditorCookie ec = od.getCookie(EditorCookie.class); JavaFXDocument doc = (JavaFXDocument) ec.openDocument(); ...
public static void process(CompilationInfo info) throws ClassNotFoundException, Exception { FileObject fo = info.getFileObject(); DataObject od = DataObject.find(fo); EditorCookie ec = od.getCookie(EditorCookie.class); JavaFXDocument doc = (JavaFXDocument) ec.openDocument(); ...
diff --git a/srcj/com/sun/electric/tool/io/GDSLayers.java b/srcj/com/sun/electric/tool/io/GDSLayers.java index b406448a3..b3d608c03 100644 --- a/srcj/com/sun/electric/tool/io/GDSLayers.java +++ b/srcj/com/sun/electric/tool/io/GDSLayers.java @@ -1,148 +1,149 @@ /* -*- tab-width: 4 -*- * * Electric(tm) VLSI Design S...
true
true
public static GDSLayers parseLayerString(String string) { ArrayList<Integer> normalLayers = new ArrayList<Integer>(); int pinLayer = -1; int textLayer = -1; for(;;) { String trimmed = string.trim(); if (trimmed.length() == 0) break; int slashPos = trimmed.indexOf('/'); int endPos = trimmed.index...
public static GDSLayers parseLayerString(String string) { ArrayList<Integer> normalLayers = new ArrayList<Integer>(); int pinLayer = -1; int textLayer = -1; for(;;) { String trimmed = string.trim(); if (trimmed.length() == 0) break; int slashPos = trimmed.indexOf('/'); int endPos = trimmed.index...
diff --git a/src/CustomOreGen/mod_CustomOreGen.java b/src/CustomOreGen/mod_CustomOreGen.java index cc5add8..230a67b 100644 --- a/src/CustomOreGen/mod_CustomOreGen.java +++ b/src/CustomOreGen/mod_CustomOreGen.java @@ -1,248 +1,248 @@ package CustomOreGen; import java.util.Iterator; import java.util.Random; impor...
false
true
public void clientCustomPayload(NetClientHandler handler, Packet250CustomPayload packet) { Minecraft mc = Minecraft.getMinecraft(); if (mc.theWorld != null && ClientState.hasWorldChanged(mc.theWorld)) { ClientState.onWorldChanged(mc.theWorld); } CustomPacket...
public void clientCustomPayload(NetClientHandler handler, Packet250CustomPayload packet) { Minecraft mc = Minecraft.getMinecraft(); if (mc.theWorld != null && ClientState.hasWorldChanged(mc.theWorld)) { ClientState.onWorldChanged(mc.theWorld); } CustomPacket...
diff --git a/hale/eu.esdihumboldt.hale.schemaprovider/src/eu/esdihumboldt/hale/schemaprovider/provider/ApacheSchemaProvider.java b/hale/eu.esdihumboldt.hale.schemaprovider/src/eu/esdihumboldt/hale/schemaprovider/provider/ApacheSchemaProvider.java index dc074ab01..bf8337f04 100644 --- a/hale/eu.esdihumboldt.hale.schemap...
true
true
protected SchemaResult loadSchema(String schemaLocation, XmlSchema schema, Map<String, SchemaResult> imports, ProgressIndicator progress) { String namespace = schema.getTargetNamespace(); if (namespace == null || namespace.isEmpty()) { // default to gml schema namespace = "http://www.opengis.net/gml"; } ...
protected SchemaResult loadSchema(String schemaLocation, XmlSchema schema, Map<String, SchemaResult> imports, ProgressIndicator progress) { String namespace = schema.getTargetNamespace(); if (namespace == null || namespace.isEmpty()) { // default to gml schema namespace = "http://www.opengis.net/gml"; } ...
diff --git a/ic2d-plugins-src/org.objectweb.proactive.ic2d.JMXmonitoring/src/org/objectweb/proactive/ic2d/jmxmonitoring/data/ProActiveNodeObject.java b/ic2d-plugins-src/org.objectweb.proactive.ic2d.JMXmonitoring/src/org/objectweb/proactive/ic2d/jmxmonitoring/data/ProActiveNodeObject.java index b8654a40d..d569b33f2 1006...
true
true
private void findActiveObjects() { final List<ObjectName> activeObjectNames = getProxyNodeMBean().getActiveObjects(); // The list that will contain all new children final List<ActiveObject> newChildren = new ArrayList<ActiveObject>(); for (final ObjectName aoObjectName : activeObject...
private void findActiveObjects() { final List<ObjectName> activeObjectNames = getProxyNodeMBean().getActiveObjects(); // The list that will contain all new children final List<ActiveObject> newChildren = new ArrayList<ActiveObject>(); for (final ObjectName aoObjectName : activeObject...
diff --git a/pre-ingest/schema-mapping-tool/applet/src/at/nhmwien/schema_mapping_tool/converter/MODSConverter.java b/pre-ingest/schema-mapping-tool/applet/src/at/nhmwien/schema_mapping_tool/converter/MODSConverter.java index d7dd4701..d3086f6e 100644 --- a/pre-ingest/schema-mapping-tool/applet/src/at/nhmwien/schema_map...
true
true
public static void convertToOLEF( File inputFile, File outputFile ) throws Exception { // Now load the XSL from the internal resources InputStream xslFile = MODSConverter.class.getResourceAsStream( "resources/MODS2OLEF_v0.2.xsl" ); XSLTransformer.transform(inputFile, outputFile, xslFile); ...
public static void convertToOLEF( File inputFile, File outputFile ) throws Exception { // Now load the XSL from the internal resources InputStream xslFile = MODSConverter.class.getResourceAsStream( "resources/MODS2OLEF.xsl" ); XSLTransformer.transform(inputFile, outputFile, xslFile); }
diff --git a/org.reuseware.emftextedit/src/org/reuseware/emftextedit/codegen/TextParserGenerator.java b/org.reuseware.emftextedit/src/org/reuseware/emftextedit/codegen/TextParserGenerator.java index 87b6d0e9d..910465a83 100644 --- a/org.reuseware.emftextedit/src/org/reuseware/emftextedit/codegen/TextParserGenerator.jav...
true
true
private int printTerminal(Terminal terminal,Rule rule,PrintWriter out, int count,Map<GenClass,Collection<Terminal>> eClassesReferenced, Collection<GenFeature> proxyReferences, String indent){ final EStructuralFeature sf = terminal.getFeature().getEcoreFeature(); final String ident = "a" + count; final S...
private int printTerminal(Terminal terminal,Rule rule,PrintWriter out, int count,Map<GenClass,Collection<Terminal>> eClassesReferenced, Collection<GenFeature> proxyReferences, String indent){ final EStructuralFeature sf = terminal.getFeature().getEcoreFeature(); final String ident = "a" + count; final S...
diff --git a/src/main/java/com/synopsys/arc/jenkins/plugins/ownership/nodes/ComputerOwnerHelper.java b/src/main/java/com/synopsys/arc/jenkins/plugins/ownership/nodes/ComputerOwnerHelper.java index da365c5..00a4309 100644 --- a/src/main/java/com/synopsys/arc/jenkins/plugins/ownership/nodes/ComputerOwnerHelper.java +++ b...
true
true
public static void setOwnership(Computer computer, OwnershipDescription descr) throws IOException { Node node = computer.getNode(); if (node == null) { throw new IOException("Cannot set ownership. Probably, the node has been renamed or deleted."); } ComputerOwner...
public static void setOwnership(Computer computer, OwnershipDescription descr) throws IOException { Node node = computer.getNode(); if (node == null) { throw new IOException("Cannot set ownership. Probably, the node has been renamed or deleted."); } NodeOwnerHelp...
diff --git a/CornerstoneCommon/src/main/java/com/paxxis/cornerstone/common/ResponsePromise.java b/CornerstoneCommon/src/main/java/com/paxxis/cornerstone/common/ResponsePromise.java index fac86c9..7b2db60 100644 --- a/CornerstoneCommon/src/main/java/com/paxxis/cornerstone/common/ResponsePromise.java +++ b/CornerstoneCom...
true
true
public RESP getResponse(long timeout, boolean failfast) { RESP response = (RESP) waitForObject(timeout, failfast); if (response.isError()) { this.exception = new ResponseException(response); } if (failfast && this.exception != null) { throw this.exception; ...
public RESP getResponse(long timeout, boolean failfast) { RESP response = (RESP) waitForObject(timeout, failfast); //our response maybe null if failfast is false if (response != null && response.isError()) { this.exception = new ResponseException(response); } if (...
diff --git a/lucene/core/src/test/org/apache/lucene/index/TestConcurrentMergeScheduler.java b/lucene/core/src/test/org/apache/lucene/index/TestConcurrentMergeScheduler.java index 91d563f476..fd7d35938f 100644 --- a/lucene/core/src/test/org/apache/lucene/index/TestConcurrentMergeScheduler.java +++ b/lucene/core/src/test...
true
true
public void testMaxMergeCount() throws Exception { Directory dir = newDirectory(); IndexWriterConfig iwc = new IndexWriterConfig(TEST_VERSION_CURRENT, new MockAnalyzer(random())); final int maxMergeCount = _TestUtil.nextInt(random(), 1, 5); final int maxMergeThreads = _TestUtil.nextInt(random(), 1, m...
public void testMaxMergeCount() throws Exception { Directory dir = newDirectory(); IndexWriterConfig iwc = new IndexWriterConfig(TEST_VERSION_CURRENT, new MockAnalyzer(random())); final int maxMergeCount = _TestUtil.nextInt(random(), 1, 5); final int maxMergeThreads = _TestUtil.nextInt(random(), 1, m...
diff --git a/src/main/java/loci/slim/colorizer/ThreeColorColorize.java b/src/main/java/loci/slim/colorizer/ThreeColorColorize.java index 33dc176..85f7e71 100644 --- a/src/main/java/loci/slim/colorizer/ThreeColorColorize.java +++ b/src/main/java/loci/slim/colorizer/ThreeColorColorize.java @@ -1,91 +1,96 @@ // // Three...
false
true
public Color colorize(double start, double stop, double value) { Color returnColor = Color.BLACK; if (value > 0.0) { if (value >= start && value <= stop) { double range = stop - start; value -= start; if (value < (range / 2.0)) { ...
public Color colorize(double start, double stop, double value) { Color returnColor = Color.BLACK; if (value > 0.0) { if (value >= start && value <= stop) { double range = stop - start; if (0.0 == range) { returnColor = m_color2; ...
diff --git a/build-info-extractor-gradle/src/main/java/org/jfrog/build/ArtifactoryPluginUtils.java b/build-info-extractor-gradle/src/main/java/org/jfrog/build/ArtifactoryPluginUtils.java index 53460c9..a09f602 100644 --- a/build-info-extractor-gradle/src/main/java/org/jfrog/build/ArtifactoryPluginUtils.java +++ b/build...
true
true
public static String getProperty(String propertyName, Project project) { if (System.getProperty(propertyName) != null) { return System.getProperty(propertyName); } StartParameter startParameter = project.getGradle().getStartParameter(); Map<String, String> projectProperti...
public static String getProperty(String propertyName, Project project) { if (System.getProperty(propertyName) != null) { return System.getProperty(propertyName); } StartParameter startParameter = project.getGradle().getStartParameter(); Map<String, String> projectProperti...
diff --git a/src/plugins/spelling/src/java/org/jivesoftware/spellchecker/SpellcheckerPreferenceDialog.java b/src/plugins/spelling/src/java/org/jivesoftware/spellchecker/SpellcheckerPreferenceDialog.java index 39cb283b..8348284a 100644 --- a/src/plugins/spelling/src/java/org/jivesoftware/spellchecker/SpellcheckerPrefere...
true
true
public SpellcheckerPreferenceDialog(ArrayList<String> languages) { this.languages = languages; locales = Locale.getAvailableLocales(); spellPanel.setLayout(new GridBagLayout()); spellcheckingEnabled.setText(SpellcheckerResource.getString("preference.spellcheckingEnabled")); spellcheckingEnabled.add...
public SpellcheckerPreferenceDialog(ArrayList<String> languages) { this.languages = languages; locales = Locale.getAvailableLocales(); spellPanel.setLayout(new GridBagLayout()); spellcheckingEnabled.setText(SpellcheckerResource.getString("preference.spellcheckingEnabled")); spellcheckingEnabled.add...
diff --git a/tools/src/XJavac.java b/tools/src/XJavac.java index 75a59d01d..72d10d75d 100644 --- a/tools/src/XJavac.java +++ b/tools/src/XJavac.java @@ -1,150 +1,151 @@ /* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with ...
false
true
public void execute() throws BuildException { if(isJDK14OrHigher()) { // maybe the right one; check vendor: // by checking system properties: Properties props = null; try { props = System.getProperties(); } catch (Exception e) { ...
public void execute() throws BuildException { if(isJDK14OrHigher()) { // maybe the right one; check vendor: // by checking system properties: Properties props = null; try { props = System.getProperties(); } catch (Exception e) { ...
diff --git a/plugin/src/main/java/org/burgers/elasticsearch/plugin/ElasticSearchMojo.java b/plugin/src/main/java/org/burgers/elasticsearch/plugin/ElasticSearchMojo.java index 79536eb..2f790db 100644 --- a/plugin/src/main/java/org/burgers/elasticsearch/plugin/ElasticSearchMojo.java +++ b/plugin/src/main/java/org/burgers...
true
true
public void execute() throws MojoExecutionException, MojoFailureException { System.out.println("I'm running!!!"); }
public void execute() throws MojoExecutionException, MojoFailureException { getLog().info("Starting Elasticsearch"); }
diff --git a/trunk/Line_Wars/src/linewars/gamestate/mapItems/Projectile.java b/trunk/Line_Wars/src/linewars/gamestate/mapItems/Projectile.java index 07f4155..c466a53 100644 --- a/trunk/Line_Wars/src/linewars/gamestate/mapItems/Projectile.java +++ b/trunk/Line_Wars/src/linewars/gamestate/mapItems/Projectile.java @@ -1,1...
true
true
public void move() { //make sure we're not already dead if(this.getState().equals(MapItemState.Dead)) return; //first check to see if this projectile is outside the lane double pointRatio = lane.getClosestPointRatio(this.getPosition()); Transformation t = lane.getPosition(pointRatio); if(this.getPos...
public void move() { //make sure we're not already dead if(this.getState().equals(MapItemState.Dead)) return; //first check to see if this projectile is outside the lane double pointRatio = lane.getClosestPointRatio(this.getPosition()); Transformation t = lane.getPosition(pointRatio); if(this.getPos...
diff --git a/CocoNuestro/src/compilationunit/GenFinal.java b/CocoNuestro/src/compilationunit/GenFinal.java index 2d6eaa3..a35faa2 100644 --- a/CocoNuestro/src/compilationunit/GenFinal.java +++ b/CocoNuestro/src/compilationunit/GenFinal.java @@ -1,190 +1,192 @@ package compilationunit; import java.io.BufferedWriter;...
false
true
public GenFinal(LinkedList<tupla_Tercetos> colaTercetos, Tablas tabla, String fichero) { int desp_total; //variable para el desplazamiento total de las tablas de simbolos archiEscri= new File(fichero); tupla_Tercetos tupla_actual; String terceto_actual; TablaSimbolos ambito_actual; //cola ...
public GenFinal(LinkedList<tupla_Tercetos> colaTercetos, Tablas tabla, String fichero) { int desp_total; //variable para el desplazamiento total de las tablas de simbolos archiEscri= new File(fichero); tupla_Tercetos tupla_actual; String terceto_actual; TablaSimbolos ambito_actual; //cola ...
diff --git a/TwitterRest/src/matz/UserTimelines.java b/TwitterRest/src/matz/UserTimelines.java index 0fdb1e6..55633a2 100644 --- a/TwitterRest/src/matz/UserTimelines.java +++ b/TwitterRest/src/matz/UserTimelines.java @@ -1,151 +1,151 @@ package matz; import java.io.*; import twitter4j.Paging; import twitter4j.R...
true
true
public static void main(String[] args) { loadAuthInfo(); setTimeLineAuthTail(); for (String arg : args) { if (arg == testPagingOption) testPaging = true; } try { //userList loading BufferedReader ulbr = new BufferedReader(new InputStreamReader(new FileInputStream(userListFile))); String userid...
public static void main(String[] args) { OAuthList = loadAuthInfo(); setTimeLineAuthTail(); for (String arg : args) { if (arg == testPagingOption) testPaging = true; } try { //userList loading BufferedReader ulbr = new BufferedReader(new InputStreamReader(new FileInputStream(userListFile))); S...
diff --git a/gson/src/main/java/com/google/gson/internal/bind/ReflectiveTypeAdapterFactory.java b/gson/src/main/java/com/google/gson/internal/bind/ReflectiveTypeAdapterFactory.java index 8ec8974a..42f5a438 100644 --- a/gson/src/main/java/com/google/gson/internal/bind/ReflectiveTypeAdapterFactory.java +++ b/gson/src/mai...
false
true
private Map<String, BoundField> getBoundFields(Gson context, TypeToken<?> type, Class<?> raw) { Map<String, BoundField> result = new LinkedHashMap<String, BoundField>(); if (raw.isInterface()) { return result; } Type declaredType = type.getType(); while (raw != Object.class) { Field[]...
private Map<String, BoundField> getBoundFields(Gson context, TypeToken<?> type, Class<?> raw) { Map<String, BoundField> result = new LinkedHashMap<String, BoundField>(); if (raw.isInterface()) { return result; } Type declaredType = type.getType(); while (raw != Object.class) { Field[]...
diff --git a/src/cz/muni/stanse/callgraph/CallGraph.java b/src/cz/muni/stanse/callgraph/CallGraph.java index 3861f93..625c8a4 100644 --- a/src/cz/muni/stanse/callgraph/CallGraph.java +++ b/src/cz/muni/stanse/callgraph/CallGraph.java @@ -1,208 +1,208 @@ /* * CallGraph.java * * Licensed under GPLv2. */ packag...
true
true
public CallGraph(List<Element> functionDefinitions, boolean isMultigraph) { this.isMultiGraph = isMultigraph; for(int i=0; i<functionDefinitions.size(); i++) { String functionName = ((Element)functionDefinitions.get(i).selectSingleNode("declarator/id")).getText(); Set<Element...
public CallGraph(List<Element> functionDefinitions, boolean isMultigraph) { this.isMultiGraph = isMultigraph; for(int i=0; i<functionDefinitions.size(); i++) { String functionName = ((Element)functionDefinitions.get(i).selectSingleNode("declarator/descendant-or-self::id")).getText(); ...
diff --git a/src/no/runsafe/nchat/command/ReplyCommand.java b/src/no/runsafe/nchat/command/ReplyCommand.java index 5969a10..3f95cde 100644 --- a/src/no/runsafe/nchat/command/ReplyCommand.java +++ b/src/no/runsafe/nchat/command/ReplyCommand.java @@ -1,47 +1,47 @@ package no.runsafe.nchat.command; import no.runsafe.f...
true
true
public String OnExecute(RunsafePlayer executor, String[] args) { RunsafePlayer whisperer = this.whisperHandler.getLastWhisperedBy(executor); if (whisperer != null) { if (this.whisperHandler.canWhisper(executor, whisperer)) { String message = StringUtils.join(args, " ", 0, args.length); this.whisp...
public String OnExecute(RunsafePlayer executor, String[] args) { RunsafePlayer whisperer = this.whisperHandler.getLastWhisperedBy(executor); if (whisperer != null) { if (this.whisperHandler.canWhisper(executor, whisperer)) { String message = StringUtils.join(args, " ", 0, args.length); this.whisp...
diff --git a/src/jogl/classes/jogamp/opengl/GLContextImpl.java b/src/jogl/classes/jogamp/opengl/GLContextImpl.java index e279c0423..98b9ede36 100644 --- a/src/jogl/classes/jogamp/opengl/GLContextImpl.java +++ b/src/jogl/classes/jogamp/opengl/GLContextImpl.java @@ -1,1920 +1,1920 @@ /* * Copyright (c) 2003 Sun Micros...
false
true
protected final boolean setGLFunctionAvailability(boolean force, int major, int minor, int ctxProfileBits, boolean strictMatch) { if(null!=this.gl && null!=glProcAddressTable && !force) { return true; // already done and not forced } if ( 0 < major && !GLContext.isValidGLVersion(major, minor) ) {...
protected final boolean setGLFunctionAvailability(boolean force, int major, int minor, int ctxProfileBits, boolean strictMatch) { if(null!=this.gl && null!=glProcAddressTable && !force) { return true; // already done and not forced } if ( 0 < major && !GLContext.isValidGLVersion(major, minor) ) {...
diff --git a/notification-consumer-services/src/main/java/uk/ac/bbsrc/tgac/miso/notification/consumer/service/mechanism/PacBioNotificationMessageConsumerMechanism.java b/notification-consumer-services/src/main/java/uk/ac/bbsrc/tgac/miso/notification/consumer/service/mechanism/PacBioNotificationMessageConsumerMechanism....
true
true
private Map<String, Run> processRunJSON(HealthType ht, JSONArray runs, RequestManager requestManager) { Map<String, Run> updatedRuns = new HashMap<String, Run>(); List<Run> runsToSave = new ArrayList<Run>(); DateFormat gsLogDateFormat = new SimpleDateFormat("EEE MMM d HH:mm:ss yyyy"); DateFormat star...
private Map<String, Run> processRunJSON(HealthType ht, JSONArray runs, RequestManager requestManager) { Map<String, Run> updatedRuns = new HashMap<String, Run>(); List<Run> runsToSave = new ArrayList<Run>(); DateFormat gsLogDateFormat = new SimpleDateFormat("EEE MMM d HH:mm:ss yyyy"); DateFormat star...
diff --git a/core/src/main/java/org/dbpedia/extraction/sources/WikipediaDumpParser.java b/core/src/main/java/org/dbpedia/extraction/sources/WikipediaDumpParser.java index 03cbb0f4..cd3b1303 100644 --- a/core/src/main/java/org/dbpedia/extraction/sources/WikipediaDumpParser.java +++ b/core/src/main/java/org/dbpedia/extra...
true
true
private void readPage() throws XMLStreamException { requireStartElement(PAGE_ELEM); nextTag(); //Read title requireStartElement(TITLE_ELEM); String titleStr = _reader.getElementText(); WikiTitle title = parseTitle(titleStr); _reader.nextTag(); // now after </title> //Skip...
private void readPage() throws XMLStreamException { requireStartElement(PAGE_ELEM); nextTag(); //Read title requireStartElement(TITLE_ELEM); String titleStr = _reader.getElementText(); WikiTitle title = parseTitle(titleStr); _reader.nextTag(); // now after </title> //Skip...
diff --git a/src/main/java/uk/co/revthefox/foxbot/commands/CommandUptime.java b/src/main/java/uk/co/revthefox/foxbot/commands/CommandUptime.java index 158ef70..46b9958 100644 --- a/src/main/java/uk/co/revthefox/foxbot/commands/CommandUptime.java +++ b/src/main/java/uk/co/revthefox/foxbot/commands/CommandUptime.java @@ ...
false
true
public void execute(User sender, Channel channel, String[] args) { if (args.length == 0) { try { String uptime = new Scanner(new FileInputStream("/proc/uptime")).next().replaceAll("\\.[0-9]+", ""); int unixTime = Integer.valueOf(uptime); ...
public void execute(User sender, Channel channel, String[] args) { if(System.getProperty("os.name").toLowerCase().contains("win")){ foxbot.getBot().sendNotice(sender, "This command is only supported on linux based systems."); return; } t...
diff --git a/ch.deif.meander/src/ch/deif/meander/map/ComputeLabelingTask.java b/ch.deif.meander/src/ch/deif/meander/map/ComputeLabelingTask.java index 62505606..1eae6051 100644 --- a/ch.deif.meander/src/ch/deif/meander/map/ComputeLabelingTask.java +++ b/ch.deif.meander/src/ch/deif/meander/map/ComputeLabelingTask.java @...
false
true
private Iterable<Label> makeLabels(ProgressMonitor monitor, GC gc, MapInstance map, MapScheme<String> labelScheme) { Collection<Label> labels = new ArrayList<Label>(); Font basefont = new Font(gc.getDevice(), LabelOverlay.ARIAL_NARROW, 12, SWT.NORMAL); for (Location each: map.locations()) { ...
private Iterable<Label> makeLabels(ProgressMonitor monitor, GC gc, MapInstance map, MapScheme<String> labelScheme) { Collection<Label> labels = new ArrayList<Label>(); Font basefont = new Font(gc.getDevice(), LabelOverlay.ARIAL_NARROW, 12, SWT.NORMAL); for (Location each: map.locations()) { ...
diff --git a/src/main/java/herbstJennrichLehmannRitter/ui/GUI/GameMenuGUI.java b/src/main/java/herbstJennrichLehmannRitter/ui/GUI/GameMenuGUI.java index 779a9d8..7853bb4 100644 --- a/src/main/java/herbstJennrichLehmannRitter/ui/GUI/GameMenuGUI.java +++ b/src/main/java/herbstJennrichLehmannRitter/ui/GUI/GameMenuGUI.java...
false
true
private void initStartLocalButton() { this.startLocalButton= createButton("Lokales Spiel starten"); this.startLocalButton.addSelectionListener(new SelectionAdapter() { @Override public void widgetSelected(SelectionEvent e) { try { GameMenuGUI.this.gameServer = Globals.getLocalGameServer(); Game...
private void initStartLocalButton() { this.startLocalButton= createButton("Lokales Spiel starten"); this.startLocalButton.addSelectionListener(new SelectionAdapter() { @Override public void widgetSelected(SelectionEvent e) { try { GameMenuGUI.this.gameServer = Globals.getLocalGameServer(); Game...
diff --git a/evolvers/src/java/uk/ac/cam/caret/rsf/evolverimpl/StandardDynamicListInputEvolver.java b/evolvers/src/java/uk/ac/cam/caret/rsf/evolverimpl/StandardDynamicListInputEvolver.java index 4bf6701..f18eb1f 100644 --- a/evolvers/src/java/uk/ac/cam/caret/rsf/evolverimpl/StandardDynamicListInputEvolver.java +++ b/ev...
true
true
public UIJointContainer evolve(UIInputMany toevolve) { toevolve.parent.remove(toevolve); UIJointContainer togo = new UIJointContainer(toevolve.parent, toevolve.ID, COMPONENT_ID); toevolve.ID = "list-control"; togo.addComponent(toevolve); String[] value = toevolve.getValue(); // Note t...
public UIJointContainer evolve(UIInputMany toevolve) { toevolve.parent.remove(toevolve); UIJointContainer togo = new UIJointContainer(toevolve.parent, toevolve.ID, COMPONENT_ID); toevolve.ID = "list-control"; togo.addComponent(toevolve); String[] value = toevolve.getValue(); // Note t...
diff --git a/app/controllers/api/AbstractMemberJsonSerializer.java b/app/controllers/api/AbstractMemberJsonSerializer.java index 3de79ee..2f67cf9 100644 --- a/app/controllers/api/AbstractMemberJsonSerializer.java +++ b/app/controllers/api/AbstractMemberJsonSerializer.java @@ -1,56 +1,53 @@ package controllers.api; ...
true
true
public JsonElement serializeMember(Member member, Type type, JsonSerializationContext jsonSerializationContext) { JsonObject result = new JsonObject(); result.addProperty("id", member.id); result.addProperty("firstname", member.firstname); result.addProperty("lastname", member.lastn...
public JsonElement serializeMember(Member member, Type type, JsonSerializationContext jsonSerializationContext) { JsonObject result = new JsonObject(); result.addProperty("id", member.id); result.addProperty("firstname", member.firstname); result.addProperty("lastname", member.lastn...
diff --git a/bundles/org.eclipse.equinox.p2.publisher/src/org/eclipse/equinox/p2/publisher/Publisher.java b/bundles/org.eclipse.equinox.p2.publisher/src/org/eclipse/equinox/p2/publisher/Publisher.java index 76df6080f..2ad155eff 100644 --- a/bundles/org.eclipse.equinox.p2.publisher/src/org/eclipse/equinox/p2/publisher/P...
true
true
public IStatus publish(IPublisherAction[] actions, IProgressMonitor monitor) { if (monitor == null) monitor = new NullProgressMonitor(); SubMonitor sub = SubMonitor.convert(monitor, actions.length); if (Tracing.DEBUG_PUBLISHING) Tracing.debug("Invoking publisher"); //$NON-NLS-1$ try { ArtifactProcess ...
public IStatus publish(IPublisherAction[] actions, IProgressMonitor monitor) { if (monitor == null) monitor = new NullProgressMonitor(); SubMonitor sub = SubMonitor.convert(monitor, actions.length); if (Tracing.DEBUG_PUBLISHING) Tracing.debug("Invoking publisher"); //$NON-NLS-1$ try { ArtifactProcess ...
diff --git a/simbeeotic-vis/src/main/java/harvard/robobees/simbeeotic/component/VisComponent3D.java b/simbeeotic-vis/src/main/java/harvard/robobees/simbeeotic/component/VisComponent3D.java index 66c205c..288a68c 100644 --- a/simbeeotic-vis/src/main/java/harvard/robobees/simbeeotic/component/VisComponent3D.java +++ b/si...
true
true
public void initialize() { Dimension size = new Dimension(900, 600); world = new Java3DWorld(useBackground); ControlPanel control = new ControlPanel(world, context.getClockControl(), context.getSimEngine()); JSplitPane pane = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT, world, cont...
public void initialize() { Dimension size = new Dimension(900, 600); world = new Java3DWorld(useBackground); ControlPanel control = new ControlPanel(world, context.getClockControl(), context.getSimEngine()); JSplitPane pane = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT, world, cont...
diff --git a/src/SettingsDialog.java b/src/SettingsDialog.java index 086f87b..011020b 100644 --- a/src/SettingsDialog.java +++ b/src/SettingsDialog.java @@ -1,211 +1,211 @@ /* * To change this template, choose Tools | Templates * and open the template in the editor. */ package twelve.team; //import com.sun...
true
true
private void initComponents() { gameTypeGroup = new javax.swing.ButtonGroup(); btnOK = new javax.swing.JButton(); btnCancel = new javax.swing.JButton(); labelWidth = new javax.swing.JLabel(); labelHeight = new javax.swing.JLabel(); comboWidth = new javax.swing.JCombo...
private void initComponents() { gameTypeGroup = new javax.swing.ButtonGroup(); btnOK = new javax.swing.JButton(); btnCancel = new javax.swing.JButton(); labelWidth = new javax.swing.JLabel(); labelHeight = new javax.swing.JLabel(); comboWidth = new javax.swing.JCombo...
diff --git a/src/net/zdremann/ClassFormaterCallable.java b/src/net/zdremann/ClassFormaterCallable.java index bc68cbb..3568ae8 100644 --- a/src/net/zdremann/ClassFormaterCallable.java +++ b/src/net/zdremann/ClassFormaterCallable.java @@ -1,428 +1,428 @@ package net.zdremann; import java.io.OutputStream; import java...
true
true
private void writeClassToStream(ClassDoc clazz, OutputStream outputStream) throws Exception { PackageDoc pack = clazz.containingPackage(); outputStream.write(String.format("package %s;%n%n", pack.name()).getBytes()); outputStream.write(String.format("import java.StdTypes;%n").getBytes()); outputStream.writ...
private void writeClassToStream(ClassDoc clazz, OutputStream outputStream) throws Exception { PackageDoc pack = clazz.containingPackage(); outputStream.write(String.format("package %s;%n%n", pack.name()).getBytes()); outputStream.write(String.format("import java.StdTypes;%n").getBytes()); outputStream.writ...
diff --git a/VisualWAS/src/main/java/com/github/veithen/visualwas/WebSpherePropertiesPanel.java b/VisualWAS/src/main/java/com/github/veithen/visualwas/WebSpherePropertiesPanel.java index f8ef61b..c19f0e1 100644 --- a/VisualWAS/src/main/java/com/github/veithen/visualwas/WebSpherePropertiesPanel.java +++ b/VisualWAS/src/...
false
true
public WebSpherePropertiesPanel() { setLayout(new GridBagLayout()); { JLabel hostLabel = new JLabel(); Mnemonics.setLocalizedText(hostLabel, NbBundle.getMessage(WebSpherePropertiesPanel.class, "LBL_Host")); add(hostLabel, new GridBagConstraints(0, 0, 1, 1, 0.0, 0...
public WebSpherePropertiesPanel() { setLayout(new GridBagLayout()); { JLabel hostLabel = new JLabel(); Mnemonics.setLocalizedText(hostLabel, NbBundle.getMessage(WebSpherePropertiesPanel.class, "LBL_Host")); add(hostLabel, new GridBagConstraints(0, 0, 1, 1, 0.0, 0...
diff --git a/src/com/modcrafting/identify/commands/Buying.java b/src/com/modcrafting/identify/commands/Buying.java index 4fdeb7c..5694d25 100644 --- a/src/com/modcrafting/identify/commands/Buying.java +++ b/src/com/modcrafting/identify/commands/Buying.java @@ -1,203 +1,204 @@ package com.modcrafting.identify.commands;...
true
true
public boolean buyList(Player sender, String args, String lvl){ //Config YamlConfiguration config = (YamlConfiguration) plugin.getConfig(); int iprice = config.getInt("prices.levelprice", 500); //Item ItemStack item = sender.getItemInHand(); String itemName = item.getType().toString(); if (item.getTyp...
public boolean buyList(Player sender, String args, String lvl){ //Config YamlConfiguration config = (YamlConfiguration) plugin.getConfig(); int iprice = config.getInt("prices.levelprice", 500); //Item ItemStack item = sender.getItemInHand(); String itemName = item.getType().toString(); if (item.getTyp...
diff --git a/src/gwt/src/org/rstudio/studio/client/workbench/views/source/editors/text/ace/Search.java b/src/gwt/src/org/rstudio/studio/client/workbench/views/source/editors/text/ace/Search.java index 06412a5792..464b00a5aa 100644 --- a/src/gwt/src/org/rstudio/studio/client/workbench/views/source/editors/text/ace/Searc...
true
true
public static native Search create(String needle, boolean backwards, boolean wrap, boolean caseSensitive, boolean wholeWord, bo...
public static native Search create(String needle, boolean backwards, boolean wrap, boolean caseSensitive, boolean wholeWord, bo...
diff --git a/org.sonar.ide.eclipse.ui.tests/src/org/sonar/ide/eclipse/ui/tests/ConfigurationTest.java b/org.sonar.ide.eclipse.ui.tests/src/org/sonar/ide/eclipse/ui/tests/ConfigurationTest.java index 10448e0c..c55d5e82 100644 --- a/org.sonar.ide.eclipse.ui.tests/src/org/sonar/ide/eclipse/ui/tests/ConfigurationTest.java ...
true
true
public void test() throws Exception { // test default assertThat(table.rowCount(), equalTo(1)); SWTBotTableItem item = table.getTableItem(0); assertThat(item.getText(), is(DEFAULT_HOST)); assertThat(table.getTableItem(0).isChecked(), is(true)); // test add bot.button("Add...").click(); ...
public void test() throws Exception { // test default assertThat(table.rowCount(), equalTo(1)); SWTBotTableItem item = table.getTableItem(0); // assertThat(item.getText(), is(DEFAULT_HOST)); assertThat(table.getTableItem(0).isChecked(), is(true)); // test add bot.button("Add...").click();...
diff --git a/adl-frontend/src/main/java/org/ow2/mind/adl/graph/InstanceNameInstantiator.java b/adl-frontend/src/main/java/org/ow2/mind/adl/graph/InstanceNameInstantiator.java index 8d5bf84..cfee99b 100644 --- a/adl-frontend/src/main/java/org/ow2/mind/adl/graph/InstanceNameInstantiator.java +++ b/adl-frontend/src/main/j...
false
true
protected void initInstanceName(final ComponentGraph graph, String path) { String instanceName = (String) graph.getDecoration("instance-name"); if (instanceName == null) { final Definition def = graph.getDefinition(); if (ASTHelper.isSingleton(def)) { // component is a singleton in...
protected void initInstanceName(final ComponentGraph graph, String path) { String instanceName = (String) graph.getDecoration("instance-name"); if (instanceName == null) { final Definition def = graph.getDefinition(); if (ASTHelper.isSingleton(def)) { // component is a singleton in...
diff --git a/src/glfx/GLFX.java b/src/glfx/GLFX.java index 1bcbcd1..ec26c2e 100644 --- a/src/glfx/GLFX.java +++ b/src/glfx/GLFX.java @@ -1,20 +1,20 @@ package glfx; import engine.Engine; public class GLFX { public static void main(String[] args) { // Initialize Engine Engine engine=new Eng...
true
true
public static void main(String[] args) { // Initialize Engine Engine engine=new Engine(1024,768); engine.setIcon("/imgs/icon32.png"); Engine.setTitle("OpenGL FrameworkX"); engine.testLoop(); }
public static void main(String[] args) { // Initialize Engine Engine engine=new Engine(1024,768); engine.setIcon("imgs/icon32.png"); Engine.setTitle("OpenGL FrameworkX"); engine.testLoop(); }
diff --git a/src/convexhull/main/ConvexHull.java b/src/convexhull/main/ConvexHull.java index e0b6fbf..fe1d258 100644 --- a/src/convexhull/main/ConvexHull.java +++ b/src/convexhull/main/ConvexHull.java @@ -1,314 +1,316 @@ package convexhull.main; import convexhull.algorithms.AklToussaintHeuristic; import convexhull...
true
true
public static void main(String[] args) { LinkedList allPoints = null; Scanner in = new Scanner(System.in); String input; boolean ok = false; if (args.length >= 1) { input = args[0]; } else { input = ""; } while (!ok) { ...
public static void main(String[] args) { LinkedList allPoints = null; Scanner in = new Scanner(System.in); String input; boolean ok = false; if (args.length >= 1) { input = args[0]; } else { input = ""; } while (!ok) { ...
diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandsell.java b/Essentials/src/com/earth2me/essentials/commands/Commandsell.java index 7d66284..a80b283 100644 --- a/Essentials/src/com/earth2me/essentials/commands/Commandsell.java +++ b/Essentials/src/com/earth2me/essentials/commands/Commandsell.java @@ ...
true
true
public void run(Server server, Essentials parent, User user, String commandLabel, String[] args) throws Exception { if (args.length < 1) { user.sendMessage("§cUsage: /sell [itemname|id] [-][amount]"); return; } ItemStack is = ItemDb.get(args[0]); if(is.getType() == Material.AIR) { throw new Exception...
public void run(Server server, Essentials parent, User user, String commandLabel, String[] args) throws Exception { if (args.length < 1) { user.sendMessage("§cUsage: /sell [itemname|id] [-][amount]"); return; } ItemStack is = ItemDb.get(args[0]); if(is.getType() == Material.AIR) { throw new Exception...
diff --git a/src/replicatorg/drivers/reprap/RepRap5DDriver.java b/src/replicatorg/drivers/reprap/RepRap5DDriver.java index bed30c41..28bca974 100644 --- a/src/replicatorg/drivers/reprap/RepRap5DDriver.java +++ b/src/replicatorg/drivers/reprap/RepRap5DDriver.java @@ -1,1331 +1,1331 @@ /* RepRap5DDriver.java This ...
true
true
public void serialByteReceivedEvent(ByteFifo fifo) { readResponseLock.lock(); serialInUse.lock(); byte[] response = fifo.dequeueLine(); int responseLength = response.length; serialInUse.unlock(); // 0 is now an acceptable value; it merely means that we timed out // waiting for input if (responseLengt...
public void serialByteReceivedEvent(ByteFifo fifo) { readResponseLock.lock(); serialInUse.lock(); byte[] response = fifo.dequeueLine(); int responseLength = response.length; serialInUse.unlock(); // 0 is now an acceptable value; it merely means that we timed out // waiting for input if (responseLengt...
diff --git a/src/mozeq/irc/bot/plugins/BugzillaPlugin.java b/src/mozeq/irc/bot/plugins/BugzillaPlugin.java index 6f9deba..b058ba4 100644 --- a/src/mozeq/irc/bot/plugins/BugzillaPlugin.java +++ b/src/mozeq/irc/bot/plugins/BugzillaPlugin.java @@ -1,76 +1,76 @@ package mozeq.irc.bot.plugins; import java.net.MalformedU...
true
true
public ArrayList<String> run(IrcMessage message, String command) { clearResponses(); String[] params = message.body.split("#"); if (params.length < 2) { System.err.println("Can't parse the ticket id from the message"); return responses; } BugzillaProxy bz = new BugzillaProxy(BZ_URL); try { bz.con...
public ArrayList<String> run(IrcMessage message, String command) { clearResponses(); String[] params = command.split("#"); if (params.length < 2) { System.err.println("Can't parse the ticket id from the message"); return responses; } BugzillaProxy bz = new BugzillaProxy(BZ_URL); try { bz.connect(...
diff --git a/work-swing-impl/impl/src/main/java/org/cytoscape/work/internal/task/JDialogTaskManager.java b/work-swing-impl/impl/src/main/java/org/cytoscape/work/internal/task/JDialogTaskManager.java index 9b5d30532..eb693da0c 100644 --- a/work-swing-impl/impl/src/main/java/org/cytoscape/work/internal/task/JDialogTaskMa...
false
true
public void run() { try { // actually run the first task // don't dispaly the tunables here - they were handled above. taskMonitor.setTask(first); first.run(taskMonitor); if (taskMonitor.cancelled()) return; // now execute all subsequent tasks while (taskIterator.hasNext()) { ...
public void run() { try { // actually run the first task // don't dispaly the tunables here - they were handled above. taskMonitor.setTask(first); first.run(taskMonitor); if (taskMonitor.cancelled()) return; // now execute all subsequent tasks while (taskIterator.hasNext()) { ...
diff --git a/src/aiml/substitutions/DuplicateSubstitutionException.java b/src/aiml/substitutions/DuplicateSubstitutionException.java index 899b721..7915d65 100644 --- a/src/aiml/substitutions/DuplicateSubstitutionException.java +++ b/src/aiml/substitutions/DuplicateSubstitutionException.java @@ -1,33 +1,33 @@ /* ...
true
true
public DuplicateSubstitutionException(String pattern, String replacement) { super( String.format( "Substitution map already contains the replacement \"$s\" for the pattern \"%s\"", replacement, pattern)); }
public DuplicateSubstitutionException(String pattern, String replacement) { super( String.format( "Substitution map already contains the replacement \"%s\" for the pattern \"%s\"", replacement, pattern)); }
diff --git a/percolation/PercolationStats.java b/percolation/PercolationStats.java index a7e4fa1..8679f60 100644 --- a/percolation/PercolationStats.java +++ b/percolation/PercolationStats.java @@ -1,79 +1,79 @@ /** * Maria Pacana (mariapacana) * 10/8/2013 (Algorithms, Part I) * * The PercolationStats class ru...
true
true
public PercolationStats(int N, int T) { validNT(N,T); stats = new double[T]; numExperiments = T; for (int i=0; i<T; i++) { Percolation myPerc = new Percolation(N); float openSites = 0; while (!myPerc.percolates()) { int randX = StdRandom.uniform(N)+1; int randY = StdRandom.uniform(N...
public PercolationStats(int N, int T) { validNT(N,T); stats = new double[T]; numExperiments = T; for (int i=0; i<T; i++) { Percolation myPerc = new Percolation(N); float openSites = 0; while (!myPerc.percolates()) { int randX = StdRandom.uniform(N)+1; int randY = StdRandom.uniform(N...
diff --git a/src/checkstyle/com/puppycrawl/tools/checkstyle/checks/usage/transmogrify/BaseScope.java b/src/checkstyle/com/puppycrawl/tools/checkstyle/checks/usage/transmogrify/BaseScope.java index 8cad34cd..ea03bf68 100644 --- a/src/checkstyle/com/puppycrawl/tools/checkstyle/checks/usage/transmogrify/BaseScope.java +++...
true
true
public IClass getClassDefinition(String name) { IClass result = null; result = LiteralResolver.getDefinition(name); if (result == null) { int lastDot = name.lastIndexOf("."); if (lastDot > 0) { String packageName = name.substring(0, lastDot); String className = name.substring...
public IClass getClassDefinition(String name) { IClass result = null; result = LiteralResolver.getDefinition(name); if (result == null) { int lastDot = name.lastIndexOf("."); if (lastDot > 0) { String packageName = name.substring(0, lastDot); String className = name.substring...
diff --git a/modules/amazon-ec2-provisioner/src/test/java/com/elasticgrid/platforms/ec2/EC2CloudPlatformManagerTest.java b/modules/amazon-ec2-provisioner/src/test/java/com/elasticgrid/platforms/ec2/EC2CloudPlatformManagerTest.java index ef1535cc..7e924227 100644 --- a/modules/amazon-ec2-provisioner/src/test/java/com/el...
true
true
public void testStartingARunningGrid() throws ClusterException, ExecutionException, TimeoutException, InterruptedException, RemoteException { EasyMock.expect(mockLocator.findNodes("test")) .andReturn(null); EasyMock.expect(mockEC2.startInstances(null, 1, 1, Arrays.asList("elastic-gri...
public void testStartingARunningGrid() throws ClusterException, ExecutionException, TimeoutException, InterruptedException, RemoteException { EasyMock.expect(mockLocator.findNodes("test")) .andReturn(null); EasyMock.expect(mockEC2.startInstances(null, 1, 1, Arrays.asList("elastic-gri...
diff --git a/src/net/erbros/lottery/LotteryGame.java b/src/net/erbros/lottery/LotteryGame.java index 8ae6877..837d311 100644 --- a/src/net/erbros/lottery/LotteryGame.java +++ b/src/net/erbros/lottery/LotteryGame.java @@ -1,472 +1,473 @@ package net.erbros.lottery; import java.io.*; import java.util.ArrayList; imp...
true
true
public boolean getWinner() { final ArrayList<String> players = playersInFile("lotteryPlayers.txt"); if (players.isEmpty()) { Bukkit.broadcastMessage( ChatColor.GOLD + "[LOTTERY] " + ChatColor.WHITE + "No tickets sold this round. Thats a shame."); return false; } else { // Find rand. Do minu...
public boolean getWinner() { final ArrayList<String> players = playersInFile("lotteryPlayers.txt"); if (players.isEmpty()) { Bukkit.broadcastMessage( ChatColor.GOLD + "[LOTTERY] " + ChatColor.WHITE + "No tickets sold this round. Thats a shame."); return false; } else { // Find rand. Do minu...
diff --git a/Java/BodyBuggBypass.java b/Java/BodyBuggBypass.java index 8f0b74e..9785749 100644 --- a/Java/BodyBuggBypass.java +++ b/Java/BodyBuggBypass.java @@ -1,61 +1,62 @@ package com.bypass; import com.bodymedia.common.applets.CommandException; import com.bodymedia.common.applets.device.util.LibraryException; ...
false
true
public static void main(String[] args) throws CommandException, LibraryException, IOException { Logger log = Logger.getLogger(); log.setPriority(3); Usb usb = new Usb("bmusbapex5", Usb.ANY); String[] ports = usb.getArmbandPorts(); if(ports.length < 1) { System.out.println("No BodyBuggs detected."...
public static void main(String[] args) throws CommandException, LibraryException, IOException { Logger log = Logger.getLogger(); log.setPriority(3); Usb usb = new Usb("bmusbapex5", Usb.ANY); String[] ports = usb.getArmbandPorts(); if(ports.length < 1) { System.out.println("No BodyBuggs detected."...
diff --git a/crypto/src/org/bouncycastle/crypto/tls/TlsECKeyExchange.java b/crypto/src/org/bouncycastle/crypto/tls/TlsECKeyExchange.java index ebf1d503..0d4a2f51 100644 --- a/crypto/src/org/bouncycastle/crypto/tls/TlsECKeyExchange.java +++ b/crypto/src/org/bouncycastle/crypto/tls/TlsECKeyExchange.java @@ -1,207 +1,210 ...
false
true
public void processServerCertificate(Certificate serverCertificate) throws IOException { X509CertificateStructure x509Cert = serverCertificate.certs[0]; SubjectPublicKeyInfo keyInfo = x509Cert.getSubjectPublicKeyInfo(); try { this.serverPublicKey = PublicKeyFactory.c...
public void processServerCertificate(Certificate serverCertificate) throws IOException { X509CertificateStructure x509Cert = serverCertificate.certs[0]; SubjectPublicKeyInfo keyInfo = x509Cert.getSubjectPublicKeyInfo(); try { this.serverPublicKey = PublicKeyFactory.c...
diff --git a/src/AVLTree.java b/src/AVLTree.java index 3d15097..98f143f 100644 --- a/src/AVLTree.java +++ b/src/AVLTree.java @@ -1,656 +1,667 @@ import java.util.ArrayList; import java.util.ConcurrentModificationException; import java.util.Iterator; import java.util.NoSuchElementException; import java.util.Stack; ...
true
true
public AVLNode remove(T item, modWrapper mod) { if(left == null && right == null) { if(item.compareTo(element) == 0) { mod.setTrue(); return null; } return this; } else if(right == null) { if(item.compareTo(element) < 0) { left = left.remove(item, mod); } mod.setTrue(); ...
public AVLNode remove(T item, modWrapper mod) { if(left == null && right == null) { if(item.compareTo(element) == 0) { mod.setTrue(); return null; } return this; } else if(right == null) { if(item.compareTo(element) < 0) { left = left.remove(item, mod); } mod.setTrue(); ...
diff --git a/src/test/com/example/Main.java b/src/test/com/example/Main.java index 06bebdc..4fb30b3 100644 --- a/src/test/com/example/Main.java +++ b/src/test/com/example/Main.java @@ -1,42 +1,42 @@ package test.com.example; import net.csdn.common.settings.ImmutableSettings; import net.csdn.common.settings.Interna...
true
true
public static void main(String[] args) { //find the config file InputStream inputStream = Main.class.getResourceAsStream("application_for_test.yml"); Settings settings = InternalSettingsPreparer.simplePrepareSettings(ImmutableSettings.Builder.EMPTY_SETTINGS, inputStream); ...
public static void main(String[] args) { //find the config file InputStream inputStream = Main.class.getResourceAsStream("application_for_test.yml"); Settings settings = InternalSettingsPreparer.simplePrepareSettings(ImmutableSettings.Builder.EMPTY_SETTINGS, inputStream); ...
diff --git a/src/nu/validator/htmlparser/impl/Tokenizer.java b/src/nu/validator/htmlparser/impl/Tokenizer.java index c5f1f4e..49f626f 100755 --- a/src/nu/validator/htmlparser/impl/Tokenizer.java +++ b/src/nu/validator/htmlparser/impl/Tokenizer.java @@ -1,4861 +1,4863 @@ /* * Copyright (c) 2005, 2006, 2007 Henri Sivo...
true
true
private void stateLoop(int state, char c, boolean reconsume, int returnState) throws SAXException { stateloop: for (;;) { switch (state) { case PLAINTEXT: plaintextloop: for (;;) { if (!reconsume) { ...
private void stateLoop(int state, char c, boolean reconsume, int returnState) throws SAXException { stateloop: for (;;) { switch (state) { case PLAINTEXT: plaintextloop: for (;;) { if (!reconsume) { ...
diff --git a/net.sf.eclipsefp.haskell.ui/src/net/sf/eclipsefp/haskell/ui/internal/editors/haskell/imports/ImportsManager.java b/net.sf.eclipsefp.haskell.ui/src/net/sf/eclipsefp/haskell/ui/internal/editors/haskell/imports/ImportsManager.java index c744a540..7656e656 100644 --- a/net.sf.eclipsefp.haskell.ui/src/net/sf/ec...
false
true
public ArrayList<AnImport> parseImports() { ArrayList<AnImport> r = new ArrayList<AnImport>(); int lines = doc.getNumberOfLines(); for (int line = 0; line < lines; line++) { try { IRegion reg = doc.getLineInformation( line ); String contents = doc.get( reg.getOffset(), reg.getLength(...
public ArrayList<AnImport> parseImports() { ArrayList<AnImport> r = new ArrayList<AnImport>(); int lines = doc.getNumberOfLines(); for (int line = 0; line < lines; line++) { try { IRegion reg = doc.getLineInformation( line ); String contents = doc.get( reg.getOffset(), reg.getLength(...
diff --git a/dspace-api/src/main/java/org/dspace/search/SearchConsumer.java b/dspace-api/src/main/java/org/dspace/search/SearchConsumer.java index 35af56a6f..a56af7e61 100644 --- a/dspace-api/src/main/java/org/dspace/search/SearchConsumer.java +++ b/dspace-api/src/main/java/org/dspace/search/SearchConsumer.java @@ -1,2...
true
true
public void consume(Context ctx, Event event) throws Exception { if (objectsToUpdate == null) { objectsToUpdate = new HashSet<DSpaceObject>(); objectsToDelete = new HashSet<ObjectIdentifier>(); } int st = event.getSubjectType(); if (!(st == Const...
public void consume(Context ctx, Event event) throws Exception { if (objectsToUpdate == null) { objectsToUpdate = new HashSet<DSpaceObject>(); objectsToDelete = new HashSet<ObjectIdentifier>(); } int st = event.getSubjectType(); if (!(st == Const...
diff --git a/src/main/java/com/wesabe/grendel/openpgp/UnlockedSubKey.java b/src/main/java/com/wesabe/grendel/openpgp/UnlockedSubKey.java index 8a5d7ea..75bd512 100644 --- a/src/main/java/com/wesabe/grendel/openpgp/UnlockedSubKey.java +++ b/src/main/java/com/wesabe/grendel/openpgp/UnlockedSubKey.java @@ -1,24 +1,24 @@ ...
true
true
public UnlockedSubKey(PGPSecretKey key, MasterKey masterKey, PGPPrivateKey privateKey) { super(key, masterKey); this.privateKey = privateKey; }
protected UnlockedSubKey(PGPSecretKey key, MasterKey masterKey, PGPPrivateKey privateKey) { super(key, masterKey); this.privateKey = privateKey; }
diff --git a/src/jmetest/renderer/loader/TestMilkshapeASCII.java b/src/jmetest/renderer/loader/TestMilkshapeASCII.java index 641f8ba38..3e0a69216 100755 --- a/src/jmetest/renderer/loader/TestMilkshapeASCII.java +++ b/src/jmetest/renderer/loader/TestMilkshapeASCII.java @@ -1,194 +1,194 @@ /* * Copyright (c) 2003, jMo...
false
true
protected void initGame() { ZBufferState zstate = display.getRenderer().getZBufferState(); zstate.setEnabled(true); scene = new Node("Milkshape Model"); scene.setRenderState(zstate); model = new MilkshapeASCIIModel("data/model/msascii/run.txt"); model.getAnimationController().setFreque...
protected void initGame() { ZBufferState zstate = display.getRenderer().getZBufferState(); zstate.setEnabled(true); scene = new Node("Model"); scene.setRenderState(zstate); model = new MilkshapeASCIIModel("Milkshape Model","data/model/msascii/run.txt"); model.getAnimationController().s...
diff --git a/src/paulscode/android/mupen64plusae/CoreInterface.java b/src/paulscode/android/mupen64plusae/CoreInterface.java index 55d00668..2dc50d6c 100644 --- a/src/paulscode/android/mupen64plusae/CoreInterface.java +++ b/src/paulscode/android/mupen64plusae/CoreInterface.java @@ -1,574 +1,575 @@ /** * Mupen64PlusA...
true
true
private static void syncConfigFiles( UserPrefs user, AppData appData ) { //@formatter:off // GLES2N64 config file ConfigFile gles2n64_conf = new ConfigFile( appData.gles2n64_conf ); gles2n64_conf.put( "[<sectionless!>]", "enable fog", booleanToString( user.isGles2N64FogE...
private static void syncConfigFiles( UserPrefs user, AppData appData ) { //@formatter:off // GLES2N64 config file ConfigFile gles2n64_conf = new ConfigFile( appData.gles2n64_conf ); gles2n64_conf.put( "[<sectionless!>]", "enable fog", booleanToString( user.isGles2N64FogE...
diff --git a/server/src/test/java/org/uiautomation/ios/e2e/IDETests.java b/server/src/test/java/org/uiautomation/ios/e2e/IDETests.java index 688f52ce..1b5453c2 100644 --- a/server/src/test/java/org/uiautomation/ios/e2e/IDETests.java +++ b/server/src/test/java/org/uiautomation/ios/e2e/IDETests.java @@ -1,20 +1,20 @@ pa...
true
true
public static void main(String[] args) throws Exception { server = new IOSServer(config); server.init(config); server.start(); System.out.println("started"); }
public static void main(String[] args) throws Exception { server = new IOSServer(config); server.init(); server.start(); System.out.println("started"); }
diff --git a/org.jcryptool.visual.jctca/src/org/jcryptool/visual/jctca/UserViews/SignCert.java b/org.jcryptool.visual.jctca/src/org/jcryptool/visual/jctca/UserViews/SignCert.java index 61430ad..fdf252c 100644 --- a/org.jcryptool.visual.jctca/src/org/jcryptool/visual/jctca/UserViews/SignCert.java +++ b/org.jcryptool.vis...
true
true
public SignCert(Composite content, Composite exp) { this.composite = new Composite(content, SWT.NONE); this.composite.setLayout(new GridLayout(1, false)); GridData gd_comp = new GridData(SWT.FILL, SWT.FILL, true, false); composite.setLayoutData(gd_comp); Group cmp_mini = new Group(composite, SWT.NONE); ...
public SignCert(Composite content, Composite exp) { this.composite = new Composite(content, SWT.NONE); this.composite.setLayout(new GridLayout(1, false)); GridData gd_comp = new GridData(SWT.FILL, SWT.FILL, true, false); composite.setLayoutData(gd_comp); Group cmp_mini = new Group(composite, SWT.NONE); ...
diff --git a/src/org/openmrs/module/xforms/XformObsEdit.java b/src/org/openmrs/module/xforms/XformObsEdit.java index 14e486e..387eee1 100644 --- a/src/org/openmrs/module/xforms/XformObsEdit.java +++ b/src/org/openmrs/module/xforms/XformObsEdit.java @@ -1,745 +1,747 @@ package org.openmrs.module.xforms; import java....
true
true
public static void fillObs(HttpServletRequest request,Document doc, Integer encounterId, String xml)throws Exception{ Element formNode = XformBuilder.getElement(doc.getRootElement(),"form"); if(formNode == null) return; Encounter encounter = Context.getEncounterService().getEncounter(encounterId); if(enco...
public static void fillObs(HttpServletRequest request,Document doc, Integer encounterId, String xml)throws Exception{ Element formNode = XformBuilder.getElement(doc.getRootElement(),"form"); if(formNode == null) return; Encounter encounter = Context.getEncounterService().getEncounter(encounterId); if(enco...
diff --git a/common/plugins/org.jboss.tools.common/src/org/jboss/tools/common/util/SwtUtil.java b/common/plugins/org.jboss.tools.common/src/org/jboss/tools/common/util/SwtUtil.java index 6638b413f..d8d6c6d68 100644 --- a/common/plugins/org.jboss.tools.common/src/org/jboss/tools/common/util/SwtUtil.java +++ b/common/plu...
true
true
public static void bindDisposal(final Resource resource, Widget widget) { widget.addDisposeListener(new DisposeListener() { public void widgetDisposed(DisposeEvent e) { resource.dispose(); System.out.println("Resource Disposed: " + resource); } }); }
public static void bindDisposal(final Resource resource, Widget widget) { widget.addDisposeListener(new DisposeListener() { public void widgetDisposed(DisposeEvent e) { resource.dispose(); } }); }
diff --git a/samples/jaxp/SourceValidator.java b/samples/jaxp/SourceValidator.java index ede7fd02f..8f72857f8 100644 --- a/samples/jaxp/SourceValidator.java +++ b/samples/jaxp/SourceValidator.java @@ -1,548 +1,549 @@ /* * Copyright 2005 The Apache Software Foundation. * * Licensed under the Apache License, Vers...
true
true
public static void main (String [] argv) { // is there anything to do? if (argv.length == 0) { printUsage(); System.exit(1); } // variables Vector schemas = null; Vector instances = null; int repetition = DEFAULT_REPET...
public static void main (String [] argv) { // is there anything to do? if (argv.length == 0) { printUsage(); System.exit(1); } // variables Vector schemas = null; Vector instances = null; int repetition = DEFAULT_REPET...
diff --git a/onebusaway-nyc-transit-data-federation/src/test/java/org/onebusaway/nyc/transit_data_federation/bundle/tasks/stif/TestStifTripLoaderTest.java b/onebusaway-nyc-transit-data-federation/src/test/java/org/onebusaway/nyc/transit_data_federation/bundle/tasks/stif/TestStifTripLoaderTest.java index c2a343244..d714...
true
true
public void testLoader() throws IOException { InputStream in = getClass().getResourceAsStream("stif.m_0014__.210186.sun"); String gtfs = getClass().getResource("m14.zip").getFile(); GtfsReader reader = new GtfsReader(); GtfsRelationalDaoImpl dao = new GtfsRelationalDaoImpl(); reader.setEntityStor...
public void testLoader() throws IOException { InputStream in = getClass().getResourceAsStream("stif.m_0014__.210186.sun"); String gtfs = getClass().getResource("m14.zip").getFile(); GtfsReader reader = new GtfsReader(); GtfsRelationalDaoImpl dao = new GtfsRelationalDaoImpl(); reader.setEntityStor...
diff --git a/src/main/java/tachyon/DataServerMessage.java b/src/main/java/tachyon/DataServerMessage.java index 00ed875b0c..7473f4b9fa 100644 --- a/src/main/java/tachyon/DataServerMessage.java +++ b/src/main/java/tachyon/DataServerMessage.java @@ -1,183 +1,184 @@ package tachyon; import java.io.IOException; import ...
true
true
public static DataServerMessage createPartitionResponseMessage(boolean toSend, int fileId) { DataServerMessage ret = new DataServerMessage(toSend, DATA_SERVER_RESPONSE_MESSAGE); if (toSend) { ret.mFileId = fileId; try { String filePath = Config.WORKER_DATA_FOLDER + fileId; ret.LO...
public static DataServerMessage createPartitionResponseMessage(boolean toSend, int fileId) { DataServerMessage ret = new DataServerMessage(toSend, DATA_SERVER_RESPONSE_MESSAGE); if (toSend) { ret.mFileId = fileId; try { String filePath = Config.WORKER_DATA_FOLDER + fileId; ret.LO...
diff --git a/src/test/java/org/mule/transport/sftp/dataintegrity/SftpWrongPassPhraseOnOutboundDirectoryTestCase.java b/src/test/java/org/mule/transport/sftp/dataintegrity/SftpWrongPassPhraseOnOutboundDirectoryTestCase.java index a80a8d3..ab487d2 100644 --- a/src/test/java/org/mule/transport/sftp/dataintegrity/SftpWrong...
true
true
public void testWrongPassPhraseOnOutboundDirectory() throws Exception { MuleClient muleClient = new MuleClient(); // Send an file to the SFTP server, which the inbound-outboundEndpoint then can pick up Exception exception = dispatchAndWaitForException(new DispatchParameters(INBOUND_ENDPOINT_NAME, null), "sf...
public void testWrongPassPhraseOnOutboundDirectory() throws Exception { MuleClient muleClient = new MuleClient(); // Send an file to the SFTP server, which the inbound-outboundEndpoint then can pick up Exception exception = dispatchAndWaitForException(new DispatchParameters(INBOUND_ENDPOINT_NAME, null), "sf...
diff --git a/src/com/axiastudio/pypapi/ui/PickerDialog.java b/src/com/axiastudio/pypapi/ui/PickerDialog.java index f2d9bc1..25167a2 100644 --- a/src/com/axiastudio/pypapi/ui/PickerDialog.java +++ b/src/com/axiastudio/pypapi/ui/PickerDialog.java @@ -1,221 +1,222 @@ /* * Copyright (C) 2012 AXIA Studio (http://www.axia...
true
true
private void init(){ this.setWindowTitle("Research and selection"); this.layout = new QVBoxLayout(this); this.layout.setSpacing(4); this.tableView = new QTableView(); this.tableView.setSizePolicy(new QSizePolicy(QSizePolicy.Policy.Expanding, QSizePolicy.Policy...
private void init(){ this.setWindowTitle("Research and selection"); this.layout = new QVBoxLayout(this); this.layout.setSpacing(4); this.tableView = new QTableView(); this.tableView.setSizePolicy(new QSizePolicy(QSizePolicy.Policy.Expanding, QSizePolicy.Policy...
diff --git a/src/me/sd5/mcbetaterraingenerator/MCBetaTerrainGenerator.java b/src/me/sd5/mcbetaterraingenerator/MCBetaTerrainGenerator.java index a5acea2..30cd9fe 100644 --- a/src/me/sd5/mcbetaterraingenerator/MCBetaTerrainGenerator.java +++ b/src/me/sd5/mcbetaterraingenerator/MCBetaTerrainGenerator.java @@ -1,99 +1,100...
true
true
public static void main(String[] args) { //A scanner to read the user's input. Scanner in = new Scanner(System.in); String areasInput; String seedInput; //Ask the user for the areas to generate. System.out.println("Areas to generate: "); System.out.println("Example: -4,-4,3,3;0,4,6,4"); System...
public static void main(String[] args) { //A scanner to read the user's input. Scanner in = new Scanner(System.in); String areasInput; String seedInput; //Ask the user for the areas to generate. System.out.println("Areas to generate: "); System.out.println("Example: -4,-4,3,3;0,4,6,4"); System...
diff --git a/src/com/android/exchange/adapter/ProvisionParser.java b/src/com/android/exchange/adapter/ProvisionParser.java index 1aff046..057ffaf 100644 --- a/src/com/android/exchange/adapter/ProvisionParser.java +++ b/src/com/android/exchange/adapter/ProvisionParser.java @@ -1,450 +1,450 @@ /* Copyright (C) 2010 The ...
false
true
private void parseProvisionDocWbxml() throws IOException { int minPasswordLength = 0; int passwordMode = PolicySet.PASSWORD_MODE_NONE; int maxPasswordFails = 0; int maxScreenLockTime = 0; int passwordExpiration = 0; int passwordHistory = 0; int passwordComplex...
private void parseProvisionDocWbxml() throws IOException { int minPasswordLength = 0; int passwordMode = PolicySet.PASSWORD_MODE_NONE; int maxPasswordFails = 0; int maxScreenLockTime = 0; int passwordExpiration = 0; int passwordHistory = 0; int passwordComplex...
diff --git a/plugins/org.eclipse.mylyn.docs.intent.client.ui/src/org/eclipse/mylyn/docs/intent/client/ui/internal/renderers/IEditorRendererExtensionRegistry.java b/plugins/org.eclipse.mylyn.docs.intent.client.ui/src/org/eclipse/mylyn/docs/intent/client/ui/internal/renderers/IEditorRendererExtensionRegistry.java index 1...
true
true
public static Collection<IEditorRendererExtension> getEditorRendererExtensions( ExternalContentReference externalContentReference) { List<IEditorRendererExtensionDescriptor> registeredExtensions = Lists.newArrayList(); // Step 1: get all valid extension for (Collection<IEditorRendererExtensionDescriptor> ext...
public static Collection<IEditorRendererExtension> getEditorRendererExtensions( ExternalContentReference externalContentReference) { List<IEditorRendererExtensionDescriptor> registeredExtensions = Lists.newArrayList(); // Step 1: get all valid extension for (Collection<IEditorRendererExtensionDescriptor> ext...
diff --git a/src/org/python/util/jython.java b/src/org/python/util/jython.java index daf46c6d..e619e9b3 100644 --- a/src/org/python/util/jython.java +++ b/src/org/python/util/jython.java @@ -1,547 +1,547 @@ // Copyright (c) Corporation for National Research Initiatives package org.python.util; import java.io.File;...
true
true
public static void run(String[] args) { // Parse the command line options CommandLineOptions opts = new CommandLineOptions(); if (!opts.parse(args)) { if (opts.version) { System.err.println("Jython " + Version.PY_VERSION); System.exit(0); ...
public static void run(String[] args) { // Parse the command line options CommandLineOptions opts = new CommandLineOptions(); if (!opts.parse(args)) { if (opts.version) { System.err.println("Jython " + Version.PY_VERSION); System.exit(0); ...
diff --git a/src/org/python/core/__builtin__.java b/src/org/python/core/__builtin__.java index bee31527..f058add3 100644 --- a/src/org/python/core/__builtin__.java +++ b/src/org/python/core/__builtin__.java @@ -1,1176 +1,1176 @@ // Copyright (c) Corporation for National Research Initiatives package org.python.core; ...
false
true
public static void fillWithBuiltins(PyObject dict) { /* newstyle */ dict.__setitem__("object", PyType.fromClass(PyObject.class)); dict.__setitem__("type", PyType.fromClass(PyType.class)); dict.__setitem__("int", PyType.fromClass(PyInteger.class)); dict.__setitem__("enumerate", PyType.fromClass(PyEnumerate....
public static void fillWithBuiltins(PyObject dict) { /* newstyle */ dict.__setitem__("object", PyType.fromClass(PyObject.class)); dict.__setitem__("type", PyType.fromClass(PyType.class)); dict.__setitem__("bool", PyType.fromClass(PyBoolean.class)); dict.__setitem__("int", PyType.fromClass(PyInteger.class))...
diff --git a/classlib/modules/lang-management/src/main/java/org/apache/harmony/lang/management/DynamicMXBeanImpl.java b/classlib/modules/lang-management/src/main/java/org/apache/harmony/lang/management/DynamicMXBeanImpl.java index e09d0404..d0b261d3 100644 --- a/classlib/modules/lang-management/src/main/java/org/apache...
true
true
public void setAttribute(Attribute attribute) throws AttributeNotFoundException, InvalidAttributeValueException, MBeanException, ReflectionException { // In Java 5.0 platform MXBeans the following applies for all // attribute setter methods : // 1. no conversion to o...
public void setAttribute(Attribute attribute) throws AttributeNotFoundException, InvalidAttributeValueException, MBeanException, ReflectionException { // In Java 5.0 platform MXBeans the following applies for all // attribute setter methods : // 1. no conversion to o...
diff --git a/source/ch/cyberduck/core/aquaticprime/LicenseFactory.java b/source/ch/cyberduck/core/aquaticprime/LicenseFactory.java index a7c45b33f..ceb188c8d 100644 --- a/source/ch/cyberduck/core/aquaticprime/LicenseFactory.java +++ b/source/ch/cyberduck/core/aquaticprime/LicenseFactory.java @@ -1,123 +1,129 @@ packag...
false
true
public static License find() { final Collection<File> licenses = FileUtils.listFiles( new File(LocalFactory.createLocal(Preferences.instance().getProperty("application.support.path")).getAbsolute()), new SuffixFileFilter(".cyberducklicense"), FalseFileFilter.FALSE); f...
public static License find() { Local support = LocalFactory.createLocal(Preferences.instance().getProperty("application.support.path")); if(support.exists()) { final Collection<File> keys = FileUtils.listFiles( new File(support.getAbsolute()), new ...
diff --git a/src/main/java/com/google/gerrit/server/ssh/Receive.java b/src/main/java/com/google/gerrit/server/ssh/Receive.java index db52a667e..b4ce970a9 100644 --- a/src/main/java/com/google/gerrit/server/ssh/Receive.java +++ b/src/main/java/com/google/gerrit/server/ssh/Receive.java @@ -1,1221 +1,1223 @@ // Copyright...
true
true
private void appendPatchSet(final Change.Id changeId, final ReceiveCommand cmd) throws IOException, OrmException { final RevCommit c = rp.getRevWalk().parseCommit(cmd.getNewId()); rp.getRevWalk().parseBody(c); if (!validCommitter(cmd, c)) { return; } final Account.Id me = userAccount....
private void appendPatchSet(final Change.Id changeId, final ReceiveCommand cmd) throws IOException, OrmException { final RevCommit c = rp.getRevWalk().parseCommit(cmd.getNewId()); rp.getRevWalk().parseBody(c); if (!validCommitter(cmd, c)) { return; } final Account.Id me = userAccount....
diff --git a/historicalWeather/src/com/daemgahe/historicalWeather/DateScreen.java b/historicalWeather/src/com/daemgahe/historicalWeather/DateScreen.java index 8aac21f..88c64f1 100644 --- a/historicalWeather/src/com/daemgahe/historicalWeather/DateScreen.java +++ b/historicalWeather/src/com/daemgahe/historicalWeather/Dat...
false
true
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.date); startDateField = (DatePicker) findViewById(R.id.start_date); df = new SimpleDateFormat("yyyy-MM-dd"); endDate = new Date(); calendar = Ca...
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.date); startDateField = (DatePicker) findViewById(R.id.start_date); df = new SimpleDateFormat("yyyy-MM-dd"); endDate = new Date(); calendar = Ca...
diff --git a/src/com/alecgorge/minecraft/jsonapi/dynamic/Argument.java b/src/com/alecgorge/minecraft/jsonapi/dynamic/Argument.java index e411bf9..a391989 100644 --- a/src/com/alecgorge/minecraft/jsonapi/dynamic/Argument.java +++ b/src/com/alecgorge/minecraft/jsonapi/dynamic/Argument.java @@ -1,95 +1,93 @@ package com....
true
true
public static Class<?> getClassFromName(String name) { // auto translate from some of the defaults Class<?> ret = mapping.get(name); if(ret != null) { return ret; } ret = void.class; try { ret = Class.forName(name); } catch (ClassNotFoundException e) { try { ret = Class....
public static Class<?> getClassFromName(String name) { // auto translate from some of the defaults Class<?> ret = mapping.get(name); if(ret != null) { return ret; } ret = void.class; try { ret = Class.forName(name); } catch (ClassNotFoundException e) { try { ret = Class....
diff --git a/projects/framework/java/test-contract/src/main/java/org/identityconnectors/contract/test/AuthenticationApiOpTests.java b/projects/framework/java/test-contract/src/main/java/org/identityconnectors/contract/test/AuthenticationApiOpTests.java index 822b034d..63ff9b34 100644 --- a/projects/framework/java/test-...
true
true
public void testRun() { Uid uid = null; try { // create a user Set<Attribute> attrs = ConnectorHelper.getCreateableAttributes(getDataProvider(), getObjectClassInfo(), getTestName(), 0, true, false); // Remove enabled and password_exp...
public void testRun() { Uid uid = null; try { // create a user Set<Attribute> attrs = ConnectorHelper.getCreateableAttributes(getDataProvider(), getObjectClassInfo(), getTestName(), 0, true, false); // Remove enabled and password_exp...
diff --git a/src/protocol/cdc_application/classes/com/sun/midp/io/j2me/socket/Protocol.java b/src/protocol/cdc_application/classes/com/sun/midp/io/j2me/socket/Protocol.java index 52f3eff0..c2728cd8 100644 --- a/src/protocol/cdc_application/classes/com/sun/midp/io/j2me/socket/Protocol.java +++ b/src/protocol/cdc_applica...
true
true
protected void checkPermission(String host, int port) throws SecurityException { if (port < 0) { throw new IllegalArgumentException("bad port: " + port); } if ("".equals(host)) { AccessController.checkPermission(SERVER_PERMISSION_NAME, "TCP Server" + port); } el...
protected void checkPermission(String host, int port) throws SecurityException { if (port < 0) { throw new IllegalArgumentException("bad port: " + port); } try { AccessController.checkPermission(AccessController.TRUSTED_APP_PERMISSION_NAME); } catch (...
diff --git a/src/core/org/apache/hadoop/http/HttpServer.java b/src/core/org/apache/hadoop/http/HttpServer.java index 47d05001e..4fc44c1e0 100644 --- a/src/core/org/apache/hadoop/http/HttpServer.java +++ b/src/core/org/apache/hadoop/http/HttpServer.java @@ -1,545 +1,544 @@ /** * Licensed to the Apache Software Founda...
false
true
public void start() throws IOException { try { int port = 0; int oriPort = listener.getPort(); // The original requested port while (true) { try { port = webServer.getConnectors()[0].getLocalPort(); LOG.info("Port returned by webServer.getConnectors()[0]." + ...
public void start() throws IOException { try { int port = 0; int oriPort = listener.getPort(); // The original requested port while (true) { try { port = webServer.getConnectors()[0].getLocalPort(); LOG.info("Port returned by webServer.getConnectors()[0]." + ...
diff --git a/src/main/org/testng/xml/XmlTest.java b/src/main/org/testng/xml/XmlTest.java index 53e1d51..b2c6b98 100644 --- a/src/main/org/testng/xml/XmlTest.java +++ b/src/main/org/testng/xml/XmlTest.java @@ -1,472 +1,473 @@ package org.testng.xml; import java.io.Serializable; import java.util.ArrayList; import j...
true
true
public String toXml(String indent) { XMLStringBuffer xsb = new XMLStringBuffer(indent); Properties p = new Properties(); p.setProperty("name", getName()); p.setProperty("junit", m_isJUnit != null ? m_isJUnit.toString() : "false"); if (null != m_parallel && !"".equals(m_parallel)) { p.setProp...
public String toXml(String indent) { XMLStringBuffer xsb = new XMLStringBuffer(indent); Properties p = new Properties(); p.setProperty("name", getName()); p.setProperty("junit", m_isJUnit != null ? m_isJUnit.toString() : "false"); if (null != m_parallel && !"".equals(m_parallel)) { p.setProp...
diff --git a/org.eclipse.mylyn.monitor.ui/src/org/eclipse/mylyn/monitor/SelectionMonitor.java b/org.eclipse.mylyn.monitor.ui/src/org/eclipse/mylyn/monitor/SelectionMonitor.java index c1c97f21..ca22c715 100644 --- a/org.eclipse.mylyn.monitor.ui/src/org/eclipse/mylyn/monitor/SelectionMonitor.java +++ b/org.eclipse.mylyn....
true
true
public void selectionChanged(IWorkbenchPart part, ISelection selection) { String structureKind = "?"; String obfuscatedElementHandle = "?"; String elementHandle = "?"; InteractionEvent.Kind interactionKind = InteractionEvent.Kind.SELECTION; if (selection instanceof Structured...
public void selectionChanged(IWorkbenchPart part, ISelection selection) { String structureKind = "?"; String obfuscatedElementHandle = "?"; String elementHandle = "?"; InteractionEvent.Kind interactionKind = InteractionEvent.Kind.SELECTION; if (selection instanceof Structured...
diff --git a/Demigods-Engine/src/main/java/com/censoredsoftware/demigods/engine/structure/StructureData.java b/Demigods-Engine/src/main/java/com/censoredsoftware/demigods/engine/structure/StructureData.java index cd14ea39..904aaca3 100644 --- a/Demigods-Engine/src/main/java/com/censoredsoftware/demigods/engine/structur...
false
true
public StructureData(UUID id, ConfigurationSection conf) { this.id = id; type = conf.getString("type"); referenceLocation = UUID.fromString(conf.getString("referenceLocation")); flags = conf.getStringList("flags"); region = conf.getString("region"); design = conf.getString("design"); if(conf.contains("...
public StructureData(UUID id, ConfigurationSection conf) { this.id = id; type = conf.getString("type"); referenceLocation = UUID.fromString(conf.getString("referenceLocation")); flags = conf.getStringList("flags"); region = conf.getString("region"); design = conf.getString("design"); if(conf.contains("...
diff --git a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/CVSRepositoryPropertiesPage.java b/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/CVSRepositoryPropertiesPage.java index a31e9ec78..efe42d63b 100644 --- a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/intern...
true
true
public boolean performOk() { if (!connectionInfoChanged && !passwordChanged) { return true; } info.setUsername(userText.getText()); if (passwordChanged) { info.setPassword(passwordText.getText()); } final String type = methodType.getText(); final String password = passwordText.getText(); final bo...
public boolean performOk() { if (!connectionInfoChanged && !passwordChanged) { return true; } info.setUsername(userText.getText()); if (passwordChanged) { info.setPassword(passwordText.getText()); } final String type = methodType.getText(); final String password = passwordText.getText(); final bo...
diff --git a/testsuites/sparql/src/main/java/org/openrdf/query/parser/sparql/ManifestTest.java b/testsuites/sparql/src/main/java/org/openrdf/query/parser/sparql/ManifestTest.java index c69b18901..7ca093faf 100644 --- a/testsuites/sparql/src/main/java/org/openrdf/query/parser/sparql/ManifestTest.java +++ b/testsuites/sp...
false
true
static void addTurtle(RepositoryConnection con, URL url, String baseURI, Resource... contexts) throws IOException, RepositoryException, RDFParseException { if (baseURI == null) { baseURI = url.toExternalForm(); } InputStream in = url.openStream(); try { OpenRDFUtil.verifyContextNotNull(contexts);...
static void addTurtle(RepositoryConnection con, URL url, String baseURI, Resource... contexts) throws IOException, RepositoryException, RDFParseException { if (baseURI == null) { baseURI = url.toExternalForm(); } InputStream in = url.openStream(); try { OpenRDFUtil.verifyContextNotNull(contexts);...
diff --git a/src/com/android/contacts/datepicker/DatePicker.java b/src/com/android/contacts/datepicker/DatePicker.java index fe234152..d0510ab4 100644 --- a/src/com/android/contacts/datepicker/DatePicker.java +++ b/src/com/android/contacts/datepicker/DatePicker.java @@ -1,491 +1,489 @@ /* * Copyright (C) 2007 The An...
false
true
public DatePicker(Context context, AttributeSet attrs, int defStyle) { super(context, attrs, defStyle); LayoutInflater inflater = (LayoutInflater) context.getSystemService( Context.LAYOUT_INFLATER_SERVICE); inflater.inflate(R.layout.date_picker, this, true); mPicker...
public DatePicker(Context context, AttributeSet attrs, int defStyle) { super(context, attrs, defStyle); LayoutInflater inflater = (LayoutInflater) context.getSystemService( Context.LAYOUT_INFLATER_SERVICE); inflater.inflate(R.layout.date_picker, this, true); mPicker...
diff --git a/src/java/org/apache/fop/fonts/type1/PFMInputStream.java b/src/java/org/apache/fop/fonts/type1/PFMInputStream.java index 85f39b6f3..f563059c3 100644 --- a/src/java/org/apache/fop/fonts/type1/PFMInputStream.java +++ b/src/java/org/apache/fop/fonts/type1/PFMInputStream.java @@ -1,113 +1,113 @@ /* * License...
false
true
public String readString() throws IOException { InputStreamReader reader = new InputStreamReader(in, "ISO-8859-1"); StringBuffer buf = new StringBuffer(); int ch = reader.read(); while (ch != 0) { buf.append((char)ch); ch = reader.read(); if (ch =...
public String readString() throws IOException { InputStreamReader reader = new InputStreamReader(in, "ISO-8859-1"); StringBuffer buf = new StringBuffer(); int ch = reader.read(); while (ch > 0) { buf.append((char)ch); ch = reader.read(); } if ...
diff --git a/src/VASSAL/tools/image/ImageUtils.java b/src/VASSAL/tools/image/ImageUtils.java index ce54593c..4f399520 100644 --- a/src/VASSAL/tools/image/ImageUtils.java +++ b/src/VASSAL/tools/image/ImageUtils.java @@ -1,655 +1,655 @@ /* * $Id$ * * Copyright (c) 2007-2009 by Joel Uckelman * * This library is...
true
true
public static BufferedImage transform(BufferedImage src, double scale, double angle, RenderingHints hints, int quality) { // bail on null source if (s...
public static BufferedImage transform(BufferedImage src, double scale, double angle, RenderingHints hints, int quality) { // bail on null source if (s...
diff --git a/org.eclipse.riena.ui.ridgets.swt/src/org/eclipse/riena/internal/ui/ridgets/swt/ListRidget.java b/org.eclipse.riena.ui.ridgets.swt/src/org/eclipse/riena/internal/ui/ridgets/swt/ListRidget.java index e5f5125ed..b2093827c 100644 --- a/org.eclipse.riena.ui.ridgets.swt/src/org/eclipse/riena/internal/ui/ridgets/...
true
true
protected void updateEnabled(final boolean isEnabled) { final String savedBackgroundKey = "oldbg"; //$NON-NLS-1$ if (isEnabled) { if (hasViewer()) { refreshViewer(); disposeSelectionBindings(); createSelectionBindings(); final List list = viewer.getList(); list.setBackground((Color) list.get...
protected void updateEnabled(final boolean isEnabled) { final String savedBackgroundKey = "oldbg"; //$NON-NLS-1$ if (isEnabled) { if (hasViewer()) { refreshViewer(); disposeSelectionBindings(); createSelectionBindings(); final List list = viewer.getList(); final Color oldBackground = (Color)...
diff --git a/dailyemail/src/main/java/com/natepaulus/dailyemail/web/controller/AccountController.java b/dailyemail/src/main/java/com/natepaulus/dailyemail/web/controller/AccountController.java index 3442ce5..065fe7e 100644 --- a/dailyemail/src/main/java/com/natepaulus/dailyemail/web/controller/AccountController.java ++...
true
true
public ModelAndView displayAccountPage(@ModelAttribute("user") User user, @ModelAttribute("delTimeEntry") DeliveryTimeEntryForm delTimeEntry, HttpSession session, HttpServletRequest request) { Map<String, ?> map = RequestContextUtils.getInputFlashMap(request); Map<String, Object> model = new HashMap<String, Obj...
public ModelAndView displayAccountPage(@ModelAttribute("user") User user, @ModelAttribute("delTimeEntry") DeliveryTimeEntryForm delTimeEntry, HttpSession session, HttpServletRequest request) { Map<String, ?> map = RequestContextUtils.getInputFlashMap(request); Map<String, Object> model = new HashMap<String, Obj...