diff stringlengths 262 553k | is_single_chunk bool 2
classes | is_single_function bool 1
class | buggy_function stringlengths 20 391k | fixed_function stringlengths 0 392k |
|---|---|---|---|---|
diff --git a/src/queries/java/com/metabroadcast/atlas/glycerin/generator/FeedQueryGenerator.java b/src/queries/java/com/metabroadcast/atlas/glycerin/generator/FeedQueryGenerator.java
index 0f0b070..9f5ded9 100644
--- a/src/queries/java/com/metabroadcast/atlas/glycerin/generator/FeedQueryGenerator.java
+++ b/src/queries... | true | true | private JDefinedClass addBuilderCls(Feed feed, JDefinedClass cls)
throws JClassAlreadyExistsException, ClassNotFoundException {
JDefinedClass bldrCls = cls._class(JMod.PUBLIC|JMod.STATIC|JMod.FINAL, "Builder");
JVar paramBuilder = bldrCls.field(JMod.PRIVATE|JMod.FINAL, immutableMapBldr, ... | private JDefinedClass addBuilderCls(Feed feed, JDefinedClass cls)
throws JClassAlreadyExistsException, ClassNotFoundException {
JDefinedClass bldrCls = cls._class(JMod.PUBLIC|JMod.STATIC|JMod.FINAL, "Builder");
JVar paramBuilder = bldrCls.field(JMod.PRIVATE|JMod.FINAL, immutableMapBldr, ... |
diff --git a/SimpleClans2/src/main/java/com/p000ison/dev/simpleclans2/commands/clan/bb/BBCommand.java b/SimpleClans2/src/main/java/com/p000ison/dev/simpleclans2/commands/clan/bb/BBCommand.java
index 9f407a1..515fe98 100644
--- a/SimpleClans2/src/main/java/com/p000ison/dev/simpleclans2/commands/clan/bb/BBCommand.java
++... | false | true | public void execute(Player player, String[] args) {
ClanPlayer cp = plugin.getClanPlayerManager().getClanPlayer(player);
if (cp == null) {
ChatBlock.sendMessage(player, ChatColor.RED + Language.getTranslation("clan.is.not.verified"));
return;
}
Clan clan = c... | public void execute(Player player, String[] args) {
ClanPlayer cp = plugin.getClanPlayerManager().getClanPlayer(player);
if (cp == null) {
ChatBlock.sendMessage(player, ChatColor.RED + Language.getTranslation("not.a.member.of.any.clan"));
return;
}
Clan clan... |
diff --git a/src/main/java/spj/database/program/ProgramMapper.java b/src/main/java/spj/database/program/ProgramMapper.java
index c28723f..ce2c99e 100644
--- a/src/main/java/spj/database/program/ProgramMapper.java
+++ b/src/main/java/spj/database/program/ProgramMapper.java
@@ -1,72 +1,72 @@
package spj.database.program... | true | true | public <T extends SpjDomainModelEntity> T createEntity(SpjDomainModel spjDomainModel) {
SpjAssert.isNotNull(spjDomainModel, "spjDomainModel");
Program program = CastTool.cast(spjDomainModel);
GlavniProgramEntity glavniProgramEntity = SpjDomainMap.GLAVNI_PROGRAM.getMapper().createEntity(pro... | public <T extends SpjDomainModelEntity> T createEntity(SpjDomainModel spjDomainModel) {
SpjAssert.isNotNull(spjDomainModel, "spjDomainModel");
Program program = CastTool.cast(spjDomainModel);
GlavniProgramEntity glavniProgramEntity = SpjDomainMap.GLAVNI_PROGRAM.getMapper().createEntity(pro... |
diff --git a/src/main/java/org/bukkit/command/defaults/OpCommand.java b/src/main/java/org/bukkit/command/defaults/OpCommand.java
index 76d6cc10..b8329de7 100644
--- a/src/main/java/org/bukkit/command/defaults/OpCommand.java
+++ b/src/main/java/org/bukkit/command/defaults/OpCommand.java
@@ -1,42 +1,42 @@
package org.bu... | true | true | public boolean execute(CommandSender sender, String currentAlias, String[] args) {
if (!testPermission(sender)) return true;
if (args.length != 1) {
sender.sendMessage(ChatColor.RED + "Usage: " + usageMessage);
return false;
}
Command.broadcastCommandMessage... | public boolean execute(CommandSender sender, String currentAlias, String[] args) {
if (!testPermission(sender)) return true;
if (args.length != 1) {
sender.sendMessage(ChatColor.RED + "Usage: " + usageMessage);
return false;
}
Command.broadcastCommandMessage... |
diff --git a/src/main/java/com/turt2live/antishare/util/ASMaterialList.java b/src/main/java/com/turt2live/antishare/util/ASMaterialList.java
index f218ca29..df0e7a51 100644
--- a/src/main/java/com/turt2live/antishare/util/ASMaterialList.java
+++ b/src/main/java/com/turt2live/antishare/util/ASMaterialList.java
@@ -1,200... | true | true | public ASMaterialList(List<?> strings){
if(strings == null){
throw new IllegalArgumentException("Null arguments are not allowed");
}
AntiShare p = AntiShare.p;
for(Object o : strings){
if(!(o instanceof String)){
continue;
}
String s = (String) o;
s = s.trim();
String testString = s.toLow... | public ASMaterialList(List<?> strings){
if(strings == null){
throw new IllegalArgumentException("Null arguments are not allowed");
}
AntiShare p = AntiShare.p;
for(Object o : strings){
if(!(o instanceof String)){
continue;
}
String s = (String) o;
s = s.trim();
String testString = s.toLow... |
diff --git a/access-impl/impl/src/java/org/sakaiproject/access/tool/AccessServlet.java b/access-impl/impl/src/java/org/sakaiproject/access/tool/AccessServlet.java
index f6e9c7a..9746d21 100644
--- a/access-impl/impl/src/java/org/sakaiproject/access/tool/AccessServlet.java
+++ b/access-impl/impl/src/java/org/sakaiprojec... | false | true | public void dispatch(HttpServletRequest req, HttpServletResponse res) throws ServletException
{
ParameterParser params = (ParameterParser) req.getAttribute(ATTR_PARAMS);
// get the path info
String path = params.getPath();
if (path == null) path = "";
if (!m_ready)
{
sendError(res, HttpServletRespons... | public void dispatch(HttpServletRequest req, HttpServletResponse res) throws ServletException
{
ParameterParser params = (ParameterParser) req.getAttribute(ATTR_PARAMS);
// get the path info
String path = params.getPath();
if (path == null) path = "";
if (!m_ready)
{
sendError(res, HttpServletRespons... |
diff --git a/backends/src/net/sf/orcc/backends/c/quasistatic/scheduler/unrollers/ConfigurationAnalyzer.java b/backends/src/net/sf/orcc/backends/c/quasistatic/scheduler/unrollers/ConfigurationAnalyzer.java
index 7433f056e..1c44ecb98 100644
--- a/backends/src/net/sf/orcc/backends/c/quasistatic/scheduler/unrollers/Configu... | true | true | private Object addConstraint(IntVariable v1, BinaryOp op, Object o2) {
switch (op) {
case BITAND:
if (o2 instanceof IntVariable) {
v1.bitand((IntVariable) o2);
} else if (o2 instanceof Integer) {
v1.bitand((Integer) o2);
} else {
break;
}
case EQ:
if (o2 instanceof IntVaria... | private Object addConstraint(IntVariable v1, BinaryOp op, Object o2) {
switch (op) {
case BITAND:
if (o2 instanceof IntVariable) {
v1.bitand((IntVariable) o2);
} else if (o2 instanceof Integer) {
v1.bitand((Integer) o2);
} else {
break;
}
case EQ:
if (o2 instanceof IntVaria... |
diff --git a/src/java/com/idega/content/presentation/WebDAVList.java b/src/java/com/idega/content/presentation/WebDAVList.java
index db1f3f0d..46d6faf0 100644
--- a/src/java/com/idega/content/presentation/WebDAVList.java
+++ b/src/java/com/idega/content/presentation/WebDAVList.java
@@ -1,149 +1,149 @@
package com.ideg... | false | true | protected void initializeComponent(FacesContext context) {
WebDAVListManagedBean bean = getWebDAVListManagedBean();
if (this.startFolder != null) {
bean.setStartFolder(this.startFolder);
} else {
bean.setStartFolder("");
}
if (this.rootFolder != null) {
bean.setRootFolder(this.rootFolder);
}... | protected void initializeComponent(FacesContext context) {
WebDAVListManagedBean bean = getWebDAVListManagedBean();
if (this.startFolder != null) {
bean.setStartFolder(this.startFolder);
} else {
bean.setStartFolder("");
}
if (this.rootFolder != null) {
bean.setRootFolder(this.rootFolder);
}... |
diff --git a/plugin/src/main/java/org/jvnet/hudson/plugins/m2release/M2ReleaseAction.java b/plugin/src/main/java/org/jvnet/hudson/plugins/m2release/M2ReleaseAction.java
index 2618c4d..acb0535 100644
--- a/plugin/src/main/java/org/jvnet/hudson/plugins/m2release/M2ReleaseAction.java
+++ b/plugin/src/main/java/org/jvnet/h... | true | 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/src/main/java/com/mikeprimm/bukkit/ChunkCooker/ChunkCooker.java b/src/main/java/com/mikeprimm/bukkit/ChunkCooker/ChunkCooker.java
index f0c0c88..de12dd0 100644
--- a/src/main/java/com/mikeprimm/bukkit/ChunkCooker/ChunkCooker.java
+++ b/src/main/java/com/mikeprimm/bukkit/ChunkCooker/ChunkCooker.java
@@ -1,4... | false | true | void tickCooker() {
TileFlags.TileCoord tc = new TileFlags.TileCoord();
// See if any chunks due to be unloaded
if (tickingQueue[tickingQueueIndex] != null) {
TileFlags.TileCoord[] chunkToUnload = tickingQueue[tickingQueueIndex];
tickingQueue[t... | void tickCooker() {
TileFlags.TileCoord tc = new TileFlags.TileCoord();
// See if any chunks due to be unloaded
if (tickingQueue[tickingQueueIndex] != null) {
TileFlags.TileCoord[] chunkToUnload = tickingQueue[tickingQueueIndex];
tickingQueue[t... |
diff --git a/src/impl/com/sun/ws/rest/impl/container/grizzly/GrizzlyRequestAdaptor.java b/src/impl/com/sun/ws/rest/impl/container/grizzly/GrizzlyRequestAdaptor.java
index e56dab92e..7669cb694 100644
--- a/src/impl/com/sun/ws/rest/impl/container/grizzly/GrizzlyRequestAdaptor.java
+++ b/src/impl/com/sun/ws/rest/impl/cont... | true | true | private void initiateUriInfo() {
/**
* TODO find out exactly what the URI related methods
* on org.apache.coyote.Request actually return.
* If URI components are returned are they in encoded or decoded form?
* If URIs are returned what components to they contain?
... | private void initiateUriInfo() {
/**
* TODO find out exactly what the URI related methods
* on org.apache.coyote.Request actually return.
* If URI components are returned are they in encoded or decoded form?
* If URIs are returned what components to they contain?
... |
diff --git a/src/main/ed/net/NIOServer.java b/src/main/ed/net/NIOServer.java
index 9c3231ffd..706a2a6d2 100644
--- a/src/main/ed/net/NIOServer.java
+++ b/src/main/ed/net/NIOServer.java
@@ -1,205 +1,205 @@
// NIOServer.java
package ed.net;
import java.io.*;
import java.net.*;
import java.nio.*;
import java.nio... | true | true | public void run(){
System.out.println( "Listening on post: " + _port );
final ByteBuffer readBuf = ByteBuffer.allocateDirect(1024);
final ByteBuffer writeBuf = ByteBuffer.allocateDirect(1024);
while ( true ){
try {
_selector.select( 10 );
... | public void run(){
System.out.println( "Listening on port: " + _port );
final ByteBuffer readBuf = ByteBuffer.allocateDirect(1024);
final ByteBuffer writeBuf = ByteBuffer.allocateDirect(1024);
while ( true ){
try {
_selector.select( 10 );
... |
diff --git a/src/main/java/com/sixdimensions/wcm/cq/cqex/tags/GetPropertiesTag.java b/src/main/java/com/sixdimensions/wcm/cq/cqex/tags/GetPropertiesTag.java
index 7b09307..6a217f1 100644
--- a/src/main/java/com/sixdimensions/wcm/cq/cqex/tags/GetPropertiesTag.java
+++ b/src/main/java/com/sixdimensions/wcm/cq/cqex/tags/G... | true | true | public int doEndTag() throws JspException {
log.trace("doEndTag");
Map<?, ?> properties = null;
final SlingHttpServletRequest request = (SlingHttpServletRequest) this.pageContext
.getRequest();
Resource rsrc = null;
if ((this.resource != null) && !StringUtils.isEmpty(this.path)) {
log.trace("Finding... | public int doEndTag() throws JspException {
log.trace("doEndTag");
Map<?, ?> properties = null;
final SlingHttpServletRequest request = (SlingHttpServletRequest) this.pageContext
.getRequest();
Resource rsrc = null;
if ((this.resource != null) && !StringUtils.isEmpty(this.path)) {
log.trace("Finding... |
diff --git a/android/ChartBoostPlugin.java b/android/ChartBoostPlugin.java
index a8fe3d4..95fbe75 100644
--- a/android/ChartBoostPlugin.java
+++ b/android/ChartBoostPlugin.java
@@ -1,205 +1,205 @@
package com.tealeaf.plugin.plugins;
import com.tealeaf.logger;
import com.tealeaf.plugin.IPlugin;
import java.io.*;
... | true | true | public void onCreate(Activity activity, Bundle savedInstanceState) {
this.mActivity = activity;
PackageManager manager = activity.getPackageManager();
String appID = "", appSignature = "";
try {
Bundle meta = manager.getApplicationInfo(activity.getPackageName(), PackageManager.GE... | public void onCreate(Activity activity, Bundle savedInstanceState) {
this.mActivity = activity;
PackageManager manager = activity.getPackageManager();
String appID = "", appSignature = "";
try {
Bundle meta = manager.getApplicationInfo(activity.getPackageName(), PackageManager.GE... |
diff --git a/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/filtereditor/FilterAutoEditStrategy.java b/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/filtereditor/FilterAutoEditStrategy.java
index b94065b93..c93309953 100644
--- a/ldapbrowser-common/src/... | true | true | public void customizeAutoEditParameters( String currentFilter, AutoEditParameters aep )
{
parser.parse( currentFilter );
LdapFilter filter = parser.getModel().getFilter( aep.offset );
// check balanced parenthesis
int balanced = 0;
for ( int i = 0; i < currentFilter.leng... | public void customizeAutoEditParameters( String currentFilter, AutoEditParameters aep )
{
parser.parse( currentFilter );
LdapFilter filter = parser.getModel().getFilter( aep.offset );
if ( filter == null )
{
return;
}
// check balanced parenthesis
... |
diff --git a/loci/formats/CoreMetadata.java b/loci/formats/CoreMetadata.java
index ec841322d..3ff5cf4e3 100644
--- a/loci/formats/CoreMetadata.java
+++ b/loci/formats/CoreMetadata.java
@@ -1,71 +1,71 @@
//
// CoreMetadata.java
//
/*
OME Bio-Formats package for reading and converting biological file formats.
Cop... | true | true | public CoreMetadata(int series) {
sizeX = new int[series];
sizeY = new int[series];
sizeZ = new int[series];
sizeC = new int[series];
sizeT = new int[series];
thumbSizeX = new int[series];
thumbSizeY = new int[series];
pixelType = new int[series];
imageCount = new int[series];
... | public CoreMetadata(int series) {
sizeX = new int[series];
sizeY = new int[series];
sizeZ = new int[series];
sizeC = new int[series];
sizeT = new int[series];
thumbSizeX = new int[series];
thumbSizeY = new int[series];
pixelType = new int[series];
imageCount = new int[series];
... |
diff --git a/do_jdbc/src/main/java/data_objects/drivers/AbstractDriverDefinition.java b/do_jdbc/src/main/java/data_objects/drivers/AbstractDriverDefinition.java
index 79c1129e..413bcc96 100644
--- a/do_jdbc/src/main/java/data_objects/drivers/AbstractDriverDefinition.java
+++ b/do_jdbc/src/main/java/data_objects/drivers... | true | true | public final IRubyObject getTypecastResultSetValue(Ruby runtime,
ResultSet rs, int col, RubyType type) throws SQLException,
IOException {
// TODO assert to needs to be turned on with the java call
// better throw something
assert (type != null); // this method does no... | public final IRubyObject getTypecastResultSetValue(Ruby runtime,
ResultSet rs, int col, RubyType type) throws SQLException,
IOException {
// TODO assert to needs to be turned on with the java call
// better throw something
assert (type != null); // this method does no... |
diff --git a/rexster-extensions/src/main/java/com/whysearchtwice/rexster/extension/SearchExtension.java b/rexster-extensions/src/main/java/com/whysearchtwice/rexster/extension/SearchExtension.java
index c7f4f1f..0dca17c 100644
--- a/rexster-extensions/src/main/java/com/whysearchtwice/rexster/extension/SearchExtension.j... | false | true | public ExtensionResponse searchVertices(
@RexsterContext RexsterResourceContext context,
@RexsterContext Graph graph,
@ExtensionRequestParameter(name = "userGuid", defaultValue = "", description = "The user to retrieve information for") String userGuid,
@ExtensionRequ... | public ExtensionResponse searchVertices(
@RexsterContext RexsterResourceContext context,
@RexsterContext Graph graph,
@ExtensionRequestParameter(name = "userGuid", defaultValue = "", description = "The user to retrieve information for") String userGuid,
@ExtensionRequ... |
diff --git a/plugins/ASIdiSPIM/src/org/micromanager/asidispim/SpimParamsPanel.java b/plugins/ASIdiSPIM/src/org/micromanager/asidispim/SpimParamsPanel.java
index cb2f6761c..ff47222a0 100644
--- a/plugins/ASIdiSPIM/src/org/micromanager/asidispim/SpimParamsPanel.java
+++ b/plugins/ASIdiSPIM/src/org/micromanager/asidispim/... | false | true | public SpimParamsPanel(Devices devices, Properties props) {
super(new MigLayout(
"",
"[right]16[center]16[center]16[center]",
"[]12[]"));
devices_ = devices;
props_ = props;
try {
PanelUtils pu = new PanelUtils();
JSpinner tmp_jsp;
... | public SpimParamsPanel(Devices devices, Properties props) {
super(new MigLayout(
"",
"[right]16[center]16[center]16[center]",
"[]12[]"));
devices_ = devices;
props_ = props;
try {
PanelUtils pu = new PanelUtils();
JSpinner tmp_jsp;
... |
diff --git a/jOOQ/src/main/java/org/jooq/impl/RowBetweenCondition.java b/jOOQ/src/main/java/org/jooq/impl/RowBetweenCondition.java
index 8031fc5b5..15c4c62a9 100644
--- a/jOOQ/src/main/java/org/jooq/impl/RowBetweenCondition.java
+++ b/jOOQ/src/main/java/org/jooq/impl/RowBetweenCondition.java
@@ -1,741 +1,741 @@
/**
... | true | true | private final QueryPartInternal delegate(Configuration configuration) {
// These casts are safe for RowImpl
RowN r = (RowN) row;
RowN min = (RowN) minValue;
RowN max = (RowN) maxValue;
// These dialects don't support the SYMMETRIC keyword at all
if (symmetric && asLi... | private final QueryPartInternal delegate(Configuration configuration) {
// These casts are safe for RowImpl
RowN r = (RowN) row;
RowN min = (RowN) minValue;
RowN max = (RowN) maxValue;
// These dialects don't support the SYMMETRIC keyword at all
if (symmetric && asLi... |
diff --git a/opentripplanner-updater/src/main/java/org/opentripplanner/updater/bike_rental/BikeRentalUpdater.java b/opentripplanner-updater/src/main/java/org/opentripplanner/updater/bike_rental/BikeRentalUpdater.java
index 88fd1dfe5..aee746489 100644
--- a/opentripplanner-updater/src/main/java/org/opentripplanner/updat... | false | true | public void run() {
_log.debug("Updating bike rental stations from " + source);
if (!source.update()) {
_log.debug("No updates");
return;
}
List<BikeRentalStation> stations = source.getStations();
Set<BikeRentalStation> stationSet = new HashSet<BikeRen... | public void run() {
_log.debug("Updating bike rental stations from " + source);
if (!source.update()) {
_log.debug("No updates");
return;
}
List<BikeRentalStation> stations = source.getStations();
Set<BikeRentalStation> stationSet = new HashSet<BikeRen... |
diff --git a/axis2/src/main/java/org/apache/ode/axis2/service/DeploymentBrowser.java b/axis2/src/main/java/org/apache/ode/axis2/service/DeploymentBrowser.java
index 984021466..51f5c4620 100644
--- a/axis2/src/main/java/org/apache/ode/axis2/service/DeploymentBrowser.java
+++ b/axis2/src/main/java/org/apache/ode/axis2/se... | true | true | public boolean doFilter(final HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
final String requestURI = request.getRequestURI();
final int deplUri = requestURI.indexOf("/deployment");
if (deplUri > 0) {
final String root = request.... | public boolean doFilter(final HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
final String requestURI = request.getRequestURI();
final int deplUri = requestURI.indexOf("/deployment");
if (deplUri > 0) {
final String root = request.... |
diff --git a/CLIENT/src/com/kaist/crescendo/manager/UpdateManager.java b/CLIENT/src/com/kaist/crescendo/manager/UpdateManager.java
index 60b1d1e..a98de9d 100644
--- a/CLIENT/src/com/kaist/crescendo/manager/UpdateManager.java
+++ b/CLIENT/src/com/kaist/crescendo/manager/UpdateManager.java
@@ -1,732 +1,733 @@
package co... | true | true | private void makeMsgBody(JSONObject msg, Object body) {
int msgId = 0;
UserData uData = null;
PlanData pData = null;
JSONArray HisArray = null;
JSONObject temp_body = new JSONObject();
try {
msgId = msg.getInt(MsgInfo.MSGID_LABEL);
} catch (Exception e) {
// TODO: handle exception
}
tr... | private void makeMsgBody(JSONObject msg, Object body) {
int msgId = 0;
UserData uData = null;
PlanData pData = null;
JSONArray HisArray = null;
JSONObject temp_body = new JSONObject();
try {
msgId = msg.getInt(MsgInfo.MSGID_LABEL);
} catch (Exception e) {
// TODO: handle exception
}
tr... |
diff --git a/studio-schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/views/SearchView.java b/studio-schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/views/SearchView.java
index 43df50598..4bca665db 100644
--- a/studio-schemaeditor/src/main/java/org/apache/directory/studio... | true | true | private List<SchemaObject> search( String searchString, SearchInEnum[] searchIn, int scope )
{
List<SchemaObject> searchResults = new ArrayList<SchemaObject>();
if ( searchString != null )
{
String computedSearchString = searchString.replaceAll( "\\*", "\\\\w*" );
... | private List<SchemaObject> search( String searchString, SearchInEnum[] searchIn, int scope )
{
List<SchemaObject> searchResults = new ArrayList<SchemaObject>();
if ( searchString != null )
{
String computedSearchString = searchString.replaceAll( "\\*", "\\\\S*" );
... |
diff --git a/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/build/PreCompilerBuilder.java b/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/build/PreCompilerBuilder.java
index 2f733fa9c..ae5583d70 100644
--- a/eclipse/plugins/com.android.ide.ecl... | false | true | protected IProject[] build(int kind, Map args, IProgressMonitor monitor)
throws CoreException {
try {
mDerivedProgressMonitor.reset();
// First thing we do is go through the resource delta to not
// lose it if we have to abort the build for any reason.
... | protected IProject[] build(int kind, Map args, IProgressMonitor monitor)
throws CoreException {
try {
mDerivedProgressMonitor.reset();
// First thing we do is go through the resource delta to not
// lose it if we have to abort the build for any reason.
... |
diff --git a/src/main/java/hudson/plugins/scm_sync_configuration/ScmSyncConfigurationBusiness.java b/src/main/java/hudson/plugins/scm_sync_configuration/ScmSyncConfigurationBusiness.java
index 5039466..cc824fa 100644
--- a/src/main/java/hudson/plugins/scm_sync_configuration/ScmSyncConfigurationBusiness.java
+++ b/src/m... | true | true | public void synchronizeFile(ScmContext scmContext, File modifiedFile, String comment, User user){
if(scmManipulator == null || !scmManipulator.scmConfigurationSettledUp(scmContext, false)){
return;
}
String modifiedFilePathRelativeToHudsonRoot = HudsonFilesHelper.buildPathRelativeToHudsonRoot(modifiedFile)... | public void synchronizeFile(ScmContext scmContext, File modifiedFile, String comment, User user){
if(scmManipulator == null || !scmManipulator.scmConfigurationSettledUp(scmContext, false)){
return;
}
String modifiedFilePathRelativeToHudsonRoot = HudsonFilesHelper.buildPathRelativeToHudsonRoot(modifiedFile)... |
diff --git a/fr.imag.exschema/src/fr/imag/exschema/popup/actions/DiscoverAction.java b/fr.imag.exschema/src/fr/imag/exschema/popup/actions/DiscoverAction.java
index 457b9e5..823d314 100644
--- a/fr.imag.exschema/src/fr/imag/exschema/popup/actions/DiscoverAction.java
+++ b/fr.imag.exschema/src/fr/imag/exschema/popup/act... | false | true | public void run(IAction action) {
String outputMessage;
if (project != null) {
try {
Util.discoverSchemas(project);
outputMessage = "The project schemas have been discovered";
} catch (Exception e) {
e.printStackTrace();
... | public void run(IAction action) {
String outputMessage;
if (project != null) {
try {
Util.discoverSchemas(project);
outputMessage = "The project schemas have been discovered";
} catch (Exception e) {
e.printStackTrace();
... |
diff --git a/src/br/com/puc/sispol/interceptor/AutorizadorInterceptor.java b/src/br/com/puc/sispol/interceptor/AutorizadorInterceptor.java
index 4d4821c..e6c2850 100644
--- a/src/br/com/puc/sispol/interceptor/AutorizadorInterceptor.java
+++ b/src/br/com/puc/sispol/interceptor/AutorizadorInterceptor.java
@@ -1,32 +1,32 ... | true | true | public boolean preHandle(HttpServletRequest request,
HttpServletResponse response, Object controller) throws Exception {
String uri = request.getRequestURI();
if (uri.endsWith("loginForm") || uri.endsWith("efetuaLogin")
|| uri.contains("resources") || uri.contains("mostraHome")
|| uri.contains("novoUsua... | public boolean preHandle(HttpServletRequest request,
HttpServletResponse response, Object controller) throws Exception {
String uri = request.getRequestURI();
if (uri.endsWith("loginForm") || uri.endsWith("efetuaLogin")
|| uri.contains("resources") || uri.contains("mostraHome")
|| uri.contains("novoUsua... |
diff --git a/src/main/java/net/aufdemrand/denizen/scripts/commands/core/RandomCommand.java b/src/main/java/net/aufdemrand/denizen/scripts/commands/core/RandomCommand.java
index b67c28da3..93a10d7a2 100644
--- a/src/main/java/net/aufdemrand/denizen/scripts/commands/core/RandomCommand.java
+++ b/src/main/java/net/aufdemr... | false | true | public void execute(ScriptEntry scriptEntry) throws CommandExecutionException {
// TODO: ADD REPORT!
int possibilities = 0;
ScriptQueue queue = scriptEntry.getResidingQueue();
ArrayList<ScriptEntry> bracedCommands = null;
if (!scriptEntry.hasObject("braces")) {
... | public void execute(ScriptEntry scriptEntry) throws CommandExecutionException {
// TODO: ADD REPORT!
int possibilities = 0;
ScriptQueue queue = scriptEntry.getResidingQueue();
ArrayList<ScriptEntry> bracedCommands = null;
if (!scriptEntry.hasObject("braces")) {
... |
diff --git a/cadpage/src/net/anei/cadpage/C2DMReceiver.java b/cadpage/src/net/anei/cadpage/C2DMReceiver.java
index a4cd3c7f6..fbdec9ce7 100644
--- a/cadpage/src/net/anei/cadpage/C2DMReceiver.java
+++ b/cadpage/src/net/anei/cadpage/C2DMReceiver.java
@@ -1,264 +1,265 @@
/*
* Copyright (C) 2007-2008 Esmertec AG.
* Co... | true | true | private void handleMessage(final Context context, final Intent intent) {
// If registration has been canceled, all C2DM messages should be ignored
if (ManagePreferences.registrationId() == null) return;
// See what kind of message this is
String type = intent.getStringExtra("type");
... | private void handleMessage(final Context context, final Intent intent) {
// If registration has been canceled, all C2DM messages should be ignored
if (ManagePreferences.registrationId() == null) return;
// See what kind of message this is
String type = intent.getStringExtra("type");
if (... |
diff --git a/jcommune/jcommune-model/src/main/java/org/jtalks/jcommune/model/dao/hibernate/TopicHibernateDao.java b/jcommune/jcommune-model/src/main/java/org/jtalks/jcommune/model/dao/hibernate/TopicHibernateDao.java
index a872afe2..0072f8e0 100644
--- a/jcommune/jcommune-model/src/main/java/org/jtalks/jcommune/model/d... | true | true | public boolean delete(Long id) {
//TODO: not efficient solution
Topic topic = get(id);
if (topic == null)
return false;
getSession().delete(topic);
return true;
}
| public boolean delete(Long id) {
//TODO: not efficient solution. See more info on the next link http://bit.ly/m85eLs
Topic topic = get(id);
if (topic == null)
return false;
getSession().delete(topic);
return true;
}
|
diff --git a/src/com/gdg/andconlab/models/Speaker.java b/src/com/gdg/andconlab/models/Speaker.java
index f211928..20022b4 100755
--- a/src/com/gdg/andconlab/models/Speaker.java
+++ b/src/com/gdg/andconlab/models/Speaker.java
@@ -1,98 +1,99 @@
package com.gdg.andconlab.models;
import java.io.Serializable;
impor... | true | true | public ContentValues getContentValues() {
ContentValues cv = new ContentValues();
cv.put(COLUMN_FIRST_NAME, mFirstName);
cv.put(COLUMN_LAST_NAME, mLastName);
cv.put(COLUMN_NAME_BIO, mBio);
cv.put(COLUMN_NAME_IMAGE_URL, mImageUrl);
return cv;
}
| public ContentValues getContentValues() {
ContentValues cv = new ContentValues();
cv.put(COLUMN_FIRST_NAME, mFirstName);
cv.put(COLUMN_LAST_NAME, mLastName);
cv.put(COLUMN_NAME_BIO, mBio);
cv.put(COLUMN_NAME_IMAGE_URL, mImageUrl);
cv.put(COLUMN_NAME_ID, mId);
return cv;
... |
diff --git a/src/usask/hci/fastdraw/DrawView.java b/src/usask/hci/fastdraw/DrawView.java
index 331026c..f9226c8 100644
--- a/src/usask/hci/fastdraw/DrawView.java
+++ b/src/usask/hci/fastdraw/DrawView.java
@@ -1,846 +1,847 @@
package usask.hci.fastdraw;
import java.util.HashMap;
import java.util.HashSet;
import ja... | true | true | public boolean onTouchEvent(MotionEvent event) {
int index = event.getActionIndex();
float x = event.getX(index);
float y = event.getY(index);
int id = event.getPointerId(index);
long now = System.nanoTime();
switch (event.getActionMasked()) {
case MotionEvent.... | public boolean onTouchEvent(MotionEvent event) {
int index = event.getActionIndex();
float x = event.getX(index);
float y = event.getY(index);
int id = event.getPointerId(index);
long now = System.nanoTime();
switch (event.getActionMasked()) {
case MotionEvent.... |
diff --git a/src/de/blau/android/views/overlay/OpenStreetMapTilesOverlay.java b/src/de/blau/android/views/overlay/OpenStreetMapTilesOverlay.java
index 9fa6c3d..0ac7da6 100644
--- a/src/de/blau/android/views/overlay/OpenStreetMapTilesOverlay.java
+++ b/src/de/blau/android/views/overlay/OpenStreetMapTilesOverlay.java
@@ ... | true | true | public void onDraw(Canvas c, IMapView osmv) {
// Do some calculations and drag attributes to local variables to save
//some performance.
final Rect viewPort = c.getClipBounds();
final int zoomLevel = osmv.getZoomLevel(viewPort);
final OpenStreetMapTile tile = new OpenStreetMapTile(0, 0, 0, 0); // reused inst... | public void onDraw(Canvas c, IMapView osmv) {
// Do some calculations and drag attributes to local variables to save
//some performance.
final Rect viewPort = c.getClipBounds();
final int zoomLevel = osmv.getZoomLevel(viewPort);
final OpenStreetMapTile tile = new OpenStreetMapTile(0, 0, 0, 0); // reused inst... |
diff --git a/src/test/java/org/iplantc/de/client/GwtTestDataUtils.java b/src/test/java/org/iplantc/de/client/GwtTestDataUtils.java
index dea5c776..b881c2fb 100644
--- a/src/test/java/org/iplantc/de/client/GwtTestDataUtils.java
+++ b/src/test/java/org/iplantc/de/client/GwtTestDataUtils.java
@@ -1,313 +1,316 @@
package ... | false | true | public void testSupportedActions() {
List<Action> actions = DataUtils.getSupportedActions(buildSingleFileList(), null);
assertTrue(actions.contains(Action.Delete));
assertTrue(actions.contains(Action.SimpleDownload));
assertTrue(actions.contains(Action.BulkDownload));
assertT... | public void testSupportedActions() {
List<Action> actions = DataUtils.getSupportedActions(buildSingleFileList(), null);
assertTrue(actions.contains(Action.Delete));
assertTrue(actions.contains(Action.SimpleDownload));
assertTrue(actions.contains(Action.BulkDownload));
assertT... |
diff --git a/domain/src/main/java/org/fao/geonet/repository/GeonetRepositoryImpl.java b/domain/src/main/java/org/fao/geonet/repository/GeonetRepositoryImpl.java
index 6d50a068e1..cd3b24ab6b 100644
--- a/domain/src/main/java/org/fao/geonet/repository/GeonetRepositoryImpl.java
+++ b/domain/src/main/java/org/fao/geonet/re... | true | true | public T update(int id, Updater<T> updater) {
final T entity = _entityManager.find(this._entityClass, id);
if (entity == null) {
throw new EntityNotFoundException("No entity found with id: " + id);
}
updater.apply(entity);
_entityManager.persist(entity);
... | public T update(ID id, Updater<T> updater) {
final T entity = _entityManager.find(this._entityClass, id);
if (entity == null) {
throw new EntityNotFoundException("No entity found with id: " + id);
}
updater.apply(entity);
_entityManager.persist(entity);
... |
diff --git a/json-mapper/src/test/java/org/jongo/json/JsonEngine.java b/json-mapper/src/test/java/org/jongo/json/JsonEngine.java
index 3e2e650..8d62ca2 100644
--- a/json-mapper/src/test/java/org/jongo/json/JsonEngine.java
+++ b/json-mapper/src/test/java/org/jongo/json/JsonEngine.java
@@ -1,64 +1,64 @@
/*
* Copyright... | true | true | public BsonDocument marshall(Object pojo) throws MarshallingException {
try {
Writer writer = new StringWriter();
config.getWriter(pojo.getClass()).writeValue(writer, pojo);
DBObject dbObject = createDBObjectWithDriver(writer.toString());
return Bson.createDoc... | public BsonDocument marshall(Object pojo) throws MarshallingException {
try {
Writer writer = new StringWriter();
config.getWriter(pojo).writeValue(writer, pojo);
DBObject dbObject = createDBObjectWithDriver(writer.toString());
return Bson.createDocument(dbObj... |
diff --git a/src/iitb/CRF/SegmentTrainer.java b/src/iitb/CRF/SegmentTrainer.java
index bb83c12..263f657 100644
--- a/src/iitb/CRF/SegmentTrainer.java
+++ b/src/iitb/CRF/SegmentTrainer.java
@@ -1,191 +1,194 @@
package iitb.CRF;
import java.lang.*;
import java.io.*;
import java.util.*;
import cern.colt.matrix.*;... | true | true | protected double computeFunctionGradient(double lambda[], double grad[]) {
try {
FeatureGeneratorNested featureGenNested = (FeatureGeneratorNested)featureGenerator;
double logli = 0;
for (int f = 0; f < lambda.length; f++) {
grad[f] = -1*lambda[f]*params.i... | protected double computeFunctionGradient(double lambda[], double grad[]) {
try {
FeatureGeneratorNested featureGenNested = (FeatureGeneratorNested)featureGenerator;
double logli = 0;
for (int f = 0; f < lambda.length; f++) {
grad[f] = -1*lambda[f]*params.i... |
diff --git a/autotools/org.eclipse.linuxtools.cdt.autotools.core/src/org/eclipse/linuxtools/internal/cdt/autotools/core/configure/FlagConfigureOption.java b/autotools/org.eclipse.linuxtools.cdt.autotools.core/src/org/eclipse/linuxtools/internal/cdt/autotools/core/configure/FlagConfigureOption.java
index b8d7b30f8..300e... | false | true | public String getParameter() {
StringBuffer parm = new StringBuffer(getName()+"=\""); //$NON-NLS-1$
boolean haveParm = false;
if (isParmSet()) {
for (int i = 0; i < children.size(); ++i) {
String fvname = children.get(i);
IConfigureOption o = cfg.getOption(fvname);
if (o.isParmSet()) {
if (o ... | public String getParameter() {
StringBuffer parm = new StringBuffer(getName()+"=\""); //$NON-NLS-1$
boolean haveParm = false;
if (isParmSet()) {
String separator = "";
for (int i = 0; i < children.size(); ++i) {
String fvname = children.get(i);
IConfigureOption o = cfg.getOption(fvname);
if (o.... |
diff --git a/msv/src/com/sun/msv/verifier/Verifier.java b/msv/src/com/sun/msv/verifier/Verifier.java
index 1c89dc97..1ad0dae3 100644
--- a/msv/src/com/sun/msv/verifier/Verifier.java
+++ b/msv/src/com/sun/msv/verifier/Verifier.java
@@ -1,326 +1,326 @@
/*
* @(#)$Id$
*
* Copyright 2001 Sun Microsystems, Inc. All Ri... | false | true | public void startElement( String namespaceUri, String localName, String qName, Attributes atts )
throws SAXException {
super.startElement(namespaceUri,localName,qName,atts);
if( com.sun.msv.driver.textui.Debug.debug )
System.out.println("\n-- startElement("+qName+")" + locator.getLineNumber()+":"+locato... | public void startElement( String namespaceUri, String localName, String qName, Attributes atts )
throws SAXException {
super.startElement(namespaceUri,localName,qName,atts);
if( com.sun.msv.driver.textui.Debug.debug )
System.out.println("\n-- startElement("+qName+")" + locator.getLineNumber()+":"+locato... |
diff --git a/src/com/yahoo/platform/yui/compressor/CssCompressor.java b/src/com/yahoo/platform/yui/compressor/CssCompressor.java
index 3096232..b0ff13f 100644
--- a/src/com/yahoo/platform/yui/compressor/CssCompressor.java
+++ b/src/com/yahoo/platform/yui/compressor/CssCompressor.java
@@ -1,176 +1,178 @@
/*
* YUI Com... | true | true | public void compress(Writer out, int linebreakpos)
throws IOException {
Pattern p;
Matcher m;
String css;
StringBuffer sb;
int startIndex, endIndex;
// Remove all comment blocks...
startIndex = 0;
boolean iemac = false;
sb = new S... | public void compress(Writer out, int linebreakpos)
throws IOException {
Pattern p;
Matcher m;
String css;
StringBuffer sb;
int startIndex, endIndex;
// Remove all comment blocks...
startIndex = 0;
boolean iemac = false;
sb = new S... |
diff --git a/src/monnef/core/common/ContainerRegistry.java b/src/monnef/core/common/ContainerRegistry.java
index a177914..d94c84f 100644
--- a/src/monnef/core/common/ContainerRegistry.java
+++ b/src/monnef/core/common/ContainerRegistry.java
@@ -1,305 +1,310 @@
/*
* Jaffas and more!
* author: monnef
*/
package... | true | true | public static void fillRegistrationsFromAnnotations(boolean clientSide) {
if (!clientSide) {
if (filledFromAnnotationsServer)
throw new RuntimeException("Server registry are already filled from annotations.");
filledFromAnnotationsServer = true;
} else {
... | public static void fillRegistrationsFromAnnotations(boolean clientSide) {
if (!clientSide) {
if (filledFromAnnotationsServer)
throw new RuntimeException("Server registry are already filled from annotations.");
filledFromAnnotationsServer = true;
} else {
... |
diff --git a/nifty-examples/src/main/java/de/lessvoid/nifty/examples/defaultcontrols/tabs/TabsControlDialogController.java b/nifty-examples/src/main/java/de/lessvoid/nifty/examples/defaultcontrols/tabs/TabsControlDialogController.java
index 41618e66..126c2c18 100644
--- a/nifty-examples/src/main/java/de/lessvoid/nifty/... | false | true | public void bind(
final Nifty nifty,
final Screen screen,
final Element element,
final Properties parameter,
final Attributes controlDefinitionAttributes) {
this.tabs = screen.findNiftyControl("tabs", Tabs.class);
Element tab1 = new TabBuil... | public void bind(
final Nifty nifty,
final Screen screen,
final Element element,
final Properties parameter,
final Attributes controlDefinitionAttributes) {
this.tabs = screen.findNiftyControl("tabs", Tabs.class);
Element tab1 = new TabBuil... |
diff --git a/src/com/android/bluetooth/opp/BluetoothOppLauncherActivity.java b/src/com/android/bluetooth/opp/BluetoothOppLauncherActivity.java
index 55ba463..7112cbb 100644
--- a/src/com/android/bluetooth/opp/BluetoothOppLauncherActivity.java
+++ b/src/com/android/bluetooth/opp/BluetoothOppLauncherActivity.java
@@ -1,2... | true | true | public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
Intent intent = getIntent();
String action = intent.getAction();
BluetoothDevice device = null;
boolean isHandover = true;
if (action.equals(Intent.ACTION_SEND) || action.equals(In... | public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
Intent intent = getIntent();
String action = intent.getAction();
BluetoothDevice device = null;
boolean isHandover = false;
if (action.equals(Intent.ACTION_SEND) || action.equals(I... |
diff --git a/pingpongnet/src/test/java/ping/pong/net/connection/io/ReadFullyDataReaderTest.java b/pingpongnet/src/test/java/ping/pong/net/connection/io/ReadFullyDataReaderTest.java
index 3f6490d..a6b639a 100644
--- a/pingpongnet/src/test/java/ping/pong/net/connection/io/ReadFullyDataReaderTest.java
+++ b/pingpongnet/sr... | false | true | public void testReadFullyDataReader() throws IOException,
InterruptedException
{
Runnable serverSocket = new Runnable()
{
@Override
public void run()
{
try
{
S... | public void testReadFullyDataReader() throws IOException,
InterruptedException
{
Runnable serverSocket = new Runnable()
{
@Override
public void run()
{
try
{
S... |
diff --git a/rdflivenews-core/src/main/java/org/aksw/simba/rdflivenews/rdf/impl/NIFRdfExtraction.java b/rdflivenews-core/src/main/java/org/aksw/simba/rdflivenews/rdf/impl/NIFRdfExtraction.java
index 2c0c3c4..a198086 100644
--- a/rdflivenews-core/src/main/java/org/aksw/simba/rdflivenews/rdf/impl/NIFRdfExtraction.java
++... | false | true | public void extractRdfFromEntityPair(EntityPair pair, Cluster<Pattern> cluster, Pattern pattern) throws UnsupportedEncodingException, NoSuchAlgorithmException {
if (!pair.hasValidUris()) {
logger.debug("NON VALID URIS: \n" + pair);
return;
}
if (testing || check(pair... | public void extractRdfFromEntityPair(EntityPair pair, Cluster<Pattern> cluster, Pattern pattern) throws UnsupportedEncodingException, NoSuchAlgorithmException {
if (!pair.hasValidUris()) {
logger.debug("NON VALID URIS: \n" + pair);
return;
}
if (testing || check(pair... |
diff --git a/src/main/java/org/mat/nounou/services/ChildrenService.java b/src/main/java/org/mat/nounou/services/ChildrenService.java
index 1392c22..5e6db96 100644
--- a/src/main/java/org/mat/nounou/services/ChildrenService.java
+++ b/src/main/java/org/mat/nounou/services/ChildrenService.java
@@ -1,220 +1,221 @@
packag... | true | true | public ChildVO updateChild(ChildVO child, @PathParam("childId") Integer childId) {
logger.debug("Update Child " + child);
EntityManager em = EntityManagerLoaderListener.createEntityManager();
try {
TypedQuery<Child> query = em.createQuery("FROM Child WHERE childId=:childId", Ch... | public ChildVO updateChild(ChildVO child, @PathParam("childId") Integer childId) {
logger.debug("Update Child " + child);
EntityManager em = EntityManagerLoaderListener.createEntityManager();
try {
TypedQuery<Child> query = em.createQuery("FROM Child WHERE childId=:childId", Ch... |
diff --git a/core/src/java/com/dtolabs/rundeck/core/common/NodeEntryFactory.java b/core/src/java/com/dtolabs/rundeck/core/common/NodeEntryFactory.java
index 57aba34cd..b2a231713 100644
--- a/core/src/java/com/dtolabs/rundeck/core/common/NodeEntryFactory.java
+++ b/core/src/java/com/dtolabs/rundeck/core/common/NodeEntry... | false | true | public static NodeEntryImpl createFromMap(final Map<String, Object> map) throws IllegalArgumentException {
final NodeEntryImpl nodeEntry = new NodeEntryImpl();
final HashMap<String, Object> newmap = new HashMap<String, Object>(map);
for (final String excludeProp : excludeProps) {
... | public static NodeEntryImpl createFromMap(final Map<String, Object> map) throws IllegalArgumentException {
final NodeEntryImpl nodeEntry = new NodeEntryImpl();
final HashMap<String, Object> newmap = new HashMap<String, Object>(map);
for (final String excludeProp : excludeProps) {
... |
diff --git a/src/me/confuserr/banmanager/Listeners/AsyncChat.java b/src/me/confuserr/banmanager/Listeners/AsyncChat.java
index 7677834..61df3e5 100644
--- a/src/me/confuserr/banmanager/Listeners/AsyncChat.java
+++ b/src/me/confuserr/banmanager/Listeners/AsyncChat.java
@@ -1,48 +1,48 @@
package me.confuserr.banmanager.... | false | true | public void onPlayerChat(final AsyncPlayerChatEvent event) {
Player player = event.getPlayer();
String playerName = player.getName();
if(plugin.getPlayerMutes().get(playerName) != null) {
MuteData muteData = plugin.getPlayerMutes().get(playerName);
long expires = muteData.getExpires() * 1000;
String... | public void onPlayerChat(final AsyncPlayerChatEvent event) {
Player player = event.getPlayer();
String playerName = player.getName();
if(plugin.getPlayerMute(playerName) != null) {
MuteData muteData = plugin.getPlayerMute(playerName);
long expires = muteData.getExpires() * 1000;
String expiresFormat... |
diff --git a/src/minecraft/java/org/darkstorm/darkbot/minecraftbot/ai/FarmingTask.java b/src/minecraft/java/org/darkstorm/darkbot/minecraftbot/ai/FarmingTask.java
index 6921c60..6181c1c 100644
--- a/src/minecraft/java/org/darkstorm/darkbot/minecraftbot/ai/FarmingTask.java
+++ b/src/minecraft/java/org/darkstorm/darkbot/... | true | true | public synchronized void run() {
if(currentlyBreaking != null) {
ticksSinceBreak++;
if(ticksSinceBreak > 200)
currentlyBreaking = null;
return;
}
ticksSinceBreak = 0;
TaskManager taskManager = bot.getTaskManager();
EatTask eatTask = taskManager.getTaskFor(EatTask.class);
if(eatTask.isActive())... | public synchronized void run() {
if(currentlyBreaking != null) {
ticksSinceBreak++;
if(ticksSinceBreak > 200)
currentlyBreaking = null;
return;
}
ticksSinceBreak = 0;
TaskManager taskManager = bot.getTaskManager();
EatTask eatTask = taskManager.getTaskFor(EatTask.class);
if(eatTask.isActive())... |
diff --git a/xfire-spring/src/test/org/codehaus/xfire/spring/config/XFireConfigLoaderTest.java b/xfire-spring/src/test/org/codehaus/xfire/spring/config/XFireConfigLoaderTest.java
index 1014c7d7..1d4635d2 100644
--- a/xfire-spring/src/test/org/codehaus/xfire/spring/config/XFireConfigLoaderTest.java
+++ b/xfire-spring/sr... | true | true | private void doAssertions(XFire xfire){
assertNotNull(xfire);
assertEquals(2, xfire.getInHandlers().size());
assertTrue(xfire.getInHandlers().get(1) instanceof TestHandler);
assertEquals(xfire.getOutHandlers().size(),1);
assertEquals(xfire.getFaultHandlers().size(),1... | private void doAssertions(XFire xfire){
assertNotNull(xfire);
assertEquals(2, xfire.getInHandlers().size());
assertTrue(xfire.getInHandlers().get(1) instanceof TestHandler);
assertEquals(xfire.getOutHandlers().size(),1);
assertEquals(xfire.getFaultHandlers().size(),1... |
diff --git a/SeriesGuide/src/com/battlelancer/seriesguide/adapters/MoviesAdapter.java b/SeriesGuide/src/com/battlelancer/seriesguide/adapters/MoviesAdapter.java
index e1aeb3b14..4ad625138 100644
--- a/SeriesGuide/src/com/battlelancer/seriesguide/adapters/MoviesAdapter.java
+++ b/SeriesGuide/src/com/battlelancer/seriesg... | true | true | public View getView(int position, View convertView, ViewGroup parent) {
// A ViewHolder keeps references to children views to avoid
// unneccessary calls to findViewById() on each row.
ViewHolder holder;
if (convertView == null) {
convertView = mInflater.inflate(LAYOUT, ... | public View getView(int position, View convertView, ViewGroup parent) {
// A ViewHolder keeps references to children views to avoid
// unneccessary calls to findViewById() on each row.
ViewHolder holder;
if (convertView == null) {
convertView = mInflater.inflate(LAYOUT, ... |
diff --git a/org.eclipse.scout.rt.client/src/org/eclipse/scout/rt/client/ui/form/fields/radiobuttongroup/internal/RadioButtonGroupGrid.java b/org.eclipse.scout.rt.client/src/org/eclipse/scout/rt/client/ui/form/fields/radiobuttongroup/internal/RadioButtonGroupGrid.java
index f64db602b7..7f468a488a 100644
--- a/org.eclip... | true | true | private void layoutStatic() {
GridData parentData = m_group.getGridData();
if (parentData.h <= 0) {
LOG.error(m_group.getClass().getName() + " has gridData.h=" + parentData.h + "; expected value>0");
m_gridRows = 1;
}
else if (m_fields.length <= 0) {
LOG.error(m_group.getClass().getN... | private void layoutStatic() {
GridData parentData = m_group.getGridData();
if (parentData.h <= 0) {
LOG.error(m_group.getClass().getName() + " has gridData.h=" + parentData.h + "; expected value>0");
m_gridRows = 1;
}
else if (m_fields.length <= 0) {
LOG.error(m_group.getClass().getN... |
diff --git a/src/main/java/com/ai/myplugin/sensor/WaterLevelSensor.java b/src/main/java/com/ai/myplugin/sensor/WaterLevelSensor.java
index 25e3a89..3e2a413 100644
--- a/src/main/java/com/ai/myplugin/sensor/WaterLevelSensor.java
+++ b/src/main/java/com/ai/myplugin/sensor/WaterLevelSensor.java
@@ -1,198 +1,198 @@
packag... | true | true | public TestResult execute(TestSessionContext testSessionContext) {
log.info("execute "+ getName() + ", sensor type:" +this.getClass().getName());
for(String property : getRequiredProperties()){
if(getProperty(property) == null)
throw new RuntimeException("Required proper... | public TestResult execute(TestSessionContext testSessionContext) {
log.info("execute "+ getName() + ", sensor type:" +this.getClass().getName());
for(String property : getRequiredProperties()){
if(getProperty(property) == null)
throw new RuntimeException("Required proper... |
diff --git a/src/java/com/eviware/soapui/support/editor/views/xml/source/XmlSourceEditorView.java b/src/java/com/eviware/soapui/support/editor/views/xml/source/XmlSourceEditorView.java
index 6cbc28de9..35f21f18f 100644
--- a/src/java/com/eviware/soapui/support/editor/views/xml/source/XmlSourceEditorView.java
+++ b/src/... | false | true | protected void buildUI()
{
editArea = new RSyntaxTextArea( 20, 60 );
editArea.setSyntaxEditingStyle( SyntaxConstants.SYNTAX_STYLE_XML );
editArea.setFont( UISupport.getEditorFont() );
editArea.setCodeFoldingEnabled( true );
editArea.setAntiAliasingEnabled( true );
editArea.setMinimumSize( new Dimension( 5... | protected void buildUI()
{
editArea = new RSyntaxTextArea( 20, 60 );
editArea.setSyntaxEditingStyle( SyntaxConstants.SYNTAX_STYLE_XML );
editArea.setFont( UISupport.getEditorFont() );
editArea.setCodeFoldingEnabled( true );
editArea.setAntiAliasingEnabled( true );
editArea.setMinimumSize( new Dimension( 5... |
diff --git a/src/com/jmex/effects/water/WaterRenderPass.java b/src/com/jmex/effects/water/WaterRenderPass.java
index 73cf933c0..5810f6096 100755
--- a/src/com/jmex/effects/water/WaterRenderPass.java
+++ b/src/com/jmex/effects/water/WaterRenderPass.java
@@ -1,616 +1,614 @@
/*
* Copyright (c) 2003-2006 jMonkeyEngine
... | false | true | public WaterRenderPass( Camera cam, int renderScale, boolean useProjectedShader, boolean useRefraction ) {
this.cam = cam;
this.useProjectedShader = useProjectedShader;
this.useRefraction = useRefraction;
if( useRefraction && useProjectedShader && TextureState.getNumberOfFragmentUnits() < 6 ||
useRefractio... | public WaterRenderPass( Camera cam, int renderScale, boolean useProjectedShader, boolean useRefraction ) {
this.cam = cam;
this.useProjectedShader = useProjectedShader;
this.useRefraction = useRefraction;
if( useRefraction && useProjectedShader && TextureState.getNumberOfFragmentUnits() < 6 ||
useRefractio... |
diff --git a/src/ca/teamTen/recitopia/test/LocalCacheTest.java b/src/ca/teamTen/recitopia/test/LocalCacheTest.java
index abd34f5..9615bf3 100644
--- a/src/ca/teamTen/recitopia/test/LocalCacheTest.java
+++ b/src/ca/teamTen/recitopia/test/LocalCacheTest.java
@@ -1,50 +1,50 @@
package ca.teamTen.recitopia.test;
import... | true | true | public void testSizeLimit() {
addTestData();
int recipeCount = defaultRecipes.size();
Recipe newRecipe = new Recipe("A completely new recipe",
new ArrayList<String>(Arrays.asList("spiky melon", "salt", "cooking oil")),
"chop, fry, eat",
"localCacheTest@test.com");
recipeBook.addRecipe(newReci... | public void testSizeLimit() {
addTestData();
int recipeCount = defaultRecipes.size();
Recipe newRecipe = new Recipe("A completely new recipe",
new ArrayList<String>(Arrays.asList("spiky melon", "salt", "cooking oil")),
"chop, fry, eat",
"localCacheTest@test.com");
recipeBook.addRecipe(newReci... |
diff --git a/src/java/davmail/exchange/ews/EWSMethod.java b/src/java/davmail/exchange/ews/EWSMethod.java
index a01dad2..793f7b0 100644
--- a/src/java/davmail/exchange/ews/EWSMethod.java
+++ b/src/java/davmail/exchange/ews/EWSMethod.java
@@ -1,1074 +1,1070 @@
/*
* DavMail POP/IMAP/SMTP/CalDav/LDAP Exchange Gateway
... | true | true | protected void processResponseStream(InputStream inputStream) {
responseItems = new ArrayList<Item>();
XMLStreamReader reader;
try {
inputStream = new FilterInputStream(inputStream) {
int totalCount;
int lastLogCount;
@Override
... | protected void processResponseStream(InputStream inputStream) {
responseItems = new ArrayList<Item>();
XMLStreamReader reader;
try {
inputStream = new FilterInputStream(inputStream) {
int totalCount;
int lastLogCount;
@Override
... |
diff --git a/src/main/java/burst/reader/web/ExtendedRedirectResult.java b/src/main/java/burst/reader/web/ExtendedRedirectResult.java
index 1f7a1a3..65615b1 100644
--- a/src/main/java/burst/reader/web/ExtendedRedirectResult.java
+++ b/src/main/java/burst/reader/web/ExtendedRedirectResult.java
@@ -1,53 +1,54 @@
package ... | false | true | protected void doExecute(String finalLocation, ActionInvocation invocation) throws Exception {
HttpServletRequest request = ServletActionContext.getRequest();
HttpServletResponse response = ServletActionContext.getResponse();
if(request.getHeader("User-Agent").toLowerCase().indexOf("untrus... | protected void doExecute(String finalLocation, ActionInvocation invocation) throws Exception {
HttpServletRequest request = ServletActionContext.getRequest();
HttpServletResponse response = ServletActionContext.getResponse();
if(request.getHeader("User-Agent").toLowerCase().indexOf("untrus... |
diff --git a/src/main/java/com/almuramc/aqualock/bukkit/display/button/ApplyButton.java b/src/main/java/com/almuramc/aqualock/bukkit/display/button/ApplyButton.java
index 7f4ed11..e7137a1 100644
--- a/src/main/java/com/almuramc/aqualock/bukkit/display/button/ApplyButton.java
+++ b/src/main/java/com/almuramc/aqualock/bu... | false | true | public void onButtonClick(ButtonClickEvent event) {
final AquaPanel panel = (AquaPanel) event.getScreen();
String owner = "";
List<String> coowners = null;
List<String> users = null;
String password = "";
double cost = 0;
int damage = 0;
long timer = 0;
for (Widget widget : panel.getAttachedWidgets()... | public void onButtonClick(ButtonClickEvent event) {
final AquaPanel panel = (AquaPanel) event.getScreen();
String owner = "";
List<String> coowners = null;
List<String> users = null;
String password = "";
double cost = 0;
int damage = 0;
long timer = 0;
for (Widget widget : panel.getAttachedWidgets()... |
diff --git a/api/src/main/java/org/searchisko/api/rest/security/AuthenticationUtilService.java b/api/src/main/java/org/searchisko/api/rest/security/AuthenticationUtilService.java
index 7a35144..8c1e54c 100644
--- a/api/src/main/java/org/searchisko/api/rest/security/AuthenticationUtilService.java
+++ b/api/src/main/java... | true | true | public String getAuthenticatedContributor(SecurityContext securityContext, boolean forceCreate) throws NotAuthenticatedException {
log.log(Level.FINEST, "Get Authenticated Contributor, forcCreate: {0}", forceCreate);
if (!isAuthenticatedUserOfType(securityContext, AuthenticatedUserType.CONTRIBUTOR)) {
log.fine... | public String getAuthenticatedContributor(SecurityContext securityContext, boolean forceCreate) throws NotAuthenticatedException {
log.log(Level.FINEST, "Get Authenticated Contributor, forceCreate: {0}", forceCreate);
if (!isAuthenticatedUserOfType(securityContext, AuthenticatedUserType.CONTRIBUTOR)) {
log.fin... |
diff --git a/trunk/src/Cubee/src/com/eagerlogic/cubee/client/components/TextBox.java b/trunk/src/Cubee/src/com/eagerlogic/cubee/client/components/TextBox.java
index e534587..edcf7ca 100644
--- a/trunk/src/Cubee/src/com/eagerlogic/cubee/client/components/TextBox.java
+++ b/trunk/src/Cubee/src/com/eagerlogic/cubee/client... | true | true | TextBox(Element e) {
super(e);
width.addChangeListener(new IChangeListener() {
@Override
public void onChanged(Object sender) {
if (width.get() == null) {
getElement().getStyle().clearWidth();
getElement().getStyle().setOverflowX(Style.Overflow.AUTO);
} else {
getElement().getStyle().s... | TextBox(Element e) {
super(e);
width.addChangeListener(new IChangeListener() {
@Override
public void onChanged(Object sender) {
if (width.get() == null) {
getElement().getStyle().clearWidth();
getElement().getStyle().setOverflowX(Style.Overflow.AUTO);
} else {
getElement().getStyle().s... |
diff --git a/src/main/java/org/atlasapi/remotesite/ContentMerger.java b/src/main/java/org/atlasapi/remotesite/ContentMerger.java
index 0fe6dc093..f60318414 100644
--- a/src/main/java/org/atlasapi/remotesite/ContentMerger.java
+++ b/src/main/java/org/atlasapi/remotesite/ContentMerger.java
@@ -1,69 +1,70 @@
package org.... | true | true | private static <C extends Content> C mergeContents(C current, C extracted) {
current.setActivelyPublished(extracted.isActivelyPublished());
current.setAliasUrls(extracted.getAliasUrls());
current.setTitle(extracted.getTitle());
current.setDescription(extracted.getDescription());
... | private static <C extends Content> C mergeContents(C current, C extracted) {
current.setActivelyPublished(extracted.isActivelyPublished());
current.setAliasUrls(extracted.getAliasUrls());
current.setAliases(extracted.getAliases());
current.setTitle(extracted.getTitle());
curr... |
diff --git a/Worker/src/main/java/org/trianacode/TrianaCloud/Worker/Worker.java b/Worker/src/main/java/org/trianacode/TrianaCloud/Worker/Worker.java
index a999224..460a1de 100644
--- a/Worker/src/main/java/org/trianacode/TrianaCloud/Worker/Worker.java
+++ b/Worker/src/main/java/org/trianacode/TrianaCloud/Worker/Worker.... | true | true | public static void main(String[] argv) {
Connection connection = null;
Channel channel;
try {
loadPlugins(argv);
ConnectionFactory factory = new ConnectionFactory();
factory.setHost("s-vmc.cs.cf.ac.uk");
factory.setPort(7000);
fac... | public static void main(String[] argv) {
Connection connection = null;
Channel channel;
try {
loadPlugins(argv);
ConnectionFactory factory = new ConnectionFactory();
factory.setHost("s-vmc.cs.cf.ac.uk");
factory.setPort(7000);
fac... |
diff --git a/src/main/java/nl/mdlware/confluence/plugins/citation/XMLDocumentWrapper.java b/src/main/java/nl/mdlware/confluence/plugins/citation/XMLDocumentWrapper.java
index 63a4788..3e08a65 100644
--- a/src/main/java/nl/mdlware/confluence/plugins/citation/XMLDocumentWrapper.java
+++ b/src/main/java/nl/mdlware/conflue... | true | true | public static String wrapIntoValidXML(String pageContents) {
return "<?xml version=\"1.0\"?><!DOCTYPE some_name [<!ENTITY nbsp \" \">]><p>" + pageContents + "</p>";
}
| public static String wrapIntoValidXML(String pageContents) {
return "<?xml version=\"1.0\"?><!DOCTYPE some_name [<!ENTITY nbsp \" \"><!ENTITY ndash \"–\"><!ENTITY mdash \"—\"><!ENTITY rsquo \"’\"> ]><p>" + pageContents + "</p>";
}
|
diff --git a/MazeGame/src/mapMaker/ControlsPanel.java b/MazeGame/src/mapMaker/ControlsPanel.java
index 6d1b967..d49b3fb 100644
--- a/MazeGame/src/mapMaker/ControlsPanel.java
+++ b/MazeGame/src/mapMaker/ControlsPanel.java
@@ -1,57 +1,58 @@
package mapMaker;
import java.awt.Color;
import java.awt.Dimension;
import ... | true | true | public void paint(Graphics g) {
super.paint(g);
int ix = 0;
g.setFont(font1);
g.setColor(Color.black);
g.drawString(blankButton, 5, ix += 25);
g.drawString(endButton, 5, ix += 25);
g.drawString(grassButton, 5, ix += 25);
g.drawString(startButton, 5, ix += 25);
g.drawString(wallButton, 5... | public void paint(Graphics g) {
super.paint(g);
int ix = 0;
g.setFont(font1);
g.setColor(Color.black);
g.drawString(blankButton, 5, ix += 25);
g.drawString(endButton, 5, ix += 25);
g.drawString(grassButton, 5, ix += 25);
g.drawString(startButton, 5, ix += 25);
g.drawString(wallButton, 5... |
diff --git a/activeweb/src/test/java/org/javalite/activeweb/EncodingSpec.java b/activeweb/src/test/java/org/javalite/activeweb/EncodingSpec.java
index 09973e1..7d8110b 100644
--- a/activeweb/src/test/java/org/javalite/activeweb/EncodingSpec.java
+++ b/activeweb/src/test/java/org/javalite/activeweb/EncodingSpec.java
@@ ... | true | true | public void shouldShouldOverrideControllerEncodingWithActionEncoding() throws IOException, ServletException {
request.setServletPath("/encoding2");
request.setMethod("GET");
dispatcher.doFilter(request, response, filterChain);
a(response.getContentAsString()).shouldBeEqual("hi");
... | public void shouldShouldOverrideControllerEncodingWithActionEncoding() throws IOException, ServletException {
request.setServletPath("/encoding2");
request.setMethod("GET");
dispatcher.doFilter(request, response, filterChain);
a(response.getContentAsString()).shouldBeEqual("hi");
... |
diff --git a/src/main/java/com/github/ucchyocean/cmt/command/CRemoveCommand.java b/src/main/java/com/github/ucchyocean/cmt/command/CRemoveCommand.java
index ca6c722..d153faf 100644
--- a/src/main/java/com/github/ucchyocean/cmt/command/CRemoveCommand.java
+++ b/src/main/java/com/github/ucchyocean/cmt/command/CRemoveComm... | false | true | public boolean onCommand(
CommandSender sender, Command command, String label, String[] args) {
if ( args.length <= 0 ) {
return false;
}
if ( args[0].equalsIgnoreCase("on") ) {
ColorMeTeamingConfig.autoColorRemove = true;
sender.sendMessage(... | public boolean onCommand(
CommandSender sender, Command command, String label, String[] args) {
if ( args.length <= 0 ) {
return false;
}
if ( args[0].equalsIgnoreCase("on") ) {
ColorMeTeamingConfig.autoColorRemove = true;
sender.sendMessage(... |
diff --git a/jRealityPlugin/src/de/tum/in/jrealityplugin/jogl/Util.java b/jRealityPlugin/src/de/tum/in/jrealityplugin/jogl/Util.java
index e444d17..db23c7e 100644
--- a/jRealityPlugin/src/de/tum/in/jrealityplugin/jogl/Util.java
+++ b/jRealityPlugin/src/de/tum/in/jrealityplugin/jogl/Util.java
@@ -1,25 +1,25 @@
package ... | false | true | public static AxisAngle4d rotateFromTo(Vector3d from, Vector3d to) {
double angle = from.angle(to);
if (angle == 0)
return new AxisAngle4d(new Vector3d(), 0);
Vector3d axis = new Vector3d();
axis.cross(from, to);
axis.normalize();
return new AxisAngle4d(axis, angle);
}
| public static AxisAngle4d rotateFromTo(Vector3d from, Vector3d to) {
double angle = from.angle(to);
Vector3d axis = new Vector3d();
axis.cross(from, to);
if (axis.epsilonEquals(new Vector3d(), 1E-8))
return new AxisAngle4d(new Vector3d(1,0,0), 0);
axis.normalize();
return new AxisAngle4d(axis, angle);
... |
diff --git a/core/src/main/java/me/prettyprint/cassandra/service/template/SuperCfResultWrapper.java b/core/src/main/java/me/prettyprint/cassandra/service/template/SuperCfResultWrapper.java
index b3699151..921ca47b 100644
--- a/core/src/main/java/me/prettyprint/cassandra/service/template/SuperCfResultWrapper.java
+++ b/... | false | true | private void applyToRow(List<ColumnOrSuperColumn> cosclist) {
superColumns = new ArrayList<SN>(cosclist.size());
for (Iterator<ColumnOrSuperColumn> iterator = cosclist.iterator(); iterator.hasNext();) {
ColumnOrSuperColumn cosc = iterator.next();
SN sColName = sNameSerializer.fromByteBuffer(cosc.s... | private void applyToRow(List<ColumnOrSuperColumn> cosclist) {
superColumns = new ArrayList<SN>(cosclist.size());
for (Iterator<ColumnOrSuperColumn> iterator = cosclist.iterator(); iterator.hasNext();) {
ColumnOrSuperColumn cosc = iterator.next();
SN sColName = sNameSerializer.fromByteBuffer(cosc.s... |
diff --git a/src/net/sf/freecol/common/networking/DeclareIndependenceMessage.java b/src/net/sf/freecol/common/networking/DeclareIndependenceMessage.java
index 62da00a85..e89db08c2 100644
--- a/src/net/sf/freecol/common/networking/DeclareIndependenceMessage.java
+++ b/src/net/sf/freecol/common/networking/DeclareIndepend... | false | true | public Element handle(FreeColServer server, Player player, Connection connection) {
if (nationName == null || nationName.length() == 0
|| countryName == null || countryName.length() == 0) {
return Message.clientError("Empty nation or country name.");
}
if (player.getS... | public Element handle(FreeColServer server, Player player, Connection connection) {
if (nationName == null || nationName.length() == 0
|| countryName == null || countryName.length() == 0) {
return Message.clientError("Empty nation or country name.");
}
if (player.getS... |
diff --git a/src/net/epsilony/tsmf/util/ui/PhysicalModelTransform.java b/src/net/epsilony/tsmf/util/ui/PhysicalModelTransform.java
index ac13bbd..050618e 100644
--- a/src/net/epsilony/tsmf/util/ui/PhysicalModelTransform.java
+++ b/src/net/epsilony/tsmf/util/ui/PhysicalModelTransform.java
@@ -1,52 +1,52 @@
/*
* To ch... | false | true | public void scaleByCenter(int centerX, int centerY, double scale) {
AffineTransform tranformBack = new AffineTransform(this);
setToTranslation(centerX, centerX);
scale(scale, scale);
translate(-centerX, -centerX);
if (Math.abs(getScaleX()) < SCALE_LOWER_LIMITE || Math.abs(get... | public void scaleByCenter(int centerX, int centerY, double scale) {
AffineTransform tranformBack = new AffineTransform(this);
setToTranslation(centerX, centerY);
scale(scale, scale);
translate(-centerX, -centerY);
if (Math.abs(getScaleX()) < SCALE_LOWER_LIMITE || Math.abs(get... |
diff --git a/test/sandbox/com/sun/tools/javafx/api/JFXC3382.java b/test/sandbox/com/sun/tools/javafx/api/JFXC3382.java
index 5f4b71ad4..b557326ca 100644
--- a/test/sandbox/com/sun/tools/javafx/api/JFXC3382.java
+++ b/test/sandbox/com/sun/tools/javafx/api/JFXC3382.java
@@ -1,134 +1,134 @@
/*
* Copyright 2007-2009 Sun... | true | true | public void setup() throws IOException {
JavafxcTool tool = JavafxcTool.create ();
JavacFileManager manager = tool.getStandardFileManager (null, null, Charset.defaultCharset ());
ArrayList<JavaFileObject> filesToCompile = new ArrayList<JavaFileObject> ();
filesToCompile.add (manager... | public void setup() throws IOException {
JavafxcTool tool = JavafxcTool.create ();
JavacFileManager manager = tool.getStandardFileManager (null, null, Charset.defaultCharset ());
ArrayList<JavaFileObject> filesToCompile = new ArrayList<JavaFileObject> ();
filesToCompile.add (manager... |
diff --git a/src/main/java/de/holidayinsider/skimmy/SkimmyTest.java b/src/main/java/de/holidayinsider/skimmy/SkimmyTest.java
index 0b7028f..5bf8b59 100644
--- a/src/main/java/de/holidayinsider/skimmy/SkimmyTest.java
+++ b/src/main/java/de/holidayinsider/skimmy/SkimmyTest.java
@@ -1,322 +1,323 @@
package de.holidayinsi... | true | true | public void runTests() {
File wantedDir = new File("suites/" + suiteName + "/wanted");
if (!wantedDir.exists()) {
wantedDir.mkdirs();
}
// check wanted pictures exist for all uris
for (Object keyObj : uriList.keySet()) {
String key = (String) keyObj;... | public void runTests() {
File wantedDir = new File("suites/" + suiteName + "/wanted");
if (!wantedDir.exists()) {
wantedDir.mkdirs();
}
// check wanted pictures exist for all uris
for (Object keyObj : uriList.keySet()) {
String key = (String) keyObj;... |
diff --git a/src/main/java/org/jvnet/hudson/plugins/port_allocator/PortAllocator.java b/src/main/java/org/jvnet/hudson/plugins/port_allocator/PortAllocator.java
index a8a18f8..0c48b78 100644
--- a/src/main/java/org/jvnet/hudson/plugins/port_allocator/PortAllocator.java
+++ b/src/main/java/org/jvnet/hudson/plugins/port_... | false | true | public Environment setUp(Build build, Launcher launcher, BuildListener listener) throws IOException, InterruptedException {
PrintStream logger = listener.getLogger();
final Set<String> portVars = getVariables();
final Computer cur = Executor.currentExecutor().getOwner();
Map<String,... | public Environment setUp(Build build, Launcher launcher, BuildListener listener) throws IOException, InterruptedException {
PrintStream logger = listener.getLogger();
final Set<String> portVars = getVariables();
final Computer cur = Executor.currentExecutor().getOwner();
Map<String,... |
diff --git a/caadapter/components/userInterface/src/gov/nih/nci/caadapter/ui/common/resource/BuildHL7ResourceAction.java b/caadapter/components/userInterface/src/gov/nih/nci/caadapter/ui/common/resource/BuildHL7ResourceAction.java
index 1cd23fe16..764309ade 100755
--- a/caadapter/components/userInterface/src/gov/nih/nc... | false | true | protected boolean doAction(ActionEvent e) throws Exception {
String resourceName="";
if (getName().equals(COMMAND_BUILD_V2))
resourceName=RESOURCE_NAME_V2;
else if (getName().equals(COMMAND_BUILD_V3))
resourceName=RESOURCE_NAME_V3;
String resorcePath=BuildResourceUtil.findRes... | protected boolean doAction(ActionEvent e) throws Exception {
String resourceName="";
if (getName().equals(COMMAND_BUILD_V2))
resourceName=RESOURCE_NAME_V2;
else if (getName().equals(COMMAND_BUILD_V3))
resourceName=RESOURCE_NAME_V3;
String resorcePath=BuildResourceUtil.findRes... |
diff --git a/src/savant/view/swing/Savant.java b/src/savant/view/swing/Savant.java
index 7474793e..d98ff001 100644
--- a/src/savant/view/swing/Savant.java
+++ b/src/savant/view/swing/Savant.java
@@ -1,2076 +1,2077 @@
/*
* Copyright 2009-2011 University of Toronto
*
* Licensed under the Apache License, Vers... | true | true | private void initComponents() {
view_buttongroup = new javax.swing.ButtonGroup();
panel_top = new javax.swing.JPanel();
panelExtendedMiddle = new javax.swing.JPanel();
panel_main = new javax.swing.JPanel();
toolbar_bottom = new javax.swing.JToolBar();
label_mouseposi... | private void initComponents() {
view_buttongroup = new javax.swing.ButtonGroup();
panel_top = new javax.swing.JPanel();
panelExtendedMiddle = new javax.swing.JPanel();
panel_main = new javax.swing.JPanel();
toolbar_bottom = new javax.swing.JToolBar();
label_mouseposi... |
diff --git a/org.eclipse.help.webapp/src/org/eclipse/help/internal/webapp/servlet/EclipseConnector.java b/org.eclipse.help.webapp/src/org/eclipse/help/internal/webapp/servlet/EclipseConnector.java
index 12f9aee6c..ef290abfe 100644
--- a/org.eclipse.help.webapp/src/org/eclipse/help/internal/webapp/servlet/EclipseConnect... | true | true | public void transfer(HttpServletRequest req, HttpServletResponse resp)
throws IOException {
try {
String url = getURL(req);
if (url == null)
return;
// Redirect if the request includes PLUGINS_ROOT and is not a content request
int index = url.lastIndexOf(HelpURLConnection.PLUGINS_ROOT);
if (ind... | public void transfer(HttpServletRequest req, HttpServletResponse resp)
throws IOException {
try {
String url = getURL(req);
if (url == null)
return;
// Redirect if the request includes PLUGINS_ROOT and is not a content request
int index = url.lastIndexOf(HelpURLConnection.PLUGINS_ROOT);
if (ind... |
diff --git a/src/uk/co/unitycoders/pircbotx/commands/RandCommand.java b/src/uk/co/unitycoders/pircbotx/commands/RandCommand.java
index 4c51ad8..a1ff589 100644
--- a/src/uk/co/unitycoders/pircbotx/commands/RandCommand.java
+++ b/src/uk/co/unitycoders/pircbotx/commands/RandCommand.java
@@ -1,56 +1,56 @@
/**
* Copyrigh... | true | true | public void onMessage(MessageEvent<PircBotX> event) throws Exception
{
String msg = event.getMessage();
if (msg.startsWith("!time"))
{
int size = this.lines.size();
int index = this.random.nextInt(size - 1);
event.respond(this.lines.get(index));
}
}
| public void onMessage(MessageEvent<PircBotX> event) throws Exception
{
String msg = event.getMessage();
if (msg.startsWith("!rand"))
{
int size = this.lines.size();
int index = this.random.nextInt(size - 1);
event.respond(this.lines.get(index));
}
}
|
diff --git a/melati/src/main/java/org/melati/test/Regression.java b/melati/src/main/java/org/melati/test/Regression.java
index 48c2a464f..466126f24 100644
--- a/melati/src/main/java/org/melati/test/Regression.java
+++ b/melati/src/main/java/org/melati/test/Regression.java
@@ -1,30 +1,31 @@
package org.melati.test;
... | false | true | public static void main(String[] args) throws Exception {
if (Runtime.exec("destroydb " + dbName).waitFor() != 0 ||
Runtime.exec("createdb " + dbName).waitFor() != 0)
exit(1);
final Database database = new PoemDatabase();
database.connect(new org.melati.poem.postgresql.jdbc2.Driver(),
"jdb... | public static void main(String[] args) throws Exception {
// ttj remove to allow it to compile
// if (Runtime.exec("destroydb " + dbName).waitFor() != 0 ||
// Runtime.exec("createdb " + dbName).waitFor() != 0)
// exit(1);
final Database database = new PoemDatabase();
database.connect(new or... |
diff --git a/src/edu/jhu/thrax/hadoop/jobs/FeatureJobFactory.java b/src/edu/jhu/thrax/hadoop/jobs/FeatureJobFactory.java
index 581571c..0aa2a46 100644
--- a/src/edu/jhu/thrax/hadoop/jobs/FeatureJobFactory.java
+++ b/src/edu/jhu/thrax/hadoop/jobs/FeatureJobFactory.java
@@ -1,34 +1,34 @@
package edu.jhu.thrax.hadoop.job... | false | true | public static MapReduceFeature get(String name) {
if (name.equals("e2fphrase"))
return new SourcePhraseGivenTargetFeature();
else if (name.equals("f2ephrase"))
return new TargetPhraseGivenSourceFeature();
else if (name.equals("rarity"))
return new RarityPenaltyFeature();
else if (nam... | public static MapReduceFeature get(String name) {
if (name.equals("e2fphrase"))
return new SourcePhraseGivenTargetFeature();
else if (name.equals("f2ephrase"))
return new TargetPhraseGivenSourceFeature();
else if (name.equals("rarity"))
return new RarityPenaltyFeature();
else if (nam... |
diff --git a/assignment-tool/tool/src/java/org/sakaiproject/assignment/tool/AssignmentAction.java b/assignment-tool/tool/src/java/org/sakaiproject/assignment/tool/AssignmentAction.java
index 941f1166..d8f1638b 100644
--- a/assignment-tool/tool/src/java/org/sakaiproject/assignment/tool/AssignmentAction.java
+++ b/assign... | true | true | public int compare(Object o1, Object o2)
{
int result = -1;
/** *********** fo sorting assignments ****************** */
if (m_criteria.equals(SORTED_BY_TITLE))
{
// sorted by the assignment title
String s1 = ((Assignment) o1).getTitle();
String s2 = ((Assignment) o2).getTitle();
result... | public int compare(Object o1, Object o2)
{
int result = -1;
/** *********** fo sorting assignments ****************** */
if (m_criteria.equals(SORTED_BY_TITLE))
{
// sorted by the assignment title
String s1 = ((Assignment) o1).getTitle();
String s2 = ((Assignment) o2).getTitle();
result... |
diff --git a/online-local/src/net/myrrix/online/generation/InputFilesReader.java b/online-local/src/net/myrrix/online/generation/InputFilesReader.java
index 06479ce..836364f 100644
--- a/online-local/src/net/myrrix/online/generation/InputFilesReader.java
+++ b/online-local/src/net/myrrix/online/generation/InputFilesRea... | false | true | static void readInputFiles(FastByIDMap<FastIDSet> knownItemIDs,
FastByIDMap<FastByIDFloatMap> rbyRow,
FastByIDMap<FastByIDFloatMap> rbyColumn,
File inputDir) throws IOException {
FilenameFilter csvFilter = new PatternFilenameF... | static void readInputFiles(FastByIDMap<FastIDSet> knownItemIDs,
FastByIDMap<FastByIDFloatMap> rbyRow,
FastByIDMap<FastByIDFloatMap> rbyColumn,
File inputDir) throws IOException {
FilenameFilter csvFilter = new PatternFilenameF... |
diff --git a/org.iucn.sis.server.api/src/org/iucn/sis/server/api/persistance/hibernate/AbstractORMCriteria.java b/org.iucn.sis.server.api/src/org/iucn/sis/server/api/persistance/hibernate/AbstractORMCriteria.java
index 2b084ca3..fc138066 100644
--- a/org.iucn.sis.server.api/src/org/iucn/sis/server/api/persistance/hiber... | true | true | public AbstractORMCriteria(Criteria criteria) {
this._criteria = criteria;
}
| public AbstractORMCriteria(Criteria criteria) {
this._criteria = criteria;
setFlushMode(FlushMode.COMMIT);
}
|
diff --git a/src/impl/java/org/wyona/yanel/impl/resources/BasicXMLResource.java b/src/impl/java/org/wyona/yanel/impl/resources/BasicXMLResource.java
index 5cef0617e..2bface2fa 100644
--- a/src/impl/java/org/wyona/yanel/impl/resources/BasicXMLResource.java
+++ b/src/impl/java/org/wyona/yanel/impl/resources/BasicXMLResou... | false | true | private InputStream getTransformedInputStream(InputStream xmlInputStream, ConfigurableViewDescriptor viewDescriptor, StringWriter errorWriter) throws Exception {
// create reader:
XMLReader xmlReader = XMLReaderFactory.createXMLReader();
CatalogResolver catalogResolver = new Cata... | private InputStream getTransformedInputStream(InputStream xmlInputStream, ConfigurableViewDescriptor viewDescriptor, StringWriter errorWriter) throws Exception {
// create reader:
XMLReader xmlReader = XMLReaderFactory.createXMLReader();
CatalogResolver catalogResolver = new Cata... |
diff --git a/DataDemo/src/main/java/edu/unca/rbruce/DataDemo/DataDemoCommandExecutor.java b/DataDemo/src/main/java/edu/unca/rbruce/DataDemo/DataDemoCommandExecutor.java
index 03e08ad..34aaa87 100644
--- a/DataDemo/src/main/java/edu/unca/rbruce/DataDemo/DataDemoCommandExecutor.java
+++ b/DataDemo/src/main/java/edu/unca/... | true | true | public boolean onCommand(CommandSender sender, Command command,
String label, String[] args) {
if (!(sender instanceof Player)) {
sender.sendMessage(ChatColor.RED
+ "you must be logged on to use these commands");
return false;
} else if (command.getName().equalsIgnoreCase("god")
&& sender.hasPerm... | public boolean onCommand(CommandSender sender, Command command,
String label, String[] args) {
if (!(sender instanceof Player)) {
sender.sendMessage(ChatColor.RED
+ "you must be logged on to use these commands");
return false;
} else if (command.getName().equalsIgnoreCase("god")
&& sender.hasPerm... |
diff --git a/src/test/java/org/suite/RbTreeTest.java b/src/test/java/org/suite/RbTreeTest.java
index 919cf4cd2..fbfefa017 100644
--- a/src/test/java/org/suite/RbTreeTest.java
+++ b/src/test/java/org/suite/RbTreeTest.java
@@ -1,25 +1,25 @@
package org.suite;
import static org.junit.Assert.assertTrue;
import java.... | false | true | public void test() throws IOException {
RuleSet rs = RuleSetUtil.create();
SuiteUtil.importResource(rs, "auto.sl");
SuiteUtil.importResource(rs, "rb-tree.sl");
assertTrue(SuiteUtil.proveThis(rs, "" //
+ "rb-add-list (6, 7, 8, 9, 10, 1, 2, 3, 4, 5,) ()/.t \n" //
+ ", rb-get .t 8" //
+ ", rb-member ... | public void test() throws IOException {
RuleSet rs = RuleSetUtil.create();
SuiteUtil.importResource(rs, "auto.sl");
SuiteUtil.importResource(rs, "rbt.sl");
assertTrue(SuiteUtil.proveThis(rs, "" //
+ "rbt-add-list (6, 7, 8, 9, 10, 1, 2, 3, 4, 5,) ()/.t \n" //
+ ", rbt-get .t 8" //
+ ", rbt-member .... |
diff --git a/bndtools.diff/src/bndtools/diff/JarDiff.java b/bndtools.diff/src/bndtools/diff/JarDiff.java
index edf7b5f4..e9d8b5f8 100644
--- a/bndtools.diff/src/bndtools/diff/JarDiff.java
+++ b/bndtools.diff/src/bndtools/diff/JarDiff.java
@@ -1,1039 +1,1041 @@
/*********************************************************... | false | true | public void compare() throws Exception {
Manifest projectManifest = projectJar.getManifest();
Parameters projectExportedPackages = new Parameters(getAttribute(projectManifest, Constants.EXPORT_PACKAGE));
Parameters projectImportedPackages = new Parameters(getAttribute(projectManifest, Constants.IMPORT_PACKAGE))... | public void compare() throws Exception {
Manifest projectManifest = projectJar.getManifest();
Parameters projectExportedPackages = new Parameters(getAttribute(projectManifest, Constants.EXPORT_PACKAGE));
Parameters projectImportedPackages = new Parameters(getAttribute(projectManifest, Constants.IMPORT_PACKAGE))... |
diff --git a/biojava3-structure/src/main/java/org/biojava/bio/structure/DBRef.java b/biojava3-structure/src/main/java/org/biojava/bio/structure/DBRef.java
index 6e4fb04f3..2b7326e5a 100644
--- a/biojava3-structure/src/main/java/org/biojava/bio/structure/DBRef.java
+++ b/biojava3-structure/src/main/java/org/biojava/bio/... | true | true | public String toString(){
StringBuffer buf = new StringBuffer();
try {
Class c = Class.forName("org.biojava.bio.structure.DBRef");
Method[] methods = c.getMethods();
for (int i = 0; i < methods.length; i++) {
Method m = methods[i];
... | public String toString(){
StringBuffer buf = new StringBuffer();
try {
@SuppressWarnings("rawtypes")
Class c = Class.forName("org.biojava.bio.structure.DBRef");
Method[] methods = c.getMethods();
for (int i = 0; i < methods.length; i++) {
Me... |
diff --git a/jing/chem/Therfit.java b/jing/chem/Therfit.java
index 2df94503..ea6940d9 100644
--- a/jing/chem/Therfit.java
+++ b/jing/chem/Therfit.java
@@ -1,269 +1,269 @@
//!********************************************************************************
//!
//! RMG: Reaction Mechanism Generator ... | true | true | private static boolean callTherfit(Species species, String p_directory, String p_mode) {
if (p_directory == null || p_mode == null)
throw new NullPointerException();
String workingDirectory = System.getProperty("RMG.workingDirectory");
// write therfit input file
String result... | private static boolean callTherfit(Species species, String p_directory, String p_mode) {
if (p_directory == null || p_mode == null)
throw new NullPointerException();
String workingDirectory = System.getProperty("RMG.workingDirectory");
// write therfit input file
String result... |
diff --git a/uk.ac.diamond.scisoft.analysis/src/uk/ac/diamond/scisoft/analysis/io/DatLoader.java b/uk.ac.diamond.scisoft.analysis/src/uk/ac/diamond/scisoft/analysis/io/DatLoader.java
index aa7fd56f3..037be7358 100644
--- a/uk.ac.diamond.scisoft.analysis/src/uk/ac/diamond/scisoft/analysis/io/DatLoader.java
+++ b/uk.ac.d... | true | true | private String parseHeaders(final BufferedReader in, final String name, IMonitor mon) throws Exception {
String line = in.readLine();
if (line.trim().startsWith("&")) throw new Exception("Cannot load SRS files with DatLoader!");
metaData.clear();
header.clear();
vals.clear();
boolean foundHeaderLine ... | private String parseHeaders(final BufferedReader in, final String name, IMonitor mon) throws Exception {
String line = in.readLine();
if (line.trim().startsWith("&")) throw new Exception("Cannot load SRS files with DatLoader!");
metaData.clear();
header.clear();
vals.clear();
boolean foundHeaderLine ... |
diff --git a/web/src/main/java/org/eurekastreams/web/client/ui/common/pagedlist/PendingGroupRenderer.java b/web/src/main/java/org/eurekastreams/web/client/ui/common/pagedlist/PendingGroupRenderer.java
index 11d35bc99..0132e0054 100644
--- a/web/src/main/java/org/eurekastreams/web/client/ui/common/pagedlist/PendingGroup... | false | true | public Panel render(final DomainGroupModelView group)
{
final FlowPanel groupPanel = new FlowPanel();
groupPanel.addStyleName(StaticResourceBundle.INSTANCE.coreCss().group());
groupPanel.addStyleName(StaticResourceBundle.INSTANCE.coreCss().directoryItem());
groupPanel.addStyleNam... | public Panel render(final DomainGroupModelView group)
{
final FlowPanel groupPanel = new FlowPanel();
groupPanel.addStyleName(StaticResourceBundle.INSTANCE.coreCss().group());
groupPanel.addStyleName(StaticResourceBundle.INSTANCE.coreCss().directoryItem());
groupPanel.addStyleNam... |
diff --git a/apps/viewer/src/main/java/org/iplantc/phyloviewer/viewer/client/Phyloviewer.java b/apps/viewer/src/main/java/org/iplantc/phyloviewer/viewer/client/Phyloviewer.java
index ba44ad5a..16445064 100644
--- a/apps/viewer/src/main/java/org/iplantc/phyloviewer/viewer/client/Phyloviewer.java
+++ b/apps/viewer/src/ma... | false | true | public void onModuleLoad() {
widget = new TreeWidget(searchService,eventBus);
CompositeStyle hightlightStyle = new CompositeStyle("highlight", Defaults.DEFAULT_STYLE);
hightlightStyle.setNodeStyle(new NodeStyle("#C2C2F5", Double.NaN));
hightlightStyle.setLabelStyle(new LabelStyle(null));
hightlightStyle.s... | public void onModuleLoad() {
widget = new TreeWidget(searchService,eventBus);
CompositeStyle highlightStyle = new CompositeStyle("highlight", Defaults.DEFAULT_STYLE);
highlightStyle.setNodeStyle(new NodeStyle("#C2C2F5", Double.NaN));
highlightStyle.setLabelStyle(new LabelStyle(null));
highlightStyle.setGl... |
diff --git a/src/main/java/edu/mssm/pharm/maayanlab/Enrichr/Enrichr.java b/src/main/java/edu/mssm/pharm/maayanlab/Enrichr/Enrichr.java
index d1cd8c0..d1779b4 100644
--- a/src/main/java/edu/mssm/pharm/maayanlab/Enrichr/Enrichr.java
+++ b/src/main/java/edu/mssm/pharm/maayanlab/Enrichr/Enrichr.java
@@ -1,219 +1,220 @@
/*... | true | true | protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
HttpSession session = request.getSession();
// Redirect to post if reading from file
String dataset = request.getParameter("dataset");
if (dataset != null) {
String resourceUrl = RESOURCE... | protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
HttpSession session = request.getSession();
// Redirect to post if reading from file
String dataset = request.getParameter("dataset");
if (dataset != null) {
String resourceUrl = RESOURCE... |
diff --git a/src/org/pentaho/pms/schema/security/SecurityService.java b/src/org/pentaho/pms/schema/security/SecurityService.java
index f5f6634e..c5e55f6f 100644
--- a/src/org/pentaho/pms/schema/security/SecurityService.java
+++ b/src/org/pentaho/pms/schema/security/SecurityService.java
@@ -1,518 +1,518 @@
/*
* Copyr... | true | true | public Node getContentFromServer() throws PentahoMetadataException {
LogWriter log = LogWriter.getInstance();
String urlToUse = getURL();
String result = null;
int status = -1;
URL tempURL;
try {
// verify the URL is syntactically correct; we will use these pieces later in t... | public Node getContentFromServer() throws PentahoMetadataException {
LogWriter log = LogWriter.getInstance();
String urlToUse = getURL();
String result = null;
int status = -1;
URL tempURL;
try {
// verify the URL is syntactically correct; we will use these pieces later in t... |
diff --git a/update/org.eclipse.update.ui/src/org/eclipse/update/internal/ui/wizards/InstallWizard2.java b/update/org.eclipse.update.ui/src/org/eclipse/update/internal/ui/wizards/InstallWizard2.java
index 438e1a4c8..238b2e720 100644
--- a/update/org.eclipse.update.ui/src/org/eclipse/update/internal/ui/wizards/InstallWi... | false | true | public void done(final IJobChangeEvent event) {
// the job listener is triggered when the download job is done, and it proceeds
// with the actual install
if (event.getJob() == InstallWizard2.this.job && event.getResult() == Status.OK_STATUS) {
Platform.getJob... | public void done(final IJobChangeEvent event) {
// the job listener is triggered when the download job is done, and it proceeds
// with the actual install
if (event.getJob() == InstallWizard2.this.job && event.getResult() == Status.OK_STATUS) {
Platform.getJob... |
diff --git a/osmorc/src/org/osmorc/i18n/OsmorcBundle.java b/osmorc/src/org/osmorc/i18n/OsmorcBundle.java
index 80c70e9413..67c98208c9 100644
--- a/osmorc/src/org/osmorc/i18n/OsmorcBundle.java
+++ b/osmorc/src/org/osmorc/i18n/OsmorcBundle.java
@@ -1,152 +1,157 @@
/*
* Copyright (c) 2007-2009, Osmorc Development Team
... | false | true | public static String getInfo() {
if (infoHtml == null) {
StringBuffer buffer = new StringBuffer();
FileReader reader = null;
BufferedReader bReader = null;
try {
String infoFileName = getTranslation("info.file");
reader = new F... | public static String getInfo() {
if (infoHtml == null) {
StringBuilder builder = new StringBuilder();
InputStream stream = null;
InputStreamReader streamReader = null;
BufferedReader bReader = null;
try {
String infoFileName = get... |
diff --git a/src/edu/jas/poly/GenPolynomialTokenizer.java b/src/edu/jas/poly/GenPolynomialTokenizer.java
index 05478291..9c15e5d6 100644
--- a/src/edu/jas/poly/GenPolynomialTokenizer.java
+++ b/src/edu/jas/poly/GenPolynomialTokenizer.java
@@ -1,1497 +1,1497 @@
/*
* $Id$
*/
package edu.jas.poly;
import java... | false | true | public GenPolynomial nextPolynomial() throws IOException {
if (debug) {
logger.debug("torder = " + tord);
}
GenPolynomial a = pfac.getZERO();
GenPolynomial a1 = pfac.getONE();
ExpVector leer = pfac.evzero;
if (debug) {
logger.debug("a = " + a)... | public GenPolynomial nextPolynomial() throws IOException {
if (debug) {
logger.debug("torder = " + tord);
}
GenPolynomial a = pfac.getZERO();
GenPolynomial a1 = pfac.getONE();
ExpVector leer = pfac.evzero;
if (debug) {
logger.debug("a = " + a)... |
diff --git a/services/src/main/java/edu/unc/lib/dl/cdr/services/techmd/TechnicalMetadataEnhancement.java b/services/src/main/java/edu/unc/lib/dl/cdr/services/techmd/TechnicalMetadataEnhancement.java
index 024a4c159..c550bf03a 100644
--- a/services/src/main/java/edu/unc/lib/dl/cdr/services/techmd/TechnicalMetadataEnhanc... | false | true | public Element call() throws EnhancementException {
Element result = null;
// check to see if the service is still active
if (!this.service.isActive()) {
LOG.debug(this.getClass().getName() + " call method exited, service is not active.");
return null;
}
// get sourceData data stream IDs
List<String... | public Element call() throws EnhancementException {
Element result = null;
// check to see if the service is still active
if (!this.service.isActive()) {
LOG.debug(this.getClass().getName() + " call method exited, service is not active.");
return null;
}
// get sourceData data stream IDs
List<String... |
diff --git a/src/org/omegat/gui/glossary/GlossaryReaderTBX.java b/src/org/omegat/gui/glossary/GlossaryReaderTBX.java
index e91ec75e..ca4970c7 100644
--- a/src/org/omegat/gui/glossary/GlossaryReaderTBX.java
+++ b/src/org/omegat/gui/glossary/GlossaryReaderTBX.java
@@ -1,161 +1,165 @@
/***********************************... | false | true | public static List<GlossaryEntry> read(final File file) throws Exception {
Martif tbx = load(file);
String sLang = Core.getProject().getProjectProperties()
.getSourceLanguage().getLanguageCode();
String tLang = Core.getProject().getProjectProperties()
.getTa... | public static List<GlossaryEntry> read(final File file) throws Exception {
Martif tbx = load(file);
String sLang = Core.getProject().getProjectProperties()
.getSourceLanguage().getLanguageCode();
String tLang = Core.getProject().getProjectProperties()
.getTa... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.