Datasets:

diff
stringlengths
262
553k
is_single_chunk
bool
2 classes
is_single_function
bool
1 class
buggy_function
stringlengths
20
391k
fixed_function
stringlengths
0
392k
diff --git a/src/autosaveworld/threads/backup/script/ScriptBackup.java b/src/autosaveworld/threads/backup/script/ScriptBackup.java index f42c45e..7a18560 100644 --- a/src/autosaveworld/threads/backup/script/ScriptBackup.java +++ b/src/autosaveworld/threads/backup/script/ScriptBackup.java @@ -1,61 +1,61 @@ /** * This...
true
true
public void performBackup() { for (String scriptpath : config.scriptbackupscriptpaths) { File scriptfile = new File(scriptpath); if (!scriptpath.isEmpty() && scriptfile.exists()) { plugin.debug("Executing script "+ scriptfile.getAbsolutePath()); final Process p; ProcessBuilder pb = new Proces...
public void performBackup() { for (String scriptpath : config.scriptbackupscriptpaths) { File scriptfile = new File(scriptpath); if (!scriptpath.isEmpty() && scriptfile.exists()) { plugin.debug("Executing script "+ scriptfile.getAbsolutePath()); final Process p; ProcessBuilder pb = new Proces...
diff --git a/core/src/visad/trunk/data/amanda/F2000Form.java b/core/src/visad/trunk/data/amanda/F2000Form.java index 5318ead98..7ad014eca 100644 --- a/core/src/visad/trunk/data/amanda/F2000Form.java +++ b/core/src/visad/trunk/data/amanda/F2000Form.java @@ -1,816 +1,818 @@ // // F2000Form.java // /* VisAD syste...
false
true
private synchronized DataImpl open(InputStream is) throws BadFormException, VisADException, IOException { // construct MathTypes if (x == null) { // right handed coordinate system x = RealType.XAxis; // positive eastward (along 0 longitude?) y = RealType.YAxis; // positive along -9...
private synchronized DataImpl open(InputStream is) throws BadFormException, VisADException, IOException { // construct MathTypes if (x == null) { // right handed coordinate system x = RealType.XAxis; // positive eastward (along 0 longitude?) y = RealType.YAxis; // positive along -9...
diff --git a/src/com/redhat/ceylon/compiler/java/codegen/Naming.java b/src/com/redhat/ceylon/compiler/java/codegen/Naming.java index 21d16f855..1d239cbb6 100644 --- a/src/com/redhat/ceylon/compiler/java/codegen/Naming.java +++ b/src/com/redhat/ceylon/compiler/java/codegen/Naming.java @@ -1,2127 +1,2131 @@ /* * Copyr...
false
true
private void appendDeclName2(final TypeDeclaration decl, EnumSet<DeclNameFlag> flags, DeclName helper, Scope scope, final boolean last) { if (scope instanceof Class || scope instanceof TypeAlias) { TypeDeclaration klass = (TypeDeclaration)scope; helper.append(klass.getName()); ...
private void appendDeclName2(final TypeDeclaration decl, EnumSet<DeclNameFlag> flags, DeclName helper, Scope scope, final boolean last) { if (scope instanceof Class || scope instanceof TypeAlias) { TypeDeclaration klass = (TypeDeclaration)scope; helper.append(klass.getName()); ...
diff --git a/src/statalign/model/ext/ModelExtManager.java b/src/statalign/model/ext/ModelExtManager.java index 6fada2d..1470e1e 100644 --- a/src/statalign/model/ext/ModelExtManager.java +++ b/src/statalign/model/ext/ModelExtManager.java @@ -1,402 +1,403 @@ package statalign.model.ext; import java.io.File; import j...
false
true
public void init(ArrayList<String> args) { pluginList = Utils.findPlugins(ModelExtension.class); for(ModelExtension plugin : pluginList) { plugin.setManager(this); } if (args != null) { ARG: for(int i = 0 ; i < args.size() ; i++) { String [] pluginPair = args.get(i).split("\\[",2); for(ModelExten...
public void init(ArrayList<String> args) { pluginList = Utils.findPlugins(ModelExtension.class); for(ModelExtension plugin : pluginList) { plugin.setManager(this); } if (args != null) { ARG: for(int i = 0 ; i < args.size() ; ) { String [] pluginPair = args.get(i).split("\\[",2); for(ModelExtensio...
diff --git a/src/main/java/net/ab0oo/aprs/parser/MessagePacket.java b/src/main/java/net/ab0oo/aprs/parser/MessagePacket.java index a3b014b..3c0fb4e 100644 --- a/src/main/java/net/ab0oo/aprs/parser/MessagePacket.java +++ b/src/main/java/net/ab0oo/aprs/parser/MessagePacket.java @@ -1,161 +1,163 @@ /* * AVRS - http://a...
false
true
public MessagePacket( byte[] bodyBytes, String destCall ) { super(bodyBytes); String message = new String(bodyBytes); if (destCall.toUpperCase().equals("BEACON")) { this.messageNumber=""; this.messageBody = message.substring(11); this.targetCallsign = "BEACON"; ...
public MessagePacket( byte[] bodyBytes, String destCall ) { super(bodyBytes); String message = new String(bodyBytes); if (destCall.toUpperCase().equals("BEACON")) { this.messageNumber=""; this.messageBody = message.substring(11); this.targetCallsign = "BEACON"; ...
diff --git a/fog.routing.hrm/src/de/tuilmenau/ics/fog/routing/hierarchical/coordination/CoordinatorCEPChannel.java b/fog.routing.hrm/src/de/tuilmenau/ics/fog/routing/hierarchical/coordination/CoordinatorCEPChannel.java index 076d157c..62efcf5d 100644 --- a/fog.routing.hrm/src/de/tuilmenau/ics/fog/routing/hierarchical/c...
false
true
public boolean receive(Serializable pData) throws NetworkException { boolean CHANNEL_SIGNALING_DEBUGGING = true; Node tNode = getHRMController().getNode(); HierarchicalRoutingService tHRS = getHRMController().getHRS(); /* * Invalid data */ if(pData == null) { if (CHANNEL_SIGNALING_DEBUGGING) ...
public boolean receive(Serializable pData) throws NetworkException { boolean CHANNEL_SIGNALING_DEBUGGING = true; Node tNode = getHRMController().getNode(); HierarchicalRoutingService tHRS = getHRMController().getHRS(); /* * Invalid data */ if(pData == null) { if (CHANNEL_SIGNALING_DEBUGGING) ...
diff --git a/core-ws/src/test/java/ee/ttu/ecomm/core/webservice/soap/ContractCreateDTOTest.java b/core-ws/src/test/java/ee/ttu/ecomm/core/webservice/soap/ContractCreateDTOTest.java index 10f330d..a1f2513 100644 --- a/core-ws/src/test/java/ee/ttu/ecomm/core/webservice/soap/ContractCreateDTOTest.java +++ b/core-ws/src/te...
false
true
public void testToContract() throws Exception { ContractCreateDTO contractDTO = new ContractCreateDTO(); contractDTO.setId(100L); contractDTO.setName("baz"); contractDTO.setDescription("bar"); contractDTO.setValidFrom(new Date()); contractDTO.setValidTo(new Date()); ...
public void testToContract() throws Exception { ContractCreateDTO contractDTO = new ContractCreateDTO(); contractDTO.setName("baz"); contractDTO.setDescription("bar"); contractDTO.setValidFrom(new Date()); contractDTO.setValueAmount(BigDecimal.TEN); contractDTO.setCus...
diff --git a/src/com/jverrecchia/initializr/builder/files/TemplateFile.java b/src/com/jverrecchia/initializr/builder/files/TemplateFile.java index 20b0a1a..1dc3c11 100644 --- a/src/com/jverrecchia/initializr/builder/files/TemplateFile.java +++ b/src/com/jverrecchia/initializr/builder/files/TemplateFile.java @@ -1,99 +1...
true
true
public void readTemplateFile(Mode mode){ try { this.setContent(Utils.readFileAsString(templatePath)); String str; BufferedReader reader = new BufferedReader(new StringReader(this.getContent())); String foundTag = null; while ((str = reader.readLine()) != null) { String byteStr = str.toString...
public void readTemplateFile(Mode mode){ try { this.setContent(Utils.readFileAsString(templatePath)); String str; BufferedReader reader = new BufferedReader(new StringReader(this.getContent())); String foundTag = null; while ((str = reader.readLine()) != null) { String byteStr = str.toString...
diff --git a/nuxeo-platform-ui-web/src/main/java/org/nuxeo/ecm/platform/ui/web/rest/services/URLPolicyServiceImpl.java b/nuxeo-platform-ui-web/src/main/java/org/nuxeo/ecm/platform/ui/web/rest/services/URLPolicyServiceImpl.java index 9a52f7e5..83a5304d 100644 --- a/nuxeo-platform-ui-web/src/main/java/org/nuxeo/ecm/platf...
true
true
public void appendParametersToRequest(FacesContext facesContext, String pattern) { // try to get doc view from custom mapping DocumentView docView = null; ExpressionFactory ef = facesContext.getApplication().getExpressionFactory(); ELContext context = facesContext.getELCo...
public void appendParametersToRequest(FacesContext facesContext, String pattern) { // try to get doc view from custom mapping DocumentView docView = null; ExpressionFactory ef = facesContext.getApplication().getExpressionFactory(); ELContext context = facesContext.getELCo...
diff --git a/src/main/java/com/bizo/asperatus/jmx/MetricRunnable.java b/src/main/java/com/bizo/asperatus/jmx/MetricRunnable.java index f5911cb..24ceeff 100644 --- a/src/main/java/com/bizo/asperatus/jmx/MetricRunnable.java +++ b/src/main/java/com/bizo/asperatus/jmx/MetricRunnable.java @@ -1,93 +1,95 @@ package com.bizo...
true
true
public void run() { try { final Object result = mBeanServer.getAttribute(jmxName, config.getAttribute()); if (config.getCompositeDataKey() != null) { if (result instanceof CompositeData) { final CompositeData cData = (CompositeData) result; final Object compositeDataValue =...
public void run() { try { final Object result = mBeanServer.getAttribute(jmxName, config.getAttribute()); if (config.getCompositeDataKey() != null) { if (result instanceof CompositeData) { final CompositeData cData = (CompositeData) result; final Object compositeDataValue =...
diff --git a/hot-deploy/amazon/src/org/opentaps/amazon/product/AmazonProductServices.java b/hot-deploy/amazon/src/org/opentaps/amazon/product/AmazonProductServices.java index fa67b18b0..6af9a3439 100644 --- a/hot-deploy/amazon/src/org/opentaps/amazon/product/AmazonProductServices.java +++ b/hot-deploy/amazon/src/org/op...
false
true
public static Map<String, Object> publishProductsToAmazon(DispatchContext dctx, Map<String, Object> context) { GenericDelegator delegator = dctx.getDelegator(); LocalDispatcher dispatcher = dctx.getDispatcher(); Locale locale = (Locale) context.get("locale"); GenericValue userLogin =...
public static Map<String, Object> publishProductsToAmazon(DispatchContext dctx, Map<String, Object> context) { GenericDelegator delegator = dctx.getDelegator(); LocalDispatcher dispatcher = dctx.getDispatcher(); Locale locale = (Locale) context.get("locale"); GenericValue userLogin =...
diff --git a/contrib/MiscMsg.java b/contrib/MiscMsg.java index e982ff7..b6e41b3 100644 --- a/contrib/MiscMsg.java +++ b/contrib/MiscMsg.java @@ -1,598 +1,599 @@ import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.io.UnsupportedEncodingException; import java.net....
true
true
public String commandTarot(final String mes) { // http://en.wikipedia.org/wiki/Major_Arcana return randomReply(new String[] { "The Fool", "The Magician", "The High Priestess", "The Empress", "The Emperor", "The Hierophant", "The Pope", "The Lovers", "The Chariot", "Strength", "The Hermit", "Wheel of Fortu...
public String commandTarot(final String mes) { // http://en.wikipedia.org/wiki/Major_Arcana return randomReply(new String[] { "The Fool", "The Magician", "The High Priestess", "The Empress", "The Emperor", "The Hierophant", "The Pope", "The Lovers", "The Chariot", "Strength", "The Hermit", "Wheel of Fortu...
diff --git a/modules/components/jaggery-scxml-executors/src/main/java/org/wso2/jaggery/scxml/aspects/JaggeryTravellingPermissionLifeCycle.java b/modules/components/jaggery-scxml-executors/src/main/java/org/wso2/jaggery/scxml/aspects/JaggeryTravellingPermissionLifeCycle.java index e2ac16f3..9e61f6e0 100644 --- a/modules...
true
true
public void invoke(RequestContext requestContext, String action,Map<String,String> parameterMap) throws RegistryException { try{ boolean preserveOldResource = !Boolean.toString(false).equals(parameterMap.remove( "preserveOriginal")); Resource resource = requestCon...
public void invoke(RequestContext requestContext, String action,Map<String,String> parameterMap) throws RegistryException { try{ boolean preserveOldResource = !Boolean.toString(false).equals(parameterMap.remove( "preserveOriginal")); Resource resource = requestCon...
diff --git a/filter2-impl/src/main/java/org/cytoscape/filter/internal/prefuse/JRangeSlider.java b/filter2-impl/src/main/java/org/cytoscape/filter/internal/prefuse/JRangeSlider.java index 195acbed5..98e9ec23c 100644 --- a/filter2-impl/src/main/java/org/cytoscape/filter/internal/prefuse/JRangeSlider.java +++ b/filter2-im...
false
true
public void paintComponent(Graphics g) { Rectangle bounds = getBounds(); int width = (int) bounds.getWidth() - 1; int height = (int) bounds.getHeight() - 1; int min = toScreen(getLowValue()); int max = toScreen(getHighValue()); // Paint the full slider if the slider is marked as empty if (empty) { i...
public void paintComponent(Graphics g) { Rectangle bounds = getBounds(); int width = (int) bounds.getWidth() - 1; int height = (int) bounds.getHeight() - 1; int min = toScreen(getLowValue()); int max = toScreen(getHighValue()); // Paint the full slider if the slider is marked as empty if (empty) { i...
diff --git a/OsmAnd/src/net/osmand/plus/views/MapInfoLayer.java b/OsmAnd/src/net/osmand/plus/views/MapInfoLayer.java index 46cdf07d..8f1b2472 100644 --- a/OsmAnd/src/net/osmand/plus/views/MapInfoLayer.java +++ b/OsmAnd/src/net/osmand/plus/views/MapInfoLayer.java @@ -1,822 +1,822 @@ package net.osmand.plus.views; ...
true
true
public void openViewConfigureDialog() { final OsmandSettings settings = view.getSettings(); final ArrayList<Object> list = new ArrayList<Object>(); String appMode = settings.getApplicationMode().toHumanString(view.getContext()); list.add(map.getString(R.string.map_widget_reset) + " [" + appMode +"] "); l...
public void openViewConfigureDialog() { final OsmandSettings settings = view.getSettings(); final ArrayList<Object> list = new ArrayList<Object>(); String appMode = settings.getApplicationMode().toHumanString(view.getContext()); list.add(map.getString(R.string.map_widget_reset) + " [" + appMode +"] "); l...
diff --git a/agile-apps/agile-app-milestones/src/main/java/org/headsupdev/agile/app/milestones/WorkRemainingTable.java b/agile-apps/agile-app-milestones/src/main/java/org/headsupdev/agile/app/milestones/WorkRemainingTable.java index 89127bcc..54e20064 100644 --- a/agile-apps/agile-app-milestones/src/main/java/org/heads...
true
true
protected WorkRemainingTable( String id, final Project project, final Set<Issue> issueSet ) { super( id ); final boolean burndown = Boolean.parseBoolean( project.getConfigurationValue( StoredProject.CONFIGURATION_TIMETRACKING_BURNDOWN) ); List<User> users = new LinkedLi...
protected WorkRemainingTable( String id, final Project project, final Set<Issue> issueSet ) { super( id ); final boolean burndown = Boolean.parseBoolean( project.getConfigurationValue( StoredProject.CONFIGURATION_TIMETRACKING_BURNDOWN) ); List<User> users = new LinkedLi...
diff --git a/de.bmw.carit.jnario/src/de/bmw/carit/jnario/naming/JnarioQualifiedNameProvider.java b/de.bmw.carit.jnario/src/de/bmw/carit/jnario/naming/JnarioQualifiedNameProvider.java index 1b84eca8f..477d99672 100644 --- a/de.bmw.carit.jnario/src/de/bmw/carit/jnario/naming/JnarioQualifiedNameProvider.java +++ b/de.bmw....
true
true
public QualifiedName getFullyQualifiedName(EObject obj) { if (obj instanceof Step) { String name = ((Step)obj).getName(); if(name == null){ return null; } return QualifiedName.create(name.trim()); } return super.getFullyQualifiedName(obj); }
public QualifiedName getFullyQualifiedName(EObject obj) { if (obj instanceof Step) { String name = ((Step)obj).getName(); if(name == null){ return null; } return QualifiedName.create(name); } return super.getFullyQualifiedName(obj); }
diff --git a/jetty-http/src/main/java/org/eclipse/jetty/http/AbstractGenerator.java b/jetty-http/src/main/java/org/eclipse/jetty/http/AbstractGenerator.java index 15d680df..7d42a27d 100644 --- a/jetty-http/src/main/java/org/eclipse/jetty/http/AbstractGenerator.java +++ b/jetty-http/src/main/java/org/eclipse/jetty/http/...
true
true
public void reset(boolean returnBuffers) { _state = STATE_HEADER; _status = 0; _version = HttpVersions.HTTP_1_1_ORDINAL; _reason = null; _last = false; _head = false; _noContent=false; _persistent = true; _contentWritten = 0; _conte...
public void reset(boolean returnBuffers) { _state = STATE_HEADER; _status = 0; _version = HttpVersions.HTTP_1_1_ORDINAL; _reason = null; _last = false; _head = false; _noContent=false; _persistent = null; _contentWritten = 0; _conte...
diff --git a/src/week6/ServerListener.java b/src/week6/ServerListener.java index 1dfa6de..4932fb4 100644 --- a/src/week6/ServerListener.java +++ b/src/week6/ServerListener.java @@ -1,64 +1,64 @@ /* * To change this template, choose Tools | Templates * and open the template in the editor. */ package week6; im...
false
true
public void run() { MulticastMessage msg; try{ while(run){ if((msg = queue.get()) != null){ if(msg instanceof MulticastMessagePayload){ ClientEvent ce = (ClientEvent)((MulticastMessagePayload)msg).getPayload(); System.out.println(queue.getAddress()+" - Got message: "+ce+" from "+ msg....
public void run() { MulticastMessage msg; try{ while(run){ if((msg = queue.get()) != null){ if(msg instanceof MulticastMessagePayload){ ClientEvent ce = (ClientEvent)((MulticastMessagePayload)msg).getPayload(); System.out.println(queue.getAddress()+" - Got message: "+ce+" from "+ msg....
diff --git a/web/src/main/java/org/fao/geonet/services/feedback/AddLimitations.java b/web/src/main/java/org/fao/geonet/services/feedback/AddLimitations.java index 49b0759b8a..1ef84b7846 100644 --- a/web/src/main/java/org/fao/geonet/services/feedback/AddLimitations.java +++ b/web/src/main/java/org/fao/geonet/services/fe...
true
true
public Element exec(Element params, final ServiceContext context) throws Exception { GeonetContext gc = (GeonetContext) context.getHandlerContext(Geonet.CONTEXT_NAME); DataManager dm = gc.getDataManager(); Dbms dbms = (Dbms) context.getResourceManager().open (Geonet.Res.MAIN_DB); String id = Utils.g...
public Element exec(Element params, final ServiceContext context) throws Exception { GeonetContext gc = (GeonetContext) context.getHandlerContext(Geonet.CONTEXT_NAME); DataManager dm = gc.getDataManager(); Dbms dbms = (Dbms) context.getResourceManager().open (Geonet.Res.MAIN_DB); String id = Utils.g...
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 a2c87a587..19c68eb38 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/main/java/hudson/scm/cvstagging/CvsTagActionWorker.java b/src/main/java/hudson/scm/cvstagging/CvsTagActionWorker.java index cf624f1..6708b3b 100644 --- a/src/main/java/hudson/scm/cvstagging/CvsTagActionWorker.java +++ b/src/main/java/hudson/scm/cvstagging/CvsTagActionWorker.java @@ -1,115 +1,115 @@ pa...
true
true
public void perform(final TaskListener listener) throws IOException, InterruptedException, CommandException, AuthenticationException { for (CvsRepository repository : revisionState.getModuleFiles().keySet()) { boolean oneIterationComplete = false; Map<String, List<String>> versionFil...
public void perform(final TaskListener listener) throws IOException, InterruptedException, CommandException, AuthenticationException { for (CvsRepository repository : revisionState.getModuleFiles().keySet()) { boolean oneIterationComplete = false; Map<String, List<String>> versionFil...
diff --git a/src/main/java/co/mcme/thegaffer/listeners/ProtectionListener.java b/src/main/java/co/mcme/thegaffer/listeners/ProtectionListener.java index 6ade4d4..6f55749 100644 --- a/src/main/java/co/mcme/thegaffer/listeners/ProtectionListener.java +++ b/src/main/java/co/mcme/thegaffer/listeners/ProtectionListener.java...
true
true
public void onHangingBreak(HangingBreakByEntityEvent event) { if (event.getEntity() instanceof Player) { Player player = (Player) event.getRemover(); if (player.hasPermission(PermissionsUtil.getIgnoreWorldProtection())) { event.setCancelled(false); } else ...
public void onHangingBreak(HangingBreakByEntityEvent event) { if (event.getRemover() instanceof Player) { Player player = (Player) event.getRemover(); if (player.hasPermission(PermissionsUtil.getIgnoreWorldProtection())) { event.setCancelled(false); } else...
diff --git a/src/main/java/com/tikal/jenkins/plugins/reactor/ReactorBuilder.java b/src/main/java/com/tikal/jenkins/plugins/reactor/ReactorBuilder.java index 31602a1..0def9ff 100644 --- a/src/main/java/com/tikal/jenkins/plugins/reactor/ReactorBuilder.java +++ b/src/main/java/com/tikal/jenkins/plugins/reactor/ReactorBuil...
true
true
public boolean perform(AbstractBuild<?, ?> build, Launcher launcher, BuildListener listener) throws InterruptedException, IOException { Map<AbstractProject, ReactorSubProjectConfig> projects = getSubJobs(); List<Future<Build>> futuresList = new ArrayList<Future<Build>>(); for (AbstractProject project : project...
public boolean perform(AbstractBuild<?, ?> build, Launcher launcher, BuildListener listener) throws InterruptedException, IOException { Map<AbstractProject, ReactorSubProjectConfig> projects = getSubJobs(); List<Future<Build>> futuresList = new ArrayList<Future<Build>>(); for (AbstractProject project : project...
diff --git a/src/java/org/smoothbuild/Main.java b/src/java/org/smoothbuild/Main.java index b623a9f0..66fb2c19 100644 --- a/src/java/org/smoothbuild/Main.java +++ b/src/java/org/smoothbuild/Main.java @@ -1,22 +1,22 @@ package org.smoothbuild; import io.airlift.command.Cli; import io.airlift.command.Cli.CliBuilder; ...
false
true
public static void main(String[] args) { CliBuilder<Runnable> builder = Cli.<Runnable> builder("smooth"); builder.withDescription("powerful build tool with simple language"); builder.withDefaultCommand(Help.class); builder.withCommand(Help.class); builder.withCommand(BuildCommand.class); build...
public static void main(String[] args) { CliBuilder<Runnable> builder = Cli.<Runnable> builder("smooth"); builder.withDescription("powerful build tool with simple language"); builder.withDefaultCommand(Help.class); builder.withCommand(Help.class); builder.withCommand(BuildCommand.class); build...
diff --git a/Examples/CachedGeocodeExample/src/geocodeexample/HelloMIDlet.java b/Examples/CachedGeocodeExample/src/geocodeexample/HelloMIDlet.java index 1c1be93e..bc6c947f 100644 --- a/Examples/CachedGeocodeExample/src/geocodeexample/HelloMIDlet.java +++ b/Examples/CachedGeocodeExample/src/geocodeexample/HelloMIDlet.ja...
true
true
public void commandAction(Command command, Displayable displayable) {//GEN-END:|7-commandAction|0|7-preCommandAction // write pre-action user code here if (displayable == form) {//GEN-BEGIN:|7-commandAction|1|19-preAction if (command == exitCommand) {//GEN-END:|7-commandAction|1|19-preAc...
public void commandAction(Command command, Displayable displayable) {//GEN-END:|7-commandAction|0|7-preCommandAction // write pre-action user code here if (displayable == form) {//GEN-BEGIN:|7-commandAction|1|19-preAction if (command == exitCommand) {//GEN-END:|7-commandAction|1|19-preAc...
diff --git a/JavaSource/org/unitime/timetable/gwt/server/CourseLoader.java b/JavaSource/org/unitime/timetable/gwt/server/CourseLoader.java index 6a187aad..434075b5 100644 --- a/JavaSource/org/unitime/timetable/gwt/server/CourseLoader.java +++ b/JavaSource/org/unitime/timetable/gwt/server/CourseLoader.java @@ -1,613 +1,...
true
true
public Student loadStudent(org.unitime.timetable.model.Student s) { Student student = new Student(s.getUniqueId()); iStudentTable.put(s.getUniqueId(), student); if ("true".equals(ApplicationProperties.getProperty("unitime.enrollment.enabled", "true"))) { TreeSet<CourseDemand> ...
public Student loadStudent(org.unitime.timetable.model.Student s) { Student student = new Student(s.getUniqueId()); iStudentTable.put(s.getUniqueId(), student); if ("true".equals(ApplicationProperties.getProperty("unitime.enrollment.enabled", "true"))) { TreeSet<CourseDemand> ...
diff --git a/src/main/java/edu/hsbremen/animvisu/util/VectorUtil.java b/src/main/java/edu/hsbremen/animvisu/util/VectorUtil.java index 8f80610..f92991c 100644 --- a/src/main/java/edu/hsbremen/animvisu/util/VectorUtil.java +++ b/src/main/java/edu/hsbremen/animvisu/util/VectorUtil.java @@ -1,19 +1,19 @@ package edu.hsbr...
true
true
public static Vector3f createNormal(Vector3f p1, Vector3f p2, Vector3f p3) { Vector3f temp1 = new Vector3f(); Vector3f temp2 = new Vector3f(); Vector3f temp3 = new Vector3f(); Vector3f.sub(p1, p2, temp1); Vector3f.sub(p1, p3, temp2); Vector3f.cross(temp1, temp2, temp3); temp3.normalise(); return tem...
public static Vector3f createNormal(Vector3f p1, Vector3f p2, Vector3f p3) { Vector3f temp1 = new Vector3f(); Vector3f temp2 = new Vector3f(); Vector3f temp3 = new Vector3f(); Vector3f.sub(p2, p1, temp1); Vector3f.sub(p3, p1, temp2); Vector3f.cross(temp1, temp2, temp3); temp3.normalise(); return tem...
diff --git a/PaintroidTest/src/org/catrobat/paintroid/test/integration/tools/FillToolIntegrationTest.java b/PaintroidTest/src/org/catrobat/paintroid/test/integration/tools/FillToolIntegrationTest.java index 868caf2f..900ad7fd 100644 --- a/PaintroidTest/src/org/catrobat/paintroid/test/integration/tools/FillToolIntegrati...
true
true
public void testBitmapIsFilled() throws InterruptedException { assertTrue("Waiting for DrawingSurface", mSolo.waitForView(DrawingSurfaceImplementation.class, 1, TIMEOUT)); selectTool(ToolType.FILL); Tool mFillTool = mStatusbar.getCurrentTool(); int colorToFill = mStatusbar.getCurrentTool().getDrawPaint().get...
public void testBitmapIsFilled() throws InterruptedException { assertTrue("Waiting for DrawingSurface", mSolo.waitForView(DrawingSurfaceImplementation.class, 1, TIMEOUT)); selectTool(ToolType.FILL); Tool mFillTool = mStatusbar.getCurrentTool(); int colorToFill = mStatusbar.getCurrentTool().getDrawPaint().get...
diff --git a/src/webapp/java/jamm/webapp/ChangePasswordAction.java b/src/webapp/java/jamm/webapp/ChangePasswordAction.java index 0bf733c..bdd78fc 100644 --- a/src/webapp/java/jamm/webapp/ChangePasswordAction.java +++ b/src/webapp/java/jamm/webapp/ChangePasswordAction.java @@ -1,49 +1,49 @@ package jamm.webapp; impo...
true
true
public ActionForward execute(ActionMapping mapping, ActionForm actionForm, HttpServletRequest request, HttpServletResponse response) throws Exception { ChangePasswordForm form = (ChangePasswordForm...
public ActionForward execute(ActionMapping mapping, ActionForm actionForm, HttpServletRequest request, HttpServletResponse response) throws Exception { ChangePasswordForm form = (ChangePasswordForm...
diff --git a/core/src/visad/trunk/DisplayImpl.java b/core/src/visad/trunk/DisplayImpl.java index aeec5dfe0..758800118 100644 --- a/core/src/visad/trunk/DisplayImpl.java +++ b/core/src/visad/trunk/DisplayImpl.java @@ -1,1095 +1,1101 @@ // // DisplayImpl.java // /* VisAD system for interactive analysis and visua...
true
true
public void doAction() throws VisADException, RemoteException { if (mapslock == null) return; // WLH 4 Nov 98 synchronized (mapslock) { if (RendererVector == null || displayRenderer == null) { return; } displayRenderer.setWaitFlag(true); // set tickFlag-s in changed Control-s ...
public void doAction() throws VisADException, RemoteException { if (mapslock == null) return; // WLH 4 Nov 98 synchronized (mapslock) { if (RendererVector == null || displayRenderer == null) { return; } displayRenderer.setWaitFlag(true); // set tickFlag-s in changed Control-s ...
diff --git a/testControlBoard/src/test/work/testcontrolborad/RelayBoradService.java b/testControlBoard/src/test/work/testcontrolborad/RelayBoradService.java index 71143a9..4a1968a 100644 --- a/testControlBoard/src/test/work/testcontrolborad/RelayBoradService.java +++ b/testControlBoard/src/test/work/testcontrolborad/Re...
true
true
public void onCreate() { // TODO Auto-generated method stub super.onCreate(); // Start up the thread running the service. Note that we create a // separate thread because the service normally runs in the process's // main thread, which we don't want to block. We also make it // background priority so CPU-i...
public void onCreate() { // TODO Auto-generated method stub super.onCreate(); // Start up the thread running the service. Note that we create a // separate thread because the service normally runs in the process's // main thread, which we don't want to block. We also make it // background priority so CPU-i...
diff --git a/src/paulscode/android/mupen64plusae/CoreInterface.java b/src/paulscode/android/mupen64plusae/CoreInterface.java index 1fb407d8..cfd65414 100644 --- a/src/paulscode/android/mupen64plusae/CoreInterface.java +++ b/src/paulscode/android/mupen64plusae/CoreInterface.java @@ -1,450 +1,450 @@ /** * Mupen64PlusA...
true
true
private static void syncConfigFiles( UserPrefs user, Paths paths ) { //@formatter:off // Core and GLES2RICE config file ConfigFile mupen64plus_cfg = new ConfigFile( paths.mupen64plus_cfg ); mupen64plus_cfg.put( "Core", "Version", "1.00" ); mupen64plus_cfg.put( "C...
private static void syncConfigFiles( UserPrefs user, Paths paths ) { //@formatter:off // Core and GLES2RICE config file ConfigFile mupen64plus_cfg = new ConfigFile( paths.mupen64plus_cfg ); mupen64plus_cfg.put( "Core", "Version", "1.00" ); mupen64plus_cfg.put( "C...
diff --git a/src/java/com/splunk/shuttl/server/mbeans/rest/FlushEndpoint.java b/src/java/com/splunk/shuttl/server/mbeans/rest/FlushEndpoint.java index d61f4196..de7674d8 100644 --- a/src/java/com/splunk/shuttl/server/mbeans/rest/FlushEndpoint.java +++ b/src/java/com/splunk/shuttl/server/mbeans/rest/FlushEndpoint.java @...
false
true
public String flushBuckets(@FormParam("index") final String index, @FormParam("from") String from, @FormParam("to") String to) { logger.info(happened("Received REST request to flush buckets", "endpoint", ENDPOINT_BUCKET_FLUSH, "index", index, "from", from, "to", to)); Date fromDate = RestUtil.getValidFromD...
public String flushBuckets(@FormParam("index") final String index, @FormParam("from") String from, @FormParam("to") String to) { logger.info(happened("Received REST request to flush buckets", "endpoint", ENDPOINT_BUCKET_FLUSH, "index", index, "from", from, "to", to)); Date fromDate = RestUtil.getValidFromD...
diff --git a/patient-tools/src/main/java/edu/toronto/cs/cidb/tools/PhenotypeDisplayTools.java b/patient-tools/src/main/java/edu/toronto/cs/cidb/tools/PhenotypeDisplayTools.java index 7c5875e92..8bcbc049a 100644 --- a/patient-tools/src/main/java/edu/toronto/cs/cidb/tools/PhenotypeDisplayTools.java +++ b/patient-tools/sr...
true
true
public void clear() { this.execution.getContext().removeProperty(DOCUMENT_KEY); this.execution.getContext().removeProperty(MODE_KEY); this.execution.getContext().removeProperty(YES_SELECTION_MARKER + FIELD_NAME_KEY); this.execution.getContext().removeProperty(NO_SELECTION_MARKER ...
public void clear() { this.execution.getContext().removeProperty(DOCUMENT_KEY); this.execution.getContext().removeProperty(MODE_KEY); this.execution.getContext().removeProperty(YES_SELECTION_MARKER + FIELD_NAME_KEY); this.execution.getContext().removeProperty(NO_SELECTION_MARKER ...
diff --git a/src/java/com/android/internal/telephony/uicc/IccCardStatus.java b/src/java/com/android/internal/telephony/uicc/IccCardStatus.java index a4fbc1f..a5847c1 100644 --- a/src/java/com/android/internal/telephony/uicc/IccCardStatus.java +++ b/src/java/com/android/internal/telephony/uicc/IccCardStatus.java @@ -1,1...
true
true
public String toString() { IccCardApplicationStatus app; StringBuilder sb = new StringBuilder(); sb.append("IccCardState {").append(mCardState).append(",") .append(mUniversalPinState) .append(",num_apps=").append(mApplications.length) .append(",gsm_id=").append(mGsmU...
public String toString() { IccCardApplicationStatus app; StringBuilder sb = new StringBuilder(); sb.append("IccCardState {").append(mCardState).append(",") .append(mUniversalPinState) .append(",num_apps=").append(mApplications.length) .append(",gsm_id=").append(mGsmU...
diff --git a/src/org/python/antlr/PythonTokenSource.java b/src/org/python/antlr/PythonTokenSource.java index 001aab52..8ea91dcc 100644 --- a/src/org/python/antlr/PythonTokenSource.java +++ b/src/org/python/antlr/PythonTokenSource.java @@ -1,331 +1,328 @@ package org.python.antlr; import org.python.core.Py; /* ...
false
true
protected void insertImaginaryIndentDedentTokens() { Token t = stream.LT(1); stream.consume(); // if the current token is not a NEWLINE or EOF, it doesn't signal indent/dedent work; just enqueue if (t.getType() != PythonLexer.NEWLINE && t.getType() != PythonLexer.EOF) { ...
protected void insertImaginaryIndentDedentTokens() { Token t = stream.LT(1); stream.consume(); // if the current token is not a NEWLINE or EOF, it doesn't signal indent/dedent work; just enqueue if (t.getType() != PythonLexer.NEWLINE && t.getType() != PythonLexer.EOF) { ...
diff --git a/src/com/jjensen/labs/enumcalc/Calculator.java b/src/com/jjensen/labs/enumcalc/Calculator.java index 85a9578..442fa10 100644 --- a/src/com/jjensen/labs/enumcalc/Calculator.java +++ b/src/com/jjensen/labs/enumcalc/Calculator.java @@ -1,116 +1,116 @@ package com.jjensen.labs.enumcalc; import java.util.Sca...
true
true
public void run() { displayGreeting("Welcome to Simple Calculator \nCreated by: Jonathan Jensen\n"); do { do { number1 = promptUserForNumberGetInt(); if(number1 != 0) { validInput = true; } else { va...
public void run() { displayGreeting("Welcome to Simple Calculator \nCreated by: Jonathan Jensen\n"); do { do { number1 = promptUserForNumberGetInt(); if(number1 != 0) { validInput = true; } else { va...
diff --git a/src/robot/Arit.java b/src/robot/Arit.java index a8ef8df..812effd 100644 --- a/src/robot/Arit.java +++ b/src/robot/Arit.java @@ -1,145 +1,145 @@ /**********************************************************************/ /* Copyright 2013 KRV */ /* ...
false
true
private static final void calculate(RVM rvm, Operation op) throws WrongTypeException, StackUnderflowException { Stackable arg1 = rvm.DATA.pop(); Stackable arg2 = rvm.DATA.pop(); if(arg1 instanceof Num && arg2 instanceof Num) { Num a = ...
private static final void calculate(RVM rvm, Operation op) throws WrongTypeException, StackUnderflowException { Stackable arg1 = rvm.DATA.pop(); Stackable arg2 = rvm.DATA.pop(); if(arg1 instanceof Num && arg2 instanceof Num) { Num a = ...
diff --git a/pcs/services/src/main/java/org/apache/oodt/pcs/services/HealthResource.java b/pcs/services/src/main/java/org/apache/oodt/pcs/services/HealthResource.java index ec03832ed..b95b9b689 100644 --- a/pcs/services/src/main/java/org/apache/oodt/pcs/services/HealthResource.java +++ b/pcs/services/src/main/java/org/...
true
true
private Map<String, Object> encodeDaemonOutput(PCSHealthMonitorReport report, String... daemonName) { Map<String, Object> daemonOutput = new HashMap<String, Object>(); if (daemonName.length > 0) { if (daemonName.equals("fm")) { daemonOutput.put("fm", this.encodeDaemonStatus(report.getFmSta...
private Map<String, Object> encodeDaemonOutput(PCSHealthMonitorReport report, String... daemonName) { Map<String, Object> daemonOutput = new HashMap<String, Object>(); if (daemonName.length > 0) { if (daemonName[0].equals("fm")) { daemonOutput.put("fm", this.encodeDaemonStatus(report.getFm...
diff --git a/src/main/java/org/atlasapi/remotesite/space/TheSpaceUpdater.java b/src/main/java/org/atlasapi/remotesite/space/TheSpaceUpdater.java index fc9861e07..b36497249 100644 --- a/src/main/java/org/atlasapi/remotesite/space/TheSpaceUpdater.java +++ b/src/main/java/org/atlasapi/remotesite/space/TheSpaceUpdater.java...
false
true
public void runTask() { try { Timestamp start = timestamper.timestamp(); log.record(new AdapterLogEntry(AdapterLogEntry.Severity.INFO).withDescription("LoveFilm update started from " + BASE_API_URL).withSource(getClass())); TheSpaceItemsProcessor itemsProcessor = new The...
public void runTask() { try { Timestamp start = timestamper.timestamp(); log.record(new AdapterLogEntry(AdapterLogEntry.Severity.INFO).withDescription("TheSpace update started from " + BASE_API_URL).withSource(getClass())); TheSpaceItemsProcessor itemsProcessor = new The...
diff --git a/grails/src/persistence/org/codehaus/groovy/grails/orm/hibernate/metaclass/AbstractClausedStaticPersistentMethod.java b/grails/src/persistence/org/codehaus/groovy/grails/orm/hibernate/metaclass/AbstractClausedStaticPersistentMethod.java index 6a171479f..53dca8711 100644 --- a/grails/src/persistence/org/code...
true
true
protected static GrailsMethodExpression create(String queryParameter) { if(queryParameter.endsWith( LESS_THAN_OR_EQUAL )) { return new GrailsMethodExpression( calcPropertyName(queryParameter, LESS_THAN_OR_EQUAL),LESS_THAN_OR_EQUAL, 1,isNegation(queryParameter, LESS_THAN_OR_EQUAL) ) { Criterion createCrite...
protected static GrailsMethodExpression create(String queryParameter) { if(queryParameter.endsWith( LESS_THAN_OR_EQUAL )) { return new GrailsMethodExpression( calcPropertyName(queryParameter, LESS_THAN_OR_EQUAL),LESS_THAN_OR_EQUAL, 1,isNegation(queryParameter, LESS_THAN_OR_EQUAL) ) { Criterion createCrite...
diff --git a/VisualizationModule/src/org/gephi/visualization/component/NodeSettingsPanel.java b/VisualizationModule/src/org/gephi/visualization/component/NodeSettingsPanel.java index d3fcba2bc..6b530d66f 100644 --- a/VisualizationModule/src/org/gephi/visualization/component/NodeSettingsPanel.java +++ b/VisualizationMod...
false
true
public void setup() { VizModel vizModel = VizController.getInstance().getVizModel(); adjustTextCheckbox.setSelected(vizModel.isAdjustByText()); adjustTextCheckbox.addItemListener(new ItemListener() { public void itemStateChanged(ItemEvent e) { VizModel vizModel =...
public void setup() { VizModel vizModel = VizController.getInstance().getVizModel(); adjustTextCheckbox.setSelected(vizModel.isAdjustByText()); adjustTextCheckbox.addItemListener(new ItemListener() { public void itemStateChanged(ItemEvent e) { VizModel vizModel =...
diff --git a/src/java/davmail/exchange/VCalendar.java b/src/java/davmail/exchange/VCalendar.java index 595ee74..9b94442 100644 --- a/src/java/davmail/exchange/VCalendar.java +++ b/src/java/davmail/exchange/VCalendar.java @@ -1,414 +1,414 @@ /* * DavMail POP/IMAP/SMTP/CalDav/LDAP Exchange Gateway * Copyright (C) 20...
true
true
protected void fixVCalendar(boolean fromServer) { // iCal 4 global private flag if (fromServer) { setPropertyValue("X-CALENDARSERVER-ACCESS", getCalendarServerAccess()); } // iCal 4 global X-CALENDARSERVER-ACCESS String calendarServerAccess = getPropertyValue("X-...
protected void fixVCalendar(boolean fromServer) { // iCal 4 global private flag if (fromServer) { setPropertyValue("X-CALENDARSERVER-ACCESS", getCalendarServerAccess()); } // iCal 4 global X-CALENDARSERVER-ACCESS String calendarServerAccess = getPropertyValue("X-...
diff --git a/src/org/jagatoo/loaders/models/bsp/WADFile.java b/src/org/jagatoo/loaders/models/bsp/WADFile.java index 47cdd45..36ce5a4 100644 --- a/src/org/jagatoo/loaders/models/bsp/WADFile.java +++ b/src/org/jagatoo/loaders/models/bsp/WADFile.java @@ -1,576 +1,579 @@ /** * Copyright (c) 2007-2008, JAGaToo Project G...
true
true
public final AbstractTexture readTexture( String resName, AppearanceFactory appFactory ) throws IOException { if ( magicNumber == MAGIC_NUMBER_WAD3 ) { WADDirectoryEntry entry = wadDir.get( resName.toLowerCase() ); if ( entry == null ) { ...
public final AbstractTexture readTexture( String resName, AppearanceFactory appFactory ) throws IOException { if ( magicNumber == MAGIC_NUMBER_WAD3 ) { WADDirectoryEntry entry = wadDir.get( resName.toLowerCase() ); if ( entry == null ) { ...
diff --git a/tools/remotetools/org.eclipse.ptp.remotetools.core/src/org/eclipse/ptp/remotetools/internal/common/RemoteScript.java b/tools/remotetools/org.eclipse.ptp.remotetools.core/src/org/eclipse/ptp/remotetools/internal/common/RemoteScript.java index b89a93fc6..b841515b5 100755 --- a/tools/remotetools/org.eclipse.p...
false
true
public String getScriptString() { if (script == null) { return null; } StringBuffer sb = new StringBuffer(); if (clearEnv) { for (int i = 0; i < script.length; i++) { sb.append("env -i"); //$NON-NLS-1$ for (String env : environment) { sb.append(" \"" + env + "\""); //$NON-NLS-1$ //$NON-NLS...
public String getScriptString() { if (script == null) { return null; } StringBuffer sb = new StringBuffer(); if (clearEnv) { sb.append("env -i"); //$NON-NLS-1$ for (String env : environment) { sb.append(" \"" + env + "\""); //$NON-NLS-1$ //$NON-NLS-2$ } sb.append(" /bin/sh -c \""); //$NON-...
diff --git a/mdiss-core/src/main/java/org/mdissjava/mdisscore/filter/RestrictPageAccessFilter.java b/mdiss-core/src/main/java/org/mdissjava/mdisscore/filter/RestrictPageAccessFilter.java index 1798695..4fff0e4 100644 --- a/mdiss-core/src/main/java/org/mdissjava/mdisscore/filter/RestrictPageAccessFilter.java +++ b/mdiss...
true
true
public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException { //Get the current logged user's username Authentication auth = SecurityContextHolder.getContext().getAuthentication(); String loggedUser = auth.getName(); //get the user acc...
public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException { //Get the current logged user's username Authentication auth = SecurityContextHolder.getContext().getAuthentication(); String loggedUser = auth.getName(); //get the user acc...
diff --git a/stratosphere-addons/spargel/src/main/java/eu/stratosphere/spargel/java/examples/connectedcomponents/SpargelConnectedComponents.java b/stratosphere-addons/spargel/src/main/java/eu/stratosphere/spargel/java/examples/connectedcomponents/SpargelConnectedComponents.java index e3dc128e2..e072a51b9 100644 --- a/s...
true
true
public Plan getPlan(String... args) { final int dop = args.length > 0 ? Integer.parseInt(args[0]) : 1; final String verticesPath = args.length > 1 ? args[1] : ""; final String edgesPath = args.length > 2 ? args[2] : ""; final String resultPath = args.length > 3 ? args[3] : ""; final int maxIterations = args....
public Plan getPlan(String... args) { final int dop = args.length > 0 ? Integer.parseInt(args[0]) : 1; final String verticesPath = args.length > 1 ? args[1] : ""; final String edgesPath = args.length > 2 ? args[2] : ""; final String resultPath = args.length > 3 ? args[3] : ""; final int maxIterations = args....
diff --git a/src/com/shining/bookmanager/ScanBook.java b/src/com/shining/bookmanager/ScanBook.java index 1a90688..bce768d 100644 --- a/src/com/shining/bookmanager/ScanBook.java +++ b/src/com/shining/bookmanager/ScanBook.java @@ -1,272 +1,274 @@ package com.shining.bookmanager; import java.io.BufferedOutputStream; ...
true
true
protected void onActivityResult(int requestCode, int resultCode, Intent data) { if (requestCode != 0) { return; } isbn=data.getStringExtra("SCAN_RESULT"); textview_isbn.setText("ISBN:"+isbn); Intent intent = new Intent(); intent.setClass(this, SearchBookActivity.class); ...
protected void onActivityResult(int requestCode, int resultCode, Intent data) { if (null == data) return; if (requestCode != 0) { return; } isbn=data.getStringExtra("SCAN_RESULT"); textview_isbn.setText("ISBN:"+isbn); Intent intent = new Intent(); intent.setCla...
diff --git a/framework/src/play/libs/WS.java b/framework/src/play/libs/WS.java index 91b42b54..45a32e7c 100644 --- a/framework/src/play/libs/WS.java +++ b/framework/src/play/libs/WS.java @@ -1,685 +1,685 @@ package play.libs; import com.google.gson.JsonElement; import com.google.gson.JsonParser; import java.io.Fi...
true
true
private void checkFileBody(EntityEnclosingMethod method) throws FileNotFoundException { EntityEnclosingMethod putOrPost = (EntityEnclosingMethod) method; if (this.fileParams != null) { //could be optimized, we know the size of this array. List<Part> parts ...
private void checkFileBody(EntityEnclosingMethod method) throws FileNotFoundException { EntityEnclosingMethod putOrPost = (EntityEnclosingMethod) method; if (this.fileParams != null) { //could be optimized, we know the size of this array. List<Part> parts ...
diff --git a/cloning/src/main/java/org/jadira/cloning/implementor/AbstractCloneStrategy.java b/cloning/src/main/java/org/jadira/cloning/implementor/AbstractCloneStrategy.java index 2aeea29..cd47231 100644 --- a/cloning/src/main/java/org/jadira/cloning/implementor/AbstractCloneStrategy.java +++ b/cloning/src/main/java/o...
false
true
public <T> T clone(T obj, CloneDriver context, IdentityHashMap<Object, Object> referencesToReuse) { if (obj == null) { return null; } if (context.isImmutableInstance(obj)) { return obj; } @SuppressWarnings("unchecked") final Class<T> clazz = (Class<T>) obj.getClass(); if (clazz.isPrimitive() ||...
public <T> T clone(T obj, CloneDriver context, IdentityHashMap<Object, Object> referencesToReuse) { if (obj == null) { return null; } if (context.isImmutableInstance(obj)) { return obj; } @SuppressWarnings("unchecked") final Class<T> clazz = (Class<T>) obj.getClass(); if (clazz.isPrimitive() ||...
diff --git a/src/main/java/org/tweet/twitter/service/ErrorPoller.java b/src/main/java/org/tweet/twitter/service/ErrorPoller.java index 93a7fd6f..e6118b48 100644 --- a/src/main/java/org/tweet/twitter/service/ErrorPoller.java +++ b/src/main/java/org/tweet/twitter/service/ErrorPoller.java @@ -1,35 +1,39 @@ package org.tw...
false
true
public void pollForErrors() { logger.info("Starting to poll for errors"); for (final Map.Entry<String, Set<String>> entry : TwitterUtil.bannedRegExesMaybeErrors.entrySet()) { final String expression = entry.getKey(); final Set<String> errors = entry.getValue(); ...
public void pollForErrors() { logger.info("Starting to poll for errors"); for (final Map.Entry<String, Set<String>> entry : TwitterUtil.bannedRegExesMaybeErrors.entrySet()) { final String expression = entry.getKey(); final Set<String> errors = entry.getValue(); i...
diff --git a/org.emftext.sdk.ant/src/org/emftext/sdk/ant/CreateURITask.java b/org.emftext.sdk.ant/src/org/emftext/sdk/ant/CreateURITask.java index 9f5627da6..f7a917446 100644 --- a/org.emftext.sdk.ant/src/org/emftext/sdk/ant/CreateURITask.java +++ b/org.emftext.sdk.ant/src/org/emftext/sdk/ant/CreateURITask.java @@ -1,6...
true
true
public void execute() throws BuildException { if (getPropertyName() == null) { throw new BuildException("propertyName is not set."); } if (getFileName() == null) { throw new BuildException("propertyName is not set."); } URI uri = URI.createFileURI(fileName); getProject().setProperty(getPropertyName()...
public void execute() throws BuildException { if (getPropertyName() == null) { throw new BuildException("propertyName is not set."); } if (getFileName() == null) { throw new BuildException("fileName is not set."); } URI uri = URI.createFileURI(fileName); getProject().setProperty(getPropertyName(), ur...
diff --git a/eclipse_project/src/com/ptzlabs/wc/servlet/ReadingServlet.java b/eclipse_project/src/com/ptzlabs/wc/servlet/ReadingServlet.java index 91a04e4..c7863de 100644 --- a/eclipse_project/src/com/ptzlabs/wc/servlet/ReadingServlet.java +++ b/eclipse_project/src/com/ptzlabs/wc/servlet/ReadingServlet.java @@ -1,192 +...
false
true
public void doPost(HttpServletRequest req, HttpServletResponse resp) throws IOException { if (req.getParameter("mode").equals("new") && req.getParameter("name") != null && req.getParameter("location") != null && req.getParameter("fbid") != null && req.getParameter("type") != null) { Reading r...
public void doPost(HttpServletRequest req, HttpServletResponse resp) throws IOException { if (req.getParameter("mode").equals("new") && req.getParameter("name") != null && req.getParameter("location") != null && req.getParameter("fbid") != null && req.getParameter("type") != null) { Reading r...
diff --git a/application/test/models/user/UserRegistrationTest.java b/application/test/models/user/UserRegistrationTest.java index 9fc111fe..99d08ee4 100644 --- a/application/test/models/user/UserRegistrationTest.java +++ b/application/test/models/user/UserRegistrationTest.java @@ -1,108 +1,108 @@ package models.user;...
true
true
public void createAccountSucces(){ Map<String, String> map = new HashMap<String,String>(); map.put("name", "Jim Jones"); map.put("email","jimjones@localhost.com"); map.put("bday","1931/05/13"); map.put("gender","Male"); map.put("prefLanguage","en"); map.put("...
public void createAccountSucces(){ Map<String, String> map = new HashMap<String,String>(); map.put("name", "Jim Jones"); map.put("email","jimjones@localhost.com"); map.put("bday","1931/05/13"); map.put("gender","Male"); map.put("prefLanguage","en"); map.put("...
diff --git a/src/com/android/browser/IntentHandler.java b/src/com/android/browser/IntentHandler.java index 77db5384..fa8bfbc2 100644 --- a/src/com/android/browser/IntentHandler.java +++ b/src/com/android/browser/IntentHandler.java @@ -1,363 +1,367 @@ /* * Copyright (C) 2010 The Android Open Source Project * * Li...
false
true
void onNewIntent(Intent intent) { Tab current = mTabControl.getCurrentTab(); // When a tab is closed on exit, the current tab index is set to -1. // Reset before proceed as Browser requires the current tab to be set. if (current == null) { // Try to reset the tab in case ...
void onNewIntent(Intent intent) { Tab current = mTabControl.getCurrentTab(); // When a tab is closed on exit, the current tab index is set to -1. // Reset before proceed as Browser requires the current tab to be set. if (current == null) { // Try to reset the tab in case ...
diff --git a/MODSRC/vazkii/tinkerer/block/BlockInterface.java b/MODSRC/vazkii/tinkerer/block/BlockInterface.java index 469bdfb7..cf53ed2c 100644 --- a/MODSRC/vazkii/tinkerer/block/BlockInterface.java +++ b/MODSRC/vazkii/tinkerer/block/BlockInterface.java @@ -1,34 +1,36 @@ /** * This class was created by <Vazkii>. It...
true
true
public BlockInterface(int par1) { super(par1, Material.iron); }
public BlockInterface(int par1) { super(par1, Material.iron); setHardness(3F); setResistance(10F); }
diff --git a/src/main/java/com/bergerkiller/bukkit/sl/SLPacketListener.java b/src/main/java/com/bergerkiller/bukkit/sl/SLPacketListener.java index 36f13d4..dcee162 100644 --- a/src/main/java/com/bergerkiller/bukkit/sl/SLPacketListener.java +++ b/src/main/java/com/bergerkiller/bukkit/sl/SLPacketListener.java @@ -1,36 +1...
true
true
public void onPacketSend(PacketSendEvent event) { if (ignore) { return; } CommonPacket packet = event.getPacket(); if (packet.getType() == PacketType.UPDATE_SIGN) { Block block = PacketFields.UPDATE_SIGN.getBlock(packet.getHandle(), event.getPlayer().getWorld()); VirtualSign sign = VirtualSign.get(blo...
public void onPacketSend(PacketSendEvent event) { if (ignore) { return; } CommonPacket packet = event.getPacket(); if (packet.getType() == PacketType.UPDATE_SIGN) { Block block = PacketFields.UPDATE_SIGN.getBlock(packet.getHandle(), event.getPlayer().getWorld()); VirtualSign sign = VirtualSign.get(blo...
diff --git a/Core/src/java/de/hattrickorganizer/logik/SpielLogik.java b/Core/src/java/de/hattrickorganizer/logik/SpielLogik.java index 62cd4fab..9542a084 100644 --- a/Core/src/java/de/hattrickorganizer/logik/SpielLogik.java +++ b/Core/src/java/de/hattrickorganizer/logik/SpielLogik.java @@ -1,2387 +1,2389 @@ // %369664...
false
true
public final void doEinfacheSpielberechnung(Spielbericht spielbericht, de.hattrickorganizer.model.Server server) { int C1Heim; int C1Gast; byte spielzeit; byte minute; float mittelfeld1; float mittelfeld2; boolea...
public final void doEinfacheSpielberechnung(Spielbericht spielbericht, de.hattrickorganizer.model.Server server) { int C1Heim; int C1Gast; byte spielzeit; byte minute; float mittelfeld1; float mittelfeld2; boolea...
diff --git a/src/edu/wheaton/simulator/datastructure/Grid.java b/src/edu/wheaton/simulator/datastructure/Grid.java index f43f1e51..a70224a4 100644 --- a/src/edu/wheaton/simulator/datastructure/Grid.java +++ b/src/edu/wheaton/simulator/datastructure/Grid.java @@ -1,362 +1,364 @@ /** * Grid.java * * Models a cart...
true
true
public void notifyObservers(boolean layerRunning) { Grid copy = null; Set<AgentAppearance> agentView = new HashSet<AgentAppearance>(); synchronized (this) { copy = new Grid(getWidth(), getHeight()); // set grid fields for (String current : getFieldMap().keySet()) { try { copy.addField(current...
public void notifyObservers(boolean layerRunning) { Grid copy = null; Set<AgentAppearance> agentView = new HashSet<AgentAppearance>(); synchronized (this) { copy = new Grid(getWidth(), getHeight()); // set grid fields for (String current : getFieldMap().keySet()) { try { copy.addField(current...
diff --git a/src/main/java/com/github/kzn/jaot/morph/GramTable.java b/src/main/java/com/github/kzn/jaot/morph/GramTable.java index 003e710..404d865 100644 --- a/src/main/java/com/github/kzn/jaot/morph/GramTable.java +++ b/src/main/java/com/github/kzn/jaot/morph/GramTable.java @@ -1,115 +1,115 @@ package com.github.kzn...
false
true
public void read(BufferedReader br ) throws IOException { while(true) { String s = br.readLine(); if(s == null) break; s = s.trim(); int commentStart = s.indexOf("//"); if(commentStart != -1) { s = s.substring(0, commentStart); } if(s.isEmpty()) continue; String[] parts = s.spl...
public void read(BufferedReader br ) throws IOException { while(true) { String s = br.readLine(); if(s == null) break; s = s.trim(); int commentStart = s.indexOf("//"); if(commentStart != -1) { s = s.substring(0, commentStart); } if(s.isEmpty()) continue; String[] parts = s.spl...
diff --git a/java/modules/core/src/main/java/org/apache/synapse/mediators/builtin/PropertyMediator.java b/java/modules/core/src/main/java/org/apache/synapse/mediators/builtin/PropertyMediator.java index b084a9786..ba7a5dfe2 100644 --- a/java/modules/core/src/main/java/org/apache/synapse/mediators/builtin/PropertyMediat...
false
true
public boolean mediate(MessageContext synCtx) { boolean traceOn = isTraceOn(synCtx); boolean traceOrDebugOn = isTraceOrDebugOn(traceOn); if (traceOrDebugOn) { traceOrDebug(traceOn, "Start : Property mediator"); if (traceOn && trace.isTraceEnabled()) { ...
public boolean mediate(MessageContext synCtx) { boolean traceOn = isTraceOn(synCtx); boolean traceOrDebugOn = isTraceOrDebugOn(traceOn); if (traceOrDebugOn) { traceOrDebug(traceOn, "Start : Property mediator"); if (traceOn && trace.isTraceEnabled()) { ...
diff --git a/main/src/main/java/com/bloatit/framework/ResourceFinder.java b/main/src/main/java/com/bloatit/framework/ResourceFinder.java index 9b1aa79e7..1f9233b2b 100644 --- a/main/src/main/java/com/bloatit/framework/ResourceFinder.java +++ b/main/src/main/java/com/bloatit/framework/ResourceFinder.java @@ -1,147 +1,14...
true
true
public String findForCache(String resourceUrl) { String dirName = resourceUrl.split("/[^/]+$")[0]; String fileName = resourceUrl.substring(dirName.length() + 1); final String fileNameBase = fileName.split(".[^.]+$")[0]; final String fileNameExtension = fileName.substring(fi...
public String findForCache(String resourceUrl) { String dirName = resourceUrl.split("/[^/]+$")[0]; String fileName = resourceUrl.substring(dirName.length() + 1); final String fileNameBase = fileName.split(".[^.]+$")[0]; final String fileNameExtension = fileName.substring(fi...
diff --git a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/web/ScmGitServlet.java b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/web/ScmGitServlet.java index 309486341..14949683a 100644 --- a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/web/ScmGitServlet.java +++ b/scm-plugins/scm-git-plugin/src/main/j...
true
true
protected void service(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { String uri = HttpUtil.getStrippedURI(request); if (uri.matches(REGEX_GITHTTPBACKEND)) { sonia.scm.repository.Repository repository = repositor...
protected void service(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { String uri = HttpUtil.getStrippedURI(request); if (uri.matches(REGEX_GITHTTPBACKEND)) { sonia.scm.repository.Repository repository = repositor...
diff --git a/src/main/java/me/ase34/citylanterns/listener/LanternSelectListener.java b/src/main/java/me/ase34/citylanterns/listener/LanternSelectListener.java index b85d165..8b7bc3e 100644 --- a/src/main/java/me/ase34/citylanterns/listener/LanternSelectListener.java +++ b/src/main/java/me/ase34/citylanterns/listener/La...
true
true
public void onPlayerInteractBlock(PlayerInteractEvent ev) { if (ev.isBlockInHand()) { return; } if (plugin.getSelectingPlayers().contains(ev.getPlayer().getName())) { if (ev.getClickedBlock().getType() != Material.REDSTONE_LAMP_OFF) { ev.getPlayer().se...
public void onPlayerInteractBlock(PlayerInteractEvent ev) { if (ev.isBlockInHand()) { return; } if (plugin.getSelectingPlayers().contains(ev.getPlayer().getName())) { if (ev.getClickedBlock() == null) { return; } if (ev.getClick...
diff --git a/library/src/main/java/net/sourceforge/cilib/entity/topologies/VonNeumannNeighbourhood.java b/library/src/main/java/net/sourceforge/cilib/entity/topologies/VonNeumannNeighbourhood.java index e0bd0b72..eccabeb8 100644 --- a/library/src/main/java/net/sourceforge/cilib/entity/topologies/VonNeumannNeighbourhood...
true
true
public List<E> f(final List<E> list, final E target) { final int np = list.length(); final int index = Lists.newArrayList(list).indexOf(target); final int sqSide = (int) Math.round(Math.sqrt(np)); final int nRows = (int) Math.ceil(np / (double) sqSide); final int row = index ...
public List<E> f(final List<E> list, final E target) { final int np = list.length(); final int index = Lists.newArrayList(list).indexOf(target); final int sqSide = (int) Math.round(Math.sqrt(np)); final int nRows = (int) Math.ceil(np / (double) sqSide); final int row = index ...
diff --git a/Infectosaurus/src/com/infectosaurus/RenderingThread.java b/Infectosaurus/src/com/infectosaurus/RenderingThread.java index 459ed6c..b1009d1 100644 --- a/Infectosaurus/src/com/infectosaurus/RenderingThread.java +++ b/Infectosaurus/src/com/infectosaurus/RenderingThread.java @@ -1,167 +1,167 @@ package com.in...
false
true
public void onDrawFrame(GL10 gl) { OpenGLSystem.gl = gl; //Avoid drawing same scene twice synchronized(drawLock) { if (!drawQueueChanged) { while (!drawQueueChanged) { try { drawLock.wait(); } catch (InterruptedException...
public void onDrawFrame(GL10 gl) { OpenGLSystem.gl = gl; //Avoid drawing same scene twice synchronized(drawLock) { if (!drawQueueChanged) { while (!drawQueueChanged) { try { drawLock.wait(); } catch (InterruptedException...
diff --git a/src/main/java/org/got5/tapestry5/jquery/mixins/Autocomplete.java b/src/main/java/org/got5/tapestry5/jquery/mixins/Autocomplete.java index 9203e366..2a47659b 100644 --- a/src/main/java/org/got5/tapestry5/jquery/mixins/Autocomplete.java +++ b/src/main/java/org/got5/tapestry5/jquery/mixins/Autocomplete.java @...
true
true
void afterRender(MarkupWriter writer) { String id = field.getClientId(); Link link = resources.createEventLink(EVENT_NAME); JSONObject config = new JSONObject(); config.put("id", id); config.put("url", link.toAbsoluteURI()); config.put("paramName", PARAM_NAME); ...
void afterRender(MarkupWriter writer) { String id = field.getClientId(); Link link = resources.createEventLink(EVENT_NAME); JSONObject config = new JSONObject(); config.put("id", id); config.put("url", link.toURI()); config.put("paramName", PARAM_NAME); ...
diff --git a/javafx.editor/src/org/netbeans/modules/javafx/editor/semantic/MarkOccurrencesHighlighter.java b/javafx.editor/src/org/netbeans/modules/javafx/editor/semantic/MarkOccurrencesHighlighter.java index 982dd081..149184c6 100644 --- a/javafx.editor/src/org/netbeans/modules/javafx/editor/semantic/MarkOccurrencesHi...
true
true
List<int[]> processImpl(CompilationInfo info, Preferences pref, Document doc, int caretPosition) { UnitTree cu = info.getCompilationUnit(); // TreePath tp = info.getTreeUtilities().pathFor(caretPosition); TreeUtilities tu = TreeUtilities.create(info); JavaFXTreePath tp = tu.pathFor(ca...
List<int[]> processImpl(CompilationInfo info, Preferences pref, Document doc, int caretPosition) { UnitTree cu = info.getCompilationUnit(); // TreePath tp = info.getTreeUtilities().pathFor(caretPosition); TreeUtilities tu = TreeUtilities.create(info); JavaFXTreePath tp = tu.pathFor(ca...
diff --git a/src/tesseract/TesseractUI.java b/src/tesseract/TesseractUI.java index b71252b..1d6a5cc 100644 --- a/src/tesseract/TesseractUI.java +++ b/src/tesseract/TesseractUI.java @@ -1,553 +1,554 @@ package tesseract; import java.awt.GraphicsConfiguration; import java.awt.Toolkit; import java.awt.event.ActionEv...
true
true
private void createMenu() { JMenuBar menuBar = new JMenuBar(); // Added by Steve: Fixes viewing menu problem with Canvas3D on both my windows machines JPopupMenu.setDefaultLightWeightPopupEnabled(false); //Simulator JMenu simulationMenu = new JMenu("Simulation"); menuBar.add(simulationMenu); // Simula...
private void createMenu() { JMenuBar menuBar = new JMenuBar(); // Added by Steve: Fixes viewing menu problem with Canvas3D on both my windows machines JPopupMenu.setDefaultLightWeightPopupEnabled(false); //Simulator JMenu simulationMenu = new JMenu("Simulation"); menuBar.add(simulationMenu); // Simula...
diff --git a/src/com/ferg/awful/thread/AwfulPost.java b/src/com/ferg/awful/thread/AwfulPost.java index 34d0d825..01e769b0 100644 --- a/src/com/ferg/awful/thread/AwfulPost.java +++ b/src/com/ferg/awful/thread/AwfulPost.java @@ -1,340 +1,343 @@ /***************************************************************************...
true
true
public static ArrayList<AwfulPost> parsePosts(TagNode aThread) { ArrayList<AwfulPost> result = new ArrayList<AwfulPost>(); HtmlCleaner cleaner = new HtmlCleaner(); CleanerProperties properties = cleaner.getProperties(); properties.setOmitComments(true); SimpleHtmlSerializer seriali...
public static ArrayList<AwfulPost> parsePosts(TagNode aThread) { ArrayList<AwfulPost> result = new ArrayList<AwfulPost>(); HtmlCleaner cleaner = new HtmlCleaner(); CleanerProperties properties = cleaner.getProperties(); properties.setOmitComments(true); SimpleHtmlSerializer seriali...
diff --git a/src/com/android/camera/panorama/PanoramaActivity.java b/src/com/android/camera/panorama/PanoramaActivity.java index 00613c75..b5069abe 100644 --- a/src/com/android/camera/panorama/PanoramaActivity.java +++ b/src/com/android/camera/panorama/PanoramaActivity.java @@ -1,989 +1,993 @@ /* * Copyright (C) 201...
true
true
public void onCreate(Bundle icicle) { super.onCreate(icicle); getWindow().setFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON, WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON); Util.enterLightsOutMode(getWindow()); createContentView(); mSensorManager = (...
public void onCreate(Bundle icicle) { super.onCreate(icicle); getWindow().setFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON, WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON); Util.enterLightsOutMode(getWindow()); createContentView(); mSensorManager = (...
diff --git a/jflac-codec/src/main/java/org/kc7bfi/jflac/metadata/Picture.java b/jflac-codec/src/main/java/org/kc7bfi/jflac/metadata/Picture.java index 6ad2cfe..1551535 100644 --- a/jflac-codec/src/main/java/org/kc7bfi/jflac/metadata/Picture.java +++ b/jflac-codec/src/main/java/org/kc7bfi/jflac/metadata/Picture.java @@ ...
true
true
public Picture(BitInputStream is, int length, boolean isLast) throws IOException { super(isLast); int usedBits = 0; byte[] data; pictureType = is.readRawUInt(32); usedBits += 32; mimeTypeByteCount = is.readRawUInt(32); usedBits += 32; ...
public Picture(BitInputStream is, int length, boolean isLast) throws IOException { super(isLast); int usedBits = 0; byte[] data; pictureType = is.readRawUInt(32); usedBits += 32; mimeTypeByteCount = is.readRawUInt(32); usedBits += 32; ...
diff --git a/core/src/main/java/me/prettyprint/cassandra/connection/HConnectionManager.java b/core/src/main/java/me/prettyprint/cassandra/connection/HConnectionManager.java index fc424163..b8574eb7 100644 --- a/core/src/main/java/me/prettyprint/cassandra/connection/HConnectionManager.java +++ b/core/src/main/java/me/pr...
false
true
public void operateWithFailover(Operation<?> op) throws HectorException { final Object timerToken = timer.start(op.stopWatchTagName); int retries = Math.min(op.failoverPolicy.numRetries, hostPools.size()); HClient client = null; HClientPool pool = null; boolean success = false; boolean retrya...
public void operateWithFailover(Operation<?> op) throws HectorException { final Object timerToken = timer.start(op.stopWatchTagName); int retries = Math.min(op.failoverPolicy.numRetries, hostPools.size()); HClient client = null; HClientPool pool = null; boolean success = false; boolean retrya...
diff --git a/src/main/java/water/OldModel.java b/src/main/java/water/OldModel.java index adae280ea..2a0a153b6 100644 --- a/src/main/java/water/OldModel.java +++ b/src/main/java/water/OldModel.java @@ -1,341 +1,342 @@ package water; import com.google.gson.JsonObject; import java.util.Arrays; import water.ValueArra...
false
true
public Frame score( Frame data, boolean exact ) { final double threshold = getThreshold(); String[][] ds = _va.domains(); if( ds[ds.length-1] == null && !Double.isNaN(threshold) ) { // This is a binomial classifier ds[ds.length-1] = new String[]{"F","T"}; } Model m = new Model(null,nul...
public Frame score( Frame data, boolean exact ) { final double threshold = getThreshold(); String[][] ds = _va.domains(); if( ds[ds.length-1] == null && !Double.isNaN(threshold) ) { // This is a binomial classifier ds[ds.length-1] = new String[]{"F","T"}; } Model m = new Model(null,nul...
diff --git a/class12/16_Menus1/CriminalIntent/src/com/bignerdranch/android/criminalintent/Crime.java b/class12/16_Menus1/CriminalIntent/src/com/bignerdranch/android/criminalintent/Crime.java index 4985d39..24b1723 100644 --- a/class12/16_Menus1/CriminalIntent/src/com/bignerdranch/android/criminalintent/Crime.java +++ b...
true
true
public JSONObject toJSON() throws JSONException { JSONObject json = new JSONObject(); json.put(JSON_ID, mId.toString()); json.put(JSON_TITLE, mTitle); json.put(JSON_SOLVED, mSolved); json.put(JSON_DATE, mDate.getTime()); return null; }
public JSONObject toJSON() throws JSONException { JSONObject json = new JSONObject(); json.put(JSON_ID, mId.toString()); json.put(JSON_TITLE, mTitle); json.put(JSON_SOLVED, mSolved); json.put(JSON_DATE, mDate.getTime()); return json; }
diff --git a/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/wizards/query/AbstractQueryWizard.java b/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/wizards/query/AbstractQueryWizard.java index db062787b..f37a5c14d 100644 --- a/common/plugins/org.jb...
true
true
public void setObject(Object object) { view.setModel(findModel(object)); view.setObject(object); Properties p = findProperties(object); String key = (p == null) ? null : p.getProperty("help"); if(key == null) { //put debuggin here } else { String title = p.getProperty("title"); if(title == null) t...
public void setObject(Object object) { view.setModel(findModel(object)); view.setObject(object); Properties p = findProperties(object); String key = (p == null) ? null : p.getProperty("help"); if(key == null) { //put debuggin here } else { String title = p.getProperty("title"); if(title == null) t...
diff --git a/miner/src/java/ru/brandanalyst/miner/util/StringChecker.java b/miner/src/java/ru/brandanalyst/miner/util/StringChecker.java index b265363..338aa9c 100644 --- a/miner/src/java/ru/brandanalyst/miner/util/StringChecker.java +++ b/miner/src/java/ru/brandanalyst/miner/util/StringChecker.java @@ -1,42 +1,37 @@ ...
false
true
public static boolean hasTerm(BrandDictionaryItem brandItem, String title) { //O(l^2 ) // for (String item : brandItem.getItems()) // if (title.toLowerCase().contains(item.toLowerCase())) return true; // return false; for (int i = 0; i < title.length(); i++) { for (int j = ...
public static boolean hasTerm(BrandDictionaryItem brandItem, String title) { //O(l^2 ) title = title.toLowerCase(); // for (String item : brandItem.getItems()) // if (title.toLowerCase().contains(item.toLowerCase())) return true; // return false; for (int i = 0; i < title.lengt...
diff --git a/cat-core/src/main/java/com/dianping/cat/message/internal/DefaultMessageManager.java b/cat-core/src/main/java/com/dianping/cat/message/internal/DefaultMessageManager.java index fbb83770..6b4d7961 100644 --- a/cat-core/src/main/java/com/dianping/cat/message/internal/DefaultMessageManager.java +++ b/cat-core/...
true
true
public void initializeClient(Config clientConfig) { if (clientConfig != null) { m_clientConfig = clientConfig; } else { m_clientConfig = new Config(); m_clientConfig.setMode("client"); } Map<String, Domain> domains = clientConfig.getDomains(); Domain firstDomain = domains.isEmpty() ? null : domains...
public void initializeClient(Config clientConfig) { if (clientConfig != null) { m_clientConfig = clientConfig; } else { m_clientConfig = new Config(); m_clientConfig.setMode("client"); } Map<String, Domain> domains = m_clientConfig.getDomains(); Domain firstDomain = domains.isEmpty() ? null : domai...
diff --git a/odcleanstore/engine/src/main/java/cz/cuni/mff/odcleanstore/engine/outputws/output/RDFFormatter.java b/odcleanstore/engine/src/main/java/cz/cuni/mff/odcleanstore/engine/outputws/output/RDFFormatter.java index 05c9c39e..99e514a2 100644 --- a/odcleanstore/engine/src/main/java/cz/cuni/mff/odcleanstore/engine/o...
true
true
protected void addODCSNamedGraphMetadata(NamedGraphMetadataMap metadata, Graph graph, boolean addScore) { for (NamedGraphMetadata graphMetadata : metadata.listMetadata()) { Node namedGraphURI = Node.createURI(graphMetadata.getNamedGraphURI()); Collection<String> dataSourceList = grap...
protected void addODCSNamedGraphMetadata(NamedGraphMetadataMap metadata, Graph graph, boolean addScore) { for (NamedGraphMetadata graphMetadata : metadata.listMetadata()) { Node namedGraphURI = Node.createURI(graphMetadata.getNamedGraphURI()); Collection<String> dataSourceList = grap...
diff --git a/src/de/enough/glaze/style/definition/converter/background/RoundedBackgroundConverter.java b/src/de/enough/glaze/style/definition/converter/background/RoundedBackgroundConverter.java index 90c1a25..c93fa73 100644 --- a/src/de/enough/glaze/style/definition/converter/background/RoundedBackgroundConverter.java...
false
true
public Object convert(Definition definition) throws CssSyntaxError { if (!definition.hasProperties(this)) { return null; } Property backgroundColorProp = definition .getProperty("background-color"); Property backgroundArcsProp = definition.getProperty("background-arcs"); Color color = null; Dimens...
public Object convert(Definition definition) throws CssSyntaxError { if (!definition.hasProperties(this)) { return null; } Property backgroundColorProp = definition .getProperty("background-color"); Property backgroundArcsProp = definition.getProperty("background-arcs"); Color color = null; Dimens...
diff --git a/main/src/jp/ac/osaka_u/ist/sel/metricstool/main/data/target/unresolved/UnresolvedAssertStatementInfo.java b/main/src/jp/ac/osaka_u/ist/sel/metricstool/main/data/target/unresolved/UnresolvedAssertStatementInfo.java index 41271614..2c5d8dfc 100644 --- a/main/src/jp/ac/osaka_u/ist/sel/metricstool/main/data/ta...
true
true
public AssertStatementInfo resolve(TargetClassInfo usingClass, CallableUnitInfo usingMethod, ClassInfoManager classInfoManager, FieldInfoManager fieldInfoManager, MethodInfoManager methodInfoManager) { // �s���ȌĂяo���łȂ������`�F�b�N MetricsToolSecurityManager.getInstance().c...
public AssertStatementInfo resolve(TargetClassInfo usingClass, CallableUnitInfo usingMethod, ClassInfoManager classInfoManager, FieldInfoManager fieldInfoManager, MethodInfoManager methodInfoManager) { // �s���ȌĂяo���łȂ������`�F�b�N MetricsToolSecurityManager.getInstance().c...
diff --git a/annotator/src/main/java/uk/ac/ebi/gxa/annotator/model/biomart/BioMartAnnotationSource.java b/annotator/src/main/java/uk/ac/ebi/gxa/annotator/model/biomart/BioMartAnnotationSource.java index 038cc5bf7..616ecbf24 100644 --- a/annotator/src/main/java/uk/ac/ebi/gxa/annotator/model/biomart/BioMartAnnotationSour...
false
true
public BioMartAnnotationSource createCopyForNewSoftware(Software newSoftware) { BioMartAnnotationSource result = new BioMartAnnotationSource(newSoftware, this.organism); result.setDatasetName(this.datasetName); result.setUrl(this.url); for (BioMartProperty bioMartProperty : bioMartPr...
public BioMartAnnotationSource createCopyForNewSoftware(Software newSoftware) { BioMartAnnotationSource result = new BioMartAnnotationSource(newSoftware, this.organism); result.setDatasetName(this.datasetName); result.setUrl(this.url); for (BioMartProperty bioMartProperty : bioMartPr...
diff --git a/src/main/java/com/ctb/pilot/common/filter/login/LoginCheckFilter.java b/src/main/java/com/ctb/pilot/common/filter/login/LoginCheckFilter.java index e75668e..47fe440 100644 --- a/src/main/java/com/ctb/pilot/common/filter/login/LoginCheckFilter.java +++ b/src/main/java/com/ctb/pilot/common/filter/login/Login...
true
true
public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException { HttpServletRequest httpRequest = (HttpServletRequest) request; HttpServletResponse httpResponse = (HttpServletResponse) response; HttpSession session = httpRequest.getSession(); O...
public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException { HttpServletRequest httpRequest = (HttpServletRequest) request; HttpServletResponse httpResponse = (HttpServletResponse) response; HttpSession session = httpRequest.getSession(); O...
diff --git a/src/com/garbagemule/MobArena/commands/setup/ExpandLobbyRegionCommand.java b/src/com/garbagemule/MobArena/commands/setup/ExpandLobbyRegionCommand.java index 24804dd..93d2c81 100644 --- a/src/com/garbagemule/MobArena/commands/setup/ExpandLobbyRegionCommand.java +++ b/src/com/garbagemule/MobArena/commands/set...
true
true
public boolean execute(ArenaMaster am, CommandSender sender, String... args) { // Grab the argument, if any. String arg1 = (args.length > 0 ? args[0] : ""); String arg2 = (args.length > 1 ? args[1] : ""); if (args.length != 2 || !arg1.matches("(-)?[0-9]+")) { Messenger.t...
public boolean execute(ArenaMaster am, CommandSender sender, String... args) { // Grab the argument, if any. String arg1 = (args.length > 0 ? args[0] : ""); String arg2 = (args.length > 1 ? args[1] : ""); if (args.length != 2 || !arg1.matches("(-)?[0-9]+")) { Messenger.t...
diff --git a/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/core/query/jbosscache/IndexerSingletonStoreCacheLoader.java b/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/core/query/jbosscache/IndexerSingletonStoreCacheLoader.java index fb6757c48..6ea768608 100644 --- a/exo...
false
true
protected Callable<?> createPushStateTask() { return new Callable() { public Object call() throws Exception { final boolean debugEnabled = log.isDebugEnabled(); if (debugEnabled) log.debug("start pushing in-memory state to cache cacheLoader col...
protected Callable<?> createPushStateTask() { return new Callable() { public Object call() throws Exception { final boolean debugEnabled = log.isDebugEnabled(); if (debugEnabled) { log.debug("start pushing in-memory state to cache c...
diff --git a/src/main/java/net/pms/dlna/LibMediaInfoParser.java b/src/main/java/net/pms/dlna/LibMediaInfoParser.java index a1b2459d3..06d16dda2 100644 --- a/src/main/java/net/pms/dlna/LibMediaInfoParser.java +++ b/src/main/java/net/pms/dlna/LibMediaInfoParser.java @@ -1,499 +1,501 @@ package net.pms.dlna; import ja...
true
true
public synchronized static void parse(DLNAMediaInfo media, InputFile inputFile, int type) { File file = inputFile.getFile(); if (!media.isMediaparsed() && file != null && MI.isValid() && MI.Open(file.getAbsolutePath()) > 0) { try { String info = MI.Inform(); MediaInfo.StreamType streamType = MediaInfo....
public synchronized static void parse(DLNAMediaInfo media, InputFile inputFile, int type) { File file = inputFile.getFile(); if (!media.isMediaparsed() && file != null && MI.isValid() && MI.Open(file.getAbsolutePath()) > 0) { try { String info = MI.Inform(); MediaInfo.StreamType streamType = MediaInfo....
diff --git a/src/com/android/providers/media/MediaDocumentsProvider.java b/src/com/android/providers/media/MediaDocumentsProvider.java index b0be20f..fbb44ed 100644 --- a/src/com/android/providers/media/MediaDocumentsProvider.java +++ b/src/com/android/providers/media/MediaDocumentsProvider.java @@ -1,862 +1,862 @@ /*...
true
true
public Cursor queryDocument(String docId, String[] projection) throws FileNotFoundException { final ContentResolver resolver = getContext().getContentResolver(); final MatrixCursor result = new MatrixCursor(resolveDocumentProjection(projection)); final Ident ident = getIdentForDocId(docId); ...
public Cursor queryDocument(String docId, String[] projection) throws FileNotFoundException { final ContentResolver resolver = getContext().getContentResolver(); final MatrixCursor result = new MatrixCursor(resolveDocumentProjection(projection)); final Ident ident = getIdentForDocId(docId); ...
diff --git a/dspace-api/src/main/java/org/dspace/harvest/OAIHarvester.java b/dspace-api/src/main/java/org/dspace/harvest/OAIHarvester.java index 118606b28..c8d9d8443 100644 --- a/dspace-api/src/main/java/org/dspace/harvest/OAIHarvester.java +++ b/dspace-api/src/main/java/org/dspace/harvest/OAIHarvester.java @@ -1,1421 ...
false
true
public void runHarvest() throws SQLException, IOException, AuthorizeException { // figure out the relevant parameters String oaiSource = harvestRow.getOaiSource(); String oaiSetId = harvestRow.getOaiSetId(); //If we have all selected then make sure that we do not include a set filter if("all".eq...
public void runHarvest() throws SQLException, IOException, AuthorizeException { // figure out the relevant parameters String oaiSource = harvestRow.getOaiSource(); String oaiSetId = harvestRow.getOaiSetId(); //If we have all selected then make sure that we do not include a set filter if("all".eq...
diff --git a/classes/test/FloatMath.java b/classes/test/FloatMath.java index 18a7d168..7ef4c864 100644 --- a/classes/test/FloatMath.java +++ b/classes/test/FloatMath.java @@ -1,125 +1,127 @@ package classes.test; public class FloatMath { public static void main(String[] args) { float a = 1f; float b = ...
true
true
public static void main(String[] args) { float a = 1f; float b = 0f; float c; try { c = a / b; } catch (ArithmeticException e) { System.out.println("Caught ArithmeticException as expected: " + e.getMessage()); } try { c = a % b; } catch (ArithmeticException e...
public static void main(String[] args) { float a = 1f; float b = 0f; float c; try { c = a / b; } catch (ArithmeticException e) { System.out.println("Caught ArithmeticException as expected: " + e.getMessage()); } try { c = a % b; } catch (ArithmeticException e...
diff --git a/sub/source/net/sourceforge/texlipse/wizards/TexlipseProjectCreationWizardPage.java b/sub/source/net/sourceforge/texlipse/wizards/TexlipseProjectCreationWizardPage.java index eb3341b..51214e8 100644 --- a/sub/source/net/sourceforge/texlipse/wizards/TexlipseProjectCreationWizardPage.java +++ b/sub/source/net...
false
true
private void createProjectLocationControl(Composite parent) { // create borders Group group = new Group(parent, SWT.NULL); group.setText(TexlipsePlugin.getResourceString("projectWizardLocationTitle")); group.setLayout(new GridLayout()); GridData lgd = new GridData(GridData.F...
private void createProjectLocationControl(Composite parent) { // create borders Group group = new Group(parent, SWT.NULL); group.setText(TexlipsePlugin.getResourceString("projectWizardLocationTitle")); group.setLayout(new GridLayout()); GridData lgd = new GridData(GridData.F...
diff --git a/src/com/fsck/k9/mail/store/WebDavStore.java b/src/com/fsck/k9/mail/store/WebDavStore.java index df1f0a38..4deb228b 100644 --- a/src/com/fsck/k9/mail/store/WebDavStore.java +++ b/src/com/fsck/k9/mail/store/WebDavStore.java @@ -1,2665 +1,2666 @@ package com.fsck.k9.mail.store; import android.util.Log; ...
true
true
public void doFBA() throws IOException, MessagingException { /* public CookieStore doAuthentication(String username, String password, String url) throws IOException, MessagingException {*/ String authPath; String url = this.mUrl; String username = this.mUsername;...
public void doFBA() throws IOException, MessagingException { /* public CookieStore doAuthentication(String username, String password, String url) throws IOException, MessagingException {*/ String authPath; String url = this.mUrl; String username = this.mUsername;...
diff --git a/org.eclipse.riena.ui.swt/src/org/eclipse/riena/ui/swt/BorderControlDecoration.java b/org.eclipse.riena.ui.swt/src/org/eclipse/riena/ui/swt/BorderControlDecoration.java index a36d6e38a..6fce59704 100644 --- a/org.eclipse.riena.ui.swt/src/org/eclipse/riena/ui/swt/BorderControlDecoration.java +++ b/org.eclips...
true
true
private void addControlListeners() { disposeListener = new DisposeListener() { /** * {@inheritDoc} */ public void widgetDisposed(final DisposeEvent event) { dispose(); } }; control.addDisposeListener(disposeListener); controlListener = new ControlListener() { /** * {@inheritDoc} ...
private void addControlListeners() { disposeListener = new DisposeListener() { /** * {@inheritDoc} */ public void widgetDisposed(final DisposeEvent event) { dispose(); } }; control.addDisposeListener(disposeListener); controlListener = new ControlListener() { /** * {@inheritDoc} ...
diff --git a/enunciate-gedcomx-support/src/main/java/org/gedcomx/build/enunciate/rs/ResourceServiceProcessor.java b/enunciate-gedcomx-support/src/main/java/org/gedcomx/build/enunciate/rs/ResourceServiceProcessor.java index 03549c7a..d1cbd7a9 100644 --- a/enunciate-gedcomx-support/src/main/java/org/gedcomx/build/enuncia...
false
true
public ValidationResult processModel(EnunciateFreemarkerModel model, Collection<TypeDeclaration> resourceServiceDefinitions) { ValidationResult result = new ValidationResult(); //todo: error if setter-based resource parameters in the implementation don't carry the annotations defined in the definition, bindi...
public ValidationResult processModel(EnunciateFreemarkerModel model, Collection<TypeDeclaration> resourceServiceDefinitions) { ValidationResult result = new ValidationResult(); //todo: error if setter-based resource parameters in the implementation don't carry the annotations defined in the definition, bindi...
diff --git a/src/frontend/org/voltdb/compiler/VoltCompiler.java b/src/frontend/org/voltdb/compiler/VoltCompiler.java index 552077479..9e1d2f95f 100644 --- a/src/frontend/org/voltdb/compiler/VoltCompiler.java +++ b/src/frontend/org/voltdb/compiler/VoltCompiler.java @@ -1,1071 +1,1072 @@ /* This file is part of VoltDB. ...
true
true
void compileDatabaseNode(DatabaseType database) throws VoltCompilerException { final ArrayList<String> programs = new ArrayList<String>(); final ArrayList<String> schemas = new ArrayList<String>(); final ArrayList<ProcedureDescriptor> procedures = new ArrayList<ProcedureDescriptor>(); ...
void compileDatabaseNode(DatabaseType database) throws VoltCompilerException { final ArrayList<String> programs = new ArrayList<String>(); final ArrayList<String> schemas = new ArrayList<String>(); final ArrayList<ProcedureDescriptor> procedures = new ArrayList<ProcedureDescriptor>(); ...
diff --git a/grails/src/commons/org/codehaus/groovy/grails/commons/DefaultGrailsControllerClass.java b/grails/src/commons/org/codehaus/groovy/grails/commons/DefaultGrailsControllerClass.java index 4818b0ed9..28cabcb54 100644 --- a/grails/src/commons/org/codehaus/groovy/grails/commons/DefaultGrailsControllerClass.java +...
true
true
public DefaultGrailsControllerClass(Class clazz) { super(clazz, CONTROLLER); String uri = SLASH + (StringUtils.isNotBlank(getPackageName()) ? getPackageName().replace('.', '/') + SLASH : "" ) + WordUtils.uncapitalize(getName()); String defaultClosureName = (String)getPropertyValue(DEFAULT_CLOSURE_PROPERTY, Stri...
public DefaultGrailsControllerClass(Class clazz) { super(clazz, CONTROLLER); String uri = SLASH + (StringUtils.isNotBlank(getPackageName()) ? getPackageName().replace('.', '/') + SLASH : "" ) + WordUtils.uncapitalize(getName()); String defaultClosureName = (String)getPropertyValue(DEFAULT_CLOSURE_PROPERTY, Stri...
diff --git a/org.eclipse.riena.tests/src/org/eclipse/riena/ui/ridgets/databinding/DateToStringConverterTest.java b/org.eclipse.riena.tests/src/org/eclipse/riena/ui/ridgets/databinding/DateToStringConverterTest.java index 141f9783e..89c026f1d 100644 --- a/org.eclipse.riena.tests/src/org/eclipse/riena/ui/ridgets/databind...
false
true
public void testDateToStringLocal2() { final Calendar calendarInstance = Calendar.getInstance(); calendarInstance.set(2010, 10, 12, 0, 0, 0); calendarInstance.setTimeZone(TimeZone.getDefault()); final Date date = calendarInstance.getTime(); final DateToStringConverter dateToStringConverter = new DateToStrin...
public void testDateToStringLocal2() { final Calendar calendarInstance = Calendar.getInstance(); calendarInstance.set(2010, 10, 12, 0, 0, 0); calendarInstance.setTimeZone(TimeZone.getDefault()); final Date date = calendarInstance.getTime(); final DateToStringConverter dateToStringConverter = new DateToStrin...
diff --git a/bundles/persistence/org.openhab.persistence.sql/src/main/java/org/openhab/persistence/sql/internal/SqlPersistenceService.java b/bundles/persistence/org.openhab.persistence.sql/src/main/java/org/openhab/persistence/sql/internal/SqlPersistenceService.java index 38468676..1383307b 100644 --- a/bundles/persist...
false
true
public void store(Item item, String alias) { if (initialized) { if (!isConnected()) { connectToDatabase(); } if (isConnected()) { Statement statement = null; try { statement = connection.createStatement(); String sqlCmd = formatAlias(alias, item.getState().toString(), Calendar....
public void store(Item item, String alias) { if (initialized) { if (!isConnected()) { connectToDatabase(); } if (isConnected()) { String sqlCmd = null; Statement statement = null; try { statement = connection.createStatement(); sqlCmd = formatAlias(alias, item.getState().to...
diff --git a/src/myservs/Publish.java b/src/myservs/Publish.java index 6b00e73..3d02697 100644 --- a/src/myservs/Publish.java +++ b/src/myservs/Publish.java @@ -1,139 +1,143 @@ package myservs; import java.io.*; import java.util.Iterator; import java.util.List; import java.util.Map; import java.util.HashMap; ...
false
true
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { // TODO Auto-generated method stub response.setCharacterEncoding("UTF-8"); request.setCharacterEncoding("UTF-8"); DiskFileItemFactory fileItemFactory = new DiskFileItemFactory(); //Set t...
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { // TODO Auto-generated method stub response.setCharacterEncoding("UTF-8"); request.setCharacterEncoding("UTF-8"); DiskFileItemFactory fileItemFactory = new DiskFileItemFactory(); //Set t...
diff --git a/src/main/java/com/edwardhand/mobrider/rider/Rider.java b/src/main/java/com/edwardhand/mobrider/rider/Rider.java index c80423a..14c5bb2 100644 --- a/src/main/java/com/edwardhand/mobrider/rider/Rider.java +++ b/src/main/java/com/edwardhand/mobrider/rider/Rider.java @@ -1,241 +1,241 @@ /* * This file is pa...
false
true
public void setTarget(LivingEntity target) { LivingEntity ride = getRide(); if (ride != null) { if (ride instanceof CraftCreature) { if (EntityUtils.hasNewAI(ride)) { ((CraftCreature) ride).getHandle().b(target instanceof CraftLivingEntity ? ((Cra...
public void setTarget(LivingEntity target) { LivingEntity ride = getRide(); if (ride != null) { if (ride instanceof CraftCreature) { if (EntityUtils.hasNewAI(ride)) { ((CraftCreature) ride).getHandle().b(target instanceof CraftLivingEntity ? ((Cra...