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/gerrit-server/src/main/java/com/google/gerrit/server/change/GetRelated.java b/gerrit-server/src/main/java/com/google/gerrit/server/change/GetRelated.java index f0a173875..7f519c95b 100644 --- a/gerrit-server/src/main/java/com/google/gerrit/server/change/GetRelated.java +++ b/gerrit-server/src/main/java/com...
true
true
private List<ChangeAndCommit> children(RevisionResource rsrc, RevWalk rw, Map<Change.Id, Change> changes, Map<PatchSet.Id, PatchSet> patchSets) throws OrmException, IOException { // children is a map of parent commit name to PatchSet built on it. Multimap<String, PatchSet.Id> children = allChildre...
private List<ChangeAndCommit> children(RevisionResource rsrc, RevWalk rw, Map<Change.Id, Change> changes, Map<PatchSet.Id, PatchSet> patchSets) throws OrmException, IOException { // children is a map of parent commit name to PatchSet built on it. Multimap<String, PatchSet.Id> children = allChildre...
diff --git a/src/net/esper/tacos/ircbot/TacoBot.java b/src/net/esper/tacos/ircbot/TacoBot.java index 11c2635..855dcf5 100644 --- a/src/net/esper/tacos/ircbot/TacoBot.java +++ b/src/net/esper/tacos/ircbot/TacoBot.java @@ -1,193 +1,193 @@ package net.esper.tacos.ircbot; import java.io.File; import java.io.FileInputS...
true
true
public static void main(String[] args) throws Exception { // Setup CommandProcessor.init(); // bot.setVerbose(true); bot.setVersion("TacoBot v1.2 - For #tacos only!"); bot.getListenerManager().addListener(new TacoBot()); // Now connect the magic try { InputStream input = new FileInputStream(new File(...
public static void main(String[] args) throws Exception { // Setup CommandProcessor.init(); // bot.setVerbose(true); bot.setVersion("TacoBot v1.2 - For #tacos only!"); bot.getListenerManager().addListener(new TacoBot()); // Now connect the magic try { InputStream input = new FileInputStream(new File(...
diff --git a/src/cc/rainwave/android/api/types/Album.java b/src/cc/rainwave/android/api/types/Album.java index 7558b31..6bd7ab2 100755 --- a/src/cc/rainwave/android/api/types/Album.java +++ b/src/cc/rainwave/android/api/types/Album.java @@ -1,163 +1,162 @@ package cc.rainwave.android.api.types; import java.lang.ref...
true
true
public Album deserialize( JsonElement element, Type type, JsonDeserializationContext ctx ) throws JsonParseException { final Album a = new Album(); a.mArt = JsonHelper.getString(element, "art", null); a.mRating = JsonHelper.getFloat(element, "rating"); a.mUserRating = JsonHelper.getFloat(element, "ra...
public Album deserialize( JsonElement element, Type type, JsonDeserializationContext ctx ) throws JsonParseException { final Album a = new Album(); a.mArt = JsonHelper.getString(element, "art", null); a.mRating = JsonHelper.getFloat(element, "rating"); a.mUserRating = JsonHelper.getFloat(element, "ra...
diff --git a/FRC1318TestBed/src/org/usfirst/frc1318/autonomous/AutoMacroMap.java b/FRC1318TestBed/src/org/usfirst/frc1318/autonomous/AutoMacroMap.java index 808e789..b7f57eb 100644 --- a/FRC1318TestBed/src/org/usfirst/frc1318/autonomous/AutoMacroMap.java +++ b/FRC1318TestBed/src/org/usfirst/frc1318/autonomous/AutoMacro...
true
true
public void teleopPeriodic() // change to other update { if(ReferenceData.getInstance().getUserInputData().getAutoAnyButton())//anybutton.ispressed() { if(!autoRunner.hasActiveTask()) { if(ReferenceData.getInstance().getUserInputData().getAutoLift()) { autoRunner.setTask(new AutoLiftingMacro())...
public void teleopPeriodic() // change to other update { if(!ReferenceData.getInstance().getUserInputData().getAnyUI())//anybutton.ispressed() { if(!autoRunner.hasActiveTask()) { if(ReferenceData.getInstance().getUserInputData().getAutoLift()) { autoRunner.setTask(new AutoLiftingMacro()); }...
diff --git a/android/src/com/matji/sandwich/RankingTabActivity.java b/android/src/com/matji/sandwich/RankingTabActivity.java index 7b5b7515..859643fd 100644 --- a/android/src/com/matji/sandwich/RankingTabActivity.java +++ b/android/src/com/matji/sandwich/RankingTabActivity.java @@ -1,79 +1,79 @@ package com.matji.sand...
true
true
protected void onNotFlowResume() { // TODO Auto-generated method stub super.onNotFlowResume(); tabHost.setCurrentTab(0); tabHost.clearAllTabs(); if (session.isLogin()) { tabHost.addLeftTab("tab1", R.string.ranking_tab_friend, ...
protected void onNotFlowResume() { // TODO Auto-generated method stub super.onNotFlowResume(); tabHost.setCurrentTab(0); tabHost.clearAllTabs(); if (session.isLogin()) { tabHost.addLeftTab("tab1", R.string.ranking_tab_friend, ...
diff --git a/cloudfoundry-client-lib/src/main/java/org/cloudfoundry/client/lib/util/CloudEntityResourceMapper.java b/cloudfoundry-client-lib/src/main/java/org/cloudfoundry/client/lib/util/CloudEntityResourceMapper.java index f8488d3..40d3071 100644 --- a/cloudfoundry-client-lib/src/main/java/org/cloudfoundry/client/lib...
true
true
private CloudApplication mapApplicationResource(Map<String, Object> resource) { CloudApplication app = new CloudApplication( getMeta(resource), getNameOfResource(resource)); app.setInstances(getEntityAttribute(resource, "instances", Integer.class)); app.setServices(new ArrayList<String>()); app.setStat...
private CloudApplication mapApplicationResource(Map<String, Object> resource) { CloudApplication app = new CloudApplication( getMeta(resource), getNameOfResource(resource)); app.setInstances(getEntityAttribute(resource, "instances", Integer.class)); app.setServices(new ArrayList<String>()); app.setStat...
diff --git a/src/com/android/gallery3d/app/MovieActivity.java b/src/com/android/gallery3d/app/MovieActivity.java index 5992abadc..68335422f 100644 --- a/src/com/android/gallery3d/app/MovieActivity.java +++ b/src/com/android/gallery3d/app/MovieActivity.java @@ -1,533 +1,533 @@ /* * Copyright (C) 2007 The Android Open...
true
true
private void onAudioEffectsMenuItemClick() { if (!mIsHeadsetOn) { showHeadsetPlugToast(); } else { LayoutInflater factory = LayoutInflater.from(this); final View content = factory.inflate(R.layout.audio_effects_dialog, null); boolean enabled = mPrefs....
private void onAudioEffectsMenuItemClick() { if (!mIsHeadsetOn) { showHeadsetPlugToast(); } else { LayoutInflater factory = LayoutInflater.from(this); final View content = factory.inflate(R.layout.audio_effects_dialog, null); boolean enabled = mPrefs....
diff --git a/src/main/java/hudson/plugins/promoted_builds/Promotion.java b/src/main/java/hudson/plugins/promoted_builds/Promotion.java index 2c028f2..0043a99 100644 --- a/src/main/java/hudson/plugins/promoted_builds/Promotion.java +++ b/src/main/java/hudson/plugins/promoted_builds/Promotion.java @@ -1,162 +1,163 @@ pa...
true
true
protected Result doRun(BuildListener listener) throws Exception { AbstractBuild<?, ?> target = getTarget(); listener.getLogger().println("Promoting "+target); getStatus().addPromotionAttempt(Promotion.this); // start with SUCCESS, unless someone makes it a fail...
protected Result doRun(BuildListener listener) throws Exception { AbstractBuild<?, ?> target = getTarget(); targetBuildNumber = target.getNumber(); listener.getLogger().println("Promoting "+target); getStatus().addPromotionAttempt(Promotion.this); /...
diff --git a/tests/org.eclipse.rap.rwt.test/src/org/eclipse/rwt/internal/service/LifeCycleServiceHandler_Test.java b/tests/org.eclipse.rap.rwt.test/src/org/eclipse/rwt/internal/service/LifeCycleServiceHandler_Test.java index ebe3832b2..fc7d94cf6 100644 --- a/tests/org.eclipse.rap.rwt.test/src/org/eclipse/rwt/internal/s...
true
true
public void testRequestSynchronization() throws InterruptedException { List threads = new ArrayList(); ServiceContext context = ContextProvider.getContext(); for( int i = 0; i < THREAD_COUNT; i++ ) { IServiceHandler syncHandler = new TestHandler(); Thread thread = new Thread( new Worker( conte...
public void testRequestSynchronization() throws InterruptedException { List threads = new ArrayList(); // initialize session, see bug 344549 ContextProvider.getSession(); ServiceContext context = ContextProvider.getContext(); for( int i = 0; i < THREAD_COUNT; i++ ) { IServiceHandler syncHand...
diff --git a/java-src/agh/io/Main.java b/java-src/agh/io/Main.java index 3e2dba5..94db908 100644 --- a/java-src/agh/io/Main.java +++ b/java-src/agh/io/Main.java @@ -1,33 +1,33 @@ package agh.io; import org.ppbw.agh.swat.hoover.smith.quantum.detection.IQuantumDetector; import jyinterface.factory.JythonFactory; imp...
true
true
public static void main(String[] args) throws Exception { String text = "Ania Pies ma w domu kota. Pan Nowak nie lubi tego kota. Roman Giertych wierzy w swoje racje. "; String shortName = "org.ppbw.agh.swat.hoover.smith.quantum.detection.IQuantumDetector"; Object obj = JythonFactory.getJythonObject(short...
public static void main(String[] args) throws Exception { String text = "Czesław ma w domu kota. Pan Nowak nie lubi tego kota. Roman Giertych zdobywał wiedzę w Oksfordzie. "; String shortName = "org.ppbw.agh.swat.hoover.smith.quantum.detection.IQuantumDetector"; Object obj = JythonFactory.getJythonObjec...
diff --git a/src/edu/columbia/mipl/datastr/PrimitiveOperations.java b/src/edu/columbia/mipl/datastr/PrimitiveOperations.java index fc40bf9..df08c75 100644 --- a/src/edu/columbia/mipl/datastr/PrimitiveOperations.java +++ b/src/edu/columbia/mipl/datastr/PrimitiveOperations.java @@ -1,498 +1,498 @@ /* MIPL: Mining Integr...
true
true
public static PrimitiveType assign(PrimitiveType arg1, PrimitiveType arg2) { if (arg1 == null) { if (arg2 instanceof PrimitiveMatrix) { PrimitiveMatrix m = (PrimitiveMatrix) arg2; arg1 = new PrimitiveMatrix(m.getRow(), m.getCol()); } else if (arg2 instanceof PrimitiveDouble) { return new Primiti...
public static PrimitiveType assign(PrimitiveType arg1, PrimitiveType arg2) { if (arg1 == null) { if (arg2 instanceof PrimitiveMatrix) { PrimitiveMatrix m = (PrimitiveMatrix) arg2; arg1 = new PrimitiveMatrix(m.getRow(), m.getCol()); } else if (arg2 instanceof PrimitiveDouble) { return new Primiti...
diff --git a/src/com/android/contacts/ContactsListActivity.java b/src/com/android/contacts/ContactsListActivity.java index e5d326898..22cb78f60 100644 --- a/src/com/android/contacts/ContactsListActivity.java +++ b/src/com/android/contacts/ContactsListActivity.java @@ -1,4042 +1,4044 @@ /* * Copyright (C) 2007 The An...
false
true
protected void resolveIntent(final Intent intent) { // Allow the title to be set to a custom String using an extra on the intent String title = intent.getStringExtra(UI.TITLE_EXTRA_KEY); if (title != null) { setTitle(title); } String action = intent.getAction(); ...
protected void resolveIntent(final Intent intent) { // Allow the title to be set to a custom String using an extra on the intent String title = intent.getStringExtra(UI.TITLE_EXTRA_KEY); if (title != null) { setTitle(title); } String action = intent.getAction(); ...
diff --git a/PixelAverager/PixelAverager.java b/PixelAverager/PixelAverager.java index 52b0d90..6445b64 100644 --- a/PixelAverager/PixelAverager.java +++ b/PixelAverager/PixelAverager.java @@ -1,101 +1,101 @@ package pixelaverager; import javax.imageio.ImageIO; import java.io.File; import java.io.IOException; ...
true
true
public static BufferedImage pAvg(BufferedImage image1, BufferedImage image2) { int height = image1.getHeight(); int width = image1.getWidth(); BufferedImage result = new BufferedImage(width, height, BufferedImage.TYPE_INT_ARGB); if (height != image2.getHeight() || width != image2.getWidth()) { System.err....
public static BufferedImage pAvg(BufferedImage image1, BufferedImage image2) { int height = image1.getHeight(); int width = image1.getWidth(); BufferedImage result = new BufferedImage(width, height, BufferedImage.TYPE_INT_RGB); if (height != image2.getHeight() || width != image2.getWidth()) { System.err.p...
diff --git a/modules/activiti-webapp-rest2/src/main/java/org/activiti/rest/api/task/TaskOperationResource.java b/modules/activiti-webapp-rest2/src/main/java/org/activiti/rest/api/task/TaskOperationResource.java index f66d9cf0e..1c864eb60 100644 --- a/modules/activiti-webapp-rest2/src/main/java/org/activiti/rest/api/tas...
true
true
public ObjectNode executeTaskOperation(Representation entity) { if(authenticate() == false) return null; String taskId = (String) getRequest().getAttributes().get("taskId"); String operation = (String) getRequest().getAttributes().get("operation"); try { Map<String, Object> variables = new ...
public ObjectNode executeTaskOperation(Representation entity) { if(authenticate() == false) return null; String taskId = (String) getRequest().getAttributes().get("taskId"); String operation = (String) getRequest().getAttributes().get("operation"); try { Map<String, Object> variables = new ...
diff --git a/src/main/java/com/crawljax/core/configuration/CrawljaxConfigurationReader.java b/src/main/java/com/crawljax/core/configuration/CrawljaxConfigurationReader.java index 37ef401..ff6f405 100644 --- a/src/main/java/com/crawljax/core/configuration/CrawljaxConfigurationReader.java +++ b/src/main/java/com/crawljax...
false
true
private TagElement parseTagElement(String text) { if (text.equals("")) { return null; } String name = null; Set<TagAttribute> attributes = new HashSet<TagAttribute>(); String id = null; Pattern pattern = Pattern.compile("\\w+:\\{(\\w+=?(\\-*\\s*[\\w%]\\s*)+\\;?\\s?)*}" + "(\...
private TagElement parseTagElement(String text) { if (text.equals("")) { return null; } String name = null; Set<TagAttribute> attributes = new HashSet<TagAttribute>(); String id = null; Pattern pattern = Pattern.compile("\\w+:\\{(\\w+=?(\\-*\\s*[\\w# \\.%]\\s*)+\\;?\\s?)*}" ...
diff --git a/src/test/java/org/freeeed/main/FreeEedMainTest.java b/src/test/java/org/freeeed/main/FreeEedMainTest.java index 1ab237b7..3413953e 100644 --- a/src/test/java/org/freeeed/main/FreeEedMainTest.java +++ b/src/test/java/org/freeeed/main/FreeEedMainTest.java @@ -1,66 +1,66 @@ package org.freeeed.main; impor...
true
true
public void testMain() { System.out.println("main"); String[] args = new String[2]; args[0] = "-param_file"; String platform = PlatformUtil.getPlatform().toString().toLowerCase(); args[1] = "sample_freeeed_" + platform + ".project"; // delete output, so that t...
public void testMain() { System.out.println("main"); String[] args = new String[2]; args[0] = "-param_file"; String platform = PlatformUtil.getPlatform().toString().toLowerCase(); args[1] = "sample_freeeed_" + platform + ".project"; // delete output, so that t...
diff --git a/bundles/binding/org.openhab.binding.hue/src/main/java/org/openhab/binding/hue/internal/HueBinding.java b/bundles/binding/org.openhab.binding.hue/src/main/java/org/openhab/binding/hue/internal/HueBinding.java index 856321df..cc66ea4f 100644 --- a/bundles/binding/org.openhab.binding.hue/src/main/java/org/ope...
true
true
private void computeCommandForItemOnBridge(Command command, String itemName, HueBridge bridge) { HueBindingConfig deviceConfig = getConfigForItemName(itemName); if (deviceConfig == null) { return; } HueBulb bulb = bulbCache.get(deviceConfig.getDeviceNumber()); if (bulb == null) { bulb = new HueBu...
private void computeCommandForItemOnBridge(Command command, String itemName, HueBridge bridge) { HueBindingConfig deviceConfig = getConfigForItemName(itemName); if (deviceConfig == null) { return; } HueBulb bulb = bulbCache.get(deviceConfig.getDeviceNumber()); if (bulb == null) { bulb = new HueBu...
diff --git a/freeplane_plugin_latex/src/org/freeplane/plugin/latex/LatexRenderer.java b/freeplane_plugin_latex/src/org/freeplane/plugin/latex/LatexRenderer.java index fe0a697ac..0ca4ccff5 100644 --- a/freeplane_plugin_latex/src/org/freeplane/plugin/latex/LatexRenderer.java +++ b/freeplane_plugin_latex/src/org/freeplane...
true
true
public Icon getIcon(TextController textController, Object content, NodeModel node, Object transformedExtension) { if(transformedExtension == node.getUserObject()){ String string = content.toString(); String nodeFormat = textController.getNodeFormat(node); if (PatternFormat.IDENTITY_PATTERN.equals(nodeFo...
public Icon getIcon(TextController textController, Object content, NodeModel node, Object transformedExtension) { if(transformedExtension == node.getUserObject()){ String string = content.toString(); String nodeFormat = textController.getNodeFormat(node); if (PatternFormat.IDENTITY_PATTERN.equals(nodeFo...
diff --git a/src/main/java/commands/service/BufferedUpdaterImpl.java b/src/main/java/commands/service/BufferedUpdaterImpl.java index 70cbfc1..b48a65c 100644 --- a/src/main/java/commands/service/BufferedUpdaterImpl.java +++ b/src/main/java/commands/service/BufferedUpdaterImpl.java @@ -1,111 +1,110 @@ package commands.s...
true
true
public void run() { try (Connection connection = dataSource.getConnection()) { this.connection = connection; ExecutionResult result; while (null != (result = updateQueue.take())) { resultList.add(result); total++; limit--; ...
public void run() { try (Connection connection = dataSource.getConnection()) { this.connection = connection; ExecutionResult result; while (null != (result = updateQueue.take())) { resultList.add(result); limit--; if (limit ...
diff --git a/src/checkstyle/com/puppycrawl/tools/checkstyle/api/AutomaticBean.java b/src/checkstyle/com/puppycrawl/tools/checkstyle/api/AutomaticBean.java index f4bc95bd..92263df3 100644 --- a/src/checkstyle/com/puppycrawl/tools/checkstyle/api/AutomaticBean.java +++ b/src/checkstyle/com/puppycrawl/tools/checkstyle/api/...
true
true
public final void configure(Configuration aConfiguration) throws CheckstyleException { mConfiguration = aConfiguration; // TODO: debug log messages final String[] attributes = aConfiguration.getAttributeNames(); for (int i = 0; i < attributes.length; i++) { ...
public final void configure(Configuration aConfiguration) throws CheckstyleException { mConfiguration = aConfiguration; // TODO: debug log messages final String[] attributes = aConfiguration.getAttributeNames(); for (int i = 0; i < attributes.length; i++) { ...
diff --git a/src/common/com/ForgeEssentials/data/filesystem/FileSystemDataDriver.java b/src/common/com/ForgeEssentials/data/filesystem/FileSystemDataDriver.java index d80ec9d36..9190eb71d 100644 --- a/src/common/com/ForgeEssentials/data/filesystem/FileSystemDataDriver.java +++ b/src/common/com/ForgeEssentials/data/file...
false
true
public boolean parseConfigs(Configuration config, String worldName) { Property prop; prop = config.get("Data.FileSystem", "useFEDataDir", false); prop.comment = "Set to true to use the '.minecraft/ForgeEssentials/saves' directory instead of a world. Server owners may wish to set this to true."; boolean ...
public boolean parseConfigs(Configuration config, String worldName) { Property prop; prop = config.get("Data.FileSystem", "useFEDataDir", false); prop.comment = "Set to true to use the '.minecraft/ForgeEssentials/saves' directory instead of a world. Server owners may wish to set this to true."; boolean ...
diff --git a/src/jp/knct/di/c6t/ui/exploration/NewExplorationActivity.java b/src/jp/knct/di/c6t/ui/exploration/NewExplorationActivity.java index 3ee3a78..e62a36f 100644 --- a/src/jp/knct/di/c6t/ui/exploration/NewExplorationActivity.java +++ b/src/jp/knct/di/c6t/ui/exploration/NewExplorationActivity.java @@ -1,80 +1,80 ...
true
true
public void onClick(View v) { switch (v.getId()) { case R.id.new_exploration_ok: Exploration exploration = createExplorationFromForms(); new DebugSharedPreferencesClient(this).saveExploration(exploration); try { Toast.makeText(this, exploration.toJSON().toString(2), 1); } catch (JSONException e)...
public void onClick(View v) { switch (v.getId()) { case R.id.new_exploration_ok: Exploration exploration = createExplorationFromForms(); new DebugSharedPreferencesClient(this).saveExploration(exploration); try { Toast.makeText(this, exploration.toJSON().toString(2), 1).show(); // TODO } catch (J...
diff --git a/org/xbill/DNS/Address.java b/org/xbill/DNS/Address.java index 4d1bfcc..5689883 100644 --- a/org/xbill/DNS/Address.java +++ b/org/xbill/DNS/Address.java @@ -1,143 +1,143 @@ // Copyright (c) 1999 Brian Wellington (bwelling@xbill.org) // Portions Copyright (c) 1999 Network Associates, Inc. package org.xb...
true
true
public static int [] toArray(String s) { int numDigits; int currentOctet; int [] values = new int[4]; int length = s.length(); currentOctet = 0; numDigits = 0; for (int i = 0; i < length; i++) { char c = s.charAt(i); if(c >= '0' && c <= '9') { /* Can't have more than 3 digits per octet. */ if (numDigi...
public static int [] toArray(String s) { int numDigits; int currentOctet; int [] values = new int[4]; int length = s.length(); currentOctet = 0; numDigits = 0; for (int i = 0; i < length; i++) { char c = s.charAt(i); if (c >= '0' && c <= '9') { /* Can't have more than 3 digits per octet. */ if (numDig...
diff --git a/components/hostobjects/org.jaggeryjs.hostobjects.web/src/main/java/org/jaggeryjs/hostobjects/web/RequestHostObject.java b/components/hostobjects/org.jaggeryjs.hostobjects.web/src/main/java/org/jaggeryjs/hostobjects/web/RequestHostObject.java index 1997dee..3262355 100644 --- a/components/hostobjects/org.ja...
true
true
public static String jsFunction_getParameter(Context cx, Scriptable thisObj, Object[] args, Function funObj) throws ScriptException { String functionName = "getParameter"; int argsCount = args.length; if (argsCount != 1 && argsCount != 2) { HostObjectUtil.invalidNumbe...
public static String jsFunction_getParameter(Context cx, Scriptable thisObj, Object[] args, Function funObj) throws ScriptException { String functionName = "getParameter"; int argsCount = args.length; if (argsCount != 1 && argsCount != 2) { HostObjectUtil.invalidNumbe...
diff --git a/web/src/main/java/ru/sgu/csit/inoc/deansoffice/webui/gxt/students/server/services/StudentServiceImpl.java b/web/src/main/java/ru/sgu/csit/inoc/deansoffice/webui/gxt/students/server/services/StudentServiceImpl.java index c93c9e4..fe96054 100644 --- a/web/src/main/java/ru/sgu/csit/inoc/deansoffice/webui/gxt/...
true
true
public void saveStudent(StudentModel studentModel) { Student student = new Student(); //studentDAO.findById(studentModel.getId()); StudentUtil.populateStudentByStudentModel(student, studentModel); if (student.getSpeciality() == null) { List<Speciality> specialities = specialityt...
public void saveStudent(StudentModel studentModel) { Student student = new Student(); //studentDAO.findById(studentModel.getId()); StudentUtil.populateStudentByStudentModel(student, studentModel); if (student.getSpeciality() == null) { List<Speciality> specialities = specialityt...
diff --git a/astroboa-engine/src/main/java/org/betaconceptframework/astroboa/engine/definition/RepositoryEntityResolver.java b/astroboa-engine/src/main/java/org/betaconceptframework/astroboa/engine/definition/RepositoryEntityResolver.java index 6a7dc0f..7e78cb2 100644 --- a/astroboa-engine/src/main/java/org/betaconcept...
true
true
private byte[] getSchema(String systemId) { if (StringUtils.isBlank(systemId)){ return null; } //We are only interested in content type name or path. String schemaFilename = systemId; //We expect URL of the form //http://<server>/resource-api/astroboa/repository/<repository-id>/definition/multi...
private byte[] getSchema(String systemId) { if (StringUtils.isBlank(systemId)){ return null; } //We are only interested in content type name or path. String schemaFilename = systemId; //We expect URL of the form //http://<server>/resource-api/<repository-id>/model/multilingualStringPropertyType...
diff --git a/src/main/java/com/khs/sherpa/parser/JsonParamParser.java b/src/main/java/com/khs/sherpa/parser/JsonParamParser.java index c8a7952..3eada10 100644 --- a/src/main/java/com/khs/sherpa/parser/JsonParamParser.java +++ b/src/main/java/com/khs/sherpa/parser/JsonParamParser.java @@ -1,22 +1,22 @@ package com.khs....
true
true
public boolean isValid(Class<?> clazz) { return clazz.isAssignableFrom(Object.class); }
public boolean isValid(Class<?> clazz) { return true; }
diff --git a/server/src/de/hpi/epc/validation/EPCSyntaxChecker.java b/server/src/de/hpi/epc/validation/EPCSyntaxChecker.java index e6182db8..85bfe845 100644 --- a/server/src/de/hpi/epc/validation/EPCSyntaxChecker.java +++ b/server/src/de/hpi/epc/validation/EPCSyntaxChecker.java @@ -1,161 +1,161 @@ package de.hpi.epc.v...
false
true
protected void checkNodes() { List<DiagramNode> startEvents = new ArrayList<DiagramNode>(); List<DiagramNode> endEvents = new ArrayList<DiagramNode>(); for (DiagramNode node: diagram.getNodes()) { int in = node.getIncomingEdges().size(); int out = node.getOutgoingEdges().size(); if (in == 0 && out == 0)...
protected void checkNodes() { List<DiagramNode> startEvents = new ArrayList<DiagramNode>(); List<DiagramNode> endEvents = new ArrayList<DiagramNode>(); for (DiagramNode node: diagram.getNodes()) { int in = node.getIncomingEdges().size(); int out = node.getOutgoingEdges().size(); if (in == 0 && out == 0)...
diff --git a/appinventor/buildserver/src/com/google/appinventor/buildserver/Compiler.java b/appinventor/buildserver/src/com/google/appinventor/buildserver/Compiler.java index 010fa7c5..1a184cd3 100644 --- a/appinventor/buildserver/src/com/google/appinventor/buildserver/Compiler.java +++ b/appinventor/buildserver/src/co...
true
true
private boolean writeAndroidManifest(File manifestFile, Set<String> permissionsNeeded) { // Create AndroidManifest.xml String mainClass = project.getMainClass(); String packageName = Signatures.getPackageName(mainClass); String className = Signatures.getClassName(mainClass); String projectName = p...
private boolean writeAndroidManifest(File manifestFile, Set<String> permissionsNeeded) { // Create AndroidManifest.xml String mainClass = project.getMainClass(); String packageName = Signatures.getPackageName(mainClass); String className = Signatures.getClassName(mainClass); String projectName = p...
diff --git a/src/main/java/net/sacredlabyrinth/Phaed/PreciousStones/managers/CommandManager.java b/src/main/java/net/sacredlabyrinth/Phaed/PreciousStones/managers/CommandManager.java index f9036ed..8c88a67 100644 --- a/src/main/java/net/sacredlabyrinth/Phaed/PreciousStones/managers/CommandManager.java +++ b/src/main/ja...
true
true
public boolean onCommand(CommandSender sender, Command command, String label, String[] args) { try { if (command.getName().equals("ps")) { Player player = null; if (sender instanceof Player) { player = (...
public boolean onCommand(CommandSender sender, Command command, String label, String[] args) { try { if (command.getName().equals("ps")) { Player player = null; if (sender instanceof Player) { player = (...
diff --git a/src/test/tck/msgflow/callflows/ProtocolObjects.java b/src/test/tck/msgflow/callflows/ProtocolObjects.java index d6041b58..387e61b9 100644 --- a/src/test/tck/msgflow/callflows/ProtocolObjects.java +++ b/src/test/tck/msgflow/callflows/ProtocolObjects.java @@ -1,143 +1,143 @@ package test.tck.msgflow.callflo...
true
true
public ProtocolObjects(String stackname, String pathname, String transport, boolean autoDialog) { this.transport = transport; SipFactory sipFactory = SipFactory.getInstance(); sipFactory.resetFactory(); sipFactory.setPathName(pathname); Properties properties = new Properties(); properties.setProperty("...
public ProtocolObjects(String stackname, String pathname, String transport, boolean autoDialog) { this.transport = transport; SipFactory sipFactory = SipFactory.getInstance(); sipFactory.resetFactory(); sipFactory.setPathName(pathname); Properties properties = new Properties(); properties.setProperty("...
diff --git a/xlthotel_core_admin/src/main/java/com/xlthotel/core/admin/filter/MediaItemFilter.java b/xlthotel_core_admin/src/main/java/com/xlthotel/core/admin/filter/MediaItemFilter.java index 689f112..2df234d 100644 --- a/xlthotel_core_admin/src/main/java/com/xlthotel/core/admin/filter/MediaItemFilter.java +++ b/xltho...
true
true
public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException { HttpServletRequest req = (HttpServletRequest) request; HttpServletResponse resp = (HttpServletResponse) response; String uri = req.getRequestURI(); if (!uri.contains("/servlet/adm...
public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException { HttpServletRequest req = (HttpServletRequest) request; HttpServletResponse resp = (HttpServletResponse) response; String uri = req.getRequestURI(); if (!uri.contains("/servlet/adm...
diff --git a/com.itsolut.mantis.ui/src/com/itsolut/mantis/ui/wizard/MantisCustomQueryPage.java b/com.itsolut.mantis.ui/src/com/itsolut/mantis/ui/wizard/MantisCustomQueryPage.java index 118ab3c..cbab1ab 100644 --- a/com.itsolut.mantis.ui/src/com/itsolut/mantis/ui/wizard/MantisCustomQueryPage.java +++ b/com.itsolut.manti...
true
true
protected void createPageContent(SectionComposite sectionComposite) { Composite parent = sectionComposite.getContent(); Composite control = new Composite(parent, SWT.NONE); GridData gd = new GridData(SWT.FILL, SWT.FILL, false, false); control.setLayoutData(gd); GridL...
protected void createPageContent(SectionComposite sectionComposite) { Composite parent = sectionComposite.getContent(); Composite control = new Composite(parent, SWT.NONE); GridData gd = new GridData(SWT.FILL, SWT.FILL, true, true); control.setLayoutData(gd); GridLay...
diff --git a/core/src/visad/trunk/DataDisplayLink.java b/core/src/visad/trunk/DataDisplayLink.java index 56c9bc3aa..966e419f8 100644 --- a/core/src/visad/trunk/DataDisplayLink.java +++ b/core/src/visad/trunk/DataDisplayLink.java @@ -1,230 +1,231 @@ // // DataDisplayLink.java // /* VisAD system for interactive ...
true
true
public boolean prepareData() throws VisADException, RemoteException { int[] indices; int[] display_indices; int[] value_indices; int levelOfDifficulty; data = ((DataReference) ref).getData(); if (data == null) { renderer.addException( new DisplayException("DataDisplayLink.prepar...
public boolean prepareData() throws VisADException, RemoteException { int[] indices; int[] display_indices; int[] value_indices; int levelOfDifficulty; data = ((DataReference) ref).getData(); if (data == null) { renderer.clearExceptions(); renderer.addException( new Displa...
diff --git a/src/com/android/gallery3d/ui/AbstractSlotRenderer.java b/src/com/android/gallery3d/ui/AbstractSlotRenderer.java index 98eae568..c36847d6 100644 --- a/src/com/android/gallery3d/ui/AbstractSlotRenderer.java +++ b/src/com/android/gallery3d/ui/AbstractSlotRenderer.java @@ -1,120 +1,118 @@ /* * Copyright (C)...
false
true
protected void drawContent(GLCanvas canvas, Texture content, int width, int height, int rotation) { canvas.save(GLCanvas.SAVE_FLAG_MATRIX); if (rotation != 0) { canvas.translate(width / 2, height / 2); canvas.rotate(rotation, 0, 0, 1); canvas.translat...
protected void drawContent(GLCanvas canvas, Texture content, int width, int height, int rotation) { canvas.save(GLCanvas.SAVE_FLAG_MATRIX); // The content is always rendered in to the largest square that fits // inside the slot, aligned to the top of the slot. width = he...
diff --git a/itests/src/test/java/org/openengsb/itests/util/AbstractRemoteTestHelper.java b/itests/src/test/java/org/openengsb/itests/util/AbstractRemoteTestHelper.java index 4c0c33884..131e66907 100644 --- a/itests/src/test/java/org/openengsb/itests/util/AbstractRemoteTestHelper.java +++ b/itests/src/test/java/org/ope...
false
true
protected String prepareRequest(String methodCall, String username, String password) { String request = "" + "{" + " \"callId\":\"12345\"," + " \"answer\":true," + " \"methodCall\":" + methodCall + "}"; String authIn...
protected String prepareRequest(String methodCall, String username, String password) { String request = "" + "{" + " \"callId\":\"12345\"," + " \"answer\":true," + " \"methodCall\":" + methodCall + "}"; String authIn...
diff --git a/framework/pull-agent/src/main/java/org/apache/manifoldcf/crawler/jobs/JobManager.java b/framework/pull-agent/src/main/java/org/apache/manifoldcf/crawler/jobs/JobManager.java index b5662acf4..d6fe46bf4 100644 --- a/framework/pull-agent/src/main/java/org/apache/manifoldcf/crawler/jobs/JobManager.java +++ b/f...
false
true
public DocumentSetAndFlags getNextCleanableDocuments(int maxCount, long currentTime) throws ManifoldCFException { // The query will be built here, because it joins the jobs table against the jobqueue // table. // // This query must only pick up documents that are not active in any job and //...
public DocumentSetAndFlags getNextCleanableDocuments(int maxCount, long currentTime) throws ManifoldCFException { // The query will be built here, because it joins the jobs table against the jobqueue // table. // // This query must only pick up documents that are not active in any job and //...
diff --git a/test/commons/grails/util/GrailsUtilTests.java b/test/commons/grails/util/GrailsUtilTests.java index 805808b3e..9c86d2b5b 100644 --- a/test/commons/grails/util/GrailsUtilTests.java +++ b/test/commons/grails/util/GrailsUtilTests.java @@ -1,53 +1,53 @@ /* Copyright 2004-2005 Graeme Rocher * * Licensed un...
true
true
public void testEnvironment() { System.setProperty(GrailsApplication.ENVIRONMENT, ""); assertEquals(GrailsApplication.ENV_APPLICATION, GrailsUtil.getEnvironment()); System.setProperty(GrailsApplication.ENVIRONMENT, "prod"); assertEquals(GrailsApplication.ENV_PRODUCTION, GrailsUtil....
public void testEnvironment() { System.setProperty(GrailsApplication.ENVIRONMENT, ""); assertEquals(GrailsApplication.ENV_DEVELOPMENT, GrailsUtil.getEnvironment()); System.setProperty(GrailsApplication.ENVIRONMENT, "prod"); assertEquals(GrailsApplication.ENV_PRODUCTION, GrailsUtil....
diff --git a/src/main/java/me/tehbeard/BeardAch/ChunkCache.java b/src/main/java/me/tehbeard/BeardAch/ChunkCache.java index 8ea2fee..7222dac 100644 --- a/src/main/java/me/tehbeard/BeardAch/ChunkCache.java +++ b/src/main/java/me/tehbeard/BeardAch/ChunkCache.java @@ -1,60 +1,60 @@ package me.tehbeard.BeardAch; import ...
true
true
public static void checkLocation(Player player){ String world = player.getLocation().getWorld().getName(); String cx = "" + player.getLocation().getBlockX() / 16; String cz = "" + player.getLocation().getBlockZ() / 16; if(cache.containsKey(""+world+","+cx+","+cz)){ //BeardAch.printDebugCon("Chunk cache ...
public static void checkLocation(Player player){ String world = player.getLocation().getWorld().getName(); String cx = "" + player.getLocation().getBlockX() / 16; String cz = "" + player.getLocation().getBlockZ() / 16; if(cache.containsKey(""+world+","+cx+","+cz)){ //BeardAch.printDebugCon("Chunk cache ...
diff --git a/src/org/accesointeligente/server/robots/RequestUpdater.java b/src/org/accesointeligente/server/robots/RequestUpdater.java index 07dc291..8660b12 100644 --- a/src/org/accesointeligente/server/robots/RequestUpdater.java +++ b/src/org/accesointeligente/server/robots/RequestUpdater.java @@ -1,84 +1,84 @@ /** ...
true
true
public void updateRequests() { Session hibernate = null; try { hibernate = HibernateUtil.getSession(); hibernate.beginTransaction(); Criteria criteria = hibernate.createCriteria(Request.class); criteria.setResultTransformer(Criteria.DISTINCT_ROOT_ENTITY); criteria.setFetchMode("institution", FetchM...
public void updateRequests() { Session hibernate = null; try { hibernate = HibernateUtil.getSession(); hibernate.beginTransaction(); Criteria criteria = hibernate.createCriteria(Request.class); criteria.setResultTransformer(Criteria.DISTINCT_ROOT_ENTITY); criteria.setFetchMode("institution", FetchM...
diff --git a/VNotas/src/mx/v1ctor/android/vnotas/ViewPosts.java b/VNotas/src/mx/v1ctor/android/vnotas/ViewPosts.java index 4cbc68f..80bad51 100644 --- a/VNotas/src/mx/v1ctor/android/vnotas/ViewPosts.java +++ b/VNotas/src/mx/v1ctor/android/vnotas/ViewPosts.java @@ -1,279 +1,280 @@ package mx.v1ctor.android.vnotas; i...
true
true
private void populateTable() { // Log.d("TABLE", "POBLANDO LA TABLA"); n = notes.count(); text_title.setText(title + " [" + n + "]"); if (n > 0) { // Si la tabla no se ha leido de BD, se recupera if (!tablaCargada) { listaNotas = notes.retrieveN(n); } tabla.removeAllViews(); int i = 0; ...
private void populateTable() { // Log.d("TABLE", "POBLANDO LA TABLA"); n = notes.count(); text_title.setText(title + " [" + n + "]"); if (n > 0) { // Si la tabla no se ha leido de BD, se recupera if (!tablaCargada) { listaNotas = notes.retrieveN(n); } tabla.removeAllViews(); int i = 0; ...
diff --git a/tests/org.eclipse.rap.rwt.cluster.test/src/org/eclipse/rap/rwt/cluster/test/UICallBack_Test.java b/tests/org.eclipse.rap.rwt.cluster.test/src/org/eclipse/rap/rwt/cluster/test/UICallBack_Test.java index 81c90d71c..673dd10c6 100644 --- a/tests/org.eclipse.rap.rwt.cluster.test/src/org/eclipse/rap/rwt/cluster/...
true
true
public void testUICallbackRequestResponse() throws Exception { servletEngine.start( UICallbackEntryPoint.class ); client.sendStartupRequest(); client.sendInitializationRequest(); HttpSession session = ClusterFixture.getFirstSession( servletEngine ); final Display display = ClusterFixture.getSessio...
public void testUICallbackRequestResponse() throws Exception { servletEngine.start( UICallbackEntryPoint.class ); client.sendStartupRequest(); client.sendInitializationRequest(); HttpSession session = ClusterFixture.getFirstSession( servletEngine ); final Display display = ClusterFixture.getSessio...
diff --git a/tiles-servlet/src/test/java/org/apache/tiles/servlet/context/wildcard/WildcardServletTilesApplicationContextTest.java b/tiles-servlet/src/test/java/org/apache/tiles/servlet/context/wildcard/WildcardServletTilesApplicationContextTest.java index 0a884d0d..0fd30216 100644 --- a/tiles-servlet/src/test/java/org...
true
true
public void testGetResources() throws IOException { String url = "test.properties"; HashSet<URL> set = new HashSet<URL>(); URL u = new URL("file://tiles/test.properties"); set.add(u); EasyMock.expect(servletContext.getResource("/" + url)).andReturn(u) .anyTime...
public void testGetResources() throws IOException { String url = "test.properties"; HashSet<URL> set = new HashSet<URL>(); URL u = new URL("file://tiles/test.properties"); set.add(u); EasyMock.expect(servletContext.getResource("/" + url)).andReturn(u) .anyTime...
diff --git a/vo/src/testcases/uk/ac/starlink/vo/UpToDateTest.java b/vo/src/testcases/uk/ac/starlink/vo/UpToDateTest.java index 82d1dc580..baa84f995 100644 --- a/vo/src/testcases/uk/ac/starlink/vo/UpToDateTest.java +++ b/vo/src/testcases/uk/ac/starlink/vo/UpToDateTest.java @@ -1,48 +1,48 @@ package uk.ac.starlink.vo; ...
true
true
public void checkWsdl( String localName, String remoteName) throws Exception { URL localURL = getClass().getClassLoader().getResource( localName ); URL remoteURL = new URL( remoteName ); String[] localLines = getLines( localURL ); String[] remoteLines = getLines( remoteUR...
public void checkWsdl( String localName, String remoteName) throws Exception { URL localURL = getClass().getClassLoader().getResource( localName ); URL remoteURL = new URL( remoteName ); String[] localLines = getLines( localURL ); String[] remoteLines = getLines( remoteUR...
diff --git a/src/main/java/eu/socialsensor/framework/retrievers/socialmedia/instagram/InstagramMediaRetriever.java b/src/main/java/eu/socialsensor/framework/retrievers/socialmedia/instagram/InstagramMediaRetriever.java index b8bc344..3a6a3b1 100644 --- a/src/main/java/eu/socialsensor/framework/retrievers/socialmedia/in...
true
true
public MediaItem getMediaItem(String sid) { try { String id = getMediaId("http://instagram.com/p/"+sid); MediaInfoFeed mediaInfo = instagram.getMediaInfo(id); if(mediaInfo != null) { MediaFeedData mediaData = mediaInfo.getData(); Images images = mediaData.getImages(); ImageData standard...
public MediaItem getMediaItem(String sid) { try { String id = getMediaId("http://instagram.com/p/"+sid); MediaInfoFeed mediaInfo = instagram.getMediaInfo(id); if(mediaInfo != null) { MediaFeedData mediaData = mediaInfo.getData(); Images images = mediaData.getImages(); ImageData standard...
diff --git a/NetBeansProjects/LoginScreen/src/loginscreen/StartupScreen.java b/NetBeansProjects/LoginScreen/src/loginscreen/StartupScreen.java index b7fa383..63d892d 100644 --- a/NetBeansProjects/LoginScreen/src/loginscreen/StartupScreen.java +++ b/NetBeansProjects/LoginScreen/src/loginscreen/StartupScreen.java @@ -1,2...
false
true
private void initComponents() { jPanel8 = new javax.swing.JPanel(); mainPanel = new javax.swing.JPanel(); jPanel7 = new javax.swing.JPanel(); jLabel6 = new javax.swing.JLabel(); jLabel8 = new javax.swing.JLabel(); jLabel16 = new javax.swing.JLabel(); jPanel15...
private void initComponents() { jPanel8 = new javax.swing.JPanel(); mainPanel = new javax.swing.JPanel(); jPanel7 = new javax.swing.JPanel(); jLabel6 = new javax.swing.JLabel(); jLabel8 = new javax.swing.JLabel(); jLabel16 = new javax.swing.JLabel(); jPanel15...
diff --git a/ext/social-integration/src/main/java/org/exoplatform/ks/ext/impl/AnswerDataInitialize.java b/ext/social-integration/src/main/java/org/exoplatform/ks/ext/impl/AnswerDataInitialize.java index dcdae5539..cfe641bc0 100644 --- a/ext/social-integration/src/main/java/org/exoplatform/ks/ext/impl/AnswerDataInitiali...
true
true
public void applicationAdded(SpaceLifeCycleEvent event) { String portletName = ""; try { portletName = params.getValueParam("portletName").getValue(); } catch (Exception e) { // do nothing here. It means that initparam is not configured. } if (!portletName.equals(event.getSource()...
public void applicationAdded(SpaceLifeCycleEvent event) { String portletName = ""; try { portletName = params.getValueParam("portletName").getValue(); } catch (Exception e) { // do nothing here. It means that initparam is not configured. } if (!portletName.equals(event.getSource()...
diff --git a/mes-plugins/mes-plugins-material-flow-multitransfers/src/main/java/com/qcadoo/mes/materialFlowMultitransfers/listeners/MultitransferListeners.java b/mes-plugins/mes-plugins-material-flow-multitransfers/src/main/java/com/qcadoo/mes/materialFlowMultitransfers/listeners/MultitransferListeners.java index f3410...
true
true
public boolean isMultitransferFormValid(final ViewDefinitionState view) { boolean isValid = true; FieldComponent typeField = (FieldComponent) view.getComponentByReference(TYPE); FieldComponent timeField = (FieldComponent) view.getComponentByReference(TIME); FieldComponent locationFr...
public boolean isMultitransferFormValid(final ViewDefinitionState view) { boolean isValid = true; FieldComponent typeField = (FieldComponent) view.getComponentByReference(TYPE); FieldComponent timeField = (FieldComponent) view.getComponentByReference(TIME); FieldComponent locationFr...
diff --git a/src/husacct/define/presentation/jpanel/ruledetails/FactoryDetails.java b/src/husacct/define/presentation/jpanel/ruledetails/FactoryDetails.java index 6047f972..ec369710 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(VisibilityConventionJPanel.ruleTypeKey)){ visibilityConventionJPanel = new VisibilityConventionJPanel(appliedRuleController); return visibilityConven...
public AbstractDetailsJPanel create(AppliedRuleController appliedRuleController, String ruleTypeKey){ //Rules on the Contents of a module if (ruleTypeKey.equals(VisibilityConventionJPanel.ruleTypeKey)){ visibilityConventionJPanel = new VisibilityConventionJPanel(appliedRuleController); return visibilityConven...
diff --git a/src/main/java/org/codeforamerica/open311/facade/APIWrapperFactory.java b/src/main/java/org/codeforamerica/open311/facade/APIWrapperFactory.java index 093f77eb..6ab56778 100644 --- a/src/main/java/org/codeforamerica/open311/facade/APIWrapperFactory.java +++ b/src/main/java/org/codeforamerica/open311/facade/...
true
true
private APIWrapper buildWrapperFromCity(City city, EndpointType endpointType, String apiKey, NetworkManager networkManager) throws APIWrapperException { try { logManager.logInfo(this, "Getting the service discovery file."); DataParser dataParser = DataParserFactory.getInstance() .buildDataParser(For...
private APIWrapper buildWrapperFromCity(City city, EndpointType endpointType, String apiKey, NetworkManager networkManager) throws APIWrapperException { try { logManager.logInfo(this, "Getting the service discovery file."); DataParser dataParser = DataParserFactory.getInstance() .buildDataParser(For...
diff --git a/Taxman/src/mveritym/cashflow/TaxManager.java b/Taxman/src/mveritym/cashflow/TaxManager.java index fdb339c..2263b35 100644 --- a/Taxman/src/mveritym/cashflow/TaxManager.java +++ b/Taxman/src/mveritym/cashflow/TaxManager.java @@ -1,661 +1,669 @@ package mveritym.cashflow; import java.io.File; import jav...
true
true
public void payTaxToUser(String user, String taxName) { conf.save(); String tax = conf.getString("taxes." + taxName + ".tax"); String receiver = conf.getString("taxes." + taxName + ".receiver"); Double taxRate; boolean withdraw = true; boolean ico5 = false; if(this.cashFlow.eco.getName().equals("iConomy...
public void payTaxToUser(String user, String taxName) { conf.save(); String tax = conf.getString("taxes." + taxName + ".tax"); String receiver = conf.getString("taxes." + taxName + ".receiver"); Double taxRate; boolean withdraw = true; boolean ico5 = false; if(this.cashFlow.eco.getName().equals("iConomy...
diff --git a/drools-core/src/test/java/org/drools/core/util/KieFunctionsTest.java b/drools-core/src/test/java/org/drools/core/util/KieFunctionsTest.java index 48276b2e5f..9b62f6061a 100644 --- a/drools-core/src/test/java/org/drools/core/util/KieFunctionsTest.java +++ b/drools-core/src/test/java/org/drools/core/util/Kie...
true
true
public void testKieFunctions() { assertEquals(true, KieFunctions.isNull(null)); assertEquals(false, KieFunctions.isNull("nothing")); assertEquals(true, KieFunctions.isEmpty(null)); assertEquals(true, KieFunctions.isEmpty("")); assertEquals(false, KieFunctions.isEmpty(" "));...
public void testKieFunctions() { assertEquals(true, KieFunctions.isNull(null)); assertEquals(false, KieFunctions.isNull("nothing")); assertEquals(true, KieFunctions.isEmpty(null)); assertEquals(true, KieFunctions.isEmpty("")); assertEquals(false, KieFunctions.isEmpty(" "));...
diff --git a/src/me/confuserr/banmanager/Listeners/MutedBlacklistCheck.java b/src/me/confuserr/banmanager/Listeners/MutedBlacklistCheck.java index 4c91f33..ff84d57 100644 --- a/src/me/confuserr/banmanager/Listeners/MutedBlacklistCheck.java +++ b/src/me/confuserr/banmanager/Listeners/MutedBlacklistCheck.java @@ -1,40 +1...
true
true
public void onCommand(PlayerCommandPreprocessEvent event) { if (!plugin.isPlayerMutedInMem(event.getPlayer().getName())) return; // Split the command String[] args = event.getMessage().split(" "); // Get rid of the first / String cmd = args[0].replace("/", ""); // Check to see if its blacklisted if...
public void onCommand(PlayerCommandPreprocessEvent event) { if (!plugin.isPlayerMutedInMem(event.getPlayer().getName())) return; // Split the command String[] args = event.getMessage().split(" "); // Get rid of the first / String cmd = args[0].replace("/", "").toLowerCase(); // Check to see if its bl...
diff --git a/src/com/leafdigital/hawthorn/jsp/RecentTag.java b/src/com/leafdigital/hawthorn/jsp/RecentTag.java index 1ed1fa8..6fd809e 100644 --- a/src/com/leafdigital/hawthorn/jsp/RecentTag.java +++ b/src/com/leafdigital/hawthorn/jsp/RecentTag.java @@ -1,166 +1,166 @@ /* Copyright 2009 Samuel Marshall http://www.lea...
true
true
public void doTag() throws JspException, IOException { // Get init tag with basic settings InitTag init = (InitTag)getJspContext().getAttribute(InitTag.HAWTHORN_INIT_TAG); if(init==null) { throw new JspException("Cannot use <recent> without <init>"); } // Get index of this recent within page Inte...
public void doTag() throws JspException, IOException { // Get init tag with basic settings InitTag init = (InitTag)getJspContext().getAttribute(InitTag.HAWTHORN_INIT_TAG); if(init==null) { throw new JspException("Cannot use <recent> without <init>"); } // Get index of this recent within page Inte...
diff --git a/src/org/liberty/android/fantastischmemo/Item.java b/src/org/liberty/android/fantastischmemo/Item.java index 6c879cc9..0965af86 100644 --- a/src/org/liberty/android/fantastischmemo/Item.java +++ b/src/org/liberty/android/fantastischmemo/Item.java @@ -1,409 +1,409 @@ /* Copyright (C) 2010 Haowen Ning Th...
false
true
public int processAnswer(int newGrade, boolean dryRun){ // dryRun will leave the original one intact // and return the interval // if dryRun is false, the return value only show success or not Date currentDate = new Date(); SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd"); ...
public int processAnswer(int newGrade, boolean dryRun){ // dryRun will leave the original one intact // and return the interval // if dryRun is false, the return value only show success or not Date currentDate = new Date(); SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd"); ...
diff --git a/ui/dojo/main/java/org/directwebremoting/dojo/DwrStoreHandler.java b/ui/dojo/main/java/org/directwebremoting/dojo/DwrStoreHandler.java index b13432c6..da99f8d2 100644 --- a/ui/dojo/main/java/org/directwebremoting/dojo/DwrStoreHandler.java +++ b/ui/dojo/main/java/org/directwebremoting/dojo/DwrStoreHandler.ja...
true
true
public DwrStoreHandler() { super(DwrConstants.PACKAGE + "/dojo/DwrStore.js"); }
public DwrStoreHandler() { super(DwrConstants.PACKAGE + "/dojo/Store.js"); }
diff --git a/junit-examples/src/test/java/net/transformatorhuis/junit/examples/TestArray2ArrayList.java b/junit-examples/src/test/java/net/transformatorhuis/junit/examples/TestArray2ArrayList.java index a82729e..c961b2a 100644 --- a/junit-examples/src/test/java/net/transformatorhuis/junit/examples/TestArray2ArrayList.j...
false
true
public void testArray() { String blah = "hello world lala"; List arrayStringList = Arrays.asList(blah); try { // This won't work because this list is a view on an array // which immutable arrayStringList.remove(2); } catch (Exception ex) { ...
public void testArray() { String blah = "hello world lala"; List arrayStringList = Arrays.asList(blah.split(" ")); try { // This won't work because this list is a view on an array // which immutable arrayStringList.remove(2); fail("Should throw...
diff --git a/DroidPlanner/src/com/droidplanner/helpers/RcOutput.java b/DroidPlanner/src/com/droidplanner/helpers/RcOutput.java index f81bd7f1..63de167a 100644 --- a/DroidPlanner/src/com/droidplanner/helpers/RcOutput.java +++ b/DroidPlanner/src/com/droidplanner/helpers/RcOutput.java @@ -1,95 +1,95 @@ package com.droidp...
true
true
public void sendRcOverrideMsg() { msg_rc_channels_override msg = new msg_rc_channels_override(); msg.chan1_raw = (short) rcOutputs[0]; msg.chan2_raw = (short) rcOutputs[1]; msg.chan3_raw = (short) rcOutputs[2]; msg.chan4_raw = (short) rcOutputs[3]; msg.chan5_raw = (short) rcOutputs[4]; msg.chan6_raw = (s...
public void sendRcOverrideMsg() { msg_rc_channels_override msg = new msg_rc_channels_override(); msg.chan1_raw = (short) rcOutputs[0]; msg.chan2_raw = (short) rcOutputs[1]; msg.chan3_raw = (short) rcOutputs[2]; msg.chan4_raw = (short) rcOutputs[3]; msg.chan5_raw = DISABLE_OVERRIDE; msg.chan6_raw = DISABL...
diff --git a/src/java/ca/couchware/wezzle2d/Launcher.java b/src/java/ca/couchware/wezzle2d/Launcher.java index 4c2cdf6..8989a57 100644 --- a/src/java/ca/couchware/wezzle2d/Launcher.java +++ b/src/java/ca/couchware/wezzle2d/Launcher.java @@ -1,227 +1,227 @@ /* * Wezzle * Copyright (c) 2007-2010 Couchware Inc. Al...
true
true
public void startWezzle(Canvas parent, boolean trialMode) { // Make sure the setting manager is loaded. SettingsManager settingsMan = SettingsManager.get(); // Send a reference to the resource manager. ResourceFactory.get().setSettingsManager(settingsMan); // Set the de...
public void startWezzle(Canvas parent, boolean trialMode) { // Make sure the setting manager is loaded. SettingsManager settingsMan = SettingsManager.get(); // Send a reference to the resource manager. ResourceFactory.get().setSettingsManager(settingsMan); // Set the de...
diff --git a/src/DVN-EJB/src/java/edu/harvard/iq/dvn/ingest/dsb/impl/DvnRGraphServiceImpl.java b/src/DVN-EJB/src/java/edu/harvard/iq/dvn/ingest/dsb/impl/DvnRGraphServiceImpl.java index 9b049db17..7e8abf88b 100644 --- a/src/DVN-EJB/src/java/edu/harvard/iq/dvn/ingest/dsb/impl/DvnRGraphServiceImpl.java +++ b/src/DVN-EJB/s...
true
true
public Map<String, String> execute(DvnRJobRequest sro) { // set the return object Map<String, String> result = new HashMap<String, String>(); try { if ( sro != null ) { dbgLog.fine("sro dump:\n"+ToStringBuilder.reflectionToString(sro, ToStringStyle.MULTI_LINE_STYLE)); ...
public Map<String, String> execute(DvnRJobRequest sro) { // set the return object Map<String, String> result = new HashMap<String, String>(); try { if ( sro != null ) { dbgLog.fine("sro dump:\n"+ToStringBuilder.reflectionToString(sro, ToStringStyle.MULTI_LINE_STYLE)); ...
diff --git a/Hunter/java/MoteHunter.java b/Hunter/java/MoteHunter.java index 22a4bf9..149a63e 100644 --- a/Hunter/java/MoteHunter.java +++ b/Hunter/java/MoteHunter.java @@ -1,187 +1,188 @@ /* * Copyright (c) 2006 Intel Corporation * Copyright (c) 2012 Csaba Kiraly * All rights reserved. * * This file is dist...
false
true
public synchronized void messageReceived (int dest_addr, Message msg) { int timestamp = 0; if (msg instanceof RssiRxMsg) { RssiRxMsg rmsg = (RssiRxMsg) msg; /* Update mote data */ timestamp = (int) (rmsg.get_timestamp () / interval); data.update (Data.MeasureType.RCV, rmsg.get_id (...
public synchronized void messageReceived (int dest_addr, Message msg) { int timestamp = 0; if (msg instanceof RssiRxMsg) { RssiRxMsg rmsg = (RssiRxMsg) msg; /* Update mote data */ timestamp = (int) (rmsg.get_timestamp () / interval); data.update (Data.MeasureType.RCV, rmsg.get_id (...
diff --git a/ratpack-core/src/main/java/org/ratpackframework/http/internal/NettyRoutingAdapter.java b/ratpack-core/src/main/java/org/ratpackframework/http/internal/NettyRoutingAdapter.java index 4b08d87f8..134d06a67 100644 --- a/ratpack-core/src/main/java/org/ratpackframework/http/internal/NettyRoutingAdapter.java +++ ...
true
true
public void messageReceived(ChannelHandlerContext ctx, MessageEvent event) throws Exception { HttpRequest nettyRequest = (HttpRequest) event.getMessage(); HttpResponse nettyResponse = new DefaultHttpResponse(HttpVersion.HTTP_1_1, HttpResponseStatus.OK); Request request = new DefaultRequest(nettyRequest);...
public void messageReceived(ChannelHandlerContext ctx, MessageEvent event) throws Exception { HttpRequest nettyRequest = (HttpRequest) event.getMessage(); HttpResponse nettyResponse = new DefaultHttpResponse(HttpVersion.HTTP_1_1, HttpResponseStatus.OK); Request request = new DefaultRequest(nettyRequest);...
diff --git a/tucana-web/src/main/java/org/tucana/web/ConstellationList.java b/tucana-web/src/main/java/org/tucana/web/ConstellationList.java index 47e2eb2..ec30ad9 100644 --- a/tucana-web/src/main/java/org/tucana/web/ConstellationList.java +++ b/tucana-web/src/main/java/org/tucana/web/ConstellationList.java @@ -1,101 +...
true
true
private void addRepeatingView() { RepeatingView repeatingView; repeatingView = new RepeatingView("datatable"); int index = 0; List<Constellation> constellations = constellationService.findAllConstellations(); //add(new Label("c_count", String.valueOf(constellations.size()))); add(new Label("title", ...
private void addRepeatingView() { RepeatingView repeatingView; repeatingView = new RepeatingView("datatable"); int index = 0; List<Constellation> constellations = constellationService.findAllConstellations(); //add(new Label("c_count", String.valueOf(constellations.size()))); add(new Label("title", ...
diff --git a/client/Client.java b/client/Client.java index c6c134b..78c998d 100644 --- a/client/Client.java +++ b/client/Client.java @@ -1,252 +1,252 @@ package client; import java.awt.Color; import java.awt.Dimension; import java.io.*; import java.lang.reflect.Field; import java.net.Socket; import java.net.Un...
true
true
public void sendChat(String chatText) { if (debugMode) System.out.print("Sent chat: " + chatText); if (chatText.startsWith("/me")) chatText = "*" + userName + " " + chatText.substring(4); else if (chatText.startsWith("/color")) { Color newColor = null; if (chatText.substring(7).startsWith("#")) ...
public void sendChat(String chatText) { if (debugMode) System.out.print("Sent chat: " + chatText); if (chatText.startsWith("/me")) if (chatText.length() > 4) chatText = "*" + userName + " " + chatText.substring(4); else if (chatText.startsWith("/color")) { Color newColor = null; if (chatText.substrin...
diff --git a/titan-core/src/main/java/com/thinkaurelius/titan/diskstorage/util/ByteBufferUtil.java b/titan-core/src/main/java/com/thinkaurelius/titan/diskstorage/util/ByteBufferUtil.java index 3788bb801..5e82c104a 100644 --- a/titan-core/src/main/java/com/thinkaurelius/titan/diskstorage/util/ByteBufferUtil.java +++ b/t...
true
true
public static final int compare(ByteBuffer b1, ByteBuffer b2) { if (b1 == b2) { return 0; } int p1=b1.position(), p2 = b2.position(); while (p1<b1.limit() || p2<b2.limit()) { if (p1>=b1.limit()) return -1; else if (p2>=b2.limit()) return 1; ...
public static final int compare(ByteBuffer b1, ByteBuffer b2) { if (b1 == b2) { return 0; } int p1=b1.position(), p2 = b2.position(); while (p1<b1.limit() || p2<b2.limit()) { if (p1>=b1.limit()) return -1; else if (p2>=b2.limit()) return 1; ...
diff --git a/ckanalyze-web/src/main/java/eu/trentorise/opendata/ckanalyze/services/ResourceService.java b/ckanalyze-web/src/main/java/eu/trentorise/opendata/ckanalyze/services/ResourceService.java index f74f8c8..311e246 100644 --- a/ckanalyze-web/src/main/java/eu/trentorise/opendata/ckanalyze/services/ResourceService.j...
true
true
public ResourceStats getResourceStats( @QueryParam("catalog") String catName, @QueryParam("idResource") String resid) throws WebAPIException { if ((resid == null) || (resid.isEmpty())) { throw new WebAPIException("idResource parameter not specified"); } if ((catName == null) || (catName.isEmpty())) { ...
public ResourceStats getResourceStats( @QueryParam("catalog") String catName, @QueryParam("idResource") String resid) throws WebAPIException { if ((resid == null) || (resid.isEmpty())) { throw new WebAPIException("idResource parameter not specified"); } if ((catName == null) || (catName.isEmpty())) { ...
diff --git a/grails/src/persistence/org/codehaus/groovy/grails/orm/hibernate/metaclass/ValidatePersistentMethod.java b/grails/src/persistence/org/codehaus/groovy/grails/orm/hibernate/metaclass/ValidatePersistentMethod.java index 4bba2e802..4db6f5891 100644 --- a/grails/src/persistence/org/codehaus/groovy/grails/orm/hib...
true
true
protected Object doInvokeInternal(Object target, Object[] arguments) { Errors errors = new BindException(target, target.getClass().getName()); GrailsDomainClass domainClass = application.getGrailsDomainClass( target.getClass().getName() ); Validator validator = null; if(domainClass != null) validator = a...
protected Object doInvokeInternal(Object target, Object[] arguments) { Errors errors = new BindException(target, target.getClass().getName()); GrailsDomainClass domainClass = application.getGrailsDomainClass( target.getClass().getName() ); Validator validator = null; if(domainClass != null) validator = a...
diff --git a/beam-globalbedo-bbdr-retrieval/src/main/java/org/esa/beam/globalbedo/bbdr/BbdrOp.java b/beam-globalbedo-bbdr-retrieval/src/main/java/org/esa/beam/globalbedo/bbdr/BbdrOp.java index 95f9de73..cd496fa0 100644 --- a/beam-globalbedo-bbdr-retrieval/src/main/java/org/esa/beam/globalbedo/bbdr/BbdrOp.java +++ b/bea...
false
true
protected void computePixel(int x, int y, Sample[] sourceSamples, WritableSample[] targetSamples) { int status = 0; if (sdrOnly) { status = sourceSamples[SRC_STATUS].getInt(); if (status == 2) { fillTargetSampleWithNoDataValue(targetSamples); /...
protected void computePixel(int x, int y, Sample[] sourceSamples, WritableSample[] targetSamples) { int status = 0; if (sdrOnly) { status = sourceSamples[SRC_STATUS].getInt(); if (status == 2) { fillTargetSampleWithNoDataValue(targetSamples); /...
diff --git a/src/main/java/com/springrts/springls/commands/impl/ForceJoinBattleCommandProcessor.java b/src/main/java/com/springrts/springls/commands/impl/ForceJoinBattleCommandProcessor.java index aae31c4..8e3d2d9 100644 --- a/src/main/java/com/springrts/springls/commands/impl/ForceJoinBattleCommandProcessor.java +++ b...
false
true
public boolean process(Client client, List<String> args) throws CommandProcessingException { boolean checksOk = super.process(client, args); if (!checksOk) { return false; } String userName = args.get(0); Client affectedClient = getContext().getClients().getClient(userName); if (affectedClient == n...
public boolean process(Client client, List<String> args) throws CommandProcessingException { boolean checksOk = super.process(client, args); if (!checksOk) { return false; } String userName = args.get(0); Client affectedClient = getContext().getClients().getClient(userName); if (affectedClient == n...
diff --git a/plugins/org.eclipse.acceleo.engine/src/org/eclipse/acceleo/engine/internal/utils/AcceleoDynamicTemplatesEclipseUtil.java b/plugins/org.eclipse.acceleo.engine/src/org/eclipse/acceleo/engine/internal/utils/AcceleoDynamicTemplatesEclipseUtil.java index 6ba4c3a5..221dffce 100644 --- a/plugins/org.eclipse.accel...
false
true
private static void refreshModules() { REGISTERED_MODULES.clear(); final List<Bundle> uninstalledBundles = new ArrayList<Bundle>(); final String pathSeparator = "/"; //$NON-NLS-1$ for (Map.Entry<Bundle, List<String>> entry : new LinkedHashSet<Map.Entry<Bundle, List<String>>>( EXTENDING_BUNDLES.entrySet()))...
private static void refreshModules() { REGISTERED_MODULES.clear(); final List<Bundle> uninstalledBundles = new ArrayList<Bundle>(); final String pathSeparator = "/"; //$NON-NLS-1$ for (java.util.Map.Entry<Bundle, List<String>> entry : new LinkedHashSet<java.util.Map.Entry<Bundle, List<String>>>( EXTENDING_...
diff --git a/opentripplanner-graph-builder/src/main/java/org/opentripplanner/graph_builder/impl/osm/DefaultWayPropertySetSource.java b/opentripplanner-graph-builder/src/main/java/org/opentripplanner/graph_builder/impl/osm/DefaultWayPropertySetSource.java index 72e863119..db49af0fb 100644 --- a/opentripplanner-graph-bui...
true
true
public WayPropertySet getWayPropertySet() { WayPropertySet props = new WayPropertySet(); /* no bicycle tags */ /* NONE */ setProperties(props, "highway=raceway", StreetTraversalPermission.NONE); setProperties(props, "highway=construction", ...
public WayPropertySet getWayPropertySet() { WayPropertySet props = new WayPropertySet(); /* no bicycle tags */ /* NONE */ setProperties(props, "highway=raceway", StreetTraversalPermission.NONE); setProperties(props, "highway=construction", ...
diff --git a/src/haveric/stackableItems/SIPlayerListener.java b/src/haveric/stackableItems/SIPlayerListener.java index 8bf8c12..580fceb 100644 --- a/src/haveric/stackableItems/SIPlayerListener.java +++ b/src/haveric/stackableItems/SIPlayerListener.java @@ -1,1318 +1,1320 @@ package haveric.stackableItems; import ja...
false
true
public void inventoryClick(InventoryClickEvent event) { if (event.isCancelled()) { return; } event.getInventory().setMaxStackSize(SIItems.ITEM_NEW_MAX); ItemStack cursor = event.getCursor(); ItemStack clicked = event.getCurrentItem(); SlotType slotType ...
public void inventoryClick(InventoryClickEvent event) { if (event.isCancelled()) { return; } event.getInventory().setMaxStackSize(SIItems.ITEM_NEW_MAX); ItemStack cursor = event.getCursor(); ItemStack clicked = event.getCurrentItem(); SlotType slotType ...
diff --git a/hazelcast/src/main/java/com/hazelcast/nio/ClassLoaderUtil.java b/hazelcast/src/main/java/com/hazelcast/nio/ClassLoaderUtil.java index 4d2c1b85ca..cc4dab71eb 100644 --- a/hazelcast/src/main/java/com/hazelcast/nio/ClassLoaderUtil.java +++ b/hazelcast/src/main/java/com/hazelcast/nio/ClassLoaderUtil.java @@ -1...
false
true
public static Class<?> loadClass(final ClassLoader classLoader, final String className) throws ClassNotFoundException { if (className == null) { throw new IllegalArgumentException("ClassName cannot be null!"); } if (className.length() <= MAX_PRIM_CLASSNAME_LENGTH && C...
public static Class<?> loadClass(final ClassLoader classLoader, final String className) throws ClassNotFoundException { if (className == null) { throw new IllegalArgumentException("ClassName cannot be null!"); } if (className.length() <= MAX_PRIM_CLASSNAME_LENGTH && C...
diff --git a/httpmonitor-core/src/main/java/com/yogocodes/httpmonitor/core/HttpMonitorEngineWorker.java b/httpmonitor-core/src/main/java/com/yogocodes/httpmonitor/core/HttpMonitorEngineWorker.java index 05bbd0b..c4848e0 100644 --- a/httpmonitor-core/src/main/java/com/yogocodes/httpmonitor/core/HttpMonitorEngineWorker.j...
true
true
public void run() { final HttpMonitorEngine engineInstance = HttpMonitorEngineFactory.getEngineInstance(); final HttpClient httpClient = new HttpClient(); final MonitorResultSummarizer summarizer = MonitorResultSummarizerFactory.getInstance(); final MonitorLogWriter writer = new MonitorLogWriter(); while (...
public void run() { final HttpMonitorEngine engineInstance = HttpMonitorEngineFactory.getEngineInstance(); final HttpClient httpClient = new HttpClient(); final MonitorResultSummarizer summarizer = MonitorResultSummarizerFactory.getInstance(); final MonitorLogWriter writer = new MonitorLogWriter(); while (...
diff --git a/MemeImgur.java b/MemeImgur.java index 6549349..fe3f30c 100755 --- a/MemeImgur.java +++ b/MemeImgur.java @@ -1,109 +1,109 @@ import java.awt.Image; import org.jsoup.nodes.*; import org.jsoup.select.*; import java.util.ArrayList; import javax.imageio.*; import org.jsoup.Jsoup; /** * This Meme ob...
true
true
public MemeImgur() throws Exception { /** * Creates a Meme object, as far as the pieces of it which will be displayed. * @param none */ super(website); imageURL = null; //parses main page and gets the URLs of images on the front page Elements images = rootElements.select("div#content"...
public MemeImgur() throws Exception { /** * Creates a Meme object, as far as the pieces of it which will be displayed. * @param none */ super(website); imageURL = null; //parses main page and gets the URLs of images on the front page Elements images = rootElements.select("div#content"...
diff --git a/org.emftext.sdk.concretesyntax.resource.cs.post_processing/src/org/emftext/sdk/syntax_analysis/UnusedTokenAnalyser.java b/org.emftext.sdk.concretesyntax.resource.cs.post_processing/src/org/emftext/sdk/syntax_analysis/UnusedTokenAnalyser.java index 8ae6149dc..79c3345b5 100644 --- a/org.emftext.sdk.concretes...
true
true
public void analyse(CsResource resource, ConcreteSyntax syntax) { List<TokenDefinition> activeTokens = syntax.getActiveTokens(); TreeIterator<EObject> allContents = syntax.eAllContents(); List<String> keywordTokens = new ArrayList<String>(); while (allContents.hasNext()) { EObject object = (EObject) allCont...
public void analyse(CsResource resource, ConcreteSyntax syntax) { List<TokenDefinition> activeTokens = syntax.getActiveTokens(); TreeIterator<EObject> allContents = syntax.eAllContents(); List<String> keywordTokens = new ArrayList<String>(); while (allContents.hasNext()) { EObject object = (EObject) allCont...
diff --git a/vme-service/src/test/java/org/fao/fi/vme/sync2/ObservationSyncTest.java b/vme-service/src/test/java/org/fao/fi/vme/sync2/ObservationSyncTest.java index c90bf7d7..6b73b253 100644 --- a/vme-service/src/test/java/org/fao/fi/vme/sync2/ObservationSyncTest.java +++ b/vme-service/src/test/java/org/fao/fi/vme/sync...
true
true
public void generateVme() { Vme vme = VmeMock.generateVme(1); for (GeneralMeasures o : vme.getRfmo().getGeneralMeasuresList()) { vmeDao.persist(o); } for (History h : vme.getRfmo().getFishingHistoryList()) { vmeDao.persist(h); } for (InformationSource informationSource : vme.getRfmo().getInformati...
public void generateVme() { Vme vme = VmeMock.generateVme(1); for (GeneralMeasures o : vme.getRfmo().getGeneralMeasuresList()) { vmeDao.persist(o); } for (History h : vme.getRfmo().getFishingHistoryList()) { vmeDao.persist(h); } for (InformationSource informationSource : vme.getRfmo().getInformati...
diff --git a/src/main/java/me/chaseoes/tf2/listeners/PlayerInteractListener.java b/src/main/java/me/chaseoes/tf2/listeners/PlayerInteractListener.java index 3401c63..ff13280 100644 --- a/src/main/java/me/chaseoes/tf2/listeners/PlayerInteractListener.java +++ b/src/main/java/me/chaseoes/tf2/listeners/PlayerInteractListe...
true
true
public void onPlayerInteract(PlayerInteractEvent event) { try { Player player = event.getPlayer(); GamePlayer gp = GameUtilities.getUtilities().getGamePlayer(player); if (gp.isIngame()) { if (player.getItemInHand().getType() == Material.getMaterial(373) &&...
public void onPlayerInteract(PlayerInteractEvent event) { try { Player player = event.getPlayer(); GamePlayer gp = GameUtilities.getUtilities().getGamePlayer(player); if (gp.isIngame()) { if (player.getItemInHand().getType() == Material.getMaterial(373) &&...
diff --git a/src/com/nickhs/testopenxc/OpenXCTestActivity.java b/src/com/nickhs/testopenxc/OpenXCTestActivity.java index d85c0c7..6513def 100644 --- a/src/com/nickhs/testopenxc/OpenXCTestActivity.java +++ b/src/com/nickhs/testopenxc/OpenXCTestActivity.java @@ -1,480 +1,478 @@ package com.nickhs.testopenxc; import o...
false
true
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); Log.i(TAG, "onCreated"); speed = (TextView) findViewById(R.id.textSpeed); mpg = (TextView) findViewById(R.id.textMPG); scroll = (ToggleButton)...
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); Log.i(TAG, "onCreated"); speed = (TextView) findViewById(R.id.textSpeed); mpg = (TextView) findViewById(R.id.textMPG); scroll = (ToggleButton)...
diff --git a/araqne-logdb/src/main/java/org/araqne/logdb/query/expr/Substr.java b/araqne-logdb/src/main/java/org/araqne/logdb/query/expr/Substr.java index 93739b21..8a6643f7 100644 --- a/araqne-logdb/src/main/java/org/araqne/logdb/query/expr/Substr.java +++ b/araqne-logdb/src/main/java/org/araqne/logdb/query/expr/Subst...
true
true
public Object eval(Row map) { Object value = valueExpr.eval(map); if (value == null) return null; String s = value.toString(); int len = s.length(); int begin = Integer.parseInt(beginExpr.eval(map).toString()); if (begin < 0) begin = len + begin; if (begin < 0 || len <= begin) return null; ...
public Object eval(Row map) { Object value = valueExpr.eval(map); if (value == null) return null; String s = value.toString(); int len = s.length(); int begin = Integer.parseInt(beginExpr.eval(map).toString()); if (begin < 0) begin = len + begin; if (begin < 0 || len <= begin) return null; ...
diff --git a/src/purejavacomm/PureJavaSerialPort.java b/src/purejavacomm/PureJavaSerialPort.java index d6f24b7..d5f814d 100644 --- a/src/purejavacomm/PureJavaSerialPort.java +++ b/src/purejavacomm/PureJavaSerialPort.java @@ -1,979 +1,979 @@ /* * Copyright (c) 2011, Kustaa Nyholm / SpareTimeLabs * All rights reserv...
false
true
synchronized public void setSerialPortParams(int baudRate, int dataBits, int stopBits, int parity) throws UnsupportedCommOperationException { checkState(); Termios prev = new Termios();// (termios); // save a copy in case we need to restore it prev.set(m_Termios); try { int br = baudRate; switch (bau...
synchronized public void setSerialPortParams(int baudRate, int dataBits, int stopBits, int parity) throws UnsupportedCommOperationException { checkState(); Termios prev = new Termios();// (termios); // save a copy in case we need to restore it prev.set(m_Termios); try { int br = baudRate; switch (bau...
diff --git a/src/com/cin316/minezweapons/KikuichimonjiListener.java b/src/com/cin316/minezweapons/KikuichimonjiListener.java index 4d016ca..8dad4a4 100644 --- a/src/com/cin316/minezweapons/KikuichimonjiListener.java +++ b/src/com/cin316/minezweapons/KikuichimonjiListener.java @@ -1,78 +1,78 @@ package com.cin316.minez...
true
true
public void onEntityDamage(EntityDamageEvent event) { Entity entity = event.getEntity(); //Check if the entity getting hit is a player if (entity instanceof Player){ //Create the variable for the player (getting hit) Player hurted = (Player)entity; //Check if the event is a Entity damage event...
public void onEntityDamage(EntityDamageEvent event) { Entity entity = event.getEntity(); //Check if the entity getting hit is a player if (entity instanceof Player){ //Create the variable for the player (getting hit) Player hurted = (Player)entity; //Check if the event is a Entity damage event...
diff --git a/Generator/src/java/fr/cg95/cvq/generator/common/Step.java b/Generator/src/java/fr/cg95/cvq/generator/common/Step.java index d5e4682c2..2c7c95a2a 100644 --- a/Generator/src/java/fr/cg95/cvq/generator/common/Step.java +++ b/Generator/src/java/fr/cg95/cvq/generator/common/Step.java @@ -1,87 +1,89 @@ package ...
true
true
public Step (String index, String name, String ref, String requiredString) { try { this.index = Integer.valueOf(index).intValue(); } catch (NumberFormatException nfe) { throw new RuntimeException("Step() - Step index {"+ index +"} is not an integer"); } this....
public Step (String index, String name, String ref, String requiredString) { try { this.index = Integer.valueOf(index).intValue(); } catch (NumberFormatException nfe) { throw new RuntimeException("Step() - Step index {"+ index +"} is not an integer"); } this....
diff --git a/chapter09/graphs/Java/GraphFunctions.java b/chapter09/graphs/Java/GraphFunctions.java index 59ec5e9..92c9e9d 100644 --- a/chapter09/graphs/Java/GraphFunctions.java +++ b/chapter09/graphs/Java/GraphFunctions.java @@ -1,259 +1,261 @@ import java.util.TreeSet; import java.util.Set; import java.util.TreeMap...
true
true
public static <T extends Comparable<? super T>> void scc(Graph<T> g, TreeMap<Node<T>, Integer> id) { Stack<Node<T>> s = new Stack<Node<T>>(); TreeSet<Node<T>> visited = new TreeSet<Node<T>>(); Set<Node<T> > vertices = g.v(); for (Node<T> v : vertices) { dfs_stack(g, visi...
public static <T extends Comparable<? super T>> void scc(Graph<T> g, TreeMap<Node<T>, Integer> id) { Stack<Node<T>> s = new Stack<Node<T>>(); TreeSet<Node<T>> visited = new TreeSet<Node<T>>(); Set<Node<T> > vertices = g.v(); for (Node<T> v : vertices) { if (!visited.cont...
diff --git a/api/src/main/java/org/jboss/marshalling/cloner/SerializingCloner.java b/api/src/main/java/org/jboss/marshalling/cloner/SerializingCloner.java index e5e580c..1f53fcf 100644 --- a/api/src/main/java/org/jboss/marshalling/cloner/SerializingCloner.java +++ b/api/src/main/java/org/jboss/marshalling/cloner/Serial...
false
true
private Object clone(final Object orig, final boolean replace) throws IOException, ClassNotFoundException { if (orig == null) { return null; } final IdentityHashMap<Object, Object> clones = this.clones; Object cached = clones.get(orig); if (cached != null) { ...
private Object clone(final Object orig, final boolean replace) throws IOException, ClassNotFoundException { if (orig == null) { return null; } final IdentityHashMap<Object, Object> clones = this.clones; Object cached = clones.get(orig); if (cached != null) { ...
diff --git a/grikly/src/main/java/com/grikly/request/HttpDeleteRequest.java b/grikly/src/main/java/com/grikly/request/HttpDeleteRequest.java index 0682214..5510048 100644 --- a/grikly/src/main/java/com/grikly/request/HttpDeleteRequest.java +++ b/grikly/src/main/java/com/grikly/request/HttpDeleteRequest.java @@ -1,73 +1...
true
true
public T execute() { Client client = JerseyUtil.getClient(); WebResource resource = client.resource(String.format(URL.BASE.toString(), getPath())); Gson gson = new Gson(); ClientResponse response; //adds authInfo when supplied if (getAuthInfo() != null) response = resource.header("ApiKey", getApiKey...
public T execute() { Client client = JerseyUtil.getClient(); WebResource resource = client.resource(String.format(URL.BASE.toString(), getPath())); Gson gson = new Gson(); ClientResponse response; //adds authInfo when supplied if (getAuthInfo() != null) response = resource.header("ApiKey", getApiKey...
diff --git a/utilities/maven/Jaxb2SimpleXMLplugin/src/main/java/org/societies/maven/Jaxb2Simple.java b/utilities/maven/Jaxb2SimpleXMLplugin/src/main/java/org/societies/maven/Jaxb2Simple.java index 5dcd19291..6c82b3ce1 100644 --- a/utilities/maven/Jaxb2SimpleXMLplugin/src/main/java/org/societies/maven/Jaxb2Simple.java +...
false
true
private String findReplacePatterns(StringBuffer schemaContent) { String newSchemaContent; String textToFind; String textToReplace; newSchemaContent = schemaContent.toString(); //import javax.xml.bind.annotation.* -> import org.simpleframework.xml.* //textToFind = "import javax.xml.bind.annotation.*import ja...
private String findReplacePatterns(StringBuffer schemaContent) { String newSchemaContent; String textToFind; String textToReplace; newSchemaContent = schemaContent.toString(); //import javax.xml.bind.annotation.* -> import org.simpleframework.xml.* //textToFind = "import javax.xml.bind.annotation.*import ja...
diff --git a/src/com/android/settings/sip/SipSettings.java b/src/com/android/settings/sip/SipSettings.java index 38edc9b..a9a0ae6 100644 --- a/src/com/android/settings/sip/SipSettings.java +++ b/src/com/android/settings/sip/SipSettings.java @@ -1,439 +1,439 @@ /* * Copyright (C) 2010 The Android Open Source Project ...
true
true
static List<SipProfile> retrieveSipListFromDirectory( String directory) { List<SipProfile> sipProfileList = Collections.synchronizedList( new ArrayList<SipProfile>()); File root = new File(directory); String[] dirs = root.list(); if (dirs == null) return ...
static List<SipProfile> retrieveSipListFromDirectory( String directory) { List<SipProfile> sipProfileList = Collections.synchronizedList( new ArrayList<SipProfile>()); File root = new File(directory); String[] dirs = root.list(); if (dirs == null) return ...
diff --git a/opentripplanner-graph-builder/src/test/java/org/opentripplanner/graph_builder/impl/osm/OpenStreetMapGraphBuilderTest.java b/opentripplanner-graph-builder/src/test/java/org/opentripplanner/graph_builder/impl/osm/OpenStreetMapGraphBuilderTest.java index 21cf3f3..0dc01e9 100644 --- a/opentripplanner-graph-bui...
true
true
public void testGraphBuilder() throws Exception { Graph gg = new Graph(); OpenStreetMapGraphBuilderImpl loader = new OpenStreetMapGraphBuilderImpl(); FileBasedOpenStreetMapProviderImpl provider = new FileBasedOpenStreetMapProviderImpl(); File file = new File(getClass().getResource...
public void testGraphBuilder() throws Exception { Graph gg = new Graph(); OpenStreetMapGraphBuilderImpl loader = new OpenStreetMapGraphBuilderImpl(); FileBasedOpenStreetMapProviderImpl provider = new FileBasedOpenStreetMapProviderImpl(); File file = new File(getClass().getResource...
diff --git a/nu/dll/app/test/Test2.java b/nu/dll/app/test/Test2.java index f659ebf..f251dee 100644 --- a/nu/dll/app/test/Test2.java +++ b/nu/dll/app/test/Test2.java @@ -1,1440 +1,1440 @@ // -*- Mode: Java; c-basic-offset: 4 -*- package nu.dll.app.test; import java.io.*; import java.net.ProtocolException; import ...
true
true
public void run() { Debug.println("line separator: \"" + lineSeparator + "\""); try { while (server == null) { server = crtReadLine("Vilken server vill du ansluta till? "); if (server == null) { // user might have pressed ^D, or stdin == /dev/null consoleWriteLn("Det verkar vara problem med att l�s...
public void run() { Debug.println("line separator: \"" + lineSeparator + "\""); try { while (server == null) { server = crtReadLine("Vilken server vill du ansluta till? "); if (server == null) { // user might have pressed ^D, or stdin == /dev/null consoleWriteLn("Det verkar vara problem med att l�s...
diff --git a/src/main/java/it/uniroma3/controller/ConfermaProdotto.java b/src/main/java/it/uniroma3/controller/ConfermaProdotto.java index 959106b..66d3fdf 100644 --- a/src/main/java/it/uniroma3/controller/ConfermaProdotto.java +++ b/src/main/java/it/uniroma3/controller/ConfermaProdotto.java @@ -1,59 +1,61 @@ package ...
true
true
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { String risposta = request.getParameter("risp"); ServletContext application = getServletContext(); RequestDispatcher rd; HttpSession sessione = request.getSession(); String destinazione = "/in...
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { String risposta = request.getParameter("risp"); ServletContext application = getServletContext(); RequestDispatcher rd; HttpSession sessione = request.getSession(); String destinazione = "/in...
diff --git a/Analysis/LinearAnalysis.java b/Analysis/LinearAnalysis.java index 05af2b4..9162057 100644 --- a/Analysis/LinearAnalysis.java +++ b/Analysis/LinearAnalysis.java @@ -1,176 +1,174 @@ package Analysis; import java.util.HashSet; import java.util.HashMap; import java.util.Map; import java.util.Vector; ...
false
true
public int[] getRelated(Labels labels, int[] queryConfs, Index index, Blocks blocks, Scores scoresMatrix, Relations relations, String queryID, ...
public int[] getRelated(Labels labels, int[] queryConfs, Index index, Blocks blocks, Scores scoresMatrix, Relations relations, String queryID, ...
diff --git a/org.dawnsci.spectrum.ui/src/org/dawnsci/spectrum/ui/views/SpectrumDatasetView.java b/org.dawnsci.spectrum.ui/src/org/dawnsci/spectrum/ui/views/SpectrumDatasetView.java index fc8865b77..fc0b73467 100644 --- a/org.dawnsci.spectrum.ui/src/org/dawnsci/spectrum/ui/views/SpectrumDatasetView.java +++ b/org.dawnsc...
true
true
public void createPartControl(Composite parent) { parent.setLayout(new GridLayout(1, true)); final CCombo combo = new CCombo(parent, SWT.None); combo.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); viewer = CheckboxTableViewer.newCheckList(parent, SWT.MULTI | SWT.H_SCROLL | SWT.V_SCROLL); vie...
public void createPartControl(Composite parent) { parent.setLayout(new GridLayout(1, true)); final CCombo combo = new CCombo(parent, SWT.None); combo.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); viewer = CheckboxTableViewer.newCheckList(parent, SWT.MULTI | SWT.H_SCROLL | SWT.V_SCROLL); vie...
diff --git a/svnkit/src/main/java/org/tmatesoft/svn/core/internal/db/SVNSqlJetSelectStatement.java b/svnkit/src/main/java/org/tmatesoft/svn/core/internal/db/SVNSqlJetSelectStatement.java index 6ee54af97..130701cc0 100644 --- a/svnkit/src/main/java/org/tmatesoft/svn/core/internal/db/SVNSqlJetSelectStatement.java +++ b/s...
true
true
public boolean eof() throws SVNException { boolean eof = true; do { eof = super.eof(); loadRowValues(!eof); if (!eof && !pathScopeMatches()) { return true; } } while(!eof && !pathIsDecendant()); while (!eof ...
public boolean eof() throws SVNException { boolean eof = true; do { eof = eof ? super.eof() : !super.next(); loadRowValues(!eof); if (!eof && !pathScopeMatches()) { return true; } } while(!eof && !pathIsDecendant()); ...
diff --git a/javaApps/XbeeBenchmark/src/main/java/eu/uberdust/xbee/benchmark/XbeeMessageLogger.java b/javaApps/XbeeBenchmark/src/main/java/eu/uberdust/xbee/benchmark/XbeeMessageLogger.java index fd45e1a..2b3d98a 100644 --- a/javaApps/XbeeBenchmark/src/main/java/eu/uberdust/xbee/benchmark/XbeeMessageLogger.java +++ b/ja...
true
true
public void receive(RxResponse16 rxResponse16) { int data = rxResponse16.getData()[0] * 256 + rxResponse16.getData()[1]; String mess = rxResponse16.getRemoteAddress().toString() + "\t" + data; System.out.println(mess); try { Files.append(mess + "\n", outputFile, Charset....
public void receive(RxResponse16 rxResponse16) { int data = rxResponse16.getData()[0] * 256 + rxResponse16.getData()[1]; String mess = rxResponse16.getRemoteAddress().toString() + "\t" + data+"\t"+rxResponse16.getRssi(); System.out.println(mess); try { Files.append(mess ...
diff --git a/src/test/java/org/jscep/client/inspect/CertStoreInspectorTest.java b/src/test/java/org/jscep/client/inspect/CertStoreInspectorTest.java index 8cffebed..f1c50693 100644 --- a/src/test/java/org/jscep/client/inspect/CertStoreInspectorTest.java +++ b/src/test/java/org/jscep/client/inspect/CertStoreInspectorTes...
false
true
public static Collection<Object[]> setUp() throws Exception { InputStream keyStoreIn = CertStoreInspectorTest.class.getClassLoader() .getResourceAsStream("store.jks"); KeyStore testStore = KeyStore.getInstance("JKS"); testStore.load(keyStoreIn, "password".toCharArray()); ...
public static Collection<Object[]> setUp() throws Exception { InputStream keyStoreIn = CertStoreInspectorTest.class.getClassLoader() .getResourceAsStream("store.jks"); KeyStore testStore = KeyStore.getInstance("JKS"); testStore.load(keyStoreIn, "password".toCharArray()); ...
diff --git a/java/src/com/android/inputmethod/latin/BinaryDictionaryFileDumper.java b/java/src/com/android/inputmethod/latin/BinaryDictionaryFileDumper.java index b0b65edb6..9a3f88f52 100644 --- a/java/src/com/android/inputmethod/latin/BinaryDictionaryFileDumper.java +++ b/java/src/com/android/inputmethod/latin/BinaryD...
false
true
private static AssetFileAddress cacheWordList(final String id, final String locale, final ContentResolver resolver, final Context context) { final int COMPRESSED_CRYPTED_COMPRESSED = 0; final int CRYPTED_COMPRESSED = 1; final int COMPRESSED_CRYPTED = 2; final int COMPRES...
private static AssetFileAddress cacheWordList(final String id, final String locale, final ContentResolver resolver, final Context context) { final int COMPRESSED_CRYPTED_COMPRESSED = 0; final int CRYPTED_COMPRESSED = 1; final int COMPRESSED_CRYPTED = 2; final int COMPRES...
diff --git a/bundles/model/org.openhab.model.core/src/main/java/org/openhab/model/core/internal/ModelRepositoryImpl.java b/bundles/model/org.openhab.model.core/src/main/java/org/openhab/model/core/internal/ModelRepositoryImpl.java index 8fd50e70..44684340 100644 --- a/bundles/model/org.openhab.model.core/src/main/java/...
true
true
public void addOrRefreshModel(String name, InputStream inputStream) { Resource resource = getResource(name); if(resource==null) { // seems to be a new file resource = resourceSet.createResource(URI.createURI(name)); try { resource.load(inputStream, Collections.EMPTY_MAP); notifyListeners(name, Eve...
public void addOrRefreshModel(String name, InputStream inputStream) { Resource resource = getResource(name); if(resource==null) { // seems to be a new file resource = resourceSet.createResource(URI.createURI(name)); try { resource.load(inputStream, Collections.EMPTY_MAP); notifyListeners(name, Eve...
diff --git a/src/edu/isi/pegasus/planner/code/generator/PBS.java b/src/edu/isi/pegasus/planner/code/generator/PBS.java index 778a093d4..806757fd6 100644 --- a/src/edu/isi/pegasus/planner/code/generator/PBS.java +++ b/src/edu/isi/pegasus/planner/code/generator/PBS.java @@ -1,193 +1,198 @@ /** * Copyright 2007-2008 U...
false
true
public Collection<File> generateCode( ADag dag ) throws CodeGeneratorException{ Collection result = new ArrayList( 1 ); //create a writer to the braindump.txt in the directory. File f = new File( this.getPathtoPBSFile( dag )); try{ PrintWriter writer = ...
public Collection<File> generateCode( ADag dag ) throws CodeGeneratorException{ Collection result = new ArrayList( 1 ); //create a writer to the braindump.txt in the directory. File f = new File( this.getPathtoPBSFile( dag )); try{ PrintWriter writer = ...
diff --git a/src/no/uninett/agora/AgoraMobile/ExternalFileUtil.java b/src/no/uninett/agora/AgoraMobile/ExternalFileUtil.java index 41e0d1f..c3fdd57 100644 --- a/src/no/uninett/agora/AgoraMobile/ExternalFileUtil.java +++ b/src/no/uninett/agora/AgoraMobile/ExternalFileUtil.java @@ -1,162 +1,162 @@ package no.uninett.ago...
true
true
private void openWith(final String path, final CallbackContext callbackContext){ try{ cordova.getActivity().runOnUiThread(new Runnable() { public void run() { // Create URI Uri uri = Uri.parse(path); Intent intent = nul...
private void openWith(final String path, final CallbackContext callbackContext){ try{ cordova.getActivity().runOnUiThread(new Runnable() { public void run() { // Create URI Uri uri = Uri.parse(path); Intent intent = nul...