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/ThreeSatExhaustiveSeq.java b/src/ThreeSatExhaustiveSeq.java index 20cbb52..b146f67 100644 --- a/src/ThreeSatExhaustiveSeq.java +++ b/src/ThreeSatExhaustiveSeq.java @@ -1,265 +1,268 @@ import java.util.Arrays; import java.util.Scanner; import java.io.File; import java.io.IOException; import edu.rit...
true
true
public long decide() { long numSats = 0; // Initialize all variables to false. long numConfigurations = 1L; for (int i = 0; i < numVars; i++) { variables[i] = false; numConfigurations <<= 1; } // Now check all possible configura...
public long decide() { long numSats = 0; // Initialize all variables to false. long numConfigurations = 1L; for (int i = 0; i < numVars; i++) { variables[i] = false; numConfigurations <<= 1; } // Now check all possible configura...
diff --git a/sonar-core/src/main/java/org/sonar/core/measure/MeasureFilterSql.java b/sonar-core/src/main/java/org/sonar/core/measure/MeasureFilterSql.java index 54b0d00a00..21a99ef519 100644 --- a/sonar-core/src/main/java/org/sonar/core/measure/MeasureFilterSql.java +++ b/sonar-core/src/main/java/org/sonar/core/measure...
true
true
private void init() { sql.append("SELECT block.id, max(block.rid) as rid, max(block.rootid) as rootid, max(sortval) as sortval"); for (int index = 0; index < filter.getMeasureConditions().size(); index++) { sql.append(", max(crit_").append(index).append(")"); } sql.append(" FROM ("); append...
private void init() { sql.append("SELECT block.id, max(block.rid) as rid, max(block.rootid) as rootid, max(sortval) as sortval"); for (int index = 0; index < filter.getMeasureConditions().size(); index++) { sql.append(", max(crit_").append(index).append(")"); } sql.append(" FROM ("); append...
diff --git a/maven-plugins/maven-eclipse-plugin/src/main/java/org/apache/maven/plugin/eclipse/EclipseClasspathWriter.java b/maven-plugins/maven-eclipse-plugin/src/main/java/org/apache/maven/plugin/eclipse/EclipseClasspathWriter.java index 9fcfdaf80..d8ca44b93 100644 --- a/maven-plugins/maven-eclipse-plugin/src/main/jav...
true
true
protected void write( File projectBaseDir, File basedir, MavenProject project, List referencedReactorArtifacts, EclipseSourceDir[] sourceDirs, List classpathContainers, ArtifactRepository localRepository, ArtifactResolver artifactResolver, ArtifactFactory artifact...
protected void write( File projectBaseDir, File basedir, MavenProject project, List referencedReactorArtifacts, EclipseSourceDir[] sourceDirs, List classpathContainers, ArtifactRepository localRepository, ArtifactResolver artifactResolver, ArtifactFactory artifact...
diff --git a/gdx/src/com/badlogic/gdx/graphics/Texture.java b/gdx/src/com/badlogic/gdx/graphics/Texture.java index 542516503..e52aa8d85 100644 --- a/gdx/src/com/badlogic/gdx/graphics/Texture.java +++ b/gdx/src/com/badlogic/gdx/graphics/Texture.java @@ -1,424 +1,429 @@ /*************************************************...
true
true
public static void invalidateAllTextures (Application app) { List<Texture> managedTexureList = managedTextures.get(app); if (managedTexureList == null) return; if (assetManager == null) { for (int i = 0; i < managedTexureList.size(); i++) { Texture texture = managedTexureList.get(i); texture.reload()...
public static void invalidateAllTextures (Application app) { List<Texture> managedTexureList = managedTextures.get(app); if (managedTexureList == null) return; if (assetManager == null) { for (int i = 0; i < managedTexureList.size(); i++) { Texture texture = managedTexureList.get(i); texture.reload()...
diff --git a/BetterBatteryStats/src/com/asksven/betterbatterystats/data/ReferenceDBHelper.java b/BetterBatteryStats/src/com/asksven/betterbatterystats/data/ReferenceDBHelper.java index a7b758bf..6a3abb8f 100644 --- a/BetterBatteryStats/src/com/asksven/betterbatterystats/data/ReferenceDBHelper.java +++ b/BetterBatterySt...
false
true
protected synchronized List<String> fetchAllKeys(long time) { ArrayList<String> ret = new ArrayList<String>(); try { Cursor c; c = m_db.query(TABLE_NAME, new String[] {"ref_name", "time_created"}, null, null, null, null, "time_created ASC"); try { int numRo...
protected synchronized List<String> fetchAllKeys(long time) { ArrayList<String> ret = new ArrayList<String>(); try { Cursor c; c = m_db.query(TABLE_NAME, new String[] {"ref_name", "time_created"}, null, null, null, null, "time_created ASC"); try { int numRo...
diff --git a/hudson-core/src/main/java/hudson/tasks/test/TestResultAggregator.java b/hudson-core/src/main/java/hudson/tasks/test/TestResultAggregator.java index 0f095274..9c39ee43 100644 --- a/hudson-core/src/main/java/hudson/tasks/test/TestResultAggregator.java +++ b/hudson-core/src/main/java/hudson/tasks/test/TestRes...
true
true
public boolean endRun(MatrixRun run) throws InterruptedException, IOException { AbstractTestResultAction atr = run.getAction(AbstractTestResultAction.class); if (atr != null) { result.add(atr); } return true; }
public boolean endRun(MatrixRun run) throws InterruptedException, IOException { // Fix: 415503 - The Mtrix Run may be null if the sub job is cancelled before it starts if (run != null) { AbstractTestResultAction atr = run.getAction(AbstractTestResultAction.class); if (atr != ...
diff --git a/DroidPlanner/src/com/droidplanner/widgets/tableRow/MissionRow.java b/DroidPlanner/src/com/droidplanner/widgets/tableRow/MissionRow.java index 3f68244d..4aa2637f 100644 --- a/DroidPlanner/src/com/droidplanner/widgets/tableRow/MissionRow.java +++ b/DroidPlanner/src/com/droidplanner/widgets/tableRow/MissionRo...
true
true
private String setupDescription(waypoint waypoint) { String descStr = null; String tmpStr = null; float tmpVal; descStr = ""; switch(waypoint.getCmd().getType()) { case MAV_CMD.MAV_CMD_NAV_WAYPOINT: if(waypoint.missionItem.param1<=0){ descStr = String.format(Locale.ENGLISH, context.getString(R....
private String setupDescription(waypoint waypoint) { String descStr = null; String tmpStr = null; float tmpVal; descStr = ""; switch(waypoint.getCmd().getType()) { case MAV_CMD.MAV_CMD_NAV_WAYPOINT: if(waypoint.missionItem.param1<=0){ descStr = String.format(Locale.ENGLISH, context.getString(R....
diff --git a/src/me/neatmonster/spacertk/plugins/PluginsRequester.java b/src/me/neatmonster/spacertk/plugins/PluginsRequester.java index 8de3b6a..227d002 100644 --- a/src/me/neatmonster/spacertk/plugins/PluginsRequester.java +++ b/src/me/neatmonster/spacertk/plugins/PluginsRequester.java @@ -1,51 +1,47 @@ /* * This ...
false
true
public void run() { try { final URLConnection connection = new URL("http://bukget.org/api/plugins").openConnection(); final BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(connection.getInputStream())); final StringBuffer stringBuffer = new String...
public void run() { try { final URLConnection connection = new URL("http://bukget.org/api/plugins").openConnection(); final BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(connection.getInputStream())); final StringBuffer stringBuffer = new String...
diff --git a/src/rajawali/animation/RotateAroundAnimation3D.java b/src/rajawali/animation/RotateAroundAnimation3D.java index 44392baa..d057ec27 100644 --- a/src/rajawali/animation/RotateAroundAnimation3D.java +++ b/src/rajawali/animation/RotateAroundAnimation3D.java @@ -1,44 +1,44 @@ package rajawali.animation; imp...
true
true
protected void applyTransformation(float interpolatedTime) { float radians = 360f * interpolatedTime * PI_DIV_180; float cosVal = FloatMath.cos(radians) * mDistance; float sinVal = FloatMath.sin(radians) * mDistance; if(mAxis == Axis.Z) { mTransformable3D.setX(mCenter.x + cosVal); mTransformable3D....
protected void applyTransformation(float interpolatedTime) { float radians = 360f * interpolatedTime * PI_DIV_180; float cosVal = FloatMath.cos(radians) * mDistance; float sinVal = FloatMath.sin(radians) * mDistance; if(mAxis == Axis.Z) { mTransformable3D.setX(mCenter.x + cosVal); mTransformable3D....
diff --git a/java/src/com/android/inputmethod/latin/LatinKeyboardBaseView.java b/java/src/com/android/inputmethod/latin/LatinKeyboardBaseView.java index 02683dba..9570da7b 100644 --- a/java/src/com/android/inputmethod/latin/LatinKeyboardBaseView.java +++ b/java/src/com/android/inputmethod/latin/LatinKeyboardBaseView.ja...
true
true
private boolean onModifiedTouchEvent(MotionEvent me, boolean possiblePoly) { int touchX = (int) me.getX() - getPaddingLeft(); int touchY = (int) me.getY() + mVerticalCorrection - getPaddingTop(); final int action = me.getAction(); final long eventTime = me.getEventTime(); int...
private boolean onModifiedTouchEvent(MotionEvent me, boolean possiblePoly) { int touchX = (int) me.getX() - getPaddingLeft(); int touchY = (int) me.getY() + mVerticalCorrection - getPaddingTop(); final int action = me.getAction(); final long eventTime = me.getEventTime(); int...
diff --git a/Core/src/com/serotonin/m2m2/web/dwr/BaseDwr.java b/Core/src/com/serotonin/m2m2/web/dwr/BaseDwr.java index beda8fa4d..44cef8788 100644 --- a/Core/src/com/serotonin/m2m2/web/dwr/BaseDwr.java +++ b/Core/src/com/serotonin/m2m2/web/dwr/BaseDwr.java @@ -1,660 +1,663 @@ /* Copyright (C) 2006-2011 Serotonin ...
false
true
public Map<String, Object> doLongPoll(int pollSessionId) { Map<String, Object> response = new HashMap<String, Object>(); HttpServletRequest httpRequest = WebContextFactory.get().getHttpServletRequest(); User user = Common.getUser(httpRequest); EventDao eventDao = new EventDao(); ...
public Map<String, Object> doLongPoll(int pollSessionId) { Map<String, Object> response = new HashMap<String, Object>(); HttpServletRequest httpRequest = WebContextFactory.get().getHttpServletRequest(); User user = Common.getUser(httpRequest); EventDao eventDao = new EventDao(); ...
diff --git a/src/bpf/Communication.java b/src/bpf/Communication.java index fca2206..4884d9e 100644 --- a/src/bpf/Communication.java +++ b/src/bpf/Communication.java @@ -1,81 +1,82 @@ package bpf; import java.net.Inet4Address; import java.net.InetAddress; import java.net.InterfaceAddress; import java.net.NetworkI...
false
true
public InetAddress getBroadcastAddress(String interfaceName) { System.setProperty("java.net.preferIPv4Stack", "true"); try { Enumeration<NetworkInterface> niEnum = NetworkInterface .getNetworkInterfaces(); while (niEnum.hasMoreElements()) { NetworkInterface ni = niEnum.nextElement(); if (!ni.isL...
public InetAddress getBroadcastAddress(String interfaceName) { System.setProperty("java.net.preferIPv4Stack", "true"); try { Enumeration<NetworkInterface> niEnum = NetworkInterface .getNetworkInterfaces(); while (niEnum.hasMoreElements()) { NetworkInterface ni = niEnum.nextElement(); if (!ni.isL...
diff --git a/bupro/src/main/java/cz/cvut/fel/bupro/controller/ProjectController.java b/bupro/src/main/java/cz/cvut/fel/bupro/controller/ProjectController.java index 4818fbb..62ac777 100644 --- a/bupro/src/main/java/cz/cvut/fel/bupro/controller/ProjectController.java +++ b/bupro/src/main/java/cz/cvut/fel/bupro/controlle...
true
true
public String saveProject(@Valid Project project, BindingResult bindingResult, Model model, Locale locale) { User user = securityService.getCurrentUser(); if (bindingResult.hasErrors()) { log(bindingResult.getAllErrors()); Collection<ProjectCourse> courses = courseService.getProjectCourses(locale); return...
public String saveProject(@Valid Project project, BindingResult bindingResult, Model model, Locale locale) { User user = securityService.getCurrentUser(); if (bindingResult.hasErrors()) { log(bindingResult.getAllErrors()); Collection<ProjectCourse> courses = courseService.getProjectCourses(locale); return...
diff --git a/src/ExportModules/Plain.java b/src/ExportModules/Plain.java index 6698289..1267963 100644 --- a/src/ExportModules/Plain.java +++ b/src/ExportModules/Plain.java @@ -1,61 +1,62 @@ /** * This file is part of ImportPlain library (check README). * Copyright (C) 2012-2013 Stanislav Nepochatov * * This ...
true
true
protected void doExport() throws Exception { String fileName; //TODO: make this part according to specs. switch (this.currSchema.currConfig.getProperty("plain_naming")) { case "HEADER": fileName = this.exportedMessage.HEADER; break; cas...
protected void doExport() throws Exception { String fileName; //TODO: make this part according to specs. switch (this.currSchema.currConfig.getProperty("plain_naming")) { case "HEADER": fileName = this.exportedMessage.HEADER; break; cas...
diff --git a/DrinkingApp/src/com/example/drinkingapp/DailySurvey5.java b/DrinkingApp/src/com/example/drinkingapp/DailySurvey5.java index 905e172..cfc5fb3 100644 --- a/DrinkingApp/src/com/example/drinkingapp/DailySurvey5.java +++ b/DrinkingApp/src/com/example/drinkingapp/DailySurvey5.java @@ -1,120 +1,118 @@ package co...
true
true
public void onClick(View arg0) { // TODO Auto-generated method stub switch(arg0.getId()){ /* case R.id.bDS2Record: break; */ //checks which checklist is check and input //that value in a string to pass onto the database function to parse case R.id.bDS5Finish: for (int x=0;x<optionListTop.si...
public void onClick(View arg0) { // TODO Auto-generated method stub switch(arg0.getId()){ /* case R.id.bDS2Record: break; */ //checks which checklist is check and input //that value in a string to pass onto the database function to parse case R.id.bDS5Finish: for (int x=0;x<optionListTop.si...
diff --git a/src/java/org/apache/hadoop/mapred/ReduceTask.java b/src/java/org/apache/hadoop/mapred/ReduceTask.java index a7ebacae7..8d1c32559 100644 --- a/src/java/org/apache/hadoop/mapred/ReduceTask.java +++ b/src/java/org/apache/hadoop/mapred/ReduceTask.java @@ -1,320 +1,323 @@ /** * Copyright 2005 The Apache Soft...
false
true
public void run(JobConf job, final TaskUmbilicalProtocol umbilical) throws IOException { Class keyClass = job.getMapOutputKeyClass(); Class valueClass = job.getMapOutputValueClass(); Reducer reducer = (Reducer)job.newInstance(job.getReducerClass()); reducer.configure(job); FileSystem lfs = Fil...
public void run(JobConf job, final TaskUmbilicalProtocol umbilical) throws IOException { Class keyClass = job.getMapOutputKeyClass(); Class valueClass = job.getMapOutputValueClass(); Reducer reducer = (Reducer)job.newInstance(job.getReducerClass()); reducer.configure(job); FileSystem lfs = Fil...
diff --git a/src/main/java/ch/ethz/nlp/headline/preprocessing/ContentSanitizer.java b/src/main/java/ch/ethz/nlp/headline/preprocessing/ContentSanitizer.java index 3f209b8..3bce334 100644 --- a/src/main/java/ch/ethz/nlp/headline/preprocessing/ContentSanitizer.java +++ b/src/main/java/ch/ethz/nlp/headline/preprocessing/C...
false
true
public String preprocess(String content) { // Drop prefixes such as: BRUSSELS, Belgium (AP) - content = content.replaceAll(".+ \\(AP|Xinhua\\) (--|_|-) ", ""); // Drop prefixes such as WASHINGTON _ content = content.replaceAll("([A-Z]| )+ _ ", ""); // Normalize Q & A article with formatting content = con...
public String preprocess(String content) { // Drop prefixes such as: BRUSSELS, Belgium (AP) - content = content.replaceAll(".+ \\((AP|Xinhua)\\) (--|_|-) ", ""); // Drop prefixes such as WASHINGTON _ content = content.replaceAll("([A-Z]| )+(, \\w+)? _ ", ""); // Normalize Q & A article with formatting co...
diff --git a/spock-core/src/main/java/org/spockframework/runtime/SpockRuntime.java b/spock-core/src/main/java/org/spockframework/runtime/SpockRuntime.java index 1aa62c9c..26760163 100755 --- a/spock-core/src/main/java/org/spockframework/runtime/SpockRuntime.java +++ b/spock-core/src/main/java/org/spockframework/runtime...
true
true
public static void verifyMethodCondition(@Nullable ValueRecorder recorder, @Nullable String text, int line, int column, @Nullable Object message, Object target, String method, Object[] args, boolean safe, boolean explicit) { MatcherCondition matcherCondition = MatcherCondition.parse(target, method, args, sa...
public static void verifyMethodCondition(@Nullable ValueRecorder recorder, @Nullable String text, int line, int column, @Nullable Object message, Object target, String method, Object[] args, boolean safe, boolean explicit) { MatcherCondition matcherCondition = MatcherCondition.parse(target, method, args, sa...
diff --git a/geogebra/geogebra/kernel/Kernel.java b/geogebra/geogebra/kernel/Kernel.java index 31bb2d97e..fdda9f158 100644 --- a/geogebra/geogebra/kernel/Kernel.java +++ b/geogebra/geogebra/kernel/Kernel.java @@ -1,7534 +1,7535 @@ /* GeoGebra - Dynamic Mathematics for Everyone http://www.geogebra.org This file i...
false
true
final public GeoElement If(String label, GeoBoolean condition, GeoElement geoIf, GeoElement geoElse) { // check if geoIf and geoElse are of same type /* if (geoElse == null || geoIf.isNumberValue() && geoElse.isNumberValue() || geoIf.getTypeString().equals(geoElse.getTypeString())) {*/ AlgoIf ...
final public GeoElement If(String label, GeoBoolean condition, GeoElement geoIf, GeoElement geoElse) { // check if geoIf and geoElse are of same type /* if (geoElse == null || geoIf.isNumberValue() && geoElse.isNumberValue() || geoIf.getTypeString().equals(geoElse.getTypeString())) {*/ AlgoIf ...
diff --git a/expenditure-tracking/src/pt/ist/expenditureTrackingSystem/domain/acquisitions/activities/commons/AllocateProjectFundsPermanently.java b/expenditure-tracking/src/pt/ist/expenditureTrackingSystem/domain/acquisitions/activities/commons/AllocateProjectFundsPermanently.java index 4b2b7d1d..c1f65601 100644 --- a...
true
true
public boolean isActive(P process, User user) { return process.isProjectAccountingEmployee(user.getExpenditurePerson()) && isUserProcessOwner(process, user) && !process.hasAllocatedFundsPermanentlyForAllProjectFinancers() && (!process.hasAllInvoicesAllocatedInProject() || (ExpenditureTrackingSystem.isInvo...
public boolean isActive(P process, User user) { return process.isProjectAccountingEmployee(user.getExpenditurePerson()) && isUserProcessOwner(process, user) && !process.hasAllocatedFundsPermanentlyForAllProjectFinancers() && process.isInvoiceConfirmed() && (!process.hasAllInvoicesAllocatedInProject() || ...
diff --git a/src/org/red5/server/stream/ClientBroadcastStream.java b/src/org/red5/server/stream/ClientBroadcastStream.java index cc034cb9..9c3d9736 100644 --- a/src/org/red5/server/stream/ClientBroadcastStream.java +++ b/src/org/red5/server/stream/ClientBroadcastStream.java @@ -1,809 +1,815 @@ package org.red5.server....
false
true
public void dispatchEvent(IEvent event) { if (!(event instanceof IRTMPEvent) && (event.getType() != IEvent.Type.STREAM_CONTROL) && (event.getType() != IEvent.Type.STREAM_DATA) || closed) { // ignored event if (log.isDebugEnabled()) { log.debug("dispatchEvent: " + event.getType()); } return; ...
public void dispatchEvent(IEvent event) { if (!(event instanceof IRTMPEvent) && (event.getType() != IEvent.Type.STREAM_CONTROL) && (event.getType() != IEvent.Type.STREAM_DATA) || closed) { // ignored event if (log.isDebugEnabled()) { log.debug("dispatchEvent: " + event.getType()); } return; ...
diff --git a/java/DefaultSQLBuilder.java b/java/DefaultSQLBuilder.java index 9127628..b68432d 100644 --- a/java/DefaultSQLBuilder.java +++ b/java/DefaultSQLBuilder.java @@ -1,665 +1,663 @@ /* * GeoTools - OpenSource mapping toolkit * http://geotools.org * (C) 2003-2006, GeoTools Project Managment Commit...
true
true
public String buildSQLQuery(String typeName, FIDMapper mapper, AttributeType[] attrTypes, Filter filter, SortBy[] sortBy, Integer offset, Integer limit) throws SQLEncoderException { StringBuffer sqlBuffer = new StringBuffer(); String...
public String buildSQLQuery(String typeName, FIDMapper mapper, AttributeType[] attrTypes, Filter filter, SortBy[] sortBy, Integer offset, Integer limit) throws SQLEncoderException { StringBuffer sqlBuffer = new StringBuffer(); String...
diff --git a/src/main/java/com/janrain/InitSystemProps.java b/src/main/java/com/janrain/InitSystemProps.java index 3e76a50..2f31eef 100644 --- a/src/main/java/com/janrain/InitSystemProps.java +++ b/src/main/java/com/janrain/InitSystemProps.java @@ -1,116 +1,116 @@ /* * Copyright 2012 Janrain, Inc. * * Licensed u...
true
true
private InitSystemProps() { logger.info("Verifying external parameters required to start"); load(BP_AWS_INSTANCE_ID); load(BP_EMAIL_DOMAIN ); load(BP_EMAIL_TARGET); load(AWS_ACCESS_KEY_ID); load(AWS_SECRET_KEY); load(SMTP); load(FROM); logger....
private InitSystemProps() { logger.info("Verifying external parameters required to start"); load(BP_AWS_INSTANCE_ID); load(BP_EMAIL_DOMAIN ); load(BP_EMAIL_TARGET); load(AWS_ACCESS_KEY_ID); load(AWS_SECRET_KEY); load(SMTP); load(FROM); logger....
diff --git a/support/src/main/java/org/springframework/richclient/security/remoting/BasicAuthHttpInvokerRequestExecutor.java b/support/src/main/java/org/springframework/richclient/security/remoting/BasicAuthHttpInvokerRequestExecutor.java index 871d5224..861b6520 100644 --- a/support/src/main/java/org/springframework/r...
true
true
protected void prepareConnection(HttpURLConnection con, int contentLength) throws IOException { super.prepareConnection( con, contentLength ); Authentication auth = getAuthenticationToken(); if( (auth != null) && (auth.getPrincipal() != null) && (auth.getCredentials() != null) ) { ...
protected void prepareConnection(HttpURLConnection con, int contentLength) throws IOException { super.prepareConnection( con, contentLength ); Authentication auth = getAuthenticationToken(); if( (auth != null) && (auth.getName() != null) && (auth.getCredentials() != null) ) { ...
diff --git a/JavaSource/org/unitime/timetable/action/EditRoomAction.java b/JavaSource/org/unitime/timetable/action/EditRoomAction.java index afa2ab05..d894d2e7 100644 --- a/JavaSource/org/unitime/timetable/action/EditRoomAction.java +++ b/JavaSource/org/unitime/timetable/action/EditRoomAction.java @@ -1,453 +1,455 @@ ...
true
true
public ActionForward execute( ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception{ EditRoomForm editRoomForm = (EditRoomForm) form; HttpSession webSession = request.getSession(); if (!Web.isLoggedIn(webSession)) { throw new Exception("Acce...
public ActionForward execute( ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception{ EditRoomForm editRoomForm = (EditRoomForm) form; HttpSession webSession = request.getSession(); if (!Web.isLoggedIn(webSession)) { throw new Exception("Acce...
diff --git a/oak-core/src/main/java/org/apache/jackrabbit/oak/spi/query/Filter.java b/oak-core/src/main/java/org/apache/jackrabbit/oak/spi/query/Filter.java index 2168144be6..8cf5b18ceb 100644 --- a/oak-core/src/main/java/org/apache/jackrabbit/oak/spi/query/Filter.java +++ b/oak-core/src/main/java/org/apache/jackrabbit...
true
true
public String toString() { String f = first == null ? "" : first.toString(); String l = last == null ? "" : last.toString(); if (f.equals(l)) { return f; } return (firstIncluding ? "[" : "(") + f + ".." + l + (lastIn...
public String toString() { String f = first == null ? "" : first.toString(); String l = last == null ? "" : last.toString(); if (f.equals(l)) { return f; } String fi = first == null ? "" : (firstIncluding ? "[" : "("); Strin...
diff --git a/src/edu/cwru/SimpleRTS/agent/Planner.java b/src/edu/cwru/SimpleRTS/agent/Planner.java index 5391042..d82dfe5 100644 --- a/src/edu/cwru/SimpleRTS/agent/Planner.java +++ b/src/edu/cwru/SimpleRTS/agent/Planner.java @@ -1,515 +1,518 @@ package edu.cwru.SimpleRTS.agent; import java.io.*; import java.util.*...
false
true
public Map<Integer, Action> generatePlan(Integer startId, Integer goalId, StateView state) { Map<Integer, Action> actions = new HashMap<Integer, Action>(); STRIP startSpace = new STRIP(); startSpace.unit = state.getUnit(startId); //starting space startSpace.gold.addAll(gold); STRIP goalSpace = new STR...
public Map<Integer, Action> generatePlan(Integer startId, Integer goalId, StateView state) { Map<Integer, Action> actions = new HashMap<Integer, Action>(); STRIP startSpace = new STRIP(); startSpace.unit = state.getUnit(startId); //starting space startSpace.gold.addAll(goldList); startSpace.lumber.addAll...
diff --git a/HttpdConfigParser/src/org/akquinet/audit/bsi/httpd/Quest6.java b/HttpdConfigParser/src/org/akquinet/audit/bsi/httpd/Quest6.java index 9268b43..2454a2c 100644 --- a/HttpdConfigParser/src/org/akquinet/audit/bsi/httpd/Quest6.java +++ b/HttpdConfigParser/src/org/akquinet/audit/bsi/httpd/Quest6.java @@ -1,86 +1...
false
true
public boolean answer() { //TODO: test! try { Process p = _httpd.start(); _stdErr = p.getErrorStream(); int exit = p.waitFor(); if(exit == 0) { _console.printAnswer(_level, true, "Syntax of main configuration file OK."); return true; } else { _console.printAnswer(_level, ...
public boolean answer() { //TODO: test! try { Process p = _httpd.start(); _stdErr = p.getErrorStream(); int exit = p.waitFor(); if(exit == 0) { _console.printAnswer(_level, true, "Syntax of main configuration file OK."); return true; } else { _console.printAnswer(_level, ...
diff --git a/src/main/java/de/puzzles/webapp/page/newrequest/steps/InsuranceStep.java b/src/main/java/de/puzzles/webapp/page/newrequest/steps/InsuranceStep.java index 3ef89eb..34a55d8 100644 --- a/src/main/java/de/puzzles/webapp/page/newrequest/steps/InsuranceStep.java +++ b/src/main/java/de/puzzles/webapp/page/newrequ...
true
true
public InsuranceStep() { super(); final WebMarkupContainer container = new WebMarkupContainer("insuranceContainer"); container.setOutputMarkupId(true); insuranceList.add(new Transaction()); final ListEditor<Transaction> insurance = new ListEditor<Transaction>("insurance", new...
public InsuranceStep() { super(); final WebMarkupContainer container = new WebMarkupContainer("insuranceContainer"); container.setOutputMarkupId(true); insuranceList.add(new Transaction()); final ListEditor<Transaction> insurance = new ListEditor<Transaction>("insurance", new...
diff --git a/src/uploadedto/cz/vity/freerapid/plugins/services/uploadedto/TestApp.java b/src/uploadedto/cz/vity/freerapid/plugins/services/uploadedto/TestApp.java index 3343ab44..7a4a4438 100644 --- a/src/uploadedto/cz/vity/freerapid/plugins/services/uploadedto/TestApp.java +++ b/src/uploadedto/cz/vity/freerapid/plugin...
true
true
protected void startup() { final HttpFile httpFile = getHttpFile(); //creates new test instance of HttpFile try { //we set file URL httpFile.setNewURL(new URL("http://uploaded.to/?id=pjpukf")); //the way we connect to the internet final ConnectionSetti...
protected void startup() { final HttpFile httpFile = getHttpFile(); //creates new test instance of HttpFile try { //we set file URL httpFile.setNewURL(new URL("http://ul.to/foi32a")); //the way we connect to the internet final ConnectionSettings connec...
diff --git a/src/test/java/net/guipsp/gindex/IndexTest.java b/src/test/java/net/guipsp/gindex/IndexTest.java index 983a4b0..bbac3ed 100644 --- a/src/test/java/net/guipsp/gindex/IndexTest.java +++ b/src/test/java/net/guipsp/gindex/IndexTest.java @@ -1,17 +1,17 @@ package net.guipsp.gindex; import org.junit.Test; im...
true
true
public void count() { assertThat("Unexpected number of classes indexed", index.INDEX.length, is(3)); }
public void count() { assertThat("Unexpected number of classes indexed", index.INDEX.length, is(2)); }
diff --git a/ic-depress-data-anonymisation/src/org/impressivecode/depress/data/anonymisation/AnonymisationNodeModel.java b/ic-depress-data-anonymisation/src/org/impressivecode/depress/data/anonymisation/AnonymisationNodeModel.java index 392bf8d0..32f582d8 100644 --- a/ic-depress-data-anonymisation/src/org/impressivecod...
true
true
private ColumnRearranger createColumnRearranger(final DataTableSpec spec) throws InvalidSettingsException { // check user settings against input spec here // fail with InvalidSettingsException if invalid ColumnRearranger result = new ColumnRearranger(spec); for (String colName : filt...
private ColumnRearranger createColumnRearranger(final DataTableSpec spec) throws InvalidSettingsException { // check user settings against input spec here // fail with InvalidSettingsException if invalid ColumnRearranger result = new ColumnRearranger(spec); for (String colName : filt...
diff --git a/Server/src/battleships/server/Session.java b/Server/src/battleships/server/Session.java index 7174f95..b2e3669 100644 --- a/Server/src/battleships/server/Session.java +++ b/Server/src/battleships/server/Session.java @@ -1,266 +1,266 @@ package battleships.server; import java.io.BufferedWriter; import ...
true
true
private void enterGameLoop(){ boolean loop=true; Coordinate shotCoordinate=null; Ship hitShip=null; while(loop){ //reset isHit=false; isSunk=false; grantTurn=false; finished=false; hitShip=null; shotCoordinate=null; //Read message if(player[currentPlayer]!=null){ //a...
private void enterGameLoop(){ boolean loop=true; Coordinate shotCoordinate=null; Ship hitShip=null; while(loop){ //reset isHit=false; isSunk=false; grantTurn=false; finished=false; hitShip=null; shotCoordinate=null; //Read message if(player[currentPlayer]!=null){ //a...
diff --git a/stella-core/src/main/java/br/com/caelum/stella/validation/InvalidStateException.java b/stella-core/src/main/java/br/com/caelum/stella/validation/InvalidStateException.java index 5f4d2f61..214babe0 100644 --- a/stella-core/src/main/java/br/com/caelum/stella/validation/InvalidStateException.java +++ b/stella...
true
true
public InvalidStateException(List<ValidationMessage> validationMessages) { this.validationMessages = validationMessages; }
public InvalidStateException(List<ValidationMessage> validationMessages) { super("Validation errors: " + validationMessages); this.validationMessages = validationMessages; }
diff --git a/src/com/librelio/adapter/MagazineAdapter.java b/src/com/librelio/adapter/MagazineAdapter.java index a100743..be64c09 100644 --- a/src/com/librelio/adapter/MagazineAdapter.java +++ b/src/com/librelio/adapter/MagazineAdapter.java @@ -1,209 +1,210 @@ package com.librelio.adapter; import java.io.File; imp...
true
true
public View getView(int position, View convertView, ViewGroup parent) { final Magazine currentMagazine = magazine.get(position); MagazineItemHolder holder = new MagazineItemHolder(); if(convertView == null){ convertView = LayoutInflater.from(context).inflate(R.layout.magazine_list_item, null); holder.ti...
public View getView(int position, View convertView, ViewGroup parent) { final Magazine currentMagazine = magazine.get(position); MagazineItemHolder holder = new MagazineItemHolder(); if(convertView == null){ convertView = LayoutInflater.from(context).inflate(R.layout.magazine_list_item, null); holder.ti...
diff --git a/vaadin-touchkit-agpl/src/test/java/com/vaadin/addon/touchkit/itest/oldtests/ButtonsInComponentGroups.java b/vaadin-touchkit-agpl/src/test/java/com/vaadin/addon/touchkit/itest/oldtests/ButtonsInComponentGroups.java index d37d04c..9f70606 100644 --- a/vaadin-touchkit-agpl/src/test/java/com/vaadin/addon/touch...
true
true
public ButtonsInComponentGroups() { NavigationView navigationView = new NavigationView(); navigationView.setCaption("Buttons in various places"); CssLayout l = new CssLayout(); // l.setMargin(true); l.addComponent(new Button("Button not in a component group")); ...
public ButtonsInComponentGroups() { NavigationView navigationView = new NavigationView(); navigationView.setCaption("Buttons in various places"); CssLayout l = new CssLayout(); // l.setMargin(true); l.addComponent(new Button("Button not in a component group")); ...
diff --git a/chassis/coordinator.http/src/main/java/com/griddynamics/jagger/coordinator/http/client/ExchangeClient.java b/chassis/coordinator.http/src/main/java/com/griddynamics/jagger/coordinator/http/client/ExchangeClient.java index 9db897e..aabd44f 100644 --- a/chassis/coordinator.http/src/main/java/com/griddynamics...
true
true
public PackResponse exchange() throws Throwable { log.debug("Exchange requested from agent {}", nodeContext.getId()); Pack out = packExchanger.retrieve(); log.debug("Going to send pack {} from agent {}", out, nodeContext.getId()); PackRequest request = PackRequest.create(nodeContext....
public PackResponse exchange() throws Throwable { log.debug("Exchange requested from agent {}", nodeContext.getId()); Pack out = packExchanger.retrieve(); if (out.getCommands().isEmpty() && out.getResults().isEmpty()){ //Nothing to send return null; } ...
diff --git a/src/java/com/daveoxley/cnery/Version.java b/src/java/com/daveoxley/cnery/Version.java index 94baeed..2438461 100644 --- a/src/java/com/daveoxley/cnery/Version.java +++ b/src/java/com/daveoxley/cnery/Version.java @@ -1,33 +1,33 @@ /** * C-Nery - A home automation web application for C-Bus. * Copyrigh...
true
true
public static String getVersion() { return "0.3.0-dev"; }
public static String getVersion() { return "0.2.2-dev"; }
diff --git a/pace-base/src/main/java/com/pace/base/project/excel/elements/ApplicationDefExcelElementItem.java b/pace-base/src/main/java/com/pace/base/project/excel/elements/ApplicationDefExcelElementItem.java index 9599dbbc..6fc48748 100644 --- a/pace-base/src/main/java/com/pace/base/project/excel/elements/ApplicationD...
false
true
public T readExcelSheet() throws PaceProjectReadException, PafException { logger.debug("Reading application def."); PafExcelInput input = new PafExcelInput.Builder(getWorkbook(), getSheetName(), getHeaderListMap().get(getSheetName()).size()) .headerListMap(getHeaderListMap()) .excludeHeader...
public T readExcelSheet() throws PaceProjectReadException, PafException { logger.debug("Reading application def."); PafExcelInput input = new PafExcelInput.Builder(getWorkbook(), getSheetName(), getHeaderListMap().get(getSheetName()).size()) .headerListMap(getHeaderListMap()) .excludeHeader...
diff --git a/src/de/ueller/midlet/gps/tile/SearchNames.java b/src/de/ueller/midlet/gps/tile/SearchNames.java index b50d682f..c3f4ca54 100644 --- a/src/de/ueller/midlet/gps/tile/SearchNames.java +++ b/src/de/ueller/midlet/gps/tile/SearchNames.java @@ -1,209 +1,214 @@ package de.ueller.midlet.gps.tile; /* * GpsMid - ...
true
true
private void doSearch(String search) throws IOException { try { //#debug System.out.println("search"); String fn=search.substring(0,2); String compare=search.substring(2); StringBuffer current=new StringBuffer(); synchronized(this) { stopSearch=false; if (newSearch){ gui.clearList(); ...
private void doSearch(String search) throws IOException { try { //#debug System.out.println("search"); String fn=search.substring(0,2); String compare=search.substring(2); StringBuffer current=new StringBuffer(); synchronized(this) { stopSearch=false; if (newSearch){ gui.clearList(); ...
diff --git a/src/com/redhat/ceylon/compiler/loader/AbstractModelLoader.java b/src/com/redhat/ceylon/compiler/loader/AbstractModelLoader.java index fd100b1f9..fa637076f 100644 --- a/src/com/redhat/ceylon/compiler/loader/AbstractModelLoader.java +++ b/src/com/redhat/ceylon/compiler/loader/AbstractModelLoader.java @@ -1,2...
true
true
private void complete(ClassOrInterface klass, ClassMirror classMirror) { Map<MethodMirror, List<MethodMirror>> variables = new HashMap<MethodMirror, List<MethodMirror>>(); boolean isFromJDK = isFromJDK(classMirror); boolean isCeylon = (classMirror.getAnnotation(CEYLON_CEYLON_ANNOTATION) != n...
private void complete(ClassOrInterface klass, ClassMirror classMirror) { Map<MethodMirror, List<MethodMirror>> variables = new HashMap<MethodMirror, List<MethodMirror>>(); boolean isFromJDK = isFromJDK(classMirror); boolean isCeylon = (classMirror.getAnnotation(CEYLON_CEYLON_ANNOTATION) != n...
diff --git a/src/test/java/com/zsoltfabok/blog/WebTextMungerStepsdef.java b/src/test/java/com/zsoltfabok/blog/WebTextMungerStepsdef.java index ea7a7a5..c90c633 100644 --- a/src/test/java/com/zsoltfabok/blog/WebTextMungerStepsdef.java +++ b/src/test/java/com/zsoltfabok/blog/WebTextMungerStepsdef.java @@ -1,62 +1,62 @@ ...
true
true
public void I_am_using_Firefox_for_testing() { browser = new FirefoxDriver(); }
public void I_am_using_Firefox_browser_for_testing() { browser = new FirefoxDriver(); }
diff --git a/src/org/andengine/extension/debugdraw/DebugRenderer.java b/src/org/andengine/extension/debugdraw/DebugRenderer.java index 9b24243..837dd84 100644 --- a/src/org/andengine/extension/debugdraw/DebugRenderer.java +++ b/src/org/andengine/extension/debugdraw/DebugRenderer.java @@ -1,245 +1,246 @@ package org.an...
false
true
protected void onManagedUpdate(float pSecondsElapsed) { super.onManagedUpdate(pSecondsElapsed); Iterator<Body> iterator = mWorld.getBodies(); while (iterator.hasNext()) { Body body = iterator.next(); RenderOfBody renderOfBody; if (!mToBeRenderred.containsKey(body)) { renderOfBody = new RenderOfBody...
protected void onManagedUpdate(float pSecondsElapsed) { super.onManagedUpdate(pSecondsElapsed); Iterator<Body> iterator = mWorld.getBodies(); while (iterator.hasNext()) { Body body = iterator.next(); RenderOfBody renderOfBody; if (!mToBeRenderred.containsKey(body)) { renderOfBody = new RenderOfBody...
diff --git a/web/src/main/java/org/openmrs/web/taglib/ForEachEncounterTag.java b/web/src/main/java/org/openmrs/web/taglib/ForEachEncounterTag.java index accde2ea..7ca97f44 100644 --- a/web/src/main/java/org/openmrs/web/taglib/ForEachEncounterTag.java +++ b/web/src/main/java/org/openmrs/web/taglib/ForEachEncounterTag.ja...
true
true
public int doStartTag() { if (encounters == null || encounters.isEmpty()) { log.debug("ForEachEncounterTag skipping body due to 'encounters' param = " + encounters); return SKIP_BODY; } // First retrieve all encounters matching the passed encounter type id, if provided. // If not provided, return all enc...
public int doStartTag() { if (encounters == null || encounters.isEmpty()) { log.debug("ForEachEncounterTag skipping body due to 'encounters' param = " + encounters); return SKIP_BODY; } // First retrieve all encounters matching the passed encounter type id, if provided. // If not provided, return all enc...
diff --git a/src/main/java/net/pms/encoders/MEncoderVideo.java b/src/main/java/net/pms/encoders/MEncoderVideo.java index 0d6979c57..4c58854c9 100644 --- a/src/main/java/net/pms/encoders/MEncoderVideo.java +++ b/src/main/java/net/pms/encoders/MEncoderVideo.java @@ -1,2551 +1,2551 @@ /* * PS3 Media Server, for streami...
true
true
public ProcessWrapper launchTranscode( String fileName, DLNAResource dlna, DLNAMediaInfo media, OutputParams params ) throws IOException { params.manageFastStart(); boolean avisynth = avisynth(); setAudioAndSubs(fileName, media, params, configuration); String externalSubtitlesFileName = null; if ...
public ProcessWrapper launchTranscode( String fileName, DLNAResource dlna, DLNAMediaInfo media, OutputParams params ) throws IOException { params.manageFastStart(); boolean avisynth = avisynth(); setAudioAndSubs(fileName, media, params, configuration); String externalSubtitlesFileName = null; if ...
diff --git a/src/com/ModDamage/Expressions/Function/DistanceFunction.java b/src/com/ModDamage/Expressions/Function/DistanceFunction.java index d54d757..5fcee36 100644 --- a/src/com/ModDamage/Expressions/Function/DistanceFunction.java +++ b/src/com/ModDamage/Expressions/Function/DistanceFunction.java @@ -1,92 +1,92 @@ ...
false
true
public static void register() { DataProvider.register(Integer.class, Pattern.compile("(dist(?:ance)?)\\s*\\("), new BaseDataParser<Integer>() { @Override public IDataProvider<Integer> parse(EventInfo info, Matcher m, StringMatcher sm) { @SuppressWarnings("unchecked") IDataProvider<Location>...
public static void register() { DataProvider.register(Integer.class, Pattern.compile("(dist(?:ance)?)\\s*\\("), new BaseDataParser<Integer>() { @Override public IDataProvider<Integer> parse(EventInfo info, Matcher m, StringMatcher sm) { @SuppressWarnings("unchecked") IDataProvider<Location>...
diff --git a/src/org/barbon/mangaget/data/DB.java b/src/org/barbon/mangaget/data/DB.java index 7ed7b24..d6c7eec 100644 --- a/src/org/barbon/mangaget/data/DB.java +++ b/src/org/barbon/mangaget/data/DB.java @@ -1,260 +1,260 @@ /* * Copyright (c) Mattia Barbon <mattia@barbon.org> * distributed under the terms of the ...
true
true
public void onCreate(SQLiteDatabase db) { db.execSQL(CREATE_MANGA_TABLE); db.execSQL(CREATE_CHAPTERS_TABLE); db.execSQL(CREATE_PAGES_TABLE); // TODO remove canned data db.execSQL( "INSERT INTO manga (id, title, pattern, url)" + ...
public void onCreate(SQLiteDatabase db) { db.execSQL(CREATE_MANGA_TABLE); db.execSQL(CREATE_CHAPTERS_TABLE); db.execSQL(CREATE_PAGES_TABLE); // TODO remove canned data db.execSQL( "INSERT INTO manga (id, title, pattern, url)" + ...
diff --git a/bundles/org.eclipse.orion.server.servlets/src/org/eclipse/orion/internal/server/servlets/site/SiteConfigurationServlet.java b/bundles/org.eclipse.orion.server.servlets/src/org/eclipse/orion/internal/server/servlets/site/SiteConfigurationServlet.java index 30affb54..21945b0e 100644 --- a/bundles/org.eclipse...
true
true
private boolean doGetAllSiteConfigurations(HttpServletRequest req, HttpServletResponse resp) throws ServletException { String userName = getUserName(req); try { UserInfo user = OrionConfiguration.getMetaStore().readUser(userName); //user info stores an object where key is site id, value is site info, but we ...
private boolean doGetAllSiteConfigurations(HttpServletRequest req, HttpServletResponse resp) throws ServletException { String userName = getUserName(req); try { UserInfo user = OrionConfiguration.getMetaStore().readUser(userName); //user info stores an object where key is site id, value is site info, but we ...
diff --git a/ws-security-stax/src/main/java/org/apache/wss4j/stax/impl/processor/output/BinarySecurityTokenOutputProcessor.java b/ws-security-stax/src/main/java/org/apache/wss4j/stax/impl/processor/output/BinarySecurityTokenOutputProcessor.java index 00db1c2f6..563bb5155 100644 --- a/ws-security-stax/src/main/java/org/...
true
true
public void processEvent(XMLSecEvent xmlSecEvent, OutputProcessorChain outputProcessorChain) throws XMLStreamException, XMLSecurityException { try { final String bstId; final X509Certificate[] x509Certificates; String reference = null; Key key = null; ...
public void processEvent(XMLSecEvent xmlSecEvent, OutputProcessorChain outputProcessorChain) throws XMLStreamException, XMLSecurityException { try { final String bstId; final X509Certificate[] x509Certificates; String reference = null; Key key = null; ...
diff --git a/java/marytts/tools/voiceimport/HnmTimelineMaker.java b/java/marytts/tools/voiceimport/HnmTimelineMaker.java index 17a520302..87be5577a 100644 --- a/java/marytts/tools/voiceimport/HnmTimelineMaker.java +++ b/java/marytts/tools/voiceimport/HnmTimelineMaker.java @@ -1,447 +1,450 @@ /** * Portions Copyright...
true
true
public boolean compute() { long start = System.currentTimeMillis(); // start timing System.out.println("---- Importing Harmonics plus noise parameters\n\n"); System.out.println("Base directory: " + db.getProp(db.ROOTDIR) + "\n"); /* Export the basename list into...
public boolean compute() { long start = System.currentTimeMillis(); // start timing System.out.println("---- Importing Harmonics plus noise parameters\n\n"); System.out.println("Base directory: " + db.getProp(db.ROOTDIR) + "\n"); /* Export the basename list into...
diff --git a/src/java/org/xhtmlrenderer/css/parser/MakeTokens.java b/src/java/org/xhtmlrenderer/css/parser/MakeTokens.java index 57f68112..300c57ba 100644 --- a/src/java/org/xhtmlrenderer/css/parser/MakeTokens.java +++ b/src/java/org/xhtmlrenderer/css/parser/MakeTokens.java @@ -1,95 +1,93 @@ /* * {{{ header & licens...
true
true
public static final void main(String[] args) throws IOException { List tokens = new ArrayList(); BufferedReader reader = null; try { reader = new BufferedReader(new InputStreamReader( new FileInputStream(INPUT))); String s; ...
public static final void main(String[] args) throws IOException { List tokens = new ArrayList(); BufferedReader reader = null; try { reader = new BufferedReader(new InputStreamReader( new FileInputStream(INPUT))); String s; ...
diff --git a/src/org/opensolaris/opengrok/util/Executor.java b/src/org/opensolaris/opengrok/util/Executor.java index 68d1ce5..bcc3ee3 100644 --- a/src/org/opensolaris/opengrok/util/Executor.java +++ b/src/org/opensolaris/opengrok/util/Executor.java @@ -1,286 +1,309 @@ /* * CDDL HEADER START * * The contents of t...
false
true
public int exec(final boolean reportExceptions, StreamHandler handler) { int ret = -1; ProcessBuilder processBuilder = new ProcessBuilder(cmdList); if (workingDirectory != null) { processBuilder.directory(workingDirectory); if (processBuilder.environment().containsKe...
public int exec(final boolean reportExceptions, StreamHandler handler) { int ret = -1; String error = null; ProcessBuilder processBuilder = new ProcessBuilder(cmdList); if (workingDirectory != null) { processBuilder.directory(workingDirectory); if (processBui...
diff --git a/sub/source/net/sourceforge/texlipse/model/PartialRetriever.java b/sub/source/net/sourceforge/texlipse/model/PartialRetriever.java index 7ee2674..b4376db 100644 --- a/sub/source/net/sourceforge/texlipse/model/PartialRetriever.java +++ b/sub/source/net/sourceforge/texlipse/model/PartialRetriever.java @@ -1,1...
true
true
protected int[] getCompletionsBin(String start, AbstractEntry[] entries, int[] initBounds) { int[] bounds = new int[] {-1,-1}; int left = initBounds[0], right = initBounds[1] - 1; int middle = right/2; if (entries[left].key.startsWith(start)) right = middle = lef...
protected int[] getCompletionsBin(String start, AbstractEntry[] entries, int[] initBounds) { int[] bounds = new int[] {-1,-1}; int left = initBounds[0], right = initBounds[1] - 1; int middle = right/2; if (left > right) return bounds; if (entries[left].key.startsWith...
diff --git a/src/com/example/spanishtalk/questions/NewActivity.java b/src/com/example/spanishtalk/questions/NewActivity.java index 60d6b87..2d606c5 100644 --- a/src/com/example/spanishtalk/questions/NewActivity.java +++ b/src/com/example/spanishtalk/questions/NewActivity.java @@ -1,169 +1,169 @@ package com.example.sp...
true
true
protected void onPostExecute(JSONObject q) { final Integer questionId; try { questionId = q.getInt("questionId"); AlertDialog.Builder builder = new AlertDialog.Builder( NewActivity.this); builder.setMessage(R.string.be_sent) .setCancelable(false) .setPositiveButton(R.string....
protected void onPostExecute(JSONObject q) { final Integer questionId; try { questionId = q.getInt("question_id"); AlertDialog.Builder builder = new AlertDialog.Builder( NewActivity.this); builder.setMessage(R.string.be_sent) .setCancelable(false) .setPositiveButton(R.string...
diff --git a/javafx.editor/src/org/netbeans/modules/javafx/editor/completion/JavaFXCompletionQuery.java b/javafx.editor/src/org/netbeans/modules/javafx/editor/completion/JavaFXCompletionQuery.java index 3e8d2f76..d1056969 100644 --- a/javafx.editor/src/org/netbeans/modules/javafx/editor/completion/JavaFXCompletionQuery...
false
true
static JavaFXCompletionEnvironment createEnvironment(JavaFXKind k) { JavaFXCompletionEnvironment result = null; if (LOGGABLE) log("JavaFXKind: " + k); // NOI18N switch (k) { case COMPILATION_UNIT: result = new CompilationUnitEnvironment(); break; ...
static JavaFXCompletionEnvironment createEnvironment(JavaFXKind k) { JavaFXCompletionEnvironment result = null; if (LOGGABLE) log("JavaFXKind: " + k); // NOI18N switch (k) { case COMPILATION_UNIT: result = new CompilationUnitEnvironment(); break; ...
diff --git a/ngrinder-core/src/main/java/org/ngrinder/infra/AgentConfig.java b/ngrinder-core/src/main/java/org/ngrinder/infra/AgentConfig.java index 82f22655..42d00a57 100644 --- a/ngrinder-core/src/main/java/org/ngrinder/infra/AgentConfig.java +++ b/ngrinder-core/src/main/java/org/ngrinder/infra/AgentConfig.java @@ -1...
true
true
protected AgentHome resolveHome() { String userHomeFromEnv = trimToEmpty(System.getenv("NGRINDER_AGENT_HOME")); //printLog(" System Environment: NGRINDER_AGENT_HOME={}", userHomeFromEnv); String userHomeFromProperty = trimToEmpty(System.getProperty("ngrinder.agent.home")); //printLog(" Java System Prope...
protected AgentHome resolveHome() { String userHomeFromEnv = trimToEmpty(System.getenv("NGRINDER_AGENT_HOME")); //printLog(" System Environment: NGRINDER_AGENT_HOME={}", userHomeFromEnv); String userHomeFromProperty = trimToEmpty(System.getProperty("ngrinder.agent.home")); //printLog(" Java System Prope...
diff --git a/com.palantir.typescript/src/com/palantir/typescript/tsbridge/syntaxhighlight/SyntaxHighlightService.java b/com.palantir.typescript/src/com/palantir/typescript/tsbridge/syntaxhighlight/SyntaxHighlightService.java index abe0e37..8f6a310 100644 --- a/com.palantir.typescript/src/com/palantir/typescript/tsbridg...
true
true
public SyntaxHighlightResult getTokenInformation(String text, int offset) { Preconditions.checkNotNull(text); Preconditions.checkArgument(offset >= 0); List<String> lines = Lists.newArrayList(text.split("\n")); int[] lineSpacing = new int[lines.size()]; for (int i = 0; i < l...
public SyntaxHighlightResult getTokenInformation(String text, int offset) { Preconditions.checkNotNull(text); Preconditions.checkArgument(offset >= 0); List<String> lines = Lists.newArrayList(text.split("\n")); int[] lineSpacing = new int[lines.size()]; for (int i = 0; i < l...
diff --git a/src/test/java/org/yajul/util/HeartbeatMonitorTest.java b/src/test/java/org/yajul/util/HeartbeatMonitorTest.java index fc4d790..fa726b9 100644 --- a/src/test/java/org/yajul/util/HeartbeatMonitorTest.java +++ b/src/test/java/org/yajul/util/HeartbeatMonitorTest.java @@ -1,87 +1,88 @@ package org.yajul.util; ...
false
true
public void testMonitor() throws InterruptedException { Timer timer = new Timer("test-timer",true); ExecutorService exec = Executors.newCachedThreadPool(); int scanInterval = 100; HeartbeatMonitor monitor = new HeartbeatMonitor(scanInterval, exec); MockObserver observer = new...
public void testMonitor() throws InterruptedException { ExecutorService exec = Executors.newCachedThreadPool(); int scanInterval = 100; HeartbeatMonitor monitor = new HeartbeatMonitor(scanInterval, exec); MockObserver observer = new MockObserver(); int suspectTimeout = 20 * s...
diff --git a/Sammelbox-Desktop/src/org/sammelbox/view/sidepanes/AlterAlbumSidepane.java b/Sammelbox-Desktop/src/org/sammelbox/view/sidepanes/AlterAlbumSidepane.java index a15df37..108545c 100644 --- a/Sammelbox-Desktop/src/org/sammelbox/view/sidepanes/AlterAlbumSidepane.java +++ b/Sammelbox-Desktop/src/org/sammelbox/vi...
false
true
public static Composite build(final Composite parentComposite, final String album) { // setup alter album composite final Composite alterAlbumComposite = new Composite(parentComposite, SWT.NONE); alterAlbumComposite.setLayout(new GridLayout()); // description (header) label ComponentFactory.getPanelHeaderCo...
public static Composite build(final Composite parentComposite, final String album) { // setup alter album composite final Composite alterAlbumComposite = new Composite(parentComposite, SWT.NONE); alterAlbumComposite.setLayout(new GridLayout()); // description (header) label ComponentFactory.getPanelHeaderCo...
diff --git a/tiles-velocity/src/main/java/org/apache/tiles/velocity/context/VelocityUtil.java b/tiles-velocity/src/main/java/org/apache/tiles/velocity/context/VelocityUtil.java index 09233ebc..003419f9 100644 --- a/tiles-velocity/src/main/java/org/apache/tiles/velocity/context/VelocityUtil.java +++ b/tiles-velocity/src...
true
true
public static void setAttribute(Context velocityContext, HttpServletRequest request, ServletContext servletContext, String name, Object obj, String scope) { if (scope == null) { scope = "page"; } if ("page".equals(scope)) { velocityContext.put(...
public static void setAttribute(Context velocityContext, HttpServletRequest request, ServletContext servletContext, String name, Object obj, String scope) { if (scope == null) { scope = "page"; } if ("page".equals(scope)) { velocityContext.put(...
diff --git a/src/btwmod/tickmonitor/TypeAdapters.java b/src/btwmod/tickmonitor/TypeAdapters.java index 867096a..3450d4f 100644 --- a/src/btwmod/tickmonitor/TypeAdapters.java +++ b/src/btwmod/tickmonitor/TypeAdapters.java @@ -1,146 +1,146 @@ package btwmod.tickmonitor; import java.io.IOException; import java.lang.r...
false
true
public JsonElement serialize(BasicStatsMap src, Type typeOfSrc, JsonSerializationContext context) { JsonObject obj = new JsonObject(); BasicStatsMap outMap = src; obj.addProperty("total", src.size()); double totalTickTime = 0; long totalCount = 0; List<T> topTickTime = new ArrayList<T>(); ...
public JsonElement serialize(BasicStatsMap src, Type typeOfSrc, JsonSerializationContext context) { JsonObject obj = new JsonObject(); BasicStatsMap outMap = src; obj.addProperty("total", src.size()); double totalTickTime = 0; long totalCount = 0; List<T> topTickTime = new ArrayList<T>(); ...
diff --git a/source/Train/src/dk/aau/cs/giraf/train/opengl/GameActivityLinearLayout.java b/source/Train/src/dk/aau/cs/giraf/train/opengl/GameActivityLinearLayout.java index 37a9ebf..abdcbbb 100644 --- a/source/Train/src/dk/aau/cs/giraf/train/opengl/GameActivityLinearLayout.java +++ b/source/Train/src/dk/aau/cs/giraf/tr...
false
true
public boolean onDrag(View hoverView, DragEvent event) { View draggedView = (View) event.getLocalState(); switch (event.getAction()) { case DragEvent.ACTION_DRAG_STARTED: // makes the draggedview invisible in ownerContainer break; case DragEvent.ACTION_DRAG_ENTERED: // Chang...
public boolean onDrag(View hoverView, DragEvent event) { View draggedView = (View) event.getLocalState(); switch (event.getAction()) { case DragEvent.ACTION_DRAG_STARTED: GameActivityLinearLayout.this.requestLayout(); // this is temporary fix for drag error break; case DragEv...
diff --git a/core/src/classes/org/jdesktop/wonderland/client/help/HelpUtils.java b/core/src/classes/org/jdesktop/wonderland/client/help/HelpUtils.java index e140f1836..5924a5cb8 100644 --- a/core/src/classes/org/jdesktop/wonderland/client/help/HelpUtils.java +++ b/core/src/classes/org/jdesktop/wonderland/client/help/He...
true
true
public static HelpInfo fetchHelpInfo(ServerSessionManager manager) { try { // Open an HTTP connection to the Jersey RESTful service using the // base URL of the primary connection. String serverURL = manager.getServerURL(); System.out.println("HELP URL " + se...
public static HelpInfo fetchHelpInfo(ServerSessionManager manager) { try { // Open an HTTP connection to the Jersey RESTful service using the // base URL of the primary connection. String serverURL = manager.getServerURL(); URL url = new URL(serverURL + BASE_...
diff --git a/weka/src/main/java/weka/core/KPrototypes_DistanceFunction.java b/weka/src/main/java/weka/core/KPrototypes_DistanceFunction.java index 4cc877d..e7d3f4e 100644 --- a/weka/src/main/java/weka/core/KPrototypes_DistanceFunction.java +++ b/weka/src/main/java/weka/core/KPrototypes_DistanceFunction.java @@ -1,160 +...
true
true
public double distance(Instance first, Instance second) { double sum_nominal = 0.0; double sum_continuous = 0.0; for(int i = 0; i < first.numAttributes(); i++){ if(first.attribute(i).isNominal()){ if(!first.attribute(i).equals(second.attribute(i)) ) sum_nomina...
public double distance(Instance first, Instance second) { double sum_nominal = 0.0; double sum_continuous = 0.0; for(int i = 0; i < first.numAttributes(); i++){ if(first.attribute(i).isNominal()){ if(!first.attribute(i).equals(second.attribute(i)) ) sum_nomina...
diff --git a/src/com/csipsimple/wizards/impl/CallRomania.java b/src/com/csipsimple/wizards/impl/CallRomania.java index 0b7b226f..8e5dd17b 100644 --- a/src/com/csipsimple/wizards/impl/CallRomania.java +++ b/src/com/csipsimple/wizards/impl/CallRomania.java @@ -1,85 +1,85 @@ /** * Copyright (C) 2010-2012 Regis Montoya ...
true
true
public void setDefaultParams(PreferencesWrapper prefs) { super.setDefaultParams(prefs); prefs.setPreferenceBooleanValue(SipConfigManager.ENABLE_STUN, true); prefs.setPreferenceBooleanValue(SipConfigManager.ENABLE_ICE, true); prefs.setPreferenceBooleanValue(SipConfigManager.USE_COMPACT_FORM, ...
public void setDefaultParams(PreferencesWrapper prefs) { super.setDefaultParams(prefs); prefs.setPreferenceBooleanValue(SipConfigManager.ENABLE_STUN, true); prefs.setPreferenceBooleanValue(SipConfigManager.ENABLE_ICE, true); prefs.setPreferenceBooleanValue(SipConfigManager.USE_COMPACT_FORM, ...
diff --git a/src/main/java/net/siriuser/SRExpManager/SRExpManager.java b/src/main/java/net/siriuser/SRExpManager/SRExpManager.java index 3f200b5..d21b837 100644 --- a/src/main/java/net/siriuser/SRExpManager/SRExpManager.java +++ b/src/main/java/net/siriuser/SRExpManager/SRExpManager.java @@ -1,38 +1,39 @@ package net....
true
true
public void onEnable() { // イベントリスナー登録 PluginManager pm = getServer().getPluginManager(); pm.registerEvents(new ExpListener(this), this); if (getServer().getPluginManager().isPluginEnabled("SR-CoreLib")) { log.warning(logPrefix + "SR-CoreLib is not enabled!"); ...
public void onEnable() { // イベントリスナー登録 PluginManager pm = getServer().getPluginManager(); pm.registerEvents(new ExpListener(this), this); // SR-CoreLibが無ければプラグインを停止 if (!getServer().getPluginManager().isPluginEnabled("SR-CoreLib")) { log.warning(logPrefix + "SR-...
diff --git a/Torpedo/src/etri/sdn/controller/module/devicemanager/OFMDeviceManager.java b/Torpedo/src/etri/sdn/controller/module/devicemanager/OFMDeviceManager.java index e03ea06..5ea2b9d 100644 --- a/Torpedo/src/etri/sdn/controller/module/devicemanager/OFMDeviceManager.java +++ b/Torpedo/src/etri/sdn/controller/module...
true
true
protected void initialize() { registerModule(IDeviceService.class, this); this.topology = getTopologyServiceRef(); this.entityClassifier = getEntityClassifierServiceRef(); this.devices = Devices.getInstance(topology, entityClassifier); // this.version_adaptor_10 = (VersionAdaptor10) getController()...
protected void initialize() { registerModule(IDeviceService.class, this); this.topology = getTopologyServiceRef(); this.entityClassifier = getEntityClassifierServiceRef(); this.devices = Devices.getInstance(topology, entityClassifier); // this.version_adaptor_10 = (VersionAdaptor10) getController()...
diff --git a/WEB-INF/src/org/cdlib/xtf/textIndexer/IndexerConfig.java b/WEB-INF/src/org/cdlib/xtf/textIndexer/IndexerConfig.java index 8fd35b90..6c0cf082 100644 --- a/WEB-INF/src/org/cdlib/xtf/textIndexer/IndexerConfig.java +++ b/WEB-INF/src/org/cdlib/xtf/textIndexer/IndexerConfig.java @@ -1,467 +1,467 @@ package org....
true
true
public int readCmdLine(String[] args, int startArg) { int i; // If there aren't any command line arguments left to check, // tell the caller we didn't find the necessary info to // continue. // if (startArg >= args.length) return -1; // Assume we haven't read the necessary argum...
public int readCmdLine(String[] args, int startArg) { int i; // If there aren't any command line arguments left to check, // tell the caller we didn't find the necessary info to // continue. // if (startArg >= args.length) return -1; // Assume we haven't read the necessary argum...
diff --git a/src/com/redhat/ceylon/compiler/java/tools/CeylonLog.java b/src/com/redhat/ceylon/compiler/java/tools/CeylonLog.java index aa5646391..821fe097c 100644 --- a/src/com/redhat/ceylon/compiler/java/tools/CeylonLog.java +++ b/src/com/redhat/ceylon/compiler/java/tools/CeylonLog.java @@ -1,167 +1,171 @@ /* * Cop...
false
true
public void report(JCDiagnostic diagnostic) { String messageKey = diagnostic.getCode(); if (messageKey != null) { if (messageKey.startsWith("compiler.err.ceylon.codegen.exception")) { numCeylonCodegenException++; } else if (messageKey.startsWith("compiler.err....
public void report(JCDiagnostic diagnostic) { String messageKey = diagnostic.getCode(); if (messageKey != null) { if (messageKey.startsWith("compiler.err.ceylon.codegen.exception")) { numCeylonCodegenException++; } else if (messageKey.startsWith("compiler.err....
diff --git a/crypto/src/org/bouncycastle/i18n/LocalizedMessage.java b/crypto/src/org/bouncycastle/i18n/LocalizedMessage.java index f2fef762..602c223e 100644 --- a/crypto/src/org/bouncycastle/i18n/LocalizedMessage.java +++ b/crypto/src/org/bouncycastle/i18n/LocalizedMessage.java @@ -1,237 +1,240 @@ package org.bouncyca...
false
true
public String getEntry(String key,Locale loc, TimeZone timezone) throws MissingEntryException { String entry = id + "." + key; try { ResourceBundle bundle; if (loader != null) { bundle = ResourceBundle.getBundle(resource,loc); ...
public String getEntry(String key,Locale loc, TimeZone timezone) throws MissingEntryException { String entry = id + "." + key; try { ResourceBundle bundle; if (loader == null) { bundle = ResourceBundle.getBundle(resource,loc); ...
diff --git a/pregelix/pregelix-example/src/main/java/edu/uci/ics/pregelix/example/inputformat/TextShortestPathsInputFormat.java b/pregelix/pregelix-example/src/main/java/edu/uci/ics/pregelix/example/inputformat/TextShortestPathsInputFormat.java index 3ea4a9f22..89873931d 100644 --- a/pregelix/pregelix-example/src/main/...
true
true
public Vertex<VLongWritable, DoubleWritable, FloatWritable, DoubleWritable> getCurrentVertex() throws IOException, InterruptedException { used = 0; if (vertex == null) vertex = (Vertex) BspUtils.createVertex(getContext().getConfiguration()); vertex.getMsgList().clear...
public Vertex<VLongWritable, DoubleWritable, FloatWritable, DoubleWritable> getCurrentVertex() throws IOException, InterruptedException { used = 0; if (vertex == null) vertex = (Vertex) BspUtils.createVertex(getContext().getConfiguration()); vertex.getMsgList().clear...
diff --git a/src/net/sf/freecol/client/gui/panel/ClientOptionsDialog.java b/src/net/sf/freecol/client/gui/panel/ClientOptionsDialog.java index 809d140c3..1be3d766c 100644 --- a/src/net/sf/freecol/client/gui/panel/ClientOptionsDialog.java +++ b/src/net/sf/freecol/client/gui/panel/ClientOptionsDialog.java @@ -1,156 +1,15...
true
true
public void actionPerformed(ActionEvent event) { String command = event.getActionCommand(); try { switch (Integer.valueOf(command).intValue()) { case OK: ui.unregister(); ui.updateOption(); parent.remove(this); ...
public void actionPerformed(ActionEvent event) { String command = event.getActionCommand(); try { switch (Integer.valueOf(command).intValue()) { case OK: ui.unregister(); ui.updateOption(); parent.remove(this); ...
diff --git a/source/RMG/PopulateReactions.java b/source/RMG/PopulateReactions.java index 9ba43ac5..400f6fbd 100644 --- a/source/RMG/PopulateReactions.java +++ b/source/RMG/PopulateReactions.java @@ -1,661 +1,662 @@ // ////////////////////////////////////////////////////////////////////////////// // // RMG - Reaction...
true
true
public static void main(String[] args) { initializeSystemProperties(); try { ChemGraph.readForbiddenStructure(); } catch (IOException e1) { System.err .println("PopulateReactions cannot locate forbiddenStructures.txt file"); e1.printSta...
public static void main(String[] args) { initializeSystemProperties(); try { ChemGraph.readForbiddenStructure(); } catch (IOException e1) { System.err .println("PopulateReactions cannot locate forbiddenStructures.txt file"); e1.printSta...
diff --git a/sources/code/java/org/opensubsystems/core/logic/ControllerManager.java b/sources/code/java/org/opensubsystems/core/logic/ControllerManager.java index 8ef9947..94e150d 100644 --- a/sources/code/java/org/opensubsystems/core/logic/ControllerManager.java +++ b/sources/code/java/org/opensubsystems/core/logic/Co...
true
true
public StatelessController getControllerInstance( Class<? extends StatelessController> clsController ) throws OSSException { StatelessController control; control = (StatelessController)m_mpControllerCache.get( clsController.getName()); if (...
public StatelessController getControllerInstance( Class<? extends StatelessController> clsController ) throws OSSException { StatelessController control; control = m_mpControllerCache.get(clsController.getName()); if (control == null) { synchronized (m_mpController...
diff --git a/src/main/java/org/springframework/data/rest/shell/commands/DiscoveryCommands.java b/src/main/java/org/springframework/data/rest/shell/commands/DiscoveryCommands.java index e50c38c..6594976 100644 --- a/src/main/java/org/springframework/data/rest/shell/commands/DiscoveryCommands.java +++ b/src/main/java/org...
false
true
public String list( @CliOption(key = "", mandatory = false, help = "The URI at which to discover resources.", unspecifiedDefaultValue = "/") String path) { URI requestUri; if("/".equals(path)) { requestUri = configCmds.getBaseUri(); } else if(...
public String list( @CliOption(key = "", mandatory = false, help = "The URI at which to discover resources.", unspecifiedDefaultValue = "/") String path) { URI requestUri; if("/".equals(path)) { requestUri = configCmds.getBaseUri(); } else if(...
diff --git a/library/src/main/java/net/sourceforge/cilib/entity/operators/crossover/UniformCrossoverStrategy.java b/library/src/main/java/net/sourceforge/cilib/entity/operators/crossover/UniformCrossoverStrategy.java index 14a2cdfa..0738e59e 100644 --- a/library/src/main/java/net/sourceforge/cilib/entity/operators/cros...
true
true
public <E extends Entity> List<E> crossover(List<E> parentCollection, List<Integer> crossoverPoints) { Preconditions.checkArgument(parentCollection.size() == 2, "UniformCrossoverStrategy requires 2 parents."); //How do we handle variable sizes? Resizing the entities? E offspring1 = (E) pare...
public <E extends Entity> List<E> crossover(List<E> parentCollection, List<Integer> crossoverPoints) { Preconditions.checkArgument(parentCollection.size() == 2, "UniformCrossoverStrategy requires 2 parents."); //How do we handle variable sizes? Resizing the entities? E offspring1 = (E) pare...
diff --git a/src/main/java/vdm/VDMGenerator.java b/src/main/java/vdm/VDMGenerator.java index 74bd9eb..2ebd310 100644 --- a/src/main/java/vdm/VDMGenerator.java +++ b/src/main/java/vdm/VDMGenerator.java @@ -1,109 +1,109 @@ package vdm; import java.io.IOException; import java.nio.charset.Charset; import java.nio.f...
true
true
public List<Path> generate() throws IOException { List<Path> paths = new ArrayList<>(); Map<String, List<Tick>> demomap = new LinkedHashMap<>(); Map<String, String> peeknext = new LinkedHashMap<>(); String previous = null; for (Tick tick : ticklist) { List<Tick> t...
public List<Path> generate() throws IOException { List<Path> paths = new ArrayList<>(); Map<String, List<Tick>> demomap = new LinkedHashMap<>(); Map<String, String> peeknext = new LinkedHashMap<>(); String previous = null; for (Tick tick : ticklist) { List<Tick> t...
diff --git a/src/com/android/alarmclock/SetAlarm.java b/src/com/android/alarmclock/SetAlarm.java index 03533af..312cf92 100644 --- a/src/com/android/alarmclock/SetAlarm.java +++ b/src/com/android/alarmclock/SetAlarm.java @@ -1,321 +1,323 @@ /* * Copyright (C) 2007 The Android Open Source Project * * Licensed und...
true
true
protected void onCreate(Bundle icicle) { super.onCreate(icicle); addPreferencesFromResource(R.xml.alarm_prefs); // Get each preference so we can retrieve the value later. mLabel = (EditTextPreference) findPreference("label"); mLabel.setOnPreferenceChangeListener( ...
protected void onCreate(Bundle icicle) { super.onCreate(icicle); addPreferencesFromResource(R.xml.alarm_prefs); // Get each preference so we can retrieve the value later. mLabel = (EditTextPreference) findPreference("label"); mLabel.setOnPreferenceChangeListener( ...
diff --git a/extensions/bundles/queuemanager/src/main/java/org/opennaas/extensions/queuemanager/shell/RemoveCommand.java b/extensions/bundles/queuemanager/src/main/java/org/opennaas/extensions/queuemanager/shell/RemoveCommand.java index fa1233591..bccbd5299 100644 --- a/extensions/bundles/queuemanager/src/main/java/org...
true
true
protected Object doExecute() throws Exception { printInitCommand("Remove action from queue"); try { IResourceManager manager = getResourceManager(); String[] argsRouterName = new String[2]; try { argsRouterName = splitResourceName(resourceId); } catch (Exception e) { printError(e.getMessage(...
protected Object doExecute() throws Exception { printInitCommand("Remove action from queue"); try { IResourceManager manager = getResourceManager(); String[] argsRouterName = new String[2]; try { argsRouterName = splitResourceName(resourceId); } catch (Exception e) { printError(e.getMessage(...
diff --git a/src/java/main/ivory/lsh/bitext/FilterSentencePairs.java b/src/java/main/ivory/lsh/bitext/FilterSentencePairs.java index a7d9cb8d..0f815eee 100644 --- a/src/java/main/ivory/lsh/bitext/FilterSentencePairs.java +++ b/src/java/main/ivory/lsh/bitext/FilterSentencePairs.java @@ -1,270 +1,270 @@ package ivory.ls...
true
true
public int run(String[] args) throws Exception { if (args.length < 10) { printUsage(); return -1; } JobConf conf = new JobConf(getConf(), FilterSentencePairs.class); // Read commandline argument String inputPath = args[0]; String outputPath = args[1]; String eDir = args[2]; ...
public int run(String[] args) throws Exception { if (args.length < 10) { printUsage(); return -1; } JobConf conf = new JobConf(getConf(), FilterSentencePairs.class); // Read commandline argument String inputPath = args[0]; String outputPath = args[1]; String eDir = args[2]; ...
diff --git a/src/master/src/org/drftpd/master/Session.java b/src/master/src/org/drftpd/master/Session.java index 0172c255..ad558372 100644 --- a/src/master/src/org/drftpd/master/Session.java +++ b/src/master/src/org/drftpd/master/Session.java @@ -1,138 +1,138 @@ /* * This file is part of DrFTPD, Distributed FTP Daem...
true
true
public ReplacerEnvironment getReplacerEnvironment( ReplacerEnvironment env, User user) { env = new ReplacerEnvironment(env); if (user != null) { for (Map.Entry<Key<?>, Object> entry : user.getKeyedMap().getAllObjects().entrySet()) { env.add(entry.getKey().toString(), entry.getValue().toString()); } ...
public ReplacerEnvironment getReplacerEnvironment( ReplacerEnvironment env, User user) { env = new ReplacerEnvironment(env); if (user != null) { for (Map.Entry<Key<?>, Object> entry : user.getKeyedMap().getAllObjects().entrySet()) { env.add(entry.getKey().toString(), entry.getValue().toString()); } ...
diff --git a/src/main/java/pl/psnc/dl/wf4ever/auth/SecurityFilter.java b/src/main/java/pl/psnc/dl/wf4ever/auth/SecurityFilter.java index 56c5dde3..1d04d1a2 100644 --- a/src/main/java/pl/psnc/dl/wf4ever/auth/SecurityFilter.java +++ b/src/main/java/pl/psnc/dl/wf4ever/auth/SecurityFilter.java @@ -1,133 +1,137 @@ package ...
true
true
private DLibraDataSource authenticate(ContainerRequest request) throws MalformedURLException, RemoteException, AccessDeniedException, UnknownHostException, DLibraException { //TODO allow only secure https connections // logger.info("Connection secure? " + isSecure()); logger.info("Request to: " + uriInfo.g...
private DLibraDataSource authenticate(ContainerRequest request) throws MalformedURLException, RemoteException, AccessDeniedException, UnknownHostException, DLibraException { //TODO allow only secure https connections // logger.info("Connection secure? " + isSecure()); logger.info("Request to: " + uriInfo.g...
diff --git a/CrisostomoLab3A/src/crisostomolab3a/SimplePayslip.java b/CrisostomoLab3A/src/crisostomolab3a/SimplePayslip.java index 9f18249..1a5746a 100644 --- a/CrisostomoLab3A/src/crisostomolab3a/SimplePayslip.java +++ b/CrisostomoLab3A/src/crisostomolab3a/SimplePayslip.java @@ -1,111 +1,111 @@ /* * To change this ...
false
true
public static void main(String[] args) throws Exception { BufferedReader input = new BufferedReader(new InputStreamReader(System.in)); DecimalFormat formatter = new DecimalFormat("##,#00.00"); Date today = new Date(); // variable declaration int number; Strin...
public static void main(String[] args) throws Exception { BufferedReader input = new BufferedReader(new InputStreamReader(System.in)); DecimalFormat formatter = new DecimalFormat("##,#00.00"); Date today = new Date(); // variable declaration int number; Strin...
diff --git a/src/thothbot/parallax/core/client/renderers/plugins/SpritePlugin.java b/src/thothbot/parallax/core/client/renderers/plugins/SpritePlugin.java index e459bda2..77a657b7 100644 --- a/src/thothbot/parallax/core/client/renderers/plugins/SpritePlugin.java +++ b/src/thothbot/parallax/core/client/renderers/plugins...
true
true
public void render(Scene scene, Camera camera, int viewportWidth, int viewportHeight) { List<Sprite> sprites = scene.__webglSprites; int nSprites = sprites.size(); if ( nSprites == 0 ) return; WebGLRenderingContext gl = this.renderer.getGL(); Map<String, WebGLUniformLocation> uniforms = this.sprite.unif...
public void render(Scene scene, Camera camera, int viewportWidth, int viewportHeight) { List<Sprite> sprites = scene.__webglSprites; int nSprites = sprites.size(); if ( nSprites == 0 ) return; WebGLRenderingContext gl = this.renderer.getGL(); Map<String, WebGLUniformLocation> uniforms = this.sprite.unif...
diff --git a/src/scene/test/ComponentTestScene.java b/src/scene/test/ComponentTestScene.java index 92d74f3..8e313f1 100644 --- a/src/scene/test/ComponentTestScene.java +++ b/src/scene/test/ComponentTestScene.java @@ -1,91 +1,91 @@ package scene.test; import model.Person; import org.newdawn.slick.*; import org.n...
true
true
public void init(GameContainer container, StateBasedGame game) throws SlickException { super.init(container, game); Font fieldFont = GameDirector.sharedSceneDelegate().getFontManager().getFont(FontManager.FontID.FIELD); Label textFieldLabel = new Label(container, fieldFont, Color.white, "Text Field", 300);...
public void init(GameContainer container, StateBasedGame game) throws SlickException { super.init(container, game); Font fieldFont = GameDirector.sharedSceneDelegate().getFontManager().getFont(FontManager.FontID.FIELD); Label textFieldLabel = new Label(container, fieldFont, Color.white, "Text Field", 300);...
diff --git a/src/fortran/ofp/parser/java/FortranStream.java b/src/fortran/ofp/parser/java/FortranStream.java index 2b73de7..d8b2a3e 100644 --- a/src/fortran/ofp/parser/java/FortranStream.java +++ b/src/fortran/ofp/parser/java/FortranStream.java @@ -1,97 +1,97 @@ /*******************************************************...
true
true
public int LA(int i) { int letter_value = super.LA(i); int char_pos = super.getCharPositionInLine(); // the letter is lower-case if (Character.isLowerCase((char)letter_value)) { // convert to upper-case letter_value = (int) Character.toUpperCase((char)(letter_value)); ...
public int LA(int i) { int letter_value = super.LA(i); int char_pos = super.getCharPositionInLine(); // the letter is lower-case if (Character.isLowerCase((char)letter_value)) { // convert to upper-case letter_value = (int) Character.toUpperCase((char)(letter_value)); ...
diff --git a/SmartPaymentGenerator/src/com/smartpaymentformat/utilities/SmartPaymentValidator.java b/SmartPaymentGenerator/src/com/smartpaymentformat/utilities/SmartPaymentValidator.java index f11e3ba..1addabe 100644 --- a/SmartPaymentGenerator/src/com/smartpaymentformat/utilities/SmartPaymentValidator.java +++ b/Smart...
true
true
public static List<SmartPaymentValidationError> validatePaymentString(String paymentString) { List<SmartPaymentValidationError> errors = new LinkedList<SmartPaymentValidationError>(); if (!paymentString.matches("PAY\\*[0-9]+\\.[0-9]+(\\*[0-9A-Z $%*+-.]+:[^\\*]+)+\\*?")) { SmartPaymentVal...
public static List<SmartPaymentValidationError> validatePaymentString(String paymentString) { List<SmartPaymentValidationError> errors = new LinkedList<SmartPaymentValidationError>(); if (!paymentString.matches("SPD\\*[0-9]+\\.[0-9]+(\\*[0-9A-Z $%*+-.]+:[^\\*]+)+\\*?")) { SmartPaymentVal...
diff --git a/ding-impl/ding-presentation-impl/src/main/java/org/cytoscape/ding/impl/cyannotator/tasks/AddAnnotationTaskFactory.java b/ding-impl/ding-presentation-impl/src/main/java/org/cytoscape/ding/impl/cyannotator/tasks/AddAnnotationTaskFactory.java index 842caf61d..22dcded2d 100644 --- a/ding-impl/ding-presentation...
true
true
public TaskIterator createTaskIterator(CyNetworkView networkView, Point2D javaPt, Point2D xformPt) { return new TaskIterator(new AddAnnotationTask(networkView, xformPt, annotationFactory)); }
public TaskIterator createTaskIterator(CyNetworkView networkView, Point2D javaPt, Point2D xformPt) { return new TaskIterator(new AddAnnotationTask(networkView, javaPt, annotationFactory)); }
diff --git a/vlc-android/src/org/videolan/vlc/AudioService.java b/vlc-android/src/org/videolan/vlc/AudioService.java index 696f1d3a..d0e313d9 100644 --- a/vlc-android/src/org/videolan/vlc/AudioService.java +++ b/vlc-android/src/org/videolan/vlc/AudioService.java @@ -1,1019 +1,1021 @@ /*********************************...
true
true
public void handleMessage(Message msg) { AudioService service = getOwner(); if(service == null) return; switch (msg.getData().getInt("event")) { case EventManager.MediaPlayerPlaying: Log.i(TAG, "MediaPlayerPlaying"); S...
public void handleMessage(Message msg) { AudioService service = getOwner(); if(service == null) return; switch (msg.getData().getInt("event")) { case EventManager.MediaPlayerPlaying: Log.i(TAG, "MediaPlayerPlaying"); i...
diff --git a/tests/org.eclipse.team.tests.cvs.core/src/org/eclipse/team/tests/ccvs/core/cvsresources/LocalFileTest.java b/tests/org.eclipse.team.tests.cvs.core/src/org/eclipse/team/tests/ccvs/core/cvsresources/LocalFileTest.java index 6dfd2cc4e..9fcf48644 100644 --- a/tests/org.eclipse.team.tests.cvs.core/src/org/eclip...
false
true
public void testSendReceive() throws Exception { String sendTxt; String expectTxt; InputStream in; sendTxt = "This is my text"; expectTxt = sendTxt.length() + "\n" + sendTxt; byte[] result = new byte[sendTxt.length()]; PipedInputStream pIn; PipedOutputStream pOut; pIn = new PipedInputStr...
public void testSendReceive() throws Exception { String sendTxt; String expectTxt; InputStream in; sendTxt = "This is my text"; expectTxt = sendTxt.length() + "\n" + sendTxt; byte[] result = new byte[sendTxt.length()]; PipedInputStream pIn; PipedOutputStream pOut; pIn = new PipedInputStr...
diff --git a/ponysdk/src-core/main/java/com/ponysdk/ui/terminal/ui/PTUIObject.java b/ponysdk/src-core/main/java/com/ponysdk/ui/terminal/ui/PTUIObject.java index 5f69181e..09d73abc 100644 --- a/ponysdk/src-core/main/java/com/ponysdk/ui/terminal/ui/PTUIObject.java +++ b/ponysdk/src-core/main/java/com/ponysdk/ui/terminal/...
true
true
public void update(final PTInstruction update, final UIService uiService) { if (update.containsKey(PROPERTY.WIDGET_WIDTH)) { uiObject.setWidth(update.getString(PROPERTY.WIDGET_WIDTH)); } else if (update.containsKey(PROPERTY.WIDGET_HEIGHT)) { uiObject.setHeight(update.getStrin...
public void update(final PTInstruction update, final UIService uiService) { if (update.containsKey(PROPERTY.WIDGET_WIDTH)) { uiObject.setWidth(update.getString(PROPERTY.WIDGET_WIDTH)); } else if (update.containsKey(PROPERTY.WIDGET_HEIGHT)) { uiObject.setHeight(update.getStrin...
diff --git a/gcov/org.eclipse.linuxtools.gcov.core/src/org/eclipse/linuxtools/internal/gcov/parser/GcnoRecordsParser.java b/gcov/org.eclipse.linuxtools.gcov.core/src/org/eclipse/linuxtools/internal/gcov/parser/GcnoRecordsParser.java index 65acfbbc0..53f047c58 100644 --- a/gcov/org.eclipse.linuxtools.gcov.core/src/org/e...
false
true
public void parseData(DataInput stream) throws IOException, CoreException { // header data int magic = 0; // blocks data ArrayList<Block> blocks = null; // source file data SourceFile source = null; // flag boolean parseFirstFnctn = false; mag...
public void parseData(DataInput stream) throws IOException, CoreException { // header data int magic = 0; // blocks data ArrayList<Block> blocks = null; // source file data SourceFile source = null; // flag boolean parseFirstFnctn = false; mag...
diff --git a/lucene/src/test/org/apache/lucene/index/TestNeverDelete.java b/lucene/src/test/org/apache/lucene/index/TestNeverDelete.java index 9c448e80a..d76831aa0 100644 --- a/lucene/src/test/org/apache/lucene/index/TestNeverDelete.java +++ b/lucene/src/test/org/apache/lucene/index/TestNeverDelete.java @@ -1,111 +1,11...
false
true
public void testIndexing() throws Exception { final File tmpDir = _TestUtil.getTempDir("TestNeverDelete"); final MockDirectoryWrapper d = newFSDirectory(tmpDir); // We want to "see" files removed if Lucene removed // them. This is still worth running on Windows since // some files the IR opens a...
public void testIndexing() throws Exception { final File tmpDir = _TestUtil.getTempDir("TestNeverDelete"); final MockDirectoryWrapper d = newFSDirectory(tmpDir); // We want to "see" files removed if Lucene removed // them. This is still worth running on Windows since // some files the IR opens a...
diff --git a/src/com/android/bluetooth/map/BluetoothMasService.java b/src/com/android/bluetooth/map/BluetoothMasService.java index 863e0567..2bbd8f67 100644 --- a/src/com/android/bluetooth/map/BluetoothMasService.java +++ b/src/com/android/bluetooth/map/BluetoothMasService.java @@ -1,899 +1,902 @@ /* * Copyright (c)...
true
true
public void run() { while (!stopped) { try { BluetoothSocket connSocket = mServerSocket.accept(); BluetoothDevice device = connSocket.getRemoteDevice(); if (device == null) { ...
public void run() { while (!stopped) { try { if (mServerSocket == null) { break; } BluetoothSocket connSocket = mServerSocket.accept(); BluetoothDe...
diff --git a/src/main/java/net/praqma/hudson/remoting/CheckoutTask.java b/src/main/java/net/praqma/hudson/remoting/CheckoutTask.java index 31cf7f6..2cf19e5 100644 --- a/src/main/java/net/praqma/hudson/remoting/CheckoutTask.java +++ b/src/main/java/net/praqma/hudson/remoting/CheckoutTask.java @@ -1,245 +1,246 @@ packag...
true
true
public EstablishResult invoke( File workspace, VirtualChannel channel ) throws IOException { logger = Logger.getLogger( CheckoutTask.class.getName() ); hudsonOut = listener.getLogger(); logger.fine( "Starting CheckoutTask" ); String diff = ""; String viewtag = makeViewtag(); EstablishResult ...
public EstablishResult invoke( File workspace, VirtualChannel channel ) throws IOException { logger = Logger.getLogger( CheckoutTask.class.getName() ); hudsonOut = listener.getLogger(); logger.fine( "Starting CheckoutTask" ); String diff = ""; String viewtag = makeViewtag(); EstablishResult ...
diff --git a/divelog/app/models/Dive.java b/divelog/app/models/Dive.java index ed13c1a..574cb87 100644 --- a/divelog/app/models/Dive.java +++ b/divelog/app/models/Dive.java @@ -1,123 +1,125 @@ package models; import play.*; import play.data.validation.InPast; import play.data.validation.Max; import play.data.val...
true
true
public void addFish(String fishIdList) { Logger.info(fishIdList); // read the string id, interpret them as int String[] idStringArray = fishIdList.split(","); String cleanFishIdList = ""; List<Long> ids = new ArrayList<Long>(); for (String fishStringid : idStringArray) { ids.add( Long.parseL...
public void addFish(String fishIdList) { Logger.info(fishIdList); // read the string id, interpret them as int String[] idStringArray = fishIdList.split(","); String cleanFishIdList = ""; List<Long> ids = new ArrayList<Long>(); for (String fishStringid : idStringArray) { if(!fishStringid.isE...
diff --git a/community/web2/core/src/main/java/org/geoserver/web/wicket/GeoServerTablePanel.java b/community/web2/core/src/main/java/org/geoserver/web/wicket/GeoServerTablePanel.java index d785d88a7..a6b054ca5 100644 --- a/community/web2/core/src/main/java/org/geoserver/web/wicket/GeoServerTablePanel.java +++ b/communi...
true
true
public GeoServerTablePanel(final String id, final GeoServerDataProvider<T> dataProvider, final boolean selectable) { super(id); this.dataProvider = dataProvider; // prepare the selection array selection = new boolean[DEFAULT_ITEMS_PER_PAGE]; ...
public GeoServerTablePanel(final String id, final GeoServerDataProvider<T> dataProvider, final boolean selectable) { super(id); this.dataProvider = dataProvider; // prepare the selection array selection = new boolean[DEFAULT_ITEMS_PER_PAGE]; ...
diff --git a/src/main/java/edu/buffalo/fusim/Fusim.java b/src/main/java/edu/buffalo/fusim/Fusim.java index 8443141..5fd3628 100644 --- a/src/main/java/edu/buffalo/fusim/Fusim.java +++ b/src/main/java/edu/buffalo/fusim/Fusim.java @@ -1,703 +1,704 @@ /* * Copyright 2012 Andrew E. Bruno <aebruno2@buffalo.edu> * * L...
true
true
public void run(String[] args) throws IOException, InterruptedException { buildOptions(); CommandLineParser clParser = new PosixParser(); CommandLine cmd = null; try { cmd = clParser.parse(options, args); } catch (ParseException e) { printHelp...
public void run(String[] args) throws IOException, InterruptedException { buildOptions(); CommandLineParser clParser = new PosixParser(); CommandLine cmd = null; try { cmd = clParser.parse(options, args); } catch (ParseException e) { printHelp...
diff --git a/modules/dashboard-providers/dashboard-provider-api/src/main/java/org/jboss/dashboard/DataProviderServices.java b/modules/dashboard-providers/dashboard-provider-api/src/main/java/org/jboss/dashboard/DataProviderServices.java index a549c819..b2084fb8 100644 --- a/modules/dashboard-providers/dashboard-provide...
true
true
public DataSetManager getDataSetManager() { ThreadProfile tp = Profiler.lookup().getCurrentThreadProfile(); if (tp.containsCodeBlockType(CoreCodeBlockTypes.CONTROLLER_REQUEST)) { return (DataSetManager) CDIBeanLocator.getBeanByName("sessionScopedDataSetManager"); } else { ...
public DataSetManager getDataSetManager() { ThreadProfile tp = Profiler.lookup().getCurrentThreadProfile(); if (tp == null || tp.containsCodeBlockType(CoreCodeBlockTypes.CONTROLLER_REQUEST)) { return (DataSetManager) CDIBeanLocator.getBeanByName("sessionScopedDataSetManager"); } ...
diff --git a/beam-binning2/src/main/java/org/esa/beam/binning/operator/BinningOp.java b/beam-binning2/src/main/java/org/esa/beam/binning/operator/BinningOp.java index f28b5f15e..d3f07d505 100644 --- a/beam-binning2/src/main/java/org/esa/beam/binning/operator/BinningOp.java +++ b/beam-binning2/src/main/java/org/esa/beam...
true
true
public void initialize() throws OperatorException { ProductData.UTC startDateUtc = getStartDateUtc("startDate"); ProductData.UTC endDateUtc = getEndDateUtc("endDate"); validateInput(startDateUtc, endDateUtc); StopWatch stopWatch = new StopWatch(); stopWatch.start(); ...
public void initialize() throws OperatorException { ProductData.UTC startDateUtc = getStartDateUtc("startDate"); ProductData.UTC endDateUtc = getEndDateUtc("endDate"); validateInput(startDateUtc, endDateUtc); StopWatch stopWatch = new StopWatch(); stopWatch.start(); ...