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/app/rules/RuleUtils.java b/app/rules/RuleUtils.java index de74894..0ac6e9d 100644 --- a/app/rules/RuleUtils.java +++ b/app/rules/RuleUtils.java @@ -1,206 +1,205 @@ package rules; import java.io.File; import java.util.Collections; import java.util.List; import java.util.Set; import java.util.regex.P...
true
true
public static List<FileMove> runRules(User user) { user.updateLastSyncDate(); List<FileMove> fileMoves = Lists.newArrayList(); DropboxClient client = DropboxClientFactory.create(user); try { Set<String> files = client.listDir(Dropbox.getSortboxPath()); if (f...
public static List<FileMove> runRules(User user) { user.updateLastSyncDate(); List<FileMove> fileMoves = Lists.newArrayList(); DropboxClient client = DropboxClientFactory.create(user); try { Set<String> files = client.listDir(Dropbox.getSortboxPath()); if (f...
diff --git a/jsf/plugins/org.eclipse.jst.jsf.core/src/org/eclipse/jst/jsf/designtime/internal/jsp/JSPModelProcessor.java b/jsf/plugins/org.eclipse.jst.jsf.core/src/org/eclipse/jst/jsf/designtime/internal/jsp/JSPModelProcessor.java index 45d3407c7..2dfdb9d58 100644 --- a/jsf/plugins/org.eclipse.jst.jsf.core/src/org/ecli...
true
true
public void refresh(final boolean forceRefresh) { if (isDisposed()) { throw new IllegalStateException("Processor is disposed for file: "+_file.toString()); } synchronized(_lastModificationStampMonitor) { if (_lastModificationStampMonitor.isSignall...
public void refresh(final boolean forceRefresh) { if (isDisposed()) { throw new IllegalStateException("Processor is disposed for file: "+_file.toString()); } synchronized(_lastModificationStampMonitor) { if (_lastModificationStampMonitor.isSignall...
diff --git a/manticore/bundles/net.i2cat.mantychore.actionsets.junos/src/main/java/net/i2cat/mantychore/actionsets/junos/OSPFActionSet.java b/manticore/bundles/net.i2cat.mantychore.actionsets.junos/src/main/java/net/i2cat/mantychore/actionsets/junos/OSPFActionSet.java index afa1f167c..4acf9e758 100644 --- a/manticore/b...
true
true
public OSPFActionSet() { super.setActionSetId("OSPFActionSet"); this.putAction(ActionConstants.OSPF_GET_CONFIGURATION, ConfigureOSPFAction.class); this.putAction(ActionConstants.OSPF_CONFIGURE, GetOSPFConfigAction.class); this.putAction(ActionConstants.OSPF_ACTIVATE, ActivateOSPFAction.class); this.putActio...
public OSPFActionSet() { super.setActionSetId("OSPFActionSet"); this.putAction(ActionConstants.OSPF_GET_CONFIGURATION, GetOSPFConfigAction.class); this.putAction(ActionConstants.OSPF_CONFIGURE, ConfigureOSPFAction.class); this.putAction(ActionConstants.OSPF_ACTIVATE, ActivateOSPFAction.class); this.putActio...
diff --git a/QuizWebsite/src/servlets/CurrentUserProfileServlet.java b/QuizWebsite/src/servlets/CurrentUserProfileServlet.java index 94dfab3..8a35ddb 100644 --- a/QuizWebsite/src/servlets/CurrentUserProfileServlet.java +++ b/QuizWebsite/src/servlets/CurrentUserProfileServlet.java @@ -1,150 +1,150 @@ package servlets; ...
true
true
private void getFriendActivity(HttpServletRequest request, Connection conn, User user) { List<Activity> activities = new ArrayList<Activity>(); try { Statement stmt = conn.createStatement(); String query = "SELECT * FROM Message inner join Friend_Request on Message.id=Friend_Request.id WHERE sender='" + user...
private void getFriendActivity(HttpServletRequest request, Connection conn, User user) { List<Activity> activities = new ArrayList<Activity>(); try { Statement stmt = conn.createStatement(); String query = "SELECT * FROM Message inner join Friend_Request on Message.id=Friend_Request.id WHERE sender='" + user...
diff --git a/core/src/main/java/hudson/model/Job.java b/core/src/main/java/hudson/model/Job.java index 8cd854f45..648666ab9 100644 --- a/core/src/main/java/hudson/model/Job.java +++ b/core/src/main/java/hudson/model/Job.java @@ -1,661 +1,663 @@ package hudson.model; import hudson.ExtensionPoint; import hudson.Util...
false
true
private JFreeChart createBuildTimeTrendChart() { class Label implements Comparable<Label> { final Run run; public Label(Run r) { this.run = r; } public int compareTo(Label that) { return this.run.number-that.run.number; ...
private JFreeChart createBuildTimeTrendChart() { class Label implements Comparable<Label> { final Run run; public Label(Run r) { this.run = r; } public int compareTo(Label that) { return this.run.number-that.run.number; ...
diff --git a/moria2/modules/moria-web/src/java/no/feide/moria/servlet/StatusServlet.java b/moria2/modules/moria-web/src/java/no/feide/moria/servlet/StatusServlet.java index 8078e850..4b7d4be0 100644 --- a/moria2/modules/moria-web/src/java/no/feide/moria/servlet/StatusServlet.java +++ b/moria2/modules/moria-web/src/java...
false
true
public final void doGet(final HttpServletRequest request, final HttpServletResponse response) throws IOException, ServletException { getBackendStatusData(); Properties config = getConfig(); response.setContentType("text/html"); PrintWriter out = response.getWriter(); ...
public final void doGet(final HttpServletRequest request, final HttpServletResponse response) throws IOException, ServletException { getBackendStatusData(); Properties config = getConfig(); response.setContentType("text/html"); PrintWriter out = response.getWriter(); ...
diff --git a/src/minecraft/invtweaks/InvTweaksHandlerSorting.java b/src/minecraft/invtweaks/InvTweaksHandlerSorting.java index 0fa33a5..e3a996e 100644 --- a/src/minecraft/invtweaks/InvTweaksHandlerSorting.java +++ b/src/minecraft/invtweaks/InvTweaksHandlerSorting.java @@ -1,757 +1,761 @@ package invtweaks; import i...
false
true
public void sort() throws TimeoutException { // Do nothing if the inventory is closed // if (!mc.hrrentScreen instanceof GuiContainer) // return; long timer = System.nanoTime(); InvTweaksContainerManager globalContainer = new InvTweaksContainerManager(mc); glob...
public void sort() throws TimeoutException { // Do nothing if the inventory is closed // if (!mc.hrrentScreen instanceof GuiContainer) // return; long timer = System.nanoTime(); InvTweaksContainerManager globalContainer = new InvTweaksContainerManager(mc); glob...
diff --git a/src/de/_13ducks/cor/game/networks/behaviour/impl/ServerBehaviourMove.java b/src/de/_13ducks/cor/game/networks/behaviour/impl/ServerBehaviourMove.java index 76f7c91..a0c6497 100644 --- a/src/de/_13ducks/cor/game/networks/behaviour/impl/ServerBehaviourMove.java +++ b/src/de/_13ducks/cor/game/networks/behavio...
false
true
public void execute() { // Auto-Ende: if (target == null || speed <= 0) { deactivate(); return; } // Wir laufen also. // Aktuelle Position berechnen: Vector vec = target.subtract(caster2.getPrecisePosition()).toVector(); vec.normalize()...
public void execute() { // Auto-Ende: if (target == null || speed <= 0) { deactivate(); return; } // Wir laufen also. // Aktuelle Position berechnen: FloatingPointPosition oldPos = caster2.getPrecisePosition(); Vector vec = target.subtr...
diff --git a/org.eclipse.mylyn.commons.ui/src/org/eclipse/mylyn/internal/commons/ui/SectionComposite.java b/org.eclipse.mylyn.commons.ui/src/org/eclipse/mylyn/internal/commons/ui/SectionComposite.java index 29639409..5f646a9d 100644 --- a/org.eclipse.mylyn.commons.ui/src/org/eclipse/mylyn/internal/commons/ui/SectionCom...
false
true
public ExpandableComposite createSection(String title, int expansionStyle, final boolean grabExcessVerticalSpace) { final ExpandableComposite section = getToolkit().createExpandableComposite( getContent(), ExpandableComposite.TWISTIE | ExpandableComposite.CLIENT_INDENT | ExpandableComposite.COMPACT | e...
public ExpandableComposite createSection(String title, int expansionStyle, final boolean grabExcessVerticalSpace) { final ExpandableComposite section = getToolkit().createExpandableComposite( getContent(), ExpandableComposite.TWISTIE | ExpandableComposite.CLIENT_INDENT | ExpandableComposite.COMPACT | e...
diff --git a/src/net/makeitonthe/GemXp/XpContainer.java b/src/net/makeitonthe/GemXp/XpContainer.java index fa7a1f3..8aee25f 100644 --- a/src/net/makeitonthe/GemXp/XpContainer.java +++ b/src/net/makeitonthe/GemXp/XpContainer.java @@ -1,426 +1,427 @@ /** * Small plugin to enable the storage of experience points in an ...
true
true
private void initContainer(int xp) { ItemMeta itemMeta = this.getItemMeta(); List<String> lores = itemMeta.getLore(); String lore = LORE_FORMAT + getItemHint() + " " + xp + "xp"; // Change appearance and display name setTypeId(getImbuedItemId()); itemMeta.setDisplayName(DISPLAY_NAME_FORMAT + getItemName()...
private void initContainer(int xp) { ItemMeta itemMeta = this.getItemMeta(); List<String> lores = itemMeta.getLore(); String lore = LORE_FORMAT + getItemHint() + " " + xp + "xp"; // Change appearance and display name setTypeId(getImbuedItemId()); itemMeta.setDisplayName(DISPLAY_NAME_FORMAT + getItemName()...
diff --git a/core/src/main/java/hudson/DescriptorExtensionList.java b/core/src/main/java/hudson/DescriptorExtensionList.java index 65154c377..0856c686d 100644 --- a/core/src/main/java/hudson/DescriptorExtensionList.java +++ b/core/src/main/java/hudson/DescriptorExtensionList.java @@ -1,150 +1,150 @@ /* * The MIT Lic...
true
true
protected List<D> load() { List r = new ArrayList(); for( Descriptor d : hudson.getExtensionList(Descriptor.class) ) { Type subTyping = Types.getBaseClass(d.getClass(), Descriptor.class); if (!(subTyping instanceof ParameterizedType)) { LOGGER.severe(d.getClas...
protected List<D> load() { List r = new ArrayList(); for( Descriptor d : hudson.getExtensionList(Descriptor.class) ) { Type subTyping = Types.getBaseClass(d.getClass(), Descriptor.class); if (!(subTyping instanceof ParameterizedType)) { LOGGER.severe(d.getClas...
diff --git a/seqware-queryengine/src/main/java/com/github/seqware/queryengine/system/importers/workers/VCFVariantImportWorker.java b/seqware-queryengine/src/main/java/com/github/seqware/queryengine/system/importers/workers/VCFVariantImportWorker.java index 6a785004..ad6dbd30 100644 --- a/seqware-queryengine/src/main/ja...
true
true
public void run() { // grab FeatureSet reference // FeatureSets are totally new, hope this doesn't slow things too much FeatureSet fSet = SWQEFactory.getQueryInterface().getAtomBySGID(FeatureSet.class, this.featureSetID); this.modelManager = SWQEFactory.getModelManager(); mod...
public void run() { // grab FeatureSet reference // FeatureSets are totally new, hope this doesn't slow things too much FeatureSet fSet = SWQEFactory.getQueryInterface().getAtomBySGID(FeatureSet.class, this.featureSetID); this.modelManager = SWQEFactory.getModelManager(); mod...
diff --git a/xwiki-commons-core/xwiki-commons-extension/xwiki-platform-extension-api/src/main/java/org/xwiki/extension/AbstractExtension.java b/xwiki-commons-core/xwiki-commons-extension/xwiki-platform-extension-api/src/main/java/org/xwiki/extension/AbstractExtension.java index b968fcaaa..7b1c2c863 100644 --- a/xwiki-c...
false
true
public AbstractExtension(ExtensionRepository repository, Extension extension) { this(repository, extension.getId(), extension.getType()); setFeatures(extension.getFeatures()); setDescription(extension.getDescription()); setAuthors(extension.getAuthors()); setWebsite(ext...
public AbstractExtension(ExtensionRepository repository, Extension extension) { this(repository, extension.getId(), extension.getType()); setFeatures(extension.getFeatures()); setName(extension.getName()); setDescription(extension.getDescription()); setAuthors(extension...
diff --git a/src/main/java/name/richardson/james/bukkit/timedmessages/Message.java b/src/main/java/name/richardson/james/bukkit/timedmessages/Message.java index 29a4278..2326451 100644 --- a/src/main/java/name/richardson/james/bukkit/timedmessages/Message.java +++ b/src/main/java/name/richardson/james/bukkit/timedmessa...
false
true
public void run() { String message = this.getNextMessage(); message = ColourFormatter.replace("&", message); final String[] parts = message.split("/n"); final List<Player> players = new LinkedList<Player>(); for (final Player player : this.server.getOnlinePlayers()) { // ignore the player ...
public void run() { this.plugin.getCustomLogger().debug(this, String.format("Running %s.", this.getClass().getSimpleName())); String message = this.getNextMessage(); message = ColourFormatter.replace("&", message); final String[] parts = message.split("/n"); final List<Player> players = new Linked...
diff --git a/src/com/android/bluetooth/btservice/AdapterState.java b/src/com/android/bluetooth/btservice/AdapterState.java index fbc32a5..108c055 100755 --- a/src/com/android/bluetooth/btservice/AdapterState.java +++ b/src/com/android/bluetooth/btservice/AdapterState.java @@ -1,351 +1,360 @@ /* * Copyright (C) 2012 ...
false
true
public boolean processMessage(Message msg) { boolean isTurningOn= isTurningOn(); boolean isTurningOff = isTurningOff(); switch (msg.what) { case USER_TURN_ON: if (DBG) Log.d(TAG,"CURRENT_STATE=PENDING, MESSAGE = USER_TURN_ON" ...
public boolean processMessage(Message msg) { boolean isTurningOn= isTurningOn(); boolean isTurningOff = isTurningOff(); switch (msg.what) { case USER_TURN_ON: if (DBG) Log.d(TAG,"CURRENT_STATE=PENDING, MESSAGE = USER_TURN_ON" ...
diff --git a/eol-globi-data-tool/src/main/java/org/eol/globi/data/StudyImporterForINaturalist.java b/eol-globi-data-tool/src/main/java/org/eol/globi/data/StudyImporterForINaturalist.java index 455c299b..4b0a7467 100644 --- a/eol-globi-data-tool/src/main/java/org/eol/globi/data/StudyImporterForINaturalist.java +++ b/eol...
true
true
private void parseSingleInteractions(Study study, JsonNode jsonNode) throws NodeFactoryException, StudyImporterException { JsonNode targetTaxon = jsonNode.get("taxon"); JsonNode targetTaxonNode = targetTaxon.get("name"); long observationId = jsonNode.get("observation_id").getLongValue(); ...
private void parseSingleInteractions(Study study, JsonNode jsonNode) throws NodeFactoryException, StudyImporterException { JsonNode targetTaxon = jsonNode.get("taxon"); JsonNode targetTaxonNode = targetTaxon.get("name"); long observationId = jsonNode.get("observation_id").getLongValue(); ...
diff --git a/core/plugins/org.eclipse.dltk.launching/src/org/eclipse/dltk/internal/launching/InterpreterContainer.java b/core/plugins/org.eclipse.dltk.launching/src/org/eclipse/dltk/internal/launching/InterpreterContainer.java index c2f59e80e..925c56053 100644 --- a/core/plugins/org.eclipse.dltk.launching/src/org/eclip...
true
true
private static IBuildpathEntry[] computeBuildpathEntries(IInterpreterInstall interpreter) { LibraryLocation[] libs = interpreter.getLibraryLocations(); if (libs == null) { libs = ScriptRuntime.getLibraryLocations(interpreter); } List entries = new ArrayList(libs.length); List rawEntries = new ArrayList (l...
private static IBuildpathEntry[] computeBuildpathEntries(IInterpreterInstall interpreter) { LibraryLocation[] libs = interpreter.getLibraryLocations(); if (libs == null) { libs = ScriptRuntime.getLibraryLocations(interpreter); } List entries = new ArrayList(libs.length); List rawEntries = new ArrayList (l...
diff --git a/vol1/java-examples/src/main/java/com/heatonresearch/aifh/regression/TrainReweightLeastSquares.java b/vol1/java-examples/src/main/java/com/heatonresearch/aifh/regression/TrainReweightLeastSquares.java index b48fc66..de1961f 100644 --- a/vol1/java-examples/src/main/java/com/heatonresearch/aifh/regression/Tra...
true
true
public void iteration() { final int rowCount = this.trainingData.size(); final int coeffCount = this.algorithm.getLongTermMemory().length; final double[][] working = new double[rowCount][coeffCount]; final double[] errors = new double[rowCount]; final double[] weights = new ...
public void iteration() { final int rowCount = this.trainingData.size(); final int coeffCount = this.algorithm.getLongTermMemory().length; final double[][] working = new double[rowCount][coeffCount]; final double[] errors = new double[rowCount]; final double[] weights = new ...
diff --git a/jsf/tests/org.jboss.tools.jsf.text.ext.test/src/org/jboss/tools/jsf/text/ext/tests/ELExprPartitionerTest.java b/jsf/tests/org.jboss.tools.jsf.text.ext.test/src/org/jboss/tools/jsf/text/ext/tests/ELExprPartitionerTest.java index ab0abaf7d..fd5abef0f 100644 --- a/jsf/tests/org.jboss.tools.jsf.text.ext.test/s...
true
true
public void testELExprPartitioner() { try { XJob.waitForJob(); } catch (InterruptedException e) { e.printStackTrace(); } assertTrue("Test project \"" + PROJECT_NAME + "\" is not loaded", (project != null)); IFile jspFile = project.getFile(PAGE_NAME); assertTrue("The file \"" + PAGE_NAME + "\" is n...
public void testELExprPartitioner() { try { XJob.waitForJob(); } catch (InterruptedException e) { e.printStackTrace(); } assertTrue("Test project \"" + PROJECT_NAME + "\" is not loaded", (project != null)); IFile jspFile = project.getFile(PAGE_NAME); assertTrue("The file \"" + PAGE_NAME + "\" is n...
diff --git a/src/niagara/client/QueryFactory.java b/src/niagara/client/QueryFactory.java index 454d3be..b237ebf 100755 --- a/src/niagara/client/QueryFactory.java +++ b/src/niagara/client/QueryFactory.java @@ -1,14 +1,12 @@ package niagara.client; public class QueryFactory { public static Query makeQuery(Stri...
true
true
public static Query makeQuery(String text) throws ClientException { if (text.startsWith("<?xml")) return new QPQuery(text); else if (text.toUpperCase().indexOf("WHERE") != -1) return new XMLQLQuery(text); else { throw new ClientException("Invalid query: " + text); } }
public static Query makeQuery(String text) throws ClientException { if (text.startsWith("<?xml")) return new QPQuery(text); else throw new ClientException("Invalid Query: " + text); // return new XMLQLQuery(text); }
diff --git a/java/src/memoplayer/FontStyle.java b/java/src/memoplayer/FontStyle.java index 5e5969b..ae1202b 100644 --- a/java/src/memoplayer/FontStyle.java +++ b/java/src/memoplayer/FontStyle.java @@ -1,202 +1,202 @@ /* * Copyright (C) 2010 France Telecom * * Licensed under the Apache License, Version 2.0 (the "...
true
true
public void openFont (Context c) { stop (c); // size int tmpSize = FixFloat.fix2int (((SFFloat)m_field[0]).getValue ()); size = getNativeFontSize (tmpSize); // style String str = ((SFString)m_field[1]).getValue(); if (str == null) { style = Font.S...
public void openFont (Context c) { stop (c); // size int tmpSize = FixFloat.fix2int (((SFFloat)m_field[0]).getValue ()); size = getNativeFontSize (tmpSize); // style String str = ((SFString)m_field[1]).getValue(); if (str == null) { style = Font.S...
diff --git a/apis/nova/src/main/java/org/jclouds/openstack/nova/compute/functions/NovaImageToImage.java b/apis/nova/src/main/java/org/jclouds/openstack/nova/compute/functions/NovaImageToImage.java index d0a4f0acb0..125584360a 100644 --- a/apis/nova/src/main/java/org/jclouds/openstack/nova/compute/functions/NovaImageToI...
true
true
public Image apply(org.jclouds.openstack.nova.domain.Image from) { ImageBuilder builder = new ImageBuilder(); builder.ids(from.getId() + ""); builder.name(from.getName() != null ? from.getName() : "unspecified"); builder.description(from.getName() != null ? from.getName() : "unspecified"); ...
public Image apply(org.jclouds.openstack.nova.domain.Image from) { ImageBuilder builder = new ImageBuilder(); builder.ids(from.getId() + ""); builder.name(from.getName() != null ? from.getName() : "unspecified"); builder.description(from.getName() != null ? from.getName() : "unspecified"); ...
diff --git a/src/main/java/com/fapiko/faceworm/server/FacewormServer.java b/src/main/java/com/fapiko/faceworm/server/FacewormServer.java index 6cd6793..4d88da3 100644 --- a/src/main/java/com/fapiko/faceworm/server/FacewormServer.java +++ b/src/main/java/com/fapiko/faceworm/server/FacewormServer.java @@ -1,180 +1,180 @@...
false
true
public void applicationLoop() { isWindows = System.getProperty("os.name").toLowerCase().indexOf("win") >= 0; ZMQ.Context context = ZMQ.context(1); ZMQ.Socket socket = context.socket(ZMQ.SUB); ZMQ.Socket socketHealthcheck = context.socket(ZMQ.PUB); socket.subscribe("ACTION".getBytes()); socket.bind("tcp:...
public void applicationLoop() { isWindows = System.getProperty("os.name").toLowerCase().indexOf("win") >= 0; ZMQ.Context context = ZMQ.context(1); ZMQ.Socket socket = context.socket(ZMQ.SUB); ZMQ.Socket socketHealthcheck = context.socket(ZMQ.PUB); socket.subscribe("ACTION".getBytes()); socket.bind("tcp:...
diff --git a/APITestingCG/src/cz/cvut/fit/hybljan2/apitestingcg/scanner/SourceTreeScanner.java b/APITestingCG/src/cz/cvut/fit/hybljan2/apitestingcg/scanner/SourceTreeScanner.java index 18ff955..8010ae9 100644 --- a/APITestingCG/src/cz/cvut/fit/hybljan2/apitestingcg/scanner/SourceTreeScanner.java +++ b/APITestingCG/src/...
true
true
public void visitClassDef(JCClassDecl jccd) { ClassSymbol cs = jccd.sym; if ((cs.flags() & (Flags.PUBLIC | Flags.PROTECTED)) != 0) { classes.push(currentClass); currentClass = new APIClass(jccd); super.visitClassDef(jccd); currentPackage.ad...
public void visitClassDef(JCClassDecl jccd) { ClassSymbol cs = jccd.sym; if ((cs.flags() & (Flags.PUBLIC | Flags.PROTECTED)) != 0) { classes.push(currentClass); currentClass = new APIClass(jccd, currentPackage.getName(), currentClassImports); super.vis...
diff --git a/astrid/src/com/todoroo/astrid/service/TaskService.java b/astrid/src/com/todoroo/astrid/service/TaskService.java index f217e93e6..d7650f38c 100644 --- a/astrid/src/com/todoroo/astrid/service/TaskService.java +++ b/astrid/src/com/todoroo/astrid/service/TaskService.java @@ -1,600 +1,600 @@ /** * Copyright ...
true
true
public static Task createWithValues(Task task, ContentValues values, String title) { if (title != null) task.setValue(Task.TITLE, title); ArrayList<String> tags = new ArrayList<String>(); boolean quickAddMarkup = false; try { quickAddMarkup = parseQuickAddMar...
public static Task createWithValues(Task task, ContentValues values, String title) { if (title != null) task.setValue(Task.TITLE, title); ArrayList<String> tags = new ArrayList<String>(); boolean quickAddMarkup = false; try { quickAddMarkup = parseQuickAddMar...
diff --git a/Dreamworld/src/de/blablubbabc/dreamworld/managers/ConfigManager.java b/Dreamworld/src/de/blablubbabc/dreamworld/managers/ConfigManager.java index 66a0e99..9a3ef91 100644 --- a/Dreamworld/src/de/blablubbabc/dreamworld/managers/ConfigManager.java +++ b/Dreamworld/src/de/blablubbabc/dreamworld/managers/Config...
true
true
public ConfigManager(Plugin plugin) { this.plugin = plugin; // default config: FileConfiguration config = plugin.getConfig(); config.options().copyDefaults(true); plugin.saveDefaultConfig(); // load values: try { ConfigurationSection dreamSection = config.getConfigurationSection("dream"); ...
public ConfigManager(Plugin plugin) { this.plugin = plugin; // default config: FileConfiguration config = plugin.getConfig(); config.options().copyDefaults(true); plugin.saveDefaultConfig(); // load values: try { ConfigurationSection dreamSection = config.getConfigurationSection("dream"); ...
diff --git a/dspace-api/src/main/java/org/dspace/submit/step/StartSubmissionLookupStep.java b/dspace-api/src/main/java/org/dspace/submit/step/StartSubmissionLookupStep.java index cfb488493..c7dd7375a 100644 --- a/dspace-api/src/main/java/org/dspace/submit/step/StartSubmissionLookupStep.java +++ b/dspace-api/src/main/ja...
true
true
public int doProcessing(Context context, HttpServletRequest request, HttpServletResponse response, SubmissionInfo subInfo) throws ServletException, IOException, SQLException, AuthorizeException { // First we find the collection which was selected int id = Util...
public int doProcessing(Context context, HttpServletRequest request, HttpServletResponse response, SubmissionInfo subInfo) throws ServletException, IOException, SQLException, AuthorizeException { // First we find the collection which was selected int id = Util...
diff --git a/src/main/java/TomcatMain.java b/src/main/java/TomcatMain.java index a67766c..4fccb68 100644 --- a/src/main/java/TomcatMain.java +++ b/src/main/java/TomcatMain.java @@ -1,39 +1,39 @@ import de.javakaffee.web.msm.MemcachedBackupSessionManager; import org.apache.catalina.Context; import org.apache.catalina...
false
true
public static void main(String[] args) throws ServletException, LifecycleException { String webappDirLocation = "src/main/webapp/"; Tomcat tomcat = new Tomcat(); //The port that we should run on can be set into an environment variable //Look for that variable and default to 8080 if ...
public static void main(String[] args) throws ServletException, LifecycleException { String webappDirLocation = "src/main/webapp/"; Tomcat tomcat = new Tomcat(); //The port that we should run on can be set into an environment variable //Look for that variable and default to 8080 if ...
diff --git a/src/java/net/sf/jabref/external/DownloadExternalFile.java b/src/java/net/sf/jabref/external/DownloadExternalFile.java index 157053768..fec73b7d9 100644 --- a/src/java/net/sf/jabref/external/DownloadExternalFile.java +++ b/src/java/net/sf/jabref/external/DownloadExternalFile.java @@ -1,334 +1,334 @@ packag...
true
true
public void download(URL url, final DownloadCallback callback) throws IOException { String res = url.toString(); URLDownload udl = null; // First of all, start the download itself in the background to a temporary file: final File tmp = File.createTempFile("jabref_download", "tmp");...
public void download(URL url, final DownloadCallback callback) throws IOException { String res = url.toString(); URLDownload udl = null; // First of all, start the download itself in the background to a temporary file: final File tmp = File.createTempFile("jabref_download", "tmp");...
diff --git a/benchmarks/src/ibis/ipl/benchmarks/registry/Main.java b/benchmarks/src/ibis/ipl/benchmarks/registry/Main.java index 39364cd2..a2ac57c3 100644 --- a/benchmarks/src/ibis/ipl/benchmarks/registry/Main.java +++ b/benchmarks/src/ibis/ipl/benchmarks/registry/Main.java @@ -1,93 +1,93 @@ package ibis.ipl.benchmark...
true
true
public static void main(String[] args) throws Exception { int threads = 1; boolean generateEvents = false; long start = System.currentTimeMillis(); long runtime = Long.MAX_VALUE; long delay = 0; boolean fail = false; int rank = new Integer(System.getProperty("rank",...
public static void main(String[] args) throws Exception { int threads = 1; boolean generateEvents = false; long start = System.currentTimeMillis(); long runtime = Long.MAX_VALUE; long delay = 0; boolean fail = false; // int rank = new Integer(System.getProperty("ran...
diff --git a/src/main/java/org/ebayopensource/turmeric/tools/annoparser/WSDLDocument.java b/src/main/java/org/ebayopensource/turmeric/tools/annoparser/WSDLDocument.java index 2dee579..bda4b10 100644 --- a/src/main/java/org/ebayopensource/turmeric/tools/annoparser/WSDLDocument.java +++ b/src/main/java/org/ebayopensource...
true
true
public ComplexType searchCType(String name) { if(xsdDocument!=null){ return this.xsdDocument.searchCType(name); } return xsdDocument.searchCType(name); }
public ComplexType searchCType(String name) { if(xsdDocument!=null){ return this.xsdDocument.searchCType(name); } return null; }
diff --git a/PaintroidTest/src/org/catrobat/paintroid/test/integration/tools/FillToolIntegrationTest.java b/PaintroidTest/src/org/catrobat/paintroid/test/integration/tools/FillToolIntegrationTest.java index f77d7dce..b2fc3cc6 100644 --- a/PaintroidTest/src/org/catrobat/paintroid/test/integration/tools/FillToolIntegrati...
false
true
public void testOnlyFillInnerArea() { assertTrue("Waiting for DrawingSurface", mSolo.waitForView(DrawingSurfaceImplementation.class, 1, TIMEOUT)); DrawingSurface drawingSurface = (DrawingSurfaceImplementation) getActivity().findViewById( R.id.drawingSurfaceView); assertEquals("BrushTool should be selected"...
public void testOnlyFillInnerArea() { assertTrue("Waiting for DrawingSurface", mSolo.waitForView(DrawingSurfaceImplementation.class, 1, TIMEOUT)); DrawingSurface drawingSurface = (DrawingSurfaceImplementation) getActivity().findViewById( R.id.drawingSurfaceView); assertEquals("BrushTool should be selected"...
diff --git a/BlueFinderRS/src/pia/BipartiteGraphPathGenerator.java b/BlueFinderRS/src/pia/BipartiteGraphPathGenerator.java index 6533cf5..8100b89 100644 --- a/BlueFinderRS/src/pia/BipartiteGraphPathGenerator.java +++ b/BlueFinderRS/src/pia/BipartiteGraphPathGenerator.java @@ -1,84 +1,84 @@ package pia; import db....
true
true
public static void main(String[] args) throws ClassNotFoundException, SQLException, FileNotFoundException, IOException { Connection conReserarch = WikipediaConnector.getResultsConnection(); Statement st = conReserarch.createStatement(); int counter = 0; if (args.length < 4 || args[0...
public static void main(String[] args) throws ClassNotFoundException, SQLException, FileNotFoundException, IOException { Connection conReserarch = WikipediaConnector.getResultsConnection(); Statement st = conReserarch.createStatement(); int counter = 0; if (args.length < 4 || args[0...
diff --git a/src/main/java/org/jrecruiter/persistent/dao/JobsDAOHibernate.java b/src/main/java/org/jrecruiter/persistent/dao/JobsDAOHibernate.java index 344eeaf..5ae680f 100644 --- a/src/main/java/org/jrecruiter/persistent/dao/JobsDAOHibernate.java +++ b/src/main/java/org/jrecruiter/persistent/dao/JobsDAOHibernate.java...
false
true
public List<Job> getUsersJobsForStatistics(String username, Integer maxResult, StatsMode statsMode) { List < Job > jobs; User user = userDao.getUser(username); boolean administrator = false; Iterator it = user.getRoles().iterator(); while (it.hasNext()) { Us...
public List<Job> getUsersJobsForStatistics(String username, Integer maxResult, StatsMode statsMode) { List < Job > jobs; User user = userDao.getUser(username); boolean administrator = false; Iterator it = user.getRoles().iterator(); while (it.hasNext()) { Us...
diff --git a/mideaas-codeeditor/src/main/java/org/vaadin/mideaas/editor/MultiUserDoc.java b/mideaas-codeeditor/src/main/java/org/vaadin/mideaas/editor/MultiUserDoc.java index 2d6d94b..b87c492 100644 --- a/mideaas-codeeditor/src/main/java/org/vaadin/mideaas/editor/MultiUserDoc.java +++ b/mideaas-codeeditor/src/main/java...
true
true
public void changed() { // Delaying a bit. Not acting on each change, only after a while. // This is a bit so so... synchronized (baseChangeTimer) { if (fireScheduled) { return; } baseChangeTimer.schedule(new TimerTask() { @Override public void run() { synchronized (baseChangeTimer) { ...
public void changed() { // Delaying a bit. Not acting on each change, only after a while. // This is a bit so so... synchronized (baseChangeTimer) { if (fireScheduled) { return; } baseChangeTimer.schedule(new TimerTask() { @Override public void run() { synchronized (baseChangeTimer) { ...
diff --git a/tests-src/net/grinder/console/swingui/TestGraph.java b/tests-src/net/grinder/console/swingui/TestGraph.java index c016b8a2..caf16b97 100755 --- a/tests-src/net/grinder/console/swingui/TestGraph.java +++ b/tests-src/net/grinder/console/swingui/TestGraph.java @@ -1,132 +1,132 @@ // The Grinder // Copyright...
true
true
public void testLabelledGraph() throws Exception { final LabelledGraph labelledGraph = new LabelledGraph("Test"); createUI(labelledGraph); double peak = 0d; final Statistics statistics = new Statistics(); statistics.addAbortion(); statistics.addError(); statistics.addTransaction(1); for (int i=0; i<5...
public void testLabelledGraph() throws Exception { final LabelledGraph labelledGraph = new LabelledGraph("Test"); createUI(labelledGraph); double peak = 0d; final Statistics statistics = new Statistics(); statistics.addAbortion(); statistics.addError(); statistics.addTransaction(1); for (int i=0; i<5...
diff --git a/Nof1/src/uk/co/jwlawson/nof1/fragments/AdHocEntryComplete.java b/Nof1/src/uk/co/jwlawson/nof1/fragments/AdHocEntryComplete.java index 4e7d709..4406687 100644 --- a/Nof1/src/uk/co/jwlawson/nof1/fragments/AdHocEntryComplete.java +++ b/Nof1/src/uk/co/jwlawson/nof1/fragments/AdHocEntryComplete.java @@ -1,151 +...
false
true
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View view = inflater.inflate(R.layout.ad_hoc_complete, container, false); TextView thanks = (TextView) view.findViewById(R.id.ad_hoc_text_thanks); RelativeLayout layout = (RelativeLayout) thanks.getParent(); ...
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View view = inflater.inflate(R.layout.ad_hoc_complete, container, false); TextView thanks = (TextView) view.findViewById(R.id.ad_hoc_text_thanks); RelativeLayout layout = (RelativeLayout) thanks.getParent(); ...
diff --git a/src/de/cdauth/osm/basic/ChangesetContent.java b/src/de/cdauth/osm/basic/ChangesetContent.java index 7456704..64d7c1c 100644 --- a/src/de/cdauth/osm/basic/ChangesetContent.java +++ b/src/de/cdauth/osm/basic/ChangesetContent.java @@ -1,408 +1,408 @@ /* This file is part of OSM Route Manager. OSM...
true
true
public Node[][][] getNodeChanges() throws IOException, SAXException, ParserConfigurationException, APIError, ParseException { Hashtable<Object,Object> old = getPreviousVersions(); Hashtable<String,Node> nodesRemoved = new Hashtable<String,Node>(); // All removed nodes and the old versions of all moved nodes ...
public Node[][][] getNodeChanges() throws IOException, SAXException, ParserConfigurationException, APIError, ParseException { Hashtable<Object,Object> old = getPreviousVersions(); Hashtable<String,Node> nodesRemoved = new Hashtable<String,Node>(); // All removed nodes and the old versions of all moved nodes ...
diff --git a/core/impl/main/java/org/directwebremoting/convert/JDOMConverter.java b/core/impl/main/java/org/directwebremoting/convert/JDOMConverter.java index 414d7862..baf5fd9c 100644 --- a/core/impl/main/java/org/directwebremoting/convert/JDOMConverter.java +++ b/core/impl/main/java/org/directwebremoting/convert/JDOM...
true
true
public OutboundVariable convertOutbound(Object data, OutboundContext outctx) throws ConversionException { try { Format outformat = Format.getCompactFormat(); outformat.setEncoding("UTF-8"); // Setup the destination String script; // U...
public OutboundVariable convertOutbound(Object data, OutboundContext outctx) throws ConversionException { try { Format outformat = Format.getRawFormat(); outformat.setEncoding("UTF-8"); // Setup the destination String script; // Using...
diff --git a/RiverSim/src/riversim/RiverSim.java b/RiverSim/src/riversim/RiverSim.java index 7207044..110bc84 100644 --- a/RiverSim/src/riversim/RiverSim.java +++ b/RiverSim/src/riversim/RiverSim.java @@ -1,94 +1,89 @@ package riversim; import java.util.ArrayList; import riversim.vehicles.Boat; import riversim.ve...
true
true
public static void main(String[] args) { /* * Kludge Test */ /* Boat b = new Boat(); Boat c = new Boat(); System.out.println("b = = c = " + (b.equals(c))); if(true) { return; } */ /* * End Kludge */...
public static void main(String[] args) { /* * Kludge Test */ /* Boat b = new Boat(); Boat c = new Boat(); System.out.println("b = = c = " + (b.equals(c))); if(true) { return; } */ /* * End Kludge */...
diff --git a/src/main/org/codehaus/groovy/tools/javac/JavaStubGenerator.java b/src/main/org/codehaus/groovy/tools/javac/JavaStubGenerator.java index ede1a7154..7a24ad70b 100644 --- a/src/main/org/codehaus/groovy/tools/javac/JavaStubGenerator.java +++ b/src/main/org/codehaus/groovy/tools/javac/JavaStubGenerator.java @@ ...
false
true
public void generateClass(ClassNode classNode) throws FileNotFoundException { // Only attempt to render our self if our super-class is resolved, else wait for it if (requireSuperResolved && !classNode.getSuperClass().isResolved()) { return; } // don't generate stubs for ...
public void generateClass(ClassNode classNode) throws FileNotFoundException { // Only attempt to render our self if our super-class is resolved, else wait for it if (requireSuperResolved && !classNode.getSuperClass().isResolved()) { return; } // don't generate stubs for ...
diff --git a/poj-countdowntimer/src/net/diogomarques/utils/CountDownTimer.java b/poj-countdowntimer/src/net/diogomarques/utils/CountDownTimer.java index 041c1ea..c61bef5 100644 --- a/poj-countdowntimer/src/net/diogomarques/utils/CountDownTimer.java +++ b/poj-countdowntimer/src/net/diogomarques/utils/CountDownTimer.java...
true
true
public synchronized final CountDownTimer start() { mTimer = new Timer(); final long deadline = System.currentTimeMillis() + mMillisInFuture; TimerTask tickerTask = new TimerTask() { @Override public void run() { long now = System.currentTimeMillis(); if (now + mCountdownInterval > deadline) { ...
public synchronized final CountDownTimer start() { mTimer = new Timer(); final long deadline = System.currentTimeMillis() + mMillisInFuture; TimerTask tickerTask = new TimerTask() { @Override public void run() { long now = System.currentTimeMillis(); if (now + mCountdownInterval > deadline) { ...
diff --git a/src/main/java/org/json/simple/parser/Yylex.java b/src/main/java/org/json/simple/parser/Yylex.java index 42ce508..e58e27e 100644 --- a/src/main/java/org/json/simple/parser/Yylex.java +++ b/src/main/java/org/json/simple/parser/Yylex.java @@ -1,688 +1,688 @@ /* The following code was generated by JFlex 1.4.2...
true
true
public Yytoken yylex() throws java.io.IOException, ParseException { int zzInput; int zzAction; // cached fields: int zzCurrentPosL; int zzMarkedPosL; int zzEndReadL = zzEndRead; char [] zzBufferL = zzBuffer; char [] zzCMapL = ZZ_CMAP; int [] zzTransL = ZZ_TRANS; int [] zzRowM...
public Yytoken yylex() throws java.io.IOException, ParseException { int zzInput; int zzAction; // cached fields: int zzCurrentPosL; int zzMarkedPosL; int zzEndReadL = zzEndRead; char [] zzBufferL = zzBuffer; char [] zzCMapL = ZZ_CMAP; int [] zzTransL = ZZ_TRANS; int [] zzRowM...
diff --git a/db/src/main/java/com/psddev/dari/db/DatabaseEnvironment.java b/db/src/main/java/com/psddev/dari/db/DatabaseEnvironment.java index bcae4582..f6cdc56c 100644 --- a/db/src/main/java/com/psddev/dari/db/DatabaseEnvironment.java +++ b/db/src/main/java/com/psddev/dari/db/DatabaseEnvironment.java @@ -1,766 +1,766 ...
false
true
public synchronized void refreshTypes() { bootstrap(); Database database = getDatabase(); try { TypesCache temporaryTypes = temporaryTypesLocal.get(); if (temporaryTypes == null) { temporaryTypes = new TypesCache(); temporaryTypesLoca...
public synchronized void refreshTypes() { bootstrap(); Database database = getDatabase(); try { TypesCache temporaryTypes = temporaryTypesLocal.get(); if (temporaryTypes == null) { temporaryTypes = new TypesCache(); temporaryTypesLoca...
diff --git a/cebu-server/app/utils/DistanceCache.java b/cebu-server/app/utils/DistanceCache.java index a584406..5425a48 100644 --- a/cebu-server/app/utils/DistanceCache.java +++ b/cebu-server/app/utils/DistanceCache.java @@ -1,101 +1,101 @@ package utils; import java.util.HashMap; import java.util.List; import ...
true
true
public Double updateDistance(String imei, Coordinate newCoord, Double error) { Double distance = 0.0; Vehicle vehicle = vehicleImeiLinks.get(imei); if(vehicle == null) { Phone phone = Phone.find("imei = ?", imei).first(); if(phone == null) return 0.0; vehicle = phone.vehicle; ...
public Double updateDistance(String imei, Coordinate newCoord, Double error) { Double distance = 0.0; Vehicle vehicle = vehicleImeiLinks.get(imei); if(vehicle == null) { Phone phone = Phone.find("imei = ?", imei).first(); if(phone == null) return 0.0; vehicle = phone.vehicle; ...
diff --git a/src/java/net/sf/jabref/imports/IEEEXploreFetcher.java b/src/java/net/sf/jabref/imports/IEEEXploreFetcher.java index d132579b9..57dc6c5b6 100644 --- a/src/java/net/sf/jabref/imports/IEEEXploreFetcher.java +++ b/src/java/net/sf/jabref/imports/IEEEXploreFetcher.java @@ -1,774 +1,777 @@ /* Copyright (C) 2003...
false
true
private BibtexEntry cleanup(BibtexEntry entry) { if (entry == null) return null; // clean up title String title = (String)entry.getField("title"); if (title != null) { // USe the alt-text and replace image links title = title.replaceAll("[ ]?img src=[...
private BibtexEntry cleanup(BibtexEntry entry) { if (entry == null) return null; // clean up title String title = (String)entry.getField("title"); if (title != null) { // USe the alt-text and replace image links title = title.replaceAll("[ ]?img src=[...
diff --git a/liveDemo/core/source/org/openfaces/demo/beans/daytable/DayTableBean2.java b/liveDemo/core/source/org/openfaces/demo/beans/daytable/DayTableBean2.java index 2e85a157d..459dff704 100644 --- a/liveDemo/core/source/org/openfaces/demo/beans/daytable/DayTableBean2.java +++ b/liveDemo/core/source/org/openfaces/de...
true
true
public DayTableBean2() { Color green = new Color(41, 142, 1); Color blue = new Color(2, 105, 220); Color orange = new Color(232, 65, 2); Resource andrew = new Resource("Andrew", "#0269dc"); Resource lucie = new Resource("Lucie", "#df4c11"); Resource alex = new Resour...
public DayTableBean2() { Color green = new Color(41, 142, 1); Color blue = new Color(2, 105, 220); Color orange = new Color(232, 65, 2); Resource andrew = new Resource("Andrew", "#0269dc"); Resource lucie = new Resource("Lucie", "#df4c11"); Resource alex = new Resour...
diff --git a/src/de/podfetcher/activity/MediaplayerActivity.java b/src/de/podfetcher/activity/MediaplayerActivity.java index dd192673..85921729 100644 --- a/src/de/podfetcher/activity/MediaplayerActivity.java +++ b/src/de/podfetcher/activity/MediaplayerActivity.java @@ -1,366 +1,366 @@ package de.podfetcher.activity; ...
true
true
private void setupGUI() { imgvCover = (ImageView) findViewById(R.id.imgvCover); txtvPosition = (TextView) findViewById(R.id.txtvPosition); txtvLength = (TextView) findViewById(R.id.txtvLength); txtvStatus = (TextView) findViewById(R.id.txtvStatus); sbPosition = (SeekBar) findViewById(R.id.sbPosition); butP...
private void setupGUI() { imgvCover = (ImageView) findViewById(R.id.imgvCover); txtvPosition = (TextView) findViewById(R.id.txtvPosition); txtvLength = (TextView) findViewById(R.id.txtvLength); txtvStatus = (TextView) findViewById(R.id.txtvStatus); sbPosition = (SeekBar) findViewById(R.id.sbPosition); butP...
diff --git a/VodiSmetka/src/com/vodismetka/activities/AddNewReceiptActivity.java b/VodiSmetka/src/com/vodismetka/activities/AddNewReceiptActivity.java index e4d1a52..f57bdb4 100644 --- a/VodiSmetka/src/com/vodismetka/activities/AddNewReceiptActivity.java +++ b/VodiSmetka/src/com/vodismetka/activities/AddNewReceiptActiv...
false
true
protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.new_purchase); //set up a data access object dbDao = new ReceiptDAO(getApplicationContext()); //get references to the views receiptPhoto = (ImageView) findViewById(R.id.newReceipt); date...
protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.new_purchase); //set up a data access object dbDao = new ReceiptDAO(getApplicationContext()); //get references to the views receiptPhoto = (ImageView) findViewById(R.id.newReceipt); date...
diff --git a/core/vdmj/src/main/java/org/overturetool/vdmj/expressions/NewExpression.java b/core/vdmj/src/main/java/org/overturetool/vdmj/expressions/NewExpression.java index f9e16ccf06..2967ae35ad 100644 --- a/core/vdmj/src/main/java/org/overturetool/vdmj/expressions/NewExpression.java +++ b/core/vdmj/src/main/java/or...
true
true
public Type typeCheck(Environment env, TypeList qualifiers, NameScope scope) { Definition cdef = env.findType(classname.getClassName()); if (cdef == null || !(cdef instanceof ClassDefinition)) { report(3133, "Class name " + classname + " not in scope"); return new UnknownType(location); } classdef =...
public Type typeCheck(Environment env, TypeList qualifiers, NameScope scope) { Definition cdef = env.findType(classname.getClassName()); if (cdef == null || !(cdef instanceof ClassDefinition)) { report(3133, "Class name " + classname + " not in scope"); return new UnknownType(location); } classdef =...
diff --git a/GAE/src/org/waterforpeople/mapping/dataexport/RawDataExporter.java b/GAE/src/org/waterforpeople/mapping/dataexport/RawDataExporter.java index a52867108..12dc68502 100644 --- a/GAE/src/org/waterforpeople/mapping/dataexport/RawDataExporter.java +++ b/GAE/src/org/waterforpeople/mapping/dataexport/RawDataExpor...
true
true
private void exportInstances(PrintWriter pw, List<String> idList) throws Exception { String instanceString = fetchDataFromServer(serverBase + DATA_SERVLET_PATH + DataBackoutRequest.LIST_INSTANCE_ACTION + "&" + DataBackoutRequest.SURVEY_ID_PARAM + "=" + surveyId+"&"+DataBackoutRequest.INCLUDE_DATE_PARAM+"=...
private void exportInstances(PrintWriter pw, List<String> idList) throws Exception { String instanceString = fetchDataFromServer(serverBase + DATA_SERVLET_PATH + DataBackoutRequest.LIST_INSTANCE_ACTION + "&" + DataBackoutRequest.SURVEY_ID_PARAM + "=" + surveyId+"&"+DataBackoutRequest.INCLUDE_DATE_PARAM+"=...
diff --git a/src/de/schildbach/pte/VbbProvider.java b/src/de/schildbach/pte/VbbProvider.java index a6f8a98c..8a48fa2b 100644 --- a/src/de/schildbach/pte/VbbProvider.java +++ b/src/de/schildbach/pte/VbbProvider.java @@ -1,730 +1,730 @@ /* * Copyright 2010 the original author or authors. * * This program is free ...
true
true
public GetConnectionDetailsResult getConnectionDetails(final String uri) throws IOException { final CharSequence page = ParserUtils.scrape(uri); final Matcher mHead = P_CONNECTION_DETAILS_HEAD.matcher(page); if (mHead.matches()) { final Date currentDate = ParserUtils.parseDate(mHead.group(1)); final Li...
public GetConnectionDetailsResult getConnectionDetails(final String uri) throws IOException { final CharSequence page = ParserUtils.scrape(uri); final Matcher mHead = P_CONNECTION_DETAILS_HEAD.matcher(page); if (mHead.matches()) { final Date currentDate = ParserUtils.parseDate(mHead.group(1)); final Li...
diff --git a/components/bio-formats/src/loci/formats/in/LeicaHandler.java b/components/bio-formats/src/loci/formats/in/LeicaHandler.java index 04028c1e0..cc4f87351 100644 --- a/components/bio-formats/src/loci/formats/in/LeicaHandler.java +++ b/components/bio-formats/src/loci/formats/in/LeicaHandler.java @@ -1,969 +1,96...
false
true
public void startElement(String uri, String localName, String qName, Attributes attributes) { if (attributes.getLength() > 0 && !qName.equals("Element") && !qName.equals("Attachment") && !qName.equals("LMSDataContainerHeader")) { nameStack.push(qName); } Hashtable h = getSeriesHasht...
public void startElement(String uri, String localName, String qName, Attributes attributes) { if (attributes.getLength() > 0 && !qName.equals("Element") && !qName.equals("Attachment") && !qName.equals("LMSDataContainerHeader")) { nameStack.push(qName); } Hashtable h = getSeriesHasht...
diff --git a/src/org/apache/fop/fo/StandardElementMapping.java b/src/org/apache/fop/fo/StandardElementMapping.java index 9104b0fa0..ac4837c52 100644 --- a/src/org/apache/fop/fo/StandardElementMapping.java +++ b/src/org/apache/fop/fo/StandardElementMapping.java @@ -1,110 +1,109 @@ /*-- $Id$ -- ====================...
true
true
public void addToBuilder(FOTreeBuilder builder) { String uri = "http://www.w3.org/1999/XSL/Format"; builder.addMapping(uri, "root", Root.maker()); builder.addMapping(uri, "layout-master-set", LayoutMasterSet.maker()); builder.addMapping(uri, "simple-page-master", SimplePageMaster.maker()); bui...
public void addToBuilder(FOTreeBuilder builder) { String uri = "http://www.w3.org/1999/XSL/Format"; builder.addMapping(uri, "root", Root.maker()); builder.addMapping(uri, "layout-master-set", LayoutMasterSet.maker()); builder.addMapping(uri, "simple-page-master", SimplePageMaster.maker()); bui...
diff --git a/test/org/encog/neural/activation/TestActivationSoftMax.java b/test/org/encog/neural/activation/TestActivationSoftMax.java index ffa12e9e4..bdee091aa 100644 --- a/test/org/encog/neural/activation/TestActivationSoftMax.java +++ b/test/org/encog/neural/activation/TestActivationSoftMax.java @@ -1,53 +1,45 @@ ...
true
true
public void testSoftMax() throws Throwable { ActivationSoftMax activation = new ActivationSoftMax(); Assert.assertFalse(activation.hasDerivative()); ActivationSoftMax clone = (ActivationSoftMax)activation.clone(); Assert.assertNotNull(clone); double[] input = {1.0,1.0,1.0,1.0 }; activation.activa...
public void testSoftMax() throws Throwable { ActivationSoftMax activation = new ActivationSoftMax(); Assert.assertFalse(activation.hasDerivative()); ActivationSoftMax clone = (ActivationSoftMax)activation.clone(); Assert.assertNotNull(clone); double[] input = {1.0,1.0,1.0,1.0 }; activation.activa...
diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/simple/TestSerializedFactory.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/simple/TestSerializedFactory.java index 9b3cb26a0..c08517982 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa...
false
true
public void testSerializedEntityManagerFactory() throws Exception { // correct the logic if and when EMFs do not implement // the serializable interface assertTrue("EntityManagerFactory object is not serializable", emf instanceof Serializable); // serialize and des...
public void testSerializedEntityManagerFactory() throws Exception { // correct the logic if and when EMFs do not implement // the serializable interface assertTrue("EntityManagerFactory object is not serializable", emf instanceof Serializable); // serialize and des...
diff --git a/web-frontend/src/main/java/org/bazhenov/logging/web/tags/EntryTag.java b/web-frontend/src/main/java/org/bazhenov/logging/web/tags/EntryTag.java index e7b684a..7b532de 100644 --- a/web-frontend/src/main/java/org/bazhenov/logging/web/tags/EntryTag.java +++ b/web-frontend/src/main/java/org/bazhenov/logging/we...
true
true
public int doEndTag() throws JspException { JspWriter out = pageContext.getOut(); LogEntry sampleEntry = entry.getSampleEntry(); String title = sampleEntry.getMessage(); String applicationId = sampleEntry.getApplicationId(); int count = entry.getCount(); boolean withStacktrace = sampleEntry.getCause() !=...
public int doEndTag() throws JspException { JspWriter out = pageContext.getOut(); LogEntry sampleEntry = entry.getSampleEntry(); String title = sampleEntry.getMessage(); String applicationId = sampleEntry.getApplicationId(); int count = entry.getCount(); boolean withStacktrace = sampleEntry.getCause() !=...
diff --git a/org.openscada.core.net/src/org/openscada/core/net/ConnectionHelper.java b/org.openscada.core.net/src/org/openscada/core/net/ConnectionHelper.java index 3245d301e..55eb3d29b 100644 --- a/org.openscada.core.net/src/org/openscada/core/net/ConnectionHelper.java +++ b/org.openscada.core.net/src/org/openscada/co...
true
true
public static void setupFilterChain ( final ConnectionInformation connectionInformation, final DefaultIoFilterChainBuilder filterChainBuilder, final boolean isClient ) { // set up compression final String compress = connectionInformation.getProperties ().get ( "compress" ); if ( compress...
public static void setupFilterChain ( final ConnectionInformation connectionInformation, final DefaultIoFilterChainBuilder filterChainBuilder, final boolean isClient ) { // set up compression final String compress = connectionInformation.getProperties ().get ( "compress" ); if ( compress...
diff --git a/src/main/java/net/pms/network/RequestV2.java b/src/main/java/net/pms/network/RequestV2.java index ea8e17476..429b4c144 100644 --- a/src/main/java/net/pms/network/RequestV2.java +++ b/src/main/java/net/pms/network/RequestV2.java @@ -1,969 +1,969 @@ /* * PS3 Media Server, for streaming any medias to your ...
true
true
public ChannelFuture answer( HttpResponse output, MessageEvent e, final boolean close, final StartStopListenerDelegate startStopListenerDelegate ) throws IOException { ChannelFuture future = null; long CLoverride = -2; // 0 and above are valid Content-Length values, -1 means omit StringBuilder response ...
public ChannelFuture answer( HttpResponse output, MessageEvent e, final boolean close, final StartStopListenerDelegate startStopListenerDelegate ) throws IOException { ChannelFuture future = null; long CLoverride = -2; // 0 and above are valid Content-Length values, -1 means omit StringBuilder response ...
diff --git a/server/src/main/java/org/uiautomation/ios/wkrdp/model/RemoteWebNativeBackedElement.java b/server/src/main/java/org/uiautomation/ios/wkrdp/model/RemoteWebNativeBackedElement.java index 30894798..0c87938f 100644 --- a/server/src/main/java/org/uiautomation/ios/wkrdp/model/RemoteWebNativeBackedElement.java +++...
false
true
public Point getLocation() throws Exception { // web stuff. //scrollIntoViewIfNeeded(); Point po = findPosition(); Dimension dim = getInspector().getSize(); int webPageWidth = getInspector().getInnerWidth(); if (dim.getWidth() != webPageWidth) { log.fine("BUG : dim.getWidth()!=web...
public Point getLocation() throws Exception { // web stuff. //scrollIntoViewIfNeeded(); Point po = findPosition(); Dimension dim = getInspector().getSize(); int webPageWidth = getInspector().getInnerWidth(); if (dim.getWidth() != webPageWidth) { log.fine("BUG : dim.getWidth()!=web...
diff --git a/core/src/processing/core/PApplet.java b/core/src/processing/core/PApplet.java index bbde1fcef..5b0107c2c 100755 --- a/core/src/processing/core/PApplet.java +++ b/core/src/processing/core/PApplet.java @@ -1,15710 +1,15710 @@ /* -*- mode: java; c-basic-offset: 2; indent-tabs-mode: nil -*- */ /* Part o...
true
true
public PImage loadImage(String filename, String extension) { //, Object params) { if (extension == null) { String lower = filename.toLowerCase(); int dot = filename.lastIndexOf('.'); if (dot == -1) { extension = "unknown"; // no extension found } extension = lower.substring(...
public PImage loadImage(String filename, String extension) { //, Object params) { if (extension == null) { String lower = filename.toLowerCase(); int dot = filename.lastIndexOf('.'); if (dot == -1) { extension = "unknown"; // no extension found } extension = lower.substring(...
diff --git a/src/main/java/org/jvnet/hudson/plugins/m2release/M2ReleaseAction.java b/src/main/java/org/jvnet/hudson/plugins/m2release/M2ReleaseAction.java index 4b40697..c5dbc0d 100644 --- a/src/main/java/org/jvnet/hudson/plugins/m2release/M2ReleaseAction.java +++ b/src/main/java/org/jvnet/hudson/plugins/m2release/M2Re...
false
true
public void doSubmit(StaplerRequest req, StaplerResponse resp) throws IOException, ServletException { M2ReleaseBuildWrapper.checkReleasePermission(project); M2ReleaseBuildWrapper m2Wrapper = project.getBuildWrappersList().get(M2ReleaseBuildWrapper.class); // JSON collapses everything in the dynamic specifyVersi...
public void doSubmit(StaplerRequest req, StaplerResponse resp) throws IOException, ServletException { M2ReleaseBuildWrapper.checkReleasePermission(project); M2ReleaseBuildWrapper m2Wrapper = project.getBuildWrappersList().get(M2ReleaseBuildWrapper.class); // JSON collapses everything in the dynamic specifyVersi...
diff --git a/samigo-app/src/java/org/sakaiproject/tool/assessment/ui/bean/author/AssessmentSettingsBean.java b/samigo-app/src/java/org/sakaiproject/tool/assessment/ui/bean/author/AssessmentSettingsBean.java index c18d53d6f..38c1b55c6 100644 --- a/samigo-app/src/java/org/sakaiproject/tool/assessment/ui/bean/author/Asses...
false
true
public void setAssessment(AssessmentFacade assessment) { try { //1. set the template info AssessmentService service = new AssessmentService(); AssessmentTemplateIfc template = service.getAssessmentTemplate( assessment.getAssessmentTemplateId().toString()); if (template != null){...
public void setAssessment(AssessmentFacade assessment) { try { //1. set the template info AssessmentService service = new AssessmentService(); AssessmentTemplateIfc template = null; if (assessment.getAssessmentTemplateId()!=null){ template = service.getAssessmentTemplate( ...
diff --git a/server/src/main/java/org/apache/accumulo/server/tabletserver/TabletStatsKeeper.java b/server/src/main/java/org/apache/accumulo/server/tabletserver/TabletStatsKeeper.java index 67e3aa540..81a6c64b5 100644 --- a/server/src/main/java/org/apache/accumulo/server/tabletserver/TabletStatsKeeper.java +++ b/server/...
true
true
public void updateTime(Operation operation, long queued, long start, long count, boolean failed) { try { ActionStats data = map[operation.ordinal()]; if (failed) { data.fail++; data.status--; } else { double t = (System.currentTimeMillis() - start) / 1000.0; doubl...
public void updateTime(Operation operation, long queued, long start, long count, boolean failed) { try { ActionStats data = map[operation.ordinal()]; if (failed) { data.fail++; data.status--; } else { double t = (System.currentTimeMillis() - start) / 1000.0; doubl...
diff --git a/src/main/java/mcgill/fiveCardStud/FiveCardStud.java b/src/main/java/mcgill/fiveCardStud/FiveCardStud.java index e68b227..3323d50 100644 --- a/src/main/java/mcgill/fiveCardStud/FiveCardStud.java +++ b/src/main/java/mcgill/fiveCardStud/FiveCardStud.java @@ -1,413 +1,413 @@ package mcgill.fiveCardStud; im...
true
true
private void betting() throws OutOfMoneyException, TooFewCardsException, TooManyCardsException { int i = 1; boolean continueStreet = true; findStartingPlayer(); while (continueStreet) { for (int j = startingPlayer; j < (startingPlayer + this.players.size()); j++){ if ((noMoreCalls() || onlyOn...
private void betting() throws OutOfMoneyException, TooFewCardsException, TooManyCardsException { int i = 1; boolean continueStreet = true; findStartingPlayer(); while (continueStreet) { for (int j = startingPlayer; j < (startingPlayer + this.players.size()); j++){ if ((noMoreCalls() || onlyOn...
diff --git a/MonTransit/src/org/montrealtransit/android/LocationUtils.java b/MonTransit/src/org/montrealtransit/android/LocationUtils.java index fab93747..18256a68 100755 --- a/MonTransit/src/org/montrealtransit/android/LocationUtils.java +++ b/MonTransit/src/org/montrealtransit/android/LocationUtils.java @@ -1,140 +1,...
false
true
public static Location getBestLastKnownLocation(Activity activity) { Location result = null; for (String provider : getBestProviders(activity)) { Location lastLocation = getLocationManager(activity).getLastKnownLocation(provider); // IF no last location candidate DO if (result == null) { // IF this lo...
public static Location getBestLastKnownLocation(Activity activity) { Location result = null; for (String provider : getBestProviders(activity)) { Location lastLocation = getLocationManager(activity).getLastKnownLocation(provider); // IF the last location is NOT NULL (= location provider disabled) DO if (l...
diff --git a/Android/YDP/src/com/example/ydp/HOMESCREEN.java b/Android/YDP/src/com/example/ydp/HOMESCREEN.java index 1e142a4..9229626 100644 --- a/Android/YDP/src/com/example/ydp/HOMESCREEN.java +++ b/Android/YDP/src/com/example/ydp/HOMESCREEN.java @@ -1,41 +1,41 @@ package com.example.ydp; import android.app.TabAc...
false
true
protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.homescreen); Resources res = getResources(); // Resource object to get Drawables TabHost tabHost = getTabHost(); // The activity TabHost TabHost.TabSpec spec; // Resusable TabSpec fo...
protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.homescreen); Resources res = getResources(); // Resource object to get Drawables TabHost tabHost = getTabHost(); // The activity TabHost TabHost.TabSpec spec; // Resusable TabSpec fo...
diff --git a/com.piece_framework.makegood.core/src/com/piece_framework/makegood/core/TestClass.java b/com.piece_framework.makegood.core/src/com/piece_framework/makegood/core/TestClass.java index 5076186f..4a69dcbd 100644 --- a/com.piece_framework.makegood.core/src/com/piece_framework/makegood/core/TestClass.java +++ b/...
true
true
public IModelElement[] getChildren() throws ModelException { if (this.children != null) return this.children; List<IModelElement> children = new ArrayList<IModelElement>(); if (getFlags() != Modifiers.AccNameSpace) { children.addAll(Arrays.asList(getMethods())); ITy...
public IModelElement[] getChildren() throws ModelException { if (this.children != null) return this.children; List<IModelElement> children = new ArrayList<IModelElement>(); if ((getFlags() & Modifiers.AccNameSpace) == 0) { children.addAll(Arrays.asList(getMethods())); ...
diff --git a/java/Apparat.Core/src/com/joa_ebert/apparat/taas/compiler/DefaultEnvironmentFactory.java b/java/Apparat.Core/src/com/joa_ebert/apparat/taas/compiler/DefaultEnvironmentFactory.java index 8ad2aab..d0732a5 100644 --- a/java/Apparat.Core/src/com/joa_ebert/apparat/taas/compiler/DefaultEnvironmentFactory.java ++...
true
true
public static AbcEnvironment create() throws IOException { final Abc builtinABC = new Abc(); final Abc toplevelABC = new Abc(); final URL builtinURL = DefaultEnvironmentFactory.class .getResource( "/com/joa_ebert/apparat/taas/compiler/builtin/builtin.abc" ); final URL toplevelURL = DefaultEnvironmentFac...
public static AbcEnvironment create() throws IOException { final Abc builtinABC = new Abc(); final Abc toplevelABC = new Abc(); final URL builtinURL = DefaultEnvironmentFactory.class .getResource( "/com/joa_ebert/apparat/taas/compiler/builtin/builtin.abc" ); final URL toplevelURL = DefaultEnvironmentFac...
diff --git a/systemtap/org.eclipse.linuxtools.callgraph.launch/src/org/eclipse/linuxtools/callgraph/launch/SystemTapLaunchConfigurationDelegate.java b/systemtap/org.eclipse.linuxtools.callgraph.launch/src/org/eclipse/linuxtools/callgraph/launch/SystemTapLaunchConfigurationDelegate.java index 2918cdfec..e63638471 100644...
true
true
private void finishLaunch(ILaunch launch, ILaunchConfiguration config, String options, IProgressMonitor monitor, boolean retry) { try { // Check for cancellation if (monitor.isCanceled() || launch == null) { return; } monitor.worked(1); // set the default source locator if required setDefa...
private void finishLaunch(ILaunch launch, ILaunchConfiguration config, String options, IProgressMonitor monitor, boolean retry) { try { // Check for cancellation if (monitor.isCanceled() || launch == null) { return; } monitor.worked(1); // set the default source locator if required setDefa...
diff --git a/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/editor/DeploySection.java b/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/editor/DeploySection.java index 828f46a4c..ea15de0fe 100755 --- a/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/ec...
true
true
public void createSection(Composite parent) { super.createSection(parent); FormToolkit toolkit = new FormToolkit(parent.getDisplay()); Section section = toolkit.createSection(parent, ExpandableComposite.TWISTIE|ExpandableComposite.EXPANDED|ExpandableComposite.TITLE_BAR); section.setText(Messages.swf_Depl...
public void createSection(Composite parent) { super.createSection(parent); FormToolkit toolkit = new FormToolkit(parent.getDisplay()); Section section = toolkit.createSection(parent, ExpandableComposite.TWISTIE|ExpandableComposite.EXPANDED|ExpandableComposite.TITLE_BAR); section.setText(Messages.swf_Depl...
diff --git a/hadoop-mapreduce-project/src/contrib/streaming/src/java/org/apache/hadoop/streaming/StreamJob.java b/hadoop-mapreduce-project/src/contrib/streaming/src/java/org/apache/hadoop/streaming/StreamJob.java index a019be7f34..b68e73e34b 100644 --- a/hadoop-mapreduce-project/src/contrib/streaming/src/java/org/apach...
true
true
protected void setJobConf() throws IOException { if (additionalConfSpec_ != null) { LOG.warn("-additionalconfspec option is deprecated, please use -conf instead."); config_.addResource(new Path(additionalConfSpec_)); } // general MapRed job properties jobConf_ = new JobConf(config_); ...
protected void setJobConf() throws IOException { if (additionalConfSpec_ != null) { LOG.warn("-additionalconfspec option is deprecated, please use -conf instead."); config_.addResource(new Path(additionalConfSpec_)); } // general MapRed job properties jobConf_ = new JobConf(config_, Strea...
diff --git a/src/terminator/model/TerminalModel.java b/src/terminator/model/TerminalModel.java index bbad828..966c2a4 100644 --- a/src/terminator/model/TerminalModel.java +++ b/src/terminator/model/TerminalModel.java @@ -1,463 +1,463 @@ package terminator.model; import java.awt.*; import java.util.*; import javax...
true
true
public void insertLine(int index, TextLine lineToInsert) { // Use a private copy of the first display line throughout this method to avoid mutation // caused by textLines.add()/textLines.remove(). final int firstDisplayLine = getFirstDisplayLine(); lineIsDirty(firstDisplayLine); if (index > firstDisplayLine ...
public void insertLine(int index, TextLine lineToInsert) { // Use a private copy of the first display line throughout this method to avoid mutation // caused by textLines.add()/textLines.remove(). final int firstDisplayLine = getFirstDisplayLine(); lineIsDirty(firstDisplayLine); if (index > firstDisplayLine ...
diff --git a/maven-python-mojos/maven-bdd-plugin/src/main/java/com/github/mojo/bdd/AbstractBddMojo.java b/maven-python-mojos/maven-bdd-plugin/src/main/java/com/github/mojo/bdd/AbstractBddMojo.java index 900eae7..031cce4 100644 --- a/maven-python-mojos/maven-bdd-plugin/src/main/java/com/github/mojo/bdd/AbstractBddMojo.j...
true
true
public void execute() throws MojoExecutionException, MojoFailureException { createReportsFolder(); try { preExecute(); File directory = new File(projectDirectory,this.workingDirectory); if (directory.exists()) { getLog().info(""); getLog().info("Running " + toolName + " from " + workingDir...
public void execute() throws MojoExecutionException, MojoFailureException { createReportsFolder(); try { preExecute(); File directory = new File(projectDirectory,this.workingDirectory); if (directory.exists()) { getLog().info(""); getLog().info("Running " + toolName + " from " + workingDir...
diff --git a/src/CustomOreGen/mod_CustomOreGen.java b/src/CustomOreGen/mod_CustomOreGen.java index 230a67b..432942d 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/libraries/OpenCL/JavaCL/src/main/java/com/nativelibs4java/opencl/CLImage.java b/libraries/OpenCL/JavaCL/src/main/java/com/nativelibs4java/opencl/CLImage.java index 9b811252..46069470 100644 --- a/libraries/OpenCL/JavaCL/src/main/java/com/nativelibs4java/opencl/CLImage.java +++ b/libraries/OpenCL/JavaCL/src...
true
true
protected CLEvent write(CLQueue queue, NativeSize[] origin, NativeSize[] region, long rowPitch, long slicePitch, Buffer in, boolean blocking, CLEvent... eventsToWaitFor) { boolean indirect = !in.isDirect(); if (indirect) in = directCopy(in, getContext().getByteOrder()); cl_event[] eventOut = blocking ? null ...
protected CLEvent write(CLQueue queue, NativeSize[] origin, NativeSize[] region, long rowPitch, long slicePitch, Buffer in, boolean blocking, CLEvent... eventsToWaitFor) { boolean indirect = !in.isDirect(); if (indirect) in = directCopy(in, getContext().getByteOrder()); cl_event[] eventOut = blocking ? null ...
diff --git a/hazelcast/src/test/java/ru/taskurotta/hz/test/DelayIQueueTest.java b/hazelcast/src/test/java/ru/taskurotta/hz/test/DelayIQueueTest.java index 88e8575b..328ccac3 100644 --- a/hazelcast/src/test/java/ru/taskurotta/hz/test/DelayIQueueTest.java +++ b/hazelcast/src/test/java/ru/taskurotta/hz/test/DelayIQueueTes...
false
true
public void CommonDelayIQueueTest() throws InterruptedException { HazelcastInstance hazelcastInstance = Hazelcast.newHazelcastInstance(); try { StorageFactory storageFactory = new CommonStorageFactory(hazelcastInstance, "commonStorage", ""); QueueFactory queueFactory = new...
public void CommonDelayIQueueTest() throws InterruptedException { HazelcastInstance hazelcastInstance = Hazelcast.newHazelcastInstance(); try { StorageFactory storageFactory = new CommonStorageFactory(hazelcastInstance, "commonStorage", "1_seconds"); QueueFactory queueFact...
diff --git a/vtk-amibe/src/org/jcae/vtk/MeshVisuReader.java b/vtk-amibe/src/org/jcae/vtk/MeshVisuReader.java index 8c88627e..0de75d81 100644 --- a/vtk-amibe/src/org/jcae/vtk/MeshVisuReader.java +++ b/vtk-amibe/src/org/jcae/vtk/MeshVisuReader.java @@ -1,351 +1,349 @@ /* * Project Info: http://jcae.sourceforge.net ...
true
true
private MeshVisu constructEdges(Mesh mesh, int leave) { MeshVisu toReturn = new MeshVisu(); TIntArrayList edges = new TIntArrayList(mesh.getTriangles().size() * 3); // This is empiric allocation, in general freeEdges dont are very numerous TIntArrayList freeEdges = new TIntArrayList(mesh.getTriangles().size(...
private MeshVisu constructEdges(Mesh mesh, int leave) { MeshVisu toReturn = new MeshVisu(); TIntArrayList edges = new TIntArrayList(mesh.getTriangles().size() * 3); // This is empiric allocation, in general freeEdges dont are very numerous TIntArrayList freeEdges = new TIntArrayList(mesh.getTriangles().size(...
diff --git a/src/main/java/net/croxis/plugins/civilmineation/SignInteractListener.java b/src/main/java/net/croxis/plugins/civilmineation/SignInteractListener.java index cc0c8b6..5cbc849 100644 --- a/src/main/java/net/croxis/plugins/civilmineation/SignInteractListener.java +++ b/src/main/java/net/croxis/plugins/civilmin...
true
true
public void onBlockInteract(PlayerInteractEvent event){ //Left click is click, Right click is cycle //Debug lines to see what the null error is from //error is right clicking bottom block event.getClickedBlock(); event.getClickedBlock().getType(); if (event.getClickedBlock().getType().equals(Material.WALL_...
public void onBlockInteract(PlayerInteractEvent event){ //Left click is click, Right click is cycle //Debug lines to see what the null error is from //error is right clicking bottom block if (event.getClickedBlock() == null){ return; } event.getClickedBlock(); event.getClickedBlock().getType(); if (...
diff --git a/src/org/thestaticvoid/iriverter/Converter.java b/src/org/thestaticvoid/iriverter/Converter.java index f2f11d5..37860a0 100755 --- a/src/org/thestaticvoid/iriverter/Converter.java +++ b/src/org/thestaticvoid/iriverter/Converter.java @@ -1,455 +1,457 @@ package org.thestaticvoid.iriverter; import java.io...
true
true
private List prepareBaseCommandList(String inputVideo, String outputVideo, MPlayerInfo info) { List commandList = new ArrayList(); commandList.add(MPlayerInfo.getMPlayerPath() + "mencoder"); commandList.add(inputVideo); commandList.add("-o"); commandList.add(outputVideo); if (ConverterOptions.ge...
private List prepareBaseCommandList(String inputVideo, String outputVideo, MPlayerInfo info) { List commandList = new ArrayList(); commandList.add(MPlayerInfo.getMPlayerPath() + "mencoder"); commandList.add(inputVideo); commandList.add("-o"); commandList.add(outputVideo); if (ConverterOptions.ge...
diff --git a/BarcodeScanner/src/com/github/barcodescanner/database/DatabaseActivity.java b/BarcodeScanner/src/com/github/barcodescanner/database/DatabaseActivity.java index eed340f..79643ce 100644 --- a/BarcodeScanner/src/com/github/barcodescanner/database/DatabaseActivity.java +++ b/BarcodeScanner/src/com/github/barco...
true
true
private void setupSearch(Menu menu) { searchBar = (EditText) menu.findItem(R.id.database_menu_search).getActionView(); searchBar.setEms(10); searchBar.setLayoutParams(new LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT)); searchBar.setHint(R.string.database_search_hint); searchQuery = ""; ...
private void setupSearch(Menu menu) { searchBar = (EditText) menu.findItem(R.id.database_menu_search).getActionView(); searchBar.setEms(10); searchBar.setLayoutParams(new LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT)); searchBar.setHint(R.string.database_search_hint); searchBar.setCompou...
diff --git a/plugins/connection.core/src/main/java/org/apache/directory/studio/connection/core/io/api/DirectoryApiConnectionWrapper.java b/plugins/connection.core/src/main/java/org/apache/directory/studio/connection/core/io/api/DirectoryApiConnectionWrapper.java index c4e802a0f..13b906cf1 100644 --- a/plugins/connectio...
true
true
private void doBind( final StudioProgressMonitor monitor ) throws Exception { if ( ldapConnection != null && isConnected ) { InnerRunnable runnable = new InnerRunnable() { public void run() { try { ...
private void doBind( final StudioProgressMonitor monitor ) throws Exception { if ( ldapConnection != null && isConnected ) { InnerRunnable runnable = new InnerRunnable() { public void run() { try { ...
diff --git a/src/scratchpad/src/org/apache/poi/hwpf/converter/AbstractWordConverter.java b/src/scratchpad/src/org/apache/poi/hwpf/converter/AbstractWordConverter.java index 38968f082..dbb337a8f 100644 --- a/src/scratchpad/src/org/apache/poi/hwpf/converter/AbstractWordConverter.java +++ b/src/scratchpad/src/org/apache/p...
true
true
protected boolean processCharacters( HWPFDocumentCore document, int currentTableLevel, Range range, final Element block ) { if ( range == null ) return false; boolean haveAnyText = false; if ( document instanceof HWPFDocument ) { final HWPFDo...
protected boolean processCharacters( HWPFDocumentCore document, int currentTableLevel, Range range, final Element block ) { if ( range == null ) return false; boolean haveAnyText = false; if ( document instanceof HWPFDocument ) { final HWPFDo...
diff --git a/src/gui/VerJuzgado.java b/src/gui/VerJuzgado.java index 4fd0bc5..23fa9cf 100644 --- a/src/gui/VerJuzgado.java +++ b/src/gui/VerJuzgado.java @@ -1,53 +1,53 @@ package gui; import net.rim.device.api.ui.component.Dialog; import persistence.Persistence; import core.Juzgado; public class VerJuzgado { ...
true
true
public void actualizarJuzgado() { if (_screen.isGuardado()) { try { Persistence persistence = new Persistence(); boolean cambio = false; Juzgado juzgado = _screen.getJuzgado(); if (!juzgado.getNombre().equals(_screen.getNombre())) cambio = true; if (!juzgado.getCiudad().equals(_screen.ge...
public void actualizarJuzgado() { if (_screen.isGuardado()) { try { Persistence persistence = new Persistence(); boolean cambio = false; Juzgado juzgado = _screen.getJuzgado(); if (!juzgado.getNombre().equals(_screen.getNombre())) cambio = true; if (!juzgado.getCiudad().equals(_screen.ge...
diff --git a/src/jtermios/windows/JTermiosImpl.java b/src/jtermios/windows/JTermiosImpl.java index cd71d3c..eee501b 100644 --- a/src/jtermios/windows/JTermiosImpl.java +++ b/src/jtermios/windows/JTermiosImpl.java @@ -1,1226 +1,1225 @@ /* * Copyright (c) 2011, Kustaa Nyholm / SpareTimeLabs * All rights reserved. ...
true
true
public int select(int n, FDSet readfds, FDSet writefds, FDSet exceptfds, TimeVal timeout) { // long T0 = System.currentTimeMillis(); int ready = 0; LinkedList<Port> locked = new LinkedList<Port>(); try { try { LinkedList<Port> waiting = new LinkedList<Port>(); for (int fd = 0; fd < n; fd++) { b...
public int select(int n, FDSet readfds, FDSet writefds, FDSet exceptfds, TimeVal timeout) { // long T0 = System.currentTimeMillis(); int ready = 0; LinkedList<Port> locked = new LinkedList<Port>(); try { try { LinkedList<Port> waiting = new LinkedList<Port>(); for (int fd = 0; fd < n; fd++) { b...
diff --git a/ee3_common/com/pahimar/ee3/core/handlers/EntityLivingHandler.java b/ee3_common/com/pahimar/ee3/core/handlers/EntityLivingHandler.java index 3c333750..dce6c0df 100644 --- a/ee3_common/com/pahimar/ee3/core/handlers/EntityLivingHandler.java +++ b/ee3_common/com/pahimar/ee3/core/handlers/EntityLivingHandler.ja...
true
true
public void onEntityLivingDeath(LivingDeathEvent event) { if (event.source.getDamageType().equals("player")) { ItemDropHelper.dropMiniumShard((EntityPlayer) event.source.getSourceOfDamage(), event.entityLiving); } if (event.source.getSourceOfDamage() instanceof EntityArrow) { ...
public void onEntityLivingDeath(LivingDeathEvent event) { if (event.source.getDamageType().equals("player")) { ItemDropHelper.dropMiniumShard((EntityPlayer) event.source.getSourceOfDamage(), event.entityLiving); } if (event.source.getSourceOfDamage() instanceof EntityArrow) { ...
diff --git a/src/main/java/br/ufrj/dcc/compgraf/im/crop/CropMouseAdapter.java b/src/main/java/br/ufrj/dcc/compgraf/im/crop/CropMouseAdapter.java index 5ebcea8..4028a3f 100644 --- a/src/main/java/br/ufrj/dcc/compgraf/im/crop/CropMouseAdapter.java +++ b/src/main/java/br/ufrj/dcc/compgraf/im/crop/CropMouseAdapter.java @@ ...
true
true
public void mouseClicked(MouseEvent e) { if (!nextClickIsCrop) { Point clickedPixel = new Point(e.getX(), e.getY()); CropContext.instance().setClickedPixel(clickedPixel); ((Component) e.getSource()).repaint(); nextClickIsCrop = true; } else { CropContext...
public void mouseClicked(MouseEvent e) { if (!nextClickIsCrop) { Point clickedPixel = new Point(e.getX(), e.getY()); CropContext.instance().setClickedPixel(clickedPixel); ((Component) e.getSource()).repaint(); nextClickIsCrop = true; } else { CropContext...
diff --git a/src/main/java/com/yahoo/omid/tso/TSOServerConfig.java b/src/main/java/com/yahoo/omid/tso/TSOServerConfig.java index f66d83c..f464651 100644 --- a/src/main/java/com/yahoo/omid/tso/TSOServerConfig.java +++ b/src/main/java/com/yahoo/omid/tso/TSOServerConfig.java @@ -1,108 +1,108 @@ /** * Copyright (c) 2011...
true
true
static public TSOServerConfig parseConfig(String args[]){ config = new TSOServerConfig(); if (args.length == 0) { new JCommander(config).usage(); System.exit(0); } new JCommander(config, args); return config; }
static public TSOServerConfig parseConfig(String args[]){ TSOServerConfig config = new TSOServerConfig(); if (args.length == 0) { new JCommander(config).usage(); System.exit(0); } new JCommander(config, args); return config; }
diff --git a/src/org/logicprobe/LogicMail/util/UtilProxy.java b/src/org/logicprobe/LogicMail/util/UtilProxy.java index eca60b8..377371e 100644 --- a/src/org/logicprobe/LogicMail/util/UtilProxy.java +++ b/src/org/logicprobe/LogicMail/util/UtilProxy.java @@ -1,115 +1,115 @@ /*- * Copyright (c) 2006, Derek Konigsberg ...
false
true
private static UtilProxy createUtilProxy() { UtilProxy utilProxy = null; String version = AppInfo.getVersion(); try { if(version.indexOf("BB v4.0") != -1) { utilProxy = (UtilProxy)Class.forName("org.logicprobe.LogicMail.util.UtilProxyBB40").new...
private static UtilProxy createUtilProxy() { UtilProxy utilProxy = null; String version = AppInfo.getVersion(); try { if(version.endsWith(".40")) { utilProxy = (UtilProxy)Class.forName("org.logicprobe.LogicMail.util.UtilProxyBB40").newInstance(...
diff --git a/src/java/com/android/internal/telephony/gsm/GsmServiceStateTracker.java b/src/java/com/android/internal/telephony/gsm/GsmServiceStateTracker.java index 56cf53a..808ec2b 100644 --- a/src/java/com/android/internal/telephony/gsm/GsmServiceStateTracker.java +++ b/src/java/com/android/internal/telephony/gsm/Gsm...
false
true
private void pollStateDone() { if (DBG) { log("Poll ServiceState done: " + " oldSS=[" + ss + "] newSS=[" + newSS + "] oldGprs=" + gprsState + " newData=" + newGPRSState + " oldMaxDataCalls=" + mMaxDataCalls + " mNewMaxDataCalls=" + ...
private void pollStateDone() { if (DBG) { log("Poll ServiceState done: " + " oldSS=[" + ss + "] newSS=[" + newSS + "] oldGprs=" + gprsState + " newData=" + newGPRSState + " oldMaxDataCalls=" + mMaxDataCalls + " mNewMaxDataCalls=" + ...
diff --git a/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/breakpoints/StandardJavaBreakpointEditor.java b/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/breakpoints/StandardJavaBreakpointEditor.java index 2bdffa4e5..4175d9776 100644 --- a/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/inter...
true
true
protected Control createStandardControls(Composite parent) { Composite composite = SWTFactory.createComposite(parent, parent.getFont(), 4, 1, 0, 0, 0); fHitCountButton = SWTFactory.createCheckButton(composite, processMnemonics(PropertyPageMessages.JavaBreakpointPage_4), null, false, 1); fHitCountButton.setLayout...
protected Control createStandardControls(Composite parent) { Composite composite = SWTFactory.createComposite(parent, parent.getFont(), 4, 1, 0, 0, 0); fHitCountButton = SWTFactory.createCheckButton(composite, processMnemonics(PropertyPageMessages.JavaBreakpointPage_4), null, false, 1); fHitCountButton.setLayout...
diff --git a/src/graindcafe/tribu/Tribu.java b/src/graindcafe/tribu/Tribu.java index b745ee2..1ec9972 100644 --- a/src/graindcafe/tribu/Tribu.java +++ b/src/graindcafe/tribu/Tribu.java @@ -1,797 +1,798 @@ package graindcafe.tribu; import graindcafe.tribu.BlockTracer.BlockTrace; import graindcafe.tribu.Configuratio...
true
true
public void checkAliveCount() { // log.info("checking alive count " + aliveCount); int alive = players.size() - deadPeople.size(); if (alive == 0 && isRunning) { //if (aliveCount == 0 && isRunning) { //if deadPeople isnt used. deadPeople.clear(); stopRunning(); messagePlayers(language.get("Message.Zombi...
public void checkAliveCount() { // log.info("checking alive count " + aliveCount); int alive = players.size() - deadPeople.size(); if (alive == 0 && isRunning) { //if (aliveCount == 0 && isRunning) { //if deadPeople isnt used. deadPeople.clear(); stopRunning(); messagePlayers(language.get("Message.Zombi...
diff --git a/src/at/fundev/oobe/TemplatablePackager.java b/src/at/fundev/oobe/TemplatablePackager.java index 21bfb6d..65e9aec 100644 --- a/src/at/fundev/oobe/TemplatablePackager.java +++ b/src/at/fundev/oobe/TemplatablePackager.java @@ -1,237 +1,237 @@ package at.fundev.oobe; import java.io.BufferedReader; import ...
false
true
private void processInputFile(File inputFile, Metadata md) throws IOException { File templateFile = new File(getTemplate()); if(!inputFile.exists()) { throw new FileNotFoundException(String.format("The input file %s doesn't exist.", inputFile.getName())); } if(!templateFile.exists()) { throw new Fi...
private void processInputFile(File inputFile, Metadata md) throws IOException { File templateFile = new File(getTemplate()); if(!inputFile.exists()) { throw new FileNotFoundException(String.format("The input file %s doesn't exist.", inputFile.getName())); } if(!templateFile.exists()) { throw new Fi...
diff --git a/contrib/MFJ.java b/contrib/MFJ.java index c35e1e3..40395c0 100644 --- a/contrib/MFJ.java +++ b/contrib/MFJ.java @@ -1,99 +1,99 @@ import org.uwcs.choob.*; import org.uwcs.choob.modules.*; import org.uwcs.choob.support.*; import org.uwcs.choob.support.events.*; //Calendar support import java.util.Gr...
true
true
public void commandColour(Message con, Modules mods, IRCInterface irc) { GregorianCalendar cal = new GregorianCalendar(); int type = cal.get(cal.DAY_OF_MONTH); String colour; switch (type) { case 1: colour = "Slate Blue"; break; case 2: colour = "Indian Red"; break; case 3: colour = "Pal...
public void commandColour(Message con, Modules mods, IRCInterface irc) { GregorianCalendar cal = new GregorianCalendar(); int type = cal.get(cal.DAY_OF_MONTH); String colour; switch (type) { case 1: colour = "Slate Blue"; break; case 2: colour = "Indian Red"; break; case 3: colour = "Pal...
diff --git a/vtm/src/org/oscim/renderer/BufferObject.java b/vtm/src/org/oscim/renderer/BufferObject.java index 38361433..6c8a6838 100644 --- a/vtm/src/org/oscim/renderer/BufferObject.java +++ b/vtm/src/org/oscim/renderer/BufferObject.java @@ -1,214 +1,214 @@ /* * Copyright 2012 Hannes Janetzek * * This program i...
true
true
static synchronized int limitUsage(int reduce) { int vboIds[] = new int[10]; int freed = 0; for (int t = 0; t < 2; t++) { int removed = 0; BufferObject prev = pool[t]; if (prev == null) { Log.d(TAG, "nothing to free"); return 0; } for (BufferObject bo = pool[t].next; bo != null;) { ...
static synchronized int limitUsage(int reduce) { int vboIds[] = new int[10]; int freed = 0; for (int t = 0; t < 2; t++) { int removed = 0; BufferObject prev = pool[t]; if (prev == null) { Log.d(TAG, "nothing to free"); continue; } for (BufferObject bo = pool[t].next; bo != null;) { ...
diff --git a/fingerpaint/src/nl/tue/fingerpaint/client/storage/FileExporter.java b/fingerpaint/src/nl/tue/fingerpaint/client/storage/FileExporter.java index 2fb0b52..163b011 100644 --- a/fingerpaint/src/nl/tue/fingerpaint/client/storage/FileExporter.java +++ b/fingerpaint/src/nl/tue/fingerpaint/client/storage/FileExpor...
true
true
public static void exportSvgImage(String svg) { // Add tags to indicate that this should be an svg image svg = svg.substring(0, 4) + " xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\"" + svg.substring(4, svg.length()); promptSvgDownload(svg); }
public static void exportSvgImage(String svg) { // Add tags to indicate that this should be an svg image if (!svg.contains("xmlns")) { svg = svg.substring(0, 4) + " xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\"" + svg.substring(4, svg.length()); } promptSvgDownload(svg); }
diff --git a/ini/trakem2/imaging/Registration.java b/ini/trakem2/imaging/Registration.java index 0f372dc1..0b5d8550 100644 --- a/ini/trakem2/imaging/Registration.java +++ b/ini/trakem2/imaging/Registration.java @@ -1,1974 +1,1974 @@ /** TrakEM2 plugin for ImageJ(C). Copyright (C) 2005,2006 Albert Cardona and Rodne...
false
true
static public Bureaucrat registerTilesSIFT(final Layer[] layer, final boolean[] options, final int max_size, final float scale) { if (null == layer || 0 == layer.length) return null; final boolean overlapping_only = options[0]; final boolean largest_graph_only = options[1]; final boolean hide_other_tiles = op...
static public Bureaucrat registerTilesSIFT(final Layer[] layer, final boolean[] options, final int max_size, final float scale) { if (null == layer || 0 == layer.length) return null; final boolean overlapping_only = options[0]; final boolean largest_graph_only = options[1]; final boolean hide_other_tiles = op...
diff --git a/src/com/android/email/mail/transport/SmtpSender.java b/src/com/android/email/mail/transport/SmtpSender.java index 71a86306..a9b13a66 100644 --- a/src/com/android/email/mail/transport/SmtpSender.java +++ b/src/com/android/email/mail/transport/SmtpSender.java @@ -1,334 +1,334 @@ /* * Copyright (C) 2008 Th...
true
true
public void open() throws MessagingException { try { mTransport.open(); // Eat the banner executeSimpleCommand(null); String localHost = "localhost"; // Try to get local address in the proper format. InetAddress localAddress = mTransp...
public void open() throws MessagingException { try { mTransport.open(); // Eat the banner executeSimpleCommand(null); String localHost = "localhost"; // Try to get local address in the proper format. InetAddress localAddress = mTransp...
diff --git a/Statics/src/edu/gatech/statics/modes/fbd/FBDChecker.java b/Statics/src/edu/gatech/statics/modes/fbd/FBDChecker.java index 346ec9bf..c6f34865 100644 --- a/Statics/src/edu/gatech/statics/modes/fbd/FBDChecker.java +++ b/Statics/src/edu/gatech/statics/modes/fbd/FBDChecker.java @@ -1,943 +1,943 @@ /* * To ch...
true
true
public boolean checkDiagram() { //done = false; // step 1: assemble a list of all the forces the user has added. List<AnchoredVector> addedLoads = new ArrayList<AnchoredVector>(diagram.getCurrentState().getAddedLoads()); logInfo("check: user added AnchoredVectors: " + addedLoads);...
public boolean checkDiagram() { //done = false; // step 1: assemble a list of all the forces the user has added. List<AnchoredVector> addedLoads = new ArrayList<AnchoredVector>(diagram.getCurrentState().getAddedLoads()); logInfo("check: user added AnchoredVectors: " + addedLoads);...
diff --git a/expenditure-tracking/src/pt/ist/expenditureTrackingSystem/domain/EmailDigester.java b/expenditure-tracking/src/pt/ist/expenditureTrackingSystem/domain/EmailDigester.java index c08ce6c0..78bf7b3b 100644 --- a/expenditure-tracking/src/pt/ist/expenditureTrackingSystem/domain/EmailDigester.java +++ b/expenditu...
true
true
private String getBody(Map<AcquisitionProcessStateType, Counter<AcquisitionProcessStateType>> acquisitionMap, Map<RefundProcessStateType, Counter<RefundProcessStateType>> refundMap) { StringBuilder builder = new StringBuilder("Caro utilizador, possui processos pendentes na central de compras.\n\n"); if (!ac...
private String getBody(Map<AcquisitionProcessStateType, Counter<AcquisitionProcessStateType>> acquisitionMap, Map<RefundProcessStateType, Counter<RefundProcessStateType>> refundMap) { StringBuilder builder = new StringBuilder("Caro utilizador, possui processos pendentes na central de compras.\n\n"); if (!ac...