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/contributions/resources/data-repo-sitetree/src/java/org/wyona/yanel/impl/resources/DataRepoSitetreeResource.java b/src/contributions/resources/data-repo-sitetree/src/java/org/wyona/yanel/impl/resources/DataRepoSitetreeResource.java index 6fa20c853..0c0e4ca8a 100644 --- a/src/contributions/resources/dat...
false
true
private String getNodeAsXML(String path) { log.error("DEBUG: Path: " + path); Sitetree sitetree = (Sitetree) getYanel().getBeanFactory().getBean("repo-navigation"); Node node = sitetree.getNode(getRealm(), path); StringBuffer sb = new StringBuffer(""); if (node.isCollection()...
private String getNodeAsXML(String path) { //log.error("DEBUG: Path: " + path); Sitetree sitetree = (Sitetree) getYanel().getBeanFactory().getBean("repo-navigation"); Node node = sitetree.getNode(getRealm(), path); StringBuffer sb = new StringBuffer(""); if (node.isCollection...
diff --git a/src/appmonk/tricks/ImageTricks.java b/src/appmonk/tricks/ImageTricks.java index b5678e8..9950075 100644 --- a/src/appmonk/tricks/ImageTricks.java +++ b/src/appmonk/tricks/ImageTricks.java @@ -1,221 +1,221 @@ package appmonk.tricks; import java.io.BufferedOutputStream; import java.io.File; import java...
false
true
public static Bitmap scaleDownBitmap(Bitmap original, int minDimension, boolean recycleOriginal) { int origWidth = original.getWidth(); int origHeight = original.getHeight(); if (origWidth <= minDimension && origHeight <= minDimension) { Bitmap b = Bitmap.createBitmap(original); if ...
public static Bitmap scaleDownBitmap(Bitmap original, int minDimension, boolean recycleOriginal) { int origWidth = original.getWidth(); int origHeight = original.getHeight(); if (origWidth <= minDimension && origHeight <= minDimension) { Bitmap b = Bitmap.createBitmap(original); if ...
diff --git a/src/minecraft/co/uk/flansmods/client/GuiDriveableController.java b/src/minecraft/co/uk/flansmods/client/GuiDriveableController.java index 06279f66..3d522f67 100644 --- a/src/minecraft/co/uk/flansmods/client/GuiDriveableController.java +++ b/src/minecraft/co/uk/flansmods/client/GuiDriveableController.java @...
false
true
public void handleInput() { EntityPlayer player = (EntityPlayer)plane.getControllingEntity(); if(player != mc.thePlayer) { mc.displayGuiScreen(null); return; } if(!Mouse.isGrabbed()) { mc.mouseHelper.grabMouseCursor(); } for(; Mouse.next(); handleMouseInput()) { } for(; Ke...
public void handleInput() { EntityPlayer player = (EntityPlayer)plane.getControllingEntity(); if(player != mc.thePlayer) { mc.displayGuiScreen(null); return; } if(!Mouse.isGrabbed()) { mc.mouseHelper.grabMouseCursor(); } handleMouseInput(); for(; Keyboard.next(); handleKeyboardI...
diff --git a/src/java/com/facebook/LinkBench/generators/MotifDataGenerator.java b/src/java/com/facebook/LinkBench/generators/MotifDataGenerator.java index 317275c..6f463b8 100644 --- a/src/java/com/facebook/LinkBench/generators/MotifDataGenerator.java +++ b/src/java/com/facebook/LinkBench/generators/MotifDataGenerator....
false
true
public byte[] fill(Random rng, byte[] data) { // Fill motifs now so that we can use rng if (motifs == null) { motifs = new byte[motifBytes]; for (int i = 0; i < motifs.length; i++) { motifs[i] = (byte) (start + rng.nextInt(range)); } } int n = data.length; int chunk ...
public byte[] fill(Random rng, byte[] data) { // Fill motifs now so that we can use rng if (motifs == null) { motifs = new byte[motifBytes]; for (int i = 0; i < motifs.length; i++) { motifs[i] = (byte) (start + rng.nextInt(range)); } } int n = data.length; int chunk ...
diff --git a/core/src/main/java/hudson/model/WorkspaceCleanupThread.java b/core/src/main/java/hudson/model/WorkspaceCleanupThread.java index a839ad061..c1a859aa4 100644 --- a/core/src/main/java/hudson/model/WorkspaceCleanupThread.java +++ b/core/src/main/java/hudson/model/WorkspaceCleanupThread.java @@ -1,128 +1,128 @@...
true
true
private boolean shouldBeDeleted(String jobName, FilePath dir, Node n) throws IOException, InterruptedException { // TODO: the use of remoting is not optimal. // One remoting can execute "exists", "lastModified", and "delete" all at once. TopLevelItem item = Hudson.getInstance().getItem(jobNa...
private boolean shouldBeDeleted(String jobName, FilePath dir, Node n) throws IOException, InterruptedException { // TODO: the use of remoting is not optimal. // One remoting can execute "exists", "lastModified", and "delete" all at once. TopLevelItem item = Hudson.getInstance().getItem(jobNa...
diff --git a/core/src/visad/trunk/data/gif/GIFAdapter.java b/core/src/visad/trunk/data/gif/GIFAdapter.java index 662c09395..a65753143 100644 --- a/core/src/visad/trunk/data/gif/GIFAdapter.java +++ b/core/src/visad/trunk/data/gif/GIFAdapter.java @@ -1,224 +1,224 @@ // // GIFAdapter.java // /* VisAD system for int...
false
true
private void buildFlatField(float[] red_pix, float[] green_pix, float[] blue_pix, int width, int height) throws VisADException { RealType line; try { line = new RealType("ImageLine"); } catch (TypeException e) { line = RealType.getRealTypeByName("ImageLine"); ...
private void buildFlatField(float[] red_pix, float[] green_pix, float[] blue_pix, int width, int height) throws VisADException { RealType line; try { line = new RealType("ImageLine"); } catch (TypeException e) { line = RealType.getRealTypeByName("ImageLine"); ...
diff --git a/src/webapp/src/java/org/wyona/yanel/servlet/security/impl/DefaultWebAuthenticatorImpl.java b/src/webapp/src/java/org/wyona/yanel/servlet/security/impl/DefaultWebAuthenticatorImpl.java index 43b5691ae..c2710aa96 100644 --- a/src/webapp/src/java/org/wyona/yanel/servlet/security/impl/DefaultWebAuthenticatorIm...
true
true
public HttpServletResponse doAuthenticate(HttpServletRequest request, HttpServletResponse response, Map map, String reservedPrefix, String xsltLoginScreenDefault, String servletContextRealPath, String sslPort) throws ServletException, IOException { try { Realm realm = map.getRealm(request.getSer...
public HttpServletResponse doAuthenticate(HttpServletRequest request, HttpServletResponse response, Map map, String reservedPrefix, String xsltLoginScreenDefault, String servletContextRealPath, String sslPort) throws ServletException, IOException { try { Realm realm = map.getRealm(request.getSer...
diff --git a/java/server/src/org/openqa/selenium/remote/server/handler/CookieHandler.java b/java/server/src/org/openqa/selenium/remote/server/handler/CookieHandler.java index b9b253046..33571c9a0 100644 --- a/java/server/src/org/openqa/selenium/remote/server/handler/CookieHandler.java +++ b/java/server/src/org/openqa/s...
true
true
protected Cookie createCookie() { if (rawCookie == null) { return null; } String name = (String) rawCookie.get("name"); String value = (String) rawCookie.get("value"); String path = (String) rawCookie.get("path"); String domain = (String) rawCookie.get("domain"); Boolean secure = (B...
protected Cookie createCookie() { if (rawCookie == null) { return null; } String name = (String) rawCookie.get("name"); String value = (String) rawCookie.get("value"); String path = (String) rawCookie.get("path"); String domain = (String) rawCookie.get("domain"); Boolean secure = (B...
diff --git a/ServerThread.java b/ServerThread.java index 0a30760..c8febd0 100644 --- a/ServerThread.java +++ b/ServerThread.java @@ -1,177 +1,177 @@ import java.util.*; import java.net.*; import java.io.*; public class ServerThread extends Thread { Socket s = null; String loggedInUser = null; // hack for te...
false
true
public void run() { try { String line; PrintWriter out = new PrintWriter(s.getOutputStream(), true); BufferedReader in = new BufferedReader(new InputStreamReader(s.getInputStream())); System.out.println("New client connected"); out.println("220 Service ready"); boolean inMessage = false; String ...
public void run() { try { String line; PrintWriter out = new PrintWriter(s.getOutputStream(), true); BufferedReader in = new BufferedReader(new InputStreamReader(s.getInputStream())); System.out.println("New client connected"); out.println("220 Service ready"); boolean inMessage = false; String ...
diff --git a/plugins/org.eclipse.tm.tcf.core/src/org/eclipse/tm/tcf/protocol/JSON.java b/plugins/org.eclipse.tm.tcf.core/src/org/eclipse/tm/tcf/protocol/JSON.java index 41f873a33..a156c340f 100644 --- a/plugins/org.eclipse.tm.tcf.core/src/org/eclipse/tm/tcf/protocol/JSON.java +++ b/plugins/org.eclipse.tm.tcf.core/src/o...
true
true
private static Object readNestedObject() throws IOException { switch (cur_ch) { case '(': read(); int len = 0; while (cur_ch >= '0' && cur_ch <= '9') { len = len * 10 + (cur_ch - '0'); read(); } if (cur_ch !=...
private static Object readNestedObject() throws IOException { switch (cur_ch) { case '(': read(); int len = 0; while (cur_ch >= '0' && cur_ch <= '9') { len = len * 10 + (cur_ch - '0'); read(); } if (cur_ch !=...
diff --git a/BetterBatteryStats/src/com/asksven/betterbatterystats/adapters/StatsAdapter.java b/BetterBatteryStats/src/com/asksven/betterbatterystats/adapters/StatsAdapter.java index d4ca2222..7e27a6cf 100644 --- a/BetterBatteryStats/src/com/asksven/betterbatterystats/adapters/StatsAdapter.java +++ b/BetterBatteryStats...
true
true
public View getView(int position, View convertView, ViewGroup viewGroup) { StatElement entry = m_listData.get(position); if (convertView == null) { LayoutInflater inflater = (LayoutInflater) m_context .getSystemService(Context.LAYOUT_INFLATER_SERVICE); ...
public View getView(int position, View convertView, ViewGroup viewGroup) { StatElement entry = m_listData.get(position); if (convertView == null) { LayoutInflater inflater = (LayoutInflater) m_context .getSystemService(Context.LAYOUT_INFLATER_SERVICE); ...
diff --git a/src/servers/src/org/xtreemfs/dir/DIR.java b/src/servers/src/org/xtreemfs/dir/DIR.java index f2847c79..00d965b1 100644 --- a/src/servers/src/org/xtreemfs/dir/DIR.java +++ b/src/servers/src/org/xtreemfs/dir/DIR.java @@ -1,119 +1,119 @@ /* Copyright (c) 2009 Konrad-Zuse-Zentrum fuer Informationstechnik Berl...
true
true
public static void main(String[] args) { String configFileName = "../../etc/xos/xtreemfs/dirconfig.test"; String dbsConfigFileName = "../../etc/xos/xtreemfs/dirdbconfig.test"; if (args.length < 1 || args.length > 2) { System.out.println("using default config fil...
public static void main(String[] args) { String configFileName = "../../etc/xos/xtreemfs/dirconfig.test"; String dbsConfigFileName = "../../etc/xos/xtreemfs/dirdbconfig.test"; if (args.length < 1 || args.length > 2) { System.out.println("using default config fil...
diff --git a/src/api/org/openmrs/validator/ConceptValidator.java b/src/api/org/openmrs/validator/ConceptValidator.java index c439d88f..01f76954 100644 --- a/src/api/org/openmrs/validator/ConceptValidator.java +++ b/src/api/org/openmrs/validator/ConceptValidator.java @@ -1,124 +1,124 @@ /** * The contents of this fil...
false
true
public void validate(Object obj, Errors errorss) throws APIException, DuplicateConceptNameException { if (obj == null || !(obj instanceof Concept)) { if (log.isErrorEnabled()) log.error("The parameter obj should not be null and must be of type" + Concept.class); throw new IllegalArgumentException("C...
public void validate(Object obj, Errors errorss) throws APIException, DuplicateConceptNameException { if (obj == null || !(obj instanceof Concept)) { if (log.isErrorEnabled()) log.error("The parameter obj should not be null and must be of type" + Concept.class); throw new IllegalArgumentException("C...
diff --git a/src/api/org/openmrs/validator/ObsValidator.java b/src/api/org/openmrs/validator/ObsValidator.java index bb982916..4284ba2c 100644 --- a/src/api/org/openmrs/validator/ObsValidator.java +++ b/src/api/org/openmrs/validator/ObsValidator.java @@ -1,168 +1,167 @@ /** * The contents of this file are subject to...
false
true
private void validateHelper(Obs obs, Errors errors, List<Obs> ancestors, boolean atRootNode) { if (obs.getPersonId() == null) errors.rejectValue("person", "error.null"); if (obs.getObsDatetime() == null) errors.rejectValue("obsDatetime", "error.null"); Concept c = obs.getConcept(); if (c == null) { er...
private void validateHelper(Obs obs, Errors errors, List<Obs> ancestors, boolean atRootNode) { if (obs.getPersonId() == null) errors.rejectValue("person", "error.null"); if (obs.getObsDatetime() == null) errors.rejectValue("obsDatetime", "error.null"); Concept c = obs.getConcept(); if (c == null) { er...
diff --git a/src/org/geometerplus/zlibrary/text/view/ZLTextView.java b/src/org/geometerplus/zlibrary/text/view/ZLTextView.java index c6625a85d..1d668622a 100644 --- a/src/org/geometerplus/zlibrary/text/view/ZLTextView.java +++ b/src/org/geometerplus/zlibrary/text/view/ZLTextView.java @@ -1,1569 +1,1569 @@ /* * Copyr...
true
true
private ZLTextLineInfo processTextLine( ZLTextParagraphCursor paragraphCursor, final int startIndex, final int startCharIndex, final int endIndex ) { final ZLPaintContext context = getContext(); final ZLTextLineInfo info = new ZLTextLineInfo(paragraphCursor, startIndex, startCharIndex, getTextStyle()); ...
private ZLTextLineInfo processTextLine( ZLTextParagraphCursor paragraphCursor, final int startIndex, final int startCharIndex, final int endIndex ) { final ZLPaintContext context = getContext(); final ZLTextLineInfo info = new ZLTextLineInfo(paragraphCursor, startIndex, startCharIndex, getTextStyle()); ...
diff --git a/javamelody-core/src/main/java/net/bull/javamelody/HtmlController.java b/javamelody-core/src/main/java/net/bull/javamelody/HtmlController.java index 3af66ad6..07b5aa0e 100644 --- a/javamelody-core/src/main/java/net/bull/javamelody/HtmlController.java +++ b/javamelody-core/src/main/java/net/bull/javamelody/H...
true
true
void doHtml(HttpServletRequest httpRequest, HttpServletResponse httpResponse, List<JavaInformations> javaInformationsList) throws IOException { final String part = httpRequest.getParameter(PART_PARAMETER); if (!isFromCollectorServer() && (part == null || CURRENT_REQUESTS_PART.equalsIgnoreCase(part) || GRAPH...
void doHtml(HttpServletRequest httpRequest, HttpServletResponse httpResponse, List<JavaInformations> javaInformationsList) throws IOException { final String part = httpRequest.getParameter(PART_PARAMETER); if (!isFromCollectorServer() && (part == null || CURRENT_REQUESTS_PART.equalsIgnoreCase(part) ||...
diff --git a/hoya-core/src/main/java/org/apache/hoya/yarn/appmaster/HoyaAppMaster.java b/hoya-core/src/main/java/org/apache/hoya/yarn/appmaster/HoyaAppMaster.java index bdc0d91c..7d18500b 100644 --- a/hoya-core/src/main/java/org/apache/hoya/yarn/appmaster/HoyaAppMaster.java +++ b/hoya-core/src/main/java/org/apache/hoya...
true
true
private int createAndRunCluster(String clustername) throws Throwable { HoyaVersionInfo.loadAndPrintVersionInfo(log); //load the cluster description from the cd argument String hoyaClusterDir = serviceArgs.getHoyaClusterURI(); URI hoyaClusterURI = new URI(hoyaClusterDir); Path clusterDirPath = new...
private int createAndRunCluster(String clustername) throws Throwable { HoyaVersionInfo.loadAndPrintVersionInfo(log); //load the cluster description from the cd argument String hoyaClusterDir = serviceArgs.getHoyaClusterURI(); URI hoyaClusterURI = new URI(hoyaClusterDir); Path clusterDirPath = new...
diff --git a/AuctionHouse/src/webServiceClient/WebServiceClientThread.java b/AuctionHouse/src/webServiceClient/WebServiceClientThread.java index 96406d7..e271d08 100644 --- a/AuctionHouse/src/webServiceClient/WebServiceClientThread.java +++ b/AuctionHouse/src/webServiceClient/WebServiceClientThread.java @@ -1,231 +1,23...
true
true
public void run() { int timeLimit = 2500; running = true; try { while (isRunning()) { int sleepTime = 1000 + random.nextInt(timeLimit); Thread.sleep(sleepTime); for (Map.Entry<String, Service> offer : offers.entrySet()) { Service service = offer.getValue(); int event = random.nextInt...
public void run() { int timeLimit = 2500; running = true; try { while (isRunning()) { int sleepTime = 1000 + random.nextInt(timeLimit); Thread.sleep(sleepTime); for (Map.Entry<String, Service> offer : offers.entrySet()) { Service service = offer.getValue(); int event = random.nextInt...
diff --git a/SaveStopper/src/org/bonsaimind/bukkitplugins/SaveStopper.java b/SaveStopper/src/org/bonsaimind/bukkitplugins/SaveStopper.java index 4a9fda8..ef64582 100644 --- a/SaveStopper/src/org/bonsaimind/bukkitplugins/SaveStopper.java +++ b/SaveStopper/src/org/bonsaimind/bukkitplugins/SaveStopper.java @@ -1,174 +1,17...
false
true
protected void readConfiguration() { YamlHelper helper = new YamlHelper("plugins/SaveStopper/config.yml"); config = helper.read(); if (config == null) { if ((Boolean) config.get("verbose")) { System.out.println("SaveStopper: No configuration file found, using defaults."); } config = new HashMap<Str...
protected void readConfiguration() { YamlHelper helper = new YamlHelper("plugins/SaveStopper/config.yml"); config = helper.read(); if (config == null) { System.out.println("SaveStopper: No configuration file found, using defaults."); config = new HashMap<String, Object>(); } // Set the defaults if ...
diff --git a/src/com/android/timezonepicker/TimeZoneFilterTypeAdapter.java b/src/com/android/timezonepicker/TimeZoneFilterTypeAdapter.java index 5d0e881..cadd4f2 100644 --- a/src/com/android/timezonepicker/TimeZoneFilterTypeAdapter.java +++ b/src/com/android/timezonepicker/TimeZoneFilterTypeAdapter.java @@ -1,535 +1,53...
true
true
protected FilterResults performFiltering(CharSequence prefix) { Log.e(TAG, "performFiltering >>>> [" + prefix + "]"); FilterResults results = new FilterResults(); String prefixString = null; if (prefix != null) { prefixString = prefix.toString().t...
protected FilterResults performFiltering(CharSequence prefix) { Log.e(TAG, "performFiltering >>>> [" + prefix + "]"); FilterResults results = new FilterResults(); String prefixString = null; if (prefix != null) { prefixString = prefix.toString().t...
diff --git a/Queuer/src/au/edu/uts/eng/remotelabs/schedserver/queuer/impl/Allocator.java b/Queuer/src/au/edu/uts/eng/remotelabs/schedserver/queuer/impl/Allocator.java index b540bd2a..a998a881 100644 --- a/Queuer/src/au/edu/uts/eng/remotelabs/schedserver/queuer/impl/Allocator.java +++ b/Queuer/src/au/edu/uts/eng/remotel...
true
true
public void allocateResponseCallback(final AllocateResponse response) { OperationResponseType op = response.getAllocateResponse(); try { Thread.sleep(500); } catch (InterruptedException ex) { /* Embrassing timing jiffy, which empircally works. */ } ...
public void allocateResponseCallback(final AllocateResponse response) { OperationResponseType op = response.getAllocateResponse(); try { Thread.sleep(500); } catch (InterruptedException ex) { /* Embrassing timing jiffy, which empircally works. */ } ...
diff --git a/org.springsource.ide.eclipse.commons.gettingstarted/src/org/springsource/ide/eclipse/commons/gettingstarted/dashboard/WelcomeDashboardPage.java b/org.springsource.ide.eclipse.commons.gettingstarted/src/org/springsource/ide/eclipse/commons/gettingstarted/dashboard/WelcomeDashboardPage.java index 7c20221a..5...
true
true
public void changing(LocationEvent event) { System.out.println("Navigation: "+event.location); event.doit = false; //all navigation in welcome page must be intercepted. //Be careful...any exception thrown out of here have a nasty tendency to deadlock Eclipse // (By crashing native UI thread mayb...
public void changing(LocationEvent event) { System.out.println("Navigation: "+event.location); event.doit = false; //all navigation in welcome page must be intercepted. //Be careful...any exception thrown out of here have a nasty tendency to deadlock Eclipse // (By crashing native UI thread mayb...
diff --git a/src/main/java/com/comoyo/jelastic/PersistentStorage.java b/src/main/java/com/comoyo/jelastic/PersistentStorage.java index 1c60b78..167dd72 100644 --- a/src/main/java/com/comoyo/jelastic/PersistentStorage.java +++ b/src/main/java/com/comoyo/jelastic/PersistentStorage.java @@ -1,88 +1,89 @@ package com.como...
true
true
private static DB getDB() { Mongo mongoClient; try { mongoClient = new Mongo("mongodb-rankitapp.jelastic.dogado.eu", 27017); } catch (UnknownHostException e) { throw new RuntimeException(e); } final DB pingpong = mongoClient.getDB("pingpong"); ...
private static DB getDB() { Mongo mongoClient; try { mongoClient = new Mongo("mongodb-rankitapp.jelastic.dogado.eu", 27017); } catch (UnknownHostException e) { throw new RuntimeException(e); } final DB pingpong = mongoClient.getDB("pingpong"); ...
diff --git a/src/java/net/sf/picard/analysis/CollectGcBiasMetrics.java b/src/java/net/sf/picard/analysis/CollectGcBiasMetrics.java index e4e0843..0c43c58 100644 --- a/src/java/net/sf/picard/analysis/CollectGcBiasMetrics.java +++ b/src/java/net/sf/picard/analysis/CollectGcBiasMetrics.java @@ -1,319 +1,320 @@ /* * The...
true
true
protected int doWork() { IoUtil.assertFileIsReadable(REFERENCE_SEQUENCE); IoUtil.assertFileIsReadable(INPUT); IoUtil.assertFileIsWritable(OUTPUT); IoUtil.assertFileIsWritable(CHART_OUTPUT); if (SUMMARY_OUTPUT != null) IoUtil.assertFileIsWritable(SUMMARY_OUTPUT); // H...
protected int doWork() { IoUtil.assertFileIsReadable(REFERENCE_SEQUENCE); IoUtil.assertFileIsReadable(INPUT); IoUtil.assertFileIsWritable(OUTPUT); IoUtil.assertFileIsWritable(CHART_OUTPUT); if (SUMMARY_OUTPUT != null) IoUtil.assertFileIsWritable(SUMMARY_OUTPUT); // H...
diff --git a/src/com/android/contacts/socialwidget/SocialWidgetProvider.java b/src/com/android/contacts/socialwidget/SocialWidgetProvider.java index cd6a494b6..dd4431084 100644 --- a/src/com/android/contacts/socialwidget/SocialWidgetProvider.java +++ b/src/com/android/contacts/socialwidget/SocialWidgetProvider.java @@ ...
true
true
private static void setDisplayNameAndSnippet(Context context, RemoteViews views, CharSequence displayName, CharSequence phoneticName, List<StreamItemEntry> streamItems, PendingIntent defaultIntent) { SpannableStringBuilder sb = new SpannableStringBuilder(); CharSequence name...
private static void setDisplayNameAndSnippet(Context context, RemoteViews views, CharSequence displayName, CharSequence phoneticName, List<StreamItemEntry> streamItems, PendingIntent defaultIntent) { SpannableStringBuilder sb = new SpannableStringBuilder(); CharSequence name...
diff --git a/pluginsource/org/enigma/EnigmaRunner.java b/pluginsource/org/enigma/EnigmaRunner.java index d4ee010e..ceeb4059 100644 --- a/pluginsource/org/enigma/EnigmaRunner.java +++ b/pluginsource/org/enigma/EnigmaRunner.java @@ -1,456 +1,458 @@ /* * Copyright (C) 2008, 2009 IsmAvatar <IsmAvatar@gmail.com> * *...
true
true
public static SyntaxError checkSyntax(String code) { String osl[] = new String[LGM.currentFile.scripts.size()]; Script isl[] = LGM.currentFile.scripts.toArray(new Script[0]); for (int i = 0; i < osl.length; i++) osl[i] = isl[i].getName(); return EnigmaStruct.syntaxCheck(osl.length,new StringArray(osl),cod...
public static SyntaxError checkSyntax(String code) { String osl[] = new String[LGM.currentFile.scripts.size()]; Script isl[] = LGM.currentFile.scripts.toArray(new Script[0]); for (int i = 0; i < osl.length; i++) osl[i] = isl[i].getName(); return EnigmaStruct.syntaxCheck(osl.length,new StringArray(osl),cod...
diff --git a/src/free/jin/freechess/JinFreechessConnection.java b/src/free/jin/freechess/JinFreechessConnection.java index 77bf357..1ac04f4 100644 --- a/src/free/jin/freechess/JinFreechessConnection.java +++ b/src/free/jin/freechess/JinFreechessConnection.java @@ -1,2885 +1,2885 @@ /** * Jin - a chess client for int...
true
true
private void updateOffers(InternalGameData gameData, int offerId, Player player, boolean on){ Game game = gameData.game; if (offerId == OfferEvent.TAKEBACK_OFFER){ // We're forced to fake this so that an event is fired even if we start observing a game // with an existing takeback offer (of which...
private void updateOffers(InternalGameData gameData, int offerId, Player player, boolean on){ Game game = gameData.game; if (offerId == OfferEvent.TAKEBACK_OFFER){ // We're forced to fake this so that an event is fired even if we start observing a game // with an existing takeback offer (of which...
diff --git a/src/main/java/org/logic2j/solve/DefaultGoalSolver.java b/src/main/java/org/logic2j/solve/DefaultGoalSolver.java index 4ac35709..93ba93f1 100644 --- a/src/main/java/org/logic2j/solve/DefaultGoalSolver.java +++ b/src/main/java/org/logic2j/solve/DefaultGoalSolver.java @@ -1,226 +1,231 @@ /* * logic2j - "Br...
false
true
public void solveGoalRecursive(final Term goalTerm, final VarBindings goalVars, final GoalFrame callerFrame, final SolutionListener theSolutionListener) { if (debug) { logger.debug("Entering solveRecursive({}), callerFrame={}", goalTerm, callerFrame); } if (!(goalTerm instanceof Struct)) { ...
public void solveGoalRecursive(final Term goalTerm, final VarBindings goalVars, final GoalFrame callerFrame, final SolutionListener theSolutionListener) { if (debug) { logger.debug("Entering solveRecursive({}), callerFrame={}", goalTerm, callerFrame); } if (!(goalTerm instanceof Struct)) { ...
diff --git a/src/main/java/org/basex/query/func/JavaMapping.java b/src/main/java/org/basex/query/func/JavaMapping.java index afc0f42bd..b01b93e8a 100644 --- a/src/main/java/org/basex/query/func/JavaMapping.java +++ b/src/main/java/org/basex/query/func/JavaMapping.java @@ -1,272 +1,273 @@ package org.basex.query.func; ...
true
true
static JavaMapping get(final QNm name, final Expr[] args, final QueryContext ctx, final InputInfo ii) throws QueryException { // check for "java:" prefix final byte[] uri = name.uri(); final byte[] ln = name.local(); final boolean java = startsWith(uri, JAVAPREF); final QNm nm = new QNm(ln,...
static JavaMapping get(final QNm name, final Expr[] args, final QueryContext ctx, final InputInfo ii) throws QueryException { // check for "java:" prefix final byte[] uri = name.uri(); final byte[] ln = name.local(); final boolean java = startsWith(uri, JAVAPREF); final QNm nm = new QNm(ln,...
diff --git a/gruppe32/src/Aktion.java b/gruppe32/src/Aktion.java index 1cd5309..dd3d6b2 100644 --- a/gruppe32/src/Aktion.java +++ b/gruppe32/src/Aktion.java @@ -1,261 +1,261 @@ import javax.swing.JFrame; import javax.swing.JLabel; /** * Klassenkommentar: * Hauptspiellogik bzw. was tun wenn was passiert * ...
true
true
public void figurBewegen(int richtung){ if (richtung == RECHTS){ if ((Spielfeld.wertLesenBeiXY(aktuellesLevel,figurX+1,figurY)==BODEN) |(Spielfeld.wertLesenBeiXY(aktuellesLevel,figurX+1,figurY)==FIGUR)){ Menu.figurBewegen(aktuellesLevel,figurX,figurY,figurX+1,figurY); figurX=figurX+1; } else if (...
public void figurBewegen(int richtung){ if (richtung == RECHTS){ if ((Spielfeld.wertLesenBeiXY(aktuellesLevel,figurX+1,figurY)==BODEN) |(Spielfeld.wertLesenBeiXY(aktuellesLevel,figurX+1,figurY)==FIGUR)){ Menu.figurBewegen(aktuellesLevel,figurX,figurY,figurX+1,figurY); figurX=figurX+1; } else if (...
diff --git a/src/com/android/email/activity/setup/AccountSettings.java b/src/com/android/email/activity/setup/AccountSettings.java index 26481ef9..056934a9 100644 --- a/src/com/android/email/activity/setup/AccountSettings.java +++ b/src/com/android/email/activity/setup/AccountSettings.java @@ -1,391 +1,391 @@ /* * C...
true
true
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); Intent i = getIntent(); if (i.getAction().equals(ACTION_ACCOUNT_MANAGER_ENTRY)) { // This case occurs if we're changing account settings from Settings -> Accounts setAccountIdFromAc...
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); Intent i = getIntent(); if (ACTION_ACCOUNT_MANAGER_ENTRY.equals(i.getAction())) { // This case occurs if we're changing account settings from Settings -> Accounts setAccountIdFromAc...
diff --git a/src/main/java/de/thomasvoecking/screenruler/ui/ScreenrulerFrame.java b/src/main/java/de/thomasvoecking/screenruler/ui/ScreenrulerFrame.java index d6f98f6..5e06646 100644 --- a/src/main/java/de/thomasvoecking/screenruler/ui/ScreenrulerFrame.java +++ b/src/main/java/de/thomasvoecking/screenruler/ui/Screenrul...
true
true
public void paint(final Graphics g) { final Graphics2D g2 = (Graphics2D) g; g2.setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING, RenderingHints.VALUE_TEXT_ANTIALIAS_ON); g2.setRenderingHint(RenderingHints.KEY_RENDERING, RenderingHints.VALUE_RENDER_QUALITY); g.clearRect(0, 0, this.getWid...
public void paint(final Graphics g) { final Graphics2D g2 = (Graphics2D) g; g2.setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING, RenderingHints.VALUE_TEXT_ANTIALIAS_ON); g2.setRenderingHint(RenderingHints.KEY_RENDERING, RenderingHints.VALUE_RENDER_QUALITY); g.clearRect(0, 0, this.getWid...
diff --git a/src/usp/ime/line/ivprog/model/domainaction/NewVariable.java b/src/usp/ime/line/ivprog/model/domainaction/NewVariable.java index f96d54d..1c74af7 100644 --- a/src/usp/ime/line/ivprog/model/domainaction/NewVariable.java +++ b/src/usp/ime/line/ivprog/model/domainaction/NewVariable.java @@ -1,64 +1,56 @@ pack...
false
true
protected void executeAction() { // TODO o problema est� aqui. de onde vem o varID? System.out.println("Execute action: "+varID); if(varID!=null){ Variable v = (Variable) Services.getService().getModelMapping().get(varID); System.out.println("VARIABLE "+v); } /*if(varID == null) varID = model.create...
protected void executeAction() { if(varID == null) varID = model.createVariable(scopeID); else model.restoreVariable(scopeID, varID); }
diff --git a/version2/androidclient/src/be/ugent/ods/osgi/protocolabstraction/ModuleAccessor.java b/version2/androidclient/src/be/ugent/ods/osgi/protocolabstraction/ModuleAccessor.java index 50e33e9..fdf11c0 100644 --- a/version2/androidclient/src/be/ugent/ods/osgi/protocolabstraction/ModuleAccessor.java +++ b/version2...
false
true
public EndpointDescription getCurrentEndpointDescriptionFor(Class<?> c){ Map<String, String> rosgitim_ids = new HashMap<String, String>(); rosgitim_ids.put(EchoService.class.getName(), "44"); rosgitim_ids.put(GlowFilterService.class.getName(), "45"); rosgitim_ids.put(VideoService.class.getName(), "46"); M...
public EndpointDescription getCurrentEndpointDescriptionFor(Class<?> c){ Map<String, String> rosgitim_ids = new HashMap<String, String>(); rosgitim_ids.put(EchoService.class.getName(), "44"); rosgitim_ids.put(GlowFilterService.class.getName(), "45"); rosgitim_ids.put(VideoService.class.getName(), "46"); M...
diff --git a/src/main/java/com/plivo/helper/api/client/RestAPI.java b/src/main/java/com/plivo/helper/api/client/RestAPI.java index e63a39e..cf7a1c8 100644 --- a/src/main/java/com/plivo/helper/api/client/RestAPI.java +++ b/src/main/java/com/plivo/helper/api/client/RestAPI.java @@ -1,557 +1,557 @@ package com.plivo.help...
true
true
public String request(String method, String resource, LinkedHashMap<String, String> parameters) throws PlivoException { HttpResponse response = new BasicHttpResponse(new ProtocolVersion("HTTP", 1, 1), HttpStatus.SC_OK, "OK"); String json = ""; try { if ( method == "GET" ) { // Prepare a String wi...
public String request(String method, String resource, LinkedHashMap<String, String> parameters) throws PlivoException { HttpResponse response = new BasicHttpResponse(new ProtocolVersion("HTTP", 1, 1), HttpStatus.SC_OK, "OK"); String json = ""; try { if ( method == "GET" ) { // Prepare a String wi...
diff --git a/TFC_Shared/src/TFC/Handlers/CraftingHandler.java b/TFC_Shared/src/TFC/Handlers/CraftingHandler.java index f40cc468e..27905f178 100644 --- a/TFC_Shared/src/TFC/Handlers/CraftingHandler.java +++ b/TFC_Shared/src/TFC/Handlers/CraftingHandler.java @@ -1,140 +1,140 @@ package TFC.Handlers; import net.minecr...
false
true
public void onCrafting(EntityPlayer entityplayer, ItemStack itemstack, IInventory iinventory) { int index = 0; if(iinventory != null && !entityplayer.worldObj.isRemote) { if(itemstack.itemID == TFCItems.StoneBrick.itemID) { HandleItem(entityplayer, iinventory, Recipes.Chisels); } else if(items...
public void onCrafting(EntityPlayer entityplayer, ItemStack itemstack, IInventory iinventory) { int index = 0; if(iinventory != null) { if(itemstack.itemID == TFCItems.StoneBrick.itemID) { HandleItem(entityplayer, iinventory, Recipes.Chisels); } else if(itemstack.itemID == TFCItems.SinglePlank...
diff --git a/src/main/java/me/tehbeard/vocalise/parser/VocalisedConversation.java b/src/main/java/me/tehbeard/vocalise/parser/VocalisedConversation.java index 5f4cc70..c868a66 100644 --- a/src/main/java/me/tehbeard/vocalise/parser/VocalisedConversation.java +++ b/src/main/java/me/tehbeard/vocalise/parser/VocalisedConve...
true
true
public void outputNextPrompt() { if (currentPrompt == null) { abandon(new ConversationAbandonedEvent(this)); } else { if(currentPrompt.getPromptText(context) != null){ context.getForWhom().sendRawMessage(prefix.getPrefix(context) + currentPrompt.getPromptText(...
public void outputNextPrompt() { if (currentPrompt == null) { abandon(new ConversationAbandonedEvent(this)); } else { String promptText = currentPrompt.getPromptText(context); if(promptText != null){ context.getForWhom().sendRawMessage(prefix.getPr...
diff --git a/src/com/diycircuits/cangjie/CandidateSelect.java b/src/com/diycircuits/cangjie/CandidateSelect.java index e419c08..6d12cce 100644 --- a/src/com/diycircuits/cangjie/CandidateSelect.java +++ b/src/com/diycircuits/cangjie/CandidateSelect.java @@ -1,292 +1,295 @@ package com.diycircuits.cangjie; import and...
false
true
public void showCandidatePopup(View mParent, int w, int h) { if (total == 0) return; if (mPopup == null) { mPopup = new PopupWindow(context); LayoutInflater inflate = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE); View view = inflate.inflate(R.layout.popup, null); ...
public void showCandidatePopup(View mParent, int w, int h) { if (total == 0) return; if (mPopup == null) { mPopup = new PopupWindow(context); LayoutInflater inflate = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE); View view = inflate.inflate(R.layout.popup, null); ...
diff --git a/src/web/org/codehaus/groovy/grails/web/converters/xtream/DomainClassConverter.java b/src/web/org/codehaus/groovy/grails/web/converters/xtream/DomainClassConverter.java index 559874096..720300d43 100644 --- a/src/web/org/codehaus/groovy/grails/web/converters/xtream/DomainClassConverter.java +++ b/src/web/or...
false
true
public void marshal(Object value, HierarchicalStreamWriter writer, MarshallingContext context) { Class clazz = value.getClass(); GrailsDomainClass domainClass = ConverterUtil.getDomainClass(clazz.getName()); BeanWrapper beanWrapper = new BeanWrapperImpl(value); ...
public void marshal(Object value, HierarchicalStreamWriter writer, MarshallingContext context) { Class clazz = value.getClass(); GrailsDomainClass domainClass = ConverterUtil.getDomainClass(clazz.getName()); BeanWrapper beanWrapper = new BeanWrapperImpl(value); ...
diff --git a/galileo_openbook_cleaner/src/de/scrum_master/galileo/OpenbookCleaner.java b/galileo_openbook_cleaner/src/de/scrum_master/galileo/OpenbookCleaner.java index 3dbb32b..57047ae 100644 --- a/galileo_openbook_cleaner/src/de/scrum_master/galileo/OpenbookCleaner.java +++ b/galileo_openbook_cleaner/src/de/scrum_mas...
false
true
private static void processArgs(String[] args) { if (args.length < 2) displayUsageAndExit(0); // TODO: GetOpt is poorly documented, hard to use and buggy (getCmdArgs falsely returns options // if no non-option command-line agrument is given). There are plenty of better free command line // parsing tools. ...
private static void processArgs(String[] args) { if (args.length == 0) displayUsageAndExit(0); // TODO: GetOpt is poorly documented, hard to use and buggy (getCmdArgs falsely returns options // if no non-option command-line agrument is given). There are plenty of better free command line // parsing tools....
diff --git a/eol-globi-data-tool/src/main/java/org/eol/globi/service/TaxonPropertyEnricherFactory.java b/eol-globi-data-tool/src/main/java/org/eol/globi/service/TaxonPropertyEnricherFactory.java index 2726355d..624d64e9 100644 --- a/eol-globi-data-tool/src/main/java/org/eol/globi/service/TaxonPropertyEnricherFactory.ja...
true
true
public static TaxonPropertyEnricher createTaxonEnricher(GraphDatabaseService graphService) { TaxonPropertyEnricherImpl taxonEnricher = new TaxonPropertyEnricherImpl(graphService); List<TaxonPropertyLookupService> services = new ArrayList<TaxonPropertyLookupService>() { { ...
public static TaxonPropertyEnricher createTaxonEnricher(GraphDatabaseService graphService) { TaxonPropertyEnricherImpl taxonEnricher = new TaxonPropertyEnricherImpl(graphService); List<TaxonPropertyLookupService> services = new ArrayList<TaxonPropertyLookupService>() { { ...
diff --git a/ghana-national-core/src/test/java/org/motechproject/ghana/national/configuration/GhanaNationalCareSchedulesTest.java b/ghana-national-core/src/test/java/org/motechproject/ghana/national/configuration/GhanaNationalCareSchedulesTest.java index b92f070b..7a35381b 100644 --- a/ghana-national-core/src/test/java...
true
true
public void verifyPregnancySchedule() { LocalDate today = DateUtil.newDate(2000, 1, 1); mockCurrentDate(today); LocalDate conceptionDate = today.minusWeeks(1); AllEnrollments allEnrollments = mock(AllEnrollments.class); MotechSchedulerService motechSchedulerService = mock(Mo...
public void verifyPregnancySchedule() { LocalDate today = DateUtil.newDate(2000, 1, 1); mockCurrentDate(today); LocalDate conceptionDate = today.minusWeeks(1); AllEnrollments allEnrollments = mock(AllEnrollments.class); MotechSchedulerService motechSchedulerService = mock(Mo...
diff --git a/org.cloudsmith.geppetto.pp.dsl/src/org/cloudsmith/xtext/serializer/acceptor/HiddenTokenSequencer.java b/org.cloudsmith.geppetto.pp.dsl/src/org/cloudsmith/xtext/serializer/acceptor/HiddenTokenSequencer.java index 156863b0..eb258741 100644 --- a/org.cloudsmith.geppetto.pp.dsl/src/org/cloudsmith/xtext/seriali...
true
true
protected void emitHiddenTokens(List<INode> hiddens /* Set<INode> comments, */) { if(hiddens == null) return; boolean lastNonWhitespace = true; AbstractRule ws = hiddenTokenHelper.getWhitespaceRuleFor(null, ""); for(INode node : hiddens) if(tokenUtil.isCommentNode(node)) { if(lastNonWhitespace) ...
protected void emitHiddenTokens(List<INode> hiddens /* Set<INode> comments, */) { if(hiddens == null) return; boolean lastNonWhitespace = true; AbstractRule ws = hiddenTokenHelper.getWhitespaceRuleFor(null, ""); for(INode node : hiddens) if(tokenUtil.isCommentNode(node)) { if(lastNonWhitespace) ...
diff --git a/core/cc.warlock.rcp/src/cc/warlock/rcp/application/WarlockPerspectiveFactory.java b/core/cc.warlock.rcp/src/cc/warlock/rcp/application/WarlockPerspectiveFactory.java index d163e675..ad05bf42 100644 --- a/core/cc.warlock.rcp/src/cc/warlock/rcp/application/WarlockPerspectiveFactory.java +++ b/core/cc.warlock...
true
true
public void createInitialLayout(IPageLayout layout) { layout.setEditorAreaVisible(false); IFolderLayout mainFolder = layout.createFolder(MAIN_FOLDER_ID, IPageLayout.BOTTOM, 0.15f, layout.getEditorArea()); mainFolder.addView(ConnectionView.VIEW_ID); mainFolder.addPlaceholder("*GameView:*"); // layout.addSt...
public void createInitialLayout(IPageLayout layout) { layout.setEditorAreaVisible(false); IFolderLayout mainFolder = layout.createFolder(MAIN_FOLDER_ID, IPageLayout.BOTTOM, 0.15f, layout.getEditorArea()); mainFolder.addView(ConnectionView.VIEW_ID); mainFolder.addPlaceholder("*GameView:*"); // layout.addSt...
diff --git a/plugins/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/impl/PreparedIVDataExtractionQuery.java b/plugins/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/impl/PreparedIVDataExtractionQuery.java index 757d688e4..7243b0010 100644 --- a/plugins/org.eclipse.birt.data/src/org/eclipse/birt/data/eng...
true
true
protected void prepareQuery( ) throws DataException { try { IBinding[] bindings = null; if ( this.queryDefn.getSourceQuery( ) instanceof SubqueryLocator ) { this.queryResults = engine.getQueryResults( getParentQueryResultsID( (SubqueryLocator) ( queryDefn.getSourceQuery( ) ) ) ); IQueryDefinition...
protected void prepareQuery( ) throws DataException { try { IBinding[] bindings = null; if ( this.queryDefn.getSourceQuery( ) instanceof SubqueryLocator ) { this.queryResults = engine.getQueryResults( getParentQueryResultsID( (SubqueryLocator) ( queryDefn.getSourceQuery( ) ) ) ); IQueryDefinition...
diff --git a/src/org/hyperic/hq/hqapi1/test/ResourceUpdate_test.java b/src/org/hyperic/hq/hqapi1/test/ResourceUpdate_test.java index f043e71..76c97dd 100644 --- a/src/org/hyperic/hq/hqapi1/test/ResourceUpdate_test.java +++ b/src/org/hyperic/hq/hqapi1/test/ResourceUpdate_test.java @@ -1,218 +1,224 @@ /* * * NOTE: ...
false
true
public void testUpdateConfig() throws Exception { ResourceApi api = getApi().getResourceApi(); Resource createdResource = createTestHTTPService(); final String UPDATED_HOSTNAME = "www.yahoo.com"; for (ResourceConfig c : createdResource.getResourceConfig()) { if (c.getKe...
public void testUpdateConfig() throws Exception { ResourceApi api = getApi().getResourceApi(); Resource createdResource = createTestHTTPService(); final String UPDATED_HOSTNAME = "www.yahoo.com"; for (ResourceConfig c : createdResource.getResourceConfig()) { if (c.getKe...
diff --git a/openregistry-repository-jpa-impl/src/main/java/org/openregistry/core/repository/jpa/JpaPersonRepository.java b/openregistry-repository-jpa-impl/src/main/java/org/openregistry/core/repository/jpa/JpaPersonRepository.java index 11d53198..0c695ebb 100644 --- a/openregistry-repository-jpa-impl/src/main/java/or...
true
true
public List<Person> findByFamilyName(final String family) throws RepositoryAccessException { Query query = this.entityManager.createQuery("SELECT person FROM Person person WHERE person.officialName.family = :family"); query.setParameter("name", family); return query.getResultList(); }
public List<Person> findByFamilyName(final String family) throws RepositoryAccessException { Query query = this.entityManager.createQuery("SELECT p FROM person p WHERE p.officialName.family = :name"); query.setParameter("name", family); return query.getResultList(); }
diff --git a/libraries/javalib/java/util/AbstractList.java b/libraries/javalib/java/util/AbstractList.java index 6b3c093c3..f6439bbae 100644 --- a/libraries/javalib/java/util/AbstractList.java +++ b/libraries/javalib/java/util/AbstractList.java @@ -1,227 +1,227 @@ /* * Java core library component. * * Copyright ...
true
true
public List subList(final int fromIndex, final int toIndex) { if (fromIndex < 0 || toIndex > size()) { throw new IndexOutOfBoundsException(); } if (fromIndex > toIndex) { throw new IllegalArgumentException(); } return new AbstractList() { private final AbstractList list = AbstractList.this; pr...
public List subList(final int fromIndex, final int toIndex) { if (fromIndex < 0 || toIndex > size()) { throw new IndexOutOfBoundsException(); } if (fromIndex > toIndex) { throw new IllegalArgumentException(); } return new AbstractList() { private final AbstractList list = AbstractList.this; pr...
diff --git a/common-api/src/main/java/org/totalgrid/reef/clientapi/settings/util/PropertyReader.java b/common-api/src/main/java/org/totalgrid/reef/clientapi/settings/util/PropertyReader.java index fa1a9cecc..871053b51 100644 --- a/common-api/src/main/java/org/totalgrid/reef/clientapi/settings/util/PropertyReader.java +...
false
true
public static Properties readFromFile( String fileName ) throws IOException { File file = new File(fileName); if(!file.canRead()) throw new IOException("Cannot find or access file: " + file.getAbsolutePath()); FileInputStream fis = new FileInputStream( file ); Properties props ...
public static Properties readFromFile( String fileName ) throws IOException { File file = new File( fileName ); if ( !file.canRead() ){ throw new IOException( "Cannot find or access file: " + file.getAbsolutePath() ); } FileInputStream fis = new FileInputStream( fil...
diff --git a/source/de/anomic/plasma/plasmaSnippetCache.java b/source/de/anomic/plasma/plasmaSnippetCache.java index d5a80dcc3..64fa0dd16 100644 --- a/source/de/anomic/plasma/plasmaSnippetCache.java +++ b/source/de/anomic/plasma/plasmaSnippetCache.java @@ -1,365 +1,368 @@ // plasmaSnippetCache.java // ---------------...
false
true
private String computeSnippet(String[] sentences, Set queryhashes, int minLength, int maxLength) { if ((sentences == null) || (sentences.length == 0)) return null; if ((queryhashes == null) || (queryhashes.size() == 0)) return null; kelondroMScoreCluster hitTable = new kelondroMScoreCluster(...
private String computeSnippet(String[] sentences, Set queryhashes, int minLength, int maxLength) { if ((sentences == null) || (sentences.length == 0)) return null; if ((queryhashes == null) || (queryhashes.size() == 0)) return null; kelondroMScoreCluster hitTable = new kelondroMScoreCluster(...
diff --git a/orbisgis-view/src/main/java/org/orbisgis/view/toc/actions/cui/legends/PnlRule.java b/orbisgis-view/src/main/java/org/orbisgis/view/toc/actions/cui/legends/PnlRule.java index 5bd0cd4c5..407189450 100644 --- a/orbisgis-view/src/main/java/org/orbisgis/view/toc/actions/cui/legends/PnlRule.java +++ b/orbisgis-v...
true
true
public Component getComponent() { removeAll(); FlowLayout fl = new FlowLayout(); fl.setVgap(0); this.setLayout(fl); //We need the map transform to use the buttons final MapTransform mt = legendContext.getCurrentMapTr...
public Component getComponent() { removeAll(); FlowLayout fl = new FlowLayout(); fl.setVgap(0); this.setLayout(fl); //We need the map transform to use the buttons final MapTransform mt = legendContext.getCurrentMapTr...
diff --git a/nuxeo-platform-webapp-base/src/main/java/org/nuxeo/ecm/webapp/delegate/DocumentManagerBusinessDelegate.java b/nuxeo-platform-webapp-base/src/main/java/org/nuxeo/ecm/webapp/delegate/DocumentManagerBusinessDelegate.java index 3b89a009..58bd8e90 100644 --- a/nuxeo-platform-webapp-base/src/main/java/org/nuxeo/...
true
true
public CoreSession getDocumentManager(RepositoryLocation serverLocation) throws ClientException { if (serverLocation == null) { if (Framework.getProperty("org.nuxeo.conversation.error.log") != null) { String errorMessage = String.format( "serv...
public CoreSession getDocumentManager(RepositoryLocation serverLocation) throws ClientException { if (serverLocation == null) { if (Framework.getProperty("org.nuxeo.conversation.error.log") != null) { String errorMessage = String.format( "serv...
diff --git a/Toolbox/src/biz/shadowservices/DegreesToolbox/DataFetcher.java b/Toolbox/src/biz/shadowservices/DegreesToolbox/DataFetcher.java index c856127..f259f15 100644 --- a/Toolbox/src/biz/shadowservices/DegreesToolbox/DataFetcher.java +++ b/Toolbox/src/biz/shadowservices/DegreesToolbox/DataFetcher.java @@ -1,436 +...
true
true
public FetchResult updateData(Context context, boolean force) { //Open database DBOpenHelper dbhelper = new DBOpenHelper(context); SQLiteDatabase db = dbhelper.getWritableDatabase(); // check for internet connectivity try { if (!isOnline(context)) { Log.d(TAG, "We do not seem to be online. Skipping U...
public FetchResult updateData(Context context, boolean force) { //Open database DBOpenHelper dbhelper = new DBOpenHelper(context); SQLiteDatabase db = dbhelper.getWritableDatabase(); // check for internet connectivity try { if (!isOnline(context)) { Log.d(TAG, "We do not seem to be online. Skipping U...
diff --git a/rain/src/com/follett/mywebapp/server/TreeBuilderServiceImpl.java b/rain/src/com/follett/mywebapp/server/TreeBuilderServiceImpl.java index 20fd3cb..45cf261 100644 --- a/rain/src/com/follett/mywebapp/server/TreeBuilderServiceImpl.java +++ b/rain/src/com/follett/mywebapp/server/TreeBuilderServiceImpl.java @@ ...
false
true
public HashMap<String, ArrayList<ValidationTreeDataItem>> getTreeItems() { HashMap<String, ArrayList<ValidationTreeDataItem>> returnable = new HashMap<String, ArrayList<ValidationTreeDataItem>>(); try { Class.forName(DatabaseParameters.getTDSDriver()).newInstance(); // TODO get tree items and build them...
public HashMap<String, ArrayList<ValidationTreeDataItem>> getTreeItems() { HashMap<String, ArrayList<ValidationTreeDataItem>> returnable = new HashMap<String, ArrayList<ValidationTreeDataItem>>(); ArrayList<ValidationTreeDataItem> exception = new ArrayList<ValidationTreeDataItem>(); exception.add(new Validat...
diff --git a/data/hibernate/src/test/java/org/appfuse/dao/GenericDaoTest.java b/data/hibernate/src/test/java/org/appfuse/dao/GenericDaoTest.java index 1b7bb566..7949befe 100644 --- a/data/hibernate/src/test/java/org/appfuse/dao/GenericDaoTest.java +++ b/data/hibernate/src/test/java/org/appfuse/dao/GenericDaoTest.java @...
true
true
public void testCRUD() { User user = new User(); // set required fields user.setUsername("foo"); user.setPassword("bar"); user.setFirstName("first"); user.setLastName("last"); user.getAddress().setCity("Denver"); user.getAddress().setPostalCode("80465"...
public void testCRUD() { User user = new User(); // set required fields user.setUsername("foo"); user.setPassword("bar"); user.setFirstName("first"); user.setLastName("last"); user.getAddress().setCity("Denver"); user.getAddress().setPostalCode("80465"...
diff --git a/obex/javax/obex/PrivateOutputStream.java b/obex/javax/obex/PrivateOutputStream.java index ea01ab4c..06dd55e2 100644 --- a/obex/javax/obex/PrivateOutputStream.java +++ b/obex/javax/obex/PrivateOutputStream.java @@ -1,163 +1,166 @@ /* * Copyright (c) 2008-2009, Motorola, Inc. * * All rights reserved. ...
true
true
public synchronized void write(byte[] buffer, int offset, int count) throws IOException { int offset1 = offset; int remainLength = count; if (buffer == null) { throw new IOException("buffer is null"); } if ((offset | count) < 0 || count > buffer.length - offset) ...
public synchronized void write(byte[] buffer, int offset, int count) throws IOException { int offset1 = offset; int remainLength = count; if (buffer == null) { throw new IOException("buffer is null"); } if ((offset | count) < 0 || count > buffer.length - offset) ...
diff --git a/modules/resin/src/com/caucho/jstl/rt/XmlParseTag.java b/modules/resin/src/com/caucho/jstl/rt/XmlParseTag.java index 37501761b..02463ad5c 100644 --- a/modules/resin/src/com/caucho/jstl/rt/XmlParseTag.java +++ b/modules/resin/src/com/caucho/jstl/rt/XmlParseTag.java @@ -1,237 +1,236 @@ /* * Copyright (c) 1...
true
true
public int doEndTag() throws JspException { try { PageContextImpl pageContext = (PageContextImpl) this.pageContext; BodyContentImpl body = (BodyContentImpl) getBodyContent(); Reader reader; if (_xml != null) { Object obj = _xml; if (obj instanceof Reader) rea...
public int doEndTag() throws JspException { try { PageContextImpl pageContext = (PageContextImpl) this.pageContext; BodyContentImpl body = (BodyContentImpl) getBodyContent(); Reader reader; if (_xml != null) { Object obj = _xml; if (obj instanceof Reader) rea...
diff --git a/plugins/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/layout/pdf/PDFLayoutManagerFactory.java b/plugins/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/layout/pdf/PDFLayoutManagerFactory.java index a07ccbb90..887ecd48c 100644 --- a/plugins/org.eclipse.birt.report.engin...
true
true
private Object handleText( ITextContent content ) { boolean isInline = parent instanceof PDFLineAreaLM; if ( isInline ) { assert ( parent instanceof PDFLineAreaLM ); DimensionType width = content.getWidth( ); // if text contains line break or width is specified, this text // will be regard ...
private Object handleText( ITextContent content ) { boolean isInline = parent instanceof PDFLineAreaLM; if ( isInline ) { assert ( parent instanceof PDFLineAreaLM ); DimensionType width = content.getWidth( ); // if text contains line break or width is specified, this text // will be regard ...
diff --git a/PacketHandler.java b/PacketHandler.java index 436b676..5aca56b 100644 --- a/PacketHandler.java +++ b/PacketHandler.java @@ -1,86 +1,86 @@ package assets.recipehandler; import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; import java.io.DataInputStream; import java.io.DataOutput...
false
true
private void handle(Packet250CustomPayload packet, EntityPlayer player) { DataInputStream inStream = new DataInputStream(new ByteArrayInputStream(packet.data)); int[] data = new int[4]; try { for(int id = 0; id < data.length; id++) data[id] = inStream.readInt(); } catch (IOException e) { e...
private void handle(Packet250CustomPayload packet, EntityPlayer player) { DataInputStream inStream = new DataInputStream(new ByteArrayInputStream(packet.data)); int[] data = new int[4]; try { for(int id = 0; id < data.length; id++) data[id] = inStream.readInt(); } catch (IOException e) { e...
diff --git a/mcp/src/minecraft/sammko/quantumCraft/client/ClientTickHandler.java b/mcp/src/minecraft/sammko/quantumCraft/client/ClientTickHandler.java index d41ca8c..63abe48 100755 --- a/mcp/src/minecraft/sammko/quantumCraft/client/ClientTickHandler.java +++ b/mcp/src/minecraft/sammko/quantumCraft/client/ClientTickHand...
false
true
public String getItemDamage(ItemStack item) { if (mc.inGameHasFocus == true && mc.thePlayer.inventory.getCurrentItem() != null && mc.thePlayer.inventory.getCurrentItem().itemID == QuantumCraftSettings.CrystalPickaxeID + 256 ) { final int damage = item.getItemDamageForDisplay(); final int damageLeft = 500-damag...
public String getItemDamage(ItemStack item) { if (mc.inGameHasFocus == true && mc.thePlayer.inventory.getCurrentItem() != null && mc.thePlayer.inventory.getCurrentItem().itemID == QuantumCraftSettings.CrystalPickaxeID + 256 ) { final int damage = item.getItemDamageForDisplay(); final int damageLeft = 500-damag...
diff --git a/src-standard/test/java/javax/time/chrono/TestISODate.java b/src-standard/test/java/javax/time/chrono/TestISODate.java index adb30538..5f4e2ab1 100644 --- a/src-standard/test/java/javax/time/chrono/TestISODate.java +++ b/src-standard/test/java/javax/time/chrono/TestISODate.java @@ -1,417 +1,417 @@ /* * C...
true
true
public void test_extract_Class() { ChronoDate test = TEST_2007_07_15; assertEquals(test.extract(LocalDate.class), test.toLocalDate()); assertEquals(test.extract(LocalTime.class), null); assertEquals(test.extract(LocalDateTime.class), null); assertEquals(test.extract(OffsetDat...
public void test_extract_Class() { ChronoDate test = TEST_2007_07_15; assertEquals(test.extract(LocalDate.class), test.toLocalDate()); assertEquals(test.extract(LocalTime.class), null); assertEquals(test.extract(LocalDateTime.class), null); assertEquals(test.extract(OffsetDat...
diff --git a/impl/logic/src/java/org/sakaiproject/evaluation/logic/impl/EvalResponsesLogicImpl.java b/impl/logic/src/java/org/sakaiproject/evaluation/logic/impl/EvalResponsesLogicImpl.java index aa467ecd..36e9f526 100644 --- a/impl/logic/src/java/org/sakaiproject/evaluation/logic/impl/EvalResponsesLogicImpl.java +++ b/...
true
true
protected boolean checkAnswersValidForEval(EvalResponse response) { // get a list of the valid templateItems for this evaluation EvalEvaluation eval = response.getEvaluation(); Long evalId = eval.getId(); List<EvalTemplateItem> allTemplateItems = itemsLogic.getTemplateItemsForEvaluation(eval...
protected boolean checkAnswersValidForEval(EvalResponse response) { // get a list of the valid templateItems for this evaluation EvalEvaluation eval = response.getEvaluation(); Long evalId = eval.getId(); // TODO - make this more efficient by limiting the nodes, instructors, and groups ...
diff --git a/src-terminal/com/jediterm/terminal/TerminalKeyEncoder.java b/src-terminal/com/jediterm/terminal/TerminalKeyEncoder.java index 2c75321..3e65bce 100644 --- a/src-terminal/com/jediterm/terminal/TerminalKeyEncoder.java +++ b/src-terminal/com/jediterm/terminal/TerminalKeyEncoder.java @@ -1,94 +1,94 @@ package ...
true
true
public TerminalKeyEncoder() { putCode(VK_ENTER, Ascii.CR); arrowKeysApplicationSequences(); keypadApplicationSequences(); putCode(VK_F1, ESC, 'O', 'P'); putCode(VK_F2, ESC, 'O', 'Q'); putCode(VK_F3, ESC, 'O', 'R'); putCode(VK_F4, ESC, 'O', 'S'); putCode(VK_F5, ESC, 'O', 't'); putCo...
public TerminalKeyEncoder() { putCode(VK_ENTER, Ascii.CR); arrowKeysApplicationSequences(); keypadApplicationSequences(); putCode(VK_F1, ESC, 'O', 'P'); putCode(VK_F2, ESC, 'O', 'Q'); putCode(VK_F3, ESC, 'O', 'R'); putCode(VK_F4, ESC, 'O', 'S'); putCode(VK_F5, ESC, 'O', 't'); putCo...
diff --git a/core/src/main/java/brooklyn/util/internal/ssh/sshj/SshjTool.java b/core/src/main/java/brooklyn/util/internal/ssh/sshj/SshjTool.java index 61563aefb..5c8ebee55 100644 --- a/core/src/main/java/brooklyn/util/internal/ssh/sshj/SshjTool.java +++ b/core/src/main/java/brooklyn/util/internal/ssh/sshj/SshjTool.java...
true
true
public Integer create() throws Exception { try { session = acquire(newSessionAction()); shell = session.startShell(); if (out != null) { InputStream outstream = shell.getInputStream(); ...
public Integer create() throws Exception { try { session = acquire(newSessionAction()); shell = session.startShell(); if (out != null) { InputStream outstream = shell.getInputStream(); ...
diff --git a/h2/src/main/org/h2/server/web/DbContextRule.java b/h2/src/main/org/h2/server/web/DbContextRule.java index 91e9f24e0..8221c7319 100644 --- a/h2/src/main/org/h2/server/web/DbContextRule.java +++ b/h2/src/main/org/h2/server/web/DbContextRule.java @@ -1,492 +1,492 @@ /* * Copyright 2004-2008 H2 Group. Multi...
true
true
private void addColumn(Sentence sentence) { String query = sentence.getQuery(); String tableName = query; String columnPattern = ""; if (query.trim().length() == 0) { tableName = null; } else { tableName = StringUtils.toUpperEnglish(query.trim()); ...
private void addColumn(Sentence sentence) { String query = sentence.getQuery(); String tableName = query; String columnPattern = ""; if (query.trim().length() == 0) { tableName = null; } else { tableName = StringUtils.toUpperEnglish(query.trim()); ...
diff --git a/java-buzz-client/src/main/java/com/google/buzz/model/BuzzComment.java b/java-buzz-client/src/main/java/com/google/buzz/model/BuzzComment.java index 28f1e74..edb3052 100644 --- a/java-buzz-client/src/main/java/com/google/buzz/model/BuzzComment.java +++ b/java-buzz-client/src/main/java/com/google/buzz/model/...
true
true
public String toString( String indent ) { StringBuilder sb = new StringBuilder(); String newIndent = indent + "\t"; sb.append( indent + "BuzzComment:" ); sb.append( newIndent + "Activity Object Type: " + activityObjectType ); sb.append( newIndent + "Published: " + publish...
public String toString( String indent ) { StringBuilder sb = new StringBuilder(); String newIndent = indent + "\t"; sb.append( indent + "BuzzComment:" ); sb.append( newIndent + "Activity Object Type: " + activityObjectType ); sb.append( newIndent + "Published: " + publish...
diff --git a/src/java/com/opensymphony/module/sitemesh/servlets/PathologicalServlet.java b/src/java/com/opensymphony/module/sitemesh/servlets/PathologicalServlet.java index 577273a..737a663 100644 --- a/src/java/com/opensymphony/module/sitemesh/servlets/PathologicalServlet.java +++ b/src/java/com/opensymphony/module/si...
true
true
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { String mode = request.getParameter("out"); PrintWriter pw = null; if (mode.equals("writer")) { OutputStreamWriter osw = new OutputStreamWriter(response.getOutput...
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { String mode = request.getParameter("out"); PrintWriter pw = null; if (mode.equals("stream")) { OutputStreamWriter osw = new OutputStreamWriter(response.getOutput...
diff --git a/weblets-api/src/main/java/net/java/dev/weblets/FacesWebletUtils.java b/weblets-api/src/main/java/net/java/dev/weblets/FacesWebletUtils.java index 7242332..9684a23 100644 --- a/weblets-api/src/main/java/net/java/dev/weblets/FacesWebletUtils.java +++ b/weblets-api/src/main/java/net/java/dev/weblets/FacesWebl...
true
true
public static String getURL(FacesContext context, String weblet, String pathInfo) { return WebletUtils.getResource(weblet, pathInfo); }
public static String getURL(FacesContext context, String weblet, String pathInfo) { return WebletUtils.getURL(weblet, pathInfo); }
diff --git a/src/org/servalproject/servald/BundleKey.java b/src/org/servalproject/servald/BundleKey.java index 65d746b2..0a949079 100644 --- a/src/org/servalproject/servald/BundleKey.java +++ b/src/org/servalproject/servald/BundleKey.java @@ -1,44 +1,44 @@ /** * Copyright (C) 2011 The Serval Project * * This fil...
true
true
public int getBinarySize() { return 64; }
public int getBinarySize() { return 32; }
diff --git a/openejb/tomee/tomee-loader/src/test/java/org/apache/tomee/loader/test/UserSessionTest.java b/openejb/tomee/tomee-loader/src/test/java/org/apache/tomee/loader/test/UserSessionTest.java index 1f1123a30..2c16ad6a7 100644 --- a/openejb/tomee/tomee-loader/src/test/java/org/apache/tomee/loader/test/UserSessionTe...
false
true
public void test() throws Exception { { final Properties properties = new Properties(); properties.put(Context.INITIAL_CONTEXT_FACTORY, "org.apache.openejb.core.LocalInitialContextFactory"); properties.put("openejb.loader", "embed"); try { new ...
public void test() throws Exception { { final Properties properties = new Properties(); properties.put(Context.INITIAL_CONTEXT_FACTORY, "org.apache.openejb.core.LocalInitialContextFactory"); properties.put("openejb.loader", "embed"); try { new ...
diff --git a/src/main/java/com/jin/tpdb/persistence/DAO.java b/src/main/java/com/jin/tpdb/persistence/DAO.java index b6f0cd8..b4bdfbc 100755 --- a/src/main/java/com/jin/tpdb/persistence/DAO.java +++ b/src/main/java/com/jin/tpdb/persistence/DAO.java @@ -1,115 +1,115 @@ package com.jin.tpdb.persistence; import java.u...
true
true
public int getAlbumTotalComments(int id) { /*$albums_query = "SELECT users.username, albums.album_id, albums.uploader_user_id, albums.album_name, albums.upload_date, albums.cover, albums.description, artists.artist_name, (SELECT COUNT( comment_id ) FROM comments WHERE comments.album_id = albums.album...
public int getAlbumTotalComments(int id) { /*$albums_query = "SELECT users.username, albums.album_id, albums.uploader_user_id, albums.album_name, albums.upload_date, albums.cover, albums.description, artists.artist_name, (SELECT COUNT( comment_id ) FROM comments WHERE comments.album_id = albums.album...
diff --git a/src/tests/java/net/sf/picard/sam/MergeSamFilesTest.java b/src/tests/java/net/sf/picard/sam/MergeSamFilesTest.java index a9c98a12..0fcaba30 100644 --- a/src/tests/java/net/sf/picard/sam/MergeSamFilesTest.java +++ b/src/tests/java/net/sf/picard/sam/MergeSamFilesTest.java @@ -1,60 +1,58 @@ /* * The MIT Lic...
false
true
public void unsortedInputSortedOutputTest() throws Exception { File unsortedInputTestDataDir = new File(TEST_DATA_DIR, "unsorted_input"); File mergedOutput = File.createTempFile("unsortedInputSortedOutputTest.", ".bam"); mergedOutput.deleteOnExit(); String[] args = { ...
public void unsortedInputSortedOutputTest() throws Exception { File unsortedInputTestDataDir = new File(TEST_DATA_DIR, "unsorted_input"); File mergedOutput = File.createTempFile("unsortedInputSortedOutputTest.", ".bam"); mergedOutput.deleteOnExit(); String[] args = { ...
diff --git a/same/src/main/java/com/orbekk/net/MyJsonRpcHttpClient.java b/same/src/main/java/com/orbekk/net/MyJsonRpcHttpClient.java index b610a2f..d5e30d7 100644 --- a/same/src/main/java/com/orbekk/net/MyJsonRpcHttpClient.java +++ b/same/src/main/java/com/orbekk/net/MyJsonRpcHttpClient.java @@ -1,76 +1,76 @@ package ...
true
true
public synchronized Object invoke( final String methodName, final Object[] arguments, Type returnType, Map<String, String> extraHeaders) throws Exception { EntityTemplate entity = new EntityTemplate(new ContentProducer() { @Override public...
public synchronized Object invoke( final String methodName, final Object[] arguments, Type returnType, Map<String, String> extraHeaders) throws Exception { EntityTemplate entity = new EntityTemplate(new ContentProducer() { @Override public...
diff --git a/flexmojos-maven-plugin/src/main/java/org/sonatype/flexmojos/plugin/air/SignAirMojo.java b/flexmojos-maven-plugin/src/main/java/org/sonatype/flexmojos/plugin/air/SignAirMojo.java index bcf56d311..71be8ca1f 100644 --- a/flexmojos-maven-plugin/src/main/java/org/sonatype/flexmojos/plugin/air/SignAirMojo.java +...
true
true
protected void doPackage( String packagerName, FlexmojosAIRPackager packager ) throws MojoExecutionException { try { KeyStore keyStore = KeyStore.getInstance( storetype ); keyStore.load( new FileInputStream( keystore.getAbsolutePath() ), storepass.toCharArray() );...
protected void doPackage( String packagerName, FlexmojosAIRPackager packager ) throws MojoExecutionException { try { KeyStore keyStore = KeyStore.getInstance( storetype ); keyStore.load( new FileInputStream( keystore.getAbsolutePath() ), storepass.toCharArray() );...
diff --git a/src/main/java/com/minecraftdimensions/bungeesuitechat/listeners/MessageListener.java b/src/main/java/com/minecraftdimensions/bungeesuitechat/listeners/MessageListener.java index ec2c52a..bc4fba5 100644 --- a/src/main/java/com/minecraftdimensions/bungeesuitechat/listeners/MessageListener.java +++ b/src/main...
false
true
public void onPluginMessageReceived( String pluginChannel, Player receiver, byte[] message ) { if ( !pluginChannel.equalsIgnoreCase( BungeeSuiteChat.INCOMING_PLUGIN_CHANNEL ) ) return; DataInputStream in = new DataInputStream( new ByteArrayInputStream( message ) ); String channel...
public void onPluginMessageReceived( String pluginChannel, Player receiver, byte[] message ) { if ( !pluginChannel.equalsIgnoreCase( BungeeSuiteChat.INCOMING_PLUGIN_CHANNEL ) ) return; DataInputStream in = new DataInputStream( new ByteArrayInputStream( message ) ); String channel...
diff --git a/src/main/java/no/auke/demo/m2/DemoRun.java b/src/main/java/no/auke/demo/m2/DemoRun.java index 64a361e..61cb929 100644 --- a/src/main/java/no/auke/demo/m2/DemoRun.java +++ b/src/main/java/no/auke/demo/m2/DemoRun.java @@ -1,112 +1,112 @@ package no.auke.demo.m2; import no.auke.p2p.m2.InitVar; public c...
true
true
public static void main(String[] args) { String namespace = InitParam.NAMESPACE; String dir = InitParam.USERDIR; String userid = "TestUser"; String useridRemote = ""; boolean dosend = true; int port = InitParam.PORT; int trialsize = 10000; String trial = "sendreplylocal"; String server = ...
public static void main(String[] args) { String namespace = InitParam.NAMESPACE; String dir = InitParam.USERDIR; String userid = "TestUser"; String useridRemote = ""; boolean dosend = true; int port = InitParam.PORT; int trialsize = 1000000; String trial = "sendreplylocal"; String server ...
diff --git a/src/java/com/eviware/soapui/impl/wsdl/support/http/ProxyUtils.java b/src/java/com/eviware/soapui/impl/wsdl/support/http/ProxyUtils.java index 3d84b6e49..102c97a9a 100644 --- a/src/java/com/eviware/soapui/impl/wsdl/support/http/ProxyUtils.java +++ b/src/java/com/eviware/soapui/impl/wsdl/support/http/ProxyUt...
false
true
public static void initProxySettings( Settings settings, HttpContext httpContext, String urlString, PropertyExpansionContext context ) { HttpHost proxy = null; boolean enabled = proxyEnabled; // check system properties first String proxyHost = System.getProperty( "http.proxyHost" ); String proxyPort = S...
public static void initProxySettings( Settings settings, HttpContext httpContext, String urlString, PropertyExpansionContext context ) { HttpHost proxy = null; boolean enabled = proxyEnabled; // check system properties first String proxyHost = System.getProperty( "http.proxyHost" ); String proxyPort = S...
diff --git a/src/main/java/net/croxis/plugins/civilmineation/SignChangeListener.java b/src/main/java/net/croxis/plugins/civilmineation/SignChangeListener.java index 81b4392..2034055 100644 --- a/src/main/java/net/croxis/plugins/civilmineation/SignChangeListener.java +++ b/src/main/java/net/croxis/plugins/civilmineation...
false
true
public void onSignChangeEvent(SignChangeEvent event){ ResidentComponent resident = CivAPI.getResident(event.getPlayer().getName()); PlotComponent plot = CivAPI.getPlot(event.getBlock().getChunk()); if (event.getLine(0).equalsIgnoreCase("[claim]")){ if (!CivAPI.isCityAdmin(resident)){ cancelBre...
public void onSignChangeEvent(SignChangeEvent event){ ResidentComponent resident = CivAPI.getResident(event.getPlayer().getName()); PlotComponent plot = CivAPI.getPlot(event.getBlock().getChunk()); if (event.getLine(0).equalsIgnoreCase("[claim]")){ if (!CivAPI.isCityAdmin(resident)){ cancelBre...
diff --git a/core/src/visad/trunk/examples/Test59.java b/core/src/visad/trunk/examples/Test59.java index 15d3be095..0e90857db 100644 --- a/core/src/visad/trunk/examples/Test59.java +++ b/core/src/visad/trunk/examples/Test59.java @@ -1,91 +1,91 @@ import java.awt.Component; import java.rmi.RemoteException; import...
true
true
DisplayImpl[] setupData() throws VisADException, RemoteException { RealType index = new RealType("index", null, null); RealType vis_radiance = new RealType("vis_radiance", null, null); RealType ir_radiance = new RealType("ir_radiance", null, null); RealType[] types = {RealType.Latitude, RealType.Lo...
DisplayImpl[] setupData() throws VisADException, RemoteException { RealType index = new RealType("index", null, null); RealType vis_radiance = new RealType("vis_radiance", null, null); RealType ir_radiance = new RealType("ir_radiance", null, null); RealType[] types = {RealType.Latitude, RealType.Lo...
diff --git a/DarkBeam/src/de/krakel/darkbeam/lib/FColors.java b/DarkBeam/src/de/krakel/darkbeam/lib/FColors.java index 3a79c8f..b7aa3f8 100644 --- a/DarkBeam/src/de/krakel/darkbeam/lib/FColors.java +++ b/DarkBeam/src/de/krakel/darkbeam/lib/FColors.java @@ -1,18 +1,18 @@ package de.krakel.darkbeam.lib; public final ...
true
true
public static String get( String name, boolean withColor) { if (withColor) { return PREFIX_YELLOW + name + PREFIX_WHITE; } return name; }
public static String get( String name, boolean withColor) { if (withColor) { return PREFIX_YELLOW + name + PREFIX_WHITE; } return String.valueOf( name); }
diff --git a/araqne-logdb/src/main/java/org/araqne/logdb/impl/QueryPrintHelper.java b/araqne-logdb/src/main/java/org/araqne/logdb/impl/QueryPrintHelper.java index 58b52dd5..369be05d 100644 --- a/araqne-logdb/src/main/java/org/araqne/logdb/impl/QueryPrintHelper.java +++ b/araqne-logdb/src/main/java/org/araqne/logdb/impl...
true
true
public static void printQueries(ScriptContext context, Collection<LogQuery> qs, String queryFilter) { String header = "Log Queries"; if (queryFilter != null) header += " (filter by \"" + queryFilter + "\")"; context.println(header); int lineLen = header.length() + 2; for (int i = 0; i < lineLen; i++) ...
public static void printQueries(ScriptContext context, Collection<LogQuery> qs, String queryFilter) { String header = "Log Queries"; if (queryFilter != null) header += " (filter by \"" + queryFilter + "\")"; context.println(header); int lineLen = header.length() + 2; for (int i = 0; i < lineLen; i++) ...
diff --git a/src/net/sf/gogui/tools/twogtp/TwoGtp.java b/src/net/sf/gogui/tools/twogtp/TwoGtp.java index 79e6634e..1c93e75c 100644 --- a/src/net/sf/gogui/tools/twogtp/TwoGtp.java +++ b/src/net/sf/gogui/tools/twogtp/TwoGtp.java @@ -1,728 +1,730 @@ // TwoGtp.java package net.sf.gogui.tools.twogtp; import java.io.F...
true
true
private void handleEndOfGame(boolean error, String errorMessage) throws ErrorMessage { String resultBlack; String resultWhite; String resultReferee; if (m_resigned) { String result = (m_resignColor == BLACK ? "W" : "B"); result = result + "...
private void handleEndOfGame(boolean error, String errorMessage) throws ErrorMessage { String resultBlack; String resultWhite; String resultReferee; if (m_resigned) { String result = (m_resignColor == BLACK ? "W" : "B"); result = result + "...
diff --git a/tests/org.eclipse.dltk.javascript.core.tests/src/org/eclipse/dltk/javascript/core/tests/typeinference/ExampleMemberEvaluator.java b/tests/org.eclipse.dltk.javascript.core.tests/src/org/eclipse/dltk/javascript/core/tests/typeinference/ExampleMemberEvaluator.java index 37e0039b..80b72276 100644 --- a/tests/o...
true
true
public IValueCollection valueOf(ITypeInfoContext context,Member member) { IValueCollection collection = (IValueCollection) member .getAttribute(ExampleElementResolver.MEMBER_VALUE); if (collection == null) { ISourceModule globals = (ISourceModule) member.getAttribute(ExampleElementResolver.LAZY_MEMBER_VALUE...
public IValueCollection valueOf(ITypeInfoContext context,Member member) { IValueCollection collection = (IValueCollection) member .getAttribute(ExampleElementResolver.MEMBER_VALUE); if (collection == null) { ISourceModule globals = (ISourceModule) member.getAttribute(ExampleElementResolver.LAZY_MEMBER_VALUE...
diff --git a/oak-core/src/main/java/org/apache/jackrabbit/oak/namepath/NamePathMapperImpl.java b/oak-core/src/main/java/org/apache/jackrabbit/oak/namepath/NamePathMapperImpl.java index 248e3d9a1c..b4784997f1 100644 --- a/oak-core/src/main/java/org/apache/jackrabbit/oak/namepath/NamePathMapperImpl.java +++ b/oak-core/sr...
true
true
public String getOakPath(String jcrPath) { final List<String> elements = new ArrayList<String>(); final StringBuilder parseErrors = new StringBuilder(); if ("/".equals(jcrPath)) { // avoid the need to special case the root path later on return "/"; } ...
public String getOakPath(String jcrPath) { final List<String> elements = new ArrayList<String>(); final StringBuilder parseErrors = new StringBuilder(); if ("/".equals(jcrPath)) { // avoid the need to special case the root path later on return "/"; } ...
diff --git a/features/edb/core/src/main/java/org/openengsb/edb/core/repository/jgit/GitCommit.java b/features/edb/core/src/main/java/org/openengsb/edb/core/repository/jgit/GitCommit.java index 8779dc27b..50f1ed818 100644 --- a/features/edb/core/src/main/java/org/openengsb/edb/core/repository/jgit/GitCommit.java +++ b/f...
false
true
public String commit() throws RepositoryStateException { if (this.commiterEmail == null || this.commiterName == null || this.commitMessage == null || this.authorEmail == null || this.authorName == null) { throw new RepositoryStateException("Requiring all fields to be filled, befo...
public String commit() throws RepositoryStateException { if (this.commiterEmail == null || this.commiterName == null || this.commitMessage == null || this.authorEmail == null || this.authorName == null) { throw new RepositoryStateException("Requiring all fields to be filled, befo...
diff --git a/extrabiomes/src/extrabiomes/module/summa/worldgen/MarshGenerator.java b/extrabiomes/src/extrabiomes/module/summa/worldgen/MarshGenerator.java index fbc65971..ad9ba513 100644 --- a/extrabiomes/src/extrabiomes/module/summa/worldgen/MarshGenerator.java +++ b/extrabiomes/src/extrabiomes/module/summa/worldgen/M...
true
true
public void generate(Random random, int chunkX, int chunkZ, World world, IChunkProvider chunkGenerator, IChunkProvider chunkProvider) { chunkX = chunkX << 4; chunkZ = chunkZ << 4; final BiomeGenBase biome = world.getBiomeGenForCoords(chunkX, chunkX); if (BiomeManager.marsh.isPresent() && biome ...
public void generate(Random random, int chunkX, int chunkZ, World world, IChunkProvider chunkGenerator, IChunkProvider chunkProvider) { chunkX = chunkX << 4; chunkZ = chunkZ << 4; final BiomeGenBase biome = world.getBiomeGenForCoords(chunkX, chunkZ); if (BiomeManager.marsh.isPresent() && biome ...
diff --git a/src/main/java/se/DMarby/Pets/EntityPigZombiePet.java b/src/main/java/se/DMarby/Pets/EntityPigZombiePet.java index 0b837a6..4be9a6c 100644 --- a/src/main/java/se/DMarby/Pets/EntityPigZombiePet.java +++ b/src/main/java/se/DMarby/Pets/EntityPigZombiePet.java @@ -1,95 +1,95 @@ package se.DMarby.Pets; impor...
true
true
public void l_() { super.l_(); if (owner == null) return; this.getNavigation().a(((CraftPlayer) owner).getHandle(), 0.3F); if (distToOwner() > Util.MAX_DISTANCE) this.getBukkitEntity().teleport(owner); }
public void h() { super.h(); if (owner == null) return; this.getNavigation().a(((CraftPlayer) owner).getHandle(), 0.3F); if (distToOwner() > Util.MAX_DISTANCE) this.getBukkitEntity().teleport(owner); }
diff --git a/motech-server-core/src/main/java/org/motechproject/server/ws/WebServiceModelConverterImpl.java b/motech-server-core/src/main/java/org/motechproject/server/ws/WebServiceModelConverterImpl.java index 3cbe2f66..173e584e 100644 --- a/motech-server-core/src/main/java/org/motechproject/server/ws/WebServiceModelC...
true
true
public Patient patientToWebService(org.openmrs.Patient patient, boolean minimal) { if (patient == null) { return null; } Patient wsPatient = new Patient(); wsPatient.setPreferredName(patient.getGivenName()); wsPatient.setLastName(patient.getFamilyName()); wsPatient.setBirthDate(patient.getBirthdat...
public Patient patientToWebService(org.openmrs.Patient patient, boolean minimal) { if (patient == null) { return null; } Patient wsPatient = new Patient(); wsPatient.setPreferredName(patient.getGivenName()); wsPatient.setLastName(patient.getFamilyName()); wsPatient.setBirthDate(patient.getBirthdat...
diff --git a/src/AudioTest.java b/src/AudioTest.java index dc9d021..282e721 100644 --- a/src/AudioTest.java +++ b/src/AudioTest.java @@ -1,65 +1,66 @@ import org.lwjgl.LWJGLException; import org.lwjgl.input.Keyboard; import org.lwjgl.opengl.Display; import org.lwjgl.opengl.DisplayMode; import java.io.FileInputSt...
false
true
public void execute() { try { Display.setDisplayMode(new DisplayMode(800,600)); Display.create(); } catch (LWJGLException e) { e.printStackTrace(); System.exit(0); } Audio audio = new Audio(); audio.init(); // WaveData waveFile; // try { // waveFile = WaveData.create(new FileI...
public void execute() { try { Display.setDisplayMode(new DisplayMode(800,600)); Display.create(); } catch (LWJGLException e) { e.printStackTrace(); System.exit(0); } Audio audio = new Audio(); audio.init(); // WaveData waveFile; // try { // waveFile = WaveData.create(new FileI...
diff --git a/src/com/android/packageinstaller/InstallAppProgress.java b/src/com/android/packageinstaller/InstallAppProgress.java index 71c792e..b690f8a 100755 --- a/src/com/android/packageinstaller/InstallAppProgress.java +++ b/src/com/android/packageinstaller/InstallAppProgress.java @@ -1,300 +1,301 @@ /* ** ** Cop...
true
true
public void handleMessage(Message msg) { switch (msg.what) { case INSTALL_COMPLETE: if (getIntent().getBooleanExtra(Intent.EXTRA_RETURN_RESULT, false)) { Intent result = new Intent(); result.putExtra(Intent.EXTRA_INS...
public void handleMessage(Message msg) { switch (msg.what) { case INSTALL_COMPLETE: if (getIntent().getBooleanExtra(Intent.EXTRA_RETURN_RESULT, false)) { Intent result = new Intent(); result.putExtra(Intent.EXTRA_INS...
diff --git a/main/src/main/java/com/chinarewards/qqgbvpn/main/impl/DefaultPosServer.java b/main/src/main/java/com/chinarewards/qqgbvpn/main/impl/DefaultPosServer.java index 021f0578..69002110 100644 --- a/main/src/main/java/com/chinarewards/qqgbvpn/main/impl/DefaultPosServer.java +++ b/main/src/main/java/com/chinarewar...
true
true
protected void startMinaService() throws PosServerException { // default 1800 seconds int idleTime = configuration.getInt(ConfigKey.SERVER_CLIENTMAXIDLETIME, DEFAULT_SERVER_CLIENTMAXIDLETIME); port = configuration.getInt("server.port"); serverAddr = new InetSocketAddress(port); // =============== se...
protected void startMinaService() throws PosServerException { // default 1800 seconds int idleTime = configuration.getInt(ConfigKey.SERVER_CLIENTMAXIDLETIME, DEFAULT_SERVER_CLIENTMAXIDLETIME); port = configuration.getInt("server.port"); serverAddr = new InetSocketAddress(port); // =============== se...
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/ScheduleTaskMenuContributor.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/ScheduleTaskMenuContributor.java index 1aa06cc45..7022d2ef8 100644 --- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/u...
true
true
public MenuManager getSubMenuManager(final List<IRepositoryElement> selectedElements) { singleTaskSelection = null; taskListElementsToSchedule.clear(); final MenuManager subMenuManager = new MenuManager(Messages.ScheduleTaskMenuContributor_Schedule_for); if (selectedElements.size() == 1) { IRepositoryElem...
public MenuManager getSubMenuManager(final List<IRepositoryElement> selectedElements) { singleTaskSelection = null; taskListElementsToSchedule.clear(); final MenuManager subMenuManager = new MenuManager(Messages.ScheduleTaskMenuContributor_Schedule_for); if (selectedElements.size() == 1) { IRepositoryElem...
diff --git a/loci/formats/in/SlidebookReader.java b/loci/formats/in/SlidebookReader.java index 2fd21d6e2..4d075256b 100644 --- a/loci/formats/in/SlidebookReader.java +++ b/loci/formats/in/SlidebookReader.java @@ -1,439 +1,443 @@ // // SlidebookReader.java // /* LOCI Bio-Formats package for reading and converting...
true
true
protected void initFile(String id) throws FormatException, IOException { if (debug) debug("SlidebookReader.initFile(" + id + ")"); super.initFile(id); in = new RandomAccessStream(id); status("Finding offsets to pixel data"); // Slidebook files appear to be comprised of four types of blocks: ...
protected void initFile(String id) throws FormatException, IOException { if (debug) debug("SlidebookReader.initFile(" + id + ")"); super.initFile(id); in = new RandomAccessStream(id); status("Finding offsets to pixel data"); // Slidebook files appear to be comprised of four types of blocks: ...
diff --git a/src/main/java/org/hardisonbrewing/clover/ReductMojo.java b/src/main/java/org/hardisonbrewing/clover/ReductMojo.java index 8f9d3e0..7cde2ee 100644 --- a/src/main/java/org/hardisonbrewing/clover/ReductMojo.java +++ b/src/main/java/org/hardisonbrewing/clover/ReductMojo.java @@ -1,590 +1,591 @@ /** * Copyri...
false
true
private void _execute() throws Exception { svnUsername = getProperty( SVN_USERNAME ); initCloverFilePath(); initWorkingCopyPath(); initCutoffDate(); initThreadCount(); getLog().info( "Using coverage report from: " + cloverReportFile.getPath() ); targetDirec...
private void _execute() throws Exception { svnUsername = getProperty( SVN_USERNAME ); initCloverFilePath(); initWorkingCopyPath(); initCutoffDate(); initThreadCount(); getLog().info( "Using coverage report from: " + cloverReportFile.getPath() ); targetDirec...
diff --git a/src/org/ohmage/service/UploadService.java b/src/org/ohmage/service/UploadService.java index d731142..e1aac23 100644 --- a/src/org/ohmage/service/UploadService.java +++ b/src/org/ohmage/service/UploadService.java @@ -1,250 +1,250 @@ package org.ohmage.service; import java.io.File; import java.io.Filena...
false
true
protected void doWakefulWork(Intent intent) { String serverUrl = SharedPreferencesHelper.DEFAULT_SERVER_URL; SharedPreferencesHelper helper = new SharedPreferencesHelper(this); String username = helper.getUsername(); String hashedPassword = helper.getHashedPassword(); boolean isBackground = intent.getB...
protected void doWakefulWork(Intent intent) { String serverUrl = SharedPreferencesHelper.DEFAULT_SERVER_URL; SharedPreferencesHelper helper = new SharedPreferencesHelper(this); String username = helper.getUsername(); String hashedPassword = helper.getHashedPassword(); boolean isBackground = intent.getB...
diff --git a/LanPlaylistServer/src/main/java/net/kokkeli/data/db/PlaylistsTable.java b/LanPlaylistServer/src/main/java/net/kokkeli/data/db/PlaylistsTable.java index 09298e2..2241057 100644 --- a/LanPlaylistServer/src/main/java/net/kokkeli/data/db/PlaylistsTable.java +++ b/LanPlaylistServer/src/main/java/net/kokkeli/dat...
true
true
public PlayList get(long id) throws DatabaseException, NotFoundInDatabase{ SQLiteConnection db = new SQLiteConnection(new File(databaseLocation)); PlayList list = null; try { db.open(false); SQLiteStatement st = db.prepare(getSingleItemQuery(id)); ...
public PlayList get(long id) throws DatabaseException, NotFoundInDatabase{ SQLiteConnection db = new SQLiteConnection(new File(databaseLocation)); PlayList list = null; try { db.open(false); SQLiteStatement st = db.prepare(getSingleItemQuery(id)); ...
diff --git a/BaasioAndroid/src/com/kth/baasio/entity/push/BaasioPush.java b/BaasioAndroid/src/com/kth/baasio/entity/push/BaasioPush.java index 39de2e2..9eee27d 100644 --- a/BaasioAndroid/src/com/kth/baasio/entity/push/BaasioPush.java +++ b/BaasioAndroid/src/com/kth/baasio/entity/push/BaasioPush.java @@ -1,532 +1,536 @@...
false
true
public static BaasioDevice register(Context context, String regId) throws BaasioException { if (!Baas.io().isGcmEnabled()) { throw new BaasioException(BaasioError.ERROR_GCM_DISABLED); } GCMRegistrar.checkDevice(context); if (BuildConfig.DEBUG) { GCMRegistrar....
public static BaasioDevice register(Context context, String regId) throws BaasioException { if (!Baas.io().isGcmEnabled()) { throw new BaasioException(BaasioError.ERROR_GCM_DISABLED); } GCMRegistrar.checkDevice(context); if (BuildConfig.DEBUG) { GCMRegistrar....
diff --git a/src/net/enkun/javatter/history/HistoryObjectFactory.java b/src/net/enkun/javatter/history/HistoryObjectFactory.java index 450d126..21edd71 100644 --- a/src/net/enkun/javatter/history/HistoryObjectFactory.java +++ b/src/net/enkun/javatter/history/HistoryObjectFactory.java @@ -1,186 +1,186 @@ package net.en...
true
true
private JPanel createText(HistoryViewObserver view) { JPanel textPanel = new JPanel(); textPanel.setMaximumSize(new Dimension(375, Integer.MAX_VALUE)); textPanel.setLayout(new BoxLayout(textPanel, 3)); JLabel userName = new JLabel(); userName.setMaximumSize(new Dimension(375, Integer.MAX_VALUE)); Font f...
private JPanel createText(HistoryViewObserver view) { JPanel textPanel = new JPanel(); textPanel.setMaximumSize(new Dimension(375, Integer.MAX_VALUE)); textPanel.setLayout(new BoxLayout(textPanel, 3)); JLabel userName = new JLabel(); userName.setMaximumSize(new Dimension(375, Integer.MAX_VALUE)); Font f...
diff --git a/src/com/eteks/sweethome3d/viewcontroller/PlanController.java b/src/com/eteks/sweethome3d/viewcontroller/PlanController.java index ed50ccb7..e711f4fe 100644 --- a/src/com/eteks/sweethome3d/viewcontroller/PlanController.java +++ b/src/com/eteks/sweethome3d/viewcontroller/PlanController.java @@ -1,9640 +1,964...
false
true
private Wall adjustPieceOfFurnitureOnWallAt(HomePieceOfFurniture piece, float x, float y, boolean forceOrientation) { float margin = PIXEL_MARGIN / getScale(); Level selectedLevel = this.home.getSelectedLevel(); float [][] piecePoints = piece.getPoints(); ...
private Wall adjustPieceOfFurnitureOnWallAt(HomePieceOfFurniture piece, float x, float y, boolean forceOrientation) { float margin = PIXEL_MARGIN / getScale(); Level selectedLevel = this.home.getSelectedLevel(); float [][] piecePoints = piece.getPoints(); ...
diff --git a/uk.ac.diamond.scisoft.analysis.rcp/src/uk/ac/diamond/scisoft/analysis/rcp/hdf5/HDF5TreeExplorer.java b/uk.ac.diamond.scisoft.analysis.rcp/src/uk/ac/diamond/scisoft/analysis/rcp/hdf5/HDF5TreeExplorer.java index fbb7579..01e6a24 100644 --- a/uk.ac.diamond.scisoft.analysis.rcp/src/uk/ac/diamond/scisoft/analys...
true
true
private boolean processSelectedNode(HDF5NodeLink link) { // two cases: axis and primary or axes // iterate through each child to find axes and primary attributes HDF5Node node = link.getDestination(); boolean foundData = false; List<AxisChoice> choices = new ArrayList<AxisChoice>(); HDF5Attribute axesAttr ...
private boolean processSelectedNode(HDF5NodeLink link) { // two cases: axis and primary or axes // iterate through each child to find axes and primary attributes HDF5Node node = link.getDestination(); boolean foundData = false; List<AxisChoice> choices = new ArrayList<AxisChoice>(); HDF5Attribute axesAttr ...