Datasets:

diff
stringlengths
262
553k
is_single_chunk
bool
2 classes
is_single_function
bool
1 class
buggy_function
stringlengths
20
391k
fixed_function
stringlengths
0
392k
diff --git a/src/main/java/net/pterodactylus/sone/freenet/wot/WebOfTrustConnector.java b/src/main/java/net/pterodactylus/sone/freenet/wot/WebOfTrustConnector.java index 0a6369f3..7127e8f4 100644 --- a/src/main/java/net/pterodactylus/sone/freenet/wot/WebOfTrustConnector.java +++ b/src/main/java/net/pterodactylus/sone/fr...
true
true
private Reply performRequest(SimpleFieldSet fields, Bucket data, String... targetMessages) throws PluginException { @SuppressWarnings("synthetic-access") Reply reply = new Reply(); for (String targetMessage : targetMessages) { replies.put(targetMessage, reply); } replies.put("Error", reply); synchronize...
private Reply performRequest(SimpleFieldSet fields, Bucket data, String... targetMessages) throws PluginException { @SuppressWarnings("synthetic-access") Reply reply = new Reply(); for (String targetMessage : targetMessages) { replies.put(targetMessage, reply); } replies.put("Error", reply); synchronize...
diff --git a/src/me/aRt3m1s/ls/lsEL.java b/src/me/aRt3m1s/ls/lsEL.java index 9d67354..ba23c12 100644 --- a/src/me/aRt3m1s/ls/lsEL.java +++ b/src/me/aRt3m1s/ls/lsEL.java @@ -1,79 +1,81 @@ package me.aRt3m1s.ls; import org.bukkit.ChatColor; import org.bukkit.entity.LivingEntity; import org.bukkit.entity.Player; im...
true
true
public void onEntityDeath(EntityDeathEvent event){ if(event.getEntity() instanceof Player){ Player player = (Player) event.getEntity(); EntityDamageEvent e = player.getLastDamageCause(); if(e!=null){ if(e.getCause().equals(EntityDamageEvent.DamageCause.PRO...
public void onEntityDeath(EntityDeathEvent event){ if(event.getEntity() instanceof Player){ Player player = (Player) event.getEntity(); EntityDamageEvent e = player.getLastDamageCause(); if(e!=null){ if(e.getCause().equals(EntityDamageEvent.DamageCause.PRO...
diff --git a/core/src/main/java/hudson/PluginManager.java b/core/src/main/java/hudson/PluginManager.java index 484885b51..b0b3a520f 100644 --- a/core/src/main/java/hudson/PluginManager.java +++ b/core/src/main/java/hudson/PluginManager.java @@ -1,622 +1,622 @@ /* * The MIT License * * Copyright (c) 2004-2010, S...
true
true
public TaskBuilder initTasks(final InitStrategy initStrategy) { TaskBuilder builder; if (!pluginListed) { builder = new TaskGraphBuilder() { List<File> archives; Collection<String> bundledPlugins; { Handle loadBundledPl...
public TaskBuilder initTasks(final InitStrategy initStrategy) { TaskBuilder builder; if (!pluginListed) { builder = new TaskGraphBuilder() { List<File> archives; Collection<String> bundledPlugins; { Handle loadBundledPl...
diff --git a/src/frontend/org/voltdb/client/ConnectionUtil.java b/src/frontend/org/voltdb/client/ConnectionUtil.java index 260fe7e31..d6b7369c4 100644 --- a/src/frontend/org/voltdb/client/ConnectionUtil.java +++ b/src/frontend/org/voltdb/client/ConnectionUtil.java @@ -1,419 +1,419 @@ /* This file is part of VoltDB. ...
false
true
private static Object[] getAuthenticatedConnection( String service, String host, String username, byte[] hashedPassword, int port) throws IOException { Object returnArray[] = new Object[3]; boolean success = false; InetSocketAddress addr = new InetSocketAddress(host, port); ...
private static Object[] getAuthenticatedConnection( String service, String host, String username, byte[] hashedPassword, int port) throws IOException { Object returnArray[] = new Object[3]; boolean success = false; InetSocketAddress addr = new InetSocketAddress(host, port); ...
diff --git a/src/com/arpia49/Evento.java b/src/com/arpia49/Evento.java index e2db30e..5784ef9 100644 --- a/src/com/arpia49/Evento.java +++ b/src/com/arpia49/Evento.java @@ -1,95 +1,96 @@ package com.arpia49; import android.app.Activity; import android.app.Notification; import android.app.NotificationManager; imp...
false
true
public Evento(final int claveAlarma, int claveSonido, final Boolean fuerte, Activity val) { contexto = val.getApplicationContext(); this.claveAlarma = claveAlarma; this.claveSonido = claveSonido; this.fuerte = fuerte; if(handler==null){ handler = new Handler() { @Override public void handleMessage...
public Evento(final int claveAlarma, int claveSonido, final Boolean fuerte, Activity val) { contexto = val.getApplicationContext(); this.claveAlarma = claveAlarma; this.claveSonido = claveSonido; this.fuerte = fuerte; if(handler==null){ handler = new Handler() { @Override public void handleMessage...
diff --git a/src/net/zschech/gwt/comet/server/impl/BlockingAsyncServlet.java b/src/net/zschech/gwt/comet/server/impl/BlockingAsyncServlet.java index b4a51a5..1e1a29e 100644 --- a/src/net/zschech/gwt/comet/server/impl/BlockingAsyncServlet.java +++ b/src/net/zschech/gwt/comet/server/impl/BlockingAsyncServlet.java @@ -1,1...
false
true
public Object suspend(CometServletResponseImpl response, CometSessionImpl session, HttpServletRequest request) throws IOException { assert !Thread.holdsLock(response); if (session == null) { try { synchronized (response) { while (!response.isTerminated()) { long heartBeatTime = response.getHea...
public Object suspend(CometServletResponseImpl response, CometSessionImpl session, HttpServletRequest request) throws IOException { assert !Thread.holdsLock(response); if (session == null) { try { synchronized (response) { while (!response.isTerminated()) { long heartBeatTime = response.getHea...
diff --git a/freeplane/src/org/freeplane/core/icon/factory/MindIconFactory.java b/freeplane/src/org/freeplane/core/icon/factory/MindIconFactory.java index c21269381..4ad0eb189 100644 --- a/freeplane/src/org/freeplane/core/icon/factory/MindIconFactory.java +++ b/freeplane/src/org/freeplane/core/icon/factory/MindIconFact...
true
true
public static MindIcon create(String name) { return new MindIcon(name, name + ".png", ResourceBundles.getText(String.format(DESC_KEY, name))); }
public static MindIcon create(String name) { final String description = name.indexOf('/') > 0 ? "" : ResourceBundles.getText(String.format(DESC_KEY, name)); return new MindIcon(name, name + ".png", description); }
diff --git a/src/main/java/com/philihp/weblabora/model/UsageParam.java b/src/main/java/com/philihp/weblabora/model/UsageParam.java index 5d69518..215761f 100644 --- a/src/main/java/com/philihp/weblabora/model/UsageParam.java +++ b/src/main/java/com/philihp/weblabora/model/UsageParam.java @@ -1,405 +1,405 @@ package co...
true
true
public UsageParam(String in) { this.param = in; for(int i = 0; i < in.length()/2; i++) { String token = in.substring(i,i+2); if("Wo".equals(token)) wood++; else if("Gn".equals(token)) grain++; else if("Sh".equals(token)) sheep++; else if("Cl".equals(token)) clay++; else if("Pt".eq...
public UsageParam(String in) { this.param = in; for(int i = 0; i < in.length()/2; i++) { String token = in.substring(i*2,i*2+2); if("Wo".equals(token)) wood++; else if("Gn".equals(token)) grain++; else if("Sh".equals(token)) sheep++; else if("Cl".equals(token)) clay++; else if("Pt...
diff --git a/src/org/protege/editor/owl/ui/frame/cls/InheritedAnonymousClassesFrameSection.java b/src/org/protege/editor/owl/ui/frame/cls/InheritedAnonymousClassesFrameSection.java index 2a5f4b5f..868363aa 100644 --- a/src/org/protege/editor/owl/ui/frame/cls/InheritedAnonymousClassesFrameSection.java +++ b/src/org/prot...
true
true
private void refillInferredDoIt() { if (!getOWLModelManager().getReasoner().isConsistent()) { return; } Set<OWLClass> clses = getReasoner().getSuperClasses(getRootObject(), true).getFlattened(); clses.remove(getRootObject()); for (OWLClass cls : clses) { ...
private void refillInferredDoIt() { if (!getOWLModelManager().getReasoner().isConsistent()) { return; } Set<OWLClass> clses = getReasoner().getSuperClasses(getRootObject(), true).getFlattened(); clses.remove(getRootObject()); for (OWLClass cls : clses) { ...
diff --git a/CyberPrime2/src/cyberprime/servlets/Login.java b/CyberPrime2/src/cyberprime/servlets/Login.java index cfc2be8..45b8a95 100644 --- a/CyberPrime2/src/cyberprime/servlets/Login.java +++ b/CyberPrime2/src/cyberprime/servlets/Login.java @@ -1,162 +1,166 @@ package cyberprime.servlets; import java.io.IOExcep...
false
true
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { HttpSession session = request.getSession(); Clients client = (Clients) session.getAttribute("client"); if(client==null){ Object obj = new Object(); obj = "<p style='color:red'>*Your...
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { HttpSession session = request.getSession(); Clients client = (Clients) session.getAttribute("client"); if(client==null){ Object obj = new Object(); obj = "<p style='color:red'>*Your...
diff --git a/spring-data-mongodb/src/main/java/org/springframework/data/document/mongodb/query/QueryMapper.java b/spring-data-mongodb/src/main/java/org/springframework/data/document/mongodb/query/QueryMapper.java index 22341c58d..d8b0aa3f9 100644 --- a/spring-data-mongodb/src/main/java/org/springframework/data/document...
true
true
public DBObject getMappedObject() { String idKey = null; if (null != entity) { idKey = entity.getIdProperty().getName(); } else if (query.containsField("id")) { idKey = "id"; } else if (query.containsField("_id")) { idKey = "_id"; } DBObject newDbo = new BasicDBObject(); for (String key : query...
public DBObject getMappedObject() { String idKey = null; if (null != entity && null != entity.getIdProperty()) { idKey = entity.getIdProperty().getName(); } else if (query.containsField("id")) { idKey = "id"; } else if (query.containsField("_id")) { idKey = "_id"; } DBObject newDbo = new BasicDBO...
diff --git a/src/main/java/hudson/plugins/perforce/PerforceSCM.java b/src/main/java/hudson/plugins/perforce/PerforceSCM.java index 1d14aa1..db502c7 100644 --- a/src/main/java/hudson/plugins/perforce/PerforceSCM.java +++ b/src/main/java/hudson/plugins/perforce/PerforceSCM.java @@ -1,2829 +1,2830 @@ package hudson.plugi...
false
true
public boolean checkout(AbstractBuild build, Launcher launcher, FilePath workspace, BuildListener listener, File changelogFile) throws IOException, InterruptedException { PrintStream log = listener.getLogger(); changelogFilename = changelogFile.getAbsolutePath(); boolean wipeBe...
public boolean checkout(AbstractBuild build, Launcher launcher, FilePath workspace, BuildListener listener, File changelogFile) throws IOException, InterruptedException { PrintStream log = listener.getLogger(); changelogFilename = changelogFile.getAbsolutePath(); boolean wipeBe...
diff --git a/modules/plugin/arcsde/datastore/src/test/java/org/geotools/arcsde/data/ArcSDEJavaApiTest.java b/modules/plugin/arcsde/datastore/src/test/java/org/geotools/arcsde/data/ArcSDEJavaApiTest.java index af25f198f..b17b6a29a 100644 --- a/modules/plugin/arcsde/datastore/src/test/java/org/geotools/arcsde/data/ArcSDE...
true
true
public void testCreateNonStandardSchema() throws SeException, IOException, UnavailableArcSDEConnectionException { Command<Void> createCommand = new Command<Void>() { @Override public Void execute(ISession session, SeConnection connection) throws SeException, ...
public void testCreateNonStandardSchema() throws SeException, IOException, UnavailableArcSDEConnectionException { Command<Void> createCommand = new Command<Void>() { @Override public Void execute(ISession session, SeConnection connection) throws SeException, ...
diff --git a/org.agileware.natural.cucumber/src/org/agileware/natural/cucumber/validation/CucumberJavaValidator.java b/org.agileware.natural.cucumber/src/org/agileware/natural/cucumber/validation/CucumberJavaValidator.java index 2ea013c..957e0c3 100644 --- a/org.agileware.natural.cucumber/src/org/agileware/natural/cucu...
true
true
public void checkStepMatching(Step step) { final Counter counter = new Counter(); String description = step.getDescription().substring(step.getDescription().indexOf(' ') + 1); matcher.findMatches(description, new JavaAnnotationMatcher.Command() { public void match(String annotationValue, IMethod method) { ...
public void checkStepMatching(Step step) { final Counter counter = new Counter(); String description = step.getDescription().substring(step.getDescription().indexOf(' ') + 1); matcher.findMatches(description, new JavaAnnotationMatcher.Command() { public void match(String annotationValue, IMethod method) { ...
diff --git a/spring-data-neo4j-rest/src/main/java/org/springframework/data/neo4j/rest/RequestResult.java b/spring-data-neo4j-rest/src/main/java/org/springframework/data/neo4j/rest/RequestResult.java index 700242bf..a1a24e18 100644 --- a/spring-data-neo4j-rest/src/main/java/org/springframework/data/neo4j/rest/RequestRes...
true
true
public static RequestResult extractFrom(ClientResponse clientResponse) { final int status = clientResponse.getStatus(); final URI location = clientResponse.getLocation(); final String data = clientResponse.hasEntity() ? clientResponse.getEntity(String.class) : null; clientResponse.cl...
public static RequestResult extractFrom(ClientResponse clientResponse) { final int status = clientResponse.getStatus(); final URI location = clientResponse.getLocation(); final String data = status != Response.Status.NO_CONTENT.getStatusCode() ? clientResponse.getEntity(String.class) : null; ...
diff --git a/src/main/java/hudson/scm/SubversionRepositoryStatus.java b/src/main/java/hudson/scm/SubversionRepositoryStatus.java index fb11b54..19c6ad4 100644 --- a/src/main/java/hudson/scm/SubversionRepositoryStatus.java +++ b/src/main/java/hudson/scm/SubversionRepositoryStatus.java @@ -1,158 +1,158 @@ package hudson...
true
true
public void doNotifyCommit(StaplerRequest req, StaplerResponse rsp) throws ServletException, IOException { requirePOST(); // compute the affected paths Set<String> affectedPath = new HashSet<String>(); String line; BufferedReader r = new BufferedReader(req.getReader()); ...
public void doNotifyCommit(StaplerRequest req, StaplerResponse rsp) throws ServletException, IOException { requirePOST(); // compute the affected paths Set<String> affectedPath = new HashSet<String>(); String line; BufferedReader r = new BufferedReader(req.getReader()); ...
diff --git a/src/com/android/providers/contacts/LegacyApiSupport.java b/src/com/android/providers/contacts/LegacyApiSupport.java index 51fb8e0..aa847fc 100644 --- a/src/com/android/providers/contacts/LegacyApiSupport.java +++ b/src/com/android/providers/contacts/LegacyApiSupport.java @@ -1,1466 +1,1467 @@ /* * Copyr...
true
true
public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, String sortOrder, String limit) { ensureDefaultAccount(); final SQLiteDatabase db = mOpenHelper.getReadableDatabase(); SQLiteQueryBuilder qb = new SQLiteQueryBuilder(); String gro...
public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, String sortOrder, String limit) { ensureDefaultAccount(); final SQLiteDatabase db = mOpenHelper.getReadableDatabase(); SQLiteQueryBuilder qb = new SQLiteQueryBuilder(); String gro...
diff --git a/grisu-core/src/main/java/grisu/backend/model/job/gt5/Gram5JobListener.java b/grisu-core/src/main/java/grisu/backend/model/job/gt5/Gram5JobListener.java index 0e428c86..db3c1a28 100644 --- a/grisu-core/src/main/java/grisu/backend/model/job/gt5/Gram5JobListener.java +++ b/grisu-core/src/main/java/grisu/backe...
true
true
public void statusChanged(GramJob job) { myLogger.debug("job status changed to " + job.getStatus()); statuses.put(job.getIDAsString(), job.getStatus()); errors.put(job.getIDAsString(), job.getError()); }
public void statusChanged(GramJob job) { int jobStatus = job.getStatus(); String jobId = job.getIDAsString(); myLogger.debug("job status changed to " + jobStatus); statuses.put(jobId, jobStatus); errors.put(jobId, job.getError()); ...
diff --git a/library/src/org/deri/any23/rdf/Any23ValueFactoryWrapper.java b/library/src/org/deri/any23/rdf/Any23ValueFactoryWrapper.java index 8e822f62..c2c4c5de 100644 --- a/library/src/org/deri/any23/rdf/Any23ValueFactoryWrapper.java +++ b/library/src/org/deri/any23/rdf/Any23ValueFactoryWrapper.java @@ -1,177 +1,177 ...
true
true
private String escapeURI(String unescapedURI) { // Remove starting and ending whitespace String escapedURI = unescapedURI.trim(); //Replace space with %20 escapedURI = escapedURI.replaceAll(" ", "%20"); //strip linebreaks escapedURI = escapedURI.replaceAll("\n", ""); //'Remove starting "\" o...
private String escapeURI(String unescapedURI) { // Remove starting and ending whitespace String escapedURI = unescapedURI.trim(); //Replace space with %20 escapedURI = escapedURI.replaceAll(" ", "%20"); //strip linebreaks escapedURI = escapedURI.replaceAll("\n", ""); //'Remove starting "\" o...
diff --git a/org.eclipse.mylyn.reviews.r4e.ui/src/org/eclipse/mylyn/reviews/r4e/ui/internal/utils/UIUtils.java b/org.eclipse.mylyn.reviews.r4e.ui/src/org/eclipse/mylyn/reviews/r4e/ui/internal/utils/UIUtils.java index 4106215..2b7f847 100644 --- a/org.eclipse.mylyn.reviews.r4e.ui/src/org/eclipse/mylyn/reviews/r4e/ui/int...
true
true
public static void selectElementInEditor(R4ECompareEditorInput aInput) { //NOTE: This is a dirty hack that involves accessing class and field we shouldn't, but that's // the only way to select the current position in the compare editor. Hopefully this code can // be removed later when the Eclipse compa...
public static void selectElementInEditor(R4ECompareEditorInput aInput) { //NOTE: This is a dirty hack that involves accessing class and field we shouldn't, but that's // the only way to select the current position in the compare editor. Hopefully this code can // be removed later when the Eclipse compa...
diff --git a/resource-bundle-translation-site/src/main/java/biz/eelis/translation/TranslationSynchronizer.java b/resource-bundle-translation-site/src/main/java/biz/eelis/translation/TranslationSynchronizer.java index 8ca621f..0fd9b64 100644 --- a/resource-bundle-translation-site/src/main/java/biz/eelis/translation/Tran...
false
true
private void synchronize() { entityManager.clear(); final String bundleCharacterSet = PropertiesUtil.getProperty("translation-site", "bundle-character-set"); final String[] prefixes = PropertiesUtil.getProperty("translation-site", "bundle-path-prefixes").split(","); for (final Stri...
private void synchronize() { entityManager.clear(); final String bundleCharacterSet = PropertiesUtil.getProperty("translation-site", "bundle-character-set"); final String[] prefixes = PropertiesUtil.getProperty("translation-site", "bundle-path-prefixes").split(","); for (final Stri...
diff --git a/utgb-shell/src/test/java/org/utgenome/shell/Sam2WigTest.java b/utgb-shell/src/test/java/org/utgenome/shell/Sam2WigTest.java index 475b5364..7ff24c4e 100755 --- a/utgb-shell/src/test/java/org/utgenome/shell/Sam2WigTest.java +++ b/utgb-shell/src/test/java/org/utgenome/shell/Sam2WigTest.java @@ -1,47 +1,47 @@...
true
true
public void convert() throws Exception { File work = new File("target"); File bam = TestHelper.createTempFileFrom(Sam2WigTest.class, "sample.bam"); File bai = TestHelper.createTempFileFrom(Sam2WigTest.class, "sample.bam.bai", new File(bam + ".bai")); File out = FileUtil.createTempFile(work, "output", ".wig");...
public void convert() throws Exception { File work = new File("target"); File bam = TestHelper.createTempFileFrom(Sam2WigTest.class, "sample.bam"); File bai = TestHelper.createTempFileFrom(Sam2WigTest.class, "sample.bam.bai", new File(bam + ".bai")); File out = FileUtil.createTempFile(work, "output", ".wig");...
diff --git a/JREngage/src/com/janrain/android/engage/types/JRActivityObject.java b/JREngage/src/com/janrain/android/engage/types/JRActivityObject.java index a101ea8..8ccf633 100644 --- a/JREngage/src/com/janrain/android/engage/types/JRActivityObject.java +++ b/JREngage/src/com/janrain/android/engage/types/JRActivityObj...
false
true
public void shortenUrls(final ShortenedUrlCallback callback) { final JRSessionData sessionData = JRSessionData.getInstance(); try { // todo invoke when the activity object is created (or maybe when publish is called?) List<String> emptyList = new ArrayList<String>(); ...
public void shortenUrls(final ShortenedUrlCallback callback) { final JRSessionData sessionData = JRSessionData.getInstance(); try { // todo invoke when the activity object is created (or maybe when publish is called?) List<String> emptyList = new ArrayList<String>(); ...
diff --git a/src/me/Hoot215/TabListColours/TabListColoursPlayerListener.java b/src/me/Hoot215/TabListColours/TabListColoursPlayerListener.java index 6912280..4bf2596 100644 --- a/src/me/Hoot215/TabListColours/TabListColoursPlayerListener.java +++ b/src/me/Hoot215/TabListColours/TabListColoursPlayerListener.java @@ -1,4...
false
true
public void onPlayerJoin (PlayerJoinEvent event) { Player player = event.getPlayer(); String prefix = plugin.getChat().getPlayerPrefix(player); if (prefix != null && !prefix.isEmpty()) { prefix = prefix.substring(0, 2).replace('&', '§'); } player...
public void onPlayerJoin (PlayerJoinEvent event) { Player player = event.getPlayer(); String prefix = plugin.getChat().getPlayerPrefix(player); if (prefix != null && !prefix.isEmpty()) { String playerName = player.getName(); String name = playerName; ...
diff --git a/src/husacct/define/presentation/jpanel/ruledetails/FactoryDetails.java b/src/husacct/define/presentation/jpanel/ruledetails/FactoryDetails.java index 8d38288b..5837dd87 100644 --- a/src/husacct/define/presentation/jpanel/ruledetails/FactoryDetails.java +++ b/src/husacct/define/presentation/jpanel/ruledetai...
true
true
public AbstractDetailsJPanel create(AppliedRuleController appliedRuleController, String ruleTypeKey){ //Rules on the Contents of a module if (ruleTypeKey.equals(InterfaceConventionJPanel.ruleTypeKey)){ interfaceConventionJPanel = new InterfaceConventionJPanel(appliedRuleController); return interfaceConvention...
public AbstractDetailsJPanel create(AppliedRuleController appliedRuleController, String ruleTypeKey){ //Rules on the Contents of a module if (ruleTypeKey.equals(InterfaceConventionJPanel.ruleTypeKey)){ interfaceConventionJPanel = new InterfaceConventionJPanel(appliedRuleController); return interfaceConvention...
diff --git a/core/src/main/groovyx/gaelyk/datastore/DatastoreEntityCoercion.java b/core/src/main/groovyx/gaelyk/datastore/DatastoreEntityCoercion.java index 15d8670..df29479 100644 --- a/core/src/main/groovyx/gaelyk/datastore/DatastoreEntityCoercion.java +++ b/core/src/main/groovyx/gaelyk/datastore/DatastoreEntityCoerc...
true
true
public static Entity convert(DatastoreEntity<?> dsEntity){ if(dsEntity == null) return null; String kind = dsEntity.getClass().getSimpleName(); Entity entity = null; if(dsEntity.hasDatastoreKey()){ Object key = dsEntity.getDatastoreKey(); if(...
public static Entity convert(DatastoreEntity<?> dsEntity){ if(dsEntity == null) return null; String kind = dsEntity.getClass().getSimpleName(); Entity entity = null; if(dsEntity.hasDatastoreKey()){ Object key = dsEntity.getDatastoreKey(); if(...
diff --git a/src/org/intellij/erlang/editor/ErlangAnnotator.java b/src/org/intellij/erlang/editor/ErlangAnnotator.java index 65aba72b..07ef2cc5 100644 --- a/src/org/intellij/erlang/editor/ErlangAnnotator.java +++ b/src/org/intellij/erlang/editor/ErlangAnnotator.java @@ -1,132 +1,133 @@ package org.intellij.erlang.edit...
true
true
public void annotate(@NotNull PsiElement psiElement, @NotNull final AnnotationHolder annotationHolder) { psiElement.accept(new ErlangVisitor() { @Override public void visitQVar(@NotNull ErlangQVar o) { setHighlighting(o, annotationHolder, ErlangSyntaxHighlighter.VARIABLES); if (inDefin...
public void annotate(@NotNull PsiElement psiElement, @NotNull final AnnotationHolder annotationHolder) { psiElement.accept(new ErlangVisitor() { @Override public void visitQVar(@NotNull ErlangQVar o) { setHighlighting(o, annotationHolder, ErlangSyntaxHighlighter.VARIABLES); if (inDefin...
diff --git a/src/main/java/com/censoredsoftware/Demigods/Episodes/Demo/Structure/Obelisk.java b/src/main/java/com/censoredsoftware/Demigods/Episodes/Demo/Structure/Obelisk.java index 561bd03a..7d100b5a 100644 --- a/src/main/java/com/censoredsoftware/Demigods/Episodes/Demo/Structure/Obelisk.java +++ b/src/main/java/com/...
false
true
public Set<StructureSchematic> getSchematics() { return new HashSet<StructureSchematic>() { { // Clickable block. add(new StructureSchematic(0, 0, 2, new ArrayList<StructureBlockData>() { { add(new StructureBlockData(Material.SMOOTH_BRICK, (byte) 3)); } })); // Everything e...
public Set<StructureSchematic> getSchematics() { return new HashSet<StructureSchematic>() { { // Clickable block. add(new StructureSchematic(0, 0, 2, new ArrayList<StructureBlockData>() { { add(new StructureBlockData(Material.SMOOTH_BRICK, (byte) 3)); } })); // Everything e...
diff --git a/src/main/java/org/vanbest/xmltv/Main.java b/src/main/java/org/vanbest/xmltv/Main.java index a633079..782cc32 100644 --- a/src/main/java/org/vanbest/xmltv/Main.java +++ b/src/main/java/org/vanbest/xmltv/Main.java @@ -1,439 +1,440 @@ package org.vanbest.xmltv; /* Copyright (c) 2012 Jan-Pascal van Best...
false
true
public void processOptions(String[] args) throws FileNotFoundException { Options options = new Options(); options.addOption(OptionBuilder .withLongOpt("description") .withDescription("Display a description to identify this grabber") .create()) .addOption(OptionBuilder ...
public void processOptions(String[] args) throws FileNotFoundException { Options options = new Options(); options.addOption(OptionBuilder .withLongOpt("description") .withDescription("Display a description to identify this grabber") .create()) .addOption(OptionBuilder ...
diff --git a/web/src/main/java/org/fao/geonet/monitor/health/DatabaseHealthCheck.java b/web/src/main/java/org/fao/geonet/monitor/health/DatabaseHealthCheck.java index ebd88ab713..5a0e5db242 100644 --- a/web/src/main/java/org/fao/geonet/monitor/health/DatabaseHealthCheck.java +++ b/web/src/main/java/org/fao/geonet/monit...
true
true
public HealthCheck create(final ServiceContext context) { return new HealthCheck("Database Connection") { @Override protected Result check() throws Exception { Dbms dbms = null; try { // TODO add timeout dbms = (...
public HealthCheck create(final ServiceContext context) { return new HealthCheck("Database Connection") { @Override protected Result check() throws Exception { Dbms dbms = null; try { // TODO add timeout dbms = (...
diff --git a/src/main/java/org/spout/server/SpoutRegion.java b/src/main/java/org/spout/server/SpoutRegion.java index 9fa73ff09..a91fc9ca1 100644 --- a/src/main/java/org/spout/server/SpoutRegion.java +++ b/src/main/java/org/spout/server/SpoutRegion.java @@ -1,678 +1,678 @@ /* * This file is part of Spout (http://www....
true
true
public void startTickRun(int stage, long delta) throws InterruptedException { switch (stage) { case 0: { //Add or remove entities if(!spawnQueue.isEmpty()) { SpoutEntity e; while ((e = (SpoutEntity)spawnQueue.poll()) != null) { this.allocate(e); EntitySpawnEvent event = new EntitySpa...
public void startTickRun(int stage, long delta) throws InterruptedException { switch (stage) { case 0: { //Add or remove entities if(!spawnQueue.isEmpty()) { SpoutEntity e; while ((e = (SpoutEntity)spawnQueue.poll()) != null) { this.allocate(e); EntitySpawnEvent event = new EntitySpa...
diff --git a/spring-integration-samples/errorhandling/src/main/java/org/springframework/integration/samples/errorhandling/PartyDemo.java b/spring-integration-samples/errorhandling/src/main/java/org/springframework/integration/samples/errorhandling/PartyDemo.java index b779a58718..5a84e01a1c 100644 --- a/spring-integrat...
true
true
public static void main(String[] args) { new ClassPathXmlApplicationContext("errorHandlingDemo.xml", PartyDemo.class); System.out.println("hit any key to stop"); try { System.in.read(); } catch (IOException e) { throw new RuntimeException(e); } System.exit(0); }
public static void main(String[] args) { new ClassPathXmlApplicationContext("errorHandlingDemo.xml", PartyDemo.class); System.out.println("### Hit ENTER to stop ###"); try { System.in.read(); } catch (IOException e) { throw new RuntimeException(e); } System.exit(0); }
diff --git a/src/org/jruby/debug/DebugEventHook.java b/src/org/jruby/debug/DebugEventHook.java index b633c00..8a7cf40 100644 --- a/src/org/jruby/debug/DebugEventHook.java +++ b/src/org/jruby/debug/DebugEventHook.java @@ -1,615 +1,615 @@ /* * header & license * Copyright (c) 2007 Martin Krauskopf * Copyright (c) ...
false
true
private void processEvent(final ThreadContext tCtx, final int event, final String file, final int line0, final String methodName, final IRubyObject klass, DebugContextPair contexts) { // one-based; jruby by default passes zero-based int line = line0 + 1; hookCount++; Rub...
private void processEvent(final ThreadContext tCtx, final int event, final String file, final int line0, final String methodName, final IRubyObject klass, DebugContextPair contexts) { // one-based; jruby by default passes zero-based int line = line0 + 1; hookCount++; Rub...
diff --git a/core/query/src/main/java/org/openrdf/query/impl/DatasetImpl.java b/core/query/src/main/java/org/openrdf/query/impl/DatasetImpl.java index 9e0406178..e49a8f695 100644 --- a/core/query/src/main/java/org/openrdf/query/impl/DatasetImpl.java +++ b/core/query/src/main/java/org/openrdf/query/impl/DatasetImpl.java...
true
true
public String toString() { StringBuilder sb = new StringBuilder(); for (URI uri : getDefaultRemoveGraphs()) { sb.append("DELETE FROM "); appendURI(sb, uri); } sb.append("INSERT INTO "); appendURI(sb, getDefaultInsertGraph()); for (URI uri : getDefaultGraphs()) { sb.append("USING "); appendURI(s...
public String toString() { StringBuilder sb = new StringBuilder(); for (URI uri : getDefaultRemoveGraphs()) { sb.append("DELETE FROM "); appendURI(sb, uri); } if (getDefaultInsertGraph() != null) { sb.append("INSERT INTO "); appendURI(sb, getDefaultInsertGraph()); } for (URI uri : getDefaultGra...
diff --git a/stripes/src/net/sourceforge/stripes/tag/LinkTag.java b/stripes/src/net/sourceforge/stripes/tag/LinkTag.java index 11cb483e..9d57ba52 100644 --- a/stripes/src/net/sourceforge/stripes/tag/LinkTag.java +++ b/stripes/src/net/sourceforge/stripes/tag/LinkTag.java @@ -1,118 +1,121 @@ /* Copyright 2005-2006 Tim F...
true
true
public int doEndTag() throws JspException { try { set("href", buildUrl()); writeOpenTag(getPageContext().getOut(), "a"); String body = getBodyContentAsString(); if (body != null) { getPageContext().getOut().write(body.trim()); } ...
public int doEndTag() throws JspException { try { set("href", buildUrl()); writeOpenTag(getPageContext().getOut(), "a"); String body = getBodyContentAsString(); if (body == null) { body = get("href"); } if (body != null)...
diff --git a/de.walware.statet.r.console.core/src/de/walware/statet/r/nico/impl/RjsController.java b/de.walware.statet.r.console.core/src/de/walware/statet/r/nico/impl/RjsController.java index a1b29c76..872cdbc0 100644 --- a/de.walware.statet.r.console.core/src/de/walware/statet/r/nico/impl/RjsController.java +++ b/de....
true
true
protected void startToolL(final IProgressMonitor monitor) throws CoreException { fRjsId = RjsComConfig.registerClientComHandler(fRjs); fRjs.initClient(getTool(), this, fRjsProperties, fRjsId); try { final Map<String, Object> data = new HashMap<String, Object>(); final IToolEventHandler loginHandler = getEv...
protected void startToolL(final IProgressMonitor monitor) throws CoreException { fRjsId = RjsComConfig.registerClientComHandler(fRjs); fRjs.initClient(getTool(), this, fRjsProperties, fRjsId); try { final Map<String, Object> data = new HashMap<String, Object>(); final IToolEventHandler loginHandler = getEv...
diff --git a/Essentials/src/com/earth2me/essentials/yaml/ConfigLoader.java b/Essentials/src/com/earth2me/essentials/yaml/ConfigLoader.java index a8254606..7058a501 100644 --- a/Essentials/src/com/earth2me/essentials/yaml/ConfigLoader.java +++ b/Essentials/src/com/earth2me/essentials/yaml/ConfigLoader.java @@ -1,12 +1,1...
true
true
public ConfigLoader() { new Settings().getTest(); }
public ConfigLoader() { new Settings(); }
diff --git a/org.eclipse.gmf.runtime.draw2d.ui.render.awt/src/org/eclipse/gmf/runtime/draw2d/ui/render/awt/internal/graphics/GraphicsToGraphics2DAdaptor.java b/org.eclipse.gmf.runtime.draw2d.ui.render.awt/src/org/eclipse/gmf/runtime/draw2d/ui/render/awt/internal/graphics/GraphicsToGraphics2DAdaptor.java index e52b3ceb....
true
true
public void drawString(String s, int x, int y) { if (s == null || s.length() == 0) return; java.awt.FontMetrics metrics = getGraphics2D().getFontMetrics(); int stringLength = metrics.stringWidth(s); Dimension swtStringSize = TEXT_UTILITIES.getStringExtents(s, swtGraphics.getFont()); float xpos = x + tr...
public void drawString(String s, int x, int y) { if (s == null || s.length() == 0) return; java.awt.FontMetrics metrics = getGraphics2D().getFontMetrics(); int stringLength = metrics.stringWidth(s); Dimension swtStringSize = TEXT_UTILITIES.getStringExtents(s, swtGraphics.getFont()); float xpos = x + tr...
diff --git a/apps/routerconsole/java/src/net/i2p/router/web/GraphHelper.java b/apps/routerconsole/java/src/net/i2p/router/web/GraphHelper.java index e9c603c89..4a96f6d6f 100644 --- a/apps/routerconsole/java/src/net/i2p/router/web/GraphHelper.java +++ b/apps/routerconsole/java/src/net/i2p/router/web/GraphHelper.java @@ ...
false
true
public String getImages() { try { List listeners = StatSummarizer.instance().getListeners(); TreeSet ordered = new TreeSet(new AlphaComparator()); ordered.addAll(listeners); // go to some trouble to see if we have the data for the combined bw graph ...
public String getImages() { try { List listeners = StatSummarizer.instance().getListeners(); TreeSet ordered = new TreeSet(new AlphaComparator()); ordered.addAll(listeners); // go to some trouble to see if we have the data for the combined bw graph ...
diff --git a/parser/org/eclipse/cdt/core/dom/parser/cpp/GPPScannerExtensionConfiguration.java b/parser/org/eclipse/cdt/core/dom/parser/cpp/GPPScannerExtensionConfiguration.java index 20b1f4412..d3f8db547 100644 --- a/parser/org/eclipse/cdt/core/dom/parser/cpp/GPPScannerExtensionConfiguration.java +++ b/parser/org/eclip...
true
true
public GPPScannerExtensionConfiguration() { addMacro("__null", "0"); //$NON-NLS-1$//$NON-NLS-2$ addKeyword(Keywords.cRESTRICT, IToken.t_restrict); addKeyword(Keywords.c_COMPLEX, IToken.t__Complex); addKeyword(Keywords.c_IMAGINARY, IToken.t__Imaginary); }
public GPPScannerExtensionConfiguration() { addMacro("__null", "0"); //$NON-NLS-1$//$NON-NLS-2$ addKeyword(Keywords.c_COMPLEX, IToken.t__Complex); addKeyword(Keywords.c_IMAGINARY, IToken.t__Imaginary); }
diff --git a/HC_Loopsassignment.java b/HC_Loopsassignment.java index c030bf6..7c223df 100644 --- a/HC_Loopsassignment.java +++ b/HC_Loopsassignment.java @@ -1,138 +1,137 @@ import java.util.Arrays; import java.util.Collections; import javax.swing.JOptionPane; public class HC_Loopsassignment { /** *@aut...
false
true
public static void main(String[] args) { while(true) { //input and conversion int choice = Integer.parseInt(JOptionPane.showInputDialog(null, "Please enter the question number: (0 to quit)", "Loop Assigment", JOptionPane.QUESTION_MESSAGE)); //switch statement switch (choice) { case 0: Syst...
public static void main(String[] args) { while(true) { //input and conversion int choice = Integer.parseInt(JOptionPane.showInputDialog(null, "Please enter the question number: (0 to quit)", "Loop Assigment", JOptionPane.QUESTION_MESSAGE)); //switch statement switch (choice) { case 0: Syst...
diff --git a/software/base/src/main/java/brooklyn/entity/brooklynnode/BrooklynNodeSshDriver.java b/software/base/src/main/java/brooklyn/entity/brooklynnode/BrooklynNodeSshDriver.java index 6c348718a..263a0607b 100644 --- a/software/base/src/main/java/brooklyn/entity/brooklynnode/BrooklynNodeSshDriver.java +++ b/softwar...
true
true
public void customize() { newScript(CUSTOMIZING) .failOnNonZeroResultCode() .body.append( format("cp -R %s/brooklyn-%s/{bin,conf} .", getInstallDir(), getVersion()), "mkdir -p ./lib/") .execute(); ...
public void customize() { newScript(CUSTOMIZING) .failOnNonZeroResultCode() .body.append( format("cp -R %s/brooklyn-%s/{bin,conf} .", getInstallDir(), getVersion()), "mkdir -p ./lib/") .execute(); ...
diff --git a/app-impl/src/main/java/org/cytoscape/app/internal/ui/InstallAppsPanel.java b/app-impl/src/main/java/org/cytoscape/app/internal/ui/InstallAppsPanel.java index 95e11f72c..8cbbe5564 100644 --- a/app-impl/src/main/java/org/cytoscape/app/internal/ui/InstallAppsPanel.java +++ b/app-impl/src/main/java/org/cytosca...
false
true
private void initComponents() { searchAppsLabel = new javax.swing.JLabel(); installFromFileButton = new javax.swing.JButton(); filterTextField = new javax.swing.JTextField(); descriptionSplitPane = new javax.swing.JSplitPane(); tagsSplitPane = new javax.swing.JSplitPane(); ...
private void initComponents() { searchAppsLabel = new javax.swing.JLabel(); installFromFileButton = new javax.swing.JButton(); filterTextField = new javax.swing.JTextField(); descriptionSplitPane = new javax.swing.JSplitPane(); tagsSplitPane = new javax.swing.JSplitPane(); ...
diff --git a/mud/client/src/main/java/pl/edu/agh/two/mud/client/Client.java b/mud/client/src/main/java/pl/edu/agh/two/mud/client/Client.java index 67437c0..e4a2210 100644 --- a/mud/client/src/main/java/pl/edu/agh/two/mud/client/Client.java +++ b/mud/client/src/main/java/pl/edu/agh/two/mud/client/Client.java @@ -1,49 +1...
true
true
public void start(String host, int port) { try { gui.show(); connection.connect(host, port); gui.setLabel(connection.read().toString()); } catch (Exception e) { logger.error("Connection with \"" + host + ":" + port + "\" Error: " + e.getMessage()); gui.setLabel(e.toString()); } }
public void start(String host, int port) { try { gui.show(); connection.connect(host, port); gui.setLabel(connection.read().toString()); } catch (Exception e) { logger.error("Connection with \"" + host + ":" + port + "\" Error: " + e.getMessage()); gui.setLabel("Connection with \"" + host + ":" + po...
diff --git a/src/edu/worcester/cs499summer2012/activity/ViewTaskActivity.java b/src/edu/worcester/cs499summer2012/activity/ViewTaskActivity.java index 61da064..32e1dd0 100644 --- a/src/edu/worcester/cs499summer2012/activity/ViewTaskActivity.java +++ b/src/edu/worcester/cs499summer2012/activity/ViewTaskActivity.java @@ ...
true
true
protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_view_task); // Allow Action bar icon to act as a button ActionBar action_bar = getSupportActionBar(); action_bar.setHomeButtonEnabled(true); ...
protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_view_task); // Allow Action bar icon to act as a button ActionBar action_bar = getSupportActionBar(); action_bar.setHomeButtonEnabled(true); ...
diff --git a/src/mecanique/Spring.java b/src/mecanique/Spring.java index 7d5a393..9cab6b0 100644 --- a/src/mecanique/Spring.java +++ b/src/mecanique/Spring.java @@ -1,55 +1,62 @@ package mecanique; import java.awt.Color; import java.awt.geom.Point2D; public class Spring extends RubberBand { protected sta...
false
true
public Point2D getAcceleration(PhysicalObject object) { double d = distance(); double f = Math.abs(RIGOR * (d - LENGTH)); double theta = Math.atan2(getY2() - getY1(), getX2() - getX1()); int direction = object == left_object ? 1 : -1; int invert = d < LENGTH ? -1 : 1; ...
public Point2D getAcceleration(PhysicalObject object) { double d = distance(); double f = Math.abs(RIGOR * (d - LENGTH)); double theta = Math.atan2(getY2() - getY1(), getX2() - getX1()); int invert = d < LENGTH ? -1 : 1; int direction; if (object == left_object) ...
diff --git a/alvis/plugins/de.unisiegen.informatik.bs.alvis.compiler/src/de/unisiegen/informatik/bs/alvis/compiler/CompilerAccess.java b/alvis/plugins/de.unisiegen.informatik.bs.alvis.compiler/src/de/unisiegen/informatik/bs/alvis/compiler/CompilerAccess.java index f317218..351c345 100644 --- a/alvis/plugins/de.unisiege...
true
true
public List<CompletionInformation> tryAutoCompletion(int line, int charPositionInLine) { Token tokenToComplete = compiler.getLexer().getTokenByNumbers(line, charPositionInLine); if (tokenToComplete != null && ((tokenToComplete.getLine() < line || (tokenToComplete .getCharPositionInLine() + tokenT...
public List<CompletionInformation> tryAutoCompletion(int line, int charPositionInLine) { Token tokenToComplete = compiler.getLexer().getTokenByNumbers(line, charPositionInLine); if (tokenToComplete != null && ((tokenToComplete.getLine() < line || (tokenToComplete .getCharPositionInLine() + tokenT...
diff --git a/src/org/xbmc/api/object/Movie.java b/src/org/xbmc/api/object/Movie.java index 6741b76..51f11ad 100644 --- a/src/org/xbmc/api/object/Movie.java +++ b/src/org/xbmc/api/object/Movie.java @@ -1,267 +1,268 @@ /* * Copyright (C) 2005-2009 Team XBMC * http://xbmc.org * * This Program is free s...
true
true
public Movie(MovieDetail detail) { this.id = detail.movieid; this.title = detail.title; this.year = detail.year; this.director = detail.director; this.runtime = Integer.toString(detail.runtime); this.genres = detail.genre; this.rating = detail.rating; this.localPath = ""; this.filename = detail.file;...
public Movie(MovieDetail detail) { this.id = detail.movieid; this.title = detail.title; this.year = detail.year; this.director = detail.director; // runtime is in minutes this.runtime = Integer.toString(detail.runtime / 60); this.genres = detail.genre; this.rating = detail.rating; this.localPath = ""...
diff --git a/publicMAIN/src/org/publicmain/gui/registrationWindow.java b/publicMAIN/src/org/publicmain/gui/registrationWindow.java index 5bb6ce2..d283adf 100644 --- a/publicMAIN/src/org/publicmain/gui/registrationWindow.java +++ b/publicMAIN/src/org/publicmain/gui/registrationWindow.java @@ -1,213 +1,212 @@ package or...
true
true
private registrationWindow() { this.registrationWindowFrame= new JFrame(); this.wellcomeLogo = new JLabel(new ImageIcon(getClass().getResource("textlogo.png"))); this.wellcomeLabel1 = new JLabel("Please Enter your personal data"); this.nickNameLabel = new JLabel("Nickname"); this.nickNameTextField = ...
private registrationWindow() { this.registrationWindowFrame= new JFrame(); this.wellcomeLogo = new JLabel(new ImageIcon(getClass().getResource("textlogo.png"))); this.wellcomeLabel1 = new JLabel("Please Enter your personal data"); this.nickNameLabel = new JLabel("Nickname"); this.nickNameTextField = ...
diff --git a/common/com/pahimar/ee3/core/handlers/TransmutationTargetOverlayHandler.java b/common/com/pahimar/ee3/core/handlers/TransmutationTargetOverlayHandler.java index 11afbf0e..9498f1e9 100644 --- a/common/com/pahimar/ee3/core/handlers/TransmutationTargetOverlayHandler.java +++ b/common/com/pahimar/ee3/core/handl...
true
true
private static void renderStoneHUD(Minecraft minecraft, EntityPlayer player, ItemStack stack, float partialTicks) { float overlayScale = ConfigurationSettings.TARGET_BLOCK_OVERLAY_SCALE; float blockScale = overlayScale / 2; float overlayOpacity = ConfigurationSettings.TARGET_BLOCK_OVERLAY_O...
private static void renderStoneHUD(Minecraft minecraft, EntityPlayer player, ItemStack stack, float partialTicks) { float overlayScale = ConfigurationSettings.TARGET_BLOCK_OVERLAY_SCALE; float blockScale = overlayScale / 2; float overlayOpacity = ConfigurationSettings.TARGET_BLOCK_OVERLAY_O...
diff --git a/src/main/java/edu/lmu/cs/xlg/spitfire/entities/NumberLiteral.java b/src/main/java/edu/lmu/cs/xlg/spitfire/entities/NumberLiteral.java index b88ff35..57d700d 100644 --- a/src/main/java/edu/lmu/cs/xlg/spitfire/entities/NumberLiteral.java +++ b/src/main/java/edu/lmu/cs/xlg/spitfire/entities/NumberLiteral.java...
true
true
public void analyze(Log log, SymbolTable table, Subroutine owner, boolean inLoop) { type = Type.NUMBER; String lexeme = getLexeme(); try { if (lexeme.contains("^")) { lexeme = lexeme.replaceAll("(x|\\xd7)10\\^", "E"); } value = Double.value...
public void analyze(Log log, SymbolTable table, Subroutine owner, boolean inLoop) { type = Type.NUMBER; String lexeme = getLexeme(); try { if (lexeme.contains("^")) { lexeme = lexeme.replaceAll("(x|\\xd7)10\\^", "E"); } value = Double.value...
diff --git a/src/org/nosco/Function.java b/src/org/nosco/Function.java index 23a6697..1c86d02 100644 --- a/src/org/nosco/Function.java +++ b/src/org/nosco/Function.java @@ -1,815 +1,819 @@ package org.nosco; import java.util.ArrayList; import java.util.Collection; import java.util.Collections; import java.util.L...
true
true
void getSQL(final StringBuffer sb, final List<Object> bindings, final SqlContext context) { final DB_TYPE dbType = context==null ? null : context.dbType; switch (dbType) { case MYSQL: sb.append(mysql==null ? "" : mysql); break; case SQLSERVER: sb.append(sqlserver==null ? "" : sqlserver); break; case H...
void getSQL(final StringBuffer sb, final List<Object> bindings, final SqlContext context) { final DB_TYPE dbType = context==null ? null : context.dbType; if (dbType != null) { switch (dbType) { case MYSQL: sb.append(mysql==null ? "" : mysql); break; case SQLSERVER: sb.append(sqlserver==null ? "" : ...
diff --git a/src/com/pokebros/android/pokemononline/Channel.java b/src/com/pokebros/android/pokemononline/Channel.java index 7cf42664..d2709dd4 100644 --- a/src/com/pokebros/android/pokemononline/Channel.java +++ b/src/com/pokebros/android/pokemononline/Channel.java @@ -1,177 +1,185 @@ package com.pokebros.android.pok...
true
true
public void handleChannelMsg(Command c, Bais msg) { switch(c) { case ChannelPlayers: { int numPlayers = msg.readInt(); for(int i = 0; i < numPlayers; i++) { addPlayer(netServ.players.get(msg.readInt())); } break; } case JoinChannel: { int pid = msg.readInt(); if (pid == netServ.my...
public void handleChannelMsg(Command c, Bais msg) { switch(c) { case ChannelPlayers: { int numPlayers = msg.readInt(); for(int i = 0; i < numPlayers; i++) { addPlayer(netServ.players.get(msg.readInt())); } break; } case JoinChannel: { int pid = msg.readInt(); if (pid == netServ.my...
diff --git a/src/com/android/launcher2/AppsCustomizePagedView.java b/src/com/android/launcher2/AppsCustomizePagedView.java index 924349da..8ef758d5 100644 --- a/src/com/android/launcher2/AppsCustomizePagedView.java +++ b/src/com/android/launcher2/AppsCustomizePagedView.java @@ -1,1488 +1,1489 @@ /* * Copyright (C) 2...
true
true
private Bitmap getWidgetPreview(AppWidgetProviderInfo info, int cellHSpan, int cellVSpan, int cellWidth, int cellHeight) { // Load the preview image if possible String packageName = info.provider.getPackageName(); Drawable drawable = null; Bitmap preview = null; ...
private Bitmap getWidgetPreview(AppWidgetProviderInfo info, int cellHSpan, int cellVSpan, int cellWidth, int cellHeight) { // Load the preview image if possible String packageName = info.provider.getPackageName(); Drawable drawable = null; Bitmap preview = null; ...
diff --git a/zazl/maqetta.zazl/src/maqetta/zazl/HTMLParser.java b/zazl/maqetta.zazl/src/maqetta/zazl/HTMLParser.java index 4fa5bb9a8..ba2104f6f 100644 --- a/zazl/maqetta.zazl/src/maqetta/zazl/HTMLParser.java +++ b/zazl/maqetta.zazl/src/maqetta/zazl/HTMLParser.java @@ -1,122 +1,125 @@ package maqetta.zazl; import ja...
true
true
protected void printAttributeValue(String text) { int length = text.length(); for (int j = 0; j < length; j++) { char c = text.charAt(j); switch (c) { case '"': fPrinter.print("&quot;"); break; ...
protected void printAttributeValue(String text) { int length = text.length(); for (int j = 0; j < length; j++) { char c = text.charAt(j); switch (c) { case '"': fPrinter.print("&quot;"); break; ...
diff --git a/client/src/main/java/hudson/plugins/swarm/Client.java b/client/src/main/java/hudson/plugins/swarm/Client.java index 85cfa2a..1abae19 100644 --- a/client/src/main/java/hudson/plugins/swarm/Client.java +++ b/client/src/main/java/hudson/plugins/swarm/Client.java @@ -1,264 +1,264 @@ package hudson.plugins.swa...
true
true
public void run() throws InterruptedException { System.out.println("Discovering Hudson master"); // wait until we get the ACK back while(true) { try { List<Candidate> candidates = new ArrayList<Candidate>(); for (DatagramPacket recv : discover()) ...
public void run() throws InterruptedException { System.out.println("Discovering Hudson master"); // wait until we get the ACK back while(true) { try { List<Candidate> candidates = new ArrayList<Candidate>(); for (DatagramPacket recv : discover()) ...
diff --git a/src/de/mud/terminal/VDUBuffer.java b/src/de/mud/terminal/VDUBuffer.java index d766bfe..60c73f4 100644 --- a/src/de/mud/terminal/VDUBuffer.java +++ b/src/de/mud/terminal/VDUBuffer.java @@ -1,836 +1,836 @@ /* * This file is part of "JTA - Telnet/SSH for the JAVA(tm) platform". * * (c) Matthias L. Juge...
false
true
public synchronized void insertLine(int l, int n, boolean scrollDown) { l = checkBounds(l, 0, height - 1); char cbuf[][] = null; int abuf[][] = null; int offset = 0; int oldBase = screenBase; int newScreenBase = screenBase; int newWindowBase = windowBase; int newBufSize = bufSize; ...
public synchronized void insertLine(int l, int n, boolean scrollDown) { l = checkBounds(l, 0, height - 1); char cbuf[][] = null; int abuf[][] = null; int offset = 0; int oldBase = screenBase; int newScreenBase = screenBase; int newWindowBase = windowBase; int newBufSize = bufSize; ...
diff --git a/src/main/java/fr/univnantes/atal/web/trashnao/security/TokenVerifier.java b/src/main/java/fr/univnantes/atal/web/trashnao/security/TokenVerifier.java index 184d8f5..621c52b 100644 --- a/src/main/java/fr/univnantes/atal/web/trashnao/security/TokenVerifier.java +++ b/src/main/java/fr/univnantes/atal/web/tras...
true
true
static public User getUser(HttpServletRequest request) { String accessToken = request.getParameter("access_token"); if (accessToken == null) { return null; } else { try { URL url = new URL( "https://www.googleapis.com/oauth2/v1/...
static public User getUser(HttpServletRequest request) { String accessToken = request.getParameter("access_token"); if (accessToken == null) { return null; } else { try { URL url = new URL( "https://www.googleapis.com/oauth2/v1/...
diff --git a/bundles/org.eclipse.equinox.p2.installer/src/org/eclipse/equinox/internal/p2/installer/InstallApplication.java b/bundles/org.eclipse.equinox.p2.installer/src/org/eclipse/equinox/internal/p2/installer/InstallApplication.java index 24a184e16..084d89d89 100644 --- a/bundles/org.eclipse.equinox.p2.installer/sr...
true
true
public Object start(IApplicationContext appContext) { try { appContext.applicationRunning(); initializeProxySupport(); advisor = createInstallContext(); //fetch description of what to install InstallDescription description = null; try { description = computeInstallDescription(); startRequir...
public Object start(IApplicationContext appContext) { try { appContext.applicationRunning(); initializeProxySupport(); advisor = createInstallContext(); //fetch description of what to install InstallDescription description = null; try { description = computeInstallDescription(); startRequir...
diff --git a/src/GridShape/Sphere.java b/src/GridShape/Sphere.java index 278f38b..edfc9dc 100644 --- a/src/GridShape/Sphere.java +++ b/src/GridShape/Sphere.java @@ -1,59 +1,63 @@ /* * To change this template, choose Tools | Templates * and open the template in the editor. */ package GridShape; import gameofl...
false
true
public List<Point> GetNeighbours(Grid grid, GridCell.Profile cellProfile, Point position) { List<Point> potentialNeighbours = cellProfile.GetNeighbours(position); List<Point> neighbours = new ArrayList<Point>(); for(Point p : potentialNeighbours) { int x = position.x + p...
public List<Point> GetNeighbours(Grid grid, GridCell.Profile cellProfile, Point position) { List<Point> potentialNeighbours = cellProfile.GetNeighbours(position); List<Point> neighbours = new ArrayList<Point>(); for(Point p : potentialNeighbours) { int x = position.x + p...
diff --git a/src/main/java/it/restrung/rest/marshalling/response/AbstractJSONResponse.java b/src/main/java/it/restrung/rest/marshalling/response/AbstractJSONResponse.java index 624af38..db87cb2 100644 --- a/src/main/java/it/restrung/rest/marshalling/response/AbstractJSONResponse.java +++ b/src/main/java/it/restrung/res...
true
true
public void fromJSON(JSONObject jsonObject) throws JSONException { if (jsonObject != null) { this.delegate = jsonObject; Method[] methods = getClass().getDeclaredMethods(); for (Method method : methods) { if (method.getParameterTypes().length == 1 && metho...
public void fromJSON(JSONObject jsonObject) throws JSONException { if (jsonObject != null) { this.delegate = jsonObject; Method[] methods = getClass().getDeclaredMethods(); for (Method method : methods) { if (method.getParameterTypes().length == 1 && metho...
diff --git a/src/javatests/com/google/caja/opensocial/GadgetsTestMain.java b/src/javatests/com/google/caja/opensocial/GadgetsTestMain.java index 3b724de9..23c3c5ce 100644 --- a/src/javatests/com/google/caja/opensocial/GadgetsTestMain.java +++ b/src/javatests/com/google/caja/opensocial/GadgetsTestMain.java @@ -1,386 +1,...
true
true
private void testGadget(URI gadget, JSONArray testResults, Map<MessageTypeInt, Integer> errorCount) throws IOException, UriCallbackException { String[] argv = { "-o", "/tmp/xx", "-p", "xx", "--css_prop_schema", "resource:///com/google/caja/lang/css/...
private void testGadget(URI gadget, JSONArray testResults, Map<MessageTypeInt, Integer> errorCount) throws IOException, UriCallbackException { String[] argv = { "-o", "/tmp/xx", "--css_prop_schema", "resource:///com/google/caja/lang/css/css-extensions.json"...
diff --git a/src/org/geworkbench/builtin/projects/ProjectSelection.java b/src/org/geworkbench/builtin/projects/ProjectSelection.java index 082e1a74..261cfcca 100755 --- a/src/org/geworkbench/builtin/projects/ProjectSelection.java +++ b/src/org/geworkbench/builtin/projects/ProjectSelection.java @@ -1,211 +1,212 @@ pack...
true
true
public void setNodeSelection(ProjectTreeNode node) { if (selectedNode != node) { selectedNode = node; menuNode = node; selectedProjectNode = (ProjectNode) getNodeOfClass(node, ProjectNode.class); boolean subNode = false; if (node instanceof DataSet...
public void setNodeSelection(ProjectTreeNode node) { if (selectedNode != node) { selectedNode = node; menuNode = node; selectedProjectNode = (ProjectNode) getNodeOfClass(node, ProjectNode.class); boolean subNode = false; if (node instanceof DataSet...
diff --git a/guice/modules/src/main/java/org/atmosphere/guice/AtmosphereGuiceServlet.java b/guice/modules/src/main/java/org/atmosphere/guice/AtmosphereGuiceServlet.java index c1c9a5ad..4034cca8 100644 --- a/guice/modules/src/main/java/org/atmosphere/guice/AtmosphereGuiceServlet.java +++ b/guice/modules/src/main/java/or...
false
true
public AtmosphereGuiceServlet(boolean isFilter, boolean autoDetectHandlers) { framework = new AtmosphereFramework(isFilter, autoDetectHandlers) { /** * Install Guice event if other extension has been already installed. * * @param sc {@link javax.servlet.Se...
public AtmosphereGuiceServlet(boolean isFilter, boolean autoDetectHandlers) { framework = new AtmosphereFramework(isFilter, autoDetectHandlers) { /** * Install Guice event if other extension has been already installed. * * @param sc {@link javax.servlet.Se...
diff --git a/src/fr/esieaprojet/dao/DataBaseDal.java b/src/fr/esieaprojet/dao/DataBaseDal.java index bbe20b4..4cf61ed 100644 --- a/src/fr/esieaprojet/dao/DataBaseDal.java +++ b/src/fr/esieaprojet/dao/DataBaseDal.java @@ -1,415 +1,415 @@ package fr.esieaprojet.dao; import java.text.Normalizer; import java.util.Arra...
false
true
public List<Contact> getAllContactByString(String string, String userId) { // TODO Auto-generated method stub System.out.println("search contact "+userId+" count = "+count+" string = "+string); ArrayList<Contact> values = db.get(userId); ArrayList<Contact> result = new ArrayList<Contact>(); boolean fla...
public List<Contact> getAllContactByString(String string, String userId) { // TODO Auto-generated method stub //System.out.println("search contact "+userId+" count = "+count+" string = "+string); ArrayList<Contact> values = db.get(userId); ArrayList<Contact> result = new ArrayList<Contact>(); boolean f...
diff --git a/src/main/java/com/j256/ormlite/android/AndroidDatabaseConnection.java b/src/main/java/com/j256/ormlite/android/AndroidDatabaseConnection.java index b7dbf7a..b6a0e0d 100644 --- a/src/main/java/com/j256/ormlite/android/AndroidDatabaseConnection.java +++ b/src/main/java/com/j256/ormlite/android/AndroidDatabas...
false
true
private void bindArgs(SQLiteStatement stmt, Object[] args, FieldType[] argFieldTypes) throws SQLException { if (args == null) { return; } for (int i = 0; i < args.length; i++) { Object arg = args[i]; if (arg == null) { stmt.bindNull(i); } else { switch (argFieldTypes[i].getSqlType()) { c...
private void bindArgs(SQLiteStatement stmt, Object[] args, FieldType[] argFieldTypes) throws SQLException { if (args == null) { return; } for (int i = 0; i < args.length; i++) { Object arg = args[i]; if (arg == null) { stmt.bindNull(i + 1); } else { switch (argFieldTypes[i].getSqlType()) { ...
diff --git a/thud/btthud/data/MUUnitInfo.java b/thud/btthud/data/MUUnitInfo.java index aef4668..6bddf1d 100644 --- a/thud/btthud/data/MUUnitInfo.java +++ b/thud/btthud/data/MUUnitInfo.java @@ -1,811 +1,811 @@ // // MUUnitInfo.java // Thud // // Created by asp on Tue Nov 20 2001. // Copyright (c) 2001-2002 Ant...
true
true
public GeneralPath icon(int h, boolean drawArmor, Color color) { // We do everything on a scale of 20 pixels. We scale up the path later if the height is > 20. //BufferedImage unitImage = new BufferedImage(h, h, BufferedImage.TYPE_INT_ARGB); GeneralPath unitOutline = new GeneralPath...
public GeneralPath icon(int h, boolean drawArmor, Color color) { // We do everything on a scale of 20 pixels. We scale up the path later if the height is > 20. //BufferedImage unitImage = new BufferedImage(h, h, BufferedImage.TYPE_INT_ARGB); GeneralPath unitOutline = new GeneralPath...
diff --git a/perpus-app-ui/src/main/java/perpus/service/ReportServiceImpl.java b/perpus-app-ui/src/main/java/perpus/service/ReportServiceImpl.java index 1a2213b..e8b595a 100644 --- a/perpus-app-ui/src/main/java/perpus/service/ReportServiceImpl.java +++ b/perpus-app-ui/src/main/java/perpus/service/ReportServiceImpl.java...
false
true
public List<LaporanPeminjamanDto> dataLaporanPeminjaman(String mode, Date mulai, Date sampai){ List<LaporanPeminjamanDto> result = new ArrayList<LaporanPeminjamanDto>(); if(mode.equalsIgnoreCase("PEMINJAMAN")){ List<PeminjamanDetail> detailPeminjamans = transaksiService.getTrans...
public List<LaporanPeminjamanDto> dataLaporanPeminjaman(String mode, Date mulai, Date sampai){ List<LaporanPeminjamanDto> result = new ArrayList<LaporanPeminjamanDto>(); if(mode.equalsIgnoreCase("PEMINJAMAN")){ List<PeminjamanDetail> detailPeminjamans = transaksiService.getTrans...
diff --git a/coin-selfservice-war/src/main/java/nl/surfnet/coin/selfservice/util/PersonMainAttributes.java b/coin-selfservice-war/src/main/java/nl/surfnet/coin/selfservice/util/PersonMainAttributes.java index eee5f647..94f4a6fb 100644 --- a/coin-selfservice-war/src/main/java/nl/surfnet/coin/selfservice/util/PersonMainA...
true
true
public PersonMainAttributes(Map<String, List<String>> attributeMap) { mail = attributeMap.get(USER_ATTRIBUTE_MAIL) == null ? null : attributeMap.get(USER_ATTRIBUTE_MAIL).get(0); displayName = attributeMap.get(USER_ATTRIBUTE_DISPLAY_NAME) == null ? null : attributeMap.get(USER_ATTRIBUTE_DISPLAY_NAME).get(0); ...
public PersonMainAttributes(Map<String, List<String>> attributeMap) { mail = attributeMap.get(USER_ATTRIBUTE_MAIL) == null ? null : attributeMap.get(USER_ATTRIBUTE_MAIL).get(0); displayName = attributeMap.get(USER_ATTRIBUTE_DISPLAY_NAME) == null ? null : attributeMap.get(USER_ATTRIBUTE_DISPLAY_NAME).get(0); ...
diff --git a/src/plugins/WebOfTrust/WebOfTrust.java b/src/plugins/WebOfTrust/WebOfTrust.java index 85d80730..488b528c 100644 --- a/src/plugins/WebOfTrust/WebOfTrust.java +++ b/src/plugins/WebOfTrust/WebOfTrust.java @@ -1,3588 +1,3590 @@ /* This code is part of WoT, a plugin for Freenet. It is distributed * under th...
false
true
private synchronized void deleteDuplicateObjects() { synchronized(mPuzzleStore) { // Needed for deleteWithoutCommit(Identity) synchronized(mFetcher) { // Needed for deleteWithoutCommit(Identity) synchronized(mSubscriptionManager) { // Needed for deleteWithoutCommit(Identity) synchronized(Persistent.transaction...
private synchronized void deleteDuplicateObjects() { synchronized(mPuzzleStore) { // Needed for deleteWithoutCommit(Identity) synchronized(mFetcher) { // Needed for deleteWithoutCommit(Identity) synchronized(mSubscriptionManager) { // Needed for deleteWithoutCommit(Identity) synchronized(Persistent.transaction...
diff --git a/bcel-additions/org/apache/bcel/verifier/statics/Pass3aVerifier.java b/bcel-additions/org/apache/bcel/verifier/statics/Pass3aVerifier.java index 3b2c7f2d..4c3b8a4d 100644 --- a/bcel-additions/org/apache/bcel/verifier/statics/Pass3aVerifier.java +++ b/bcel-additions/org/apache/bcel/verifier/statics/Pass3aVer...
true
true
public void visitInvokeInstruction(InvokeInstruction o){ indexValid(o, o.getIndex()); if ( (o instanceof INVOKEVIRTUAL) || (o instanceof INVOKESPECIAL) || (o instanceof INVOKESTATIC) ){ Constant c = cpg.getConstant(o.getIndex()); if (! (c instanceof ConstantMethodref)){ constraintViolat...
public void visitInvokeInstruction(InvokeInstruction o){ indexValid(o, o.getIndex()); if ( (o instanceof INVOKEVIRTUAL) || (o instanceof INVOKESPECIAL) || (o instanceof INVOKESTATIC) ){ Constant c = cpg.getConstant(o.getIndex()); if (! (c instanceof ConstantMethodref)){ constraintViolat...
diff --git a/com.uwusoft.timesheet/src/com/uwusoft/timesheet/util/AutomaticCheckoutCheckinUtil.java b/com.uwusoft.timesheet/src/com/uwusoft/timesheet/util/AutomaticCheckoutCheckinUtil.java index d30d3bb..b104bfa 100644 --- a/com.uwusoft.timesheet/src/com/uwusoft/timesheet/util/AutomaticCheckoutCheckinUtil.java +++ b/co...
true
true
public static void execute() { LocalStorageService storageService = LocalStorageService.getInstance(); Date startDate = TimesheetApp.startDate; Date shutdownDate = TimesheetApp.shutDownDate; Date lastDate = storageService.getLastTaskEntryDate(); if (lastDate == null) lastDate = BusinessDayUtil.getPr...
public static void execute() { LocalStorageService storageService = LocalStorageService.getInstance(); Date startDate = TimesheetApp.startDate; Date shutdownDate = TimesheetApp.shutDownDate; Date lastDate = storageService.getLastTaskEntryDate(); if (lastDate == null) lastDate = BusinessDayUtil.getPr...
diff --git a/src/java/main/org/jaxen/jdom/DocumentNavigator.java b/src/java/main/org/jaxen/jdom/DocumentNavigator.java index f15792e..d9d195f 100644 --- a/src/java/main/org/jaxen/jdom/DocumentNavigator.java +++ b/src/java/main/org/jaxen/jdom/DocumentNavigator.java @@ -1,435 +1,435 @@ package org.jaxen.jdom; impor...
true
true
public Iterator getParentAxisIterator(Object contextNode) { Object parent = null; if ( contextNode instanceof Document ) { parent = contextNode; } else if ( contextNode instanceof Element ) { parent = ((Element)contextNode).getParent(); ...
public Iterator getParentAxisIterator(Object contextNode) { Object parent = null; if ( contextNode instanceof Document ) { parent = contextNode; } else if ( contextNode instanceof Element ) { parent = ((Element)contextNode).getParent(); ...
diff --git a/deegree-client/deegree-jsf-core/src/main/java/org/deegree/client/core/renderer/OutputXMLRenderer.java b/deegree-client/deegree-jsf-core/src/main/java/org/deegree/client/core/renderer/OutputXMLRenderer.java index 79fe31420b..a3009be518 100644 --- a/deegree-client/deegree-jsf-core/src/main/java/org/deegree/c...
true
true
private void encodeXML( ResponseWriter writer, String value ) throws IOException { int depth = 0; try { XMLStreamReader reader = XMLInputFactory.newInstance().createXMLStreamReader( new StringReader( value ) ); boolean lastWasEndElement = false; ...
private void encodeXML( ResponseWriter writer, String value ) throws IOException { int depth = 0; try { XMLStreamReader reader = XMLInputFactory.newInstance().createXMLStreamReader( new StringReader( value ) ); boolean lastWasEndElement = false; ...
diff --git a/src/plovr/io/Responses.java b/src/plovr/io/Responses.java index b5789a2cb..175a0c3a3 100644 --- a/src/plovr/io/Responses.java +++ b/src/plovr/io/Responses.java @@ -1,38 +1,38 @@ package plovr.io; import java.io.IOException; import java.io.Writer; import org.plovr.Config; import com.sun.net.https...
true
true
public static void writeJs( String js, Config config, HttpExchange exchange) throws IOException { Headers responseHeaders = exchange.getResponseHeaders(); responseHeaders.set("Content-Type", config.getJsContentType()); int responseLength = js.getBytes(Settings.CHARSET).length; exchange.sendRes...
public static void writeJs( String js, Config config, HttpExchange exchange) throws IOException { Headers responseHeaders = exchange.getResponseHeaders(); responseHeaders.set("Content-Type", config.getJsContentType()); int responseLength = js.getBytes(config.getOutputCharset()).length; exchang...
diff --git a/src/simciv/builds/ProblemsReport.java b/src/simciv/builds/ProblemsReport.java index 1792fe1..7ee070e 100644 --- a/src/simciv/builds/ProblemsReport.java +++ b/src/simciv/builds/ProblemsReport.java @@ -1,45 +1,45 @@ package simciv.builds; import java.util.ArrayList; public class ProblemsReport { //...
true
true
public boolean isEmpty() { for(int i = 0; i < problems.length; i++) { if(!problems[i].isEmpty()) return false; } return false; }
public boolean isEmpty() { for(int i = 0; i < problems.length; i++) { if(!problems[i].isEmpty()) return false; } return true; }
diff --git a/demos/symbol/TestGappedSymbolList.java b/demos/symbol/TestGappedSymbolList.java index 52f7ff1c3..4a2487c81 100755 --- a/demos/symbol/TestGappedSymbolList.java +++ b/demos/symbol/TestGappedSymbolList.java @@ -1,76 +1,76 @@ /* * BioJava development code * * This code may be freely d...
true
true
public static void main(String [] args) { try { SymbolList res = Tools.createSymbolList(10); final int trials = 10; System.out.println("Starting with:\n" + res.seqString()); GappedSymbolList gl = new GappedSymbolList(res); System.out.println("Gapped version:\n" + gl.seqString()); gl.d...
public static void main(String [] args) { try { SymbolList res = Tools.createSymbolList(10); final int trials = 10; System.out.println("Starting with:\n" + res.seqString()); SimpleGappedSymbolList gl = new SimpleGappedSymbolList(res); System.out.println("Gapped version:\n" + gl.seqString(...
diff --git a/master/src/com/indago/helpme/gui/dashboard/HelpERCallDetailsActivity.java b/master/src/com/indago/helpme/gui/dashboard/HelpERCallDetailsActivity.java index c383b27..3f900d4 100644 --- a/master/src/com/indago/helpme/gui/dashboard/HelpERCallDetailsActivity.java +++ b/master/src/com/indago/helpme/gui/dashboar...
true
true
private Dialog buildDialog(Context context, Task task) { UserInterface userInterface = task.getUser(); AlertDialog.Builder dialogBuilder = new AlertDialog.Builder(context); Dialog dialog = dialogBuilder.show(); dialog.setContentView(R.layout.dialog_help_er_in_range); // dialog.setCanceledOnTouchOutside(false...
private Dialog buildDialog(Context context, Task task) { UserInterface userInterface = task.getUser(); AlertDialog.Builder dialogBuilder = new AlertDialog.Builder(context); Dialog dialog = dialogBuilder.show(); dialog.setContentView(R.layout.dialog_help_er_in_range); dialog.setCanceledOnTouchOutside(false);...
diff --git a/desktop/src/net/mms_projects/copy_it/ui/swt/forms/PreferencesDialog.java b/desktop/src/net/mms_projects/copy_it/ui/swt/forms/PreferencesDialog.java index 60d1e3e..5eab6db 100644 --- a/desktop/src/net/mms_projects/copy_it/ui/swt/forms/PreferencesDialog.java +++ b/desktop/src/net/mms_projects/copy_it/ui/swt/...
true
true
protected void createContents() { /* * Definitions */ // Shell this.shell = new Shell(this.getParent(), SWT.DIALOG_TRIM); shell.setLayout(new FormLayout()); // Elements TabFolder tabFolder = new TabFolder(shell, SWT.NONE); FormData fd_tabFolder = new FormData(); fd_tabFolder.left = new FormAttac...
protected void createContents() { /* * Definitions */ // Shell this.shell = new Shell(this.getParent(), SWT.DIALOG_TRIM); shell.setLayout(new FormLayout()); // Elements TabFolder tabFolder = new TabFolder(shell, SWT.NONE); FormData fd_tabFolder = new FormData(); fd_tabFolder.left = new FormAttac...
diff --git a/src/share/classes/com/sun/tools/javafx/comp/JavafxResolve.java b/src/share/classes/com/sun/tools/javafx/comp/JavafxResolve.java index d6475c32d..656e66629 100644 --- a/src/share/classes/com/sun/tools/javafx/comp/JavafxResolve.java +++ b/src/share/classes/com/sun/tools/javafx/comp/JavafxResolve.java @@ -1,2...
false
true
Symbol findVar(JavafxEnv<JavafxAttrContext> env, Name name, int kind, Type expected) { Symbol bestSoFar = varNotFound; Symbol sym; JavafxEnv<JavafxAttrContext> env1 = env; boolean staticOnly = false; boolean innerAccess = false; Type mtype = expected; if (mtyp...
Symbol findVar(JavafxEnv<JavafxAttrContext> env, Name name, int kind, Type expected) { Symbol bestSoFar = varNotFound; Symbol sym; JavafxEnv<JavafxAttrContext> env1 = env; boolean staticOnly = false; boolean innerAccess = false; Type mtype = expected; if (mtyp...
diff --git a/MELT/src/melt/Model/Student.java b/MELT/src/melt/Model/Student.java index 8b84567..3c14037 100644 --- a/MELT/src/melt/Model/Student.java +++ b/MELT/src/melt/Model/Student.java @@ -1,205 +1,206 @@ /* * To change this template, choose Tools | Templates * and open the template in the editor. */ packag...
true
true
private void createSelectedTest(Test test) { this.selectedTest = new Test(); this.selectedTest.setCreator(test.getCreator()); this.selectedTest.setId(test.getId()); this.selectedTest.setInstructions(test.getInstructions()); //copy sections of the test to the student ...
private void createSelectedTest(Test test) { this.selectedTest = new Test(); this.selectedTest.setCreator(test.getCreator()); this.selectedTest.setId(test.getId()); this.selectedTest.setName(test.getName()); this.selectedTest.setInstructions(test.getInstructions()); ...
diff --git a/server/src/main/java/org/benjp/utils/PropertyManager.java b/server/src/main/java/org/benjp/utils/PropertyManager.java index bac09bcc..726def38 100644 --- a/server/src/main/java/org/benjp/utils/PropertyManager.java +++ b/server/src/main/java/org/benjp/utils/PropertyManager.java @@ -1,88 +1,88 @@ /* * Cop...
true
true
private static Properties properties() { if (properties==null) { properties = new Properties(); InputStream stream = null; try { stream = new FileInputStream(PROPERTIES_PATH); properties.load(stream); stream.close(); } catch (Exception e) { ...
private static Properties properties() { if (properties==null) { properties = new Properties(); InputStream stream = null; try { stream = new FileInputStream(PROPERTIES_PATH); properties.load(stream); stream.close(); } catch (Exception e) { ...
diff --git a/test-project/src/main/java/Main.java b/test-project/src/main/java/Main.java index be95d05..fa3b74e 100644 --- a/test-project/src/main/java/Main.java +++ b/test-project/src/main/java/Main.java @@ -1,62 +1,61 @@ import org.hyperic.sigar.NetFlags; import org.hyperic.sigar.NetInterfaceConfig; import org.hyp...
false
true
public static void main(String[] args) throws SigarException, UnknownHostException { // try (FileOutputStream fileOutputStream = new FileOutputStream("d:\\workfolder\\TestCar.obj"); // ObjectOutputStream objectOutputStream = new ObjectOutputStream(fileOutputStream)) { // Car car = new ...
public static void main(String[] args) throws SigarException, UnknownHostException { // try (FileOutputStream fileOutputStream = new FileOutputStream("d:\\workfolder\\TestCar.obj"); // ObjectOutputStream objectOutputStream = new ObjectOutputStream(fileOutputStream)) { // Car car = new ...
diff --git a/src/main/java/hs/mediasystem/enrich/EnrichCache.java b/src/main/java/hs/mediasystem/enrich/EnrichCache.java index c6f04dab..55a8a199 100644 --- a/src/main/java/hs/mediasystem/enrich/EnrichCache.java +++ b/src/main/java/hs/mediasystem/enrich/EnrichCache.java @@ -1,515 +1,515 @@ package hs.mediasystem.enric...
true
true
public void enrichIfConditionsMet(final CacheKey key) { synchronized(cache) { if(state == PendingEnrichmentState.IN_PROGRESS || state == PendingEnrichmentState.BROKEN_DEPENDENCY) { throw new IllegalStateException("" + state); } if(cancelled) { return; } ...
public void enrichIfConditionsMet(final CacheKey key) { synchronized(cache) { if(state == PendingEnrichmentState.IN_PROGRESS || state == PendingEnrichmentState.BROKEN_DEPENDENCY) { throw new IllegalStateException("" + state); } if(cancelled) { return; } ...
diff --git a/src/gov/nih/ncgc/bard/capextract/handler/CapResourceHandler.java b/src/gov/nih/ncgc/bard/capextract/handler/CapResourceHandler.java index bee6a71..0522623 100644 --- a/src/gov/nih/ncgc/bard/capextract/handler/CapResourceHandler.java +++ b/src/gov/nih/ncgc/bard/capextract/handler/CapResourceHandler.java @@ ...
false
true
protected <T> T getResponse(String url, CAPConstants.CapResource resource) throws IOException { HttpGet get = new HttpGet(url); get.setHeader("Accept", resource.getMimeType()); get.setHeader(CAPConstants.CAP_APIKEY_HEADER, CAPConstants.getApiKey()); HttpResponse response; try...
protected <T> T getResponse(String url, CAPConstants.CapResource resource) throws IOException { HttpGet get = new HttpGet(url); get.setHeader("Accept", resource.getMimeType()); get.setHeader(CAPConstants.CAP_APIKEY_HEADER, CAPConstants.getApiKey()); HttpResponse response; try...
diff --git a/src/main/java/com/redhat/topicindex/extras/client/local/presenter/TopicImportPresenter.java b/src/main/java/com/redhat/topicindex/extras/client/local/presenter/TopicImportPresenter.java index 565872b..081909c 100644 --- a/src/main/java/com/redhat/topicindex/extras/client/local/presenter/TopicImportPresente...
true
true
private void processXML(final String result, final File file, final int index, final StringBuilder log) { try { String fixedResult = result; /* remove utf-8 BOM marker (if present) */ if (fixedResult.startsWith("")) fixedResult = fixedResult.replaceFirst("", ""); /* parse the XML doc...
private void processXML(final String result, final File file, final int index, final StringBuilder log) { try { String fixedResult = result; /* remove utf-8 Byte Order Mark (BOM) if present */ if (fixedResult.startsWith("")) fixedResult = fixedResult.replaceFirst("", ""); /* parse th...
diff --git a/uncoupled/deegree-maven-plugin/src/main/java/org/deegree/maven/ithelper/ServiceIntegrationTestHelper.java b/uncoupled/deegree-maven-plugin/src/main/java/org/deegree/maven/ithelper/ServiceIntegrationTestHelper.java index d17a75ec46..5cb12389ae 100644 --- a/uncoupled/deegree-maven-plugin/src/main/java/org/de...
true
true
public void testLayers( String service ) throws MojoFailureException { if ( !service.equals( "WMS" ) ) { return; } String address = createBaseURL() + "services?request=GetCapabilities&version=1.1.1&service=" + service; String currentLayer = nul...
public void testLayers( String service ) throws MojoFailureException { if ( !service.equals( "WMS" ) ) { return; } String address = createBaseURL() + "services/wms?request=GetCapabilities&version=1.1.1&service=" + service; String currentLayer =...
diff --git a/com.ibm.wala.cast.java/src/com/ibm/wala/cast/java/ipa/callgraph/JavaSourceAnalysisScope.java b/com.ibm.wala.cast.java/src/com/ibm/wala/cast/java/ipa/callgraph/JavaSourceAnalysisScope.java index 1d4a7a5d1..274d7cd3c 100644 --- a/com.ibm.wala.cast.java/src/com/ibm/wala/cast/java/ipa/callgraph/JavaSourceAnaly...
true
true
public JavaSourceAnalysisScope() { EclipseProjectPath.SOURCE_REF.setParent(getLoader(APPLICATION)); getLoader(SYNTHETIC).setParent(EclipseProjectPath.SOURCE_REF); loadersByName.put(EclipseProjectPath.SOURCE, EclipseProjectPath.SOURCE_REF); setLoaderImpl(getLoader(SYNTHETIC), "com.ibm.wala.ipa.summar...
public JavaSourceAnalysisScope() { EclipseProjectPath.SOURCE_REF.setParent(getLoader(APPLICATION)); getLoader(SYNTHETIC).setParent(EclipseProjectPath.SOURCE_REF); loadersByName.put(EclipseProjectPath.SOURCE, EclipseProjectPath.SOURCE_REF); setLoaderImpl(getLoader(SYNTHETIC), "com.ibm.wala.ipa.summar...
diff --git a/src/markehme/factionsplus/Cmds/CmdWarp.java b/src/markehme/factionsplus/Cmds/CmdWarp.java index 92a3e8b..6d87c25 100644 --- a/src/markehme/factionsplus/Cmds/CmdWarp.java +++ b/src/markehme/factionsplus/Cmds/CmdWarp.java @@ -1,230 +1,230 @@ package markehme.factionsplus.Cmds; import java.io.*; import j...
true
true
public void perform() { String warpname = this.argAsString(0); String setPassword = null; if(this.argAsString(1) != null) { setPassword = this.argAsString(1); } else { setPassword = "nullvalue"; } if(!FactionsPlus.permission.has(sender, "factionsplus.warp")) { sender.sendMessage(ChatColor.RED + ...
public void perform() { String warpname = this.argAsString(0); String setPassword = null; if(this.argAsString(1) != null) { setPassword = this.argAsString(1); } else { setPassword = "nullvalue"; } if(!FactionsPlus.permission.has(sender, "factionsplus.warp")) { sender.sendMessage(ChatColor.RED + ...
diff --git a/src/com/android/email/activity/setup/AccountSetupOptions.java b/src/com/android/email/activity/setup/AccountSetupOptions.java index 1a246c9f..2822fd6c 100644 --- a/src/com/android/email/activity/setup/AccountSetupOptions.java +++ b/src/com/android/email/activity/setup/AccountSetupOptions.java @@ -1,430 +1,...
true
true
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); ActivityHelper.debugSetWindowFlags(this); setContentView(R.layout.account_setup_options); mCheckFrequencyView = (Spinner) UiUtilities.getView(this, R.id.account_check_frequency); mSyncWindo...
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); ActivityHelper.debugSetWindowFlags(this); setContentView(R.layout.account_setup_options); mCheckFrequencyView = (Spinner) UiUtilities.getView(this, R.id.account_check_frequency); mSyncWindo...
diff --git a/src/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/views/pages/VolumeOptionsPage.java b/src/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/views/pages/VolumeOptionsPage.java index 69434e96..d8b8387e 100644 --- a/src/com.gluster.storage.management.gui/sr...
true
true
private void registerListeners(final Composite parent) { /** * Ideally not required. However the table viewer is not getting laid out properly on performing * "maximize + restore" So this is a hack to make sure that the table is laid out again on re-size of the window */ addPaintListener(new PaintListener...
private void registerListeners(final Composite parent) { /** * Ideally not required. However the table viewer is not getting laid out properly on performing * "maximize + restore" So this is a hack to make sure that the table is laid out again on re-size of the window */ addPaintListener(new PaintListener...
diff --git a/src/de/uni_koblenz/jgralab/impl/IncidentGraphElementIterable.java b/src/de/uni_koblenz/jgralab/impl/IncidentGraphElementIterable.java index 5bfe131b..a93162cc 100644 --- a/src/de/uni_koblenz/jgralab/impl/IncidentGraphElementIterable.java +++ b/src/de/uni_koblenz/jgralab/impl/IncidentGraphElementIterable.ja...
false
true
public <G1, G2> IncidentGraphElementIterator( GraphElement<G1, G2> graphElement, Class<? extends GraphElement<G1, G2>> gc, Direction dir) { this.graphElement = graphElement; this.gc = gc; this.dir = dir; incidenceListVersion = ((GraphElementImpl<G1, G2>) graphElement) .getIncidenceListVersion...
public IncidentGraphElementIterator(GraphElement<?, ?> graphElement, Class<? extends GraphElement<?, ?>> gc, Direction dir) { this.graphElement = graphElement; this.gc = gc; this.dir = dir; incidenceListVersion = ((GraphElementImpl<?, ?>) graphElement) .getIncidenceListVersion(); current = gra...
diff --git a/src/com/tulskiy/musique/audio/AudioFileReader.java b/src/com/tulskiy/musique/audio/AudioFileReader.java index 2055939..bcacab9 100755 --- a/src/com/tulskiy/musique/audio/AudioFileReader.java +++ b/src/com/tulskiy/musique/audio/AudioFileReader.java @@ -1,126 +1,130 @@ /* * Copyright (c) 2008, 2009, 2010,...
false
true
protected void copyCommonTagFields(Tag tag, Track track) throws IOException { TrackData trackData = track.getTrackData(); if (tag != null && track != null) { for (TagFieldKey key : TagFieldKey.values()) { List<TagField> fields; try { fields = tag.get(key); } ca...
protected void copyCommonTagFields(Tag tag, Track track) throws IOException { TrackData trackData = track.getTrackData(); if (tag != null && track != null) { for (TagFieldKey key : TagFieldKey.values()) { List<TagField> fields; try { fields = tag.get(key); } ca...
diff --git a/src/main/java/org/maventest/App.java b/src/main/java/org/maventest/App.java index 8a316e0..e429d29 100644 --- a/src/main/java/org/maventest/App.java +++ b/src/main/java/org/maventest/App.java @@ -1,29 +1,29 @@ package org.maventest; /** * Hello world! * */ public class App { public static...
false
true
public static int largest(int[] list) { int index, max=Integer.MAX_VALUE; if (list.length == 0) { throw new RuntimeException("Empty list"); } for (index = 0; index < list.length-1; index++) { if (list[index] > max) { max = list[index]; ...
public static int largest(int[] list) { int index, max=0; if (list.length == 0) { throw new RuntimeException("Empty list"); } for (index = 0; index < list.length; index++) { if (list[index] > max) { max = list[index]; } }...
diff --git a/ProcessorCore/src/main/java/de/plushnikov/intellij/lombok/processor/clazz/log/AbstractLogProcessor.java b/ProcessorCore/src/main/java/de/plushnikov/intellij/lombok/processor/clazz/log/AbstractLogProcessor.java index 9243927..1ead23b 100644 --- a/ProcessorCore/src/main/java/de/plushnikov/intellij/lombok/pro...
false
true
public <Psi extends PsiElement> void process(@NotNull PsiClass psiClass, @NotNull PsiMethod[] classMethods, @NotNull PsiAnnotation psiAnnotation, @NotNull List<Psi> target) { if (!hasFieldByName(psiClass, loggerName)) { Project project = psiClass.getProject(); PsiManager manager = psiClass.getContaini...
public <Psi extends PsiElement> void process(@NotNull PsiClass psiClass, @NotNull PsiMethod[] classMethods, @NotNull PsiAnnotation psiAnnotation, @NotNull List<Psi> target) { if (psiClass.isInterface() || psiClass.isAnnotationType()) { //TODO create warning in code //Logger Injection is not possible o...
diff --git a/src/main/java/org/threeten/bp/format/DateTimePrintContext.java b/src/main/java/org/threeten/bp/format/DateTimePrintContext.java index e607b71a..12b746ac 100644 --- a/src/main/java/org/threeten/bp/format/DateTimePrintContext.java +++ b/src/main/java/org/threeten/bp/format/DateTimePrintContext.java @@ -1,288...
true
true
private static TemporalAccessor adjust(final TemporalAccessor temporal, DateTimeFormatter formatter) { // normal case first Chronology overrideChrono = formatter.getChronology(); ZoneId overrideZone = formatter.getZone(); if (overrideChrono == null && overrideZone == null) { ...
private static TemporalAccessor adjust(final TemporalAccessor temporal, DateTimeFormatter formatter) { // normal case first Chronology overrideChrono = formatter.getChronology(); ZoneId overrideZone = formatter.getZone(); if (overrideChrono == null && overrideZone == null) { ...
diff --git a/src/main/java/org/dynjs/runtime/modules/JavaClassModuleProvider.java b/src/main/java/org/dynjs/runtime/modules/JavaClassModuleProvider.java index bf32d227..f5cc1f00 100644 --- a/src/main/java/org/dynjs/runtime/modules/JavaClassModuleProvider.java +++ b/src/main/java/org/dynjs/runtime/modules/JavaClassModul...
true
true
private JSObject buildExports(ExecutionContext context, String moduleName, Object javaModule) throws IllegalAccessException { Method[] methods = javaModule.getClass().getMethods(); JSObject module = (JSObject) context.getGlobalObject().get("module"); JSObject exports = (JSObject) module.ge...
private JSObject buildExports(ExecutionContext context, String moduleName, Object javaModule) throws IllegalAccessException { Method[] methods = javaModule.getClass().getMethods(); JSObject module = (JSObject) context.getVariableEnvironment().getRecord().getBindingValue(context, "module", true); JSObje...
diff --git a/src/com/minecarts/lockdown/Lockdown.java b/src/com/minecarts/lockdown/Lockdown.java index dae71ed..1becbaf 100644 --- a/src/com/minecarts/lockdown/Lockdown.java +++ b/src/com/minecarts/lockdown/Lockdown.java @@ -1,176 +1,176 @@ package com.minecarts.lockdown; import java.util.logging.Logger; import ...
true
true
public void onEnable() { try { PluginDescriptionFile pdf = getDescription(); pluginManager = getServer().getPluginManager(); requiredPlugins = getConfig().getList("required_plugins", new ArrayList<String>()); debug = getConfig().getBoolean("debug", false); ...
public void onEnable() { try { PluginDescriptionFile pdf = getDescription(); pluginManager = getServer().getPluginManager(); requiredPlugins = getConfig().getStringList("required_plugins"); debug = getConfig().getBoolean("debug"); HashMap<Listen...
diff --git a/services/src/main/java/org/keycloak/services/managers/TokenManager.java b/services/src/main/java/org/keycloak/services/managers/TokenManager.java index 689139e525..61ebb23504 100755 --- a/services/src/main/java/org/keycloak/services/managers/TokenManager.java +++ b/services/src/main/java/org/keycloak/servi...
true
true
public AccessCodeEntry createAccessCode(String scopeParam, String state, String redirect, RealmModel realm, UserModel client, UserModel user) { boolean applicationResource = realm.hasRole(client, realm.getRole(Constants.APPLICATION_ROLE)); AccessCodeEntry code = new AccessCodeEntry(); Skele...
public AccessCodeEntry createAccessCode(String scopeParam, String state, String redirect, RealmModel realm, UserModel client, UserModel user) { boolean applicationResource = realm.hasRole(client, realm.getRole(Constants.APPLICATION_ROLE)); AccessCodeEntry code = new AccessCodeEntry(); Skele...
diff --git a/core/resource/src/main/java/org/mobicents/slee/resource/EndAllActivitiesRAEntityTimerTask.java b/core/resource/src/main/java/org/mobicents/slee/resource/EndAllActivitiesRAEntityTimerTask.java index 322a76ad9..6a462ea2b 100644 --- a/core/resource/src/main/java/org/mobicents/slee/resource/EndAllActivitiesRAE...
false
true
public void run() { logger.info("Forcing the end of all activities for ra entity "+ raEntity.getName()); // first round, end all activities gracefully boolean noActivitiesFound = true; for (ActivityContextHandle handle : sleeContainer .getActivityContextFactory() .getAllActivityContextsHandles()) { ...
public void run() { logger.info("Forcing the end of all activities for ra entity "+ raEntity.getName()); // first round, end all activities gracefully boolean noActivitiesFound = true; for (ActivityContextHandle handle : sleeContainer .getActivityContextFactory() .getAllActivityContextsHandles()) { ...